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
wtsi-hgi/lurge
3,212,635,571,213
97ee7de5eb7bea442889f724d652e74d3e4e05a6
53346281898358b0ae32ddd8b2dcc59e50c4a758
/db/__init__.py
b3bc8b6ab4f89a4ef3633fa00ec2e3d745458c7e
[ "BSD-3-Clause" ]
permissive
https://github.com/wtsi-hgi/lurge
56eca727c6a0becdb5161e3e746d4f1c177bc925
3dbffe7485603a44eed77120b501f45d96b16a31
refs/heads/master
2023-04-06T06:48:26.130001
2023-03-16T17:22:57
2023-03-16T17:22:57
210,387,428
1
0
BSD-3-Clause
false
2023-03-16T17:22:58
2019-09-23T15:17:29
2021-12-14T17:13:20
2023-03-16T17:22:57
640
0
0
2
Python
false
false
import db.common import db.warnings import db_config historical_usage = db.warnings.get_all_historical_usage_data( db.common.get_sql_connection(db_config))
UTF-8
Python
false
false
161
py
31
__init__.py
26
0.782609
0.782609
0
6
25.833333
61
Hanlen520/EApitTest
6,820,408,072,852
fec94d49fab417b4d678a4351ab6c164d4f9d578
c4fce5f3f05dcf23f45f35d8b325335091bcb7d1
/common/oper_file.py
7358f4647ddb505b3e429fc95589ece48c47a8cc
[]
no_license
https://github.com/Hanlen520/EApitTest
291308ed909a074f12bb568a979ca331ac555679
b014eb7b0739884865b3d7ce8b6b82d737ae2093
refs/heads/master
2020-04-03T10:36:19.076994
2018-10-28T09:28:38
2018-10-28T09:28:38
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # __author__ = "Link.Burrows" # __date__ = "2018-05-29 11:47 PM" """封装操作文件的方法""" import os import time import shutil class OperFile: def copy_file(self, src, dst): """复制文件""" shutil.copyfile(src, dst) def trunc_file(self, filename): """清空文件""" with ope...
UTF-8
Python
false
false
741
py
13
oper_file.py
10
0.531825
0.513437
0
29
23.37931
52
Zar-rok/bubble_plot
15,187,004,393,673
ac3d15dcdfd30a9d94958ddf1be12ca6f882e887
30c691646fe9935c357b27606b158cbc84c42213
/test_bubble_plot.py
b7e98ff85c81a66825f31bf1aac4863b35fb4db9
[ "MIT" ]
permissive
https://github.com/Zar-rok/bubble_plot
51f5b1011af3611708ad42409e0d22f2a02fd8c4
4669072dd820d22e5e9b06f220fe469cfe66db54
refs/heads/master
2023-02-22T22:27:35.269644
2021-01-25T20:52:43
2021-01-25T20:52:43
288,778,831
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from secrets import token_urlsafe from unittest import TestCase from unittest.mock import mock_open, patch from bubble_plot import ( Bubble, BubblePlot, Config, CSVWriter, Facets, LatexBubblePlotWriter, Occurrence, SplitXAxis, build_and_save_plots, compute_occurences_from, c...
UTF-8
Python
false
false
10,840
py
9
test_bubble_plot.py
3
0.502214
0.466605
0
324
32.45679
78
gzgdouru/python
12,438,225,306,629
5d0b8e4e60b889c159474cb456cf34c4470cf82c
cda789f0b106e3af6b6edf5896fcf3dafd39a2f2
/module/paramiko/test3.py
b23b0b3842d9b646cb188eedf03b825731fb28b4
[]
no_license
https://github.com/gzgdouru/python
ffe3ca3583dd505257aeb487909422e54cf4e270
469a18740a4b064215b6e3059bc3709008f61291
refs/heads/master
2018-09-20T07:40:01.303924
2018-08-23T03:17:29
2018-08-23T03:17:29
109,092,092
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding:utf8 import paramiko remoteHost = ("192.168.232.134", 22) # 实例化一个trans对象 trans = paramiko.Transport(remoteHost) # 建立连接 trans.connect(username="ouru", password="5201314ouru") # 实例化一个 sftp对象,指定连接的通道 sftp = paramiko.SFTPClient.from_transport(trans) # 发送文件 sftp.put(localpath='test1.py', remotepath='/usr/local/...
UTF-8
Python
false
false
463
py
179
test3.py
173
0.753149
0.692695
0
19
19.947368
76
birdsarah/core-hq
3,564,822,890,093
d14ce5fc022bcbb74d0b40449bc3cd22694a2e73
5a3130323f9427efee178c3133a7ebcb0123f65e
/corehq/apps/commtrack/tests/test_sms_reporting.py
0b7d8a4187a31d757b9cf0f9f05a945e27e25a39
[]
no_license
https://github.com/birdsarah/core-hq
c9676efe7d37bde65da3b8fdf29c5c46ca9d6fec
5318e8f850919d2bf5b45c3e5edb5a9627775aa7
refs/heads/master
2020-02-26T02:03:02.507694
2013-02-28T23:46:14
2013-02-28T23:46:14
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.utils.unittest.case import TestCase from corehq.apps.commtrack.helpers import make_supply_point,\ make_supply_point_product from corehq.apps.commtrack.tests.util import make_loc, \ bootstrap_domain, bootstrap_user, TEST_BACKEND from corehq.apps.commtrack.models import Product from corehq.apps.commtr...
UTF-8
Python
false
false
1,670
py
55
test_sms_reporting.py
41
0.634132
0.625749
0
43
37.837209
75
joab40/ChatterBot
11,304,353,954,419
6c347b1227ab0a8e3ed302e4169d4ba364a54946
780320060ee6238f46b81b83718a25a38a96a970
/chatterbot/adapters/logic/mixins.py
0585ca928658b1b7aa352883ef628ddf593dc17a
[ "BSD-3-Clause" ]
permissive
https://github.com/joab40/ChatterBot
828ed1ba0e9029dea8621d0227324bb4c8856559
3e5c8d5794a917420d58ede8b867041bbe1d5f6a
refs/heads/master
2021-01-17T18:03:59.151074
2015-12-30T00:58:36
2015-12-30T00:58:36
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class KnownResponseMixin(object): def get_statements_with_known_responses(self): """ Filter out all statements that are not in response to another statement. A statement must exist which lists the closest matching statement in the in_response_to field. Otherwise, the logic adapter m...
UTF-8
Python
false
false
3,131
py
4
mixins.py
4
0.628234
0.627276
0
89
34.168539
88
whyguu/style-transfer-tf
5,738,076,348,383
c4a1a0d34a0228aeab03905810233c455ebd63e4
df503e95219ce7b742dd0b445e15eb76ebe83143
/model.py
873c4715437b19a6e96c268545e9197bddb3c240
[]
no_license
https://github.com/whyguu/style-transfer-tf
9b21d393931cb8d97c08522f34b2d964d9fb096f
50c8ef6cb6149661ce503533ae9af0f94a4011a2
refs/heads/master
2020-03-15T21:09:25.777922
2019-05-08T08:19:46
2019-05-08T08:19:46
132,348,841
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf import numpy as np import os from skimage import io from skimage.transform import resize from collections import OrderedDict class TransferModel(object): def __init__(self): self.init_weight = np.load('./vgg19.npy', encoding='latin1').item() # ##############################...
UTF-8
Python
false
false
7,000
py
3
model.py
2
0.582429
0.552
0
145
47.275862
120
bomb1e/gotgit
4,406,636,467,142
087740bd99d8795ae9833150f4306e817222b5b9
7192da38b6afd3c60f80ccbecb3040cf34369ce3
/f44ec82e-d145-40ba-812f-e96c2ee46daa.py
895750de77d5337106e1f1390dae329f4677ebb4
[]
no_license
https://github.com/bomb1e/gotgit
6699fa9e6adb0a79f22441df41a102b09b78c2ce
3c14cb6d1d0c4cba6a1e24a9899462d2e4bee2ce
refs/heads/master
2020-06-12T06:00:34.695425
2018-08-01T02:00:02
2018-08-01T02:00:02
75,600,461
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import print_function def func57(arg307, arg308): def func58(arg309, arg310): var311 = arg308 ^ arg307 var312 = ((arg307 + -873) + ((-811 - (1631696821 - arg309 - arg309)) ^ (arg309 & arg307))) & (arg309 & (arg307 + var311) | arg309 | 498016551 ^ (((arg308 ^ arg310) & arg308) + 179) ...
UTF-8
Python
false
false
22,481
py
25,849
f44ec82e-d145-40ba-812f-e96c2ee46daa.py
25,848
0.579867
0.312264
0
608
35.976974
235
inovei6un/SoftUni-Studies-1
8,607,114,473,775
805852bf75d0ae92a7277041bf82e10adc1c2cf7
4d892dc51e2dda0fcce246ac608fc4e0ce98c52b
/FirstStepsInPython/Fundamentals/Exercice/Text Processing/04. Caesar Cipher.py
80c1cc2bfd0f29c9a4da32e7e51258aac3a78513
[ "MIT" ]
permissive
https://github.com/inovei6un/SoftUni-Studies-1
510088ce65e2907c2755a15e427fd156909157f0
3837c2ea0cd782d3f79353e61945c08a53cd4a95
refs/heads/main
2023-08-14T16:44:15.823962
2021-10-03T17:30:48
2021-10-03T17:30:48
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
line_input1 = input() result = '' for ch in range(len(line_input1)): result += chr(ord(line_input1[ch]) + 3) print(result)
UTF-8
Python
false
false
129
py
349
04. Caesar Cipher.py
345
0.635659
0.604651
0
8
15.25
43
benkev/alma
5,806,795,787,536
fea3ceb5b2d36d0cf3aaa7938e9b69d587df771c
deeba087efffc2b1645b45057813420698a3dee2
/old/simulated_obs_alma_large_incell.py
84e19b6d93c5838adc82e4918b004748a7f981bc
[]
no_license
https://github.com/benkev/alma
0f772ca16150d853731a9a25b3ccc09edf0f7ed2
8f8e2a66a3fc051d5a2471ecadc9a30da6c0720b
refs/heads/main
2023-03-29T09:38:14.074744
2021-03-30T22:29:46
2021-03-30T22:29:46
332,064,741
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# # Use to generate a simulated ALMA image of the data set # RoundSpottyDisk1.fits. Uses 2-hour continuous integrations. # Noise assumes 10GHz BW, dual pol. # import os projectn= 'alma_large_incell_0.02048' skymodeln='/home/benkev/ALMA/RoundSpottyDisk2.fits' simobserve(project=projectn, skymodel=skymodel...
UTF-8
Python
false
false
1,472
py
17
simulated_obs_alma_large_incell.py
13
0.618886
0.586277
0
42
32.952381
75
druids/developers-chamber
9,775,345,603,873
b19bd1205bd8e578e7d8a175607ccf094bcdc7f9
8b20e14613b9f9d430d66ba32fc4190edda27c49
/developers_chamber/git_utils.py
517105c1731429e6658728f18d5091905547bf37
[ "MIT" ]
permissive
https://github.com/druids/developers-chamber
ff31ce933854f54396ab666ac9feec964fa262ec
728657d2c9e5e06d9942cc74c544f29e64cea3a8
refs/heads/master
2023-08-17T08:33:53.007182
2023-06-26T15:46:07
2023-06-26T15:46:07
203,990,722
10
11
MIT
false
2023-09-06T18:10:47
2019-08-23T12:05:08
2023-08-19T10:19:44
2023-09-06T18:10:44
215
8
11
5
Python
false
false
import re import git from click import BadParameter, UsageError from git import GitCommandError from .types import ReleaseType from .version_utils import bump_version DEPLOYMENT_COMMIT_PATTERN = r'^Deployment of "(?P<branch_name>.+)"$' RELEASE_BRANCH_PATTERN = r'^(?P<release_type>(release|patch))-(?P<version>[0-9]+\...
UTF-8
Python
false
false
4,784
py
37
git_utils.py
30
0.644231
0.642768
0
163
28.349693
105
nlake44/GAEBenchmark
6,176,162,996,959
120a6535ea0cb7c82c160d3acd23d18261de6844
af28787e10af63f400eca759b3c23d88aa4c9a00
/wordcount/__init__.py
44f4d7d232f5107ec1e48ab9d67cdfaeadb5038d
[]
no_license
https://github.com/nlake44/GAEBenchmark
055d33b747ed4c88739200bdd7aab5568e3c1022
66f7a7886d216cb35cfaf0cdbd4690f0288a8af0
refs/heads/master
2021-01-01T18:54:50.622118
2011-11-24T00:31:20
2011-11-24T00:31:20
2,693,753
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging from data.wordcount import WCDataSet from data.wordcount import get_result_query from data.wordcount import WCResults from records import Record from google.appengine.ext import db from google.appengine.ext import webapp from google.appengine.ext.webapp import util from google.appengine.ext.webapp import...
UTF-8
Python
false
false
5,434
py
32
__init__.py
24
0.600478
0.58594
0
159
33.163522
94
Schnee-Cy/AntMark
10,127,532,896,942
0be3b28d47053ec37420156299ebbb1b8d62ea35
dbd6c2e7eb370a139120a707dbddcc7def985531
/users/migrations/0013_message_msg_type.py
7822c75613b4150660e8e3b2855555e1c64d400f
[]
no_license
https://github.com/Schnee-Cy/AntMark
e41c3d2438ed970f224c906cef50c06804f33f97
59afc724ccb27561b74140202ee114fdea651284
refs/heads/master
2020-05-09T10:18:00.818948
2019-05-15T03:34:07
2019-05-15T03:34:07
181,036,476
1
0
null
true
2019-05-14T03:25:09
2019-04-12T15:35:19
2019-05-08T07:59:44
2019-05-14T03:25:09
32,019
1
0
0
Python
false
false
# Generated by Django 2.0.3 on 2019-04-23 22:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0012_auto_20190423_2215'), ] operations = [ migrations.AddField( model_name='message', name='msg_type', ...
UTF-8
Python
false
false
480
py
67
0013_message_msg_type.py
26
0.58125
0.5125
0
18
25.666667
145
ameet123/SchemaMatching
19,052,474,932,908
5001fdb3743404107225930ff3f10c05210565da
2db2fbf17c906617bd0e55632698b7c0c8c01c99
/PrecisionRecall/Scoring.py
0c23a9447e81a3a8c66323b73f93c7a21087c348
[]
no_license
https://github.com/ameet123/SchemaMatching
b0daa0f78d49319e18f37f1668ee2126b1784255
72a77b3f95a4f2d539fdeccec09a0061dd9ecd76
refs/heads/master
2021-04-18T11:00:11.652187
2020-03-31T21:04:49
2020-03-31T21:04:49
249,537,339
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Precision and Recall import pandas as pd import csv from collections import defaultdict import operator csv_file_1="C:/Users/Shruti Jadon/Desktop/DatabaseProject/PrecisionRecall/FinalSOM_edit_45.csv" csv_file_2="C:/Users/Shruti Jadon/Desktop/DatabaseProject/PrecisionRecall/FinalSOM_edit_50.csv" csv_file_3="C:...
UTF-8
Python
false
false
3,825
py
180
Scoring.py
23
0.613595
0.599477
0
98
36.234694
95
DMWillie/Leetcode
1,769,526,539,840
2fe43f483bda931b082950445690d0c107b3c6b0
6f1703737438600cb91c89ee52c6e1409a78ae13
/DecimalToBinary.py
c5908366a7b16937633eb3629c72e079930b4b2f
[]
no_license
https://github.com/DMWillie/Leetcode
5393c243f10a58b6dd2e37d09042a116ed5a49f6
5e9ec62c160974c6048693d952e6a3a60a4bdf12
refs/heads/master
2020-04-26T07:40:27.888959
2019-03-02T03:52:06
2019-03-02T03:52:06
173,400,356
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding:utf-8 -*- __author__='Willie' """ 由于字符串str并没有相加,例如''+1这样调用是错误的, 也并没str(1)将整数变为字符串这样的函数 所以将整数变为字符串可以利用格式化这样的方式 """ #十进制转换为二进制 def dtob(n): result='' list1=[] while n>1: m=n%2 n=n/2 list1.append(m) list1.append(1) while list1!=[]: result=result+'%...
UTF-8
Python
false
false
611
py
8
DecimalToBinary.py
7
0.573696
0.546485
0
23
18.130435
46
junweinehc/Python
13,718,125,560,516
d51320797309ca5cdde896aedf9d65c78cfbefa1
463e60e6af874c96bfa01f48156c648f63878614
/Projects/email_sending.py
0900c68d98babe78756c21770b8ea4825249dca1
[]
no_license
https://github.com/junweinehc/Python
642e9f773cca446d667124584dd38692af98e90f
8390d0a3ae36a4f60df9fbf414c73e6c21a2e828
refs/heads/main
2023-04-20T11:10:17.821976
2021-05-24T06:29:08
2021-05-24T06:29:08
321,553,438
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
Python 3.7.4 (v3.7.4:e09359112e, Jul 8 2019, 14:54:52) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license()" for more information. >>> import smtplib sender_email = "" rec_email = "" password = input(str("Enter your password: ")) message = "HI m python" server = smtplib.SMTP('sm...
UTF-8
Python
false
false
514
py
5
email_sending.py
3
0.700389
0.63035
0
17
29.117647
72
gaurav0529/Python_Questions
8,383,776,198,711
c9a167fd7278dad134efa8a51a26a51d46e42860
3adfb9361759ed087053098039f3fb28066c2ed5
/Loops and Conditional Statements/Ques14_loop&cond.py
5b604a693e038808f05416505c2713c705fda4d1
[]
no_license
https://github.com/gaurav0529/Python_Questions
7f8b13e8cb9893b075b273fee44d934ad0b8938e
9fd8140cc998d5e9bffd5c314e8f4140a47f2acf
refs/heads/master
2020-06-12T18:30:24.076761
2019-07-04T08:33:01
2019-07-04T08:33:01
194,388,168
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print("Question 14") print("Enter String") a=input() l=len(a) alp=0 dig=0 print(l) for n in range(l): b=a[n] if b.isalpha()==True: alp+=1 if b.isdigit()==True: dig+=1 print("Letters",alp) print("Digits",dig)
UTF-8
Python
false
false
236
py
53
Ques14_loop&cond.py
53
0.576271
0.550847
0
15
14.733333
25
shishanshanTest/sinazixuan
5,918,464,966,931
9793371d382dd3f46d3dbd0d0244ee039b1f4a1c
f158797859809ea580632d28d3f8293ade52814f
/test/test_zixuan.py
7e02b2bce0fcd00dc13a8199fb515d84a9e0ef08
[]
no_license
https://github.com/shishanshanTest/sinazixuan
49f153308b9c9159ee3f88cbd4ef75951a1aeb51
6853938fdc24c175323dae59beb4b94b1c4ea123
refs/heads/master
2020-05-20T01:55:53.543884
2019-05-07T03:17:10
2019-05-07T03:17:10
185,320,515
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# !/use/bin/env python # -*-conding:utf-8-*- #author:shanshan import requests,unittest,random from base.excel_json import * from base.get_path import * from base.read_excel import * # class zixuan(unittest.TestCase): # yincang_type = 'us' # # def setUp(self): # pass # # def tearDown(self): # ...
UTF-8
Python
false
false
3,932
py
6
test_zixuan.py
6
0.51473
0.500803
0
115
31.469565
77
faustind/advent_of_code_2020
5,385,889,005,076
549e5674bcbd223122b3f760f3fc8626ebfa8083
d02b82284cd2f2ac9465ebe0b871c80b522ca4c5
/day6/main.py
69bcc781a04c831810a990c0a9a325e7476ad54b
[]
no_license
https://github.com/faustind/advent_of_code_2020
a5a4fa461a467d0fec33959e3ed36d70a9de7e23
11876e61957caa9cb480365c34237ce46970d4c0
refs/heads/main
2023-02-23T16:43:05.204213
2021-01-31T23:27:50
2021-01-31T23:27:50
317,677,838
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import collections def row(): r = input() if all(c.isspace() for c in r): return "" else: return r def read_g(): global finished g = collections.Counter() n = 0 r = row() while r: n += 1 # nmembers in g g.update(r) try: r = row() ...
UTF-8
Python
false
false
798
py
15
main.py
13
0.484962
0.477444
0
50
14.96
60
stellating/Draw_InterestPlot
747,324,309,549
83b49765062c0c60d7ab8de83eddccbe7ebff518
b8e7e6427d46bfd05de4859d9710afefd28c0877
/python_plt20190313/stella_plt.py
d4020f19aeddf111b90f3c62b186fc25af3a69d8
[]
no_license
https://github.com/stellating/Draw_InterestPlot
eaf2732b948bd8ecca72684ea43354525337752f
0843cdc8dc432fb02409a47e15017b393b14a91a
refs/heads/master
2020-04-28T14:58:35.733469
2019-03-13T13:05:23
2019-03-13T13:05:23
175,355,384
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import pandas as pd # 设置横纵坐标的名称以及对应字体格式 font1 = {'family': 'Times New Roman', 'weight': 'heavy', 'size': 20, } plt.rc('font', **font1) # pass in the font dict as ...
UTF-8
Python
false
false
4,694
py
4
stella_plt.py
1
0.624538
0.580869
0
129
31.550388
150
anlu1601/openAI_gym_Q_Learning
9,835,475,108,361
dd96cddcd519e68c3ec9b2d008469b2a08245916
242afaf93335669f324c5ba7040bf54ebf95b2df
/sim.py
656ca17f7e341b3ba4b4487556bdc5a1ac3902bc
[]
no_license
https://github.com/anlu1601/openAI_gym_Q_Learning
78705ef65fe0dec2c0b82c8b75501c2219da3d8e
6b0a86b0a0b43baac18b6ee46518af2b3078fd02
refs/heads/master
2023-05-06T07:07:42.044520
2021-05-31T08:12:47
2021-05-31T08:12:47
372,430,133
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from random import seed from random import random seed(1) # 1 day ~ sin(0.02x + 5) * 10 + 30 import math def sim_curve(x, phaseshift, amp): # phaseshift default -/+ 1/2 pi pi = math.pi period = (2 * pi) / 365 y = math.sin(period * x + phaseshift) * 10 + amp #print(y) return y def sim(x, range...
UTF-8
Python
false
false
729
py
7
sim.py
6
0.545953
0.521262
0
32
21.8125
52
damarkrisnandi/CP_With_Python3
1,778,116,462,969
734815481f70797bd98ebae506fc71b1ecf446a0
9e57349fdeff7e687a389a16c4e5a9929d4ec80f
/codeforces/210129_edu103/a.py
43906bb3ac44f0f528f3fd9f9e4fce3947c725fa
[]
no_license
https://github.com/damarkrisnandi/CP_With_Python3
33f1e31ed27d20de9e3e3e1b26a63382f36bf1f3
fbb4ddea8f68d97f07133c1569dfdb9cff748bef
refs/heads/master
2023-04-12T20:17:16.911071
2021-04-20T10:18:59
2021-04-20T10:18:59
359,771,853
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from math import ceil t = int(input()) while t>0: t-=1 n,k = list(map(int, input().split(" "))) if n > k: mult = int(ceil(n/k)) k = k * mult print(int(ceil(k/n)))
UTF-8
Python
false
false
195
py
34
a.py
34
0.487179
0.476923
0
10
18.6
44
gabriellaec/desoft-analise-exercicios
8,186,207,673,782
864d33c26b2402d0705695c52e76bfd9382e3b66
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_185/ch32_2019_04_01_18_01_02_339841.py
578b0bd9b3232c016af4d7283aa23a58dbc230c5
[]
no_license
https://github.com/gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
dúvida = input("Você tem dúvidas? (sim/não)") while dúvida != "não": if dúvida != "não": print("Pratique mais") dúvida = input("Você tem dúvidas? (sim/não)") print("Até a próxima")
UTF-8
Python
false
false
219
py
35,359
ch32_2019_04_01_18_01_02_339841.py
35,352
0.585366
0.585366
0
6
32.5
53
eurialdo/EditordeImagem
18,605,798,344,397
fab3401ad0ce9b3fce78a5c3f6b6e81d8b792b13
1894e19eb44c4b17ef59dc8af55186c2c9f6e76f
/MudarTam_Imag.py
2be4ae9e6e668ff25713bfa1991733d6af37f923
[]
no_license
https://github.com/eurialdo/EditordeImagem
826c81df254800d4bf438bf1986adcecac32e076
cf6a3f2a2ed779b5a85867efc4286e2ef1c8d5c6
refs/heads/master
2020-09-21T20:32:23.013087
2019-11-29T20:36:35
2019-11-29T20:36:35
224,918,988
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import getopt import sys import logging from filtro_Imag import ajustarImag logger = logging.getLogger() def init(): args = sys.argv[1:] if len(args) == 0: logger.error("-p não pode estar vazio") raise ValueError("-p não pode estar vazio") logger.debug(f"run with params: {args}") ...
UTF-8
Python
false
false
1,530
py
5
MudarTam_Imag.py
5
0.561518
0.560209
0
65
22.492308
120
Haymaekr/PythonProjects
206,158,460,005
843a1430bd0c7366152f504c53f7eca4ea4a9432
3b271425a1b180b8dadbd2c716f7cec03f0efd6e
/WebScraper/scraper.py
1c626533a7387774b3c29a6f21f31c8afacce47e
[]
no_license
https://github.com/Haymaekr/PythonProjects
8a8424eaa0219c5b1b542cf6c79f35b5ea6960d8
bb940b497d62c0464238ee3d72f3f68df5dc579e
refs/heads/master
2022-11-08T15:25:33.313902
2020-06-20T05:25:18
2020-06-20T05:25:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests from bs4 import BeautifulSoup import pprint res = requests.get("https://news.ycombinator.com/") soup = BeautifulSoup(res.text,"html.parser") links = (soup.select('.storylink')) subtext = soup.select('.subtext') more = soup.select('.morelink') more_link = more[0].get('href') print(more_link) res2 = req...
UTF-8
Python
false
false
1,050
py
16
scraper.py
12
0.692381
0.679048
0
41
24.634146
64
swastikkalyane27/assinmentNo1
2,422,361,603,815
d5e01d70cb9f1065ea6b947d157df3962090232d
aeddc21a0017a03ea0b0c96fdf032f37510f4ad1
/60. keys having multiple input.py
2d710c91598a813b781ad63da2c5878b40e4f7cc
[]
no_license
https://github.com/swastikkalyane27/assinmentNo1
64df7a3ad5e0c8c32ead9017b2d6d5b19b702800
0c669a59695910909fd6da2e2e6e07d82b2f5855
refs/heads/master
2023-06-09T15:51:46.265821
2021-06-26T07:17:39
2021-06-26T07:17:39
376,775,055
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: my_dict = {} a, b, c = 15, 26, 38 my_dict[a, b, c] = a + b - c a, b, c = 5, 4, 11 my_dict[a, b, c] = a + b - c print("The dictionary is :") print(my_dict) # In[6]: # dictionary containing longitude and latitude of places places = {("19.07'53.2", "72.54'51.0"):"Mu...
UTF-8
Python
false
false
633
py
34
60. keys having multiple input.py
34
0.587678
0.516588
0
44
13.295455
86
Neural-Finance/fully-connected-nn
8,143,258,039,272
a7a3044216a621e6e5cecf496043d860ba6c1d10
3ed14fbdbfdd4b247b823bd63f6436da5f6e88e5
/data_handlers.py
64e8be3ab5758ad2db051c060323f39fb950042a
[ "MIT" ]
permissive
https://github.com/Neural-Finance/fully-connected-nn
7e4f10790aa86227870ab6499aab9982e2748487
831ecedc632d2a68bc6e28d7b335985460907ce3
refs/heads/master
2021-06-23T05:27:40.900170
2017-07-28T11:53:48
2017-07-28T11:53:48
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import numpy as np from sklearn.preprocessing import LabelEncoder from sklearn.cross_validation import train_test_split def prepare_dataset(dataset): ''' This fucnction is used when you have strings in dataframe. It is using LabelEncoder to transform columns from dataframe into columns encoded...
UTF-8
Python
false
false
1,786
py
11
data_handlers.py
5
0.705487
0.702128
0
70
24.528571
100
mkan0141/NLP-100-knock
5,325,759,452,374
1bbab2a57a4fcfd7f9a201b613dc41b304debce6
57410d3d4a37482420323eadf6737fe4e71bfb68
/chap02/01.py
b269d4ef444ba1c4b86ba7fcf47b331b694a798a
[]
no_license
https://github.com/mkan0141/NLP-100-knock
d39fe825b1a43335123e0c3e6a28038af48148e0
f0251306029b220e718ad5606b96cb8e7d311a50
refs/heads/master
2020-03-16T18:49:18.878389
2019-03-29T13:09:47
2019-03-29T13:09:47
132,888,065
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
str = 'パタトクカシーー' print(str[::2])
UTF-8
Python
false
false
49
py
44
01.py
43
0.606061
0.575758
0
2
15.5
16
amm0day/FastApi-template
19,456,201,874,344
0a8800d1f348bb84a6b7a491dca3468d4dca0816
c65498118ad9b21d8d2f36f4c25ebcdb042b97eb
/app/core/config.py
5e7d32080d78529199f2e39922891b2e9babe8ea
[]
no_license
https://github.com/amm0day/FastApi-template
76fead044c0955ea2c96a7ed8f0d8273d19d1d6f
287fc3e365ee1a2dddf9604d75d55285ed0b4135
refs/heads/master
2023-02-19T13:15:21.339048
2022-11-13T22:46:47
2022-11-13T22:50:29
328,949,798
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging import sys from loguru import logger from starlette.config import Config from app.core.logging import InterceptHandler config = Config(".env") VERSION = config("VERSION", cast=str, default="0.0.1") DEBUG: bool = config("DEBUG", cast=bool, default=False) API_PREFIX: str = "/weather" PROJECT_NAME: str ...
UTF-8
Python
false
false
967
py
16
config.py
12
0.752844
0.723888
0
29
32.344828
104
gfYaya/yayaPython
17,678,085,427,978
5f82040fd74c8ded485db3a6b82cb40b6fbcdc81
1f9e8dfbe7e33e19f31865d84ebbdccecaa071ea
/fluent python/chapter 7 Function Decorators and Closures/Closures.py
4a50869cb07206eaad52717f222b82d8baef42dd
[]
no_license
https://github.com/gfYaya/yayaPython
09fe2aaaa090d78f2f1322843201c7f7aaff3afc
c994f5652ef7c747a2d20d461fdb99471d626f36
refs/heads/master
2020-07-09T18:09:53.719306
2017-08-28T07:21:57
2017-08-28T07:21:57
74,029,034
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding = utf-8 # Example 7-8. average_oo.py: A class to calculate a running average class Averager: def __init__(self): self.series = [] def __call__(self, new_value): self.series.append(new_value) total = sum(self.series) return total / len(self.series) avg = Averager() p...
UTF-8
Python
false
false
992
py
111
Closures.py
108
0.652218
0.617944
0
48
19.666667
81
jessicagamio/tree_finder
14,010,183,357,638
764bc07396e7e351eac75d374dd8b85a62535632
1a84492a33b8dd85a7f55ec18d92cef74d65d174
/seed.py
90acdba3737239fbbd9110f222115b4d803c156a
[]
no_license
https://github.com/jessicagamio/tree_finder
f20ada3306d4ff16356efe36bd03ef5fa1195381
05308d95d62187206a0aac5eff85c44667b072e5
refs/heads/master
2022-12-09T18:41:33.670223
2020-01-16T02:34:52
2020-01-16T02:34:52
201,641,804
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sqlalchemy import func from model import TreeSpecies,Tree,User, Hugs, connect_to_db, db from server import app import json if __name__ == "__main__": connect_to_db(app) db.create_all() def create_species(): """create tree_species table""" tree_species = {} # Create TreeSpecies scientif...
UTF-8
Python
false
false
5,010
py
20
seed.py
9
0.621557
0.618962
0
161
30.093168
183
apsureda/gcp-group-manager
11,166,914,970,602
095e9059c3641324ccf5d4a10568b71f32440cd8
f0ae6f71dc9f7debe4c60d6b71dd82043018a2cc
/scripts/tf_generator.py
9b186aec2f46ebd270ebb619292db730e0190f12
[ "Apache-2.0" ]
permissive
https://github.com/apsureda/gcp-group-manager
69c1bbd817e5ffd926480c6a77461cd99dac32c0
01088c4bf07dbf47a7bd134973f037055ee28d72
refs/heads/main
2023-07-02T04:01:18.469332
2021-07-30T09:16:52
2021-07-30T09:16:52
390,943,144
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python """Generate Terraform configuration files from a set of predefined templates. Copyright 2021 Google LLC. This software is provided as-is, without warranty or representation for any use or purpose. Your use of it is subject to your agreement with Google. """ import os import sys import shutil impo...
UTF-8
Python
false
false
11,478
py
33
tf_generator.py
7
0.658216
0.656125
0
283
39.558304
176
Vagacoder/Python_for_everyone
16,939,351,031,736
eea9344b03ebe54c9727d8ec1539e001fe3db9e0
256746f29f9995accd4fee35b9b8981264ca2e37
/Ch12/insertionsort.py
688c85b05a766efe381a80b7d72be8b3c9516632
[]
no_license
https://github.com/Vagacoder/Python_for_everyone
adadd55561b2200d461afbc1752157ad7326698e
b2a1d1dcbc3cce5499ecc68447e1a04a8e59dc66
refs/heads/master
2021-06-22T00:26:02.169461
2019-05-25T16:06:04
2019-05-25T16:06:04
114,508,951
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
## # The insertionSort function sorts a list, using the insertion sort algorithm. # # Sorts a list, using insertion sort. # @param values the list to sort # def insertionSort(values): for i in range(1, len(values)): next = values[i] # Move all larger elements up. j = i while j ...
UTF-8
Python
false
false
474
py
505
insertionsort.py
453
0.552743
0.542194
0
21
21.571429
79
HiTpXRD/on_the_fly_assessment
18,365,280,158,054
2f66a666a07429501d35fc0e96ae606f94819333
687e880be98bbed202f37711c9cc55d4a88d9062
/peak_detection_ridge_finding_single_image.py
b956886f5c641b0bc9846975b0f1595b3433a23a
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
https://github.com/HiTpXRD/on_the_fly_assessment
3faac6682b4a9eef87b7425fa7d9894ea674aeb9
efc58b1a6cfe2b21d00a957a6c7bb59158404149
refs/heads/master
2020-04-06T04:01:21.119064
2017-02-11T07:40:38
2017-02-11T07:40:38
83,074,501
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Nov 17 2016 @author: Fang Ren """ from scipy.signal import cwt, ricker, find_peaks_cwt import matplotlib.pyplot as plt import numpy as np import glob import os from os.path import basename from scipy import ndimage path = 'C:\\Research_FangRen\\Data\\July2016\\Sample1\\Process...
UTF-8
Python
false
false
1,810
py
6
peak_detection_ridge_finding_single_image.py
5
0.671823
0.621547
0
66
26.424242
115
darghex/PARCES-WS
6,768,868,470,216
ea79c50fd22aba1bcb4b879ae138bfb2f5fffb18
c7b44381f18d87cd96f4c25e97af91c1a2e379fd
/estudiante_views.py
fcccc547dfcab4b0304ea81a08fb342b1c14c76f
[ "Apache-2.0" ]
permissive
https://github.com/darghex/PARCES-WS
1d479386ee2fb8b7614fe5a28747f65926362f6a
494ab92f7d894cac2d5cdc25092f1a777622ba62
refs/heads/master
2016-09-08T02:33:14.559217
2015-01-24T14:04:28
2015-01-24T14:04:28
29,776,256
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python from flask import request from main import app, session, IES_REST_URL from db import instancias_curso, propuestas_matricula, actividades, calificaciones, asignaciones import json import requests from sqlalchemy import and_ @app.route("/instanciascurso/<int:curso>/",methods=['GET']) def view_instanci...
UTF-8
Python
false
false
2,969
py
9
estudiante_views.py
8
0.72516
0.721455
0
96
29.927083
256
brianmanderson/Local_Recurrence_Work
13,821,204,772,262
987bc49c10e168159cd03a38d5c0832949cff4e5
f79cb10d124eb74970a3efb2dbb1e69e7f2afbce
/Outcome_Analysis/PreProcessingTools/RaystationTools/Update_Exam_Names_Local.py
b2d804052df4b0b052b7f8ca2888873ef04de99b
[]
no_license
https://github.com/brianmanderson/Local_Recurrence_Work
6225580415043a8d96ac5d56b784183f7779f9df
92a7fb3cdccf0fea00573bb96ceec12aed4d62c5
refs/heads/main
2021-06-22T21:47:17.399210
2021-05-27T16:40:28
2021-05-27T16:40:28
226,168,022
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'Brian M Anderson' # Created on 4/14/2021 """ This is code created to update the exam names in our excel sheets and folder paths Exam names changed after the migration from General database to Brocklab database This script will create a text-file in each folder with the SeriesInstanceUID as well as what e...
UTF-8
Python
false
false
1,184
py
65
Update_Exam_Names_Local.py
62
0.610642
0.602196
0
33
34.878788
119
shashank-subex/datum
4,028,679,360,883
2297296a9602eaa2ce4e8a2ae242bea0fcb15b47
9607f45b501c62d0500536e14d134a1aca0a6982
/datum/reader/dataset.py
4fde60fee62d1a55b3d928eb4bda663c32123daa
[ "Apache-2.0" ]
permissive
https://github.com/shashank-subex/datum
b8fb552d4180ea3ee6345fa6bf4a2620231c7601
089b687fc569c8c6ce613349297997c67ce40c7a
refs/heads/master
2023-05-28T01:00:04.701429
2021-06-10T11:13:38
2021-06-10T11:13:38
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright 2020 The OpenAGI Datum Authors. # # 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 ...
UTF-8
Python
false
false
8,313
py
49
dataset.py
43
0.645375
0.644051
0
204
39.75
99
Galva101/PDF-Tools
12,223,476,931,612
5ce0a547d04d7afd2319683d2bf8be86a7b920a1
7d03b65a782bcaf7bf93210d14c3c3f1e44a34dc
/cropMargins.py
02e47ea21efefa75ea3d9dd28ee31ed4c27b98c0
[ "MIT" ]
permissive
https://github.com/Galva101/PDF-Tools
3a7459345922a03ddcb46d97f6028d6052bf562e
6ee41433efaf1a7db497132a46c610a1c83d1bb0
refs/heads/main
2023-03-01T13:44:39.351147
2021-02-17T13:07:45
2021-02-17T13:07:45
338,324,216
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import subprocess import os dir_path = os.path.dirname(os.path.realpath(__file__)) def list_files(directory, extension): return (f for f in os.listdir(directory) if f.endswith('.' + extension)) pdfs = list_files(dir_path, "pdf") for pdf in pdfs: print("editing "+str(pdf)) subprocess.call('pd...
UTF-8
Python
false
false
368
py
6
cropMargins.py
5
0.646739
0.646739
0
13
26.307692
76
Gibbo81/LearningPython
3,135,326,151,428
02344fd860701b353d61272083a5c2ed62e1c87f
60cf62347e0f4c508d428e7518e16858cf2b1d86
/LearningPython/files31/UpperCase.py
fabc8a4c35a7842ff09eb9b1da58b559f6334e11
[]
no_license
https://github.com/Gibbo81/LearningPython
064df9abbb645b7041e052ed594e7650dc2d0f86
6ae3022aa60a9e5c0c5cf7f91f058f255911510e
refs/heads/master
2021-03-08T19:43:53.776245
2017-06-28T12:16:40
2017-06-28T12:16:40
52,823,469
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
if __name__ == '__main__': import Processor as p else: #it take the relative position from the master!!!!!! in this case 31DesigningWithClasses.py import files31.Processor as p import sys #to avoid this problem it will be batter to have a directory for all the file to do not have problem class Upp...
UTF-8
Python
false
false
671
py
74
UpperCase.py
65
0.660209
0.648286
0
17
38.470588
124
dzlab/docker-aws
7,971,459,305,516
79188d3e836eabf4bd3be4e72893a0d64a3825b5
c75fbf3b63c9019a9b93232cad2f041a2455a5c4
/demoapp/app.py
515d992cb614d5b810f20fda4f6c119db9fe24dc
[ "MIT" ]
permissive
https://github.com/dzlab/docker-aws
e7e05806b8ad6387662b9407c0ae72b7f2afce79
e855cd917c8ffa7d79f4d44b4b57d4d194b077c1
refs/heads/master
2021-01-10T12:26:56.253767
2016-08-26T14:39:46
2016-08-26T14:39:46
47,754,967
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask, render_template from redis import Redis import os app = Flask(__name__) redis = Redis(host='redis', port=6379) server_name = os.getenv('SRV_NAME') server_health_key = '{0}_health'.format(server_name) @app.route('/health/on') def health_on(): redis.set(server_health_key, 'on') return '...
UTF-8
Python
false
false
902
py
13
app.py
5
0.63969
0.620843
0
35
24.771429
65
lhammond/ee-meter
3,667,902,106,978
7a5a99eb0f1af042fbe5a4bee2d4deaf11e8e364
7a1b34fa1f66e42429307238600c821b688eae9e
/scripts/fetch_ncdc_normals.py
a86701910117e077e1f9a04dba4ccaa08a2a1ce7
[ "MIT" ]
permissive
https://github.com/lhammond/ee-meter
91588c31088e257a890431bb8e898da70224af09
50ad19eb000b64816502cda5eb9ce4841b710afa
refs/heads/master
2020-12-25T17:45:12.560357
2015-04-17T17:26:17
2015-04-17T17:26:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
################## # # Or just use: # # wget -r ftp://ftp.ncdc.noaa.gov/pub/data/normals/1981-2010/products/station/ # ################## from ftplib import FTP import argparse import os if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("data_dir") parser.add_argum...
UTF-8
Python
false
false
943
py
20
fetch_ncdc_normals.py
16
0.59491
0.576882
0
37
24.486486
110
mapostolides/methylseq
10,771,777,988,451
0e0f457af30ac00bbee0e51ea98c48e956298502
2ac9a8ae51ecdb9116aff3bbe01e4747bdbbf71c
/pipelines/pacbio_assembly/pacbio_assembly.py
759c0db0b2c00bf854b355fd5ce3db20127db129
[]
no_license
https://github.com/mapostolides/methylseq
434268ee6f917609ca0749dc34b550faaecab0d7
4d7a8565279518fd70e4c6240d022748498dfbba
refs/heads/master
2020-05-14T07:59:02.779506
2019-04-16T17:17:32
2019-04-16T17:17:32
181,713,903
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python ################################################################################ # Copyright (C) 2014, 2015 GenAP, McGill University and Genome Quebec Innovation Centre # # This file is part of MUGQIC Pipelines. # # MUGQIC Pipelines is free software: you can redistribute it and/or modify # it und...
UTF-8
Python
false
false
45,177
py
40
pacbio_assembly.py
15
0.548266
0.5451
0
831
53.364621
530
aaronchall/HTML5.py
5,111,011,123,828
bdf86e53b67197c6c8bd2596d874cc2383139e0f
c882c9e06cf8453e23c75cdc0e830197328c90e2
/tests/__main__.py
e8947d7303fffd37aeaa9b4a002520e313cba575
[ "MIT" ]
permissive
https://github.com/aaronchall/HTML5.py
0e6b795f70124a1f2d6ede01f683793d570552b5
ccff1451214adf2d9147a3e253f49e757da5297f
refs/heads/master
2021-01-10T14:45:00.103592
2017-11-16T00:26:21
2017-11-16T00:26:21
45,585,228
3
2
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import print_function, division, absolute_import import unittest import sys sys.path.append('../') from __init__ import * print('loading __main__.py') def main(): unittest.main(exit=False) if __name__ == '__main__': main()
UTF-8
Python
false
false
253
py
12
__main__.py
8
0.636364
0.636364
0
16
14.8125
64
khanhquoc2920/vidugit
6,425,271,085,153
2af47eca0233c206f0393b3c80aa2b036ad14b61
967eb01e56358d219b9d590aef030be25e0eb0cb
/ex1.py
4f883d0d4b796fd8654f589c1f5ab62e1cc79012
[]
no_license
https://github.com/khanhquoc2920/vidugit
af3ebf8db7605d150aef7ebcd4e06d9838e15b61
7af6e2a2fcdab2146fd8a6de4d356a73930319e4
refs/heads/master
2023-08-25T15:27:36.337219
2021-09-23T08:32:01
2021-09-23T08:32:01
407,063,558
0
0
null
false
2021-10-04T04:21:36
2021-09-16T07:19:30
2021-09-23T08:32:04
2021-10-04T04:21:01
5
0
0
2
Python
false
false
print(type(0xFF))
UTF-8
Python
false
false
17
py
11
ex1.py
11
0.764706
0.705882
0
1
17
17
ZiamakEzzat/MyFirstRepo
17,824,114,316,647
a6687737a89d9f13876f2ba03d934932c8cb944a
d75b292e508dd5a5b9a4b4ec4304cb011ff20be6
/unit-list/main.py
ddac79d20f04911e0afed56f9c65c91dd6e01bec
[]
no_license
https://github.com/ZiamakEzzat/MyFirstRepo
6ea13dcdf0357e0d1f39fe97957aae02bbc00d29
fee6a98f5217ae0061e783627be83b25b1d838d8
refs/heads/master
2021-01-01T17:11:55.967044
2017-07-23T20:42:35
2017-07-23T20:42:35
98,019,946
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def test(): return 5 #add([10,20,30],[1,2,3]) ==> [11,22,33] #x1+x2 def add(x1, x2): c=[] if len(x1) == len(x2): for a, b in zip(x1, x2): c.append(a+b) else: return [False] return c #x1 - x2 def sub(x1, x2): c=[] if len(x1) == len(x2): for a, b in zip(x1, x2): c.append(a-b) else: return...
UTF-8
Python
false
false
442
py
5
main.py
5
0.497738
0.393665
0
34
12.029412
39
zenghui0-0/tempfile
6,339,371,775,906
d8e40124ca716adb39544cc8603c6b99c68e4c35
fa3ce9f31523d3e86019762ef8be58923db5bc1a
/script_2021/run_3dmark_memtest_reboot.py
f85d0358a4707d8c936ca098831397a6ab325607
[]
no_license
https://github.com/zenghui0-0/tempfile
f3eeeaa9a39a3fe7059be1c8f12fb0e9aa8c8c26
38295cf1c709dd854061d9c6d5f1c7d0ed132da5
refs/heads/master
2021-09-20T20:39:48.647211
2021-08-23T05:07:08
2021-08-23T05:07:08
186,854,937
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import sys import time import threading import conplyent class RUN(object): """ connect was needed """ def __init__(self, ip, port, testName="Undefined tests", timeout=60): self._ip = ip self._port = port self._testName = testName self._timeout = timeout ...
UTF-8
Python
false
false
9,678
py
4,998
run_3dmark_memtest_reboot.py
3,292
0.513536
0.499483
0.000207
263
35.798479
190
amchii/Python-Exercises
7,670,811,613,240
a0f6e5da3d0cfc1afb4921b3a41c8cbb82dd9529
a09d7a38481c733ba91627aeb269cb7088aee91c
/25语音识别/test.py
24b27892d6be8e8e69776ec0039fd402377d414f
[]
no_license
https://github.com/amchii/Python-Exercises
c981b9c62870d712c0ff273e38d738d55bd69201
6aa3039870c492feaa080e1009c14ba9f9c9691e
refs/heads/master
2020-04-10T09:04:04.282262
2019-01-10T07:47:50
2019-01-10T07:47:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Date : 2018-12-02 12:09:49 import wave,requests from pyaudio import PyAudio, paInt16 import time framerate = 16000 # 采样率 NUM_SAMPLES = 2000 # 采样点 channels = 1 # 声道 sampwidth = 2 # 采样宽度2bytes TIME = 4 #秒,2000x4=8000 FILENAME='speech.wav' def save_wave_file(file...
UTF-8
Python
false
false
1,463
py
43
test.py
35
0.606316
0.569123
0
59
23.169492
84
lermon2000/PythonBasics_HSEU
14,860,586,891,562
d3a5b00ef23177ecc50e227de7c257855fd5a64c
a00b99928192dfd628b096d8b0c91b99c951799e
/week_1/num_div_mod.py
b46cd0f632e540b7a85d53acdab0fb93e63136cb
[]
no_license
https://github.com/lermon2000/PythonBasics_HSEU
b2084fdfe6ea222de66512a871cdf4c3a9bda9a4
c385a2c7bbb0470fcfd368438780b233844b9f51
refs/heads/master
2022-02-17T13:48:51.489585
2019-05-08T06:25:24
2019-05-08T06:25:24
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# как устроено деление и взятие остатка от деления A, B = [int(input()) for i in range(2)] C, D = A // B, A % B equal_a = C * B + D if equal_a == A: print(f"(({A} // {B}) * {B}) + {D} = {A}") if B > 0: print('Positive:') print(f"D={D} & D >= 0, D < B") elif B < 0: print('Negative:') print(f"D={D...
UTF-8
Python
false
false
776
py
25
num_div_mod.py
20
0.569686
0.547038
0
24
22.916667
56
fesenkoaa/barmanager-bot-sqlalchemy
16,252,156,270,875
fc5bd5caeb61b38aea97daccdc20f01e625aa9c9
c67613f4ac98d3f43b14db0c898554a304ec96db
/bot.py
217748d25f29cefa13be4c159f376377e4c39326
[]
no_license
https://github.com/fesenkoaa/barmanager-bot-sqlalchemy
ce2f68cc4dd78e4c80cb37249805da557780f1f6
6dc3ab8a85e1b1b51afac717a3b0023d8f6913db
refs/heads/master
2023-09-03T09:19:41.938559
2021-11-03T13:13:25
2021-11-03T13:13:25
424,220,845
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from aiogram import Bot, types from aiogram.dispatcher import Dispatcher from aiogram.utils import executor import db_handler as handler from config import TOKEN bot = Bot(token=TOKEN) dp = Dispatcher(bot) """Information command""" @dp.message_handler(commands=['start']) # works async def send_welcome(message: ty...
UTF-8
Python
false
false
4,088
py
5
bot.py
3
0.661937
0.646771
0
118
33.644068
113
xxglwt/untitled9
15,994,458,253,668
0adb4156bdae9aa7cd6133de6408337b00aedc53
7cf75e1473d3c64b93110eb27c32c442027d43bb
/TestModel/migrations/0006_musician.py
b291e1ff97e3f978c21a774c80716bc41da0dacf
[]
no_license
https://github.com/xxglwt/untitled9
e78c4f747d7e78cc799c4264c19547022aa05a6e
f5ed19a646e6a45dc7f70a2807f513a08186465b
refs/heads/master
2022-12-10T19:45:49.131721
2020-06-23T12:18:55
2020-06-23T12:18:55
239,277,406
0
0
null
false
2022-12-08T06:21:20
2020-02-09T09:25:40
2020-06-23T12:21:14
2022-12-08T06:21:19
848
0
0
8
Python
false
false
# Generated by Django 2.2.7 on 2019-12-27 12:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('TestModel', '0005_contact_tag'), ] operations = [ migrations.CreateModel( name='Musician', fields=[ ...
UTF-8
Python
false
false
633
py
24
0006_musician.py
17
0.560821
0.524487
0
22
27.772727
114
SarkerAllen/python-challenge
3,856,880,678,464
9a5c13648a73c38a3cb4b4e91d9199ca708b5e2f
efd62dfae427bff61fa4b6f9180bbc4ee10fd695
/level_3.py
6961033b73f2bca185df52353d6bb5febf590bc4
[]
no_license
https://github.com/SarkerAllen/python-challenge
1e6c1e3c146e88c312d7e0f1e0580f3409c56899
0800800995ac2b507da799f79a9ef63904af0f40
refs/heads/master
2020-05-18T01:07:03.149367
2020-01-04T03:05:14
2020-01-04T03:05:14
184,081,262
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests import re content = requests.get("http://www.pythonchallenge.com/pc/def/equality.html").text answer = re.sub('\n|\t|\r', '', content) answer = re.findall("<!--(.*?)-->", answer) key = re.findall("[a-z]+[A-Z]{3}([a-z])[A-Z]{3}[a-z]+", str(answer)) print(''.join(key))
UTF-8
Python
false
false
284
py
5
level_3.py
4
0.609155
0.602113
0
8
34.5
82
fake-name/ReadableWebProxy
11,819,750,041,864
7796cb65a7a6f93dd1413d4b015baaf3b5c5bc5d
6189f34eff2831e3e727cd7c5e43bc5b591adffc
/WebMirror/management/rss_parser_funcs/feed_parse_extractAmateurtranslationsCom.py
02117e66f0f8a1a83cc087a9330ed371955ccefe
[ "BSD-3-Clause" ]
permissive
https://github.com/fake-name/ReadableWebProxy
24603660b204a9e7965cfdd4a942ff62d7711e27
ca2e086818433abc08c014dd06bfd22d4985ea2a
refs/heads/master
2023-09-04T03:54:50.043051
2023-08-26T16:08:46
2023-08-26T16:08:46
39,611,770
207
20
BSD-3-Clause
false
2023-09-11T15:48:15
2015-07-24T04:30:43
2023-08-07T04:26:14
2023-09-11T15:48:14
20,299
194
16
7
Python
false
false
def extractAmateurtranslationsCom(item): ''' Parser for 'amateurtranslations.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('Phoenix Against The World', 'Across the Stunning Beast Pri...
UTF-8
Python
false
false
1,165
py
1,155
feed_parse_extractAmateurtranslationsCom.py
1,072
0.546781
0.546781
0
24
47.583333
119
spykspeigel/Optimal_control_examples
3,513,283,281,385
da857abd8278a84f1576f8472e083d5c9ef23dc9
f5aa2328f2fa7e5d22ee12174497c176badef0fb
/nh_lyapunov/nh_lyapunov_example.py
66b3d3e6196cfd19295953dacdd02cfc461d81c4
[]
no_license
https://github.com/spykspeigel/Optimal_control_examples
b35e1e65b85210bf380ae744d68a0681b74990f1
1845a8400aa297af2f5572828a4c92669f89f1a9
refs/heads/master
2023-06-27T12:51:06.108377
2022-02-17T14:04:43
2022-02-17T14:04:43
299,210,082
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
#Here I formulate the control problem as a closed loop steering. # It closely follows the paper import numpy as np import math from scipy.integrate import solve_ivp import matplotlib.pylab as plt def main(): t_eval=np.arange(0,8,0.025) x_i=-1 y_i=1 theta_i=3*np.pi/4 goal=np.array([0,0]) heading_v=np.array([np....
UTF-8
Python
false
false
1,840
py
10
nh_lyapunov_example.py
2
0.638043
0.610326
0
94
18.585106
64
siska199/Belajar-Machine-Learning-untuk-Pemula-by-Dicoding
7,017,976,571,185
9fa6f23cf80a1ab2c9709969fd7066e4325c2bb9
85902fc698b4d3cc6401f5278dd6fda7d773e275
/5-6 Neural Network dan TensorFlow/Latihan Machine Learning.py
7b9c33255d040ffc9e40a87066b1401c21745a00
[]
no_license
https://github.com/siska199/Belajar-Machine-Learning-untuk-Pemula-by-Dicoding
01f4d785fecb15573c03728204412831b8630ea1
0b1c0e64e95b6cb5d40a3417686c88732e194ce1
refs/heads/main
2023-06-04T13:49:53.529280
2021-07-02T23:49:28
2021-07-02T23:49:28
382,486,754
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun May 9 19:47:54 2021 @author: KyuuChan199 """ import tensorflow as tf from tensorflow.keras import datasets, layers, models import matplotlib.pyplot as plt import numpy as np print(tf.__version__) (X_train, y_train), (X_test, y_test) = datasets.cifar10.load_dat...
UTF-8
Python
false
false
602
py
2
Latihan Machine Learning.py
1
0.69103
0.646179
0
25
22
72
muziyongshixin/flower_classification
2,765,958,951,798
7db7bc8947203565442277549b9f4cab65ed19d8
7b75a9ddd8e7b73980e5e1db7666712064dc0ee6
/models/SeaReader.py
8c25201a5887a6c140a424301651d5398e627e73
[]
no_license
https://github.com/muziyongshixin/flower_classification
1379641f15ad116b8f890b2c174048734d6f2665
22b758b83fb64fa4486abafbf3aeb2dfabeab1b1
refs/heads/master
2020-03-30T00:25:45.024786
2019-04-24T14:02:53
2019-04-24T14:02:53
150,522,994
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'liyz' import torch from models.layers import * from utils.functions import answer_search, multi_scale_ptr from IPython import embed from utils.functions import masked_softmax, compute_mask, masked_flip class SeaReader(torch.nn.Module): """ match-ls...
UTF-8
Python
false
false
23,431
py
26
SeaReader.py
23
0.573696
0.535132
0
426
52.687793
166
2k-joker/Algorithms-and-Data-Structures
15,479,062,161,505
4d75ebefddc58f70d7034743b77f97ac9d6c045a
3b712aef61e3dc1682a641d815bacbb9f79e5727
/Arrays.py
b25d40fba08d00da8e5e97c777846cbe4603bf92
[]
no_license
https://github.com/2k-joker/Algorithms-and-Data-Structures
06848d7ebc1f0fb9a576c4835b1b6e31d56c7fc6
204f560357ae5abb6b51dc290b8e137d533480b7
refs/heads/master
2022-06-18T15:22:02.491459
2020-05-08T13:30:00
2020-05-08T13:30:00
254,953,825
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
## Swap is always handy for arrays def swap(i, j, array): temp = array[i] array[i] = array[j] array[j] = temp ## Write a method that checks if two arrays of integers are pemutations of each other ## # Time complexity: O(nlogn) or O(n) if done with hash maps(python dictionary) def isPemutation(a...
UTF-8
Python
false
false
2,977
py
7
Arrays.py
6
0.555257
0.543836
0
113
24.327434
133
nifigator/team-one-backend
16,853,451,684,339
9efc939c77d4ca54eb026083d762abd8da332792
9477f7e3feb04817d38ed89cf4888a1bda3ecb4c
/app.py
1c5448c726bc926eb62647236d8d94d175845063
[]
no_license
https://github.com/nifigator/team-one-backend
5e2a38fbe0c0701060f88added3016ac28da83d6
e4683c22fa618a5d0a437d1d9ba261c45e9e2cb8
refs/heads/master
2022-12-10T16:16:52.582359
2019-09-29T06:53:51
2019-09-29T06:53:51
194,398,207
0
0
null
false
2022-12-08T05:49:35
2019-06-29T11:29:33
2019-09-29T06:54:07
2022-12-08T05:49:34
46
0
0
6
Python
false
false
""" Main module of the server file """ # 3rd party modules import connexion # Local modules import config def dummy(**kwargs): return 'Method not yet implemented.', 200 if __name__ == '__main__': app = config.connex_app # app = connexion.FlaskApp(__name__, specification_dir='api/') app.add_api('comm...
UTF-8
Python
false
false
354
py
23
app.py
20
0.646893
0.624294
0
18
18.611111
66
sirkkalap/iceml
360,777,281,249
ba9428fd15b6bb28e4323e826c6a11ad5b570ed9
8cfd093089f92f30d1091cec6bdaabaa2c7c466d
/ais/analysis.py
b53c6ed10eda36dc8a1728578ae5baf2e523b6d5
[ "MIT" ]
permissive
https://github.com/sirkkalap/iceml
94f7a6d750e2937ca2bdd256a0c970e0b9ee1331
442f6513d399fe30e81f9d932210c930f7d40b3c
refs/heads/master
2022-12-04T21:00:55.244248
2020-08-11T20:40:47
2020-08-11T20:40:47
283,975,825
1
0
null
true
2020-07-31T07:48:31
2020-07-31T07:48:30
2019-11-11T15:17:06
2020-03-31T09:53:07
26,148
0
0
0
null
false
false
import pandas as pd import numpy as np import logging logger = logging.getLogger(__name__) MOVE_SPEED_THRESHOLD = 5 STOP_SPEED_THRESHOLD = 0.5 PREVIOUS_OBSERVATIONS_TIME_FRAME = 5 # store N minutues of observations def filter_previous_observations_by_timestamp(df): if len(df) > 0: return df[lambda x: x['...
UTF-8
Python
false
false
4,449
py
30
analysis.py
11
0.589121
0.580805
0
141
30.553191
188
riichi/kcc3
12,189,117,197,200
97b0999f3163fc60c418a327134a37adac5b8721
f336b5329a86cb0c0a989edb2bafe55c85f88381
/yakumans/yakumans.py
b22cd8275cdd1294f0b4b58d9541cb41f326bd8d
[ "MIT" ]
permissive
https://github.com/riichi/kcc3
4880a41f05be794abdf395229d7490b8cf20066f
2cc9674d13483ee59fe7cb83e8b9c9e8b213ba47
refs/heads/master
2023-04-27T06:05:04.839349
2022-01-19T13:40:07
2022-01-19T13:40:07
206,862,732
1
0
MIT
false
2023-04-21T21:45:42
2019-09-06T19:39:54
2023-01-25T23:58:49
2023-04-21T21:45:42
171
4
0
3
Python
false
false
from dataclasses import dataclass from enum import Enum class YakumanType(Enum): REGULAR = 1 INITIAL = 2 OPTIONAL = 3 @dataclass class Yakuman: id: str name: str japanese_name: str type: YakumanType double: bool @property def verbose_name(self): return f'{self.name} ...
UTF-8
Python
false
false
5,277
py
63
yakumans.py
48
0.645542
0.644558
0
258
18.693798
57
maddarauci/py_maze
2,628,519,992,848
7f4edf8fe35f0e0e0c379c43c79f01526492ef5c
1c981e538b050bb7bfdfea9d85cdff417c527298
/py_maze.py
9c02d9652701f3d84bcd0d2664a16f06aead2d45
[ "Apache-2.0" ]
permissive
https://github.com/maddarauci/py_maze
605273b560f94eec19eea86025097388b8a5f940
2392d11409b04f6eb7f76188789dbb5527bbd5ce
refs/heads/main
2023-06-17T04:58:41.916454
2021-07-16T16:21:49
2021-07-16T16:21:49
386,698,250
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# w: walls # c: cells # u: unvistied block from colorama import init, Fore from colorama import Back, Style import time, random def print_maze(maze): for i in range(0, len(maze)): for j in range(0, len(maze[0])): if maze[i][j] == 'u': print(Fore.White, f'{maze[i][j]...
UTF-8
Python
false
false
3,841
py
1
py_maze.py
1
0.538922
0.520958
0
155
22.780645
99
adventure-capitalist/PythonPractice
8,315,056,690,871
87c0b50e7c9ebccb62e4167aefa09c9419d48954
d194571c520fa1cfc957d23ff0e6b5672d644c0c
/ex11.py
0205daa6ece8311a37f4917f09ffb52b918059a2
[]
no_license
https://github.com/adventure-capitalist/PythonPractice
0c173adc934b2e25ac2a735d14661fbd1d06012d
8cf1ce755e5b410949a3ee25b199891c35ea97b1
refs/heads/master
2020-04-25T12:25:26.688657
2019-03-04T23:10:11
2019-03-04T23:10:11
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
DOB = (raw_input("What is your DOB DD-MM-YYY? ") date_extraction = DOB.split("-") day = date_extraction[0] month = date_extraction[1] year = date_extraction[2] result = calculate_gen(int(year)) while raw_input is not int: try: birth_year = int(raw_input("What year were you born? ")) ...
UTF-8
Python
false
false
778
py
13
ex11.py
13
0.583548
0.53856
0
28
25.785714
64
ferasbg/crypton
9,706,626,119,729
322b02e3bb71f5addb3322ed32e85df6b65dbdc8
8d0f1e3fc10a2f276be3c4d10c5a01e731708171
/src/settings.py
04f8cea77b6d3078dee56b0832e1447ce8c313d2
[]
no_license
https://github.com/ferasbg/crypton
a30ce8d16a729611adcfe7bd3b2ec2a8279bc882
cc0ace34131a8c0fc1caaee6ce462f5480391b5c
refs/heads/master
2023-08-22T23:33:49.966892
2021-10-25T03:56:42
2021-10-25T03:56:42
267,441,167
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import flwr from flwr.server.strategy import FedAdagrad, FedAvg, FedFSv0, FedFSv1, FaultTolerantFedAvg from flwr.common import EvaluateIns, EvaluateRes, FitIns, FitRes, ParametersRes, weights_to_parameters from flwr.server.client_proxy import ClientProxy from server import * from client import AdvRegClient, Client impo...
UTF-8
Python
false
false
6,347
py
58
settings.py
14
0.71253
0.696454
0
134
46.358209
217
brady-vitrano/django-canon
13,383,118,124,463
c9d423f8a021f1c891430188178ca02c6a7e4d1a
8917ef48be453aca05e8cef294a02ac57f3e6940
/mysite/mysite/urls.py
1b7062bce2d76409f5a3fb68dd63ceafaba766d3
[]
no_license
https://github.com/brady-vitrano/django-canon
fc49ff810d5c1373220b118df3ef6eeac8b65f06
64183c9a3126f8312005cb12320971ca298c6add
refs/heads/master
2019-03-08T23:29:06.871472
2014-11-17T05:57:41
2014-11-17T05:57:41
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^polls/', include('polls.urls')), (r'^accounts/login/$', 'django.contrib.auth.views.login'), )
UTF-8
Python
false
false
269
py
8
urls.py
5
0.684015
0.684015
0
8
32.625
62
lauradoc/take-home-challenge-ascii
13,649,406,102,460
743ad754e4c0b56ba73a1bd1fcf27c11f6ff70c5
749ce87255d4aef3cf5bde1ba5d6b31d4872ae7a
/functions.py
385e9100b6bf642db92061b3310fc98a612cae26
[]
no_license
https://github.com/lauradoc/take-home-challenge-ascii
d7a60f589cae08182b0ca593261b0a4be65114e9
ebbd0efe724c4754f54f5b9514e5a98be1077699
refs/heads/master
2022-12-09T18:16:03.783908
2020-09-24T13:39:45
2020-09-24T13:39:45
298,291,202
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# all functions for ASCII Graphics API for drawing rectangles and squares #!/usr/bin/env python print('Hello, World') def render_canvas(): row = [' ',' ',' ',' ',' ',' ',' ',' ',' ',' '] grid = [] for i in range(11): grid.append(row) for i in range(len(grid)): print(grid[i]) # ...
UTF-8
Python
false
false
449
py
1
functions.py
1
0.550111
0.545657
0
36
11.5
73
jackton1/django-view-breadcrumbs
18,176,301,618,123
e2ca5080954fa6b457e36363c05bb3e6b548ea0e
9de9a4c978aa3488fcc4ef622a6f72c889f02cf8
/view_breadcrumbs/generic/base.py
0def474514e7e2cdbac13f46d8b550d7556ef04b
[ "BSD-3-Clause" ]
permissive
https://github.com/jackton1/django-view-breadcrumbs
8bf684c6bef676f45ce0c279058b3c7cc7f822fd
9d421b28d742414414097b9769659e07288e1cc2
refs/heads/main
2021-05-11T08:44:38.260031
2021-05-10T23:07:38
2021-05-10T23:07:38
118,060,183
19
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging from django.conf import settings from django.utils.functional import cached_property from django.utils.translation import gettext_lazy as _ from view_breadcrumbs.constants import ( LIST_VIEW_SUFFIX, CREATE_VIEW_SUFFIX, UPDATE_VIEW_SUFFIX, DELETE_VIEW_SUFFIX, DETAIL_VIEW_SUFFIX, ) fr...
UTF-8
Python
false
false
2,654
py
24
base.py
13
0.609269
0.609269
0
92
27.847826
76
jefflund/archive
6,047,313,961,940
73fa11941ed6125e72d5a369082521471d64f34d
0e37fa6532db1218342f9eafcbd62fd30ae98953
/fall17/labs/style/grid.py
90cf76b93486dc2b3efabaeda49d20816ebbb4e2
[]
no_license
https://github.com/jefflund/archive
e4100bb79e849448c7784dcb6b69996d128f6c47
295e4d28d4b02e7276e7609ea49d603028078dbe
refs/heads/master
2020-03-09T02:43:11.058223
2019-02-03T13:49:44
2019-02-03T13:49:44
128,547,018
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 from scipy.misc import imread, imresize, imsave import numpy as np import os from glob import glob D = 224 styles = glob('style/*.png') contents = glob('content/*.png') out_name = lambda s, c: 'output/{}-{}.png'.format(s[6:-4], c[8:-4]) for style in styles: for content in contents: os....
UTF-8
Python
false
false
911
py
285
grid.py
217
0.624588
0.600439
0
28
31.535714
92
jbhersch/avero_assessment
3,418,793,985,999
dfbf8a96177e4aeecfdf9ef654641b7944b7f590
3f4c1efd5abdc917723c2b1f951e06284b015b57
/virtual_env/lib/python2.7/genericpath.py
52a7acc50c72e16a5a67b4eb4d53f509d2dfc1cf
[]
no_license
https://github.com/jbhersch/avero_assessment
57e9b2bf8e7e17df52fef127c5c35db960ae7df8
ce1677e0cb107b142de9ea8c4a8e46d1a469eb60
refs/heads/master
2022-12-10T21:06:31.699616
2018-12-26T23:03:04
2018-12-26T23:03:04
163,022,330
0
0
null
false
2022-12-08T01:30:00
2018-12-24T20:41:44
2018-12-26T23:03:12
2022-12-08T01:29:59
48,870
0
0
4
Python
false
false
/Users/jonathanhersch/anaconda/lib/python2.7/genericpath.py
UTF-8
Python
false
false
59
py
34
genericpath.py
26
0.864407
0.830508
0
1
59
59
leaders/Tibet.6
15,006,615,768,026
767cb24487c675dfeb98c5e81e9d55c1ef734594
f8f61961b9a8a50c096fabe48aaa93e3803c3724
/Latchet/src/main.py
c34bfe84fd71812a2ccf863ee4de355e9be28d29
[ "MIT" ]
permissive
https://github.com/leaders/Tibet.6
e32515ca9f9e86a1bf7210816b12746121e39b7e
3c53060edafd80b9c4dafa10699a68d86a410c66
refs/heads/master
2022-03-01T14:41:33.430163
2019-10-25T16:33:03
2019-10-25T16:33:03
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding:utf-8 from mantis.fundamental.application.use_gevent import USE_GEVENT if USE_GEVENT: from gevent.queue import Queue else: from Queue import Queue import json import time from threading import Thread from collections import OrderedDict import datetime # from vnpy.trader.vtEvent import EVENT_LOG, EV...
UTF-8
Python
false
false
4,420
py
146
main.py
97
0.572693
0.570596
0
129
32.271318
104
YikSanChan/pyflink-quickstart
16,131,897,188,571
e183f56ba12beb9087ec923acd33f3a1ef523a01
2e24502d10be1f563f52dd1d796ae66acd0d8a60
/datagen_mock.py
ed974592407ec8f86e84dba2aa2c4d8d2bd47355
[]
no_license
https://github.com/YikSanChan/pyflink-quickstart
9184eb8eae788edf28964f2bfbda86d6b24abcef
d6b43d23a575e6393e1c58dab55587afb004c78d
refs/heads/master
2023-04-23T06:27:57.354791
2021-05-08T11:43:14
2021-05-08T11:43:14
347,844,350
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from pyflink.table import EnvironmentSettings, StreamTableEnvironment # https://ci.apache.org/projects/flink/flink-docs-stable/dev/table/connectors/datagen.html env_settings = EnvironmentSettings.new_instance().in_streaming_mode().use_blink_planner().build() table_env = StreamTableEnvironment.create(environment_setti...
UTF-8
Python
false
false
892
py
14
datagen_mock.py
11
0.7287
0.721973
0
30
28.733333
97
adolfoBee/algorithms
953,482,781,118
96a8698242208b9ddbc0660f0ac0a3503823c98d
dc792759def3345cdd0ad748dbfe9f70644d8133
/knapsack.py
0db1412e3b3a4d2c0e4461869fcc51c2c65494bc
[]
no_license
https://github.com/adolfoBee/algorithms
dfccfd270163186d0bb7c85b93aa1743b6507961
f2b7c2dcf96f032821feafcd5e8d3132ae297465
refs/heads/master
2021-01-20T01:22:19.318047
2017-04-24T16:20:57
2017-04-24T16:20:57
89,244,498
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Uses python3 def optimal_weight(W, w): n = len(w) matrix = [[0 for x in range(W+1)] for y in range(n+1)] for i in range(1, n+1): for j in range(1, W+1): matrix[i][j] = matrix[i-1][j] if w[i-1] <= j: val = w[i-1] + matrix[i-1][j-w[i-1]] if ...
UTF-8
Python
false
false
502
py
8
knapsack.py
8
0.464143
0.438247
0
21
22.952381
58
mikegilroy/LearningPython
17,334,488,044,071
1fecd4f7eae9c4b1da35f8848f200785fedc2907
6cd168cd46b8d88a165cb376288a472ff85aa6c5
/Treehouse/random_number_game.py
d4670a163c3a03b016ee1178ab421d7c9fa898b7
[]
no_license
https://github.com/mikegilroy/LearningPython
a72fa5addba30912cb4ca813d1abeeb630f4f462
f5125326b734bc52820edb4281acc3b4abcfe8e6
refs/heads/master
2021-01-25T06:56:33.821739
2017-06-07T12:10:35
2017-06-07T12:10:35
93,631,188
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random level = 100 random_number: int = None guessed_number: int = None def show_game_help(): print("Welcome to the random number game!") print("Aim of the game: guess the number I'm thinking of") print("The number will be between 0 and whatever level you've chosen...") print(""" GIVE UP - this will end th...
UTF-8
Python
false
false
1,844
py
3
random_number_game.py
2
0.661063
0.658351
0
88
19.954545
74
csaling/cpsc430_game_engine
14,216,341,786,778
d37f92a99a16c8d1796717f2a31fb94e00f04665
b00c3c8c014b1c5b9e82bc35e205a908846cb58e
/behavior_item_transfer.py
79a2c27dc1be13b4ace2ae1e51f66291c1098224
[]
no_license
https://github.com/csaling/cpsc430_game_engine
95669273030a13c3ac8ce01e8dd558f2e5a306f8
7a319a7480f16ba0642888a006088776f421b8d7
refs/heads/master
2023-04-17T06:25:22.567363
2021-04-29T20:46:29
2021-04-29T20:46:29
331,025,053
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from behavior import Behavior from game_logic import GameLogic from sounds import Sounds class ItemTransfer(Behavior): def __init__(self, name, value, sound = None): super(ItemTransfer, self).__init__() self.name = name self.value = value self.sound = sound def...
UTF-8
Python
false
false
635
py
59
behavior_item_transfer.py
54
0.587402
0.587402
0
19
31.736842
67
YiranH/Viola_Jones_649
4,724,464,044,095
1bbb364012c27dc8cb65c50e4cedbcf557e448d8
ab2dc72703daffe59d2e892ef820824f9985df62
/cascade.py
38be3cc30df6bcd24e57c4af9d94b1e34913d70d
[]
no_license
https://github.com/YiranH/Viola_Jones_649
2dcd4a881c7cb78153177c937e0d2ea32e3acc83
1a56356640e826a037bee55007ccb8d163ff1368
refs/heads/master
2020-09-11T06:42:28.846673
2019-12-10T05:18:15
2019-12-10T05:18:15
221,976,266
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from haar import * from adaboost import * from helpers import * import numpy as np def learn_cascade(pos_train, neg_train, max_t): F = np.ones(max_t + 10) cascaded_classifiers = [] trains = pos_train + neg_train img_height, img_width = pos_train[0].shape img_height -= 1 img...
UTF-8
Python
false
false
1,554
py
12
cascade.py
5
0.539897
0.530888
0
57
25.192982
150
Misterhex/python-bootcamp
9,397,388,469,607
a7a6d416e3fbf0d84a22d2c687c3da9f40465180
8d056a7ff35f2fa09dac9a2d95b7b5c8e53bc74f
/portscanner/scanner.py
7f887dbbc6bbc390c1c6c46ca365401bfdade0f2
[ "MIT" ]
permissive
https://github.com/Misterhex/python-bootcamp
3e9e8b1d1f27e1856cb28921666a4dcc0b222cfb
5f4576c1b8340db4ea18da7bec053a62ffc911ca
refs/heads/master
2020-03-08T08:34:53.213286
2018-04-07T15:51:01
2018-04-07T15:51:01
128,025,308
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from multiprocessing import Pool import socket print("-" * 20) hostname = raw_input("\nplease enter hostname to scan...\n") print("looking up {}".format(hostname)) ipaddr = socket.gethostbyname(hostname) print(ipaddr) def scan(port): try: print("scanning port {} ...".format(port)) sock = socket...
UTF-8
Python
false
false
611
py
6
scanner.py
5
0.612111
0.592471
0
26
22.5
64
selinon/demo-worker
17,987,323,045,295
1aebad2ce8072a5427caeaab40a702db9285ab36
e5f40ad414cd4b578f2b7edfca83634467a904fd
/demo_worker/storages/__init__.py
8d82b72a92a857de81bb9c80de3556feed82a2b5
[ "MIT" ]
permissive
https://github.com/selinon/demo-worker
54054ce008289a9e5c3e90373a73e794f7a38b4b
7adef95eaa5badfb473f33408944fe2e63d96e74
refs/heads/master
2023-05-28T00:30:39.605006
2023-01-27T14:16:01
2023-01-27T14:16:01
131,403,187
0
2
MIT
false
2023-05-23T06:08:55
2018-04-28T11:18:38
2023-01-27T14:45:13
2023-05-23T06:08:55
153
0
2
3
Python
false
false
from .travis_logs import TravisLogsStorage
UTF-8
Python
false
false
44
py
24
__init__.py
13
0.840909
0.840909
0
1
42
42
ren100700/ren
9,208,409,890,892
f7ec7f06023448d2a7673a004acc978d30e5e44f
2f700a61ccb2e005ad086ce734da378b160cb854
/gerenboke/user/urls.py
d1247a4b863f80ca40b089a953f6b61a5479425c
[]
no_license
https://github.com/ren100700/ren
1d8becea61b965470ba7a505e5028e79263a19f2
d95b2146f289a7f1b98af2fee587b898160e369d
refs/heads/master
2020-03-29T19:27:40.212624
2018-11-26T13:02:08
2018-11-26T13:02:08
150,264,341
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import url from user import views urlpatterns = [ url(r'^index/',views.index,name='index'), url(r'^share/',views.share,name='share'), url(r'^about/',views.about,name='about'), url(r'^gbook/',views.gbook,name='gbook'), url(r'^info/',views.info,name='info'), url(r'^list/',views.list,name='li...
UTF-8
Python
false
false
327
py
56
urls.py
46
0.669725
0.669725
0
12
26.333333
42
surf3r92/Python_Space_Shooter
481,036,361,162
f7f581cfde5cc7c0e23f517ad6766914e54e140c
e10c8f281210c96e85d0e4044199b5cdab61667c
/lib/explosion.py
2405cc3d763550d53bb557612914f63e515b6837
[]
no_license
https://github.com/surf3r92/Python_Space_Shooter
fe2b3c94a667d18d45005799e808e13a963a4a79
49b9909749859c44b154b441265932cc8f3de651
refs/heads/master
2021-01-10T03:05:47.935801
2016-02-01T11:40:57
2016-02-01T11:40:57
48,750,813
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os, sys, pygame, random from pygame.locals import * from lib.methods import * class Explosion(pygame.sprite.Sprite): def __init__(self, pos): pygame.sprite.Sprite.__init__(self) self.image, self.rect = load_image("img/sprites/Blue Explosion/1.png", -1) self.rect.center = pos de...
UTF-8
Python
false
false
528
py
16
explosion.py
13
0.695076
0.6875
0
17
30.117647
97
openworkouts/OpenWorkouts
19,224,273,626,137
fb8ff4feb65f3f4335078c733af3fbf1c0f7d94a
b8a6eb2abed4abdcece1449c19019f0ad85a7479
/ow/tasks/mail.py
b42130776ea43c472888048fad6b8ac2747d5b3e
[ "BSD-3-Clause" ]
permissive
https://github.com/openworkouts/OpenWorkouts
060c85bbdec0c62d44ec432704e12fbc58d33e85
ecfed69e8c654c09bb8c074d8aedda9c13cd2235
refs/heads/master
2020-04-23T02:43:29.440162
2019-02-28T09:47:21
2019-02-28T09:47:21
170,855,430
4
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Mail handling code. Any periodic task related to send/get emails is here """ import fcntl import logging from repoze.sendmail.queue import ConsoleApp log = logging.getLogger(__name__) def queue_processor(env): """ Process the email queue, reusing repoze.sendmail default queue management machinery. ...
UTF-8
Python
false
false
1,816
py
131
mail.py
63
0.625551
0.623348
0
49
36.061224
77
vutrungtrieu/policyv1.0
9,122,510,542,554
763319193b3ef9d773759ceda1e83ac24df0a34b
617fab1ae9ee78dce70a1df66780044451dcd864
/policy-k/9/2.py
5694c43a484f9b143a6c33ba817ce610af0e3f07
[]
no_license
https://github.com/vutrungtrieu/policyv1.0
21b2f3b9fb30fb26e00efba41c37593a47325ff5
2ceded51f668ac92367c43dee77e96208eeaccc5
refs/heads/master
2016-06-01T09:15:31.350494
2015-12-22T08:46:13
2015-12-22T08:46:13
42,650,703
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/local/bin/python2.7 # -*- coding: utf-8 -*- import os f3 = open("k2.dat","a") f1 = open("k1.dat").readlines() f2 = open("title.dat").readlines() for cmd,cmd_re in zip(f1,f2): #f3.write("\""+cmd.strip()+"\",\""+cmd_re.strip()+"\"\n") f3.write(cmd.strip()+",\""+cmd_re.strip()+"\"\n")
UTF-8
Python
false
false
305
py
29
2.py
22
0.537705
0.498361
0
12
23.583333
58
Shahzadfarukh100/medical
4,664,334,530,610
ea35cd61db6f5cd75ffa8be3e04dc697466fee35
040f0bbf3df6d057639e3dfc8490d0f4efc519a3
/newapp/admin.py
400792f892dd094c2a052c1354272cf6b75fd0d1
[]
no_license
https://github.com/Shahzadfarukh100/medical
f8852350058315a151e2edfefbaa2afc8164e039
6dcf47fd721911b705309321d3a44db61391f856
refs/heads/master
2020-03-28T16:58:45.138463
2018-10-16T10:00:23
2018-10-16T10:00:23
148,747,024
0
1
null
false
2018-10-18T07:02:12
2018-09-14T06:44:04
2018-10-16T10:00:25
2018-10-18T07:01:25
8,088
0
1
3
HTML
false
null
from django.contrib import admin from newapp.models import Banner, Appointment, Consultant, Input, BlogPost, Newsletter admin.site.register(Banner) admin.site.register(Appointment) admin.site.register(Consultant) admin.site.register(Input) admin.site.register(BlogPost) admin.site.register(Newsletter)
UTF-8
Python
false
false
304
py
34
admin.py
23
0.828947
0.828947
0
10
29.4
86
isabella232/python-client
5,789,615,955,836
199dc2595397e6d10fc64f71715d4d14c99fefe3
71212e4521971d85206672fa91f0fdd1a1ab4f1f
/ldclient/redis_requester.py
89cb1085d9ea697eba2cae033509504625b04a81
[ "Apache-2.0" ]
permissive
https://github.com/isabella232/python-client
a0f6b56add049e6bc04e5b6bbd9dbcaecdfdf208
4e44553d5228c462f8bfa87bcbeb807973a3170b
refs/heads/master
2021-05-30T11:12:00.259406
2016-01-26T21:20:27
2016-01-26T21:20:27
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json from ldclient.expiringdict import ExpiringDict from ldclient.interfaces import FeatureRequester import redis # noinspection PyUnusedLocal def create_redis_ldd_requester(api_key, config, **kwargs): return RedisLDDRequester(config, **kwargs) class ForgetfulDict(dict): def __setitem__(self, key, va...
UTF-8
Python
false
false
1,803
py
26
redis_requester.py
20
0.580144
0.575707
0
54
32.388889
111
InstituteforDiseaseModeling/selvaraj_spatial_covid_vax_2021
10,050,223,489,406
fc53b41546400478ed00591f2f9b22f520cd9069
67e5bce1461f6d0b38130c10e97741078a148b0e
/build_input_files/refdat_policy_effect.py
8d3829294bd1cfe99429c56b629f1633b920ab16
[]
no_license
https://github.com/InstituteforDiseaseModeling/selvaraj_spatial_covid_vax_2021
68aabf337a9aacd9cb6903f8aa8807b12c964ed5
a4a20bfc07fe71f2fdab8a3addad637072445bfd
refs/heads/main
2023-05-25T19:38:42.827107
2021-06-07T23:41:17
2021-06-07T23:41:17
374,775,221
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import numpy as np import os policy_file = os.path.join('data_input', 'combined_data.csv') def custom_round(x, base=5): return int(base * round(float(x) / base)) def social_distancing_effect(countries: list = None, sd_bins=10): """ :param countries: list of countries to consider for...
UTF-8
Python
false
false
1,223
py
210
refdat_policy_effect.py
21
0.656582
0.636958
0
35
33.971429
103
pavankumarjs/GrootFSM
2,130,303,820,856
97c0a1c3af4433b9bc91730dbdc6ce2012f6cf28
2de1120d63b77c914a2ce530a22c2f088a62dcf6
/tests/test_base.py
7d316b0f09a38c8ec16a21b28386c560c23f1eb8
[ "MIT" ]
permissive
https://github.com/pavankumarjs/GrootFSM
804aa1e9480903d22c8442428188bd0f24b84e21
29ff50764c8d2bcf4fecb55ef4e8a764b8b3da32
refs/heads/master
2021-01-20T08:20:12.407759
2017-08-29T21:01:14
2017-08-29T21:01:14
101,554,254
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from unittest import TestCase import logging import sys from mock import Mock from fsm.base import FSMBuilder, FSMException def setUpModule(): logging.basicConfig(stream=sys.stdout, level=logging.DEBUG) def tearDownModule(): pass class TestFSM(TestCase): def setUp(self): self.builder = FSMB...
UTF-8
Python
false
false
9,009
py
3
test_base.py
2
0.698524
0.658786
0
179
49.329609
139
ThomasThorpe/CallDataRecordCorrelation
9,302,899,175,232
7476ee7ae3cafc12bfda056f53177beb34baa548
1444eddad91a939d7573e612175770fac8e6f021
/ExampleGeneratorTest.py
e1889ac0a7a3c8d7ed0248b83e140fd4ce810ea5
[]
no_license
https://github.com/ThomasThorpe/CallDataRecordCorrelation
145aa6fb555e4691f3f439d93105b881b254b4e3
b7a030b2a6c7cbf2f552edffddfd0a44c799ea6c
refs/heads/master
2020-06-20T23:04:18.205279
2019-07-16T23:26:20
2019-07-16T23:26:20
197,280,894
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest,math,datetime from CLIDChecker import CheckCLID import ExampleGenerator as e dateTimeFormat = "%Y%m%d%H%M%S" class TestExampleGenerator(unittest.TestCase): def test_MobileNumber(self): self.assertTrue(CheckCLID(e.MobileNumber())) def test_GeographicalNumber(self): self.ass...
UTF-8
Python
false
false
80,759
py
11
ExampleGeneratorTest.py
7
0.352629
0.321747
0
1,447
54.811334
148
svakulenk0/ODChatbot-v2.0
12,086,038,014,985
224080f83ac8b3a10e8dce85fa3fab1c2a00d82d
8bd040f6895f8cdde6dadc3ee3d4c86da632023e
/__init__.py
747f52459b7ca95a6f3cd564a034e84976baba2c
[]
no_license
https://github.com/svakulenk0/ODChatbot-v2.0
908ee9b84e6bad5e0beaf52115700189fd77d2a3
7344b0e8e821810c96dc0435c3ef1481ef34dc9d
refs/heads/master
2022-07-17T14:21:43.706008
2018-07-25T08:37:26
2018-07-25T08:37:26
139,401,333
3
0
null
false
2022-06-21T21:22:08
2018-07-02T06:37:45
2019-05-01T09:03:19
2022-06-21T21:22:08
4,404
2
0
5
Python
false
false
from opsdroid.matchers import match_regex import logging import random from .chatbot import Chatbot chatbot = Chatbot() # restart exploration # chatbot.history = [] # chatbot.goal = [] def setup(opsdroid): logging.debug("Loaded ODExploration skill") @match_regex(r'(.*)') async def searchOD(opsdroid, config, m...
UTF-8
Python
false
false
470
py
21
__init__.py
6
0.712766
0.710638
0
23
19.434783
47
Haira505/Pythoncode
5,205,500,383,604
bd28ffbb0f35431851662bf699f2dd009c43451a
c7582c299df7fc3f9c270d2ea94f0d9fd1d9e946
/prueba.py
89a2919eeab627210f021a00a1e9cdd2dce0e0e4
[]
no_license
https://github.com/Haira505/Pythoncode
676deb421e9b376ad435a545bc6ff80bd52d8ab8
4751e3b2a5d57181adfa5449b4e2d9e7115ff6a9
refs/heads/master
2022-12-04T08:37:25.603113
2020-08-21T16:27:41
2020-08-21T16:27:41
285,740,422
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def main (): print("hola prritas uwu") if __name__ == "__main__": main()
UTF-8
Python
false
false
76
py
17
prueba.py
7
0.526316
0.526316
0
5
14.2
26
dirkdupont/PythonPlayground
13,486,197,336,674
13c881d5ec821069d37345a2822fa9a5011a580a
696c7b495250f48ec2ca38889fd74a90d4d2b073
/statistics/coin_flips.py
79cf1a42ef3f8cad1202d235d5050db03ad1e6ef
[]
no_license
https://github.com/dirkdupont/PythonPlayground
7513f03a5979d52134044fb30e4ec2c9de2d4d61
e9477e8e01a6b2332852a4271a687aae183659c7
refs/heads/master
2018-10-10T21:03:31.211798
2018-08-02T18:59:39
2018-08-02T18:59:39
106,595,266
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" This example simulates N sets of coin flips and returns a list of the proportion of heads in each set of N flips. """ import matplotlib.pyplot as plt import random from math import sqrt def mean(data): return float(sum(data))/len(data) def variance(data): mu=mean(data) return sum([(x-mu)**2 for x i...
UTF-8
Python
false
false
730
py
341
coin_flips.py
292
0.675342
0.660274
0
40
17.275
80
xflyyxfl/threepy
1,812,476,205,243
bb8f86daa3622eeebf8e4637461d0d2b89cad430
af381159cf2efcb295a2b67f70fc57d04fa1e269
/examples/opengl_points_billboards.py
1e96769e640a917ba7bab416121111baf4e629f7
[]
no_license
https://github.com/xflyyxfl/threepy
6e70de3c02188096d0d724b2d7f754c472d24d77
bcbbd5d04514ecf81d5824d18cbce7ec6cac4829
refs/heads/master
2021-06-22T13:27:42.208603
2017-08-07T02:45:18
2017-08-07T02:45:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import division import math import random import os import pygame from pygame.locals import * import THREE from THREE.utils import Expando renderer = None camera = None material = None clock = pygame.time.Clock() width, height = 800, 600 windowHalfX = width / 2 windowHalfY = height / 2 def toAbs(...
UTF-8
Python
false
false
2,237
py
41
opengl_points_billboards.py
39
0.606616
0.561913
0
99
21.606061
124
paperstiger/gaolib
14,705,968,069,089
ec22f964f9c5ee3d070dd7889a5e2c6d2190ecba
a7a0c440e3bf858c5f4a7541c8ce211334b5d050
/test/argtest.py
1187f6a9e963259a8e7736a92c17cc804d11e44a
[]
no_license
https://github.com/paperstiger/gaolib
b8e0ba9dbfe520b8c416aaefaf8a2f6b66243594
6c791627b0bceb420caf0d087cba258501bf8ad6
refs/heads/master
2020-08-22T03:26:10.510004
2019-10-20T04:40:28
2019-10-20T04:40:28
216,307,906
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2018 Gao Tang <gt70@duke.edu> # # Distributed under terms of the MIT license. """ argtest.py Test getOnOffArgs module, we add numbers """ from pyLib.io import getOnOffArgs def main(): args = getOnOffArgs('a', 'b1', 'c-1', 'd-0.5', '...
UTF-8
Python
false
false
396
py
43
argtest.py
37
0.602532
0.559494
0
23
16.173913
70
sharithomas/more-examples
13,116,830,132,524
4201290688dd58c227d7a22dfb51865a5831c1e3
4c1f8e7b02cfe60da4be1300c051c6525776cc00
/numpy_programs/matrix_3x3x3.py
791471a55ec26a6bcacbc6531e94344f25163b3e
[]
no_license
https://github.com/sharithomas/more-examples
04fea9dcc912eb4546dae1d03090b9e89d5bc157
e0672e2440968cc6041ca8c2567cbd572515fb7c
refs/heads/master
2021-02-27T11:50:05.103096
2020-10-02T11:46:43
2020-10-02T11:46:43
245,603,890
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Write a NumPy program to create a 3x3x3 array filled with arbitrary values import numpy as np array=np.random.random((3,3,3)) print(array)
UTF-8
Python
false
false
142
py
241
matrix_3x3x3.py
241
0.767606
0.725352
0
5
27.4
76
Eggwise/syncano-python-framework
2,499,670,988,343
eb4cb6eaf15b7937126f0a8932f1730a7b00a519
8f84c13925db79b395dc9536fddd7185508aef1c
/old/framework/source_manager/main.py
69a160f54fa5f50e1549f0e5a0268ddaea16132b
[]
no_license
https://github.com/Eggwise/syncano-python-framework
48e2e0f03f691e10ff5575d40b1f4e833e139ae5
a9a7afea037d3afb64772e059d61544b7786aaa1
refs/heads/master
2020-07-14T08:23:30.474784
2016-11-16T17:44:12
2016-11-16T17:44:12
67,504,198
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from . import source_indexer from .source_indexer import SourceIndexer import inspect import logging, os _init_config = { 'caller_path' : None } _source_indexer = None # type: SourceIndexer def init(): global _init_config global _source_indexer if _init_config['caller_path'] is not None: e...
UTF-8
Python
false
false
2,071
py
17
main.py
16
0.660068
0.658619
0
95
20.8
85
kperun/NESTML-Python-Benchmark
10,239,202,046,235
98f71752edf20a30b9881243e9d439bc0c6cc815
9d95070fe76d23fa213b95c955680a6104826ec1
/ply/Grammar/SimpleExpressionGrammar.py
f2a30d306f5f2689187d6752ea7b5e3b06333c83
[ "MIT" ]
permissive
https://github.com/kperun/NESTML-Python-Benchmark
2ec731bf4c13fcf89bcbb9aa01f971bfa034b383
e96d68fa73f75a25d34d629bbdbde43a849f1229
refs/heads/master
2021-03-27T13:09:50.633489
2017-07-20T12:28:01
2017-07-20T12:28:01
94,541,808
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import ply.lex as lex import sys sys.path.append('../ASTClasses') import ASTCalculator import ASTDeclaration import ASTComputation import ASTStatement import ASTNumericLiteral import ASTName import ASTExpr tokens = ['NUMBER', 'END', 'CALCULATOR', 'STRING', 'PLUS', 'MINUS', 'TIMES', 'DIVIDE', 'MODULO', 'POW', ...
UTF-8
Python
false
false
4,655
py
25
SimpleExpressionGrammar.py
22
0.562406
0.548228
0
173
25.895954
103
ivysandberg/Instagram
5,806,795,815,794
a792b560d287a721dc2ecd303b0ae319f1a4bc4b
c716190de713bb5415ce895892d8e27a038797a1
/instagram_data.py
29e2788026264eee62b69e3bffcf02c21f72f33c
[]
no_license
https://github.com/ivysandberg/Instagram
79041a8bbf36e7cc4b99e512a15136f451683314
3718f3cf0a3dcf027bd7c7d1568c7871ecd7fe47
refs/heads/master
2020-04-15T07:17:49.143610
2019-02-03T19:04:59
2019-02-03T19:04:59
164,490,844
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import pandas as pd import json import matplotlib.pyplot as plt import csv """ import follower data """ path = '/Users/ivysandberg/MyData/ivysandberg_20190104/connections.json' # import using read_json #data = pd.read_json(path) #df = pd.DataFrame(data) #followers_bydate = df.sort_values('followe...
UTF-8
Python
false
false
2,350
py
2
instagram_data.py
1
0.692143
0.661401
0
103
21.737864
108
WonderLuc/brother-bootcamp
8,461,085,619,755
42d442469e092f2b9de50387d2bcdd21557d49cc
b1a7417caf4200557106821a0fe45d848b598467
/python 101/tasks/dictionary.py
806d7b96b4fd6a15d16696c628c91b3a28ba5993
[]
no_license
https://github.com/WonderLuc/brother-bootcamp
3ab6a197160f71d17be837c0be2001b2abcc6c3c
841285d516566730d35da7af9690c5d3b94051a4
refs/heads/main
2023-08-20T15:44:33.228640
2021-10-14T17:43:47
2021-10-14T17:43:47
404,047,387
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
dictionary = { "cat": 'кошка', 'house': 'дом', 'word': 'слово', 'score': 'счет', 'apple': 'яблоко' } while(True): userInput = input('Dicitionary: ').split(' ') command = userInput[0] if (command == 'close' ): print('See you later!') break elif (command == 'translate'): # Seacrh by key ...
UTF-8
Python
false
false
846
py
40
dictionary.py
38
0.585662
0.575942
0
32
24.75
51
SlicingDice/slicingdice-python3
14,705,968,065,142
885837ef020f90c7be7f701f205e3769c84074ce
067252d734401a696152e4153eb26e51a3f66efa
/pyslicer/core/requester.py
1e35efbf4bd6cda62bee73d12101a2dd7817bde1
[ "MIT" ]
permissive
https://github.com/SlicingDice/slicingdice-python3
f2375a36b171c40be095f0842a3823ea1ee3518b
0c8e1b72af0992c32976c8a21b77827d236a6c15
refs/heads/master
2021-01-25T13:57:28.346868
2018-12-12T05:58:25
2018-12-12T05:58:25
123,625,426
1
0
MIT
false
2018-12-12T05:58:26
2018-03-02T20:07:20
2018-12-12T05:52:54
2018-12-12T05:58:25
198
0
0
0
Python
false
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import aiohttp from .. import exceptions class Requester(object): def __init__(self, use_ssl, timeout): self.use_ssl = use_ssl self.session = aiohttp.ClientSession(read_timeout=timeout) async def post(self, url, data, headers): """Execute...
UTF-8
Python
false
false
2,294
py
12
requester.py
10
0.601569
0.601133
0
55
40.709091
76
AnkitAvi11/Data-Structures-And-Algorithms
1,778,116,494,426
18700e5ed4c7c63076aef9d5411b36f823640dbf
1b45d1162bd60a356844fc4dced068da2e6cc438
/Data Structures/Arrays/StringCompression.py
e838973d2902a744a4505d20732739c755dab5e8
[ "MIT" ]
permissive
https://github.com/AnkitAvi11/Data-Structures-And-Algorithms
de9584e439861254cdce265af789c8b484c01c69
703f78819a41d4dd88caf71156a4a515651edc1b
refs/heads/master
2023-02-19T21:53:39.405934
2021-01-24T17:27:21
2021-01-24T17:27:21
297,752,655
6
3
MIT
false
2021-01-24T17:27:22
2020-09-22T19:33:55
2021-01-24T17:20:09
2021-01-24T17:27:21
227
4
10
0
Python
false
false
# program : string compression """ Implement a method to perform basic string compression using the counts of characters. """ def compressString(string : str) -> dict : i = 0 result = "" while i < len(string) : count = 1 try : while string[i+1] == string[i] : ...
UTF-8
Python
false
false
590
py
166
StringCompression.py
165
0.49661
0.486441
0
27
20.62963
86
cossorzano/scipion
6,502,580,503,764
ecd6c20d5532c6562b5b1e4f311d20ff3911a55f
1cba04adbdfd246d44d8a736f17dc4e847451c54
/pyworkflow/em/plotter.py
36fca2051b5ef1dbdd0aba4467949200925824e8
[]
no_license
https://github.com/cossorzano/scipion
b8988be7a9d96035038f516a40e4f686ae0aca1e
29617e9b4886f1b1f83055fffc0a8ce81f4c39ba
refs/heads/master
2020-04-06T04:33:00.739194
2018-08-05T07:26:20
2018-08-05T07:26:20
55,037,672
0
0
null
true
2016-05-03T15:19:34
2016-03-30T06:17:03
2016-03-30T20:14:23
2016-05-03T15:19:27
99,933
0
0
0
Python
null
null
# ************************************************************************** # * # * Authors: Josue Gomez Blanco (jgomez@cnb.csic.es) # * # * Unidad de Bioinformatica of Centro Nacional de Biotecnologia , CSIC # * # * This program is free software; you can redistribute it and/or modify # * it under the terms of th...
UTF-8
Python
false
false
6,999
py
156
plotter.py
153
0.575225
0.569939
0
162
42.203704
126
ascourge21/Classifiers
11,751,030,548,515
cea9f7a2a1749f36de5e1eecdce56952dec44227
8dddfca9449a05c20e970aa11b2de98c5fcd8259
/DataLoader.py
d565c6b2338cf8cfbcfc1a18d4d80a0ba239d348
[]
no_license
https://github.com/ascourge21/Classifiers
03206f647e21c2eb8152671733371bc6173eb32c
f719182cda0aafb6928068bcade0fabb0583d890
refs/heads/master
2018-01-08T15:37:03.355118
2017-12-01T00:32:19
2017-12-01T00:32:19
54,840,215
1
0
null
false
2017-12-01T00:32:20
2016-03-27T17:34:48
2017-10-15T18:12:17
2017-12-01T00:32:20
9
1
0
0
Python
false
null
import numpy as np import pickle import csv class DataLoader(object): @staticmethod def load_mnist_train(): mnist_train = [] with open('data/mnist_train.csv', 'rt') as csvfile: cread = csv.reader(csvfile) for row in cread: vals = np.array([float(x) / 256...
UTF-8
Python
false
false
2,329
py
9
DataLoader.py
9
0.495921
0.466724
0
69
32.73913
66
ZhaoYiChina/Flask-Project
13,657,996,004,006
94aad27113335d8bdda503255f6ef4994e0276a6
99cd5db560876ae6c3153d045c9453b63f8de996
/app_frontend/api/order.py
3dc616a9a36e935aad37f4a78a302d03f3610734
[]
no_license
https://github.com/ZhaoYiChina/Flask-Project
e74009133a4de9a1e29df0fb569c4d0e220ad310
509d054ec28a005cb61d1a2fa6b76ecabd2e3353
refs/heads/master
2023-02-11T00:26:13.607017
2021-01-04T09:05:08
2021-01-04T09:05:08
326,627,035
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: order.py @time: 2017/4/13 下午9:45 """ from app_frontend.models import Order from app_frontend.tools.db import get_row, get_rows, get_lists, get_row_by_id, add, edit, delete def get_order_row_by_id(order_id): """ 通过 id 获取订...
UTF-8
Python
false
false
2,050
py
306
order.py
192
0.599448
0.587293
0
91
18.89011
96
FireXStuff/firexapp
6,665,789,274,145
294d9001c2a32fe09b2f3321e3fd35a82d3496cd
f7073a4271ca06c1b7ad1575fc95ff6f050c0613
/firexapp/celery_manager.py
8c4a9911be9017e303d8e5e6d57c9b7c8d5fc817
[ "BSD-3-Clause" ]
permissive
https://github.com/FireXStuff/firexapp
d499d0de72559e088214e499c690819648aad043
f9f9c55fdadec08e0d937d9e0a20eb7e76d951bd
refs/heads/master
2023-09-01T02:23:47.557726
2023-08-24T20:40:36
2023-08-24T20:40:36
165,118,024
8
0
NOASSERTION
false
2022-07-19T17:14:12
2019-01-10T19:25:04
2022-02-02T02:12:34
2022-07-19T17:14:10
727
6
0
8
Python
false
false
from firexapp.submit.console import setup_console_logging from firexapp.submit.uid import Uid from logging import INFO, DEBUG, WARNING import os import re import subprocess import psutil from firexapp.broker_manager.broker_factory import BrokerFactory from socket import gethostname from firexapp.common import poll_unti...
UTF-8
Python
false
false
13,246
py
78
celery_manager.py
61
0.597916
0.595878
0
338
38.189349
118