blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
74f520d3b47d6a45ce9d104906392a74cd83cdbb
419778a5e350d444bb07b62839f5cac13fabac11
/week3/Qualcalc.py
bd7a7f8439d0b5289db546a03eca928befbb4162
[]
no_license
BGuy2/qbb2018-answers
6fc5f3b9d165a6ef9dbd6e239a1f60af345d4436
4e0162d0649465ae1bb30f1eab151349e81e054f
refs/heads/master
2021-07-17T08:23:57.987439
2018-12-26T18:06:01
2018-12-26T18:06:01
146,315,140
0
0
null
null
null
null
UTF-8
Python
false
false
1,357
py
#!/usr/bin/env python3 import sys import matplotlib.pyplot as plt # # for line in open(sys.argv[1]): # if line.startswith("#"): # continue # else: # fields = line.strip("\r\n").split("\t") # columns = fields[7].split(";") # deptp = columns[7].split("=") # print(deptp) #...
[ "bguy2@jhu.edu" ]
bguy2@jhu.edu
de87933b637ac110be6291638717891dcb73c30e
a4f710870cd57eeca589f58824fa5d4f7d043258
/Curso em Vídeo/Python3/Mundo 2/ex053.py
9d53895ec875efff0b92e67741eadf50dab860c7
[]
no_license
UlissesMartins/Python3
a76e4e7d3da333c988cef870bba4e99a4eba95a8
8c274c8de32bfb02b70ed03b5ce1cda36781b654
refs/heads/master
2021-09-08T05:46:02.663884
2021-08-27T13:06:59
2021-08-27T13:06:59
140,956,137
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
# Crie um programa que leia uma frase qualquer e diga se ela é um palíndromo, desconsiderando os espaços frase = str(input('Digite uma frase: ')).strip().upper() palavras = frase.split() junto = ''.join(palavras) inverso = '' for letra in range(len(junto) - 1, -1, -1): inverso += junto[letra] print('O invers...
[ "noreply@github.com" ]
noreply@github.com
846c5cecb1d4a72e2e3b0b75e22f032feccc41ec
5b8d0cd314fdd4537bc77ce9209ca903694b02e8
/datasets/hate_speech_portuguese/hate_speech_portuguese.py
577644e09ec2d76215be6cde5bf21bf6ff2ee6aa
[ "Apache-2.0" ]
permissive
amankhandelia/datasets
97106f6d98b9cd17c50b1bf0c91f4ced6240dfd6
1a138f9bd2d1b62a255736375001bf918d36508d
refs/heads/master
2023-06-21T01:08:25.212378
2021-07-26T13:27:59
2021-07-26T13:27:59
389,644,974
1
0
Apache-2.0
2021-07-26T14:36:09
2021-07-26T13:36:08
null
UTF-8
Python
false
false
5,287
py
# coding=utf-8 # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
[ "noreply@github.com" ]
noreply@github.com
9329fa3e1b3876c67a51c90e9e30b719d9bf7ab7
b843994f7af838d1226841a5c6ccd08cb16f9780
/test/__init__.py
b47f86a8c755b33436c773f4090d8b95e74eb585
[]
no_license
Aprexx/blabla
1939e07d7417745d8b77d55ba5eb750643f6a5c4
44a9b4f54aef133ef25a8f2a3bce85d581724823
refs/heads/master
2021-01-22T18:33:58.726528
2017-03-31T21:38:03
2017-03-31T21:38:03
85,091,367
0
0
null
null
null
null
UTF-8
Python
false
false
54
py
import agent_tests import msg_tests import tlvs_tests
[ "fizzy6492@gmail.com" ]
fizzy6492@gmail.com
90d7e06f3f8f8cb42fee6802b20f759e7005b963
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Sklearn_scipy_numpy/source/sklearn/ensemble/weight_boosting.py
9921afb4c5eddd2d815d5a2d70818839b8f59e9b
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
40,733
py
"""Weight Boosting This module contains weight boosting estimators for both classification and regression. The module structure is the following: - The ``BaseWeightBoosting`` base class implements a common ``fit`` method for all the estimators in the module. Regression and classification only differ from each ot...
[ "master@MacBook-Pro-admin.local" ]
master@MacBook-Pro-admin.local
f3fbbff840bfed25f76f1b118640b7b5dda1dc63
c4e898d39202136119a68bf979186215dfbca7dc
/test_your_brain_project/urls.py
f9c6f1d4d919249c351030f088ad9e00e604122e
[]
no_license
darreluchendu/testyourbrain
9604bde9f7b6bcb28dddb817362898f153a1fc32
192864d4a6f046f0eb5ac339c73d5b9be85dae98
refs/heads/master
2022-12-12T04:29:59.392898
2018-04-09T14:12:41
2018-04-09T14:12:41
127,493,387
0
0
null
2022-11-22T02:13:59
2018-03-31T02:52:32
Python
UTF-8
Python
false
false
1,047
py
"""test_your_brain_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='ho...
[ "2236676u@student.gla.ac.uk" ]
2236676u@student.gla.ac.uk
8bedc19f64709ee67759bbf8e773a5593fb2a7d6
1952e26c290bad272561db8ca0965d82addf377a
/2884 알람시계.py
ff516f629bcdd2a16a9c2b8f5988c8ffb0f4e327
[]
no_license
sojunhwi/Python
b4731fcb8777d1d294dcf2e5e55944ce7f00706c
832ad8e29764f58874eb83276b6b1f304c613104
refs/heads/master
2020-08-22T03:40:15.359015
2019-10-25T06:19:27
2019-10-25T06:19:27
184,200,446
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
H, M = map(int, input().split()) if M <= 44: if H == 0: H = 23 elif H>0 and H<=23: H -=1 M += 15 elif M>=45 and M<60: M -=45 print(H, M)
[ "sjha24@naver.com" ]
sjha24@naver.com
f4c5184a6cca72d60a9a2cf2d98f15f9d2314811
f907f8ce3b8c3b203e5bb9d3be012bea51efd85f
/around_square.py
b2b414eff97fad0c386ab0b4c9d138fc545e7555
[]
no_license
KohsukeKubota/Atcoder-practice
3b4b986395551443f957d1818d6f9a0bf6132e90
52554a2649445c2760fc3982e722854fed5b8ab1
refs/heads/master
2020-08-26T15:17:29.344402
2019-10-26T11:14:24
2019-10-26T11:14:24
217,052,829
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
import math N = int(input()) res = 0 for i in range(int(math.sqrt(N))+1): val = i**2 if val > res: res = val print(res)
[ "kohsuke@KohsukeKubotas-MacBook-Air.local" ]
kohsuke@KohsukeKubotas-MacBook-Air.local
bb5d66aac04120bf9ff16913f178450951dc3ff6
930f619494f61aa29b33c0f5996a0f5de116282b
/phase/__init__.py
0cbc675b0eb23320728a6977cfe7a854f1252b24
[]
no_license
scott-trinkle/xphase
a86af0ec5188c2be074da2da2812aadca955d5c5
8125f13217e59b315ca1e5e20c3766f9113e000d
refs/heads/master
2020-04-27T19:30:37.753364
2019-03-21T19:09:42
2019-03-21T19:09:42
174,621,935
1
0
null
null
null
null
UTF-8
Python
false
false
112
py
from .material import Material from .experiment import Experiment from .constants import * from .utils import *
[ "tscott.trinkle@gmail.com" ]
tscott.trinkle@gmail.com
e7d05d85db18bf50696472bb93d912fd45a99a56
7d3dc62ef4b3157a0b299eb7faaf38076fe112db
/q1/4_stat-mech-van/src_hop_sk/main.py
523717647d0da17d3f2dc26fb6a6dcd851d0a235
[ "MIT" ]
permissive
fieldplay/Buckyball-Ising-Model
5e4834656f6fd90c82d44171218b6ee9db1e9ea4
d4883ff670a7131161de53bcbff7947851403635
refs/heads/master
2020-08-04T02:55:37.536968
2019-05-14T03:10:17
2019-05-14T03:10:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,842
py
#!/usr/bin/env python3 # # Solving Statistical Mechanics using Variational Autoregressive Networks # Hopfield model and SK model import time import numpy as np import torch from torch import nn from args import args from made2 import MADE from hop import HopfieldModel from sk import SKModel from utils import ( e...
[ "gtc16@mails.tsinghua.edu.cn" ]
gtc16@mails.tsinghua.edu.cn
e26564e24610b3c0c93871f75ebb8bcdef8e799f
7553f199fd765cf954d9b070c4bfb87836f53467
/functions.py
d7e7372ac6d2cef44f6bc0065cc965d85e67ac14
[]
no_license
ok-loneranger/Catch-your-mind
f3d1a2c9e0411e56be4abf70924db4397e0f43a2
26f1bbb47df3072e906dc958d2a30c1caed1914b
refs/heads/master
2020-12-06T04:43:42.382587
2020-01-16T15:56:17
2020-01-16T15:56:17
232,346,960
0
0
null
null
null
null
UTF-8
Python
false
false
1,721
py
import pygame import options import random import math def player_moves_right(): if options.player_position_x < options.window_size_x - 110: options.player_position_x += options.player_speed def player_moves_left(): if options.player_position_x > 10: options.player_position_x -= opt...
[ "noreply@github.com" ]
noreply@github.com
484ba68c0e0d351fa85034cae596bde15426bdc5
b2085ac89cd4e4de2e98fb749b99bb912ff5e83c
/main.py
d135facd5e20afaf8afc2f83bb3585540da01ed8
[]
no_license
mogyorosimartin/mems
8510180a3a33cf593acdda52fc139a305a382689
6a5f36e7d1fc23f567ed290436db5f571f0e4ed1
refs/heads/master
2020-03-31T08:05:58.729353
2019-01-15T08:50:04
2019-01-15T08:50:04
152,045,638
0
0
null
null
null
null
UTF-8
Python
false
false
1,396
py
import Adafruit_DHT as dht import time import datetime import mysql import math import googlelog as gl import csvlog as csvl import argparse parser= argparse.ArgumentParser(description='Raspberry-alapú időjárásállomás') parser.add_argument('-t',dest='time', help='Mérési gyakoriság percben', type=float, default=1) pars...
[ "noreply@github.com" ]
noreply@github.com
e82b5b960860c3529c756f383200f65662a8a95e
0f464c70bcfed7a561b5e763c9175161ebc8cf0b
/hivemind/main/migrations/0004_entity_password.py
fcc85aa61f210aa397b7b56cba47d70a28e748ef
[]
no_license
andreylukin/Hivemind
30d72db9512495a6526f11c9f19c9d1a26533794
ff91d50791ae6cd270e8dc2ba4fe31f8200f137b
refs/heads/master
2021-01-12T17:35:45.154034
2016-10-23T12:47:48
2016-10-23T12:47:48
71,611,637
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-10-22 19:19 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0003_auto_20161022_1850'), ] operations = [ migrations.AddField( ...
[ "luk.andrey@gatech.edu" ]
luk.andrey@gatech.edu
f540173dc4d507e0e9e6371b7d37e10cb6b970c0
3dbd0843275d6b39224170974b9b327b0a065592
/mnist/mnistRNN.py
d232ea67a74a0275b850c3dc6d8ec2d9788fc4fe
[]
no_license
yanbin93/DeepLearning
4b3250a7f457ba250eb79e71e9cb24a1fb65f76e
75d7e4e98a0385f12afe085174ce297f322da51c
refs/heads/master
2020-06-26T11:28:52.987116
2017-12-06T03:18:59
2017-12-06T03:18:59
97,018,012
0
0
null
null
null
null
UTF-8
Python
false
false
3,187
py
#!/usr/bin/env python # -*- coding:utf-8 -*- import tensorflow as tf from tensorflow.contrib import rnn import numpy as np from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("/home/yanbin/data/MNIST_data/",one_hot=True) # Parameters learning_rate = 0.001 training_iters = 100000...
[ "1010652868@qq.com" ]
1010652868@qq.com
c7abda45ae8c2d5d71cd2a6aba2040ae86df7ee8
66a6c73e00d7465711590bd45e1cfae7a8ac8e5a
/app.py
8d933028556caa18045ef6d6503f54289787fe5d
[ "MIT" ]
permissive
francisco-fajardo/generador-usuarios-inscripcion
d5cc83301c6e1512502152316150d57ee8856588
aeb735536f96c1a35cebf329fba32523184e5cde
refs/heads/master
2023-06-09T21:31:38.301590
2021-07-03T01:01:31
2021-07-03T01:01:31
382,372,022
0
0
null
null
null
null
UTF-8
Python
false
false
5,040
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from tkinter import ttk from tkinter import * import secrets import string import os import sqlite3 class App: data_dir = "data" db_file = os.path.join(data_dir, "database.db") version = "v1.0.0" def __init__(self, window): self.window = window...
[ "leober.ramos33@gmail.com" ]
leober.ramos33@gmail.com
989bcb331bc7fd8e669d3f97f7db546aa6bd3b26
c4a518190832366b97da43b18d14d4054f6b481a
/rwaTest_MacVersion.py
93ceef5a4072bd9b271dd367b393237d5ee020e4
[]
no_license
AA-CubeSat-Team/testBed_rpi
e3d4ce54f025fac97e510afe1f2e14af8045cf91
93916d2254c3b4e3f2ccd89528c045879e8bb214
refs/heads/master
2021-06-28T22:56:02.155914
2020-11-20T06:11:35
2020-11-20T06:11:35
181,969,266
1
0
null
null
null
null
UTF-8
Python
false
false
8,375
py
# master RWA handling script # first time, run in command line: sudo apt-get install python-spidev #import spidev #import time #spi = spidev.SpiDev() #spi.open(0, 0) #spi.max_speed_hz(244000) # RWA range is 150-300 kHz # msb = input >> 8 # lsb = input & 0xFF # spi.xfer([msb, lsb]) # Function t...
[ "wpope@uw.edu" ]
wpope@uw.edu
e007362f985c8d2e6793d6f6d5e7ba3a6cdecbdd
d6254d3a0996d7977816c167bc2af76677a52b87
/bigsi/cmds/search.py
cdbdd27ce5975e51c6880a3a79b9cbab407014af
[ "MIT" ]
permissive
rpetit3/BIGSI
f95c57a58e4ccfdd3d098737d76962a44565163e
d3e9a310e6c91c887d7917ced5609b6002a67623
refs/heads/master
2020-04-03T11:30:04.683289
2018-06-08T14:47:33
2018-06-08T14:47:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,634
py
#! /usr/bin/env python from __future__ import print_function # from bigsi.utils import min_lexo from bigsi.utils import seq_to_kmers from bigsi.graph import BIGSI as Graph import argparse import os.path import time from Bio import SeqIO import json import logging import sys logger = logging.getLogger(__name__) from big...
[ "wave@phel.im" ]
wave@phel.im
02e4fbe4535d2b7c0983b305399c7b442082d716
251d56a94b0d879a07a3d47a41f21258fa452a1f
/soqt/lilac.py
4127feb783bb69597b471987d0d06cc245cd1b83
[]
no_license
paroque28/arch4edu
d9bb5f5af008989454fe71677621149ae45c58cc
24df17749cf556ed668c3a886a698ecbdcca211c
refs/heads/master
2020-12-26T13:33:43.987122
2020-01-27T16:41:41
2020-01-27T16:41:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
#!/usr/bin/env python3 from lilaclib import * maintainers = [{'github': 'petronny'}] update_on = [{'aur': None}] repo_depends = ['coin'] build_prefix = 'extra-x86_64' pre_build = aur_pre_build post_build = aur_post_build if __name__ == '__main__': single_main(build_prefix)
[ "i@jingbei.li" ]
i@jingbei.li
7af5293603cb77a7b6416fa818a5dc6fc60d60fd
8537447ed708b0f27c7c133d97d8c2929e1fa18e
/integrationtest/vm/virtualrouter/ps/test_disable_ps_del_attached_vol.py
1ce4f477a8da11056347efff5a87b0d486d90344
[ "Apache-2.0" ]
permissive
mrwangxc/zstack-woodpecker
d60d3ce74e1fbc717c099e0311c0d2af37672ef3
97ba4dfc1939ee2b77d0eff2c7a69f3226991688
refs/heads/master
2021-01-17T23:02:46.782449
2017-02-23T07:28:37
2017-02-23T07:28:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,842
py
''' New Integration Test for delete attached volume under PS disable mode. @author: SyZhao ''' import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.test_state as test_state import zstackwoodpecker.operations.primarystorage_operations as ps_ops imp...
[ "zsyzsyhao@foxmail.com" ]
zsyzsyhao@foxmail.com
3e1152a223b9c144d0f833a5b0eeb5e98901a9ff
49099ef1ffefe5fcec83702483888d0f98c11679
/backend/almanac/migrations/0009_userpreference_join_requests.py
9d0ba4ae5eeffd53dfca02447229205a50f211f8
[]
no_license
taekop/swpp2020-team2
e5fdb68056aa593b8b3b17bcd265c90a98177a01
b86355ede536c00f7974e04540b126386f47f63c
refs/heads/master
2023-02-01T22:51:17.550476
2020-12-18T07:17:27
2020-12-18T07:17:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
# Generated by Django 3.1.2 on 2020-11-16 02:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('almanac', '0008_auto_20201112_0740'), ] operations = [ migrations.AddField( model_name='userpreference', name='join_...
[ "zeuskimone@gmail.com" ]
zeuskimone@gmail.com
da74e413c17472fc1a3ef9285cf4ece7ce0aa68a
19b4b9ea5fcdd6905000388e527452481477d11d
/app1/urls.py
222533713f45a0cfd9bb69edb82483427b3dc366
[]
no_license
jwalstab/ptest
cb7de4b115fbea01c77aa0bf884ec8a5b2bbe960
57cf7c653aead88ba54638c8cce78edae4c5911b
refs/heads/master
2020-08-01T15:21:04.445431
2019-09-26T10:17:19
2019-09-26T10:17:19
211,032,536
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
from django.urls import path from . import views urlpatterns = [ path('', views.home, name="home"), path('home', views.home, name="home"), path('add', views.add, name ="add") ]
[ "jaywalstab@outlook.com" ]
jaywalstab@outlook.com
be1f53665e8022b4ede91764bb78e101e375c601
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv2/lib/python3.8/site-packages/ansible/inventory/manager.py
070e01170b61f1d5f188966caf37738bde4fb084
[ "MIT" ]
permissive
SimonFangCisco/dne-dna-code
7072eba7da0389e37507b7a2aa5f7d0c0735a220
2ea7d4f00212f502bc684ac257371ada73da1ca9
refs/heads/master
2023-03-10T23:10:31.392558
2021-02-25T15:04:36
2021-02-25T15:04:36
342,274,373
0
0
MIT
2021-02-25T14:39:22
2021-02-25T14:39:22
null
UTF-8
Python
false
false
23,674
py
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
[ "sifang@cisco.com" ]
sifang@cisco.com
cde99f8843eb326a0db7e44b6f419d0b5b465f1a
39d9cc04fc9f09974495b58a58c5b9e291f406a8
/Labs/Lab3/library.py
d73b215ac2ade7ad1131a674ff19a4915da964d2
[]
no_license
pyopoly/3522_A00699267
40c131da6d9fc80090443afb9ab44ac6d297d955
5fbc92a7ddd9103076a7095124b5ae108b002f03
refs/heads/master
2023-04-02T00:38:22.761237
2021-04-09T20:29:09
2021-04-09T20:29:09
329,747,711
0
0
null
null
null
null
UTF-8
Python
false
false
4,795
py
""" This module houses the library. The library uses a catalogue to manage its library items. Currently, there are Books, DVDs, and Journals in the library. The library provides the interface for the user, while the catalogue manages the Library_items. """ __author__ = "Jack Shih" __version__ = "Jan 2021" from catalo...
[ "pyopoly@gmail.com" ]
pyopoly@gmail.com
06011b747332a9f2b29aab6c03bc753428c460db
7b97efa9ffedc26fbc08fc104b57977286f0e8d4
/kekangpai/testCon/modelbackup.py
b0ca6b65d28e611a97e3108c4ff983dc4a677541
[ "Apache-2.0" ]
permissive
fluxguardian/BandHelper
fbb9042e74d5ab64ae0bd86c1c2506c17dc03385
ce8ca3094c6cc4b05b213766710ba6263f41705d
refs/heads/master
2021-12-16T07:10:33.702094
2016-10-03T16:00:42
2016-10-03T16:00:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,641
py
#!/usr/bin/env python # coding=utf-8 from __future__ import unicode_literals from django.db import models # Create your models here. ''' 学院派会告诉你在设计的时候把应该有的约束都加上 而实践派得出的结论是主键一定加,非空约束尽量加,外键最好依赖于程序逻辑,而不是数据库,从而更好的拥抱变化,快速响应,数据库也会有相对较好的性能 ''' #以下是学生登录信息表 #主要信息有 1.账号 2.密码 class Account(models.Model): username = models...
[ "caterpillarous@yahoo.com" ]
caterpillarous@yahoo.com
26bf22618e89371f9af5e040aadbccffb9bca7a2
6ca4bc648423ef62c478f90f9b179a7b63fca88d
/parsing.py
74df04274cd5bf15bfd146a707f67a6bd8fcc2bb
[]
no_license
ms747/CompilerBasics
b3de9fc27b14a9e88aab41de98aad6d25f3a7f77
b4a4bf5e16b47e7c1fa65138d0098414cc08b011
refs/heads/master
2023-06-03T22:22:22.648728
2021-06-22T05:03:28
2021-06-22T05:03:28
378,441,233
0
0
null
null
null
null
UTF-8
Python
false
false
2,440
py
from types import * class PrimaryExpression: def __init__(self, value): self.value = value def execute(self): return int(self.value) def __repr__(self): return f"Primary({self.value})" class BinaryExpression: def __init__(self, left=None, op=None, right=None): ...
[ "mayur.shah.ha@gmail.com" ]
mayur.shah.ha@gmail.com
f6faef782668bf45415ed729616955efd386dc7f
29bd0e9b5bdef7e2b4ff79edda3be258d5bde63c
/xonsh/lazyasd.py
b5001b7814baea53efdc285b84123993cb7d5545
[ "BSD-2-Clause" ]
permissive
xonsh/xonsh
4dec5e4c14a4a82f81277a89d8ab6091869fc29e
60f0145ed893cb73bbfcf336c448238981010d41
refs/heads/main
2023-08-31T03:37:57.786839
2023-08-23T15:30:20
2023-08-23T15:30:20
29,620,400
6,374
684
NOASSERTION
2023-09-11T02:52:37
2015-01-21T22:05:27
Python
UTF-8
Python
false
false
11,288
py
"""Lazy and self destructive containers for speeding up module import.""" # Copyright 2015-2016, the xonsh developers. All rights reserved. import builtins import collections.abc as cabc import importlib import importlib.util import os import sys import threading import time import types import typing as tp __version_...
[ "noreply@github.com" ]
noreply@github.com
56aceb4af73c59684df5c5acbffce3711e16c735
abcfd07772ce75f34e51592189c29cf84d1a3611
/flask/lib/python3.6/site-packages/sqlparse/utils.py
a620f2d3c17fbfba4d56e6a4d8608c27420f4868
[]
no_license
yuhaihui3435/p_mc
66d89bcccf214e53729b26a0f80ddee8797e9e3e
3039a5c691b649fc88e941a2553b1a7e0aac2a0a
refs/heads/master
2021-06-28T18:52:00.111385
2017-09-15T00:26:02
2017-09-15T00:26:58
103,524,396
0
0
null
null
null
null
UTF-8
Python
false
false
3,490
py
# -*- coding: utf-8 -*- # # Copyright (C) 2016 Andi Albrecht, albrecht.andi@gmail.com # # This module is part of python-sqlparse and is released under # the BSD License: https://opensource.org/licenses/BSD-3-Clause import itertools import re from collections import deque from contextlib import contextmanager from sql...
[ "125227112@qq.com" ]
125227112@qq.com
b4de665b7d94aa6443a4f386f32ee3a24d3910ca
8ce3e82b27aac4f4e32cc603fa68dcfde9c59182
/Bitwise Operations On Images/opencv_bitwise_operations_on_images.py
b84f2c7909ce31b81f910cb02e1012bfe8bb64ac
[ "MIT" ]
permissive
pasanjg/opencv-examples
f0c485bed6f5ffa0d5024a7df2698e728bff05bd
08a155c3aac513749efc47559e6518f96df884e6
refs/heads/master
2022-08-05T14:37:10.843236
2020-08-29T07:24:44
2020-08-29T07:24:44
220,072,768
0
1
null
null
null
null
UTF-8
Python
false
false
641
py
import cv2 import numpy as np image1 = np.zeros((250, 500, 3), np.uint8) image1 = cv2.rectangle(image1, (200, 0), (300, 100), (255, 255, 255), -1) image2 = cv2.imread('../images/image_1.png') ''' logical operators affecting images 0 - black 1 - white ''' bitAnd = cv2.bitwise_and(image2, image1) bitOr = cv2.b...
[ "44201430+pasanjg@users.noreply.github.com" ]
44201430+pasanjg@users.noreply.github.com
b08f5c7bbd7f523be6cfef0c157c99b311bb5f9f
952f99fbd9315330db5cfed78d8f72630bab5353
/GetRepo.py
05413a19eae247c7c8f316394bc67c1ccd74f7c3
[]
no_license
joncucci/GitHubAPI567
f2bc15ea2665db3e5ec205953bdda030aefc1cc6
d7299cbef2425b278aa03784c3b21edee5a4945f
refs/heads/master
2023-08-13T20:43:36.915701
2021-10-02T20:50:17
2021-10-02T20:50:17
412,906,511
0
0
null
null
null
null
UTF-8
Python
false
false
1,069
py
import json, requests base = 'https://api.github.com/' token = 'TOKEN HERE' ''' params = {"state": "open",} headers = {'Authorization': f'token {token}'} ''' ''' Add to base: For list of repo names: users/<ID>/repos For list of commits: repos/<ID>/<REPO>/commits ''' def get_repos(id): output = {} # If AP...
[ "joncucci@gmail.com" ]
joncucci@gmail.com
5abafeb3d0abb364a805a5cd2cbba9da567b31f4
4cda8e4469986f19139f55cb6d3292e0845b9ba7
/TrabalhosEDA3/TrabalhosEDA3/wsgi.py
6563788c34103006700f826e4cf23257d6bd65bf
[]
no_license
EDAII/Lista3_2018-02-Allan_Filipe
23c16692cc9c95828c322164e21a1c0ca74eee70
559991baea12fb4fb55c0a8c239640a919239059
refs/heads/master
2020-03-28T08:25:26.652996
2018-10-19T05:26:18
2018-10-19T05:26:18
147,964,240
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
""" WSGI config for TrabalhosEDA2 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
[ "filipekn4@gmail.com" ]
filipekn4@gmail.com
0722aa44e85b471cfd925fb93c26b6a67d44e482
80297e868e57016d287e1db7caa416ade83343c4
/main.py
b18274fd4b8835d9d22b00aed54e9c4b0d4b6ba1
[]
no_license
felix-dumit/superheroes
72356b7019b207308118e5b0533f02df59907053
66047823eb20a7f16f54e6d564546ac44eb2868e
refs/heads/master
2021-01-21T09:06:34.759967
2014-12-15T19:09:49
2014-12-15T19:09:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,819
py
from character import heroes, villains, shared_comics, VillainTeam, HeroTeam import multiprocessing import array import random import sys from deap import algorithms from deap import base from deap import creator from deap import tools cache_teams = {} def convertChromosomeToHeroTeam(chromosome): heroIds = tupl...
[ "felix.dumit@gmail.com" ]
felix.dumit@gmail.com
835b38ff4be5c8d71d5f106637f5c64db8fb4247
6424a1cd8709269046ecbd54220ef524bd544a2a
/work_compute.py
ce00e131fcbbc7522d9677d168df632243ce2d4d
[]
no_license
elaynejones/ml-practice
e3d62100c5c5aa1b7c5df38828f7ab1649970488
83a891114af018c4c6389c39775c0765eacedb3a
refs/heads/main
2023-04-26T22:21:40.149225
2021-05-19T19:59:42
2021-05-19T19:59:42
349,521,911
0
0
null
null
null
null
UTF-8
Python
false
false
12,859
py
#make enviro from specification file name: py_env dependencies: - numpy - pandas - scikit-learn - pip: - azureml-defaults #then use this to make ML enviro from azureml.core import Environment env = Environment.from_conda_specification(name='training_environment', ...
[ "noreply@github.com" ]
noreply@github.com
1a33230c8da40ee45fc479fbd78ae2b2dbd5b3a0
34d67d4cde542ee053911aa7298be26243263b44
/code/tree_model_class.py
2440ef2ea0cfeebb042d337dc15c80cbb3b612b9
[]
no_license
wackydodo/sphinx
57f3d3d47a50e94c0b1b5b474c82290b7173cfbf
50c0eeb2d331aa66ab65a0af16ecfae74d23df61
refs/heads/master
2021-01-23T04:13:40.669430
2017-03-25T21:58:22
2017-03-25T21:58:22
86,174,232
0
0
null
null
null
null
UTF-8
Python
false
false
5,093
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np class TreeModel: def __init__(self, decision_times=[ 0, 15, 45, 85, 185, 285, 385],\ sub_interval = 5, prob_scale = 1): """ Here we only consider the decision nodes and periods. Since the last period is not unce...
[ "wackydodotrade@gmail.com" ]
wackydodotrade@gmail.com
75f33a50056f2286b145c44e8361185d4ff87561
16b4229a925a4e3b0e760f401d80c4d2adb793a9
/models/real_nvp/coupling_layer.py
d8b2581f2febe1eaab92fecde288e1f539fd103a
[ "MIT" ]
permissive
ahmadkhajehnejad/real-nvp
4fc5a6a5f23fe076304b5652277a8de70ab4f068
15f51eb91388fc232334123ac11467c4d3aa3d33
refs/heads/master
2022-08-11T09:37:32.353605
2020-05-18T12:24:39
2020-05-18T12:24:39
261,586,549
0
0
MIT
2020-05-05T21:25:51
2020-05-05T21:25:50
null
UTF-8
Python
false
false
3,919
py
import torch import torch.nn as nn from enum import IntEnum from models.resnet import ResNet from util import checkerboard_mask class MaskType(IntEnum): CHECKERBOARD = 0 CHANNEL_WISE = 1 class CouplingLayer(nn.Module): """Coupling layer in RealNVP. Args: in_channels (int): Number of channe...
[ "chutechristopher@gmail.com" ]
chutechristopher@gmail.com
075f8c0bc9d38fd5662cb22b44b11e17283355dc
c5a7760e1cbe3b23bfc49ce3e6cde8bb780f01f8
/Pages/HomePage.py
b9643e9b0bae044181fc92f57c81d5d00985a740
[]
no_license
alipala/Facebook
e9a0b78e5c38c40da47f245b1a71b28e56773b82
73d23ff3c025a95537797df869d24b5bc7220faf
refs/heads/master
2022-07-11T19:55:21.873809
2019-11-14T20:23:30
2019-11-14T20:23:30
221,695,682
1
1
null
2022-06-21T23:27:08
2019-11-14T12:44:51
Python
UTF-8
Python
false
false
682
py
from Locators.home import HomeLocators class HomePage: def __init__(self, driver): self.driver = driver self.bookmark_icon_left_xpath = HomeLocators.bookmark_icon_left_xpath self.user_navigation_label_id = HomeLocators.user_navigation_label_id self.logout_span_xpath = Hom...
[ "ali.pala@siemens.com" ]
ali.pala@siemens.com
bbad3a80e5318dbecae9f042e4b7132ef89bddb3
d5283aace127506164d4faa243746c2512c6c855
/conc_venv/bin/pip3
f8e3aea05ae5b8db83898b619acf8dce5c680a40
[]
no_license
roger254/Concurrency_Python
b70d2f93ed5cb53f3dfd239782c9abf1e0352f3d
d38e468bdb555e0ce67743d1c95c87bca0884eaf
refs/heads/master
2020-04-20T18:22:59.017474
2019-02-04T02:42:52
2019-02-04T02:42:52
169,019,463
0
0
null
null
null
null
UTF-8
Python
false
false
412
#!/home/roger/PycharmProjects/Concurrency2/conc_venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0...
[ "rogerbrian.mutua@gmail.com" ]
rogerbrian.mutua@gmail.com
ca7fe2126b290de9c15044feaa402731564a284c
846506a6c9023a21ff831c637f71cffd3b0aab62
/Python/X_Archive/AddLabelSplits.py
585014bdeeaa59c66a2eac711aee31123872d4e2
[]
no_license
emonson/Weinfurt_DocFreq
b90378e57af7c17d32c72e5924a1b9af9f0f6584
1c9082d8ce4c0d002b6a65d446421840e24435fd
refs/heads/master
2020-05-29T21:05:01.397101
2015-01-22T13:53:53
2015-01-22T13:53:53
29,681,004
0
1
null
null
null
null
UTF-8
Python
false
false
1,753
py
# After changing data labels to new dataXXX scheme, automating # some of the sentence splits based on the Datamap...xls sheet import xlrd book = xlrd.open_workbook('Datamap with Sentence IDs.xls') sh = book.sheet_by_index(0) ids = sh.col_values(0,12) sentences = sh.col_values(1,12) f = open('LongVer_newLabelsPrelim...
[ "emonson@cs.duke.edu" ]
emonson@cs.duke.edu
7f77fb3562993641b617a5b8f28eb60e5b4690d8
615f83418985b80f2a2a47200acb08dfa9418fc7
/identities/widgets.py
f59c91e055afcef5e61baf70b159870a655016a6
[ "MIT" ]
permissive
alejo8591/maker
a42b89ddc426da326a397765dc091db45dd50d8e
001e85eaf489c93b565efe679eb159cfcfef4c67
refs/heads/master
2016-09-06T19:36:01.864526
2013-03-23T06:54:21
2013-03-23T06:54:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
# encoding: utf-8 # Copyright 2013 maker # License """ Identities module widgets """ WIDGETS = {'widget_contact_me': {'title': 'My Contact Card', 'size': "95%"}} def get_widgets(request): "Returns a set of all available widgets" return WIDGETS
[ "alejo8591@gmail.com" ]
alejo8591@gmail.com
659cd49c246a6729ee4b3982bb58bd6f5c238292
60ba77dc07ad36382f0d5539690ef14b9f7ea01b
/ui/towerView.py
2f4c9f5d8860696a0f297a4f752fe956d334b7a6
[]
no_license
shubhamrb/Air_Traffic_Control_Model
ed8ddf2d5a75371dfec26e1d9736ba9c69996f88
652a53f564b336716e13e03b3225f25e21bd77aa
refs/heads/master
2020-12-15T17:52:46.669281
2020-01-20T22:33:50
2020-01-20T22:33:50
235,192,493
0
0
null
null
null
null
UTF-8
Python
false
false
7,979
py
from PyQt5 import QtCore, QtGui, QtWidgets class Ui_towerViewControllerPane(object): def setupUi(self, towerViewControllerPane): towerViewControllerPane.setObjectName("towerViewControllerPane") towerViewControllerPane.resize(260, 259) self.verticalLayout_2 = QtWidgets.QVBoxLayout(to...
[ "noreply@github.com" ]
noreply@github.com
ca56defa3ec240d8936c4be4212107c56fbe1192
ad3193043f9a4cd37c960e871b112d0c3868bcc8
/tests/test_ai.py
e0dc3b032b7472f308a7bca0496e0ae7406b455b
[]
no_license
bibaijin/iwallpaper
3f7eccdf734c79c56bc39b8b64a393d92a68d8e4
e391b026a4a36b5dbec473df06e03a79676147c6
refs/heads/master
2021-05-04T14:25:46.140910
2018-03-18T08:52:05
2018-03-18T08:52:05
120,200,810
0
0
null
null
null
null
UTF-8
Python
false
false
2,310
py
import numpy as np import iwallpaper.ai as ai from iwallpaper.config import CONFIG def test_rank_to_y(): assert np.equal(ai.Rank(1).to_y(), [1, 0, 0, 0, 0]).all() assert np.equal(ai.Rank(2).to_y(), [0, 1, 0, 0, 0]).all() assert np.equal(ai.Rank(3).to_y(), [0, 0, 1, 0, 0]).all() assert np.equal(ai.Ran...
[ "bibaijin@gmail.com" ]
bibaijin@gmail.com
5994ea332aec109e18d01ba8790f3aae2bcf867c
5c863d7b58204dfbe7ecb9bfa24085cd2165967c
/Chapter01/4. importing_spss.py
ce6aa1f2f08f2d57e563fdd52ccb16cd863d6d7b
[ "MIT" ]
permissive
karyshev63rus/Python-Data-Cleaning-Cookbook
4b34f9caf2c9415c137418d866b2dab2cdf4420d
fc86d182217ae10e40f0ea035084e3e9d638bed6
refs/heads/master
2023-04-17T08:57:37.364738
2021-05-04T17:38:50
2021-05-04T17:38:50
364,278,521
0
0
MIT
2021-05-04T14:12:36
2021-05-04T14:12:35
null
UTF-8
Python
false
false
2,533
py
# import pandas, numpy, and pyreadstat import pandas as pd import numpy as np import pyreadstat pd.set_option('display.max_columns', 5) pd.options.display.float_format = '{:,.2f}'.format pd.set_option('display.width', 75) # retrieve spss data, along with the meta data nls97spss, metaspss = pyreadstat.read_sav('data/nl...
[ "noreply@github.com" ]
noreply@github.com
85a7bbd35a77a65a53e0216db3dc924d383c8b52
e38b038286ebc8f5ee9f851482dc33d119e8bd6f
/training_3D/test_confusion_matrix.py
d03e51b965f1892cdb934c417ad3eb892119c2cb
[]
no_license
leflemluc/MRIs
50fb7adbdfec7f377eac5f2c77cff0b110465e5c
a66cbdf899e9cdce002f53689f55aaa7c13985a2
refs/heads/master
2020-04-01T19:37:48.873881
2019-09-13T03:58:11
2019-09-13T03:58:11
153,563,624
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
from mlxtend.evaluate import confusion_matrix from mlxtend.plotting import plot_confusion_matrix y_target = [1, 1, 1, 0, 0, 2, 0, 3] y_predicted = [1, 0, 1, 0, 0, 2, 1, 3] cm = confusion_matrix(y_target=y_target, y_predicted=y_predicted, binary=False) import matplotl...
[ "leflemluc@gmail.com" ]
leflemluc@gmail.com
a7966bdb82ab09e9f62e7860c2e8b0923662df52
6b8396dd578fe205ee26d0bc58238c8115d7852d
/q24.py
22483e75f66ffa9323a359d97cb220db1d595f07
[]
no_license
mayuriindalkar/loop
702bc7890f086275336c4e4edc4fb846d829fb81
fba215fc820c7ee8f763e984d9475c2682b13125
refs/heads/main
2023-08-04T05:58:50.481644
2021-09-16T05:28:52
2021-09-16T05:28:52
407,032,578
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
# num=int(input("enter the number of row : ")) # for i in range (num): # print("*"*num) num=int(input("enter the row number : ")) i=0 while i<num: print("*"*num) i=i+1 print()
[ "noreply@github.com" ]
noreply@github.com
9f584eef1e16c099b302b46700d7f5656fb4a836
740b08a6d070448ba8231256be0570fc47849f8a
/train.py
e57c39c3d94fc84dbb8c3832887efd4bb60b25ad
[ "Apache-2.0" ]
permissive
jingmouren/informative-outlier-mining
2b7ffb249f66a4e3355d6adbd4225f82948b9316
760821f4aadaebff801ea45e5d6fd2a59c74f91f
refs/heads/master
2023-01-05T19:59:53.481628
2020-10-23T21:36:45
2020-10-23T21:36:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,415
py
import argparse import os import sys import shutil import time import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.nn.functional as F import torch.optim import torch.utils.data import torchvision.transforms as transforms import torchvision.datasets as dataset...
[ "jfchen666@gmail.com" ]
jfchen666@gmail.com
f3ecbb370628cb6c14b6a0b65d0bc05ac04ea0b2
4bf0bfd84cee17d0b033be133c7e28fa8d291e82
/electra/transformers/configuration_utils.py
668892fa6655113f69d0cab8d2857cbcb7183415
[]
no_license
TeamRaccoon/SentiReview
3234be753d4e0296f624aff6b387079ac071a34c
f7a1ebc75378a49bb51ef4c523297fe269f5aff2
refs/heads/master
2023-06-05T06:32:38.424705
2021-07-03T06:07:24
2021-07-03T06:07:24
302,822,241
0
0
null
null
null
null
UTF-8
Python
false
false
27,271
py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
[ "comma1010k@gmail.com" ]
comma1010k@gmail.com
99d075743e1c9db0111830ca76779589c40455a2
80abcfdaddd40690a4b8776e58b1f1cbdd0c8c5b
/djangoSite/urls.py
38b896bf51bf71c00197bb08d548dbcbe7e7e6eb
[]
no_license
Serhii999/Django_HW
240167faf5236994b6c163190211b5229ae3026a
0486119885d7c17cc23e3a867af7b591a8c44d6e
refs/heads/master
2023-03-27T18:14:44.920304
2021-03-26T13:52:42
2021-03-26T13:52:42
351,797,429
0
0
null
null
null
null
UTF-8
Python
false
false
798
py
"""djangoSite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
[ "serhii.korzhov@nure.ua" ]
serhii.korzhov@nure.ua
9bba5e140d5ac0cf928119e0caad231cb61179ca
3ac1f4950f36cbea3008b3919800e5f035a2e4c6
/hydra-configs-torch/hydra_configs/torch/nn/modules/loss.py
1d81b154e79d53bab4aeeefa51dc51a0cd8de56f
[ "MIT" ]
permissive
isabella232/hydra-torch
014bd5b82966a40012b247c676edfeb414477f6c
60d5e42367fae297441c06220bf2f23b23225124
refs/heads/master
2023-04-06T12:54:42.163746
2021-04-08T20:59:25
2021-04-08T20:59:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,188
py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # Generated by configen, do not edit. # See https://github.com/facebookresearch/hydra/tree/master/tools/configen # fmt: off # isort:skip_file # flake8: noqa from dataclasses import dataclass, field from omegaconf import MISSING from typing import...
[ "rosario@cs.washington.edu" ]
rosario@cs.washington.edu
89f0fd4e8dad97f7e54f4c23592f05c464894cde
1531a308000b714b070f815b34ab8648f60ce142
/wrapper.py
8d93de01e7ca4d33f8ebf0040df772cada70f009
[]
no_license
jimkeir/EDProxy
5f03337ca49129b878be9f7adcf3a45b42ba4a18
60970c0878970b1d36f79f95f764e7d771772832
refs/heads/master
2020-03-20T23:54:31.520067
2020-01-14T13:25:14
2020-01-14T13:25:14
137,869,170
12
1
null
null
null
null
UTF-8
Python
false
false
2,082
py
import socket, select import threading import logging class SocketWrapper(object): def __init__(self, sock): self._log = logging.getLogger("com.fussyware.edproxy") self._sock = sock self._sock.settimeout(60) self._lock = threading.Lock() self._closed = Fals...
[ "weston.boyd@hypori.com" ]
weston.boyd@hypori.com
b3bc5ef4c76800e801a5f4cd561bb35cb8d48529
f97f38fe005ad93838957af6d8c7fa3bea4af0aa
/DHT22/dht22-rpi.py
4a1a34224479ff2223247d670aa2d0fbcbb631cb
[]
no_license
p4p4/rpi-stuff
317f48ba3b5b753b742f4f5d0353b21e8e9e8ccd
c44efb92e12022559e3dc24956b134435ac2891c
refs/heads/master
2021-07-08T06:23:41.498734
2017-10-08T09:23:54
2017-10-08T09:23:54
106,163,742
0
0
null
null
null
null
UTF-8
Python
false
false
819
py
import thingspeak import time import Adafruit_DHT channel_id = 12345 # PUT CHANNEL ID HERE write_key = 'ABCDEFGHIJKLMNOPQE' # PUT YOUR WRITE KEY HERE read_key = 'ABCDEFGHIJKLMNOPQE' # PUT YOUR READ KEY HERE pin = 4 sensor = Adafruit_DHT.DHT22 def measure(channel): try: humidity, temperature = Adafrui...
[ "patrick@bulme.eu" ]
patrick@bulme.eu
62b12fd65ce14e281a3dbf1d0319ff01e6f78184
5513bf0eccd4fda599e6123e3bbde58d4151cd0f
/data/read_newdata.py
ba3542f2f63ff2a96c69218d8d24bc02967b48e2
[]
no_license
houweidong/CubeModel
8bf035cc25314faae02be404257287b4451f62ea
4e3a81358e21785e7aa167c3bc3f42f637a78563
refs/heads/master
2020-05-21T00:08:52.628923
2020-03-03T21:13:51
2020-03-03T21:13:51
177,306,735
0
0
null
null
null
null
UTF-8
Python
false
false
4,773
py
from torch.utils.data import Dataset import os from data.attributes import WiderAttributes as WdAt, Attribute, AttributeType as AtTp from torchvision.datasets.folder import pil_loader import json from data.image_loader import opencv_loader class NewdataAttr(Dataset): def __init__(self, attributes, root, subset, m...
[ "377473270@qq.com" ]
377473270@qq.com
9fa1eef441427dbc31a6b3821675d6bfcc0a7512
da8adef15efbdacda32b19196b391f63d5026e3a
/ITMO/ML/Lab5/main.py
5fbef8d876250cd8a74ae41ce03cc26e95b369ec
[]
no_license
rubcuadra/MachineLearning
05da95c1f800e6acbce97f6ca825bd7a41d806a6
aa13dd007a7954d50586cca6dd413a04db18ef77
refs/heads/master
2021-03-19T17:33:14.080691
2018-10-19T23:43:27
2018-10-19T23:43:27
100,544,903
8
1
null
null
null
null
UTF-8
Python
false
false
4,440
py
''' You should implement the feature selection algorithm based on the utility metric (the Filter method). Implement several utility metrics and compare their performance at classification tasks. https://en.wikipedia.org/wiki/Feature_selection https://machinelearningmastery.com/an-introduction-to-feature-selection/...
[ "rubcuadra@gmail.com" ]
rubcuadra@gmail.com
ee2e725f8eb1badf3fc19b55454680019d9ee6f2
186793e98e490db4e1eb864a417805766b94bf38
/rel-proj/learn/test.py
4e068870117afd6caa90331e7b72f7e03bfbd08c
[]
no_license
Lizzy-Gallagher/Scene-Retrieval-IW2016
2094ac4c82a1ff9a85dd7641c1608dbe5f73c6ba
85726e98ad94941619041f025b48e32088a1d68d
refs/heads/master
2021-06-16T11:41:04.590051
2017-05-09T02:15:01
2017-05-09T02:15:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,772
py
from sklearn import svm import load ## ## Command-Line Argument Parsing ## import argparse parser = argparse.ArgumentParser() parser.add_argument("input_filename", help="the input filename") args = parser.parse_args() input_filename = args.input_filename if ".arff" not in input_filename and ".csv" not in input_fil...
[ "erb2@princeton.edu" ]
erb2@princeton.edu
7f05ece85a7ae1f1af0650328505e4f7eea12b8c
eaf3922fa5589b0ffbf39d605ec184518ca51b08
/craigslist_sample1/craigslist_sample1/items.py
85280b79fe3cb5bdada96394909d9a31c8a01025
[]
no_license
thomasalvatran/Jan2018Scrapy
0b51bd38bae457974a682b884331b8aa02ce5fc7
5defbfb5624737dbdcda6d63551e3aed6767fffd
refs/heads/master
2021-05-12T11:57:57.481378
2018-01-14T16:14:11
2018-01-14T16:14:11
117,402,532
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
#!/usr/bin/Python2.7 # -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html from scrapy.item import Item, Field class CraigslistSample1Item(Item): title = Field() link = Field()
[ "thomasalvatran@gmail.com" ]
thomasalvatran@gmail.com
fc03483fd51af21d7011aefcdb15b9eaf9d4d645
349dadbf45b7c12a3fe41c5e0421c0488b679919
/transformers/tests/test_modeling_longformer.py
2d30bd3ba4bcd77d8802388c40bc455a2be55d2c
[ "Apache-2.0", "BSD-3-Clause", "CC0-1.0", "LicenseRef-scancode-unknown-license-reference", "Unlicense" ]
permissive
salesforce/CodeRL
c772e408bac690527759f416ea22add4c97e5bec
51db4ff983d5376e62b9e7eba150316a651c80d9
refs/heads/main
2023-08-18T18:38:02.740995
2022-11-18T16:14:28
2022-11-18T16:14:28
508,912,853
412
52
BSD-3-Clause
2023-08-31T07:51:27
2022-06-30T02:54:36
Python
UTF-8
Python
false
false
30,157
py
# coding=utf-8 # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "hungle@salesforce.com" ]
hungle@salesforce.com
f0c1e3916520b07eb78e33fe42e78258ce3f0c39
c9febf3177a0379f507a74fce396c3f148f4d56f
/setup.py
eee3ef1520f45a00ef4583ef4001ad441214ff74
[ "Apache-2.0" ]
permissive
NeuroArchitect/lm
cf0d46339cc4115f5b59291ca2d7b5defca9746c
036dcd9a49aa4f5b8b872f4e3a3b8821cbb0b060
refs/heads/master
2022-12-16T12:45:03.724935
2020-09-06T19:40:28
2020-09-06T19:40:28
292,129,927
0
1
Apache-2.0
2020-09-06T03:05:55
2020-09-01T23:29:54
null
UTF-8
Python
false
false
3,765
py
#!/usr/bin/env python """ Simple check list from AllenNLP repo: https://github.com/allenai/allennlp/blob/master/setup.py To create the package for pypi. 1. Change the version in __init__.py, setup.py as well as docs/source/conf.py. 2. Unpin specific versions from setup.py (like isort). 2. Commit these changes with the ...
[ "mistobaan@gmail.com" ]
mistobaan@gmail.com
f838211f09a1c537c0773edbbd1550086a9da546
2dbcea415ce05b32514e7c67dc8131cce32dfb13
/data_collection/data/gucco/metaread.py
d1534ad9bf639880ad12c98ef90290727e4a615c
[]
no_license
WeiXie03/quiXtinguish
f881ce6df2e15c6adffa2e6616998b7cb1061789
54f217a8969afa2aafb3b8bf158fc2e232670743
refs/heads/master
2022-04-29T20:46:34.624528
2022-04-08T03:09:38
2022-04-08T03:09:38
169,194,910
0
0
null
null
null
null
UTF-8
Python
false
false
89
py
import pickle with open('./metadata.dat', 'rb') as metaf: print(pickle.load(metaf))
[ "cheng.k.xie@gmail.com" ]
cheng.k.xie@gmail.com
fe1390de1b1e53874e1df6d00e3bfab571876848
b2cc40d616418064b47f6b99739a076439020e7f
/detection/data_prepare/__init__.py
e52b7124af194645d717a532825f166dc6a7fac6
[]
no_license
lhkwok9/covid_explainable_cnn
b9cef63072d09e6d2367b38093b8f6ab627f141c
06b3c5add832f5e153909a4534f2bed13d56edbc
refs/heads/main
2023-07-18T12:42:53.255773
2021-09-08T07:25:33
2021-09-08T07:25:33
404,250,685
0
0
null
null
null
null
UTF-8
Python
false
false
29
py
from .data_prepare import *
[ "noreply@github.com" ]
noreply@github.com
0e5f55abcdb9c2711452c8f7fefe4f9e6508614e
5a68f0da6d679626cabca3eb3f85012d85eb8949
/gameMenus.py
8a30c925e0afd61aab3021fbc5c606220ce2fd62
[]
no_license
sycombs/OfficialFortranFanclub_KeyboardHero
377ef8866b2f8baff7cdeb0595e36a37bd58b8fd
4f1e9f8e0a442c2a7855728519ba429f44abb0d7
refs/heads/master
2020-03-31T10:27:37.894265
2018-12-07T03:14:32
2018-12-07T03:14:32
152,135,448
0
1
null
null
null
null
UTF-8
Python
false
false
3,819
py
"""@package docstring gameMenus.py creates and manages the menus when opening the game, and is in charge of passing information to the gamelogic.py. Specific tasks include operating the main menu, song selection menu, and mode menus, selecting of songs and difficulties, and starting the gameLogic with the select...
[ "nathan.a.pelletier@gmail.com" ]
nathan.a.pelletier@gmail.com
fe74a07943cbbc198295913a72e0c97901d333e8
4bbb67ae8d51c29641b153371e1f404b9af404f0
/tetris/tetris.py
d54e00fbee9dd349be46d1875ea764db646c4d88
[]
no_license
timurbakibayev/python_advanced
e328dd3b26d4b94a05e9218be483e97b149fa8bf
da7beace64e2c17c447efec314d757f8181b6acf
refs/heads/master
2023-01-30T04:07:19.296989
2020-12-08T12:47:34
2020-12-08T12:47:34
291,979,925
1
4
null
null
null
null
UTF-8
Python
false
false
4,905
py
import pygame import random pygame.init() colors = [ (0, 0, 0), (120, 37, 179), (100, 179, 179), (80, 34, 22), (80, 134, 22), (180, 34, 22), (180, 34, 122), ] transparent = (255,255,255,40) figures = [ [[1, 5, 9, 13], [4, 5, 6, 7]], [[4, 5, 9, 10], [2, 6, 5, 9]], [...
[ "timurbakibayev@gmail.com" ]
timurbakibayev@gmail.com
805ab78f8d4034cd64e19a00ebcca498dc8e2775
b14a19612f2a24f9ee957099442bd87450a5db49
/ToDo/ToDo/urls.py
ff04977e8fd2f70aa174504c4376dc4639ccd161
[]
no_license
ShahzaibSE/Django_ToDo_App
dc92ea7517e02f2532812d13ae89d6751b5220c2
de4c50e9b066d977f3eda204f3158243299ca4f5
refs/heads/master
2021-01-21T11:14:52.545816
2017-03-01T09:36:32
2017-03-01T09:36:32
83,537,057
0
0
null
null
null
null
UTF-8
Python
false
false
832
py
"""ToDo URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based...
[ "shahzaibanalyst@outlook.com" ]
shahzaibanalyst@outlook.com
83fc41a316c477ca7cd45032a881ba26c2dec98e
7cb9719d2ad107059a25c6ca9d3e51dac28271b5
/ConstructBTfromInandPostTraversal.py
ad161bfb6fee7f7a7052c8ec191fb62d7d8cbfa2
[]
no_license
yibeihuang/LeetCode
1aeb3814a1be43230a0080deb6d4271072c14902
853a6257e17f79a816f5e877843a9409f82a8c13
refs/heads/master
2021-05-03T06:47:37.728070
2017-08-31T01:35:20
2017-08-31T01:35:20
69,592,121
0
0
null
null
null
null
UTF-8
Python
false
false
1,570
py
__author__ = 'yibeihuang' # Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def buildTree(self, inorder, postorder): """ :type inorder: List[int] :type posto...
[ "yh2791@columbia.edu" ]
yh2791@columbia.edu
eaf03016d1fdc5b96c893ec373ed203f150d9d9f
19df633c59e0b985d6f7fe8f9ee5cf8234ab7322
/get_concern_file.py
3e59bf274ad04b3bbbe207c2e0cd6532772163b8
[]
no_license
Lennethe/github_api
a14e04506cb97db3b4b0f72088a9691a0fa11233
40fead9674436bc174b58318ec482548a7576219
refs/heads/master
2022-12-12T08:27:10.799536
2020-09-03T09:42:31
2020-09-03T09:42:31
290,681,612
0
0
null
2020-09-03T09:42:32
2020-08-27T05:10:57
Python
UTF-8
Python
false
false
2,137
py
import requests import json import USER def url_to_json(GITHUB_URL, GITHUB_TOKEN): response = requests.get(GITHUB_URL, auth=('', GITHUB_TOKEN)) return json.loads(response.text) def get_pull_numbers(GITHUB_URL, GITHUB_TOKEN, state="all"): GITHUB_URL += "pulls?state="+state response = url_to_json(GITH...
[ "41440576+Lennethe@users.noreply.github.com" ]
41440576+Lennethe@users.noreply.github.com
d63654f3fa9af4278647cce6e1d80a3eade43c50
032064ca629aa84e6ef831e707da7adae5a3c2a0
/psroadmap/bruteforce/1748.py
61e20ef71b98119f89cfbcb8badbc6f6f923c9c8
[]
no_license
skfo763/Problem_Solving
6a53fbb2fa2a575e10401460638231bebb109057
cdad27b493e941d7938f29baf88ceaae4cbffb87
refs/heads/master
2021-08-07T05:29:09.968394
2021-07-12T02:37:30
2021-07-12T02:37:30
205,546,650
1
0
null
null
null
null
UTF-8
Python
false
false
343
py
import sys sys.setrecursionlimit(100000) input = sys.stdin.readline def f(num, k): if k == 0: return 0 else: if num >= 10 ** k: val = 9 * (10**(k-1)) else: val = num - (10 ** (k-1)) + 1 return f(num, k-1) + (k * val) n = input().rstrip() len_n = len(n) pr...
[ "scy7351@naver.com" ]
scy7351@naver.com
fe5da088af2c6a323c9f38e0f3bba0a9f119a729
251fd82363aa498daf65db264cf8d95e67d9bafa
/2 chapter 4.py
66c1e0599469f3078c13994e32e85f15c26cda7e
[]
no_license
kuncara15/Chapter-4-PROTEK
470a2888f957be14b619924ef98790a4cc24dbdd
df10be31c80b63dc47ff866602e8d42b96dee6f5
refs/heads/main
2023-08-15T20:43:46.297304
2021-10-10T14:01:53
2021-10-10T14:01:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
125
py
Jarak = 795 #bensin 1 liter mampu 12 km Bensin = Jarak / 12 print('jadi banyak bensin yang dibutuhkan ',Bensin,' liter')
[ "noreply@github.com" ]
noreply@github.com
547e0693292107da53eae3973d593735371befe6
bd9f9d3937f7ea8a825e1d9b61fb5493f88b4653
/python-prototype/data/id.py
46273c41b1385dad0a7b12dfc89ab519f9144b87
[]
no_license
tea2code/fantasy-rts
ba3b0b73975d4c6d4c986a36f11002073b40995f
c38b43edb7ec54f18768564c42859195bc2477e4
refs/heads/master
2021-01-20T02:48:03.999913
2015-02-07T10:12:10
2015-02-07T10:12:10
15,477,479
0
0
null
null
null
null
UTF-8
Python
false
false
2,336
py
""" ID constants. Constants with _ as prefix are no IDs but used for validation... """ # Actions. ACTION_CURSOR_NORTH = 'action.cursor_north' ACTION_CURSOR_SOUTH = 'action.cursor_south' ACTION_CURSOR_WEST = 'action.cursor_west' ACTION_CURSOR_EAST = 'action.cursor_east' ACTION_SCROLL_NORTH = 'action.scroll_north' ACTI...
[ "stefan4875@gmail.com" ]
stefan4875@gmail.com
eeed637ae329962457dea76e8a46dd6381f588f2
1832a909b2c564bc623bca36dd3eea8c5587e2db
/server/core/migrations/0007_auto_20170206_0100.py
30aa6f8b8b22f8af086a24dce4fe314c5837a1d1
[]
no_license
bravesoftdz/tramsdaol
ea4370b93ccba6ba569e948d552bab89042fb337
e726a00a0296454582f18d18956140c67be8cf8d
refs/heads/master
2020-03-20T02:57:25.088779
2017-04-01T01:31:49
2017-04-01T01:31:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
476
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-06 01:00 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0006_geographiccoordinate_search_address'), ] operations = [ migrations.Alt...
[ "johni.douglas.marangon@gmail.com" ]
johni.douglas.marangon@gmail.com
9d818c8075bee01c6c345bcb48c5f1e8ac8d53cd
afabbdea254f9ae007fc39d9574eac585b08a62a
/hackerrankChallenges/haloweenParty.py
28811b9a40ad7ec37e4b6c6f9a7f87d7831ab561
[]
no_license
brunofracalossi/codingExercises
259852cf5f50be14d3fd75e50b5a12b3a79921a4
693711c4c251872a43468302bd247a0a2bbafb92
refs/heads/master
2016-09-05T10:11:47.320593
2014-11-19T15:56:59
2014-11-19T15:56:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
# Enter your code here. Read input from STDIN. Print output to STDOUT T = input() for i in range (0,T): cuts = input() pieces = ((cuts / 2) * (cuts / 2)) + ((cuts % 2) * (cuts / 2)) print pieces
[ "brunofracalossi@gmail.com" ]
brunofracalossi@gmail.com
09dc4b8c4826d5758b97747fe4b4d51aa543a01a
5053116ea6876add7903bf9433a9cf5da6aa5cbb
/CI_final project/rbfnet/RBF.py
37606ac2732850630bf4bcd555651a1ffac725a9
[]
no_license
Yasaman1997/Computatioanal-Intelligence
4c400643bc4eb8ab30e51fc1fe7e76cf2d2ca2e5
65607a5d3ff6e08269584f9055f4feba5358abe2
refs/heads/master
2020-12-27T07:41:18.100841
2020-02-02T19:29:28
2020-02-02T19:29:28
237,819,085
0
0
null
null
null
null
UTF-8
Python
false
false
6,066
py
import math import matplotlib.pyplot as plt import numpy as np import FCM import code class RBF: def __init__(self, path, clusters, fuzziness_parameter, gama, n_class): path = path self.dataset = code.prepare_data() self.n_cluster = clusters self.m = fuzziness_param...
[ "noreply@github.com" ]
noreply@github.com
1bb07510688d3964c7aca45b4a95662d6c4bf7c7
e1c0c2c1b7e505b17c8653018a5f80d1dcb61213
/venv/lib/python3.7/site-packages/mediapipe/calculators/util/landmarks_refinement_calculator_pb2.py
46e649c2bc50577ce7fd7846ef4a54b01dde7539
[]
no_license
youngchoy/Handiosk
cabc6661e7e89821436463b9a7034aa9755d2e67
6704e74078db352954b379b3859dae72cab56711
refs/heads/master
2023-09-04T20:33:57.067806
2021-11-23T03:19:56
2021-11-23T03:19:56
419,381,597
0
0
null
null
null
null
UTF-8
Python
false
true
15,250
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mediapipe/calculators/util/landmarks_refinement_calculator.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf i...
[ "njs04288@gmail.com" ]
njs04288@gmail.com
9aa63aac3e6bf6b02a6ac01ef808c52247f95e0c
649255f0d9b6d90be3d3f68263680081f893a089
/test/test_excluded_scan_targets.py
85f9366583d08f39747f863208b29caf424513f5
[]
no_license
khantext/r7ivm3
611e1bbc988d9eb8fbb53294d3ed488130e46818
bd9b25f511f9e7479ea7069d71929700bed09e87
refs/heads/master
2023-05-01T10:01:16.336656
2021-05-03T18:16:12
2021-05-03T18:16:12
237,514,737
0
0
null
null
null
null
UTF-8
Python
false
false
49,254
py
# coding: utf-8 """ InsightVM API # Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ...
[ "justinlute@gmail.com" ]
justinlute@gmail.com
b89d6cd1990de68f12e52d48b92f63c403f611e2
773b39245ad6f399ccaba093e4eba0d1c0c22661
/train/test_GT.py
4d40b8e4e1c2c4e7016692a431ade6cbf08901db
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
PeiyanGong/frustum-pointnets
9a06008d536ea5d6d68499cc3771d3e6b6e2bc16
927fb3bc64a755239040fbdd0d44c8434535ab25
refs/heads/master
2020-03-19T10:19:17.568388
2018-08-03T05:43:33
2018-08-03T05:43:33
136,361,136
1
0
Apache-2.0
2018-06-06T17:10:38
2018-06-06T17:10:37
null
UTF-8
Python
false
false
15,747
py
''' Evaluating Frustum PointNets. Write evaluation results to KITTI format labels. and [optionally] write results to pickle files. Author: Charles R. Qi Date: September 2017 ''' from __future__ import print_function import os import sys import argparse import importlib import numpy as np import tensorflow as tf impor...
[ "pygong@umich.edu" ]
pygong@umich.edu
3d39d939f1f3d729238a3f0067f3730e41cbf1e6
49e3fbd1c978036b59fa3cddddbf504ec42fc402
/question_app/views.py
9be75d3aee571379706b4c3b4d939674bd988d35
[]
no_license
tahaenesaslanturk/question_app_backend
030ff9c99c74c3ec540dda6d091b787b8af9a702
c08d7f5b4c2cfd7e534dc45700c1a14e307e0e99
refs/heads/master
2023-08-15T05:58:51.836759
2021-10-14T19:44:59
2021-10-14T19:44:59
417,262,201
0
0
null
null
null
null
UTF-8
Python
false
false
5,695
py
from django.shortcuts import render from rest_framework.views import APIView from rest_framework import generics, status, filters from rest_framework.response import Response from question_app.models import (Book, Tag, Question, Answer) from question_app.api import (serializers, permissions) # BOOK VIEWS class BookL...
[ "enes.aslanturk@ug.bilkent.edu.tr" ]
enes.aslanturk@ug.bilkent.edu.tr
485b464e4b94a31de2a1e612ab6f6c40411628a1
4de0c6d3a820d7669fcef5fd035416cf85b35f23
/ITcoach/xlrd_xlwt处理数据/第1章 python基础/1.7 学Python,不愁没对象!/1.7.2.py
41358a812e40297cbed3f5cf30e10307d8cf4862
[ "AFL-3.0" ]
permissive
ww35133634/chenxusheng
5e1b7391a94387b73bcd7c4d12f1247b79be8016
666e0eb3aedde46342faf0d4030f5c72b10c9732
refs/heads/master
2022-11-12T03:46:47.953680
2020-07-02T20:50:56
2020-07-02T20:50:56
275,168,080
0
0
AFL-3.0
2020-07-02T20:58:37
2020-06-26T13:54:48
HTML
UTF-8
Python
false
false
34
py
print(type(99)) print(type('abc'))
[ "82516351@qq.com" ]
82516351@qq.com
2a38b18643398080afdf4fbe89533401fdd3c67d
4c300a18ba13bed9e0fa933a9f6d01187e005468
/devrun/cmd/web.py
d2a193d5aa0a8dded14213a28127cad236a46f7a
[]
no_license
smurfix/devrun
08def56eda1090e9489b2f3c33d2a26d9a143277
d6098fafc79c81d65468a6cbdaaf0b8633ebde97
refs/heads/master
2021-01-25T01:22:05.091114
2017-06-22T10:54:40
2017-06-22T10:54:40
94,753,022
0
0
null
null
null
null
UTF-8
Python
false
false
1,572
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, division, unicode_literals ## ## This file is part of devrun, a comprehensive controller and monitor for ## various typed code. ## ## devrun is Copyright © 2016 by Matthias Urlichs <matthias@urlichs.de>, ## it is licensed under the GPLv3. S...
[ "matthias@urlichs.de" ]
matthias@urlichs.de
20d8bfd423141485558ec1c150cadcdd244584a4
19643168a846a9a0f650e1f6f30c7283ea2e488a
/ML_Project_Reinforcement_Evolutionary/Lib/site-packages/matplotlib/quiver.py
f7f5cda23010da238d3a3696f247268daeceb141
[]
no_license
ardagon89/Performance-comparison-of-Genetic-algorithm-w-Reinforcement-learning-for-simple-game-learning-CS6375
eb9aa7031b655ab6a410de7e1fb604004a357e60
284d2598f15a529bc0fa6dcca2bf12a58cb4d057
refs/heads/master
2022-12-13T16:12:50.515510
2020-08-29T19:18:16
2020-08-29T19:18:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
46,766
py
""" Support for plotting vector fields. Presently this contains Quiver and Barb. Quiver plots an arrow in the direction of the vector, with the size of the arrow related to the magnitude of the vector. Barbs are like quiver in that they point along a vector, but the magnitude of the vector is given schematically by t...
[ "shariq.mellon@gmail.com" ]
shariq.mellon@gmail.com
53aa4d458a908c0ef995937fc4f01649c8822421
0ba174a9c1b1afb5b2f9f53703b77a2b7c636e20
/app.py
d5323754aec4d8877ef3c892263d52d6dbfcf90d
[]
no_license
bhaveshpatel640/cart
ae680f77663081d1f30172eef89b40bb88e96b30
9b4be4e4015b6b095ce0cc495beec2f9ac80c88e
refs/heads/master
2022-10-14T18:34:30.611346
2020-06-11T07:38:46
2020-06-11T07:38:46
271,601,608
0
0
null
2020-06-11T17:00:53
2020-06-11T17:00:52
null
UTF-8
Python
false
false
512
py
user_ip = 'Welcome' data = [] def menu(): print('Menu:') print('1. Add an item?') print('2. Remove an item?') print('3. View items?') print('4. Exit') while user_ip != '4': menu() user_ip = input('enter your choice: ') if user_ip == '1': item = input('enter ...
[ "noreply@github.com" ]
noreply@github.com
d53f793130ad637fa94478ead59dfdb25096422e
4887402b3dad4b14fce6e9cdb1c5ff681ad70230
/DQN/pytorch/dqn.py
7c57f07d8d1fc23da67685351eaf8cb78f7189ef
[]
no_license
MonicaPH/reinforcementLearning
13fb545825ba60bcfe812fc69e440f89ef2692b9
c06d3842e837e198642740eccd4f87d29dbde9b0
refs/heads/master
2022-04-25T21:46:23.941267
2020-05-03T13:39:13
2020-05-03T13:39:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,990
py
import sys import gym import math import random import numpy as np import torch import matplotlib import matplotlib.pyplot as plt from itertools import count from PIL import Image from agents import DQNAgent matplotlib.use('Agg') matplotlib.style.use('ggplot') env = gym.make('CartPole-v0') if __name__=="__main__": ...
[ "suryanvineet47@gmail.com" ]
suryanvineet47@gmail.com
a32077954feaaf66d2e4a23b6ccbfb1d5d8009ef
bcc199a7e71b97af6fbfd916d5a0e537369c04d9
/leetcode/solved/53_Maximum_Subarray/solution.py
4b9dd9a6ff3ffd63395f61fdf9315a2b1fb9c7b9
[]
no_license
sungminoh/algorithms
9c647e82472905a2c4e505c810b622b734d9d20d
1389a009a02e90e8700a7a00e0b7f797c129cdf4
refs/heads/master
2023-05-01T23:12:53.372060
2023-04-24T06:34:12
2023-04-24T06:34:12
87,406,513
0
0
null
null
null
null
UTF-8
Python
false
false
1,423
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2020 sungminoh <smoh2044@gmail.com> # # Distributed under terms of the MIT license. """ Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. A subarray is...
[ "smoh2044@gmail.com" ]
smoh2044@gmail.com
38ad1a42f33af13f6acd267dc121146ebe720417
2d0a67977fb1f4e82ad8e386b338d3d84608692f
/bot/python/predictor_movement_target.py
28ce52af5fb79fe454eeb269cb4e467263bc784c
[ "MIT" ]
permissive
HalfVoxel/sc2-voxelbot
7c12077e8f6c8648817a728050e3281214b30ae1
11647cf6a6978b7d0f75b3c97a6b9179c9075408
refs/heads/master
2020-04-12T00:12:03.114852
2019-05-17T23:48:45
2019-05-17T23:48:45
162,192,324
0
1
null
null
null
null
UTF-8
Python
false
false
22,970
py
import os import json import shutil import subprocess import math from common import count_parameters, load_all, PadSequence, training_loop, print_parameters, TensorBoardWrapper import common import numpy as np import torch import torch.nn as nn from trainer_movement_target import MovementStepper from trainer_rnn impor...
[ "aron.granberg@gmail.com" ]
aron.granberg@gmail.com
954a8cb67b772cd3be6d84bb56dcd00463f7b965
f8886234ddc67ce1f7949c8489701c954a90b41a
/CanteenBillingSystem/CanteenBillingSystem/settings.py
c783109821f518cf974326d1873515fae3dbf456
[]
no_license
pro-metheus/Oottupura
9718efafda7850ea39d9469686cf89b8918a6a6e
e572d19efec0a3f0ba21a2dd041e529177e53f6b
refs/heads/master
2021-08-14T06:16:52.848864
2017-11-14T19:28:37
2017-11-14T19:28:37
110,568,054
0
0
null
2017-11-14T19:50:05
2017-11-13T15:48:45
HTML
UTF-8
Python
false
false
3,286
py
""" Django settings for CanteenBillingSystem project. Generated by 'django-admin startproject' using Django 1.11.2. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/se...
[ "noreply@github.com" ]
noreply@github.com
47dc6990e375d8681d361bb1f19aad8d7649a3a9
aa6cd5374a115ec5c0aacd2704e161daf0bb941b
/pynqcopter/ip/bmeDriver/__init__.py
a60b489ac292378e03cd778595f285064c65d6e0
[ "BSD-3-Clause" ]
permissive
yummy0929/pynq-copter
c422eff93b3c72206396e9926f04d87ef447c040
634e4c41a3ed6ecff84fbef6a04f107cf4fa94d6
refs/heads/master
2023-03-15T15:52:16.409089
2019-01-13T23:48:45
2019-01-13T23:48:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,848
py
############################################################################### # Copyright (c) 2018, The Regents of the University of California All # rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met:...
[ "noreply@github.com" ]
noreply@github.com
4e7940d62260347580b6c8eea968dbb082f74f84
6bedc2d1671e01e4d88314fc3f4dd0cf3b57e739
/modules/game.py
eaf0ef4662db42269e1537a2af1e0a2d6485cf0d
[ "MIT" ]
permissive
gabryatfendor/PyEscape
4c7d4ba5243620b4e149aba68df065cb9ff438cf
3b375252466d380de3f516ebfa39695f1ee8287e
refs/heads/master
2021-10-23T22:24:03.522844
2019-03-20T13:15:28
2019-03-20T13:15:28
65,304,114
0
0
null
null
null
null
UTF-8
Python
false
false
10,638
py
"""Game common properties""" import os import sys import pygame from enums.direction import Direction from .graphics import Color, Tiles, Images from .screen import Screen from .map import Map from .strings import Common from .ai import Npc from .level import Level from .audio import Sound class Game: """Game com...
[ "gabriele.sani@antreem.com" ]
gabriele.sani@antreem.com
61a683398939f28b88f16a0cf02b6bc54d0c738a
81df54e1245fbc50ffaa6c08108deeef43710596
/Training/python_csv_parser01.py
8afd6a3a77bdb19174929689bbcd4a631d3f2d02
[]
no_license
gurupsv/LearnPython
1abdca29ac910e8c99af43fd431da02618175bf2
e0b25a0a4fa70ee3e0ce5f96cc7bf35eeba8b15c
refs/heads/master
2021-08-29T03:09:05.366315
2021-08-19T03:36:40
2021-08-19T03:36:40
117,851,031
0
0
null
null
null
null
UTF-8
Python
false
false
109
py
import csv fo= open('first.csv',"r") reader = csv.reader(fo, delimiter=':') print(list(reader)) #list of list
[ "guruprasad.sv@gmail.com" ]
guruprasad.sv@gmail.com
3a559961d460a100177dfb05a88dd44d35beacac
17993dcca87d490bc9841437309f309a5592ab38
/Codes/support_vector_machine/lib/svm_smo.py
0e73fa2184ef4d2fcb86116b01efa95cec3c0255
[]
no_license
dreamlikexin/machine_learning
bc86ea15ef8552ad1be78a5bc65fb74a2cdb274e
850e87025270847210b6ad188d2da181983a72c7
refs/heads/master
2022-01-16T09:51:20.538340
2019-06-19T16:27:26
2019-06-19T16:27:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,937
py
import numpy as np class SVM: def get_H(self, Lambda, i, j, y): if y[i]==y[j]: return Lambda[i] + Lambda[j] else: return float("inf") def get_L(self, Lambda, i, j, y): if y[i]==y[j]: return 0.0 else: return max(0, Lambda[j] - ...
[ "wanglei@wanglei-mbp.local" ]
wanglei@wanglei-mbp.local
af271b98f1344693605ccb7e95dd2e95db2b43de
00f3494393c710277d537ebabb23b727afa874a7
/setup.py
6267db92d43fadfbdde8620b0c853e04a33bf497
[]
no_license
drewsonne/datagovuk
b0296455cd0cf6e94389461fd051b23d61cfe001
71ac9f9657e357bf05eac2c8abd72f45034bf08a
refs/heads/master
2022-12-09T22:58:57.295458
2020-03-02T14:25:56
2020-03-02T14:25:56
156,659,985
0
0
null
2022-08-05T22:00:47
2018-11-08T06:24:09
Python
UTF-8
Python
false
false
689
py
from setuptools import find_packages, setup setup( name='datagovuk', version='0.1.3', packages=find_packages(), url='https://github.com/drewsonne/datagovuk', license='LGPLv3', author='Drew J. Sonne', author_email='drew.sonne@gmail.com', description='Tool to allow easy importing to data ...
[ "drew.sonne@gmail.com" ]
drew.sonne@gmail.com
1faa096e7a24919a35a42e5ad3d78eaf5f63842a
959c361c1ff09c7638b969371d3ceb43d3846188
/Day4/Speech/talktoROS.py
29f4ac30b9b71c3f70d4c5836be12105ceab1cd8
[]
no_license
RobotCitizens/ros-workshop
0ccf56b4c4e50835842708df745971a0184d444d
3e0320e4d740bef4fcbbec392204322005bcf65b
refs/heads/master
2023-06-26T04:36:58.903471
2020-08-21T00:30:26
2020-08-21T00:30:26
284,623,912
6
4
null
2022-02-05T08:06:54
2020-08-03T06:41:49
Python
UTF-8
Python
false
false
2,515
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys reload(sys) sys.setdefaultencoding("utf-8") import speech_recognition as sr from playsound import playsound import rospy from std_msgs.msg import String # Record Audio r = sr.Recognizer() m = sr.Microphone() pub = rospy.Publisher('TalktoROS', String, queue_si...
[ "vasutorn.s@ku.th" ]
vasutorn.s@ku.th
91e4afe9a69b64b1252d3f879b3ec018d529bbad
5dd190725aaaeb7287d935b3c99c20480b208816
/object_detection/utils/np_mask_ops_test.py
a0ee46eff01f165f5ae94346b8a1b7fe2636149c
[ "MIT" ]
permissive
DemonDamon/mask-detection-based-on-tf2odapi
32d947164fb54395b9e45368c0d4bcf3a6ea1c28
192ae544169c1230c21141c033800aa1bd94e9b6
refs/heads/main
2023-05-13T05:05:44.534885
2021-06-08T05:56:09
2021-06-08T05:56:09
369,463,131
2
1
null
null
null
null
UTF-8
Python
false
false
3,719
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ "noreply@github.com" ]
noreply@github.com
067353e1f75365baf3c94cb3093b7b8bce12509f
8a6bb67a4d6d66c166ccd98058d9a8dcf165935e
/Homework/HW.py
5dcd38ff7bb36a1f095b4a344d2ad1521ccc8b3b
[]
no_license
tandiawanedgar/Edgar-2101699666
a459b01a40284541956147153800e9d69b6daacd
b6cca11a5d0312d6152158730d5ea3575794785c
refs/heads/master
2021-06-30T09:22:13.978410
2017-09-19T14:19:36
2017-09-19T14:19:36
104,050,484
0
0
null
null
null
null
UTF-8
Python
false
false
85
py
for x in range (2000,3200): if x %7 == 0 and x %5 != 0: print(x,end=',')
[ "tandiawanedgar@yahoo.com" ]
tandiawanedgar@yahoo.com
5dc3bef4afd928a08151a42b378ae0cc9051a420
a8062308fb3bf6c8952257504a50c3e97d801294
/problems/N539_Minimum_Time_Difference.py
606f46d1a86602b05472d086e54f47d8e7fe6dbb
[]
no_license
wan-catherine/Leetcode
650d697a873ad23c0b64d08ad525bf9fcdb62b1b
238995bd23c8a6c40c6035890e94baa2473d4bbc
refs/heads/master
2023-09-01T00:56:27.677230
2023-08-31T00:49:31
2023-08-31T00:49:31
143,770,000
5
0
null
null
null
null
UTF-8
Python
false
false
533
py
class Solution(object): def findMinDifference(self, timePoints): """ :type timePoints: List[str] :rtype: int """ if not timePoints: return times = [] for point in timePoints: times.append(int(point[:2])*60 + int(point[3:])) time...
[ "rarry2012@gmail.com" ]
rarry2012@gmail.com
5dcf8865003230ebeac474dee3ac8b11da49ca2e
aecd5668508148abe68301c901fe5e6cfe57c92d
/gigsyncevents/web/urls.py
21ba3db3ba40bfe59f7d39fb68e1825e2ea3738c
[]
no_license
ttanay/GigSyncEvents
865ea5b79fc668264ae75ee79e0769f8df72a344
c4b21d174241bbaac0d50297081c81348e5a2f0d
refs/heads/master
2022-12-14T10:00:10.573187
2019-02-07T15:11:40
2019-02-07T15:11:40
127,155,635
2
0
null
2022-12-08T00:51:03
2018-03-28T14:48:51
CSS
UTF-8
Python
false
false
1,054
py
from django.conf.urls import url from . import views app_name = 'web' urlpatterns = [ url(r'^populate/$', views.populate, name='populate'), url(r'^add_event/(?P<fb_id>[0-9]+)/$', views.add_event, name='add_event'), url(r'^$', views.home, name='home'), url(r'^filter', views.filter, name='filter'), ...
[ "ttanay100@gmail.com" ]
ttanay100@gmail.com
d63b055e6a1a70097d0d5ee18f0a9f4d240ca48e
6764b95ca9c3a77e0ed52304f099d0f67cfa8307
/monitoringTool/views.py
188b2939c19d19dd529b3ed0eeb3b8b09c9ed277
[]
no_license
muriox/Pods_Monitoring_Tool
971fc33cd2cb90f46cc2d0329bb4892b6aee057a
9e8ed037576c528a3a4fd3d04a72ecb15342ce72
refs/heads/master
2020-06-27T02:16:49.404821
2019-10-26T19:47:46
2019-10-26T19:47:46
199,816,961
0
0
null
2020-06-05T22:09:31
2019-07-31T08:47:52
JavaScript
UTF-8
Python
false
false
84,422
py
from django.shortcuts import render from django.db.models import Q import datetime from django.http import HttpResponse from .models import Test, EmployeesProfile, StaffLogin, Countries, Cities, Areas, Devices, DevicesConfiguration, \ ClusterTypes, ClustersSetup, ClustersNetworkConfiguration, ContentTypes, Contents...
[ "murio_x@yahoo.com" ]
murio_x@yahoo.com
72e65088eaae6e1b15512d9842084c538cf5c3d2
9b6f0abbd2168d81624fdc507cdc5bb773cb6eb7
/Small_Code/region_checker.py
bb980656ae16e234165eb6b3e67cedd97f285c18
[]
no_license
IndraSigicharla/Python-Code
fb59adf0553ab05c3a28f95fea51724a716ece0f
d9fa259dafe4e9c798fb253403e4679ae084ec8b
refs/heads/master
2023-02-15T19:17:02.886822
2021-01-14T14:55:56
2021-01-14T14:55:56
303,578,113
0
0
null
null
null
null
UTF-8
Python
false
false
597
py
name, age, gender, region = ([] for i in range(4)) n = int(input("Enter the number of customers: ")) for _ in range(n): name.extend([input("Enter the name: ")]) age.extend([int(input("Enter the age: "))]) gender.extend([input("Enter the gender: ")]) region.extend([input("Enter the region: ")]) y = input...
[ "indhhra@gmail.com" ]
indhhra@gmail.com
8b40a9aa586e50e8f8aa6b0a0a9477c7c983d9d7
9aeefd99efa17e796ee4f235511c61360f786d95
/rhino/SoftwareTool/Floorslab_AIM_GH_30.py
fd8cea9902b90ba3df44b8820380dc52b964d3a7
[ "MIT" ]
permissive
augmentedfabricationlab/timber_clay_hybrid
fe1e9c4f4a8e962a9f13f97d4301628ddaf74ba7
243efddac77970c989b551697a0e188932064849
refs/heads/master
2023-03-27T05:23:31.853335
2021-03-25T21:06:38
2021-03-25T21:06:38
293,768,540
1
0
null
null
null
null
UTF-8
Python
false
false
45,796
py
import math import copy import operator from compas.geometry import Point, Box, Frame, Vector, scale_vector, normalize_vector, Polygon, Rotation, is_point_in_polygon_xy, angle_vectors_signed from compas.datastructures import Mesh from compas.geometry import Line from compas.geometry import intersection_line_line_xy, i...
[ "jkt1995@gmail.com" ]
jkt1995@gmail.com
5634ebaa358971f4de28704f86ff95ab91d76915
22b93005b05aa4cbfa6287c42e07244b9bf83be9
/mlflow/ml_package_versions.py
b5be01dffc43abf48dbe7e9ab8fc1f6dee71ebf8
[ "Apache-2.0" ]
permissive
dbczumar/mlflow
63ede1f21966def17ded0da9c8e92a207b34b90d
e293a73b510c924cbca50b6337b6d6f9fd9f8f1b
refs/heads/master
2023-08-31T23:40:55.475707
2023-07-15T04:22:18
2023-07-15T04:22:18
138,797,518
1
3
Apache-2.0
2023-08-23T23:01:08
2018-06-26T21:51:19
Python
UTF-8
Python
false
false
5,987
py
# This file was auto-generated by update_ml_package_versions.py. # Please do not edit it manually. _ML_PACKAGE_VERSIONS = { "sklearn": { "package_info": { "pip_release": "scikit-learn" }, "models": { "minimum": "0.22.1", "maximum": "1.3.0" }, ...
[ "noreply@github.com" ]
noreply@github.com
99384abafe67b59e636e78148031a0421cb853e0
86aec9575bd85450a6a9c6268dd171a77c5356ca
/AlienInvasion/game_functions.py
a225c61778c2ee6af2ac83cf6ee84a380ed331a7
[]
no_license
hyl-code/Python
19bb6d0e58285a1eaacb835fc0d9b6c4d57f3945
7997b24011d9d7c056fc1d1445bbaa371c27b533
refs/heads/main
2023-04-21T19:23:33.930152
2021-05-09T06:08:11
2021-05-09T06:08:11
365,680,013
0
0
null
null
null
null
UTF-8
Python
false
false
8,020
py
import sys from time import sleep import pygame from bullet import Bullet from alien import Alien def check_keydown_events(event, ai_settings, screen, ship, bullets): """响应按键""" if event.key == pygame.K_RIGHT: ship.moving_right = True elif event.key == pygame.K_LEFT: ship.moving_left = Tru...
[ "2839797603@qq.com" ]
2839797603@qq.com
ed4d5f5546453934b727cc45c8962030c05640cd
eb4d89817ebaa490d4cfd113490dfc0e607365f8
/assignment_1/q3.py
ba387c989f2d19980707af10bf112e6f156c999d
[]
no_license
Mandeep3838/Statistical-Pattern
52fec7db51d422ea3f91b8377cc91d98c8e375f6
a8935540eea9130bb5ecd368ed92a37152498c84
refs/heads/master
2023-02-23T07:22:55.994504
2021-01-18T10:38:45
2021-01-18T10:38:45
330,629,692
0
0
null
null
null
null
UTF-8
Python
false
false
6,088
py
import numpy import matplotlib.pyplot as plt import scipy.stats as stats from scipy.integrate import quad import math ''' Normal Distribution Function ''' def pdf_fun(feet, mu, sig): return (1/(sig*numpy.sqrt(2*numpy.pi)))*numpy.exp((-1/2)*((feet-mu)/sig)**2) ''' Using Bayesian Method find point of spli...
[ "9814723517b@gmail.com" ]
9814723517b@gmail.com
e831296b955c4901d82f0f076e71adc6e4910c97
43dec81f8466acb925a9c4830fe274de9cd1f51e
/backend/home/migrations/0004_auto_20201124_1916.py
31248f325cd782e66c1f5f5fd515ded3f3aaa5f0
[]
no_license
crowdbotics-apps/lizz-11-10-mob2-22484
6cd2af76c92fb2f2c9047b70017b9e0c5adfbcdb
61ab9254234534b8384ec2b64451cf5ba7d587de
refs/heads/master
2023-02-03T02:07:07.406375
2020-12-22T18:53:04
2020-12-22T18:53:04
311,748,272
0
0
null
null
null
null
UTF-8
Python
false
false
479
py
# Generated by Django 2.2.17 on 2020-11-24 19:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0003_homepage_hello'), ] operations = [ migrations.RemoveField( model_name='homepage', name='body', ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
5fb016d5b03d155449905d8372106645e993f24d
c4bd2b67b14780cf11b643f228d1e05ec48fd3f9
/portfolio/views.py
bcfd6fd0f3fd07124021946d716c0f6926f32aae
[]
no_license
abatistadeoliveira/efsalex
0a2e3d2f3c6903575d74fd92c063a3eb2455aaaa
142725dbeebc3218dbdbed4cb3f49b6a4bb4873f
refs/heads/master
2023-03-30T05:20:15.756931
2021-03-31T01:03:03
2021-03-31T01:03:03
339,247,263
0
0
null
null
null
null
UTF-8
Python
false
false
8,757
py
from django.contrib.auth.decorators import login_required from django.shortcuts import render from .models import * from .forms import * from django.shortcuts import render, get_object_or_404 from django.shortcuts import redirect from django.db.models import Sum from rest_framework.views import APIView from rest_framew...
[ "abatistadeoliveira@unomaha.edu" ]
abatistadeoliveira@unomaha.edu
ea4ca9c71465c771686249e18b6c43ec8effd325
38b5f1bde02310b674a96a5e535af9dda4d56e95
/src/parser/floodgate/__init__.py
56990dedb4a35356cb72bcbe1899f9cd44b89413
[]
no_license
aratakokubun/deeMahjong
84ffea90056e26d4a97da77c30b0367e9ed8ecaf
dbf9f7007b0523fb81a64475c414ee07d5b84ef6
refs/heads/master
2021-01-21T18:38:28.386161
2017-05-29T16:22:21
2017-05-29T16:22:21
92,063,587
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
"""Floodgate web site parser module.""" from src.parser.floodgate import (FloodgateParseExceptions, FloodgateParserUtils, FloodgateParser, FloodgateFullParser, FloodgateRecentParser)
[ "kkbnart@cyber.t.u-tokyo.ac.jp" ]
kkbnart@cyber.t.u-tokyo.ac.jp
d039f7c165307c3cab9557169d0d0820f5754329
cb4e07b2a5dd30804ce428ec84d9e9f77709fcd5
/swea/D3/10570. 제곱 팰린드롬 수.py
9345f0450146e6efeba20eb3d88dd2e9b24a99b9
[]
no_license
jbsam2/algo_problem
141c17003e88a69afdeea93a723e7f27c4626fdc
18f2cab5a9af2dec57b7fd6f8218badd7de822e4
refs/heads/master
2023-05-18T10:03:00.408300
2021-06-02T10:36:50
2021-06-02T10:36:50
282,104,637
0
0
null
null
null
null
UTF-8
Python
false
false
271
py
def c(num):return 1 if num==int(num**(0.5))**2 else 0 for t in range(int(input())): a,b=map(int,input().split());ans=0 for i in range(a,b+1): p=int(i**(0.5)) if c(i) and str(i)==str(i)[::-1] and str(p)==str(p)[::-1]:ans+=1 print(f'#{t+1}',ans)
[ "kbsam2@gmail.com" ]
kbsam2@gmail.com