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
92d6f6ca17e33b469cb39f8aa47695ade46268b3
2b9914d157d36dfb8a96df10a047ffe630511ba8
/string_text/insert_var.py
8b38d2e07fe86ffe769e27ed5aff258e86ce9b25
[]
no_license
liuxingyuxx/cookbook
20dce322a09ea5267c68637d66c18d1cec234610
3faad3d8fc2c40b648830f4bdc17b99bcc11c5fd
refs/heads/master
2020-03-14T06:59:29.831430
2018-04-29T12:51:55
2018-04-29T12:51:55
131,494,393
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
#创建一个内嵌变量的字符串,变量被它的值所表示的字符串替换掉。 #format s = '{name} has {n} messages' s_fo = s.format(name='LXY', n='8') print(s_fo) #format_map() 与 var() name = 'LXY_' n = 9 s_fo_var = s.format_map(vars()) print(s_fo_var) class Info: def __init__(self, name, n): self.name = name self.n = n a = Info('Furry', ...
[ "typefj@gmail.com" ]
typefj@gmail.com
43e0ad4cd6585eec9c7f1eef2d713b02dbb7baff
857d39ea129891db6f48bafa812a520dc8e0e17f
/client.py
df47c290873d5ac7d937b2fdfcd292ddcea035c3
[]
no_license
Nour-Elgeziry/Flask--CouncilQueryTracking
53f096052c52031d6d2819ead97a68cf9a7cf2e4
11642e56b2bef43957da9ad0c301cff7fd4f843b
refs/heads/master
2023-03-26T21:23:57.998147
2021-03-28T18:48:46
2021-03-28T18:48:46
352,411,193
0
0
null
null
null
null
UTF-8
Python
false
false
880
py
from queryFactory import QueryFactory class Client: def __init__(self): self.username = "" self.email = "" self.query = QueryFactory() self.users = [] def addUsers(self, user): self.users.append(user) def removeUsers(self, user): self.users.remove(user) ...
[ "nourelgeziry@Nours-MacBook-Pro.local" ]
nourelgeziry@Nours-MacBook-Pro.local
4e13eeadcc624705bfa0094aa22ebe7942557820
12c972261e916167d0b0e1998ee6388d53f9ecf2
/animations.py
277d1ac891066d70449ff118f417b349651a8513
[]
no_license
Ye-Rham/Super-Mario-Bros
1dcb25640608c22ab6907e9a5866b16ecbbbe2ae
d965f5292e40c23ab02a849719f6e2f7a5143618
refs/heads/master
2020-04-02T08:24:45.954697
2018-11-15T00:02:47
2018-11-15T00:02:47
154,243,440
0
0
null
2018-11-04T23:50:44
2018-10-23T01:41:42
Python
UTF-8
Python
false
false
2,422
py
from pygame.sprite import Sprite class Popcoin(Sprite): def __init__(self, settings, screen, sprites, x, bottom): super(Popcoin, self).__init__() self.screen = screen self.sprites = sprites self.rect = self.sprites[0].get_rect() self.rect.x = x self.rect.bottom = b...
[ "hyerham@gmail.com" ]
hyerham@gmail.com
6d2e5616a0b8fe686f33add4cc49c9ee1dea54ea
95d23a28534e07c907ce67bcddd7d8d716a36edd
/PUMA TestRun Evaluator/data/Logfile_IO.py
dbc6602bac59aa2ead9b04d3dddbd90926c85935
[]
no_license
MulejMarko/PUMA_log_parser
7761944cad506d978bdc52e4b41b0dd7b6205fc0
d56391d0aba41e648a0f475978a7cfd36f1c431f
refs/heads/master
2023-03-03T04:38:28.129601
2021-02-16T10:51:32
2021-02-16T10:51:32
339,351,826
0
0
null
null
null
null
UTF-8
Python
false
false
889
py
import os import csv # function to get a list of files from a directory def dir_log_files(f_dir): file_list = [] for file in os.listdir(f_dir): file_list.append(os.path.join(f_dir, file)) file_list = sorted(file_list, key = last_14chars) return(file_list) # function key for the last...
[ "mulejmarko@gmail.com" ]
mulejmarko@gmail.com
1cc66458f0674488b98c567c7fe8c41441a5ff70
f11354e8fdff38870938bcb5d9f40d98262d3552
/web/__init__.py
f9618382a70d5a8290d6b920a53fd8ca6797abfc
[]
no_license
lywade123456/flask_mvc_demo
6d849e04bacc70df60919cb61f771fcf1796ac72
d0266c406c4f3c9c7a4331e560476f6fd2a2241e
refs/heads/master
2020-05-20T11:25:06.852289
2019-04-27T03:09:48
2019-04-27T03:09:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
""" @arthor:金龙 @school:hrbust @depart:computer @file: __init.py @time: 2017/12/26 16:29 @describe: """ from flask import Flask print('app __name__') app = Flask(__name__) from python import control
[ "arowana.java@qq.com" ]
arowana.java@qq.com
aaae06b7048c1f75a98502c60e82254549150514
bbd96b0418b2244c2a3e569addc7c778519f0c4d
/hmm/hmm_class.py
54d2a9dcb2f37e5b198f5e7b7fa8aa0ad61a058c
[]
no_license
bulidiriba/Hidden-Markov-Model
8b923a39ad2d427bc437738158ae65963edaaa3e
289c8b9b0bc09e9eade57e3a07c96bf6502eded0
refs/heads/master
2020-07-30T22:42:50.133270
2019-09-23T16:37:33
2019-09-23T16:37:33
210,384,298
0
0
null
null
null
null
UTF-8
Python
false
false
9,111
py
import numpy as np class Hmm: def __init__(self, state_dict, obs_dict, init_prob, trans_prob, emit_prob, given_obs): self.obs_dict = obs_dict self.state_dict = state_dict self.init_prob = init_prob self.trans_prob = trans_prob self.emit_prob = emit_prob self.given_...
[ "bulidiriba@gmail.com" ]
bulidiriba@gmail.com
a87795b30d64f877de67be8f01ccce3753f7e527
1856b3f51bc8494b40c00de26e2e65afcf4d5dd0
/Python Code for Raspberry/cleanup.py
f586003e203c6e741f2876be2d432e286d08bceb
[]
no_license
ngetan1/Raspbian-Says
46a10ef773f579d52a7bcacd092d8c12cc127fcb
19998b5a88b3a9b99a8dce7cfc1eedc99d13ae76
refs/heads/master
2021-06-20T23:57:52.827399
2021-01-28T14:46:04
2021-01-28T14:46:04
180,443,521
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(29 ,GPIO.OUT)#blue GPIO.setup(13,GPIO.OUT)#red GPIO.setup(15, GPIO.OUT)#green GPIO.setup(36 ,GPIO.OUT)#blue button GPIO.setup(12,GPIO.OUT)#red buttom GPIO.setup(33, GPIO.OUT)# magenta button GPIO.setup(7, GPIO.OUT)#green button GPIO.cleanup()
[ "43097300+ngetan1@users.noreply.github.com" ]
43097300+ngetan1@users.noreply.github.com
490876621066be76bba945e5210660cfea261a0f
acc3bfb8d0cdfbb0c762523b9923382570928ed1
/backend/home/migrations/0002_load_initial_data.py
246cb0d84c8cd64d6f9c084d7abc08e6b7d1861f
[]
no_license
crowdbotics-apps/my-art-23726
30266909ff78876c3cf0c1636c76ba23afd930a2
50d905b644c425ab4562d0d3bf6b1ccbae5c715f
refs/heads/master
2023-02-16T05:36:51.832504
2021-01-07T23:31:07
2021-01-07T23:31:07
327,746,125
0
0
null
null
null
null
UTF-8
Python
false
false
1,278
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "My Art" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage") ho...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
41ca52e84e63decbe2bf947b644d2b163bd058f8
89e31d05afc151fc90abf1ff085241ebadd0d3fe
/indicator/indicator.py
2929c9c2e7a2d2183ddcdea9d5f0a8f413cb4972
[]
no_license
m0dfixG/indicator_for_gan
78609fea12fcd5bb07eeac25341d709266f4eeee
a12fa4f69d14da522faccece4b8d26eaf4e19468
refs/heads/master
2020-09-11T12:26:03.340028
2019-11-20T11:54:34
2019-11-20T11:54:34
222,063,978
0
0
null
null
null
null
UTF-8
Python
false
false
1,381
py
#!/usr/bin/env python # coding: utf-8 from datetime import timedelta import math import sys import time class Indicator: def __init__(self, func, data, clazz, post_func=None): self.func = func self.data = data self.clazz = clazz self.post_func = post_func def start(self, epochs, batch_size): max_size ...
[ "m0dfixg@gmail.com" ]
m0dfixg@gmail.com
21116218d9c82e1377c0a0ab3eff0e7b2b370c5f
e0d1c6e6ae6a3be5a19d80de2b3e2de124f94619
/Quiz Solution/Module 1: Python for Data Science/1.9 Production Grade Programming/01-finally_error.py
d588de158e0af2e9876c8e77398dd4d98c96d375
[]
no_license
Kyoyakp/Alma-Better
10e062ef724d44bb70c8604feb2e6d08f233a6d7
480801acadc1db155099a27165a34a4bebe56c39
refs/heads/main
2023-08-14T14:54:12.668878
2021-10-04T11:13:59
2021-10-04T11:13:59
409,214,330
0
0
null
null
null
null
UTF-8
Python
false
false
327
py
def a(): try: f(x, 4) finally: print('after f') print('after f?') a() # My answer = after f # Answer = error # Output ''' after f Traceback (most recent call last): File "main.py", line 10, in <module> a() File "main.py", line 6, in a f(x, 4) NameError: name 'f' is not defin...
[ "noreply@github.com" ]
noreply@github.com
b6a9dc3a4919aa09d2a9cc52b7c23dcfdc36e8cb
6671c1892d93f0dd9d9799c35b984f209ca5db28
/Python/15927.py
c0c45184c000f6051ad426bc97096db56e1362af
[]
no_license
kcarollee/Problem-Solving
011417798f1c27e6e11e381bdfe61037497dfe0f
2ff75cfdfe7e2cb1e59e255ea12c1b0beb6f55ec
refs/heads/master
2021-11-13T07:18:00.039952
2021-11-07T09:45:50
2021-11-07T09:45:50
153,068,096
1
0
null
null
null
null
UTF-8
Python
false
false
471
py
class Palindrome: def __init__(self, arr): self._arr = arr self._length = len(arr) def is_not_palindrome(self, arr1): if arr1 != arr1[::-1]: return True return False def index_thru(self): if len(set(self._arr)) == 1: return -1 for j in reversed(range(2, self._length + 1)): for k in reversed(r...
[ "kcarollee31693@gmail.com" ]
kcarollee31693@gmail.com
758cb1501528aa3004a196948a2ad7f0ab1c6e63
02d1d89ed3c2a71a4f5a36f3a19f0683a0ae37e5
/navigation/lidar/lidar.py
34d8ef51c6fe221fec511bd3c07fa964d233b3e3
[]
no_license
lforet/robomow
49dbb0a1c873f75e11228e24878b1e977073118b
eca69d000dc77681a30734b073b2383c97ccc02e
refs/heads/master
2016-09-06T10:12:14.528565
2015-05-19T16:20:24
2015-05-19T16:20:24
820,388
11
6
null
null
null
null
UTF-8
Python
false
false
8,998
py
#Display Data from Neato LIDAR #based on code from Nicolas "Xevel" Saugnier #requires vpython and pyserial import thread, time, sys, traceback, math import random #com_port = "COM30" # example: 5 == "COM6" == "/dev/tty5" com_port = "/dev/ttyUSB0" baudrate = 115200 visualization = True offset = 140 i...
[ "lforet@localhost.localdomain" ]
lforet@localhost.localdomain
88e6416e442800586d647d618a581634fe30fa88
c87d0e4ec177752e72171a149f56109890cf2567
/kzm_pos_product_return/models/point_of_sale.py
a51297cd8eed47c5dea8c1a2a0fc9969dbffca18
[]
no_license
mnajjari49/pfe_s4_pso
06e63f0b519e5e58554464fa90873c969da942c9
d3dff0145b31e5bed8a33cf3ec2ff530b318ec4f
refs/heads/master
2022-11-08T19:18:35.530413
2020-06-18T10:27:47
2020-06-18T10:27:47
275,705,644
0
3
null
2020-06-29T01:54:28
2020-06-29T01:54:27
null
UTF-8
Python
false
false
4,011
py
# -*- coding: utf-8 -*- from odoo import models, fields, api, tools, _ from datetime import datetime, date, time, timedelta from dateutil.relativedelta import relativedelta from odoo.exceptions import UserError, ValidationError, Warning from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT from odoo.addons.account.wi...
[ "radouanimanal11@gmail.com" ]
radouanimanal11@gmail.com
bd752c96d395f935efc7496ed63c8fe5b8c3ec66
fa0d784b14049406e6cb2cb273baed3a478652b2
/simulator/migrations/0001_initial.py
8a00e3797d988777ebaedc15b038e2d5163e12bc
[]
no_license
Process-Scheduling-Algorithm-Simulator/web-app
6192ed6ecab43cdb869f67a937b0bc84b43760e8
7745ef596704be6a8cb95c8202833c25df6c6f83
refs/heads/main
2023-04-01T14:42:51.700012
2021-04-08T05:45:40
2021-04-08T05:45:40
347,602,344
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
# Generated by Django 3.1.7 on 2021-03-14 06:01 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='CpuAlgo', fields=[ ('id', models.AutoField(...
[ "kausthubtm6671@gmail.com" ]
kausthubtm6671@gmail.com
df1cc9fe8531ecb195734d8a48b0b8d2eef694c9
454f8e9a0dcb2ba7ab1d399e2a4268ae0c715041
/SW/Divide&Conquer/5204_병합 정렬.py
98b149e0f38bd883c8a4639a085b35e5d934917e
[]
no_license
YiSoJeong/Algorithm_Python
bcd441cbc2a4675770486d7528331403bfddaca4
131f5a32b4b87d86ea1d5e24f52bfbdafa7a6f88
refs/heads/master
2020-08-06T11:15:52.382191
2020-05-05T04:12:45
2020-05-05T04:12:45
212,956,534
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
import sys sys.stdin = open('sample_input.txt', 'r') # 분류 : Divide & Conquer # 발상 : 병합정렬 -> 분할정복 # 변형 : 병합 과정에서 왼쪽 마지막 원소 > 오른쪽 마지막 원소 인 경우의 수 # 조합 : 재귀 def merge_sort(a, l, r): global ans if len(a) <= 1: return a mid = len(a) // 2 left = a[:mid] right = a[mid:] left = merge_sort(le...
[ "soj980312@gmail.com" ]
soj980312@gmail.com
577de69bbce0613fc692136611f0700fb2ffe197
5559f81297a37347d9698fa79d1f11a4938ad309
/python/book/LiaoXueFengPythonCourse/class_test.py
99c699c77cb73d5e735d4a93a51bc96bf43fd075
[]
no_license
Junctionzc/learncoding
ed722c0d43e13e7bd634dabbd467e0674fc6c152
f817c0e75d0e6dab0ce06f9448f8ff039f3e56d3
refs/heads/master
2020-04-05T14:08:44.971097
2016-09-05T06:47:05
2016-09-05T06:47:05
52,488,202
0
0
null
null
null
null
UTF-8
Python
false
false
450
py
class Animal(object): def run(self): print 'Animal is running...' class Dog(Animal): def run(self): print 'Dog is running...' class Cat(Animal): def run(self): print 'Cat is running...' class Tortoise(Animal): def run(self): print 'Tortoise is running slo...
[ "junctionzc@gmail.com" ]
junctionzc@gmail.com
1a8d03601b116c5ef6e0c7e118bbdcf64d820b1a
31bc3fdc7c2b62880f84e50893c8e3d0dfb66fa6
/language/old/python_modules/python_packages/viewing.py
5ff6a1d6cd4b0a4e542083160779a45b5320cf27
[]
no_license
tpt5cu/python-tutorial
6e25cf0b346b8182ebc8a921efb25db65f16c144
5998e86165a52889faf14133b5b0d7588d637be1
refs/heads/master
2022-11-28T16:58:51.648259
2020-07-23T02:20:37
2020-07-23T02:20:37
269,521,394
0
0
null
2020-06-05T03:23:51
2020-06-05T03:23:50
null
UTF-8
Python
false
false
1,409
py
# https://stackoverflow.com/questions/19048732/python-setup-py-develop-vs-install """ The package directory(s) for a given Python interpreter can be found by running "import site; site.getsitepackages()" in the Python repl. - The packages for the Homebrew installed Python 2.7 are located in /usr/local/lib/python2.7/s...
[ "uif93194@gmail.com" ]
uif93194@gmail.com
17c04477593c80b63c80772e11c846a02319eb60
435cda50260beb6997f68cbb5a0f4afac4c9e9c8
/distribution-analyse
7b03e22a615ba7979c0ebc88ea0ff60f12fa3ce6
[]
no_license
pminasandra/distribution-analyse
c284406adce0edbad7875acdeff427fe368323f5
f4cde9fbd96ed37ffea30c1c68d20bceea24ba4e
refs/heads/master
2020-03-28T09:12:27.245999
2018-09-18T16:24:12
2018-09-18T16:24:12
148,020,828
1
0
null
null
null
null
UTF-8
Python
false
false
6,241
#!/usr/bin/python3 from scipy.special import zeta from math import pi, e, log import powerlaw from matplotlib import pyplot as plt from random import random import argparse parser = argparse.ArgumentParser(usage="distribution-analyse FILEWITHDATA [-l --legend] [-q --quiet] [-s --save SAVEANALYSISDESTINATION]", epilog...
[ "noreply@github.com" ]
noreply@github.com
7246a0afae1a5c34c0079d8003d9a7db1e2cf1fb
a9b31181ad6f695a2809018167a52a6d9847c0df
/Chap05-funcoes-frutiferas/calcula_distancia.py
2cb5d81026a9883ad0c8fe37a508ad4b33a1480d
[]
no_license
frclasso/Aprendendo_computacao_com_Python
21cdecdebcdbafad35a48d8425d06e4ec2ba1259
40276f396c90d25b301e15e855942a607efd895b
refs/heads/master
2020-03-12T17:38:04.886153
2018-10-11T14:17:13
2018-10-11T14:17:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
#!/usr/bin/env python3 import math def distancia(x1, y1, x2, y2): dx = x2 - x1 dy = y2 - y1 # print(f'dx vale {dx}') # variveis temporarias # print(f'dy vale {dy}') dquadrado = dx**2 + dy**2 #print(f'dquadrado vale {dquadrado}') resultado = math.sqrt(dquadrado) return resultado #p...
[ "frclasso@yahoo.com.br" ]
frclasso@yahoo.com.br
7b42249a2ce960222bcf604bc885e99b322aa403
4395c37831b7b7e7ca70cc75e1664fe0cc9727b2
/mysite/version.py
59493b5efe29ac2e210dda5b79fe5f1897e89a1c
[ "MIT" ]
permissive
dattatele/full-stack-django-kit
553bf18437545a9a225d878c795cc9fb97cd45ee
0e80e31ad39586bbb26af5060498bf79f601df2f
refs/heads/master
2020-06-24T23:14:26.370330
2015-08-16T01:12:01
2015-08-16T01:12:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,208
py
# -*- coding: utf-8 -*- # Author: Douglas Creager <dcreager@dcreager.net> # This file is placed into the public domain. # Calculates the current version number. If possible, this is the # output of “git describe”, modified to conform to the versioning # scheme that setuptools uses. If “git describe” returns an error...
[ "bjvitrano@gmail.com" ]
bjvitrano@gmail.com
76959a2b4bbb6271e0a251b13589958c02b1af82
5c1f83d885f857d6bed0606b3c4728e0995eeae5
/venv/controls/CenterForm.py
a045bbbfb304191ab8b841f6a717814c47af1981
[]
no_license
JiayinZheng/QtPy5
5af72834417ba348e5cec2558cd02b879ed2e866
662f42b4a522b90105d1f6e9fa0348ecb43b2642
refs/heads/master
2022-05-10T06:45:03.340050
2020-04-27T10:53:06
2020-04-27T10:53:06
259,285,758
0
0
null
null
null
null
UTF-8
Python
false
false
1,461
py
# 居中程序,添加按钮以及事件 import sys from PyQt5.QtWidgets import QDesktopWidget, QPushButton, QMainWindow, QApplication, QHBoxLayout, QWidget from PyQt5.QtGui import QIcon class CenterForm(QMainWindow): def __init__(self, parent=None): super(CenterForm, self).__init__(parent) # 设置主窗口标题 self.setWin...
[ "zhengqiupu@126.com" ]
zhengqiupu@126.com
ece46195cbcd13153c8e6790b9fa408d4bc94986
24002090776f5dea986dd9992d6be44f29375f2e
/examples/mnist/net/mnist_net.py
1420d9b53bcbb503111bec5f70132188d65b7a77
[ "MIT" ]
permissive
gehaocool/gluon-face
5009bd184bde205ab53917b7e7ed55e8853fb184
5721205a8f41c0a143258ad8fede675f2ca4b0b2
refs/heads/master
2020-04-23T20:20:39.221004
2019-02-20T13:45:58
2019-02-20T13:45:58
171,436,870
0
0
MIT
2019-02-19T08:37:25
2019-02-19T08:37:25
null
UTF-8
Python
false
false
1,812
py
# MIT License # # Copyright (c) 2018 Haoxintong # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, p...
[ "haoxintongpku@gmail.com" ]
haoxintongpku@gmail.com
5b12071529ee505d7f220bf038022750ea9ad784
bdbe6e0bfb5bac3f20065aee24f2a2de8663691a
/transformer/main.py
9817e800ca8d97b7933690715071e0cb4f9d410c
[]
no_license
b1r3k/goodreads-feed-transformer
df54c07560d795e767ee6caec64d5eab82e11a85
8c109fc4f5fb5d5e33c2f3a1ceea347bc352cbb2
refs/heads/master
2021-06-11T16:14:13.679527
2019-09-10T15:17:07
2019-09-10T15:17:07
141,715,229
1
0
null
2021-02-26T02:16:09
2018-07-20T13:26:26
Python
UTF-8
Python
false
false
7,353
py
import asyncio import logging import re import time import signal from email.utils import parsedate_to_datetime import lxml.html import lxml.etree from aiohttp import web, ClientSession import aioredis from .const import * from .store.events import store_event_marker, remove_event_marker, get_event_marker from .git...
[ "lukasz.jachym@gmail.com" ]
lukasz.jachym@gmail.com
03555c467fd628fbcbf7952cb7f75432e5dedef9
8b9ad7c41cb6898652515764f4d152c1163e6b55
/Lab2 - RRT and RRT^star Planner/RRT.py
da4469c8bbe5fcedd9f8c84deea7c17bb2d8fa4e
[]
no_license
QuantuMope/ucla-computational-robotics
300d94cc702afbe2d32b06e301a12e99675c0b68
9bd2d1d1de018a19729118f9dc739d5b65fcead0
refs/heads/master
2020-08-11T14:27:34.598175
2020-06-08T11:23:26
2020-06-08T11:23:26
214,579,893
0
0
null
null
null
null
UTF-8
Python
false
false
23,423
py
import math import numpy as np import matplotlib.pyplot as plt from matplotlib.transforms import Affine2D from mpl_toolkits.mplot3d.art3d import Poly3DCollection from mpl_toolkits.mplot3d import Axes3D from scipy.optimize import least_squares from shapely.geometry import Point from shapely.geometry.polygon impo...
[ "neffneff4@gmail.com" ]
neffneff4@gmail.com
5d00cb51a5787e0c009500b7adbe80e414ae292b
0f54dc0000213340ee9a015b065bc7248da482bb
/models/__init__.py
4b8f099c38468858fb0cc3ac2e7997756055ff93
[]
no_license
Striderl/Talking-Data
1800f933a9fbcc1ce83acbf409c68f493c325ea1
ec2b78b1d8198c5f51c9954c1926d2766838aa62
refs/heads/master
2021-09-13T23:51:56.325130
2018-05-06T04:23:27
2018-05-06T04:23:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
23
py
# make models a module
[ "maohanfei@gmail.com" ]
maohanfei@gmail.com
4dd807a5213b306535f64f7a77d8d6b8055688b4
bf5b0bab1c0aa1ceb9530eaa01c1089ec686134d
/pytorch-AdaIN-master/video_to_frames.py
6c6f0d2fed8976e29cb0a8a731d1fc48f8f85b29
[ "MIT" ]
permissive
Dahny/DeepLearning
f4b339ed27e8d904dd6e40996443e829b8afeb78
de6d7976cc3fee60b2271ed953fe2ecac4ba395c
refs/heads/master
2020-05-17T23:43:31.357724
2019-07-08T14:37:42
2019-07-08T14:37:42
184,038,429
0
0
null
2019-07-08T14:19:59
2019-04-29T09:12:37
Jupyter Notebook
UTF-8
Python
false
false
343
py
import cv2 vidcap = cv2.VideoCapture('input/videos/cutBunny.mp4') success,image = vidcap.read() count = 0 while success: cv2.imwrite("input/frames/frame%d.jpg" % count, image) # save frame as JPEG file success,image = vidcap.read() print('Read a new frame: ', success) count += 1 print("There are a total of...
[ "dannyplenge@gmail.com" ]
dannyplenge@gmail.com
aca53a0e7da592e8f5d1d7e38b32f7b8dad3a180
03042833e58689f156cbdb0b2e38a5c16eac0b97
/app/db_models/client_master.py
ef52582a05e3df8c3ada6b5d000feb91d75a5d98
[]
no_license
markblog/h3
09d45aa4673db4f223af2497abc65939c5fa62f2
9ae31adef5f37358369118b33267fd82c3e55bfe
refs/heads/master
2020-03-24T20:43:28.846754
2018-07-31T10:00:11
2018-07-31T10:00:11
142,993,903
0
0
null
null
null
null
UTF-8
Python
false
false
2,055
py
from app.ext import db import datetime from app.mixins.dict import DictMixin class ClientMaster(db.Model, DictMixin): __tablename__ = 'client_master' id = db.Column(db.Integer, primary_key = True) client_id = db.Column(db.String(128)) client_name = db.Column(db.String(128)) salesforceid = db...
[ "BMa@StateStreet.com" ]
BMa@StateStreet.com
d428c476d1c551f1c31af99d093bd82d685cc301
b4ca78134c296d8e03c39496bcc57369fd5f619b
/kubehub/vbox_api/vbox_functions/vbox_add_network_card.py
edd37f768155400ebc3714b5af1738bce351c1f8
[]
no_license
dedicatted/kubehub-backend
7f4b57033962f1ef8604a2cee0cf55bebd533ec9
3b944e462f5366b2dbad55063f325e4aa1b19b0e
refs/heads/master
2023-02-05T04:44:50.213133
2020-06-10T15:02:03
2020-06-10T15:02:03
236,169,121
1
1
null
2023-01-24T23:19:38
2020-01-25T12:45:32
Python
UTF-8
Python
false
false
311
py
from os import system def add_network_card(name, status): vbox_add_network_card_cmd = f'VBoxManage ' \ f'modifyvm {name} ' \ f'--ioapic {status}' vbox_add_network_card = system(vbox_add_network_card_cmd) return vbox_add_network_card
[ "noreply@github.com" ]
noreply@github.com
f5d0c20f568a5b1f3ce454df63b28f3135e45aca
82bfae0ade4a311544de18c05ef51113fe14cd33
/python/problem74.py
1fad9f3de57f16dbda8a6493a35a24c4a9893841
[]
no_license
ayberkt/project-euler
d514b74afaffb8612af933bc4eeddc027af6f50a
d3dcc136d55b6623c9b0c9c16996565b1c23fadf
refs/heads/master
2020-12-24T16:26:17.590771
2016-04-22T00:51:57
2016-04-22T00:51:57
18,046,336
0
0
null
null
null
null
UTF-8
Python
false
false
553
py
from math import factorial as fact def fact_sum(num): return sum([fact(int(digit)) for digit in str(num)]) def fact_chain_count(num): traversed = set([num]); new_num = num while True: new_num = fact_sum(new_num) if new_num in traversed: return len(traversed) traversed.add(n...
[ "ayberk.tosun@gmail.com" ]
ayberk.tosun@gmail.com
de07b939abd82b5ba32134491edb61a09fc0bf4a
33ab8ea349fd8548f9244ca1d4563b03065857ae
/01_初识python/04_1-注释的重要性.py
2907e8965f7b1a199bea236fdc6c25919abdc446
[]
no_license
dinphy/python-base-case
0b6e9dc5b7fc3fd36962a4654b47e4e7f04961c1
ab9156cec0e5c9c58d40becd685f6386d5101967
refs/heads/main
2023-07-05T13:15:19.985354
2021-08-09T11:46:35
2021-08-09T11:46:35
393,876,305
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
# 注释: 是对代码进行解释和说明 # 注释是给人看的. 机器是不运行的. print("你好呀, 我叫赛利亚") # 单行注释 print("你才好呢. 我不是赛利亚") """ 多行注释 写诗.. """ ''' 多行注释 '''
[ "dinphy1205@126.com" ]
dinphy1205@126.com
d720dd07de53b5a37525d7786c6e0a62bad54ac7
6e5ab77fee1fb4a0310213dd8c6dd8601828b1b9
/Algorithm/Swea/D1_6216.py
0350d0efc1341066ab31e71c958e366af757fba5
[]
no_license
hongyong3/TIL
36d031c0da9e3e6db3eebb977bd3e12df00a849f
7f1492128e957a78fc95b255f4f7f2978161e471
refs/heads/master
2023-08-19T09:16:03.231757
2023-08-18T09:38:47
2023-08-18T09:38:47
162,100,258
1
0
null
2023-02-11T00:52:32
2018-12-17T08:42:42
Jupyter Notebook
UTF-8
Python
false
false
123
py
import sys sys.stdin = open("D1_6216_input.txt", "r") print("혼합된 소금물의 농도:", round(20 / 3, 2), end = "%")
[ "chy66822495@gmail.com" ]
chy66822495@gmail.com
29a4212ddd1f9d1d2be4f140e3b4e89b7661da46
5c4838565656a75b09502e6e60c7d78c8b196133
/douban/douban/middlewares.py
70b728be1373553ba91874da9c281ed755c2e4cc
[]
no_license
huangshengda/toys
e2e1c2539df1d9f5c7df2431f3343e2a7017edf4
374c8ec60f3acbb479954d8202d74c97660ac158
refs/heads/master
2020-04-01T09:16:44.352742
2018-07-07T07:07:53
2018-07-07T07:07:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,474
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals import random class DoubanSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, ...
[ "490641570@qq.com" ]
490641570@qq.com
72c698bb4db7339f4c8bd609e872ef8e9ecb7d81
5538dcaf20a27c9544d09307017142c6a2fcd468
/comments/models.py
89da06222ecd9ab9fb2e9730647953d64e4aaca7
[]
no_license
ziwen0310/django-twitter
900283b79cdac5bf9c9211dae9631cb93df9623c
af878f1858cb4705f002a1bc748fccd1eeeb6366
refs/heads/main
2023-07-18T16:23:55.353114
2021-09-03T20:01:02
2021-09-03T20:01:02
367,435,842
0
0
null
2021-09-03T20:01:03
2021-05-14T17:31:00
Python
UTF-8
Python
false
false
1,625
py
from comments.listeners import incr_comments_count, decr_comments_count from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from django.db import models from django.db.models.signals import post_save, pre_delete from likes.models import Like from tweets.models import T...
[ "ziwen.wang@wustl.edu" ]
ziwen.wang@wustl.edu
9b70e423efd268dade0a634b69e9743fcad24229
2682f97115be8c895f62c3de43aeabd46be4bb0b
/accounts/migrations/0008_delete_comentarios.py
c833474a12657c77ab8c45a68ee830397794dc49
[]
no_license
mrWolfff/tcc_web
8314add9eddc300110b2f6e011844eb730b466e6
ada5433936f5ee439726d7df6fdc10620767daf6
refs/heads/master
2020-07-14T07:31:20.297439
2019-12-06T23:13:27
2019-12-06T23:13:27
205,274,311
0
0
null
2019-11-28T08:17:43
2019-08-30T00:34:31
HTML
UTF-8
Python
false
false
301
py
# Generated by Django 2.2.4 on 2019-12-04 19:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('accounts', '0007_auto_20191204_1108'), ] operations = [ migrations.DeleteModel( name='Comentarios', ), ]
[ "lucasewolflew@gmail.com" ]
lucasewolflew@gmail.com
f61fa95ab16209f5e810e4c17681f8f629116f6c
0f71a8b15dd7864b5ee95d5c58e8b6db2a29edc7
/island_perimeter.py
ebad41b876f0de723963e12f07c54e08fe964d08
[]
no_license
TedWildenradt/CTCI-Python
05318546cbc53d3762a487a64f5b5fd5e4fdda92
9dffc419af45709d95d2ab5dc163461d254140c4
refs/heads/master
2020-04-22T20:01:43.841185
2019-03-27T15:21:48
2019-03-27T15:21:48
170,628,249
0
0
null
null
null
null
UTF-8
Python
false
false
927
py
class Solution(object): def islandPerimeter(self, grid): """ :type grid: List[List[int]] :rtype: int """ self.output = 0 def dfs(row,col): if row<0 or col<0 or row >= len(grid) or col >= len(grid[0]) or grid[row][col] != 1: return ...
[ "tedkwildenradt@gmail.com" ]
tedkwildenradt@gmail.com
04c8bdac705d0bfad69ac9b2c33f5c09aad6bab6
7804e9a621a66e70495255675881bd20a26d866a
/301.py
b3eab694290320ed852c96ebf725fc7a21f6ca01
[]
no_license
steve98654/ProjectEuler
3ede6fb91cb1f90859ded81cb47b4a2ce65614ef
38091dd75179e222394a6d515cae64ad371123e9
refs/heads/master
2020-04-15T03:03:20.661132
2019-10-14T03:30:44
2019-10-14T03:30:44
11,466,422
1
1
null
null
null
null
UTF-8
Python
false
false
97
py
cnt = 0 for i in xrange(1,2**30+1): if(i^(2*i)^(3*i)==0): cnt = cnt + 1 print cnt
[ "steve98654@gmail.com" ]
steve98654@gmail.com
9f4550b3494762ed8c896b31a6af820c34a78712
05970117cb0b598d8f03b2759ff2cefc00e178c8
/client/starter/visualiser_complete.py
a94608608dd8f8ad5867c43a24e8346b7558149e
[ "MIT" ]
permissive
wreien/snake-arena
2cc427c27f3e2d7bbabc57c48939d16506dc6560
ab674810c77fe5f72c430e8e08ec94b34ad1634e
refs/heads/master
2023-06-22T03:37:21.340360
2019-10-20T14:13:33
2019-10-20T14:13:33
211,611,190
0
0
MIT
2023-06-14T16:13:30
2019-09-29T05:58:11
Python
UTF-8
Python
false
false
3,116
py
#!/usr/bin/env python3 import pyglet from pyglet.window import key import urllib.request import json import sys # TODO: load data from history page history_url = "http://192.168.121.144/room/8/history" data = urllib.request.urlopen(history_url) data = json.load(data) # if there's no data, quit immediately if len(d...
[ "natattak@gmail.com" ]
natattak@gmail.com
72fd6a3cbef322f88960332800adbe5d1113dd91
4c57ab2fd7e946e6500e1d8613ba28499adaafc3
/code/Tensorflow中文教程/2.MNIST手写体识别.py
6e81b2f068c8489f6a7cf0f10e7770f610abc5ca
[]
no_license
Confucius-hui/Deep-Learning
d13a2397af910e4aacd6a77767cea34f18a29470
3b82bd29a728594f403ca63436025fd558f044b9
refs/heads/master
2020-04-07T11:46:29.294345
2018-12-27T07:39:22
2018-12-27T07:39:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,203
py
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('MNIST/',one_hot=True) ##1.定义占位符 x = tf.placeholder('float',[None,28*28]) y = tf.placeholder('float',[None,10]) ##2.定义参数,softmax W = tf.Variable(tf.random_normal([28*28,10])) b = tf.Variable(tf.zeros(...
[ "1034243218@qq.com" ]
1034243218@qq.com
19a7920cd95f4f1f7c7cad5fcde189118b3f760e
1caf60a77221be8d70ebb844b0c6d7a722b3c16a
/npyscreen/fmForm.py
c98b3da0701ee9bd2d1a7dd3514b3301e42958b8
[]
no_license
phcreery/spotdl-cli
b6554c90b5549f9c9008b542529a0a294b5f10ea
c54c36d235007ac45ef662a3180128c47932605c
refs/heads/master
2020-12-28T06:31:29.658648
2020-02-26T00:45:11
2020-02-26T00:45:11
238,211,907
10
1
null
null
null
null
UTF-8
Python
false
false
16,647
py
#!/usr/bin/python from . import proto_fm_screen_area from . import wgwidget as widget from . import wgbutton as button import weakref from . import npyspmfuncs as pmfuncs #import Menu import curses import _curses from . import npysGlobalOptions from . import wgwidget_proto from . import fm_form_edit_loop as form_ed...
[ "phcreery@gmail.com" ]
phcreery@gmail.com
f7113817e5e4716adc8f2af0cf17143b3da6c65d
ef8fefa688ab6e2cb2f2a30cfe6bbb02366b9015
/bilstmTrain.py
70631b18efe4f65fcf940b4d097208c278a0103e
[]
no_license
MatanBN/Deep-Learning-ass3
74beeaaa90a3a63e15f6e870da5ae33b0361acdd
e40a4c9bbd16831c9aeb612ee3deb80db3b1a132
refs/heads/master
2021-09-01T20:06:00.652974
2017-12-28T14:20:25
2017-12-28T14:20:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
from Helpers import * import sys EMBED_SIZE = 150 LAYERS = 1 DIMS = [64, 64] if __name__ == '__main__': train, dev, network, trainer = prepare(sys.argv[1], sys.argv[2], sys.argv[4], EMBED_SIZE, LAYERS, DIMS) train_bi_lstm(train, dev, 5, trainer, network, sys.argv[3])
[ "matanbn22@gmail.com" ]
matanbn22@gmail.com
68f9c64f9fdba88df8225851e68798225af2346d
63acfadae1b26e521169191ae441cfdb86817651
/tests/argparse/special/modules/defaults/__init__.py
3505b0795f024d936847202220a08964b18c6216
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
da-h/miniflask
4e1e8889623665309b7194948222635275acea34
e8398bcf2b81e1d1cd8d53d9f4b1125c027552b1
refs/heads/master
2023-05-10T19:28:59.669718
2023-05-05T12:54:05
2023-05-05T12:54:05
240,955,157
7
1
MIT
2023-02-28T14:44:33
2020-02-16T19:47:49
Python
UTF-8
Python
false
false
573
py
def printVal(state, name): val = state[name] print("%s:" % state.fuzzy_names[name], val) def print_all(state): printVal(state, "var_default") printVal(state, "var_default_override") printVal(state, "var_default_override_twice") printVal(state, "var_default_override_twice_and_cli") def regis...
[ "dhartmann@uni-mainz.de" ]
dhartmann@uni-mainz.de
817c1daa5dc9dfb97a63b62008feb3754b8b19a9
c1152761088e196c396b2fb009e2f7dcd413b6d1
/1-introduction/test.py
a949e3889031f6bbae0f9ec4b4c87234af783d8e
[]
no_license
alicetientran/CodeWithTienAndHieu
ef0d522107f8d719ce4994e640f95276f69f7583
b43daf63198ad12891cdb5276174e09889bb73e2
refs/heads/main
2023-08-29T08:01:45.871062
2021-11-10T17:22:57
2021-11-10T17:22:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
16
py
# for show case
[ "noreply@github.com" ]
noreply@github.com
4be8a9f91ad8fbc6da7e187636382f69d3e9014f
3fe272eea1c91cc5719704265eab49534176ff0d
/scripts/field/jett_tuto_7_1.py
14fea3977f59741c0b2fb4a9b3c317feb3510588
[ "MIT" ]
permissive
Bratah123/v203.4
e72be4843828def05592298df44b081515b7ca68
9cd3f31fb2ef251de2c5968c75aeebae9c66d37a
refs/heads/master
2023-02-15T06:15:51.770849
2021-01-06T05:45:59
2021-01-06T05:45:59
316,366,462
1
0
MIT
2020-12-18T17:01:25
2020-11-27T00:50:26
Java
UTF-8
Python
false
false
805
py
# Created by MechAviv # Map ID :: 620100027 # Spaceship : Spaceship Cockpit sm.curNodeEventEnd(True) sm.setTemporarySkillSet(0) sm.setInGameDirectionMode(True, True, False, False) sm.forcedInput(1) sm.sendDelay(30) sm.forcedInput(0) sm.sendDelay(1000) sm.showEffect("Effect/DirectionNewPirate.img/newPirate/balloonM...
[ "pokesmurfuwu@gmail.com" ]
pokesmurfuwu@gmail.com
7591c784b3bfe157d30268f0f4c827459b87451e
2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8
/pardus/playground/cihan/x11/terminal/tilda/actions.py
6365c12bfaa653eb97e910517eb474fc4fc748e3
[]
no_license
aligulle1/kuller
bda0d59ce8400aa3c7ba9c7e19589f27313492f7
7f98de19be27d7a517fe19a37c814748f7e18ba6
refs/heads/master
2021-01-20T02:22:09.451356
2013-07-23T17:57:58
2013-07-23T17:57:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 2 # See the file http://www.gnu.org/copyleft/gpl.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools def setup(): autotools.configure("--with-x") def build(): autotools.make() def...
[ "yusuf.aydemir@istanbul.com" ]
yusuf.aydemir@istanbul.com
c0aaae53d3bac8fa42ab0181255160ca1c62c244
a6e530f84a9ace424a13bf81a0532f78c0ca6285
/app/engine/system.py
4e161382b03babba6c772f16936d589ba62acb12
[]
no_license
matbrunt/halite-bot
4f6cc472c74c52b0c1f20e74c538b2b7608da77c
b0966ce9dbf0602f1875d99f831253bb6eaf6c2d
refs/heads/master
2020-04-28T04:14:39.338741
2019-03-11T09:31:18
2019-03-11T09:31:18
174,970,340
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
import logging import math from hlt import constants def calc_halite_proportion(total, collected): return round(collected / total, 2) def calc_move_cost(halite_amount): cost_ratio = 1 / constants.MOVE_COST_RATIO return math.floor(halite_amount * cost_ratio) def calc_halite_collection(halite_amount): ...
[ "mat.brunt@skyscanner.net" ]
mat.brunt@skyscanner.net
7d96baf9c2809fb75160b3408b937db27625bdf9
cbd14183dc17fc8811ab82382f6b8580daea1707
/assignment2/lstmMNIST_GRUCell.py
7af8309d139544498dd598334837207f6c732d81
[ "MIT" ]
permissive
aernesto/IntroMachineLearningCourse
e3643f9ad0cca9b3de815e25f9dca7450abd3a78
867a88b9bb2a97708a445c97f32974f3c2b29b74
refs/heads/master
2021-07-19T07:27:27.717214
2017-10-25T15:32:26
2017-10-25T15:32:26
105,726,017
0
0
null
null
null
null
UTF-8
Python
false
false
3,923
py
# Most code inspired from # https://github.com/aymericdamien/TensorFlow-Examples/blob/master/examples/3_NeuralNetworks/recurrent_network.py import tensorflow as tf import os from tensorflow.python.ops import rnn, rnn_cell, rnn_cell_impl #from tensorflow.contrib import rnn # copied from Damien Aymeric import numpy as n...
[ "adrian.radillo@gmail.com" ]
adrian.radillo@gmail.com
41c6486f951f7bb6d88d931b5de491fd9a4922c4
a2cf3c0ec16bbefb6d28669bc2623080c3e3e7ad
/facebook/models.py
d054e0fa8a09aa47a4354380dfea3fef235ddd35
[]
no_license
rollinger/friendcheck
0b0f4508dcc93936507f102e260487422151cd32
c44bc2af4840115988f4861722dabf764d736573
refs/heads/master
2023-06-22T00:34:50.916852
2019-02-23T11:20:20
2019-02-23T11:20:20
389,149,516
0
0
null
null
null
null
UTF-8
Python
false
false
10,357
py
import json, re, random, datetime from itertools import tee from django.db import models,transaction # https://docs.djangoproject.com/en/2.1/ref/contrib/postgres/fields/ from django.contrib.postgres.fields import ArrayField from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from dj...
[ "philipp.rollinger@gmail.com" ]
philipp.rollinger@gmail.com
ad0a606151bb085a6b743c60486c0d0e5fd68f23
2b7fd209a6f7dcff4b54fd76eae5851486c6326e
/Imagery scripts/footprint_exact.py
41773ef1b4c69753525e313c964a26bced7d6de7
[]
no_license
lynch-lab/Tools
b89e3837a7c5d026962a683bf545c26103223376
d3fb989ecf011fb2cd17d355c3b04eb5e0afe996
refs/heads/master
2020-04-27T09:08:12.096003
2019-11-27T19:58:23
2019-11-27T19:58:23
174,201,887
0
1
null
2019-04-03T15:33:31
2019-03-06T18:50:58
Python
UTF-8
Python
false
false
11,807
py
import rasterio import os import re import time import traceback from fiona.crs import from_epsg import fiona from shapely.geometry.geo import Polygon, mapping from collections import namedtuple import numpy as np import geopandas as gpd import datetime import glob import argparse import multiprocessing # footprint te...
[ "bspitzbart@stonybrook.edu" ]
bspitzbart@stonybrook.edu
3e89339164ec3f6f14a520df96b95965742c80d5
1b3e2f2fc1f917b0a6186ed4ac8538eb9f5aebf4
/edgegan/nn/modules/activation.py
7036ae95faf9a45eb6b936c82314479ac9bdea3a
[]
no_license
wangdian215/EdgeGAN
e0cdb4016361a4dbd408eecad91c424f337f6af0
7867a5a35ff860f692cf9a167a22742cb424407e
refs/heads/master
2023-05-21T04:51:46.281753
2020-11-04T17:22:35
2020-11-04T17:22:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
910
py
import tensorflow as tf def activation_fn(input, name='lrelu'): assert name in ['relu', 'lrelu', 'tanh', 'sigmoid', None] if name == 'relu': return tf.nn.relu(input) elif name == 'lrelu': return tf.maximum(input, 0.2*input) elif name == 'tanh': return tf.tanh(input) elif na...
[ "1552063273@qq.com" ]
1552063273@qq.com
2e097f0f1ae3739c252a09b3ac5a5915936fd29c
1cfa8540de788f7e782304b990749642fb66b20c
/9/lab_exercise_09/lab_exercise_09.py
7c1bbc35dc75940851087f275c91c3448f1d4802
[]
no_license
yzzangela/python
4ef42d3ef3d1d5feabf3fcfae9bfd069c9ec19bd
207a46f165ba033c48e0bf0e2b73dfa5d4501ea4
refs/heads/main
2023-01-20T05:30:52.344520
2020-11-28T10:12:35
2020-11-28T10:12:35
316,704,098
0
0
null
null
null
null
UTF-8
Python
false
false
2,766
py
# LAB EXERCISE 08 print('Lab Exercise 08') # This Week's Lab # This lab exercise introduces you to classes, creating instances and updating variables. # A class named Dog has been created using the keyword class for you. # You will be implementing the < __init__() >, < increment_age >, # < update_tricks > and < __str...
[ "noreply@github.com" ]
noreply@github.com
4391f391a8f1a7ffae0c94279e23acdd2897db2c
c7f061be41458e3a99eb500ca46e24c47365c906
/plotting/zonal_mean_plots.py
3b33674217964c11529563db7026c41ea7a1bd9b
[]
no_license
MJones810/code_from_jasmin
a661dd3f51c19cf3c39341763bcc5e19937eb10a
245b74e37cc3231ea8d7c227f9b7953e33c2dc3b
refs/heads/master
2016-09-06T05:55:49.269318
2014-04-30T10:18:44
2014-04-30T10:18:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,787
py
#!/usr/bin/env python2.7 ''' Zonal mean plots. ''' from netCDF4 import Dataset import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as mcolors import myplot from multiprocessing import Pool activate_this = '/home/users/mjones07/science/venv/bin/activate_this.py' execfile(activate_this,dict(__fi...
[ "m.jones3@pgr.reading.ac.uk" ]
m.jones3@pgr.reading.ac.uk
35999d00ecca7973a728a7216c8ed4b2f7222df2
fd187753fa9691322d289c3f31ecbcfbfcb06394
/ir.py
b6e06c8d1466bc8c9657b816c503f053371c5ba3
[]
no_license
locoxelmillo/PL2303raspberrypiIR
93e6cdc34f93d2af46f2de1b6c76fc5a91f29106
1ff4326a72bd6a0aebd67fcd3b2906acd478b224
refs/heads/master
2022-12-16T12:38:19.330988
2020-09-16T23:49:51
2020-09-16T23:49:51
295,400,477
0
0
null
null
null
null
UTF-8
Python
false
false
1,210
py
import RPi.GPIO as GPIO import time import serial #Configuration GPIO of RaspberryPI3 GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.setup(4, GPIO.IN) #Configuration initial port Serial ser = serial.Serial( port = '/dev/ttyUSB0', #Position initial port USB baudrate=9600, parity=serial.PAR...
[ "noreply@github.com" ]
noreply@github.com
99cde3eeda6b4c1a23d30f352a03ae208a310e79
afb8b40ce65c41411afefd3f05c28eb21aacefdb
/pythonProjects/Edureka_case_studies_Pyspark/case study 5/5_part1_sparkDf.py
388b0222abf7632aeba2fb17cd6117a38570158f
[]
no_license
shasank-shah/pycharmProjects
017ff7b616e00ac19be00eace6a29ff1d594ecce
18adca1c1df88b3bbf1593a0c27268a10d785508
refs/heads/master
2023-07-10T06:24:52.017869
2021-08-21T13:41:27
2021-08-21T13:41:27
398,579,727
0
0
null
null
null
null
UTF-8
Python
false
false
1,064
py
#!/usr/bin/python3.6 #!/usr/bin/env python3.6 # coding: utf-8 from pyspark.sql import SparkSession from pyspark.sql.types import StructField, StringType, StructType, DoubleType, DateType, IntegerType from pyspark.sql import functions as F # spark declaration spark = SparkSession \ .builder \ .appName(...
[ "shasank.shah@gmail.com" ]
shasank.shah@gmail.com
480f0a09c0bd2c530ddccde2b75ec1b50f816f23
e02b22765a8080f9b1945abfdb339161e52ead2f
/filtergram.py
a1416fdc5e8d7f0c9dcbb075501faef0420454ba
[]
no_license
sfriedmanparks/didactic-pancake
2ba7aff28e62f93ee40baf16a28be65403c130fe
c98f5957425e0b6de3a4f9008a648a712f85f0a4
refs/heads/master
2020-03-23T10:59:52.874754
2018-08-09T13:56:57
2018-08-09T13:56:57
141,475,909
1
0
null
null
null
null
UTF-8
Python
false
false
180
py
import filtername def main(): filtername.load_img() filtername.insert() filtername.show_img() filtername.save_img() if __name__ == "__main__": main()
[ "noreply@github.com" ]
noreply@github.com
554bce786dedf0d5fa2d11fc4ba2f31ed4c72111
c704fc79bcb7ba343f73b83a5ae51c0ef709a6eb
/programming_2_ca117-master/programming_2_ca117-master/Lab 9.1/geometry_91.py
eba31efd4a1a2ae504cf377a78fbbabf40c33f62
[]
no_license
nigelbrennan/Anxiety-App
22384ee2266520faa886e1c9d189edce65d4e6f0
808aa3529e41432529af4928fa174cc447b869bd
refs/heads/main
2022-12-20T07:58:35.910174
2020-10-09T02:44:29
2020-10-09T02:44:29
302,515,047
0
0
null
null
null
null
UTF-8
Python
false
false
599
py
class Point(object): def __init__(self, x, y): self.y = y self.x = x def __str__(self): return '{} {}'.format(self.x, self.y) class Shape(object): def __init__(self, points): self.p1 = points[0] self.p2 = points[1] self.p3 = points[2] def sides(self): return 'hell' class Triangle(Shape): def __s...
[ "nbnigelbrennan@gmail.com" ]
nbnigelbrennan@gmail.com
51a6b208cd955a581dd205882b46ec0d235fe290
f0924143f41ece9c7310c0e850c88121f16f7da0
/test/functional/feature_fee_estimation.py
cfede4ae84438c6413e300402c763584b84c5de6
[ "MIT" ]
permissive
Mogoai/Franc
a8cb6c33b7f29ac475f785d7ecf895f1fa481da9
f9e7c0ca447077c512add17cae557bf1d59e3d88
refs/heads/master
2020-05-04T15:02:47.497587
2019-04-23T09:58:37
2019-04-23T09:58:37
179,221,510
2
0
null
null
null
null
UTF-8
Python
false
false
11,245
py
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test fee estimation code.""" from decimal import Decimal import random from test_framework.messages im...
[ "pagde@orange.fr" ]
pagde@orange.fr
446497340eeeee9cb576dc0d78fb36d64458b450
5bf2a553d0e1c8d62bfe26187c574454e4c3dc47
/abhishekBhartiProjects/home/models.py
c19a7530c9419948a53b08741d7ade8083dcb3c5
[]
no_license
abhishekBhartiProjects/abhishekBhartiProjects.github.io
5eebb30fe93ae8fd349b4726d010ab96a1a18c37
ab233986027f8194db3d0bd190126610ec2070bb
refs/heads/master
2022-12-09T23:32:33.055856
2019-06-10T01:22:42
2019-06-10T01:22:42
146,253,780
0
0
null
2022-12-03T07:28:52
2018-08-27T06:06:12
Python
UTF-8
Python
false
false
1,277
py
from django.db import models # Create your models here. class Home(models.Model): mainText = models.CharField(max_length=1000) subText = models.CharField(max_length=2000) ctaText = models.CharField(max_length=500) ctaUrl = models.CharField(max_length=1000) backgroundUrl = models.CharField(max_leng...
[ "abhishek.bharti@testbook.com" ]
abhishek.bharti@testbook.com
593a59a364ab7d8fda452cfe9b14c94072301971
4c8ea19c32270d256664e417607ebb26185e9ba5
/dice.py
b66a595111c413b1e7cd575bb49130535fd0e85b
[]
no_license
tible/TT
7965392655aea3d34f4eae4f8499e0cde10473ca
aaf201b61d7c8091e4541e6bf23379da25e3504a
refs/heads/master
2021-09-23T00:34:08.528417
2018-09-19T07:10:49
2018-09-19T07:10:49
99,417,752
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
import random class Dice(): """A siple attempt to model dice.""" def __init__(self, faces): self.faces = faces def throw(self): d1 = random.randint(0,self.faces) #print (d1) return d1 dice_1 = Dice(12) dice_2 = Dice(12) d1 = dice_1.throw() d2 = dice_2.throw() print(d1, " * ...
[ "tiberiu.gociu@gmail.com" ]
tiberiu.gociu@gmail.com
4d8c2d81ee6ea261b59ddb4eb91cb66024778ed6
ce607df215bd0569a966033092ae3d24f48af714
/docs/guide/code/awesome-bot-7/awesome/plugins/usage.py
825a57f9849268c8956a25255a3e924fee1d6840
[ "MIT" ]
permissive
nonebot/nonebot
fbf926e77329fc129dd51a31cfcb62a8f4aab578
4b49289759af0ef774d28fd0ffaed7e1a9e35fbf
refs/heads/master
2023-08-16T00:01:06.288649
2023-06-01T08:44:04
2023-06-01T08:44:04
75,402,138
1,521
268
MIT
2022-08-17T06:07:19
2016-12-02T14:23:43
Python
UTF-8
Python
false
false
714
py
import nonebot from nonebot import on_command, CommandSession @on_command('usage', aliases=['使用帮助', '帮助', '使用方法']) async def _(session: CommandSession): # 获取设置了名称的插件列表 plugins = list(filter(lambda p: p.name, nonebot.get_loaded_plugins())) arg = session.current_arg_text.strip().lower() if not arg: ...
[ "richardchienthebest@gmail.com" ]
richardchienthebest@gmail.com
5b9482a20180b645c99bba60a28466e46031163f
cc212464d3d15c78ab3fab224c9e80051fcbf2fc
/Python Refresher/29_type_hinting/code.py
8c88b9c4308587ccf873a96728206fbf661419e5
[]
no_license
mxgardee/Pyhton-SQL
d5528cdc93930328c335598375c15b381d81dbc5
e5a0c9eb35382777d719d1af427984eb97b59973
refs/heads/main
2023-07-29T07:18:37.819940
2021-09-13T19:26:28
2021-09-13T19:26:28
352,612,428
0
0
null
null
null
null
UTF-8
Python
false
false
1,364
py
def list_avg(sequence: list) -> float: return sum(sequence) / len(sequence) # -- Type hinting classes -- class Book: def __init__(self, name: str, page_count: int): self.name = name self.page_count = page_count # -- Lists and collections -- from typing import List # , Tuple, Set, etc... ...
[ "mxgardeee@gmail.com" ]
mxgardeee@gmail.com
32b5982fddad50b11c0b227150e2672caa73c81f
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_9466.py
1ba8719a21b95b29fa4d86d410b7cf87c9d36a21
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
35
py
# In [2]: tuple(a[:-1] for a in x)
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
8a8953825571615ba86b049c0fb2454e0e153f9b
c6df139b16223ea7d08f9d96ada2bb0b28dae87c
/gasSensor/echoClient_send.py
ff94453c7679ae7d79e4dc211c1c88cd69009bf6
[]
no_license
miinsun/AI_smartHome_total_care_solution
00a37be4e2d1a2ce7d8377ead4f81d956fb7d30a
dfd4e1f8f598df4d8728f25e30447930744652a6
refs/heads/master
2023-02-27T13:02:18.617066
2021-02-05T14:14:12
2021-02-05T14:14:12
335,991,296
0
0
null
null
null
null
UTF-8
Python
false
false
503
py
import socket, pickle import time import gas_in import gas_out HOST = '192.168.1.14' PORT = 8888 client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client_socket.connect((HOST, PORT)) while True: setMsg = gas_in.inputValue() setMsg_string = pickle.dumps(setMsg) print('client setMsg : ', pi...
[ "jakim09@naver.com" ]
jakim09@naver.com
30136c7ae9d3cb8dca6219b7a9e11ca61b89d9b9
4e6175ad27beb8e23a24edc3ee0f8849b5c3958d
/timeseries_toolkit/metrics.py
260a3c6e21709aa73f98e4915760dc31004573c6
[ "MIT" ]
permissive
alejio/timeseries_toolkit
b4b0047324ed98ea9892da97db84279f92bdb6b6
030ac84fcb96ec5bdc480a6b74075a737c30955a
refs/heads/master
2020-03-25T21:01:00.215683
2018-09-12T14:31:32
2018-09-12T14:31:32
144,155,462
1
0
MIT
2018-09-11T19:39:14
2018-08-09T13:20:58
Jupyter Notebook
UTF-8
Python
false
false
283
py
import numpy as np from sklearn.metrics import mean_squared_error def rmse(y_actual: np.array, y_predicted: np.array) -> float: """ Calculate RMSE :param y_actual: :param y_predicted: :return: """ return np.sqrt(mean_squared_error(y_actual, y_predicted))
[ "ge02040@hotmail.com" ]
ge02040@hotmail.com
bda4bdd71bd5d2eeec3b1942611e2b982c0b36bc
fe3ecb9b1ddd8de17b8cc93209134f86cd9c4a6f
/6_Tensorflow/chap04_Classification/lecture_1x/step05_softmax_classifier.py
848aca28e11509d6d891b478e7025c2ba6458666
[]
no_license
nsh92/Bigdata-and-Machine-Learning-Education-at-ITWILL
d1a7292ee4865a3d0c664dd6ecf3afc0d6325847
3cb5661001597499178a2c85f4ccf70dcf0855d6
refs/heads/master
2022-11-21T23:10:51.421708
2020-07-23T12:49:11
2020-07-23T12:49:11
275,540,204
0
0
null
null
null
null
UTF-8
Python
false
false
2,903
py
# -*- coding: utf-8 -*- """ step04_softmax_classifier.py - 활성함수 : Sotfmax(model) - 손실함수 : Cross Entropy """ import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import numpy as np from sklearn.metrics import accuracy_score # 1. x, y 공급 data # [털, 날개] x_data = np.array( [[0, 0], [1, 0], [1, 1], [0, 0], [0, 1...
[ "totols1092@gmail.com" ]
totols1092@gmail.com
73721bb75e32553a66fee0f689c5af014ce29bcf
27e512ce2321a1a59af72753c7132c0ff23c5063
/0x03-minimum_operations/0-minoperations.py
64b429f71494770e345f20d2d4f02bd3d6c78e49
[]
no_license
AndresCH12/holbertonschool-interview
6e58695e7eca26d3cb5787b5b865ef8d446ba31e
c90494ce845cba51683d59ca3ef361665dc3beea
refs/heads/master
2022-12-03T00:04:13.797237
2020-08-27T02:56:42
2020-08-27T02:56:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
#!/usr/bin/python3 """method that calculates the fewest numbers of operations needed to result in specific characters in a file""" def minOperations(n): """ sum of factors""" if n <= 1: return 0 operation = 0 while n > 1: for f in range(2, n + 1): if n % f == 0: ...
[ "1103@holbertonschool.com" ]
1103@holbertonschool.com
3da9a6b0aae255dd6bffb0296b6c0b05017d03a9
7bf51d5550195a7fae26bd626ed82c5f2b5d9737
/my_graphs/g_graph_12.py
bbfbc1c98ccd7f78677de75c49227f306cf19173
[]
no_license
venkatram64/python_ml
9fcadc380c2a56856f590b40a7c3b015c19c62a0
b0b40fec4547f3675a500af24878cddacc4c270c
refs/heads/master
2020-04-08T05:07:28.993601
2018-12-26T08:30:28
2018-12-26T08:30:28
159,047,402
1
0
null
null
null
null
UTF-8
Python
false
false
550
py
import matplotlib.pyplot as plt import matplotlib.animation as animation from matplotlib import style style.use('fivethirtyeight') fig = plt.figure() ax1 = fig.add_subplot(1,1,1) def animate(i): graph_data = open('chart_file.txt', 'r').read() lines = graph_data.split('\n') xs = [] ys = [] for lin...
[ "venkat.veerareddy@hotmail.com" ]
venkat.veerareddy@hotmail.com
183d3f4807b6dd87b3d6505a520c25385880d0f4
2389abbf87e72654f34db58d7269d75f1273a73c
/Code/run-on-test-set/BF/bfp_dataset_script.py
40eacdae96d3a5aefcfc3f5a3eb761028485e9cd
[]
no_license
rmahdav/T5-learning-ICSE_2021
71aff84352f9e3cdd4e4911684ae49c6cb36a327
4a09d98d92e74676d0a4852f7b7806f51a238ab6
refs/heads/main
2023-02-28T01:37:59.431190
2021-02-07T14:14:41
2021-02-07T14:14:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,284
py
from __future__ import absolute_import, division, print_function import csv import os import nlp #Here we have to specify the path where the dataset is #Since i'm using colab, i simply put the colab "path" _TEST_FILE_NAME = "test.tsv" #_TRAIN_FILE_NAME = "/content/train.tsv" class BFPConfig(nlp.BuilderConfig): ...
[ "antonio.mastropaolo@usi.ch" ]
antonio.mastropaolo@usi.ch
fb72e7fda094f7a1f4ccc7ffd78655c181bfa750
40d404e424489bb48c3673dee6664de64dbab39c
/myWebsite/.venv/lib/python3.8/site-packages/zope/site/next.py
38c06ddc842113ca7eb79f312ea3f6a6a5c3b223
[]
no_license
alyasamba/me
07c9f5f27aa16f768e0432780ac8f6f5ab6afbd1
978053c867181bad8eb316a0920ba290a7b1ceae
refs/heads/main
2023-01-28T09:57:46.616285
2020-12-02T02:31:25
2020-12-02T02:31:25
315,935,399
1
0
null
null
null
null
UTF-8
Python
false
false
103
py
# BBB. Remove in Version 5.0 from zope.deprecation import moved moved('zope.component', 'Version 5.0')
[ "sopesherifabdoulah@gmail.com" ]
sopesherifabdoulah@gmail.com
d27506e59775ba48f44a7266f51ec1b0ec35e98f
40cc66722eadfa51ed637db58946e82373f1a288
/Code/graphic.py
13955bceb14d591536c281aff5ee83e0ac540ea1
[]
no_license
notgaby/Etsy-Search-Webscraping
bd1412167b331a7033484978591970be338b4724
8aabfa7b156f4efc2fe5ab1492a2892dcb8eff58
refs/heads/main
2023-01-08T13:54:04.166278
2020-11-13T21:06:22
2020-11-13T21:06:22
312,679,931
0
0
null
null
null
null
UTF-8
Python
false
false
5,705
py
import tkinter as tk from tkinter import * from PIL import ImageTk,Image import csv import statistics # 8 x 8 pictures = displays all 64 class Buttons(tk.Frame): def __init__(self, master=None): super().__init__(master) self.master = master #self.pack() self.grid(row=0, column=0) ...
[ "noreply@github.com" ]
noreply@github.com
36e45f93482d35cb5c9a7c17abd4badb5d472b96
32257983a6aa9b6f719ce8835e789c94df8b9346
/manager/migrations/0001_initial.py
57184eafc16e89981afeb99c3c784f17cc78d511
[]
no_license
alireza-shirmohammadi/MySite
2b165260460ea2a74769b0ceb81e520b26307a64
4537069f0ba50ac46f265d0157195f91bac5d853
refs/heads/master
2023-07-26T13:50:52.249782
2021-01-30T10:55:06
2021-01-30T10:55:06
303,093,825
2
0
null
null
null
null
UTF-8
Python
false
false
651
py
# Generated by Django 2.2 on 2020-10-18 21:00 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Manager', fields=[ ('id', models.AutoField(au...
[ "alireza.sh076@gmail.com" ]
alireza.sh076@gmail.com
a204d07e789879bbd4b122160cec7603a43e5b41
4e1ea50830264fb1c9d98790b9b5cf81db44c56d
/main.py
2602246f6a49c56f909e1d914041d5f7e5e34a4c
[]
no_license
Henryyijun/lisp-and-block-cipher
9d7f42c1ced5a688535bcdb0c64fc6c1c2081668
e5f1bae5ebe13f2b898634e4a10cc8b0ca03b320
refs/heads/master
2020-06-02T10:33:22.424946
2019-06-17T14:22:24
2019-06-17T14:22:24
191,128,332
0
0
null
null
null
null
UTF-8
Python
false
false
1,125
py
from lisp import * from scan import * letters = [chr(i + 97) for i in range(26)] l1 = ['(define y 10)', '(define f (lambda (x y) (+ x ((lambda (x) (* x y)) y))))', '(f 1 2)', 'y'] # 样例2 l2 = ['(define y 10)', '(define sqr+y (lambda (x) (+ y (* x x))))', '(define f (lambda (x y) (sqr+y x)...
[ "1421745355@qq.com" ]
1421745355@qq.com
629f7c9ba6d003fe5eecf866e0dec070fe292bbb
de4fca53f14ebf054c1b29c3f293024dcf8c8c02
/Arduino.py
28f69f154aeb78351b10a0f2ec950332495fc032
[]
no_license
helorem/photobooth
a5939cad0b5d03ed8a99a3f5c9b85e4ab3b8bb90
4370f3e9605b59d6d724f17d6a99acd68da6d101
refs/heads/master
2020-03-22T03:34:09.926173
2018-07-11T00:36:26
2018-07-11T00:36:26
139,439,187
0
0
null
null
null
null
UTF-8
Python
false
false
5,133
py
import threading import os import time import pygame import traceback from Logger import Logger from Config import Config class Arduino: BUTTON_1 = "B1" BUTTON_2 = "B2" BUTTON_3 = "B3" _instance = None def __init__(self): import serial self.serial = None self.callbacks = {...
[ "romain.connesson@gmail.com" ]
romain.connesson@gmail.com
5d7397941ddbf61de9c50a70bf6498776511c40b
8e1f7ce4551c64882b7dc055a782fb23b644388c
/superqt/sliders/_tests/test_single_value_sliders.py
6032f9bab9b3a808999b4ba854378fa03c0a62bd
[ "BSD-3-Clause" ]
permissive
jni/superqt
abaa923828c1440c6c1c25e15f5e9ad61c8a292c
c8a40ba051433851dc561a31ca837e5243f60be4
refs/heads/main
2023-07-19T12:30:53.431746
2021-09-03T02:49:55
2021-09-03T02:49:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,246
py
import math from contextlib import suppress from distutils.version import LooseVersion import pytest from superqt import QDoubleSlider, QLabeledDoubleSlider, QLabeledSlider from superqt.qtcompat.QtCore import QEvent, QPoint, QPointF, Qt from superqt.qtcompat.QtGui import QHoverEvent from superqt.qtcompat.QtWidgets im...
[ "noreply@github.com" ]
noreply@github.com
9a4271174444a767b737f069c9c70222d2bbca06
c67fe9017a6f722a32d9ae4adad98c0f759fb92d
/train_transformer.py
7ce484492e58864314f8154e0ad5f1a4ee1474fa
[]
no_license
SaqibMamoon/Anytime-Auto-Regressive-Model
58b30099dc0002afda011875aca17e9d0a677821
c493a8e58a95ef1bf9820c161ddb988ace00f897
refs/heads/master
2023-03-04T08:50:57.102322
2021-02-12T05:43:02
2021-02-12T05:43:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,094
py
import argparse import torch import sys import time import os import logging import yaml import shutil import numpy as np import tensorboardX import torch.optim as optim import torchvision from models import ImageTransformer import matplotlib import itertools from utils import parse_args_and_config from tqdm import tqd...
[ "aaronxu@DNab421a90.stanford.edu" ]
aaronxu@DNab421a90.stanford.edu
66ebda7406c02a5634af4df81f13829288f3c889
d8d26927aa0b43b94b8c607fe4981e07df0b4202
/tx2/Security/models.py
dc07080ef8ae0a07166e28b9c152894268143987
[]
no_license
upcomingnewton/tx2
342c593fe482093a471b96dab5780c93ac198c7c
dd5029dab111ecb1bbf99511fe5403874e442565
refs/heads/master
2021-01-01T05:49:24.014969
2012-10-31T16:49:02
2012-10-31T16:49:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,506
py
from django.db import models from django.contrib.contenttypes.models import ContentType # Create your models here. class SecurityPermissions(models.Model): PermissionName = models.CharField(max_length=50) PermissionDescription = models.CharField(max_length=500) class SecurityStates(models.Model): Stat...
[ "upcomingnewton@gmail.com" ]
upcomingnewton@gmail.com
f2f9063ae112fbba6b42882cafb48d1e7d9ea167
1788a7cd2c023918a98218a235262d9bcf3d9b50
/day01/ex01/game.py
9395f2ca64f9ac6e7f24a6c959ec70d6df0cb218
[]
no_license
sky-183/42ai_python_bootcamp
73b7c674235c7a5898a2635d271c8d6668f0a826
6ef001c7ad538239d78c18f9c5b236dad8f9e415
refs/heads/master
2022-07-17T08:31:37.988371
2020-05-15T07:56:19
2020-05-15T07:56:19
259,958,663
0
0
null
null
null
null
UTF-8
Python
false
false
1,591
py
# **************************************************************************** # # # # ::: :::::::: # # game.py :+: :+: :+: ...
[ "sky.designed@gmail.com" ]
sky.designed@gmail.com
f0512ffb4dfefff075188e9a01236b5e5f9e5065
67f1c32b4219c12c19f35d0bf989a0c5c2eace31
/the-hoc-vien-ocr/detector/old.py
07f4de87b066fe964c51047d6739218a433cedff
[]
no_license
Katsukid/XuLyAnh
4bf3397a3f29942b757d7e4504af7b37940f482b
ef8bb0bc54db9a21a9eae7c399be340a50649677
refs/heads/master
2022-04-21T04:14:16.396174
2020-04-25T06:58:01
2020-04-25T06:58:01
258,707,547
0
0
null
null
null
null
UTF-8
Python
false
false
13,570
py
import cv2 import numpy as np import statistics import copy import pytesseract from PIL import Image from util.util import get_contour_boxes, get_img_from_box, get_threshold_img, find_max_box, show_img, draw_rec, plot_img from util.resize import resize_img_by_height, resize_img_by_width import subprocess from matplotli...
[ "noangel0607@gmail.com" ]
noangel0607@gmail.com
9d3aee1939e7056e99df2e8fa0513615f8dad64d
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_5/mllgad001/question1.py
f6592b8f10857fa9939c268f718db83ab9bf37c1
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
1,801
py
# program to simulate a simple Bulletin Board System # Gadija Moollagie # 14 April 2014 def displayName(): # defines the menu that will be displayed every time print("Welcome to UCT BBS") print("MENU") print("(E)nter a message") print("(V)iew message") print("(L)ist files") print("(D...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
8c36bd998975fdb247485f1edf6cec1b02d2fe58
f5d4863b6a62ef19ffc98e4f94f6ade1bc8810d3
/Linked List/92_Reverse_Linked_List_II.py
05f389e0d67f52c991bda6256be9df9eda403617
[]
no_license
xiaomojie/LeetCode
138808eb83938f9bd3c2e8a755d908509dff0fd3
eedf73b5f167025a97f0905d3718b6eab2ee3e09
refs/heads/master
2021-06-12T09:26:01.257348
2019-10-23T10:41:06
2019-10-23T10:41:06
76,184,467
0
0
null
null
null
null
UTF-8
Python
false
false
905
py
""" Reverse a linked list from position m to n. Do it in one-pass. Note: 1 ≤ m ≤ n ≤ length of list. Example: Input: 1->2->3->4->5->NULL, m = 2, n = 4 Output: 1->4->3->2->5->NULL """ # Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None...
[ "519399762@qq.com" ]
519399762@qq.com
d2b778a7a7f69ee4d2e7a591bbaebca9a41e3625
2fb44ee843538a84131818074d791eb8ed71e6bd
/Design/lru_cache.py
2b2685a6a967fab6b52c23abe774757fede43cc9
[ "MIT" ]
permissive
YutingYao/leetcode-2
386eebecb61e463f2c63ff5f26f1c6e23f3f2460
f6352c26914ca77f915f5994746ecf0b36efc89b
refs/heads/main
2023-06-01T14:11:40.009182
2021-06-18T05:32:43
2021-06-18T05:32:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,892
py
""" LRU Cache: Leecode 146 Design a data structure that follows the constraints of a Least Recently Used (LRU) cache. Implement the LRUCache class: LRUCache(int capacity) Initialize the LRU cache with positive size capacity. int get(int key) Return the value of the key if the key exists, otherwise return -1. ...
[ "fkemosi@gmail.com" ]
fkemosi@gmail.com
a9bb4769aea8e5b975320a206f5bedccb034d6c4
ad011e22a78c39f592a40287694f47feb3411d58
/BitJobs/bitjobs/bargainflow/migrations/0013_merge_20170507_2301.py
1345b5bc1be34c895628354bd3f99493020cff54
[]
no_license
filip-plata/CS_Bachelor
4401534aa8ed0ffc1d01c8e7c78f4fd7cdddc798
52cc5a810457807c25e3a9967497d1ccea9fb8e3
refs/heads/master
2020-12-04T12:13:27.403049
2020-01-04T18:14:33
2020-01-04T18:14:33
231,760,456
1
0
null
2020-01-04T15:52:30
2020-01-04T12:37:16
HTML
UTF-8
Python
false
false
345
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-05-07 21:01 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('bargainflow', '0012_auto_20170507_2234'), ('bargainflow', '0012_auto_20170506_1107'), ] ...
[ "filip.plata@outlook.com" ]
filip.plata@outlook.com
b5192602bb25907c389b8721ea1210ab2fefa788
d776d93b753fc6d8eeb1270834d57937c15796e1
/Sci.py
b5e08431700be51d75d8f2ebe78a5815903a4676
[]
no_license
SatvikaReddy/PythonQuiz-Tkinter
dec49244d6554eae837b7ebc6fa63133627984a0
e753e8591a71ecb4f77ec3dce75c1119ece84b51
refs/heads/master
2022-07-20T01:02:29.315525
2020-05-13T18:04:06
2020-05-13T18:04:06
263,701,595
0
0
null
null
null
null
UTF-8
Python
false
false
3,466
py
class SciTech: def __init__(self): self.name=input("Enter Your Name: ") self.score=0 def Choice(self): self.choice=int(input("Which is the correct answer? ")) def Score(self,n): if self.choice==n: self.score=self.score+3 else: self.sco...
[ "satvika@satvikas-MacBook-Air.local" ]
satvika@satvikas-MacBook-Air.local
9e8aa077820173bd353f7e228ea1825cdf707da9
96ce221c32910f0c0ea327fa33c36f2e5472f33b
/chrombpnet/parsers.py
8399fae98a53ce3f65059c33f8775eb99959a9ff
[ "MIT" ]
permissive
kundajelab/chrombpnet
ba6eaac10ccb63bdf4831dfb96b10fd9220a5ec7
d3684388512ad2248ac1c2d1dfd36167b634e816
refs/heads/master
2023-08-22T01:47:11.764016
2023-07-25T18:15:34
2023-07-25T18:15:34
388,665,623
48
14
MIT
2023-08-28T06:21:21
2021-07-23T03:28:33
Jupyter Notebook
UTF-8
Python
false
false
27,194
py
import argparse from argparse import RawTextHelpFormatter desc = """================================================================================================== Bias factorized, base-resolution deep learning models of chromatin accessibility reveal cis-regulatory sequence syntax, transcription factor footp...
[ "anusri@stanford.edu" ]
anusri@stanford.edu
c38d85e12ae5cece0bc22df5d5277f8235921599
351ebaacb3f54a16f8a634b3fecf37264f820790
/main/urls.py
eb507f190a3b83a9188b6194955acb67b0f88adc
[]
no_license
ahkiemcm/tunr_django
9c002b0a81585935e5646bd9f040c7db6c3a3169
a0183a62df0cd869aef1e8aff06b16ffdff528d0
refs/heads/master
2020-04-10T00:42:20.510818
2019-02-12T17:21:47
2019-02-12T17:21:47
160,693,791
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
from django.urls import path, include from rest_framework import routers from . import views router = routers.DefaultRouter() router.register('artists', views.ArtistView) router.register('songs', views.SongView) urlpatterns = [ path('', include(router.urls)) ]
[ "cb_atl_123_ahkeim_crenshaw@PSADMINs-MacBook-Air-3.local" ]
cb_atl_123_ahkeim_crenshaw@PSADMINs-MacBook-Air-3.local
48b6b1f81ce4b66313e8170c7ca2a6f893eea48e
b09c8e635d5c61bef147d0cc3ac898bfef28a028
/linkedlist.py
f83cef68a83093ccf0d3e7c50c4c1061a6b2baca
[]
no_license
OneCalledSyn/python-data-structures
6efa0f168a91166d6c1ba363587ca30ef258a20c
6564f8d8842c5266f8696dc85c65bf878295bd09
refs/heads/master
2022-10-28T04:58:46.127427
2020-06-16T06:21:33
2020-06-16T06:21:33
272,625,096
0
0
null
null
null
null
UTF-8
Python
false
false
2,733
py
class Element(object): def __init__(self, value): self.value = value self.next = None class LinkedList(object): def __init__(self, head=None): self.head = head def append(self, new_element): current = self.head if self.head: while current.nex...
[ "noreply@github.com" ]
noreply@github.com
24e6fdc990ad5e39ea0adc14a45ce2cc59316826
7b73586e2de952481f543353216ba8d0ecef8a3a
/day18/pycharmdjango/pycharmdjango/settings.py
b0ce5175d9b766643ad96e60b2dc40abde8d1a45
[]
no_license
gujie1216933842/mysite
2e027fcd3f03e56af32ff2c54fe44e1287568eb6
dbae1c37d6c8a99e0e5927e62ee1c2a87ae82e19
refs/heads/master
2021-06-26T15:17:57.268892
2017-09-12T16:36:33
2017-09-12T16:36:33
103,277,774
2
0
null
null
null
null
UTF-8
Python
false
false
3,162
py
""" Django settings for pycharmdjango project. Generated by 'django-admin startproject' using Django 1.11.3. 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/settings/ """ imp...
[ "×××@×××.com" ]
×××@×××.com
3951911ab3e8649d21ca2db5bd2557ce6a7d5d8d
d57ea8f70ba424d7dc014e8c27b338baa29e5f0a
/main.py
a29896a3c67bb489b0d07fa86fa1871c7c814bf3
[]
no_license
devanshi345/Hospital-Management-System
b5c12c6f97bedc88435e79955c53a035ec671ad5
9581210be45fd0ee2f064058c350d630c9093d49
refs/heads/main
2023-04-17T12:44:01.187464
2021-04-22T05:40:02
2021-04-22T05:40:02
360,403,464
0
0
null
null
null
null
UTF-8
Python
false
false
13,046
py
from tkinter import * from tkinter import messagebox from tkinter.ttk import Separator import tkinter.messagebox import sqlite3 import re #connecting to database conn = sqlite3.connect('database.db') c = conn.cursor() ids = [] class Application: def __init__(self, window): self.window = window ...
[ "noreply@github.com" ]
noreply@github.com
bedb7cd7af92617b5b3928470129749753d4f278
e8d47bf09ff2d4e64cef81412bd9d15cdd469ff1
/spider/scheduler.py
aea78c7a7995f166a9130e9e0cc9f3306505a0cb
[]
no_license
yangsongbai1/ProxyPool
3c95c277ca2127cbe169e76e935c65cf9c324d3f
bed53933fcda3edcbafdb461033e1c850d04b84c
refs/heads/master
2020-03-28T09:22:11.598798
2018-09-09T14:15:28
2018-09-09T14:15:28
148,031,622
4
0
null
null
null
null
UTF-8
Python
false
false
1,242
py
import time from multiprocessing import Process from spider.verifier import Verifier from spider.getter import Getter from spider.setting import * from spider.api import app class Scheduler: '''调度器''' def scheduler_verify(self,cycle=VERIFY_CYCLE): ''' 启动验证器 VERIFY_CYCLE 验证周期 ...
[ "1172064401@qq.com" ]
1172064401@qq.com
bf3adfcd913d73bb2491b8d4b97fa62202bb4265
bdbf41116df1394534199ce2f5daa9e6c7889f4b
/omop_harvest/migrations/0001_avocado_metadata_migration.py
8bc502174978eeccfae754396d5ddf2d252a902f
[ "BSD-2-Clause" ]
permissive
starwalker/omop_harvest
f1ceb69c698410561fd97986e4bae2776d274c70
ed2f5101941b48ea1a76761ae05162b89ead5bb7
refs/heads/master
2021-01-21T08:44:13.762935
2014-11-18T21:39:17
2014-11-18T21:39:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
# -*- coding: utf-8 -*- from south.v2 import DataMigration class Migration(DataMigration): depends_on = ( ("avocado", "0034_auto__add_field_datafield_type"), ) def forwards(self, orm): "Perform a 'safe' load using Avocado's backup utilities." from avocado.core import backup ...
[ "aaron0browne@gmail.com" ]
aaron0browne@gmail.com
840e123871abe4d70ae652e6987bb7fc4d6070e5
f6078890ba792d5734d289d7a0b1d429d945a03a
/hw1/submissions/reyesortegacynthia/reyesortegacynthia_35890_1251163_homework 2.py
cb61aa6481078c83a83132baf98896513680dbad
[]
no_license
huazhige/EART119_Lab
1c3d0b986a0f59727ee4ce11ded1bc7a87f5b7c0
47931d6f6a2c7bc053cd15cef662eb2f2027712c
refs/heads/master
2020-05-04T23:40:53.709217
2019-06-11T18:30:45
2019-06-11T18:30:45
179,552,067
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
import matplotlib from matplotlib import numpy as np V_1 = (1,1) V_2 = (3,1) V_3 = (4,2) V_4 = (3.5,5) V_5 = (2,4) A = area_of_polygon #get number x or y in each v #set area of ploygon as x_1*y_1
[ "hge2@ucsc.edu" ]
hge2@ucsc.edu
cb398291bbb438e6bf0220616db35cda393e4eb2
254ef44b90485767a3aea8cbe77dc6bf77dddaeb
/589N叉树的前序遍历.py
767e3339554f17bf5d43e7c275cfe267c364da5a
[]
no_license
XinZhaoFu/leetcode_moyu
fae00d52a52c090901021717df87b78d78192bdb
e80489923c60ed716d54c1bdeaaf52133d4e1209
refs/heads/main
2023-06-19T02:50:05.256149
2021-07-09T00:50:41
2021-07-09T00:50:41
331,243,022
0
0
null
null
null
null
UTF-8
Python
false
false
676
py
""" 给定一个 N 叉树,返回其节点值的前序遍历。 例如,给定一个 3叉树 : 返回其前序遍历: [1,3,5,6,2,4]。 """ """ # Definition for a Node. class Node(object): def __init__(self, val=None, children=None): self.val = val self.children = children """ class Solution(object): def preorder(self, root): """ :type root: N...
[ "948244817@qq.com" ]
948244817@qq.com
8ec98c5c953c24f01a12563fcd3198185f008a6e
56014da6ebc817dcb3b7a136df8b11cf9f976d93
/Django天天生鲜项目/14.1-注册基本逻辑.py
939067bb95629536cb0337f2ca1fc38b2e11d8ce
[]
no_license
sunday2146/notes-python
52b2441c981c1106e70a94b999e986999334239a
e19d2aee1aa9433598ac3c0a2a73b0c1e8fa6dc2
refs/heads/master
2022-01-12T22:55:45.401326
2019-01-18T03:18:26
2019-01-18T03:18:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,191
py
""" 1.将static静态文件添加到static文件夹中----为前端制作完成 2.将register.html文件放入templates文件夹下 3.views.py def register(request): ""显示注册页面"" return render(request,'register.html') 4.配置url from user import views urlpatterns = [ url(r'^register$',views.register,name = 'register'),#注册 5.无法显示全部页面,须在register.html中增加 {% load st...
[ "964640116@qq.com" ]
964640116@qq.com
f31ee23833177027019360df0e7e557aaf96d33b
183c2eb60e134d5b4ff7b2ebf38065150e694345
/test/kyu8/test_grasshopper_combine_strings.py
485e4c092dedef4a1192cccc054b4410bc4020d3
[]
no_license
fartem/codewars-python
96850f4041b572cc5c82624e848bac31c8581950
5b8943e8ddcd5db44618ea75868cc7dd489e1e2d
refs/heads/master
2021-07-08T14:19:04.397453
2021-04-21T05:18:38
2021-04-21T05:18:38
242,340,947
0
0
null
2021-04-21T05:17:35
2020-02-22T12:50:55
Python
UTF-8
Python
false
false
563
py
import unittest from src.kyu8.grasshopper_combine_strings import GrasshopperCombineStrings class CombineStringsTest(unittest.TestCase): def test_combine_names(self): self.assertEqual( "James Stevens", GrasshopperCombineStrings("James", "Stevens").solution() ) self....
[ "jaman.smlnsk@gmail.com" ]
jaman.smlnsk@gmail.com
4531e55b0e70feb102980fac72ceec5e307894b9
6fcbd466e88f1a09002c1cd7bfc346b190da7504
/auxapp/models.py
ad26f6b842f5a9c4345c66f7ea019d9e2776d847
[]
no_license
DdDaza22/tienda
7f3039a56c597df7a2eb2472877e6376785e0a66
1e83c861af4c2c0f11ce189128f59c879c9d8992
refs/heads/master
2023-04-18T11:17:54.991923
2021-05-06T11:05:46
2021-05-06T11:05:46
364,881,001
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
from django.db import models # Create your models here. #aquí se crea la clase productos class categoria(models.Model): name=models.CharField(max_length=24) picture1=models.ImageField(upload_to='categoria') class Meta: verbose_name='categoria' verbose_name_plural='categorias' def _...
[ "djdaza95@gmail.com" ]
djdaza95@gmail.com
4966bb82c3d718e23e8a700df6bcba4b5511d838
0f32d7b6ea79b3bc704eb4b9c219f0b8ed3220ac
/tvm_benchmark/mixed_precision_models/quantized_resnet_v1.py
357a6895378f5c54ba40f3a0e19c00d535dfe656
[ "MIT" ]
permissive
ben-hawks/HAWQ
0e424bf799b5982497034fe6e73ccdc08d18af6d
3a97a2ef315f64af93cdd5cf8449a50a24187f77
refs/heads/main
2023-09-03T04:00:19.572382
2021-11-04T20:09:03
2021-11-04T20:09:03
424,725,050
0
0
MIT
2021-11-04T20:04:20
2021-11-04T20:04:20
null
UTF-8
Python
false
false
25,017
py
import tvm from tvm import relay from . import layers from .init import create_workload, QuantizeInitializer def residual_unit_v1(data, input_channels, num_filter, stride, dim_match, name, bottle_neck=True, ...
[ "zach.zheng96@gmail.com" ]
zach.zheng96@gmail.com
5c6074b51caf0a45af3c5c46d88fbaaddb811393
e1d6de1fb5ce02907df8fa4d4e17e61d98e8727d
/search2/lagou_query_range.py
ccacf67d6ac1eb4513901b1aca0d24fbce30db0d
[]
no_license
neuroph12/nlpy
3f3d1a8653a832d6230cb565428ee0c77ef7451d
095976d144dacf07414bf7ee42b811eaa67326c1
refs/heads/master
2020-09-16T08:24:37.381353
2016-09-10T19:24:05
2016-09-10T19:24:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
# coding=utf-8 import datetime from whoosh.index import open_dir from whoosh.qparser import MultifieldParser idx_dir = 'lagou_idx' ix = open_dir(idx_dir) searcher = ix.searcher() parser = MultifieldParser(["name", "com_name"], schema=ix.schema) # Single field parser. k = u'自然 语言 自然语言 处理 salary_from:[1 TO 5000] salar...
[ "anderscui@gmail.com" ]
anderscui@gmail.com
7377ace73e0de00e184b5d27139b40a127dc21e5
e9b18c8e897763074eb41504d63c1ae03133b952
/tests/test_util.py
58444b07ca92c744fa5596f314ecc58ee44cd64e
[]
no_license
patriciallull/Bike_Sharing_Model
04fea204599c89361619048f6b563adf5f34b021
ba895a982b76e13ff6bd7db148ee6685d823e728
refs/heads/master
2022-08-02T00:46:41.892645
2020-06-09T14:28:06
2020-06-09T14:28:06
270,738,306
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
import os import bike_model from bike_model.util import get_data_directory def test_get_data_directory_gets_directory_next_to_modules(): expected_data_directory = os.path.join( os.path.dirname(ie_bike_model.__file__), "data" ) data_directory = get_data_directory() assert data_directory == e...
[ "patricia.llull@gmail.com" ]
patricia.llull@gmail.com
71987f9861827fdaa4915ab742137953ec85ddef
5baf3cb8b08dcea2d53d2ef022e5c6d4b2468494
/test/test_io_k8s_api_apps_v1_deployment_strategy.py
f56bb807af8c59d37eff53eb5135e7e72f41d20d
[]
no_license
atengler/swagger-kqueen-python
a4fc0de38378a08c6c2e0c339032ed4ad63f09f5
01225c74a743636483211f0274f772193517ffaf
refs/heads/master
2021-08-07T18:16:28.453730
2017-11-08T17:24:53
2017-11-08T17:29:03
110,007,477
0
0
null
null
null
null
UTF-8
Python
false
false
1,040
py
# coding: utf-8 """ Kubernetes Queen API A simple API to interact with Kubernetes clusters OpenAPI spec version: 0.8 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest import swagger_client from swa...
[ "atengler@mirantis.com" ]
atengler@mirantis.com
4be71114c171b582d681a7ce66119b9c6cf5d9a3
cc03e2aa065c27b9d34641ff5cb61ddc3b846a82
/api_keys.py
ec840686df5eb488b9d07eecb9807ace02ac72a3
[]
no_license
nehemiahdang/Python_API_work
d6b889dbfb6c479a91fa139541408b18a7f808ce
ca4c3eb3bb0a5e18f8064353543edecad0e31f32
refs/heads/master
2022-11-11T19:18:29.032791
2020-06-28T05:26:17
2020-06-28T05:26:17
254,773,545
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
# OpenWeatherMap API Key weather_api_key = "a4d677f281d992be13697277f5a7db2d" # Google API Key g_key = "AIzaSyBah0bSOhD_OIPCYniplzIQKKLQ0RwfeXc"
[ "nehemiahdang@gmail.com" ]
nehemiahdang@gmail.com
6ebe717190a16657c11d4ae48f706a1b8e90fc34
bee76ea2de1f0d483ec94b83587737ef8e93a269
/Cluster.py
c78a13f9c572efaccde30a5063e78c71012ff318
[]
no_license
Royce-Li/PopularityPrediction
10b3224299f37a75060f8487439e4a55960b3f4a
0dd5adb6e3fe265e74612d38a95af0a739f27800
refs/heads/master
2021-05-26T00:39:31.240472
2017-03-14T07:19:23
2017-03-14T07:19:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,357
py
from sklearn.cluster import KMeans import numpy as np from Constant import * from DataPipeline import DataPipeline from KMedoids import KMedoids def calOutlines(trainPipe): outlines = [] for _ in range(trainPipe.size()): line = trainPipe.nextRecord() outlines.append(line[0:FEATURE_START_INDEX + NUM_FEATURES]) ...
[ "maomao75979@gmail.com" ]
maomao75979@gmail.com