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
sapirshuker/Digital-Humanities-project
2,869,038,190,325
27c4da707273f88d4c5d728ddb8f71d88945da27
869cfc5f1033410147bbca6e606e2ddf7a1506b3
/code/Refine.py
43c943ca7e95ca225586e1605b8fba0e1206a35a
[]
no_license
https://github.com/sapirshuker/Digital-Humanities-project
23986bbc2ecc47a8655f14fcd296e822125d3e3c
1e6138c50d377ccf6d68b0e4156c20cb1f798bf6
refs/heads/main
2023-03-12T05:40:15.487844
2021-03-09T15:14:52
2021-03-09T15:14:52
343,729,676
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 22 14:38:39 2021 @author: sapirshuker """ import urllib, os.path, time, json import urllib.parse as urlparse import urllib.request import requests from refineProject import RefineProject class Refine: def __init__(self, server='http://127.0.0.1:3333' , opt...
UTF-8
Python
false
false
3,205
py
10
Refine.py
5
0.648986
0.640562
0
80
38.0625
112
UWPCE-PythonCert-ClassRepos/Self_Paced-Online
7,456,063,233,743
d068c2186e78ac02374d3ab3ba3884754c0a39a2
d4ea02450749cb8db5d8d557a4c2616308b06a45
/students/Josh_HOff/lesson08/test_circle_class.py
9a9b7068f4f73a4003fcca963cb62e0dc6d4f002
[]
no_license
https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online
75421a5bdd6233379443fc310da866ebfcd049fe
e298b1151dab639659d8dfa56f47bcb43dd3438f
refs/heads/master
2021-06-16T15:41:07.312247
2019-07-17T16:02:47
2019-07-17T16:02:47
115,212,391
13
160
null
false
2019-11-13T16:07:35
2017-12-23T17:52:41
2019-11-13T16:05:43
2019-11-06T00:23:13
19,146
5
145
0
Python
false
false
import io import pytest from circle_class import * def test_radius(): c = Circle(40) assert c.radius == 40 def test_diameter(): c = Circle(80) assert c.diameter == 160 def test_edit_radius(): c = Circle(30) assert c.radius == 30 assert c.diameter == 60 c.radius = 40 ...
UTF-8
Python
false
false
2,125
py
2,428
test_circle_class.py
2,245
0.552941
0.472941
0
115
17.391304
46
filiplindau/Raytracer
3,023,656,981,072
b91abc310ad1a0939f9398759ce68d91371a0118
498c53e897242f40e34e048faffebf4442e15f0e
/src/Raytracer/OpticalElement.py
f46a83afe47fb4377977410453aa0abaadddfe7d
[]
no_license
https://github.com/filiplindau/Raytracer
aabc9a591749277d456cdde11aadd8f0c9f81a84
a1bb0e58cefdacfb4905e78420dd037444ab2137
refs/heads/master
2021-01-10T11:31:28.599484
2020-05-04T20:08:45
2020-05-04T20:08:45
43,961,381
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Created on 9 Oct 2015 @author: Filip Lindau """ import numpy as np import copy import Raytracer.OpticalSurface as os import Raytracer.OpticalMaterial as om import Raytracer.OpticalAperture as oa import Raytracer.Ray as rr import logging air = om.OpticalMaterial('air', [0.0002433468, 2.927321e-5], [0.00420135, ...
UTF-8
Python
false
false
14,253
py
17
OpticalElement.py
15
0.52831
0.493089
0
322
43.254658
116
Gavin-McQuaid/multiples_of_3_and_5
3,040,836,876,375
b937dd5808df6820d0267be443fcd5d37142d399
78008b3e8053fa3dd9f03c3df2ed66333c0ad97b
/program.py
83d93a6bd222a8b4585f81a80c009d9eb3b04f0a
[]
no_license
https://github.com/Gavin-McQuaid/multiples_of_3_and_5
b3d5b442959f8aa1f97735557bada9d8bf4f42db
51147991c1ba1b963835f0908c51d5bab0dfb72d
refs/heads/master
2021-01-18T23:15:41.591271
2016-11-02T20:27:25
2016-11-02T20:27:25
72,669,437
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
i = 1 total = 0 while i < 1000: if i % 3 == 0 and i % 5 == 0: total += i elif i % 3 == 0: total += i elif i % 5 == 0: total += i i += 1 print total
UTF-8
Python
false
false
159
py
1
program.py
1
0.459119
0.36478
0
12
12.25
30
aleksandrawy/first_tests
867,583,425,928
cd12000470370824444751b97b7d324905fde9a6
80ece3e083edf07febf72d9193363fc299e21c5c
/eye_game.py
e3cdb2e3d619e2a7021e5d1d8f4274db59406711
[]
no_license
https://github.com/aleksandrawy/first_tests
213cc0c5a0af2553afcf4fafc734f7e91d9c9b6c
312cf675f4fdf674ac5ddf099622d6ae7780599a
refs/heads/master
2020-12-02T16:17:07.563412
2017-07-07T10:50:55
2017-07-07T10:50:55
96,529,475
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def load_eye_game(driver): driver.get("https://www.igame.com/eye-test/") driver.switch_to.frame(driver.find_element_by_tag_name("iframe")) def element_click(driver): el = driver.find_element_by_class_name("thechosenone") print(el) el.click()
UTF-8
Python
false
false
266
py
3
eye_game.py
3
0.676692
0.676692
0
9
28.333333
69
domfarolino/deep-learning
13,426,067,794,194
d0bfa4ab5f3136dd99d5468d5288f17d316fc854
b9af51231301cb94dd2d47cd2736734ef6ee4906
/Assignment6/DL6G.py
c4053a934b7298c9cf5b568b4307b071ee41d4a9
[]
no_license
https://github.com/domfarolino/deep-learning
d7618c14672be80a4562f2d5c64b27baa0398419
d691d2e57260a16e235420f061cfd191a8e081cf
refs/heads/master
2020-04-18T01:26:36.272257
2019-04-26T00:05:58
2019-04-26T00:06:01
167,118,866
1
2
null
null
null
null
null
null
null
null
null
null
null
null
null
# DL6G.py CS5173/6073 cheng 2019 # from tensorflow.org/tutorials/keras # three-layer neural network for fashion_mnist data classification # Usage: python DL6G.py import tensorflow as tf mnist = tf.keras.datasets.mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() x_train, x_test = x_train / 255.0,...
UTF-8
Python
false
false
911
py
28
DL6G.py
27
0.686059
0.64764
0
30
28.3
66
TrishaAndalene/mySchoolProject
4,535,485,467,472
ac7af454058ad7fc5561843396f978edb7d04da1
91e01736514cd2836ea71fbdf8f1e80b0e544d89
/Learning step/Project/programlingkaran.py
f9be58dcf8766b5e9f53915c22fcbd69fc504e78
[]
no_license
https://github.com/TrishaAndalene/mySchoolProject
3c1fe55b070bfbf1593077054e555218fa2a4bbd
ab8e2e680444eadacb9d9e58d1ec7d166963ef18
refs/heads/master
2022-12-01T23:08:01.336556
2020-08-15T03:55:24
2020-08-15T03:55:24
274,874,174
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#program Lingkaran data = [] def luas_lingkaran(r): result = 3.14*r*r return result def luas_segitiga(a,t): result = (a*t)/2 return result def ambil_data(namafile): listData = [] """ with open(namafile) as f: lines = f.readlines() for line in lines: number = int(line.rstrip()) listData.append(number) ...
UTF-8
Python
false
false
597
py
94
programlingkaran.py
82
0.664992
0.654941
0
36
15.611111
46
spotify/cassandra-medusa
11,132,555,274,856
b790f7a4add8a0be072e900f400f1d6f7418fff4
7277aa3c7b7c14f1522080be189113ef412cdfc0
/medusa/restore_cluster.py
8349799febd736bd86c8077bce364cd2c82bb408
[ "Apache-2.0" ]
permissive
https://github.com/spotify/cassandra-medusa
bf37b18bb443a520edca077102cd500880916bcf
d286ec420bde09f05d4f0c14b2968ff482067604
refs/heads/master
2023-08-25T05:03:42.519918
2019-11-12T14:56:14
2019-11-13T16:18:19
210,613,958
29
11
Apache-2.0
false
2022-03-29T21:56:46
2019-09-24T13:46:53
2021-11-24T05:27:14
2022-03-29T21:56:46
108
25
4
6
Python
false
false
# -*- coding: utf-8 -*- # Copyright 2019 Spotify AB. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
UTF-8
Python
false
false
24,806
py
13
restore_cluster.py
6
0.595461
0.593687
0
538
45.107807
117
aryyawijaya/learn_Django
5,007,931,886,229
37bf866643ef0e5586d0f0dc968716dfb6e425f5
a5c437424559320c0bc391fcf53fbf3df4c9b4f6
/perpus/perpustakaan/views.py
82e7b9d2420ae6365b4238ee2839773d3282a48f
[]
no_license
https://github.com/aryyawijaya/learn_Django
32c595db0e2001818dc013902764be38c31cba87
94591a682bc5a620541ab67a2a00c18cbbad164e
refs/heads/master
2023-04-02T14:36:59.616213
2021-04-16T09:07:47
2021-04-16T09:07:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render, redirect from perpustakaan.models import Buku from perpustakaan.forms import FormBuku, FormKategori from django.contrib import messages from django.contrib.auth.decorators import login_required from django.conf import settings from django.contrib.auth.forms import UserCreationForm ...
UTF-8
Python
false
false
4,210
py
11
views.py
7
0.621853
0.621615
0
132
30.901515
93
alexandraback/datacollection
18,519,899,019,849
2316d038279a2a995087ed81c9f2dd0f8e76d6e0
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5709773144064000_1/Python/ororog/B.py
7497a3d0343382021fd137a45a809179c3a4c4a4
[]
no_license
https://github.com/alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys from numpy import * def main(): T = input() for i in range(T): solve(i) def solve(num): C, F, X = map(float, raw_input().split()) speed, time = 2.0, 0.0 ans = 1.0e100 while True: nans = time + X / speed if nans > ans: break ans = nans time += C / s...
UTF-8
Python
false
false
430
py
122,470
B.py
117,790
0.47907
0.451163
0
25
16.2
46
poetchess/pythonrunner
6,493,990,567,989
a8f05c76e6a6e8fdaaf559e11a0076cfbc3c1359
da1b31516177038cbc66f814e54220dd3a54b422
/function_object/function_introspection/clip_info_inspect.py
ff168984be7a6080bb6a5e8a02178cde4dead4d7
[]
no_license
https://github.com/poetchess/pythonrunner
60c27b48d789aa97e823e248401c2e3002e7c286
ecb9d1350bcfe950ceec9da805baa86e9a73238c
refs/heads/master
2021-01-09T06:09:06.883488
2017-09-24T08:23:00
2017-09-24T08:23:00
80,926,138
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
if __name__ == '__main__': from clip_info import clip from inspect import signature sig = signature(clip) #print(sig) print(str(sig)) for name, param in sig.parameters.items(): print(param.kind, ':', name, '=', param.default)
UTF-8
Python
false
false
257
py
49
clip_info_inspect.py
46
0.603113
0.603113
0
8
31.25
56
lintosh/intelijencee
2,078,764,210,329
db07f8fc29317ef7b139f9d39f9f151ca0306c67
1992d95b477e3777c376bdd2b077a11852b450a9
/inteliJence/apps/client.intelijence/init.py
fd75b0bb69bf17011c2ca16609d593701108ccd4
[]
no_license
https://github.com/lintosh/intelijencee
454adbc4f84f15d829e8db468a8c23dea88c2f94
2ab82279b44b96831cee268ced4e0cf3f1b524e9
refs/heads/master
2021-01-19T19:50:45.912504
2017-04-16T23:48:31
2017-04-16T23:48:31
88,449,406
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#(@:Description): "Client testing for email Management, and automation api code" #(@:Author): "inteliJence development team" #under the license of Apache License 2.0 and intelijence ProtectiveRights please edit and use it with all the care you can give #(@:App-Type): "Dynamic" #(@:Language): "Python" #(@...
UTF-8
Python
false
false
1,823
py
9
init.py
5
0.708722
0.695557
0
57
29.912281
170
vanya22551/sibadiservice
15,101,105,035,888
d1d3f62ead812b7bb6365c7a29f1dbdfa6077738
0580e6030374d5d77999f3760b57e63b4ca8a03a
/telebotsibadi/botbi20i1/forms.py
94b29782308e05102f177e94ed05ca603f9c7767
[]
no_license
https://github.com/vanya22551/sibadiservice
315c373943fd8e208d45721969ef23d0a5adb2de
cc8efe424464b69315a5e91cb48c96cb81d97be3
refs/heads/master
2023-05-27T00:11:58.021004
2021-06-16T16:50:57
2021-06-16T16:50:57
326,341,435
0
0
null
false
2021-03-02T16:23:09
2021-01-03T06:16:01
2021-03-02T16:11:32
2021-03-02T16:11:29
5,590
0
0
1
Python
false
false
from django.contrib.auth.models import User from django.forms import ModelForm, HiddenInput, ModelChoiceField from django.contrib.auth.forms import AuthenticationForm, PasswordChangeForm from .models import Laboratory, Student, File, Teacher class LabForm(ModelForm): class Meta: model = Laboratory ...
UTF-8
Python
false
false
1,828
py
84
forms.py
63
0.599562
0.598468
0
66
26.651515
76
w1907/Tarea2_desarrollo_web
15,848,429,324,807
431f71fce8cb3c7209a67c0494dcfdc96f4eda47
01ebaf3626a63e5eeea8a32da7fbca4a848e881b
/basket/views.py
221aaf8e7e9e39c7e50b875ce3eb64c8048fc521
[]
no_license
https://github.com/w1907/Tarea2_desarrollo_web
622b0520a3909f1a78ee909210ceaeb47243582f
0b7bada48d6ad7e4e34f74f60f2ec4ed95153189
refs/heads/master
2020-03-17T22:49:23.324274
2018-05-19T00:35:26
2018-05-19T00:35:26
134,019,512
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from basket.models import Player from basket.forms import PlayerForm from django.shortcuts import redirect def index(request): data = {} # SELECT * FROM player data['object_list'] = Player.objects.all().order_by('id') template_name = 'player/list_player.html' ...
UTF-8
Python
false
false
1,951
py
2
views.py
1
0.646848
0.646848
0
68
27.661765
64
khalil-Hennara/KBS_diagnoses_diseases
4,647,154,617,823
a76cf5d1ea7eb78af6da98129475bd0abce9e118
a48180bd94679479e9a5cd15125eef0ea95b5b39
/Get_Value.py
6b6aca98600deba7b38f0afd40b845441623ae8a
[]
no_license
https://github.com/khalil-Hennara/KBS_diagnoses_diseases
daf4ec0909b021f69aaae658bd4198bd6b6f5494
8d6e97e3a49703e711388e149f4011405bad8f26
refs/heads/main
2023-07-17T05:28:33.386933
2021-09-05T06:19:24
2021-09-05T06:19:24
403,231,485
4
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from manifestation import * def get_The_Right_EGD(value): if value == 0:return EGD.ULCERS_AND_EROSIONS_IN_DOUDENUM elif value == 1:return EGD.ULCERS_AND_EROSIONS_IN_STOMACH elif value == 2:return EGD.BLUNTED_VILLI elif value == 3:return EGD.SUPER_FACIAL_INFLAMMATORY_INFILTRATE ...
UTF-8
Python
false
false
1,791
py
15
Get_Value.py
12
0.61809
0.588498
0
48
36.25
71
lexicalx/ML4T
14,723,147,908,302
dbf3481978ef9b143da2a903ae29dbcbde5f71e8
eb7bea51c7d91902f42af87086bfcd7702aec02c
/vinay/numpy_6.py
cf98f98d6dcda99cce4eb2f2ab724727f9f4967c
[]
no_license
https://github.com/lexicalx/ML4T
2c8a84c63e856e3b9441eacb850b67f391edfddd
567b41d9377b41b28d078e858155a35eb3021ce0
refs/heads/master
2022-04-04T20:54:23.208693
2017-12-05T05:02:27
2017-12-05T05:02:27
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np def test_run(): a = np.random.randint(0,10,size=(5)) print "1d array:\n",a indices = np.array([1,1,2,3]) print "Array values using indices:\n",a[indices] print "-------------------" a = np.random.randint(0,10,size=(2,3)) print "Array:\n",a mean = a.mean() print "Mean:\n",mean print "El...
UTF-8
Python
false
false
1,088
py
39
numpy_6.py
17
0.497243
0.475184
0
44
23.704545
65
francoischalifour/todo-cli
7,129,645,725,448
38557696e2b73ecf94fdb112d7b6ef4c3084e083
3c695c52bc27723cbcb678164f5de0b8358723f6
/todo/utils/compatibility.py
798c7f29ce6ce3812f116409c4df9d364ecece26
[ "MIT" ]
permissive
https://github.com/francoischalifour/todo-cli
3324728eaae024421fb1eb2c5fb740e89f1a4893
8376541fc528f9433b5ff2c538c3410fd611fe1b
refs/heads/master
2023-08-16T19:47:04.606314
2023-08-14T09:18:21
2023-08-14T09:18:21
58,815,486
101
22
MIT
false
2023-08-14T09:18:23
2016-05-14T15:35:19
2023-05-31T13:17:55
2023-08-14T09:18:21
26
89
12
0
Python
false
false
# -*- coding: utf-8 -*- import sys def safe_print(s): """Encodes the output in utf-8 for Windows console""" try: print(s) except UnicodeEncodeError: print( s .replace('✓', '-') # change the checkmark symbol .encode('utf8') .decode(sys.stdout....
UTF-8
Python
false
false
342
py
22
compatibility.py
20
0.511765
0.502941
0
15
21.666667
60
SaurabhRNayak/FasTAG_2.0
14,929,306,328,288
6cdbe265961231aed4aaa7d9e50b5a6142ce1c26
48a120b1bc958aeab12dc879026a20d369f160ed
/jav_trigger.py
49cb249dc4196ec59ec4a202ab2649507493060e
[]
no_license
https://github.com/SaurabhRNayak/FasTAG_2.0
078e81cfa765e42394fb5f858cce244abf249506
77bbcf8ee064671167a760cefd458e90c560edd3
refs/heads/master
2022-10-28T03:13:30.252355
2020-06-11T19:42:00
2020-06-11T19:42:00
271,630,704
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import subprocess import json def jar_trigger(numplate): # sub = subprocess.call(['java', '-jar', 'Validate.jar', 'MH12DE1433']) sub=subprocess.run(['java', '-jar', 'Validate.jar', numplate],capture_output=True,text=True) sub1=sub.stdout # print('sub',sub1) # print(type(sub1)) if "Error" in sub1...
UTF-8
Python
false
false
515
py
5
jav_trigger.py
4
0.629126
0.596117
0
16
31.25
96
01BTC10/doconce
10,127,532,899,866
d63ad38308cddacf06078c96efcd6b62af033f74
03b385537e579eec44ce0e048b45887e9f374d5a
/lib/doconce/sphinx.py
9f5874c4bb5dfea84d5bf1925c6c09859577ce35
[ "BSD-3-Clause" ]
permissive
https://github.com/01BTC10/doconce
129a179b774cba25ebc836af107b9597dd40e45b
3b39cf3ba1ffe3fcc9ea81a942651a18e856e81d
refs/heads/master
2020-06-21T20:02:02.848468
2017-06-08T13:06:08
2017-06-08T13:06:08
94,205,427
1
0
null
true
2017-06-13T11:25:11
2017-06-13T11:25:11
2017-06-06T22:42:32
2017-06-08T16:07:47
472,709
0
0
0
null
null
null
from __future__ import print_function from __future__ import absolute_import from builtins import range # http://sphinx.pocoo.org/ext/math.html# # can reuse most of rst module: from .rst import * from .common import align2equations, online_python_tutor, \ get_legal_pygments_lexers, has_custom_pygments_lexer from ...
UTF-8
Python
false
false
40,910
py
371
sphinx.py
86
0.521168
0.517551
0
992
40.239919
170
AnshumanKumar14/python_basics
16,973,710,765,056
a5870aff777f4630085081d893002c9fab90a4d9
5af61e0f80badfd9383e5da275c246ac1f52d1b3
/second.py
141eaed1dbb20e9d26ceecc7e56eccd1114b53b4
[]
no_license
https://github.com/AnshumanKumar14/python_basics
759728146a28285a8c63410cf2ff768e8c63a94e
21de598f21d66a8ee3a3b29e506ea3e893b3c15f
refs/heads/master
2020-05-21T16:47:00.417079
2019-06-14T16:23:56
2019-06-14T16:23:56
186,109,280
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Split function names = 'anshuman, satya, shikha, dipkia' print(names.split(',')) #List and dictionary type userinfolist = ['anshu','29','male','gurgaon'] userinfodict = {'name': 'Anshu', 'age': 29} # Formatting in python using .format # My informatio firstname = 'Anshuman' lastname = 'Tiwari' fullname = firstname +...
UTF-8
Python
false
false
750
py
8
second.py
8
0.689333
0.681333
0
24
30.291667
120
alejo8591/culttume2
7,567,732,406,231
2aec1fef920378fe1c544755ab792ff9eae7798b
a6f45a369ba7988ebd0c6eb863af23f3f56d7485
/mysite/polls/views.py
109346c2a7fa4b84306294335ed8dda12e08c20a
[ "MIT" ]
permissive
https://github.com/alejo8591/culttume2
6718c09508b8ba718296d8e4726bd0eb2e778e0f
9c38afa715eef0fee750ed2694077e5986144cca
refs/heads/master
2020-04-04T15:18:19.473200
2014-02-04T19:34:57
2014-02-04T19:34:57
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.http import HttpResponse from polls.models import Poll def index(request): latest_poll_list = Poll.objects.order_by('-pub_date')[:5] output = ', '.join([p.question for p in latest_poll_list]) return HttpResponse(output) def detail(request, poll_id): return HttpResponse("Your looking details of polls %...
UTF-8
Python
false
false
518
py
4
views.py
1
0.735521
0.733591
0
16
31.4375
66
whisperity/dotfiles-framework
2,808,908,616,530
f152abd2ec4024516573e258438940e4c1ef9443
261169a74d78f85c51f98c38a592ee8edf666640
/dotfiles/saved_data.py
62283faa9645d0400f77423c9296b38a22df9afe
[]
no_license
https://github.com/whisperity/dotfiles-framework
0684786189821a2d31f6a8987d9737843469a769
36d617f5629134ad8cffbf99aca76ea87146a47b
refs/heads/master
2023-08-27T21:12:01.086588
2022-12-20T10:58:37
2022-12-20T10:58:37
342,549,225
2
2
null
null
null
null
null
null
null
null
null
null
null
null
null
from contextlib import contextmanager from datetime import datetime import json import os import zipfile from dotfiles.status import Status class UserSave: """ The `UserSave` instance represents the persistent storage where the Dotfiles-specific user information, such as list of installed packages, i...
UTF-8
Python
false
false
6,355
py
30
saved_data.py
27
0.536585
0.535484
0
174
35.522989
79
Aasthaengg/IBMdataset
3,770,981,288,469
7f524dcd58a2bfcae52f1c4c58519f9f24afda38
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02398/s692824965.py
a88e01e4501b902b759539766f671a1ec5e4f610
[]
no_license
https://github.com/Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
a, b, c = [int(w) for w in input().split()] print(len([i for i in range(a, b+1) if c % i == 0]))
UTF-8
Python
false
false
96
py
202,060
s692824965.py
202,055
0.53125
0.510417
0
2
47.5
52
yudumerg/ArucoDetection_FindDistanceCameraandObject
11,845,519,837,816
300756af392fd25b267f5604ca9371171146b478
70e3238b22201b60ca0b2151b5d1004c4a4d8786
/detect_aruco_video.py
101d247fa56080c7fa719fa212e8b8818d4a68d5
[]
no_license
https://github.com/yudumerg/ArucoDetection_FindDistanceCameraandObject
92c0f1d69bdf6d1ffaad788e9f7fccedd3c6174a
924054578f9320b45352204f3145d852af3f5b04
refs/heads/main
2023-02-27T04:44:44.617442
2021-02-10T10:20:36
2021-02-10T10:20:36
337,686,436
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from imutils.video import VideoStream import argparse import imutils import time import cv2 import sys import numpy as np def distance_to_camera(knownWidth,focalLength, perWidth): return (knownWidth * focalLength) / perWidth KNOWN_DISTANCE = 60.0 #Distance from camera to marker KNOWN_WIDTH = 6.3 #origina...
UTF-8
Python
false
false
5,646
py
2
detect_aruco_video.py
1
0.666312
0.626638
0
188
29.031915
118
LukaszMalucha/Python_ETL
12,463,995,143,456
2c9057da0635c4ea26bf1e3a833fc959cfb693cb
4914c3cfcb2abe020b54a9712d5cd9c61da0f198
/Foundations/sqlite_demo.py
6962c7d205ea5bcf763f72c0c93b3cb1162e5b24
[]
no_license
https://github.com/LukaszMalucha/Python_ETL
c3edc8e6d0c477b1961072e6f8e534f06dab05a7
234f90014d76bef4041d1d17b698dcbe7539ac4f
refs/heads/master
2020-03-31T08:47:26.425996
2018-10-14T08:16:44
2018-10-14T08:16:44
152,072,590
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import sqlite3 from employee import Employee ## Connection Object conn = sqlite3.connect('employee.db') ## For memory quick test runs conn = sqlite3.connect(':memory:') ## Create cursor c = conn.cursor() ######################################## CREATE TABLE #################...
UTF-8
Python
false
false
1,422
py
7
sqlite_demo.py
5
0.489451
0.469761
0
61
21.016393
124
fmpisantos/tese
9,131,100,478,763
b3babefea97bedf704efa8a4feac091def6b602d
edefa8c03edd97bfa9c85251e085f60f3892b9f0
/algoritmos/orb.py
38a48763ff60cd6e2a177b2af86c84b73c5be67b
[]
no_license
https://github.com/fmpisantos/tese
2ae76c7e6826ba420edf0086f94db3868f2f38c3
443388ad1af689738f74a00d81a4974c4d4c2dbf
refs/heads/master
2023-06-12T22:17:30.730345
2021-07-03T15:50:10
2021-07-03T15:50:10
348,005,667
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import cv2 as cv from matplotlib import pyplot as plt from PIL import Image import imagehash def test(): img1 = cv.imread('../Photos/original/img_0576.jpg',3) # queryImage img2 = cv.imread('../Photos/original/img_0577.jpg',3) # trainImage b,g,r = cv.split(img1) # get...
UTF-8
Python
false
false
1,990
py
25
orb.py
16
0.613568
0.566332
0
67
28.716418
79
TomsaBogdan/Exercitiile
1,047,972,054,335
2e7a4577441f8836fc2dbe8c11e443396b6c6b22
24c7bdd4fa3510720c5409a99a756dfaf08f123e
/p6.py
186f4c6bd98d6934fba04f05de27acf3bc3d052d
[]
no_license
https://github.com/TomsaBogdan/Exercitiile
acc95b68042919560793250dfe86a1d3c0226d12
ada0706e7e798cc3ef5363a84d522e82b698838a
refs/heads/master
2016-08-07T07:03:03.671168
2015-03-24T16:12:37
2015-03-24T16:12:37
31,974,779
0
3
null
false
2015-03-17T08:53:19
2015-03-10T18:35:05
2015-03-13T17:23:29
2015-03-13T17:23:29
0
0
1
1
Python
null
null
# take both parameters being passed and return # the string true if a portion of str1 characters # can be rearranged to match str2, otherwise return the string false. def scramble(str1, str2): if sorted(str1) == sorted(str2): print True else: print False print scramble("cdore","coder")
UTF-8
Python
false
false
311
py
9
p6.py
9
0.70418
0.684887
0
13
23
69
xz1082/assignment5
13,881,334,328,116
3523209dacd83439aad6c74cface246f73c9a6d0
9ef6dde178e3bc8ff9c7c5c9c7888451f1133feb
/jz1584/assignment5.py
a4dde469b7bc7eb195597c5bdcca5ba0d0bef54c
[]
no_license
https://github.com/xz1082/assignment5
2d568f9f063da65804c10f8939f140c264a3ab4a
aca54cb9445de38021b5a92fc91c5ce0ccf879fc
refs/heads/master
2020-12-02T15:03:31.305458
2014-10-18T00:01:57
2014-10-18T00:01:57
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from Q1 import * from Q2 import * from Q3 import * from Q4 import * #Q1 testing print "Q1 testing:" a=interval("[2,2]") b=interval('[-2,2)') c=interval("(2,400)") d=interval("(-3,-2]") print a, b, c, d #f=interval("(-2,-1)") #error should be expected #print f #Q2 testing print "Q2 testing:" q2="[1,5)" q21="(-2,7]"...
UTF-8
Python
false
false
748
py
31
assignment5.py
31
0.639037
0.540107
0
37
19.189189
69
karoldiasb/lpc_tarefas
16,209,206,619,725
a0a306ede826d6edadf43793986f3c6306ca8baf
e55322838442b552d66e24fc167f6ac5debbc37b
/tarefas/api/resources.py
40db5a73c72ec920d38b7b67690c8a244e695957
[]
no_license
https://github.com/karoldiasb/lpc_tarefas
9ea9e957021282bd4a5bb0774e639bc67ac45a3e
84ccd1e1e4d0075e4be02b83a112fa2a96c6f209
refs/heads/master
2018-05-18T09:49:17.171437
2017-06-02T20:30:29
2017-06-02T20:30:29
93,197,662
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from tastypie.resources import ModelResource from tastypie import fields, utils from tastypie.authorization import Authorization from tarefas.models import * from django.contrib.auth.models import User from tastypie.exceptions import Unauthorized class UsuarioResource(ModelResource): def obj_delete_list(self,bundl...
UTF-8
Python
false
false
2,415
py
4
resources.py
4
0.620948
0.620116
0
73
31.958904
67
yycptt/Feedforward_NN_library
13,082,470,390,382
92549b9c2bbf5452cfa9115c17967d77db842a44
4feac7ddac07e3f04b58ec8f4d632658ca774960
/loss/softmax_cross_entropy_loss.py
53905e20ad159e5ebf79a466cb59cf45009bdb39
[]
no_license
https://github.com/yycptt/Feedforward_NN_library
8fddf217117b675ce4af3164be96106b89f0d215
16040f41e6d9a7c3fe108be4f2218bd1847adda4
refs/heads/master
2021-01-23T19:13:48.530032
2017-09-21T04:26:40
2017-09-21T04:26:40
102,812,227
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from loss import Loss class SoftmaxCrossEntropyLoss(Loss): def __init__(self): super(SoftmaxCrossEntropyLoss, self).__init__() @staticmethod def compute_loss_and_grad(Y, X): assert (np.all(Y.shape == X.shape)) m = Y.shape[1] temp = np.exp(X) Y_ha...
UTF-8
Python
false
false
476
py
22
softmax_cross_entropy_loss.py
21
0.571429
0.563025
0
17
27
66
rossigee/site-domain-manager
10,746,008,208,941
860cd277662d3b8cfe35c91727c528cca55bcfe4
c2235c931a371e467c96708e9a88183e6c2bd15a
/sdmgr/hosting/__init__.py
573a085601db6384b63f5932c4a9355911bb3878
[]
no_license
https://github.com/rossigee/site-domain-manager
27a3a148bf0b05e50c41eb7105de4d34ee74f750
a9eca92d98e4b219cc6b9278ad2a22d243d95663
refs/heads/master
2023-05-27T05:52:29.879128
2023-05-20T06:19:32
2023-05-20T06:19:32
186,814,637
0
0
null
false
2023-05-20T06:19:33
2019-05-15T11:42:41
2023-02-15T04:20:54
2023-05-20T06:19:32
113
0
0
1
Python
false
false
available_agents = [] def register_agent(agent): available_agents.append(agent)
UTF-8
Python
false
false
85
py
59
__init__.py
47
0.729412
0.729412
0
4
20.25
34
NervanaSystems/ngraph-neon
1,992,864,845,973
4f1f0e987ad80787950e2f9fb862bf6be8b1f36c
0cef8deb473ffac47344dd46039b9f962d9d0ccf
/examples/walk_through/gendata.py
19ec65edef29d0a1294e41a58cff210ff337c06f
[ "Apache-2.0" ]
permissive
https://github.com/NervanaSystems/ngraph-neon
6045d51b6c67348b0df8cbe051253543b691f29d
3d17f06ae723ec5c2e3a52c9c840b4d6c7640f22
refs/heads/master
2023-06-22T02:54:20.143134
2023-01-03T22:54:35
2023-01-03T22:54:35
83,846,593
14
6
Apache-2.0
false
2022-10-17T03:51:08
2017-03-03T22:19:31
2022-06-10T05:16:35
2019-04-17T23:57:02
17,431
13
6
1
Python
false
false
# ****************************************************************************** # Copyright 2017-2018 Intel Corporation # # 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.apa...
UTF-8
Python
false
false
2,609
py
152
gendata.py
116
0.523956
0.512457
0
80
31.6125
83
RTEMS/rtems-tools
6,201,932,792,162
f2ffb8052b2e7a1a5a4fa5066ceddf97abb6e888
49d71dec3f8feedc7e008988c27192e30a0e2d62
/tester/rt/console.py
13300dae57e3a1680ca498a3ee96d9e7fe25ff88
[]
no_license
https://github.com/RTEMS/rtems-tools
f7a142867dac17070122dfe88537c8ceb89724dc
eda9325e583f761c53ee3db83124cc77cb4fefb5
refs/heads/master
2023-09-01T00:38:20.180455
2023-08-29T23:51:47
2023-08-29T23:51:47
10,755,322
33
47
null
false
2023-09-07T05:44:57
2013-06-18T06:23:31
2023-07-11T22:44:52
2023-09-07T05:44:57
6,079
29
39
1
C
false
false
# # RTEMS Tools Project (http://www.rtems.org/) # Copyright 2013-2020 Chris Johns (chrisj@rtems.org) # All rights reserved. # # This file is part of the RTEMS Tools package in 'rtems-tools'. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following ...
UTF-8
Python
false
false
4,293
py
292
console.py
165
0.587002
0.58211
0
143
29.020979
78
airman41/packages
1,245,540,550,214
6ff3b1d8fac0093a0e28fa802d04e7128a03d89b
6ad334cdbb9f8f24bef5bbc1aa9752ac24345ccf
/udiskie/setup.py
9ae1ab4b2fa78d20fb880eb3bdfed80efc01c5d5
[ "LicenseRef-scancode-public-domain", "MIT" ]
permissive
https://github.com/airman41/packages
d0dff222807a16b2bd1cc3faabd2ae1262e9980e
ee05bfe68b7bc2aa63ef15e414c6c165dbac6bcf
refs/heads/master
2020-12-24T20:43:37.020583
2014-05-15T13:20:10
2014-05-15T13:20:10
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# encoding: utf-8 #!/usr/bin/env python from distutils.core import setup from subprocess import call import sys import logging from os import path # read long_description from README.rst long_description = None try: long_description = open('README.rst').read() long_description += '\n' + open('CHANGES.rst').re...
UTF-8
Python
false
false
2,507
py
7
setup.py
4
0.57485
0.566467
0
80
30.3125
69
zhkbmstu/bmstu.py
10,780,367,925,000
54ce6dda4a9cbf5b3a0181702fd1bcf3086ef076
a522c3c1a95d3073ebeda058f304c6a529322698
/blog_builder.py
1fedb933718f5a52fb71714a522c62eb5a9eb95e
[]
no_license
https://github.com/zhkbmstu/bmstu.py
dbb546acb96c7c69e777a5120d6f4051cb9260b1
0c0256a40990ed7f6aac2307b1e5e7e7e7cbc005
refs/heads/master
2021-01-10T01:44:35.156446
2015-10-02T18:28:59
2015-10-02T18:28:59
43,523,499
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 import json articles = json.load(open('articles.json', 'r')) blog_file = open('blog.html', 'a') blog_file.write('<html><head><meta charset="utf-8"><title>Статьи</title></head>\n<body>\n') for article in articles: print "%s:\"%s\"\n\t%s\n\n" % (article['author'], article['title'], article['text']) ...
UTF-8
Python
false
false
574
py
7
blog_builder.py
4
0.612676
0.600352
0
15
36.866667
194
mkotsi/TimeLapse_UQ_localsolver-master
10,273,561,805,482
c357ddf30e85225a2dd2966deda93772674aa602
6ae1034e48ec38a5880a448e1f7a134cbe3e5535
/docker_image/pysit_extensions/normalize_amplitudes/__init__.py
d0736ac4013163ca6d51df67a6027e3a4f206326
[]
no_license
https://github.com/mkotsi/TimeLapse_UQ_localsolver-master
9d83f98e971a71bdaf0f7e931e41e87b7f539738
224f6972499d74ac734e3b31bbc6840f35423e68
refs/heads/master
2021-02-13T05:10:28.449924
2020-03-30T13:07:21
2020-03-30T13:07:21
244,664,925
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pysit_extensions.normalize_amplitudes.normalize_amplitudes import * from pysit_extensions.normalize_amplitudes.get_average_energy_ratio import *
UTF-8
Python
false
false
149
py
101
__init__.py
74
0.85906
0.85906
0
2
74
76
s2motion/learning_python
17,970,143,179,985
36f54548ddb23414f78129eb9a84f497c786206b
50dc44b5f2183ba102ca1a391eadc492e45b98a8
/sources/redis_washer.py
831bb3fa85aab09c69b7560aa006607ad7d62df2
[]
no_license
https://github.com/s2motion/learning_python
fa1bc17c09658253305dbd8dd4aff65e681e9462
7821019a7118cb4c08afc3fd7525f08239bac586
refs/heads/master
2020-03-16T21:12:29.500599
2018-05-11T04:28:24
2018-05-11T04:28:24
132,988,982
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import redis conn = redis.Redis() print('Washer is starting') dishes = ['salad', 'bread', 'entree', 'dessert'] for dish in dishes: msg = dish.encode('utf-8') conn.rpush('dishes', msg) print('Washed', num) conn.rpush('dishes', 'quit') print('Washer is done')
UTF-8
Python
false
false
261
py
4
redis_washer.py
4
0.670498
0.666667
0
11
22.818182
48
Thuku777/church
10,239,202,068,879
e72bc9aa0170167d8edd9f167a0290084b0459c1
8ac14cf6a07348e61ebd6b523b00ca87c40eeb25
/about/migrations/0002_auto_20201027_1931.py
92b3b2039539f889fda8b6a09b22fd854777755a
[]
no_license
https://github.com/Thuku777/church
556ff964337061e72e779fe30d6a582b4551ac12
98e6bbbed36005abc1b798254a3089040a1a1e0b
refs/heads/main
2023-01-09T10:47:19.323210
2020-11-17T21:31:11
2020-11-17T21:31:11
309,812,757
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.1.2 on 2020-10-27 16:31 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('about', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='about', o...
UTF-8
Python
false
false
2,547
py
54
0002_auto_20201027_1931.py
29
0.53671
0.525717
0
80
30.8375
117
Sfoozz/Text-Mining-IE-2017
18,966,575,603,604
2ccacd90b290ca73f4f1b33224b75bc745f58b97
7392a8c0bf09043f78f55efe24bc461a90ff463a
/test_textmining.py
9cfd83786ebfc4c4ab15edef43fd45ff691dbc40
[]
no_license
https://github.com/Sfoozz/Text-Mining-IE-2017
e57dbf261f26774dc47070813aa54783929ff9a0
b6abae65945c56d0262b3611643b3873a977c276
refs/heads/master
2021-01-11T22:46:38.463273
2017-02-04T07:02:05
2017-02-04T07:02:05
79,032,491
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import json with open('../corpus_goed.json') as json_data: d = json.load(json_data) eerste = d[0] print(eerste) eerstevalue = eerste['workID'] print(eerstevalue)
UTF-8
Python
false
false
184
py
25
test_textmining.py
22
0.63587
0.630435
0
8
21.875
46
fatine7359/Reviews-Site
11,338,713,675,247
1b0136f520e8ce97d61c61da51fbdb0995299b24
174259be7790b16fc7c13b17fb6343420017d6d2
/ManageInterface3.py
56d1c35d95b3b1e863e5200bc4751eb4f2eb0350
[]
no_license
https://github.com/fatine7359/Reviews-Site
e96b928dfb2804cd597f4ea97fc1c39eb1f96fa5
8faa5a94287b04b40b86f8658979c10d3291641f
refs/heads/main
2023-05-31T00:22:32.838720
2021-06-10T08:36:17
2021-06-10T08:36:17
375,502,613
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'manageSite1.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, ...
UTF-8
Python
false
false
6,375
py
24
ManageInterface3.py
10
0.664314
0.628392
0
169
36.721893
149
AlphaTechnic/SOGANG_ICPC_training_day
17,755,394,838,445
f821a504b3b6b9f0c7eccf9ed60405ef15626874
cecd261be2557a29b2e8eb7a22533945c1711450
/2021-04-03/1798.py
5a46120f2a687da0d1dd1582a0e43cff3fb57cba
[]
no_license
https://github.com/AlphaTechnic/SOGANG_ICPC_training_day
3267540275c867a43d95d1a471fe0e95a08c060b
29244ae5a6767679466ab4ac3a32d4a024878e74
refs/heads/master
2023-05-05T16:25:11.381038
2021-05-22T14:04:46
2021-05-22T14:04:46
347,415,881
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" input : 3.0 4.0 2.0 0.0 4.0 0.0 3.0 4.0 2.0 90.0 4.0 0.0 6.0 8.0 2.14 75.2 9.58 114.3 3.0 4.0 5.0 0.0 5.0 90.0 ouput : 2.00 3.26 7.66 4.54 """ import sys import math sys.stdin = open("input.txt", "r") input = sys.stdin.readline for line in sys.stdin: r, h, d1, a1, d2, a2 = map(float, line.rstrip().split()) ...
UTF-8
Python
false
false
577
py
32
1798.py
32
0.523397
0.369151
0
30
18.266667
84
yooseungju/TIL
17,652,315,593,928
dde8a6b0ef990c51134bd082670e8c19919565bb
5b77ea24ccda4fcf6ed8a269f27ac33d0a47bcad
/Algorithm_class02/AD/B3_[TST] 구슬 고르기3.py
7ef96e692aa16733581eb019a8016e8f6704a421
[]
no_license
https://github.com/yooseungju/TIL
98acdd6a1f0c145bff4ae33cdbfbef4f45d5da42
e6660aaf52a770508fe8778994e40aa43d2484d4
refs/heads/master
2020-04-11T21:13:56.981903
2019-09-28T12:34:03
2019-09-28T12:34:03
162,099,150
4
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def perm(k, n): if n == k: for t in T: print(t, end=' ') print() return for i in arr: if not chk[i]: chk[i] = 1 T[k] = i perm(k+1, N) T[k] = i chk[i] = 0 T = [0] *3 N = 3 chk = [0] * (N+1) arr = [ i for i...
UTF-8
Python
false
false
346
py
298
B3_[TST] 구슬 고르기3.py
266
0.33237
0.300578
0
22
14.772727
30
ChelaNew/2013PythonCode
3,246,995,285,230
a7dbc2bfc8ef6ffbf754f2d472c5ebc431eb9b45
48e9b92ea0c488bb2548d4821edc1764e0b1edc9
/py/grt/mechanism/mechcontroller.py
3c8cf39d44a8cbfaad23074fbd9ec6e4d77e0d69
[]
no_license
https://github.com/ChelaNew/2013PythonCode
541f7055dd5c7bafb71ae37f573aea0c58eb615d
d457f3eb070337baef5484b99110978793d65930
refs/heads/master
2016-09-13T18:45:03.796724
2016-05-13T18:09:50
2016-05-13T18:09:50
57,171,586
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from grt.sensors.dummy import Mimic class MechController: def __init__(self, joystick, xbox_controller, pickup, shooter, belts, mimic_joystick): self.belts = belts self.joystick = joystick self.xbox_controller = xbox_controller self.pickup = pickup self.shooter = shooter ...
UTF-8
Python
false
false
1,975
py
13
mechcontroller.py
13
0.504304
0.494684
0
61
31.311475
105
ShintaroChiba/rakuten-scraping
14,147,622,300,893
b17b0423d4f21afc62dada36d47d8b101d0a7eb1
189566d8051db0c37ad8fc093fd200a0bec4e645
/isbn/management/commands/get_isbn_info.py
9595fc46fc7cac9f91119bc9d8325a1e0b891212
[]
no_license
https://github.com/ShintaroChiba/rakuten-scraping
4ee7c67a753ee16e126ec345251698df912a235e
183bfdbf8d6decbabb104262bb0ceb209edfb379
refs/heads/master
2023-03-12T11:02:10.821844
2021-03-03T11:01:09
2021-03-03T11:01:09
344,096,403
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.core.management.base import BaseCommand from isbn.models import Book, SearchWord from datetime import datetime from isbn.utils import get_word_list, create_url, lineNotify, regist_data import requests import urllib.request import urllib.parse import json import logging #初期パラメータ設定 logdir = r"C:\django\book...
UTF-8
Python
false
false
1,363
py
11
get_isbn_info.py
9
0.634667
0.634667
0
38
28.605263
124
zaazbb/ymmeterreader
15,925,738,752,325
fbb212129bb685671a34b0b56143f32471083e79
8f79de16f4be85ae15fa03e8af6bbeb5bd836f55
/mainwindow.py
f67f2ca898300d43dca072e7801924fa60df3c2a
[]
no_license
https://github.com/zaazbb/ymmeterreader
b254f1c20234be3461dc3af93099da2cac99fc12
d21d46c70f45f3fd81afba38c0813692dafccdf0
refs/heads/master
2020-12-31T08:09:15.155354
2016-07-13T09:07:47
2016-07-13T09:07:47
62,806,781
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os.path import pickle from datetime import datetime import traceback from PyQt5.QtWidgets import QMainWindow, QTreeWidgetItem, QMenu, QFileDialog, QMessageBox#, QInputDialog from PyQt5.QtGui import QBrush, QCursor from PyQt5.QtCore import QTimer, pyqtSlot, Qt, QPoint import serial from serial.tools.list_ports...
UTF-8
Python
false
false
12,097
py
7
mainwindow.py
3
0.50956
0.477891
0.000337
262
44.312977
141
pmplewa/GC-CloudFactory
5,282,809,780,850
0adf0b5fe9f65d91f5100670d80e1a7211f7faa1
f7a14026c0761f8f120134285077b9f2e9f8ab35
/cloudfactory/plot.py
e99f109d12fe9dee3211cf65c7805045b943c708
[]
no_license
https://github.com/pmplewa/GC-CloudFactory
04a4c94e405efa4b6158ae1f76cce65882624e27
4183d423992ef5f070f9cf119bf1b65450d8c7ea
refs/heads/master
2019-02-01T07:44:27.736245
2018-05-12T20:23:26
2018-05-12T20:23:26
99,001,580
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from ipywidgets import interactive, IntSlider import matplotlib.pyplot as plt import numpy as np from .kde import fit_kde1D, fit_kde2D __all__ = ["make_velocityplot", "make_skyplot", "make_skyvelplot", "make_pvplot"] colors = ["C0", "C1", "C2"] def parse_args(args): sims = list(args) assert len...
UTF-8
Python
false
false
5,313
py
5
plot.py
3
0.500847
0.481837
0
148
34.898649
80
geomstats/geomstats
18,459,769,449,528
11f3bbe032f2b46b54dad6a2b43baf6c7d7aa4b1
16d430421e56ef878bf0d39d873931ffdbf2a523
/geomstats/_backend/autograd/autodiff.py
e8a08caf550cce8d297418e336d9bf5273aab95b
[ "MIT" ]
permissive
https://github.com/geomstats/geomstats
c0b24527e2b0c66f5dffdd40419660d5db84dc03
78a5778b5d5ce85225fd97e765d43047fb4526d1
refs/heads/master
2023-09-04T03:34:41.740174
2023-08-30T05:27:08
2023-08-30T05:27:08
108,200,238
1,017
237
MIT
false
2023-09-10T09:17:34
2017-10-25T00:44:57
2023-09-06T19:39:56
2023-09-10T09:17:33
203,659
985
219
209
Jupyter Notebook
false
false
"""Wrapper around autograd functions to be consistent with backends.""" import autograd as _autograd import autograd.numpy as _np from autograd import jacobian def custom_gradient(*grad_funcs): """Create a decorator that allows a function to define its custom gradient(s). Parameters ---------- *grad...
UTF-8
Python
false
false
8,767
py
410
autodiff.py
342
0.602258
0.59781
0
301
28.126246
88
naong95/baekjoonPython
8,873,402,437,277
373c8d6f328a1a3edcc2b06d25a632c84542147d
941332dfff208537807ce3ae14ca9546c04acd51
/NO1110.py
5a4d0706e9184160fe84b2edc87c5a79ddbeac71
[]
no_license
https://github.com/naong95/baekjoonPython
362cafbe8256a282be33e3bbc257c1b474fdeaa9
3c6e213b9d6da7e103793127a51a9dcdb8878459
refs/heads/master
2023-09-05T06:41:08.396515
2021-11-07T06:12:35
2021-11-07T06:12:35
383,971,566
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n = int(input()) if(n < 10): n = n * 10 k = n i = 0 while True: a = k / 10 a = int(a) b = k % 10 b = int(b) if(a + b < 10): k = (b * 10) + a + b else: k = (b * 10) + ((a + b)%10) i = i + 1 if(k == n): break print(i)
UTF-8
Python
false
false
289
py
16
NO1110.py
16
0.314879
0.252595
0
23
11.565217
35
15051882416/food_shop
6,897,717,477,729
f575c4da3a9640cf10327391438971678d55ab4a
60c18eefd903957622a8bd9dc2b7c8522d13552b
/app/validators/api_forms/my_forms.py
540b2b0d8f98f489f4c968a1e9468f74f646b753
[]
no_license
https://github.com/15051882416/food_shop
f2868ac7ca63e9e8e36564f979c0c9585e5a22f0
0033580a08da6e7f043153e5d3dd382333a9eac2
refs/heads/master
2022-03-03T01:45:25.648296
2019-02-21T03:25:58
2019-02-21T03:25:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from wtforms import StringField, IntegerField from wtforms.validators import DataRequired from app.validators.base import BaseForm class AddCommentForm(BaseForm): order_sn = StringField(validators=[DataRequired(message='订单号不能为空')]) score = IntegerField(default=10) content = StringField(validators=[DataRe...
UTF-8
Python
false
false
396
py
47
my_forms.py
45
0.789326
0.783708
0
10
34.6
79
GalinaDimitrova/Hack
206,158,464,127
fcafaf3b99110edb351a7b73b045fadb5a1990ff
be1a45b4ee526ec3cd81a2bcd06404db90c097fb
/week0/1-upr/10--is_number_balanced.py
9b37880001d079bed1768f8a648580211efb7f17
[]
no_license
https://github.com/GalinaDimitrova/Hack
c48e69c80678fa24937ca7dd4a36b1050e05d66e
186e6f3520183565765569e63b39b25249c82f11
refs/heads/master
2021-01-25T08:55:23.349341
2014-12-29T23:25:54
2014-12-29T23:25:54
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def sum_of_digits(n): n = abs(n) result = 0 while n > 0: result += n % 10 n = n // 10 return result def is_number_balanced(n): if n < 10: print(True) return True else: str_num = n # Get lenght of the integer lenght = len(str(str_num)) ...
UTF-8
Python
false
false
1,274
py
93
10--is_number_balanced.py
86
0.481947
0.441915
0
47
26.085106
65
iMu21/Dynamic-Programming
13,597,866,508,122
e9a2401008ba67cfb33ee1c98b88fd7a8ef92ae9
f8b441caa20aaf7b4e93d6c22a858f4c12b6f7ec
/Palindromic Partitioning.py
4f378cba2cf783ecbe8bffab08d43733274dbc7e
[]
no_license
https://github.com/iMu21/Dynamic-Programming
1d0219e80ad7f77dfc942737c7f4a75c718d3678
05ed3ee5bf743564c8d137834fc28290fcecf4d3
refs/heads/master
2020-05-19T13:50:31.395730
2019-05-14T16:44:45
2019-05-14T16:44:45
185,048,451
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def MinimumPalindromePartition(s): length=len(s) Cuts=[0 for i in range(length)] Partition=[[False for i in range(length)]for i in range(length)] for i in range(length): Partition[i][i]=True Cuts[i]=0 for L in range(2,length+1): for i in range(0,length-L+1): j=i+...
UTF-8
Python
false
false
894
py
9
Palindromic Partitioning.py
9
0.552573
0.53132
0
26
33.384615
94
gabivoicu/recipes-app-django
4,647,154,631,762
c6c39eb06dd1fc8e44869b1243ab8bb165c025b4
141a21c07005e93034c97ab2093d3c994cdd5830
/mysite/recipes/urls.py
516f40a03b9d3c088e91ccff0669067a2a2c6193
[]
no_license
https://github.com/gabivoicu/recipes-app-django
19fb47bb79227eff8f9ad5998aad13a926b8cffa
97c3fbb3fe4f81b88774697610362d1729b0be9d
refs/heads/master
2018-01-07T17:35:46.396766
2015-04-20T22:48:48
2015-04-20T22:48:48
33,158,875
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import patterns, url from recipes import views urlpatterns = patterns('', url(r'^$', views.IndexView.as_view(), name='index'), # ex: /recipes/5/ url(r'^(?P<pk>\d+)/$', views.DetailView.as_view(), name='detail'), # ex: /recipes/5/edit/ url(r'^(?P<pk>\d+)/edit/$', views.EditView.as_view()...
UTF-8
Python
false
false
439
py
9
urls.py
4
0.626424
0.621868
0
12
35.583333
69
spconger/Householdtasks
17,532,056,512,718
313d3a4aa952cae4a37d91a1ba6c89cc02277dcc
c41010cc8383f6909785bee3eb51476834e5e5d1
/householdtasks/houseapp/views.py
57ca987a217de5968532cafc79a2ce6bde5731d7
[]
no_license
https://github.com/spconger/Householdtasks
8ecea637c759d45227fed58cc4ce88fce06c93c4
94f681678567ba55d986c3a07c81df9065834a80
refs/heads/master
2022-02-25T00:44:13.697230
2019-07-22T02:38:42
2019-07-22T02:38:42
198,132,669
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from .models import Task # Create your views here. def index(request): task_count=Task.objects.all().count() context={ 'task_count': task_count, } return render(request, 'houseapp/index.html', context=context) def allTasks(request): task_list=Task.object...
UTF-8
Python
false
false
408
py
9
views.py
6
0.693627
0.693627
0
14
28.214286
80
yiwangchunyu/CVTR
652,835,075,352
ef006694084676586c72aadec06a672accaff405
b476a55d6943953666f59334913bd5a594fad247
/crnn_ctc/predict_ctc.py
d92f7156f4a83de9cdc4808fee5b2cb78d9afc28
[]
no_license
https://github.com/yiwangchunyu/CVTR
38e7bda64ba55d6f9a01ca6636f54c26a2c81a08
91940a92f2447a34e2bfd1d2fdbf3824818c13e7
refs/heads/master
2021-01-06T16:32:59.072967
2020-05-08T16:05:43
2020-05-08T16:05:43
241,398,728
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import numpy as np import torch from PIL import Image, ImageColor, ImageDraw, ImageFont from torch.autograd import Variable from torchvision.transforms import ToTensor from tqdm import tqdm import crnn_ctc, utils_ctc def process_img(img_path, imgW=160, imgH=32): padding_color=(255,255,255) image =...
UTF-8
Python
false
false
5,444
py
12
predict_ctc.py
8
0.613124
0.582994
0
139
37.928058
154
ritwik1993/dreammissile_hack
9,680,856,336,826
9475d67e9f63d604a338c70e0ca0c7f096a43319
9e73eaad6676cb8702bb101e422dbc8c6c39dcee
/scripts/missile.py
5615fc2f041c49c463c6cc52e71bc5ace8917d97
[]
no_license
https://github.com/ritwik1993/dreammissile_hack
f5b0881e7ec077890954bc18263b41b4bece0bb3
ea9171aba79ff26c436869ebabb11eacf421ef27
refs/heads/master
2016-09-06T15:31:05.939731
2014-10-21T22:01:23
2014-10-21T22:01:23
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import time import thread import rospy import roslib import math from geometry_msgs.msg import Point from sensor_msgs.msg import JointState from std_msgs.msg import String import sys import usb LAUNCHER_NODE = "/dev/launcher0;" LAUNCHER_FIRE = 0x10 LAUNCHER_STOP = 0x20 LAUNCHER_UP = 0x02 LAUNCH...
UTF-8
Python
false
false
1,760
py
12
missile.py
5
0.715341
0.702273
0
91
18.340659
62
benureau/dovecot
5,214,090,299,337
2c526b7a68b2c40326cb4c01fc08fcfa9746f5ff
360650c7f7871e1ea3deaeb0074226bc141a579d
/zoo/ping.py
b218dd09b14e727348d3f03076b9f97b66114f48
[]
no_license
https://github.com/benureau/dovecot
11f3b73754948fd4e6e7f60f230662b153460aef
63eb883b8b0eac3b105a5f0e31708b2e8d4da0a8
refs/heads/master
2021-01-15T09:37:05.259800
2016-02-25T10:07:59
2016-02-25T10:23:39
46,895,394
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import subprocess mac_address = '00:13:f6:01:52:d6' def ping(): ping_response = subprocess.Popen(["ping", "-c2", "-W100", sys.argv[1]], stdout=subprocess.PIPE).stdout.read() ping_lines = ping_response.split('\n')[1:-5] return [ping_line.split()[3][:-1] for ping_line in ping_lines] def macmap(...
UTF-8
Python
false
false
703
py
98
ping.py
91
0.58606
0.55192
0
24
28.291667
113
hmyan90/CV_HDR
11,871,289,611,096
df50987e7988328dd17a8c3031242db32bc0ca49
745e4f7813f6dbcafb1611d6adeb84f4888bd1ac
/Part2_fig/test.py
6d4a2f478aaeaa2f17ef87cc5c410179caf70503
[]
no_license
https://github.com/hmyan90/CV_HDR
f78f23090a5f8541d3e23a6bb3202967d922ef0b
f59abf2eb3d310a63bd77bce3322186f3797131d
refs/heads/master
2020-04-06T07:44:45.840386
2018-11-15T00:43:24
2018-11-15T00:43:24
157,283,845
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import cv2 name = "6667" cnt = 0 img = cv2.imread(name+".JPG") for i in range(0, img.shape[0]): for j in range(0, img.shape[1]): for k in range(0, img.shape[2]): if img[i][j][k] == 255: cnt += 1 print i,j,k,img[i][j][k] print cnt
UTF-8
Python
false
false
308
py
6
test.py
5
0.503247
0.448052
0
15
19.533333
40
kgfig/pcdp-data
154,618,843,855
1226b787075fbaf9805b6533dd7f9e5671de99ca
be50bdc7ef63ebbe54c0357e8b250f038a3ccaa4
/pcdpdata/models.py
321d31c95a3608fd9a726a315c29e2ca5ad79520
[]
no_license
https://github.com/kgfig/pcdp-data
e843e0298d752c3e6d6279834003b566d18050cd
98ab95083753c5b7e2e91ff195edc1f2d238524c
refs/heads/master
2020-04-19T15:18:21.146080
2016-09-06T07:00:34
2016-09-06T07:00:34
67,291,626
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models class Project(models.Model): name = models.CharField(max_length=128) def __str__(self): return self.name class Assessment(models.Model): title = models.CharField(max_length=64) project = models.ForeignKey(Project, on_delete=models.SET_NULL, blank=True, null=True, ...
UTF-8
Python
false
false
1,551
py
12
models.py
11
0.685364
0.676983
0
48
31.291667
121
alliemclean/BioLlama
9,199,819,960,176
2d0e48b84e9db282dfee71635ba1e70cf5f755a4
2d4e60f45e2c14375b5a4bf13337d8e40ba5d746
/biollama/core/__init__.py
f13c43b0e64ed896413bf833ec9dd9f37b77a873
[ "MIT" ]
permissive
https://github.com/alliemclean/BioLlama
4275e02b0e688931e9f25ffc4f981270aa1f1e32
b3d0b01701ff21732dea2af3f84b0b7fa17187a3
refs/heads/master
2021-06-23T19:26:41.493442
2021-06-08T19:55:00
2021-06-08T19:55:00
159,747,357
1
0
MIT
false
2021-06-08T19:55:01
2018-11-30T00:50:40
2020-01-14T16:41:34
2021-06-08T19:55:00
32
2
0
0
Python
false
false
import pandas as pd def get_pos_flds(region): """ return chrom, start, end from genomic region chr:start-end""" chrom, span = region.split(':') start, end = span.split('-') return chrom, start, end def exon_df_from_ref(exon_starts, exon_ends, cds_start=0, cds_end=None, strand='+'): """ :param ...
UTF-8
Python
false
false
1,912
py
12
__init__.py
11
0.512029
0.50523
0
61
30.360656
84
Raj-Parekh24/NUFLIX
17,093,969,843,803
21a854ef77c19a7caccdee33112d684434db722b
02ea7be2d6d335f35c9d0c5fe8421107e5882dcb
/user/urls.py
f75bdab61a1d7c1aee7d92f13be80e8ccc9a32a4
[]
no_license
https://github.com/Raj-Parekh24/NUFLIX
78bca1c9886281bab9e059753192251567f558d4
43c801f0554d2a9fa154ed3ba19330107cee826f
refs/heads/main
2023-03-20T19:56:55.357798
2021-03-17T05:21:42
2021-03-17T05:21:42
320,753,666
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('',views.home,name='home'), path('admin',views.admin,name='admin'), path('se',views.se,name='se'), path('ml',views.ml,name='ml'), path('daa',views.daa,nam...
UTF-8
Python
false
false
565
py
13
urls.py
6
0.690265
0.690265
0
16
34.375
77
lbryio/lbry-android-sdk
1,443,109,045,559
15d9b50babc4c2785eba36740b3d119c6ca93140
32747097a4eae95a85c0e153a797c2689eb76052
/p4a/pythonforandroid/recipes/pyleveldb/__init__.py
61477092f6ab42f2ceba725846bfc07be29e8b30
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "Python-2.0" ]
permissive
https://github.com/lbryio/lbry-android-sdk
fa973940c38c8eb7d81a0b4698fa4de353eaf58c
d9d81957647cb81f7227205cbb4ecba515556e74
refs/heads/master
2022-12-14T10:36:05.641392
2022-11-23T20:03:41
2022-11-23T20:03:41
241,861,403
3
4
MIT
false
2022-12-11T20:47:57
2020-02-20T10:57:08
2022-11-18T20:36:21
2022-12-11T20:44:30
183,046
2
4
6
C
false
false
from pythonforandroid.recipe import CppCompiledComponentsPythonRecipe class PyLevelDBRecipe(CppCompiledComponentsPythonRecipe): version = '0.193' url = 'https://pypi.python.org/packages/source/l/leveldb/leveldb-{version}.tar.gz' depends = ['snappy', 'leveldb', ('hostpython2', 'hostpython3'), 'setuptools']...
UTF-8
Python
false
false
489
py
152
__init__.py
57
0.736196
0.723926
0
13
36.615385
86
Geek-Z/Algorithmic-Study
9,388,798,545,046
49e2628fa1e3bbffb45bebeae9788514b2fbf076
eb145c64fda7760ba5d5337135492a871699a69e
/week6-DP/E53MaximumSubarray.py
c72fcd284d7f5047e6e0eed46c76119985f12e68
[]
no_license
https://github.com/Geek-Z/Algorithmic-Study
a75376a4b2b7d619324117010ec9e189e7807f7b
8eef2656d143e5bc59b787f59b75ebf2d7462750
refs/heads/master
2020-06-27T20:43:52.752986
2019-10-25T14:34:25
2019-10-25T14:34:25
200,044,387
0
2
null
true
2019-08-01T12:14:00
2019-08-01T12:13:59
2019-07-26T10:25:11
2019-06-24T02:24:57
806
0
0
0
null
false
false
from typing import List # Input: [-2, 1, -3, 4, -1, 2, 1, -5, 4], # Output: 6 class Solution: def maxSubArray(self, nums: List[int]) -> int: dp = nums for i in range(1, len(nums)): dp[i] = max(dp[i], dp[i - 1] + nums[i]) return max(dp) g = Solution() print(g.maxSubArray([-2,...
UTF-8
Python
false
false
536
py
49
E53MaximumSubarray.py
47
0.589552
0.522388
0
16
32.5
94
zoomjuice/CodeCademy_Learn_Python_3
12,567,074,321,986
4aed2bf5d6a941b1d4d11347f531febae7d62bb4
2d86a8fae21b88e77f5a5a582ecbf6f035a41936
/Unit 01 - Hello World/01_01_13-PlusEquals.py
910802c692d866d024cba2913c729d35587b6e3d
[]
no_license
https://github.com/zoomjuice/CodeCademy_Learn_Python_3
6dfa32f57165fb30407ef4747259083131837cbb
7eab4f0953d177cbda24ee3b616407e47f854bf9
refs/heads/master
2023-03-14T14:54:03.978392
2021-03-03T14:02:27
2021-03-03T14:02:27
336,159,040
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
total_price = 0 new_sneakers = 50.00 total_price += new_sneakers nice_sweater = 39.00 fun_books = 20.00 # Update total_price here: total_price += nice_sweater total_price += fun_books print("The total price is", total_price)
UTF-8
Python
false
false
231
py
157
01_01_13-PlusEquals.py
155
0.705628
0.649351
0
15
14.4
40
czimi/conduit
12,154,757,490,922
6e2d809f748599301ea17449f34e7abb2b5969e8
bd458748b7fedcb52c9243b4c18ee1d90bc85a74
/test_conduit/test_TC06_listing.py
6a92549375530c7047b05fa9837484650d7d7275
[ "MIT" ]
permissive
https://github.com/czimi/conduit
5408b4d6bb656507179ccbadf69a0bf560a9b1e5
102d24b050271b70a7f1c2c15138a580a5f66953
refs/heads/master
2023-07-12T05:15:12.248798
2021-08-22T18:29:31
2021-08-22T18:29:31
375,459,816
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time from selenium import webdriver from selenium.webdriver.chrome.options import Options from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.common.by import By from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC...
UTF-8
Python
false
false
1,848
py
14
test_TC06_listing.py
13
0.707251
0.695346
0
42
43
147
alex216/codeforce
9,225,589,762,071
0629a76b7bc563d0d428c10ded6a19f2cb469737
84042dbca99df46a707e50a988169391e7be9d4b
/1343_a.py
f5b9ff31696bb8b230b051e8003e1365f6a7b26a
[]
no_license
https://github.com/alex216/codeforce
d166d51985363f7d9f458a65c3a08171580da998
9d01b8e0f59bca9b769c4b2ce88d6fe36f8d3efb
refs/heads/master
2023-07-23T19:39:18.914372
2023-07-12T02:04:39
2023-07-12T02:04:39
264,169,363
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
a = [] for k in range(2,31): a.append(2**k-1) t = int(input()) for _ in range(t): m = int(input()) for d in a: if m%d == 0: print(m//d) break
UTF-8
Python
false
false
187
py
3
1343_a.py
3
0.417112
0.385027
0
11
16
23
IIC2613-Inteligencia-Artificial-2021-2/Grading-1
3,539,053,088,546
ae6b3ba83a764b9b3efd4ce01a0e7ad34654f300
bdb2c66608845da7bb3766e49737e65ac218eb2f
/tests/secret_astar_tie_breaking_test.py
043e722aace645bc9d57e0a3aafa6635b609e39c
[]
no_license
https://github.com/IIC2613-Inteligencia-Artificial-2021-2/Grading-1
5e88b9deea4585d50474caa2d8abfdc459644c7d
3a36ef6398cd80165cc7a5696b73fa82e5ef2695
refs/heads/master
2023-08-19T17:40:59.399569
2021-10-24T20:02:29
2021-10-24T20:06:11
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Tests for A* Search algorithm. """ from search.algorithms.astar import AStar from search.problems.grid.board2d import Grid2D def test_tie_breaking(): state = Grid2D.State((0, 0)) # pylint: disable=invalid-name f = 5 g1 = 3 h1 = f - g1 node_1 = AStar.AStarNode(state, action=None, parent=No...
UTF-8
Python
false
false
964
py
19
secret_astar_tie_breaking_test.py
15
0.561203
0.511411
0
38
24.368421
81
weilin2018/CS_ML_DL_Courses
19,361,712,596,747
f80767118d6c0aba6a6fd9a75807c5d002817900
a9ee46a3a19b9de76af8271d8e9ce888b76ddd40
/ML_A_Z_Hands_On_Python_And_R_(Udemy)/dev/dev_py/multiple_linear_regression.py
5a9dcab7a50b647619cacc28891eccb964fda062
[]
no_license
https://github.com/weilin2018/CS_ML_DL_Courses
1b901bc2d19509e3ac5e015be1e163f3b83f0020
6ecd493dedc15c470aa42dc9e9601d5e7e20a648
refs/heads/master
2020-08-03T14:30:42.169134
2019-09-27T00:57:13
2019-09-27T00:57:13
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Author : Bhishan Poudel; Physics PhD Student, Ohio University # Date : May 09, 2017 # Last update : # # Imports import pydoc import numpy as np #import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('50_Startup...
UTF-8
Python
false
false
2,448
py
292
multiple_linear_regression.py
11
0.714869
0.696487
0
77
30.792208
92
Xeldal/daily_payroll
12,867,722,032,549
24aa523f69bc9437dce24409c735c830ff8c19a6
29fbad5b7c28efb4312fb4b3085c759cd7365d36
/balance_keeper.py
e18e030db0080b4ea77e78180ef94dbdef3c74b3
[]
no_license
https://github.com/Xeldal/daily_payroll
18665a23abdf221cfdb1a08e1447e2a149ae30c8
29f4456379bfc572f0fb0fbbd5a8c0dcf70f0d93
refs/heads/master
2020-12-31T02:01:41.584803
2015-01-12T22:54:28
2015-01-12T22:54:28
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # coding=utf8 # This is a script which connects to a delegate periodically to check if it is time to send a payment # set in the config.json file. It sends the amount to the payto account specified. import requests import sys import os import json import getpass import time import datetime from ...
UTF-8
Python
false
false
4,105
py
2
balance_keeper.py
1
0.608526
0.600974
0
136
29.183824
157
Coderash1998/LeetCode
13,812,614,827,765
549f4ca217567555ee54948b15c19c48f8c9349f
9ee2cab97854e665b297acce1dcc81a0b339f1f2
/824/824.py
2b630874caa0c936373d188b291590e102fc1a1f
[]
no_license
https://github.com/Coderash1998/LeetCode
ebf7a05ccdbad289ce341ca286c10f204cfb8daa
78a416c2f0e00bbc19ba60e585bc58ae2dc811e4
refs/heads/main
2023-08-05T09:15:52.629727
2021-09-14T22:57:22
2021-09-14T22:57:22
325,938,325
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def toGoatLatin(self, S: str) -> str: c=0 x=[] for i in S.split(): h=i if h[0] in "aAeEiIoOuU": c+=1 x.append(h+"ma"+"a"*c) else: c+=1 x.append(h[1:]+h[0]+"ma"+"a"*c...
UTF-8
Python
false
false
349
py
185
824.py
105
0.335244
0.318052
0
13
25
47
cwm-kylin/webmonitor
13,134,010,022,642
9ef2f5a9068e19ad7c156d5155b255f052231da1
4997a36d185de94b78f8a1e0fb1bf11bbf9b3e96
/monitor/webmonitor/templatetags/AppFilter.py
560b73d9dad2ddb4ec722adaa2790dceca9e5360
[]
no_license
https://github.com/cwm-kylin/webmonitor
47a2a0d67b2f1be3bd2e78564b0a9d059ee65966
54c275c40f4a3e2da369e4e9f71c5d1c6bccf9c1
refs/heads/master
2021-01-23T22:11:16.455494
2016-08-16T08:11:52
2016-08-16T08:18:13
65,800,746
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from django import template from webmonitor.public import * from webmonitor.models import MonitorAppInfo register = template.Library() def result_domain(value): return GetURLdomain(value) def result_datetime(value): return stamp2time(value) register.filter(result_domain) register....
UTF-8
Python
false
false
345
py
25
AppFilter.py
17
0.762319
0.756522
0
18
18.111111
44
cacampbell/pythonmisc
2,396,591,798,694
3a7dcce658a318b46579729496e5b98830faa4ec
7f7e98e9947aad5d95b38dbf89f5b9d2b775c9c1
/OasesAssemble.py
ced611870facd4de1ee1f2da9f3da8a6969fb4f8
[]
no_license
https://github.com/cacampbell/pythonmisc
27aab7b7c2edb6b53a662c4f065ad07a383cb92e
d70edf4c695bbe55cf52ae82d025def285f4a1dc
refs/heads/master
2021-01-24T08:08:57.767324
2017-01-18T22:44:30
2017-01-18T22:44:30
50,535,716
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 from sys import stderr from Bash import mkdir_p from VelvetAssemble import VelvetAssemble class OasesAssemble(VelvetAssemble): def __init__(self, *args, **kwargs): super(OasesAssemble, self).__init__(*args, **kwargs) self.set_default("startk", "21") self.set_default...
UTF-8
Python
false
false
2,967
py
101
OasesAssemble.py
101
0.572969
0.566903
0
89
32.337079
91
invm/euler-project
5,257,039,973,836
225a85053f61d47844e16ded6bf41e41e1b11024
a6cba4e4bb2dd96558c5dadc1531e7dfef0f85ea
/16.py
ce0ca3cdda96bd8a4c8294320e8afc5e556fa4ec
[]
no_license
https://github.com/invm/euler-project
6b642e9ae9633e11c406fb687dae2f9dc7a5fbbc
561328a537bb1e98e6ffc85eaedffbf32eea9b3a
refs/heads/master
2020-12-10T06:52:41.659750
2020-01-14T07:21:18
2020-01-14T07:21:18
233,529,250
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 # 215 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26. # What is the sum of the digits of the number 21000? def count_sum_of_digits(num): n = num total = 0 while n > 0: total += n % 10 n //= 10 return total print(count_sum_of_digits(pow(2, 1000)))
UTF-8
Python
false
false
317
py
13
16.py
12
0.564669
0.463722
0
17
17.647059
66
elizlieu/Panlex
3,324,304,707,266
fcf0515ad3b61e9d1337251d711b5e678fbb5f6e
958204a905955e5548a751b82c4a3b445f544f0e
/done/opm-eng-tpi-Lawrence/opm-eng-tpi-Lawrence-0to1.py
265767611f7dfd0865ce43df504b1c1d65cf7125
[]
no_license
https://github.com/elizlieu/Panlex
111f5545f8f9df3b3b649e8f1deb4fe906053aad
30be6a79b4f194b40e02a672ee8808dd1d02a713
refs/heads/master
2019-01-16T10:41:39.264670
2016-11-12T12:21:55
2016-11-12T12:21:55
73,549,225
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- ### Elizabeth Lieu ### 7/29/2016 import regex as re import copy from ben.panlex import * base_file_name = 'opm-eng-tpi-Lawrence' version = 0 lv_list = [ 'opm-000', 'eng-000', 'tpi-000', ] source = [] with open(base_file_name + '.txt', 'r') as f: text = f.read() prev...
UTF-8
Python
false
false
575
py
14
opm-eng-tpi-Lawrence-0to1.py
14
0.587826
0.549565
0
32
17
88
felipedbene/oktank-video
1,803,886,277,388
bd77819be970e56867fe7b8db24bb4a28c091b51
a3d82436578560e999c8a1fda7fd1ec0c0173beb
/tk3.py
68708fb9873d50010a54cb6c5132b481bf2cd1b2
[]
no_license
https://github.com/felipedbene/oktank-video
9796da90df33f7d3583f440a610cba93d9b526b3
5fc6231796a9e6a2fb24109a8f3b892d3e3abe1a
refs/heads/master
2020-12-08T20:26:08.631684
2020-01-10T16:24:10
2020-01-10T16:24:10
233,085,980
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import os image_folder = '.' video_name = 'video_sorted.mp4' images = [img for img in os.listdir(image_folder) if img.endswith(".jpg")] images.sort() frame = cv2.imread(os.path.join(image_folder, images[0])) height, width, layers = frame.shape # Define the codec and create VideoWriter object fourcc = cv2....
UTF-8
Python
false
false
657
py
1
tk3.py
1
0.713851
0.69102
0
24
26.416667
74
AdityaVikramSingh21/Miscellaneaus
11,854,109,782,726
bc08552cd798dcce949c7a080d462fdbc42409f4
e0b6df3e9176fb3a3e85ea41b01d91ae1e03c646
/NMI.py
2d47fdde8cd22984b0a58cf52d13027acb392420
[]
no_license
https://github.com/AdityaVikramSingh21/Miscellaneaus
78e44c6306e7a164515bf0b2b4bb8a16d602d0ea
bceb3a3b7cf4320122385895f68b19e10fe855b4
refs/heads/master
2020-05-18T22:15:27.807088
2020-01-27T10:07:25
2020-01-27T10:07:25
184,687,424
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import print_function from pyspark.sql import SparkSession import math as m from pyspark.sql import functions as F from pyspark.sql.types import IntegerType,FloatType from pyspark.sql.functions import lit,expr,udf,row_number,col from pyspark.sql.window import Window import itertools import numpy as np ...
UTF-8
Python
false
false
7,260
py
6
NMI.py
2
0.579752
0.560882
0
138
51.615942
183
Seite50/seite50
12,515,534,748,875
8d1a88f3b22b571d2bcd11064997f80ec7d26008
60de5f7e6a5cfe2598df6e1ac21a80be7bf14e87
/api/tests/__init__.py
e40250dd3d195fd4f2751d1f85e4a9d50c46518d
[ "Apache-2.0" ]
permissive
https://github.com/Seite50/seite50
154ed8861a262a3f09b01ad0a788e0413e729124
761a8e76f9e4473f70a8705dce169d61bf660267
refs/heads/master
2021-06-09T02:08:42.594803
2020-02-12T17:24:46
2020-02-12T17:24:46
129,201,104
0
1
Apache-2.0
false
2021-03-19T22:00:29
2018-04-12T06:02:39
2020-02-12T17:24:49
2021-03-19T22:00:29
50
0
1
3
Python
false
false
from .book_model import * from .book_view import * from .author_model import *
UTF-8
Python
false
false
79
py
22
__init__.py
17
0.734177
0.734177
0
3
25.333333
27
Shrosy2511/werken-met-gegevens
2,061,584,332,290
0b0882bb25e53bc3e2aa239843d5df1e2dcccd21
8eb630c1de4e2d5a4c3861f8cbaac5fa27b0241c
/feestlunch.py
b7ed26c037205e4a51ad0bc40856471edad9e00d
[]
no_license
https://github.com/Shrosy2511/werken-met-gegevens
4e029d690aafbae172c7297c97e5446a6be8f4ef
3e305f815f24636399d63ce6efebf1151ac7d64d
refs/heads/main
2023-07-22T15:08:15.565656
2021-09-11T08:35:17
2021-09-11T08:35:17
405,006,553
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
crossaint = 0.39 stokbrood = 2.78 kortingsbon = 1.50 hoeveelheid = 17 aantal = 2 factuurtekst = 'de feestlunch kost bij de bakker ' + str((hoeveelheid) * (crossaint) + (aantal) * (stokbrood) - (kortingsbon)) + ' euro voor de 17 croissantjes en de 2 stokbroden als de 3 kortingsbonnen nog geldig zijn!' print(factuurteks...
UTF-8
Python
false
false
323
py
2
feestlunch.py
2
0.727554
0.678019
0
8
39.375
220
ariel-brassesco/CS50-Project3
910,533,100,713
7ad13a287792ee86ca7cdf413aae4595d9502089
499715b1ba009b2081547bbf70a2f9ef02ca1162
/orders/migrations/0010_auto_20200505_1804.py
08a31d14f6ae66afb7537701c7b7f53260bb113c
[]
no_license
https://github.com/ariel-brassesco/CS50-Project3
09f84030ad3d93ec4af2871bf00e2b04dd974894
cd7b99965f9f391b73bcfbd33d3a41fc36f2fbb2
refs/heads/master
2023-08-11T12:16:06.021418
2020-06-20T19:20:00
2020-06-20T19:20:00
273,132,885
0
0
null
false
2021-09-22T19:16:02
2020-06-18T03:28:28
2020-06-20T19:20:24
2021-09-22T19:16:02
4,201
0
0
2
Python
false
false
# Generated by Django 3.0.4 on 2020-05-05 18:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orders', '0009_product_image'), ] operations = [ migrations.AddField( model_name='product', name='max_add', ...
UTF-8
Python
false
false
818
py
84
0010_auto_20200505_1804.py
48
0.555012
0.525672
0
31
25.387097
71
ZimmermanGroup/pyGSM
17,540,646,467,609
7dd288ba4794134bcee089485bbd7593969a52a4
5952bdeb83ae935ad3bea1ef526834e0a5707096
/pyGSM/level_of_theories/pytc.py
5f3cdea06ad7e19c2a2914628e26d96f284178dc
[ "MIT" ]
permissive
https://github.com/ZimmermanGroup/pyGSM
59780b8b1b40c14a7ae74cf16d20988574332989
3b920bb11953f49673d3a2e87ee474b6315a0b4c
refs/heads/master
2023-07-06T12:55:26.520360
2023-06-28T19:49:14
2023-06-28T19:49:14
152,341,841
45
30
MIT
false
2023-06-28T19:30:16
2018-10-10T01:01:17
2023-04-14T13:56:57
2023-06-28T19:17:59
3,816
39
22
19
Python
false
false
# standard library imports from .casci_lot_svd import CASCI_LOT_SVD from .rhf_lot import RHF_LOT from utilities import * from .base_lot import Lot import sys from os import path # third party import numpy as np import lightspeed as ls #import psiw import est import json # local application imports sys.path.append(pat...
UTF-8
Python
false
false
11,144
py
73
pytc.py
62
0.551059
0.545406
0
325
33.289231
110
x5698lk/pythoon-machine-learning
11,261,404,274,080
2ea5ca7908b9a651f2df890a11bc10af4776b7f2
c08f2115cfe53f7103a6544de0415c7efe0d1fc4
/test.py
738f6eeac680c02e0fd3b9dba36903fe7f1877d3
[]
no_license
https://github.com/x5698lk/pythoon-machine-learning
ecaced76271d1579b6f4023de6acce4030c448bd
3a9fab34b7e1df198a09a28974d9af6e3395648e
refs/heads/master
2022-11-11T03:01:30.918880
2020-06-29T10:18:32
2020-06-29T10:18:32
275,784,759
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import * import matplotlib.pyplot as plt from tensorflow.keras.preprocessing.image import ImageDataGenerator batch_size = 128 epochs = 10 IMG_HEIGHT = 150 IMG_WIDTH = 150 model = Sequential([ Conv2D(16, 3, pad...
UTF-8
Python
false
false
2,789
py
2
test.py
1
0.567725
0.53012
0
80
33.25
97
nagareproject/examples
4,999,341,968,398
69369c78381f9f35c9740c81ed5cb72ab105e665
591f05ab526016c0d35c638b36a648668a296236
/nagare/examples/portal/calculator.py
eeade11e16f1c1d284dbfcb23fb2abd87bd93dfc
[]
no_license
https://github.com/nagareproject/examples
10b35b55b543481834aa3899a4b8fd89a7ae3b19
ef0476578e9618af37e06965d010a83cf933396a
refs/heads/master
2020-06-05T05:04:51.138314
2017-10-24T10:52:54
2017-10-24T10:52:54
4,214,531
5
2
null
null
null
null
null
null
null
null
null
null
null
null
null
# -- # Copyright (c) 2008-2017 Net-ng. # All rights reserved. # # This software is licensed under the BSD License, as described in # the file LICENSE.txt, which you should have received as part of # this distribution. # -- import operator from nagare import presentation class Calculator(object): def __init__(sel...
UTF-8
Python
false
false
3,766
py
56
calculator.py
36
0.47265
0.442645
0
141
25.70922
90
DevanshArora-2002/CO_Proj1
8,744,553,428,964
8120f79cabb5c68dde863c646df3e8f6b2c8fa8c
bcf58cea44c67eb7b5b15f857a58b09fa5d270ce
/SimpleSimulator/shift_func.py
8b051dc13ab304b0c8873c760024dc917da936b2
[]
no_license
https://github.com/DevanshArora-2002/CO_Proj1
41fc0e15247c8cf1629967b00e4e50117f54aaec
5695eff4ca1c718fe21abebbaabfea3d1a4da42d
refs/heads/master
2023-07-17T15:19:16.229160
2021-08-26T14:59:56
2021-08-26T14:59:56
395,772,718
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from binary_to_decimal import binary_to_decimal from decimal_to_binary import decimal_to_binary def ls_func(register_file,reg_code1,imm): dict = {'000': 0, '001': 1, '010': 2, '011': 3, '100': 4, '101': 5, '110': 6, '111': 7} str_val1=register_file[dict[reg_code1]] val1=binary_to_decimal(str_val1) imm1=...
UTF-8
Python
false
false
840
py
20
shift_func.py
20
0.640476
0.538095
0
20
41
91
geek8565/build-kg-from-scratch
8,126,078,173,381
5ed6a7747ae161402783f72a66137d625d679ee1
596a6675370c8b14d23661b4d86782a273eff3a3
/ch6/6.3/kgqa/util/tools.py
d5390f38f9f098087f254d1a5f9e9a698fc67f6b
[]
no_license
https://github.com/geek8565/build-kg-from-scratch
b7478df4a0d61713eb7d70d85cc05452192bb206
776e59b8b14ca104872957c78187c779f0abb012
refs/heads/main
2023-07-26T06:33:47.507119
2021-09-12T13:04:27
2021-09-12T13:04:27
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding:utf8 -*- __author__ = 'winnie' import re import json from collections import OrderedDict class Utils(): punc_ch = "[!?。。"#$%&'()*+,-/:;<=>@[\]^_`{|}~⦅⦆《》「」、、〃》「」『』【】〔〕〖〗〘〙〚〛〜〝〞〟〰〾〿–—‘’‛“”„‟…﹏]" punc_en = "[!\"#$%&\'()*+,;<=>?@[\\]^_`{|}~]" punc_ch_pattern = re.compile(p...
UTF-8
Python
false
false
4,487
py
126
tools.py
86
0.498251
0.476091
0
131
31.717557
108
krallistic/presentations
19,370,302,520,040
77f1f5e10ea66c71e4dbb652c0095eab570ca1c1
e9f39211022e6f2705945ff9750a6aac4ee2730b
/data2day-17/examples/basic-mnist/mnist.py
ce0cdb562c599fc1b570109a45c8b6e21a6bcb73
[]
no_license
https://github.com/krallistic/presentations
4ff66f93173c012c29f32697ebb46ba862606321
9adfb84949fe6b25dec2bf3d1d87d311083439fa
refs/heads/master
2021-01-22T20:13:11.746865
2017-11-30T15:30:54
2017-11-30T15:30:54
85,296,886
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf import argparse import sys import time from tensorflow.examples.tutorials.mnist import input_data # reset everything to rerun in jupyter # config batch_size = 100 learning_rate = 0.01 training_epochs = 10 def main(_): # load mnist data set mnist = input_data.read_data_sets('MNIST_d...
UTF-8
Python
false
false
3,415
py
31
mnist.py
12
0.595608
0.582723
0
115
28.66087
115
manthan99/swarm_search
10,960,756,576,226
d86798ed3b1d305c6247cb24ea01b2b8e160fba8
d8cbf9bad5a92b31e3b1e3e661c0ece290ec0b88
/local_navigate.py
fa99e471ae3bbee3bd02c08957fe8d27276cbf63
[ "MIT" ]
permissive
https://github.com/manthan99/swarm_search
a2078a38dd840721f6e69c6c91443a5c9d9fdc59
3857edde0238c2f5d83a33c8969e6e3e3b9a3dcf
refs/heads/master
2022-04-02T08:57:10.565490
2020-01-05T16:13:46
2020-01-05T16:13:46
272,955,589
1
0
MIT
true
2020-06-17T11:24:15
2020-06-17T11:24:15
2020-02-18T02:44:03
2020-01-05T16:13:47
6,138
0
0
0
null
false
false
#!/usr/bin/env python import rospy import mavros from math import * import thread import threading import time from mavros.utils import * from mavros import setpoint from tf.transformations import quaternion_from_euler from geometry_msgs.msg import * class SetpointPosition: def __init__(self): self.x = ...
UTF-8
Python
false
false
2,892
py
54
local_navigate.py
33
0.565698
0.552559
0
103
27.07767
151
katetushkan/PIRIS
7,258,494,782,940
25954c431a6e3c864d40491c547451eeddc49256
3bbc5340893e6666a89f400ca92b6cf36f773a3e
/atm/utils.py
8288c7e5db8c5b22464a5547774bef5a95999b93
[]
no_license
https://github.com/katetushkan/PIRIS
dc68a9331fff3d82c0ddc709e4798df90750ac3c
f908f4cc3bfb88476d3a1017b9449733ecdb0d81
refs/heads/master
2023-03-21T11:48:04.161023
2021-02-28T16:08:55
2021-02-28T16:08:55
343,147,455
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from fpdf import FPDF def create_check(date, price, balance, card_number, type): pdf = FPDF(orientation='P', unit='mm', format='A4') pdf.add_page() pdf.set_xy(10.0, 80.0) pdf.set_font('Arial', 'B', 14) pdf.set_text_color(0, 0, 0) if type == "balance": text = f""" Check for oper...
UTF-8
Python
false
false
1,006
py
35
utils.py
18
0.44334
0.427435
0
36
26.972222
58
randomUser8096/python
8,237,747,297,048
86d6870ccbb485aaa647157bd5b1d5b2ed639a77
90e37fac102091d39851233cd4f6d58e68f3bed1
/dphowSum.py
560dffdb9673ed77719f5c65a17c8a257d3f1f44
[]
no_license
https://github.com/randomUser8096/python
de6d683aa386ea03019eb63381ecf3e126836f20
29b4c7c8e5c991633e619b18bfb7bb8d66af7c43
refs/heads/master
2023-04-25T05:47:37.158960
2021-08-26T10:52:51
2021-08-26T10:52:51
361,334,384
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def howSum(sum, arr): if sum <0: return None if sum ==0: return [] for num in arr: k = sum-num j = howSum(k,arr) if (j != None): j.append(num) return j #time -> n^m *m #space -> m def howSum2(sum, arr, memo = {}): if sum in memo: ...
UTF-8
Python
false
false
701
py
32
dphowSum.py
31
0.417974
0.400856
0
36
18.5
33
seandst/linch-pin
14,439,680,061,849
7cbb01dcb261ffbe9f8b8667189721a6fa1a2e58
925206a15e67e718013dd95fe16a62616764c34a
/linchpin/api/__init__.py
6f59ff5677a33a58c2e20bed9af2f453f55c1932
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
https://github.com/seandst/linch-pin
8bbccf69209e2d6eca0b10d6a21ff17bc355e4b0
427b6fb61f550a4d1120ac94c55d121fbecd70a6
refs/heads/develop
2021-01-19T20:38:12.300527
2017-04-08T22:13:10
2017-04-08T22:13:10
88,527,489
0
0
null
true
2017-04-17T16:29:08
2017-04-17T16:29:08
2017-04-04T20:33:01
2017-04-08T22:13:11
10,315
0
0
0
null
null
null
import os import sys import inspect import ansible import pprint import requests import jsonschema as jsch from tabulate import tabulate from ansible import utils from collections import namedtuple from ansible import utils from ansible.parsing.dataloader import DataLoader from ansible.vars import VariableManager from ...
UTF-8
Python
false
false
14,570
py
5
__init__.py
4
0.534592
0.533905
0
328
43.420732
109
GHAGG/ITAO-Coding-Journal
15,393,162,821,820
7db390b208d3de844204d74b682870d41389f5b3
a2bfa88775ac41c1f9342168fb636e1a76085711
/drinks.py
9c6b2feadd617ecc0d0a7096fadd40d6a5558d09
[]
no_license
https://github.com/GHAGG/ITAO-Coding-Journal
d412cc1bea52552c71adbc3423895c05644c8c39
edcfa32e5f90f750483565177d1b1fe86f15fb35
refs/heads/main
2023-08-24T15:14:52.029041
2021-10-07T22:06:22
2021-10-07T22:06:22
404,051,199
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Drink: def __init__(self, syrup = "Water", water = "plain", calories = 0, iceratio = 0): self.syrup = "water" self.water = "plain" self._calories = 0 self.iceratio = 0 def __repr__(self): return self.syrup def cal(self): return self._calories ...
UTF-8
Python
false
false
1,228
py
11
drinks.py
11
0.538274
0.526059
0
40
28.7
85
fpsebastiam/live-de-python
10,926,396,819,148
b867e63bb28e47018fd6fe6e701a0436c9cf3c5a
62b748a4f6e7c4eeff7160aecec38d6cf2151316
/codigo/Live119/pipe_and_filter/exemplo_1.py
4acf2fe6bfe9b3a106a6ff5ef03ec5a10829fda4
[ "MIT" ]
permissive
https://github.com/fpsebastiam/live-de-python
5675f9683294262dccfcb991bd9609b3d3bb0ecd
054b412b5646a6ecc88fea50fe1cd930797ec0e1
refs/heads/main
2023-07-22T12:40:58.435786
2023-07-04T03:32:37
2023-07-04T03:32:37
378,723,143
0
0
MIT
true
2021-06-20T19:19:03
2021-06-20T19:19:02
2021-06-20T19:16:17
2021-06-15T02:41:43
374,396
0
0
0
null
false
false
from typing import Text class Pipeline: def __init__(self, *filters): self.filters = filters def __call__(self, value): final_value = value for filter in self.filters: final_value = filter(final_value) return final_value def limpa_texto(texto: Text): return ...
UTF-8
Python
false
false
1,423
py
1,077
exemplo_1.py
831
0.579986
0.579986
0
67
20.179104
72
cms-sw/cmssw
17,798,344,511,758
3faabe8233dcfad57d00f7f2e4c2a018938056f9
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/DPGAnalysis/MuonTools/python/muNtupleProducer_cff.py
993e2e1098e9097dc040cad5941e51dae95ed13b
[ "Apache-2.0" ]
permissive
https://github.com/cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
false
2023-09-14T19:14:28
2013-06-26T14:09:07
2023-09-09T18:47:07
2023-09-14T19:14:27
1,330,249
980
4,104
807
C++
false
false
import FWCore.ParameterSet.Config as cms from PhysicsTools.NanoAOD.common_cff import * from DPGAnalysis.MuonTools.nano_mu_digi_cff import * from DPGAnalysis.MuonTools.nano_mu_local_reco_cff import * from DPGAnalysis.MuonTools.nano_mu_reco_cff import * from DPGAnalysis.MuonTools.nano_mu_l1t_cff import * muNtupleProdu...
UTF-8
Python
false
false
1,355
py
46,375
muNtupleProducer_cff.py
40,422
0.689299
0.687823
0
28
47.392857
103
douglascarlini/examples
4,131,758,547,762
a39e16c55b08039d034486b806d088239cc4e055
ccc16a23ab917da18eed4c1f66efc00914c39510
/python/face-detection.py
367499eff576d15ed264f83acc91cb0e8b0199a5
[]
no_license
https://github.com/douglascarlini/examples
409a723a40801139cb2274efefefa5a4c6f2dd80
5045ec35de9962d005e319c8e69d3ddb87c63a7e
refs/heads/master
2022-12-04T16:55:49.953625
2020-08-07T06:34:46
2020-08-07T06:34:46
285,750,087
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Author: https://github.com/douglascarlini # pip install face-recognition # pip install opencv-python import face_recognition as fr import cv2 cap = cv2.VideoCapture(0) while True: _, frame = cap.read() rgb = frame[:, :, ::-1] faces = fr.face_locations(rgb) for y1, x2, y2, x1 in faces: ...
UTF-8
Python
false
false
476
py
5
face-detection.py
3
0.598739
0.546218
0
27
16.592593
64
Influencer/HTPC-Manager
755,914,258,430
7b14aa893333a599f3b5375012d7b781903edff9
4b88451dc6e9950cf09d9b9ace42c7069fa53f2b
/modules/sickbeard.py
1a24260efda058156f9015c4beffbc73ddbb1f08
[]
no_license
https://github.com/Influencer/HTPC-Manager
d6a0ba66db84d0550506128ab5d482c413983b24
9a43b3544c3fb36f5fb79c1defc2c224dded3284
refs/heads/master
2019-05-08T09:20:29.582029
2012-09-03T22:00:45
2012-09-03T22:00:45
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os, cherrypy, htpc from urllib import quote from urllib2 import urlopen from json import loads class Sickbeard: def __init__(self): htpc.modules.append({ 'name': 'Sickbeard', 'id': 'sickbeard', 'test': '/sickbeard/ping', 'fields': [ {'t...
UTF-8
Python
false
false
2,915
py
12
sickbeard.py
9
0.565009
0.562607
0
89
31.752809
96
teamWSIZ/python1-2020
17,334,488,029,779
c9100a4f7b9d8844b21e5db2cefea935a86e18fd
17c10f0677db31713ac721845c8b2ead5d64d0fa
/_algorytmy/sudoku/encoding.py
e64cdd3f2d1fa5a0d99bd2b6a89a2b6f8e66a51d
[]
no_license
https://github.com/teamWSIZ/python1-2020
0a2e5f03d980082534e2032c3e9172ff23dbedb7
cac1646c6c766aa96de5fc8c36d85d12ce0e7da2
refs/heads/master
2023-08-01T01:38:18.888641
2021-09-15T13:21:50
2021-09-15T13:21:50
302,949,303
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Kodujemy rząd pozycji 00 00 00 00 4x2B... rząd wartości = 8bitów = 1B flaga... 4-bitowa...maska zer rzędu = 4bity = 0.5B ... ==== łącznie 12 bitów na rząd... czyli 48 bitów na board ... zmieści się w pojedynczym int-cie 8-bytes... """ from typing import List # b = [[0, 0, 0, 1], [1, 0, 2, 3], [0, 1, 2, 4], [0,...
UTF-8
Python
false
false
1,735
py
195
encoding.py
181
0.506969
0.4036
0
78
21.076923
82
jgmize/nucleus
4,904,852,677,560
1e355b23e11c18d6c425c864631c7616cf14b41a
dfc0288b0d69de3e044b685b4d3f92cbd8a536b4
/nucleus/urls.py
c912f1ff2dd588849093da696727fb679864e800
[ "BSD-3-Clause" ]
permissive
https://github.com/jgmize/nucleus
cdfead9afd60f76bc59ac621dad46ef83b352428
1fd9d069103b7be00f5815ae1f3eac6ba0e3530d
refs/heads/master
2020-04-08T10:07:14.115162
2015-12-17T20:38:06
2015-12-17T20:38:06
12,463,026
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf import settings from django.conf.urls.defaults import patterns, include, url from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.http import HttpResponse from django_browserid.admin import site as browserid_admin_site from funfactory.monkeyp...
UTF-8
Python
false
false
1,172
py
26
urls.py
16
0.709898
0.709898
0
37
30.675676
88
serccakir/web-app
16,827,681,872,493
e14409d0babaf6f5c0486137b575d771be80eb18
ed8ab98a13d0ec701e03f28366bb752301d3bb23
/frontend/urls.py
53b2e1b947f43461f452c331eead761124ff3df9
[]
no_license
https://github.com/serccakir/web-app
a8825680118aaa3946aab2ba02657e031838ab77
9ac38ad8661af77b854c6a31e1e5bb6b85223cc5
refs/heads/master
2023-02-23T08:59:49.696291
2023-01-10T20:20:48
2023-01-10T20:20:48
334,659,617
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import url, include from django.views.generic.base import RedirectView from .views import countries urlpatterns = [ url(r'^$', RedirectView.as_view(url='static/index.html', permanent=False), name='index'), url(r'^countriesdata/', countries, name='countries'), ]
UTF-8
Python
false
false
293
py
12
urls.py
8
0.733788
0.733788
0
9
31.666667
93
CNXTEoE/pyquil
10,625,749,123,459
93c7bdf7cc6de9b6d0180d83abf0a52e913fcb95
9e9ba8e8b9ee7e6b63193c472dbbc17fc258a0a6
/pyquil/tests/test_resource_manager.py
981d93e78283b97388e3fa978feba197f6692960
[ "Apache-2.0" ]
permissive
https://github.com/CNXTEoE/pyquil
56d52d5d31407103910e0e091138c812fc40e476
3df1ec586053a3f6b38c39b77df10f89d1cb88ca
refs/heads/master
2017-07-31T19:17:12.637028
2017-07-17T19:53:16
2017-07-17T19:53:16
95,025,296
1
0
null
true
2017-06-21T16:42:03
2017-06-21T16:42:03
2017-06-21T16:23:54
2017-06-21T16:38:00
655
0
0
0
null
null
null
from pyquil.resource_manager import * import pyquil.quil as pq from pyquil.gates import * import pytest @pytest.fixture def five_qubit_prog(): p = pq.Program() qubits = [p.alloc() for _ in range(5)] p.inst([H(q) for q in qubits]) return p, qubits def test_alloc(): p, qubits = five_qubit_prog() ...
UTF-8
Python
false
false
1,381
py
16
test_resource_manager.py
9
0.635771
0.624185
0
50
26.62
94
HuangOwen/NLP-learning
2,130,303,788,516
704c509b7a8a240b52f4f9e9c27595284137c149
c5356e57101c5e7c35b78e2bc9c819bf0ff6473e
/jieba_freq_calc.py
bd9784014dc67744663d8ce25f8e72cf3d7c05fa
[]
no_license
https://github.com/HuangOwen/NLP-learning
bd7e969634d5d883ced860984140d2d670d17994
c110477b7c75f3fe73642456937243469b7f637c
refs/heads/master
2018-02-08T04:02:10.066646
2018-01-29T06:13:05
2018-01-29T06:13:05
96,376,364
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -----------词频统计-------------------------- import jieba with open('路人女主的养成方法.txt','r') as article: words = jieba.cut(article.read()) word_freq = {} for w in words: if w in word_freq: word_freq[w] += 1 else: word_freq[w] = 1 freq_word = [] for w, ...
UTF-8
Python
false
false
622
py
6
jieba_freq_calc.py
1
0.488255
0.483221
0
19
29.157895
56
JacklineKigombe/Jenga-School-Lecture-9-assignment
10,488,310,184,617
4bfacd9c72e829688b5f1c875b335be41604322c
8f99303bc6f3477bcdf3d1bc85ee85680fbeb12f
/assignment4.py
843a578974040827d7a3238c02f48b2985afde87
[]
no_license
https://github.com/JacklineKigombe/Jenga-School-Lecture-9-assignment
295bc178aaa65e09e2f810838568f008a7c0f2df
efcf92be9861bffb42a158693a91fbf48942c3d8
refs/heads/main
2023-08-21T02:33:24.507088
2021-10-31T17:53:33
2021-10-31T17:53:33
420,386,756
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#This function computes the factorial #of a number entered by the user def factor(): n = int(input("Please enter a whole number: ")) fact = 1 for factor in range(1, n+1): fact = fact * factor print("The factorial of ",n," is",fact) factor()
UTF-8
Python
false
false
268
py
6
assignment4.py
5
0.626866
0.615672
0
12
21.333333
51
arianasatryan/physionet-challenge-2020
1,872,605,770,887
858052a2edb379fc37031b6cedf589bb94af04f5
e1d94f57eb846d99d5494f2d5b4256cfaaccab86
/kardioml/segmentation/teijeiro/model/FreezableObject.py
9443f4788329fa23c6f09f008f1b15fb755c2507
[ "BSD-2-Clause" ]
permissive
https://github.com/arianasatryan/physionet-challenge-2020
99638860759b769cc8552144bbd4aea5eb29a9db
c6f1648a148335babc0a26d8a589120616327548
refs/heads/master
2023-03-15T04:49:09.977797
2020-08-24T18:06:25
2020-08-24T18:06:25
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # pylint: disable-msg=C0103 """ Created on Tue Jul 2 19:44:31 2013 @author: T. Teijeiro """ from abc import ABCMeta import copy class FreezableMeta(ABCMeta): '''The metaclass for the abstract base class of Freezable objects''' def __new__(mcls, name, bases, namespace): fiel...
UTF-8
Python
false
false
4,975
py
205
FreezableObject.py
118
0.572261
0.563417
0
157
30.687898
79