blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
5df9768a6751e5b42f86d7a5c59634416fd05f43
1bd4dcd3091439670d708960239155ab01c02d44
/evaluate.py
42df465294420ee2e2aade30fc3a0c84c4dc7466
[]
no_license
Joshua-C-Bryant/regression-exercises
123a610fc5c5f6bce7043f3750bcff774f6e59fc
ba665eb0c8dc02288307d15db76e5b71aa305399
refs/heads/main
2023-08-02T09:14:16.551617
2021-09-17T14:21:43
2021-09-17T14:21:43
402,525,178
0
0
null
null
null
null
UTF-8
Python
false
false
1,513
py
evaluate.py
import pandas as pd import numpy as np import matplotlib.pyplot as plt from scipy import stats from sklearn.metrics import mean_squared_error, r2_score from sklearn.linear_model import LinearRegression from sklearn.feature_selection import f_regression from math import sqrt import seaborn as sns def plot_residuals(x...
dfec6d7bcefc5c6de82e81cf124ce3c806c9cfb0
9848a719ddfdd21b5fe1fa2f55da290c0f6952dc
/xor-queries-of-a-subarray.py
b850b3f4e3f5162f6308f8fd7f022310c16e0863
[]
no_license
maomao905/algo
725f7fe27bb13e08049693765e4814b98fb0065a
84b35ec9a4e4319b29eb5f0f226543c9f3f47630
refs/heads/master
2023-03-13T12:38:55.401373
2021-03-25T01:55:48
2021-03-25T01:55:48
351,278,248
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
xor-queries-of-a-subarray.py
""" cumulative XOR x ^ x = 0 <----- cum sum ----> <-before-><--target--> cum sum ^ before -> before numbers are xor twice, which becomes all zero """ from typing import List class Solution: def xorQueries(self, arr: List[int], queries: List[List[int]]) -> List[int]: N=len(arr) C = [0] * (N+1) ...
e1f1c6d98a5109111700e5a2c2f5b88164925bf4
6b27826b5bdbecc0ea8fa185cc0a8d2061f1fd8a
/journal/migrations/0008_auto_20200910_0919.py
7f45838c86fb521b8b4d11ba7107e93fec755c22
[]
no_license
amoghvnaik/learnjournal
31ba603a42e28618213afeba37be61e50c1d3e7a
e927d3143957f867d4f218dfc13a8ffad3267b81
refs/heads/master
2022-12-16T06:24:51.966436
2020-09-11T08:18:02
2020-09-11T08:18:02
293,566,086
0
0
null
null
null
null
UTF-8
Python
false
false
784
py
0008_auto_20200910_0919.py
# Generated by Django 2.2.16 on 2020-09-10 09:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('journal', '0007_auto_20200910_0916'), ] operations = [ migrations.AlterField( model_name='resources', name='image',...
4078c76a200b8ee2af80814eec33d25f64f52dfe
34975bd680962abba1ecd970c7320c8454a3a3b7
/09_MoreDC/09_MoreDC_35.py
4ac6f1b8c2b63a36e41c3880e5869573f38cc26b
[]
no_license
miello/com_prog
64df2dfa57f7f65cacef2d737e3639fa9b656fdf
074241646f42f05c117649a94651eb2916fb468e
refs/heads/master
2023-01-07T19:03:31.781243
2020-11-15T18:21:24
2020-11-15T18:21:24
288,693,402
1
0
null
null
null
null
UTF-8
Python
false
false
528
py
09_MoreDC_35.py
n = int(input()) student_info = [] for i in range(n): p = input().split() student_info.append(p) query = input().split() match = [] for data in student_info: cnt = 0 for attr_data in data[1:]: for attr in query: if attr_data == attr: cnt += 1 break ...
9cf788470837b41ea91f2f87fd3122ba1bd564f1
979fda8b749f7c3967ce992eba7e19d9a4c4b70d
/back-end/notifcations/apps.py
ccbd9ab69ff8d4d025f91fc62f70a191bf6fe805
[ "MIT" ]
permissive
aIbrahiim/Web-Repo
d1c939caf6419bdb405fcfa14c4ad3cfcf07aab4
894fcaffc51bd752a385a174b3efa41632c968d7
refs/heads/master
2022-08-08T10:33:39.915034
2020-03-12T15:46:12
2020-03-12T15:46:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
99
py
apps.py
from django.apps import AppConfig class NotifcationsConfig(AppConfig): name = 'notifcations'
e7932e72e8ace27ce85015e7b526b530503b2fb0
24becad26071d9963062b1ee9c3d0f25949cb45e
/reco_encoder/model/__init__.py
2932d8712d05d20dd4b6ef82c4deb16eb4979dad
[ "MIT" ]
permissive
ml-ai-nlp-ir/DeepRecommender
5d35bb1431ba6c215f1716e3e2ee7dcd7d2156b5
a417b0eaa5512c23acca82d2ebbabc23625a7f01
refs/heads/master
2021-06-23T23:22:01.114269
2017-09-08T21:21:20
2017-09-08T21:21:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
__init__.py
# Copyright (c) 2017 NVIDIA Corporation from .model import AutoEncoder from .model import MSEloss
f156308e3d490152e0ba8d1c30c453abaf4044c0
68b44943a24bd23989711e1d885a57409790fe35
/prac15.py
815443af91792d5cb4c6048b30fc85a6fb741ae2
[]
no_license
romcheese/vhp
61e6394fc9c591af7e981686652b2e2a15f7a13a
bd269480f2ee696496d1c3fd42a2ff788ff55d55
refs/heads/master
2023-03-29T05:20:16.449319
2021-03-26T18:44:25
2021-03-26T18:44:25
291,348,344
0
0
null
null
null
null
UTF-8
Python
false
false
823
py
prac15.py
def TankRush(H1,W1,S1,H2,W2,S2): arr1 = S1.split() arr2 = S2.split() check_arr = list() i = 0 z = 0 try: while True: x = arr1[i].find(arr2[0], z) if x != -1: for y in range(H2): f = arr1[i+y][x:x+W2] check_a...
989b6cf6ca0a06c0cf760c9daad06607cbf660a9
9148011e94038902e4fc83a04d7b4244d167b4fa
/play_cv.py
155a743e6733efc8e393e04a02357292a08b77bc
[]
no_license
mail-ecnu/wechat_jump
b584f36f0b72f7014863e049aa70f4f26437a7b6
5b07c0f587e5e7633de126845b18e00d4b4cfa48
refs/heads/master
2021-07-14T02:30:14.115798
2020-06-06T08:58:06
2020-06-06T08:58:06
152,648,317
0
0
null
2018-10-11T19:58:41
2018-10-11T19:58:40
null
UTF-8
Python
false
false
3,958
py
play_cv.py
import cv2 from directory import * import numpy as np def get_center(img_canny): # 利用边缘检测的结果寻找物块的上沿和下沿 # 进而计算物块的中心点 startY = 520 linewith1 = np.nonzero([max(row) for row in img_canny[startY:]]) y_center = x_center = 0 maxl = cnt = cnt0 = 0 flag = False for i in range(len(linewith1[0]))...
fa30898ad9f1e4b3fdf459c25921ccd8e9cde320
1a73c3a4af62cbfb81258b81cbace2872df71f92
/app.py
1054545e4e41195736ad3545f1a4a704a27a58aa
[]
no_license
spell911/Set50-Index-Sqlite
3c504471544b4d3ff5c95df73705b5ff1d029cf9
75207525fba6794577c27278fc51299f124dd1f5
refs/heads/main
2023-05-15T01:46:11.732321
2021-06-06T16:03:24
2021-06-06T16:03:24
374,403,711
1
0
null
null
null
null
UTF-8
Python
false
false
946
py
app.py
""" Ingerstion data the set50 index stock price to loading area. """ import pandas as pd import sqlite3 from pandas_datareader import data from sqlite import Sqlite # sqlite db sqlite = Sqlite() # constans SET50 = '^SET50.BK' SOURCE = 'yahoo' # go get data set50_df = data.DataReader(SET50, data_source=SOURCE) # crea...
7c39c4c2408cf99e06651622f961a18932e4fe01
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03957/s230626610.py
7ef9a8314b2e2da68f408a6af1f2898197b4bd9f
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
108
py
s230626610.py
#!/usr/bin/env python3 import re s = input() m = re.findall(r"C.*F", s) print("Yes") if m else print("No")
a446b3c89ca8af9ca5cfbfaf66a42b2769ca6b4b
1aa0ddb70fb893a6f958841b0a606cdcac954e18
/books/admin.py
cf89385355b9b34dc996c9cad42b4545d4a788b3
[]
no_license
shitalluitel/LibraryManagementSystem
3042860a70096bf3821299fb10ca35958e680f62
eecd909b272ad7e524a031c9142d22a356141fda
refs/heads/master
2023-02-17T06:42:19.044516
2021-01-10T14:52:18
2021-01-10T14:52:18
166,533,846
2
1
null
2023-02-07T22:14:35
2019-01-19T10:22:41
HTML
UTF-8
Python
false
false
154
py
admin.py
from django.contrib import admin # Register your models here. from .models import BookUnit, Book admin.site.register(Book) admin.site.register(BookUnit)
8354a92a5e9ee764ae382e6a24923ec160f6cd0a
8388273e4fe0fb57914ce6cbe3b544437d8e4d70
/goob/apps.py
78f6abc975e59c252bb26d022816f944c16f456c
[]
no_license
sluong910/GoobProject
32d992588b57cd26843bfb267db72f759063238f
75b6dc7783b88e9e18228761fb204b10898349a0
refs/heads/master
2021-09-10T20:06:02.481489
2018-04-01T09:53:20
2018-04-01T09:53:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
apps.py
from django.apps import AppConfig class GoobConfig(AppConfig): name = 'goob'
8dcbf3b8d719df224585b6ca76330bda5abd8651
fec3ff3c1f6e78fa831c5c17e90b74f6cf55e37d
/Dataset.py
3223428e3f44e9e7aa0052e81813ca5cebd897ad
[]
no_license
singhsimran39/PicProject
ad03483c9bd10c9ad4ba2e7545dd0c7ec38f01fa
263b51efc672ce4e96977a57201f86dae13ec25d
refs/heads/master
2021-05-07T19:59:37.230310
2017-10-30T22:52:45
2017-10-30T22:52:45
108,916,971
0
0
null
null
null
null
UTF-8
Python
false
false
1,266
py
Dataset.py
import numpy as np class Dataset: def __init__(self, data, labels): self._index_in_epoch = 0 self._epochs_completed = 0 self._data = data self._labels = labels self._num_examples = data.shape[0] pass @property def data(self): return self._data ...
4d3dd4895bcda6e2a00d3b511df5d532ecb48826
2c92163bf48c1d2bc417ba16547ba925ad512e5f
/[Week 12] November 4/CourseInformation.py
ddb1a2a23a4404c9dd42c1df4c33f4ee6e2128b6
[]
no_license
vrvelasco/Python-Programming
c09ec278fd197824a6def90a5cc55dccfa1c4f8f
c1e9b67cf96b7d5030a47f2b2459d52a373e5f37
refs/heads/master
2022-03-16T05:28:18.625028
2019-12-07T19:45:24
2019-12-07T19:45:24
205,719,617
1
0
null
null
null
null
UTF-8
Python
false
false
1,242
py
CourseInformation.py
# Victor Velasco (Course Information) 11/4/19 def main(): # Dictionaries rooms = { 'CIS 187 001' : 2158, 'CIS 165 001' : 2157, 'CIS 185 001' : 2159, 'CIS 195 001' : 2152, 'CIS 164 001' : 2158 } instructors = { 'CIS 187 001' : 'Helen Thomas', 'CIS 165 001' : 'Helen Thomas', ...
a4e19b3b955e7dfc7fcc1e2607fa5888baccf3dd
8fe8ea5e65cc2e1f7e2330c77c009ffec1cc34a8
/python/bv_build/workers/cubicweb.py
c81707a7f82c4d03ee9d1cf0d40e6ad096d0d3c4
[ "MIT" ]
permissive
sapetnioc/brainvisa-maker
65c4430def8850919df9e290d4f2a9ae790b8727
b527098d683d6ba8a1e590589bfd58debd88c88f
refs/heads/master
2021-06-14T03:49:35.043228
2021-01-21T08:21:42
2021-01-21T08:21:42
34,077,271
1
0
null
null
null
null
UTF-8
Python
false
false
3,394
py
cubicweb.py
import os import os.path as osp import subprocess import re from bv_build.workers import RequirementWorker from bv_build.subprocess_utils import silent_or_exit_call class CubicwebWorker(RequirementWorker): @staticmethod def check_module_requirement(dir_manager, module, verbose, name, version=None): wo...
054c44e7efd33d04e7e7415e6133cf1a1ca96222
2959cbd1727c452d1806e42011b704add664fbf0
/reverse_list.py
b6418f1242921548008d8ddb45f14263fe3fb1f6
[]
no_license
GuilhermeRamous/python-exercises
2f8c60aec952c0ba2e8914289215ebfa1ab90f0b
02ba796440ef3caa66614ac51250cd2e4e937600
refs/heads/master
2021-04-26T23:45:32.643108
2018-03-05T02:16:47
2018-03-05T02:16:47
123,851,138
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
reverse_list.py
def reverse_list(lista): if len(lista) == 1: return [lista[0]] else: topo = lista.pop() return [topo] + reverse_list(lista) print(reverse_list([1, 2, 3]))
51fe3bdc8f3b2c3488c9360d73696920bba85bf2
5bf572a132c30ec1da24aaf1028887d7d5a72499
/python/origen_metal/origen_metal/utils/revision_control/supported/git.py
5c00f17e9f591af11108fb6dcf5f05e789d26d5b
[ "MIT" ]
permissive
Origen-SDK/o2
6f2543dd618d5c9dc56eac5ffaceddd92c2078f0
2ffa01378bbeb164b5ec42c588fc08b9f817b13c
refs/heads/master
2023-08-19T03:57:50.887871
2023-08-09T16:32:33
2023-08-09T16:32:33
223,623,642
2
0
MIT
2023-08-05T22:01:02
2019-11-23T17:00:13
Rust
UTF-8
Python
false
false
498
py
git.py
from origen_metal import _origen_metal from origen_metal.utils.revision_control import RevisionControlAPI from origen_metal.frontend import DataStoreAPI _Git = _origen_metal.utils.revision_control.supported.Git class Git(_Git, RevisionControlAPI, DataStoreAPI): def __init__(self, config): _Git.__init__(s...
760f2bd2259e873d256c918c0954c97d1bdc89a2
83a31bb32e4336877595bc882d0f197bdf552832
/LearningLessons/lesson2/list_comprehensions.py
4367fafc5afadd0129568b8403bf771277a22756
[]
no_license
MrK3w/PythonBasicsLearning
aa6f0a209d57ce59c44b6d851c6fa03f6d5cf9a5
1277122274457a7833309440bd77b6c305030272
refs/heads/master
2023-03-08T12:09:31.346981
2021-02-10T17:42:49
2021-02-10T17:42:49
334,524,877
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
list_comprehensions.py
lst = [x for x in 'word'] print(lst) lst = [x**2 for x in range(0,11)] lst = [x for x in range(11) if x % 2 == 0] celsius = [0,10,20.1,34.5] fahrenheit = [((9/5)*temp + 32) for temp in celsius ] #nester nested = [ x**2 for x in [x**2 for x in range(11)]] print(nested)
7494f6162ade9214ed85152b9fad787f17fca548
f0b70eac1d99c2c5e5ce1116815e9f46d3a68199
/0x00-python_variable_annotations/101-safely_get_value.py
ae17066d4654b4864a976dd3310cdd3ec3fa6831
[]
no_license
dr4g0nB/holbertonschool-web_back_end
d153f11477a417cc1a0726daf25d87fca85f5b49
6733d397f1301f859ea9dc21191230b03a8fcade
refs/heads/master
2023-05-24T22:07:35.143370
2021-06-08T05:11:44
2021-06-08T05:11:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
101-safely_get_value.py
#!/usr/bin/env python3 """Type annotations""" from typing import TypeVar, Mapping, Any, Union def safely_get_value(dct: Mapping, key: Any, default: Union[TypeVar('T'), None] ) -> Union[Any, TypeVar('T')]: """Given code""" if key in dct: ...
f20333453949abf5dd22ec01a0cb55947d126183
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/Bb9hTXYuvqx3aCm8d_9.py
c6d84b61108f3a667e1eb719569f9e055e517b18
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
Bb9hTXYuvqx3aCm8d_9.py
def alpha_clash(str_A, ind_A, str_Z, ind_Z): A = [ord(c) for i, c in enumerate(str_A) if i not in ind_Z] Z = [ord(c) for i, c in enumerate(str_Z) if i not in ind_A] s_A = sum(max(av - zv, 0) for av, zv in zip(A,Z)) s_Z = sum(max(zv - av, 0) for av, zv in zip(A,Z)) return {"A":s_A, "Z":s_Z}
470ce619f2290fd08880272268edeae30c9fc9d3
e5b9e54653973bb2069bd7c3c92f1a8c5ddc5815
/tests/test_total_cases_by_countries.py
869a398dd034a05074801fbb938cd9ce9b235aa6
[ "MIT" ]
permissive
damildrizzy/covidwrapper
4a5c1e6fc18e58f981bc41f92b74fa3142e513ab
bab4f97100dcdf16ca46d36834266c07245adbf3
refs/heads/master
2023-06-04T01:30:08.602290
2020-08-25T04:56:07
2020-08-25T04:56:07
253,722,677
4
0
MIT
2023-05-22T23:22:30
2020-04-07T07:44:31
Python
UTF-8
Python
false
false
559
py
test_total_cases_by_countries.py
from covidwrapper import Covid def test_total_cases(): country_instance = Covid('nigeria', 'deaths') response = country_instance.total_cases_by_country() assert isinstance(response, list) assert isinstance(response[0], dict) assert response[0]['Country'] == 'Nigeria' def test_total_cases_since_da...
7fb4666d0bca71ba6a29330f15e44c4a3382f95d
e9869359c839c8c175ae7877bc35dcfdfe4058f8
/test/geometry/test_plane.py
0822a715305b73bf8b41d3a46cf5d741983c674a
[ "Apache-2.0" ]
permissive
kornia/kornia
80f93eae6a70b8bc0c9784f92a842ab9a6ab54ae
1e0f8baa7318c05b17ea6dbb48605691bca8972f
refs/heads/master
2023-08-31T06:32:45.960859
2023-08-30T21:59:41
2023-08-30T21:59:41
145,693,916
7,351
833
Apache-2.0
2023-09-12T21:59:29
2018-08-22T10:31:37
Python
UTF-8
Python
false
false
5,162
py
test_plane.py
import pytest import torch from kornia.geometry.plane import Hyperplane, fit_plane from kornia.geometry.vector import Vector3 from kornia.testing import BaseTester # TODO: implement the rest of methods class TestFitPlane(BaseTester): @pytest.mark.parametrize("N", (4, 10)) @pytest.mark.parametrize("D", (3,)) ...
11c480cb29c27b83030dbf63a5378ced06f93cde
447693e90c58b677ac929899ae9cfb80849fa191
/P1/interp_temperaturas.py
8e89e0c55ada67754d3a5575d974ceb4bd059926
[]
no_license
alvise30/CM20151_HW4_ElkinAlvis
0f99af8886232dd9a37151e850ad45b22df45960
49a47f514dd75bb1c9074438308c94467ff2541a
refs/heads/master
2021-01-02T23:13:44.357019
2016-03-06T04:23:52
2016-03-06T04:23:52
31,913,384
1
0
null
null
null
null
UTF-8
Python
false
false
2,185
py
interp_temperaturas.py
from pylab import * import pandas as pd import scipy.interpolate #Cargas Datos xl = pd.ExcelFile('temperaturas.xlsx') #esto descarga el archivo de Excel, distingue entre las sheet que quiero importar e imprime el inicio xl.sheet_names [u'temperaturas'] dfinit = xl.parse("temperaturas") #variable que guarda las col...
8956d43716243c3e58baaf2ac0d83e0da98d01b0
a16713b3f9d1a72a88c207c306cce88cd25400ea
/python/linkedlist/reverseSLL.py
b98fe882fac333eeefbae43ad449a909cc9f8efe
[]
no_license
dylanPMurphy/algo_expert
7eb5fa3456e9e8e05876b855f9ad428a66180c6c
4590b466c73f32495e46ccb20646467ab976fe61
refs/heads/main
2023-08-07T05:21:05.922434
2021-10-05T01:39:40
2021-10-05T01:39:40
314,415,080
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
reverseSLL.py
def reverseLinkedList(head): # Write your code here. if head.next is None: return head else: p1 = None p2 = head while p2 is not None: p3 = p2.next p2.next = p1 p1 = p2 p2 = p3 return p1
8cb0be98556895837738828ad63cc63383f29132
0804c9f4d46e15a93a4322808b487eb00c28da95
/Chapter 09/flask_bsapp/myform.py
5e4741103daf0815df6e9f7bee2e49314cf7eeb9
[ "MIT" ]
permissive
bpbpublications/Building-Web-Apps-with-Python-and-Flask
99b6e9312a41bea1ba6c6c5dce70f958b86ad768
4fbbe75fad9629f16ff5bf8bd603aa09dd04f9eb
refs/heads/main
2023-03-27T05:55:23.170813
2021-03-23T10:27:59
2021-03-23T10:27:59
339,637,598
3
3
null
null
null
null
UTF-8
Python
false
false
2,236
py
myform.py
from flask_wtf import FlaskForm from wtforms import * from wtforms import validators, ValidationError class LoginForm(FlaskForm): username=StringField('username', [validators.InputRequired("This field can not be empty"), \ validators.Email("Please enter your email address.")]) ...
32d741bed371b666e61599c4db601bb841e560f8
61afd0756d28185499882d0d9ca270198ac6d738
/haikanFace/haikanFace.py
ae136de43c9373409fb533330ff9a4df1f41c415
[]
no_license
littlebear-xbz/hadoop
558b811a14a3cc4a570a303ce4b39875c0394322
f90dbf43b5d8f01fc5b14e4c80560982b7dbda02
refs/heads/master
2021-01-21T12:30:53.643833
2017-11-16T04:54:54
2017-11-16T04:54:54
102,076,004
1
0
null
null
null
null
UTF-8
Python
false
false
244
py
haikanFace.py
# -*- coding: utf-8 -*- """ Created on Tue Jun 27 09:28:25 2017 @author: Xiongz """ import requests url = 'http://100.11.211.15:6501/pic?=d0ei116i88e9*159-706=11i5m*ep0t7d5=*1pdi=*1s2i7i1d4=*cb812bff5-92a2e0a-1a67ed-30se885z572bd=' print url
5923b6893b85db9498b202cb3e266168b0f291de
7c9313c5934fd7f157efdd60bc368e54d662b9f9
/scrapper/images.py
292a2d99b3905e6f190f40adfca6eae4728ed55b
[]
no_license
nik-weter/udemy1
0252b2eacc91c594b02e316cc7c04bd613e5346d
a3f14394d109a1937591074e2408859a2437fa50
refs/heads/master
2020-03-22T17:13:05.074630
2018-07-19T10:44:35
2018-07-19T10:44:35
140,381,323
0
0
null
null
null
null
UTF-8
Python
false
false
1,078
py
images.py
from bs4 import BeautifulSoup import requests from PIL import Image from io import BytesIO import re import os def start_search(): search = input("Enter search request") param = {"q": search} dir_name = search.replace(" ", "_").lower() if not os.path.isdir(dir_name): os.mkdir("./scrapped_im...
51b120db2329df068016ac9ac8b06a39d7b3b256
540e549cd90fbe349b43abe1a9c1e1b6d623016a
/otpindicator
d2982357097100dfbfee326bf5ba8fed89e2dbbd
[]
no_license
danielbednarz2/hacks
db67190dc3157931c57b36f8c21b4ef0da9ee14f
151d8ae29c0f46f4fb44c8ef0ee2fbfb4a26a1ad
refs/heads/main
2023-02-19T13:08:01.865781
2021-01-14T13:18:11
2021-01-14T13:18:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,309
otpindicator
#!/usr/bin/python3 # # Quick hack to have a totp token in the unity status bar. Pass the totp key as # commandline argument. Only does 6 digit, 30 second totp tokens. import dbus.mainloop.glib import gi gi.require_version('GObject', '2.0') gi.require_version('Gtk', '3.0') gi.require_version('AppIndicator3', '0.1') fro...
0180e76aa55445976fb703fd4896d9d162f3640b
3a2dc2ae9af88e05ba7438ff7a9060944cde883d
/reference_code/argparsing/run.py
ba87806c88d9f000a9f32cd81218c4eeee2c1b9b
[]
no_license
dos09/PythonTest
1878196190c07774534660ecf023f664755d3e90
b060644c5214a26088fb5e61718e2c89db0d5339
refs/heads/master
2022-01-23T05:08:19.794659
2021-10-27T07:55:02
2021-10-27T07:55:02
94,032,838
0
0
null
2022-01-06T22:57:23
2017-06-11T21:28:08
Python
UTF-8
Python
false
false
3,850
py
run.py
import argparse def positional_arg(): parser = argparse.ArgumentParser() # positional and required parser.add_argument('num', help='enter number', type=int) args = parser.parse_args() print(args.num + 100) def optional_arg(): parser = argparse.ArgumentParser() # o...
a1a4c5535364a5ad745c9fe9ac71a7fec289c591
29addff73d11896ae2b4a7f54d885ce3f2453e13
/allActiveOrdersStatus.py
47da75f1be846f9719f105fa267c1e75efd9afd1
[]
no_license
maxehnert/GeminiAPIQuickUse
e5ccfc8ac35e7af319c4f10dd001a6ec25dfdd82
dea183a7b3a433b8c7ff68e62f979c7a81ad992f
refs/heads/master
2021-08-30T02:41:22.202242
2017-12-15T19:23:09
2017-12-15T19:23:09
113,526,541
2
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
allActiveOrdersStatus.py
import requests import json import base64 import hmac import hashlib from getResponses import getAllActiveOrderStatusResponse from apiKeys import gemini_sandbox_api_key, gemini_sandbox_api_secret from utils import SANDBOX_URL, SANDBOX_NONCE, PROD_URL, PROD_NONCE, ORDER_OPEN # Switch between prod and sandbox here url =...
36121e640b6be95e9b9e1996f401ed0b20e453bf
8f289a6eba2427c939ec2053e7d3377fb60ef6e5
/structures/quadruples.py
ab5cf54c9f1fdb6eba566d4aae48a67c68039905
[ "MIT" ]
permissive
MarianoAlipi/hivar
1fae8832b0e5af2334d770f2c5c9d177ae01f394
ce4277799a822d044bdbfeb17c79505b2cb39f76
refs/heads/main
2023-05-05T08:29:50.062766
2021-06-02T21:54:03
2021-06-02T21:54:03
354,988,409
1
0
MIT
2021-05-31T17:33:55
2021-04-05T22:23:48
Python
UTF-8
Python
false
false
690
py
quadruples.py
class Quad: def __init__(self, operator, left_op, right_op, result): self.__operator = operator self.__left_op = left_op self.__right_op = right_op self.__res = result def operator(self): return self.__operator def left_op(self): return self.__left_op ...
7306a35bd692142bb77721d4f753c78d54096a29
984beee971cd6e7dac1e7e8be1811fd34ad3fef2
/0x0F-python-object_relational_mapping/11-model_state_insert.py
80a66d258aa213e59ac19397e7d3910a1d3021ee
[]
no_license
Roylouis-web/holbertonschool-higher_level_programming-1
fc67a29171fd29eca56806c148b95ab704183776
d887ae8caecba9b3754c15606b15b5bba490a453
refs/heads/master
2023-04-11T14:35:59.519143
2023-03-20T04:52:56
2023-03-20T04:52:56
579,964,922
0
0
null
2022-12-19T11:39:06
2022-12-19T11:39:05
null
UTF-8
Python
false
false
697
py
11-model_state_insert.py
#!/usr/bin/python3 """ This script adds the State object `Louisiana` to the database `hbtn_0e_6_usa`. """ from sys import argv from model_state import Base, State from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker if __name__ == "__main__": """ Access to the database and get a state ...
dac2b67a644f37059d1e2105d5d0f31fa2312d52
c517aa2aee6897768e8f146a9e1fffeb76e6feb2
/emp/migrations/0004_auto_20201220_1643.py
a36499189a1d1f774c9fa905445a44655caf1465
[]
no_license
farojas85/sistema_ventas
13c526bc6e6b8b1a476185de2eebdddba9e3b7a3
a832380adf8ce896f27db6f2e036978aba4312ae
refs/heads/master
2023-02-25T03:34:40.787842
2021-02-01T18:33:38
2021-02-01T18:33:38
307,830,937
0
0
null
null
null
null
UTF-8
Python
false
false
5,612
py
0004_auto_20201220_1643.py
# Generated by Django 2.2 on 2020-12-20 21:43 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('emp', '0003_configuracionempresa'), ] operations = [ migrations.CreateModel( name='Configuracion'...
0596f70039a7e01e24614f800b38d38088575dc5
d516c1728893f495dc4e6567cb64499868e22ec7
/file1/project/stringrev/srac/views.py
ee36539946500b44a107848cfa3dc246edcc06c2
[]
no_license
eeshagandhi/djangoworkshop
0ff4380ddd17699ffd5cc9bc59e02c9309e8c0f0
fcf7e59ca13cd0f3c9db255f24cafd622fba86d4
refs/heads/master
2022-12-13T10:28:51.533578
2020-08-22T14:03:50
2020-08-22T14:03:50
288,088,025
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
views.py
from django.shortcuts import render import operator from django.http import HttpResponse def home(requests): return render(requests,'srac/home.html') def rac(requests): mytext=requests.GET['fulltext'] l=[] l1=[] s="" l=mytext.split() for i in l: l1.append(i[::-1]) for i in l1: ...
7814cb5d0a8d614b251ead46ee387f55129041ed
60c155b3e86b85d7c3fa3dfca3693eb80f2b08ad
/data/W07_index_verifier.py
f7e74c85157c977ccacc99943c789cdbddded729
[]
no_license
miz884/gis_rivers
14554361612dd3529aab34646a23bd096c99e181
db7fa5b523b02edd30175467fc0cd1220aa110e7
refs/heads/master
2021-06-27T19:47:31.436259
2020-12-08T13:58:21
2020-12-08T13:58:21
35,797,537
0
0
null
null
null
null
UTF-8
Python
false
false
1,282
py
W07_index_verifier.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re import sys sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../web_root/lib')) from mesh_indexer import * def main(): if len(sys.argv) != 2: print("Please specify level 1 mesh code.") return lv1_co...
6c2311f7af6ccb744ed786373c6522214b8ee392
f197ee83b6465d65e8d063ef95351b95bcafffe1
/nb_strip_paths/cmdline.py
227e8f56a8d7f14a903259b1274cbf99a4df588a
[ "MIT" ]
permissive
bdice/nb-strip-paths
f4cd07a446f328472eeb382a89fa9b19c46850b9
b76d0ebffae09fb320ffd68d02535921798b86fe
refs/heads/main
2023-03-12T21:11:06.338375
2021-02-26T19:03:05
2021-02-26T19:03:05
337,537,642
4
0
null
null
null
null
UTF-8
Python
false
false
2,884
py
cmdline.py
"""Parses the command line arguments provided.""" import argparse from textwrap import dedent from typing import List, Optional, Sequence from nb_strip_paths import __version__ from nb_strip_paths.text import BOLD, RESET USAGE_MSG = dedent( f"""\ nb-strip-paths <notebook or directory> {BOLD}Please specify...
b59e1e969dd6d358751580075687f36ab2915a10
3008a9c26d45e428d6f5e790bf3ecf26fc44d0e0
/Generator/generate.py
f934b9ebfbdca467641f53546c59f7836577d723
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
darksylinc/assertlib
846f593702351b731075bb1325ac82c1cfe2ac8d
e5661a1266d11594d1305780b34640810bd6d2bf
refs/heads/master
2021-12-01T10:54:00.414543
2021-11-12T22:42:01
2021-11-12T22:42:01
208,882,210
1
1
null
null
null
null
UTF-8
Python
false
false
992
py
generate.py
#!/usr/bin/env python3 import io; import sys if len( sys.argv ) < 2 or len( sys.argv ) > 3: print( "Usage:" ) print( "python3 generate.py MyClassName - creates template using tabs" ) print( "python3 generate.py MyClassName 4 - creates template using 4 spaces" ) sys.exit() def formatFromTemplate( ful...
0480ac105339f98a65449ea0d931c03732794f9f
e2992e19ebc728387125a70c72a702a076de7a12
/Python/01_My_Programs_Hv/05_List/98_C5_E1.py
b6a8004d8cf981d85d368e899d850c85a5c7c1fc
[]
no_license
harsh1915/Machine_Learning
c9c32ed07df3b2648f7796f004ebb38726f13ae4
c68a973cfbc6c60eeb94e253c6f2ce34baa3686e
refs/heads/main
2023-08-27T15:01:16.430869
2021-11-15T07:53:36
2021-11-15T07:53:36
377,694,941
0
1
null
null
null
null
UTF-8
Python
false
false
155
py
98_C5_E1.py
ls= list(range(1, 11)) def square_list(ls): square_ls= [] for i in ls: square_ls.append(i**2) return square_ls print(square_list(ls))
55f009b72d2edd3a807e4f43ab0421370fb60b15
7a2d2cfbe99a13920e55e462bd40627e34d18f23
/openbb_terminal/stocks/fundamental_analysis/fmp_model.py
6406c072b32058a8316dabd423976c574ae11ea8
[ "MIT" ]
permissive
conrad-strughold/GamestonkTerminal
b9ada627929dbc1be379f19c69b34e24764efcff
c9aa674d979a7c7fd7f251410ceaa1c8a4ef2e6e
refs/heads/main
2023-06-24T02:59:45.096493
2023-05-16T15:15:20
2023-05-16T15:15:20
342,313,838
0
0
null
null
null
null
UTF-8
Python
false
false
22,344
py
fmp_model.py
""" Financial Modeling Prep Model""" __docformat__ = "numpy" import logging import warnings from datetime import datetime from typing import Any, Dict, Optional import fundamentalanalysis as fa # Financial Modeling Prep import pandas as pd import valinvest from requests.exceptions import HTTPError from openbb_termin...
8ff7972747284aea19b6203eb7c548efebf47cf2
628298ba07ac9b7ad04a97c0522cad61258afd51
/testing/test/test_api.py
1ac021d2605ebe57e1e690ce3534762c50df9266
[]
no_license
naxa-developers/sakchyam
4a0f0419d2a3e8b7a2674d72c7971ef576676310
9f9cb85a9bb77740e4b684dae0940d0cdb4e81bc
refs/heads/master
2022-12-22T20:19:27.220827
2020-12-23T04:08:55
2020-12-23T04:08:55
242,919,189
0
1
null
2022-11-22T07:02:52
2020-02-25T05:36:36
HTML
UTF-8
Python
false
false
3,126
py
test_api.py
from django.test import RequestFactory from django.urls import reverse from rest_framework.test import APIRequestFactory, APITestCase from django.test import TestCase from django.contrib.auth.models import User # class TestViews(APITestCase, APIRequestFactory): # # def test_partnernapi(self): # url = reve...
de925b8f6bd31bfdfd1f04628659847b0761899d
d54fb3260bed6aab81e70964529e5b34c778b540
/Leetcode/17. Letter Combinations of a Phone Number.py
97b60f23631ae2d252d0d4db84b5ae2fa0ba17ed
[]
no_license
AllenAnZifeng/leetcode
6491c6c45b28ce635776487e07b1aab3eb90f0fc
c3633fb7e539d18a9b02e691fd69bd57f54a4a4e
refs/heads/master
2023-08-21T19:28:51.004292
2023-08-14T07:31:16
2023-08-14T07:31:16
141,869,035
0
0
null
null
null
null
UTF-8
Python
false
false
1,419
py
17. Letter Combinations of a Phone Number.py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' @author: Allen(Zifeng) An @course: @contact: anz8@mcmaster.ca @file: 17. Letter Combinations of a Phone Number.py @time: 2020/2/2 21:18 ''' from typing import List class Solution: def letterCombinations(self, digits: str) -> List[str]: d={2:'abc', ...
6531833a4fe57c15c0668cee9015c7d43491427a
747f759311d404af31c0f80029e88098193f6269
/addons/productivity_analysis/report/productivity_analysis.py
956647ad9d9fcf3d1972a30a3f5e322d00f53cc3
[]
no_license
sgeerish/sirr_production
9b0d0f7804a928c0c582ddb4ccb7fcc084469a18
1081f3a5ff8864a31b2dcd89406fac076a908e78
refs/heads/master
2020-05-19T07:21:37.047958
2013-09-15T13:03:36
2013-09-15T13:03:36
9,648,444
0
1
null
null
null
null
UTF-8
Python
false
false
91
py
productivity_analysis.py
/home/openerp/production/extra-addons/productivity_analysis/report/productivity_analysis.py
b3d9013ab6facb8dd9361e2a0715a8ed0cdfeaba
c04a0fc3396ab11aa2065792ffbef149c33d5159
/setup.py
b7bb738adc6086079e9245af121dd329e6e7de77
[ "Apache-2.0" ]
permissive
inspiring71/cmake-lint
17290b1db25c1c5094070b9dba759ce549347132
058c6c0ed2536abd3e79a51c38ee6e686568e3b3
refs/heads/master
2022-01-11T20:28:54.530425
2017-05-21T12:16:49
2017-05-21T12:16:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,253
py
setup.py
from setuptools import setup import imp def get_version(): ver_file = None try: ver_file, pathname, description = imp.find_module('__version__', ['cmakelint']) vermod = imp.load_module('__version__', ver_file, pathname, description) version = vermod.VERSION return version ...
359db73de2c2bb5967723dfb78f98fb84b337b9d
37881970f414a74edd4e1683f492a2bd7f8e9ea4
/arrow.py
678a427e44b021e9bc0076ab0e28f52aa6602db5
[]
no_license
michdol/bow_game
7a112427d6a3f35a23eb1524b3dc62f1593f82f3
8dc24de305a97d0eb83a88d45bb94e630bb20c1a
refs/heads/master
2022-06-13T20:02:50.788109
2020-05-07T10:13:19
2020-05-07T10:13:19
260,172,849
0
0
null
null
null
null
UTF-8
Python
false
false
3,285
py
arrow.py
from math import degrees, sqrt, sin, cos, atan, radians from pygame import Surface, draw from pygame.sprite import Sprite from constants import ARROW_MAX_SPEED, FLOOR_Y from game_types import Radian, Degree class Arrow(Sprite): def __init__(self, color, screen, character, click_position): Sprite.__in...
97cc29e0d54e5d5e05dff16c92ecc4046363185f
4aed20c9e5076f723fef7eddf70d027d389924ba
/shophit/urls.py
4c6b2d9b8effbb11c2aff9303969bb88a913f51f
[]
no_license
SDeVPro/jinja
90a4c3759c982fd1305ee891138db900541700ce
ab49b23e5ae517fe07dc18d13da15e0be6050683
refs/heads/main
2023-01-23T18:34:39.382766
2020-12-07T12:49:20
2020-12-07T12:49:20
318,521,534
0
0
null
null
null
null
UTF-8
Python
false
false
1,287
py
urls.py
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path, include from home import views from order import views as OV urlpatterns = [ path('user', include('user.urls')), path('order', include('order.urls')), path('shopcart/',...
35b24ffa14f8b3c2040d5becc8a35721e86d8b3d
140e27a10e7cb488b199f60c581cac096a2e59dc
/ex70.py
4a1bfd1ca1fdcfb01b1eaff82a3f31ad626e7c31
[]
no_license
rafaelblira/continuacao-python
fcbdc61a474ad4adff14e6fdb0f14fcc87e1d071
c36b9cf3d8351cb08401a6cc079ef5560913c865
refs/heads/master
2022-06-28T05:45:44.051421
2020-05-12T21:57:53
2020-05-12T21:57:53
263,461,393
0
0
null
null
null
null
UTF-8
Python
false
false
703
py
ex70.py
total = totmil = cont = menor = 0 barato = ' ' print('-'*40) print('LOJA SUPER BARATÃO') print('-'*40) while True: produto = str(input('Nome do Produto: ')) preco = float(input('Preço: ')) cont += 1 total += preco if preco > 1000: totmil +=1 if cont == 1 or preco < menor: barato ...
709271b98fc2b40c763522c54488be36968f02d8
cd13d0798482f3ec63448fe51dec56d56f14c295
/django/elementary/settings/prod.py
8d51e7082c206d4a4f0ab020151a0d47701ced8b
[]
no_license
SuveshBaskar/elementary
36388d58cf86d2aa6e91504439c5e1572a2aaa73
096be350997db0a2d8abd8e13367b84cec3f32b6
refs/heads/master
2021-12-06T02:03:32.840934
2015-09-06T05:48:05
2015-09-06T05:48:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
prod.py
from base import * try: from .prod_local import * except: pass # we currently don't have an interface that allows an administrator # to create a repository for another user. Until we have added this # capability, allow users to create repos. ELEMENTARY_ALLOW_REPO_CREATION = True
edcccc673994a8de281a683b747de52d2115f89e
f7ca88d1f339360e00d80bcd0538e45337ace7c6
/ef/config/test_config.py
5f3b55eccde7fafeb4996f62a2191ab58087c4e9
[ "MIT" ]
permissive
dumbman/epicf
cf66c43ea216f4a9cde8a4035ae7b56e1642d3f0
830c09105a7ae5cd5ecb58b7c2052922c91fd013
refs/heads/master
2020-12-03T10:33:20.146485
2018-12-12T11:07:00
2018-12-12T11:07:00
46,113,946
0
0
null
null
null
null
UTF-8
Python
false
false
1,780
py
test_config.py
from configparser import ConfigParser from ef.config.components import * from ef.config.efconf import EfConf from ef.config.section import ConfigSection comp_list = [BoundaryConditions, InnerRegion, OutputFile, ParticleInteractionModel, ParticleSource, SpatialMesh, TimeGrid, ExternalFieldUniform] def t...
38e167630519b73bffea4ff527bc7b7272a49f1a
02ded756bfc451478d977539176cfc0927119e4c
/test/preprocess/cn_bert.py
742d9c558e0eb940ac497f3d596df2b473ed9d07
[ "Apache-2.0" ]
permissive
emorynlp/bert-2019
00887d107afab40fcc77ab05188bee0baad877bf
228b2046d92084ea3cd7c900c1d8af1f0a925cfe
refs/heads/master
2020-07-04T09:24:24.568078
2020-04-07T17:17:00
2020-04-07T17:17:00
202,239,672
20
1
null
null
null
null
UTF-8
Python
false
false
6,526
py
cn_bert.py
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2019-01-13 15:01 import pickle import numpy as np from bert_serving.client import BertClient from pyhanlp import * CharTable = JClass('com.hankcs.hanlp.dictionary.other.CharTable') # bc = BertClient(ip='192.168.1.88') # ip address of the server bc = BertClient(ip='127...
816b1a932208a4525230dd886adf8c67dec3af3e
24b85b91ba43b3e389e16ce9ed1875f93c3ab533
/tests/conftest.py
84ca84018988dc90de37ade96950a64b5db3e442
[]
no_license
ckovac/sm-project
4dd846ecc39f79bdedda8761d314b6dc0a9fe226
e7ca895613172d800bcf74cbbce83b3a6cacfaa1
refs/heads/master
2021-01-19T19:24:17.812721
2017-04-16T14:05:04
2017-04-16T14:05:04
88,416,961
1
0
null
null
null
null
UTF-8
Python
false
false
435
py
conftest.py
# content of conftest.py # adapted from http://pytest.org/latest/example/special.html import pytest import requests def tear_down(): ''' conftest.py tear_down - the last to go.... ''' print("\nTEARDOWN after all tests") @pytest.fixture(scope="session", autouse=True) def set_up(request): ''' conftest...
6b00e660ae2efbdd6d353e51f4ebdc990019fda7
2d064dfb4244f5b915c3b02de9594f8e15beb6d0
/Other Projects/Alphabetic Sort.py
cb0fb35ce22053fcf59d4287de56aca87e4a1ae1
[]
no_license
ArunShishodia/Smaller-Programs
24937ff571a27b5e0c634bf235fb175794986086
318ee830188c526921083a5f9aabd41504e055a2
refs/heads/master
2023-08-24T11:28:54.234711
2021-10-22T17:29:03
2021-10-22T17:29:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,330
py
Alphabetic Sort.py
from collections import Counter from scipy import special import matplotlib.pyplot as plt import numpy as np import PySimpleGUI as sg import os.path import datetime __name__ = "__alphabetic_sort__" class AlphabeticSort: def __init__(self, path, path_save): """Initializes all values used""" # Th...
4794e71c73b47b802f865edbed2c7919c31139a8
facb983a6ac9eaca563b93c7ecda6a6298183684
/typings/filelock.pyi
d8a5e30d8b082564f80b0ea1f4e03a219e2a8721
[ "Unlicense" ]
permissive
tuner007/blobfile
942b954ce0dd6c677a36cd1c0960abd851db4f85
08a504eb193745ae5eff31303da3aa4aa452f3a5
refs/heads/master
2022-12-08T00:39:50.490583
2020-09-04T19:27:30
2020-09-04T19:27:30
292,929,626
0
0
Unlicense
2020-09-04T19:23:37
2020-09-04T19:23:36
null
UTF-8
Python
false
false
397
pyi
filelock.pyi
from typing import Optional, Type from types import TracebackType class FileLock(object): def __init__(self, lock_file: str, timeout: int = ...): ... def __enter__(self) -> bool: ... def __exit__( self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseExceptio...
4d621816660c36dd11c719a3968d6358fc9b5af7
e90f53115b3a5c7eeeaed7b7307327e07a2868e6
/app/database.py
82caa926825dce414f4eb5d2461fd13ebe8740ae
[]
no_license
tazz0009/fastapi_tutorial_sql_relational
8d91c67e2e89cf2a01f19e6745495f2374fc0447
beedf779ea03e292fb35b01419f22b67dde78e7c
refs/heads/main
2023-04-21T06:48:00.155420
2021-05-24T04:48:54
2021-05-24T04:48:54
370,225,260
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
database.py
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker SQLALCHAMY_DATABASE_URL = 'mysql://biouser:1234qwer@127.0.0.7:3306/bioDB?charset=utf8mb4' engine = create_engine( SQLALCHAMY_DATABASE_URL, echo=True, pool_recycle=900, ...
7126fc53d72ee2008434cde9269e392f5f344b38
663c108dca9c4a30b7dfdc825a8f147ba873da52
/venv/serialization/02PickleMultipleSender.py
f442a18c385ef758d0bbedf68c6aa289af18c804
[]
no_license
ksrntheja/08-Python-Core
54c5a1e6e42548c10914f747ef64e61335e5f428
b5fe25eead8a0fcbab0757b118d15eba09b891ba
refs/heads/master
2022-10-02T04:11:07.845269
2020-06-02T15:23:18
2020-06-02T15:23:18
261,644,116
0
0
null
null
null
null
UTF-8
Python
false
false
1,253
py
02PickleMultipleSender.py
# Sender is responsible to save Employee objects to the file from PickleMultipleEmp import * import pickle f = open('emp.dat', 'wb') while True: eno = int(input('Enter Employee Number:')) ename = input('Enter Employee Name:') esal = float(input('Enter Employee Salary:')) eaddr = input('Enter Employee A...
7c216d88f68b8cf569e99b26d061a992fc4dc4bf
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_lintel.py
c10a44e830c452cb812824d95b507e3e48bf86c6
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
_lintel.py
#calss header class _LINTEL(): def __init__(self,): self.name = "LINTEL" self.definitions = [u'a long piece of stone or wood at the top of a door or window frame that supports the wall above'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def r...
bf30819387bde90d45bd8199446d5ee0e7230105
fc4f9da11b357b8137dd3fdae7ccaac960108dfd
/operation.py
8ac3f2a97f68b1eaae7bf7a3ca56f18e9e671cd9
[]
no_license
rsowmyasowmi/python-programming
522f50c229a870b2f34cb2005612c8d50ecefc38
07c46f772595a5a9f47084dcc04df52fc34930b3
refs/heads/master
2020-03-22T17:29:15.671976
2019-01-11T08:25:09
2019-01-11T08:25:09
140,397,966
0
0
null
null
null
null
UTF-8
Python
false
false
218
py
operation.py
n=100/110 op=['%','/'] for i in n : if i in op: if(i=='%'): k1=int(n.split(i)[0]) k2=int(n.split(i)[1]) ans=k1%k2 elif(i=='/'): k1=int(n.split(i)[0]) k2=int(n.split(i)[1]) ans=k1//k2 print(ans)
69e0d5375da7a0daf28fd955a74b343061e400e4
dc4d5cf99da0fd11990e648d45a891e8b4b23924
/test/test_dp.py
8e36fec5e025ba7259b96b8dd99389d15443768d
[]
no_license
YutaHirabayashi/Competition_programming
4c234c541b3e82bc2c0aa56b2a6e4b8f89051c88
bc720de83b0bf7a11357a4b9903dac48bd5bc52b
refs/heads/master
2023-04-05T11:42:45.932058
2020-06-28T11:36:50
2020-06-28T11:36:50
275,319,736
0
0
null
2021-04-20T20:38:48
2020-06-27T07:13:26
Python
UTF-8
Python
false
false
1,163
py
test_dp.py
from algorhms import dp_knapsack, dp_partial_sum, dp_numbering_partial_sum, dp_minimum_number_partial_sum import pytest import numpy as np @pytest.mark.parametrize("weight_list, value_list, limited_weight, expected",[ ([2,1,3,2],[3,2,4,2], 5, 7) ]) def test_dp_knapsack(weight_list, value_list, limited_weigh...
decef5ec10665e44cd17a6cac8c020e3f5ed8fa9
4900437407f3ea7fea9bc8eb0b63a6918eb496fc
/authentication/migrations/0001_initial.py
d7a160f511e486f574b4b5290bc048fb1555e82e
[]
no_license
surajmondal1003/SnapUpApp
e43e32747615e302ac5206b20421f53a9eb8bff6
deedcc58efdd340237d0cfd77a4f87d582b94cf8
refs/heads/master
2022-12-05T23:01:53.874774
2018-06-01T22:30:52
2018-06-01T22:30:52
133,211,275
0
1
null
2022-11-26T00:58:09
2018-05-13T06:19:57
Python
UTF-8
Python
false
false
2,364
py
0001_initial.py
# Generated by Django 2.0.4 on 2018-05-06 18:14 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
49280930df84ede816452947f2e5e00ec707aec3
8c917dc4810e2dddf7d3902146280a67412c65ea
/v_7/Dongola/common/account_arabic_reports/report/account_voucher_move.py
a61cab16fef50cf92705e1b9771b674141cc14cb
[]
no_license
musabahmed/baba
d0906e03c1bbd222d3950f521533f3874434b993
0b997095c260d58b026440967fea3a202bef7efb
refs/heads/master
2021-10-09T02:37:32.458269
2018-12-20T06:00:00
2018-12-20T06:00:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,767
py
account_voucher_move.py
# -*- coding: utf-8 -*- ############################################################################## # # NCTR, Nile Center for Technology Research # Copyright (C) 2011-2012 NCTR (<http://www.nctr.sd>). # ############################################################################## import time from report impo...
25109c3d95f88fc775afccb3a1473604946a30ce
5b4f1954746c57a8762bce5ecf8dcfc7c391f802
/preprocess.py
fe2f1296157e762be528ef0c7aa855f2353f194a
[]
no_license
AmisArbel/Tacotron2_in_keras
97a5f7086472d3130d0e2a2fc256c222cd92f757
cd47d4f5fe9848eb5c1781065441b23531405771
refs/heads/master
2020-12-20T18:47:05.553894
2019-08-07T14:50:16
2019-08-07T14:50:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,067
py
preprocess.py
import os import argparse import pandas as pd import numpy as np from tqdm import tqdm from multiprocessing import cpu_count import preprocessor from hparams import hparams from utils import time_to_string def preprocess(args, input_folders, out_dir, hparams): mel_dir = os.path.join(out_dir, 'mels') wav_dir...
37267d020d12d21702be761f7c4cc95852f84406
483a319fd70434a983443acc0db07a7b9c8b57a7
/server/blogsley_flask/__init__.py
11fdb0ab275b7dbbcd61d4322760f7be413c4494
[ "MIT" ]
permissive
blogsley/blogsley-flask
6291e3db8c9b39026798572a57f5d8783bfca88a
96257fe8195888eba77c25868112810b5374ae9f
refs/heads/master
2022-12-11T07:01:04.596039
2020-11-27T08:57:13
2020-11-27T08:57:13
252,925,441
1
0
MIT
2022-11-22T05:48:56
2020-04-04T06:23:00
Vue
UTF-8
Python
false
false
124
py
__init__.py
from blogsley_flask.version import version __version__ = version from blogsley_flask.app import create_app, BlogsleyFlask
9a450624c079701d01125436932c4f382b065779
4a67c986c66881a78fea8a6e3328c86bc05b5efa
/src/aws/ec2manager/installator.py
160d138ae7288325add234f08433df8d251ef093
[]
no_license
ygouzerh/smack-it
6a755eb2590c12dfafdab0860db0b4376171c291
1d531ddd2731c1577912287e870c83044da2a8c1
refs/heads/master
2020-04-01T07:49:24.957668
2019-01-24T22:51:49
2019-01-25T00:28:00
153,005,094
0
0
null
null
null
null
UTF-8
Python
false
false
3,455
py
installator.py
#! /usr/bin/env python3 """ author : ygouzerh date: 19/10/2018 Start the installation """ import json from time import sleep from boto3 import resource, client from ...utils.python.config_parser import Parser from .security import Security from .cleaner import Cleaner from .tagger import Tagger from .vpc import Vpc ...
c68d228a011fcdc96cea7fe595cd7da8c985676f
7e220876976cf2b7dbe9ebf43c153e7fc287142e
/plugins/modules/models/notification_subject_model.py
e26644a5f08e9f0f9838aa788b04550a4079cede
[]
no_license
kirakirapq/sample-cloud-composer
416d00fc1d1162b1851ccd34faf1118a92a8287f
1d8d69d90a11bab87195e0746e359fee725b340c
refs/heads/master
2023-04-02T17:09:02.791771
2021-04-12T04:59:34
2021-04-12T04:59:34
357,060,033
0
0
null
null
null
null
UTF-8
Python
false
false
940
py
notification_subject_model.py
import os import sys from airflow.models import Variable sys.path.append(Variable.get('module_path')) # sys.path.append(os.getenv('MODULE_PATH')) from airflow.models import Variable from models.dag_task_model import DagTaskModel class NotificationSubjectModel: def __init__(self, dag_task_model: DagTaskModel, title:...
1e270d9c1e16bea19574992e4c0ace650c7e150f
dc6cc16a27b291fd98338c5b54c098ed7ae6c60b
/ex002RespondendoAoUsuario/answer.py
53752e640abc8b4a89202e99efa78af2b3936658
[]
no_license
muriloviscondi/curso-em-video-python
5197c811f96b4d8cc5afedfdc095bcb796a847c4
7fb7e491f7b72bd5f87f305821e937bb66b44384
refs/heads/master
2022-11-16T14:14:26.449629
2020-07-10T01:14:32
2020-07-10T01:14:32
259,179,676
0
0
null
null
null
null
UTF-8
Python
false
false
107
py
answer.py
class Answer: def handleAnswer(self, name): return print(f'Prazer em conhece-lo {name.name}')
c6b52f252872e5745f468abdcc1bcb80dedc9c9d
0f1ee6e98edecf12a6de234943e0e2abf2066a5a
/Studio/studio5.py
80b64edc1f4db24594942d519718e9007be30504
[]
no_license
hali0010/FIT2004-S2-2021
8f56368700c6920d01b7acd7684f2e33f5a05aaa
9e063fa6cb0dd0ff3b0140a5e387cd008f7825fa
refs/heads/main
2023-08-28T08:39:15.261023
2021-10-30T07:28:32
2021-10-30T07:28:32
389,822,747
0
0
null
null
null
null
UTF-8
Python
false
false
930
py
studio5.py
import math def min_coins(coins,V): coins_needed = [-1] * (V+1) coins_needed[0] = 0 for i in range(1,V+1): if i>= min(coins): best_so_far = 0 for c in coins: if c<=i: best_so_far = max(best_so_far,1+coins_needed[i-c]) coins_need...
25c11c95ffd88e7d7e467c189c71b29216394ddc
bd660cd322c37debb953bbc849ab5e4ff803f40b
/src/model/edsr-web.py
5ea5934e2693b9f907b5ab5f2d988d977433a774
[ "MIT" ]
permissive
huster-wgm/SRCGAN
1669fa4981cdcf8741c3c7c53670eb1575fbbb3e
5aa70694b980383d111c45652b71ad3525e91fad
refs/heads/main
2023-02-18T07:06:58.597219
2021-01-22T05:20:28
2021-01-22T05:20:28
303,944,566
4
1
MIT
2020-11-28T13:27:53
2020-10-14T08:02:44
Python
UTF-8
Python
false
false
2,651
py
edsr-web.py
import torch.nn as nn from .common import * url = { 'r16f64x2': 'https://cv.snu.ac.kr/research/EDSR/models/edsr_baseline_x2-1bc95232.pt', 'r16f64x3': 'https://cv.snu.ac.kr/research/EDSR/models/edsr_baseline_x3-abf2a44e.pt', 'r16f64x4': 'https://cv.snu.ac.kr/research/EDSR/models/edsr_baseline_x4-6b446fab.pt...
6c29d788f3a5822a4d904ac6327bbd7a88f74079
a6051faeed0e12dd9ae089e90d1faf543c47ffb1
/settings.py
ab98102a6f1a8420cb492602f13cdcbb3810057b
[]
no_license
akshaynaik797/mail_fetch
17be6978405229dcc439429087ed41b188da0861
243beb233eff33ac865cf025221a5cbd6641cfb7
refs/heads/master
2023-01-29T23:05:51.947063
2020-10-16T05:55:43
2020-10-16T05:55:43
301,074,265
0
0
null
null
null
null
UTF-8
Python
false
false
317
py
settings.py
import pdfkit platform = 'linux' if platform != 'linux': path_wkhtmltopdf = r'C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe' config = pdfkit.configuration(wkhtmltopdf=path_wkhtmltopdf) else: config = pdfkit.configuration(wkhtmltopdf='/usr/bin/wkhtmltopdf') folder, dbname = "files/", "database1.db"
135c3a253e92ca5f5b0498a907b182cfda7a3d0a
e25b9f9855b3fbfda4d247fbef8e60f69b38439f
/Qinghuiyue/Qinghuiyue/reservation/test.py
563cf62f86710343923b2bec2966e2c7c89e85a2
[]
no_license
dindom999/thu-C0
77700cdedb8b6bd637d380f4467bd01b06c393f2
948a489045c2fc266d4378909866d18ba639f52d
refs/heads/main
2023-02-04T06:31:16.741170
2020-12-26T14:36:55
2020-12-26T14:36:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,455
py
test.py
from datetime import datetime from mongoengine import connect, disconnect from Qinghuiyue.reservation.models import Reservation from Qinghuiyue.users.models import User from Qinghuiyue.models.models import Stat from Qinghuiyue.test import NoSQLTestCase from Qinghuiyue.venues.models import Venue,Court class Reservat...
8cd14ec2f3d8b25d35dc5f6b18fb9f9767604424
fb5c5d50d87a6861393d31911b9fae39bdc3cc62
/Scripts/sims4communitylib/utils/effects/common_visual_effect_commands.py
a4d048a4d7c77eec421bce1537d1df565d990494
[ "CC-BY-4.0" ]
permissive
ColonolNutty/Sims4CommunityLibrary
ee26126375f2f59e5567b72f6eb4fe9737a61df3
58e7beb30b9c818b294d35abd2436a0192cd3e82
refs/heads/master
2023-08-31T06:04:09.223005
2023-08-22T19:57:42
2023-08-22T19:57:42
205,197,959
183
38
null
2023-05-28T16:17:53
2019-08-29T15:48:35
Python
UTF-8
Python
false
false
9,164
py
common_visual_effect_commands.py
""" The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode Copyright (c) COLONOLNUTTY """ from typing import Dict, List import clock from date_and_t...
8d632c70d0238490ce0606f13c6fb1ea43dbef0e
590a56bdb34efaffb7c26d7dbe0a53fba2630e69
/classifica_acessos.py
3392a70921893c49921df08df66275b218cee5d2
[]
no_license
FerrazBruno/machine-learning-classificacao
b5df1ac2d26537e9926db0f505ab229945b98341
60061818a93f32e397e00de1f24f900885e55a5e
refs/heads/main
2023-08-21T17:01:13.952475
2021-09-02T22:21:25
2021-09-02T22:21:25
402,577,207
0
0
null
null
null
null
UTF-8
Python
false
false
863
py
classifica_acessos.py
from sklearn.naive_bayes import MultinomialNB from dados import carregar_acessos # separando as caracteristicas das marcacoes X, Y = carregar_acessos() # separando os dados de treino treino_dados = X[:90] treino_marcacoes = Y[:90] # separando os dados de teste teste_dados = X[90:] teste_marcacoes = Y[90:] # criando...
3492dec14b4849c4e223b0f1033f1bae3b3ba675
c9d709052c83684a9200663ff4673375ae553f97
/asm1905/st14/Human.py
b003baaa90e903d641a423ef1a43bce65711eaf5
[]
no_license
dmitry-sumarokov/ASM.19.Lab1
b50842edc25c78849c153be1c3c0853700a669b9
aba94e0256b065ee371389cd60102b9c9886336b
refs/heads/master
2020-12-12T21:30:36.429695
2020-01-16T04:20:27
2020-01-16T04:20:27
234,232,678
0
0
null
2020-01-16T04:09:17
2020-01-16T04:09:16
null
UTF-8
Python
false
false
258
py
Human.py
class Human: def __init__(self): self.name = input('Введите имя: ') self.race = input('Введите рассу: ') self.age = input('Определите продолжительность жизни: ')
c4a673d75041da49d62ce83104a063102cf28cd6
03efed573828e864820fda8d279ace7f0845f1b1
/recognizing/videoDetection.py
19c51f13a3573616490aaef5fb824b0e2c9a1fc6
[ "MIT" ]
permissive
mikextch/recognizing-parking-spaces
d19568e1ce743629a1b8879a1497aaf321718697
8b678e1a4aafc9d7046957b68ee1cc2f913a6d1c
refs/heads/master
2020-08-24T23:32:53.594318
2019-10-26T08:06:32
2019-10-26T08:06:32
216,927,524
3
0
null
null
null
null
UTF-8
Python
false
false
3,913
py
videoDetection.py
import numpy as np import cv2 import pickle cap = cv2.VideoCapture('testmk.mp4') vacant = [] with open ('vidCrs1.mk', 'rb') as fp: coordinates = pickle.load(fp) coordinates = coordinates coordinatesToShow = coordinates frame = '' def drop_irregular_image(image_, roi_corners): # original image rowAshow =...
f40c8aca7dbf0449f331e45614aba7e5efc07527
ac7b7448a69a57d07eabb3bfaf7945caf4462e52
/algorithm_practices/min_distance/baek_11404.py
533353d3b5a13dcd331e6735356d8a1585202eb8
[]
no_license
jssong1592/python_practices
cedc2218c890d2ab417f7cfbec39b98d1f2eb13a
72fe303e59eb96398704fbfa61729ed6c5bcb285
refs/heads/main
2023-09-04T21:42:33.748889
2021-11-15T06:44:27
2021-11-15T06:44:27
401,658,586
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
baek_11404.py
import sys input = sys.stdin.readline n = int(input()) m = int(input()) INF = int(1e9) graph = [[INF] * (n+1) for i in range(n+1)] for j in range(n+1): graph[j][j] = 0 for i in range(m): a,b,c = map(int,input().split()) if graph[a][b] > c: graph[a][b] = c for k in range(1,n+1): for a in r...
07a728e5e5daebd6634340cc892b84a7aca45d5d
1db1dd6f8a76d61c37e66cd7eaede726bd053f06
/projectsample1/app/views.py
5873822d7657f5f84b88f4c2a2bd437b4e9eeeea
[]
no_license
CDACFRTP-APR21/G6-PythonShoutNest
9b90463c147dffe566ced658d8b4fd9d20af4fc7
31ebae49137f94a8f7a662eb985f6920208e85b7
refs/heads/main
2023-06-03T05:34:52.018724
2021-06-26T09:31:38
2021-06-26T09:31:38
380,444,454
0
1
null
2021-06-26T09:38:25
2021-06-26T07:40:09
Python
UTF-8
Python
false
false
10,075
py
views.py
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.exceptions import AuthenticationFailed from .serializers import UserSerializer from django.utils.decorators import method_decorator from django.views.decorators.csrf import csrf_exempt from .models import Us...
ebf57a8405cd10aa05359640d27101415dca237b
0b48ecc2db328b6e54e4b75ffad58548f4accb9a
/Python for data science/weak 1/code/8.py
103d62135f52e320f43b06b47867599479467e21
[]
no_license
TechnicalAmanjeet/Swayam-Nptel
8cf84ae701115a23d90f2deedcafc3e60f6c806a
500453fd0bba4f940cf111c12d20950ccdfef589
refs/heads/master
2023-06-27T06:14:49.657860
2021-07-28T08:47:36
2021-07-28T08:47:36
388,203,796
0
0
null
null
null
null
UTF-8
Python
false
false
29
py
8.py
var = "5+7j" print(type(var))
7517d49523f872b324c0d6eeb290dc11b49db228
482e8f44379f65779addeb756cdba08b45eef977
/minor/studyup/views.py
09db942576939b5ca2147ff414e3e1aaaf80e34c
[]
no_license
prakharg4598/Studyup
8b339557798ff19c70eeccf7a4c5fc4b1bdc3fc1
e292822ee3c4ccba9ea2aade07863e71d71b3f10
refs/heads/master
2021-06-05T08:23:10.246982
2016-10-18T07:46:51
2016-10-18T07:46:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
750
py
views.py
from django.shortcuts import render from django.shortcuts import render_to_response,redirect from .models import User, Question, Choice, Answer from .forms import UserForm, LoginForm # Create your views here. def userform_view(request): if request.method == "POST": sform = UserForm(request.POST) if sform.i...
df8d6b88a48fc26ea839612b3929cc4eeaa04829
7da4272e201a8d954b46947a44e18d8a65522e4a
/code/vis_generate_comparisons.py
8a8d2341c4aab328003e7b38f9519f3a3e0d9d0e
[]
no_license
CityofEdmonton/dlcity
4b59466bbc91db163d4637b5f84eb0d45db0d001
63354ff8837490160bdc70ad5cdbd99846f9d68c
refs/heads/master
2020-05-01T18:37:22.860297
2019-08-19T17:13:35
2019-08-19T17:13:35
177,628,078
3
0
null
null
null
null
UTF-8
Python
false
false
9,278
py
vis_generate_comparisons.py
import caffe import sys import glob import random import os from trueskill import TrueSkill import numpy as np from multiprocessing import Pool def load_image(inp): inp_file = inp[0] transformer = inp[1] image = transformer.preprocess('data', caffe.io.load_image(inp_file)) return image def generate_...
2cf3f43e16504d93d7346f2b83b8c8d2f5cf75c8
b18748439f5151d9ccae5d13c40578b3ec580b95
/static/db/database.py
238dff70174e979f51692ce912b5635022afc0a6
[]
no_license
davidlipson/adventify
fcf076838c55a9f6b61cbd6937b6ce7563507b42
f883ba27c7ea21ae6c4a9ac1ba7461820d1aa575
refs/heads/master
2021-01-22T18:42:20.262676
2017-03-15T17:52:21
2017-03-15T17:52:21
85,102,771
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
database.py
import sqlite3 c = sqlite3.connect('metadata.db') conn = c.cursor() conn.execute('DROP TABLE IF EXISTS playlists') conn.execute('CREATE TABLE playlists (pid, sid, access, refresh, user)') c.commit() c.close()
2169bb529b1089e347ff65edd8548ec9bf2bd25d
3fcf0b6ca210f425d48497ca1ffa9a95a2ef9021
/Data_process/mms_002.py
b1e55d15c554fa2920965c69e2d29118999dfefc
[]
no_license
amamiyatree-jh/AI-Taoyuan_4th
d12e4dd80f95be25d49d5e22856a09595392dcbf
f4708e2be75a26e8e409c470ae2b082bde0174db
refs/heads/main
2023-03-27T22:04:36.405443
2021-03-23T00:47:46
2021-03-23T00:47:46
299,798,606
0
0
null
null
null
null
UTF-8
Python
false
false
5,502
py
mms_002.py
import pymysql import os, sys, time import prettytable as pt #from pynput import keyboard link=pymysql.connect( host = "localhost", user ="root", passwd = "", db = "python_ai", charset = "utf8", port = 3306 ) cur=link.cursor() def add_member(link,cur): os.system('cls') param={ "name":in...
0cd4bb7b0c2026880c37726d3fa6662ec7d19599
857da13a653162cc8c83a7d53a254e2caa97836d
/paper/manuscript/code/fig_4_pac_corrected.py
defa65d792726b675de41478f4362ee550fd3b29
[ "BSD-3-Clause" ]
permissive
EtienneCmb/tensorpac
18a5e844826b7f63796276ec435d9dc43c440e40
ac9058fd375d423757943810f613d63785fab85f
refs/heads/master
2023-05-22T16:54:09.656836
2023-02-08T09:42:45
2023-02-08T09:42:45
93,316,276
70
18
BSD-3-Clause
2023-03-08T22:12:03
2017-06-04T13:47:18
Python
UTF-8
Python
false
false
1,987
py
fig_4_pac_corrected.py
"""Rectify PAC estimation by surrogate distribution.""" import json with open("../../paper.json", 'r') as f: cfg = json.load(f) # noqa from tensorpac.signals import pac_signals_tort, pac_signals_wavelet from tensorpac import Pac import seaborn as sns import matplotlib.pyplot as plt plt.style.use('seaborn-poster') s...
b9e7932af4d0c19a53ecb1c933f3adc845d0613c
1a52315a176bd011d93e16ab51603e4ee92b8fae
/Codeforces/#694/A-StrangePartition.py
6441801ba6bf4a5f99b57fc8644eec694a765440
[]
no_license
divyamagwl/CompetitiveProgramming
c2fd3a2a02e3ecac0d06f2de550c84337a261b73
fe2feb342e0a4d971c7809c0ee4f6290d5231b77
refs/heads/master
2023-02-11T01:28:22.744590
2021-01-09T12:40:34
2021-01-09T12:40:34
240,654,489
3
3
null
2020-10-01T10:46:34
2020-02-15T06:08:42
C
UTF-8
Python
false
false
538
py
A-StrangePartition.py
""" https://codeforces.com/contest/1471/problem/A Date: Jan 5 2021 Div: 2 Status: Accepted """ import sys, math def get_ints(): return map(int, sys.stdin.readline().strip().split()) def get_list(): return list(map(int, sys.stdin.readline().strip().split())) def get_string(): return sys.stdin.readline().strip() T = in...
c025bcfb89f68eee7bd77d5a0d70470154fcf230
762f2852faa2db01d999a2db9b38a9c47c49ae16
/read/json_ld.py
8871be654fb48457140be40f72898cd4fe734079
[]
no_license
duanbibo/test_demo
60a7d53dfed0f2adadf1553a6436c3a9bff77b41
2bc66d80acefdd835331b29c5fea35aedd5ed42d
refs/heads/master
2021-07-12T03:10:48.363295
2020-08-25T07:50:20
2020-08-25T07:50:20
196,365,378
0
0
null
2020-06-18T06:22:24
2019-07-11T09:40:09
HTML
UTF-8
Python
false
false
878
py
json_ld.py
import json import os #配置当前项目的路径 cur_path=os.path.abspath(os.path.join(os.path.dirname(__file__),os.path.pardir)) #利用os.path.join拼接路径的时候,后面的不要带斜杠开头 file_path=os.path.join(cur_path,"resource/package.json") print(cur_path,file_path) #load 加载文件中的内容并将字符串转字典 with open(file_path ,'r',encoding="utf-8" ,)as j: data=jso...
fc0b95ee64aad947348251d691486a2860c071c8
83adae1e1ea5ce7afdaac5fe59da386662b5fc36
/poli/python/poli/policies.py
995db7a4fae3e62440655183868de6f310ae5d63
[ "LicenseRef-scancode-unknown-license-reference", "AFL-3.0", "AFL-2.1" ]
permissive
Humhu/percepto
74da23a3404c3099759d469f91a79762c083e86d
4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f
refs/heads/master
2021-04-22T12:51:47.097356
2018-04-10T18:04:51
2018-04-10T18:04:51
55,803,557
2
0
null
null
null
null
UTF-8
Python
false
false
1,542
py
policies.py
"""This module contains common stochastic policy classes. """ import abc import math class StochasticPolicy(object): """Base class for all stochastic policies. """ __metaclass__ = abc.ABCMeta def __init__(self, indim, outdim): self._input_dim = indim self._output_dim = outdim @abc...
b989ed479f62eab16b35453918b1d2ecfdd77066
9925a2b08e0b949144f337262aa916a0ff3b7099
/1128. Number of Equivalent Domino Pairs(E).py
cd4a77ed36ac891f181ae6fb237cb8c4ab4fd1c0
[]
no_license
ppp7720/leetcode
e3aebf4e559c47f27a04537a13f9fb4e1af4f2c3
906b85185015c88df245553417f0f63d0c98c67f
refs/heads/main
2023-04-20T07:26:16.571829
2021-05-16T16:14:43
2021-05-16T16:14:43
357,154,686
0
0
null
null
null
null
UTF-8
Python
false
false
359
py
1128. Number of Equivalent Domino Pairs(E).py
dominoes = [[1,2],[1,2],[1,1],[1,2],[2,2]] class Solution: def numEquivDominoPairs(self, dominoes: List[List[int]]) -> int: h = dict() for a,b in dominoes: p = (max(a,b),min(a,b)) h[p] = h.get(p,0) + 1 res = 0 for i in h.values(): re...
47548f626249e2c8d0ca269396fa4e92c312ae3c
79e353d1c467aa3f4c0491843ba2616b95eadb94
/account_prueba/models/account_move.py
0301f8b7bb61925ce9ca1cf1a2d924dc0905ee12
[]
no_license
JDSalcedo/prueba
12c858ace252aacacde67bac0941b5587afb6c2b
52e7b90aba3443162effc4676e9e070cefda03ec
refs/heads/master
2022-12-22T18:16:02.566811
2020-09-29T02:29:16
2020-09-29T02:29:16
291,137,136
0
4
null
2020-09-21T14:42:04
2020-08-28T20:11:06
Python
UTF-8
Python
false
false
234
py
account_move.py
from odoo import fields, models class AccountMove(models.Model): _inherit = 'account.move' direccion_entrega = fields.Char(string='Dirección de entrega') recordatorio_date = fields.Date(string='Fecha de recordatorio')
024285eaaece2d0d9b290014a88dbcbf720bcd1c
fc7ea925ce9744c1b5b7a6ac363b2c5bcff64cb6
/here/urls.py
9edf2a309c99daf301be7e30bf4c2251e34f7c6e
[]
no_license
fpoms/DCSC-Website
6c5336037b972b740685f68306be6351a1ad728c
8eb4cd653cec5ec768134e64571e13a8928467ff
refs/heads/master
2021-05-26T18:19:09.481608
2014-01-06T11:44:35
2014-01-06T11:44:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
264
py
urls.py
from django.conf.urls import patterns, url from here import views urlpatterns = patterns('', url(r'^$', views.index, name='index'), url(r'^validate$', views.validate, name='validate'), ) #+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
973193a70e23cfee8ee48d6a89249a63cd971085
9e84117406990da84717bc2a4f70d64207bced7b
/backend/adminprofile/models.py
7f60f7d31bf1456600c26d1cf80c320646e9f820
[]
no_license
joshhammer/propulsion-final-project
5063ed5be652f69dd0b6012781614822d9c8d66f
27c8a8875da591fa3883c1af88fc2a2a5f3bb803
refs/heads/master
2023-05-11T01:38:21.326322
2020-02-18T18:42:26
2020-02-18T18:42:26
241,432,633
1
0
null
2023-05-08T01:51:12
2020-02-18T18:09:11
JavaScript
UTF-8
Python
false
false
657
py
models.py
from django.conf import settings from django.db import models class AdminProfile(models.Model): user = models.OneToOneField( verbose_name='user', on_delete=models.CASCADE, related_name='adminprofile', to=settings.AUTH_USER_MODEL ) date_created = models.DateTimeField( ...
384ea653728650dd4b46093a5393604090af7750
c62ba89b37e74e04d09f2c08700c081c5c1ecc3d
/python learning/getwiki.py
777b46a9de3cb67b248cd9432f73f23f40106ca3
[]
no_license
JasonGoGoGo/supreme-engine
54a25dbc5ca15db63a7439053331f7f666785a4d
85c5cf4a1fb5f7c713da1a8f44bb8999835b5337
refs/heads/master
2021-01-19T00:23:38.516828
2017-06-09T15:54:31
2017-06-09T15:54:31
87,166,065
0
0
null
2017-04-04T09:36:09
2017-04-04T08:56:01
Python
UTF-8
Python
false
false
903
py
getwiki.py
#!/usr/bin/env python # -*-coding:utf-8 -*- from urllib import request from bs4 import BeautifulSoup import re import pymysql.cursors url="https://hao.360.cn/"; req=request.Request(url) req.add_header('User-Agent','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133...
b2aafa3d25d8205cfe11abf4a6c963c97cb0b17c
49ba5356bdc5df7dd9803b56fe507c5164a90716
/string-compression/solution.py
8e20d7a012922110845ee0c3b2ae6093ab0d2f67
[]
no_license
uxlsl/leetcode_practice
d80ad481c9d8ee71cce0f3c66e98446ced149635
d8ed762d1005975f0de4f07760c9671195621c88
refs/heads/master
2021-04-25T18:12:28.136504
2020-03-11T07:54:15
2020-03-11T07:54:15
121,472,384
0
0
null
null
null
null
UTF-8
Python
false
false
867
py
solution.py
# leetcode 443 # https://leetcode-cn.com/problems/string-compression/ class Solution(object): def compress(self, chars): """ :type chars: List[str] :rtype: int """ if len(chars) <= 1: return len(chars) chars.append(-1) # 增加哨兵 cur = chars[0] ...
99ccba9a5e5643a58547c7ee9c006ddce89cb4c1
37b472e8e5674309c624558dc45e705973a9f7af
/ethics_statement_project/testing_textacy.py
e479babbbd58509cdf4dc169ffc4b81623dc36de
[ "Apache-2.0" ]
permissive
sasujadhav1/dictionary
94ed05db06ad1470ba02c30318c42917082ad061
4b5e4c79adacf8ba0973c16c2f702cc1110624b8
refs/heads/main
2023-07-15T19:18:34.252083
2021-08-23T09:20:22
2021-08-23T09:20:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
649
py
testing_textacy.py
import pandas as pd import spacy import textacy import os import logging HOME = os.getcwd() df = pd.read_csv(os.path.join(HOME, 'stem_cell_2018_20210703.csv'), usecols = ['parsed']) #preproc = textacy.preprocessing.make_pipeline(textacy.preprocessing.normalize.unicode,textacy.preprocessing.normalize.quotation_marks,tex...
89bd8cb39676109b55a1ea11426ac31972985740
ad5c6daba04c8e04054085f96d36f5b167a09a37
/src/lepl/_example/tutorial_2.py
d0f1fabe5f9eae18cab187326c816b00967e0ef5
[]
no_license
nyimbi/LEPL
f49fee47a3c47d0291d2356e8a1e9b3120e32c05
0603505f187acc3c7da2e1a6083833a201f8b061
refs/heads/master
2021-04-15T13:40:32.860153
2018-03-26T14:00:25
2018-03-26T14:00:25
126,837,047
2
2
null
null
null
null
UTF-8
Python
false
false
5,656
py
tutorial_2.py
# The contents of this file are subject to the Mozilla Public License # (MPL) Version 1.1 (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.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS IS" # b...
011d9feb696c97ea6df6165da6f0b520b6ebb546
ac216a2cc36f91625e440247986ead2cd8cce350
/appengine/monorail/services/test/user_svc_test.py
126c20dd3e8ef82d43d26c05b834deb274438dfc
[ "BSD-3-Clause" ]
permissive
xinghun61/infra
b77cdc566d9a63c5d97f9e30e8d589982b1678ab
b5d4783f99461438ca9e6a477535617fadab6ba3
refs/heads/master
2023-01-12T21:36:49.360274
2019-10-01T18:09:22
2019-10-01T18:09:22
212,168,656
2
1
BSD-3-Clause
2023-01-07T10:18:03
2019-10-01T18:22:44
Python
UTF-8
Python
false
false
23,332
py
user_svc_test.py
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Tests for the user service.""" from __future__ import print_function from __future__ import ...
0e189ea86f1a80f56790a9adb6d85d3af7b1428e
ba16479d3cab8f2fc1acdaee518f72a5f73a3813
/estusshots/forms.py
91180194c49fc0ee2ebfdeb0edbf014e9f694bfe
[]
no_license
luxick/estus-shots
8f174b2f266beee161aef98b5fb2856af7c4cae7
64a85e92f5ec7f831d0cc03c988af52c31c8aea4
refs/heads/master
2021-06-13T08:44:06.590289
2019-10-18T22:50:38
2019-10-18T22:50:38
166,011,660
0
0
null
2021-03-20T00:28:27
2019-01-16T09:25:22
Python
UTF-8
Python
false
false
3,538
py
forms.py
from typing import Dict, List from dataclasses import dataclass from flask_wtf import FlaskForm from wtforms import ( DateField, TimeField, StringField, SubmitField, BooleanField, DecimalField, SelectField, SelectMultipleField, HiddenField, FieldList, FormField, ) from wtfor...
8068044f370364cd446c4e10edcc4e8a3537b158
64995738da2154b9e2d46b1abda2e636af58d6a2
/爬虫python脚本/rongjinsuo.version_0/rongjinsuo/rongjinsuo/pipelines.py
f066b0c1740875954af4e3cfbd0be155df3261e4
[]
no_license
easyshell/touna
bd39b1ebaf1a24190e9f416d9d89e747e5cf4fc8
979f71d9678031ac930faed4e2c149f019f52406
refs/heads/master
2021-05-02T16:24:21.036690
2016-11-18T07:53:56
2016-11-18T07:53:56
65,701,194
0
1
null
null
null
null
UTF-8
Python
false
false
5,932
py
pipelines.py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import json from rongjinsuo.items import * from hashlib import md5 import MySQLdb import MySQLdb.cursors from datetime import d...
8c3810d308a9f7eb76b17d45d2b6655a03ae0215
1b6628c26c0a814cdad56199024fdaff43238c7d
/functional_tests/test_my_list.py
f24002681464d61ba041180c5038315210bd755a
[]
no_license
itmightgetloud/djangoTDD
cfd7a115de1be8c0f8295f3ef4f815607edddb54
12775f945e8d50e90191cb0beec55346fb46a6e8
refs/heads/master
2021-03-27T19:39:17.355120
2017-07-04T03:41:05
2017-07-04T03:41:05
85,226,017
0
0
null
null
null
null
UTF-8
Python
false
false
3,020
py
test_my_list.py
from django.conf import settings from django.contrib.auth import ( BACKEND_SESSION_KEY, SESSION_KEY, get_user_model ) from .base import FunctionalTest from .test_login import TEST_EMAIL #from .server_tools import create_session_on_server from .management.commands.create_session import create_pre_authenticated_sess...
f4774ee1d26ad5a4e68e5f9a962f172668ae87a3
407b606b6df35b408eb89b3d8f21900d48cd6cea
/day_09_a.py
81d5b7ae2b6c620cde74b4f5010fe0a4e37c0854
[ "MIT" ]
permissive
Gyaha/AOC2020
e42029c999ecd91d3875e4272978f80cf4761e0a
fbabae9acd7d274b84bc0c64f2665dfba9f008ca
refs/heads/main
2023-02-18T22:20:39.741812
2021-01-10T14:55:43
2021-01-10T14:55:43
312,300,127
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
day_09_a.py
def test_preamble(l: list) -> bool: t = l.pop() for i in range(len(l) - 1): if t - l[i] in l[i + 1:]: return True return False def find_preamble(s: str, p: int) -> int: l = [int(l) for l in s.splitlines()] for i in range(len(l) - p): if not test_preamble(l[i:i + p + 1])...
f58bbc2d1db8a71db429581d6fa38dda56181713
e2ff1be202ff76ee8f7b9e612d3badb13bcbcea1
/drill.py
836b1463308ff68ce6b53301451e2cc604cf7809
[]
no_license
cyrillos/drill
dd3d460501a44090c6ea48389ad54fb3edd3f689
9905a2a80f7d721a04ea7c56186f08b0343c1c23
refs/heads/master
2022-05-31T16:44:27.058821
2022-05-17T19:46:06
2022-05-17T19:46:06
186,671,610
0
1
null
null
null
null
UTF-8
Python
false
false
5,910
py
drill.py
#!/usr/bin/python3 import argparse import logging import shutil import json import sys import re import os parser = argparse.ArgumentParser(prog='drill.py') parser.add_argument('--conf', dest = 'conf', default = 'conf/drill.json', help = 'Configuration file in JSON format') s...
fb119531f24f15255ff3ecc4d6f400302fcf86d7
8eb34f4bc960ce2dcc670c1dd39136a74b77dfbf
/launch/controller_manager.launch.py
5bbe50bffb76b79a3f346e2c305522428912c13d
[]
no_license
jgensler8/my_rotate_bot
ff5e8be46e08b966923c5b340c4ffdb5989ce0ff
6e59d24358a777f9c20fe27b307008f4f5f6c727
refs/heads/main
2023-02-24T00:37:07.335990
2021-01-31T10:29:24
2021-01-31T10:29:24
334,628,750
6
0
null
null
null
null
UTF-8
Python
false
false
1,168
py
controller_manager.launch.py
import os from ament_index_python.packages import get_package_share_directory from launch import LaunchDescription from launch.actions import IncludeLaunchDescription from launch.launch_description_sources import PythonLaunchDescriptionSource from launch_ros.actions import Node import xacro def generate_launch_d...
be04bbd5b12ef94d01fc8d23fbe8cdef848ceeb5
82bff4a518b6477ec6e6463504c7ccaeb4c2f207
/custom_components/powercalc/strategy/selector.py
24f2ee670115b19b808fe16249292d9bc371216c
[ "MIT" ]
permissive
klaasnicolaas/Student-homeassistant-config
02e36ac139fe424f02766ef95962a517a38912b7
b22a7c3b5837b40a71d6eeecf7147503b96b9bf9
refs/heads/master
2023-08-12T01:31:34.395433
2023-07-30T17:54:57
2023-07-30T17:54:57
182,340,536
185
23
MIT
2023-09-06T07:59:05
2019-04-20T00:22:09
JavaScript
UTF-8
Python
false
false
1,237
py
selector.py
from homeassistant.helpers.typing import ConfigType from custom_components.powercalc.const import ( CONF_FIXED, CONF_LINEAR, CONF_MODE, CONF_PLAYBOOK, CONF_WLED, CalculationStrategy, ) from custom_components.powercalc.errors import UnsupportedStrategyError from custom_components.powercalc.power...
54501f18d79074fd8206ecc969aee0196d5eaa37
69cbd3385da840929d8fa47cb97f8c0a3f3b60fd
/code/chp3-csv-json-xml/import_json_data.py
d071922f36e2697feb98fa23ba69706d32c3d4a0
[]
no_license
ziyonghong/data-wrangling-master
b502b0df60649f04b026f6f973ebd70719e2c8be
bcb9aad2bcf6ffa1e800388f798521325b80824c
refs/heads/master
2022-12-09T14:02:19.916784
2020-02-05T02:48:57
2020-02-05T02:48:57
238,354,327
0
0
null
2022-12-07T23:32:58
2020-02-05T02:48:45
HTML
UTF-8
Python
false
false
166
py
import_json_data.py
import json json_data = open('../../data/chp3/data-text.json').read() data = json.loads(json_data) #接收字符串作为参数 for item in data: print (item)