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
NickSKim/csci321
8,572,754,757,915
d1d48deab6a8a6b783edd7ac396c0ba12a6ecb0c
5486779c8ff01bfdbd3a6b3264ff896e0594eb87
/PygameDemos/0800gatherers/goodies.py
458153bcc6a8684c2f74f0c4869f7ff4fd4e3ad4
[]
no_license
https://github.com/NickSKim/csci321
b10c1df202628945110c20a9160b246e41f39041
0dcffcb921ff50ddae02d5acfff387d4fbfaa1c3
refs/heads/master
2021-08-23T18:17:59.732956
2017-12-06T00:16:25
2017-12-06T00:16:25
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame,random,sys from pygame.locals import * from GM import utilities from GM.statemachine import StateMachine, State from GM.vector import * import GM.makeimage from functions import closest from constants import * class Goody(pygame.sprite.Sprite): def __init__(self, pos, world, *groups): ...
UTF-8
Python
false
false
645
py
255
goodies.py
127
0.654264
0.654264
0
21
28.428571
63
sczhan/wode
16,569,983,869,388
34529f2828e69106d09d00d3cfdf97bb1e36417b
5916383e8d3df886edd20ac00ce9706a78078f56
/xitike(ไน ้ข˜่ฏพ)/xitike(็ฌฌ6็ซ ็ˆฌ่™ซไธŽๅฎž่ทต)/linux/02_agent.py
efa6fb0cfd11931888836eb0f1cd55bce99d8662
[]
no_license
https://github.com/sczhan/wode
556154e8ccaa9192ea257bc88df3c5e4b268f88e
af4c721d0cedfdd2fe01dd681539724d1d64c378
refs/heads/master
2021-07-06T22:26:34.465708
2020-09-04T18:56:38
2020-09-04T18:56:38
181,295,279
1
0
null
false
2019-09-09T16:30:00
2019-04-14T10:53:57
2019-09-06T13:03:28
2019-09-09T16:29:59
198
0
0
0
Python
false
false
""" http://www.langlang2017.com/index.html http://www.langlang2017.com/route.html http://www.langlang2017.com/FAQ.html """ import random from urllib import request def spider(url: str): user_headers = [ "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.26 Safari...
UTF-8
Python
false
false
1,155
py
258
02_agent.py
194
0.648099
0.559682
0
38
28.789474
162
bulainarciss/Nyan-Cat-Russian-Version
4,904,852,685,450
c1736d7e0d75eac5b81f42d51978562df714e3be
58806bd2a43da54a101e2b1339f348deb4c7fec1
/nyan_cat.py
f6ba8ed548f6440dd406b4ce72541802af17e6bb
[]
no_license
https://github.com/bulainarciss/Nyan-Cat-Russian-Version
0b5f98247521b5bfed2561026cb57c61d2813b58
8cdaaafd17b29f4bec0d9fb91829520d4180d264
refs/heads/master
2023-01-29T09:22:30.531440
2020-12-08T14:36:07
2020-12-08T14:36:07
319,663,101
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame class Cat(): def __init__(self, nc_game): self.screen = nc_game.screen self.settings = nc_game.settings self.max_roation =self.settings.cat_roation self.gravity = 9.8 self.tilt = 0 self.tick_count = 0 self.vel = 0 self.rot_vel = self.set...
UTF-8
Python
false
false
1,187
py
6
nyan_cat.py
6
0.559393
0.536647
0
41
27.902439
78
ki93/TIL
12,850,542,178,178
b4af0ece8c2fd6abd84b3918bb7633bf25ceebdb
e74bf697595c2d3bf9a9753613dd82490ab5dc4c
/django/source/Day02/quiz.py
d016a4c830d44914e23cc0be7469b5a8db09fce9
[]
no_license
https://github.com/ki93/TIL
25f674465e03d16d8819af05d987099c1cfb7e23
d027642f3c2b2718ec4b9c062556fc7efa8bd3f7
refs/heads/master
2020-05-26T19:42:08.834996
2019-12-10T08:49:56
2019-12-10T08:49:56
188,350,275
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import requests import time #Quiz # 1. ํ‰๊ท ์„ ๊ตฌํ•˜์„ธ์š” scores ={ "์ˆ˜ํ•™" : 90, "์˜์–ด" : 87, "ํ•œ๊ตญ์ง€๋ฆฌ " : 92 } sum=0 for key, value in scores.items(): sum=sum+value avg1=sum/len(scores.keys()) print(avg1) # 2. ๊ฐ ํ•™์ƒ์˜ ํ‰๊ท  ์ ์ˆ˜์™€ ๋ฐ˜ ํ‰๊ท ์„ ๊ตฌํ•˜์„ธ์š” scores = { "aํ•™์ƒ" : { "์ˆ˜ํ•™" : 80, "๊ตญ์–ด" : 90, ...
UTF-8
Python
false
false
3,711
py
431
quiz.py
250
0.529839
0.51342
0
137
22.116788
120
iuni-cadre/DataPipelineAndProvenanceForCADRE
16,896,401,366,278
b86dca86848f4fab57b0c1964fb92abf6874f284
c9834a72051a685857a8abd615747c1a18de6296
/uspto20220630/check_exports.py
37cbf5fa68737d182557a12eb391425e516636ac
[]
no_license
https://github.com/iuni-cadre/DataPipelineAndProvenanceForCADRE
fc9a5a7aa5dfc60b274928bd16b3f7879939c31c
508712bcf6ac46edc3edea07e14cbc2c7f3fba9e
refs/heads/master
2023-07-05T19:48:44.319934
2023-06-26T14:55:07
2023-06-26T14:55:07
200,693,643
0
2
null
false
2022-09-08T13:43:32
2019-08-05T16:43:43
2021-09-07T14:35:30
2022-09-08T13:43:26
3,632
0
2
4
Jupyter Notebook
false
false
from os import listdir from os import popen import pandas as pd path = '/N/project/iuni_cadre/uspto20220630/' files = listdir(path) for f in files: df = pd.read_csv(path+f, sep='\t', low_memory=False) df_rows = df.shape[0] f_rows = int(popen(f'wc -l {path}{f}').read().split(' ')[0]) - 1 if f_rows != ...
UTF-8
Python
false
false
426
py
133
check_exports.py
49
0.593897
0.558685
0
16
25.6875
68
peerau/byceps
7,730,941,141,815
83b03a6d3f4c61eb820ec8392afdb3b91416068a
c46f6015a2b9f7c6e5aec3d043f0b75057756852
/tests/services/user/test_query.py
de2ee5299ec361309b3f769b05a90e250b9327a7
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/peerau/byceps
6a7db0f8db00d8a77e824018d6efdbab57abbaaf
1f691280f5c086179ce372a471a0f1d9952a86f5
refs/heads/master
2020-07-28T06:31:29.468607
2019-09-15T00:18:48
2019-09-15T00:18:48
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" :Copyright: 2006-2019 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from uuid import UUID from pytest import raises from byceps.services.user import service as user_service from tests.base import AbstractAppTestCase from tests.helpers import create_user class UserQueryTest(Abstract...
UTF-8
Python
false
false
1,521
py
75
test_query.py
57
0.678501
0.631164
0
58
25.224138
70
wangfan662012/test
12,618,613,931,466
13eefd9b809ffb0534daa9b87473115e3953affd
b3c929c07e34a7fd24a078ba3b804a732894d3e0
/python_dictionary/read_config.py
142202249ddaf10096542eca4fa71fc2ca2acbf5
[]
no_license
https://github.com/wangfan662012/test
5abe45ef82d288510c70491ba6a07ca8618418be
51b500828761d298685ad2d55ccdeb31c305765c
refs/heads/master
2020-09-04T13:45:39.077213
2020-03-06T07:02:58
2020-03-06T07:02:58
219,747,687
0
0
null
false
2020-02-13T08:34:40
2019-11-05T13:09:01
2020-02-13T07:04:27
2020-02-13T08:24:19
21
0
0
1
Python
false
false
import configparser file = 'config.ini' # ๅˆ›ๅปบ้…็ฝฎๆ–‡ไปถๅฏน่ฑก con = configparser.ConfigParser() # ่ฏปๅ–ๆ–‡ไปถ con.read(file, encoding='utf-8') # ่Žทๅ–ๆ‰€ๆœ‰section sections = con.sections() print(sections) # ่Žทๅ–็‰นๅฎšsection items = con.items('test_db_config') # ๅฏไปฅ้€š่ฟ‡dictๆ–นๆณ•่ฝฌๆขไธบๅญ—ๅ…ธ items = dict(items) print(items)
UTF-8
Python
false
false
351
py
48
read_config.py
42
0.730104
0.726644
0
21
12.761905
35
digipodium/string-and-string-functions-nikhilrastogi20
12,652,973,686,116
e4f6e68dd68fffb30010d61296c58cfe095fb3d9
9e8917fc6e8e05a3fea1aa1f0af4be3dfb3c8c77
/14_followed _by_dot.py
623b6f41eff676ddffbb01076689616ea98ff9ee
[]
no_license
https://github.com/digipodium/string-and-string-functions-nikhilrastogi20
5eada55385b3319a6b60ddadaea956f0b3de82d0
45e21bf7c73b6a6d9a5c7f02b20cacd73cb46e4d
refs/heads/main
2023-08-11T04:51:04.895162
2021-10-13T11:45:31
2021-10-13T11:45:31
414,640,007
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
for i in range(1,10) : print( i ,end ='. \n' )
UTF-8
Python
false
false
62
py
20
14_followed _by_dot.py
20
0.387097
0.33871
0
3
17.666667
27
ashishsanjaysharma/TSN_CNC_Netconf_Notifications
11,493,332,505,338
9ba38f46b6294725f79154fdedc5e5571682aa8f
d791695781b6b2de0c28ca5d8724bab25032b221
/netconf_cli/connect_to_station.py
e056cd5f84db14b7dc5800e6e39489aa844fa256
[]
no_license
https://github.com/ashishsanjaysharma/TSN_CNC_Netconf_Notifications
971f783ce704c20462522774932268e28313fef6
304f7c1e38cf1f15faf9dea6e7167e1f95398718
refs/heads/master
2022-04-04T10:56:40.563380
2020-02-19T22:51:55
2020-02-19T22:51:55
241,738,456
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python from ncclient import manager from ncclient import operations import xml.dom.minidom as xml_p import xmltodict from scheduler import run_scheduler import threading rpc_subscribtion_msg = ''' <rpc message-id="102" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <create-subscription xmlns="urn:...
UTF-8
Python
false
false
2,879
py
14
connect_to_station.py
3
0.614449
0.608545
0
76
36.710526
116
TakeMeHigher/Pytho_high_efficy
9,216,999,843,898
0d9d693e222ce53bf406bbbcc517fbeb76c3ca33
dd8b262720c21f72e2e320386baf2cb080234e6f
/ๅฟซ้€Ÿๆ‰พๅˆฐๅคšไธชๅญ—ๅ…ธ็š„ๅ…ฌๅ…ฑkey.py
470e16720831377f7836506e8abdb41419b1e607
[]
no_license
https://github.com/TakeMeHigher/Pytho_high_efficy
45d84aecdd1b96afdbb3b94c6376eb2361d9bab8
203fe3b8623d3a221f38e6b873a3ef28cde07bea
refs/heads/master
2020-03-15T13:13:00.157426
2018-05-28T14:19:17
2018-05-28T14:19:17
132,161,349
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# encoding:utf-8 from random import randint, sample d1 = {k: randint(1, 10) for k in sample('abcdef', 3)} d2 = {k: randint(1, 10) for k in sample('abcdef', 4)} d3 = {k: randint(1, 10) for k in sample('abcdef', 5)} # low res = [] for i in d1: if i in d2 and i in d3: res.append(i) print(res) # ๅฏนไบŽPython2 pr...
UTF-8
Python
false
false
522
py
9
ๅฟซ้€Ÿๆ‰พๅˆฐๅคšไธชๅญ—ๅ…ธ็š„ๅ…ฌๅ…ฑkey.py
9
0.617409
0.562753
0
22
21.454545
53
rickyschools/GIDEON
4,552,665,375,981
f9faa24167b221232e48eca865ebaa278f1d3012
43769a7851776d19ace866c72c4de0aef4ca6624
/ml/__init__.py
d2d60e0bb24a2219a2c372c523a1d0d613dd5aac
[]
no_license
https://github.com/rickyschools/GIDEON
824084474d91c1725eb03a8427fbd495e8be148e
bf37d6c929e195deba35099b08409440b4a88d76
refs/heads/master
2018-08-22T09:09:18.499538
2018-05-21T02:35:50
2018-05-21T02:35:50
74,931,686
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from .learners import ActionModeler
UTF-8
Python
false
false
36
py
29
__init__.py
24
0.861111
0.861111
0
1
35
35
RamsesMartinez/CK-Suministros
412,316,881,729
c7b78dabc79cd0fd56b52da2afe7eeb07078bb92
7602e72c362c32d03f34eaad34188b1c6a6cf840
/sales/views.py
42b84b777623c4fa02739ccd9c228f24c31c3602
[]
no_license
https://github.com/RamsesMartinez/CK-Suministros
78624871940ba2e242d29f03ec7ae989fdb48d1a
1e2866192bcae8e726fe24bc0114194d12011e81
refs/heads/master
2021-05-13T17:57:43.853247
2018-01-03T07:08:35
2018-01-03T07:08:35
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json from datetime import datetime, date, timedelta from decimal import Decimal from django.contrib.auth.decorators import login_required from django.http import JsonResponse from django.shortcuts import render, get_object_or_404 from django.utils import timezone from branchoffices.models import CashRegister f...
UTF-8
Python
false
false
15,237
py
7
views.py
7
0.537936
0.535639
0
347
42.907781
108
SilentCicero/sleth
19,628,000,549,532
840d6423400c3a7450a9c59a8fb4b7594241a7d5
2ffa1f645e6c2b6f5f9ba26c09225aac955b7442
/test/test_stops.py
7ec001299bd3d616f2b40a789c68c2a85345cc0e
[]
no_license
https://github.com/SilentCicero/sleth
4ca690c2425ab3f4f83e1dd7ffedd0ba86ba35ea
e8eb6db4f4714b204237409fa3dc22a586ac38e8
refs/heads/master
2021-01-17T05:36:44.555804
2015-02-10T13:13:04
2015-02-10T13:13:04
30,671,123
0
2
null
true
2015-02-11T21:40:31
2015-02-11T21:40:31
2015-02-10T13:13:07
2015-02-10T13:13:07
3,898
0
0
0
null
null
null
from pyethereum import tester class TestStops(object): CONTRACT = """ def shared(): REEL_COUNT = 3 REEL_POSITIONS = 32 def get_stops(rnd): stops = array(REEL_COUNT) i = 0 while i < REEL_COUNT: stops[i] = rnd % REEL_POSITIONS rnd = rnd / REEL_POSITIONS i += 1 return...
UTF-8
Python
false
false
925
py
40
test_stops.py
20
0.585946
0.537297
0
37
24
67
russellburdt/data-science
7,705,171,372,433
0d79a7b6318b746366e8ccf30121f33b9f8de8a7
6861f6e996fb61249072788dace92e82ad188c99
/sklearn/digits.py
0ecd5fe3b31fd1e7e92c87432463c28b0c841570
[]
no_license
https://github.com/russellburdt/data-science
73409ef5de6add674a5537c4b219957ce2770aa2
8a69d577a8cacce8289cfc0d8d80c0076ed9a9f0
refs/heads/master
2019-08-08T10:06:59.981799
2019-02-13T16:42:37
2019-02-13T16:42:37
55,858,229
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" learning curves with digits dataset """ import numpy as np import matplotlib.pyplot as plt from sklearn.datasets import load_digits from sklearn.model_selection import cross_val_score, cross_val_predict, train_test_split, learning_curve from sklearn.preprocessing import StandardScaler from sklearn.metrics impor...
UTF-8
Python
false
false
2,004
py
134
digits.py
117
0.726048
0.712575
0
52
37.538462
130
JavaRiceSparrow/projectTin_1
5,609,227,296,649
86f2527486dacee4036d3ffdf3fd58b50d2657d1
34294f473ce4004ce139c866e5bb8cdb84348689
/backup/contour0.2.py
7eb7203cf7eac6c3ea44d81cb4f7e2f9754e5d9e
[]
no_license
https://github.com/JavaRiceSparrow/projectTin_1
602bef838edcf6019f22568c79a7b383b1932a89
972df7973288d5420760fa7f4602f0e35b49a9f5
refs/heads/master
2022-10-09T00:05:49.989421
2020-06-13T06:20:35
2020-06-13T06:20:35
269,151,722
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from utils import * from imglib import * from PIL import Image path1 = '1/1/database/base_1_2_1.bmp' path2 = '1/4/database/base_1_1_4.bmp' path3 = '1/7/database/base_1_1_7.bmp' img1 = getImg(path2) def getULpos(img): if img.sum() == 0: return 0 sizeX, sizeY = img.shape imgt = ...
UTF-8
Python
false
false
3,965
py
16
contour0.2.py
14
0.463304
0.437579
0
169
22.455621
82
VictorTadema/How_to_think_project_Victor
8,710,193,719,032
220f0d5b9c1c4b58fb588b92800ae9047c3b6b76
fce8815e3e5edecdf43c8a59ce878fae6e64f253
/How to think/Week 5/5.1.19.7.py
e944a06a4633d09c542995eedc84c98ffc5399e5
[]
no_license
https://github.com/VictorTadema/How_to_think_project_Victor
c03210a25ae813c309795bca7a8b335f63e0c0ad
cd24bf07ec9682721626812df7d4ab45ec55df12
refs/heads/master
2023-01-20T17:58:48.366713
2020-12-03T12:02:27
2020-12-03T12:02:27
296,403,900
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def reverse(text): reverso = "" for i in range(len(text) - 1, -1, -1): reverso += text[i] return reverso print(reverse("bier")) def mirror(text): return text + reverse(text) print(mirror("bavje"))
UTF-8
Python
false
false
225
py
68
5.1.19.7.py
67
0.591111
0.577778
0
14
15.142857
42
shdev/exercism-python
7,292,854,498,716
611f3ce7ef93c18c849fbd52a94760bc1b3d890e
7d9a41fa7e2317b766f476e7ae22ceb4076734e5
/simple-cipher/cipher.py
a3e8468d3b681a756c1ff08a9b91b90f1a387ec5
[]
no_license
https://github.com/shdev/exercism-python
08832675aad00d09e096ee59f4f13a3119956c11
26a217f96cdc86337b7fef877b84be7a44f69de8
refs/heads/master
2016-09-06T04:21:42.646162
2015-04-12T18:36:30
2015-04-12T18:36:30
33,655,484
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from random import randint from itertools import cycle class ArgumentError(Exception): def __init__(self, value): super(ArgumentError, self).__init__() self.value = value def __repr__(self): return self.value class Cipher(object): _alphabet = 'abcdefghijklmnopqrstuvwxyz' de...
UTF-8
Python
false
false
1,948
py
20
cipher.py
20
0.527207
0.521561
0
70
26.685714
77
egeulgen/Bioinformatics_Specialization
506,806,178,182
17ef11e6eb352c9afad7db46d63641f6af488fed
87b30670a56aeade5531a52bb9f298da05cfd9ae
/Bioinformatics I/Week I/PatternCount.py
3ab1b2ed961910577e29568f5a5c57476aa21508
[ "MIT" ]
permissive
https://github.com/egeulgen/Bioinformatics_Specialization
e2dd88889edafc5eafdca56f87164ab8502ddb6b
38581b471a54c41d780d9eeb26a7033eb57f3a01
refs/heads/master
2021-06-23T19:49:45.094652
2021-05-24T09:10:16
2021-05-24T09:10:16
220,064,156
4
1
null
null
null
null
null
null
null
null
null
null
null
null
null
def PatternCount(Text, Pattern): l = len(Pattern) L = len(Text) count = 0 for i in range(L - l + 1): if Text[i:i+l] == Pattern: count += 1 return count
UTF-8
Python
false
false
161
py
256
PatternCount.py
140
0.608696
0.590062
0
8
19.25
32
lgs-1008/hanlight
12,429,635,385,669
3f533341a8bf354c81f5c1a3d94158b74b19eb7f
65fa8297f019d520c36aef6f3f33623cfd3650a8
/naver.py
a1962971a35411479ce614a6941e686341337430
[]
no_license
https://github.com/lgs-1008/hanlight
7f34ea0ea40fd842b914d4fa40804896d07b319b
88d617a8cefbefc9f67d84306f9dbc6b69b037e1
refs/heads/master
2020-11-27T15:20:02.991560
2020-01-27T14:57:18
2020-01-27T14:57:18
229,509,146
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests from bs4 import BeautifulSoup import datetime url = "https://www.naver.com/" html = requests.get(url).text #๋„ค์ด๋ฒ„์˜ ์†Œ์Šค์ฝ”๋“œ๋ฅผ ๋ฐ›์•„์˜ต๋‹ˆ๋‹ค. soup = BeautifulSoup(html, 'html.parser') #ํฌ๋กค๋ง์„ ์œ„ํ•ด BeautifulSoup๋ฅผ ์‚ฌ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค. s = soup.select('.PM_CL_realtimeKeyword_rolling span[class=ah_k]') #์‹ค์‹œ๊ฐ„ ๊ฒ€์ƒ‰์–ด ๋ถ€๋ถ„๋งŒ ๊ณจ๋ผ์„œ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค. time = datet...
UTF-8
Python
false
false
848
py
4
naver.py
3
0.711726
0.710098
0
18
33.111111
125
Svobodinang/legalro_backend
17,008,070,515,463
4df6d30c25658ab557b6e4ae1ea35a1ee55328cd
7906cc1c5cfed3437773cd00df2e73d49d74352c
/core/migrations/0005_runtitle.py
73fc89c8385c6aa46116feb369305d9ec9289dfe
[]
no_license
https://github.com/Svobodinang/legalro_backend
31bb3e505874140a7382c56966975388e31aa8fc
b0cca70b26bbab9ea509f9ed9f5a7c29d1cc5c1f
refs/heads/master
2023-08-10T16:06:16.519851
2020-10-21T20:05:46
2020-10-21T20:05:46
280,234,738
0
0
null
false
2021-09-22T19:45:37
2020-07-16T18:59:13
2020-10-21T20:05:57
2021-09-22T19:45:35
12,547
0
0
2
JavaScript
false
false
# Generated by Django 3.0.8 on 2020-07-09 19:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0004_auto_20200709_2045'), ] operations = [ migrations.CreateModel( name='RunTitle', fields=[ ...
UTF-8
Python
false
false
524
py
43
0005_runtitle.py
34
0.564885
0.501908
0
20
25.2
114
koftezz/google-ortools-ex
7,739,531,069,672
5300296a299834149a003a118e156e14fbe912bf
f4ed588c87b706246e60bf4f829e4a2233ca5f09
/cvrp_solver/optimization_params.py
d34526720135a4e1ef42916e9a1bf8478f46cc2f
[]
no_license
https://github.com/koftezz/google-ortools-ex
555eb7600e27b3c05a41f783d740841581244b06
75dcd1faeae2b5792e027215029288b20001c1db
refs/heads/main
2023-04-05T14:37:02.366782
2021-04-10T17:46:29
2021-04-10T17:46:29
352,383,502
4
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class OptimizationParams: def __init__(self): self.enable_output = True self.time_limit = 50000 self.solver = 'SCIP' #'MIP'
UTF-8
Python
false
false
157
py
10
optimization_params.py
8
0.566879
0.535032
0
6
24.5
35
496268931/Automation
7,456,063,270,357
575ebeeb9aba6a719701fab49671c4e50318a8b8
73d2e061d2e7a974782eff63a365d044d7a9ed21
/ShowapiDemo.py
cec2c468b9c93ba37318890bfe24da526594d7d0
[]
no_license
https://github.com/496268931/Automation
4f6470c211cb8bbbe5f01270d2a6e303efa334c5
842ea2418cd65eb35c9bfca0950919bbbd6755d6
refs/heads/master
2021-09-05T07:29:16.488612
2018-01-25T07:35:23
2018-01-25T07:35:23
106,375,862
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from com.aliyun.api.gateway.sdk.util import showapi import json import base64 #get req=showapi.ShowapiRequest( "่ฏทๆฑ‚ๅœฐๅ€๏ผŒๆฏ”ๅฆ‚http://ali-weather.showapi.com/area-to-weather","appcode" ) json_res=req.addTextPara("para1_name","para1_value")\ .addTextPara("para2_name","para2_value")\ .addTextPa...
UTF-8
Python
false
false
836
py
65
ShowapiDemo.py
57
0.668782
0.638325
0
27
28.148148
98
andrei4ka/bulls_n_cows
16,243,566,335,217
dd39a25344c3871c4237f1e38a5a6f80cfdfc06e
bf84781dc5647e1dad6ce10f47603ca227fd57d7
/mod/master.py
cd82355ac3d2b93e0d81adb01a96439385f226a4
[]
no_license
https://github.com/andrei4ka/bulls_n_cows
a3c40200ba5a891b01f5d3f94f2d7ee7d4a042c8
fc95f868ff78780a0148452c95e8a91ce92e0775
refs/heads/master
2020-09-22T11:44:19.989427
2016-08-18T17:39:36
2016-08-18T17:39:36
65,913,721
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random class Master(object): _master_number = None def debug(self, message): print('DEBUG: ' + str(message)) def __init__(self, guess_len=4): """ :param guess_len: The length of the secret number :type guess_len: int """ self.number_length = guess_l...
UTF-8
Python
false
false
2,400
py
4
master.py
4
0.540417
0.5375
0
81
28.62963
81
CloudOps-Cherif/vogeler
7,499,012,909,746
ad455319622e193acb2c75d08b817421b9e58635
7ccf013f0f4088887b0fc7c972c11e8212f9e032
/vogeler/db/couch.py
3e8b68c6e6d2930e96738472e0a5475075a2dc04
[]
no_license
https://github.com/CloudOps-Cherif/vogeler
b223ec58d38c4a674f33441dbfea450c17f74976
0cf6c3313aaad647babe4169e1a96edd62284dfb
refs/heads/master
2021-05-27T17:34:02.528245
2010-10-04T08:29:17
2010-10-04T08:29:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import datetime import couchdbkit as couch from couchdbkit.loaders import FileSystemDocsLoader import vogeler.exceptions as exceptions import vogeler.logger as logger from vogeler.db.generic import GenericPersistence log = logger.LogWrapper(name='vogeler.db.couch').logger() class SystemRecord(couch.Document): "...
UTF-8
Python
false
false
3,034
py
48
couch.py
29
0.595583
0.594265
0
102
28.745098
107
datAnir/copybook
16,560
a563a28ca6f8a365b9c2df68d00aef6b4acfc8a0
6a49d7c14c8cc7e7b80630b670b854ddd4408653
/tests/test_field.py
422ae9cf6b6264cac16d64b7a3b283dfb84b0ad8
[ "MIT" ]
permissive
https://github.com/datAnir/copybook
a75695e55156e09c7238f4df9835b09125e93fb5
1afe405ee8466ca87706c6067b227a62ecd61203
refs/heads/master
2023-01-29T20:59:58.714862
2020-12-14T09:50:49
2020-12-14T09:50:49
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pytest import copybook from copybook import Field, FieldGroup # # Tests # def test_total_length(): field:Field = Field("","",{ "type_numeric": { "signed":True, "length":"2", "precision":"2", }, "level":"01", "name":"test" }) assert ...
UTF-8
Python
false
false
1,152
py
10
test_field.py
9
0.471354
0.454861
0
53
20.716981
49
MicaelaTenKathen/EGPPSO_ASV
7,670,811,615,977
35c7454a33e719dbd20a1f9eb8b8a1e6018d53df
87ad1b2e2eb039700c4c5e99d884b8fd0b07c057
/Data_scripts/ratio.py
3fbc3928bb860292e21031ff922c9446b12fd269
[]
no_license
https://github.com/MicaelaTenKathen/EGPPSO_ASV
0ef0f868cb5068e101cd7a4cdd28a4f562426fb1
d858221ac278e46dc7c0dcc559a1389b4a059972
refs/heads/master
2023-06-16T07:10:34.665123
2021-07-06T13:26:15
2021-07-06T13:26:15
373,453,178
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def ratio_s(x_int, y_int, grid, part): x_int = int(x_int) y_int = int(y_int) x_left = x_int + 2 x_right = x_int - 2 y_up = y_int + 2 y_down = y_int - 2 x_i = int(part[0]) y_i = int(part[1]) if grid[x_right, y_down] == 1: part[0] = x_right part[1] = y_down else: ...
UTF-8
Python
false
false
931
py
22
ratio.py
20
0.344791
0.320086
0
32
28.0625
44
kiefersutherland/pythonLearning
13,469,017,447,949
7feb2cd869053a91a9d88f2ab712b1ba1195a4b5
a39e27aa0bead0c4888074dd1d3681091c53dcb3
/learn/justatest.py
03e6ba7d4a454dc5022dc011b46be500e64d3366
[]
no_license
https://github.com/kiefersutherland/pythonLearning
fbe4fbcb56c159b81767d1ee78eb6696f15884c9
6fd085ed682b10bb085dad7baa0e58d3fc072379
refs/heads/master
2021-10-24T17:56:42.063883
2019-03-27T00:44:57
2019-03-27T00:44:57
114,739,258
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest import Survey class TestAnonymousSurvey(unittest.TestCase): def setup(self): question='ไฝ ็š„้ฆ–้€‰็›ฎ็š„ๅœฐ' self.my_survey=Survey.AnonymousSurvey(question) self.responses=['ไธŠๆตท','็ฅžๆˆท','ไธœไบฌ'] def test_stroe_Single(self): self.my_survey.store_question(self.responses[0]) ...
UTF-8
Python
false
false
426
py
21
justatest.py
20
0.68
0.675
0
16
24.0625
65
BenjaminAnimator/RangleRig
11,751,030,569,664
20bafd1c3e994ad8a9d16e57ae7c23313cc87d27
1aa4e57c617603f5207a51a32337edfc5b88e220
/RangleRig/rigModules/clavicleRig.py
a84e6ce59031af1829131eeff6c5f6e668f029d5
[]
no_license
https://github.com/BenjaminAnimator/RangleRig
2bb5590351a8271deb85565f988033fe55770314
bbe84a05371b3c1d89f07e62573f7d0c09078e98
refs/heads/master
2021-01-24T11:59:44.633702
2017-09-11T03:10:46
2017-09-11T03:10:46
56,138,514
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"Module for creating Clavical Rig" import maya.cmds as mc from RangleRig.toolkit import controlGen from RangleRig.toolkit import assetColourer from RangleRig.toolkit import attrLocker from RangleRig.toolkit import objDefine from RangleRig.toolkit import setDvrKey from RangleRig.toolkit import selectHirearchy ...
UTF-8
Python
false
false
4,789
py
39
clavicleRig.py
38
0.531217
0.519106
0
131
33.832061
151
samuelxu999/Research
12,884,901,894,390
179802c2d7de3ba5eace8fa0c29e16fa7fab8b4d
5d04ab2ef298299935410a9e5c0a816cc9b87de0
/Security/py_dev/Micro_chain/consensus/block.py
391d0ef51b6a9e3ca21d722bd8a148d47de12906
[]
no_license
https://github.com/samuelxu999/Research
494b7a8d3a225098e17ad8af890b3246f321a88c
03ff57e6fe0114ffd2dd953e79a73a893a6bc0ad
refs/heads/master
2023-06-26T19:22:59.702799
2023-06-15T16:40:43
2023-06-15T16:40:43
88,461,577
1
1
null
false
2023-05-01T22:24:29
2017-04-17T02:53:59
2021-12-16T15:25:15
2023-05-01T22:24:28
15,398
1
0
7
Python
false
false
''' ======================== block.py ======================== Created on June.18, 2019 @author: Xu Ronghua @Email: rxu22@binghamton.edu @TaskDescription: This module provide block data struct and functions implementation. @Reference: ''' from collections import OrderedDict from merklelib import MerkleTree, jsonify...
UTF-8
Python
false
false
4,628
py
177
block.py
114
0.691227
0.686474
0
164
27.219512
85
reck1ess/PS
6,863,357,752,524
1600fd11793210c7e128798a4af61e3374c449fd
595c42b5e45ed8d451a53c72c2edb4d82adc9bb1
/codility/codility9_3.py
b9aa708d67b17706a3bd8ccd43f2c9c69753ff7f
[]
no_license
https://github.com/reck1ess/PS
151acb08e0e8f58f261db28429f7db10be46d280
14c13cb43789e36514437cd9d94ecc75fe6516ca
refs/heads/master
2020-03-29T01:42:00.298873
2018-10-13T14:54:32
2018-10-13T14:54:32
149,401,766
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest def solution(A): max_end = max_slice = -1000000 for a in A: max_end = max(a, max_end + a) max_slice = max(max_slice, max_end) return max_slice class TestExercise(unittest.TestCase): def test_example(self): self.assertEqual( solution([3, 2, -6, 4, ...
UTF-8
Python
false
false
377
py
33
codility9_3.py
33
0.562334
0.527851
0
20
17.85
43
Nayan356/Python_DataStructures-Functions
7,473,243,100,789
64907a53ef6d102cf619ac1dfe2428125ef6ff06
2dc001b3b354d05876f85ae736a9699a8d082d74
/Functions/pgm10.py
7e6a2abdda2e30731245555d8b41864be8b1398f
[]
no_license
https://github.com/Nayan356/Python_DataStructures-Functions
f8a829e93b714e23ab31a2ee07819e8c1f2d80d6
5bf7d9432c6326f77c022b5c2b03e971374538ba
refs/heads/master
2022-10-19T07:09:07.202499
2020-06-08T06:53:08
2020-06-08T06:53:08
270,482,353
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Write a program which can filter() to make a list whose elements are even number # between 1 and 20 ( both included) # Python code to filter even values from a list # Initialisation of list lis = [1,2,3,4,5.6,7,8] # Output list initialisation out = [] for num in lis: # checking condition if num % 2 == ...
UTF-8
Python
false
false
378
py
30
pgm10.py
30
0.669312
0.634921
0
19
18.842105
82
computational-imaging/spad_single
1,889,785,638,566
cccff741f30b9a96dc558d99d6ad92a6388327c8
2dbadf8d7c26b3dda69328229b60df160b69f917
/models/data/nyuv2_official_nohints_dataset.py
73bffb02abbf7a29e15d22cee35322d1a532b9eb
[]
no_license
https://github.com/computational-imaging/spad_single
a17c31d0564a16f08f4768dcc27c064272a5f70d
54e18e26a6f3c33837da032063e8cf9cc287569e
refs/heads/master
2022-11-18T08:32:37.513981
2020-07-19T04:44:56
2020-07-19T04:44:56
152,368,443
3
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import json import numpy as np from torch.utils.data import Dataset import cv2 from torchvision import transforms from models.data.data_utils.transforms import (ResizeAll, RandomHorizontalFlipAll, Normalize, AddDepthMask, ToTensorAll) from sacred import Experi...
UTF-8
Python
false
false
10,689
py
211
nyuv2_official_nohints_dataset.py
110
0.585368
0.573019
0
259
40.266409
120
deathbypixels/noodles
13,675,175,878,097
780424b8e80ae7918e2d881391879fa82f5ebcea
69af1943b2b581e3000614feeeae392d49e81c64
/setStartFirst_Frame.py
6b0825c1659e2f87b7b363814d0b6019f6f37c85
[]
no_license
https://github.com/deathbypixels/noodles
92317de91567133454dffb6f693698dfc3dc6dca
036f6c785ce70e2b0705036284533b82ed1e47f1
refs/heads/master
2021-01-12T09:15:12.601573
2017-12-04T03:43:00
2017-12-04T03:43:00
76,808,094
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
r = nuke.Root() f = r.knob('first_frame').value() n = nuke.selectedNode() n['frame'].setValue(str(f)) n['frame_mode'].setValue('start_at')
UTF-8
Python
false
false
139
py
10
setStartFirst_Frame.py
9
0.647482
0.647482
0
6
22.333333
36
kaeru8714/BDJA-recommendation-project
8,323,646,626,417
ccf9ace66e36756337d3067ad2ba883c0dc14c1f
3d94d7dc4e5c93fb9796e372a3a5e88b219117d4
/bonglib.py
454857471068ab8e661c1b0db56448a122520794
[]
no_license
https://github.com/kaeru8714/BDJA-recommendation-project
8c7332e1079809b9dbb9360eca893054e5b29eae
3ff311a2aba55e9bb890504934fcfda2b8c56a17
refs/heads/master
2021-01-10T09:35:25.472506
2015-10-22T10:29:54
2015-10-22T10:29:54
44,738,351
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def pause(): p = input("\n<system>์ผ์‹œ ์ค‘์ง€ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. </system>\n") def dpause(param): p = input("\n<system>์ผ์‹œ ์ค‘์ง€ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. %s </system>\n" %(param))
UTF-8
Python
false
false
178
py
5
bonglib.py
4
0.605634
0.605634
0
5
27.6
60
chalam/Pynaconda
19,275,813,238,065
fe74b368949f46831e03d94c7d27c69cfd175d50
de69d99db8be567d97060149481091c25907d4ef
/src/numerical/IsPowerOfTwo.py
ea3f9076b3eed7d5186ee0f786102e8e3169e62e
[]
no_license
https://github.com/chalam/Pynaconda
0dd5acdb19c38352ee5d4b92c002d05bd75e452d
e24600d26afbc685e3853a6037f50dfc3fe077d2
refs/heads/master
2021-01-10T13:37:54.811250
2018-10-13T20:48:44
2018-10-13T20:48:44
36,340,529
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# import urllib.parse # import urllib.request # def isPowerOfTwo_wolfram(n): # params = urllib.parse.urlencode({"i": "log2(" + str(n) + ")"}) # url = "https://www.wolframalpha.com/input/?" + params # page = urllib.request.urlopen(url).read().decode('utf-8') # return page.find('More digits') == -1 ## ...
UTF-8
Python
false
false
1,586
py
236
IsPowerOfTwo.py
215
0.576923
0.542245
0
58
26.344828
68
RuyiLuo/LeetCode
7,404,523,648,203
7c0d67bee5f19546dfd0ccd4a82acb4fa51af7c7
6d814600d6822961ef5f947cd710e1f6f2828fe2
/Fei_LeetCode/Array/0926/746-Min Cost Climbing Stairs.py
8094b1e699fa6204513a535ca6d954287aaaec8f
[]
no_license
https://github.com/RuyiLuo/LeetCode
eaf7a160f1c7321a52b4666c423171baea706772
6b5aa4c635b92fa43932d95b30aa690946b28e5f
refs/heads/master
2020-07-06T08:08:48.714187
2019-12-04T14:20:51
2019-12-04T14:20:51
202,950,024
10
61
null
false
2019-11-26T15:50:43
2019-08-18T02:14:16
2019-11-25T15:51:32
2019-11-26T15:50:42
2,439
6
27
0
Python
false
false
# ไฝฟ็”จๅŠจๆ€่ง„ๅˆ’่งฃๆณ• # ๅˆๅง‹ๅŒ– # i=0ๆ—ถ๏ผŒๅชๆœ‰ไธ€ไธช้˜ถๆขฏ๏ผŒๅ› ๆญคๅˆฐ่พพ่ฏฅ้˜ถๆขฏ้กถ้ƒจ้œ€่ฆ็š„่ƒฝ้‡ๅณไธบๅˆฐ่พพ่ฏฅ้˜ถๆขฏๆ‰€้œ€่ƒฝ้‡๏ผŒไธบcost[0]๏ผ› # i=1ๆ—ถ๏ผŒๆœ‰ไธคไธช้˜ถๆขฏ๏ผŒๆˆ‘ไปฌๅฏไปฅ่ฟˆไธคๆญฅ๏ผŒ่ทณ่ฟ‡็ฌฌไธ€็บงๅฐ้˜ถ๏ผŒๅˆฐ่พพ่ฏฅ้˜ถๆขฏๆ‰€้œ€่ฆ็š„่ƒฝ้‡ไธบๅˆฐ่พพ็ฌฌไบŒ็บงๅฐ้˜ถๆ‰€้œ€่ƒฝ้‡๏ผŒไธบcost[1]๏ผ› # dp[i]่กจ็คบๅˆฐ่พพไธ‹ๆ ‡ไธบi็š„้˜ถๆขฏ้œ€่ฆๆถˆ่€—็š„ๆœ€ๅฐ่ƒฝ้‡ใ€‚่ฟ™้‡Œ้œ€่ฆๆณจๆ„๏ผŒ้กถ้ƒจ้˜ถๆขฏๅฎž้™…ไธŠๆ˜ฏ่ขซ้ข˜็›ฎ็ผบ็œๆމ็š„๏ผŒ # ๅณๅˆฐ่พพ้กถ้ƒจ้˜ถๆขฏๆ‰€้œ€่ฆๆถˆ่€—็š„่ƒฝ้‡ไธบ้›ถ๏ผŒๆˆ‘ไปฌ้œ€่ฆ่กฅๅ›žๆฅ # ็Šถๆ€่ฝฌ็งปๆ–น็จ‹ # i>1ๆ—ถ๏ผŒๅˆฐ่พพ็ฌฌi็บงๅฐ้˜ถๅชๆœ‰ไธค็ง้€‰ๆ‹ฉ๏ผŒไธ€็งๆ˜ฏไปŽ็ฌฌi-1็บงๅฐ้˜ถ่ฟˆไธ€ๆญฅ๏ผŒๅฆไธ€็งๆ˜ฏไปŽi-2็บงๅฐ้˜ถ่ฟˆไธคๆญฅ๏ผŒ # ่ฟ™ไธค็ง้€‰ๆ‹ฉๆถˆ่€—็š„ๆœ€ๅฐ‘่ƒฝ้‡ๅˆ†ๅˆซๆ˜ฏdp[i-1]+cost[i]ๅ’Œdp[i-2]+cost[i]...
UTF-8
Python
false
false
1,242
py
443
746-Min Cost Climbing Stairs.py
278
0.647945
0.617808
0
24
29.416667
78
fstricker/aeroplant
18,227,841,218,041
a6dd167745fed88852f81e84f1b750eaf6ae3232
d4d1daa805b11b04180553a97c2292ad0a61e343
/main.py
86e115d1bf6f4d55aff6eb30de7df8d733c9d645
[]
no_license
https://github.com/fstricker/aeroplant
e806f147f38b16968a3e1c87939f3a279273e2e2
7a78a945731803fe425b863049c86a0f2379998c
refs/heads/master
2020-06-02T11:05:37.175643
2019-06-10T09:16:58
2019-06-10T09:16:58
191,135,314
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#aeroplant.py aka main.py from datetime import datetime from time import sleep from stat_summary import * from process import * from read import * import settings import linecache import sys #define more telling exception function def DetailedException(): exc_type, exc_obj, tb = sys.exc_info() f = tb.tb_frame ...
UTF-8
Python
false
false
1,904
py
5
main.py
5
0.628676
0.622899
0
59
31.271186
90
Jumpst3r/Opt_ML_project
13,889,924,271,898
fbc72544a647428b4d890082c489495af70c9e1d
3ed81919ad11c0f42db908f09d1f47cc50dda291
/model_trainer.py
60b093b2b0e439b207c19237ed49f3dc771d3b75
[]
no_license
https://github.com/Jumpst3r/Opt_ML_project
922c27904125c27745c37fa3acc171633e060e6a
502fa9ef7aa8370e1d6692da0c43b7de4ea0055a
refs/heads/master
2022-11-08T16:58:22.782180
2020-06-17T09:09:29
2020-06-17T09:09:29
249,695,144
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# This file trains a simple model defined in models.py on the CIFAR-10 dataset # # import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor import torch.optim as optim import matplotlib.pyplot as plt import math from torchvision import datasets, transforms from models import CIFAR_mod...
UTF-8
Python
false
false
3,559
py
19
model_trainer.py
9
0.634167
0.616746
0
102
33.872549
100
Aasthaengg/IBMdataset
12,498,354,848,407
32abb041789add34339242e67a9834ded1e080f5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02935/s807057031.py
23bfc33222d7999b6740f4bb9e5fb65af0ddc7a9
[]
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
n = int(input()) v = list(map(int,input().split())) for i in range(n-1): x = min(v) v.remove(x) y = min(v) v.remove(y) v.append((x+y)/2) print(v[0])
UTF-8
Python
false
false
156
py
202,060
s807057031.py
202,055
0.551282
0.532051
0
11
13.272727
34
brian83199/CreatePT
6,975,026,896,882
c8b4fff78ff66872f8de0f57885f04805ea6c9a1
6d624300ff579ce0fcbceba1f1a28e6ca6035242
/Testing.py
8fd2628e97f5c4c40f80307650bc292a40cdb8d8
[]
no_license
https://github.com/brian83199/CreatePT
f605bb49d3abd423b6b1d147008b5c3ff7b97b57
bba9b5df397537c3cb727a435d360bcb5a7fa205
refs/heads/master
2021-01-25T14:46:27.936499
2018-04-15T14:42:43
2018-04-15T14:42:43
123,727,348
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import webbrowser def menu(): print("Hello") print("Your temperature: 1") print("Exit: 0") print("Enter option:", end=" ") option1 = eval(input()) return option1 #Parker Witt has helped me with ordering th functions to allow the program to work properly. Also helped by r...
UTF-8
Python
false
false
5,548
py
2
Testing.py
1
0.530101
0.508652
0
194
27.597938
162
michaeliyke/fibonacci
8,418,135,926,144
6114a8665e368fe5047d4a6ac79656b820c154ab
212bf78b4d4274f967e2ee3915ade669f8d4937b
/stack/__main__.py
9a76401530b9c325faf31d15e4a410ab2b64c371
[]
no_license
https://github.com/michaeliyke/fibonacci
9f8187d802e767a0c9ff4ed1ba04327336f4ed35
0c2a1957504b2f1689117fcc7cbebf9c71574afe
refs/heads/master
2023-05-28T00:08:48.146459
2022-04-19T02:03:42
2022-04-19T02:03:42
373,456,959
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" opened is an empty stack Mark state as valid false If given symbols set is an odd number, return early Loop through symbols creating an object of each when encounter an openner, add it to opened stack when encounter a closer, match it with the topmost openner: yes - reduce opened. no - quit. Mark state as valid...
UTF-8
Python
false
false
1,076
py
36
__main__.py
28
0.616171
0.596654
0
35
29.742857
59
cms-sw/cmssw
14,705,968,032,490
118e67060aaa00ac395db3e1c5c4a6cddd4963ee
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoTracker/TrackProducer/python/GsfTrackProducer_cfi.py
e60ca75496e5d1426943645cd0cd20ab5aa9cc9b
[ "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 gsfTrackProducer = cms.EDProducer("GsfTrackProducer", src = cms.InputTag("CkfElectronCandidates"), beamSpot = cms.InputTag("offlineBeamSpot"), producer = cms.string(''), Fitter = cms.string('GsfElectronFittingSmoother'), useHitsSplitting = cms.bool(False), ...
UTF-8
Python
false
false
758
py
46,375
GsfTrackProducer_cfi.py
40,422
0.692612
0.692612
0
17
43.470588
89
WiktorWos/sw_test
7,584,912,253,426
2044298469904688731f01aa8dc8fee08af30063
cbae91c134147f1c4ab8103f96e7d4e42d6cdeaa
/host.py
1597cfff0b7ae0843c4a996d6dd97093c7815c31
[]
no_license
https://github.com/WiktorWos/sw_test
c2db4a0854233b4123d1780ee27d2b9ff3a07477
6bf2df7746127bb6d852c1a994bba641cc773254
refs/heads/master
2022-10-12T13:14:27.790623
2020-06-13T13:42:01
2020-06-13T13:42:01
272,014,197
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import socket import subprocess import os PORT = 65000 FRAME = 1024 "wiadomoล›ฤ‡ bitรณw, pierwszy bit to numer funkcji" def functions(message): f = int(message[0]) if f == 1: what = int(message[1]) if what == 1: cmd = "amixer -D pulse sset Master 10%-" else: cmd ...
UTF-8
Python
false
false
1,507
py
1
host.py
1
0.5
0.480718
0
55
26.345455
111
rnic92/ProteinComparisonTool
2,972,117,396,990
bb474d13edb4d0f16a92e5bf8e50e105df150b3c
f979384256d08ed5bcdd7b7a3b29ec72cc3977f0
/fun/substring.py
7e1c1ea361210b42e9531ad83f642b9ced7f69be
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
https://github.com/rnic92/ProteinComparisonTool
e92954c9ab999e3b63c768fd4bda9cb264676862
600f214025f1c5851c205b265d41eb63fe693a0c
refs/heads/main
2023-02-24T23:43:30.274320
2021-02-05T05:17:38
2021-02-05T05:17:38
335,474,627
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def substr_after(s, delim): return s.partition(delim)[2] def substr_before(s, delim): return s.partition(delim)[0]
UTF-8
Python
false
false
131
py
8
substring.py
5
0.648855
0.633588
0
6
19.833333
32
flylzj/dota2_scrapy
3,633,542,354,777
cd799ea65f4b409983f206e38f6c791333cce7a1
7a662d0807b81a8c8f4a8b234cdee31a003cd577
/dota2_scrapy/spiders/c5game.py
e935e2eb30a889d9d67321438215cf529283791f
[]
no_license
https://github.com/flylzj/dota2_scrapy
92996eac264cf294c8fa60a27db6a0da0e82978e
b73b68f9c8d92fe0c7264945c668aa4cb0121ab0
refs/heads/master
2020-03-23T16:36:54.160444
2018-08-20T12:06:49
2018-08-20T12:06:49
141,820,127
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 import scrapy from dota2_scrapy.items import Dota2ScrapyItem import re import json import requests class c5game(scrapy.Spider): name = "c5game" custom_settings = { "CONCURRENT_REQUESTS": 3, "CONCURRENT_REQUESTS_PER_DOMAIN": 1, "need_proxy": False, "DOWNLOAD_DELA...
UTF-8
Python
false
false
5,420
py
18
c5game.py
13
0.526937
0.512731
0
125
42.24
190
sggpls/hse-python-ml
16,192,026,719,731
58e1229b56f03382dcb59d3193b76818d0ba971b
cc1c2eccc35ab56454ea5a7a68a70a4bff049896
/python/labs/lab03/min-max/sol_min_max.py
9fd942246d66a7636116cede8a5c13e07b653970
[ "MIT" ]
permissive
https://github.com/sggpls/hse-python-ml
2fce2b5c9592a1da8167ffa2ecf482076dfbeaea
0a190b7eefd7548e00f07e83edc7a5a4b821a3b9
refs/heads/master
2020-04-04T00:43:27.442566
2018-11-14T19:57:58
2018-11-14T19:57:58
155,660,563
1
0
MIT
true
2018-11-01T04:09:19
2018-11-01T04:09:19
2018-10-24T03:44:35
2018-10-24T03:44:34
1,797
0
0
0
null
false
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from collections import Iterable def _min_max(iterable, *args, cmp=None): if not args: if not isinstance(iterable, Iterable): raise TypeError(f"'{iterable.__class__.__name__}'" f" object is not iterable") if not a...
UTF-8
Python
false
false
1,780
py
140
sol_min_max.py
72
0.560674
0.546067
0
73
23.383562
66
LYNCSS/CryptoCurrency_exchange
12,257,836,712,544
ae6da3af5d9d1f94308ace7c853fa4f483366bce
4492073fecea53b766ba6bd4fc966b82ebc3783b
/Yellow_BCCX/Future_Ad.py
f00bc247cb1647d1764ea75fd41cb7cbab04f7d7
[]
no_license
https://github.com/LYNCSS/CryptoCurrency_exchange
30f0923141b20e247df2f424af8d67acefb66ae1
760cea167a0987ced75e3b454ff1b7dc925c4e83
refs/heads/master
2023-01-03T03:37:02.082639
2019-06-01T07:29:46
2019-06-01T07:29:46
175,184,930
4
2
null
false
2022-12-27T15:15:36
2019-03-12T10:12:08
2021-10-02T13:28:33
2022-12-27T15:15:35
8,129
4
3
5
Python
false
false
# -*- coding: utf-8 -*- """ Created on Sat Jan 27 10:56:06 2018 @author: LYNCSS """ from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC import os, sys, pyautogui, time, imapl...
UTF-8
Python
false
false
6,748
py
28
Future_Ad.py
15
0.559261
0.545116
0
168
38.97619
146
Ruben0406/FlowerPower
11,416,023,118,985
4476eb46e78acf476a8a15cdb48d0b2a2c8fec4e
6dceac53d5bb2f65ab0dc6bd582092a72d16d10b
/routes/public_pages.py
3d316d5b8efca8cf6ef140a2fc5c9b3298deea5f
[]
no_license
https://github.com/Ruben0406/FlowerPower
38158efd287efadfbc5a27893178b952ad96d9ca
4c766fd8acfea69fc9900f16081e9f0acf8bfdb2
refs/heads/master
2019-07-07T12:13:04.695821
2017-04-07T16:51:28
2017-04-07T16:51:28
87,048,619
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Blueprint, render_template, request, redirect, session import sys sys.path.append('./utilities') sys.path.append('./classes') import sanitize as sz import users import shops import articles import orders import invoice_rules import invoices import db_handler as db import session_handler as sh import ...
UTF-8
Python
false
false
7,230
py
38
public_pages.py
20
0.715076
0.708437
0
151
46.880795
190
CiscoTestAutomation/genielibs
17,729,625,023,573
12ef717650e72f56fa21f410c83d595c733f458b
f509ab9825c542e09b0c6591d86ef1f9feb540a6
/pkgs/sdk-pkg/src/genie/libs/sdk/triggers/blitz/tests/test_blitz.py
f79a4293d9d75a70643ccb474f0353a8f261e82a
[ "Apache-2.0" ]
permissive
https://github.com/CiscoTestAutomation/genielibs
97f597117193aaa18028defeb69078ebb241173a
e42e51475cddcb10f5c7814d0fe892ac865742ba
refs/heads/master
2023-08-11T16:39:41.959947
2023-07-27T17:58:42
2023-07-27T17:58:42
130,717,047
109
60
Apache-2.0
false
2023-08-29T22:32:08
2018-04-23T15:21:56
2023-08-14T13:37:54
2023-08-29T22:32:07
12,197
96
53
14
Python
false
false
#! /usr/bin/env python import os import yaml import tempfile import unittest from unittest import mock from genie.testbed import load from genie.conf.base import Device from genie.libs.sdk.triggers.blitz.blitz import Blitz from genie.libs.sdk.triggers.blitz.actions import actions from pyats.easypy import Task from p...
UTF-8
Python
false
false
16,881
py
2,248
test_blitz.py
1,588
0.466797
0.462236
0
469
34.993603
123
AVProkhorov/Python_6
3,238,405,364,516
b0528406b4239b7d657fb8090340ce089279c3f8
9429ed31f019048609209443c1c086bc67309f1f
/ะžะฑั‰ะฐั ะฟะพะดะฟะพัะปะตะดะพะฒะฐั‚ะตะปัŒะฝะพัั‚ัŒ.py
65da678e636f33bd00b3a967dc5d88d0f6494477
[]
no_license
https://github.com/AVProkhorov/Python_6
51ade6611f4d4788fce5584aa0fa8ae21d32c5f2
049b953fbca9ec3f388640363f2a82f67fefcedb
refs/heads/master
2021-09-07T00:01:54.150323
2018-02-13T20:17:49
2018-02-13T20:17:49
108,101,107
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def f(l1, l2): m, n = len(l1), len(l2) S = [[0] * (n + 1) for i in range(m + 1)] for i in range(1, m + 1): for j in range(1, n + 1): if l1[i - 1] == l2[j - 1]: S[i][j] = S[i - 1][j - 1] + 1 elif S[i - 1][j] >= S[i][j - 1]: S[i][j] =...
UTF-8
Python
false
false
578
py
26
ะžะฑั‰ะฐั ะฟะพะดะฟะพัะปะตะดะพะฒะฐั‚ะตะปัŒะฝะพัั‚ัŒ.py
19
0.34083
0.294118
0
22
24.363636
45
ThaddeusNase/profiles-rest-api
2,396,591,793,747
535402443a009e5f54352d610e75161be4aa1922
f532c19003f4e3343a952cf09ee7fb89a153833b
/profiles_api/views.py
9fb51b3f0233efd5be02ebdecdb8de2767f41a98
[ "MIT" ]
permissive
https://github.com/ThaddeusNase/profiles-rest-api
c57e08b36b142f4bffae7bacd5b1549c2a24fb15
502f799acaa2a748253b3a516c8cd280cfda2206
refs/heads/master
2022-05-17T23:50:45.844277
2019-11-12T12:54:22
2019-11-12T12:54:22
216,558,045
0
0
MIT
false
2022-04-22T22:38:47
2019-10-21T12:04:53
2019-11-12T12:55:17
2022-04-22T22:38:45
27
0
0
2
Python
false
false
from django.shortcuts import render from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import viewsets from rest_framework import status from rest_framework.authentication import TokenAuthentication from rest_framework import filters from rest_framework.authtoken....
UTF-8
Python
false
false
4,603
py
2
views.py
2
0.668116
0.666812
0
144
30.951389
113
hostedposted/convertunits
1,529,008,369,181
f471f040d63a3e7147d76ed7d9479f4df5846703
d5931d71ae54394c02def9071f10d20747847c5c
/convertunits/formula/volume/us_liquid_gallon.py
599bff6cbfac1726a9e6407bbaa6fd205884b9a7
[]
no_license
https://github.com/hostedposted/convertunits
c95a92f36b4014e07170959a231fd7fa8a44b7e6
a587a07a3c5994f02fc2938c3af4d6833157832b
refs/heads/master
2023-05-12T10:07:15.900667
2021-05-30T19:43:31
2021-05-30T19:43:31
366,511,698
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
us_liquid_gallon = "us_liquid_gallon" us_liquid_quart = "us_liquid_gallon * 4" us_liquid_pint = "us_liquid_gallon * 8" us_legal_cup = "us_liquid_gallon * 15.773" us_fluid_ounce = "us_liquid_gallon * 128" us_tablespoon = "us_liquid_gallon * 256" us_teaspoon = "us_liquid_gallon * 768" cubic_meter = "us_liquid_gallon / 26...
UTF-8
Python
false
false
790
py
164
us_liquid_gallon.py
163
0.701266
0.625316
0
19
40.578947
47
richiefoster/image_processing_app
9,320,079,080,936
ed088a4e4907499f49377ff46f6a4d2ce3982c01
8c8b78a4f081b9b9051446b315d97eb6c55ba580
/process_images_ground.py
3a824f4ed562b84ffd36ee9a28dfd3da399933d3
[]
no_license
https://github.com/richiefoster/image_processing_app
ac83a8e95b8a4b0248854dfc623cd55caef5a2f5
1f2712df5a97403323247364a589d524413c0eea
refs/heads/master
2023-06-01T03:16:35.893450
2021-07-01T16:39:17
2021-07-01T16:39:17
382,042,099
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jun 9 09:37:48 2021 @author: Richie Foster """ import pandas as pd from PIL import Image from PIL.ExifTags import TAGS, GPSTAGS import os from shapely.geometry import Point import geopandas import boto3 sqs_client = boto3.client('sqs', region_name='us-east-1') def main()...
UTF-8
Python
false
false
3,823
py
12
process_images_ground.py
11
0.522626
0.507193
0
112
33.125
95
pixpil/gii
10,196,252,388,065
28e1160e6fec261ca41eb64ebaec9c9cea3ee812
de644b254b17a28f82e9212d80872a3d9eca2149
/lib/gii/moai/exceptions.py
06243f29084da8b7879afc6cad1f02ce2d41b9ec
[ "MIT" ]
permissive
https://github.com/pixpil/gii
506bee02b11eb412016b583d807dcfcc485e189c
ba6d94ada86d82bacae06f165567a02585264440
refs/heads/master
2021-12-03T06:30:31.503481
2021-11-24T03:02:49
2021-11-24T03:02:49
431,331,021
4
1
null
null
null
null
null
null
null
null
null
null
null
null
null
class MOAIException(Exception): def __init__(self, code): self.args=(code,) self.code=code
UTF-8
Python
false
false
96
py
882
exceptions.py
627
0.6875
0.6875
0
4
23
31
kevinamos/axploit
11,287,174,074,699
3947893af8d200374de2a3d73023da26b073896c
e39e3a7ad4b8c82a341bb7e543ef7537d7fd463e
/MitM/arp_spoofing.py
295434197419071880dbdc54093d6faf97937a29
[]
no_license
https://github.com/kevinamos/axploit
222094e6a23ecf3f304da31ca0577a253c8f26c2
ce41066c37d1d6ebaea70f02b5f7636c70abb2d0
refs/heads/master
2021-01-25T12:08:06.293020
2019-07-18T08:51:24
2019-07-18T08:51:24
123,454,735
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import sys from scapy.all import sniff, sendp, ARP, Ether #router_ip='192.168.0.1' from time import * import socket s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.bind((socket.gethostname(), 219)) my_ip=s.getsockname()[0] s.close() class ARP_spoofing(): def __init__(self, *args): s...
UTF-8
Python
false
false
1,965
py
25
arp_spoofing.py
16
0.572519
0.563359
0
58
32.896552
106
nuh-temp/rest-app
18,708,877,543,851
5624cd71369db4ad835ab46b9435a4de14fc5e8c
050985681d60316ca5a12818156d0cd2cc75e692
/tmp/mod1.py
b2e9be665b5cfa777497f28827f3885f8bc119cc
[ "Apache-2.0" ]
permissive
https://github.com/nuh-temp/rest-app
767d422e945f8249a5754647e0cc31e3c40d83b2
d9276fc7bae4033778abe1b4a110446d18d84893
refs/heads/master
2020-05-20T02:25:33.980810
2016-01-21T05:13:30
2016-01-21T05:13:30
19,071,654
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging import inspect import collections Env = collections.namedtuple('Env', ['name']) class BaseModel(object): _factory_env = None _a = None class MyModel(BaseModel): # logging.info('--m1--> MyModel real class init: factory_env: %s, id: %s', f, id(f)) _a = [] def __init__(self, name): loggin...
UTF-8
Python
false
false
1,275
py
13
mod1.py
9
0.63451
0.631373
0
52
23.519231
114
verkaufer/animalweights
6,966,436,999,457
e92db80f48bb5c1bc1c0fe0b79073b61712ffee6
521cf27b2edd9545ee0ae94ca5b514b01ce805c7
/animals/admin.py
cd0a3e8c20905b053272ebd2d00745d49dc224e7
[]
no_license
https://github.com/verkaufer/animalweights
cfc300045704ab7d31ca21759fac9a2dd8364ae3
bda54bbca5ec215276f675cfdf821028bef82148
refs/heads/master
2020-03-21T10:10:07.015756
2018-09-14T19:46:02
2018-09-14T19:46:02
138,436,704
0
0
null
false
2018-09-14T19:46:03
2018-06-23T22:06:54
2018-06-23T22:08:51
2018-09-14T19:46:03
9
0
0
0
Python
false
null
from django.contrib import admin # Register your models here. from animals.models import Animal, Weight admin.site.register(Animal) admin.site.register(Weight)
UTF-8
Python
false
false
162
py
10
admin.py
8
0.808642
0.808642
0
7
22.142857
41
ErickGiffoni/Python
10,419,590,695,228
ee125b41d2edd7ca9174a8d9975d24f07e3da230
bb77d9cf24f74c9dfe60e67fb24ac2e9c863e542
/Learning_Python/enumerate_function.py
652e09ab0658cf9a9bc397a654de9c2c8ee84797
[]
no_license
https://github.com/ErickGiffoni/Python
687fd90a76e81cab2ae8026cf91679b608753a37
01f54c7db5bb2a0120169f5f75a6da6a6c6710f4
refs/heads/master
2020-03-29T10:35:41.051030
2019-03-22T14:16:16
2019-03-22T14:16:16
149,813,464
2
2
null
null
null
null
null
null
null
null
null
null
null
null
null
list = [0,1,4,7,-1,-4,1000] for x,e in enumerate(list) : print("[%d] %d " %(x,e), end='') print()
UTF-8
Python
false
false
102
py
9
enumerate_function.py
9
0.5
0.401961
0
4
24.5
36
JoyDajunSpaceCraft/leetcode_job
5,196,910,453,693
44636d2769aecb662b747f5c33afeec3919cbf3b
35a5143c2b553b756a69fb25e732d82d692c16ef
/372-super-pow.py
843e058bdde83ef02645695e6034599b4aaf9bf5
[]
no_license
https://github.com/JoyDajunSpaceCraft/leetcode_job
863ae7d3e351b3163dfc623fbcd70b1b8e5cf4f1
73fee35139400c06a3e2d64a1f233ff4581e50c9
refs/heads/master
2022-10-07T03:39:54.828250
2020-06-10T07:43:38
2020-06-10T07:43:38
239,254,742
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# ไฝ ็š„ไปปๅŠกๆ˜ฏ่ฎก็ฎ—ย abย ๅฏนย 1337 ๅ–ๆจก๏ผŒa ๆ˜ฏไธ€ไธชๆญฃๆ•ดๆ•ฐ๏ผŒb ๆ˜ฏไธ€ไธช้žๅธธๅคง็š„ๆญฃๆ•ดๆ•ฐไธ”ไผšไปฅๆ•ฐ็ป„ๅฝขๅผ็ป™ๅ‡บใ€‚ # ็คบไพ‹ 1: # ่พ“ๅ…ฅ: a = 2, b = [3] # ่พ“ๅ‡บ: 8 # ็คบไพ‹ย 2: # ่พ“ๅ…ฅ: a = 2, b = [1,0] # ่พ“ๅ‡บ: 1024 # ่งฃ้ข˜ https://mp.weixin.qq.com/s/GjS9ORJv3KtXEOU5WsyqYQ class Solution(object): def mypow(self, a, k): base = 1337 a%=base res = 1 for i in range(k...
UTF-8
Python
false
false
781
py
156
372-super-pow.py
155
0.466568
0.419019
0
33
19.393939
55
yangks0522/meiduo_15
7,284,264,581,570
1a2207afddd7c545d0f10027711d62a2c4780885
99f89a22ddac7be391864925a94fc6d2e713b309
/mall/celery_tasks/email/tasks.py
c98cf9a9017e89c72b0cd64b05358ecdf7fd0a74
[]
no_license
https://github.com/yangks0522/meiduo_15
a4a208ca7c5e50cdc79c9e988a4d6106080b0b5e
0eb5ac946a94dea6182fcf77a33e4bddf4c4ff5d
refs/heads/master
2020-04-04T16:10:21.671723
2018-11-20T11:44:49
2018-11-20T11:44:49
156,067,266
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from celery_tasks.main import app from django.core.mail import send_mail from mall import settings from django.core.mail import send_mail from users.utils import generic_active_url @app.task(name='send_verify_mail') def send_verify_mail(email, user_id): subject = '็พŽๅคšๅ•†ๅŸŽๆฟ€ๆดป้‚ฎไปถ' message = '' from_email = set...
UTF-8
Python
false
false
902
py
21
tasks.py
21
0.606173
0.606173
0
29
26.931034
80
ChoiSuhyeonA/infoSec
6,098,853,579,885
2884c907eb22d2a68dd3d8e8bcc3b84754e28c34
b3679a676efbf51e20beaf8dbfa147d67c4cc746
/Integrated/PGP_All_Alice.py
090d0d1ad7d2fc43bd788fd62505e2cf3332d650
[]
no_license
https://github.com/ChoiSuhyeonA/infoSec
97483d400c752e97573535155aa53464c2b167d5
8845402934ec2fd0e3f351c043a05436a5486bb4
refs/heads/master
2022-07-07T10:46:33.700605
2020-05-14T13:51:11
2020-05-14T13:51:11
263,926,356
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from Crypto.Cipher import PKCS1_OAEP from Crypto.PublicKey import RSA import socket # Import socket module from Crypto.Signature import PKCS1_v1_5 from Crypto.Hash import SHA import base64 from Crypto.Cipher import AES from Crypto import Random # Step 0 : Alice Generation Key of Alice privatekey = R...
UTF-8
Python
false
false
5,040
py
67
PGP_All_Alice.py
54
0.655159
0.63373
0
162
30.117284
101
dekanayake/sell_or_exhange
15,393,162,826,572
54593835ba3b58e7f7d8522542115796c05c6a19
42baede403a6c13e3913abcda8d2c9e016c7aa69
/product/migrations/0004_auto_20160628_0349.py
89b78dd317071f53052159672e61ae304f4508b6
[]
no_license
https://github.com/dekanayake/sell_or_exhange
e5e91084079c68de06f5b5ef7c4c419d8a10e34f
93f652710650f2863b436f1162822970898cae4a
refs/heads/develop
2020-12-23T08:53:00.018575
2017-02-26T12:10:05
2017-02-26T12:10:05
237,102,368
0
0
null
false
2020-04-30T14:28:15
2020-01-29T23:24:34
2020-01-29T23:28:09
2020-04-30T14:28:13
252
0
0
1
Python
false
false
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-28 03:49 from __future__ import unicode_literals from django.db import migrations, models import product.models class Migration(migrations.Migration): dependencies = [ ('product', '0003_temporyproductimage'), ] operations = [ ...
UTF-8
Python
false
false
741
py
47
0004_auto_20160628_0349.py
19
0.612686
0.581646
0
27
26.444444
90
amitamitamitamit/earthio
7,567,732,425,168
5285fe4b79c0737ed794a8b22dea53c87ce5ced3
b0928a7bdb9b8a47d49b3d64ec9b0f54259d1f4d
/earthio/tif.py
e7fd662322d978cec8d0b34c464c811b09d8d74b
[]
no_license
https://github.com/amitamitamitamit/earthio
ca1591e50dc0866e9236c1655aeaefe12f9bf3c2
766bbeb6cdcd310e1e6c3a2072aa8a72b565a0f2
refs/heads/master
2019-11-20T00:47:07.795954
2017-07-28T03:06:59
2017-07-28T03:06:59
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' ------------------ ``earthio.tif`` ~~~~~~~~~~~~~~~~~~~ Tools for reading GeoTiff files. Typically use the interface through - :func:`earthio.load_array` - :func:`earthio.`load_meta` ''' from __future__ import absolute_import, division, print_function, unicode_literals from collections import OrderedDi...
UTF-8
Python
false
false
8,725
py
17
tif.py
17
0.563897
0.561834
0
231
36.770563
152
hermanramos1/east_la_yp
1,142,461,347,928
0d485c273b86b89aba955188d3cade196661e35b
956456f3a16c470dc86ea2dc2f45844ac62f1d2b
/apps/main_app/admin.py
41d94d242b6980487a7e4b009b399b88e0a1f378
[]
no_license
https://github.com/hermanramos1/east_la_yp
832dc869bb48c7263d839ac2b3f5f44223478642
3d368ebc26679bb682fa021729e710749bca7c95
refs/heads/master
2022-12-10T17:08:30.346113
2019-09-04T03:14:38
2019-09-04T03:14:38
199,695,032
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from .models import Contact, SSOT, Winter_Jubilee, Message_Board admin.site.register(Contact) admin.site.register(SSOT) admin.site.register(Winter_Jubilee) admin.site.register(Message_Board)
UTF-8
Python
false
false
226
py
16
admin.py
10
0.814159
0.814159
0
8
27.25
64
Design-Pattern-Practice/Factory-Pattern
5,875,515,276,617
51a2f46a8a9ead150a26d46845dd6e5a7ffb1d16
c93e2965534518e53ae4fe7f7b9461d764df24f4
/creator/conCreatorA.py
7946db3b863f4be8623866c1127d7dafce7350cd
[]
no_license
https://github.com/Design-Pattern-Practice/Factory-Pattern
81ed7f5854e928754de9c3a4ab517c37e06fa53a
3b78132a3f4796d07f390032005e4757a2223a1a
refs/heads/main
2023-05-03T21:54:12.946305
2021-05-25T13:58:40
2021-05-25T13:58:40
370,711,100
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .creator import Creator from product.productA import ConcreteProductA class ConCreatorA(Creator): def createProduct(self,data): return ConcreteProductA(data)
UTF-8
Python
false
false
176
py
6
conCreatorA.py
5
0.784091
0.784091
0
7
24.285714
45
roksikonja/dslab_virgo_tsi
2,164,663,559,685
4ec55e998ec814fa698b966627901ba819b2d09e
7048e155b165261dda8f853e4b673a97bb9ad8ed
/dslab_virgo_tsi/status_utils.py
e93c901d0d69c13608fb517dbc42b680dfff08fb
[]
no_license
https://github.com/roksikonja/dslab_virgo_tsi
08dcf215c0869b822ae229d058b10afa983998bb
14a9463a62ad3b05599ca30375faaa364ae5f972
refs/heads/master
2020-08-02T20:08:06.000373
2020-04-24T14:28:46
2020-04-24T14:28:46
211,490,464
0
0
null
false
2019-12-27T18:30:50
2019-09-28T11:32:34
2019-12-18T14:21:05
2019-12-27T18:30:50
200,988
0
0
3
Jupyter Notebook
false
false
from enum import Enum from threading import Lock from time import time from flask import render_template class StatusField(Enum): RUNNING = "is_running" JOB_NAME = "job_name" JOB_PERCENTAGE = "job_percentage" JOB_DESCRIPTION = "job_description" DATASET_TABLE = "dataset_table" DATASET_LIST = [...
UTF-8
Python
false
false
3,856
py
40
status_utils.py
24
0.602956
0.600882
0
105
35.72381
118
AdamZhouSE/pythonHomework
2,078,764,210,982
4085da57bab7eb35bc2a29ab4795981a8eda5278
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/Cases/2750/.mooctest/answer.py
4447bf3a1332d5e59f1bda6b7a5d490da432f744
[]
no_license
https://github.com/AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from typing import List class Solution: def findMinHeightTrees(self, n: 'int',edges: 'List[List[int]]') -> 'List[int]': if n == 1: return [0] paths = [set() for _ in range(n)] for node1, node2 in edges: paths[node1].add(node2) paths[node2].add(node1) leaves = ...
UTF-8
Python
false
false
790
py
45,079
answer.py
43,489
0.536709
0.522785
0
22
34.954545
83
lzxysf/python
14,577,119,026,143
90769df739fb3c9a027c243a2bcc6bce2da9d0b6
50bd87708a19ac7003c2cc3e2834047acc684eb9
/cli/python_049_pool.py
2cf3fe901b06e9333f722b1e112bdfa198244d92
[]
no_license
https://github.com/lzxysf/python
db30bef343bb02d99c3f2a0f96c4c942b69b8b52
7d1f09b788eec293ae0bddcc0117e2dcd8a79f0b
refs/heads/master
2020-12-05T06:43:24.461101
2020-04-08T13:21:02
2020-04-08T13:21:02
232,037,659
0
0
null
false
2020-04-08T13:14:39
2020-01-06T06:23:20
2020-04-08T13:14:11
2020-04-08T13:14:38
0
0
0
1
Python
false
false
''' ่ฟ›็จ‹ๆฑ  ๅˆๅง‹ๅŒ–Poolๆ—ถ๏ผŒๅฏไปฅๆŒ‡ๅฎšไธ€ไธชๆœ€ๅคง่ฟ›็จ‹ๆ•ฐ ๅฝ“ๆœ‰ๆ–ฐ็š„่ฟ›็จ‹ไปปๅŠกๆไบคๅˆฐPoolๆ—ถ๏ผŒๅฆ‚ๆžœ่ฟ›็จ‹ๆฑ ่ฟ˜ๆฒกๆœ‰ๆปก๏ผŒ้‚ฃไนˆๅฐฑไผšๅœจ็ฉบ้—ฒ่ฟ›็จ‹ไธญๆ‰ง่กŒ่ฏฅไปปๅŠก๏ผŒๅฆ‚ๆžœ่ฟ›็จ‹ๆฑ ๆปกไบ†๏ผŒๅฐฑไผš็ญ‰ๅพ…่ฟ›็จ‹ๆฑ ๆœ‰็ฉบ้—ฒไฝ็ฝฎๅŽๅ†ๆ‰ง่กŒ่ฏฅ่ฟ›็จ‹ ''' from multiprocessing import Pool def proc_msg(msg): print('่ฟ›็จ‹ๅค„็†็š„ๆ•ฐๆฎmsgไธบ{}'.format(msg)) pool = Pool(3) for i in range(10): pool.apply_async(proc_msg, (i,)) pool.close() # ๅ…ณ้—ญ่ฟ›็จ‹ๆฑ ๏ผŒๅ…ณ้—ญๅŽpoolไธๅ†ๆŽฅๅ—ๆ–ฐ็š„่ฏทๆฑ‚ pool.join...
UTF-8
Python
false
false
1,657
py
91
python_049_pool.py
72
0.771496
0.767962
0
41
19.707317
79
innvariant/pyklopp
12,086,038,000,799
acd36301fa3f50b809beddda2e8dcc1423ec0a51
03875da107c5a1331e6b450d5d07d934d173d216
/pyklopp/console/commands/train.py
d7576cd4bd79250fed7b7261e0c24cc5d1abc679
[]
no_license
https://github.com/innvariant/pyklopp
3cfe94eeefb017bd159161ef7b01e7ad66c50b33
9704688f3cedbf8546a490db7fcbaf0b56a499e3
refs/heads/master
2023-05-25T19:15:43.132859
2020-10-05T14:28:11
2020-10-05T14:28:11
248,254,719
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import os import random import socket import time import uuid import ignite import numpy as np import torch from cleo import Command from ignite.contrib.handlers import ProgressBar from ignite.engine import Events from ignite.engine import create_supervised_evaluator from ignite.engine import create_super...
UTF-8
Python
false
false
14,537
py
26
train.py
20
0.573365
0.570613
0
353
40.181303
136
keremistan/Data-Storage-with-Influx
17,514,876,658,484
ecbca9d50b9bf7f23d84ccdbfc6e962a8fc04edc
1dc2e09c55de6b1c952e0b6d550e740884d5c56c
/LatencyVisualisation/temp_storage.py
150d984b3964bad6c097fcda1ad6096a4de32617
[]
no_license
https://github.com/keremistan/Data-Storage-with-Influx
b6e93c355728945d89e3f61a024ee9486143ccff
fa29150625c2ca05ab26136c102e594d71fca373
refs/heads/master
2023-05-12T14:26:00.799638
2020-01-11T07:48:37
2020-01-11T07:48:37
223,602,495
0
0
null
false
2023-05-01T21:19:19
2019-11-23T14:31:58
2020-01-11T07:48:45
2023-05-01T21:19:19
22
0
0
1
Python
false
false
from queue import Queue # class TemporaryDataStorage(Queue): # __instance = None # @staticmethod # def get_instance(): # if TemporaryDataStorage.__instance == None: # TemporaryDataStorage() # return TemporaryDataStorage.__instance # def __init__(self): # if Tempor...
UTF-8
Python
false
false
927
py
10
temp_storage.py
5
0.615965
0.615965
0
34
26.264706
57
rhoboro/events
19,052,474,940,876
ff850d596354c569ee68b4f060db2eacd6f2d6e0
e627f9734fc3176f51b5ca40086fbf15f36cd65f
/pycon.jp.20221014/src/hello_world.py
5b74496079a260b82d50c91a1bee2236771042bd
[]
no_license
https://github.com/rhoboro/events
ac5eeb1826084dcb7584b5d6882b0755ac4add41
54c25e4e7e5c493a86f196c9aa395773c4642bf6
refs/heads/main
2023-05-27T05:08:42.678190
2023-01-28T23:59:39
2023-01-28T23:59:39
150,962,154
7
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def hello(): # This is a comment line print("Hello, world") if __name__ == "__main__": hello()
UTF-8
Python
false
false
109
py
51
hello_world.py
17
0.513761
0.513761
0
7
14.571429
28
jwilk/i18nspector
7,000,796,701,150
ec8070d7fb621db91cfbbfb9dcce235ec94d2b9d
5e734cd4e071272688ab635243290936c5c2db40
/tests/test_strformat_c.py
ebb476f5002b45a7e8b7aa255f72c1d71e6ae25b
[ "MIT" ]
permissive
https://github.com/jwilk/i18nspector
a2a4aecee00de9cfb8d9a0354614f7413e19f1b9
d9762416937399b81abaedc9ddcdc36dbda1c318
refs/heads/master
2023-09-04T12:32:35.255101
2023-08-22T08:41:50
2023-08-22T08:41:50
29,258,684
2
3
MIT
false
2022-06-27T19:04:57
2015-01-14T18:22:23
2022-02-11T14:10:31
2022-06-27T19:04:54
5,178
1
4
8
Python
false
false
# Copyright ยฉ 2014-2022 Jakub Wilk <jwilk@jwilk.net> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the โ€œSoftwareโ€), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
UTF-8
Python
false
false
16,820
py
91
test_strformat_c.py
59
0.52252
0.511811
0
571
28.434326
80
Ilya1691/computers-crawler
12,945,031,435,862
594e042e2606f5facaed3f351736750ede02923a
5b8f9dad9900767b9811080f08e4168e089d7c41
/parsers/product/product_dict.py
76a7b1f2422516a99f3224450af74c5ffd0dce7a
[]
no_license
https://github.com/Ilya1691/computers-crawler
d1614e2f08ce73003b309ba45850e291f6c5e895
f199c3c6660717a467627fb0a9dcd36d79e4ccb8
refs/heads/master
2021-08-23T22:07:01.990135
2017-12-06T19:44:32
2017-12-06T19:44:32
100,620,837
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class ProductDicts: product_characteristics = { "ะŸั€ะพั†ะตััะพั€:": "processor", "ะขะฐะบั‚ะพะฒะฐั ั‡ะฐัั‚ะพั‚ะฐ ะฟั€ะพั†ะตััะพั€ะฐ:": "clock_frequency", "ะšะพะป-ะฒะพ ัะดะตั€:": "NumberOfCores", "ะกะพะบะตั‚:": "socket", "ะคะพั€ะผ-ั„ะฐะบั‚ะพั€:": "Form_factor", "ะขะธะฟ ะฟะฐะผัั‚ะธ:": "type_ram", "ะžะฑัŠะตะผ ะฟะฐะผัั‚ะธ:": "volu...
UTF-8
Python
false
false
765
py
12
product_dict.py
7
0.56
0.56
0
17
34.294118
58
CJYang-Yale/rotcscraper
11,467,562,718,471
89deedd4b567b9865cb1f26abaa64bf50d360beb
60765f586f705f9e2522655bd8af8fa839eaf863
/scraper.py
724a1103f3f7ad944967a1d3ee80d02490181573
[]
no_license
https://github.com/CJYang-Yale/rotcscraper
a89ff3d25ec6150a6f3483cd4f3fcd57dbc333de
8ed09ea2bd440ecf00eb074c406874eefd8732e8
refs/heads/main
2023-02-15T07:51:42.131089
2021-01-10T06:10:43
2021-01-10T06:10:43
328,315,265
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from bs4 import BeautifulSoup import requests import json from cs50 import SQL states = ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA...
UTF-8
Python
false
false
2,541
py
1
scraper.py
1
0.622983
0.621802
0
44
56.75
327
vmgabriel/client-base
3,307,124,855,840
5dfb0736d70f93a2f94c6a0fd570867dbd8a8a77
277f171d59a284f8835b9bda37b8970232030ae3
/config/views.py
2bf6abc136825786eff35656349333793501a336
[ "Apache-2.0" ]
permissive
https://github.com/vmgabriel/client-base
226691b82cd71979ede93aeeb7b4acff9c3fb1cb
322a6bdcbbfa1d363efa5839558788a62bdfe9bf
refs/heads/master
2023-03-26T07:26:04.116505
2021-03-22T09:20:02
2021-03-22T09:20:02
340,098,762
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""View of the Page""" # Libraries from django.shortcuts import render from django.http import HttpResponseRedirect def home_view(request): """Home View page""" if request.user.is_authenticated: return HttpResponseRedirect('/clients') return render( request, 'index.html', ...
UTF-8
Python
false
false
371
py
24
views.py
13
0.61186
0.61186
0
18
19.611111
47
CodeSoju/ImpracticalPythonProjects
7,481,833,073,092
74f177d868775ea42d29d071cc39e93339e1fbc2
89c1fbf34fd1e95a53be9f1e6c7c11be61ba6f51
/PalingramSpelling/load_dictionary.py
5d9e38875a58e1db1174d8acdc025fad4ac2e1da
[]
no_license
https://github.com/CodeSoju/ImpracticalPythonProjects
c62687580a7654e35452bf68ab61dc7ce45bb644
e54504132ccf3f3ceaf3f9a4d0a0b62f7673715c
refs/heads/master
2022-12-14T05:30:20.757331
2020-09-03T00:57:21
2020-09-03T00:57:21
292,429,304
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Load a text file as a list. Arguments: - text file name (and a dictionary path, if needed) Exceptions: - IOError if filename not found Returns: -A list of all words in a text file in lower case Requires: - import sys ''' import sys def load(file): ''' Open a text file & return a list of lowercase strin...
UTF-8
Python
false
false
1,596
py
7
load_dictionary.py
7
0.734336
0.733709
0
45
34.444444
135
sprinuko/kaoruko
11,089,605,584,804
ec2eb40562e2edb6026e787437243a11612fd917
713daaadb15b8a6ed3d8ac95557a3bae0eee66b3
/cogs/background.py
e4124c89182e720ee869ca930bb06a326c65323c
[]
no_license
https://github.com/sprinuko/kaoruko
9760aef0bab3766d5bd49057c359b585cca13b13
5903af64a97a0ea6d0291f4337c1ac6f8a5b446f
refs/heads/master
2018-12-26T13:38:40.626598
2018-10-21T16:28:52
2018-10-21T16:28:52
144,898,612
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#stuff that runs in the background import discord from discord.ext import commands msg = '' class background(): def __init__(self, bot): self.bot = bot self.access_channelid = 'yea1' self.general_channelid = 'yea2' async def on_member_join(self, member : discord.Member):...
UTF-8
Python
false
false
1,949
py
9
background.py
6
0.608004
0.596716
0
40
46.725
353
arra1997/zipline
223,338,337,079
56cdea5864ff45c39a5ac8e9c91ef7a8eb8308eb
00b345695bde9f11b1721fe3398f73c913647bd6
/zipline/pipeline/loaders/equity_pricing_loader.py
f482896ea49fc3ac3964cf2a3192fd6749550a02
[ "Apache-2.0" ]
permissive
https://github.com/arra1997/zipline
0115a40962a00c720cc8dec60ea4a9aadeb4132c
38d47f1b470f47ff7e8c35d9874d68785d6d2927
refs/heads/master
2022-12-16T21:10:35.030046
2019-11-15T23:04:45
2019-11-15T23:04:45
195,696,228
1
1
Apache-2.0
false
2022-12-08T03:03:03
2019-07-07T20:55:41
2019-11-15T23:06:54
2022-12-08T03:03:01
341,223
1
1
12
Python
false
false
# Copyright 2015 Quantopian, 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 writ...
UTF-8
Python
false
false
2,566
py
3,245
equity_pricing_loader.py
8
0.655885
0.64887
0
73
34.150685
79
xueanxi/learnAi
9,337,258,936,642
5b3a073b932e135bbbd907b97efa31e4e4769a08
acfb40839a7d74d36bce820a01e05cb5488061da
/test/48_Iteration.py
68f2ceec41e811f8bb4b570852574fb49f97bec1
[]
no_license
https://github.com/xueanxi/learnAi
04683246a7eafea948d8ba9710b642c3d22aab51
7f9fd6d6fd68d751b0bef95783d06b746cf47843
refs/heads/master
2021-10-21T19:35:45.980539
2019-03-06T02:00:42
2019-03-06T02:00:42
162,879,676
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2018-01-21 22:32:27 # @Author : anxi.xue (xueanxi@163.com) # @Version : $Id$ import os def getMaxAndMin(list1): max = list1[0] min = list1[0] for item in list1: if item >= max: max = item for item in list1: if ite...
UTF-8
Python
false
false
592
py
125
48_Iteration.py
109
0.557432
0.45777
0
27
20.925926
59
LevupCompany/beton
18,408,229,835,970
280ea35ca0d037a3eb651829e47dbf060d85ee4b
2bc10ff3501d32d8bcac5ae17fb1f1819ee20523
/catalog/migrations/0010_auto_20190516_1630.py
d72e6b24a046a94e16dd56bd7fbf64d962f9ea0d
[]
no_license
https://github.com/LevupCompany/beton
cc57ba62d20ec578f81bedffbab47e8621113b72
b555f5949d062ac96a4651541cbd1ed6b680eddd
refs/heads/master
2022-11-26T07:17:37.193772
2019-06-06T16:26:00
2019-06-06T16:26:00
187,328,141
0
0
null
false
2022-11-22T03:49:20
2019-05-18T07:31:57
2019-06-06T16:26:45
2022-11-22T03:49:17
11,497
0
0
2
JavaScript
false
false
# Generated by Django 2.2 on 2019-05-16 13:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalog', '0009_delete_ordercheck'), ] operations = [ migrations.AddField( model_name='order', name='cancel', ...
UTF-8
Python
false
false
599
py
79
0010_auto_20190516_1630.py
52
0.580479
0.549658
0
23
24.391304
78
tsetsoo/forestFires
9,672,266,371,887
8ab82312003b1df4eaada8c0935b9759165f8a8f
88632c7653e2cb4a0f27875234f826f13552c5b1
/OpenCV-Verification/OpenCV_Verification.py
1903fb058927234b41f84c8248b98e646ef6e1b1
[]
no_license
https://github.com/tsetsoo/forestFires
16869db7023ddafe515ebba738a4fd93a9108ef1
7809f8b8bec64eb1169ed975543d612f54715232
refs/heads/master
2018-12-26T07:21:24.261103
2018-10-22T20:48:46
2018-10-22T20:48:46
153,888,474
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import numpy as np import sys #---------------------------- #File Path Initialization FileName = sys.argv[1] test = sys.argv[0] print (FileName) print (test) #---------------------------- #---------------------------- #User Image Loading original = cv2.imread(FileName) img = cv2.imread(Fi...
UTF-8
Python
false
false
4,211
py
8
OpenCV_Verification.py
3
0.548801
0.479221
0
149
26.248322
104
sm1lex/learn_py
2,980,707,333,514
fbdbbfd4e8655b5ab69b0cbb4aecc3586a8128bb
a2efb92e39c03249581ee5f167512d9da6f04b8f
/backup_ver2.py
54b9440529a6acbc15856e2f5908752d312e3ac0
[]
no_license
https://github.com/sm1lex/learn_py
b580da43ac043102ee4d79d21eb4dffe52569f48
980b5a0e648e8384ee9728a90e45ea27117dc031
refs/heads/master
2020-09-11T07:02:13.127680
2020-01-10T07:45:53
2020-01-10T07:45:53
221,981,552
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#version 2 with folder creating import os import time source = ['~/git'] backup_folder = '/home/aleksey/backup' #Check out has been folder creating if not os.path.exists(backup_folder): os.mkdir(backup_folder) print("Folder is created") name_backup_folder = backup_folder + os.sep + time.strftime('%Y%m%d') na...
UTF-8
Python
false
false
1,100
py
44
backup_ver2.py
42
0.687273
0.682727
0
38
27.947368
80
furushchev/jsk_pr2_inference
17,085,379,941,762
748a0d5ee10acbc689637aa5b5a34fe67c7c5d3d
4af2779de09ba1205db3513d101606230abfff5a
/scripts/elevator-success-rate.py
e3807855cbd5b1636915f38016422100c1815e9e
[]
no_license
https://github.com/furushchev/jsk_pr2_inference
07ab401508e838d11794f66d26d10e99482f8a2b
5c08b623c7090b05e44ca523ef34a7c859c4376a
refs/heads/master
2018-01-09T06:59:07.140847
2016-01-15T00:25:03
2016-01-15T00:25:03
44,508,913
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import argparse import pymongo import pprint DEBUG=False CSV_FILE="succ_rate2.csv" def aggregate(host, port, db_name, col_name): if DEBUG: print "host:", host print "port:", port print "db:", db_name print "col:", col_name conn = pymongo.Connection(host=...
UTF-8
Python
false
false
2,393
py
25
elevator-success-rate.py
5
0.464271
0.447137
0
77
30.077922
98
princemathew1997/random-python
14,903,536,551,703
1cd01861ab7e406d346c59b6563eabae9c35d64d
f1c6178b5f0bb6cbd3d42d9326e9f9c41701e0a6
/Day 6/d5-3.py
f9a720cd77773022afaba9b46ed6dfe90a24b43c
[]
no_license
https://github.com/princemathew1997/random-python
779d377fb43a39b37584b7f3a5702f0f29e98ad0
80b9065353525465b87636efcd7879d5f7a8ae76
refs/heads/main
2023-01-31T09:38:27.056368
2020-12-19T15:20:39
2020-12-19T15:20:39
319,009,807
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#tuple a=(1,2,3,4) print(type(a))
UTF-8
Python
false
false
33
py
77
d5-3.py
76
0.606061
0.484848
0
3
10.333333
14
JoanaMWarnecke/sftt
3,049,426,801,370
87d2966272efe654f764b1fa01c52b28924b933c
2bdc4255d0d5c0635933da07e1e12dde749c1fff
/visualization/gauss_linear_transform.py
321b60ab93f155fc476e3f06098681562173563e
[]
no_license
https://github.com/JoanaMWarnecke/sftt
cd80aec590374e1ad97b60ba26d9bf6b86b18076
5824741fd7ada7b1ebbde011b40a08f4deede842
refs/heads/master
2021-09-07T13:19:13.498229
2018-02-22T20:02:19
2018-02-23T12:14:26
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import scipy.stats as stats normal_var = stats.norm(loc=0, scale=1) dx = 10 x = np.linspace(-dx, dx, 100) p = normal_var.pdf(x) samples = 2.5 * normal_var.rvs(100000) + 2 xb = 9 plt.figure(figsize=(4, 8)) plt.subplot(2, 1,...
UTF-8
Python
false
false
739
py
29
gauss_linear_transform.py
27
0.652233
0.596752
0
39
17.948718
51
JoanPuig/PyFIT
5,970,004,553,145
ed3d844ec32b29095d9b9a75664b89d3e890a55d
76bd6b0169b6dcd919a6ace44e2b0ed8c8c4adc0
/examples/example_decode_fit_activity.py
0a419cb409e7006994be5ea32795a824575d28a3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
https://github.com/JoanPuig/PyFIT
8e8d256f2f069eb407ea7967dfc610ec5d21cce1
bc0a2b3984e77008bd6e40bde72ac05ae3f32c31
refs/heads/master
2020-07-10T19:15:52.856753
2019-09-23T19:37:24
2019-09-23T19:37:24
204,345,141
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright 2019 Joan Puig # See LICENSE for details from FIT.activities import ActivityDecoder def main(): # This sample code shows how to decode a FIT file into an activity # Modify to fit your directory setup file_name = './data/FIT/MY_ACTIVITY_FILE.fit' activity = ActivityDecoder.decode_activi...
UTF-8
Python
false
false
396
py
23
example_decode_fit_activity.py
21
0.684343
0.674242
0
20
18.75
70
mahidulmoon/Online-Quiz-Portal
14,362,370,646,454
0ef8d674a4161347da3607b64d37953547de3740
7e5bd07780961a2bc56d28242b5ad1193b8d0dbc
/backend/quiz/migrations/0004_auto_20200908_2016.py
89a1e378cdda1b272734969d41079128b2d8014d
[]
no_license
https://github.com/mahidulmoon/Online-Quiz-Portal
889b5e6e0f9b68611a63a8ba91656ce1242f77d9
156bd4f0d2a1a614d1361bf3427e8ea89e8f2fe9
refs/heads/master
2023-01-02T17:24:40.807160
2020-10-28T04:43:18
2020-10-28T04:43:18
292,612,613
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.0.6 on 2020-09-08 14:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('quiz', '0003_auto_20200908_2010'), ] operations = [ migrations.AlterField( model_name='addnewquizquestion', name='an...
UTF-8
Python
false
false
1,299
py
41
0004_auto_20200908_2016.py
21
0.56659
0.529638
0
43
29.209302
63
Venezix/robloxapi
11,562,051,994,332
33f3c482c75523c1228c52cb422bfeab0d6b10c0
3dba23773c6f73178f943bdbc4b8f42fb6494a0a
/robloxapi/Trade.py
a51bda70838114ed3a692db4ee4652cae8a7c276
[ "MIT" ]
permissive
https://github.com/Venezix/robloxapi
090a44ba4f3c9d8590f469b2de8466c9dc992784
e99e0ada2b1b080c223d819c80e5a175c3170aa2
refs/heads/master
2020-06-25T07:30:48.082558
2019-07-12T19:11:49
2019-07-12T19:11:49
199,246,220
1
0
null
true
2019-07-28T05:26:15
2019-07-28T05:26:14
2019-07-12T19:12:22
2019-07-12T20:13:02
341
0
0
0
null
false
false
import json class Trade: def __init__(self, request): self._request = request.request self.rawRequest = request self.authorized = request.auth self.getTrades = 'https://www.roblox.com/my/money.aspx/getmyitemtrades' self.action = 'https://www.roblox.com/trade/tradehandler.a...
UTF-8
Python
false
false
4,733
py
6
Trade.py
5
0.532221
0.526516
0
116
39.767241
120
yhyuan/SportFish
15,736,760,199,341
468ba1d091091196130d8d5f68a20be359222d6f
82d106b78adf150fdba26640914ca61124268445
/SportFish.py
a9289518869726d185a0de60d65b24d40b5c2dbf
[]
no_license
https://github.com/yhyuan/SportFish
4b89d3d952a7ad71078c8407fd264cc3186b31e1
5699f28ae24d307e98667041be6326c52ded91b1
refs/heads/master
2016-09-11T00:58:54.756495
2015-04-27T16:56:10
2015-04-27T16:56:10
12,625,929
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# This script reads a table named FISH_ADVISORY to generate a file geodatabase. import sys, arcpy, os, zipfile, time reload(sys) sys.setdefaultencoding("latin-1") import cx_Oracle from datetime import date start_time = time.time() def createFeatureClass(featureName, featureData, featureFieldList, featureInsertCursorF...
UTF-8
Python
false
false
14,447
py
5
SportFish.py
2
0.680833
0.657022
0
239
59.447699
825
tianmingbo/LeetCode
6,760,278,570,234
fc00489323ef7cf3fce730da3a80d445eb440503
f28c31b437d1e6c5b4102a2033a3e373e6bbaa2f
/LeetCode/ๆ•ฐ็ป„/670. ๆœ€ๅคงไบคๆข.py
912f0465e9c4c2cea3f19a2bcde1b8602725fa69
[]
no_license
https://github.com/tianmingbo/LeetCode
6a12923a0bf9001ab1cbe0256e9a3ad8ab5a7681
403db1af8a1dfbdad0c8e5ebda0c479a98b0fb43
refs/heads/master
2023-04-03T21:08:17.934636
2023-03-28T03:31:16
2023-03-28T03:31:16
290,133,658
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/1/8 20:52 # @Author : tmb class Solution: def maximumSwap(self, num: int) -> int: nums = [int(i) for i in str(num)] max_num = -1 tmp = [0 for _ in range(len(nums))] for i in range(len(nums) - 1, -1, -1): if nums[i] > max...
UTF-8
Python
false
false
828
py
921
670. ๆœ€ๅคงไบคๆข.py
815
0.426471
0.395833
0
27
28.222222
68
Leviona/barbershop-site
10,411,000,745,949
25b4a36075569a30a029d8c712009636a5d4a7d4
85b218e0e4456404e2bc6be6b13e3fec11c5e86b
/appointment/views.py
946ea56fd769f198e21309dde4ac5a5c3804c1c1
[]
no_license
https://github.com/Leviona/barbershop-site
6d6fddb0b0c4c7c011cf676b5ccdb6b5e713bbee
f932fa53a765da219bcff9fbac9904d6863ef1ce
refs/heads/master
2020-03-17T04:56:53.382824
2018-06-30T03:51:02
2018-06-30T03:51:02
133,295,856
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render # Create your views here. def home_page(request): if request.method == "POST": time = request.POST.get("time") return render(request, 'appointment/home_page.html', {'time': time}) return render(request, 'appointment/home_page.html')
UTF-8
Python
false
false
279
py
3
views.py
2
0.72043
0.72043
0
12
22.333333
70
DamianoGiani/Tesi
5,660,766,923,051
d27aa0e2ecb21306840cee8e7c095eb41b7b7383
fe891e0c86268b1292ffed78328c07b06b48a6f9
/encode.py
7f8ee5e9760a3747328ea3493b03a21d259ec55b
[]
no_license
https://github.com/DamianoGiani/Tesi
4dd05ee4b58ce401a0e80005e2b105d9f40b1b64
740cafe0aa5e471e0411ce805a48513a1c3ca558
refs/heads/master
2022-12-15T20:52:52.950854
2020-09-16T11:05:43
2020-09-16T11:05:43
292,057,365
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from PIL import Image img = Image.open("IMG_2362.JPG") out = img.convert("RGB") img_array = np.array(out) print(img_array.shape[0]*img_array.shape[1]) for x in range(0, img_array.shape[0]): if x%2==0: for y in range(0, img_array.shape[1]): if y%2==0: ...
UTF-8
Python
false
false
1,566
py
7
encode.py
5
0.554278
0.514049
0
47
31.361702
85
fabian57fabian/Watermark-DnCNN
2,156,073,611,521
314caf995f09aa81ff9048aa89336bc547a6d2a6
f5f3d26ac4de408e57041bfb954de4e8cf14623f
/utility.py
8014ca145986f056a6216e39dcdcde08ea8e785d
[]
no_license
https://github.com/fabian57fabian/Watermark-DnCNN
61995ea4a8288dbf8dbacefed58c56c69a9c6102
e1f7486e6683c72514d95afd764415e08287a8e9
refs/heads/master
2023-06-17T14:21:23.644681
2021-07-09T08:46:53
2021-07-09T08:46:53
335,776,389
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math import os import cv2 import numpy as np import time import json def ResizeWithAspectRatio(image, width=None, height=None, inter=cv2.INTER_AREA): dim = None (h, w) = image.shape[:2] if width is None and height is None: return image if width is None: r = height / float(h) ...
UTF-8
Python
false
false
3,002
py
13
utility.py
12
0.588274
0.561292
0
117
24.666667
109
paulmorio/grusData
5,136,780,933,584
61485fd7e6b16947c36708a5be48c9fdcdc521ef
6d92e70f8329b6db68fa83e753fccc681d2f0b2e
/gradientDescent/gradient.py
f2e3ea91cea3b3548da652334d094b6adabb5f07
[ "MIT" ]
permissive
https://github.com/paulmorio/grusData
2417ba15e05d7475bca1f76d7fa33a83dc7612b5
3482f9c897e70493fd5320381607cf42c5c30eb5
refs/heads/master
2021-01-10T05:25:47.083756
2018-02-09T22:45:10
2018-02-09T22:45:10
48,182,147
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random def step(v, direction, step_size): """ move step-size in the direction from v """ return [v_i + step_size * direction_i for v_i, direction_i in zip(v,direction)] def sum_of_squares_gradient(v): return [2 * v_i for v_i in v] # pick a random starting point v = [random.randint(-10,10) for i in ran...
UTF-8
Python
false
false
496
py
24
gradient.py
17
0.667339
0.633065
0
25
18.88
46
shivambhatia/selenium_ocr
14,963,666,065,279
055182737b61dfd19a5983eedb2a9b03f3ea5f03
b97021ba02733b10ed4a62116906241b3dd9d82f
/app.py
cc0bd97c73250396caf3344478551ce72471e00a
[]
no_license
https://github.com/shivambhatia/selenium_ocr
16f5a78799e5cea3c9273191e969f5828e5a1e73
40de54f341af3e933b70be5836ae986d257e0951
refs/heads/main
2023-08-11T10:55:58.181921
2021-10-07T00:52:44
2021-10-07T00:52:44
414,416,850
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Designed By: Shivam Bhatia Date: 10/07/2021 Used to extract data from the given url using cloud vision api to bypass the captcha text using OCR """ from flask import Flask, redirect, url_for, request app = Flask(__name__) from flask import jsonify import detect url = "https://drt.gov.in/front/page1_advocate....
UTF-8
Python
false
false
973
py
4
app.py
2
0.656732
0.647482
0
38
24.631579
64
kosyachniy/crypto
13,898,514,177,579
887138f1ab8db9c675b1e40063a127362bffa951
2f89785f8b2836447a7c0322bf93ad916f7dc335
/func/main.py
8536bc6acb66a699b465bb10dcd266cf526d674f
[]
no_license
https://github.com/kosyachniy/crypto
d76157b89a8c594d777c10d994838ab239eab891
da2f585f73c2d8a7a0a0c272f8e0f77cb6edfe5f
refs/heads/master
2021-03-24T12:53:38.914984
2018-02-02T13:06:46
2018-02-02T13:06:46
104,661,894
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from func.data import * from func.telegram import * from func.trade import stock, graph
UTF-8
Python
false
false
87
py
42
main.py
23
0.793103
0.793103
0
3
28.333333
35
nikolajbaer/robosub_pyweek6
17,265,768,531,009
2dbff70b933056c07f2537a07d152dd91e567941
0913d7165ae1cb28854dfe223730be5bd2dbf237
/lib/main.py
f1edfbe63cdca76f654e2bbd2fdedbb3b2b22f48
[ "MIT" ]
permissive
https://github.com/nikolajbaer/robosub_pyweek6
33ea69e63668e3e41076d0bf2bfcd0846aebb3b5
2fe9bbb5d7a030c3a316fef0299f506055c67464
refs/heads/main
2023-05-05T21:22:03.683311
2021-05-29T21:14:44
2021-05-29T21:14:44
372,070,304
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
'''Game main module. Contains the entry point used by the run_game.py script. Feel free to put all your game code here, or in other modules in this "lib" directory. ''' import data import game #import pygletgame def main(): #pygletgame.main() game.main()
UTF-8
Python
false
false
266
py
5
main.py
4
0.714286
0.714286
0
14
18
75
moe-halabia/netbox
16,922,171,177,853
9d83feb208ec0d1f871f65eb7b633d55e62baae6
0baed54a80521e56383e3753eeef36180a907481
/230_virtual_machines.py
f138886fd3cd626a66626da5615947525a294b6b
[ "Apache-2.0" ]
permissive
https://github.com/moe-halabia/netbox
d499c56391446a15bfb5a474e87a9dd4616e5e80
562ff3f920064dc34e38b6f3e702bd6b783a3586
refs/heads/main
2023-04-07T03:19:10.733668
2021-04-11T16:30:44
2021-04-11T16:30:44
356,919,378
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from dcim.models import Site, Platform, DeviceRole from virtualization.models import Cluster, VirtualMachine from tenancy.models import Tenant from extras.models import CustomField, CustomFieldValue from startup_script_utils import load_yaml import sys virtual_machines = load_yaml('/opt/netbox/initializers/virtual_mac...
UTF-8
Python
false
false
1,656
py
14
230_virtual_machines.py
12
0.691702
0.688674
0
56
28.482143
77
Novandev/gn_api
11,605,001,671,064
2d0df3123329bc5e6a27a1b3b08e29e938fd493d
7c40224d1887d0942357d2bae1b2ea3a95c2a920
/config.py
7022967e05f17620fe99d717ef6ffdcfc85d9283
[ "MIT" ]
permissive
https://github.com/Novandev/gn_api
547b18f55635a93358d6ef01e6b3f475aaa10d09
08b071ae3916bb7a183d61843a2cd09e9fe15c7b
refs/heads/master
2020-05-18T05:20:26.562442
2019-04-30T17:08:44
2019-04-30T17:08:44
184,194,781
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from elasticsearch import Elasticsearch, RequestsHttpConnection from requests_aws4auth import AWS4Auth import boto3,os from dotenv import load_dotenv load_dotenv() # Load environment variables host = os.getenv("HOST") region = os.getenv("REGION") service = os.getenv("SERVICE") access_key = os.getenv("ACCESS") sec...
UTF-8
Python
false
false
719
py
9
config.py
4
0.702364
0.692629
0
25
27.76
74
ugoiloh/zuri-projects
10,247,792,000,941
779f849d1617b7c48147ea9e0b95d6d31dedd201
8ed3bffc2e9deb3f95b3a8486a4003f87d958de8
/Django-projects/newsfeed/urls.py
25cdb15ecfef56310a46998dad99f451db8dc918
[]
no_license
https://github.com/ugoiloh/zuri-projects
0b5f6220b28400094ef31717a36a2b583f9efaeb
a20f7be87d37b7aedddb666cea6c88ea1f3f026d
refs/heads/master
2023-05-13T20:41:00.485764
2021-05-21T23:11:36
2021-05-21T23:11:36
356,688,939
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from django.urls import path from .views import HomePage, PostDetailView app_name = 'newsfeed' urlpatterns = [ path('admin/', admin.site.urls), path('', HomePage.as_view() , name='index'), path('detail/<int:pk>/', PostDetailView.as_view(), name='detail') ]
UTF-8
Python
false
false
303
py
8
urls.py
5
0.689769
0.689769
0
11
26.636364
69