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
turalabs/deb
3,762,391,354,397
dc1bc965bad137c815c2003d58978e09c5863dde
d86d4c9edd522da76671bc5f799103839b762765
/deb/utils/data_models/flights.py
d4c69f575a997cae59569ed9be2ad71d04de6fee
[ "Apache-2.0" ]
permissive
https://github.com/turalabs/deb
51d3491f38e76957bee06b87ed1fb7bc2f885bd8
75f1e0d4dc49e60bbecd10a5c7e98eebbe4e5612
refs/heads/master
2023-04-07T09:08:57.607654
2021-04-15T03:55:54
2021-04-15T03:55:54
280,475,854
3
7
Apache-2.0
false
2021-04-15T03:55:55
2020-07-17T16:39:37
2021-01-21T23:23:38
2021-04-15T03:55:54
31,025
1
5
6
Python
false
false
""" Helper functions and datamodels for Chapter 2 flight records. """ from google.cloud import bigquery import pyarrow # historical flights schemas FLIGHTS_CSV_COLUMNS = ["day_of_week", "flight_date", "airline", "tailnumber", "flight_number", "src", "src_city", "src_state", "dest", "dest_city", "dest_...
UTF-8
Python
false
false
8,285
py
108
flights.py
79
0.638383
0.621485
0
92
89.043478
263
howardderekl/LakeCreekRanchPython
2,585,570,323,468
0d2724e35b43e2b264fffdf5eb2ad414e696690c
da1cdd8ec6c407aa113363df648db92bd63bc5ee
/django-env/Scripts/django-admin.py
620c8c54055d2be2d729c8b6086174eb480c0221
[]
no_license
https://github.com/howardderekl/LakeCreekRanchPython
9c9cbaa24885c01bc18cc288f84511cc25eaffee
525ff1b92cecae89540417161bf83035394b5ac5
refs/heads/master
2021-09-05T11:03:59.064799
2018-01-26T18:48:40
2018-01-26T18:48:40
118,970,919
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!c:\users\dhoward\source\repos\lakecreekranchpython\django-env\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
UTF-8
Python
false
false
190
py
12
django-admin.py
10
0.742105
0.742105
0
5
36.8
82
tbmihailov/OBQA
14,482,629,760,776
b591b44a489969442cabb1318e405a1bfbfdc3c6
1036bc1b6247db0a57d1dbd854e5b19b982ed871
/seq2seq/Seq2Seq_Restricted/Seq2SeqControl.py
d474d8086a0677dc7ab494a4beb1693b7cf625b5
[ "Apache-2.0" ]
permissive
https://github.com/tbmihailov/OBQA
e6079b1e29339364ec8a8e95cf0ebe7c2c9c847f
653c5c64ae7eb164bde0b381813afe5f664dcf67
refs/heads/master
2020-07-01T06:31:19.032385
2019-08-12T17:41:56
2019-08-12T17:41:56
201,075,108
1
0
Apache-2.0
true
2019-08-07T15:14:23
2019-08-07T15:14:23
2019-08-01T21:33:41
2019-08-01T21:33:39
9,478
0
0
0
null
false
false
import os import csv import torch import torch.optim as optim import itertools import sys sys.path.append('../') import dataPreperation.Fact2_Only_F1_H_exact_tokens as data #from dataPreperation.Fact2_Only_F1_H_exact_tokens import dataPreparation from allennlp.data.dataset_readers.seq2seq import Seq2SeqDatasetReader #...
UTF-8
Python
false
false
6,732
py
54
Seq2SeqControl.py
30
0.673648
0.657605
0
171
38.368421
137
giyoon21c/dailyPy
19,327,352,865,844
586146b68761224a91ddf3d19388bd0ec1f63d8a
2f2b1c594d8e10dfd4f8f6c071167274996b3167
/multiprocessing/job.py
6e5b0c351b0dc6095a8dea36834911ff1cda303b
[]
no_license
https://github.com/giyoon21c/dailyPy
18fd3fceb3c5c8097458802a6e0f8f51890aa5bf
d646e8afb01d844c200f7c96c52d5ee7fac2e538
refs/heads/master
2018-12-21T12:08:23.703102
2018-12-14T23:54:10
2018-12-14T23:54:10
131,449,675
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import multiprocessing def worker(i): # at least i remembered it!!! print 'working...{0}'.format(i) return if __name__ == "__main__": jobs = [] for i in xrange(10): p = multiprocessing.Process(target=worker, args=(i,)) jobs.append(p) p.start()
UTF-8
Python
false
false
270
py
45
job.py
44
0.6
0.588889
0
14
18.214286
57
vkjangid/python
5,652,176,969,946
f3ac91d284427eb1ae97d5239a1e4cc2cc09bd5a
2476d2ee4e336ae3713a6fa0f498e6fa89e06738
/duplicate characters present in any string are converted into $.py
dff986a67c4eb7224f54d8a2d9d54d5475fc8c47
[]
no_license
https://github.com/vkjangid/python
ccd250c42b0ce0c1b5fb68ef6bc98ff228a403a1
2e4374bf00a41037036eefe1d2b64136f0dc5106
refs/heads/master
2020-03-18T22:35:07.748696
2019-11-11T10:57:29
2019-11-11T10:57:29
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
a="xyzaaxyf" a=list(a) print(a) b=1 for i in range(len(a)): for j in range(b,len(a)): if a[i]==a[j]: a[j]='$' b+=1 print("".join(a))
UTF-8
Python
false
false
177
py
72
duplicate characters present in any string are converted into $.py
72
0.418079
0.40678
0
10
15.1
29
coolbung/eNREGA
2,061,584,351,449
65b88aa37aa9cf0fba74986db18500fb9371fbbe
649ea375c28d5819e2bdc731d3c0135f00856009
/code/scraper/nrega/district_scrapper.py
2f157b50a0518ce60f69bb39a0ef9907a91d7092
[]
no_license
https://github.com/coolbung/eNREGA
45f86d2cc1e0c696de88978735cc4fa595ca3f2c
71d6c381a332c3750d13675b732bc6c74dee3f28
refs/heads/master
2021-01-01T16:05:46.489897
2011-10-10T07:02:39
2011-10-10T07:02:39
2,008,393
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
# importing the BeautifulSoup libraries from BeautifulSoup import BeautifulSoup # import regular expressions library and url library import re import urllib2 #RB:01 begin #import MySQLDb for database operations import MySQLdb #RB:01 end #global values ipAddress="164.100.112.66" #database connection stri...
UTF-8
Python
false
false
4,849
py
28
district_scrapper.py
25
0.673981
0.654523
0
131
34.78626
133
jgibbons-cp/sva_scan_examples
12,378,095,789,989
84be4ac2cdd0b0cfb7757adecfa4c19a2dee44fa
0b2cf46f31b277d004ba354c2fdb053eca59a0ff
/app/runner.py
8f8f6bb2e89c20564299acef2bb6c0eeba023e83
[ "BSD-2-Clause" ]
permissive
https://github.com/jgibbons-cp/sva_scan_examples
37d8ba5889de15d32e44f9a33819c7d8025f0453
1d012e08bd9fa3a1082b676318faf80346258aea
refs/heads/master
2021-01-20T02:31:14.760963
2017-12-12T01:24:51
2017-12-12T01:24:51
89,421,469
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sva_scan_examples from halo_general import HaloGeneral # Build config config = sva_scan_examples.ConfigHelper() # get a halo object for api methods wrapper halo = HaloGeneral(config) sva_scan_examples.SVA_ScanExamples(halo)
UTF-8
Python
false
false
234
py
15
runner.py
8
0.794872
0.794872
0
10
22.4
43
xue-jiaxin/paroxython
3,667,902,084,460
326748ceda6314dc1d127bdcf0a2088f0cc3da54
d7cf547aa93a199e9a58396e1efcb7725c8eac42
/helpers/print_taxon_patterns.py
4d3c671a53f63c9f0e9ff2be4ac1e2ae02511bd4
[ "MIT" ]
permissive
https://github.com/xue-jiaxin/paroxython
ca4156736c2aa0798acbbc92efcc2d926a99c801
777ad985631dd6003c374e14b008ac93dee33567
refs/heads/master
2022-07-12T00:38:45.870848
2020-05-18T18:40:46
2020-05-18T18:40:46
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Type hierarchy (https://python.readthedocs.io/en/stable/reference/datamodel.html) # from functools import reduce type_hierarchy = """ number/integral/int number/integral/bool number/float number/complex sequence/immutable/string/str sequence/immutable/string/bytes sequence/immutable/tuple sequence/mutable/list sequ...
UTF-8
Python
false
false
1,555
py
61
print_taxon_patterns.py
39
0.727974
0.721543
0
43
35.162791
98
sunbo5439/MyProject
4,578,435,145,933
3cfb32585104e9db838d283854d88bb77e3894ee
c75348a6fd2c5159015dd6f59081806286a0fe9e
/Speech_Recgnition/data_preprocess.py
0e7f5c59e1e04ea4b82116d867949a65c5fcb307
[]
no_license
https://github.com/sunbo5439/MyProject
cb27c083b506751c5148c63b46a63aa85fa312b8
9c9adb80a66d95108effd41d9898eed2626e0f36
refs/heads/master
2021-04-03T01:15:33.202553
2018-04-19T14:14:39
2018-04-19T14:14:39
124,353,863
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 import tensorflow as tf import numpy as np import os from collections import Counter import librosa import codecs import pickle import json import sys import Levenshtein reload(sys) sys.setdefaultencoding('utf8') import neural_model def generation_vocab(label_vector_path, vocab_path): labels = j...
UTF-8
Python
false
false
3,884
py
21
data_preprocess.py
16
0.623841
0.6138
0
100
37.84
116
zsahi/Web-App-Vulnerability-Scanner
11,828,339,940,222
ffcb875747014d6b747adebf7c12f93feef4f929
7b1937fea015fd6b0040d0cb07330ee53dea7e05
/Scanner.py
7d81b7a790d36ba0b67c243a4838bc5814a1c472
[]
no_license
https://github.com/zsahi/Web-App-Vulnerability-Scanner
73418245f4a666be3a90d7ff7ee0232bac1e0eb5
a1ef55217aa4c3cf66ce2ad5fccc1e66e8c22b5e
refs/heads/master
2020-04-16T18:29:42.080192
2019-02-14T15:21:03
2019-02-14T15:21:03
165,822,459
3
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import urllib3 import signal import sys from Crawler import Crawler from core.CommonFunctions import * from SQLi import * import multiprocessing import multiprocessing.pool import AuthBypass import WeakPasswords def runScan(target): crawler = Crawler() findings = {} print("Scanning: "...
UTF-8
Python
false
false
2,759
py
16
Scanner.py
9
0.595868
0.591156
0
108
23.509259
93
baby-age/testing-bagels
11,484,742,597,290
5d7e492a963353ba5fe025a0b6e9fccd27dc87a0
9e8f7c31272eabaafabbfb6e45c6320ebb68b360
/testing_bagels/feature_calculator.py
98ff0d4352d7184f2dbc4e7b1d8b651ca8a3698b
[]
no_license
https://github.com/baby-age/testing-bagels
c0c2fd652be91c430726513fa4ce2644484a47bf
c781478dcc968c5777bc7421b4ad7189a57109e4
refs/heads/master
2021-05-13T17:02:14.360828
2018-04-20T15:24:36
2018-04-20T15:24:36
116,808,796
0
1
null
false
2018-01-13T17:44:52
2018-01-09T11:41:38
2018-01-09T11:52:36
2018-01-13T17:44:52
16
0
1
0
Python
false
null
import bct import testing_bagels.matrix_preprocessor as mp ''' Calculate modularity and efficiency coefficients with Brain Connectivity Toolbox. Input should be data frame, output is list. Zip if used together for prediction, like this: X = [list(x) for x in zip(mod, eff)] ''' def modularity_and_efficiency(data): mod...
UTF-8
Python
false
false
977
py
24
feature_calculator.py
21
0.714432
0.713408
0
34
27.735294
84
bmoore-10/NewGrounds-Art-Scraper-Discord-bot
14,199,161,908,524
53d3e74b4808ae2f80bcabe8976d4863d2df25f0
98b669821fe6c83929e73055844848fe081f79ef
/NG_Scraper/NG_Scraper.py
ab986984da88e16d54641d7ae4352a3b541183b4
[]
no_license
https://github.com/bmoore-10/NewGrounds-Art-Scraper-Discord-bot
d3e9346670fff67cc24dc78f5770a00e065e0dd5
f7c9674fb5f3def41143718f3a4a38c1c56e178a
refs/heads/master
2020-04-26T20:48:16.717591
2019-03-06T07:15:35
2019-03-06T07:15:35
173,822,108
3
1
null
false
2019-03-06T07:15:36
2019-03-04T21:11:46
2019-03-04T23:04:34
2019-03-06T07:15:35
10
0
0
0
Python
false
null
import json from bs4 import BeautifulSoup import datetime import time import requests import logging import re from slimit import ast from slimit.parser import Parser from slimit.visitors import nodevisitor logging.basicConfig(filename='ng_scraper.log', filemode='w', level=logging.INFO) # Load in our con...
UTF-8
Python
false
false
9,824
py
6
NG_Scraper.py
2
0.6023
0.598127
0
245
38.097959
138
HeinzHinek/AxiStore
10,118,942,969,563
0e8d5a9335d52c5748ea0065cbf4772c830db8b8
3e6d84f4b0e4460326565353de801cfe8c2c493f
/db_repository/versions/067_migration.py
40f304b4bc7eb24476941317d55247a047a9bb35
[]
no_license
https://github.com/HeinzHinek/AxiStore
081d18f8f2beabc70ab887b2496a9d4029942082
9acdfe684761929ee660a7b079be96f8a449d27c
refs/heads/master
2021-01-23T13:22:38.911745
2017-06-10T08:27:49
2017-06-10T08:27:49
24,177,684
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sqlalchemy import * from migrate import * from migrate.changeset import schema pre_meta = MetaData() post_meta = MetaData() contact = Table('contact', post_meta, Column('id', Integer, primary_key=True, nullable=False), Column('company_name', String(length=100)), Column('post_code', Integer), Colu...
UTF-8
Python
false
false
1,224
py
120
067_migration.py
33
0.688725
0.669118
0
36
33
68
sultankhodja/Stock
19,284,403,190,644
3f8af4bbfc79b0f0d8df7d52376f5f4fc9ddf357
d9a17af8a25a8de7ea7696d90f768aec83df5d3d
/stock_assignment.py
e0e04920b92df62a1dd861f816a992528d227add
[]
no_license
https://github.com/sultankhodja/Stock
16d0c3353736871065db65d611922fdeb495692f
6f6a7ff3665f1c7c0fb50821a0f6af5aff156ec5
refs/heads/master
2021-05-17T01:50:55.891397
2020-03-27T15:06:51
2020-03-27T15:06:51
250,564,308
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from lichcode import LinkedListTail # Queue just list popping from head pushing from the end! class Queue: def __init__(self): self.myList = [] # Represent the data through specific memory def __repr__(self): return repr(self.myList) # Pushing to the list def push(self, data): se...
UTF-8
Python
false
false
3,828
py
1
stock_assignment.py
1
0.586468
0.580199
0
68
54.764706
153
Sauci/pylink
15,633,680,973,344
147dec7270cdbda987c9bd794dd442477e453cd2
8871842ce5334fb04d38b188afb060d219f975bd
/tests/unit/test_util.py
c60d6da0f93fcf6e82dbcded89c510fd64f8de05
[ "Apache-2.0" ]
permissive
https://github.com/Sauci/pylink
c453263659b889cbd33d27865e32a1e800d13e02
bdd68ea8aceebc01b7dd980c8b9a11ad7e7a7c6b
refs/heads/master
2021-11-05T03:01:03.224310
2021-10-26T06:11:12
2021-10-26T06:11:12
140,023,392
0
0
Apache-2.0
true
2018-07-06T19:38:06
2018-07-06T19:38:05
2018-07-05T18:02:17
2018-05-30T23:02:14
211
0
0
0
null
false
null
# Copyright 2017 Square, 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 writing,...
UTF-8
Python
false
false
5,830
py
78
test_util.py
27
0.59434
0.58199
0
208
27.028846
78
tetrismegistus/minutia
2,542,620,658,169
25ccd0ad8bd28b4f47715d0c94940b06cbd6bfc8
a47c11905907cb76d5c32382383d9e2b00f24599
/exercises/guided_tutorials/advent17/16_1.py
8dfe111ebf006677a170edf20a04196d937869aa
[]
no_license
https://github.com/tetrismegistus/minutia
9ea7db3c7e9f164c83a8cc3f082000fd894fb55b
51d0d41740701ef117598ef3e00c99e208ee5ca8
refs/heads/master
2022-12-06T15:16:59.968911
2020-07-22T21:42:47
2020-07-22T21:42:47
160,570,462
12
1
null
false
2022-11-22T05:16:44
2018-12-05T19:51:17
2020-07-22T21:43:01
2022-11-22T05:16:44
126,546
10
0
2
Python
false
false
def load_steps(filename): with open(filename) as f: file = f.read().strip('\n').split(',') steps = [] for instruction in file: step = [instruction[0]] + instruction[1:].split('/') steps.append(step) return steps def spin(string, number): index = -(number % ...
UTF-8
Python
false
false
1,284
py
149
16_1.py
109
0.562305
0.536604
0
50
23.52
63
maksymx/ml_dl_ds_cv_snippets
5,437,428,629,852
a214bb2baccd71bcd74a07b8cb4c082e44f30a0e
4975c9c9e65f1b92b49f5c9344577440eab81821
/other/basic.py
a7e9b4fe33515a5fb9b34a6a8e3b95c108235382
[ "MIT" ]
permissive
https://github.com/maksymx/ml_dl_ds_cv_snippets
528e2b5f5c21a0371d0317037e6fa23525bde9c7
ebb4ec5e97f52e55e97f3c8c71cf375da7a30dc5
refs/heads/master
2021-09-17T11:40:29.517605
2018-07-01T22:26:16
2018-07-01T22:26:16
114,045,526
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import scipy as sp x = sp.random.random() print("Random number: ", x) x_square_root = sp.sqrt(x) print("Square root: ", x_square_root) matrix = sp.random.random(3) print('Random matrix: ', matrix) matrix = sp.append(matrix, sp.random.random(2)) print('New matrix: ', matrix)
UTF-8
Python
false
false
279
py
9
basic.py
8
0.684588
0.677419
0
13
20.461538
47
jennndol/ayongampus
11,484,742,596,501
e720475ec5a74dd2533d563b086f218f4f4793c8
dbab648b60358fce5c92f758019500a5bce3f842
/ayongampus/quiz/essay/views.py
612052fb142edf3d6652b4a00807643f9451ec32
[]
no_license
https://github.com/jennndol/ayongampus
6741ce1a50e5c2f183bccf96f6e5d549645a261d
76b5841547f3f40e10393e0e0fb7de73ca46b8df
refs/heads/master
2021-01-21T21:06:35.341896
2017-07-27T12:10:43
2017-07-27T12:10:43
64,501,515
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from ayongampus.quiz.essay.models import Essay_Question from ayongampus.subject.models import Chapter from ayongampus.subject.views import get_user from django.core.urlresolvers import reverse_lazy from django.db import transaction from django.views.generic import CreateView from django.views.generic import UpdateView ...
UTF-8
Python
false
false
1,834
py
62
views.py
26
0.695202
0.695202
0
49
36.428571
72
MaxWroe/EnviromentWasteDetection
6,880,537,636,999
0f8fa8fdf8fd1c238df49df2b6f7e226978a9dcf
51232ac21a5915c9981ddd0c44596da9f55a6af7
/annotations.py
626effed6dc168c3c99500b405bfba9d67c58d2e
[]
no_license
https://github.com/MaxWroe/EnviromentWasteDetection
44701ce7b97a3eb411c910ff1338d262fd59441f
91cf9526b0a9bfbbdfd1e97f1e8ff48053aa1eec
refs/heads/master
2023-05-07T09:37:47.108060
2021-06-04T05:55:59
2021-06-04T05:55:59
372,350,851
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Provides new annotations for TACO dataset images, alters classifications from the 60 original classes to be inline with COMP3330 requirements (Plastic Cups, Plastic Bags, Other Plastic Waste, No Plastic Waste) This script has been modified from : https://github.com/wimlds-trojmiasto/detect-waste/blob/7852bce50405b...
UTF-8
Python
false
false
9,937
py
7
annotations.py
4
0.625943
0.608332
0
248
39.068548
132
KKshitiz/J.A.R.V.I.S
5,746,666,268,073
874d82b76316efd2dd4a313aecbb9fee9f67c5db
76a56f6974a682ddbcd69b84f0827c4084fbaa41
/software_AI/natural-language-processing/speech2text.py
46c091e93fe19086dbd7318ce096d02d3b48531b
[ "MIT" ]
permissive
https://github.com/KKshitiz/J.A.R.V.I.S
91610800f1ab5aea3e3c25f02b0c49fb66ed8de3
620cffec86991c948839a5f9ceaceb59e0a69e78
refs/heads/master
2022-11-30T02:57:04.528347
2020-08-12T14:39:02
2020-08-12T14:39:02
251,086,624
18
18
null
null
null
null
null
null
null
null
null
null
null
null
null
import speech_recognition as sr from playsounds import * #this module converts speech2text def startStt(lang='en-in'): r=sr.Recognizer() print("Listening") # startAudio() startPlayAudio('jarvislistening.wav') with sr.Microphone() as source: print("Say something") # r.pause_thresho...
UTF-8
Python
false
false
964
py
34
speech2text.py
25
0.651452
0.644191
0
33
28.242424
131
MUDDASICK/CodeSamples
15,779,709,875,200
cdaea3b266e9bf5ae1b4778e4158d0cb457912a4
4fc357805e30cd634c753073f8b9e4750ba6eac7
/Juniper-Automation/Nornir4-filtering/runbook2.py
72c98a0009eec9abf8a4d166130043319e39767e
[]
no_license
https://github.com/MUDDASICK/CodeSamples
e970634e5b50e93e39261d9af335652da37f60c4
1af073e3ad61cf9efe0e26f7097a8414d4bf4739
refs/heads/main
2023-08-17T07:34:33.203566
2023-06-17T15:42:45
2023-06-17T15:42:45
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import logging from nornir import InitNornir from nornir_netmiko.tasks import netmiko_send_config from nornir_utils.plugins.functions import print_result logger = logging.getLogger(__name__) nr = InitNornir(config_file="config.yaml") def push_snmp(task, filename): if not os.path.isfile(filename): ...
UTF-8
Python
false
false
569
py
531
runbook2.py
266
0.759227
0.759227
0
20
27.45
71
jmchilton/galaxy-central
18,262,200,962,257
ea24503e17bc91b98f5d60c636839c8abd1bfef6
1f579b0ee9ed450fd84da56b9f3e8328ef372a81
/tools/encode/random_intervals_no_bits.py
875831cc796cd35e708227b99fdcbe8097a86691
[ "MIT" ]
permissive
https://github.com/jmchilton/galaxy-central
42bfc91532bd6444fbe4dfc239a78b24437e4518
31e2fd3a32b06ddfba06ae5b044efdce1d93f08c
refs/heads/master
2021-01-01T05:37:10.582680
2006-11-15T16:28:21
2006-11-15T16:28:21
6,923,705
4
4
null
false
2015-02-12T19:30:55
2012-11-29T15:40:37
2015-02-12T19:30:17
2015-02-12T19:30:17
321,333
10
10
0
Python
null
null
#!/usr/bin/env python2.4 #%prog bounding_region_file mask_intervals_file intervals_to_mimic_file out_file mask_chr mask_start mask_end interval_chr interval_start interval_end interval_strand use_mask allow_strand_overlaps import sys, random max_iters = 100000 #Try to add a random region def add_random_region(...
UTF-8
Python
false
false
6,767
py
379
random_intervals_no_bits.py
154
0.492242
0.483523
0
180
35.594444
197
ErykMalinowski/JC
10,368,051,060,812
0e23614340b23e9b619f651d6b1317d595e26816
77144c478973a82017135454a79cbcdd7644c5e9
/website/myapp/migrations/0002_auto_20200312_2119.py
07a0f8d78865ec856ca5cc8f8c6f548d80a001a1
[]
no_license
https://github.com/ErykMalinowski/JC
b35ee52e0b4e7de2aab3de602c8f801cbdeef14b
bdd7149f0f7bd408e50ab7d2e3623a5b546298c7
refs/heads/master
2022-04-28T10:35:56.919632
2020-07-20T12:01:17
2020-07-20T12:01:17
236,815,872
0
0
null
false
2022-04-22T23:10:23
2020-01-28T19:02:50
2020-07-20T12:01:27
2022-04-22T23:10:21
44,116
0
0
2
HTML
false
false
# Generated by Django 2.2.10 on 2020-03-12 21:19 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('myapp', '0001_initial'), ] operations = [ migrations.CreateModel( name='Player', f...
UTF-8
Python
false
false
4,548
py
30
0002_auto_20200312_2119.py
10
0.57124
0.565963
0
93
47.903226
137
wogus3602/study
15,461,882,295,997
246821491965de6f58761f967ee7a65427d53bb1
2e2eb7e00899bd75ce9a6f6bf81267dde31e0e69
/윤석주/day9/알파벳거리.py
ff99d0a10ebc9129d8ae4d4c6e03979d1535196a
[]
no_license
https://github.com/wogus3602/study
3f8e47bbcf7a45aa1ba0781f50140a6f9be89764
cba81bec9a7044567627d197ae9c8620d4fb8729
refs/heads/master
2022-11-18T23:32:50.632074
2020-07-10T04:02:42
2020-07-10T04:02:42
273,912,878
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
n = int(input()) for case in range(n): word1, word2 = input().split(' ') print("Distances:",end="") for i in range(len(word1)): diff = ord(word2[i]) - ord(word1[i]) if diff < 0: diff += 26 print("",diff,end="") print()
UTF-8
Python
false
false
291
py
159
알파벳거리.py
159
0.453608
0.426117
0
15
18.466667
44
VN-Pikachu/Machine-Learning-from-scratch
8,564,164,820,574
4c3455e80ce43d01d4ee96970a1e6e8fe24bdf03
db6837c33e32d396fdd60279f319527776eddeb5
/LDA/LDA.py
843a12124bf8d8848364d8165953a92361ef10d4
[]
no_license
https://github.com/VN-Pikachu/Machine-Learning-from-scratch
e887817e31024a5c6e9018bb845632abd1992db4
a1f6e2993d3d44bec1cd9b1300e598621638f56e
refs/heads/main
2023-03-20T11:34:26.868615
2021-03-03T10:07:18
2021-03-03T10:07:18
344,062,544
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import matplotlib.pyplot as plt class LDA: def __init__(self, n_components = None): self.n_components_ = n_components def fit(self, X, y): #n samples, m features n, m = X.shape #Between-Class Variance Matrix S_B = np.zeros((m,m)) #With...
UTF-8
Python
false
false
1,725
py
118
LDA.py
85
0.545507
0.544348
0
44
37.204545
91
pkgpl/gpl
10,024,453,679,448
6db842b9c26f3539f9f29d7326f895ce0955884e
5f02dc4398423561bb8560ab35325d3dedfc36c7
/script/abspath.py
e89605fde0292c93a0a82daa8bc7934f589c7521
[]
no_license
https://github.com/pkgpl/gpl
0f081c8671cb450c02415b5a39350d085a4cec57
a7d3861120a6af9269c82e34a3b96c5dfb61e70a
refs/heads/master
2021-07-14T14:20:16.287372
2021-06-24T01:53:01
2021-06-24T01:53:01
22,287,752
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # # Program : print abs path for scp # Date : import sys,commands,os.path if len(sys.argv) < 2: print 'input file names' sys.exit(1) cmd=commands.getstatusoutput user=cmd('echo $USER')[1] host=cmd('echo $HOSTNAME')[1] if host=='master02': host='gplhpc' if host=='laplace001': host='laplace' if h...
UTF-8
Python
false
false
525
py
99
abspath.py
42
0.674286
0.638095
0
24
20.875
41
soarlab/AAQNN
13,245,679,155,673
ca47ea3014a1b0eaad2c02277b6f785e92b98bc7
35844c887d6da13d5b72e297183991aa0cea1b52
/experiments/__init__.py
8d1eb5964c8358e795e794f286f5d745adcfd230
[]
no_license
https://github.com/soarlab/AAQNN
5c5f87cf594ddb6f6c800907fa11d452bc88b4dc
ea6627ad9f0d55196d0dde90d7dbe5472be99d66
refs/heads/master
2022-01-21T08:11:44.616642
2019-06-24T08:42:45
2019-06-24T08:42:45
178,188,010
0
0
null
false
2022-01-13T01:08:45
2019-03-28T11:17:56
2019-06-24T08:43:03
2022-01-13T01:08:42
178,500
0
0
8
Python
false
false
''' In this directory codes several experiments are implemented. Every experiment has description of it in the beginning of the file. '''
UTF-8
Python
false
false
137
py
34
__init__.py
31
0.788321
0.788321
0
4
33.5
68
Yossarian92/Project_UCSD
3,384,434,266,718
49f46a73bdd34b9fc6ccf13390713631b93b1b6b
e2e939d6226fda52f7768c2b764979e1e194efc7
/mux.py
77bd2537635e4d120e1ca2b0319f80a91ed4c59b
[]
no_license
https://github.com/Yossarian92/Project_UCSD
96f279251650337eeb37f8ad5521b096ef4569b2
5188190f5fa1946f8110540aab5dd0ca957a76ec
refs/heads/master
2022-07-17T08:28:53.429061
2019-09-02T00:03:22
2019-09-02T00:03:22
198,270,462
0
1
null
false
2020-05-13T13:19:19
2019-07-22T17:19:59
2019-10-23T14:21:20
2019-09-02T00:03:22
21,193
0
1
1
Python
false
false
import time def map_select_bit_to_gpio_pin(bit): if bit == 0: return 24 if bit == 1: return 25 if bit == 2: return 26 if bit == 3: return 27 def s_mask(bit): if bit == 0: return 1 if bit == 1: return 2 if bit == 2: return 4 if bit == 3: return 8 def s_ch(bit): if...
UTF-8
Python
false
false
3,197
py
10
mux.py
9
0.545824
0.453863
0
141
20.687943
127
philna/Python-Space-Projects
5,549,097,769,212
75d5c84cae9ccd57007f9453aac601ed9aeb4484
44efcd773173c1a341974eb9208f740d92ed1635
/Download asterank data.py
6e2a0cbcdd65e5b7ce4ff83a816fa55cd02a9798
[]
no_license
https://github.com/philna/Python-Space-Projects
7d76efa7daa2da967dfb51d712ed50bfe997bc41
af95f8586a8691a9c371805d87fc289dad7f9abc
refs/heads/master
2021-01-23T19:17:28.211782
2017-09-08T05:37:19
2017-09-08T05:37:19
102,817,142
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""""" This script connects to the Asterank API which provides access to the NASA Small Body Database along with some modifications to estimate monetary value and other financial/feasiblity metrics August 11, 2017 """ import requests import json #Request results from Asterank API - query for all results with limit...
UTF-8
Python
false
false
1,883
py
2
Download asterank data.py
1
0.603293
0.592671
0
89
20.101124
123
yusuk6185/algorithm_practice
4,294,967,309,116
c1d552d78e0cf75547236145d1087de480d01e28
5eee9e8edb71dc16e964ab158ce252e798cd513b
/Challenge/예산.py
286605567e5529d35ed13939f2373498596d145e
[]
no_license
https://github.com/yusuk6185/algorithm_practice
b209328f3d2ca633046f3530267083e20ce5108d
36ddb7e319cb4714bd53a95786de612a80d0ccb5
refs/heads/master
2023-08-17T18:44:40.674355
2021-10-12T12:27:06
2021-10-12T12:27:06
393,629,077
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# https://programmers.co.kr/learn/courses/30/lessons/12982 def solution(d, budget): d.sort() answer = [] for i in range(len(d)): answer.append(d[i]) if sum(answer) > budget: answer.pop() break elif sum(answer) == budget: break return len(...
UTF-8
Python
false
false
487
py
104
예산.py
103
0.533881
0.507187
0
26
17.730769
58
diasurgical/scalpel
8,186,207,690,051
392e35b2c7edbac023fad30915f87b3c415a4cb1
dfe1f796a54143e5eb8661f3328ad29dbfa072d6
/psx/_dump_/34/_dump_ida_/overlay_b/set_vars.py
ea143f7c9b6fabbb98c90e2c0cc672f814dac9ac
[ "Unlicense" ]
permissive
https://github.com/diasurgical/scalpel
0f73ad9be0750ce08eb747edc27aeff7931800cd
8c631dff3236a70e6952b1f564d0dca8d2f4730f
refs/heads/master
2021-06-10T18:07:03.533074
2020-04-16T04:08:35
2020-04-16T04:08:35
138,939,330
15
7
Unlicense
false
2019-08-27T08:45:36
2018-06-27T22:30:04
2019-08-26T13:07:27
2019-08-27T06:45:36
11,265
12
8
2
C
false
false
del_items(0x801392A8) SetType(0x801392A8, "struct THEME_LOC themeLoc[50]") del_items(0x801399F0) SetType(0x801399F0, "int OldBlock[4]") del_items(0x80139A00) SetType(0x80139A00, "unsigned char L5dungeon[80][80]") del_items(0x80139690) SetType(0x80139690, "struct ShadowStruct SPATS[37]") del_items(0x80139794) SetType(0x...
UTF-8
Python
false
false
10,665
py
1,891
set_vars.py
1,504
0.787998
0.511861
0
300
34.55
55
kaleyra/kaleyra-python
3,925,600,134,132
115d900ecc8d61ef42ee2f766fc95d0b38fd9fbf
8d174b71de3a33dcb7d51448601bd61688407756
/example/txtly/txtly-log.py
0b45569d7382c0e6ff87539fca88fa1b937fddf7
[ "MIT" ]
permissive
https://github.com/kaleyra/kaleyra-python
7bdda17b891091cdbcaeaa27ae345f2f87c92cd3
782333149e7f8673f383a5743f4ed06efb867d36
refs/heads/master
2023-08-14T10:21:12.738547
2019-08-05T17:30:08
2019-08-05T17:30:08
196,204,276
2
7
MIT
false
2023-07-25T16:40:30
2019-07-10T12:48:18
2021-09-21T19:28:03
2023-07-25T16:34:26
224
3
4
4
Python
false
false
#!/usr/bin/env python from api.txtly.txtly_request import TxtlyRequest __author__ = "Likhit Jain and Yashita P Jain" __copyright__ = "Copyright 2019, Kaleyra" __license__ = "MIT" __version__ = "1.0" __email__ = "support@kaleyra.com" __status__ = "Production" # The user will be able to pull out event logs for particu...
UTF-8
Python
false
false
937
py
44
txtly-log.py
37
0.729989
0.709712
0
32
28.28125
72
lowysole/bot_carnaval
15,006,615,756,409
91acf4002a249b3f4f0ef4c8ebc43243cb6f067d
c280fd1b21d7309eb4642a1282cdb84fdc310ed7
/run.py
3fbfced99469e6821a372b7f16e329bafbbfa07a
[]
no_license
https://github.com/lowysole/bot_carnaval
63670990a6f0a7b78ce116162b875edcb7874c5c
566a0dd8d72c2c1f42fa483e28f0abaed2fe41c5
refs/heads/master
2020-12-14T11:05:44.286685
2020-02-10T20:36:45
2020-02-10T20:36:45
234,722,083
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 """ First, a few callback functions are defined. Then, those functions are passed to the Dispatcher and registered at their respective places. Then, the bot is started and runs until we press Ctrl-C on the command line. Usage: Example of a bot-user conversation using ConversationHandler. Send /start to i...
UTF-8
Python
false
false
13,554
py
10
run.py
8
0.586215
0.580674
0
346
38.121387
80
zamerman/Udacity-AI-Programming
12,008,728,589,092
5b8040c69bc4163979e7adacb243783d5efc637d
9d7e4608c86f3afba2b2002fb740f8126554a502
/Image Classifier Project/get_input_args_T.py
020d56d6e87cac2600639a847240906afa9b016b
[ "MIT" ]
permissive
https://github.com/zamerman/Udacity-AI-Programming
75f9c76a81f0ddb11de9d0680c7491baf7c52f71
6537f273fb00531d448330c1c85886d86e1161d2
refs/heads/master
2020-05-16T22:56:37.815592
2019-04-25T14:18:40
2019-04-25T14:18:40
183,350,504
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # PROGRAMMER: Zachary Amerman # DATE CREATED: April 23, 2019 # REVISED DATE: # PURPOSE: Creates a function that retrieves command line inputs from the user. # Command Line Arguments: # 1. Image Directory as data_dir # 2. Save Directory as --save_dir with default value 'checkpoint...
UTF-8
Python
false
false
2,380
py
12
get_input_args_T.py
11
0.684874
0.668908
0
42
55.690476
186
camsterguy/locksmith
4,415,226,410,339
b02f66673da67e433cc5de32fa41c96e87048a40
fcc5bbb8ae4e83b50e7d0bc260b39dab45da1bae
/main.py
dfb58872bd7f62faac2593fb74c1ede3a4f3b99f
[]
no_license
https://github.com/camsterguy/locksmith
c8750b5b03ea407687fd7c7f7e62e450d30eb915
6119e391a50c6da41cf255342725b886e79b3d01
refs/heads/main
2023-03-19T14:14:20.318431
2021-03-08T14:13:10
2021-03-08T14:13:10
339,189,521
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import criticalFunctions as crit import statFunctions as stat from datetime import date import statistics today = date.today() month = str((today.strftime("%m"))).lower() year = (today.strftime("%Y")) day = (today.strftime("%d")) scheduleURL = "https://www.basketball-reference.com/leagues/NBA_"+year+"_games-"+month+...
UTF-8
Python
false
false
958
py
6
main.py
5
0.735908
0.731733
0
38
24.052632
233
bigheart7697/SE-backend
11,982,958,784,138
ddbd7c7b7a5c561531a51bc66187e40873e2e472
0bb0a899272a39a68eae0682cd8ff3d815cbf7b5
/apps/accounts/serializers.py
dd9786bb4f60dbecc17ac87d904789915bde6343
[]
no_license
https://github.com/bigheart7697/SE-backend
c6df8dfa105f34e7efe47d2bc36e4325276a7094
107fedef1df9dd7ab6f0c59515467f44d73886b1
refs/heads/master
2020-12-23T21:18:00.092467
2020-02-04T00:04:15
2020-02-04T00:04:15
237,277,022
0
0
null
false
2021-06-04T22:24:54
2020-01-30T18:24:09
2020-02-04T00:04:31
2021-06-04T22:24:51
60
0
0
3
Python
false
false
from drf_writable_nested import WritableNestedModelSerializer from rest_framework import serializers from rest_framework_jwt.settings import api_settings from .models import CustomUser, Student, Advisor, Field class UserSerializer(serializers.ModelSerializer): @staticmethod def get_token(obj): jwt_p...
UTF-8
Python
false
false
5,188
py
13
serializers.py
11
0.602737
0.601773
0
152
33.125
100
crud3306/python
10,565,619,581,678
d9a5ed3295ea53dd496259fd40e8adbf0f7aaf44
5998f2643d797ae7469d098f1adbd95d6e5e77d8
/99-Training/yield/yield02.py
39e894c7e05e6a6286e665f5a4e7a9923bde31b2
[]
no_license
https://github.com/crud3306/python
c8bfca2d0c80385a603fec27558d36ea686707d1
df18d0d80fe20060e37d98f525393ac6b9a0d39f
refs/heads/master
2023-01-13T17:52:40.460875
2020-11-19T11:46:37
2020-11-19T11:46:37
144,098,797
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- def fun(): for i in range(20): x=yield i print('good',x) if __name__ == '__main__': a=fun() print(a) x = a.next() print(x) x=a.send(5) print(x)
UTF-8
Python
false
false
202
py
40
yield02.py
24
0.524752
0.50495
0
15
12.533333
26
brainslushee/branch_creator
11,897,059,425,422
dfa61ce4d3612926493faacb88587ebcd34af038
d3f4257a1d8af87a3df4cf2a434370ac16702cad
/imdb_top_250.py
3cd2d1cbfe545bf3cb76909e07ec7a4c3e455ad8
[]
no_license
https://github.com/brainslushee/branch_creator
9e5e195be730de85e61db8509feb1353fea79054
5daac9f65ae59cd969fb27bdf5d5457265de43f4
refs/heads/master
2021-01-20T13:38:03.254634
2017-05-10T00:04:54
2017-05-10T00:04:54
90,509,996
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests import re from bs4 import BeautifulSoup url = "http://www.imdb.com/chart/top" r = requests.get(url) soup = BeautifulSoup(r.content, "html.parser") titles = soup.find_all("td", {"class": "titleColumn"}) ratings = soup.find_all("td", {"class": "ratingColumn imdbRating"}) for title in titles: pr...
UTF-8
Python
false
false
383
py
1
imdb_top_250.py
1
0.699739
0.697128
0
20
18.15
67
mohisen/zdotfiles
14,018,773,276,211
dece810d9dd04494f5034ea75da8aba7ec5c901e
ce79f454483beef0007337219d9415e5feabb0cc
/1/.zsh/ipy_w.py
670d35b5fc6faa5a7adbf61ed9e48fa13049c0e3
[]
no_license
https://github.com/mohisen/zdotfiles
5be5417dca38f93f44443566737effc0cd0d3514
8c127d0e9ffdc43f9bc12a9d79a1690df063c2b4
refs/heads/master
2021-01-01T17:02:58.296952
2017-01-30T02:08:44
2017-01-30T02:08:44
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ File: w.py Author: Email: 0 Github: 0 Description: /home/ahmed/.config/ipython/profile_z/startup/w.py """ import os, sys, re xarab = u"احمد" print(xarab)
UTF-8
Python
false
false
212
py
932
ipy_w.py
451
0.649038
0.634615
0
15
12.8
63
superdesk/superdesk-planning
9,431,748,194,153
d0a705cdccb2c2462cea3a950c8326c9a01c5f2b
a823235ebebc3714ba289479a4fe7a10f65e7208
/server/planning/planning/planning_cancel.py
ebbebe78f6fa1955ccf903d4b0ba710c4df99e0f
[]
no_license
https://github.com/superdesk/superdesk-planning
6b64e2edd08a6b67f96cb12ca27141e1df7ea1a5
c45392954498925b1b414ff6b49296817ea02981
refs/heads/develop
2023-08-17T01:19:52.690841
2023-08-10T14:04:17
2023-08-10T14:04:17
69,333,814
15
41
null
false
2023-09-11T12:53:25
2016-09-27T08:07:26
2023-03-24T11:54:13
2023-09-11T12:53:23
13,614
11
35
4
TypeScript
false
false
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license from superde...
UTF-8
Python
false
false
5,199
py
1,206
planning_cancel.py
549
0.608194
0.605501
0
150
33.66
102
dp92987/pactice-python
936,302,905,328
a3fcc6b7825d3ff6c7f7c9d7a055976ad77dd923
a1604f9aef6764206f77a323a911ab4716b90a55
/hackerrank.com/Python/find-a-string.py
ce34db379b50ec898c1618994a32067ea57b1491
[]
no_license
https://github.com/dp92987/pactice-python
cb4d274582fed7831fd64d9c2fb80c7c103650fc
45ffde4b2614a9d8bd9c3a202778ab48a5ccfcbb
refs/heads/master
2021-04-23T15:36:17.386586
2020-12-31T00:12:16
2020-12-31T00:12:16
249,936,669
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# https://www.hackerrank.com/challenges/find-a-string/problem def count_substring_loop(string, sub_string): counter = 0 n = 0 for i in range(len(string)-len(sub_string)+1): print(string[n:len(sub_string)+n], sub_string) if string[n:len(sub_string)+n] == sub_string: counter += 1 ...
UTF-8
Python
false
false
768
py
42
find-a-string.py
40
0.605469
0.595052
0
28
26.464286
63
sushi-boy/stcode-redisconf19
13,469,017,480,515
a5b37c63f33b589509d5836cf147894bed8ec0e2
9f64e933ece1ae6d5226f14af0fc9e1748008da6
/st_insert.py
584d375a129d032eab26a5257679c67093e21829
[]
no_license
https://github.com/sushi-boy/stcode-redisconf19
89ef20578be0882dcb7dd72225c45edce807070f
6033147e79d613f940054e3d1db9639e89e0080f
refs/heads/master
2020-04-19T14:52:23.138874
2019-03-26T06:34:06
2019-03-26T06:34:06
168,256,758
6
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import redis import glob import csv import random import sys import copy from operator import mul from functools import reduce try: import mmh3 except ImportError: import pymmh3.pymmh3 as mmh3 """ Initialize parameters """ #Maximum number of precision bits max_precision = 96 #Where you split the ST-code into...
UTF-8
Python
false
false
5,107
py
5
st_insert.py
4
0.634619
0.607402
0
167
29.413174
94
robertnowell/algos
18,631,568,135,377
9873bed5bd2429cac9852726cc259f97c203c743
0c532599478a29b09b4f158f416df6dbc464cfbc
/recursion/dynamic/contiguous.py
211c6e474e2af253739a0de8252e5afaa04c6e52
[]
no_license
https://github.com/robertnowell/algos
33d35dc2e453e2ecb994381bdf89ed084a2070b1
375e1015958d6d0edf05f285ff2aae3713d53a6c
refs/heads/master
2021-06-28T22:52:30.516697
2020-04-05T16:45:26
2020-04-05T16:45:26
98,332,384
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def subsequenceSum(a, sum, start, end, res): if start > end: print sum, res return sum if start == end: print sum, res return max(sum + a[start], sum) news = start+1 newe = end-1 sval = a[start] endval = a[end] return max(subsequenceSum(a, sum+sval, news, newe, res + [sval]), max(subsequenceSum(a, sum+e...
UTF-8
Python
false
false
927
py
93
contiguous.py
88
0.606257
0.583603
0
44
20.068182
197
nicholasgdml/exercicioscursoemvideo-python
15,547,781,625,282
98135016088964b0d3dac17dd029e145c25e25e9
39d65ea505801f821ef800ba4e733872f7b361b3
/ex_python_mundo3/ex088.py
d7f4405ce2ffefa1a9131c984ae13d80b7e75328
[]
no_license
https://github.com/nicholasgdml/exercicioscursoemvideo-python
ac1183be8b94f12ec02241077fcc29350984d942
b184a1bbafe54984abf1933a81e0b3c1249eb990
refs/heads/main
2023-08-29T03:54:27.985080
2021-09-27T01:16:08
2021-09-27T01:16:08
379,691,216
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
'''Exercício Python 088: Faça um programa que ajude um jogador da MEGA SENA a criar palpites. O programa vai perguntar quantos jogos serão gerados e vai sortear 6 números entre 1 e 60 para cada jogo, cadastrando tudo em uma lista composta.''' from random import randint lista = list() temp = list() quantiaListas = int...
UTF-8
Python
false
false
639
py
92
ex088.py
91
0.697161
0.673502
0
20
30.75
105
juzisan/zyys
3,994,319,601,300
e0b3ce9bb6558961aea8cab223dc79cdda4ecbea
7d38f7d4c04e15c10aede607e7d2bfed1d59c803
/6.web住院医师/web住院医师账号密码.py
0099b0218c6e25f7fd23a7d190b292548834003d
[]
no_license
https://github.com/juzisan/zyys
46089a2ceef64abf39d5341cbe925622fd1a111f
0a8d69749fb2bc869c42d58a0278860f23dae3bf
refs/heads/master
2023-08-18T13:00:32.700485
2023-08-05T14:12:54
2023-08-05T14:12:54
149,263,336
5
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python """ Created on Sat Nov 5 10:50:13 2016 @author: hello """ import codecs import pandas as pd from requests_html import HTMLSession import random from shuju import url_dict from shuju import html_tou import time def timmer(func): def warpper(*args,**kwargs): ...
UTF-8
Python
false
false
3,425
py
19
web住院医师账号密码.py
15
0.576935
0.54818
0
129
24.341085
219
bogdanpop/BuildingAre
12,206,297,086,856
d446577a016198e42f4deed4811d5f8f1eef11f7
4a8386dd175ed8a96e4fed9da17b37d5ac520845
/src/tethpy/core/models/errors.py
b5cb3e2a89429f4a4a8648605804e300294611ce
[]
no_license
https://github.com/bogdanpop/BuildingAre
c01ff59dacd1b5ce0cc54b63c923e6112fd50eb1
c75300f6dd9a75a8aec3a3c928718e092ad067b4
refs/heads/master
2016-08-11T20:23:46.503322
2015-11-19T23:01:17
2015-11-19T23:01:17
45,944,169
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from django.db.models import fields class CustomError(models.Model): data = fields.CharField(max_length=4096)
UTF-8
Python
false
false
145
py
24
errors.py
16
0.77931
0.751724
0
6
23.166667
44
dcolinmorgan/mili_benchmark
1,142,461,330,042
6672f8dce509f20abde7bb01efb1e6727a6630a5
6d1526293a9a45cf1e67f830edfe9d3aae57e96c
/src/python/run_predScore.py
eb75373b6dcfeba30d2016e1e00430d7b616e222
[]
no_license
https://github.com/dcolinmorgan/mili_benchmark
77dab8a7b15b8861bcdfa6d3321a695733a911f8
6ba4a2cba23b344f16bfef87b4d27f569ffd3d79
refs/heads/master
2023-07-29T17:21:52.890199
2021-09-10T02:06:33
2021-09-10T02:06:33
278,576,747
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # source /proj/relibs/relib00/conda/bin/activate # echo $PATH # source /proj/relibs/relib00//conda/env/mypy3 #./conda/env/mypy3 # source /proj/relibs/relib00/conda/etc/profile.d/conda.sh # source activate mypy3 # cd netZooPy # python """ Description: Run predScore after benchmark. Usage: -h,...
UTF-8
Python
false
false
5,792
py
67
run_predScore.py
34
0.631561
0.624655
0
172
32.674419
148
ushkarev/django-moj-template
16,630,113,371,621
7b4dff97baf54c73079f3ae6a22427fbcbbce81a
75013ae741b538751a8b392c606c1ca68174dbba
/builder/template/django_moj_template/app.py
89f5e1c6b43b26b9fde86b17907038bbb4defc0c
[ "MIT" ]
permissive
https://github.com/ushkarev/django-moj-template
0f941f7a013f1dfcb89b4f36fd91503666b9e07f
ff1bd0e6cd7791593fceee8c731ec152f0d72e5a
refs/heads/master
2021-01-10T02:09:09.423313
2016-02-26T12:33:24
2016-02-29T17:47:07
52,619,306
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.apps import AppConfig as DjangoAppConfig class AppConfig(DjangoAppConfig): name = 'django_moj_template' verbose_name = 'MoJ Template'
UTF-8
Python
false
false
156
py
15
app.py
9
0.75641
0.75641
0
6
25
52
uniite/super-socket
16,612,933,530,630
61a8bf05e1d577f82a7c9f37adf6d5726cb86852
1f864859eb7ea7bdf8268c619de637857c1688d0
/proxy_exit.py
aadd91f1ca5d0a2ee6d9bb074233162de706c31e
[]
no_license
https://github.com/uniite/super-socket
c2f133538b590b02f2c2ff1de90e296d5a1f1b83
a9da240ed6d6eb115d3bc858366eaab8d633b41d
refs/heads/master
2021-01-22T11:51:09.825745
2011-10-10T05:56:51
2011-10-10T05:56:51
2,545,600
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from gevent import spawn, spawn_later from gevent.event import Event from gevent.socket import create_connection from gevent.server import StreamServer from gevent.queue import Queue from gevent import sleep from proxy_core import ProxyCore ENTRY_HOST = "0.0.0.0" ENTRY_PORT = 5000 ENDPOINTS = [ ("127.0.0.1", 500...
UTF-8
Python
false
false
1,341
py
6
proxy_exit.py
6
0.692767
0.677852
0
52
24.788462
66
js-ferguson/gPMS
2,869,038,183,306
ee9050d1b96e93c1016bc63a00c15251aed418de
2924e268fde98f3c4926c20880ebdf026ad84f81
/clinic/migrations/0001_initial.py
83d483e7e0bb647a86c3cf71888d9c2c98ee45f4
[]
no_license
https://github.com/js-ferguson/gPMS
0780c70487dd86ff4c495e257da8b1133f67bd4c
dc47549d815c656ef1a803c8250645a9789c8c9a
refs/heads/master
2022-12-13T01:18:16.658142
2021-11-26T21:43:58
2021-11-26T21:43:58
232,631,335
0
1
null
false
2022-12-08T03:28:32
2020-01-08T18:29:28
2021-11-26T21:44:02
2022-12-08T03:28:31
5,988
0
1
2
Python
false
false
# Generated by Django 3.0.2 on 2020-04-20 18:16 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import phonenumber_field.modelfields class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(sett...
UTF-8
Python
false
false
1,895
py
54
0001_initial.py
39
0.603166
0.582058
0
43
43.069767
134
Sargreis/LuffyProject
19,318,762,919,054
d874ceae3d4830ad1144aabe0ba71cbb1eb4a9f6
962f977e8470ed8b16dd134e50701c39077ec94e
/always/app01/admin.py
020a976bdef222188ca93b856a9f4939b93a6103
[]
no_license
https://github.com/Sargreis/LuffyProject
775ef1e53d8aa7bb709b2267adc4ef623602c9ca
a679b64868e4fb41bfc0a823b2397194f7a9350f
refs/heads/master
2021-09-09T10:16:20.295557
2018-03-15T03:20:34
2018-03-15T03:20:34
112,281,830
0
0
null
false
2017-11-30T03:46:57
2017-11-28T03:39:04
2017-11-28T11:34:28
2017-11-30T03:46:57
32,554
0
0
0
Python
false
null
from django.contrib import admin from app01 import models # Register your models here. admin.site.register(models.PricePolicy) admin.site.register(models.Course) admin.site.register(models.CourseDetail) admin.site.register(models.Teacher) admin.site.register(models.Account)
UTF-8
Python
false
false
287
py
15
admin.py
10
0.797909
0.790941
0
9
29.666667
40
ypliu/leetcode-python
9,062,381,005,468
473009319f5873260497cb3533cbe43857444066
02dc1f70da529c7c2aa45dcfe5e0a3aeeb1f98cc
/src/062_unique_paths/062_unique_paths.py
404b9e7ed5c1e8dec068debb4e4d6da261e5ebce
[]
no_license
https://github.com/ypliu/leetcode-python
2a5a14de6310cae19b9cc42091d81586e697fffb
13e61c13c406a73debcfc996937cf16f715d55d1
refs/heads/master
2020-03-27T06:17:32.303442
2019-02-24T14:50:11
2019-02-24T14:50:11
146,094,735
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution(object): def uniquePaths(self, m, n): """ :type m: int :type n: int :rtype: int """ if m <= 0 or n <= 0: return 0 elif 1 == m or 1 == n: return 1 total = m + n - 2 counts = min(m, n) - 1 numerato...
UTF-8
Python
false
false
596
py
226
062_unique_paths.py
224
0.45302
0.426174
0
27
21.074074
40
thisisiron/Algorithms
19,181,323,964,349
e5042d0bb7141d824b405d27a9a1afccba813d03
71ffa58b7a6fc7bb896f5beff3d09481cbecdd84
/BOJ/1912.py
61af57db4fbcb358bbf3374e3b527d2475cbd971
[]
no_license
https://github.com/thisisiron/Algorithms
2770a4fa52d72b439c4c3913021ed62a2f162f85
292c10c8759903ed556eb55cf3b340203205aced
refs/heads/master
2021-05-25T12:12:58.041247
2021-05-24T14:44:16
2021-05-24T14:44:16
127,402,348
0
0
null
false
2018-09-11T10:48:32
2018-03-30T08:23:38
2018-09-11T07:53:59
2018-09-11T10:48:31
1,349
0
0
0
Python
false
null
import sys input = sys.stdin.readline if __name__ == '__main__': n: int = int(input()) numbers: list = list(map(int, input().split())) dp: list = [0] * n for i in range(n): if dp[i - 1] + numbers[i] > numbers[i]: dp[i] = dp[i - 1] + numbers[i] else: dp[i] = numb...
UTF-8
Python
false
false
347
py
374
1912.py
372
0.475504
0.466859
0
15
22.133333
51
b-mccormack/python-projects
8,418,135,907,414
5ee179ea52753fe9c98a1f9589c8e760ef5f3be9
c66d98e73e9ef0bec85be2f01e1edff8f86b6915
/Beginner-Python/One hit wonders/fibonacci.py
d639a4c81c543e58bec3a1bf49e9c102b19cf072
[]
no_license
https://github.com/b-mccormack/python-projects
fb143b1d0cdf7218ad791ea973d75b880463e403
2c4fcc716481b9c52048b5f6c72adcd94474f377
refs/heads/master
2023-01-13T03:42:56.012340
2021-07-19T22:22:48
2021-07-19T22:22:48
181,610,104
0
0
null
false
2020-10-20T02:39:28
2019-04-16T03:44:06
2020-10-19T08:28:26
2020-10-20T02:39:27
741
0
0
0
Python
false
false
#Ask the user how many fibonacci numbers they would like to generate, then print out the sequence userNum = int(input("How many fibonacci numbers would you like to see? Enter a whole number")) fibList = [1, 1] count = 1 while count <= userNum: addNum = fibList[count] + fibList[count-1] fibList.append(addNum) co...
UTF-8
Python
false
false
353
py
58
fibonacci.py
57
0.725212
0.711048
0
12
28.333333
97
sebastian-code/ideas_sueltas
11,295,764,025,801
e84ca0aa2ceb70f54700d7ed1bfa30e5221294e7
b91a9ca73c131f2296fcd07e0b69942b5fb6911d
/scrappers/robots_txt.py
f247f7eab4614fd4fd8187b3e7739cc66f0c0b52
[ "MIT" ]
permissive
https://github.com/sebastian-code/ideas_sueltas
2a5c77ad482c31f080b9b04c9044586ce5899379
40ceac081f5181d01e188a5a1c40463d891203e6
refs/heads/master
2022-05-04T04:58:10.569717
2022-03-24T13:33:09
2022-03-24T13:33:09
29,372,124
0
3
null
null
null
null
null
null
null
null
null
null
null
null
null
import io import urllib.request def get_robots_txt(url): if not url.endswith("/"): path = url + "/" request = urllib.request.urlopen(f"{path}robots.txt", data=None) data = io.TextIOWrapper(request, encoding="utf-8") return data.read()
UTF-8
Python
false
false
262
py
114
robots_txt.py
101
0.645038
0.641221
0
11
22.818182
68
NateWeiler/Resources
2,327,872,318,407
f04933dd991da1abacd8a47063e9c72427993db5
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Projects/pyinstaller/PyInstaller/hooks/hook-gi.repository.Gdk.py
9d97892eed3e150f7875896f2b4823e28cdf31fd
[ "LicenseRef-scancode-other-permissive" ]
permissive
https://github.com/NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
false
2022-09-08T15:20:18
2020-05-27T16:18:17
2021-12-09T12:39:04
2022-09-08T15:20:18
2,434,051
1
0
32
null
false
false
version https://git-lfs.github.com/spec/v1 oid sha256:0586794fa1ffd887c7f6f6135b54e01a88e8dee0904b9c6d8e244a604e31c004 size 747
UTF-8
Python
false
false
128
py
36,207
hook-gi.repository.Gdk.py
16,386
0.882813
0.5
0
3
41.666667
75
tapiaw38/desarrollo
12,034,498,396,999
99f128758dc3d8347ef66fb34e6c6f8cbecde6a5
ad9ab95361275f26c2ff1e20f7ab99bab3fcdc97
/usuario/views.py
8f3e7846087502471d70ce6b0b5e8ba59991424b
[]
no_license
https://github.com/tapiaw38/desarrollo
efbd03433c20b52c1e74b69fd63a539e0927dabf
e64f27aea9321da5884cbde986385e08006b9ccc
refs/heads/master
2021-05-16T18:59:57.452208
2020-03-27T04:08:19
2020-03-27T04:08:19
250,429,496
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.http import HttpResponse from django.shortcuts import render from django.core.paginator import Paginator from usuario.forms import UsuarioForm, CargaForm from usuario.models import Usuario # Create your views here. from django.views.generic import View from desarrollo.utileria import render_pdf from django....
UTF-8
Python
false
false
1,822
py
6
views.py
4
0.716795
0.715697
0
55
32.127273
79
TTOFFLINE-LEAK/ttoffline
8,478,265,447,376
2df02146d387d44bcdc49789a34acd4c4a40e0d6
8e69eee9b474587925e22413717eb82e4b024360
/v1.0.0.test/toontown/uberdog/DistributedDeliveryManagerUD.py
06d593d29a39b24e57f31ef731e64343e79b6f59
[ "MIT" ]
permissive
https://github.com/TTOFFLINE-LEAK/ttoffline
afaef613c36dc3b70514ccee7030ba73c3b5045b
bb0e91704a755d34983e94288d50288e46b68380
refs/heads/master
2020-06-12T15:41:59.411795
2020-04-17T08:22:55
2020-04-17T08:22:55
194,348,185
5
4
null
null
null
null
null
null
null
null
null
null
null
null
null
from direct.directnotify import DirectNotifyGlobal from direct.distributed.DistributedObjectGlobalUD import DistributedObjectGlobalUD class DistributedDeliveryManagerUD(DistributedObjectGlobalUD): notify = DirectNotifyGlobal.directNotify.newCategory('DistributedDeliveryManagerUD') def requestAck(self): ...
UTF-8
Python
false
false
458
py
717
DistributedDeliveryManagerUD.py
715
0.779476
0.779476
0
11
40.727273
88
vikramahuja1001/Classification-Of-News-Data
17,248,588,692,704
7748878548889645d715ffcb445164f6f2f2eb58
91372fe7e6df241bd906cc252722c5e65cd8b896
/get_data.py
0eb191aed4c127e3df437e7512f410e6e750aba9
[]
no_license
https://github.com/vikramahuja1001/Classification-Of-News-Data
2b0f20bcbd1b313d5f63cdc3594b167ba78f9d6a
c1e89e2bb26b90387836251e1c8acfd3985bd55e
refs/heads/master
2021-01-10T01:26:43.142921
2016-01-17T07:07:07
2016-01-17T07:07:07
49,806,981
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import os.path import re import math import random count = 0 #19997 files total topics = ["alt.atheism", "comp.graphics", "comp.os.ms-windows.misc", "comp.sys.ibm.pc.hardware", "comp.sys.mac.hardware", "comp.windows.x", "misc.forsale", "rec.autos", "rec.motorcycles", "rec.sport.baseball", "rec.sport.hockey"...
UTF-8
Python
false
false
5,320
py
3
get_data.py
3
0.57312
0.54906
0
274
18.419708
402
Bytamine/ff-olymp
8,959,301,803,299
fe116136efd330e6dabd522afa12816dd64dc07f
e6304b9e9989bc54f66896b371f63eac41cc1405
/08 lists/8.py
0cff018e776fb58a6a5afab19fb56e117d7b913b
[]
no_license
https://github.com/Bytamine/ff-olymp
ece2f8f28a44c16f379c8e1b7ea3cacc65fbb032
3b3ffbf602f1099f1a2e9f817a094d3e98863f61
refs/heads/master
2022-09-27T12:25:56.835132
2020-06-03T17:33:49
2020-06-03T17:33:49
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 a = list(map(int, input().split())) a = [x for x in a if x != 0] + [0] * a.count(0) print(' '.join(map(str, a)))
UTF-8
Python
false
false
138
py
123
8.py
123
0.536232
0.507246
0
7
18.857143
47
ydanilin/dattime
17,867,063,959,280
b131d62eeea16af30632ce6f34386e64276a2d67
8b6beaece9cc58848b73b1d96ca93e48668ffbc8
/dattimewww/epoch/views.py
211b6985f08f990b44a8faeec6ddcf04c1309229
[]
no_license
https://github.com/ydanilin/dattime
bb68573a143d44a2ba4ab1a8cd1690c700ca1bad
40d961582a8ae250b2cd107855fb286201995680
refs/heads/master
2021-01-20T03:14:20.064068
2017-06-05T19:21:29
2017-06-05T19:21:29
89,516,006
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json from datetime import datetime from django.shortcuts import render from django.http import HttpResponse from django import forms from .models import Epocher from django.template import Template, Context Ep = Epocher() tzChoices = [(-12, 'GMT-12'), (-11, 'GMT-11'), (-10, 'GMT-10'), (-9, 'GMT-...
UTF-8
Python
false
false
6,304
py
23
views.py
13
0.563293
0.538071
0
153
40.202614
106
AmberJBlue/Project-Euler-Solutions
18,769,007,084,731
ac117b6547025f6f59bc260b0c2d947b15b976c8
7ed1135be27cbf578d003f922dd15585387b0f91
/python/1-50/2.py
740da13fe2620936f546859d73e597aed03faad1
[]
no_license
https://github.com/AmberJBlue/Project-Euler-Solutions
a83484b29e6fa4c79ac4bf970272ac36bb338b7a
754730e9e3644ee20523f7dffc6c60b7c0ac33c7
refs/heads/master
2020-04-29T08:58:55.941759
2019-08-14T19:11:02
2019-08-14T19:11:02
176,006,651
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def solution(): result = 0 current = 1 nextNum = 2 while current <= 4000000: if current % 2 == 0: result += current current, nextNum = nextNum, current + nextNum return str(result) if __name__ == "__main__": print(solution())
UTF-8
Python
false
false
242
py
96
2.py
94
0.619835
0.570248
0
13
17.538462
47
nky-uno/es-apps
7,129,645,728,302
e3abe67d43c9c42c351dbe628e983e58c792d006
847b23ed62e52ff23ccf01da67802db1e5d89ff7
/pymodules/es_search.py
fef0fe2b60e7ffea9fdc00052b3480287d1d4876
[]
no_license
https://github.com/nky-uno/es-apps
68382ae1f3429da55034338fad4f4aef3fcb97bb
a719e559b1875dfc4b366e93612612b0fb2a6fad
refs/heads/master
2020-12-06T15:07:13.096888
2020-01-08T11:16:29
2020-01-08T11:16:29
232,492,750
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from datetime import date from dateutil import relativedelta import calendar import logging import pandas as pd from retry import retry from elasticsearch import Elasticsearch from elasticsearch_dsl import Search @retry(tries=3, delay=2, backoff=2) def get_elastic(): try: # connect to the Elasticsearch...
UTF-8
Python
false
false
2,977
py
8
es_search.py
5
0.331878
0.32348
0
86
33.616279
105
mhema524/Udacity-DataModeling-with-PostgreSQL
1,795,296,372,804
25026b62f3711266cc9094b399b4d293cb4a36b1
95b522ce90c439c2c29c39f30dc0a99b79a24c9d
/sql_queries.py
5aef89ffbe7109d521be76112483f9bf32c82129
[]
no_license
https://github.com/mhema524/Udacity-DataModeling-with-PostgreSQL
1934310e8f889c50fdefa0fef2160582c0be4924
c8ba836bca4fb5dc8f87d264e72882935ca1ddbe
refs/heads/master
2022-07-05T13:39:46.912380
2020-05-15T16:42:55
2020-05-15T16:42:55
264,006,155
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# DROP TABLES songplay_table_drop = "DROP TABLE IF EXISTS songplay_table" user_table_drop = "DROP TABLE IF EXISTS user_table_drop" song_table_drop = "DROP TABLE IF EXISTS song_table_drop" artist_table_drop = "DROP TABLE IF EXISTS artist_table_drop" time_table_drop = "DROP TABLE IF EXISTS time_table_drop" # CREATE TAB...
UTF-8
Python
false
false
2,956
py
2
sql_queries.py
1
0.581529
0.574087
0
134
21.067164
129
Priyanka328/KnapsackProblem
386,547,075,240
0d3d29cf8183541e9275cc3c70a9428df6222164
78cee9c7a0722e3d94120b33615beaa13e2c9bc2
/algorithm/bound_and_branches.py
1b8570871dfc265a99463e864023b462d4b243aa
[ "MIT" ]
permissive
https://github.com/Priyanka328/KnapsackProblem
59efc0acec82e7ce170e5bdeb44ccf20f3236028
5a6e384f70ecc21f8b28b78a93ff352b85519d09
refs/heads/master
2022-07-19T14:30:45.352261
2020-05-16T15:37:03
2020-05-16T15:37:03
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from collections import deque import numpy as np from datetime import datetime from datetime import timedelta from utils.simple_queue import SimpleQueue from utils.simple_queue import Node from algorithm.base import Algorithm from ortools.linear_solver import pywraplp import sys, os class HiddenPrints: def __enter...
UTF-8
Python
false
false
3,681
py
10
bound_and_branches.py
7
0.572942
0.563977
0
108
33.083333
119
GhostofAdam/FBGAN
18,640,158,082,734
a7d2b971bd82e935f184837f6a399dadc0caa243
d06ec71db7d7b27d878415610a9f8841182453bd
/loader.py
3770bfec60aed1437833116fe217597b3d4bba1f
[]
no_license
https://github.com/GhostofAdam/FBGAN
4b48230d3ada5597aa1154350efb8c6a4d1c09df
9e002fbd680c65890dd90a7c608e787a42236849
refs/heads/master
2022-12-02T14:16:24.059723
2020-08-19T15:00:03
2020-08-19T15:00:03
281,961,691
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import numpy as np def data_loader(embed_type): data = pd.read_csv("data.csv",index_col=0) if embed_type == "NAVIE": X = np.zeros((len(data),26)) for i, seq in enumerate(data['i']): for letter in seq: X[i][ord(letter)-ord('A')] += 1 else: ...
UTF-8
Python
false
false
1,222
py
20
loader.py
12
0.549918
0.540917
0
37
32.054054
88
ruanramos/LoL_Key_Pressing_Counter
9,758,165,702,338
2ede1ea715f6c8a98ad4708eba253cf9785e989a
486be403edc226824254f0b076263cf2ca0fe249
/Tests/tests.py
b226b9ce2847353eae5b426364c9dfbfd3f716ac
[]
no_license
https://github.com/ruanramos/LoL_Key_Pressing_Counter
e03f66c6a3ed300ab8426331d2c23e0f6ae80ebe
1ce19608668328a1451d5eed49f71cb3b4051199
refs/heads/master
2020-07-14T12:23:32.025420
2019-09-06T03:50:42
2019-09-06T03:50:42
205,317,571
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest from key_counter import str_time_2_seconds class TestStrTime2Seconds(unittest.TestCase): def test_str_time_2_seconds(self): self.assertEqual(9945, str_time_2_seconds('2:45:45')) def test_str_time_2_seconds_1_hour(self): self.assertEqual(3600, str_time_2_seconds('1:00:00')) ...
UTF-8
Python
false
false
486
py
3
tests.py
2
0.668724
0.58642
0
17
27.588235
61
yamaz420/PythonIntro-LOLcodeAndShit
8,194,797,608,452
8cdc797b87b0c0d372962aee10a2faf0522e3991
4fc4cbf4aa267e76a628b1d03cad20f3f1e7d5f4
/pythonLOL/StringsAndCasting.py
b8fea2461cca44a53cce48c60742bd4f569939fb
[]
no_license
https://github.com/yamaz420/PythonIntro-LOLcodeAndShit
99eabe791d94373ac00cd81330bb871898322ee5
028d5c767e2c033ad77521fb8dcca0be1507da9e
refs/heads/main
2023-03-16T00:11:43.645834
2021-03-12T22:30:32
2021-03-12T22:30:32
347,214,330
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
zz = 10 #int my_name = "Erik" #string height = 188.5 #float is_cool = True #boolean is_ready = False #boolean print(my_name) my_name = 40 #int print(my_name); p, y, z = "HEJ", 200, 1000 print(p) print(y) print(z) # *, +, -, /, a = 5**2 #25 b = 3**3 #27 c = 5/ 2 #2.5 float d = 5//2 #2 int-di...
UTF-8
Python
false
false
1,201
py
19
StringsAndCasting.py
19
0.610325
0.574521
0
45
24.6
186
CLCMacTeam/bigfiximport
4,715,874,108,934
8af524b2d90a33937d21680dd55f1cf76daf801f
d98f4e30c8b571c1fcc59dff18781276384061cf
/munkilib/installer.py
6c40956ac9cdf8294c14ede1bc7b50f1b37f68e4
[]
no_license
https://github.com/CLCMacTeam/bigfiximport
c4b6712dd3dcb4fdf71fbd58674c23bd5066ca0c
624719845067ef0bd287eb3e9f341d006241a47c
refs/heads/master
2021-01-17T05:21:42.337360
2016-07-06T15:54:10
2016-07-06T15:54:10
62,732,287
1
2
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # encoding: utf-8 # # Copyright 2009-2014 Greg Neagle. # # 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 require...
UTF-8
Python
false
false
54,735
py
20
installer.py
13
0.567133
0.563844
0
1,305
40.942529
80
opeadeyomoye/learning-python
8,005,819,073,330
fb8b2344d244c9ec06facbcb510cf30fe6a8dc06
0ff544e93a68289ecf42fadda24716ff0dae093c
/the-basics/20-functions-and-files.py
1a9b6d43a05e5e05dbb5e3dde7560b23ccc09c7e
[]
no_license
https://github.com/opeadeyomoye/learning-python
b34b0b1a44c8cc030260ea434413c9c002c737fd
01727fc9e5060305bacc644781bfc5dfca7e5982
refs/heads/master
2021-05-08T00:11:39.204044
2017-12-17T23:47:50
2017-12-17T23:48:00
107,610,807
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sys import argv script, inputFile = argv def printAll(file): print file.read() def rewind(file): file.seek(0) def printLine(line_count, file): print line_count, file.readline() currentFile = open(inputFile) print "First, we print the whole file:" printAll(currentFile) print "Now, we go back to z...
UTF-8
Python
false
false
508
py
19
20-functions-and-files.py
17
0.724409
0.716535
0
31
15.387097
39
Muksam212/Datastructure-and-algorithm
11,038,065,965,638
bc9635b898bf49b65e2da9607f3216095d61d00f
a09f72615cd74e7be3db6761e6378db73cbe5999
/bubblesort.py
cde7411755b29e41b164d2d7c2d0fae352f89780
[]
no_license
https://github.com/Muksam212/Datastructure-and-algorithm
671161c36b242670762500338e3ef49d953688e0
5e35c511b594da123de55a043aa96920f4c42fe5
refs/heads/main
2023-03-21T00:14:18.906562
2021-03-18T12:42:25
2021-03-18T12:42:25
349,069,186
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def bubble_sort(elements): size=len(elements) for i in range(size-1): swapped=False for j in range(size-i-1): if elements[j]>=elements[j+1]: tmp=elements[j] elements[j]=elements[j+1] elements[j+1]=tmp swapped=Tr...
UTF-8
Python
false
false
477
py
8
bubblesort.py
7
0.486373
0.457023
0
17
26.176471
42
wk-ff/my-leetcode-python
11,003,706,222,359
f1739d540f5680a490f318aad5a08d8c5eacc8c5
9fa4966955d0cdd7123bec71093fb6b23baeaabf
/17.Letter_Conbinations_of_a_phone_number.py
571cf05f55b0c7c4b769b68ebc9d698c8652db09
[]
no_license
https://github.com/wk-ff/my-leetcode-python
7cca50eabffa04007d086a22bbadfbd35d57f03c
a8d1724fd9340037c6c0dcac3b3d0e31fe04a2d5
refs/heads/master
2022-03-26T11:36:47.829692
2020-01-08T13:38:04
2020-01-08T13:38:04
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 24ms, 93.58% # 12.6MB, less than 100% class Solution: def letterCombinations(self, digits: str) -> List[str]: strList = ['abc', 'def', 'ghi', 'jkl', 'mno', 'pqrs', 'tuv', 'wxyz'] out = [] if len(digits) == 0: return out out = [s for s in strList[int(digits[0...
UTF-8
Python
false
false
447
py
23
17.Letter_Conbinations_of_a_phone_number.py
22
0.503356
0.465324
0
13
33.384615
67
wrpearson/fasta36
3,934,190,089,799
816dc67ca0e7ddeee6d2072d2648f7468e8c8840
f3878a19f8cd79cac4beb84ce73105f22bc5cc26
/scripts/ann_pfam_sql.py
f5245317faebe038a0c8c220e45a8398a84a2ff7
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/wrpearson/fasta36
8c1a3f233de906b552e2768917cf89dc46f29f49
71b899362e2cef2f5a2c975e57f0f7995f93e3ea
refs/heads/v36.3.8
2023-06-10T12:00:55.143828
2023-05-31T23:54:18
2023-05-31T23:54:18
24,374,820
101
17
Apache-2.0
false
2023-05-19T16:57:44
2014-09-23T14:30:42
2023-05-16T14:26:10
2023-05-03T17:24:27
6,766
90
13
6
C
false
false
#!/usr/bin/env python3 ################################################################ # copyright (c) 2022 by William R. Pearson and The Rector & # Visitors of the University of Virginia */ ################################################################ # Licensed under the Apache License, Version 2.0 (the "License...
UTF-8
Python
false
false
8,244
py
199
ann_pfam_sql.py
33
0.598253
0.590369
0
255
31.329412
169
andrew-houghton/misc-python-scripts
5,085,241,305,093
daf11a190148404aa076c9380fe072747822f230
2d3c712d1e836fdfc7e99696bdca214cf4392f1c
/fourier Analysis/myFourier.py
e343a989ff870069bd790ec04be2ede65602a88f
[]
no_license
https://github.com/andrew-houghton/misc-python-scripts
4bcc8e04e02a2f33121ae929bc416d980dba482e
691d63aadadd1d2add146bc19803d4fe37328338
refs/heads/master
2021-09-02T07:35:20.644367
2017-12-31T14:33:44
2017-12-31T14:33:44
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
##Manual fourier analysis. #Import necessary libraries. (do not use numpy.fft) import numpy as np #from scipy.io import wavfile import matplotlib.pyplot as plt pi=np.pi #create sample data with frequency of 2pi nums=np.arange(0,10*pi,pi/50) data=np.sin(nums) #show the sample data plt.plot(nums,data) ...
UTF-8
Python
false
false
1,152
py
42
myFourier.py
33
0.689236
0.677083
0
44
24.181818
102
pannal/Kitana
12,421,045,467,941
4e14d425ff1a3cbee6735c31e23a14637d7de0e4
fe09acf3920c2ae8449ed4d64c6773a8d8f0db1d
/tools/cache.py
85353ea9bbd99beec9ff5afdfff9a1ee281d4825
[ "MIT" ]
permissive
https://github.com/pannal/Kitana
8eb520ad1bfdf76537442ba743236fc842a206b5
287a8b778385d1ced921e0250665883891022951
refs/heads/master
2023-08-14T10:58:25.196287
2023-04-26T12:36:02
2023-04-26T12:36:02
152,675,031
460
39
NOASSERTION
false
2023-07-25T20:47:42
2018-10-12T01:09:12
2023-07-17T21:52:56
2023-07-25T20:47:41
830
447
26
19
SCSS
false
false
# coding=utf-8 from cherrypy.lib.caching import MemoryCache class BigMemoryCache(MemoryCache): maxobj_size = 500000 maxsize = 50000000
UTF-8
Python
false
false
145
py
26
cache.py
10
0.758621
0.655172
0
7
19.714286
44
alexcatmu/CFGS_DAM
17,145,509,464,433
4d809e535b0214242e770884cdff49933de49dfd
0362023a283a492733336dbe899714236b9a06ef
/PRIMERO/python/ejercicio52 cuenta2.py
28584841bd365ecedd4cfd79bd052109c432fefe
[]
no_license
https://github.com/alexcatmu/CFGS_DAM
205b8bcc6d09f8351894c5f70e1a354ff25c17a3
1a4384dee8833b5d8034fdf0909a0774cbe5b1c0
refs/heads/master
2020-04-07T18:27:15.225638
2019-12-17T19:34:39
2019-12-17T19:34:39
158,610,709
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' 2.9) Feu un programa que llegeixi una frase, i busqui a dins la paraula “hola”. versió a) Si la troba, ens dirà la primera posició on l’ha trobada (només la busca un cop)‏ versió b) Ens dirà totes les vegades que ha trobat la paraula ( doncs la paraula pot estar repetida a la frase, i cal seguir buscant-...
UTF-8
Python
false
false
861
py
409
ejercicio52 cuenta2.py
263
0.584615
0.572781
0
39
20.615385
84
sajibhaskaran/Algorithms
19,430,432,055,702
37a4a845f1ea3dedcf6e92e0ad14051463bfcc9f
2db2f3f7a292c2c364b3353d74061dc2e2a87831
/Palindroms/palindromes.py
f6a9f83bd989a44d308e5028e249a6a5be068679
[]
no_license
https://github.com/sajibhaskaran/Algorithms
477674f3ff7302329e1f520513d440cd12d7b9e4
15c2b81fc2a4c6bfbc18126a67b34ec4592fa0c6
refs/heads/master
2021-01-23T06:58:33.741369
2017-02-24T23:12:36
2017-02-24T23:12:36
80,497,212
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Purpose : Check for Palindromes # Note : Need to remove all non-alphanumeric characters (punctuation, spaces and symbols) and # turn everything lower case in order to check for palindromes # # Author : Saji Bhaskaran import re def palindrome(str): str1 = re.sub(r"[^\w\s]", '', str) str2 =...
UTF-8
Python
false
false
601
py
16
palindromes.py
16
0.602329
0.582363
0
22
26.272727
96
vforgione/metaltrenches
14,714,558,002,232
f07e4b4e09486605779ae387be960e1a91131ba8
f9870caaaf130cbc73349449217f06833a9e609a
/metaltrenches/settings/common/dirs.py
dfb9a14d7dd7453b0629b8a00ed13fe0194dea25
[]
no_license
https://github.com/vforgione/metaltrenches
5a56f0aa5ef05df519d06e265c17971c6e519e6a
1f95f940aa1fe625a0ec966f7b434569a3724d33
refs/heads/master
2021-03-22T03:49:32.071545
2018-12-08T15:13:17
2018-12-08T15:13:17
36,133,731
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os COMMON_SETTINGS_DIR = os.path.dirname(__file__) SETTINGS_DIR = os.path.dirname(COMMON_SETTINGS_DIR) PROJECT_DIR = os.path.dirname(SETTINGS_DIR) BASE_DIR = os.path.dirname(PROJECT_DIR)
UTF-8
Python
false
false
199
py
62
dirs.py
27
0.738693
0.738693
0
10
18.9
51
fgregg/craigslistings
13,176,959,683,992
6a31c472611ce677b9e5d152a0ef8c8eab8a3614
550433f24df037ae9967c03e6ba0ae911f3e208b
/craigslistings/download.py
e7fc227366a6d5b5d08ae299b9e9b3484944a5d1
[ "MIT" ]
permissive
https://github.com/fgregg/craigslistings
e5dcce997363c672557741cd371092099ae3ac04
bd90299537c9e34d5bd22d310780f269872f1789
refs/heads/master
2021-01-01T03:30:35.898679
2016-05-19T19:38:43
2016-05-19T19:38:43
58,775,492
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests import logging def save_rss(feed, city, cursor): section, url = feed url = url % city logging.info('%s', city) logging.info('%s', section) logging.info('%s', url) listing = requests.get(url).text cursor.execute("""INSERT INTO rss (section, url, raw, city) """ ...
UTF-8
Python
false
false
1,349
py
7
download.py
4
0.510007
0.507784
0
58
22.241379
67
ausk/pyco_utils
13,829,794,704,377
a35e6b027263984004356b712a32119de1826b90
418959edd5d99a8c526c3ba0253eba8e9f74fd36
/pyco_utils/flask/upload_files.py
e6e73b0aa39a6d70bf6d1b448c0bdcd782f2bdc9
[]
no_license
https://github.com/ausk/pyco_utils
49c8c6842555638cc3be22748bc9891033ea34ac
2e00ae45ddcfa29a8d4496eb63d3041e20d78f35
refs/heads/master
2020-04-01T04:39:13.950956
2017-11-06T20:44:25
2017-11-06T20:44:25
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from . import ( app, request, json_response, ) def upload_file(file, path='.'): filename = file.filename filepath = '{}/{}'.format(path, filename) file.save(filepath) file.seek(0) return path @app.route('/upload/images', methods=['POST']) def upload_images(): files = request.file...
UTF-8
Python
false
false
416
py
29
upload_files.py
28
0.622596
0.620192
0
20
19.8
51
Bala-subu/test
12,747,462,978,544
fcc5f8c9853fac5e8d858d87bff6f0895c437f0c
b215139a56d45065986d8adf8646f2eac727069f
/project.py
a1bb9e35adffb2208d1f51e79c1a55a36ce75b92
[]
no_license
https://github.com/Bala-subu/test
577107cf68d57fd7f7d16442c8515d44ccb61413
eaf70c69a56dcbec8f987d9a31c79af293e97455
refs/heads/main
2023-07-29T07:25:25.081121
2021-09-14T11:06:59
2021-09-14T11:06:59
385,990,802
0
0
null
false
2021-09-14T11:06:59
2021-07-14T15:37:52
2021-07-14T15:44:14
2021-09-14T11:06:59
2
0
0
0
Python
false
false
from tkinter import * root= Tk() root.geometry("500x300") def bala(): print("form submitted"); Label(root, text="REGISTRATION FORM", font="arial 20 bold").grid(row=0, column=2) name= Label(root, text="Name") phone= Label(root, text="Phone") gender= Label(root, text="Gender") email= Label(root, text="Email"...
UTF-8
Python
false
false
1,195
py
1
project.py
1
0.723849
0.695397
0
43
25.837209
89
VoTonggg/bookaholic-project
13,967,233,650,882
80ad7782ee4e51ef50105c5cb7fc71f72b1997c4
2abe23cdf20f918748832b10ca6465961e1ff533
/nytbook_crawl.py
761242b4824ee9a2c45f24e7eee29b399046d4b4
[]
no_license
https://github.com/VoTonggg/bookaholic-project
a27912b71e0019893dbbf5f8a8346dbccbb49597
1a44a23b751402998d38e81bc6b5ee39c6c07fa5
refs/heads/master
2020-03-22T21:59:03.262399
2018-07-28T23:20:01
2018-07-28T23:20:01
140,726,240
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from urllib.request import urlopen, urlretrieve from bs4 import BeautifulSoup import pyexcel import sys # 1. Download Webpage #1.1 Create a connection a_list_of_dict = [] for i in range(1,2): url = "http://www.ntybooks.com/z/nty/top/" + str(i) #1.2 html_content = urlopen(url).read().decode('utf-8') ...
UTF-8
Python
false
false
1,263
py
19
nytbook_crawl.py
9
0.586698
0.577197
0
52
23.307692
73
aniknagato/CerebralCortex-DataAnalysis
17,617,955,850,331
8ad3e44e7e9e94ef98c19b2cf9b9cef67c151cdf
0188fc0a8d5b2a70e9c9e19b8c2c677d1498d162
/core/feature/task_features/utils.py
f091474138ba8d500b0a9e6ee9d68700d824ab04
[]
no_license
https://github.com/aniknagato/CerebralCortex-DataAnalysis
32bea4b8eda4756f0b7cc22d36af02b386e96c2b
78bd309063f0332f19fdd94f7f329e02bed21824
refs/heads/master
2020-03-08T09:56:42.219341
2018-04-13T18:01:57
2018-04-13T18:01:57
128,059,192
1
0
null
true
2018-04-09T05:13:27
2018-04-04T12:30:51
2018-04-09T05:05:55
2018-04-09T05:13:27
10,905
0
0
0
Python
false
null
# Copyright (c) 2018, MD2K Center of Excellence # -Mithun Saha <msaha1@memphis.edu> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyr...
UTF-8
Python
false
false
7,120
py
39
utils.py
28
0.630337
0.625
0
172
40.395349
101
luaffjk/AQV.GUI
18,416,819,780,859
1e7872a02be43b42cf194d53dd39c20da9d33ae6
4a3b13ab8061e5991e77bbe32989353167f05307
/metricas.py
8180ec6ef89d90f7446dc6476aad9095d2873c38
[]
no_license
https://github.com/luaffjk/AQV.GUI
22d655266be9033dac6f5fee4fdf3c5b1acba3e0
18adc6addc565a138f2e2c6098f464aabe3730cb
refs/heads/master
2021-01-19T21:29:45.892586
2017-01-30T18:32:38
2017-01-30T18:32:38
88,659,051
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import matplotlib.pyplot as plt from scipy import misc import metrica def metricas (orig, test, arquivo): arquiv = arquivo subjectscores = open(arquiv, 'r') conteudo_texto1 = subjectscores.read() aa = conteudo_texto1.split('\n') cc = aa[:-1] ...
UTF-8
Python
false
false
1,364
py
7
metricas.py
3
0.440616
0.422287
0
52
25.192308
80
eebmagic/python_turtle_art
7,851,200,251,618
98511df32633f9138558c133001aaa5b0b5b1d24
aef3aa1f16b6c10f2ee1f05582be92eec6e5af02
/triangle_wallpaper/triangleWallpaper.py
89673372dd5a9b109bf30f7a14e069e9435ef33d
[]
no_license
https://github.com/eebmagic/python_turtle_art
b05574865082d475f38d127d9e9149dc7f383067
d9d16ad47394833617405c85ad22007e7674fcbc
refs/heads/master
2023-01-29T15:08:21.182173
2023-01-17T22:10:19
2023-01-17T22:10:19
204,382,000
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import turtle def tri(turt, size=100): for i in range(3): turt.fd(size) turt.left(120) def drawThatShape(turt): turt.begin_fill() for i in range(3): lastDistance = 100 + 20 * i tri(turt, lastDistance) turt.end_fill() turt.fd(lastDistance + 20) turt.left(120) turt.fd(lastDistance + 20) turt.hideturt...
UTF-8
Python
false
false
669
py
27
triangleWallpaper.py
20
0.689088
0.618834
0
48
12.9375
30
ganl2805/Ejercicios_Python
12,910,671,722,463
14a5e3c79f1edd42c65f74953157653154b93be0
b04773a25d8fad1e0ef9cabcb2f4ac240c61f424
/Programa3.py
c36b0fe9b0a151086a445cc2b9775b40cc6817bd
[]
no_license
https://github.com/ganl2805/Ejercicios_Python
248823032cb1228f1176ae9352cde43901b7f6c3
79cb8777fb3977bd7840943c9a75daaa71a36ce4
refs/heads/master
2021-01-23T02:40:26.435413
2017-03-24T02:08:46
2017-03-24T02:08:46
86,016,294
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def tres(): i=13 n=1 a = int(input("Numero de impares apartir de 13: ")) while n<=a: n+=1 print(i) i+=2 tres()
UTF-8
Python
false
false
141
py
4
Programa3.py
4
0.48227
0.432624
0
9
14.666667
54
24jllewis/deep-rl-tensorflow
5,995,774,365,239
f91e0656bbf25e330ac2a6da8f6c87627234ab24
94fed3e4e964b97cfe9ec1b563d251dc556408e8
/networks/layers.py
86d60520d12571b3822a3a4c5831b467663cec5f
[ "MIT" ]
permissive
https://github.com/24jllewis/deep-rl-tensorflow
37a2df57c5b77c4a9d45df13626b262b962c062d
324998a1eb14f24d13bbd72a4ea3f202c92f03d4
refs/heads/master
2020-09-06T06:26:34.360365
2019-12-13T00:01:52
2019-12-13T00:01:52
220,350,644
1
0
MIT
true
2019-11-07T23:54:13
2019-11-07T23:54:12
2019-11-07T07:03:00
2018-06-04T07:19:33
613
0
0
0
null
false
false
import tensorflow as tf from functools import reduce from tensorflow.contrib.layers.python.layers import initializers def conv2d(x, output_dim, kernel_size, stride, weights_initializer=tf.contrib.layers.xavier_initializer(), biases_initializer=tf.zeros_initializer...
UTF-8
Python
false
false
2,319
py
8
layers.py
7
0.624838
0.611902
0
66
34.136364
84
ArkadiyLin/Protective-Groups-Reactivity
8,297,876,839,299
d3a0ad1431d75378c252563ff35846353ee2558a
1317c0d8a5f7cd6a9ef5b0375a37c95fe36c0983
/Smiles_read.py
e97cd00ca1cbfd2ca2f44c0005af8f4d4fef6a4c
[]
no_license
https://github.com/ArkadiyLin/Protective-Groups-Reactivity
7ea1ec4d47d5f70b570ff79dd403122d7fe2cdda
1b322c71002f0ceda3c24fba8e3fe0ceee45fa1e
refs/heads/master
2020-12-24T17:54:51.645122
2015-09-04T07:28:03
2015-09-04T07:28:03
41,902,481
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'arkadii' import subprocess as sp def smiles_read(folder, way_smiles_reaction): f = open(folder + way_smiles_reaction) SMR = f.readlines() f.close() SMILES = [] SMILES_reaction = [] for i in range(len(SMR)): SMILES.append(SMR[i].split('>>')[0].strip()) out = open(folde...
UTF-8
Python
false
false
763
py
24
Smiles_read.py
23
0.585845
0.581913
0
21
35.380952
110
Divi76h/python_first_project
13,185,549,601,876
d5988c79dce1d3bb0682a6259101ff119df11558
5d99edf0932308b4a87f765e2c9a0797eb721d0a
/gorgiassprial.py
109cd8be16d0822df4b119882fba551ba0016491
[]
no_license
https://github.com/Divi76h/python_first_project
8f141c4bdd8342176e32aa10216cc2c9eb1c57b7
cf86fd29c06c9b222cfbf5b1898c6df3e0c4ca77
refs/heads/master
2021-06-30T22:12:06.370800
2020-11-21T11:13:02
2020-11-21T11:13:02
189,379,998
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import turtle import math import random import time wn = turtle.Screen() wn.bgcolor('black') Albert = turtle.Turtle() Albert.speed(0) Albert.color('white') rotate = int(360) def drawCircles(t, size): for i in range(10): t.circle(size) size = size-4 def drawSpecial(t, size, repeat): for i in ...
UTF-8
Python
false
false
1,718
py
81
gorgiassprial.py
79
0.623981
0.583236
0
101
16.009901
33
ipums/mendeley-python-sdk
2,791,728,753,841
c752ac7f7ca5fb161ff5f6b238e08267489d9e23
2de5fd54fbf82ce012c6496b1495412b06b8516b
/setup.py
9a2db7617881bfb794df2853e80d5ebed8d517cb
[ "Apache-2.0" ]
permissive
https://github.com/ipums/mendeley-python-sdk
0bc69ab7182ca82645397b067beaef647b40f31a
0df41fbdafd164d27c42a101f2ed0bba91f3bdfb
refs/heads/master
2022-12-18T01:12:25.000719
2022-12-09T20:19:50
2022-12-09T20:19:50
94,386,874
1
1
Apache-2.0
true
2022-12-09T20:19:57
2017-06-15T01:25:11
2022-11-08T23:45:53
2022-12-09T20:19:50
445
1
1
0
Python
false
false
from setuptools import setup __version__ = None with open('mendeley/version.py') as f: exec(f.read()) setup( name='mendeley', version=__version__, packages=['mendeley', 'mendeley.models', 'mendeley.resources'], url='http://dev.mendeley.com', license='Apache', author='Mendeley', author_...
UTF-8
Python
false
false
1,150
py
88
setup.py
80
0.573043
0.547826
0
42
26.380952
70
kaust-cs249-2020/reem-alghamdi
3,770,981,292,220
b8e184c15c08097ae6b83d70bfcd3dad9b311e37
3a6790f8945f64653b7afb31c6df8bdc05f0966c
/ch5/code/ch5_14.py
29ecc24fc185b26e95542b594a2b6b7187962ceb
[]
no_license
https://github.com/kaust-cs249-2020/reem-alghamdi
bef6dc5f93d24a6541b7182dd6b98c6d2764d6b2
ebcb329ab86d58fca734e3cb675af4bc4d7b1fbd
refs/heads/master
2023-02-05T22:50:18.264405
2020-12-24T09:18:48
2020-12-24T09:18:48
291,866,793
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
""" @BY: Reem Alghamdi @DATE: 15-10-2020 """ import numpy as np def multiple_longest_common_subsequence(v, w, u, sigma=0, scoring_matrix=None, matches=1, mismatches=0): len_v = len(v) len_w = len(w) len_u = len(u) s = np.zeros((len_v + 1, len_w + 1, len_u + 1), dtype=int) backtrack = np.zeros((le...
UTF-8
Python
false
false
2,712
py
121
ch5_14.py
91
0.425147
0.398599
0
83
31.674699
154
MB-Huang/FIRA-marathon-arrow
1,821,066,151,837
68988e3fc4e418e1a5473e419f237f6f6c6d135f
c9aa0df66677936df592cf75659ece4740c3d448
/arrow_predict.py
6b750370507cf4e5a849346847b0d6d642fcabde
[]
no_license
https://github.com/MB-Huang/FIRA-marathon-arrow
8c6639ce1b61c70133616faa7b2132a4f3e09eac
cd6c03e22f1d7dd3205d83602e8ec1c0cd62aa54
refs/heads/master
2020-07-12T03:42:20.182140
2019-08-27T13:36:14
2019-08-27T13:36:14
204,709,181
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import sys import os # from PIL import Image # from PIL import ImageFont # from PIL import ImageDraw import os import csv import h5py import numpy as np import keras np.random.seed(1337) # for reproducibility #from keras.datasets import mnist from keras.utils import np_utils from keras.models import Sequent...
UTF-8
Python
false
false
3,217
py
6
arrow_predict.py
6
0.646876
0.587504
0
119
26.033613
147
kusoof/wprof
18,769,007,107,959
1a95d2c01f20a1007fec1b368d776f81a16163c8
8adec48dfaee1cdfd6c7f4d2fb3038aa1c17bda6
/WProf/build/masters/master.client.dart/.svn/text-base/slaves.cfg.svn-base
ac8f692ed6e07023bb640605177b99a49647b519
[]
no_license
https://github.com/kusoof/wprof
ef507cfa92b3fd0f664d0eefef7fc7d6cd69481e
8511e9d4339d3d6fad5e14ad7fff73dfbd96beb8
refs/heads/master
2021-01-11T00:52:51.152225
2016-12-10T23:51:14
2016-12-10T23:51:14
70,486,057
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- python -*- # ex: set syntax=python: # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # See master.experimental/slaves.cfg for documentation. slaves = [ # MAC { 'master': 'Dart', 'bu...
UTF-8
Python
false
false
6,490
687
slaves.cfg.svn-base
346
0.462096
0.415562
0
331
18.607251
72
sig49san/kyopro
8,881,992,391,542
b3d558f7563d1e0b0cad2fe1451d549a4fe75760
b98d8899e99696247f2742302eb2501fe5f6a33d
/forWaterBlue/H.py
a1d1c018aa4bfb34b73fca1f7ab55c4052c43dfe
[]
no_license
https://github.com/sig49san/kyopro
bbc36dd082897e48ab5ab9d0854e28d13eb6c6f8
ea49864b055d3ab996d3841392d5d8c6b1532075
refs/heads/main
2023-03-03T06:16:58.597057
2021-02-16T12:40:27
2021-02-16T12:40:27
339,395,608
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from collections import deque N,M,K = list(map(int, input().split())) As = list(map(int, input().split())) Bs = list(map(int, input().split())) Asdq = deque(As) Bsdq = deque(Bs) Asdq.append(10**10) Bsdq.append(10**10) #print(Asdq) #print(Bsdq) ans = 0 time = 0 A = Asdq.popleft() B = Bsdq.popleft() while True: # ...
UTF-8
Python
false
false
636
py
79
H.py
74
0.492138
0.462264
0
42
14.119048
40
sonyjagatap/MedhaTraining
10,299,331,597,771
7ffc17b8ef2a798b53b4be51ed6b1dfb02b44bbb
ce8616ced58327a0f572a265d46ada5489939e56
/shoba/pythonscripts/openbrowser.py
ccff5666e95f561e8e72fc855b6b5d2ba0a99259
[]
no_license
https://github.com/sonyjagatap/MedhaTraining
503a2f47dac8a71607724e9c1c20258d3921446d
4e13a14f3d5463365ad03f1dcc5c5f74a4223539
refs/heads/master
2020-12-30T18:03:39.371072
2015-09-30T06:41:48
2015-09-30T06:41:48
28,310,297
0
0
null
true
2014-12-21T19:41:36
2014-12-21T19:26:29
2014-12-21T19:26:29
2014-12-21T19:41:36
2,054
0
0
0
Python
null
null
import selenium from selenium import webdriver br=webdriver.Firefox() br.get("https://google.com")
UTF-8
Python
false
false
100
py
135
openbrowser.py
110
0.78
0.78
0
5
19
30
vassilux/ramses_proxy
17,678,085,392,874
c05518a42ac26b6ab804a33c3f9bb69a0776fea3
2e72926c888730d69d06c289b97b63d529c68819
/tests/scripts/twistedUdpClient.py
b304918d5fbf971b5d008b0a1be057971d1d04bf
[]
no_license
https://github.com/vassilux/ramses_proxy
eee9076974a5ef17ccaf72a182ce8c0e1c67e33c
6cfc9781d0e0cfdd4036c31c7e9c3a7e7d2d302c
refs/heads/master
2020-05-17T10:49:52.456223
2014-09-09T09:19:32
2014-09-09T09:19:32
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# # Emulator for proxy laod test # # from twisted.internet.protocol import DatagramProtocol from twisted.internet import reactor from twisted.python import log from twisted.internet.task import LoopingCall import sys from datetime import datetime import os import string import random host = "192.168.1.3" port = 2036 m...
UTF-8
Python
false
false
1,409
py
44
twistedUdpClient.py
27
0.701916
0.688432
0
53
25.566038
71
ShivaPariyar/exc
6,940,667,185,512
f2e47505158fa80a0de799d0a6e9999becc43bc6
a4eee56e749520e44c0adfc5fcda087699c09e06
/Pycharm Sample Project/check/Random.py
0f86fac30de7594b30df8ba75a6b19526f4a31ad
[]
no_license
https://github.com/ShivaPariyar/exc
e5e681be95f52e77845d8864793361d092f66224
7d232d50fdac2a2ba6d93541609eb485ef7a4aa7
refs/heads/master
2022-11-20T21:37:03.784189
2020-07-27T17:04:51
2020-07-27T17:04:51
282,962,445
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
a_list = ["hero", "alian", "plane", "sky"] dict = {} def remove_duplicates(a_list): for list in a_list: for i in list: if i == [a-zA-Z]: print( remove_duplicates(a_list))
UTF-8
Python
false
false
200
py
10
Random.py
10
0.535
0.535
0
9
21.333333
42
zhankq/pythonlearn
10,110,353,052,485
961f467808dcf7cbf724dd7c18e725a0f21505c6
b4afd14e3b4e9cff0a99906a69587e348b243aeb
/Hello.py
18ce3c6be3d1da446440085a229bc58c2b18396c
[]
no_license
https://github.com/zhankq/pythonlearn
d694df23826cda6ba662e852e531e96a10ab2092
cb714fbb8257193029f958e73e0f9bd6a68d77f1
refs/heads/master
2021-12-16T13:51:23.381206
2021-12-03T01:13:36
2021-12-03T01:13:36
205,632,135
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests import json import time import urllib3 urllib3.disable_warnings() def ios12_get_rank(keyword,appid): st = time.time() cookies = { 'wosid-lite': 'udbGWDV4NWTsCS8xPuGVcg', 'pldfltcid': '37d90499766645efaeffab0e31f26247055', 'ndcd': 'wc1.1.w-855182.1.2.YYTq2gydU37Bp1LD-JCstg...
UTF-8
Python
false
false
5,172
py
381
Hello.py
319
0.720303
0.62927
0
95
53.231579
515
willwng/QTClock
2,422,361,603,063
67e60fb5776407b2a156df6300d78e7bb9012ff2
8b910815483e77b9289e38c5367883bd41d0c7da
/Old Versions/Clock.py
2077471c59712fcff52ada0af445bf372b397cc4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/willwng/QTClock
46482871c0ae93f8319166f94fc2d51fa804d229
dba3862c38b7c91f20efc075f5294981ceb6aa87
refs/heads/master
2022-06-25T06:08:16.737805
2017-04-10T23:42:09
2017-04-10T23:42:09
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
##Plotting with Turtle## from turtle import * import turtle import random import numpy import math from math import pi import numpy as np import csv from datetime import datetime import matplotlib.pyplot as plt import os import Tkinter from Tkinter import * from Tkinter import Tk from tkFileDialog import askopenfilenam...
UTF-8
Python
false
false
7,476
py
10
Clock.py
4
0.607678
0.573569
0
239
30.280335
103
KissBalazs/dipterv
1,949,915,153,838
e1cd2bdcca44c38e43da7f2ff55053217fe34aeb
58aafe46b67bee59b078adffbec49915f9fdb0e9
/LabelerApp/editor/topicmodeller/topicmodellerServices.py
9ba5815c5fd1d54788fb192bc9f0e5e4ec01f8e4
[]
no_license
https://github.com/KissBalazs/dipterv
3cc410d7678378e9c94394692bf438bfa064b3e7
ba88bb1099f4ac3ef9fd186d72029c1a24dbcde1
refs/heads/master
2021-01-19T13:27:10.793596
2017-05-12T06:59:14
2017-05-12T06:59:14
82,391,198
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- __author__ = 'forestg' from gensim import corpora, models, similarities import os.path import pickle import sys # logging bekapcsolása: import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) def yieldLabels(article,label): stopwordlist =...
UTF-8
Python
false
false
6,564
py
93
topicmodellerServices.py
25
0.68061
0.675789
0
142
44.28169
123