repo_name
stringlengths
7
111
__id__
int64
16.6k
19,705B
blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
151
content_id
stringlengths
40
40
detected_licenses
list
license_type
stringclasses
2 values
repo_url
stringlengths
26
130
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
42
visit_date
timestamp[ns]
revision_date
timestamp[ns]
committer_date
timestamp[ns]
github_id
int64
14.6k
687M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
12 values
gha_fork
bool
2 classes
gha_event_created_at
timestamp[ns]
gha_created_at
timestamp[ns]
gha_updated_at
timestamp[ns]
gha_pushed_at
timestamp[ns]
gha_size
int64
0
10.2M
gha_stargazers_count
int32
0
178k
gha_forks_count
int32
0
88.9k
gha_open_issues_count
int32
0
2.72k
gha_language
stringlengths
1
16
gha_archived
bool
1 class
gha_disabled
bool
1 class
content
stringlengths
10
2.95M
src_encoding
stringclasses
5 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
10
2.95M
extension
stringclasses
19 values
num_repo_files
int64
1
202k
filename
stringlengths
4
112
num_lang_files
int64
1
202k
alphanum_fraction
float64
0.26
0.89
alpha_fraction
float64
0.2
0.89
hex_fraction
float64
0
0.09
num_lines
int32
1
93.6k
avg_line_length
float64
4.57
103
max_line_length
int64
7
931
zongtong009/pythonDesktop
19,086,834,708,238
591a6ee7973f84bbd330563d33e508a31c47e292
32fbb5f1c9ebcd8f5a0957b8d5df1d9664ef7ca5
/iMoocpython/991玫瑰花.py
641be3bc4407595b76df591fb6a4a4faad62ff2a
[]
no_license
https://github.com/zongtong009/pythonDesktop
c86ad5d1bae3db3ffde2dc3c612e5df69d456f01
34dab20877f297d5e366737de1389a6fcca17b8f
refs/heads/master
2021-06-18T23:46:00.489289
2021-01-28T03:17:32
2021-01-28T03:17:32
150,281,696
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# RoseDraw.py from turtle import * # 定义一个曲线绘制函数 def DegreeCurve(n, r, d=1): for i in range(n): left(d) circle(r, abs(d)) # 初始位置设定 s = 0.2 # size setup(450*5*s, 750*5*s) pencolor("black") fillcolor("red") speed(100) penup() goto(0, 900*s) pendown() # 绘制花朵形状 begin_fill() circle(200*s, 30) Degree...
UTF-8
Python
false
false
1,496
py
77
991玫瑰花.py
75
0.657895
0.473684
0
97
13.494845
27
seantibor/pyencourage
13,228,499,296,093
65fff3365710fa1695097f6a3bfbed329bc3642e
f6460c437bdc5e274e793e72cb4d75c446da888d
/tests/test_encouragement_length.py
97568addc6c516db301c22b4deaf8a83f4185de4
[ "BSD-3-Clause" ]
permissive
https://github.com/seantibor/pyencourage
03315df441807f9ef6382c49f72aef49bf0fdc68
dff354c12fd753abd2f5ece7ace10910c1a9ea6b
refs/heads/master
2023-04-15T04:12:21.248640
2021-04-29T13:00:27
2021-04-29T13:00:27
360,917,871
3
0
NOASSERTION
true
2021-04-29T12:59:29
2021-04-23T14:51:46
2021-04-26T17:29:27
2021-04-29T12:59:29
715
2
0
1
Python
false
false
from pyencourage.encourage_en import encourage_en def _test_encouragement_length(encouragement): assert len(encouragement) <= 140 def _test_encouragement_group(encouragements): for encouragement in encouragements: _test_encouragement_length(encouragement) def test_encouragements_lengths(): enc...
UTF-8
Python
false
false
460
py
13
test_encouragement_length.py
8
0.754348
0.747826
0
16
27.75
56
KumarAmbuj/dynamic-programing-intermediate
13,142,599,947,384
ccca4c3dc88afd84c7326b22958ac90e854e9de6
d2fedd2085cbdbd5e54228abf0633001989787cc
/93.MAXIMUM SUM USING PREFIX ARRAY.py
ac10d6fa9ed3b8d48b495af946c54b7731fb4010
[]
no_license
https://github.com/KumarAmbuj/dynamic-programing-intermediate
228d25205d370ebc329eaf6ffbcfbc2853b18abe
4b40f322f57762e0cf264fb2024ae56d1fa3243b
refs/heads/main
2023-02-23T20:42:26.865855
2021-01-23T11:10:44
2021-01-23T11:10:44
332,188,114
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def findmaxsum(arr): prefixsum=[] sum=0 for i in range(len(arr)): sum+=arr[i] prefixsum.append(sum) res=-99 minprefix=0 for i in range(len(arr)): res=max(res,prefixsum[i]-minprefix) minprefix=min(minprefix,prefixsum[i]) print(res) arr=[-2, -3...
UTF-8
Python
false
false
412
py
74
93.MAXIMUM SUM USING PREFIX ARRAY.py
73
0.529126
0.480583
0
20
18.7
45
nguansak/gate-io
15,564,961,526,747
5c8cd8ec154c7caf3b328d74fbd1c0222a53b321
59878dc062c192a8bab1f6fd31afde32be70c953
/lib.py
cc795f33e3b03104bc379eb1afebef762f78f9f4
[]
no_license
https://github.com/nguansak/gate-io
86014e0b0a3343371982ff2a28ee304b4ebd02e1
ab625e299f2b256c9decb840190c25984fe836c5
refs/heads/master
2023-04-18T22:30:05.197247
2021-05-09T13:46:40
2021-05-09T13:46:40
278,721,192
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import os import requests import json from counter import * baseUrl = "http://192.168.1.100:5000" # baseUrl = "http://127.0.0.1:5000" counter = Counter(0.5) def fileOpen(gate): global f f = open("raw_" + gate + ".csv", "a") def logRaw(gate, no, sensor, epoch, action): data = "{:.6f}".format(...
UTF-8
Python
false
false
1,831
py
130
lib.py
21
0.599126
0.583288
0
63
28.079365
89
jinpoon/11611_project
1,786,706,417,972
550a6ca5e875dd0c6e7521e5493273eed8df7e7b
df4dbc5f0637b07cb69ada8db523b87a266445de
/When_QG.py
4df6bae11f8f7c0a3121245a11f670341b1c8938
[]
no_license
https://github.com/jinpoon/11611_project
b34d0b0fee569beb90fa51459bd639205dfc47b2
9e12e14db227c1778950dffe567b17bd2b27db5b
refs/heads/master
2018-12-13T16:23:24.476601
2018-04-26T22:00:25
2018-04-26T22:00:25
118,981,350
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import re import os import requests from nltk.parse import stanford from nltk.tokenize import word_tokenize from collections import defaultdict import json from nltk.tree import * import string import nltk import sys from testscript import * from coreNLP_wrapper import StanfordNLP from nltk.tokenize import sent_tokeniz...
UTF-8
Python
false
false
4,643
py
15
When_QG.py
14
0.552875
0.548137
0
154
29.149351
102
a-ruban/songs_metadata_processor
4,561,255,282,369
127282b2cf1e6548a2b0bf1cea25939d650fb899
6d2f49c36ef57dc120223991c80c1f289e8d3451
/music_metadata/migrations/0001_initial.py
e4fb1765d783d739630e87f217ce2e03889e2789
[]
no_license
https://github.com/a-ruban/songs_metadata_processor
37638f8f3e612a83c7e2254c830be4a490c5f2c7
b4ec4b2461032996401d4e75d10a61d225fc1b0f
refs/heads/master
2022-12-27T23:06:13.840151
2020-10-08T17:23:18
2020-10-08T17:23:18
302,413,666
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.1.2 on 2020-10-03 12:20 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Contributor', fields=[ ('id', models.AutoFi...
UTF-8
Python
false
false
1,024
py
12
0001_initial.py
10
0.573242
0.550781
0
30
33.133333
124
noaimabari/Twitter-Sentiment-Analysis
11,072,425,706,875
78d7c0c48b44cf9c34a3205d0b9379174c6e4756
79fbd2fc3871396dc02bf217ad30a2eadecbeea3
/code.py
e1a3eddb1db55d462a1adfa505ba61ff393b9633
[]
no_license
https://github.com/noaimabari/Twitter-Sentiment-Analysis
7d0bb22c066490e0c87998fed54b52d99434a2d6
2307022ccb922fdc8153387481c6d698a0d5811c
refs/heads/master
2021-03-29T08:34:07.273881
2020-04-10T12:59:27
2020-04-10T12:59:27
247,937,487
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import pandas as pd import sklearn from sklearn.model_selection import train_test_split from sklearn.feature_extraction.text import CountVectorizer from nltk.corpus import stopwords import string ## getting training data df = pd.read_csv("0000000000002747_training_twitter_x_y_train.csv") y = list(d...
UTF-8
Python
false
false
3,282
py
1
code.py
1
0.710542
0.697441
0
106
29.95283
142
lishiyucn/MaliciousUrls
11,587,821,789,129
38fe8ab7b70bfe878206ed49396f0391b332b40b
86c5d5f955d62143976c448e6da8ca9e91e5c52a
/model.py
7817b9fd75cfd647e39df40d79210e505feb2fd9
[ "Apache-2.0" ]
permissive
https://github.com/lishiyucn/MaliciousUrls
7854ab2ab3725ab9e1dd901ac9195aab1610ceb8
c95a1956ddc4ca88cba769bddd508e287cab3202
refs/heads/master
2023-03-18T11:15:33.014415
2020-08-20T07:58:01
2020-08-20T07:58:01
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding:utf-8 import os import time import urllib import pickle import numpy as np from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.model_selection import train_test_split from sklearn import svm from sklearn.cluster import KMeans from sklearn.linear_model import LogisticRegression from scip...
UTF-8
Python
false
false
7,065
py
5
model.py
3
0.549358
0.544922
0
224
27.174107
98
rexnie/bbtrack
16,037,407,931,096
e444e1c12e1cf1d3fc285557ccdcbedbe84da5e0
395f0ca9eeffd2e4a26bcc6078dcc966e6499728
/nsdevman/nsdevman/nstask/attrs_groupdevelop.py
82a8cb94a1b7f2e0bfa7397ad09538b20c7f6067
[]
no_license
https://github.com/rexnie/bbtrack
b8f8ce4c73819df1123033d0531c344beda2d452
0b09dfc18f19c66b7eb7517f43bf12dd160a2f20
refs/heads/master
2016-07-27T14:44:04.119297
2014-04-13T07:18:15
2014-04-13T07:18:15
33,939,190
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python from nsdevman.nsroot import _ from nsdevman.nstask.attrs_basic import * class NSTaskAttrDevelopProject(NSTaskRelatedProject): dbGroup = DBTaskAttrDevelopGroup dbGroupColumn = 'project' label = _('RelatedProject') def __init__(self, objTask, descTaskAttr): NSTaskAttrDevelo...
UTF-8
Python
false
false
2,648
py
448
attrs_groupdevelop.py
138
0.694864
0.694864
0
74
34.72973
80
alexarse/InstaBooth
6,511,170,453,226
44169d96b8bbfdcc419b6b214da08feaaaa94cd9
3967f0821f5be413b06e6bfcf5a30c406b5f4f2b
/myapp.py
a403ab840e3861d42354ff8c468321b7111ce9fd
[ "MIT", "BSD-3-Clause" ]
permissive
https://github.com/alexarse/InstaBooth
b06d5fe43ba5095e0183c8a10955e3917c5af392
23577b5b864b734ea885ed6c278e063672f7bb7b
refs/heads/master
2016-08-07T19:21:36.663801
2014-08-11T16:24:41
2014-08-11T16:24:41
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from instagram.client import InstagramAPI import urllib # Get your key/secret from http://instagram.com/developer/ # 'client_id': 'e14ed00c7cf54078882e9e57de522c0a', # 'client_secret': '291afdbb1dff488eafc24631aabfd726', # 'redirect_uri': 'http://alexarse.wordpress.com/' INSTAGRAM_CLIENT_ID = 'e14ed00c7cf540...
UTF-8
Python
false
false
1,680
py
3
myapp.py
2
0.701786
0.654167
0
58
27.948276
77
fffk3045167/desktop2
163,208,761,306
5ec31038b9274378a6692c63335dff095171d26a
3360762f3c870acd245ab2a37954ef75b05247a8
/base/PIL/im_tools.py
11cf40beb55db81be201e9b3a5c82bcc71d3e0df
[]
no_license
https://github.com/fffk3045167/desktop2
66d335e42100a5942e3beb43bf68b7006b14dcca
5c7b5e67659cae56b5a0093c0c9819fc622a67dc
refs/heads/master
2023-01-19T03:22:15.422108
2020-11-17T13:01:27
2020-11-17T13:01:27
269,377,880
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from PIL import Image from pylab import * def get_im_list(file_path): """返回目录中所有JPG图像的文件名列表""" return [os.path.join(file_path, f) for f in os.listdir(path) if f.endswith(".jpg")] def im_resize(im, sz): """使用PIL 对象重新定义图像数组的大小""" pil_im = Image.fromarray(uint8(im)) return array(pil_im.size(sz))...
UTF-8
Python
false
false
1,314
py
79
im_tools.py
61
0.610075
0.596082
0
47
21.829787
87
Photometrics/PyVCAM
3,874,060,517,942
f55ddc89c66994f9626d61e2e4607784455aa6bd
5f75ec4ce4caef22e49f2b6c6511534b7a8f3adb
/tests/single_image_polling.py
649eab76992ebdc214b192cc4d9d1923f0f4808f
[ "MIT" ]
permissive
https://github.com/Photometrics/PyVCAM
abf1c0f2c5c504fb63ee5298e99f69db4fca2e9e
1df94cb0437c129dda1f0fe35c18f64620b18a97
refs/heads/master
2023-09-04T09:31:40.526986
2023-08-17T12:05:30
2023-08-17T12:05:30
141,481,092
30
17
MIT
false
2023-03-29T18:37:01
2018-07-18T19:31:07
2023-03-09T03:39:19
2023-03-29T18:36:51
355
22
13
3
Python
false
false
from pyvcam import pvc from pyvcam.camera import Camera def main(): # Initialize PVCAM and find the first available camera. pvc.init_pvcam() cam = [cam for cam in Camera.detect_camera()][0] cam.open() cam.speed_table_index = 0 for i in range(5): frame = cam.get_frame(exp_tim...
UTF-8
Python
false
false
494
py
23
single_image_polling.py
19
0.57085
0.558704
0
18
25.444444
82
stephanpoetschner/django-skeleton-project
13,125,420,082,145
95bf6cfaf4cd9a993205cbe892b9fdbcdf24edab
be1a7fc07665e738031431b6632a83869061144d
/myproject/settings.py
43e9d3a8c7db7988537b54fc4243ebb1d0e811ba
[ "Unlicense" ]
permissive
https://github.com/stephanpoetschner/django-skeleton-project
88e94abda9085d7c7ef3ff94c7294e4e2af4bcad
04146c8f629052768d8095cd27a5151789b5bc7e
refs/heads/master
2021-01-23T00:14:56.297475
2013-10-03T08:48:29
2013-10-03T08:48:29
865,808
1
2
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import posixpath from path import path import sys from django.core.urlresolvers import reverse_lazy DEBUG = False TEMPLATE_DEBUG = DEBUG SERVE_MEDIA = False ENABLE_ERROR_VIEWS = False USE_X_FORWARDED_HOST = True PROJECT_ROOT = path(__file__).abspath().realpath().dirname() sys.path.insert(0,...
UTF-8
Python
false
false
6,676
py
32
settings.py
14
0.677202
0.671959
0
233
27.652361
169
MrThanasiz/NWS_AS
15,513,421,900,516
ef26a6126d79b63ba079c52d8ca2d10f38998dc4
5147d7ab790c07c60b34eeb35f72e7f7c4a5acfd
/ClientFolder/ResponseProcessorClient.py
a6db648da17324f0a958d5191315e1c92cf7e6c4
[]
no_license
https://github.com/MrThanasiz/NWS_AS
04f0a4eaea1bc625d004d373b709b839689a1645
061489ca414a82d28630b78bc39d3a35c9e23450
refs/heads/master
2020-08-15T15:16:19.877681
2019-12-09T18:27:16
2019-12-09T18:27:16
215,362,313
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time class responceProcessor: def __init__(self): self.state = "keyExchange" def messageRouter(self, message, module): if self.state == "keyExchange": module.securityClient.messageRouter(message, module) else: contents = module.securityClient.decryptData...
UTF-8
Python
false
false
367
py
10
ResponseProcessorClient.py
9
0.634877
0.634877
0
13
27.230769
65
uselessrepo/21jan
2,817,498,576,254
ceb1942f6a613eb938e009ad18ad0dacb85936f5
736b20096bc03211cb58d90bab0768015c4dd0d5
/p28.py
b9a400c67bc84f26cc5b6a4a6cd28ea36d870a6a
[]
no_license
https://github.com/uselessrepo/21jan
1268d96bacf457a77966e84399751825e9cbbded
f5aa7bd772101c9163d8d75bfdd853d5f0d581c1
refs/heads/master
2020-12-15T21:04:57.571590
2020-01-21T04:12:53
2020-01-21T04:12:53
235,253,804
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
base = int(input("Enter base : ")) height = int(input("Enter height : ")) area = 1/2 *( base * height ) print(f'area is {area}')
UTF-8
Python
false
false
131
py
17
p28.py
17
0.59542
0.580153
0
4
31.25
38
MTrajK/coding-problems
5,119,601,032,098
02282bf083059458e810d0b19ac673b278887743
0dc1e63f90bc01c5d9c175e978207e1aee69823d
/Other/basic_calculator.py
f9baf9261d07a454bd356dcaf701d5e5cad09da5
[ "MIT" ]
permissive
https://github.com/MTrajK/coding-problems
ad9ef6a4c6dfd063c7cc5c980afe0f9d000c3995
b1f074f97196c1159fec17419e980e419bc42845
refs/heads/master
2023-08-16T03:14:08.267016
2023-04-21T21:30:13
2023-04-21T21:30:13
186,043,715
3,343
682
MIT
false
2023-08-04T12:49:09
2019-05-10T19:29:20
2023-08-04T08:06:12
2023-08-04T12:49:08
203
3,098
607
1
Python
false
false
''' Basic Calculator Implement a basic calculator to evaluate a simple expression string. The expression string may contain open '(' and closing parentheses ')', the plus '+' or minus sign '-', non-negative integers and empty spaces ' '. Input: '(1+(4+5+2)-3)+(6+8)' Output: 23 Input: ' 2-1 + 2 ' Output: 3 =========...
UTF-8
Python
false
false
1,686
py
121
basic_calculator.py
119
0.513049
0.485765
0
69
23.449275
101
ctdurazo/BDex
3,350,074,510,881
f82d77eb654153998c957788dae9ae9a7a7ece59
d574c2f75e7f0aa98ffb1d07f54de4fcb2795ec9
/DAO/oauthDAO.py
7831104f5ff197a32e3b755740bdfa129d213a78
[]
no_license
https://github.com/ctdurazo/BDex
d2c04c8b1d5195d63b93a0be7bc9c712d9ed8b80
2ae842f6ca97fee26f428a94e86b8cb6a22f3f29
refs/heads/master
2020-02-29T17:33:58.967474
2017-11-28T19:00:47
2017-11-28T19:00:47
41,808,405
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sqlite3 as lite # this will need to be changed to use google auth def addOauth(_database, _userid, _googleaccesstoken, _hipchataccesstoke, _jiraaccesstoken, _twitterusername): con = None try: # connect to sqlite3 con = lite.connect(_database) with con: cur = con.curs...
UTF-8
Python
false
false
4,091
py
57
oauthDAO.py
27
0.540455
0.533366
0
146
27.020548
118
leodrew/leoaclab
5,755,256,214,913
97e89ea450a974f531a84d5c8a45d14ec35c4d29
a783897a3fe80583efae3b663ee3937239f340d9
/acapp/views.py
e653a0dd690871547c928d7895b9c5dca268d9e7
[]
no_license
https://github.com/leodrew/leoaclab
fb4e25722e1878e6173a1b842e7f60071505effd
0094a99205ca0659c0c5faa30dab5abd29c97393
refs/heads/main
2023-03-12T10:32:31.692659
2021-02-25T14:29:44
2021-02-25T14:29:44
342,270,906
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from acapp.form import UserForm, Memberform, PostblogForm # Create your views here. from django.contrib.auth import authenticate,login,logout from django.http import HttpResponseRedirect,HttpResponse from django.urls import reverse from django.contrib.auth.decorators import login_req...
UTF-8
Python
false
false
2,444
py
11
views.py
7
0.607083
0.607083
0
77
30.181818
79
nordcap/learn-python
15,874,199,126,523
213723f80db962d1a62fb2905604e61e167fa77f
ab8677c1b763e348886d8a99fb9ac0ad08c7f86d
/Stepik-Поколение Python: курс для продвинутых/4 Вложенные списки/4.6 Матрицы 3/task_4.py
9b681313a85d2b05f4b18e99d0e6526ee3e7531b
[]
no_license
https://github.com/nordcap/learn-python
96a0314a084e56f3a8d5802080c10eec07bcc8ea
5f01971d50964ce392ad6f0ee97fa83bdf922022
refs/heads/master
2022-05-18T23:19:09.023509
2022-05-07T08:10:29
2022-05-07T08:10:29
83,015,313
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Заполнение 2 На вход программе подаются два натуральных числа nn и mm. Напишите программу, которая создает матрицу размером n \times mn×m заполнив её в соответствии с образцом. Формат входных данных На вход программе на одной строке подаются два натуральных числа nn и mm — количество строк и столбцов в матрице. ...
UTF-8
Python
false
false
1,511
py
803
task_4.py
749
0.695821
0.684159
0
30
33.3
211
yurimalheiros/textflow
12,841,952,224,414
8af1c80bf9300e20aaef0d4c7f2fe7895a392092
13830825b25ec01ec2874094a10f36b4b1336ac7
/tf/triggers/tabstospaces.py
cd46a022669f74ac5429a1847eb980647f3384c2
[]
no_license
https://github.com/yurimalheiros/textflow
db62047b43c44d43c6efc67ad94f8118f984b076
c21ddf8aba58dc83d58a8db960d58d91ee2e5c74
refs/heads/master
2016-09-10T14:47:18.159229
2011-11-02T14:26:31
2011-11-02T14:26:31
1,927,215
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- ####################################################################### # Copyright © 2007-2009 Yuri Malheiros. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published # the Free Software Foundation; version 2 ...
UTF-8
Python
false
false
1,524
py
107
tabstospaces.py
92
0.589626
0.581747
0
51
28.862745
71
Servoy/svyMultiLevelMenu
19,619,410,625,023
56f1323d2a91dc1a2d79200a5481101b91c26566
5e730b57e1682bfef9cb5868e63bd480026c38fd
/multilevelmenu/multilevelmenu/multilevelmenu.spec
e512d5c723a472376afb5196cafe9142199376a5
[ "MIT" ]
permissive
https://github.com/Servoy/svyMultiLevelMenu
2f7abc87de65263df1566ae359d103e484a40054
23ffbdc2419f34750fcd232f57dbcfe95f50942f
refs/heads/master
2020-09-10T14:36:29.856779
2019-11-22T16:52:05
2019-11-22T16:52:05
221,722,019
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
{ "name": "multilevelmenu-multilevelmenu", "displayName": "multilevelmenu", "version": 1, "definition": "multilevelmenu/multilevelmenu/multilevelmenu.js", "serverscript" : "multilevelmenu/multilevelmenu/multilevelmenu_server.js", "libraries": [], "model": { "menu" : {"type": "MenuItem[]" }, "brandText"...
UTF-8
Python
false
false
2,427
spec
12
multilevelmenu.spec
4
0.459827
0.459415
0
103
22.572816
75
SamarEA/BasicsPython
1,082,331,800,667
c68cc3dc3b65eb4c80b3c80570434712e4958023
2a9ea49d97a9aab291a45c5fc4e398debc2aef99
/KaratsupaMultipli.py
de9bbd6ae59cb41a7f8f0d6713f4f74bf63c0d10
[]
no_license
https://github.com/SamarEA/BasicsPython
c027cb85dd79ab8d90a462853fbbb0493eac72a9
6d2d93b0f32a3c63fecc0bf9c329d5b144bf5a2f
refs/heads/master
2017-12-10T04:31:37.395535
2017-07-16T19:15:59
2017-07-16T19:15:59
78,938,795
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Created on Sun Jul 16 08:40:35 2017 @author: Samar Elaraby """ # Implementation of Karatsuba Multiplication algorithm # It is restricted to the multiplication of two n-digit numbers def RecMulti(num1,num2): x = str(num1) y = str(num2) if len(x) <= 2 or len(y) <= 2: #base case ...
UTF-8
Python
false
false
1,526
py
3
KaratsupaMultipli.py
2
0.468545
0.423329
0
51
28.921569
81
romeieee/roam
7,825,430,421,994
213b416bf8eb485960cf232f3dea5d0ffd4bc582
49b1652b2f3c6adcc1a4b2f8b19c4ee2b293cdf2
/roam.py
4208d86f6868de3c541170f9c25a64dff72582c1
[]
no_license
https://github.com/romeieee/roam
2852f21f29b60e8adcf1b3c7af03f950ff22806e
53e75a17b5abfa6f09485d63739736f0ca5aef08
refs/heads/master
2016-08-03T16:25:06.741569
2015-07-14T00:03:20
2015-07-14T00:03:20
39,043,565
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # this software was developed by Romaine Gordon. its sole intention is # to control a RC truck from a laptop via RF links connecting 2 microcontroller # one attached to the laptop and the other to the truck. # July 1, 2015 from Tkinter import * from ScrolledText import ScrolledText import ttk im...
UTF-8
Python
false
false
9,711
py
1
roam.py
1
0.701781
0.673051
0
290
32.486207
114
faustow/vcpy
12,077,448,080,173
60f00cccf6db28a943f516f173be82d49f9bcd3e
dc1d54f9bfe1e4f7cd3eef2d12d280f4eadc21f3
/verifiable_credentials/helpers.py
68c4f15eaefec5ed2daea8297dce00441c65d2a9
[ "MIT" ]
permissive
https://github.com/faustow/vcpy
eb006ba15d525673bb8f1efc7dc79bcce9033e83
d8b56c7d4a470346893b1481c5e7e476eb4a7c5d
refs/heads/master
2020-12-29T22:25:29.616416
2020-02-25T20:21:56
2020-02-25T20:21:56
238,754,459
0
0
MIT
true
2020-02-25T20:21:58
2020-02-06T18:19:13
2020-02-06T18:19:15
2020-02-25T20:21:57
37
0
0
0
null
false
false
import hashlib from datetime import datetime, timezone from typing import List, Any, Dict, AnyStr, Union, Generator from chainpoint.chainpoint import MerkleTools from jsonpath_rw import parse, Root, Child, Fields, DatumInContext from pycoin.serialize import h2b def hash_byte_array(data): hashed = hashlib.sha256(...
UTF-8
Python
false
false
6,603
py
13
helpers.py
7
0.597153
0.590792
0
187
34.31016
120
bumps/bumps
3,917,010,199,457
d84ed2f4c3117f3665c4f67536e353fdf22aaa96
ce60f76c6ad4c48fd6182240b302ee057809cc66
/run.py
5d48f72c580192a0c4b7e917cbe0d19a5cbb9eea
[ "MIT", "LicenseRef-scancode-public-domain" ]
permissive
https://github.com/bumps/bumps
8ae10e8d15c0aa64e0bab6e00e7fabb2ca1b0860
2594e69567d534b434dc0eae727b77fdeff411d4
refs/heads/master
2023-08-22T17:56:49.987181
2023-07-26T14:22:23
2023-07-26T14:22:23
2,799,064
48
28
NOASSERTION
false
2023-07-26T14:22:24
2011-11-17T22:22:02
2023-06-02T16:18:40
2023-07-26T14:22:23
13,245
51
27
63
Python
false
false
#!/usr/bin/env python """ Build and run bumps. Usage: ./run.py [bumps cli args] """ import os import sys def addpath(path): """ Add a directory to the python path environment, and to the PYTHONPATH environment variable for subprocesses. """ path = os.path.abspath(path) if 'PYTHONPATH' in os...
UTF-8
Python
false
false
1,659
py
211
run.py
177
0.664256
0.663653
0
65
24.523077
79
gabrielsp20/Ex_Python
7,662,221,688,496
1b8ce58fab3e73566e984d75f9e505541262cf83
d7897acf9bc369d4668e00a73f85d1a0efdc7a7b
/068.py
854340bfd35d83f1388ac3ad2e9137a512a411e1
[]
no_license
https://github.com/gabrielsp20/Ex_Python
db723d9a1344c79a2cd7a6b9b95d85754cf54d3d
5264de0002755ca5d58dc8fe74dfe1cea458c731
refs/heads/main
2023-05-06T21:53:26.568941
2021-05-03T16:14:20
2021-05-03T16:14:20
363,985,168
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from random import randint from time import sleep print('=' * 30) print('VAMOS JOGR PAR OU IMPAR') print('=' * 30) computado = randint(1, 10) v = pi = soma = ganhou = 0 while True: v = int(input('Digite um valor: ')) pi = str(input('Par ou Impar? [P/I] ')).upper() print('-' * 30) soma = v + computado ...
UTF-8
Python
false
false
1,437
py
39
068.py
39
0.455944
0.432168
0
48
28.4375
88
chrisoyer/music-review-pipeline
15,169,824,506,293
279d5dd1b9631cc3724116ea4014cfdaeb7a6945
171d7bc5047679d943db51926cc25ae6322d4eb1
/src/data/scrapy/rym_scrape.py
12749702d2506f47f8c993e8bd7cb5b108b8f946
[]
no_license
https://github.com/chrisoyer/music-review-pipeline
0999a5488c8a285ecb7ef7edc0562b0b75a08cd5
81bd0e56aa6c73409ec5b35356b96b52193e9c82
refs/heads/main
2023-01-19T06:51:08.269846
2020-11-24T22:20:16
2020-11-24T22:20:16
306,819,120
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import rymscraper as rym import pandas as pd # create connection network = rym.RymNetwork() # get charts as source for artists rym_url = rym.RymUrl.RymUrl() chart_infos = network.get_chart_infos(rym_url=rym_url, max_page=3) df = pd.DataFrame(chart_infos) # get list of albums for artists # g...
UTF-8
Python
false
false
430
py
10
rym_scrape.py
6
0.744186
0.74186
0
22
18.545455
66
rajanpawar90/Sagemaker-Projects
8,744,553,435,925
8f4ffdc7854fe1ff74d73ed867ce4dd50fd92bfe
8203f0d7b014f654a0e1061d417ad68d2bea6913
/sklearn_sagemaker_deploy/sklearn_sagemaker_models.py
bd104b5e9cfd3213004f3e602562cee11ae4d569
[]
no_license
https://github.com/rajanpawar90/Sagemaker-Projects
8a9cf49b39220ab4a99f9b4514efd780efc2922f
ab03d6c334d295785fbf83ca8da7a11ba7d8a9dc
refs/heads/main
2023-02-14T17:46:15.945260
2021-01-03T23:30:03
2021-01-03T23:30:03
326,520,736
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ #sample notebooks reviewed # https://github.com/aws/amazon-sagemaker-examples/blob/master/sagemaker-python-sdk/scikit_learn_randomforest/Sklearn_on_SageMaker_end2end.ipynb # https://github.com/aws/amazon-sagemaker-examples/blob/master/sag...
UTF-8
Python
false
false
8,999
py
11
sklearn_sagemaker_models.py
6
0.693522
0.682743
0
173
51.017341
189
loganathanengrr/Django-Rest-Core
14,594,298,892,059
b7e0fbb59c734e3ed312579d15b34c5119a6a058
e755f96437b264e54b30d58f706990eb17cc3944
/src/accounts/views/views.py
3d8d7d34836357fd45eaabc8a4deaeeb44b71490
[ "MIT" ]
permissive
https://github.com/loganathanengrr/Django-Rest-Core
a5b1ba72a44e8e1da3957450d8266aec9bf852e2
928c2d816c0aa48453dde8642ef1b263f76ae39d
refs/heads/master
2022-12-13T15:35:49.143116
2018-10-23T05:06:13
2018-10-23T05:06:13
154,263,367
1
0
MIT
false
2022-12-08T02:48:16
2018-10-23T04:40:37
2020-02-18T11:09:56
2022-12-08T02:48:15
1,109
1
0
12
Python
false
false
import uuid from collections import OrderedDict from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.tokens import default_token_generator from django.utils.timezone import now from rest_framework import generics from rest_framework.views import APIView from rest_fra...
UTF-8
Python
false
false
6,207
py
31
views.py
29
0.762204
0.758821
0
197
30.497462
79
KeyStorke/CHM01
6,889,127,577,062
6cbe2f490d1431c6fc9f441f8f6480f976d0e039
62f448fe3f09a287b498acb6262834784c1f348a
/constants.py
87c1904f2c8c4edecf1d6012d8be2198a573c39d
[]
no_license
https://github.com/KeyStorke/CHM01
7ad332ba1710858e52bb11502d7a115122198809
d6de100e5ad1db69be2c93bded5adc7068d78a55
refs/heads/master
2016-08-01T02:15:08.574835
2015-04-02T21:36:52
2015-04-02T21:36:52
33,320,699
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 4x^6 - 6x^4 - 24x - 10 func_glob = lambda x: 4 * x ** 6 - 6 * x ** 4 - 24 * x - 10 # 24x^5 - 24x^3 - 24 func_frst = lambda x: 24 * (x ** 5 - x ** 3 - 1) a1 = -1 b1 = 1 e = 0.1 ** 1000000000000000
UTF-8
Python
false
false
199
py
3
constants.py
3
0.472362
0.21608
0
8
23.875
59
rddaz2013/bastelpython
4,526,895,558,648
fc4ec76754e26d168bb3fb795709572ec70e6088
b431798e7027ddaa8dc4bfe460a81a415c14692f
/BastelPython/src/Argon/Part_2/triplot.py
2484678a122e473f4aeb2018178817cc0ab77d74
[]
no_license
https://github.com/rddaz2013/bastelpython
1afe3a742bfdc598304d989469567a85e9953140
eff40b4ee9bce98de75a89c5c576b4cbd735625d
refs/heads/master
2016-08-08T13:41:10.369834
2014-04-04T13:13:31
2014-04-04T13:13:31
32,955,283
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # Copyright (C) 2009 Jeremy S. Sanders # Email: Jeremy Sanders <jeremy@jeremysanders.net> # # This program 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 ve...
UTF-8
Python
false
false
3,814
py
255
triplot.py
131
0.602779
0.513896
0
103
35.009709
106
lizhencmb/forest
5,437,428,622,613
5b2e6e0c23d2364dcc89f369d16f0f061449b7fd
551f917f3eac76a0754c1da3cfebe2a7f0ea35f6
/tools/genefamily.py
082cb60acb55092d26fc31bc808398c5a12efad9
[]
no_license
https://github.com/lizhencmb/forest
add452880108ee2bb33577749a5b5eea5fc5c632
e9c0a58606bdcd22153963317e8ca7a9bea81f38
refs/heads/main
2023-04-07T05:54:13.478252
2021-04-19T13:59:14
2021-04-19T13:59:14
352,376,977
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import os import logging import subprocess as sp from Bio import SeqIO from Bio import AlignIO from Bio import Phylo from Bio.Seq import Seq def read_gene_families(gftxt, protfile = None, cdsfile = None, wrkdir = None): """ Read gene families and sequences and put them into the GeneFami...
UTF-8
Python
false
false
6,157
py
4
genefamily.py
3
0.507228
0.499269
0
176
33.982955
82
zinedine/pyMagic
3,135,326,131,166
fc1531a9f88f8a2b9fcce7dbe92d74e6f56e09e9
25329c21eecddd0f4027dbaacf2fad5090319795
/widgets/geometry_helper.py
0e85ed8513a9ac6ef1ff1f223c4ac948ffdfebd6
[]
no_license
https://github.com/zinedine/pyMagic
77a5322c043a170783343f8dd22fcebdd7044f87
a94b92803eb3070ef8ce14b7a1fb0f10b0c06ed6
refs/heads/master
2020-05-31T13:18:48.087940
2012-06-28T02:01:13
2012-06-28T02:01:13
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from PyQt4.QtCore import QSettings, QByteArray class GeometryHelper(object): def __init__(self): pass def save(self, data, name): info = QSettings() info.setValue("geo/" + name, data) def load(self, name, default_value = None): info = QSettings() key = "geo/" + nam...
UTF-8
Python
false
false
435
py
96
geometry_helper.py
83
0.586207
0.583908
0
16
26.25
62
sangeeths/be
8,315,056,721,377
9e460ad14cbd6508168b505de09bb9e518399c4a
64fca990f99abb1308397e7c13104bc1fc023240
/dir1/test_f1.py
5751e587b919efe96dce14b5ae42f6f00c5c3d5c
[]
no_license
https://github.com/sangeeths/be
b242b250d64b768fe9ec1a0840543ec4908bffe7
a24ba2a1cdd59b26062f1b50334c6b2180ee7fc3
refs/heads/master
2020-05-05T06:54:26.403786
2013-08-04T00:10:16
2013-08-04T00:10:16
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print 'this is file #1'
UTF-8
Python
false
false
24
py
33
test_f1.py
27
0.666667
0.625
0
1
23
23
RedHatInsights/insights-core
4,629,974,763,787
5d48984f724be55bb8a302420c9c9adb8afc62df
b8d80a23cb27af08a1c4d34b478c76228ae5fbb4
/insights/parsr/query/tests/test_boolean.py
3af943ed4bb5bd593178c089fe694e6239fba8d1
[ "Apache-2.0" ]
permissive
https://github.com/RedHatInsights/insights-core
bb243e2bf8a52446fefb95ebe05478d6e35efe2e
b0ea07fc3f4dd8801b505fe70e9b36e628152c4a
refs/heads/master
2023-09-04T21:15:40.456257
2023-09-04T10:46:56
2023-09-04T10:46:56
92,518,221
144
290
Apache-2.0
false
2023-09-14T02:40:13
2017-05-26T14:23:11
2023-09-05T06:25:30
2023-09-14T02:40:12
16,723
132
193
185
Python
false
false
from insights.parsr.query.boolean import TRUE, FALSE def test_and(): q = TRUE & TRUE assert q(None) q = TRUE & FALSE assert not q(None) q = FALSE & TRUE assert not q(None) q = FALSE & FALSE assert not q(None) def test_or(): q = TRUE | TRUE assert q(None) q = TRUE | FA...
UTF-8
Python
false
false
519
py
1,667
test_boolean.py
1,482
0.55684
0.55684
0
36
13.416667
52
alisonrib17/bees-tomato
11,665,131,201,965
95f2eee4e68f85615a43f8547b1e9ea2c42be816
dde823d2e293a60ad49c98153d2606a99136c374
/GenusCodes/feature_extraction_gen.py
b59bf08b93449a759f53fdeb8ec60b2520bd478a
[]
no_license
https://github.com/alisonrib17/bees-tomato
0a78fa02b7039bb8bee21b3ad1908d4430f89b34
53cf7424b99c7b48475ec9021c080dbc1a62cc57
refs/heads/master
2023-08-28T14:00:38.131992
2021-09-17T18:03:49
2021-09-17T18:03:49
392,415,944
4
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import csv import pickle import librosa import pathlib import pandas as pd import numpy as np N_MFCC = 41 # Number of features path_features = '/home/alison/Documentos/TomatoBeesRepository/DatasetMFCC/dataset_genus.csv' def feature_extraction(): header = 'filename' for i in range(1, N_MFCC): header ...
UTF-8
Python
false
false
2,088
py
15
feature_extraction_gen.py
3
0.663793
0.660441
0
75
26.853333
121
m4xc4v413r4/python-blizzardapi
9,852,655,012,993
21028e45aa32c648f9d03187e96de5a696cbeb61
3680d05cdb683eb1ae5753dabeb0e201ef004d2d
/blizzardapi/wow/wow_profile_api.py
b10a405d0858c685d9a49e05a95c71aa03d55c53
[ "MIT", "Python-2.0" ]
permissive
https://github.com/m4xc4v413r4/python-blizzardapi
1492980520ad3e73128d51538d25f86d417c4918
dd1c225fc713ad4e0cb4e13d0703434279353658
refs/heads/main
2023-06-21T04:32:11.241254
2021-05-14T20:43:16
2021-05-14T20:43:16
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""wow_profile_api.py file.""" from ..api import Api class WowProfileApi(Api): """All Wow Profile API methods. Attributes: client_id: A string client id supplied by Blizzard. client_secret: A string client secret supplied by Blizzard. """ def __init__(self, client_id, client_secret):...
UTF-8
Python
false
false
14,912
py
24
wow_profile_api.py
20
0.647264
0.647264
0
325
44.883077
117
pulumi/pulumi-azure-native
11,897,059,438,296
74ec9ee2cc0ab57b9cc1678cb2e0a9b763d4cc0c
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/providerhub/v20210501preview/outputs.py
60700306ce2cf515b0efdb4da213d36fa5614f22
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
https://github.com/pulumi/pulumi-azure-native
b390c88beef8381f9a71ab2bed5571e0dd848e65
4c499abe17ec6696ce28477dde1157372896364e
refs/heads/master
2023-08-30T08:19:41.564780
2023-08-28T19:29:04
2023-08-28T19:29:04
172,386,632
107
29
Apache-2.0
false
2023-09-14T13:17:00
2019-02-24T20:30:21
2023-09-11T17:08:08
2023-09-14T13:16:52
2,507,628
104
26
377
Python
false
false
# coding=utf-8 # *** WARNING: this file was generated by pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __all__ ...
UTF-8
Python
false
false
1,388
py
13,948
outputs.py
5,665
0.606628
0.605908
0
52
25.653846
80
Andreyglass1989/Swift_Avia_Group
6,914,897,386,915
fc5b85e1cec799ef0e7577200787f8083243ba60
cbfd2f8cbc31573ab54455f3f5398dffcf13f2af
/advanced/to_Slava_serializers.py
82ffa7d1bfe56a7cea2cd4764ce236f390176f55
[]
no_license
https://github.com/Andreyglass1989/Swift_Avia_Group
ccaf9f1a9bdff8fd9837345ba45915814b17a2a4
2c89e170a0fe9a5401fd15552c85c5d73abe1c21
refs/heads/master
2022-07-27T09:42:29.863236
2019-07-18T04:17:54
2019-07-18T04:17:54
102,249,849
0
0
null
false
2022-07-15T20:30:50
2017-09-03T08:04:54
2019-07-18T04:18:11
2022-07-15T20:30:50
19,623
0
0
8
HTML
false
false
from LK.models import Parcel, Pack, ParcelPackProduct # from rest_framework import serializers from django.http import JsonResponse import json def pack_today(date): q = Parcel.objects.filter(date_added__contains = date, parcel_status_id=2) # for zz in q: # z = Pack.objects.filter(parcelpackproduct__parcel_id) ...
UTF-8
Python
false
false
1,441
py
159
to_Slava_serializers.py
94
0.686329
0.681471
0
51
27.27451
146
dpgailey/sourcereader
9,431,748,199,156
c8421594d410089fadf5fcecb182167dc87613df
5b51bf14323b0949eba8e726acbebf889b35ccd6
/dateGuesser.py
9ee110bc401ad8d5a7c7e0c132ffce494c4f10b2
[]
no_license
https://github.com/dpgailey/sourcereader
32432e21696e5cd826749c4987cd6a6d5730d237
e494937fbd415e0bfbede4c591a6a4af74ee412b
refs/heads/master
2021-05-26T18:10:13.649556
2011-12-07T19:03:58
2011-12-07T19:03:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import re from alogClient import * from datetime import date from datetime import timedelta def urlDateGuesser(url): ## all one number today = date.today() dateMatch1 = re.search('\d{8}', url) if dateMatch1 != None: allOneNumber = dateMatch1.group(0) #is year rational? Within a f...
UTF-8
Python
false
false
1,385
py
114
dateGuesser.py
104
0.568953
0.540072
0
41
32.560976
99
JiangLiNSCC/eHPC
1,872,605,763,550
3c09f7279dc09f2faa4402ced69cbd0350c05c56
d23a7446f0b8dc83c88808ac47ec9a5568572ee2
/newt-p3/job/migrations/0002_auto_20161110_0004.py
386997787f124c2bcebe48644f4406369df1b9eb
[ "BSD-2-Clause" ]
permissive
https://github.com/JiangLiNSCC/eHPC
a651aac0a77e3a4d3bf7a1a3195f6abcbcc33c79
16fb9bdf76875ff154173184aa83979b37a91f5a
refs/heads/master
2021-01-17T16:03:56.334913
2017-05-03T09:19:05
2017-05-03T09:19:05
61,087,990
3
1
null
false
2017-01-04T04:01:54
2016-06-14T03:10:39
2016-11-18T11:33:38
2017-01-04T04:01:54
2,702
2
1
10
Python
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-10 06:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('job', '0001_initial'), ] operations = [ migrations.AlterField( ...
UTF-8
Python
false
false
1,969
py
79
0002_auto_20161110_0004.py
62
0.53936
0.526663
0
65
29.292308
76
national-basketball-association/NPS
16,758,962,398,444
eb03608e3e08e6e0ed63f16d055874ecab52080e
a3d076c7d029d2cfebbbc6ad2e9062e6051c14b2
/storeCSV.py
ad8552c4bfed51f72f0ad9672445ab56daf40b6e
[]
no_license
https://github.com/national-basketball-association/NPS
282266507b6459b79e5c9f7c7bf95bb1d86079cf
cd1561a0330cdf79d61101a2052cf162ec1920a3
refs/heads/master
2022-12-09T23:49:39.571201
2019-04-26T07:17:55
2019-04-26T07:17:55
169,655,875
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import csv from pymongo import MongoClient import glob import sys from pprint import PrettyPrinter #connect to the database client = MongoClient("mongodb+srv://rmohamme:green12@cluster0-8eolw.mongodb.net/test?retryWrites=true") db = client["NPS"] filepath = sys.argv[1] + '/' if len(sys.argv) == 2 else '' def storePla...
UTF-8
Python
false
false
13,255
py
521
storeCSV.py
9
0.466164
0.450472
0
329
39.288754
130
ocakafred/CHAI
10,376,641,034,577
11bc4776afbaee8445aa0eb0f3cebf7ce83314a3
1498debedf2f834a0e9d4a53c0d2a197e7ebceee
/sql_script.py
0db344f10b7bd7702774bd298e8e6aff937d4bd3
[]
no_license
https://github.com/ocakafred/CHAI
3667581dffb2c1381411c4a1deb8c3a258dbaa75
b539e988545fea9616fc3ce7ae6d67d1275650e8
refs/heads/master
2022-11-12T16:52:58.447182
2020-06-18T16:57:21
2020-06-18T16:57:21
272,387,092
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Created on 15th June, 2020 @author: Alfred Ocaka This class connects to SQL server, query data from the tables, generate indicators and save in a CSV file Two packages are required for the script to run; pandas and Pyodbc i.e pyodbc for connecting to the SQL database and pandas for data analysis """ import p...
UTF-8
Python
false
false
2,993
py
3
sql_script.py
2
0.630805
0.628466
0
86
33.767442
260
arjunreddyt/Computational-Economics
2,920,577,767,526
9d007f4106a6c9aa35c2326dec9faefff236e5c6
5bcb8ca369f398b9cc710e2a5b2f4be3aba0dab1
/Monopoly-Probabilites/Monopoly.py
3c60d7d1607523e70f9eb3b6dc609898c13ae303
[]
no_license
https://github.com/arjunreddyt/Computational-Economics
7ac6c17684a48114e209ac9b81e7747f82c44f97
f66072d04adc3314bfccce751b0257e1d4eb885f
refs/heads/master
2021-01-20T15:44:54.685812
2017-05-09T22:09:41
2017-05-09T22:09:41
90,795,118
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random POS = ["GO " ,"Mediterranean Avenue " ,"Community Chest 1 " ,"Baltic Avenue " ,"Income Tax " ,"Reading Railroad " ,"Oriental Avenue " ,"Chance 1 " ,"Vermont Avenue "...
UTF-8
Python
false
false
4,220
py
6
Monopoly.py
3
0.494313
0.469431
0
193
20.849741
64
progpyftk/projeto_sky
5,935,644,837,343
2c1b9b44ba1325c5f249639ed7a36aab92231f38
57936dba18017f6a8ba05b552292c22d0ceaad2d
/Tela_Principal/tela_principal.py
a7c22672b3315887a27476347bcd1593a9011295
[]
no_license
https://github.com/progpyftk/projeto_sky
a13604d4584d02d4705ce4b0d72fbd82377ffff2
0251a5abb0c8e7569d349f038c2eb9a01cf345f0
refs/heads/master
2016-09-21T01:08:25.531315
2016-09-08T19:20:42
2016-09-08T19:20:42
67,542,770
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'lorenzo.cabrini' import sys sys.path.insert(0, r'C:\Users\lorenzo.cabrini\Google Drive\Programação\Codes\Projeto Sky\Tela_Principal') from PyQt5.QtWidgets import QDialog, QWidget, QMainWindow, QApplication, QLayout, QBoxLayout, QDesktopWidget from PyQt5.Qt import qApp from PyQt5 import QtWidgets from P...
UTF-8
Python
false
false
12,095
py
25
tela_principal.py
16
0.599256
0.581969
0
294
40.112245
160
soniloi/impostor
15,264,313,811,886
b142523ca79a6b324b0600e096d60efbc64b65e8
49684435913a235cf10543823ca4cf985799dcf6
/utilities/test/test_build_sources.py
53fa9835df9ab6828144aa5f51980d62c4118267
[]
no_license
https://github.com/soniloi/impostor
10918dc1d02878751460892e9d8c275c74dd7fa1
b87e519823edd58955bf3fd1e5cfa18a19a0d86f
refs/heads/master
2021-01-17T09:16:20.496697
2017-09-09T15:52:49
2017-09-09T15:52:49
40,811,250
7
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import unittest from utilities.build_sources import SourceBuilder class TestSourceBuilder(unittest.TestCase): def setUp(self): self.output_dir_base = "output/" self.builder = SourceBuilder(self.output_dir_base, False) existing_filenames = ["mollusc.src", "lemon.src", "quercu...
UTF-8
Python
false
false
5,047
py
18
test_build_sources.py
17
0.694076
0.676441
0
181
26.878453
82
yandongliu/language-benchmarking
188,978,604,356
74187fc59515cee0bef326b5c5f20278dd8aa7c0
92a7da0c557331f77bd09b9d0b9f159da35fbce0
/web_server_fetch/coroutine.py
341d6ed7209a407e82c94c3adfd28d564e59e76a
[]
no_license
https://github.com/yandongliu/language-benchmarking
bd056ce2fe6d11d43a540161d2795188e54fd309
49a3dfa6d3da5f3597d5f4b351bf73115e907681
refs/heads/master
2021-01-01T05:44:10.650500
2016-04-25T00:10:21
2016-04-25T00:10:21
56,989,038
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests from tornado import gen import tornado.ioloop import tornado.web LISTEN_PORT = 8080 def urls_to_check(): return [ 'http://google.com', 'http://wikipedia.org', 'http://amazon.com', ] @gen.coroutine def check_status(url): try: raise gen.Return(requests.get...
UTF-8
Python
false
false
981
py
10
coroutine.py
6
0.61366
0.609582
0
47
19.87234
55
Koellewe/distribution-solver
14,955,076,145,830
8bbd7e1b803085ca6fa7cc66ce4b2531d29fe019
6e2b838915e9f0ab66a10d8bacaa74f258a1354f
/main.py
0ed76167d8532211da08b4a16cda29ef6d2054ad
[]
no_license
https://github.com/Koellewe/distribution-solver
a39226285c800768c150f0387e9aceea7bf3a330
3a9df8a3bb6369dd6559c2e87884b2d07cfb70dc
refs/heads/master
2020-06-24T05:59:16.643782
2019-07-26T12:30:58
2019-07-26T12:30:58
198,870,415
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import meta_random import meta_random_indef import meta_shuffle_indef import yaml from mpi4py import MPI cfg = yaml.safe_load(open('config.yml')) # static vars comm = MPI.COMM_WORLD current_rank = comm.rank total_ranks = comm.size if __name__ == '__main__': if cfg['SHUFFLE_MODE']: meta_shuffle_indef.mai...
UTF-8
Python
false
false
537
py
10
main.py
8
0.627561
0.621974
0
23
22.304348
79
pulinau/sumo_rl_driving
8,091,718,391,172
c635c903d49c8adc940c634ae13433cb7c1da952
23ec39bfedc0e6c33d527d8270b0be9972be32ad
/test.py
8a3cec1ab28ff3e9d353cb668b0b4fbfe84904db
[]
no_license
https://github.com/pulinau/sumo_rl_driving
75080544ca7c869ad8c5721943e13cb0c187b0a1
afc91b82ab6c860841e4be8ab587505e171f4b2e
refs/heads/main
2023-02-10T01:33:16.668580
2018-11-08T05:42:17
2018-11-08T05:42:28
310,592,918
9
2
null
null
null
null
null
null
null
null
null
null
null
null
null
from include import * from sumo_cfgs import * from sumo_gym import * from observation import * from action import * SUMO_BIN = "/home/ken/project/sumo-bin/bin/sumo-gui" NET_XML_FILE = "/home/ken/project/sumo-rl/sumo_openai_gym/roundabout/roundabout.net.xml" ROU_XML_FILE_LIST = ["/home/ken/project/sumo-rl/sumo_openai_...
UTF-8
Python
false
false
1,735
py
36
test.py
22
0.542939
0.538905
0
56
30
121
RodrigoOSiqueira/echo
10,651,518,908,814
6234dfb3a620eb0c7c2ce3bb3542d76fa2a8bf46
edc1a0aad809f53e38e366e42f36d3e088de5ac8
/accounts/views.py
149707480fe9c4753aec563b3d94e46c821bd657
[]
no_license
https://github.com/RodrigoOSiqueira/echo
e5a9e0bb2653baba213c13053c2703f65c891669
9f07a9155cddb72b4584737d6752dcee82379845
refs/heads/master
2020-04-09T08:51:31.014829
2018-12-06T18:18:52
2018-12-06T18:18:52
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render,redirect,get_object_or_404 from django.contrib.auth import login,logout,authenticate, get_user_model from django.contrib.auth.forms import UserCreationForm,SetPasswordForm from django.http import HttpResponse from django.contrib import messages from django.contrib.auth.decorators imp...
UTF-8
Python
false
false
3,709
py
22
views.py
13
0.608637
0.604588
0
110
32.690909
90
lee-shun/learn_py
3,092,376,501,302
38d49295a9117136310da2058195fe870407b9cd
9062776019f11cd2a251c8c94ed9a7a71b0c1ddb
/section2/use_property.py
a65cfc458bd32be048cf021ab6c5c3c7179f4690
[]
no_license
https://github.com/lee-shun/learn_py
434505029dd578934c2f00354a76ed7af827ec5c
7380d9c3cf1d98dd71bb6d85a6c453d387abfe4a
refs/heads/master
2022-11-21T04:37:11.428433
2020-07-27T09:32:02
2020-07-27T09:32:02
282,578,093
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Student(object): @property def score(self): return self._score @score.setter def score(self, value): if not isinstance(value, int): raise ValueError('score must be int!') if value < 0 or value > 100: raise ValueError("score must be in 1 to 100") ...
UTF-8
Python
false
false
620
py
24
use_property.py
23
0.60566
0.571698
0
25
20.2
57
karthikwebdev/oops-infytq-prep
4,526,895,542,537
5e56b19f6fc482877f4bb3801eab67c2d59ddec3
4b18ffeca5d362e43cf3a00bbfa6180a8b96c409
/hackerearth/nosubpal.py
b13e487e4bc3395b0d2f3e4e5de543b858031e8f
[]
no_license
https://github.com/karthikwebdev/oops-infytq-prep
075c9e1553a7a0d71907602d3da6bfadae5285e3
4f855184875d52efc2bfab18686b0fde74e0cfd6
refs/heads/master
2020-12-22T08:22:47.501134
2020-02-18T15:28:45
2020-02-18T15:28:45
236,723,927
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
word = input() if(word == word[::-1]): while(word): word = word[:len(word)-1] if(word == word[::-1]): pass else: break print(len(word)) else: print(len(word))
UTF-8
Python
false
false
219
py
63
nosubpal.py
57
0.442922
0.429224
0
11
18.909091
33
ciromoraismedeiros/image-gallery
4,226,247,869,258
dd1246fe8cfb1448ab916a4cf3e9442d6e862fa3
9fa4f73ba1d04b5a92c4ccd06138b11187459cdd
/galleryproj/gallery/urls.py
90f8e25e7e39ae2e546e1fe71f3769de83df6a3a
[]
no_license
https://github.com/ciromoraismedeiros/image-gallery
40aef6585ea8fe820287c8015a1bc54cab39548a
e3c392b11e37a923fd19af24db07d53e74ffd488
refs/heads/master
2021-06-01T13:54:16.624866
2020-01-23T09:47:29
2020-01-23T09:47:29
153,814,907
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.home, name='home'), path('sign-s3/', views.sign_s3, name='sign-s3'), path('submit-form/', views.submit_form, name='submit'), path('upload/', views.upload, name='upload'), path('like/', views.like, name='like'), pat...
UTF-8
Python
false
false
484
py
19
urls.py
12
0.630165
0.623967
0
14
33.5
61
vitaly-krugl/pika-perf
10,900,627,010,137
af1a8c03c1040bbee33f42db8dfef6a3c2ecdf5f
9f108fb178e38e53a9b9a434c18893918cf49a2c
/haigha_perf.py
3f6c9600880fd0235f7ee2e05d81f2052f28a6e6
[]
no_license
https://github.com/vitaly-krugl/pika-perf
8aef9c56183de676a520cc9992b04845e0eabe72
18fcb2a1d29b2d4049c0b2399812568b718d86a9
refs/heads/master
2016-09-06T06:00:01.750983
2015-05-23T06:01:49
2015-05-23T06:01:49
33,105,420
0
0
null
false
2015-03-30T16:56:30
2015-03-30T05:43:17
2015-03-30T11:06:19
2015-03-30T16:56:29
0
0
0
0
Python
null
null
"""Performance tests for haigha """ import collections import logging from optparse import OptionParser import socket import sys from haigha.connections.rabbit_connection import RabbitConnection from haigha.message import Message from haigha.transports import socket_transport g_log = logging.getLogger("haigha_perf...
UTF-8
Python
false
false
13,373
py
5
haigha_perf.py
4
0.654453
0.651911
0
498
25.853414
82
SeaWar741/ITC
15,418,932,628,927
418fb94f4b967f85be066f3d2a80d1fcc0c7b31c
16f50a812eca90748e87bfe471e0c05f178337fd
/1er_Semestre/memoriaAdry.py
3d6fd91b873a30a7a521286c9e0722c02a80f742
[]
no_license
https://github.com/SeaWar741/ITC
65f73365762366f56cfbd6d0bc788cd384672d12
5f75716be58ca6e00bcd8dae7546fd19fe37657f
refs/heads/master
2023-02-05T23:25:13.972031
2022-09-29T10:38:32
2022-09-29T10:38:32
205,020,772
4
2
null
false
2023-01-19T15:28:45
2019-08-28T20:48:35
2022-06-12T03:35:28
2023-01-19T15:28:44
592,142
4
2
10
Jupyter Notebook
false
false
import random values={} #Diccionario guardar los pares de cartas def creatablero(): board = [[0]*6 for i in range(6)]#crea un array de 6x6 en un for num =1 #variable para el elemento del array for i in range(6):#for para aumentar el numero y colocar en el tablero [i][J] row for j in range(6)...
UTF-8
Python
false
false
6,850
py
556
memoriaAdry.py
300
0.514315
0.493281
0
114
58.070175
636
Lpkepka/odis_project
5,265,629,923,920
2c61e442b7c742bc276ca4aa78a9709c0ba6f9a6
1725e09120b86bb8f094d10e482d94369f7d2404
/Tests/logParserTests.py
972b6fe317e43e1c65acd02bc55fabeda77b7ceb
[]
no_license
https://github.com/Lpkepka/odis_project
4cecca1492843d9d00e020f2c9f3bc30511f82dd
12fcbf10c073eeab3d96ee07223efbf86aa0e980
refs/heads/main
2023-04-28T15:55:44.393631
2021-05-26T09:45:01
2021-05-26T09:45:01
360,270,272
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest import logParser parser = logParser.LogParser() class TestParser(unittest.TestCase): ELBLog = '2015-05-13T23:39:43.945958Z my-loadbalancer 192.168.131.39:2817 10.0.0.1:80 0.000086 0.001048 0.001337 200 200 0 57 "GET https://www.example.com:443/ HTTP/1.1" "curl/7.38.0" DHE-RSA-AES128-SHA TLSv1.2' ...
UTF-8
Python
false
false
2,817
py
14
logParserTests.py
7
0.641764
0.519388
0
62
44.33871
215
mitdbg/datascienceclass
13,941,463,854,954
3a8d7201547a4b87c534eae68f86a0da782fa31f
f97f6b8cded431c1e09e431f7f8c7aab2c0a2fe5
/spring_2022/lab_6/code/q5.py
606db0ecc1151c02e36591dac64eb19954954bca
[]
no_license
https://github.com/mitdbg/datascienceclass
e725f04b75760ac03f81973903c83404ce8d90b6
f44185920d838a63582be6abb71ff99d323a21b7
refs/heads/master
2023-02-23T09:27:42.671532
2022-10-03T11:52:51
2022-10-03T11:52:51
203,637,890
5
38
null
false
2023-02-08T02:36:50
2019-08-21T18:01:24
2023-01-01T05:10:34
2023-02-08T02:36:47
68,900
5
25
4
Jupyter Notebook
false
false
import pyspark import os from pyspark.sql import SparkSession from pyspark.sql import functions as F from time import perf_counter print("Initializing Spark session...") spark = SparkSession.builder.config("spark.driver.memory", "32g").config( "spark.executor.instances", 4).config("spark.executor.cores", 4).config( ...
UTF-8
Python
false
false
1,067
py
129
q5.py
30
0.733833
0.713215
0
34
30.382353
80
LoganHentschel/csp_python
7,335,804,159,425
8cdbb654bb8c9411d7e7475718b0cd04d91bd65a
286fcdb146513f9ebc6d440fb6393c7925c0c491
/CSP_Sem1/TURTLE/1.1 Unit/Bug Fix Assignment/FIXED2_LEGS_a115_buggy_image.py
5ad85c398ce540aafbce70320d3cc80852a0d5df
[]
no_license
https://github.com/LoganHentschel/csp_python
86dc0b305ef44e3e081b6b05e41d96567f5c9bf7
ed408e90a4fec9e4818a365c9e57e7a09ba697e0
refs/heads/master
2020-12-06T07:45:05.573690
2020-04-07T04:34:25
2020-04-07T04:34:25
232,395,261
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# a115_buggy_image.py import turtle as trtl ############## trtl_spider = trtl.Turtle() # ''' CREATE SPIDER BODY ''' trtl_spider.pensize(40) trtl_spider.circle(20) # # # ''' CREATE SPIDER HEAD ''' ### isn't part of the code quite yet...? its currently just a bad circle... # # # ''' CONFIGURE SPIDER LEGS ''' spider_leg...
UTF-8
Python
false
false
728
py
61
FIXED2_LEGS_a115_buggy_image.py
59
0.656593
0.630495
0
34
20.441176
75
gitbuda/optframe
19,567,871,025,717
11e42764f2b6f50ce60a552e732734eb88a76f08
de1776c11e306532aa4d7e838aa0651807ab65c2
/problems/cvrp/hmo_loader.py
d4d0cbe7dc0500cc91a3d7e5bcf8a96ef6448d59
[]
no_license
https://github.com/gitbuda/optframe
40c12acb94618407cd00d6897603f47c35b4c6ac
b2ad4b297f372beaa969b08d0636ddfd3e91d53e
refs/heads/master
2021-01-23T18:21:55.606525
2015-06-23T13:10:26
2015-06-23T13:10:26
32,553,940
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from collections import defaultdict class HMOProblem(object): def __init__(self): self._warehouses_no = 0 self._customers_no = 0 self._warehouses_coords = [] self._customers_coords = [] self._vehicle_capacity = 0 self....
UTF-8
Python
false
false
5,167
py
206
hmo_loader.py
135
0.623379
0.618154
0
176
28.357955
77
benety/mongo
2,482,491,129,166
ffbfc1e218ed1c25fb8aec4cd4c58722a4fbc5a2
9d9e5aca4c3e32b762f55fe7488d5cdb2ca86062
/buildscripts/task_generation/generated_config.py
c054648bcbb08d6d5edfd9183cce1210026b630b
[ "LicenseRef-scancode-warranty-disclaimer", "SSPL-1.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later", "MPL-2.0", "BSD-3-Clause", "Unicode-DFS-2015", "BSL-1.0", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "AGPL...
permissive
https://github.com/benety/mongo
a6a14cf5c7af5a5a2d863107cb8002dc144fd283
203430ac9559f82ca01e3cbb3b0e09149fec0835
refs/heads/master
2023-01-06T22:12:38.994986
2022-05-11T22:42:28
2022-05-11T23:32:03
308,162,184
0
0
Apache-2.0
true
2020-10-28T23:05:47
2020-10-28T23:05:46
2020-10-23T20:13:37
2020-10-02T22:10:54
401
0
0
0
null
false
false
"""Generated configuration.""" from typing import NamedTuple, List from buildscripts.util.fileops import write_file_to_dir class GeneratedFile(NamedTuple): """ Generated configuration file. file_name: Name of generated configuration. content: Content of generated configuration. """ file_nam...
UTF-8
Python
false
false
1,118
py
11,721
generated_config.py
10,723
0.659213
0.659213
0
43
25
83
mr-wafi/personal-portfolio-django3
4,922,032,565,211
1cfd13ad39a01daf9f128a48c528a8b7492e6059
c329fc500015c550aca6f5bbc7507e9c44b88e1d
/portfolio/models.py
86dd70d10926615baaada62ff7a1608de5522aae
[]
no_license
https://github.com/mr-wafi/personal-portfolio-django3
dc7c84696dc4224e88669c3ddf72daaa5e687abe
67727bd81b6a986d3a776071e26ce6fba3b2f582
refs/heads/master
2022-05-28T05:22:31.971075
2020-05-02T06:42:08
2020-05-02T06:42:08
260,629,641
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models class Project(models.Model): title = models.CharField(max_length=100) description = models.CharField(max_length=250) image = models.ImageField(upload_to='portfolio/images') urls = models.URLField(blank=True) #this the place where we can define details for our databse table ...
UTF-8
Python
false
false
869
py
4
models.py
4
0.752589
0.745685
0
17
50.117647
123
pjhampton/py-global-testing
14,130,442,442,649
e3313f80e6f53c6c053a192e30d9e2d2053e20bd
f51f6921861c118cf049f56fe0dd8f39ba4ce1ce
/tools/tool1/toolone.py
d113bddcf56046e46a8fece7060223f2d6900aa6
[]
no_license
https://github.com/pjhampton/py-global-testing
077e448d434daa1f18e19f53b130388a26648203
c088ae8441919e27584b1036053ca045d4c59ef3
refs/heads/master
2022-12-09T04:20:13.766458
2020-08-26T14:06:51
2020-08-26T14:06:51
290,489,028
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def print_usage(): return "I'm tool one!"
UTF-8
Python
false
false
47
py
12
toolone.py
11
0.595745
0.595745
0
2
22
26
CarsonSlovoka/image-rename
19,189,913,895,062
37c19498feb9c8144a012a88aeb193a4ba4b9e29
762a58692694c44eaa6070951fb9fb2b00f6e748
/image_rename/template/plugins/mspaint.py
cc7e07edee1c98a7dd97a4d2c253ef0c00be297c
[]
no_license
https://github.com/CarsonSlovoka/image-rename
90bbf9c59ef5256369e0c8aff818eed486b34c2c
6ff64647aa893ee5c23bfd7e8cc452a7a7d32f29
refs/heads/master
2022-12-24T19:00:46.411674
2020-10-11T16:48:19
2020-10-11T16:48:19
296,278,518
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__all__ = ('PLUGIN_MS_PAINT',) from image_rename import template from image_rename.core import ImageRenameApp from pathlib import Path from subprocess import Popen, PIPE, DEVNULL if '__file__' in globals(): PLUGIN_MS_PAINT = Path(__file__) # __file__ not in loader.exec_module register = template.Library(__name_...
UTF-8
Python
false
false
628
py
29
mspaint.py
23
0.686306
0.686306
0
19
32.052632
104
RonierisonMaciel/devops_example
14,491,219,704,855
97485351123cffb683d6053368fca1ff0d8d937a
223d239dcef833bb818bb8b660a0ad3dc523e936
/unit_tests/test_appllication.py
47093c1b07fc99d051b4d2fe25d512df1d379029
[ "MIT" ]
permissive
https://github.com/RonierisonMaciel/devops_example
2419a2a0523e73614add4835731adea2f4d4af32
c9e5a1210c6ec3ab7c102c0880ea643597ab19f9
refs/heads/main
2023-01-05T19:46:15.099232
2020-11-02T20:16:16
2020-11-02T20:16:16
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import random import json from application import app class TestApplication(unittest.TestCase): def setUp(self): self.client = app.test_client() self.headers = {'Content-type': 'application/json'} return super().setUp() ...
UTF-8
Python
false
false
1,533
py
7
test_appllication.py
2
0.536856
0.534247
0
61
23.983607
70
Tanukimong/tanukiNet
8,349,416,430,233
20d4696f525489e3b963b37fea70a311e2b9b147
f952303b30bf0794a4f4fde2d46c132c069e8e19
/draw_lanes_avg.py
d6e846dc2ebb5efbf89e1697af8c0f3fd42d40de
[]
no_license
https://github.com/Tanukimong/tanukiNet
da86c325cb1dfb870070d83fab674169e7019010
c668501903e063bdcaa59b460d82965874d1a07e
refs/heads/master
2020-08-07T08:03:33.687435
2019-10-16T02:52:21
2019-10-16T02:52:21
213,362,925
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
''' draw_lanes.py memory_size input_video output_video ''' import numpy as np import cv2 from PIL.Image import fromarray, BILINEAR from moviepy.editor import VideoFileClip from IPython.display import HTML from keras.models import model_from_json import sys import warnings warnings.filterwarnings(action='ignore') # 귀찮...
UTF-8
Python
false
false
3,437
py
18
draw_lanes_avg.py
10
0.657526
0.630999
0
104
31.259615
83
pet-pal-project/petpal
7,816,840,508,770
a90311511a9a830a5475a8f0055325cbb36a2a85
276857b3a73d8ef2a6bbc10ade28f52cc8ed3baf
/core/migrations/0007_auto_20190730_1614.py
c5c63192d9455d40891de765c444cd58a1b862fb
[]
no_license
https://github.com/pet-pal-project/petpal
4710e2bee433aaecafae7c908bf946d07b7b6aff
40698e1e26f0913362912f5e958892e57d845433
refs/heads/master
2022-12-12T10:56:05.977394
2019-08-13T20:33:08
2019-08-13T20:33:08
199,071,739
0
0
null
false
2022-12-08T06:00:18
2019-07-26T19:45:33
2019-08-13T20:33:15
2022-12-08T06:00:17
11,964
0
0
2
Python
false
false
# Generated by Django 2.2.3 on 2019-07-30 20:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0006_auto_20190730_1309'), ] operations = [ migrations.RenameField( model_name='pet', old_name='about_me', ...
UTF-8
Python
false
false
1,286
py
35
0007_auto_20190730_1614.py
18
0.506221
0.478227
0
48
25.791667
63
kuznesashka/Wave_prior_inverse
4,578,435,170,108
68f1b1db423da5eb81c8bd8ec836dae6f8b3a5ed
cfb653a29cccd0fe100c9562b80b6af7a3ff607c
/venv/lib/python3.8/site-packages/pyface/data_view/data_models/tests/test_row_table_data_model.py
4ae44c09b5f2264abddda482d28c52017cb20ab3
[ "BSD-3-Clause" ]
permissive
https://github.com/kuznesashka/Wave_prior_inverse
d12155ee4be7dd0b2bae6ccfb7f5e5cf37f33a9f
0b1b934ba4beb5105ea3baa9a25407400c3ccc71
refs/heads/master
2021-12-26T04:02:37.525285
2021-12-15T10:10:36
2021-12-15T10:10:36
201,934,126
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# (C) Copyright 2005-2021 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in LICENSE.txt and may be redistributed only under # the conditions described in the aforementioned license. The license # is also available online at...
UTF-8
Python
false
false
16,348
py
809
test_row_table_data_model.py
792
0.509237
0.497247
0
429
37.107226
86
hugobou/routeplanner
14,886,356,671,797
0c1050e86e1053880993dbc430aeef19732e5e86
d17c598fbbeba3cec36021b13bbf857733c2affc
/test/test_features.py
095ef5b8437d22fe98bf38a544d993d56af59c28
[]
no_license
https://github.com/hugobou/routeplanner
34eca1f8e1a65697479b9fc55423417951d2c2d5
607d0361514e5a463ae6e4371399003ee382cd25
refs/heads/main
2023-08-11T07:06:20.820583
2021-10-02T09:08:07
2021-10-02T09:08:07
378,705,177
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../src'))) import unittest import numpy as np import graphcreator as gc from model import features as feat from model.features import NUM_FEATURES, FEATURE_LENGTH class FeaturesTest(unittest.TestCase): def test_enco...
UTF-8
Python
false
false
1,352
py
48
test_features.py
28
0.684172
0.652367
0
32
41.21875
119
lTakezo/dsid_ep
14,559,939,181,556
7c1f494b816ab9fe0bd91a47ed42e060f39f3d40
e2b372b39a10d4ec0b87d0e73072048fff176209
/server.py
f82e8c8a6874998fce1775747b9aeccb6f33087e
[]
no_license
https://github.com/lTakezo/dsid_ep
56964fb1d249678b3249a942363cc663c21240e6
96606432758953ff1ca49fd6b9decb573126c8e1
refs/heads/master
2022-11-13T15:41:57.325500
2020-07-05T15:27:33
2020-07-05T15:27:33
277,324,645
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask, redirect, url_for, render_template, request, jsonify, session import subprocess, json from flask_mysqldb import MySQL import MySQLdb.cursors import re import apicaller app = Flask(__name__) app.secret_key = 'fts' app.config['MYSQL_HOST'] = '127.0.0.1' app.config['MYSQL_USER'] = 'root' app.c...
UTF-8
Python
false
false
10,288
py
6
server.py
4
0.551342
0.549592
0
255
39.333333
144
cloudshare/cloudshare-py-sdk
2,147,483,685,990
f882612a42051d160e2bdb16f405c146e3a50085
9090e39ba483a8d07b1546afe34e09d7e98c065e
/cloudshare/__init__.py
96ae6f100fb39055509927f78b8e6760d61dfabd
[ "Apache-2.0" ]
permissive
https://github.com/cloudshare/cloudshare-py-sdk
6589261a17cf5c1ff6cf9e66aa0020605876af5c
43f66143b80c84fab12271002bfb7cfd11e9a812
refs/heads/master
2023-05-24T22:25:42.595665
2023-01-08T09:24:31
2023-01-08T09:24:31
77,533,868
3
1
NOASSERTION
false
2023-05-22T20:46:48
2016-12-28T13:13:01
2022-09-16T21:53:23
2023-05-22T20:46:44
771
3
1
1
Python
false
false
# Copyright 2015 CloudShare Inc. # 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 applicable law or agreed to in ...
UTF-8
Python
false
false
1,142
py
20
__init__.py
16
0.595447
0.588441
0
28
38.785714
82
vinee2626/myMadlib_first
4,681,514,378,646
0cedd62dacb9e943b6dd266485abe6bf1eb26fa7
c7448026a0f4e72126855dc5465f9412127a5ae6
/Guess.py
a196b0b0d3a2b71e85010b76f325b466daef3dcd
[]
no_license
https://github.com/vinee2626/myMadlib_first
b48b41e0c66965a50ec19536db6244b424cdad4d
0cb5dceae2dc9cb02589177f90fb0dbde8910075
refs/heads/main
2023-04-22T22:39:37.998368
2021-05-15T11:52:06
2021-05-15T11:52:06
365,505,866
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random # create a var to store the random no. x = random.randint(1, 10) # set t =5 for 5 trials t = 5 # inititate a while loop until x =0 and a and y are not equal while(t > 0): y = int(input("Guess a no.: ")) t -= 1 if (y == x): print("YOU WON") break else: ...
UTF-8
Python
false
false
661
py
8
Guess.py
8
0.582451
0.567322
0
24
25.541667
88
Fizcus/ebmeta
1,717,986,933,794
074a98c7c2adf78cdd741496055c2e1ca71ed718
c73f5e3bf225c1b0463abfc2487005ce3bc0fd56
/ebmeta/actions/edit.py
38d79adfda0b3ad0e050c50ad0403f2811b17828
[ "BSD-3-Clause", "ISC" ]
permissive
https://github.com/Fizcus/ebmeta
8212bc96450a834a0acf4941b8ddfde3adffce3e
2279ddd14235ea31b27f0eaa7e9bb26cb43d4133
refs/heads/master
2021-01-15T21:09:40.972710
2012-03-13T06:50:07
2012-03-13T06:50:07
7,752,675
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Edit metadata using zenity.""" from BeautifulSoup import BeautifulStoneSoup, Tag import logging import yaml from zipfile import ZipFile import ebmeta from ebmeta import shell from ebmeta import template from ebmeta.actions import backup from ebmeta.ebook import ebook_factory from ebmeta.yamlwriter import opf_to_yam...
UTF-8
Python
false
false
6,001
py
24
edit.py
18
0.542243
0.537744
0
189
30.751323
95
YariKartoshe4ka/Olympic
1,967,095,031,421
e036b32b1c73a6adaf5e56a845d8ccf7bf86be49
5b8ed38b9f840fc3ea2ffa86c1c0519a7ff5e665
/Python/[0001] - [0050]/[0012] Дачники.py
e1bcf9f3022d54ce2b2d72b26b8b554f3c57c5e0
[]
no_license
https://github.com/YariKartoshe4ka/Olympic
53f49f79fb124f34ea2cd8bd1f5449ef9aad4e97
ea70087286b16622010e997461c02a66b2de754c
refs/heads/master
2021-01-05T05:48:55.254665
2020-09-04T19:16:56
2020-09-04T19:16:56
240,903,298
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n = int(input()) d = [] rez = 0 for i in range(n): d.append(input().split(' ')) for i in range(len(d)): for j in range(len(d[i])): d[i][j] = int(d[i][j]) def product(Px, Py, Ax, Ay, Bx, By): return (Bx - Ax) * (Py - Ay) - (By - Ay) * (Px - Ax) for i in d: if i[2] == i[3] == i[4] == i[5] == i...
UTF-8
Python
false
false
762
py
55
[0012] Дачники.py
53
0.412073
0.335958
0
29
25.275862
94
jonathantuck/ProjectEuler
4,836,133,188,693
92c0a0890217da6d8265a692ba03319166f2a969
327cad6d50fc1d7d9e7952aba5d224a83e6bf5cd
/pe10.py
1397b6c22aa50c2547e8459bc13a2ea155541ba4
[]
no_license
https://github.com/jonathantuck/ProjectEuler
443356749977a5087482396d79af6a029ac28a17
14a06ae9db719e4f35c6fd22cf24e33bb59d0bd9
refs/heads/master
2020-12-24T14:35:45.977315
2013-07-16T21:15:17
2013-07-16T21:15:23
11,404,115
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import math import time def isPrime(x): for i in range(2,int(math.sqrt(x))+1): if x%i == 0: return False return True start = time.time() sum = 0 bound = 2 * (10**6) for i in range(2,bound): print i if isPrime(i): sum += i print sum print time.time()-start
UTF-8
Python
false
false
305
py
28
pe10.py
27
0.560656
0.531148
0
21
13.52381
42
chandanmaruthi/HTMServer_NeuralNetwork
16,071,767,636,883
a99e888603757ace355e0e358f83b14dc1dad0c7
2908e616e6235a0d0370591ae65930b73f40751c
/trainModelWithFile.py
3465dfe2ac5c2179c55195b3f479fbd4170cdb63
[]
no_license
https://github.com/chandanmaruthi/HTMServer_NeuralNetwork
6cb4df9350591a71a4c9b83149f4fcc3cd378e02
a3c6e5478c006c0ef1b0a731d93a08749a8ea587
refs/heads/master
2020-12-25T06:03:28.479806
2016-07-24T04:46:10
2016-07-24T04:46:10
64,048,953
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from walnutclient import * #objWalnutClient= walnutclient(5001,'localhost',selProject.ModelMap.RawXML) strDataFolder = "/home/chandan/chandan/code/brainscience/" strRootFolder = "/home/chandan/chandan/code/brainscience/" strAppFolder = "curious/" strModelFolder = 'curiousWorkbench/test/models/' strModelFile = 'model...
UTF-8
Python
false
false
740
py
4
trainModelWithFile.py
3
0.8
0.782432
0
21
34.238095
92
jackiehope/PythonBasis
8,057,358,680,820
200183a5acc5191a9bfacefcace2b4782fe13c42
74c4cadc040c466857b82101b5ce76c0f05c65e8
/hexadecimal_conversion.py
3e7eff51fc81ec41b484448ecae2f7f99ef9f2ba
[]
no_license
https://github.com/jackiehope/PythonBasis
9c941d63b46ae3f23151c7c323a4df4759b9824e
2bfae0d6fe17c1c84a90a07d13d0b91dcfbfadb6
refs/heads/master
2021-01-20T18:52:39.439164
2016-08-04T11:34:22
2016-08-04T11:34:22
61,803,582
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding:utf-8 #十进制到十六进制 num1 = int(raw_input("输入一个十进制数:")) print hex(num1) #十六进制到十进制 num2 = raw_input("输入一个十六进制数:") print int(num2, 16) #十进制到字符串 num3 = int(raw_input("输入一个数")) print repr(str(num3))
UTF-8
Python
false
false
292
py
6
hexadecimal_conversion.py
6
0.695
0.65
0
13
14.461538
34
kunweiTAN/techgym_ai
566,935,703,638
bfc3b7cb205460057f93c0fcc69b088775134d2f
90f545733f076747bad979faa3a8cf23867f7a3a
/i3KI.py
ba7f474993adb3e8dc24a836e6a5998f3d21e0e7
[]
no_license
https://github.com/kunweiTAN/techgym_ai
f85dc52ce6e75f4c08213d5796171908beb9a69e
051274bcc789a563c46ed5661301535e76ae1e18
refs/heads/master
2023-08-17T05:15:18.758183
2021-09-21T11:57:07
2021-09-21T11:57:07
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Techgym-6-1-Q import numpy as np import pandas as pd import matplotlib.pyplot as plt %matplotlib inline #桁の精度を指定 %precision 3 #表示 df = pd.read_csv('./scores400.csv') display(df.head()) #先頭10個のarray scores = print("先頭10個") #復元抽出:何度か実行してみる num = 5 num_array = [1, 2, 3, 4, 5] print("復元抽出") #非...
UTF-8
Python
false
false
651
py
517
i3KI.py
412
0.626866
0.575693
0
39
9.923077
35
PattMayne/weird_canada
15,058,155,391,275
9579234f651f0b8c3ab7c029614b7a95379f7391
91e5b3ec707a9e26f24a928ea6bbd2bcb4400555
/blog/forms.py
fcc8394c5295c43e9657e1e1e5281a2f573085e5
[]
no_license
https://github.com/PattMayne/weird_canada
473ba1bbcb0372a765d12fe3d319d66c6bee47b8
646c58596fc30d95907a74f23b3ea1c02d16a226
refs/heads/master
2021-01-10T16:03:01.060024
2015-12-06T19:34:10
2015-12-06T19:34:10
47,510,209
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import datetime from django import forms from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from django.forms import ModelForm, TextInput, Select, Textarea, FileInput, NumberInput, CheckboxInput, DateField, DateInput, DateTimeInput, SelectMultiple from indie_db.models ...
UTF-8
Python
false
false
5,854
py
51
forms.py
12
0.624957
0.624957
0
132
43.318182
155
GRSEB9S/deepSVDD
13,228,499,289,827
b5139d4b2f139e39d21a82108bccf9b65788e3b8
dadbed9984cdc9d9a1e84a3c9929ac4c9a58c370
/src/test_OCSVM.py
64363077556e8af89b885c402e4567eb2427ca0e
[ "MIT" ]
permissive
https://github.com/GRSEB9S/deepSVDD
74efac2d3c997aff07c85d30587883ef55fd1030
caf44c93914414ca26525fec69b780e920b9d061
refs/heads/master
2021-07-08T21:25:50.738316
2017-10-06T08:30:49
2017-10-06T08:30:49
109,243,104
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from svm import SVM from config import Configuration as Cfg from utils.log import log_exp_config, log_SVM, log_AD_results from utils.visualization.images_plot import plot_outliers, plot_normals # dataset dataset = "mnist" # "mnist", "toyseq", "normal" Cfg.seed = 0 Cfg.out_frac = 0 Cfg.ad_experiment = True # "mnist"...
UTF-8
Python
false
false
1,537
py
58
test_OCSVM.py
56
0.705921
0.683149
0
56
26.446429
72
rubenfonseca/titanium_mobile
7,825,430,439,872
8353cd7d4a201a93e78b298c41cadfbd6d198308
a791802f1b8aeb9df4acd45b3e77d8c2ce7079d4
/support/android/jspacker.py
84215fbcc92adf74f30c1c4045ba2eed61042a84
[ "Apache-2.0" ]
permissive
https://github.com/rubenfonseca/titanium_mobile
ae762da2516cf05f64321b3578f7332e71cb256b
aabda44482a5ce597dcdcd45a8326e4eea14e8e4
refs/heads/master
2020-12-25T00:03:58.863404
2012-02-22T03:00:52
2012-02-22T03:00:52
2,652,535
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import sys, string, os from base64 import b64encode JAVA_TEMPLATE = """\ package ${package_name}; import java.util.Collections; import java.util.Map; import java.util.HashMap; import android.util.Base64; import org.appcelerator.kroll.util.KrollAssetHelper; public class AssetCryptImpl implement...
UTF-8
Python
false
false
3,287
py
304
jspacker.py
169
0.677213
0.672954
0
124
25.5
77
thiagocosta-dev/Atividades-Python-CursoEmVideo
18,992,345,413,288
a835321a24c42be0d85c03a5d02b42ac85e16c82
d681e088b554a8697d5d3231173a9c800760780f
/ex043.py
255c83418724f2bc088f9d6715df537aa5fe59f3
[]
no_license
https://github.com/thiagocosta-dev/Atividades-Python-CursoEmVideo
0870ef5b0d97dd8d9bc4fe30def66bb8b05c2abf
4dfeab066ecbe8eb5789965d878db58487e3fdbe
refs/heads/main
2023-04-15T00:00:15.225495
2021-04-10T00:59:07
2021-04-10T00:59:07
353,154,646
0
0
null
false
2021-03-31T13:34:01
2021-03-30T22:11:57
2021-03-30T22:41:23
2021-03-31T13:34:01
4
1
0
1
Python
false
false
''' DESAFIO 043 Desenvolva uma lógica que leia o peso e a altura de uma pessoa, calcule seu IMC e mostre seu status, de acordo com tabela abaixo. - Abaixo de 18.5: abaixo do peso - 30 até 40: obesidade - Entre 18.5 e 25: peso ideal - acima de 40: obersidade mórbida - 25 até 30: sobrepeso ''' altura = float(i...
UTF-8
Python
false
false
709
py
41
ex043.py
40
0.641026
0.58547
0
24
28.166667
69
liruijia/learn
10,187,662,465,541
4f14fb85d33061db07b91870389b76fc95dc9734
e15501f5e90e1abbff926593950ade627244ff37
/SZ_CODE/hot/顺时针打印矩阵.py
73825d598f42bea971dbad2455990a7b6bb03685
[]
no_license
https://github.com/liruijia/learn
e93edd771b97d2ae2f2f90dfae39755138691ba7
666fc85fef2b75e77e1d83397c8b3cb70481ae1b
refs/heads/master
2022-05-29T05:45:25.093067
2022-05-13T09:29:32
2022-05-13T09:29:32
207,337,291
0
0
null
false
2019-11-10T07:31:55
2019-09-09T15:06:28
2019-11-10T07:29:37
2019-11-10T07:31:34
30
0
0
1
Python
false
false
#!/usr/bin/env python3 # -*- coding = utf-8 -*- ''' @Author : RuiJia Li @Time : 2022/4/9 12:25 @File : 顺时针打印矩阵 @Desc : ''' """ 按逆时针去不断pop-matrix的元素 """ def printMatrix(matrix): res = [] while matrix : res += matrix.pop(0) if matrix and matrix[0]: for row in matrix: ...
UTF-8
Python
false
false
729
py
123
顺时针打印矩阵.py
110
0.482014
0.41295
0
32
20.75
47
Soyuzbek/Ume
395,137,002,032
40bd7952e75a3748af6c2180b572a79c2965f268
5d87f034edcd71f41a4fdbeff08acd1593dd4870
/main/models.py
5125e8fe83a60572f013098dd10cffb3752931bb
[]
no_license
https://github.com/Soyuzbek/Ume
1b88b41343532a4134d81b8338784ff952a4f6b9
8d6ea1dda52a277d3de891386764377aa059139e
refs/heads/master
2022-12-10T02:00:40.937511
2021-06-08T23:27:12
2021-06-08T23:27:12
186,343,776
1
1
null
false
2022-12-08T05:07:06
2019-05-13T04:12:11
2021-06-08T23:27:15
2022-12-08T05:07:06
23,231
0
1
4
JavaScript
false
false
from ckeditor.fields import RichTextField from ckeditor_uploader.fields import RichTextUploadingField from django.contrib.auth.models import AbstractUser from django.db import models from django.urls import reverse from django.utils.translation import ugettext_lazy as _ class Post(models.Model): name = models.Cha...
UTF-8
Python
false
false
3,872
py
54
models.py
38
0.572314
0.510589
0
114
32.964912
113
rubendegroote/CRISTALCLEAR
12,386,685,728,184
90aac66c7ab6ae7fa764b3e6b04a2541d34d911b
585be7cf89336bc0a0e30a6983b1085f5bf1a7e0
/Code/core/scanner.py
cc87cf6a5e659d02fc12c37cf8c4030786224744
[]
no_license
https://github.com/rubendegroote/CRISTALCLEAR
951d76232604da2cab96b94ba98812394e97352c
3748694095753b33e42dce4704a542ef28abf549
refs/heads/master
2020-05-17T22:19:42.856068
2014-12-01T12:52:36
2014-12-01T12:52:36
25,816,808
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from daq.acquire import acquire, fastAcquire, clearcard, acquireRILIS, acquireCW from daq.acquireDummy import acquireDummy, laserDummy from multiprocessing import Process, Queue, Event, Value import numpy as np import os import time import subprocess import threading from PyQt4 import QtCore,QtGui class Scanner(QtCo...
UTF-8
Python
false
false
15,643
py
92
scanner.py
67
0.539602
0.532379
0
419
36.334129
173
psomani7/CS685-Data_Mining
4,861,902,979,971
895d3934e04f5af3f1a02abe624881c6117dd658
cd5dc48e10b3233334603e5e238ecba072441c71
/Assignment 1/src/q2.py
010aeac9dd58555403b0d8e432e5ac182fdfc423
[]
no_license
https://github.com/psomani7/CS685-Data_Mining
9db10b23e9e1bc0d19a9b549a6467b02bf028a04
0a9810450d9257ed01b7e953172c4d9628506486
refs/heads/main
2023-09-05T09:02:00.162376
2021-11-26T10:19:14
2021-11-26T10:19:14
505,808,954
1
0
null
true
2022-06-21T11:12:53
2022-06-21T11:12:53
2021-11-26T10:19:17
2021-11-26T10:19:14
21,403
0
0
0
null
false
false
import numpy as np import pandas as pd import json f = open('./neighbor-districts-modified.json') data = json.load(f) district_list = [] edge_list = [] for dist in data: district_list.append(dist) for neighbour in data[dist]: if(neighbour not in district_list): edge_list.append([dist, neig...
UTF-8
Python
false
false
437
py
54
q2.py
37
0.688787
0.688787
0
17
24.764706
71
nkanaev/solutions
11,278,584,123,583
53869bbdfb61efd92e02076767596c425ef6354b
9f81ebd864660711696570d1e4c3d76ba97be02f
/adventofcode/2017/15.py
66185f616c543b0ee92d34a91de1ef5a65d4368c
[]
no_license
https://github.com/nkanaev/solutions
93f83a2fce425e42dc525f8398e1164b4ac50d99
b7c977a8e743ff932d3babd34d39de3bb60a64df
refs/heads/master
2021-01-16T22:11:17.548527
2020-07-16T09:38:36
2020-07-16T09:38:36
68,294,791
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def count(astate, bstate): c = 0 mask = (1 << 16) - 1 for _ in range(40000000): astate = astate * 16807 % 2147483647 bstate = bstate * 48271 % 2147483647 if (astate & mask) == (bstate & mask): c += 1 return c def test(): assert count(65, 8921) == 588 if __name...
UTF-8
Python
false
false
365
py
117
15.py
105
0.509589
0.347945
0
17
20.470588
46
p13kara33/Data-Analysis-on-Census-Data
2,525,440,775,715
4b29a773e651bca6f4e7e36860892c8d01d02533
29f61f4a2b58065e100898498cdc2a955f2b7e68
/Descriptive Analytics/Categorical Data/freq_tables.py
32df64b131bd3eb70488381fd8be44e46d255d27
[]
no_license
https://github.com/p13kara33/Data-Analysis-on-Census-Data
bc269cff6aca49e79bdbcf420eceae29e5a9ecb4
bfd98facab7c19f06d6545399fb9d722c6403906
refs/heads/main
2023-02-24T07:09:27.120490
2021-01-30T15:12:23
2021-01-30T15:12:23
332,567,739
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import docx import pandas as pd regions = {'E12000001': 'North East', 'E12000002': 'North West', 'E12000003': 'Yorkshire and the Humber', 'E12000004': 'East Midlands', 'E12000005': 'West Midlands', 'E12000009': 'South West', 'E12000006': 'East of England', 'E12000008': 'South Eas...
UTF-8
Python
false
false
5,515
py
26
freq_tables.py
4
0.560109
0.510789
0
128
41.085938
89
yanzay/pagankolo
16,011,638,122,071
1e563125c219e22c58b84ac13a42571228f2e1c4
91f1183df4ec77f8cccc0535b427f7fc91676788
/models.py
5bade2f1ca0da7f3298cd47424d6fdef69f2ee56
[]
no_license
https://github.com/yanzay/pagankolo
3da2221e972e09ba16ff6806d69a00fc353d8792
c9becaadb551c6a1d7114ac9344e9c526facca5e
refs/heads/master
2020-05-03T12:56:36.596558
2012-04-07T23:54:35
2012-04-07T23:54:35
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 from google.appengine.ext import db class Profile(db.Model): user = db.UserProperty(required=True, auto_current_user_add=True) name = db.StringProperty(required=True) avatar = db.BlobProperty() karma = db.IntegerProperty(default=0) favorites = db.ListProperty(db.Key) class...
UTF-8
Python
false
false
1,235
py
14
models.py
3
0.709312
0.706883
0
32
36.65625
70
by-student-2017/DFTBaby-0.1.0-31Jul2019
5,652,176,964,270
9bd5bc40c283942cee6fac8d023f3b9249d5eb5f
aac5982c8dcf26221419086fb90c399b9f4324ef
/DFTB/DensityFitting.py
14f45c93f633d9f9d9a7761c2b6096cfbe2bc581
[]
no_license
https://github.com/by-student-2017/DFTBaby-0.1.0-31Jul2019
99184d3fa2976d4e02f7f1bddee97e56526d9365
92cb73f1a6472f88588986561349d7f2ad1b1c15
refs/heads/master
2022-12-12T00:12:50.449505
2020-09-01T21:05:59
2020-09-01T21:05:59
290,116,049
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" """ import numpy as np import numpy.linalg as la from DFTB.BasisSets import AtomicBasisSet, AuxiliaryBasisSet from DFTB import AtomicData from DFTB import XYZ class DensityFitting: def __init__(self, atomlist, hubbard_U): """ Parameters: =========== bfs: list of numer...
UTF-8
Python
false
false
5,088
py
348
DensityFitting.py
342
0.482115
0.468553
0
150
32.886667
90
dukebw/rl-study-group-supreme-octo-memory
1,030,792,161,861
7bb37ebad558e056038b3ca061d7888135881fc9
7cb99a8393e641f70f9a70a5f33ac85c1198cee0
/week2/hw1/behaviour_cloning.py
386c50dde181317b465aeeb94464103fde6a7d4e
[]
no_license
https://github.com/dukebw/rl-study-group-supreme-octo-memory
299a23095ba3ca502e2fc812474c6dd06efab54a
0f0dbb5280b744fafb13d913fc4834b5ca1a194b
refs/heads/master
2021-09-06T04:56:11.240081
2017-12-20T16:18:23
2017-12-20T16:18:23
103,286,800
0
1
null
false
2017-12-20T16:18:24
2017-09-12T15:15:21
2017-10-19T12:23:30
2017-12-20T16:18:24
38
0
1
0
C
false
null
"""Deep RL Fall 2017 HW1 Section 2.""" import argparse import math import pickle import random import sys import gym import load_policy import matplotlib.pyplot as plt import numpy as np import tensorflow as tf import torch import torch.nn.utils.rnn as rnn_utils class GRULinear(torch.nn.Module): def __init__(sel...
UTF-8
Python
false
false
11,020
py
10
behaviour_cloning.py
2
0.57677
0.569147
0
329
32.495441
79
BigAngryDinosaur/kattispy
4,604,204,968,495
59478432472423f46f1b741b116281d420da945b
6aafd92070272371cec89345391517c25acf6441
/dominoes2.py
e395af8eed6ad83cff00c3af0b06169ce44d8ec1
[]
no_license
https://github.com/BigAngryDinosaur/kattispy
747054bc4d7bcaf6c31b2a3964307fe732eeee99
130fe52061f3a738f669eb0bc90738a8da81344c
refs/heads/master
2023-02-23T00:12:23.028851
2021-01-14T15:23:44
2021-01-14T15:23:44
329,654,286
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import collections read = lambda x: list(map(x, sys.stdin.readline().split())) def main(): num_test_cases = read(int)[0] for _ in range(num_test_cases): n, m, l = read(int) graph = { s:[] for s in range(1, n+1) } for _ in range(m): s, d = read(int) g...
UTF-8
Python
false
false
815
py
18
dominoes2.py
18
0.451534
0.442945
0
35
22.285714
59
orange-eng/internship
13,099,650,253,022
9e49ec31b57e2b4efe29b75f5b401fbfb2b9bfd5
f0adf5afb93b7f0a67802e876a02e898cd92a172
/Baidu/learning_to_simulate/learning_to_simulate/connectivity_utils.py
5bd781355d3d3dcaf9df50dc34f4b9d9668e0d78
[ "Apache-2.0" ]
permissive
https://github.com/orange-eng/internship
9a2f746b3d50673038481392100d375f6eec82d3
c8c566df453d3a4bdf692338f74916ae15792fa1
refs/heads/main
2023-07-18T11:46:36.659858
2021-08-31T09:39:10
2021-08-31T09:39:10
358,230,295
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Lint as: python3 # pylint: disable=g-bad-file-header # Copyright 2020 DeepMind Technologies Limited. 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.a...
UTF-8
Python
false
false
4,351
py
172
connectivity_utils.py
135
0.70334
0.6968
0
121
34.371901
80
g4lk/VisionArtificial
15,144,054,725,134
acb4fe84b82f192e38f9752731279015729d28fb
7c34c786e3e52f17972fd729b97f84fd732af5ab
/prueba.py
de20d20405f8669b5567b62cd78236a7d057f258
[]
no_license
https://github.com/g4lk/VisionArtificial
8b141630eb8178e2414b33bee56fa8aebc6324be
7dad7bf1449c1dc39d4c1dd51cd5dffffc134ee6
refs/heads/master
2020-04-28T22:59:13.609560
2019-04-09T21:11:03
2019-04-09T21:11:03
175,637,566
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Write Python code here # import the necessary packages import cv2 as cv import os,sys import numpy as np def mejorContraste(img): #-----Converting image to LAB Color model----------------------------------- lab= cv.cvtColor(img, cv.COLOR_BGR2LAB) #-----Splitting the LAB image to different channels--...
UTF-8
Python
false
false
2,617
py
6
prueba.py
3
0.596485
0.549484
0
68
37.485294
129
Glyochi/Python_FacialReg
6,055,903,917,946
17e1089faa432495e1cfdea5d0832aedd66b5696
304377380f29ee6ee423445dd77e8d57075cf6b0
/FacialDetection/ImageManager.py
354eb670b8b7886961a5ee9d4bcd7fdcd0a61a75
[]
no_license
https://github.com/Glyochi/Python_FacialReg
5de80d52e6fe1f38f323607ea88a9bfcadff2cf4
ad151ec69d03e37851b49b8f33828ccad5c9700b
refs/heads/main
2023-06-29T01:46:59.848651
2021-08-07T23:39:33
2021-08-07T23:39:33
382,724,537
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 as cv from Point import Point from DetectedArea import DetectedArea from DetectedArea import DetectedFace from helperFunctions import * import numpy as np """ At this point in development, what I need the ImageManager to do is store the image, perform eyes detection on the image in 0, 90, 180, and 27...
UTF-8
Python
false
false
30,527
py
29
ImageManager.py
28
0.649916
0.637043
0
579
51.671848
211
Hironobu-Kawaguchi/atcoder
12,000,138,672,810
34da6b9ecbae5385119036eccae183f540e605b7
503d2f8f5f5f547acb82f7299d86886691966ca5
/atcoder/abc078_b.py
2b5cae2475d6126894e9953816c4f454b1adb8cb
[]
no_license
https://github.com/Hironobu-Kawaguchi/atcoder
3fcb649cb920dd837a1ced6713bbb939ecc090a9
df4b55cc7d557bf61607ffde8bda8655cf129017
refs/heads/master
2023-08-21T14:13:13.856604
2023-08-12T14:53:03
2023-08-12T14:53:03
197,216,790
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# https://atcoder.jp/contests/abc078/tasks/abc078_b X, Y, Z = map(int, input().split()) ans = (X - Z) // (Y + Z) print(ans)
UTF-8
Python
false
false
128
py
2,068
abc078_b.py
1,658
0.578125
0.53125
0
5
24
51
terrence85561/leetcode
11,433,202,979,844
509b1c5732198808c2c13ccfa6d3bc274a8af026
0a6b735ad72612a4f98993ed6ac9c4ac24f2ef11
/python/Search/LC332_findItineryBacktracking.py
28727801bba22d69b75a45ef9e6c17eaf7a7beba
[]
no_license
https://github.com/terrence85561/leetcode
774950b76894b80a6df542ed7a7f82b927f0a5fe
68f3ea79b41df1fc5195f07af1b98092f8dea44a
refs/heads/master
2022-02-11T16:14:08.158961
2022-02-02T10:14:01
2022-02-02T10:27:15
138,051,491
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def findItineraryHierholzerAlgorithm(self, tickets: List[List[str]]) -> List[str]: graph = {} for ticket in tickets: # O(n) src = ticket[0] des = ticket[1] if src in graph: graph[src].append(des) else: ...
UTF-8
Python
false
false
2,083
py
193
LC332_findItineryBacktracking.py
192
0.422468
0.419587
0
77
26.051948
86
ahmedsaalah/Mailer_rep
9,740,985,833,100
02d529611eb93c88a82c7e39c0c50d58312f0247
23c3e62a4f44c8257eaaaa176502f450cd08a5f5
/mail.py
1678f0d3104720715436d6979448cf5c459196f5
[]
no_license
https://github.com/ahmedsaalah/Mailer_rep
a9180fbf585476e40555b7bb29f0c54ceb920a2b
2879454f40dc2860ee9f01ed654aeafbc064bc4b
refs/heads/master
2021-03-27T06:23:33.934085
2017-12-09T16:09:31
2017-12-09T16:09:31
105,224,376
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask from flask_mail import Mail, Message from flask import Flask, render_template, request, redirect, jsonify, url_for, flash import hashlib from usermodel import usermodel from flask import session as login_session import requests import json app =Flask(__name__) mail=Mail(app) app.secret_key = ...
UTF-8
Python
false
false
4,160
py
7
mail.py
2
0.598317
0.579808
0
205
19.297561
99
ddnimara/KTH_Projects
17,308,718,222,320
f135969f841bff0aab511d2fbf7c7b3dc1653eca
d99c5413d2b8aed6aaa06bd95cc6e568b6ea19c2
/Artificial Neural Networks/DD2437_Artificial_Neural_Network_Lab_3/3_1.py
02c867968766758476301967dd782a26478586fb
[]
no_license
https://github.com/ddnimara/KTH_Projects
661002c1ed579abb0d48b22f98aa1f6ccd637811
79d6448729edce3e7a8b830459a6e5d22730f51c
refs/heads/master
2020-09-15T15:56:26.362672
2020-07-18T11:26:03
2020-07-18T11:26:03
223,495,272
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import load_data as ld import functions as fun training = ld.get_data('Training') testing = ld.get_data('Testing') biz_test = ld.get_data('Dissimilar') weights = fun.fit(training) for i in range(testing.shape[0]): print('initial', testing[i]) test_output = fun.predict(wei...
UTF-8
Python
false
false
746
py
36
3_1.py
24
0.66622
0.652815
0
32
21.375
66
zhyordanova/Python-Basics
128,849,057,249
ad5004e65404286d3ed55c5803ae756ed161fe96
cd329424035732bf9041c9dfde1f277f8f4b09d6
/01-First-Steps-in-Programming/Exercise/08_fish_tank.py
4627fafcb6be107989a2945bbbfc10716e56b9d0
[]
no_license
https://github.com/zhyordanova/Python-Basics
3e90e5bd8d78cdd7b36bfdb348c6b346813293b1
d6b5e4737e67b26383a6b67606f9dc671f50c355
refs/heads/main
2023-03-20T06:15:55.358694
2021-03-15T07:52:31
2021-03-15T07:52:31
339,508,784
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Един литър вода се равнява на един кубичен дециметър/ 1л=1 дм3/. length = int(input()) width = int(input()) height = int(input()) persent_occupied_volume = float(input()) volume_aquarium = length * width * height total_litters = volume_aquarium * 0.001 persent_occupied = persent_occupied_volume * 0.01 litters = to...
UTF-8
Python
false
false
420
py
116
08_fish_tank.py
115
0.72118
0.691689
0
13
27.692308
66
ver0nika4ka/PythonCrashCourse
11,639,361,413,756
9097298c19fa69606a713f339a0b845a7c72d621
304926837d94f37ef33c46b8f3c71ecfac4690e8
/name_cases.py
c0bea0fe87515cea21cdbcf88aa060164c5dcb90
[]
no_license
https://github.com/ver0nika4ka/PythonCrashCourse
1015d207d9da1b0f9efaee3acc502d2757880f33
6bde3b716deb86d022da5cb478c0a95505fe5acc
refs/heads/master
2021-07-12T17:24:16.478133
2021-06-17T03:27:24
2021-06-17T03:27:24
246,993,773
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
variable = 'Victor' print(f"Hello {variable}, would you like to learn some Python today?")
UTF-8
Python
false
false
90
py
126
name_cases.py
112
0.744444
0.744444
0
2
44.5
70