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
nathaniel-prog/sofproject
13,271,448,962,479
5247e956398d4b20df00b4120da5c9f4a445d049
ac23a4af430f92868ce1bd0c7571fe78e9ba6ffe
/routs/forms.py
a0b52541879a68b813b1cba669fd3c822099bfcc
[]
no_license
https://github.com/nathaniel-prog/sofproject
52501ba050b3cf5dd10911fd283bee323dce491c
16fedf099f1e5e63883ea6a1a01965b9a3fd0ba5
refs/heads/master
2023-02-07T22:11:11.671001
2020-12-30T09:23:30
2020-12-30T09:23:30
294,345,213
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from bemember.forms import PersonForm from media.images.forms import HotelForm , AppartForm from django import forms from bemember.models import Post from routs.models import Town class CommentForm(forms.Form): name = forms.CharField(widget=forms.TextInput(attrs={'class': 'special'})) comment = forms.CharFi...
UTF-8
Python
false
false
610
py
74
forms.py
45
0.67541
0.672131
0
27
21.111111
78
Nevada228/simple-fuzzy-example
13,211,319,452,387
77a0c0230864d28f5a1a06ba08f1b10c073c3d0e
bfd58743308912a57e28f9dafa231b656cc0986c
/utils.py
71c88b42c9595760338b2221c4fe24ddce28a935
[]
no_license
https://github.com/Nevada228/simple-fuzzy-example
367d6acfe155692d54a27bac6736607fd96066cf
a6b5bec51ae3db252530731aeba5f5876fd881c6
refs/heads/master
2021-03-18T19:40:27.740760
2020-03-17T09:38:13
2020-03-17T09:38:13
247,095,238
1
1
null
false
2020-03-17T09:38:15
2020-03-13T14:51:49
2020-03-15T12:44:46
2020-03-17T09:38:14
3
1
1
0
Python
false
false
from skfuzzy import control as ctrl from constants import * class RuleBuilder: @staticmethod def build_rule(antecedents, consequent, response: ResponseEnum, req_quality: list): if len(req_quality) != len(REQUIREMENTS): raise Exception("Ээээ!") rule_body = None try: ...
UTF-8
Python
false
false
694
py
4
utils.py
4
0.585799
0.585799
0
19
34.578947
87
jvastbinder/tinyhands
18,683,107,756,209
93f6e5d5a1b3d097dd77ddd3d6221f39402ae349
201922e0451af60aa97b217e08b67f2ce461d657
/application/budget/pdfexports/mdf_exports.py
438cf9dbecfcf80b9c23785b50efcf9ec04e4e3b
[]
no_license
https://github.com/jvastbinder/tinyhands
d79b9d53bbdab2c105399c5710c0a81568544743
a5b9e7fb22c9074c39993ed58d3a840fd3c87ad4
refs/heads/master
2020-03-15T02:23:55.355383
2018-03-16T21:01:24
2018-03-16T21:01:24
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from budget.pdfexports.pdf_creator import BasePDFCreator from budget.helpers import MoneyDistributionFormHelper import zipfile from io import BytesIO class MDFExporter(BasePDFCreator): template_name = 'budget/MoneyDistributionTemplateV2.rml' def __init__(self, mdf_id): super(MDFExporter, self).__init...
UTF-8
Python
false
false
1,060
py
45
mdf_exports.py
39
0.630189
0.629245
0
36
28.444444
88
misakimeidaisuki/ganid-livedns-update
10,368,051,076,797
897fbb024f766a541f9478741498c5676d84c524
75824d946d271fa7ef6c446b858872dd4e903185
/update_log.py
9514b471138165d281773c4bd629a8956eea9efa
[ "MIT" ]
permissive
https://github.com/misakimeidaisuki/ganid-livedns-update
3cd0a55ecce7471b1441c6841a88edf1a5110d2b
eda8a474a1b896ff6cd9e5f8ecf973e56ce9841f
refs/heads/master
2020-04-23T15:00:22.316081
2019-02-18T15:12:51
2019-02-18T15:12:51
171,250,205
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import logging class updateLog(object): def __init__(self, filename="update.log", level=logging.DEBUG): self.__path = os.path.dirname(os.path.realpath(__file__)) self.logger = logging.getLogger() self.logger.setLevel(level) format = "%(asctime)s - [%(levelname)s]:%(messa...
UTF-8
Python
false
false
1,126
py
7
update_log.py
5
0.64476
0.64476
0
35
31.171429
67
hotdl/python-tutorials
10,376,641,036,460
2ad57e67cdffb511bca12336071cffabcfe5bd4a
02f5833453289823eba6f532b8491cbfd977a048
/base/number.py
d7c65b8035f2b6bd83b42d9dfa07f430a9fd8e21
[]
no_license
https://github.com/hotdl/python-tutorials
2fcbcdd41f6d6d4efe45a9c879a089ff32f3acbc
b78e15fc29b129275ed283208b97118c7cf4f554
refs/heads/master
2020-04-22T22:17:46.790396
2019-02-14T16:19:56
2019-02-14T16:19:56
170,702,886
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
if __name__ == "__main__": print(2 + 2) print(8 / 5) print(8//5) print(8 % 5) print(8*2) print(8**2) print(8.0/2) print(2 + 2J)
UTF-8
Python
false
false
160
py
4
number.py
3
0.425
0.31875
0
9
16.777778
26
TedMusk/Python_Network_Programming
11,321,533,836,681
2a07f09ec04d6f89cb727247d0402cec1c6e2c22
d50351d70ffb0f0f0b828f7364f6253c87672a07
/chapter01/search1.py
db09a61a9f911055ae401b502269d6ba5c01a436
[]
no_license
https://github.com/TedMusk/Python_Network_Programming
c21c52f9be9b9b28cb699ca96def7c6728b25370
b8e8f5cd9f080440b9f6bc0a916800cf2ed30277
refs/heads/master
2021-01-22T04:01:21.833530
2017-05-25T16:37:57
2017-05-25T16:37:57
92,421,208
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 ''' Created by Musk on 2017/5/26. ''' from pygeocoder import Geocoder if __name__ == '__main__': address = 'HangZhou'
UTF-8
Python
false
false
137
py
4
search1.py
2
0.620438
0.562044
0
9
14.222222
31
tom2rd/pylayers
9,534,827,427,217
bead71cfcbd55d1b308ffda209591a03e8dc8e12
af1e443f06a50a2eda5cffbf72d9d692888e4d53
/pylayers/gis/test/test_taoffice.py
ff8ad2742f44d16038167e00c4e49b630ac94e9f
[ "MIT", "GPL-3.0-or-later" ]
permissive
https://github.com/tom2rd/pylayers
2a470cf9d3f9b793459dfccde83bfc5c24f08d1d
84bdc924ae8055313b9ec833f0509000b0a30f45
refs/heads/master
2020-08-30T00:16:39.555371
2019-10-29T05:51:50
2019-10-29T05:51:50
218,210,476
0
0
MIT
true
2019-10-29T05:26:11
2019-10-29T05:26:11
2019-10-19T11:54:09
2019-10-22T22:44:38
795,400
0
0
0
null
false
false
from pylayers.gis.layout import * from pylayers.simul.link import * L = Layout('TA-Office.ini',force=True) ##L.build() #plt.ion() ##L.showG('st',aw=True,labels=True,nodelist=L.ldiffout) #f,lax= plt.subplots(2,2) #L.showG('s',aw=True,labels=True,fig=f,ax=lax[0][0]) #lax[0][0].set_title('Gs',fontsize=18) #L.showG('st',a...
UTF-8
Python
false
false
745
py
313
test_taoffice.py
245
0.644295
0.593289
0
22
32.863636
75
OsAlex/algo_python
5,695,126,652,084
e7ab319977e407ee6d15c06483dc47a34be9b855
5402a5a5fbe3d958e808b846f18c68bc7698c7bf
/lesson_1/lesson_01_2.py
7e51ae7ed927dc26f77924e382f84e4c20ecfe1c
[]
no_license
https://github.com/OsAlex/algo_python
29507cac67c69a72725b7bafd84c61f254a9a655
e8700af2fd89e133a08f4cb235b922e22995d8b2
refs/heads/master
2020-05-14T15:00:46.404602
2019-05-16T12:07:49
2019-05-16T12:07:49
181,844,462
0
0
null
false
2019-05-16T12:07:49
2019-04-17T07:59:20
2019-05-10T08:12:44
2019-05-16T12:07:49
165
0
0
1
Python
false
false
# 2. Выполнить логические побитовые операции «И», «ИЛИ» и др. над числами 5 и 6. # Выполнить над числом 5 побитовый сдвиг вправо и влево на два знака. # Объяснить полученный результат. i = 5 & 6 print('5 = ', bin(5),', 6 = ', bin(6), ', 5 & 6 = ', bin(i), ' = ', i) i = 5 | 6 print('5 = ', bin(5),', 6 = ', bin(6), '...
UTF-8
Python
false
false
638
py
32
lesson_01_2.py
31
0.481928
0.417671
0
15
32.266667
81
web8341/python-trading-robot
14,705,968,065,446
bff6799afd012a8300b13b86e24a10a25a413efa
70bc9a1ffec4c3d7580b3280692a65890bdede05
/pyrobot/robot.py
707356de3e10a93b0c240edf06a97411c4370f4a
[ "MIT" ]
permissive
https://github.com/web8341/python-trading-robot
035401a6a8bd9bb840adb8d16a0d32b80455e212
c10af5daae2e18119c0cecc5f250484624f5f548
refs/heads/master
2022-08-25T11:03:52.849313
2020-05-22T14:09:37
2020-05-22T14:09:37
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from td.client import TDClient from datetime import datetime, time, timezone from pyrobot.portfolio import Portfolio from pyrobot.trades import Trade class PyRobot(): def __init__(self, client_id: str, redirect_uri: str, credentials_path: str = None, trading_account: str = None) -> None: """Initalizes a n...
UTF-8
Python
false
false
11,780
py
7
robot.py
6
0.533531
0.525552
0
353
32.371105
145
lrj1197/Final-project-
15,908,558,908,230
1e7b037665d9bde2800c0ded5f935a881916dd99
d132e903498a9a893e810393cfe26074980f6730
/Numerical_Part_1.py
f36e64236d5b28464d9801257ded2d8ec77f5442
[]
no_license
https://github.com/lrj1197/Final-project-
8ec85879d766d6c85b42f987c360d10c1b3f6621
097ed277d4d1c5ebf2657bbc1ab9bc68cc677fef
refs/heads/master
2021-08-23T16:09:39.423842
2017-12-05T15:58:15
2017-12-05T15:58:15
112,251,216
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.integrate import * from scipy import * import scipy as sp def Numerical(): alpha = 1 beta = 1 gamma = 1 Rho_0 = 1 Rs = 1 G = 1 params = [alpha,beta,gamma,Rho_0,Rs,G] #define R as a linear space R_min = 0.1 R_max...
UTF-8
Python
false
false
1,084
py
6
Numerical_Part_1.py
4
0.548893
0.520295
0
51
20.254902
102
python-gino/authlib-gino
10,041,633,576,354
b625785d449b301d15c70c24fc794fc3223a6f6a
22e4d1987bac5079a0477bad7f149473299eebb5
/src/authlib_gino/fastapi_session/gino_app.py
ec660e612669eb8af54e7de83aec110c586f4161
[]
no_license
https://github.com/python-gino/authlib-gino
ced8cf69dd7b2faaa87ee2d59698fdcd89a145d6
94a8a104b4b5e1e6a369bbc94a952039fafffbf0
refs/heads/master
2023-04-21T05:05:51.576362
2020-09-04T21:51:07
2020-09-07T21:39:45
269,523,103
3
1
null
false
2021-05-13T20:47:58
2020-06-05T03:35:09
2020-09-07T21:39:49
2021-05-13T20:47:57
131
3
1
4
Python
false
false
from importlib.metadata import entry_points def load_entry_point(name, default_factory=None): for ep in entry_points().get("gino.app", []): if ep.name == name: return ep.load() return default_factory()
UTF-8
Python
false
false
232
py
22
gino_app.py
20
0.642241
0.642241
0
8
28
49
igor-morawski/LL-tSNE
10,033,043,626,416
8d6dc324061bba2dfb40b88878ae55b5c4d91802
97b5a35cbf48bf561084645e67a1ddccf115c4a6
/tsne.py
0d9573d5874a425ba555a32836511d0ba6073ae0
[]
no_license
https://github.com/igor-morawski/LL-tSNE
55202c226e5ef9068ad695ec219328936888a449
b650e4062830f08f58690385f62cf3b82a4c8138
refs/heads/main
2023-06-25T10:23:15.263579
2021-07-23T11:26:24
2021-07-23T11:26:24
349,344,183
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# python tsne.py /tmp2/igor/LL-tSNE/features/S_R50_epoch_121-1.pkl --output_dir=tsne # python tsne.py /tmp2/igor/LL-tSNE/features_manual/COCO_R50_epoch_1-1.pkl --output_dir=manual --lr=10 --perplexity=5 # https://towardsdatascience.com/how-to-tune-hyperparameters-of-tsne-7c0596a18868 import argparse import tqdm from P...
UTF-8
Python
false
false
4,384
py
12
tsne.py
11
0.617473
0.5974
0
117
36.358974
117
allonbrooks/cainiao
14,010,183,359,511
96482d59fc470ab6a507c791b25a91165536081b
6f80ca6891c240a7f58d1e2240117adcac5ff61a
/涉及嵌套分组与命名分组的正则练习一则.py
dd5780c4c4a9bb0b324f587997e406c31dbe11fc
[]
no_license
https://github.com/allonbrooks/cainiao
73f739a6eb27befaa80ab8a5ad1f7d6238d56b1d
705443ee87806187b61e13d59bd2ad465c10653e
refs/heads/master
2020-04-28T00:41:40.782408
2019-03-10T13:21:05
2019-03-10T13:21:05
174,825,626
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/2/28 22t:02 # @Author : HandSome # @File : 涉及嵌套分组与命名分组的正则练习一则.py """ 有文本若干行如下,请写出正则匹配出以 param 开头的参数信息,输出格式为:字段名称、字段类型(不带尖括号)、是否可选(不带尖括号)和字段含义四部分内容。 #param nickname <str> 昵称 #param sex <int> <可选> 学员性别,1 男,2 女 """ import re text = ''...
UTF-8
Python
false
false
977
py
35
涉及嵌套分组与命名分组的正则练习一则.py
35
0.553846
0.528671
0
31
22.064516
105
sassafrastech/platemate
1,159,641,176,987
31a6aca8c645fb8e93f86e04ca09381d809cc9e5
db0ecb3c6a6ae58daa060a170d2d25068ff8c11c
/uploads.py
015759bb79c4bbec8c0622c3a5ffb42b62b361cf
[]
no_license
https://github.com/sassafrastech/platemate
85cf26dbd16eb07978c2f2be0d5d976c69b7298e
22ae0bcaad5fed27a33122b93f41b9f1663ae6cb
refs/heads/master
2021-08-02T15:41:59.171538
2021-07-22T19:28:37
2021-07-22T19:28:37
75,955,052
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
from management.run import run from food.models import chiefs import sys # Example usage: "python uploads.py sandbox" operation = sys.argv[1] mode = sys.argv[-1] run( chief_module=chiefs.from_uploads, args={'sandbox': (mode != 'real')}, operation=operation )
UTF-8
Python
false
false
273
py
38
uploads.py
30
0.703297
0.695971
0
13
20
44
computernerdzach/critGenBot
16,527,034,181,855
728e7cb62af78519fa5bdc0da81958fd3e19b29f
eec317c5ef9b2c97bc67f3cd63bdb67430296e8d
/critGen.py
cb179d9a8b3f470b90a704c90f4ad4dfc5aa7cba
[]
no_license
https://github.com/computernerdzach/critGenBot
d4b9af1e90b412d067a84c8f208bb2859dd0fdba
6ed3c86a8d36b6cc2f9fd22a6276bfeca60e4a5b
refs/heads/master
2022-12-27T14:55:07.888190
2020-10-05T14:44:16
2020-10-05T14:44:16
286,359,246
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# bot.py import os import random import discord from dotenv import load_dotenv load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') client = discord.Client() help_message = """***Welcome to critGenBot!*** **To roll a critical hit or miss, type '!hit' or '!MISS'** **To keep your roll secret, include the word 'whisper' and ...
UTF-8
Python
false
false
7,759
py
2
critGen.py
1
0.642608
0.633828
0
130
58.576923
119
liulong3712/pythonstudy
13,228,499,295,450
fe9d92fe41477f141a00f5c9731ce4ad4261cddd
75ee9dbfdad7760e059fd078dabc0a2efce157d4
/pythonstudy/python/study/test/test1.py
61df2b0f96409fc931c0577bcde15c8898b1fe51
[]
no_license
https://github.com/liulong3712/pythonstudy
dcba1076866903bb05aec198b3f54f641106bc06
eec9f41cab101100955853730da596878fbe94d5
refs/heads/master
2021-01-19T01:12:10.035778
2016-06-22T10:33:32
2016-06-22T10:33:32
61,365,059
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import urllib2 #https://www.baidu.com/s?wd=%E6%B5%8B%E8%AF%95 import chardet if __name__ == "__main__": import urllib url = 'http://www.baidu.com/s' values = {'wd':'测试', 's':'123'} data = urllib.urlencode(values) # 编码工作 print data user_agent = 'Mozilla/4.0...
UTF-8
Python
false
false
731
py
26
test1.py
19
0.600297
0.573551
0
21
31
65
Sid11/Tap_Search
13,108,240,191,655
907ef57bad1c2a2fc4bbd266653dfbcc449e2536
7c3cd244e988d29189494302f0c265e05b8c8c0d
/website/admin.py
4f36e62fdd977fa4ce311b2afeeebab1454a984a
[]
no_license
https://github.com/Sid11/Tap_Search
983ccc0f6e25ff9907949b34bb99fdff9483a8a6
56786d73b369ff023220cbcf737e3223dd9927b5
refs/heads/master
2022-12-09T23:22:02.559607
2019-12-01T15:52:55
2019-12-01T15:52:55
225,105,874
0
0
null
false
2022-12-08T03:14:57
2019-12-01T04:22:32
2019-12-01T15:52:58
2022-12-08T03:14:57
33,815
0
0
4
Batchfile
false
false
from django.contrib import admin from .models import Post, Image admin.site.register([Post,Image]) # Register your models here.
UTF-8
Python
false
false
128
py
12
admin.py
6
0.789063
0.789063
0
4
31
33
iparinile/Learning_Lutz_Learning_Python
10,299,331,610,025
b4e880c5d938696765fb58b9c7112b81ae3000ea
03bd051037f1d0a7ce4fc1364f6cb3f1b75d1389
/Day 2/files.py
7864861ae991aad4b3069c90cf8d3a9d47cb1a88
[]
no_license
https://github.com/iparinile/Learning_Lutz_Learning_Python
7c698b1c788b70662e0b890afe542316a1730d4e
2ef81d7057f2b3b657e2e1ef7311d7178273037d
refs/heads/master
2022-11-06T21:48:15.464526
2020-07-20T13:05:30
2020-07-20T13:05:30
275,144,729
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
f = open('data.txt', 'w') # Создать новый файл в режиме записи ('w') f.write('Hello\n') # Записать в него строки символов f.write('world\n') f.close() # Закрыть для сбрасывания буферов вывода на диск f = open('data.txt', 'r') # 'r' (чтение) - стандартный режим обработки text = f.read() # Прочитать все содержимое ...
UTF-8
Python
false
false
1,595
py
11
files.py
11
0.676271
0.635593
0.008475
27
42.703704
97
namitav1997/CPSC-8810-Deep-Learning
8,521,215,126,509
99cf7e69a12f622588f3d26c628f1bdf96ace886
84fc3401826b32af7fff1c68f02bf3ea43f62e75
/HW2/HW2_1/ncheruk_seq2seq_model.py
ec28b1c617a76c83c270fd1bb88281b5a9e3aa01
[]
no_license
https://github.com/namitav1997/CPSC-8810-Deep-Learning
5537354afcfa9693eeb1229627e3ec9d43ae9af8
225d9e8210062b66a193f2b47c75757d009699b3
refs/heads/master
2022-05-31T03:56:13.832055
2020-04-30T23:27:11
2020-04-30T23:27:11
245,570,007
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#Namita Vagdevi Cherukuru #HW 2: Deep Learning (CPSC 8810) #ncheruk@clemson.edu import tensorflow as tenf import numpy as nump import random class Ncheruk_Seq2Seq_Model(): def __init__(self, rnn_sz, numof_layers, dim_vft, embed_size, lr_rate, word_2_i, mode, max_gradnorm, ...
UTF-8
Python
false
false
10,964
py
8
ncheruk_seq2seq_model.py
5
0.568862
0.558282
0
230
45.66087
123
rs3603/Traffic-Intersection-Research
4,947,802,368,118
450313b1ce263bbdd9669615c6930cb84fb24c79
f07601785f6c8c8b9abcef9d521dddfb4a347fcb
/trial_backsub1.py
b6a25d99069661ab916e8a753e93fc2d144cae76
[]
no_license
https://github.com/rs3603/Traffic-Intersection-Research
0f929fe4d2134648ebdd2a4c194f9df1f9d8bdd5
493e78297e49e1b8112b5356efda3250e3ee10ab
refs/heads/master
2021-01-12T02:36:17.545410
2017-01-05T03:24:40
2017-01-05T03:24:40
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import cv2 #cap = cv2.VideoCapture(1) cap = cv2.VideoCapture('rec_out.wmv') #kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(3,3)) fgbg = cv2.createBackgroundSubtractorMOG2(history=50000, varThreshold = 1) ret, framebg = cap.read() framebg = (cv2.cvtColor(framebg, cv2.COLOR_BGR2GRAY)) ...
UTF-8
Python
false
false
3,173
py
6
trial_backsub1.py
5
0.639458
0.576741
0
81
37.17284
121
rymoah/CoInGP
9,483,287,834,114
a910694c7f4e0c94b8a6c223a70b9f37d2179be4
24ac5fe4c900e3279a1f602f34056ec50d4881c0
/src/img_convert_moore.py
1900d28230769dbcf4a69ade8ae8b63e8d0109fd
[ "MIT" ]
permissive
https://github.com/rymoah/CoInGP
c5be2eb92ecb65a31f01fb1f9efdbbe00cf171d6
d9906f7d21211d11e23e085734f7e71aab7d59ee
refs/heads/main
2023-04-08T04:14:05.600481
2021-04-25T10:44:51
2021-04-25T10:44:51
357,918,237
1
0
null
false
2021-04-25T10:44:52
2021-04-14T13:38:26
2021-04-25T10:41:29
2021-04-25T10:44:51
91
0
0
0
C++
false
false
from PIL import Image import random import math import sys N_PIXELS = 100 IMAGE = sys.argv[1] def window(img, x, y, radius): inputs = [] outputs = None for i in range(x - radius, x + radius + 1): for j in range(y - radius, y + radius + 1): if i != x or j != y: inputs.a...
UTF-8
Python
false
false
2,247
py
13
img_convert_moore.py
10
0.552737
0.537606
0
92
23.423913
79
NicolasSimard/BlitzChat
9,861,244,919,642
d1f465c6bcd607215c351c6e17831f186de3ac63
c4c2ad7cad2dd9510602b3d1e0ad6da4339e1469
/youtube/livebroadcast.py
349d20600639f2a79344f19a705ce96d81bd9f86
[]
no_license
https://github.com/NicolasSimard/BlitzChat
3e3d4b1c1ac5ed12082a43f04597bde42e0ebedc
c872c84927dc8df3b4bec119ef16f5af16fe4af5
refs/heads/master
2021-09-09T00:17:25.053332
2018-03-12T20:35:18
2018-03-12T20:35:18
116,960,842
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class LiveBroadcast: """ A LiveBroadcast object represents a Youtube live broadcast. It corresponds to a Youtube liveBroadcast ressource (see https://developers.google.com/youtube/v3/live/docs/liveBroadcasts#resource) Attributes: client: An authenticated youtube service. id: The live boradcast'...
UTF-8
Python
false
false
1,498
py
17
livebroadcast.py
14
0.637517
0.636849
0
52
27.826923
200
fluffyowl/past-submissions
10,522,669,878,399
e1121a30aa0abd72156f84bf22c760e6e9a8b267
048df2b4dc5ad153a36afad33831017800b9b9c7
/atcoder/agc003/agc003_b.py
8fcb08584d7cb37a29913fdc1da9c00073e9861b
[]
no_license
https://github.com/fluffyowl/past-submissions
a73e8f5157c647634668c200cd977f4428c6ac7d
24706da1f79e5595b2f9f2583c736135ea055eb7
refs/heads/master
2022-02-21T06:32:43.156817
2019-09-16T00:17:50
2019-09-16T00:17:50
71,639,325
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
N = input() cards = [int(raw_input()) for i in xrange(N)] ans = cards[0] / 2 cards[0] %= 2 for i in xrange(1, N): if cards[i] != 0 and cards[i-1] != 0: cards[i] -= 1 ans += 1 ans += cards[i]/2 cards[i] %= 2 print ans
UTF-8
Python
false
false
247
py
1,916
agc003_b.py
1,075
0.493927
0.445344
0
13
18
45
davidwchung/GatorTrader
16,612,933,518,777
6acf0adb0d0badfd3f632f80e5c295e20723f40d
e8da654734204192dabf27d22f08840d120196d4
/application/server/routes/users.py
c08d322204f3a3406953e495b7f6930796da235f
[ "MIT" ]
permissive
https://github.com/davidwchung/GatorTrader
74710533cf52735f77b1335e2ad9ffabb69b42ed
73b3abc64a313534658c2fcbb3826009e162a07d
refs/heads/master
2023-03-23T07:37:06.791582
2020-06-12T23:10:00
2020-06-12T23:10:00
271,899,430
0
0
MIT
false
2021-03-20T04:11:58
2020-06-12T22:16:52
2020-06-12T23:10:07
2021-03-20T04:11:57
5,980
0
0
1
HTML
false
false
from flask import Blueprint, send_from_directory, render_template users_blueprint = Blueprint('users_server', __name__, static_folder='../client', template_folder='../client/public/users') @users_blueprint.route('/users/<path:name>',...
UTF-8
Python
false
false
421
py
79
users.py
29
0.570071
0.570071
0
11
37.363636
69
adarsh01-debug/KnowYourGame
7,121,055,802,074
eadb2ecfcb93878f0f901e9c4fcd89a2c8b1986e
ddeaab21955f1968e024a0e537f73cb48ab8a726
/GameReq/ReqApp/models.py
a44db84a54c8350efa4da22c72a30fbae87b5a67
[]
no_license
https://github.com/adarsh01-debug/KnowYourGame
9a9d44a01feccd249714df5095dd7387e0c932f0
7d9b28d0fa0805825b0c11b9eef3554d512a8362
refs/heads/main
2023-02-27T17:35:46.342818
2021-02-07T08:18:45
2021-02-07T08:18:45
336,737,806
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models # Create your models here. class Requirements(models.Model): img = models.ImageField(upload_to='pics') name = models.CharField(max_length=50) CPU = models.TextField(max_length=100) RAM = models.CharField(max_length=50) GPU = models.TextField(max_length=100) HDD = mo...
UTF-8
Python
false
false
442
py
10
models.py
8
0.690045
0.653846
0
14
30.571429
45
fykx/fykx-geo
4,526,895,536,387
d0c6b5f5668976a04721706c80cc7ea805fe28e1
f80fd1a3bd09c517a80d65b59fed5dfa7a2cd560
/test.py
a05cd779ede973f1f5db2597768a563d9b1e7703
[ "MIT" ]
permissive
https://github.com/fykx/fykx-geo
f120098321153c3085836c451b802d9a8f6cfbcf
24ea5ea52595389c51944c600b77f59045fbeeb6
refs/heads/master
2023-01-08T14:24:08.574353
2020-11-03T08:34:46
2020-11-03T08:34:46
305,695,113
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from fykx.f3DAnalyst import raster_extent def listdatas(pathin): import os _datas = [] _names = [] for _root, _dirs, _files in os.walk(pathin): if len(_files) != 0: for _file in _files: _names.append(_file.split("_")[0]) _vv = None if...
UTF-8
Python
false
false
904
py
7
test.py
6
0.474558
0.466814
0
37
23.405405
59
milkyway007/BattleShip-2
7,206,955,154,302
9568c733a046acd090fd609af49407e52406b6b1
d49a9b1410f2755bb13d1725ef36adb4f89e12e3
/cgi-bin/second.cgi
be4015677d835c148555476e03b332b62ad576d3
[]
no_license
https://github.com/milkyway007/BattleShip-2
b987ead6b87209d06bd27cd6e166e32a07045283
23de495060d96bd4aebfd36923fac7949fd7d1ea
refs/heads/master
2020-02-29T14:51:12.524277
2016-09-30T12:19:17
2016-09-30T12:19:17
69,613,894
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import cgi import cgitb import datetime import operator from operator import itemgetter from decimal import Decimal import re cgitb.enable() print "Content-type: text/html" print form=cgi.FieldStorage() timestamp = '' playerOne = '' playerTwo = '' pointsOne = '' pointsTwo = '' gameTime = '' winner...
UTF-8
Python
false
false
8,741
cgi
16
second.cgi
7
0.63368
0.628875
0
371
22.555256
146
prescottsmith/Wildfires_2.0
14,379,550,535,361
c00e4a420910ceee4e2a1e81398562e53ec05711
86961fba34ad9f9cc157f5a7c92f17e350ba4ca4
/ref_data_setup.py
7d45e0becea3270b4d5fa4d2b7923ebce36d74d5
[]
no_license
https://github.com/prescottsmith/Wildfires_2.0
bc450c689a6aa1c67b7f0ae84a5a6169ccafadbd
8b3408e2f91b82823439a71685eeea7fd442cdc9
refs/heads/main
2023-01-01T00:45:39.094037
2020-10-19T12:03:53
2020-10-19T12:03:53
301,131,578
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#import kaggle utilities #from kaggle.api.kaggle_api_extended import KaggleApi import os import datetime import os.path from os import path from datetime import timedelta import pandas as pd owd = os.getcwd() #Check if file/directory exists def file_check(filepath): result = os.path.exists(filepath) return re...
UTF-8
Python
false
false
5,392
py
33
ref_data_setup.py
6
0.631862
0.609421
0
182
28.626374
163
rayjay214/mini-lbs-platform
12,429,635,375,534
474582f288b95c6d6dd1e69ab99806697d2ab751
250ad0e55decc4385235bf1c3136427db7d5c291
/backend/cmd_handler/bin/cmd_handler.py
5dd7cc341f5ec88ae56c3c94ffb9e5f9e217fce2
[]
no_license
https://github.com/rayjay214/mini-lbs-platform
09db143ce49307333a50300796a566d16e03c358
6bcca7c38d1e96fed63c2e80ae4a5c17888d90cc
refs/heads/master
2020-11-29T06:59:45.020812
2020-03-11T06:34:04
2020-03-11T06:34:04
230,051,200
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import sys import threading import queue import time from confluent_kafka import Producer, Consumer from globals import g_logger, g_cfg from dev_pb2 import DownDevMsg, MsgType, UpDevMsg from redis_op import RedisOp import struct def num_to_bcd(num): packed = struct.pack('6B', *[(num // 10 ** i % 10 <<...
UTF-8
Python
false
false
6,762
py
161
cmd_handler.py
135
0.539125
0.523802
0
200
32.605
118
mueller14003/DM1-Python
2,886,218,052,525
0c7cf6a56875d2e8e996256092e15586a61b5a65
5488cae78a03828aab7884ba2b0cf0e6b0eb1a64
/vectors.py
0658eea591dbaafe659a4b4125c20248c78f753f
[]
no_license
https://github.com/mueller14003/DM1-Python
f28c863fadfc5e6f51bee98180ba0fc8bfcd308a
1c59cdaa974e53993576a3820ebae7614d39df5f
refs/heads/master
2021-04-09T15:38:29.669722
2018-08-02T06:24:56
2018-08-02T06:24:56
125,588,790
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from math import * i=6.6 j=2.6 m=6.5**2 magnitude=sqrt(((i*m)**2)+((j*m)**2)) print(magnitude)
UTF-8
Python
false
false
97
py
78
vectors.py
78
0.587629
0.494845
0
9
9.888889
37
pradoz/leetcode_pset
4,088,808,901,790
9169ec90af5971786ccefd520831690bc5fa800d
7ec1f76d7be4452fcc0507315cb3494c53124e9f
/py/n-ary-tree-postorder-traversal.py
f9c02487af5f8f67c2e370a0158a9310b0b6f8ee
[]
no_license
https://github.com/pradoz/leetcode_pset
0939468fc5bac8256ed148b09eb0e0d79b146fea
31fa2a9e2f4bee8eadd4670c6f2ceefd7a164a0c
refs/heads/master
2023-05-05T07:37:02.393264
2021-05-20T17:08:15
2021-05-20T17:08:15
204,830,939
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" # Definition for a Node. class Node: def __init__(self, val, children): self.val = val self.children = children """ # Recursively class Solution: def postorder(self, root: 'Node') -> List[int]: if not root: return [] if root.children is None: return [...
UTF-8
Python
false
false
1,974
py
213
n-ary-tree-postorder-traversal.py
209
0.518744
0.518237
0
70
27.071429
63
spacetelescope/stregion
5,789,615,947,018
c859c0d78ae2c866ed3d4947ab4b2c8cb3daa529
5808b177ca5c9a3a84f01603809781642d18cf45
/examples/demo_region_filter01.py
066e761c6ab56ed241072639219c42006557b16a
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/spacetelescope/stregion
659ab8091adcfae9817de8ea4439c6b1b040839e
96f032849e69345aa9c31a52811235a61c4c8c25
refs/heads/master
2022-11-28T15:46:00.471438
2022-11-28T12:36:15
2022-11-28T12:36:15
138,785,965
0
3
MIT
false
2022-11-25T20:24:49
2018-06-26T19:52:12
2022-11-17T20:20:31
2022-11-25T20:24:48
988
0
3
0
Python
false
false
try: from astropy.io import fits as pyfits except ImportError: from astropy.io import fits as pyfits from demo_helper import pyfits_card_fromstring import matplotlib.pyplot as plt import stregion # read in the image def demo_header(): cards = pyfits.CardList() for l in open("sample_fits02.header"): ...
UTF-8
Python
false
false
1,171
py
26
demo_region_filter01.py
17
0.684885
0.672075
0
54
20.666667
49
clarkngo/cjn-python
15,917,148,814,168
9c3b64c25ef79febdc94e7235a32c905dee12f6e
560212fbb6a00235edcbf1ec24188c3a077c67e3
/test4/code/security(older).py
7035257076063d863e80e18933824bf05e834ac5
[]
no_license
https://github.com/clarkngo/cjn-python
5c5d26d24cdd48d494dbab55a44dff406cf3e8b8
3cf8265eac72e0b8bfbd2a1f1869cbe4bd54e88b
refs/heads/master
2020-03-12T03:15:49.899501
2018-04-20T22:59:59
2018-04-20T22:59:59
130,420,859
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
users = [ { 'id':1, 'username': 'bob', 'password': 'asdf' } ] username_mapping = {'bob': { 'id': 1, 'username': 'bob', 'password': 'asdf' } } userid_mapping = { 1 : { 'id': 1, 'username': 'bob', 'password': 'asdf' } } def authenticate(username, password): user = username_mapping.get(userna...
UTF-8
Python
false
false
481
py
12
security(older).py
8
0.602911
0.594595
0
32
14.03125
44
Kritik07/IOT
5,068,061,429,809
18909720c64dac3c6ab2ea6932dbfde594a260de
f421e7704e62d665702ef173f7a5a6d8379f3e65
/PRAC1.py
264d27c24f21683c9403833be975fd88120c1a01
[]
no_license
https://github.com/Kritik07/IOT
1bfa875d563825ad19290998e17c38b4fc971888
07d3776f2702af62cbdf77a2a90d04ed120d7112
refs/heads/master
2022-12-17T00:14:22.338921
2020-09-14T13:52:50
2020-09-14T13:52:50
295,321,608
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import telepot token='1234280727:AAFM3LKbA6dVZER3Cl2jXELfQhuPNgX2vOI' bot = telepot.Bot(token) print (bot.getMe()) def handle(msg): content_type, chat_type, chat_id = telepot.glance(msg) print(content_type, chat_type, chat_id) if content_type == 'text': bot.sendMessage(chat_id,"You said '{}'...
UTF-8
Python
false
false
376
py
2
PRAC1.py
1
0.675532
0.635638
0
15
24.066667
68
luhralive/python
3,547,643,033,952
b604047d1944245783b011252f385742a3596147
45de13a618813455a3ea1e65c5dd31066b311cd7
/kamen/0009/0009.py
cf961eec554b7991f7a4ff0b3dce963bf261f955
[]
permissive
https://github.com/luhralive/python
bbee0a3e7d0ac9845db484595362bba41923c2a4
b74bdc4c7bc8e75aee9530c27d621a773a71ac67
refs/heads/master
2020-05-19T12:48:17.144882
2019-05-05T11:53:46
2019-05-05T11:53:46
185,023,995
1
0
MIT
true
2019-05-05T11:45:42
2019-05-05T11:45:41
2019-05-05T05:39:52
2019-03-26T14:19:59
110,745
0
0
0
null
false
false
from bs4 import BeautifulSoup from urllib import urlopen r = urlopen('http://sports.sina.com.cn/nba/2015-04-23/00007584374.shtml').read() soup = BeautifulSoup(r) #there is javasciript things to be cleaned. s = soup.find_all("a") for link in s: try: print link["href"] except KeyError: pass
UTF-8
Python
false
false
316
py
832
0009.py
633
0.686709
0.623418
0
12
25.25
80
lalodsi/TallerDjangoWithAxel
10,264,971,842,609
0994e3372eab720861258238a25ddccc262dc3f8
55ea05a4e36bac33b48f08cfb664a05277927235
/control_escolar/matricula/apps.py
f4878490cd018a2628e43c6957d0961e1695126c
[]
no_license
https://github.com/lalodsi/TallerDjangoWithAxel
b74832a472f911f1cb28c1d7e9c3bfc5cd7af204
b8c8acc6f2aba1fa173e3d5ecbc554adf0e8cdb3
refs/heads/master
2023-07-06T21:54:32.465990
2021-08-14T03:38:31
2021-08-14T03:38:31
317,130,256
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""" En este modulo se encuentran todas la aplicaciones""" from django.apps import AppConfig class MatriculaConfig(AppConfig): name = 'matricula' verbose_name = 'Matriculas'
UTF-8
Python
false
false
186
py
10
apps.py
7
0.725806
0.725806
0
9
19.666667
58
supersteph/pytorch-openai-transformer-lm
13,022,340,884,859
833540e438807ec9c3368ba36e300297cf77bd0b
4f28d7446cfe8c484e440b3d826a9a98c75a4b45
/test.py
3de4b214a27d5cf553c8dc27f5f476cd5500652c
[ "MIT" ]
permissive
https://github.com/supersteph/pytorch-openai-transformer-lm
b70aefd3bac72034f2e2bf38943b98989e09d574
a31e739b1d3d3a2de5c8e05d54e7540a9842ed4a
refs/heads/master
2020-07-20T14:11:16.594820
2019-12-20T08:04:52
2019-12-20T08:04:52
206,656,464
0
0
MIT
true
2019-09-05T20:59:53
2019-09-05T20:59:53
2019-09-05T09:12:05
2019-02-07T21:40:39
273
0
0
0
null
false
false
import datetime as dt start = dt.datetime.now() t = dt.datetime.now() i = 0 while True: delta=dt.datetime.now()-t if delta.seconds >= 60: i+=1 print(i) t = dt.datetime.now()
UTF-8
Python
false
false
181
py
6
test.py
6
0.651934
0.629834
0
10
17.2
26
fachrytarigan/plant-area-prediction-using-flask-and-linear-regression
283,467,849,813
e2463f684a39c8b5ae69cbe34766ab88b799cf25
c3e79c2d2d22129290764b0bb05f7eccec233bfe
/app.py
80e9796cc63afdebd4a59431741bf452c9154b51
[]
no_license
https://github.com/fachrytarigan/plant-area-prediction-using-flask-and-linear-regression
72c8699c45b2dd121fadc62e923a49a2161917e4
775252bb9c7afe37020573c4327b9335568d2434
refs/heads/master
2023-03-20T00:16:11.573545
2021-03-22T14:15:06
2021-03-22T14:15:06
333,450,432
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask, redirect, url_for, render_template, request, flash from werkzeug.utils import secure_filename from werkzeug.datastructures import FileStorage from sklearn import linear_model import pandas as pd import numpy as np from mpl_toolkits.mplot3d import Axes3D from matplotlib.figure import Figure from...
UTF-8
Python
false
false
12,939
py
7
app.py
1
0.591914
0.557514
0
322
39.173913
150
pandix73/Python_learning
4,406,636,476,059
4ce55c7044eb3cd19721c12de2b373da46dc0289
c86f670a3dd715bf522ef899ca826b8a074e1c6b
/tensorflow/test2.py
9b7d113af68a3c1ccb22d2f1613beaa68ae36bb1
[]
no_license
https://github.com/pandix73/Python_learning
ac4b8114aab765a92821588bf3c282e965056183
d4f75f347a13f777da62fdc158a3ef8434e9fdce
refs/heads/master
2021-01-17T14:57:10.716009
2017-08-03T02:12:05
2017-08-03T02:12:05
48,616,296
6
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' import numpy as np import tensorflow as tf x = np.random.rand(100).astype(np.float32) y = 0.5*x*x + 1 weight = tf.Variable(tf.random_uniform([1], -1.0, 1.0)) weight2 = tf.Variable(tf.random_uniform([1], -1.0, 1.0)) weight3 = tf.Variable(tf.random_uniform([1], -1.0, 1.0...
UTF-8
Python
false
false
1,024
py
30
test2.py
28
0.695313
0.65625
0
32
31
58
ppaka/pystudy
3,564,822,858,369
0eb9fca2c1fc70b8c9b003daddb523048293d78a
3bf74549c7ddb798ace9fa62bfb47f0fff0f1a07
/game homework/chopstickGame/main.py
6eff1977aeec3b9c16b168086df19d3cae40317a
[]
no_license
https://github.com/ppaka/pystudy
b1a5e5bc50a84a87a77ae205adc8cd5d242ea72b
7543b18a9d255dd5e4676927450c075d703be8cd
refs/heads/main
2023-06-09T03:30:25.199582
2021-06-22T05:02:29
2021-06-22T05:02:29
348,222,051
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
player_cs_left = 1 player_cs_right = 1 player_second_cs_left = 1 player_second_cs_right = 1 player_turn = 1 gameOver = False who_win = "" def game(): global gameOver, who_win if player_cs_left == 0 and player_cs_right == 0: gameOver = True who_win = "player2" elif player_second_cs_left =...
UTF-8
Python
false
false
5,814
py
41
main.py
40
0.550039
0.536215
0
156
31.923077
117
brainspork/RaspberryPI-GPIO-Learning
14,130,442,435,996
00d7dbfcda8069c4e56ec782715482e34c961186
c18a9164b32a1309f10820643e7d26df2df5dd40
/gpio/twoButton.py
b8d55ca4a58d891c96bfc5571893acb82115d04f
[]
no_license
https://github.com/brainspork/RaspberryPI-GPIO-Learning
03218b3f595a3b3d849bae938338e1e23bd68b1c
3b26bbcaea394af6ba116eb4ea4baf33eb4e650c
refs/heads/master
2023-07-09T17:27:11.761028
2021-08-11T19:14:01
2021-08-11T19:14:01
395,093,284
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import RPi.GPIO as GPIO import time # Sets up for pin numbers (alt GPIO.BCM) GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) # True, False in_list = [36, 32] # Green, Red out_list = [22, 40] GPIO.setup(in_list, GPIO.IN) GPIO.setup(out_list, GPIO.OUT) questions = [ ["Is 3 > 4?", False], ["Is the sky blue?...
UTF-8
Python
false
false
1,484
py
7
twoButton.py
5
0.558625
0.536388
0
66
21.5
84
masabumair023/Virtual-Assistant-Python
953,482,745,681
b6d560f1e201af9bdfa0f78e058b6908891f6782
21b3bf05c1cba2a6ad017bcb1cdd770c7ae7c129
/Togo (Virtual Assistant).py
72fd0d3c17651258d354695d3efd77309cb22f4c
[]
no_license
https://github.com/masabumair023/Virtual-Assistant-Python
f11b8a0a55cc72ad5bebbfc99d7df834feb9d21d
3f14af036ce3a428ab7e6781f4fc66a35be0a961
refs/heads/master
2023-07-02T11:39:35.870596
2021-08-08T11:00:25
2021-08-08T11:00:25
393,933,906
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pyttsx3 # text to speech converter, offline module import datetime # to get the time import wikipedia # to get something from wikipedia import webbrowser # to work with browsers import os # to deal with files and directories import random # to generate random numbers import speech_recognition as sr # it will und...
UTF-8
Python
false
false
4,512
py
3
Togo (Virtual Assistant).py
2
0.601507
0.597518
0
118
37.169492
102
AntoineOrsoni/pyats-check-os
9,826,885,193,664
eec2f3ffbc28077fb36a06531e353ad65d69aca4
994c6471b59401647702f0dbdd7e245673c2f171
/toolbox/pyats_diff.py
99bcf1a9a93df5f88b252f5ad98fd6d58b5f5b47
[ "MIT" ]
permissive
https://github.com/AntoineOrsoni/pyats-check-os
66ca459db5f16303435916a1d3a44428b709f945
3b701c49538c9669b91b50c9fce7a04aa3088044
refs/heads/master
2023-03-05T02:49:03.726602
2021-02-18T09:06:33
2021-02-18T09:06:33
300,287,444
7
3
null
null
null
null
null
null
null
null
null
null
null
null
null
from genie.utils.diff import Diff import toolbox.database as db import json def compare_output_before_after(hostname, test_name): result_before = json.loads(db.get_output_test(hostname, test_name, "before")) result_after = json.loads(db.get_output_test(hostname, test_name, "after")) dd = Diff(result_befo...
UTF-8
Python
false
false
389
py
19
pyats_diff.py
7
0.714653
0.714653
0
13
29
81
heba-ali2030/examples
3,693,671,922,843
80c2c7044a0e8df3bb8d93dfc43b6f348f44dceb
415023588927f3bd224c30ffb5059a4196d5cbf4
/factorial_num.py
493da8f50a35691b1c87f59c84fa61ef847ebc34
[]
no_license
https://github.com/heba-ali2030/examples
77ace9d857174d575c21a1361c198aef0f9e9643
d47c314d110bc40baf5987dae887bc4ed7a05287
refs/heads/main
2023-03-18T18:16:02.982269
2021-03-11T20:52:51
2021-03-11T20:52:51
346,082,841
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Python Program to Find the Factorial of a Number num= int(input('choose a number to find its factorials: ')) if num== 0: print('factorial number is one') if num >= 1: for i in range(1, num): result = i*i print(result) print('factorials for', num) if num < 1: pri...
UTF-8
Python
false
false
368
py
4
factorial_num.py
4
0.597826
0.586957
0
12
29.583333
59
rust84/warpcore
14,766,097,587,921
b08d3f72e92959f588e6f7163e9fcd7970576c32
26a22caedbd9276c7663ba375dc7e2037cefbff4
/scripts/warpcore_cmd.py
7e0778bddccc4c7cef3195e254eeb54870876024
[]
no_license
https://github.com/rust84/warpcore
38d3bc008d2d684aec3094728f168c7322118525
4300efd6903fdd18d820db99e11c8c137cfd26a7
refs/heads/main
2023-06-16T21:53:36.031025
2021-07-11T23:06:55
2021-07-11T23:06:55
384,987,820
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import serial import os def serialcmdw(): os.system('clear') serialcmd = input("Enter command:") ser.write(serialcmd.encode()) ser = serial.Serial() os.system('clear') ser.port = "COM5" ser.baudrate = 9600 ser.open() print("Example usage: <2, 160, 220, 255, 1>") print("Parameters: <Warp Factor, Hue, Satu...
UTF-8
Python
false
false
379
py
5
warpcore_cmd.py
4
0.680739
0.638522
0
19
18.947368
72
MayrockAndy/SchafkopfAnalyser
13,924,284,018,898
9e728ad30025d998d4fd57336aeafff86077eec8
ca1c496a71b622608fed740d1e8ffbd77434e430
/schafkopf_analyser/__init__.py
afdd8e06b0240a37ee3b5df99d7b2604417663b9
[ "MIT" ]
permissive
https://github.com/MayrockAndy/SchafkopfAnalyser
b17e9f7a14930d4de1a9560ce181e160ce7a0c39
d8d5e27f6668444083acbe1c6dc10e3dbc951ee4
refs/heads/main
2023-07-13T11:19:39.307955
2021-08-12T22:10:47
2021-08-12T22:10:47
395,332,371
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .flask_factory import create_app
UTF-8
Python
false
false
38
py
9
__init__.py
7
0.815789
0.815789
0
1
37
37
Fhernd/PythonEjercicios
4,518,305,612,701
34f89744b88248f837c1a2efc85aff06e3815055
b50df8a902f4e2c1ecd8667b7b97937da3371caf
/Parte002/ex1067_hackerrank_estudiantes_lectura_periodico.py
b076038f7bd0e1db97f0fb8f1bcaf207d01be89e
[]
no_license
https://github.com/Fhernd/PythonEjercicios
5a5633855979baec89a3c257eb57aac076a7465f
204d3d59ddeed6cbf263b23f14e950c20f81f608
refs/heads/master
2021-11-23T00:26:28.861302
2021-10-14T16:50:27
2021-10-14T16:50:27
230,629,743
124
84
null
false
2021-09-15T18:45:25
2019-12-28T15:45:28
2021-09-15T18:43:56
2021-08-21T14:22:48
39,577
39
32
1
Python
false
false
# Ejercicio 1067: HackerRank Encontrar aquellos estudiantes que leen al menos un diario. # Task # The students of District College have subscriptions to English and French newspapers. Some students have subscribed only to English, some have subscribed to only French and some have subscribed to both newspapers. # You ...
UTF-8
Python
false
false
855
py
124
ex1067_hackerrank_estudiantes_lectura_periodico.py
122
0.715789
0.711111
0
18
46.5
292
JimHaughwout/gadm_scan
10,582,799,435,406
8dc802fb880fb9f7a4e1e75e9881027552b5b995
394bb1367e9d00844b6bf9f8b79563af7b6a5daa
/tools/geocode.py
6c9ec635cdfe625d6df62a935dd943b0bd484e89
[ "MIT" ]
permissive
https://github.com/JimHaughwout/gadm_scan
df55b695f7a88d3be641b9576ece097db27ad308
1572305b6f4dda28b5fb7ad2367a63d610a8b8f3
refs/heads/master
2021-01-10T15:54:40.121398
2015-11-30T15:13:29
2015-11-30T15:13:29
46,618,319
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! /usr/bin/env python """ Converting lat, long into real addresses (and back) using pygeocoder. Slower but more robust in terms of tolerance of partial addresses and level of formated information provided. This still makes use of Google's geocoding API V3. Dependency: pip install pygeocoder : param -a : geocode ...
UTF-8
Python
false
false
4,108
py
13
geocode.py
6
0.685492
0.674781
0
147
26.952381
79
schreiber-lab/fastxq
11,407,433,172,224
148b12241d47c0cc8baf9704113e83c7be8bdd74
e7b37cc2fe813ccedc3c6899ebea97a8d55e9388
/fastxq.py
24523d6ecd91f57d7bcbcd7e25eddf258bdaf485
[ "MIT" ]
permissive
https://github.com/schreiber-lab/fastxq
a02c4523b44019463cbd8dfd0952a6c2d1764e5d
c5048b2b8714a1416ef7f33f8df22307cbebbf8a
refs/heads/master
2023-04-12T18:30:09.640274
2022-08-22T18:05:45
2022-08-22T18:05:45
527,681,414
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import cv2 as cv __author__ = 'Vladimir Starostin' __email__ = 'vladimir.starostin@uni-tuebingen.de' __version__ = '0.0.1' __all__ = [ 'QInterpolation', 'PolarInterpolation', 'convert_img', 'get_detector_q_grid', 'get_detector_polar_grid', ] class QInterpolation(object): d...
UTF-8
Python
false
false
5,823
py
6
fastxq.py
4
0.509359
0.498369
0
221
25.348416
111
probml/pyprobml
9,363,028,745,697
e73713446c7ea76e924275033761eabb45d8f89f
b2bcf07493b5a1bbfb7e29c7f13ac0b380cefead
/deprecated/scripts/boston_housing.py
86328b192b7e0e26e60245dc1684acbc4c8f0750
[ "MIT" ]
permissive
https://github.com/probml/pyprobml
e1952927bceec676eb414f9342470ba4b8e6703b
9cc22f3238ae092c2b9bff65d6283c93d38d25d4
refs/heads/master
2023-08-31T07:36:11.603301
2023-08-13T02:47:12
2023-08-13T02:47:12
65,924,871
6,263
1,598
MIT
false
2023-01-20T23:34:23
2016-08-17T16:42:24
2023-01-19T23:55:44
2023-01-20T23:34:22
5,242,676
5,374
1,280
34
Jupyter Notebook
false
false
# Boston housing demo import superimport import numpy as np import matplotlib.pyplot as plt import os figdir = "../figures" def save_fig(fname): plt.savefig(os.path.join(figdir, fname)) import pandas as pd import sklearn.datasets import sklearn.linear_model as lm from sklearn.model_selection import train_test_split...
UTF-8
Python
false
false
2,283
py
1,255
boston_housing.py
518
0.696452
0.673237
0
91
24.076923
91
Farzan64n/gan-elements
2,972,117,409,013
cee21b6d50ab146dcb6ed673288c5228900ef185
7d2e8afb603b3d49ca246350e6f670bd3eb5a311
/wgangp/models.py
ad0bafc75e74540b90bc5db6080ea82a45412e8a
[ "MIT" ]
permissive
https://github.com/Farzan64n/gan-elements
b3b3de60ccbcd4c6b1c8b653b1e66aa3b80781da
01499be9a6ed75319c1bc7ee5681041579dc3ee0
refs/heads/master
2022-04-04T06:47:07.996921
2020-01-24T21:37:09
2020-01-24T21:37:09
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from tensorflow.keras.layers import BatchNormalization, Conv2D, Dense from tensorflow.keras.layers import Input, Flatten, LeakyReLU, Reshape from tensorflow.keras.layers import UpSampling2D from tensorflow.keras.models import Model def dcgan_disc(img_shape=(32,32,1)): # Adapted from: # http...
UTF-8
Python
false
false
1,782
py
12
models.py
11
0.62009
0.590348
0
57
30.263158
77
graphcore/popart
893,353,230,394
c7165a9d5edd133f71462bda6cda520eb1200f43
7d93616b09afdd38ba25f70bf56e84d92d16f8e1
/tests/unittests/python/popart._internal.ir/bindings/test_graphid.py
c156802562eaf9dd16f5bf775c5d327c71d7986d
[ "MIT", "BSL-1.0", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
https://github.com/graphcore/popart
ac3c71617c5f0ac5dadab179b655f6b2372b453d
efa24e27f09b707865326fe4a30f4a65b7a031fe
refs/heads/sdk-release-3.0
2023-07-08T08:36:28.342159
2022-09-23T12:22:35
2022-09-23T15:10:23
276,412,857
73
13
NOASSERTION
false
2022-09-29T12:13:40
2020-07-01T15:21:50
2022-09-20T10:27:49
2022-09-29T12:13:39
22,515
64
6
3
C++
false
false
# Copyright (c) 2021 Graphcore Ltd. All rights reserved. import itertools import popart._internal.ir as _ir def test_graphid_construction(): """Test that we can construct a popart._internal.ir.GraphId object.""" _ = _ir.GraphId("g") def test_graphid_operator_lt(): """Test the < operator.""" for xst...
UTF-8
Python
false
false
1,392
py
2,412
test_graphid.py
2,241
0.531609
0.514368
0
52
25.769231
78
dream-developer/project-selenium
17,076,789,991,551
b18ff04ec8f74ab9ad7384661a0296d4eede7655
d4700f720c27d6a49fb624f1d0efb013828abe19
/python/selenium_screenshot.py
2ffadaf752d27b4efdbe203dcb8a19234c77a364
[]
no_license
https://github.com/dream-developer/project-selenium
d7cf4fa392bc41933589d11f72e9e1ccca5f1532
066895c54b168a1616d568ae8f1da09c597ee195
refs/heads/master
2023-04-29T19:11:26.038941
2020-07-01T11:34:42
2020-07-01T11:34:42
265,194,479
4
8
null
false
2023-04-24T07:56:18
2020-05-19T08:48:29
2023-04-23T16:19:02
2023-04-24T07:56:08
12
4
9
0
Python
false
false
# -*- coding: utf-8 -*- from selenium import webdriver import time url = "file:///C:/Users/writer/study_work/html/javascript.html" driver = webdriver.Chrome() driver.get(url) driver.save_screenshot("screenshot.png") time.sleep(3) driver.quit()
UTF-8
Python
false
false
253
py
37
selenium_screenshot.py
26
0.70751
0.699605
0
9
26.111111
63
Twiske/AdventOfCode2015
9,208,409,884,023
db08237e0265a74eacb0e480135601abc5959377
ad610ea4f56cee872781c126a874bde412026913
/8/8.py
00b622e0cbfbef0602fdcd70c03a031efbee25de
[]
no_license
https://github.com/Twiske/AdventOfCode2015
3d609e33c99e0739027c624731d1c0b0bc00a261
1096f2edc06544981b64222200bba164251dd472
refs/heads/master
2021-01-10T15:21:20.762839
2015-12-26T22:35:58
2015-12-26T22:35:58
48,625,304
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import sys import re stringRegex = re.compile('"(.*?)"') for line in sys.stdin: internalString = stringRegex.search(line).groups()[0] processedString = bytes(internalString, "utf-8").decode("unicode_escape") print(len(processedString)) print(len(line)) #print(len(raw(line))...
UTF-8
Python
false
false
321
py
9
8.py
7
0.682243
0.672897
0
12
24.916667
75
xeroc/vanteem
1,348,619,753,822
757a905a30565fb452660017cc5abf456d775c5a
294a83961324b1cc42dfa5267a31330c95b956ae
/setup.py
28c253c5468b4313005cd55195b2fc79cc1aac74
[]
no_license
https://github.com/xeroc/vanteem
518d361724b6a25d1169b17c22d8e8f412e2956e
fbea8f32a1b7a10673242dbffb9d0d6717102550
refs/heads/master
2017-05-02T20:48:39.255096
2016-04-28T11:09:24
2016-04-28T11:09:24
57,294,289
6
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python from setuptools import setup VERSION = '0.0.1' setup(name='vanteem', version=VERSION, description='Python based blog software with posts stored on the STEEM blockchain', long_description=open('README.md').read(), download_url='https://github.com/xeroc/vanteem/tarball/' +...
UTF-8
Python
false
false
1,412
py
15
setup.py
3
0.5
0.495751
0
40
34.3
89
RocketDonkey/wargames
1,683,627,226,790
5ac28d7c8245929b2b701951a189f4f15d37b995
38edafb83f2265e00aaaaec5697617b4ac6f5f14
/christmas_challenge/christmas_challenge.py
c67833da61b84106487aa62ec6191707b6b4b6d6
[]
no_license
https://github.com/RocketDonkey/wargames
dba8a0f86e9c358c7a0f0b8df17392315d139b11
757b0f94fc3bba11cee8ef5b42469a7eefb56eb4
refs/heads/master
2021-01-18T22:36:53.937291
2016-05-15T10:05:16
2016-05-15T10:05:16
30,543,160
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""c01db33f Christmas Challenge. This challenge involves logging into the server at 0wn.b33f.me and recovering the keys from the service. * Flag 1: Encrypted response can be reversed to find the flag. * Flag 2: Execute a FORTRAN program. * Flag 3: (not solved) """ import socket import struct import sys # This...
UTF-8
Python
false
false
15,897
py
11
christmas_challenge.py
3
0.645782
0.604894
0
478
32.257322
84
olicity-wong/BayesClassifier
4,449,586,136,491
e929b508733995ba1a4363308578f0d30f998668
1dcac9696e6ec3499733d8b3056cb08e80f720f2
/bayes_realize.py
909068c2f051a3419e703e49acffec79ca80306d
[]
no_license
https://github.com/olicity-wong/BayesClassifier
6caf31aed98e8d6dada4429eddcff255c8463c11
31e82c959bcecff05a08e1d2e6c11d57d2de6d74
refs/heads/master
2020-05-09T17:11:20.212362
2019-05-30T04:30:13
2019-05-30T04:30:13
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import codecs import jieba from numpy import * import numpy as np import re from string import digits f_root_path = 'C:/Users/91460/Desktop/论文相关/hapi/MyAll/data/' f_scrapy_path = f_root_path + 'scrapy_data/' f_content_path = f_root_path + 'content_data/' f_stop_words_path = f_root_path + 'aux_d...
UTF-8
Python
false
false
9,543
py
71
bayes_realize.py
6
0.596292
0.589449
0.00011
258
34.120155
117
ItsTheRealVictor/clicker
11,897,059,449,184
f4543d605884e2b1a2ce6118ed530ed783a68ea9
8324aa2da55d610432018e9885805663a31529b5
/htmlFinder.py
cef3c99e2db19b23f2cce74b7a92d52453d1aa14
[]
no_license
https://github.com/ItsTheRealVictor/clicker
d95ca1c093d4565ebdf9993b02bc2a5575d44ee9
1024b754ef41896f12700f26845e3924dd449c2a
refs/heads/main
2023-08-26T17:45:50.784121
2021-11-01T04:37:27
2021-11-01T04:37:27
414,310,102
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from bs4 import BeautifulSoup import requests URL = r'https://jobs.intel.com/page/show/search-results#q=engineering%20intern&t=Jobs&sort=relevancy&layout=table' page = requests.get(URL) soup = BeautifulSoup(page.content, 'lxml') titles = soup.find_all(id='AllResults') print('done')
UTF-8
Python
false
false
288
py
5
htmlFinder.py
5
0.760417
0.75
0
12
23
114
durkeems13/LN_image_analysis
14,456,859,941,834
014c007cc8880be1bd036007a16922e1bb92f3ec
011fc46b553db5a99c47ca91feb7ba39f68df961
/HR_analysis/ss_lupus_statschecks_3classBootstrapping.py
58338b31a07c86669a236e4235b21229fc356a95
[]
no_license
https://github.com/durkeems13/LN_image_analysis
5cebc5946b2d61cff4f5b70074025f0df4575433
a71af989484809f1dc824a21d893477c14e83324
refs/heads/main
2023-08-10T21:35:41.557545
2021-09-17T04:58:33
2021-09-17T04:58:33
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 11 10:55:33 2020 @author: rebaabraham """ ### Lupus single stain cellular analysis ### 3 class bootstrapping analysis import sys import os import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib.ticker import MaxNLo...
UTF-8
Python
false
false
11,562
py
52
ss_lupus_statschecks_3classBootstrapping.py
43
0.621519
0.589604
0
256
44.148438
203
Decoder996/entity_resolution
7,095,286,019,901
b2f08d89bb9cb04e2d046d160477125f492205d9
cdc770bb64d90010f503df093436403395d54896
/python/blocking.py
51c5ccd01cef3fbb6cea673161eb79619d9b30a7
[ "MIT" ]
permissive
https://github.com/Decoder996/entity_resolution
5a43f5f5f95ba7cd281ce9489e6e5f9bee1694ce
4fe98701422bbceebc0dfbfc2733add2b9695f2a
refs/heads/master
2023-05-24T20:57:29.800001
2015-10-02T18:49:49
2015-10-02T18:49:49
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" This is the blocking scheme used to make Entity Resolution computationally scalable. """ import numpy as np from itertools import izip __author__ = 'mbarnes1' class BlockingScheme(object): def __init__(self, database, max_block_size=np.Inf, single_block=False): """ :param database: RecordDatab...
UTF-8
Python
false
false
4,194
py
36
blocking.py
25
0.594897
0.594659
0
100
40.95
119
zk040377/load2python
16,192,026,740,302
7e0b63305d41406468c3b05acdc294258018c883
546fda8ea4c37dd9b633ab2fb81ae18987085bb6
/用Python玩转数据/3.2-exercise.py
edaa2350bc1cb2665e704287054e0beca5e2c851
[]
no_license
https://github.com/zk040377/load2python
a454addb9465848b5408685498eee25cb198140d
82eab48182fcfdf16450e0b66e81377d2f4a7385
refs/heads/master
2022-01-08T04:57:58.551691
2018-10-17T06:44:53
2018-10-17T06:44:53
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding:utf-8 import numpy as np from pandas import Series, DataFrame a = np.array([(1, 2, 3), (4, 5, 6), (7, 8, 9)]) print a[2].sum() print sorted(set('You need Python.')) sa = Series(['a', 'b', 'c'], index = [0, 1, 2]) sb = Series(['a', 'b', 'c']) sc = Series(['a', 'c', 'b']) print sa.equals(sc) print sb.equals(sa)...
UTF-8
Python
false
false
662
py
206
3.2-exercise.py
178
0.564024
0.512195
0
23
27.565217
75
daaain/onfido-python
6,674,379,221,572
c2b65c067165acfd08a144f6c0bb41c262ed6a06
e1d141ea82b489ba581d6df68bfe68431e901e2d
/tests/test_checks.py
c595f4f7feb9f5fdea9204bb66c1f48be6326222
[ "MIT" ]
permissive
https://github.com/daaain/onfido-python
5283f418110dc77d3c8089ed545975293c8cc0ff
62675c97cf7d03de2ab3ed4b07ec0bde9e2b1a5d
refs/heads/master
2022-12-01T23:47:32.090799
2020-08-12T12:58:31
2020-08-12T12:58:31
288,395,465
0
0
NOASSERTION
true
2020-08-18T08:12:19
2020-08-18T08:12:19
2020-08-12T12:59:23
2020-08-12T12:59:20
830
0
0
0
null
false
false
import onfido api = onfido.Api("<AN_API_TOKEN>") fake_uuid = "58a9c6d2-8661-4dbd-96dc-b9b9d344a7ce" check_details = { "applicant_id": fake_uuid, "report_names": ["identity_enhanced"] } def test_create_check(requests_mock): mock_create = requests_mock.post("https://api.onfido.com/v3/checks/", json=[]) ...
UTF-8
Python
false
false
1,061
py
16
test_checks.py
14
0.69934
0.678605
0
32
32.15625
105
Palashnenkoff/YaMDb
498,216,241,810
efc297f366c23f9c1607e5b500e315e89d200141
fd34df978209b29fbedf7836859de6f978deba14
/reviews/migrations/0002_auto_20210822_0907.py
6ce6b991a00d5e7d161ab8d25d9fc63490ba63b3
[]
no_license
https://github.com/Palashnenkoff/YaMDb
6b2d00a293127d51b3dbc837c66ff00118b5bc18
a67342d2ce4fbf919a7112c36fd3a61b4cfbec63
refs/heads/master
2023-08-27T14:59:50.392946
2021-11-03T11:19:18
2021-11-03T11:19:18
418,856,253
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.2.16 on 2021-08-22 06:07 from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('reviews', '0001_initial'), ] operations = [ ...
UTF-8
Python
false
false
2,693
py
21
0002_auto_20210822_0907.py
18
0.60156
0.593019
0
69
38.028986
172
Planet-Moon/Weatherstation
17,257,178,622,408
168532b17a87c476f78a2fe2ebb7ba6ac696d4b0
127c9376d2e8fbff8ca2d162670418ebc2357c77
/ReadSerial_Wetterstation.py
dc3667826dc76d99e39268a39e25b37f831797d0
[]
no_license
https://github.com/Planet-Moon/Weatherstation
fe4da879f15058a56761eaecdd530b97eaf02ebe
2c1ddd779939f9a2c24d01b0d5c39be01814fe2a
refs/heads/main
2023-01-08T06:50:41.596959
2020-11-14T13:07:18
2020-11-14T13:07:18
307,520,109
0
0
null
false
2020-10-31T21:56:59
2020-10-26T22:26:21
2020-10-31T21:50:34
2020-10-31T21:56:58
731
0
0
0
C++
false
false
#ReadSerial.py import serial import time import platform import datetime import struct import os import sys import errno debug = 0 write_file_flag = 1 dummyOutput_flag = 0 output_path = "" op_sys = platform.system() print("op_sys: "+str(op_sys)) if(op_sys == "Linux"): port = "/dev/ttyACM0" elif(op_sys == "Windows...
UTF-8
Python
false
false
4,616
py
8
ReadSerial_Wetterstation.py
3
0.564991
0.55091
0
141
31.744681
235
camirmas/book-tracker-django
1,838,246,036,551
eaab0780ec5bf2f9e46865579515ee7eec8204b7
23419b72f2e059a2e98bea8c9ee928608b947fae
/tracker_app/migrations/0001_initial.py
3f4b1f177cda2cbe186f21cc76a2e006d55a424e
[]
no_license
https://github.com/camirmas/book-tracker-django
1ba5325d95fbff57de88b15e1359ecfebcc7c1be
6ab17e70476a55997ba3888ec0d4ccdad5f73158
refs/heads/master
2016-05-23T13:23:18.713452
2015-04-01T07:52:14
2015-04-01T07:52:14
33,083,573
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
UTF-8
Python
false
false
1,828
py
7
0001_initial.py
7
0.531729
0.520241
0
48
37.083333
114
julieqiu/python-finances
2,946,347,612,644
ef52d86221889ea1688e8d7cb7edd2669df7132e
6a15ca69993b6db29f8c8f0213ff17e8a4d8b65f
/finances/database/models/db_transaction_classification.py
f37ae90b2be4b829e124ea2b3c5c48447d5f24c7
[]
no_license
https://github.com/julieqiu/python-finances
aa84de5bcf3dd48fce2b99bd4a63fbe0c4b2acfe
9e3223ba7e7927f9cceff8b4b331a8781decd78d
refs/heads/master
2020-03-23T05:49:58.904674
2019-01-11T01:25:52
2019-01-11T01:25:52
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sqlalchemy.orm import relationship from sqlalchemy import ARRAY, JSON, Integer, Column, String, Text, Boolean, ForeignKey, Numeric, UniqueConstraint from finances.database.models.base import Base class DbTransactionClassification(Base): __tablename__ = 'transaction_classifications' __table_args__ = (Un...
UTF-8
Python
false
false
569
py
91
db_transaction_classification.py
62
0.727592
0.717047
0
16
34.5625
113
CrazySunix/Spider
12,953,621,390,298
1a7b5cfdc6a197e692a40cee07d6f23f2f706338
8b7bce38a9260fd80c9ccb623925c85e5eed8e26
/58Project/processing.py
0c8f5f96fac1175e495439dbe22120854e51aefe
[]
no_license
https://github.com/CrazySunix/Spider
bfc6b93fc02a0fdf73d5f4a02f5f1f6715b63286
d36ce6c6eda20f80baf1d8f92fce31cd823c6ed8
refs/heads/master
2020-02-22T07:35:57.892013
2017-08-23T08:42:14
2017-08-23T08:42:14
100,044,189
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from multiprocessing import pool from page_parsing import get_links_from,url_list,item_info,get_item_info from channel_extract import channel_list db_urls = [item['url'] for item in url_list.find()] index_urls = [item['url'] for item in item_info.find()] x = set(db_urls) y = set(index_urls) rest_of_urls = x - y
UTF-8
Python
false
false
313
py
5
processing.py
4
0.728435
0.728435
0
9
33.888889
72
shanmugharajk/QaNet
6,347,961,694,434
524212efeac37e1cd6958ff1713514c723d8e6d6
945feb5d2d1cbd9084c04c1ec89187557df64018
/src/qanet/post/models.py
1122cd6680a5cdecbdcf24a9763d05fb0c4b768e
[]
no_license
https://github.com/shanmugharajk/QaNet
d4d05e95b4f48fe9de35ebbd5a5ec525c3e01c94
b088a3b5f3b2f48632aa20b5fcf82640dc02da17
refs/heads/main
2021-06-14T00:11:37.683936
2021-04-19T02:58:42
2021-04-21T03:47:11
145,062,733
16
3
null
false
2021-03-08T16:10:45
2018-08-17T02:38:15
2021-01-03T21:32:06
2021-01-21T01:55:28
14,019
10
3
1
Go
false
false
from sqlalchemy import Column, DateTime, ForeignKey, Integer, String, Table from sqlalchemy.orm import relationship from sqlalchemy.sql.schema import PrimaryKeyConstraint from qanet.enums import PostType from qanet.models import OwnerEditorMixin, TimeStampMixin from qanet.database.core import Base assoc_question_pos...
UTF-8
Python
false
false
1,535
py
202
models.py
105
0.730293
0.72899
0
39
38.358974
93
survivalcrziest/WordFreqCount
12,635,793,820,944
6ba85094d69d81646abaa50d0cbd741f1e347c70
d7b87091c834e7827264f90062f93213d494866e
/WordFreqCount.py
9f1389660382e68a632f2cc93cb8a70a249b0bbb
[ "MIT" ]
permissive
https://github.com/survivalcrziest/WordFreqCount
e68dfdfd2e90f8c8d1c8f0be54b09b985bef9784
965e10ecda6131511e15ee281531303729cae9a0
refs/heads/master
2020-12-07T01:41:01.596867
2016-08-27T22:23:17
2016-08-27T22:23:17
66,737,477
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # TODO: add search phrases # import urllib from bs4 import BeautifulSoup from collections import Counter import os import re maxAnalysisCount = 150 maxOutputCount = 100 outFileName = "CraftConfWordFreqTrend.csv" commonWordsFileName = "CommonWords.csv" def readList(input, ...
UTF-8
Python
false
false
2,592
py
4
WordFreqCount.py
1
0.667568
0.630116
0
83
30.180723
107
wwzskyrain/python-study
3,307,124,863,959
0e26077d3f558f4a04ddc0d7ffda04c5ad9ad31f
b9526da1873e9ba8992a39eb29fe06b6fd2640b4
/erik/erik/http_erik/http_one.py
fdd6a6191e3a0df878d4bed63202ebd7372c5eae
[]
no_license
https://github.com/wwzskyrain/python-study
a5b35d364bef94683c12818a7c69da06830afb9c
d6bec7ad96775262e46f1ad2fb7b6f0ed83dfd81
refs/heads/master
2020-03-21T20:55:19.349582
2018-08-09T11:06:29
2018-08-09T11:06:29
139,036,703
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/Python # -*- coding: UTF-8 -*- import urllib.request import urllib.parse import json def request_localhost_and_print(): response = urllib.request.urlopen("http://localhost:8893/students") html = response.read().decode('utf-8') print("response: ", html) loaded_response = json.loads(html) ...
UTF-8
Python
false
false
5,710
py
2
http_one.py
2
0.702822
0.575485
0
106
52.481132
907
AnkitM18-tech/Python-Introductory-Problems
9,165,460,242,870
6138ae699a69cdd12117055288f5a852678673b4
0a5d2213ae89d7364ca79d8f3ba7f5590766554e
/3.Loops/SquareRoot.py
052b694c28e5f4bd38ea385256ec53b645f1a2ce
[]
no_license
https://github.com/AnkitM18-tech/Python-Introductory-Problems
5f2e4d2b964d17e7820e30faacb0c8233b8c4eff
aa984b4758d812a529eff820a4c5f21fe7fecd12
refs/heads/main
2023-06-25T10:31:33.927879
2021-08-01T17:01:29
2021-08-01T17:01:29
391,678,089
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jul 7 18:59:13 2020 @author: OCAC """ num=float(input("Enter the Number:")) guess=num/2 eps=10**-12 while abs((guess**2)-num)>eps: guess=(guess+(num/guess))/2 print("The Approximate Square Root Of The %f is :%.4f"%(num,guess))
UTF-8
Python
false
false
284
py
83
SquareRoot.py
82
0.616197
0.545775
0
17
15.764706
67
roboticmonkey/hb-intro-final-project_Battleship
5,772,436,073,070
31e737bdbf383b0929132e437974f8d83a87bf8f
13a4d613d3c11972a2bf7b6821d4fe60f4bf3f29
/utilities.py
f525fdf3e3d5a951bca2d411f9739d5dd522ace5
[]
no_license
https://github.com/roboticmonkey/hb-intro-final-project_Battleship
a4178eb21ff88566d9a86c81a050de6487fd81c6
65ed38b8d8cc7c158c6c209adeb2b85a9a04eedf
refs/heads/master
2021-01-15T23:46:18.081037
2015-10-16T04:13:54
2015-10-16T04:13:54
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import board import random random.seed() test_grid = board.Board() #check for valid number range. returns True of False def valid_number(user_input): if (len(user_input) == 2): if (user_input[1] == "0"): return False else: return True if (len(user_input) !=2): if (len(user_input) == 3): number = use...
UTF-8
Python
false
false
6,050
py
14
utilities.py
9
0.722645
0.718678
0
188
31.170213
108
yangmin521/gjoa
10,849,087,425,131
08f39e29fde03565ecac83545184e704bae0ad01
0f2c32602b82eb64295c3dc1a806eb3791b71e8d
/Classes/DBObjects/Address.py
f6f0f3059ccb9dbcb3c6240175cbb2ceab1d7b6d
[]
no_license
https://github.com/yangmin521/gjoa
77a9a39477c979e0d71c55d606b03ad3270c397d
7a120a02340d07eb2b1d85ad21897cc5488c7092
refs/heads/master
2022-10-11T19:43:56.385287
2020-06-05T21:16:48
2020-06-05T21:16:48
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from Classes.DBObjects.DBObject import DBObject import decimal # Class to handle address class Address(DBObject): def __init__(self, address=None, pub_id=None, address_type=None, status=None, amount=None): super().__init__(table='addresses', key='aid') # Assign attributes, if present. ...
UTF-8
Python
false
false
2,450
py
23
Address.py
22
0.61551
0.601633
0
56
41.785714
109
5unKn0wn/ctfs
3,839,700,790,584
980200562e61e4f8c770cfeb9416a009ee86ae44
8349aac7fbee610b2dbe5d1fa13e9d714a0264e3
/2018/tamu/pwn3.py
2af1e23ad5a2e0b5923dbbca14bfe6d0cb1885a0
[]
no_license
https://github.com/5unKn0wn/ctfs
3d3adde87ebbc8c2350e48274a15c35887444625
b973773b43bdb4e6ad80606aa11b690fc44545cb
refs/heads/master
2023-08-10T01:54:14.798392
2023-07-21T23:50:21
2023-07-21T23:50:21
92,021,189
34
8
null
null
null
null
null
null
null
null
null
null
null
null
null
from pwn import * r = remote("pwn.ctf.tamu.edu", 4323) # r = process("./pwn3") payload = "A" * 0xf2 payload += p32(0x08048390) # puts got payload += p32(0x080485DB) # pr payload += p32(0x0804A018) # libc got payload += p32(0x080483D0) r.sendlineafter("echo? ", payload) r.recvuntil("\n") libc = u32(r.recv(4)) - 0...
UTF-8
Python
false
false
572
py
212
pwn3.py
166
0.660839
0.520979
0
26
21
38
darkdrei/GestionRegistro
9,749,575,771,658
c79868661d0ba03700d9f0caa17b0576729458f6
6bf54f8c985ec27ae62680719d755ba302659aaa
/usuario/models.py
3becb670b03426c353ec177bd817d54802bd3c2e
[ "MIT" ]
permissive
https://github.com/darkdrei/GestionRegistro
b480ee7438d316d7def3508fe6b0f03658139e14
df7d605822225251b19106e72e3bc20eb230249b
refs/heads/master
2021-01-20T04:36:39.559415
2017-08-06T19:49:51
2017-08-06T19:49:51
89,705,335
0
0
null
false
2017-10-11T16:44:35
2017-04-28T12:46:50
2017-04-28T17:43:14
2017-10-11T16:44:15
5,383
0
0
2
JavaScript
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models import re from django.core import validators from django.contrib.auth.models import User from empresa import models as emp # Create your models here. class Documento(models.Model): nombre = models.CharField(max_length=30...
UTF-8
Python
false
false
3,165
py
64
models.py
38
0.649605
0.641074
0
102
30.029412
130
j-kincaid/python-habits
1,675,037,272,763
e1ec11afa7f548e94308d825b4fbbc88633471bf
bcabfb5cc3bd9b228118b1c0e1348dd968c4fef1
/mysteryNumber.py
bb782ed91a2c947e56c99a335fd008395cb48b23
[]
no_license
https://github.com/j-kincaid/python-habits
f99df43c06f3fa6aecbebcbdf4a8985cfcad155e
17d49b46a2c2161ed317032c6ba0bc293fbb635e
refs/heads/main
2023-09-03T02:12:40.340032
2022-08-27T18:53:49
2022-08-27T18:53:49
430,483,969
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random # """ # Feedback: The first printed statement should clue the user # in to what the program is doing. If they choose 1 in the beginning # then the random number will be picked between 1 and 1, it # will always be 1. It should say something more like # A random number will be picked between 1 and t...
UTF-8
Python
false
false
1,232
py
22
mysteryNumber.py
21
0.670455
0.659903
0
35
34.142857
148
humphrey43/RaspBerry
7,825,430,414,806
e34c6b5f0ed04c7874759d5c906138c604778028
f94f6cd9d337c91449d09776ac03e15736102fef
/RadioClock/src/radioclock/timebase.py
8beea7aa12fe1a54c566108c12bdfeab9b3fa91f
[]
no_license
https://github.com/humphrey43/RaspBerry
67a04276f17b5d50808cdd63165c5cf7cd5b18bb
aa46dd4e1eccd97140507c5797c874c52d9bd99c
refs/heads/master
2021-01-10T10:11:39.258197
2016-03-27T17:52:24
2016-03-27T17:52:24
53,202,537
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Created on 24.02.2016 @author: hardy ''' from datetime import datetime from datetime import timedelta from kivy.clock import Clock from swbus import SWBusComponent TIME_BASE = "TimeBase" TIME = "Time" SECOND = "Second" MINUTE = "Minute" FIRE = "Fire" TIMER = "Timer" INIT = "INIT" STOP = "STOP" class TimeBase(...
UTF-8
Python
false
false
2,163
py
29
timebase.py
24
0.539066
0.530744
0
85
24.341176
77
Prismary/taki
352,187,358,751
149f2f849fa76aa754c120a6005e82ab233ea5ac
70f15cb7ac90e532a16743a9bb4ef507ea76e62f
/twitter.py
4c810ca4c143e1fb6425b89285b5a1d5991bba18
[]
no_license
https://github.com/Prismary/taki
5e56595fb631420547be7653c23d16d529a465e6
b89ec42101508eeb6071e6568a9a4a7fa93e64c9
refs/heads/master
2020-09-26T19:03:49.783971
2020-04-13T14:26:28
2020-04-13T14:26:28
226,320,442
3
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import tweepy import yaml with open('config.yml', 'r') as cfgfile: config = yaml.load(cfgfile, Loader=yaml.FullLoader) consumer_token = config['tokens']['twitter']['consumer_token'] consumer_secret = config['tokens']['twitter']['consumer_secret'] access_token = config['tokens']['twitter']['access_token'] access_se...
UTF-8
Python
false
false
689
py
6
twitter.py
4
0.730044
0.730044
0
20
33.45
64
bellyfat/crypto-derivative-trading-engine
1,176,821,066,278
2939cd34491c5b9536504136388eb57a2975a428
c1fe1de6f1d579437e515cf99e81f71ecfa9e5d5
/diversifly/components/globals.py
d359a8dd1a9e81cfee908de67f23c7ae63412d67
[]
no_license
https://github.com/bellyfat/crypto-derivative-trading-engine
209d364681187fd467275718ed85b27354bfee48
11299d3c609f9acf7ef7264cce25c21a59ccc0a9
refs/heads/main
2023-05-09T23:47:26.652449
2021-06-01T21:48:51
2021-06-01T21:48:51
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time as time import pandas as pd import numpy as np from datetime import datetime, timezone, timedelta import itertools as itertools from unsync import unsync from enum import Enum import logging as logging logging.basicConfig(format="%(asctime)s - %(message)s", level=logging.INFO) # python binance from binanc...
UTF-8
Python
false
false
3,301
py
16
globals.py
13
0.63193
0.626174
0
73
44.232877
119
Billdex/weiboSpider
11,261,404,265,852
5e55cab025f017dfbd933fcb03acfe722d5d7e0c
a64b042cb2c154ff7c913c17bd6677b02f2b753b
/relaySpider.py
1e4b0f0154cbc0ac62c5e2d7234f6a0b427811a6
[]
no_license
https://github.com/Billdex/weiboSpider
1e527922e250a32a636eaf5ce154c6e50ca119fb
7ae539a56fc28f1c30deb65afa99232b15431d6e
refs/heads/master
2020-06-03T23:42:25.132479
2019-06-18T12:30:20
2019-06-18T12:30:20
191,780,662
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import random import matplotlib.pyplot as plt from spiderUtils import * # 获取某条微博转发用户的信息 def getRelayUsers(mid, num): Users = [] for page in range(1, 25000): url = 'https://m.weibo.cn/api/statuses/repostTimeline?id={}&page={}'.format(mid, page) data = json.loads(getHtmlText(url)) ...
UTF-8
Python
false
false
2,544
py
5
relaySpider.py
4
0.567464
0.542699
0
72
31.541667
103
Cornholius/web_library
13,769,665,197,883
c9cd61d9f51b57699806574f887f3da83267f419
29b24bad90a48399174da29335f9182e27ef0e82
/library/forms.py
7376aef0483a1c26ad0a522f0e12c1a3ef93146f
[]
no_license
https://github.com/Cornholius/web_library
fde9e58cafcd28c56195838d8623c55ade732d69
856a51697a0eff9ed5396333f0f6e13cb3e8acd0
refs/heads/master
2020-09-25T01:38:11.577269
2019-12-09T14:34:50
2019-12-09T14:34:50
225,890,053
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import forms class UserForm(forms.Form): search_field = forms.CharField(label='', widget=forms.TextInput(attrs={'size': '40'})) class AddBookForm(forms.Form): author = forms.CharField(label='Автор', max_length=120, widget=forms.TextInput(attrs={'size': '68'})) book_name = forms.CharField(l...
UTF-8
Python
false
false
848
py
9
forms.py
5
0.670762
0.638821
0
20
39.55
111
jpawlikow/auth_app
16,252,156,258,163
7cd6825ae8b9def423f3c5c303bc1d28ef80f790
dcd6b89bf543f4ef533894336daa98eb16bc5628
/account_app/admin.py
1f7b6d0d0c5dfb4d52b363f8b363cfe1ed930fb4
[]
no_license
https://github.com/jpawlikow/auth_app
9f7bd52a0e02a12e7ed68b09bc36abef8302340a
5af32754f2de53aeb274676cc8c46ea8da7e1b65
refs/heads/master
2022-04-22T16:17:19.338788
2020-04-18T11:41:36
2020-04-18T11:41:36
256,744,635
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from account_app.models import UserProfile, Site @admin.register(UserProfile) class UserProfileAdmin(admin.ModelAdmin): pass @admin.register(Site) class SiteAdmin(admin.ModelAdmin): pass
UTF-8
Python
false
false
232
py
13
admin.py
10
0.788793
0.788793
0
12
18.333333
48
abhiabhi94/fulfil-io-trial-project
19,215,683,715,494
6103d513100e6324f1218cabca6e8638797b5b6c
f56e703188ba38034e98a5475de15010648932ab
/product/managers/hook.py
3e80a0db01bb2f4dfa8c2b2dba497fbe7dc64c1c
[]
no_license
https://github.com/abhiabhi94/fulfil-io-trial-project
ffb64a3f533efc3b1b30e660b2308c5a820f2582
627fbc517262ccbe6a2fdac89c695ba4a9fe2e5f
refs/heads/main
2023-06-25T22:32:51.619299
2021-07-30T00:48:55
2021-07-30T01:01:01
390,752,201
7
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models class SubscriberManager(models.Manager): def get_subscribers(self, event): return self.filter(event=event)
UTF-8
Python
false
false
150
py
51
hook.py
31
0.74
0.74
0
6
24
40
sky-dream/LeetCodeProblemsStudy
1,872,605,767,070
54dd3e60480d697f5d0fe9d203a9f1d8b8a15fb7
6d25434ca8ce03f8fef3247fd4fc3a1707f380fc
/[0072][Hard][Edit_Distance]/Edit_Distance_4.py
fbd7c53e9064de801a2378489fcc5d8a91dd7a45
[]
no_license
https://github.com/sky-dream/LeetCodeProblemsStudy
145f620e217f54b5b124de09624c87821a5bea1b
e0fde671cdc9e53b83a66632935f98931d729de9
refs/heads/master
2020-09-13T08:58:30.712604
2020-09-09T15:54:06
2020-09-09T15:54:06
222,716,337
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# leetcode time cost : 92 ms # leetcode memory cost : 16.2 MB # Time Complexity: O(M*N) # Space Complexity: O(M*N) # solution 2. dp with recursion class Solution: def minDistance(self, s1, s2) -> int: memo = dict() # the memory cache def dp(i, j): if (i, j) in memo: return memo[(...
UTF-8
Python
false
false
1,052
py
794
Edit_Distance_4.py
763
0.452381
0.421905
0
36
28.166667
70
GoogleCloudPlatform/PerfKitBenchmarker
14,946,486,200,041
4d2b5a71db7ad8947620bf729485e973600fc0e4
ecaba173879f92f24e3c951866fda23c0a4fc426
/perfkitbenchmarker/resource.py
6cf140127954e1443578e5b798d9aa63c58bd236
[ "Classpath-exception-2.0", "BSD-3-Clause", "AGPL-3.0-only", "MIT", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker
2f4917fd796db4eb90822c557d8fa08a497fbd48
d0699f32998898757b036704fba39e5471641f01
refs/heads/master
2023-09-02T08:14:54.110308
2023-09-01T20:28:01
2023-09-01T20:28:38
21,950,910
1,923
567
Apache-2.0
false
2023-09-13T22:37:42
2014-07-17T17:23:26
2023-09-11T14:39:11
2023-09-13T22:37:42
22,937
1,817
480
255
Python
false
false
# Copyright 2014 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
UTF-8
Python
false
false
17,842
py
1,120
resource.py
818
0.677559
0.676494
0
514
33.712062
80
afcarl/Thor-Server
10,084,583,223,026
137237b603812b8f69de9d04f1458febbd36f282
3e3f0c127ab5750d6bf37e2e6a922f69cb3e0114
/website/views/login.py
e151f60cd61999737c680cc232242f55dff7af29
[ "MIT" ]
permissive
https://github.com/afcarl/Thor-Server
823ecbf8c23e756e17ba5cd4def17f384b6dbf9c
1acaf7436b22100ef241c779365fb0297165c063
refs/heads/master
2020-09-04T17:36:13.759521
2018-06-04T10:41:52
2018-06-04T10:41:52
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Blueprint, render_template, redirect, flash, request, url_for from flask_login import login_user, logout_user, login_required from ..utils import require_unauthed, ts, send_email from ..forms import LoginForm, EmailForm, PasswordForm from ..models import User from .. import db login = Blueprint("log...
UTF-8
Python
false
false
2,465
py
55
login.py
33
0.656795
0.649493
0
74
32.310811
84
azmtva01/Money-Control
4,552,665,352,227
db03b193cddc969c8f01a7a77202f62b2cccc209
30250bc838b78e8fb4f20fc66f1ac9e0894a835a
/moneyproj/moneyapp/admin.py
a64d56137cbe4bb05aa13adde932042e72b789a6
[]
no_license
https://github.com/azmtva01/Money-Control
67eaa93e4429302752c1c2f442b2d4555f790883
1867d3db4ea0c6a8a1da9fe5549e52a631f88362
refs/heads/master
2022-07-29T19:03:53.995792
2020-05-22T10:47:01
2020-05-22T10:47:01
266,083,774
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from django.utils.safestring import mark_safe from .models import Category, Person, Budget class BudgetInline(admin.TabularInline): model = Budget extra = 1 class PersonAdmin(admin.ModelAdmin): list_display = ('name', 'age', 'user_profile', 'currency', 'auth_code', 'tota...
UTF-8
Python
false
false
1,216
py
11
admin.py
11
0.677632
0.67352
0
39
30.179487
107
leantony/learing-python
3,066,606,650,565
6dc976f4598be80b6bfa355dedb754d8039be160
fd602843d5a5ba03c186fb578f0a775ee175a079
/files.py
037a71fa17feda508aed9c8b678bd98c200ddc2b
[]
no_license
https://github.com/leantony/learing-python
6ef6cb1944587e3036cca0af0bf5dde4cd287e3a
846e263da64cc561d84ff20462874896cefc43e3
refs/heads/master
2021-08-18T19:47:38.404290
2017-11-23T17:44:42
2017-11-23T17:44:42
105,186,698
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
data = open('alice.txt', 'r') content = data.read() i = 0 s = [] for line in content.split(): i +=1 s.append(line) print(len(s))
UTF-8
Python
false
false
133
py
12
files.py
10
0.586466
0.571429
0
10
12.3
29
drdavidknott/betterstart
16,630,113,384,106
e3f6074589a9a6f9388bb407a904877fe883eeb5
bf2aa4eab14a6a5347fe4af65cc4a37f512a465d
/betterstart/settings.py
73aa5d9f84c613aea47477541215b345859de51f
[]
no_license
https://github.com/drdavidknott/betterstart
0cda889f5cd6bb779f6d1fa75cb4f2ef08eb626c
59e2f8282b34b7c75e1e19e1cfa276b787118adf
refs/heads/master
2023-05-04T07:32:24.796488
2023-04-16T15:26:30
2023-04-16T15:26:30
173,626,906
0
0
null
false
2023-02-18T07:27:55
2019-03-03T20:37:01
2022-01-02T10:33:21
2023-02-18T07:27:18
6,245
0
0
30
Python
false
false
""" Django settings for betterstart project. Generated by 'django-admin startproject' using Django 2.1.5. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import o...
UTF-8
Python
false
false
4,728
py
342
settings.py
193
0.71214
0.699027
0
186
24.419355
101
zfbi/lss
15,187,004,362,472
42fc6b8134b5bfca5c4356cdb0e6b6f24926abc8
06a775cbc3fdfd2069eda66c5ed0e7b04633b470
/src/lss/flat/flatr3.py
76c5e10a6dc065b171b00afcba9bf9c0d5444b85
[]
no_license
https://github.com/zfbi/lss
6937fe53a8c34e1d1b819ee7e9ae20e08d6d634d
d09aac9fe6dc7f2ed88f66cb4803676ade67a1ff
refs/heads/master
2021-05-30T03:02:14.632492
2014-11-24T21:42:44
2014-11-24T21:42:44
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Non-vertical flattening using transformed rotation equations ''' from imports import * pngDir = None #pngDir = '/Users/sluo/Desktop/' seisDir = '/data/scratch/' s1,s2,s3 = Sampling(201),Sampling(201),Sampling(201) n1,n2,n3 = s1.count,s2.count,s3.count k1,k2,k3 = 190,190,190; azimuth=240; elevation=20 # for 3D view...
UTF-8
Python
false
false
6,853
py
101
flatr3.py
100
0.636364
0.577557
0
249
26.522088
77
primeschool-it/Y13
8,203,387,551,570
7b93d2d6ba12d2670fa43c50099993b61f35c3c0
b0a1b2c41556ca4e7368510b40e892e71c703e13
/platfomer/platform.py
2655a63a8ca1ca2a7bb9514e00155ed506d9eece
[]
no_license
https://github.com/primeschool-it/Y13
d2c5bd145f8c05348c0aa870a4685dce7899a9c1
1684e82407deb6a2d47b591259230ee198074787
refs/heads/main
2023-03-29T04:59:13.061432
2021-03-31T15:56:28
2021-03-31T15:56:28
303,971,912
1
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame pygame.init() screen = pygame.display.set_mode((1000, 1000)) background = pygame.image.load('img/sky.jpg') background = pygame.transform.scale(background, (1000,1000)) tile_size = 100 maryo_group = pygame.sprite.Group() class Player(pygame.sprite.Sprite): def __init__(self, x, y): super(...
UTF-8
Python
false
false
2,376
py
7
platform.py
7
0.530724
0.46633
0
83
27.626506
89
Mehedi-Bin-Hafiz/Status-check-of-student-by-Machine-Learning
12,000,138,665,267
a9d7f92ea351d68443487cdffa022c62eb4935c3
ac3b4b27c026621283a7b087a795b86ff1e6902c
/ResearchGenerator/FinalStatusQuestion.py
0af7fd895f0ba7582d2a1f4dabb947a780c9c888
[]
no_license
https://github.com/Mehedi-Bin-Hafiz/Status-check-of-student-by-Machine-Learning
7d29469152ef1ead3682bb050972b8baba24040c
8949fe36ff9484417ab86115c432b3f87fe745e8
refs/heads/master
2023-08-18T01:57:10.771713
2021-09-26T01:53:38
2021-09-26T01:53:38
239,188,240
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# for i in range(1,11): #for create file # f1=open('..\statusmean\FinalQuestions\{0}.txt'.format(i),'w') # f1.close() class FinalStatus(): def __init__(self, value): self.ID = value def Status(self): problemlist=[] TopicName=0 q1=0 q2=0 q3=0 q4=0 ...
UTF-8
Python
false
false
5,867
py
33
FinalStatusQuestion.py
17
0.486791
0.442475
0
196
28.938776
80
olenasmokvyna/mason-cli
970,662,652,957
4b8dc4e0608af5f2d711ee362e4ef6566a85e91a
e38b7d9088344e4c7a2185a125ea03543f91fd82
/tests/internal/models/test_apk.py
6d46ca61959c0f4f65af86db98d6133717e10c32
[ "Apache-2.0" ]
permissive
https://github.com/olenasmokvyna/mason-cli
ca5fbe963bb49272dae7c8ac0fd2f5c374081a24
ac9ac5041b12090b94958ec41d2b5a294c4b61e6
refs/heads/master
2023-07-19T11:26:45.748448
2021-09-09T17:31:01
2021-09-09T17:31:05
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import unittest import click from mock import MagicMock from cli.internal.models.apk import Apk from tests import __tests_root__ class ApkTest(unittest.TestCase): def setUp(self): config = MagicMock() test_package_name = 'com.this.is.a.test' test_package_version = '11' ...
UTF-8
Python
false
false
2,933
py
61
test_apk.py
49
0.628367
0.623594
0
89
31.955056
98
mayziyuhuang/COF_Amgen
481,036,346,619
82897e855d83865726387bbf6141e2a83c9e8445
74efc71fabcd9194c7f937dfd73e2bba13f2484f
/load_glass_glass.py
afe740104f38dcb4611a37b3a80a7e23bef1722c
[]
no_license
https://github.com/mayziyuhuang/COF_Amgen
506570aa56c5d9cf928f28a972fbbe814ea9adcd
5ee121ceb3e0de009c5f17de3da07e5ce627d3a4
refs/heads/master
2021-04-27T09:58:51.410200
2018-02-23T01:44:00
2018-02-23T01:44:00
122,527,501
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import scipy.special import matplotlib matplotlib.use import matplotlib.pyplot as plt plt.style.use('seaborn-talk') import pandas as pd import friction_functions as data load_gram_1 = 657.8 load_gram_2 = 657.4 load_gram_3 = 204.2 load_gram_4 = 657.2 #1.1um PAC on glass vs glass, load = 657.8 gla...
UTF-8
Python
false
false
8,785
py
11
load_glass_glass.py
10
0.703358
0.581446
0
138
62.65942
150
mchoccac/commcare-hq
850,403,570,438
065030fefa3001e4d7dcd16ffe5e446adf579f36
04658b3e2a605a123c3c70727b2a94facc0714b3
/custom/zipline/tasks.py
652502972c11559bbd99a6f9c6be1fcd0efcbaff
[]
permissive
https://github.com/mchoccac/commcare-hq
ca35d00068eefdf4415e26886a8ad880cb8d78d0
88d5f5845f06f70f378f5d6090580c2e15b27460
refs/heads/master
2021-01-20T09:00:57.269410
2017-05-03T22:05:41
2017-05-03T22:05:41
90,211,626
0
0
BSD-3-Clause
true
2021-11-19T10:36:34
2017-05-04T02:11:02
2021-11-16T18:11:31
2021-11-19T10:36:30
615,456
0
0
12
Python
false
false
import json import requests from celery.task import task from custom.zipline.api import get_order_update_critical_section_key from custom.zipline.models import EmergencyOrder, EmergencyOrderStatusUpdate from django.conf import settings from dimagi.utils.couch import CriticalSection from dimagi.utils.logging import noti...
UTF-8
Python
false
false
5,880
py
2,110
tasks.py
1,408
0.672789
0.670238
0
169
33.792899
106
kevin-chau/cs61a
12,773,232,747,390
6c5b0ad7f1efefefa6ef44a8d070f5d15d837cfc
955252646b7c5d5b0f8e03eab0026eec02d09355
/Midterm2/prime_generator.py
b53bbcad7dd197d6079638bfc4b40442ee47b63b
[]
no_license
https://github.com/kevin-chau/cs61a
53ae0a11b37116d33a99a9d3abb19ad145db7bf6
0f2c841a0eef56845254948a85fa55aa7469bf38
refs/heads/master
2021-05-31T08:28:07.764846
2016-03-16T07:26:29
2016-03-16T07:26:29
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def make_prime_generator(): prime = 1 def prime_generator(): nonlocal prime prime += 1 def is_prime(n): for i in range(2,n): if n % i == 0: return False return True if prime == 2: return 2 while not is_prime(prime): prime += 1 return prime return prime_generator
UTF-8
Python
false
false
300
py
65
prime_generator.py
60
0.616667
0.593333
0
16
17.6875
28
cktang88/aoc2020
19,370,302,527,687
655630fb721b5461d7a5489cc288b98b986e36e1
e7ad8f66053860cfe35fe5c2414d5aef4e75be4a
/17.py
643df7e84edf189a6f3460184511f24ae8fab243
[]
no_license
https://github.com/cktang88/aoc2020
896ebc43e7bccbd8c9b68b39e291e1afe9b5a689
58c380e29285803bef4e1c5aad8dfa9774ac6990
refs/heads/main
2023-02-01T12:06:35.630569
2020-12-18T00:27:58
2020-12-18T00:27:58
317,740,058
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import re import pprint from copy import deepcopy inp = open('17a.txt','r') arr = [a.strip() for a in inp] md = 7 # shift w = len(arr[0]) + md*2 h = len(arr) + md*2 l = 1 + md*2 pprint.pprint(arr) print(w,h) def mprint(mat2d): pprint.pprint([''.join(a) for a in mat2d]) mat = [[['.' for k in range(h)] for j in ran...
UTF-8
Python
false
false
1,182
py
24
17.py
21
0.51692
0.48731
0
53
21.301887
69
linxucc/tutu
13,864,154,438,100
dff8f2aeb3250b093727990a95479b65b351278a
17768634cd100c294c57769fafaedfeafd5b6406
/promotions/migrations/0005_auto_20180904_1920.py
8f11a275f17578deafd79b03d0712c30cf186d89
[]
no_license
https://github.com/linxucc/tutu
52f9f37544723a55c81b377e906afdb904efe6fd
9f79043a91390cabaf99cdc80cd914a12c9ca2f8
refs/heads/master
2020-03-22T04:00:31.473980
2018-09-27T05:31:12
2018-09-27T05:31:12
139,463,321
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.0.7 on 2018-09-04 11:20 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('trips', '0018_auto_20180904_1920'), migrations.swappable_dependency(settings.AUTH_U...
UTF-8
Python
false
false
3,927
py
101
0005_auto_20180904_1920.py
55
0.606276
0.585812
0
66
54.530303
185
AyakaKusakari/tic-tac-toe
10,222,022,173,498
ee5df82e7ec4e038fdee28aa31eafaef9cd54060
edd5795d2aad0da51d0a34de4aefc6a3ccf0d9b9
/tictactoe.py
4bed38fb2d8eb4cb5e6df66ec61a35e14df42f81
[]
no_license
https://github.com/AyakaKusakari/tic-tac-toe
e1b902217d45800822a6e22babda8764298c3097
e22ef4f7fcf5bce4897eb81ec954cd0d079a9b27
refs/heads/master
2021-05-17T04:34:53.201550
2020-03-30T20:25:02
2020-03-30T20:25:02
250,626,397
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" 1.最初のプレイヤーが記号を書き込む 2.その時点で記号が3つ並んでいるかを確認 3.次のプレイヤーが記号を書き込む 3以降は2〜3をくり返す """ start = """ _/_/_/_/_/_/_/_/_/_/_/_/_/ Tic Tac Toe _/_/_/_/_/_/_/_/_/_/_/_/_/ 【遊び方】 1~9で座標を選んでください。 ※0を入力すると、ゲームが終了します。 """ table = """ 1|2|3 ----- 4|5|6 ----- 7|8|9 """ win = """ """ print(start...
UTF-8
Python
false
false
3,842
py
2
tictactoe.py
1
0.431856
0.404598
0
114
24.710526
97
azhaganavr/Bluetooth_scan_store_send_receive
14,216,341,794,909
8a1b8cc354c87786ea5a1f1dd13d2d42cc80317a
1869d0ac4441b93faec2077e971ea9283fa3c43f
/bt_terminal_v1.py
f4697b7f66b674009dce498201f31782e8af3d5f
[]
no_license
https://github.com/azhaganavr/Bluetooth_scan_store_send_receive
89906bbe665fcd5cc4acf116869b4e071bc04bc3
b5af07ea1dd58d0977dc56756f01a09a80301288
refs/heads/master
2020-09-20T17:41:35.158438
2019-12-15T15:57:37
2019-12-15T15:57:37
224,550,363
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import socket import subprocess import os import time import csv import itertools import datetime # Importing all necessary libraries time.sleep(10) # To give a waiting period for the 3G modem to connect scan_var = 0 j = 0 row_count = 0 RSSI = 00 # Not used just for testing purpose port = 21 bt_var = 0 scan_data_l...
UTF-8
Python
false
false
11,821
py
5
bt_terminal_v1.py
5
0.508586
0.489637
0
236
49.09322
251