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
swftszn/lostandfounddatabase
16,853,451,710,491
1eca108ee82f564856d4de3b9e7c07d3d4bb37a0
fcff6eb8040679663b887907f1ed5317f9416a1e
/events/models.py
f8d7db547404e0b4a8d638cd94cfbcb772e590fa
[]
no_license
https://github.com/swftszn/lostandfounddatabase
1660211228d5dfa36a42b40ce9d98ca4e4913b74
8d4d5c4e1beb184220b77636a15e613a9dae85a3
refs/heads/master
2023-09-04T17:23:57.999388
2021-11-18T04:46:10
2021-11-18T04:46:10
429,298,289
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models # Create your models here. class Event(models.Model): date = models.DateField() title = models.CharField(max_length=200) details = models.TextField()
UTF-8
Python
false
false
197
py
5
models.py
2
0.700508
0.685279
0
8
23.125
44
ascetic-monk/Lane-Detection-with-ERFNet
12,352,325,988,965
d94a5dfddf65ea2dedffa5ed8ae912a7244356e0
9562193956ef6c08e463f5e880152bd6e2d5d16e
/datasets/__init__.py
07ae4c364239da4de1d24df165e44ba9c3c981e7
[ "Apache-2.0" ]
permissive
https://github.com/ascetic-monk/Lane-Detection-with-ERFNet
0dca99c7cd8b4b255d04c4f0b2663cbf34b81d24
7ec860502e725b2420ea27973308c5b44bd69ccc
refs/heads/main
2023-02-03T07:14:12.576657
2020-12-23T07:16:41
2020-12-23T07:16:41
325,172,973
1
0
Apache-2.0
true
2020-12-29T03:08:15
2020-12-29T03:08:14
2020-12-28T09:13:52
2020-12-23T07:16:41
26,081
0
0
0
null
false
false
from .lane_det import LaneDataSet
UTF-8
Python
false
false
33
py
12
__init__.py
10
0.848485
0.848485
0
1
33
33
dcollins4096/p19_newscripts
16,913,581,232,713
13bd907dc7e92d267d0cac28688c4599e8fb2f7b
04a643a77927bc56ab58c7df91d4733321e61e51
/p66_brho/explore/blos_ytvscyl.py
2e7debd3cac3523b400d3f88098788fa072347d1
[]
no_license
https://github.com/dcollins4096/p19_newscripts
d2fae1807170a4d70cf4c87222a6258211f993ff
23c780dd15b60944ed354406706de85282d0bee6
refs/heads/master
2023-07-21T11:53:55.188383
2023-07-18T17:38:21
2023-07-18T17:38:21
215,159,839
0
3
null
null
null
null
null
null
null
null
null
null
null
null
null
''' synthetic observations; version yt print(ds.field_info['gas', 'magnetic_field_los'].get_source()) def _los_field(field, data): if data.has_field_parameter(f"bulk_{basename}"): fns = [(fc[0], f"relative_{fc[1]}") for fc in field_comps] else: fns = field_comps ax = data.get_field_paramet...
UTF-8
Python
false
false
7,288
py
530
blos_ytvscyl.py
500
0.55365
0.539243
0
192
36.947917
194
xandrasings/UstaCertificationManager
11,931,419,155,800
721598170ced6387fbbd4d2ddc44937c15a88775
8957f9cb874c85c3e380e3cdd34babf1cea3c28c
/Imports/Modules/displayOfficial.py
d0d51316c3d6c12ee216afd524e023c1f3fb7682
[]
no_license
https://github.com/xandrasings/UstaCertificationManager
362c2e4044c4fda85290c48b8ac86102908d86d6
3eb1da3bdc0f608c21ebb2c3c986f75aea7361b6
refs/heads/master
2021-09-05T00:31:19.753542
2018-01-23T04:19:28
2018-01-23T04:19:28
108,066,678
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from ..Utilities.input import * from ..Utilities.output import * def displayOfficial(officials, disciplines, requirements, achievements, certifications): output('displayOfficial') promptContinue()
UTF-8
Python
false
false
200
py
31
displayOfficial.py
30
0.8
0.8
0
7
27.714286
88
astroknots/database
10,703,058,547,843
072f813a4a84a6b55aa76dcc0db81c8185a78701
4336696c123f3d82b50d8c13e367cba429401c08
/emptyApertureAnalysis_share/math_fits.py
20089db4262909591f0628532570ab87172b67d0
[]
no_license
https://github.com/astroknots/database
6713015f6a29ab29f6104b5f182f6abb49d99789
bd802b7e70cf2b3b7c0b1a3e9675fe1fdd178e14
refs/heads/master
2021-07-17T12:21:22.857666
2020-11-12T00:50:30
2020-11-12T00:50:30
227,710,177
0
0
null
false
2020-06-14T00:15:22
2019-12-12T22:45:03
2020-06-13T22:05:34
2020-06-14T00:15:22
3
0
0
0
Jupyter Notebook
false
false
import numpy as N import math_models as mm from scipy.optimize import leastsq import scipy.stats as stats import bootstrap as bs from statsmodels.formula.api import rlm def robust_linefit(x, y): """Calculates and returns linear fit to given (x,y) pairs using a robust linear fit routine. Return order i...
UTF-8
Python
false
false
4,912
py
887
math_fits.py
14
0.614414
0.582248
0
109
43.06422
133
derekbekoe/azure-cli-interactive-shell
19,447,611,935,585
fb3966bd03de951551146ca0c5dff27e1bc84bfa
c878aec599a3812993f5eb047ac13403313e71e7
/setup.py
a59adc636573cb80a7d78f26ced1188b2cb9fd2f
[]
no_license
https://github.com/derekbekoe/azure-cli-interactive-shell
c48b3d15c73a6ed8f2b3e2eb70e744a0105747f0
40b32c9d8e3e562d2a19e6a523df40e813f60b70
refs/heads/master
2021-01-22T21:27:51.471301
2017-03-17T23:47:13
2017-03-17T23:47:13
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from os import path from setuptools import setup here = path.abspath(path.dirname(__file__)) DEPENDENCIES = [ 'azure-cli', 'prompt_toolkit', 'six', 'pyyaml', 'pytest', 'jmespath', ] setup( name='az-cli-shell', version='0.1.1a27', author='Microsoft Corporation', scripts=['dev_s...
UTF-8
Python
false
false
548
py
12
setup.py
9
0.60219
0.593066
0
28
18.571429
64
jake-orielly/sierpinskiTriangle
5,420,248,755,369
7be62bf5597ec1be398e77f1901f83173f688d92
8904f4b16968353b50b6532422280ae5e7160b6f
/triangles.py
bd193afa7c3d88b9862d0c226e56c3461704b693
[]
no_license
https://github.com/jake-orielly/sierpinskiTriangle
d7f84c8b3d89005aa88cf8d214d2db16cd5dc708
d267945651f9c4b679341bf25112f754de44fc01
refs/heads/master
2021-01-17T18:08:16.501713
2016-10-17T20:43:14
2016-10-17T20:43:14
71,179,489
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random def getAverage (q0,q1,pc0,pc1): return [((pc0+q0)/2),((pc1+q1)/2)] def main(): w = 1000 h = 1000 canvas = makeEmptyPicture(w,h) show(canvas) p0 = [w / 2, 0] p1 = [0, h - 1] p2 = [w - 1, h - 1] pc = [p0[0],p0[1]] counter = 0 points...
UTF-8
Python
false
false
784
py
1
triangles.py
1
0.451531
0.367347
0
39
19.128205
62
jiteshfulwariya/gleam_n_flex_web
9,569,187,167,699
42c99835890ff6618de828052e24601a3052a5d7
8a648f66af4f7e7c26c96fb743930c0a06cb0b5c
/helper_functions.py
5e817973679210e6fb5a2daa1a94a12ef459ed2b
[]
no_license
https://github.com/jiteshfulwariya/gleam_n_flex_web
3493b38c30666a02decf24e64c0a323b7e94e3da
20dea7fbf3efb57aa1e71ebb0e7ae73d3c884133
refs/heads/master
2021-05-09T15:28:49.321336
2017-12-19T18:10:35
2017-12-19T18:10:35
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import datetime def convert_date_to_epoch(date): return long(date.strftime('%s'))*1000 if date else None def convert_epoch_to_date(epoch): return datetime.datetime.fromtimestamp(long(epoch)/1000.0) if epoch else None
UTF-8
Python
false
false
229
py
45
helper_functions.py
28
0.742358
0.703057
0
9
24.444444
81
rbhanot4739/PythonPrograms
6,975,026,899,481
535b01b72715993366adf25b5c4b97f4bad7043c
0cac5687ddf6a7948f9d3f8a238551af8238adaf
/python3/oop/advanced_topics/property_decorators.py
53f6c246fce61f9ea1d96bba4549e13524dd62e9
[]
no_license
https://github.com/rbhanot4739/PythonPrograms
e1b2a1502f7886a343887cb71882bd5511b9ae24
84b5084d873589f948d40d47bfa7d77c27e6184d
refs/heads/master
2021-05-09T22:55:48.500313
2021-01-20T12:56:39
2021-01-20T12:56:39
118,767,434
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Employee: def __init__(self, first, last): self.first = first self.last = last @property def email(self): return "{}.{}@email.com".format(self.first, self.last) @property def fullname(self): return "{} {}".format(self.first, self.last) @fullname.setter ...
UTF-8
Python
false
false
543
py
413
property_decorators.py
310
0.589319
0.581952
0
24
21.625
62
alk3ckwd/work
17,394,617,587,036
2705c48021e7328c1a208ad166d1195254deaaab
a4efdaad32bab94838cc26639a8826d1795cd3d5
/test.py
d1b81f3f6a056be72c7d5f18fc4c9ed0ba1532cb
[]
no_license
https://github.com/alk3ckwd/work
942c157941983ccbcbbc78152b50508ac9936683
68879bf28d6efc65983ee0949a0f2d3a744f9060
refs/heads/master
2021-01-23T06:34:06.056001
2017-03-27T19:10:09
2017-03-27T19:10:09
86,371,108
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd df = pd.DataFrame({'A':['A0', 'A1', 'A1'], 'B':['B0', 'B1', 'B2']}) print(df.groupby(['A'])['B'].apply(", ".join))
UTF-8
Python
false
false
144
py
16
test.py
16
0.472222
0.430556
0
7
19.428571
46
dsitum/code-eval-challenges
5,007,931,869,241
40a7dfc87ec3a90937924b819fe170db21979710
07153374a25fdd26d7db55971f7c277ba4908ea4
/medium/NumberOfOnes.py
be10a65af1abcf019210e1fbb03e040a072a3f86
[]
no_license
https://github.com/dsitum/code-eval-challenges
23e294a3206a9c47727309b082e4b128d2add592
1ffaf044fcfd23019e2b62d1d1079ca6e15b1045
refs/heads/master
2021-01-18T14:58:48.205423
2015-02-09T01:02:08
2015-02-09T01:04:45
30,512,215
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 from sys import argv with open(argv[1], "r") as f: for line in f: n = int(line.rstrip()) ones = 0 while n > 0: ones += n % 2 n = int(n/2) print(ones)
UTF-8
Python
false
false
192
py
84
NumberOfOnes.py
82
0.557292
0.526042
0
14
12.714286
29
mourice-oduor/Python-projects
14,877,766,751,600
7c4331e06ebbc9dd7ac8a612fb8e021b379c15b3
9a95b2015b978dc89e4c8f3aab5d43b1af4a16bf
/extract-audio-from-video/ffmpeg.py
3b0e849d748fd29e11cf36835ab6e69cfa3a09e3
[]
no_license
https://github.com/mourice-oduor/Python-projects
0712aae1d237fb2f9e0ed900cc432e19250a29c8
3c6e27ac2aafe058bb8627e49064aa0f52574e0d
refs/heads/master
2020-08-31T18:00:52.931117
2020-04-22T20:30:14
2020-04-22T20:30:14
218,750,487
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Download the FFmpeg-python file; #on the terminal, run this commands: #FFmpeg -i "name of your video file" -vn output_audio.mp3 #Extracting mp4 vid to ogg FILE="1.mp4"; ffmpeg -i "${1.mp4}" -vn -acodec libvorbis -y "${1.mp4%.mp4}.ogg" #In case we want to automatically process (batch process) all .MP...
UTF-8
Python
false
false
520
py
33
ffmpeg.py
15
0.661538
0.632692
0
16
31.5
116
MNDSG/opencv
1,443,109,054,434
5ffedbd03af190a872f92f1cfeec4b7caae94743
a9faa1a2c3a8385b9ad873e5c05b817c3d3f300e
/不同图片质量保存.py
a33f27409e5c80e1159420db7924dccda4d63122
[]
no_license
https://github.com/MNDSG/opencv
33b82d7e31513a9183aec56a706b85292bcfa19c
8f48f0d219932daada52a6d96d5aa3b662d8ae7e
refs/heads/master
2021-05-21T14:30:01.255984
2020-04-07T08:49:52
2020-04-07T08:49:52
252,681,941
0
0
null
false
2020-04-03T09:38:11
2020-04-03T09:00:50
2020-04-03T09:26:06
2020-04-03T09:35:42
0
0
0
1
Python
false
false
import cv2 img = cv2.imread("images/cat.jpg",1) # jpg格式压缩:参数3表示压缩比(0~100),0质量最差 cv2.imwrite("images/cat3.jpg",img,[cv2.IMWRITE_JPEG_QUALITY,100]) # png格式压缩:参数3表示压缩比(0~9),o质量最好 cv2.imwrite("images/test3.png",img,[cv2.IMWRITE_PNG_COMPRESSION,0])
UTF-8
Python
false
false
304
py
29
不同图片质量保存.py
28
0.745902
0.655738
0
7
34
67
Sommysab/DataScience-MachineLearning-AI
5,248,450,066,563
5bf0344ac9db1d6b6b331f12cde110a06bd64f7d
e7e9dfd78789db82859451c00f33a4145b9eee0a
/Python Projects/AI - Spam Detector/is_spam_or_not.py
bc574ed281c7eeb1521a5e10cce6db3bfc53af08
[]
no_license
https://github.com/Sommysab/DataScience-MachineLearning-AI
9c54a20e03456455747ddc2692075629c7f53a10
e8a0dd42b19997b7ec905ae26119dba733189ba5
refs/heads/master
2022-12-24T16:43:51.717208
2020-09-25T14:07:22
2020-09-25T14:07:22
298,590,483
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns spam_df = pd.read_csv('emails.csv') # VISUAL ham = spam_df[ spam_df['spam'] == 0] spam = spam_df[ spam_df['spam'] == 1] print('Spam Percentage =', (len(spam)/len(spam_df))*100, '%') print('Ham Percentage =', (len(ham)/...
UTF-8
Python
false
false
1,856
py
10
is_spam_or_not.py
8
0.719289
0.712823
0
75
23.76
115
shahrozimtiaz/codingPractice
15,315,853,400,776
91e80651b51b8d45b49086df1c7619783edfd996
a03ad4bbd84238124e07dfe378a82bcbbaf18597
/python Practice/allComboCoverage.py
763498f79a3ed17741fe1ebefb0b54bfdc7a26db
[]
no_license
https://github.com/shahrozimtiaz/codingPractice
3f2b8ede7663f3610d901877656b546bc6aa7d28
9bd1161dd4c4cc425629ff0c39f051eea74acc54
refs/heads/master
2020-07-13T10:14:05.958991
2020-03-14T18:57:39
2020-03-14T18:57:39
205,062,836
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#REQUIREMENTS # a1,a2,a3,a4 = 'non-empty string without special characters', 'non-empty string with special characters', 'more than 1 string as input','empty string' # b1,b2,b3 = 'clear chosen strings', 'submit', 'restart' # c1,c2 = 'with replacement', 'without replacement' # d1,d2 = 'clicked', 'not clicked' #TEST CAS...
UTF-8
Python
false
false
1,108
py
97
allComboCoverage.py
85
0.51444
0.473827
0
33
32.606061
151
AfifCeshter/ccp
19,086,834,704,300
f7ca746f8a7284013f385e42b977934097e35176
eeb0df786140d749f178d24f78c7fe7466e9ab9b
/app/databases/models/computer.py
a8be80bbe427b52f177739f6e65d50d7af7a193d
[]
no_license
https://github.com/AfifCeshter/ccp
daa8feb690487c0d912783dce5e95a88eee4ab10
a69404429eee6d443535c60fee32fb9bd53e0d11
refs/heads/master
2023-03-01T18:26:01.017852
2021-02-16T07:15:21
2021-02-16T07:15:21
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from app.databases.db_sql import db_sql from app.utils.time_utils import datetime_jakarta, timestamp_jakarta class Computer(db_sql.Model,): id = db_sql.Column(db_sql.Integer(), primary_key=True) computer_id = db_sql.Column(db_sql.String(40), nullable=False, unique=True) computer_name = db_sql.Column(db_sq...
UTF-8
Python
false
false
2,944
py
15
computer.py
8
0.586617
0.581182
0
86
33.232558
106
Elzewire/class_board_images_recognition
13,812,614,827,103
ec3ba1bb1ab5bb26d9a506f17938c6f5d6f5ce58
b3804e689c0fb9bf7c93d10fc3c1ffa21b9cd652
/recognition/decoder.py
0ba80cf96e08049663c650147a81e2aa5f3472bc
[]
no_license
https://github.com/Elzewire/class_board_images_recognition
badbc8e47ad5dcf12a8d809dd29863eece97b5d5
43079048cc0932f0beabddf474a34f6160727693
refs/heads/main
2023-06-05T00:12:47.107730
2021-06-21T17:28:13
2021-06-21T17:28:13
378,292,535
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from difflib import get_close_matches import numpy as np def load_dict(lang='ru'): path = 'data/corpus.txt' if lang == 'ru': path = 'data/corpus_ru.txt' words = [] f = open(path, encoding='utf-8') for line in f.readlines(): for x in line.split(' '): words.append(x) ...
UTF-8
Python
false
false
594
py
61
decoder.py
18
0.563973
0.560606
0
28
20.214286
71
3xepy/binance-hackathon
2,199,023,274,339
59c7cee48312b91b23e8520078c81a3bace81193
1e71eb6c691815aa2f7ce42e053d35e4109ca2ce
/config/states.py
b89b097c6fc4cad040e60a9272cf3db5f624e4bb
[]
no_license
https://github.com/3xepy/binance-hackathon
9d73f333fe06eac5c52fe9828d2949d3c39d33a3
a63b28fefba4ca6e6683c645e62312888511590c
refs/heads/master
2023-04-10T05:09:18.937306
2021-09-12T08:13:08
2021-09-12T08:13:08
356,512,081
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from aiogram.dispatcher.filters.state import State, StatesGroup class CheckAddress(StatesGroup): eth = State() bsc = State()
UTF-8
Python
false
false
135
py
7
states.py
5
0.733333
0.733333
0
6
21.5
63
gystar/ml_hws
8,340,826,517,521
6a8179cf413c113c59b714ef022bdd77d23766eb
38cb30acd3074e30e21e7ac668af2ec515506bfa
/hw4/sentiment.py
5dda888860d1eeeafb6f6ba7b29903af22f0f557
[]
no_license
https://github.com/gystar/ml_hws
0add17e0e9527ecae588836e750b417fa02280a8
bd2487e796f602c67329cdda385ae089360e7a4d
refs/heads/main
2023-04-08T18:15:23.282596
2021-04-06T12:52:39
2021-04-06T12:52:39
316,701,471
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# 语义识别的RNN模型定义 # 输入语句向量,输出属于positive的概率 from torch import nn import torch import math import numpy as np import matplotlib.pyplot as plt import importlib import utils importlib.reload(utils) cuda_ok = torch.cuda.is_available() print("Cuda is available" if cuda_ok else "There is no gpu available.") class SentimentMode...
UTF-8
Python
false
false
3,157
py
37
sentiment.py
30
0.525091
0.511133
0
97
30.020619
86
ArtemAAA/FortyTwoTestTask
12,987,981,121,251
d886ab3c74d405be5eaf0eaa9736a77830a16ffd
5a5df9520bb0f375078cb4d0d25dcfc87a85ccda
/apps/hello/tests/test_hello_commands.py
af06f21d78c03856bac4662de3932efbdc6a0d43
[]
no_license
https://github.com/ArtemAAA/FortyTwoTestTask
0b2c6bc426deb7e9a22411bb23f03b86331e6dad
d19ba5f9317478f4cc25da02820cfcf05366b9ee
refs/heads/master
2018-03-27T08:49:24.172311
2018-01-23T15:03:25
2018-01-23T15:03:25
65,746,167
0
0
null
true
2016-08-15T16:11:59
2016-08-15T16:11:59
2016-05-13T12:24:57
2016-06-17T11:22:29
6,564
0
0
0
null
null
null
from django.test import TestCase from hello.models import Bio, Requests from django.core.management import call_command from django.utils.six import StringIO from model_mommy import mommy import sys class CommandsTest(TestCase): def setUp(self): self.object_bio = mommy.make(Bio) self.object_reque...
UTF-8
Python
false
false
1,338
py
39
test_hello_commands.py
23
0.627803
0.626308
0
38
34.210526
73
pmisters/django-code-example
10,934,986,763,957
b5bcf6804ee717d2123c62eca9ed96079be88bef
dabc981714dd9297e811355fbb2f9f9a45c2281f
/board/models/_reservation_room.py
80fce76c677caf545bb88a67e056f4a39c490ca0
[]
no_license
https://github.com/pmisters/django-code-example
4c9c8c7edb174875ae4df4d32ae73b0897fc2333
745ac9d0c89d8ee44885cc862882d6c4d13993a0
refs/heads/master
2023-01-07T11:55:55.670943
2020-11-14T11:14:19
2020-11-14T11:14:19
312,801,074
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from decimal import Decimal from django.db import models from django.db.models.fields.json import JSONField from django.utils import timezone from common.db import TimeableModel class ReservationRoomQuerySet(models.QuerySet): def active(self): return self.filter(is_deleted=False) class ReservationRoom...
UTF-8
Python
false
false
4,019
py
121
_reservation_room.py
111
0.692212
0.680518
0
92
42.684783
115
rupeshpurum/automation
7,610,682,094,749
5c393e1818b7b09144b03d54acf8863da16b29e9
4da481c5d2746a2b2bf34b87bad03288b67edc9f
/pluginimpl/OIDautomation/oid.py
82af43693db41fb103a6d5e7d657300155e0b1c7
[]
no_license
https://github.com/rupeshpurum/automation
fc25bbce752996341f0c2d7ac3c1b3b6e89854c6
bd2d8f66c76699d9c88df3e321dba614a7175981
refs/heads/master
2020-04-21T07:22:09.704456
2019-04-09T05:49:36
2019-04-09T05:49:36
169,390,601
0
0
null
true
2019-02-06T10:44:17
2019-02-06T10:44:17
2019-01-02T13:12:51
2019-01-02T13:12:48
8,659
0
0
0
null
false
null
from typing import List, Any, Union __author__ = 'Shanmukh' import sys from array import * import xml.dom.minidom from lxml import etree # Function to generate the OID def get_oid(doc, col): """ :param col: colomn which requires the oid :param doc: The mib repository object :return result: returns a...
UTF-8
Python
false
false
2,978
py
10
oid.py
3
0.558428
0.557421
0
98
29.346939
97
FTLiao/AlgoCrawl
4,209,067,974,262
5cb6d0c994984784ee921e40d045c47ce383087b
2bcea666ed191177d1d3d0d766c4810949d41898
/leetcode/lc271_Encode_and_Decode_Strings.py
d2ecf4709dfc52d18615340ddc680b5aa06ef61b
[]
no_license
https://github.com/FTLiao/AlgoCrawl
44f8245ddca422ff96cddf1c76fe0f4cb358b60c
4d8aa8088a6fe8efdeacbcfa33d4c93aaf3252f8
refs/heads/master
2020-12-12T21:30:21.784793
2020-10-06T15:18:13
2020-10-06T15:18:13
234,232,039
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Codec: def encode(self, strs: [str]) -> str: """Encodes a list of strings to a single string. """ string = '' for word in strs: string += word + chr(257) return string def decode(self, s: str) -> [str]: """Decodes a single string to a list of st...
UTF-8
Python
false
false
659
py
481
lc271_Encode_and_Decode_Strings.py
475
0.514416
0.502276
0
23
27.652174
60
sthompsonxyz/Rosalind_Algs
6,124,623,382,090
ab18044cdaef3bffb902957eb029c8b0eb2b0f53
8b59f690ecfe60191e9e4c80bc7bfe877b7f1c19
/alg9/ros_alg9_DNAmotif.py
9d837517716bc545e1afcd325e79fb7a26a7d11d
[]
no_license
https://github.com/sthompsonxyz/Rosalind_Algs
ecb53a822b57bfe741fcafb43dc5d62381069d6f
1246dbc634dd2897378c3facfeceb1f78a51ed30
refs/heads/master
2016-09-05T19:11:56.458900
2015-02-28T23:24:11
2015-02-28T23:24:11
30,469,023
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import re import pprint import sys from Bio import SeqIO class sequence: name = '' bases = '' seqs = list() regx = re.compile("^>[^\\n]+", re.I) myF = open("./fastaseqs.fa") next_seq = sequence() # gets fasta sequences from file and puts them into seq object for manip # look at using biopython c...
UTF-8
Python
false
false
1,739
py
15
ros_alg9_DNAmotif.py
12
0.645198
0.635423
0
84
19.714286
72
justjake12/mom-chatbot
11,536,282,204,153
f30b294481fe313f81a96d6835c71da9ce736ec2
787e416394fbdf14bbacb7aa82daadf3a8ef8065
/ProjectTemplate/my_module/functions.py
41fbd4da2aebe99ac8011befee5d27fd8f4c1a7e
[]
no_license
https://github.com/justjake12/mom-chatbot
cb9d9b9f15fadfe027cc1351c46230999791de78
7d7b124aeab49cae422d89437aedda6d2822b68a
refs/heads/master
2020-04-11T01:13:18.034677
2018-12-12T00:03:47
2018-12-12T00:03:47
161,409,061
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""A collection of functions for doing my project.""" import string import nltk import random #MY OUTPUTS BYE = ['I will talk to you later', 'Be safe', \ 'Call me after class', 'Adios mi amorcito'] ADVICE_IN = ['help', 'stressed', 'depressed', 'nervous', 'advice', 'anxious', 'sad', 'feeling down'] QUESTION_O...
UTF-8
Python
false
false
3,860
py
5
functions.py
3
0.621503
0.617617
0
131
28.473282
116
duhoang00/python-data-analysis-lessons
3,736,621,584,099
e35b49482b3143a669dcae95c0bd6e0c2b20b97c
7a24bc8b68e3ced92701da47eb41c3e32fdeb83a
/HomeWork_Function/Bai1_NamNhuan.py
4020ffdc693b35301d4c3408b3adfcb8b378fe59
[]
no_license
https://github.com/duhoang00/python-data-analysis-lessons
4e45a0ade1e638a203f00fabededeb464b06affc
22e89d517787f6166e4f2089e66a6eb7f83027d6
refs/heads/main
2023-06-25T02:43:06.390134
2021-07-20T14:08:42
2021-07-20T14:08:42
382,753,931
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n = 0 while True: user_input = input("Nhập N = ") try: n = int(user_input) if n > 0: break except ValueError: pass if n % 100 == 0: if n % 400 == 0: print(n, "là năm nhuận") else: print(n, "không phải là năm nhuận") elif n % 4 == 0: print(n, ...
UTF-8
Python
false
false
406
py
32
Bai1_NamNhuan.py
30
0.486911
0.455497
0
20
18.1
43
NimraSadaqat/dynamicwebsitescraper
7,456,063,253,137
2babbf1a5b95eff39c193deb9943de0c207c1d0e
19f511e826f3f1285d49087fa8a37c4317f44180
/koovs/koovs/spiders/koov.py
31600428c4d5bb635ceb6c38ee8143ccb094e29b
[]
no_license
https://github.com/NimraSadaqat/dynamicwebsitescraper
4131061d00f3b1a83332c45d22146b29f49ab269
7fac2f2a4549a005a076fd3720830b17c96d6d85
refs/heads/master
2022-12-06T05:21:30.167678
2020-08-19T07:49:01
2020-08-19T07:49:01
288,490,222
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import scrapy from selenium.common.exceptions import TimeoutException from ..items import KoovsItem from selenium import webdriver from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By import time class Ko...
UTF-8
Python
false
false
2,643
py
3
koov.py
1
0.603859
0.597049
0
61
42.327869
173
Armando123x/JuegosPygame
12,841,952,232,188
38b72257525cc5ecad52e81d3695bc211f7170eb
10cf226c1481d83274939d6a2fe8b7582b30e992
/Sprites/BreakBlocks/__init__.py
6110e0cc9d06dea66c344d2e3d20e4e52f279c32
[]
no_license
https://github.com/Armando123x/JuegosPygame
3f9bbbdd3b031731849010f48e4463f4034c4f1c
b497a94fcc4e79ab23d8d5f06320a80b2b3e0588
refs/heads/master
2021-09-15T00:35:59.447370
2018-03-04T06:38:36
2018-03-04T06:38:36
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame import random from sprites import * COLOR_FONDO = (40, 40, 220) ROJO = (180, 20, 40) COLOR_PROYECTIL = (120, 130, 20) AMARILLO = (200, 200, 10) ANCHO_PANTALLA = 700 ALTO_PANTALLA = 500 class Juego(object): def __init__(self): self.game_over = False self.puntuacion = 0 sel...
UTF-8
Python
false
false
4,012
py
49
__init__.py
49
0.566052
0.539133
0
114
34.201754
111
genomeannotation/reformat
8,693,013,832,860
44f8d971028a8e86446ce0d63770a1291c4040c9
28e6cd8e80849392cb372a828c61049f0ab7fff8
/src/vcf.py
c5601e85a2dc54e5c1c97118373d1af69f84fc61
[]
no_license
https://github.com/genomeannotation/reformat
e683bf5bd61908af679a4ac682fe590d1ab1f3c8
58bbaccfc1c018db7cbc79d2dec07321b4fab9ff
refs/heads/master
2021-01-17T12:37:16.260366
2016-06-22T20:16:16
2016-06-22T20:16:16
59,068,256
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import os import sys class Vcf: def __init__(self): """nothing""" #read info from vcf def read_vcf(self, vcf_filename, data): # Verify and read VCF file if not os.path.isfile(vcf_filename): sys.stderr.write("Failed to find " + vcf_filename + ".\n") sys.exit() fi = open...
UTF-8
Python
false
false
1,298
py
10
vcf.py
10
0.595532
0.577042
0
52
23.942308
101
ZachMillsap/PyCharm
10,393,820,892,028
085638a3af9420413427aef04300a65732b46266
a228c12564e6dfdd6a0770b2ae008319bd89490d
/Module7/fun_with_collections/Topic 3/write.py
6fa75a0aac426bd0f819c47bffb77e8f4bbd21f3
[]
no_license
https://github.com/ZachMillsap/PyCharm
27158e4e5a06f87d03d0a4c069ae908e19108a4a
870a81120c55f134ffaa2a22b79a5c3f2de9c6c8
refs/heads/master
2022-11-25T09:11:58.504544
2020-08-03T01:38:33
2020-08-03T01:38:33
274,780,004
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def write_to_file(args, kwargs): f = open('student_info.txt', 'w') f.write(kwargs) tuple = (args) input_list = tuple f.writelines(input_list) f.close() def get_student_info(*args, **kwargs): for key, value in kwargs.items(): print("%s == %s" % (key, value)) kwargs = str(kwa...
UTF-8
Python
false
false
1,010
py
25
write.py
23
0.576238
0.574257
0
38
25.578947
65
blha303/mcmoddb
13,039,520,721,714
99df44ee446eac203cadf045048909dead995580
0e2e3c46caa1d048ad6d63408508ed0d45895929
/platform_utils/moddb_config.py
3bfa7fae8f81dcea592aeec9bfcf471a0708fd46
[]
no_license
https://github.com/blha303/mcmoddb
b50b087975284d2e1e77db309c7ac5a57d75ca95
d87e2c5f047082dde77ba45a7382f3a1966a76f1
refs/heads/master
2020-04-06T06:56:24.633246
2013-01-13T18:38:51
2013-01-13T18:38:51
7,591,803
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python2 Config = { 'autodl': True, # Automatic downloading of the ModDB. Valid options: True False . Case sensitive. 'checkdl': True, # Automatic checking of the ModDB. Valid options: True False . Case sensitive. 'showchecksum': False, # Show the checksums of the DBs downloaded. Valid options: True F...
UTF-8
Python
false
false
790
py
5
moddb_config.py
4
0.712658
0.711392
0
16
48.375
111
arischow/Tweetbo
8,031,588,887,628
e8784c3f2c9a73e04f3efcdd01e0cb1001e9d5f9
6d0a2136d480c41b63b813037606ffe2d31094ac
/auto_json.py
129b1b77ba65c142041ef99ea9f97543d974f9e1
[]
no_license
https://github.com/arischow/Tweetbo
f47cf36bccf902152d2d8fe2a30b92454b28151d
7aad68389f3d616bcb500ddf8e035335e5a4ff5f
refs/heads/master
2016-09-12T13:54:15.679082
2016-07-23T02:58:48
2016-07-23T02:58:48
63,911,246
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class JSONRepr(object): def json(self): raise NotImplementedError def formatted_json(self, d): raise NotImplementedError def excluded(self): return [] def serialize(self): return self.__dict__ class SignUpJSON(JSONRepr): def __init__(self): self.success =...
UTF-8
Python
false
false
443
py
10
auto_json.py
4
0.589165
0.589165
0
22
19.136364
39
Raymolu/DjangoDev1
12,704,513,267,409
1d69fece6dd81cdbae11f9a6529339e1e7a0d4a2
8ae01e427d9302abde2768bb6db35fcb16ff9c68
/DjangoT1/trackit/TicketManager/migrations/0005_auto_20200312_1457.py
9d74b6fed10236b918b9fadb6f583e1f6a712f0a
[]
no_license
https://github.com/Raymolu/DjangoDev1
d98e6b372da4812fd26e9ef27e29ee063ae2710a
4ddd61565db7185c70363f585dede3027c10f796
refs/heads/master
2021-03-29T21:20:34.670126
2020-03-20T21:53:27
2020-03-20T21:53:27
247,985,843
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.2.5 on 2020-03-12 18:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('TicketManager', '0004_auto_20200312_1454'), ] operations = [ migrations.RenameField( model_name='ticket', old_name='status1'...
UTF-8
Python
false
false
370
py
40
0005_auto_20200312_1457.py
26
0.575676
0.489189
0
18
19.555556
53
mwales/security
12,317,966,220,764
84a777bfedfc7f080e36456287684d89c77896d2
5a3c7d80cb3c96c91953d53f1e2965fce619db55
/ctf/tamu_ctf_22/pwn/trivial/solve.py
852896652b315b0baac7cba07b645bea36052811
[]
no_license
https://github.com/mwales/security
6aa45f8938de402b460628654b4cb07e94bd2339
a532866fc0e747f2c935f64495d97fdf8a364fa0
refs/heads/master
2023-09-01T21:41:20.329823
2023-08-27T03:45:28
2023-08-27T03:45:28
68,429,771
8
9
null
false
2018-12-01T06:11:20
2016-09-17T03:31:15
2018-12-01T06:11:17
2018-12-01T06:11:16
4,276
2
3
0
C++
false
null
#!/usr/bin/env python3 # Simple buffer overflow. Just call win function and then use remote shell # to dump out the flag.txt from pwn import * p = remote("tamuctf.com", 443, ssl=True, sni="trivial") #p = process("./trivial") #p = gdb.debug("./trivial",''' # b main # run # ''') e = ELF("./tri...
UTF-8
Python
false
false
494
py
212
solve.py
106
0.611336
0.593117
0
30
15.466667
75
arthur900530/Python-practice
14,972,256,001,577
f7c8bd53a801dcfdf1b73ee2bb26e9bb0b182915
e70d6ef3a7c44a088e6b4fcaa8c73cac9e85bfa8
/Ch23/example1.py
8462237eb45dc0328afc8a759524cf58a8f20dfd
[]
no_license
https://github.com/arthur900530/Python-practice
731dd3597f6493d95c77c2ed04f6905e7592ac9a
73e8b106e639964077dc638275d96c830f51afc7
refs/heads/master
2023-07-29T04:06:56.556199
2021-09-17T12:30:37
2021-09-17T12:30:37
407,533,594
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import bs4 import requests url = 'https://www.taiwanlottery.com.tw/index_new.aspx' html = requests.get(url) print('Downloading...') html.raise_for_status() print('Finish download !') objSoup = bs4.BeautifulSoup(html.text,'lxml') dataTag = objSoup.select('.contents_box02') print('Length:',len(dataTag)) # for i in data...
UTF-8
Python
false
false
544
py
46
example1.py
39
0.681985
0.667279
0
19
27.684211
65
dinhluongzalora/Practical-Security-Automation-and-Testing
4,217,657,912,703
6cbc83a95312fe0ebc9a5c448e9d4426c6e79d2c
55ff0e0d23feb2684bbdf7b29d2302d12d3d1501
/Chapter06/userregistration_SB.py
ddd0f36f37140f06eb30708a6a4e2e45dcee2ad0
[ "MIT" ]
permissive
https://github.com/dinhluongzalora/Practical-Security-Automation-and-Testing
1b525b5458446b3f92767d08322eb695c39a1b78
bd864948115d01c55ddf8a2c0d4f5507730cb085
refs/heads/master
2021-07-14T02:13:56.315273
2021-01-18T08:06:55
2021-01-18T08:06:55
173,987,517
0
0
MIT
true
2019-03-05T17:05:07
2019-03-05T17:05:07
2019-02-07T06:16:17
2019-02-07T06:16:12
72
0
0
0
null
false
null
# -*- coding: utf-8 -*- from seleniumbase import BaseCase class UserRegistration(BaseCase): def test_user_registration(self): self.open('http://hackazon.webscantest.com/') self.click("link=Sign In / Sign Up") self.click('#username') self.click("link=New user?") self.click('#...
UTF-8
Python
false
false
708
py
13
userregistration_SB.py
5
0.612994
0.59887
0
17
40.411765
62
mizuno-group/enan
13,460,427,524,877
c538eb8ece6dd45d95dab67f71f7f14bfd6d2eda
7e820b016306d13caeca4092f40fc0d179a12685
/enan/data/data.py
e18c18a12ac3d97df9e53dee4d81aac0b58759a9
[ "MIT" ]
permissive
https://github.com/mizuno-group/enan
821045cb87648a789d39c5e36feab1c0c769494c
3c9dbe60bebf98e384e858db56980928b5897775
refs/heads/master
2023-01-24T20:27:43.966650
2020-12-05T07:29:39
2020-12-05T07:29:39
318,722,639
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Sep 23 13:05:34 2019 Data class Analyzer o-- DataControl *-- Data @author: tadahaya """ import pandas as pd import numpy as np from .adjuster import * __all__ = ["Data","SeqData","SetData","SetTSData","VectorData"] # abstract class class Data(): de...
UTF-8
Python
false
false
3,335
py
20
data.py
18
0.533733
0.529535
0
123
25.130081
84
lallmanish90/coltSteelePythonCourse
1,271,310,358,701
b60af5a98bcd9855e47c382001043221e38cc8ba
b8921d9f1823d3a9e4e1142ee7ae5ea9b7729dae
/OOP/creating_classes.py
69c267d77322dd06839400f5d82c57b3b4d1c694
[]
no_license
https://github.com/lallmanish90/coltSteelePythonCourse
ef843073057ccc8d01c9df1c8533043e0e706375
204b89e489ad119eea98d749dbb821dab3177837
refs/heads/master
2023-04-25T01:41:29.501147
2021-05-04T04:00:24
2021-05-04T04:00:24
269,444,978
0
0
null
true
2020-06-04T19:17:54
2020-06-04T19:17:53
2020-06-04T15:51:37
2020-06-04T15:51:34
111
0
0
0
null
false
false
""" Defining the simplest possible class whenever creating a class , python """ # classes are singular with camel case # self referse to the that current instance # init will auto run when a class is called class User: def __init__(self, first, last, age): #print("A new user has been made!") sel...
UTF-8
Python
false
false
564
py
125
creating_classes.py
122
0.666667
0.64539
0
28
19.142857
43
prateek5794/hackerrank
14,147,622,304,791
05ba169f3593d5fff579a364e92e810541973793
3f493480bb6d1fde73db470598687d13e818f14f
/strings/anagram-English/anagram.py
f2401094cc5833d0d35420712cc35d6aa4c6e4bb
[]
no_license
https://github.com/prateek5794/hackerrank
b837b0971436778740512927631fa198820505bd
bc6e916f8b5986677d4e9ee5a3a22305818f84e0
refs/heads/master
2020-05-20T19:27:52.789177
2016-07-08T19:25:29
2016-07-08T19:25:29
59,769,610
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
t=int(input()) for _ in range(t): s=input() if len(s)%2==1: print('-1') continue else: x=int(len(s)/2) for k in range(x): s=s[:x]+s[x:].replace(s[k],'',1) print(len(s[x:]))
UTF-8
Python
false
false
237
py
80
anagram.py
78
0.413502
0.392405
0
11
20.545455
48
chakilamnaresh/pythonlearning
16,080,357,593,314
a5ce881eeff17d01ebcb538100f094ac2f7c04df
d017d6aeebac14dc4ec364a0892cd0e334071364
/sum/com/naresh/fileOperations.py
c55cd0d29d0e6e396d8204b1929c5dcc4a64eedb
[]
no_license
https://github.com/chakilamnaresh/pythonlearning
f4d4d4a5e42262728963cb93e6f85ef682bae404
0c02e0ed34b4f08e4ebb30962d8b131ec2761154
refs/heads/master
2020-04-01T11:31:53.139956
2018-10-15T19:47:40
2018-10-15T19:47:40
153,166,453
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json with open('E:\states.json') as f: data=json.load(f) for state in data['states']: del state['area_codes'] print(state) with open('E:\states2.json','w') as f: json.dump(data,f)
UTF-8
Python
false
false
231
py
64
fileOperations.py
61
0.558442
0.554113
0
11
19.181818
43
AtlasWHHV/ATLASMCValidation
12,000,138,673,268
7723b844195eb1b581fef7a98b76d4f0b3636fcc
5f8482008795504e17db32c814586567d8ad8483
/mcjo/MC12.191300.Pythia8_AU2MSTW2008LO_HV_ggH_mH300_mVPI100.py
a2b12a97f4e8b11054720df85151842a36b53662
[]
no_license
https://github.com/AtlasWHHV/ATLASMCValidation
4694cf096f39be3f393ec6f41656aca9e110fd1d
3b33e86eadb577f00ff9d5201d4d7288b0499820
refs/heads/master
2020-12-31T07:11:49.959589
2017-02-01T01:53:58
2017-02-01T01:53:58
80,581,202
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
############################################################### # Pythia8 H_v -> pi_v pi_v # contact: Gordon Watts (gwatts@uw.edu) #=============================================================== evgenConfig.description = "Higgs (mH300) to pi_v (mVPI100) to displaced heavy fermions" evgenConfig.keywords = ["exotic", "...
UTF-8
Python
false
false
1,523
py
8
MC12.191300.Pythia8_AU2MSTW2008LO_HV_ggH_mH300_mVPI100.py
6
0.636901
0.58503
0
33
45.151515
99
jackey-qiu/DaFy_P23
5,059,471,499,037
58478c25216f39bcbed2eb92bafbb1d821072b01
cb6e5c8a91dce5911afbbbb7a8a4b55bc0c7687e
/scripts/SuperRod/superrod_GUI_pyqtgraph.py
c3e05a7192da23928273300240712403b6111f66
[]
no_license
https://github.com/jackey-qiu/DaFy_P23
3870d4e436b0e9df7f1dcb747caaf38589274f92
ad2ca8e16e92935233e84c2d9fe2b59f4f114444
refs/heads/master
2022-04-10T18:32:24.392046
2020-03-22T18:22:46
2020-03-22T18:22:46
198,180,139
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys,os, qdarkstyle import traceback from io import StringIO from PyQt5.QtWidgets import QApplication, QMainWindow, QFileDialog, QMessageBox from PyQt5 import uic import random import numpy as np import pandas as pd import types,copy import matplotlib.pyplot as plt try: from . import locate_path except: i...
UTF-8
Python
false
false
55,146
py
126
superrod_GUI_pyqtgraph.py
65
0.583633
0.576379
0
1,097
49.269827
224
thomastrg/Price_prediction_footballers
9,234,179,709,423
8d84ce7dea64c3795347950a98cd0d89177937ae
56842faabc8275101568ec1894e5e759d48a1c57
/Scrapping/Scrapping_fifaindex_function.py
5261d6c161481bc82af686489423030b1c381b81
[ "MIT" ]
permissive
https://github.com/thomastrg/Price_prediction_footballers
125f7f12abec4fe9c127238f479abdc7e48a250c
00fe5677f470d0a1a1f15e118a07df049a9a247d
refs/heads/main
2023-04-28T15:44:59.135279
2021-05-15T15:06:10
2021-05-15T15:06:10
367,439,041
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from bs4 import BeautifulSoup import requests import re import pandas as pd def scrapp_fifa_index(page_start=1, page_end=2): assert page_start >= 1 assert page_end >= page_start all_data = [] url_base ="https://www.fifaindex.com" #Wanted description informa...
UTF-8
Python
false
false
3,554
py
10
Scrapping_fifaindex_function.py
2
0.52593
0.516347
0
91
37.989011
103
Tocknicsu/bot
19,550,691,150,709
83963237600cab1446c04579899fb07113c2ad95
998a9fa97dfb9512d2b2debd4cdd8ce02ccc0ab7
/telegram_bot/server.py
c40c249abf9e882499885dd1834ecc78d72c8a84
[]
no_license
https://github.com/Tocknicsu/bot
c65c59c02279dd3345b03948a26fd7ed49016e99
09e0d3220de83f501b565b34fc91745b2ecb13af
refs/heads/master
2021-01-17T16:56:32.357497
2016-07-27T05:45:15
2016-07-27T05:45:15
64,179,588
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import telepot import config bot = telepot.Bot(config.key) print(bot.getMe()) def handle(msg): content_type, chat_type, chat_id = telepot.glance(msg) print(content_type, chat_type, chat_id) if content_type == 'text': print(msg['text']) bot.sendMessage(chat_id, msg['...
UTF-8
Python
false
false
412
py
10
server.py
3
0.643204
0.640777
0
20
19.6
58
DongliangLu1995/Summer_Research-CBS
1,176,821,081,155
ee04d9e963ea027bf034e80fd3e7c7d2ab73f316
c810c8c09e244a5810223bad95c55e0ad535cdbd
/merge_similarity_citation.py
74c00b4fa0cd272055ce52e6148b1d644b4acb16
[]
no_license
https://github.com/DongliangLu1995/Summer_Research-CBS
f98bca71d21981d252e07fd1cd4a9487ad858983
050116e542dc8b3738be2a07fdcf728e99b13cdd
refs/heads/master
2020-03-29T00:50:05.393332
2019-03-29T19:06:04
2019-03-29T19:06:04
149,358,414
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jul 16 15:14:55 2018 @author: DongliangLu """ #merge similarity citation import pandas as pd import numpy as np import pickle similarity_save_basic_add=r"C:\Users\DongliangLu\Desktop\Columbia\research\CBS\lobby\data_cleaned\comments_similarity\One" old_da...
UTF-8
Python
false
false
3,626
py
46
merge_similarity_citation.py
43
0.63872
0.621622
0
72
47.333333
149
RobyJacob/Coding-problems
19,628,000,563,278
e6548c8c7143e1ab85b13f7061c6c4ea5c69d3eb
ed359ad7c72a6c1c924c0ae012f881517c70e9f8
/foobar_1.py
eb050061da187b0c28ad053a73ab15615eac2bcd
[]
no_license
https://github.com/RobyJacob/Coding-problems
485ff6cc88e90b7f672bb33ccccac19139fba4b8
418b2207025540f78a3e0c574eea5237b06a1579
refs/heads/master
2022-10-28T06:49:48.433806
2020-06-18T08:49:34
2020-06-18T08:49:34
260,744,336
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def inifinite_sequence(): num = 2 while True: yield num num += 1 def is_prime(num): import math count = 0 for n in range(1, int(math.sqrt(num))+1): if num % n == 0: count += 1 if count < 2: return True return False def solution(i): index = 0 ...
UTF-8
Python
false
false
745
py
28
foobar_1.py
26
0.551678
0.496644
0
39
18.102564
45
bmrb-io/ligand-expo
8,443,905,741,359
4ab31475679356aa2c3e987efe2cfab6b567ec03
3d7873ecb3668e1f5be5693c2daf977ce08c7b5b
/ligandexpo2bmrb/checker.py
66d1ab58096a8eecb0cdb465a1e87ea6b570eb4b
[ "Unlicense" ]
permissive
https://github.com/bmrb-io/ligand-expo
3f78cc1b68a9c0bc151c6acf102f4fce262e2acf
6b5a2f60e1c5d73a03ae236685d81ece55660b2c
refs/heads/master
2022-11-28T20:20:18.836020
2020-08-05T01:03:01
2020-08-05T01:03:01
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python -u # # -*- coding: utf-8 -*- # # Read modified date from mmCIF # from __future__ import absolute_import import sys import os import re import datetime #import traceback try : import sas except ImportError : sys.path.append( "/projects/BMRB/SAS/python" ) import sas # # # class UpdateCh...
UTF-8
Python
false
false
6,317
py
8
checker.py
7
0.527624
0.523191
0
223
27.327354
113
Rutvik-C/SE-Hackathon-20
17,188,459,133,629
1f489f5d6f1e9bd3f3b0fa6f2ddbc72fdb20c085
09e05c4f477bf721c008eb080497929f9501947e
/Solveasy/Student/migrations/0001_initial.py
9ebbb07e27dc78748a44f445090a2844a53caf4a
[]
no_license
https://github.com/Rutvik-C/SE-Hackathon-20
3f4d0bca4c9273b5ea4ce32911aa7e2106b3429e
b661c69670469b7f3b2850ac57bccfdc59e16292
refs/heads/main
2023-01-29T08:18:29.078083
2020-12-07T05:01:40
2020-12-07T05:01:40
318,972,210
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.1.2 on 2020-12-06 13:54 from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('Authority', '0001_initial'), migr...
UTF-8
Python
false
false
1,729
py
23
0001_initial.py
16
0.633892
0.615963
0
38
44.5
203
sagoyanfisic/NuevoProyectoDisSist
6,339,371,729,598
6ecc716153bf195fc72a8add6dcb07ab4f5bb2bf
1cf947450e39131fc571ef953138e292db495c2f
/project/principal/views.py
f1cb10b901c51e61297107f633fa8022ed577282
[]
no_license
https://github.com/sagoyanfisic/NuevoProyectoDisSist
bed93d1d6786402a21b987c32a57b79d29b00190
f5c3a12050aca62ced48483c218452a16dce5756
refs/heads/master
2020-06-05T07:08:53.642356
2014-07-01T23:39:05
2014-07-01T23:39:05
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from principal.models import Bebida , Receta , Comentario from django.contrib.auth.models import User from django.shortcuts import render_to_response , get_object_or_404 from django.http import HttpResponse, Http404 def lista_bebidas(request): bebidas = Bebida.objects.all() return render_to_response('lista_bebidas....
UTF-8
Python
false
false
577
py
3
views.py
2
0.762565
0.752166
0
17
32.823529
67
YangStark/33ics
472,446,424,894
4d60a731971a1c7a02565de409f37509747cfb87
30b635f7798bea6e02746ddad322ff04d883a03a
/program1/sbsbsbsbsbsbsb.py
e86156e9e289fb6cf80658ab9ae9bdbac658e2e6
[]
no_license
https://github.com/YangStark/33ics
74ee85d1bd2a406b981d4380295e254ebfb4a41a
a7d3b68ad965ee7e08365731ec203a0cb778221f
refs/heads/master
2020-04-13T17:26:01.685496
2019-09-27T23:19:25
2019-09-27T23:19:25
163,348,001
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from random import choice from collections import defaultdict # For use in read_corpus: leave unchanged in this file def word_at_a_time(file : open): file = open("wginput1.txt","r") for line in file: for item in line.strip().split(): yield item def read_corpus(os : int, file : ...
UTF-8
Python
false
false
1,765
py
8
sbsbsbsbsbsbsb.py
8
0.581303
0.577904
0
51
32.607843
87
SEED-platform/seed
19,533,511,285,937
fd0264509a64e18295c77b7d38954c4f6b85776b
7e6f0efd6f4733d09e61b4c6658455e6727cd48f
/seed/tests/api/seed_readingtools.py
e3148cf9fa0d5a2aae181964d35463a5b41755fb
[ "BSD-2-Clause" ]
permissive
https://github.com/SEED-platform/seed
0e4a6a2fa93f4c2528d0c295163a91f836a4253d
680b6a2b45f3c568d779d8ac86553a0b08c384c8
refs/heads/develop
2023-09-01T10:46:25.502697
2023-08-30T18:44:21
2023-08-30T18:44:21
25,450,714
108
75
NOASSERTION
false
2023-09-13T22:18:47
2014-10-20T04:26:53
2023-09-11T19:24:59
2023-09-13T22:18:47
160,901
101
60
335
Python
false
false
# !/usr/bin/env python # encoding: utf-8 """ SEED Platform (TM), Copyright (c) Alliance for Sustainable Energy, LLC, and other contributors. See also https://github.com/seed-platform/seed/main/LICENSE.md """ import csv import logging import os import pathlib import pprint import time from http.client import RemoteDisc...
UTF-8
Python
false
false
6,779
py
998
seed_readingtools.py
801
0.587576
0.574886
0
206
31.898058
111
jkingben/minos
12,996,571,071,360
f54646505539aa00ff7c9a4e93b4fcdb014c3dae
c0d63b25f5ae6c0dc18d80a2fa8b14d7681e027d
/supervisor/supervisor/medusa/demo/start_medusa.py
2c72437b61c42dd9fa8e4000dfda8cb39fe7191e
[ "Apache-2.0", "HPND", "BSD-3-Clause-Modification", "ZPL-2.1", "LicenseRef-scancode-supervisor" ]
permissive
https://github.com/jkingben/minos
e8804dc03503497fc55c9570e8495c563587ab69
23d26fda71fcd1068e65958b3aef03d9cafd5453
refs/heads/master
2020-05-07T13:33:44.962162
2019-04-10T10:47:27
2019-04-10T10:47:27
180,554,473
0
0
Apache-2.0
true
2019-04-10T10:03:25
2019-04-10T10:03:24
2019-04-08T06:34:02
2015-05-28T09:15:32
13,381
0
0
0
null
false
false
# -*- Mode: Python -*- # # Sample/Template Medusa Startup Script. # # This file acts as a configuration file and startup script for Medusa. # # You should make a copy of this file, then add, change or comment out # appropriately. Then you can start up the server by simply typing # # $ python start_medusa.py # import...
UTF-8
Python
false
false
7,216
py
241
start_medusa.py
148
0.551414
0.542544
0
196
35.816327
79
guoyandan/anwen
17,952,963,305,980
f7dd6af610d915611ce46cc385cce995a7d2e75e
a69507f4f022cd7fec4eed7f6ea182124af343e7
/admin/fix_hit.py
75693faf98352ffc23a1f8eedbac1c0625499571
[]
no_license
https://github.com/guoyandan/anwen
ce195a8457fac2156e7c20bca2335509ea230dbb
05218fc6cdea8c7b67744459f0d78928ef27ceb0
refs/heads/master
2022-03-27T05:00:57.801153
2020-01-01T11:29:47
2020-01-01T11:29:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # encoding:utf-8 import sys import options from pymongo import MongoClient conn = MongoClient() adb = conn.anwen adb.authenticate(options.db['username'], options.db['password']) def fix(): n = 1 for i in adb.Hit_Col_v2.find().sort('_id', 1): i['id'] = n i['hitnum'] = 1...
UTF-8
Python
false
false
374
py
147
fix_hit.py
78
0.596257
0.57754
0
22
16
64
ttwoodbury/IWTBA
9,242,769,657,239
532c5e40b0a141d875123dafe2d78e12d1ebf4c3
3f3a485c04fb16c7d351319dc8ed315ef92b6ab4
/scrapers/github_scrape.py
ed768d624f7d3423dba5b09e09431933f27a0c92
[]
no_license
https://github.com/ttwoodbury/IWTBA
1c370e45d919fa08f92d022ffa516068dccca318
6bb410ee0191bb43d599119bf9a9e8f8dcf67ce9
refs/heads/master
2021-01-20T23:40:21.772031
2015-07-17T20:37:19
2015-07-17T20:37:19
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# quick and dirty github scrape # only 265 jobs, pages 0 to 5 (50 per page) postings = [] for x in range(6): r = requests.get('https://jobs.github.com/positions.json?description=&page=%s' % x) postings.extend(r.json()) #r.json is a list of dicts json.dump(postings, open('github_postings', 'w'))
UTF-8
Python
false
false
305
py
13
github_scrape.py
6
0.678689
0.652459
0
9
33
87
theo-ardouin/impose_ton_anonymat
10,161,892,666,313
07bb9f2fc837d5bb9ff45d8d02507f1827c962ae
5bfb0657ef9b72192d408e6b28e3a70f70a7330e
/impose/interfaces/__init__.py
31b157e1370deb9e7cb02e372be0cbefd6ab99e2
[]
no_license
https://github.com/theo-ardouin/impose_ton_anonymat
807ea87ad1bfd1ffbfb1abfe39eaa9d2f921ab9b
2aede8307974ff84564439ad5af5aa056c932334
refs/heads/master
2023-05-18T12:10:54.582556
2020-07-29T18:17:10
2020-07-29T18:17:10
275,205,197
0
0
null
false
2021-02-26T02:56:12
2020-06-26T16:54:38
2020-07-29T18:17:13
2021-02-26T02:56:12
39
0
0
1
Python
false
false
from .database import IDatabase, ISession from .discord import IDiscord from .gateway import IImageGateway, ITaskGateway, IPermissionGateway
UTF-8
Python
false
false
144
py
43
__init__.py
38
0.833333
0.833333
0
3
46
68
pavel-odintsov/RPKI-toolkit
13,563,506,759,678
37ddaa415f79d0b1a06d84dbba712bf5775949d0
6494ad67744da5347db30940454261a226439937
/rpki/gui/cacheview/misc.py
544312240abec63f3809e0302161d68485401770
[]
no_license
https://github.com/pavel-odintsov/RPKI-toolkit
88f16027bf9dcb498fb6a5a1805cec06368439a8
c55a0694c637acfd08b42f20366aba387b110adf
refs/heads/master
2021-01-10T05:30:44.507868
2016-01-17T21:03:45
2016-01-17T21:03:45
49,835,419
4
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright (C) 2011 SPARTA, Inc. dba Cobham Analytic Solutions # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND...
UTF-8
Python
false
false
1,261
py
92
misc.py
62
0.733545
0.723236
0
31
39.677419
77
sami-adam/odoo-hr
8,598,524,546,097
2b29d5bb2bbee85864d2b70d57fd70d2c95ba632
c18c0d2ffda84f605cfca91290ff16ba37ff3bb2
/hr_attendance_zkteco/controllers/controllers.py
cf8bf03e08346cb41b6594117179eb98745a7544
[]
no_license
https://github.com/sami-adam/odoo-hr
0f80f26a7850b472db3c90a71df82e7975c08ff1
65b9dc36edba484a886dd7f1bd0943ba02905e8f
refs/heads/main
2023-05-31T22:51:08.884588
2021-07-07T11:42:09
2021-07-07T11:42:09
383,777,896
0
0
null
false
2021-07-07T11:42:10
2021-07-07T11:40:05
2021-07-07T11:40:09
2021-07-07T11:42:09
0
0
0
0
null
false
false
# -*- coding: utf-8 -*- from odoo import http # class HrAttendanceZkteco(http.Controller): # @http.route('/hr_attendance_zkteco/hr_attendance_zkteco/', auth='public') # def index(self, **kw): # return "Hello, world" # @http.route('/hr_attendance_zkteco/hr_attendance_zkteco/objects/', auth='public'...
UTF-8
Python
false
false
892
py
12
controllers.py
7
0.623318
0.622197
0
20
43.65
144
romankurnovskii/parsers
14,370,960,616,689
044df45844951beb12e8750b37eb0a70cba9221a
0f30ebdb88c67361a45a6677806237a7eb78363f
/parseLeroymerlin/leroymerlinparser/items.py
8c35eef1ec00a4a3916a187d5f1a680dfad7c991
[ "MIT" ]
permissive
https://github.com/romankurnovskii/parsers
c8daacbd3650dd167c7f4d2ffe8c90479f113de2
9e908fff7fbbfbc9654008d947cfeb0b45318238
refs/heads/master
2022-12-25T15:18:04.461059
2020-10-13T18:47:31
2020-10-13T18:47:31
292,517,773
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import scrapy from scrapy.loader.processors import TakeFirst, MapCompose import re def convert_to_int(num): if num: return int(num) def convert_to_float(num): if num: num = num.replace(" ", "") return float(num) def cleaner_photo(value): if value[:2] == '//': return f'h...
UTF-8
Python
false
false
1,536
py
37
items.py
29
0.651693
0.651042
0
52
28.538462
86
erp5/erp5
15,315,853,382,223
6c697b2378ac20b3c576404aefff9c50184a98fc
f2c29558b6c2c28e30e307c6eb8f1d7a06dffbb4
/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/CurrencyExchangeLine_asCellRange.py
80ad4e332733012c91d3f8b1c24d4597c31f738f
[]
no_license
https://github.com/erp5/erp5
253e8053b39af58dbce56658ba8eb990ea720cda
94db42159ce41f3cf7ad285d04d372948064dcb0
refs/heads/master
2021-01-23T15:06:33.385280
2021-01-21T22:20:46
2021-01-22T12:11:07
1,761,476
20
8
null
false
2014-12-04T09:07:04
2011-05-17T16:00:11
2014-12-04T01:43:56
2014-12-04T06:26:47
516,896
29
18
1
Python
null
null
currency_exchange_type_list = context.portal_categories.currency_exchange_type.getCategoryChildRelativeUrlList() resource_list = ['resource/%s' % context.getParentValue().getRelativeUrl()] price_currency_list = [context.getPriceCurrency(base=True)] return (currency_exchange_type_list, resource_list, price_currency_li...
UTF-8
Python
false
false
324
py
5,838
CurrencyExchangeLine_asCellRange.py
4,341
0.805556
0.805556
0
5
63.8
113
BeefCakes/CS112-Spring2012
9,328,668,982,350
35abfc9f5388949c391bb373766dc815a386bfb2
d8bfd7b8bbb6a5fc98428458d6fe5d9556cdbeb1
/hw04/sect4_for.py
241ee4c114e0cdc4c808691278e78f5fd9afe055
[]
no_license
https://github.com/BeefCakes/CS112-Spring2012
d6030ae71598a4ad4a1bf2e343a51d4ff47d4176
2f403f17b62d79dbf4bdc43e6f14f870324460ec
refs/heads/master
2021-01-18T10:08:26.074959
2012-03-28T15:44:18
2012-03-28T15:44:18
3,266,345
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python from hwtools import * print "Section 4: For Loops" print "-----------------------------" nums = input_nums() # 1. What is the sum of all the numbers in nums? print "1. Sum of",sum(nums) # 2. Print every even number in nums print "2. Even numbers:", evens = [] for i in nums: if i%2 == 0:...
UTF-8
Python
false
false
795
py
43
sect4_for.py
43
0.597484
0.567296
0
45
16.666667
70
junyang10734/leetcode-python
16,071,767,648,371
5f0f1a2a6908fc7fd996e1fbf7693773ff725234
5ce1c0ab1b6147428fc30bcd1698e4d0e53b688e
/40.py
50a82013ec3e3e79cb254b7bb4d9a9bff1131265
[]
no_license
https://github.com/junyang10734/leetcode-python
035b12df3f7d9fc33553140d1eb0692750b44f0a
eff322f04d22ffbc4f9b10e77f97c28aac5c7004
refs/heads/master
2023-07-22T11:16:38.740863
2023-07-14T00:22:00
2023-07-14T00:22:00
189,197,380
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 40. Combination Sum II # backtrack # 模板 class Solution: def combinationSum2(self, candidates: List[int], target: int) -> List[List[int]]: candidates.sort() res = [] path, pathSum = [], 0 def backtrack(start): nonlocal pathSum if pathSum == target: ...
UTF-8
Python
false
false
866
py
651
40.py
650
0.454756
0.446636
0
29
28.758621
85
tlktoash/dailycodingproblem
13,657,996,033,971
2d29719925754b587bea43a313f9c865cc4b6ba8
e31650aeba55b0ce70b789d6609c2d1b37698369
/python/dynamic-programming/dp_stairs_climbing.py
fd0d5bf123a117f5a7c78ef579cc339808fb0ab7
[]
no_license
https://github.com/tlktoash/dailycodingproblem
ef1703b7d70d0063b0b57756e8f059fdb8ef0bd2
2d4ecccd5cf7ce0a5b430b7aba9598687f863b8d
refs/heads/master
2018-10-31T02:51:11.509591
2018-10-30T04:16:03
2018-10-30T04:16:03
142,648,363
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# A child is climbing up a staircase with n steps, and can hop either 1 step, 2 steps, or 3 # steps at a time. Implement a method to count how many possible ways the child can jump up the stairs. # # Example: # # Number of stairs : 3 # # Number of ways = 4 ( {1,1,1}, {1,2}, {2,1}, {3} ) def possible_ways_rec(n): ...
UTF-8
Python
false
false
744
py
107
dp_stairs_climbing.py
101
0.581989
0.537634
0
31
22.967742
104
jepemo/basic-agent
12,962,211,347,926
53edbd0fc4008919c306daf6e3716e3650625df1
837d9427101ab1e904a602096c637ff4525577bf
/tests/test_messages.py
2ef9ab7a46ae538c481cd5f6ddbe1e9edf3e04b1
[ "MIT" ]
permissive
https://github.com/jepemo/basic-agent
bead69fddc5812f6bfa3f0dacc6fc8f76a6c7e53
4c0d82ed4c68ddc0138374538fba3cec9090dc16
refs/heads/master
2020-03-07T06:08:03.272881
2018-04-30T15:57:45
2018-04-30T15:57:45
127,314,120
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # This file is part of bagent # # Copyright (C) 2018-present Jeremies Pérez Morata # # 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, includ...
UTF-8
Python
false
false
1,571
py
10
test_messages.py
9
0.678981
0.663057
0
49
30.040816
71
Yang-Jianlin/python-learn
14,431,090,145,403
ed7c6777d4a41dcd76d27153ab4f5b79507a460a
7b8fd24cc6dbed385173a3857c06f2935724ace6
/LeetCode/T-7.py
bc1028ffb35ed9c61bb2955f3ee58de8e18dc4b8
[]
no_license
https://github.com/Yang-Jianlin/python-learn
eb1cfd731039a8e375827e80b8ef311f9ed75bfb
048cde2d87e4d06a48bd81678f6a82b02e7c4cb4
refs/heads/master
2023-07-12T16:35:13.489422
2021-08-23T11:54:10
2021-08-23T11:54:10
357,464,365
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def reverse(self, x: int) -> int: if x == 0: return 0 res = 0 if x < 0: x = str(x)[1:] x = x[::-1] x = '-' + x res = int(x) elif x > 0: x = str(x) x = x[::-1] res = int(x) ...
UTF-8
Python
false
false
485
py
320
T-7.py
307
0.327835
0.28866
0
23
20.086957
40
happyhairfish/ctg2
5,102,421,194,646
b8c7a5946583de741f1bdde261c524192b871d99
54288f6ba493d650d67e10ef0505170260f5abda
/test.py
90b4db72a001ce266cf4f1ccb8998faa59cef9e7
[ "MIT" ]
permissive
https://github.com/happyhairfish/ctg2
e70d436ea129b61c7950bce803c50b05cc269d44
d5b5ed1281b55e3a8b00ef4551fe6b233d153aad
refs/heads/master
2020-08-05T14:26:09.517140
2016-11-25T00:34:08
2016-11-25T00:34:08
67,298,314
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random dado1 = random.randint(1,6) print('dado1',dado1) dado2 = random.randint(1,6) print('dado2',dado2) suma=dado1+dado2 print('suma',suma) while ((suma==7) or (dado1==6 and dado2==6) or (((dado1==6) and (dado2%2==1)) or ((dado2==6) and (dado1%2==1)))): dado1 = random.randint(1,6) dado2 = random.randi...
UTF-8
Python
false
false
422
py
22
test.py
2
0.637441
0.545024
0
16
25.375
113
SeattleTestbed/integrationtests
12,738,873,039,846
4f652d048724dd25ca7129b6a432da01e3ce42a0
83721ff65be6fce299d74b9e0741bd838c679c5d
/pushsoftwareupdate/resetblackboxupdate.py
bc75aa054dea578f706be6a6ebac0c02b7e1288c
[ "MIT" ]
permissive
https://github.com/SeattleTestbed/integrationtests
602f0db994013b7d0fb02402306d94bf4b87390e
ae6cf2f819ff7e95ec60abeac8dc3886295825c7
refs/heads/master
2020-12-25T17:16:26.291603
2017-05-15T11:41:07
2017-05-15T11:41:07
20,136,902
0
3
null
false
2016-08-01T18:15:07
2014-05-24T18:44:48
2015-01-12T16:58:29
2016-08-01T18:15:07
297
0
4
9
Python
null
null
""" <Program Name> resetblackboxupdate.py <Started> December 17, 2008 <Author> Brent Couvrette couvb@cs.washington.edu <Purpose> This script sets up the environment for pushsoftareupdate to run correctly. This includes running it through the repy preprocessor, making sure it knows where all its i...
UTF-8
Python
false
false
5,006
py
25
resetblackboxupdate.py
23
0.748102
0.745306
0
135
36.081481
81
entrepreneur-interet-general/CIS-front
3,530,463,143,551
7439df6d23e0759658515dd07bfc86ac53d75166
6fa8d2766d5738c11cec8064f04e70ca884221c5
/cis/app/settings/app_nomenclature_tags.py
47c1889cd702ff62777b16aab6a5eba6ca23b167
[ "MIT" ]
permissive
https://github.com/entrepreneur-interet-general/CIS-front
2b0875288f1488051eece1637ee6075d3eec407d
1d07e2d25e9da54a0ba6868d251a072028de4e0c
refs/heads/master
2020-03-07T22:26:23.284724
2019-03-28T15:23:29
2019-03-28T15:23:29
127,753,949
8
3
MIT
false
2019-03-28T15:24:09
2018-04-02T12:35:26
2019-03-28T15:23:35
2019-03-28T15:24:08
218,132
4
4
155
JavaScript
false
null
# -*- encoding: utf-8 -*- # import os # import json from .. import os, inspect, log_cis, pformat, json, json_util cwd = os.getcwd() json_folderpath = cwd + "/app/static/json/" ### + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ### ### NORMALIZATION TAGS / UTILS ### + + + + ...
UTF-8
Python
false
false
76,755
py
166
app_nomenclature_tags.py
41
0.624402
0.621298
0
1,162
64.435456
180
SamiraHuber/Python-Mini-Games
17,978,733,125,516
70ae8fd4f597b0208aeaee2dbfc6706ce068af25
0134d0262626fb6fa50550160decf25a5cb43de4
/tic-tac-toe/board.py
5707699b094711470a1a9704b10dcbc34996732e
[]
no_license
https://github.com/SamiraHuber/Python-Mini-Games
98bd0c0fd480692cd90c3945dc5d00ae034ec809
4e440b4aee6f1a983052b140a6f61b2c2dc9a3fb
refs/heads/master
2020-09-14T13:57:45.251126
2019-11-25T15:43:05
2019-11-25T15:43:05
223,148,357
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class board: array = [[" ", " ", " "], [" ", " ", " "], [" ", " ", " "]] def print_it(self): for row in range(3): print(self.array[row]) def make_turn(self, sign, position): self.array[position[0]][position[1]] = sign def is_empty(self, position): return self.array...
UTF-8
Python
false
false
2,244
py
9
board.py
7
0.424242
0.400624
0
76
28.513158
88
0therGuys/exile
11,519,102,317,647
970f01d4356946dce1ae88e628618d0cf29ca694
596f1e2eaf3198c4fc157ed9115edcad25753666
/exile/scard/const.py
86eccfbd671f743061d41d5574b56881e5fbfe1c
[ "Apache-2.0" ]
permissive
https://github.com/0therGuys/exile
19aff9ab7f316295ec622e6d1a401ea3e5e85a7a
38fd9c4d22edcecae0b6fd4dbc9a9d894f366b2f
refs/heads/master
2023-08-18T05:30:43.858100
2021-09-24T16:13:39
2021-09-24T16:13:39
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from enum import Enum class SCardConstants: """ https://docs.microsoft.com/en-us/windows/desktop/api/winscard """ MAX_BUFFER_SIZE = 264 """Maximum Tx/Rx Buffer for short APDU""" MAX_BUFFER_SIZE_EXTENDED = 4 + 3 + (1 << 16) + 3 """enhanced (64K + APDU + Lc + Le) Tx/Rx Buffer""" MAX_ATR_...
UTF-8
Python
false
false
9,217
py
10
const.py
8
0.607573
0.529456
0
222
40.518018
110
mspgeek/Client_Portal
9,887,014,755,413
badae2c31f367b5bf777aec2a78be50a1404f3f9
bf683eb4a6080cf67669de90d1afdad53fccb738
/Lib/site-packages/viewflow/flow/nodes.py
daaf1d6897e4b14a4646c0cf180149dadc1a30ab
[ "MIT" ]
permissive
https://github.com/mspgeek/Client_Portal
cd513308840aa4203554ebc1160f17f0dd4b17cf
0267168bb90e8e9c85aecdd715972b9622b82384
refs/heads/master
2023-03-07T21:33:22.767108
2020-04-08T01:43:19
2020-04-08T01:43:19
253,946,635
6
0
MIT
false
2022-12-31T07:01:43
2020-04-08T00:43:07
2020-08-15T17:12:06
2022-12-31T07:01:41
71,679
4
0
3
HTML
false
false
from .. import nodes from . import views from .activation import ManagedStartViewActivation, ManagedViewActivation class StartFunction(nodes.StartFunction): """ StartNode that can be executed within you code. Example:: class MyFlow(Flow): start = flow.StartFunction(this.create_reques...
UTF-8
Python
false
false
8,713
py
425
nodes.py
277
0.62401
0.62401
0
322
26.059006
91
yuanyuhua/1807-2
2,456,721,336,272
83f447e2e31e2dd72a0deb860f368fbf13a0f152
72ae2d96751a4ebba9ddd9a4ead92cea0ec78445
/08day/飞机大战主类.py
c3b3470642b08b2d32150a4a5bc60ef923928467
[]
no_license
https://github.com/yuanyuhua/1807-2
ef667167d4fce242f1963001ba9bb30bf00b2305
1a3efcfa6898cfa1e650ae3c90681a9b921ac1f8
refs/heads/master
2020-03-25T10:05:03.969310
2018-08-20T07:48:57
2018-08-20T07:48:57
143,683,243
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame from jinglingzu import * pygame.init() #初始化 yh = pygame.Rect(480,300,120,120) screen = pygame.display.set_mode((480,700))#创建游戏窗口,宽度和高度 bg = pygame.image.load("./images/background.png")#插入背景 hero = pygame.image.load("./images/hero1.png")#插入英雄 #screen.blit(hero,(200,500))#英雄的位置 herorect = pygame.Rect(2...
UTF-8
Python
false
false
1,391
py
43
飞机大战主类.py
42
0.699717
0.640227
0
48
21
56
StephenGodard/python
8,186,207,681,131
f4f82d532dd27afa11cc6903527be9ca0e1fd3ea
c17a680277827b940668e3cc4381886331c55f61
/python/scratch.py
b8326994c9ef5cdc0654578afa9127ecef619294
[]
no_license
https://github.com/StephenGodard/python
731f20580e421022c7c2f2a03924db6519537f9f
831d12ab392ac08fea96dce3f54567b9269ba834
refs/heads/master
2020-04-07T13:34:05.864993
2018-12-08T21:25:44
2018-12-08T21:25:44
158,412,283
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
t=6.892 d=19.7 v=d/t print(round(v,1))
UTF-8
Python
false
false
38
py
23
scratch.py
21
0.631579
0.421053
0
4
8.75
17
yashgoyal07/contacts_manager
16,406,775,082,665
fa723c85f774578142dba93b6c666c2d167a7247
9d24b43fb248ebac151fc143960245522e6932d0
/src/models/mysql_model.py
c3f5d4c1971eaacfc2e2d4ff49a960565917f34d
[]
no_license
https://github.com/yashgoyal07/contacts_manager
49699c6940448a60fea528453b7884e0f0ffeda7
ef834b0bde04ec6cc785be19e597e65d8a94884f
refs/heads/main
2023-06-04T10:49:39.518863
2021-06-28T17:11:46
2021-06-28T17:11:46
319,005,596
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import mysql.connector from helpers.utils import get_environment from configs.mysql_config import MysqlConfig # model class for communication with mysql or any database. class ModelMysql(object): def __init__(self): self.infra_env = get_environment() # function from utils file of helpers package ...
UTF-8
Python
false
false
1,819
py
14
mysql_model.py
7
0.631116
0.631116
0
40
44.475
94
mstfbl/data
9,251,359,574,460
a79f36a65d962c9a799917a7214addbe5e7b9f13
31bdf96faa216a43c3712210797fe9e2c8c02a7f
/torchdata/datapipes/iter/util/combining.py
a17df721e5d2ae311e87e3c3a182651ab0ea48ff
[ "BSD-3-Clause" ]
permissive
https://github.com/mstfbl/data
93d58053bc26b80915f4c92ae8041e6c7636f997
4e48de45c28159054589eb017d2e9445e079b0bf
refs/heads/main
2023-08-26T21:59:03.897135
2021-10-20T15:05:54
2021-10-20T15:06:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import warnings from collections import OrderedDict from torch.utils.data import IterDataPipe, MapDataPipe, functional_datapipe from typing import Callable @functional_datapipe("zip_by_key") class KeyZipperIterDataPipe(IterDataPipe): r""":class:`KeyZipperIterDat...
UTF-8
Python
false
false
5,146
py
46
combining.py
34
0.617761
0.616207
0
121
41.528926
120
ArashMoshirnia/store_with_smart_recommender
18,562,848,656,030
1cbcd9efcae9abec270e53a190ef502746a37916
8f619dc8adb894d92590b14af0e5a4b6f7981c44
/products/admin.py
2406114d609e89a1dc359bf9c3c7dc4df701f91e
[]
no_license
https://github.com/ArashMoshirnia/store_with_smart_recommender
e427c97ae18945bb3a0d63b6a8efd2620c048314
ccfddd3c03963d820054f2f418037ae0b81b10f5
refs/heads/master
2023-07-05T03:09:50.181457
2021-08-10T14:20:34
2021-08-10T14:20:34
352,128,514
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from products.models import Product, Category, ProductRating class ProductAdmin(admin.ModelAdmin): list_display = ('id', 'name', 'is_enabled') class CategoryAdmin(admin.ModelAdmin): list_display = ('id', 'name') class RatingAdmin(admin.ModelAdmin): list_display = ('us...
UTF-8
Python
false
false
484
py
13
admin.py
11
0.747934
0.747934
0
20
23.2
60
promediacorp/fbnames
12,807,592,523,288
a85504b757a939285bff2debb6f8ac6ed624f833
d415ba2dfd6a74c2cc4e2002badf0f22d77853a4
/fbnames/spiders/test.py
99f519206b8c4096fb2ea6bfcc4fb6d096d04e7b
[]
no_license
https://github.com/promediacorp/fbnames
2635e465ab14a96b5badd3f81b48bd7683ce2a68
76d8e519d729af58516a832461b402cf68622752
refs/heads/master
2021-01-21T02:59:18.291244
2014-12-19T04:09:12
2014-12-19T04:09:12
28,012,560
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from scrapy.contrib.spiders import CrawlSpider, Rule from scrapy.spider import BaseSpider #from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor from scrapy.selector import HtmlXPathSelector from fbnames.items import FbnamesItem from scrapy.contrib.linkextractors import LinkExtractor class MySpider(CrawlSpi...
UTF-8
Python
false
false
1,137
py
10
test.py
9
0.565523
0.565523
0
43
25.465116
65
StanfordAHA/garnet
1,211,180,790,812
71cc91dbf6a9f91cc7f2537a62bffdcc4c21b812
8e3321fecc0135d694c30f79f726205692f4763c
/global_buffer/design/SRAM.py
6b25c83a5fc7d2fa16c1132ced3104c5627e9309
[ "BSD-3-Clause" ]
permissive
https://github.com/StanfordAHA/garnet
ea178b93244c2be41d04d90725e61a4f8b760254
70f71eeda2812d53116aa09580f837b2e0d2558a
refs/heads/master
2023-08-31T16:08:49.068457
2023-07-28T14:21:20
2023-07-28T14:21:20
140,670,939
83
17
BSD-3-Clause
false
2023-09-14T14:38:04
2018-07-12T06:30:10
2023-08-27T12:58:31
2023-09-14T14:38:04
19,595
82
13
80
Python
false
false
from kratos import Generator, always_ff, posedge class SRAM(Generator): def __init__(self, process: str, name: str, word_size: int, num_words: int): super().__init__(name) self.word_size = word_size self.num_words = num_words self.data_array = self.var("data_array", word_size, size...
UTF-8
Python
false
false
2,580
py
562
SRAM.py
199
0.498837
0.479457
0
63
39.952381
80
emchoko/SuperMario-
3,470,333,588,442
d37ced85327360cd81009d80df4e5fdd85f0f0f7
7bb9bb8c56ff5abfc9d5f3f2a3ec3fc0434c5af5
/animators/startscreenloader.py
4a568affc5e36fa8b0f3556d271f1458079f7ed7
[]
no_license
https://github.com/emchoko/SuperMario-
c577dd6b98f6d5f04b04f6394a75792087af0e57
f8d5cfdb3005ed635635be754f5004dcb7a4fc32
refs/heads/master
2021-01-25T11:39:06.599909
2018-03-16T03:49:07
2018-03-16T03:49:07
123,413,132
0
0
null
false
2018-03-16T03:49:07
2018-03-01T09:31:58
2018-03-16T00:14:22
2018-03-16T03:49:07
65
0
0
0
Python
false
null
from constants import Constants from handlers.imageinfo import ImageInfo try: import simplegui except ImportError: import SimpleGUICS2Pygame.simpleguics2pygame as simplegui # <Leila code> class StartScreenLoader: def __init__(self, state, is_gameover, progress, score): self.background = ImageIn...
UTF-8
Python
false
false
2,682
py
19
startscreenloader.py
18
0.616331
0.574198
0
61
42.967213
117
thimontenegro/Dataquest
5,746,666,261,686
b8f801f3760cfed507f57a0e9336cab530ae4b47
cb24e4fb75371fa1078fa786ebf88fd3c1ec388c
/Conditional Probability/Bayes Theorem-431.py
2eabc93f0d2bb947e39e62229a72a328b387e4d5
[]
no_license
https://github.com/thimontenegro/Dataquest
19d91856b002ba0d574d4fb78a9291462fbe0a21
abb768698835d77868050f7d0672133dfa1c74e4
refs/heads/master
2021-07-25T10:54:45.335791
2021-01-07T13:01:04
2021-01-07T13:01:04
236,377,362
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
## 1. Independence vs. Exclusivity ## statement_1 = False statement_2 = True statement_3 = True ## 2. Example Walk-through ## p_spam = 0.2388 p_secret_given_spam = 0.4802 p_secret_given_non_spam = 0.1284 p_non_spam = 1 - p_spam p_spam_and_secret = p_spam * p_secret_given_spam p_non_spam_and_secret = p_non_spam * p_...
UTF-8
Python
false
false
1,441
py
26
Bayes Theorem-431.py
19
0.674532
0.616933
0
65
21.184615
85
icompsofteduardos/Treino-ICS
15,573,551,423,555
68e7c9e2cf745c5a221fd58d88173eb28f2c7431
d07dbecd446b6e4fd51dce4694d528ff0efd73c1
/git_curso/ddd.py
0cbf3939426bba3989017fedb3d4f2647338ce4e
[]
no_license
https://github.com/icompsofteduardos/Treino-ICS
784ce9c91a54af7e312524c3cba7b5c36cf75de4
f0af6c5b5ed90e61820200ede157f39937ddafe8
refs/heads/master
2020-12-26T06:03:51.348670
2020-02-07T12:08:02
2020-02-07T12:08:02
237,410,777
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
sp = 45 pr = 46 jk = 50
UTF-8
Python
false
false
23
py
23
ddd.py
15
0.521739
0.26087
0
3
7
7
not7cd/circulation
11,012,296,187,001
cda3ac3e964b54ea51e1f63714f355c6386e7dfb
22d481ff60d722fb0bbd6b0cb66a8727e48391c1
/circulation/main/index/views.py
9ae8c849a181c998b412fefe275940b1b63787f7
[ "MIT" ]
permissive
https://github.com/not7cd/circulation
b7a745a38fb55ab7266a0a04ab52abc180f5d6ad
19a48d04354ffeba4be2b56c0437f69b8220d89c
refs/heads/master
2020-03-18T01:20:03.932825
2019-05-28T15:41:26
2019-05-28T15:41:26
134,137,937
2
1
MIT
true
2019-05-28T15:41:27
2018-05-20T09:43:12
2019-05-14T08:14:44
2019-05-28T15:41:27
1,109
2
1
0
Python
false
false
from circulation.web import db from circulation.models import User, Book, Comment, Log, Permission from flask import render_template from flask_login import current_user from circulation.main.index import main from circulation.main.book.forms import SearchForm @main.app_context_processor def inject_permissions(): ...
UTF-8
Python
false
false
1,064
py
59
views.py
34
0.733083
0.728383
0
24
43.333333
119
Aasthaengg/IBMdataset
7,318,624,281,701
7f0babab19d27aa49583ff919a1f973eb0612380
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03042/s581701801.py
e99b5d359defcd18629bb2ca245e4fd623077242
[]
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=input() n1,n2=int(n[:2]),int(n[2:]) #if (n1>12 and n2>12) or (n1==0 and n2==0): # print("NA") if (n1!=0 and n1<=12) and (n2!=0 and n2<=12): print("AMBIGUOUS") elif n1!=0 and n1<=12: print("MMYY") elif n2!=0 and n2<=12: print("YYMM") else: print("NA")
UTF-8
Python
false
false
275
py
202,060
s581701801.py
202,055
0.534545
0.410909
0
13
19.923077
45
xydinesh/learnpythonthehardway
17,489,106,851,404
9ca7093ca2fe2c1dddc04b5788bbbdc3bd963e89
699016c085d3a6a30916f559fb28957cc67ff3ba
/ex11.1.py
a5a3df42483ea8f4f00cba4b799086df28726285
[]
no_license
https://github.com/xydinesh/learnpythonthehardway
1879bf08e474b5a05d6559e426fd0ef91d6171cd
556e96f264d4720f2de01ae31d7aa05eebf3d4d8
refs/heads/master
2021-01-01T18:03:21.007674
2013-07-20T04:45:50
2013-07-20T04:45:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# comma ',' at the end of line is important # as it allow you to enter answer next to the question # i.e. it won't insert a \n at the end of the line print "What is your eye color?", eye_color = raw_input() print "What is your hair color?", hair_color = raw_input() print "Enter a number you can think of", n1 = int(raw_...
UTF-8
Python
false
false
485
py
20
ex11.1.py
17
0.684536
0.676289
0
14
33.642857
69
abeaumont/competitive-programming
2,216,203,166,669
830a39b6b967bfb21ea5b9ea0bf421f634454cf5
51f2492a5c207e3664de8f6b2d54bb93e313ca63
/codejam/2018-qualification/c.py
22410ab8fef593c45d9e72cfa65d9c2db6659125
[ "WTFPL", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/abeaumont/competitive-programming
23c5aabd587d7bb15a61efd3428838cb934233dd
a24c9b89941a59d344b51dc1010de66522b1a0dd
refs/heads/master
2023-09-01T09:50:58.267361
2023-07-31T18:00:10
2023-07-31T18:00:10
117,589,708
618
262
WTFPL
false
2023-07-12T17:36:20
2018-01-15T20:00:56
2023-07-07T10:24:49
2023-07-12T17:36:20
12,728
511
192
1
C++
false
false
#!/usr/bin/env python3 # https://codejam.withgoogle.com/2018/challenges/00000000000000cb/dashboard/0000000000007a30 import sys for _ in range(int(input())): a = int(input()) b = (a - 1) // 3 + 1 m = [None] * 3 for i in range(3): m[i] = [False] * b i = 1 while True: print(i + 1, 2) ...
UTF-8
Python
false
false
715
py
2,049
c.py
1,363
0.441958
0.367832
0
25
27.6
92
Orisland/HibiAPI
16,269,336,134,807
5662d5a4ba053426372b0b066f07b0b7754a9975
bb20684f29922d28124adf30a639ebe215dccf75
/utils/routing.py
2eca704385157933eca92535e58453a300305f8d
[ "Apache-2.0" ]
permissive
https://github.com/Orisland/HibiAPI
c38207e1b0bd1f120268c72fa10dcb8380ac3cd3
eb54dfebae0e7431daa42cd0567936927d2d9f66
refs/heads/main
2023-03-09T20:04:11.779272
2021-02-28T03:25:27
2021-02-28T03:25:27
341,846,278
0
0
Apache-2.0
true
2021-02-24T09:28:02
2021-02-24T09:28:01
2021-02-24T09:27:59
2021-02-23T04:37:35
605
0
0
0
null
false
false
import inspect from enum import Enum from fnmatch import fnmatch from typing import Any, Callable, Dict, List, Mapping, Optional, Tuple from urllib.parse import ParseResult, urlparse from fastapi.routing import APIRouter from httpx import URL from pydantic import AnyHttpUrl, validate_arguments from pydantic.errors imp...
UTF-8
Python
false
false
2,422
py
1
routing.py
1
0.586705
0.586705
0
82
28.536585
80
amahfouz/python-prog-challenge
15,367,393,010,216
8742c2c97f07ee0eb70624eea44d2081ec908c17
a03ada31a063a36588ce6a1d0a5a4701905ee0e9
/geeks4geeks/sum-of-bitwise-or-in-power-set.py
1933c67bbf7254efacec4aeff598eaa331232e7e
[]
no_license
https://github.com/amahfouz/python-prog-challenge
5cb97299f827b884eff557e2580fd5eb7ad8afe3
d79de2a4e394048cf75c58110571be26178e8051
refs/heads/master
2021-01-10T19:44:16.005639
2020-04-22T21:09:12
2020-04-22T21:09:12
35,351,298
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/bin/python # # Solution for # https://www.geeksforgeeks.org/sum-of-bitwise-or-of-all-possible-subsets-of-given-set/ # Let 'n' be the number of members of the original set # # Total number of subsets is 2^n (including empty set) # # In any given subset, for the i[th] bit to be # zero all corresponding bits in set m...
UTF-8
Python
false
false
1,327
py
43
sum-of-bitwise-or-in-power-set.py
42
0.614921
0.599096
0
48
26.666667
87
taojin0505/hawq-toolkit
6,691,559,068,316
411fad1e4f94c3e4bd27c20624de6aac85b5bea5
89806713beb2b22a5b0ae47dc83b9afc69408a21
/word-segment-algorithm/boundarystab-prallal.py
2f3d6ad34e57c56a73821894d0e222933f58d14f
[]
no_license
https://github.com/taojin0505/hawq-toolkit
a8830964c3c2f54351970a1ff5758ae427f5e5c7
e7787164b3944b1edda4a3303e6231dcb47ffe65
refs/heads/master
2020-12-25T14:58:21.019085
2017-01-05T08:23:03
2017-01-05T08:23:03
66,072,580
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -* from __future__ import division import os.path import os import getopt import sys import string import time import math import multiprocessing import Queue starttime=int(time.time()) shortargs='h' longargs=['help'] argvcount=2 numprocess=8 worddict={} wordcount=0 wordset=...
UTF-8
Python
false
false
4,792
py
14
boundarystab-prallal.py
10
0.588689
0.576169
0
159
29.138365
103
etjoa003/medical_imaging
5,686,536,734,674
8582d83bbe07cb343540164f30a490669fa51b0e
f122e9d57a2664c1d7189cf36e06afcfc8397a36
/isles2017/pipeline/get_results/results_publication_1/main_result.py
d7173f5f72b8745e79ad48e40983b11c6c1277bb
[]
no_license
https://github.com/etjoa003/medical_imaging
a8eda7e0da6e971310ab54c8d2671a9cb69c4357
9e55b80b3b4dde2127983447d3e2937ed5a84fed
refs/heads/master
2021-07-01T14:23:18.664651
2021-05-26T05:08:02
2021-05-26T05:08:02
193,107,888
8
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from utils.utils import * # DEBUG MODE? # See utils/debug_switche import pipeline.training as tr import pipeline.evaluation as ev import pipeline.lrp as lr import pipeline.visual as vh def example_process_get_main_figure(config_data): print('pipeline/get_results/restuls_publication_1.example_process_get_main_figur...
UTF-8
Python
false
false
1,034
py
103
main_result.py
88
0.737911
0.697292
0
30
33.466667
89
Cainuriel/Training-Python-
16,484,084,487,322
2dcb945616f541f56f6b36e657b15bb0deeadf80
491002828e6d21bba3ef95561fd5a6de73579c0a
/metodo maketrans.py
6e7a784e3edceb088260bab960988b9c1e7b2ae5
[]
no_license
https://github.com/Cainuriel/Training-Python-
bc892b3edec4b5e55083ef81697603643ef89a01
750235d2d515aa76da49002e6d3f2a90f573d3b7
refs/heads/master
2020-04-18T19:17:47.861335
2019-02-13T21:49:36
2019-02-13T21:49:36
167,708,625
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
string = "This website is for losers LOL!" vocals = "AaEeIiOoUu" def disemvowel(string): vocals = "AaEeIiOoUu" result ="" for i in string: count = 0 for j in vocals: if i != j: count = count + 1 else: pass if count == 10: result += i return result # asi de facil es con e...
UTF-8
Python
false
false
465
py
75
metodo maketrans.py
70
0.615054
0.606452
0
24
17.291667
49
AndreButhner/xoola
18,683,107,756,443
b64a14e42dc9a36b819321bee0da26c069d5cb74
98f33f4d21266da2a53c03a270f9d876691d5680
/app/controllers/auth/forms.py
7d6f8ea61ba8fba410c60b2985cf3e999d713ba5
[ "Apache-2.0" ]
permissive
https://github.com/AndreButhner/xoola
78b13fe06d01290caaa497529fd9f6c344852723
cb606eb7340f56377659c2f2e5d5a51cff1a9854
refs/heads/master
2021-03-19T11:27:27.811951
2018-06-26T02:13:39
2018-06-26T02:13:39
104,412,518
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask_wtf import Form from wtforms import StringField, BooleanField, FloatField, IntegerField, DateField,TextAreaField, SelectField, FileField, PasswordField,validators from wtforms.validators import DataRequired, EqualTo from app.model import Empresa class LoginForm(Form): login = StringField('login',...
UTF-8
Python
false
false
424
py
52
forms.py
33
0.783019
0.783019
0
8
51.875
146
PyJay/advent_of_code
17,712,445,162,375
4000e2656f13129b092b91c4797efac9a72cd2b8
8cd0611b87bf84a46a671032b85b5f661e0aa29f
/2018/day02/solve_2.py
cc910010408356e590babbba53535b0d10b723a7
[]
no_license
https://github.com/PyJay/advent_of_code
5af362b1783c333a8fcb030726470ef05e53afff
b1d6bc48cf82ef3b9076430f788eef3208654771
refs/heads/master
2021-07-12T09:34:26.059770
2020-07-05T10:15:59
2020-07-05T10:15:59
161,941,370
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
def similar_ids_common_letters(box_ids): for i in range(len(box_ids)): check_id = box_ids.pop() for box_id in box_ids: diff_idxs = [] for i in range(len(check_id)): if box_id[i] != check_id[i]: diff_idxs.append(i) if len(dif...
UTF-8
Python
false
false
915
py
5
solve_2.py
5
0.460109
0.455738
0
35
25.171429
56
luis4ngel09/sistema_web_comida
1,563,368,130,161
77d89e5e1a79d511114f274885e799f7f819101b
f26f69d7fff5b5279892814dc72441ef19608bae
/comida/models.py
21a5764a7cd3846295df866dbca972071c4cafba
[]
no_license
https://github.com/luis4ngel09/sistema_web_comida
28f9ff325982c199ecded36b0196b31384075b26
1443b9ecbe85e98087a7f31d0e9a2e416d68563f
refs/heads/master
2021-08-23T17:41:51.800961
2017-12-06T05:06:07
2017-12-06T05:06:07
113,204,922
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import unicode_literals from django.db import models from django.utils import timezone class comidas (models.Model): author = models.ForeignKey('auth.User') nombre = models.CharField(max_length=200) descripcion = models.TextField() costo = models.IntegerField() imagen ...
UTF-8
Python
false
false
1,422
py
12
models.py
6
0.71308
0.700422
0
45
30.622222
71
jaycrowww/COM3110
11,081,015,660,549
942b6941656c1dd49833acce27997a5c203e5a3f
06684f6c17422e0c08c0271a54c0a08012f4d460
/my_retriever.py
a2f3dbcbf0694d7e8367ab75beb329f286a7c2ca
[]
no_license
https://github.com/jaycrowww/COM3110
bc7812d74c8a602c2340e5b276b077a1ebc17986
132ebbff5f927c632f4aaf2908d057f77765c55a
refs/heads/master
2021-09-27T16:12:01.333810
2018-11-09T13:37:40
2018-11-09T13:37:40
156,698,812
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from collections import defaultdict import math class Retrieve: """" Takes an inverted index of a document collection, a term weighting scheme ('binary', 'tf' or 'tfidf') and a query, and returns the ids of ten top documents based on their cosine similarity to the query. """ # Crea...
UTF-8
Python
false
false
7,934
py
1
my_retriever.py
1
0.524704
0.521427
0
175
44.337143
108
E06HPM/DeployInv
2,765,958,968,605
6b4635d52a956309984419a8df9d0e5ddaa51891
b9106f93d6bc5404ee04d141b676e07c8c61f50c
/prediction/migrations/0005_modelsave.py
5801b949cfe04e19669a7e7ea537bd641225f2d9
[]
no_license
https://github.com/E06HPM/DeployInv
54376393afd8ba63e0d66ce54298a8ca10a62ef6
1dc6ab7422de187116b7c3155ae01a44ca813366
refs/heads/master
2023-07-25T00:29:46.383746
2021-09-08T23:28:21
2021-09-08T23:28:21
403,999,285
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.1.2 on 2021-06-24 00:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('prediction', '0004_auto_20210623_0415'), ] operations = [ migrations.CreateModel( name='ModelSave', fields=[ ...
UTF-8
Python
false
false
669
py
25
0005_modelsave.py
14
0.571001
0.518685
0
22
29.409091
114
0xcccccccccccc/tranhost-server
16,277,926,072,277
0b7c46ea6219dcbcb8354668588ebbfafdd26725
6297a4ba41f0c30d5411a1c5cab67814305f109c
/tran/apps.py
bd80c9076186f3a30b1eefae2f6ac33e1a29a99f
[ "MIT" ]
permissive
https://github.com/0xcccccccccccc/tranhost-server
c7609683b11ec93859558442a6b02756ae486878
20f9abfa3365f500efd04b69aea3fca2db5520e9
refs/heads/main
2023-05-06T02:45:49.269561
2021-05-26T09:04:03
2021-05-26T09:04:03
363,026,948
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.apps import AppConfig class TranConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'tran'
UTF-8
Python
false
false
140
py
8
apps.py
5
0.735714
0.735714
0
6
22.333333
56
s-c-vaz/GoogleCodeJam
18,519,898,999,482
e28b5e940d3b06385570d8514ff1199e2115dec0
d50a81a548f1729d7cd618906296397433cb19d2
/gWheels.py
5390a221f8406351039f49c19581f9c58c9c5b7e
[]
no_license
https://github.com/s-c-vaz/GoogleCodeJam
9f798b6d7f5ed380de12b346a22c5a43939b79e2
7c3a7ca783aa892e3d7c7671226fb7c8a3c34936
refs/heads/master
2020-05-21T13:29:30.823889
2018-08-30T07:15:46
2018-08-30T07:15:46
65,164,734
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Created on 16-May-2018 @author: annervaz couldnt get better that n^3logn, large is not completing with that ''' def check_possibility(P,Q,pedal_gear_teeths,extra_gear_teeths,tire_gear_teeths): tire_gear_teeths.sort() for a_index in range(0,len(pedal_gear_teeths)): a = pedal_gear_teeths[a_index]...
UTF-8
Python
false
false
1,838
py
93
gWheels.py
60
0.504353
0.494015
0
52
34.346154
94
coderSkyChen/Action_Recognition_Zoo
6,674,379,199,770
d479e4cd8c16a941015941ff25c17c4ac555e975
2d7979c3d5931c61d0a728aa8395942da6fc7e72
/model_zoo/models/namignizer/data_utils.py
fcb0f257fb21ffcbdd8ce6306755feef6be1d78d
[ "MIT", "Apache-2.0" ]
permissive
https://github.com/coderSkyChen/Action_Recognition_Zoo
5b450a5a80eeb034fb4e619a6218c764137dda4c
92ec5ec3efeee852aec5c057798298cd3a8e58ae
refs/heads/master
2021-01-25T12:59:58.595288
2019-03-07T08:34:45
2019-03-07T08:34:45
123,521,178
246
41
MIT
false
2019-04-08T19:01:36
2018-03-02T02:46:27
2019-04-03T21:27:21
2019-03-07T08:35:31
45,517
115
18
1
Python
false
false
# Copyright 2016 Google Inc. 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 applicable law or a...
UTF-8
Python
false
false
4,239
py
233
data_utils.py
162
0.651333
0.643548
0
119
34.621849
83
s3nh/plate-detection
395,137,030,242
f3d36340e2a23c2d458879d6d1427dfe9a00b55d
601f8bae2846023fe8caee2d86f01417c4d888f4
/dataset/dataloader.py
0c77c96bba6c72c29d4372b881ef09acad315403
[]
no_license
https://github.com/s3nh/plate-detection
1f13f39839bac2a0296592809c6206e24156dff9
ac1b14663b9bc106c9f002b774140ab61b1bd01d
refs/heads/master
2020-07-25T20:23:17.394164
2019-09-21T11:27:28
2019-09-21T11:27:28
208,413,976
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import sys import re from PIL import Image import json def boxes_detect(image): pass class LicencePlateLoader(): def __init__(self, data, labels, ratio): self.data = data self.labels = labels self.ratio = ratio @staticmethod def load_image(path): ...
UTF-8
Python
false
false
457
py
9
dataloader.py
5
0.575492
0.575492
0
33
12.878788
45
shashankmittra/python_automation
14,542,759,303,946
61515672062a966be0701218c6356ccba95b214c
143ecc0d7269aff9fd63febc2dbd354d631ee934
/moving_files/main.py
93cdf6679ab2081c5d27b6e96b8d3a3008c80671
[]
no_license
https://github.com/shashankmittra/python_automation
18b4cbea69eb82c81ca39f0ef6663f1540db3472
909fcbc3f9f7460f0146eb5002b5967b73514fe6
refs/heads/master
2023-03-27T22:16:08.459512
2021-03-23T10:23:27
2021-03-23T10:23:27
350,668,146
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import shutil import datetime # to find if any new file has been created in the directory def findNewFile(): arr = os.listdir('.') numberOfFiles = len(arr) informationList = [] if numberOfFiles > 0: informationList.append(1) for i in arr: informationList.append(i) return informationList # to...
UTF-8
Python
false
false
2,164
py
1
main.py
1
0.707024
0.69963
0
88
23.602273
75
Yurie-Koga/Python
16,690,242,923,239
7c61fbe5507d29f7f94a0802a857ff05c22fc6b8
a6eee6335273f29f62048747125d89f04aa691aa
/IntroToAlgorithms-master/6_lists/0_lists_basics.py
ae819455eb7a8933dc6ec791f859b8a5829501bd
[]
no_license
https://github.com/Yurie-Koga/Python
b008e73d184a0c20558477b7b25eeae6253f9685
38e76735253c819c164effb4700f3be776fde1f7
refs/heads/main
2023-01-14T12:47:30.175012
2020-10-09T00:44:54
2020-10-09T00:44:54
300,479,340
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# List, Array # A sequence of items (elements) # 1. create a list squares = [1, 4, 9, 16, 25, 36, 49] print(squares) # 2. list operations squares += [64, 81] # add two elements at the end of the list print(squares) # 3. list methods animals = ["Tiger", "Beaver", "Eagle", "Jaguar", "Bull", "Condor", "Panda", "Koi"] ...
UTF-8
Python
false
false
1,778
py
48
0_lists_basics.py
48
0.634983
0.59955
0
61
28.147541
97