hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
1fc8f64a1c48e617dc27ddaba536434b9f8ea44b
4,915
py
Python
Configuration/GlobalRuns/python/reco_TLR_311X.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/GlobalRuns/python/reco_TLR_311X.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/GlobalRuns/python/reco_TLR_311X.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms ############################################################################## ############################################################################## ############################################################################## ####################################...
36.407407
107
0.545677
1fcb25844610f792402d0768084d92368a8057d1
4,838
py
Python
renderer/settings.py
12564985/DeFMO
8ed9c2963678e2c59c7431ec8786302eea841572
[ "MIT" ]
1
2022-03-14T12:46:38.000Z
2022-03-14T12:46:38.000Z
renderer/settings.py
12564985/DeFMO
8ed9c2963678e2c59c7431ec8786302eea841572
[ "MIT" ]
null
null
null
renderer/settings.py
12564985/DeFMO
8ed9c2963678e2c59c7431ec8786302eea841572
[ "MIT" ]
null
null
null
## TODO: insert your ShapeNetCore.v2, textures, training and testing background paths # NOTE that HDF5 is not generated here, to convert the dataset to HDF5 use dataloaders/conversion.py g_datasets_path = '/mnt/lascar/rozumden/dataset' g_shapenet_path = g_datasets_path + '/ShapeNetv2/ShapeNetCore.v2' g_textures_path ...
35.573529
582
0.668251
1fcc73246e5b2e2deb6ef1a5498a653dfdea012b
3,094
py
Python
pynm/feature/extract/nmf.py
ohtaman/pynm
b003962201e4270d0dab681ede37f2d8edd560f2
[ "MIT" ]
1
2018-08-16T20:48:52.000Z
2018-08-16T20:48:52.000Z
pynm/feature/extract/nmf.py
ohtaman/pynm
b003962201e4270d0dab681ede37f2d8edd560f2
[ "MIT" ]
5
2015-01-12T20:40:46.000Z
2017-11-17T01:27:41.000Z
pynm/feature/extract/nmf.py
ohtaman/pynm
b003962201e4270d0dab681ede37f2d8edd560f2
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import numpy import numpy.random import numpy.linalg from . import svd def nmf(matrix, dim=None, distance="euclid", init=svd_init, max_iter=10000, threshould=0.001, epsilon=1e-9, seed=None): """Non-negative Matrix Factorization func...
29.75
94
0.597931
1fccf8df9831cb035ab2861081b74267181cefc9
6,052
py
Python
examples/demo_livepeer.py
scout-cool/Bubbletea
f0312d6f1c7fde4098d500e811f0503796973d07
[ "Apache-2.0" ]
10
2021-08-29T14:58:09.000Z
2022-02-07T21:03:07.000Z
examples/demo_livepeer.py
scout-cool/Bubbletea
f0312d6f1c7fde4098d500e811f0503796973d07
[ "Apache-2.0" ]
null
null
null
examples/demo_livepeer.py
scout-cool/Bubbletea
f0312d6f1c7fde4098d500e811f0503796973d07
[ "Apache-2.0" ]
null
null
null
import datetime import datetime from altair.vegalite.v4.schema.core import Legend import pandas from pandas.core.frame import DataFrame import streamlit as st import time import bubbletea st.header("LIVEPEER Stake Movement") urlvars = bubbletea.parse_url_var([{'key':'startdate','type':'datetime'}, {'key':'enddate','t...
28.682464
117
0.594019
1fcde10af6e71da8c4ae91b2cecfc62ef747de93
956
py
Python
tests/utils/test_match.py
jeremyschlatter/vaccine-feed-ingest
215f6c144fe5220deaccdb5db3e96f28b7077b3f
[ "MIT" ]
null
null
null
tests/utils/test_match.py
jeremyschlatter/vaccine-feed-ingest
215f6c144fe5220deaccdb5db3e96f28b7077b3f
[ "MIT" ]
65
2021-05-04T13:05:01.000Z
2022-03-31T10:13:49.000Z
tests/utils/test_match.py
jeremyschlatter/vaccine-feed-ingest
215f6c144fe5220deaccdb5db3e96f28b7077b3f
[ "MIT" ]
null
null
null
from vaccine_feed_ingest.utils import match
36.769231
83
0.848326
1fce94867341b2964e24bbb0a90fa03bff2006d5
2,201
py
Python
PyRods/examples/user_info.py
kaldrill/irodspython
9a1018429acf9e86af8fb7ea6f37fb397e0010da
[ "CNRI-Python" ]
null
null
null
PyRods/examples/user_info.py
kaldrill/irodspython
9a1018429acf9e86af8fb7ea6f37fb397e0010da
[ "CNRI-Python" ]
null
null
null
PyRods/examples/user_info.py
kaldrill/irodspython
9a1018429acf9e86af8fb7ea6f37fb397e0010da
[ "CNRI-Python" ]
null
null
null
# Copyright (c) 2013, University of Liverpool # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program ...
37.305085
92
0.685597
1fd17f1089fdee8a486a2a65c3fb934cc9195151
1,072
py
Python
sml_iris_knn_dtc.py
drishtim17/supervisedML
3981d283a9937bfce793237c171fa95764846558
[ "Apache-2.0" ]
null
null
null
sml_iris_knn_dtc.py
drishtim17/supervisedML
3981d283a9937bfce793237c171fa95764846558
[ "Apache-2.0" ]
null
null
null
sml_iris_knn_dtc.py
drishtim17/supervisedML
3981d283a9937bfce793237c171fa95764846558
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import sklearn from sklearn.datasets import load_iris from sklearn.neighbors import KNeighborsClassifier from sklearn.model_selection import train_test_split from sklearn import tree from sklearn.metrics import accuracy_score #loading iris iris=load_iris() #traning flowers.features is stored in i...
24.363636
99
0.841418
1fd3b3ac45b4ed570227a76c3f4f622771cac325
2,762
py
Python
Python/Exercises/Humanize/humanize.py
Gjacquenot/training-material
16b29962bf5683f97a1072d961dd9f31e7468b8d
[ "CC-BY-4.0" ]
115
2015-03-23T13:34:42.000Z
2022-03-21T00:27:21.000Z
Python/Exercises/Humanize/humanize.py
Gjacquenot/training-material
16b29962bf5683f97a1072d961dd9f31e7468b8d
[ "CC-BY-4.0" ]
56
2015-02-25T15:04:26.000Z
2022-01-03T07:42:48.000Z
Python/Exercises/Humanize/humanize.py
Gjacquenot/training-material
16b29962bf5683f97a1072d961dd9f31e7468b8d
[ "CC-BY-4.0" ]
59
2015-11-26T11:44:51.000Z
2022-03-21T00:27:22.000Z
#!/usr/bin/env python def humanize(n, base=10, digits=1, unit=''): '''convert a floating point number to a human-readable format Parameters ---------- n : float or str number to convert, it can a string representation of a floating point number base : int base to use, eith...
28.474227
77
0.513034
1fd529b1fbfbcec29e94685aeef6fbda0d26c559
1,337
py
Python
data/Latent.py
YoungjuNa-KR/Gaze_estimator_implementation
95482db40ddef413870f51dadc907910d624ee6e
[ "MIT" ]
null
null
null
data/Latent.py
YoungjuNa-KR/Gaze_estimator_implementation
95482db40ddef413870f51dadc907910d624ee6e
[ "MIT" ]
null
null
null
data/Latent.py
YoungjuNa-KR/Gaze_estimator_implementation
95482db40ddef413870f51dadc907910d624ee6e
[ "MIT" ]
1
2022-02-03T11:11:21.000Z
2022-02-03T11:11:21.000Z
import os import PIL import torch from glob import glob from torch.utils.data import DataLoader from torchvision.transforms.functional import pil_to_tensor
29.711111
68
0.604338
1fd676c1868fb5496119162edb66de118a176730
876
py
Python
scripts/mklanguages.py
yasen-m/dosage
81fe088621ad335cac2a53fcbc7b9b37f49ddce2
[ "MIT" ]
null
null
null
scripts/mklanguages.py
yasen-m/dosage
81fe088621ad335cac2a53fcbc7b9b37f49ddce2
[ "MIT" ]
null
null
null
scripts/mklanguages.py
yasen-m/dosage
81fe088621ad335cac2a53fcbc7b9b37f49ddce2
[ "MIT" ]
null
null
null
#!/usr/bin/python # update languages.py from pycountry import os import codecs import pycountry basepath = os.path.dirname(os.path.dirname(__file__)) def main(): """Update language information in dosagelib/languages.py.""" fn =os.path.join(basepath, 'dosagelib', 'languages.py') encoding = 'utf-8' with...
29.2
83
0.634703
1fd6b807f6071d9b5d2c510c8209a51bbbc35084
531
py
Python
reference/for_and_while.py
SeanSyue/TensorflowReferences
2c93f4c770e2713ef4769f287e022d03e7097188
[ "MIT" ]
null
null
null
reference/for_and_while.py
SeanSyue/TensorflowReferences
2c93f4c770e2713ef4769f287e022d03e7097188
[ "MIT" ]
null
null
null
reference/for_and_while.py
SeanSyue/TensorflowReferences
2c93f4c770e2713ef4769f287e022d03e7097188
[ "MIT" ]
null
null
null
import tensorflow as tf x = tf.Variable(0, name='x') model = tf.global_variables_initializer() with tf.Session() as session: for i in range(5): session.run(model) x = x + 1 print(session.run(x)) x = tf.Variable(0., name='x') threshold = tf.constant(5.) model = tf.glob...
19.666667
46
0.589454
1fd6f57e7b90621a24c47afd31d7bbd91668d230
59
py
Python
raising_exception_3.py
godontop/python-work
ea22e0df8b0b17605f5a434e556a388d1f75aa47
[ "MIT" ]
null
null
null
raising_exception_3.py
godontop/python-work
ea22e0df8b0b17605f5a434e556a388d1f75aa47
[ "MIT" ]
null
null
null
raising_exception_3.py
godontop/python-work
ea22e0df8b0b17605f5a434e556a388d1f75aa47
[ "MIT" ]
null
null
null
try: num = 5 / 0 except: print("An error occured") raise
11.8
26
0.644068
1fd7ed8a83b56f175881d6f318fa389d67ee450a
732
py
Python
bewerte/muendlich.py
jupfi81/NotenManager
ee96a41088bb898c025aed7b3c904741cb71d004
[ "MIT" ]
null
null
null
bewerte/muendlich.py
jupfi81/NotenManager
ee96a41088bb898c025aed7b3c904741cb71d004
[ "MIT" ]
null
null
null
bewerte/muendlich.py
jupfi81/NotenManager
ee96a41088bb898c025aed7b3c904741cb71d004
[ "MIT" ]
null
null
null
"""Berechnet die mndliche Note""" import csv with open('bewertung.csv', encoding='utf-8', mode='r') as bewertung: TABELLE = [] DATA = csv.reader(bewertung, delimiter=',') for row in DATA: TABELLE.append([element.strip() for element in row]) OUTPUT = [TABELLE[0] + ["Note"]] del TABELLE[0] ...
31.826087
92
0.562842
1fd7f7aa485ce2ad0b848a0e2bbaa8cf36a6c24a
410
py
Python
python3/tests/test_edit_distance.py
qianbinbin/leetcode
915cecab0c940cd13847683ec55b17b77eb0f39b
[ "MIT" ]
4
2018-03-05T02:27:16.000Z
2021-03-15T14:19:44.000Z
python3/tests/test_edit_distance.py
qianbinbin/leetcode
915cecab0c940cd13847683ec55b17b77eb0f39b
[ "MIT" ]
null
null
null
python3/tests/test_edit_distance.py
qianbinbin/leetcode
915cecab0c940cd13847683ec55b17b77eb0f39b
[ "MIT" ]
2
2018-07-22T10:32:10.000Z
2018-10-20T03:14:28.000Z
from unittest import TestCase from leetcodepy.edit_distance import * solution1 = Solution1() word11 = "horse" word12 = "ros" expected1 = 3 word21 = "intention" word22 = "execution" expected2 = 5
17.083333
74
0.731707
1fd8f8fea0aa37bc2adfbcbf6dda99e537d99a7f
805
py
Python
pageobject/commands/index.py
lukas-linhart/pageobject
6ae83680ae62a94f93cefc394e4f3cc6999aeead
[ "MIT" ]
1
2017-01-12T06:15:36.000Z
2017-01-12T06:15:36.000Z
pageobject/commands/index.py
lukas-linhart/pageobject
6ae83680ae62a94f93cefc394e4f3cc6999aeead
[ "MIT" ]
null
null
null
pageobject/commands/index.py
lukas-linhart/pageobject
6ae83680ae62a94f93cefc394e4f3cc6999aeead
[ "MIT" ]
null
null
null
def index(self, value): """ Return index of the first child containing the specified value. :param str value: text value to look for :returns: index of the first child containing the specified value :rtype: int :raises ValueError: if the value is not found """ self.logger.info('getting ...
47.352941
116
0.690683
1fda8ca8896b2d1bcde84055f16e53f955e23e9c
2,724
py
Python
vlsopt/data_factory/transaction_factory.py
violas-core/bvexchange
74cf3197aad02e0f5e2dac457266d11c9c8cc746
[ "MIT" ]
null
null
null
vlsopt/data_factory/transaction_factory.py
violas-core/bvexchange
74cf3197aad02e0f5e2dac457266d11c9c8cc746
[ "MIT" ]
null
null
null
vlsopt/data_factory/transaction_factory.py
violas-core/bvexchange
74cf3197aad02e0f5e2dac457266d11c9c8cc746
[ "MIT" ]
1
2022-01-05T04:39:47.000Z
2022-01-05T04:39:47.000Z
#!/usr/bin/python3 import operator import sys import json import os sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "./")) sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../")) sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../")) sys.pat...
33.62963
96
0.551762
1fdabe81a3501b610902f47c9629b3212106ad89
3,746
py
Python
python/tdk_fetch.py
selcukcihan/namewizard
c2aeb3fd1eb3ce839d0e3a145bdf2a6df354d568
[ "CC0-1.0" ]
null
null
null
python/tdk_fetch.py
selcukcihan/namewizard
c2aeb3fd1eb3ce839d0e3a145bdf2a6df354d568
[ "CC0-1.0" ]
null
null
null
python/tdk_fetch.py
selcukcihan/namewizard
c2aeb3fd1eb3ce839d0e3a145bdf2a6df354d568
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python from BeautifulSoup import BeautifulSoup import json import urllib import urllib2 import re import time import os.path names = {} if os.path.exists("names.txt"): with open("names.txt") as f: for line in f.readlines(): tokens = line.split(" ") names[tokens[0]....
32.293103
136
0.570208
1fdadaa704a4a57bab069bbf9519d57e9bc28d25
3,703
py
Python
tests/test_source.py
j18ter/exchangelib
afb0df65c5533999bca92e25be4c00de5c03043c
[ "BSD-2-Clause" ]
null
null
null
tests/test_source.py
j18ter/exchangelib
afb0df65c5533999bca92e25be4c00de5c03043c
[ "BSD-2-Clause" ]
null
null
null
tests/test_source.py
j18ter/exchangelib
afb0df65c5533999bca92e25be4c00de5c03043c
[ "BSD-2-Clause" ]
null
null
null
from exchangelib.errors import ( ErrorAccessDenied, ErrorFolderNotFound, ErrorInvalidOperation, ErrorItemNotFound, ErrorNoPublicFolderReplicaAvailable, ) from exchangelib.properties import EWSElement from .common import EWSTest
34.287037
105
0.533081
1fdb3bda49808628500a9864a821b84e3138f89c
735
py
Python
{{cookiecutter.project_slug}}/app/utils/mail.py
Bexils/fastapi-project-template
1d6937c5adce7603c77e01f8560032082392fdbd
[ "MIT" ]
4
2021-04-04T23:19:06.000Z
2021-04-10T21:32:23.000Z
{{cookiecutter.project_slug}}/app/utils/mail.py
Bexils/fastapi-project-template
1d6937c5adce7603c77e01f8560032082392fdbd
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/app/utils/mail.py
Bexils/fastapi-project-template
1d6937c5adce7603c77e01f8560032082392fdbd
[ "MIT" ]
null
null
null
import os from datetime import datetime from pathlib import Path from pydantic import EmailStr
28.269231
64
0.672109
1fded2389baa0f710851c0214c487f38445e67b1
3,540
py
Python
predict_btc_future.py
benjaminshi02003220/Bitcoin_price_prediction
f4894614bafa0a4295d08d0b8f53d314c4262724
[ "MIT" ]
6
2018-03-11T13:47:22.000Z
2018-07-03T05:03:48.000Z
predict_btc_future.py
benjaminshi02003220/Bitcoin_price_prediction
f4894614bafa0a4295d08d0b8f53d314c4262724
[ "MIT" ]
null
null
null
predict_btc_future.py
benjaminshi02003220/Bitcoin_price_prediction
f4894614bafa0a4295d08d0b8f53d314c4262724
[ "MIT" ]
4
2018-03-27T15:38:40.000Z
2018-07-07T20:04:29.000Z
# -*- coding: utf-8 -*- """ Created on Fri Mar 9 17:06:09 2018 @author: v-beshi """ import pyodbc import pandas as pd raw_data=pd.read_sql('select * from dbo.BitcoinTradeHistory',con) raw_data['USDT_exceed']=raw_data['huobi_USDT']-raw_data['exchange_rate'] pre_price15=[] for i in range(0,15): ...
38.478261
232
0.664124
1fe22fd049d8e5e23653953f62233abe237a47e8
16,692
py
Python
bloodbank_rl/pyomo_models/stochastic_model_runner.py
joefarrington/bloodbank_rl
f285581145034b498f01c9b44f95437ceddb042a
[ "MIT" ]
null
null
null
bloodbank_rl/pyomo_models/stochastic_model_runner.py
joefarrington/bloodbank_rl
f285581145034b498f01c9b44f95437ceddb042a
[ "MIT" ]
null
null
null
bloodbank_rl/pyomo_models/stochastic_model_runner.py
joefarrington/bloodbank_rl
f285581145034b498f01c9b44f95437ceddb042a
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import pyomo.environ as pyo import mpisppy.utils.sputils as sputils from mpisppy.opt.ef import ExtensiveForm from pathlib import Path import os import sys path_root = Path(os.path.abspath(__file__)).parents[2] sys.path.append(str(path_root)) from bloodbank_rl.environments.plat...
37.679458
107
0.557453
1fe41f5dc40be297773f566df8109a75b70ca3b8
3,623
py
Python
ch1/tictactoe.py
T0nyX1ang/Reinforcement-Learning
a86ab92ee628b95c7dbe432c079b7ce04b5e982a
[ "MIT" ]
null
null
null
ch1/tictactoe.py
T0nyX1ang/Reinforcement-Learning
a86ab92ee628b95c7dbe432c079b7ce04b5e982a
[ "MIT" ]
null
null
null
ch1/tictactoe.py
T0nyX1ang/Reinforcement-Learning
a86ab92ee628b95c7dbe432c079b7ce04b5e982a
[ "MIT" ]
null
null
null
import random import json if __name__ == '__main__': tttg = TTTGame() tttg.combat() tttg.train(100000) tttg.dump_state()
27.037313
134
0.619928
1fe4750a23a26455a9111641d38426011cdda650
141
py
Python
Chapter 03/ch3_1_38.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 03/ch3_1_38.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 03/ch3_1_38.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
str1 = ' Happy Life ' str2= ' Happy Life ' if (str1.strip()== str2.strip()): print("Same") else: print("Not same") # same
17.625
34
0.531915
1fe4a5c508f25892277d20cf17891a3088bcee69
2,601
py
Python
text_analytic_emotion_load_only.py
agussuarjaya/Text_Analytic_-Emotion-
01cdf6f3661eaad2cb76111ebaee90ec50b592f0
[ "MIT" ]
null
null
null
text_analytic_emotion_load_only.py
agussuarjaya/Text_Analytic_-Emotion-
01cdf6f3661eaad2cb76111ebaee90ec50b592f0
[ "MIT" ]
1
2020-03-28T16:06:04.000Z
2020-03-29T02:03:44.000Z
text_analytic_emotion_load_only.py
agussuarjaya/Text_Analytic_-Emotion-
01cdf6f3661eaad2cb76111ebaee90ec50b592f0
[ "MIT" ]
2
2020-03-28T15:02:48.000Z
2020-03-29T12:27:50.000Z
# -*- coding: utf-8 -*- """Text Analytic (Emotion) - load_only.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1ec4JMQZ5zoj-PB_a0mUkJWRKotgQSd9f """ """ Text Analytic (Emotion) with TensorFlow Copyright 2020 I Made Agus Dwi Suarjaya ...
38.820896
189
0.685506
1fe6e5bdf88233acf9a9c841722eff52d327f1f2
13,160
py
Python
Server.py
HackintoshwithUbuntu/Python-Chat-App
d5af370e33a092c52702efed6b1074d458c593ac
[ "MIT" ]
2
2021-08-30T03:19:10.000Z
2021-09-06T21:51:02.000Z
Server.py
HackintoshwithUbuntu/Python-Chat-App
d5af370e33a092c52702efed6b1074d458c593ac
[ "MIT" ]
null
null
null
Server.py
HackintoshwithUbuntu/Python-Chat-App
d5af370e33a092c52702efed6b1074d458c593ac
[ "MIT" ]
null
null
null
# Imports import socket # Communication import threading # Communication with multiple users at once import pickle # Serialising data import hashlib # Hashing passwords from Crypto.Cipher import AES # AES encryption algorithms from Crypto.Random import get_random_bytes # For generating random keys and nonces...
38.820059
115
0.572188
1fe7b45de50e9ea21f771782230c1d73959dc62a
215
py
Python
devmine/config/environments/production.py
sniperkit/snk.fork.devmine-core
6ab43abd0c1041831ecb86dcba55ffd9e05ce615
[ "BSD-3-Clause" ]
null
null
null
devmine/config/environments/production.py
sniperkit/snk.fork.devmine-core
6ab43abd0c1041831ecb86dcba55ffd9e05ce615
[ "BSD-3-Clause" ]
null
null
null
devmine/config/environments/production.py
sniperkit/snk.fork.devmine-core
6ab43abd0c1041831ecb86dcba55ffd9e05ce615
[ "BSD-3-Clause" ]
null
null
null
# server backend server = 'cherrypy' # debug error messages debug = False # auto-reload reloader = False # database url db_url = 'sqlite:///devmine/db/devmine.db' # echo database engine messages db_echo = False
14.333333
42
0.730233
1fe923af70915246d98e2a502a9e9ce347a11d16
1,279
py
Python
gen_screens.py
shurkova/currentVers
25027f3f4faa9033b69041459f0785c1436c3f31
[ "CECILL-B" ]
1
2020-09-09T15:30:38.000Z
2020-09-09T15:30:38.000Z
gen_screens.py
shurkova/currentVers
25027f3f4faa9033b69041459f0785c1436c3f31
[ "CECILL-B" ]
null
null
null
gen_screens.py
shurkova/currentVers
25027f3f4faa9033b69041459f0785c1436c3f31
[ "CECILL-B" ]
11
2020-05-01T09:03:14.000Z
2022-02-09T14:17:41.000Z
# generate 500 screens. import random objs = [] for i in range(500): go_to = random.choice([2,3]) for j in range(go_to): new_obj = {'name': 'non_exist', 'RBs': [], 'set': 'memory', 'analog': i} width = round(random.random()*20) hight = round(random.random()*10) x = round(rando...
51.16
704
0.56294
1fec0bf47c009cdb0ca6fac21df153c55c6c1431
46,269
py
Python
bot/utils/trackmania.py
NottCurious/TMIndiaBot
824c171fa2f41aa21631796c384f70a34a721364
[ "MIT" ]
1
2022-02-12T16:40:17.000Z
2022-02-12T16:40:17.000Z
bot/utils/trackmania.py
NottCurious/TMIndiaBot
824c171fa2f41aa21631796c384f70a34a721364
[ "MIT" ]
78
2021-10-14T05:32:54.000Z
2022-01-21T09:22:37.000Z
bot/utils/trackmania.py
NottCurious/TMIndiaBot
824c171fa2f41aa21631796c384f70a34a721364
[ "MIT" ]
null
null
null
import asyncio import json import os import shutil import typing from datetime import datetime, timezone, timedelta from matplotlib import pyplot as plt import cv2 import country_converter as coco import flag import requests import discord from bot.api import APIClient from bot.log import get_logger from bot.utils.co...
35.756569
195
0.578832
1fed6ebbcca1ccb5af62d7ab28474d73bafe114f
4,535
py
Python
src/vehicle_core/model/throttle_model.py
decabyte/vehicle_core
623e1e993445713ab2ba625ac54be150077c2f1e
[ "BSD-3-Clause" ]
1
2016-12-14T11:48:02.000Z
2016-12-14T11:48:02.000Z
src/vehicle_core/model/throttle_model.py
decabyte/vehicle_core
623e1e993445713ab2ba625ac54be150077c2f1e
[ "BSD-3-Clause" ]
null
null
null
src/vehicle_core/model/throttle_model.py
decabyte/vehicle_core
623e1e993445713ab2ba625ac54be150077c2f1e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Software License Agreement (BSD License) # # Copyright (c) 2014, Ocean Systems Laboratory, Heriot-Watt University, UK. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the follow...
40.855856
118
0.714443
1fee9ed72e23e0f9892bd14d8b33f1a360d24471
1,605
py
Python
social_friends_finder/backends/vkontakte_backend.py
haremmaster/django-social-friends-finder
cad63349b19b3c301626c24420ace13c63f45ad7
[ "BSD-3-Clause" ]
19
2015-01-01T16:23:06.000Z
2020-01-02T22:42:17.000Z
social_friends_finder/backends/vkontakte_backend.py
haremmaster/django-social-friends-finder
cad63349b19b3c301626c24420ace13c63f45ad7
[ "BSD-3-Clause" ]
2
2015-01-01T16:34:59.000Z
2015-03-26T10:30:59.000Z
social_friends_finder/backends/vkontakte_backend.py
laplacesdemon/django-social-friends-finder
cad63349b19b3c301626c24420ace13c63f45ad7
[ "BSD-3-Clause" ]
11
2015-01-16T18:39:34.000Z
2021-08-13T00:46:41.000Z
from social_friends_finder.backends import BaseFriendsProvider from social_friends_finder.utils import setting if not setting("SOCIAL_FRIENDS_USING_ALLAUTH", False): from social_auth.backends.contrib.vk import VKOAuth2Backend USING_ALLAUTH = False else: from allauth.socialaccount.models import SocialToken, ...
33.4375
114
0.684112
1feefa448dd4d27276c85f5a38d04e04d811d4b4
56
py
Python
tests/cms_bundles/__init__.py
ff0000/scarlet
6c37befd810916a2d7ffff2cdb2dab57bcb6d12e
[ "MIT" ]
9
2015-10-13T04:35:56.000Z
2017-03-16T19:00:44.000Z
tests/cms_bundles/__init__.py
ff0000/scarlet
6c37befd810916a2d7ffff2cdb2dab57bcb6d12e
[ "MIT" ]
32
2015-02-10T21:09:18.000Z
2017-07-18T20:26:51.000Z
tests/cms_bundles/__init__.py
ff0000/scarlet
6c37befd810916a2d7ffff2cdb2dab57bcb6d12e
[ "MIT" ]
3
2017-07-13T13:32:21.000Z
2019-04-08T20:18:58.000Z
default_app_config = 'tests.cms_bundles.apps.AppConfig'
28
55
0.839286
1ff9642e37e0136fb4ef1901be1925b6d57a71f4
2,543
py
Python
app/test/commonJSONStrings.py
rmetcalf9/dockJob
a61acf7ca52e37ff513695a5cc201d346fb4a7fa
[ "MIT" ]
14
2018-03-28T20:37:56.000Z
2020-08-30T13:29:05.000Z
app/test/commonJSONStrings.py
rmetcalf9/dockJob
a61acf7ca52e37ff513695a5cc201d346fb4a7fa
[ "MIT" ]
79
2018-02-07T14:42:00.000Z
2022-02-11T22:30:03.000Z
app/test/commonJSONStrings.py
rmetcalf9/dockJob
a61acf7ca52e37ff513695a5cc201d346fb4a7fa
[ "MIT" ]
6
2018-05-08T21:49:40.000Z
2021-07-30T13:47:37.000Z
data_simpleJobCreateParams = { "name": "TestJob", "repetitionInterval": "HOURLY:03", "command": "ls", "enabled": True } data_simpleManualJobCreateParams = { "name": "TestJob", "repetitionInterval": "", "command": "ls", "enabled": False } data_simpleJobCreateExpRes = { "guid": 'IGNORE', "name": da...
35.319444
152
0.773889
1ff9b69a4019a1762d86b4de69764598a30ea2b6
8,228
py
Python
dial/metrics.py
neukg/KAT-TSLF
91bff10312ba5fbbd46978b268a1c97a5d627dcd
[ "MIT" ]
11
2021-11-19T06:17:10.000Z
2022-03-11T07:12:30.000Z
dial/metrics.py
neukg/KAT-TSLF
91bff10312ba5fbbd46978b268a1c97a5d627dcd
[ "MIT" ]
3
2021-11-20T14:00:24.000Z
2022-03-03T19:41:01.000Z
dial/metrics.py
neukg/KAT-TSLF
91bff10312ba5fbbd46978b268a1c97a5d627dcd
[ "MIT" ]
null
null
null
from nltk.translate.bleu_score import corpus_bleu, sentence_bleu, SmoothingFunction from nltk import word_tokenize # import language_evaluation from typing import List from collections import defaultdict, Counter import re import math import sys def _calc_cover_rate(cands, golds, ngram): """ calc_cover_rate ...
35.465517
113
0.653986
1ffa89e42119c66f0b38cae0145de37c497cd8de
896
py
Python
06_packet_sniffer/packet_sniffer.py
maks-nurgazy/ethical-hacking
0f9f2b943b5afa9b11251270e4672e0965ec1769
[ "MIT" ]
null
null
null
06_packet_sniffer/packet_sniffer.py
maks-nurgazy/ethical-hacking
0f9f2b943b5afa9b11251270e4672e0965ec1769
[ "MIT" ]
null
null
null
06_packet_sniffer/packet_sniffer.py
maks-nurgazy/ethical-hacking
0f9f2b943b5afa9b11251270e4672e0965ec1769
[ "MIT" ]
null
null
null
import scapy.all as scapy from scapy.layers import http sniff("eth0")
27.151515
90
0.631696
1ffb6e885c207ea205ef242e09f2cabe5866ad26
3,705
py
Python
cameraToWorld.py
blguweb/Tap-Tap-computer
4e2007b5a31e6d5f902b1e3ca58206870331ef07
[ "MIT" ]
null
null
null
cameraToWorld.py
blguweb/Tap-Tap-computer
4e2007b5a31e6d5f902b1e3ca58206870331ef07
[ "MIT" ]
null
null
null
cameraToWorld.py
blguweb/Tap-Tap-computer
4e2007b5a31e6d5f902b1e3ca58206870331ef07
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os from typing import NoReturn import cv2 as cv import numpy as np from numpy import mat import xml.etree.ElementTree as ET import math camera_angle = 315 camera_intrinsic = { # # # matlab "camera_matrix": [871.086328150675740,0.0, 3...
33.080357
129
0.550877
1ffb6f2d2eca765ba18ee0ccc397d70767e06533
5,004
py
Python
compilers/labs/lab2/gui.py
vampy/university
9496cb63594dcf1cc2cec8650b8eee603f85fdab
[ "MIT" ]
6
2015-06-22T19:43:13.000Z
2019-07-15T18:08:41.000Z
compilers/labs/lab2/gui.py
vampy/university
9496cb63594dcf1cc2cec8650b8eee603f85fdab
[ "MIT" ]
null
null
null
compilers/labs/lab2/gui.py
vampy/university
9496cb63594dcf1cc2cec8650b8eee603f85fdab
[ "MIT" ]
1
2015-09-26T09:01:54.000Z
2015-09-26T09:01:54.000Z
#!/usr/bin/python import os from log import Log from enum import IntEnum, unique from grammar import Grammar from automaton import FiniteAutomaton
33.139073
108
0.552158
1ffbe3042328109603927698807569c875283801
180
py
Python
atividades/ex31.py
Fleen66/Python_exercises
fd05fdf1181da833a1a1bc9f4a476afc8f467977
[ "MIT" ]
null
null
null
atividades/ex31.py
Fleen66/Python_exercises
fd05fdf1181da833a1a1bc9f4a476afc8f467977
[ "MIT" ]
null
null
null
atividades/ex31.py
Fleen66/Python_exercises
fd05fdf1181da833a1a1bc9f4a476afc8f467977
[ "MIT" ]
null
null
null
distancia = int(input('Digite a distancia de sua viagem: ')) if distancia <= 200: preco = distancia * 0.50 print(preco) else: preco = distancia * 0.40 print(preco)
22.5
60
0.644444
1ffc42584a05c85ceb4b5e649094a2917f366627
7,947
py
Python
src/triangle.py
songrun/VectorSkinning
a19dff78215b51d824adcd39c7dcdf8dc78ec617
[ "Apache-2.0" ]
18
2015-04-29T20:54:15.000Z
2021-12-13T17:48:05.000Z
src/triangle.py
songrun/VectorSkinning
a19dff78215b51d824adcd39c7dcdf8dc78ec617
[ "Apache-2.0" ]
null
null
null
src/triangle.py
songrun/VectorSkinning
a19dff78215b51d824adcd39c7dcdf8dc78ec617
[ "Apache-2.0" ]
8
2017-04-23T17:52:13.000Z
2022-03-14T11:01:56.000Z
import sys import subprocess import os from numpy import asarray #triangle_path = os.path.join( "C:\\Users\\Mai\\Dropbox\\Research\\Deformation\\src\\py\\triangle", "triangle.exe") triangle_path = os.path.join( os.path.dirname( __file__ ), "triangle", "triangle" ) if not os.path.exists( triangle_path ): raise Imp...
36.287671
215
0.630804
1ffe75b4736bb2daa16ad12967f532235a2b0677
4,559
py
Python
edbdeploy/spec/baremetal.py
vincentp7212/postgres-deployment
ea0ed0e06a4eb99cc28600398eddcf2320778113
[ "BSD-3-Clause" ]
58
2020-02-24T21:02:50.000Z
2022-03-28T14:51:56.000Z
edbdeploy/spec/baremetal.py
vincentp7212/postgres-deployment
ea0ed0e06a4eb99cc28600398eddcf2320778113
[ "BSD-3-Clause" ]
108
2020-09-18T12:53:44.000Z
2022-02-02T09:02:31.000Z
edbdeploy/spec/baremetal.py
vincentp7212/postgres-deployment
ea0ed0e06a4eb99cc28600398eddcf2320778113
[ "BSD-3-Clause" ]
47
2020-03-04T15:51:01.000Z
2022-02-27T13:48:05.000Z
from . import SpecValidator BaremetalSpec = { 'EDB-RA-1': { 'ssh_user': SpecValidator(type='string', default=None), 'pg_data': SpecValidator(type='string', default=None), 'pg_wal': SpecValidator(type='string', default=None), 'postgres_server_1': { 'name': SpecValidator(t...
45.59
68
0.573591
1ffec07dcf5a4c57c0d689934f15fff735336375
2,382
py
Python
ml-scripts/ss_calib/scripts/ss_charge_cali.py
YashengFu/exo-200_scripts
d33a1a2eeda5f072409656b96e8730f2de53ee0b
[ "MIT" ]
null
null
null
ml-scripts/ss_calib/scripts/ss_charge_cali.py
YashengFu/exo-200_scripts
d33a1a2eeda5f072409656b96e8730f2de53ee0b
[ "MIT" ]
null
null
null
ml-scripts/ss_calib/scripts/ss_charge_cali.py
YashengFu/exo-200_scripts
d33a1a2eeda5f072409656b96e8730f2de53ee0b
[ "MIT" ]
null
null
null
import numpy as np import time import argparse import pandas as pd import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt from scipy import special from tqdm import tqdm from scipy.optimize import curve_fit from utils.build_hist import build_hist if __name__ == "__main__": start_time = time.time()...
38.419355
184
0.673804
1fff4ed247e76eafdf9461ae3d7ab7dc88f2b73c
97,747
py
Python
ExoplanetPocketknife.py
ScottHull/Exoplanet-Pocketknife
15b49ff3612adc3b31a78c27379fb8b2f47c6c8f
[ "CC0-1.0" ]
null
null
null
ExoplanetPocketknife.py
ScottHull/Exoplanet-Pocketknife
15b49ff3612adc3b31a78c27379fb8b2f47c6c8f
[ "CC0-1.0" ]
null
null
null
ExoplanetPocketknife.py
ScottHull/Exoplanet-Pocketknife
15b49ff3612adc3b31a78c27379fb8b2f47c6c8f
[ "CC0-1.0" ]
null
null
null
# python /usr/bin/env/python # /// The Exoplanet Pocketknife # /// Scott D. Hull, The Ohio State University 2015-2017 # /// All usage must include proper citation and a link to the Github repository # /// https://github.com/ScottHull/Exoplanet-Pocketknife import os, csv, time, sys, shutil, subprocess from threading ...
46.7689
207
0.541234
9500f8ddc8a192d5b326bf23ad973aa2e9a8109b
4,074
py
Python
tools/extract_observable.py
pauxy-qmc/pauxy
1da80284284769b59361c73cfa3c2d914c74a73f
[ "Apache-2.0" ]
16
2020-08-05T17:17:17.000Z
2022-03-18T04:06:18.000Z
tools/extract_observable.py
pauxy-qmc/pauxy
1da80284284769b59361c73cfa3c2d914c74a73f
[ "Apache-2.0" ]
4
2020-05-17T21:28:20.000Z
2021-04-22T18:05:50.000Z
tools/extract_observable.py
pauxy-qmc/pauxy
1da80284284769b59361c73cfa3c2d914c74a73f
[ "Apache-2.0" ]
5
2020-05-18T01:03:18.000Z
2021-04-13T15:36:29.000Z
#!/usr/bin/env python '''Exctact element of green's function''' import argparse import sys import numpy import os import pandas as pd import json _script_dir = os.path.abspath(os.path.dirname(__file__)) sys.path.append(os.path.join(_script_dir, 'analysis')) import matplotlib.pyplot as plt # from pauxy.analysis.extract...
33.393443
82
0.579774
950130b7d174e4ab134e14783a96e2c70ef6e914
12,854
py
Python
datasets.py
shivakanthsujit/FMMRNet
12742398e3b981938a69e44b3f37d285904929b4
[ "MIT" ]
null
null
null
datasets.py
shivakanthsujit/FMMRNet
12742398e3b981938a69e44b3f37d285904929b4
[ "MIT" ]
null
null
null
datasets.py
shivakanthsujit/FMMRNet
12742398e3b981938a69e44b3f37d285904929b4
[ "MIT" ]
null
null
null
import glob import os import albumentations as A import kaggle import numpy as np import PIL import pytorch_lightning as pl import torch from albumentations.pytorch import ToTensorV2 from torch.utils.data import random_split from torch.utils.data.dataloader import DataLoader from utils import show_images train_tr...
33.300518
119
0.628131
9505115c9cbc7843483152234defea7c4da55e5d
663
py
Python
29_Tree/Step03/wowo0709.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
29_Tree/Step03/wowo0709.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
3
2020-11-04T05:38:53.000Z
2021-03-02T02:15:19.000Z
29_Tree/Step03/wowo0709.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
import sys input = sys.stdin.readline from collections import deque # main V = int(input()) tree = [[] for _ in range(V+1)] # 1167 for _ in range(V-1): a,b,c = map(int,input().split()) tree[a].append((c,b)) tree[b].append((c,a)) ds = bfs(1) # v = ds.index(max(ds)) # print(max(bfs(v))) ...
24.555556
43
0.517345
9506269afc0618a55f2884b0a52f8b3902a5b1f4
997
py
Python
config.py
anvme/TONTgContractBot
e5fa48d262faec26e2835daa6db764867a369672
[ "Apache-2.0" ]
null
null
null
config.py
anvme/TONTgContractBot
e5fa48d262faec26e2835daa6db764867a369672
[ "Apache-2.0" ]
null
null
null
config.py
anvme/TONTgContractBot
e5fa48d262faec26e2835daa6db764867a369672
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ##### TONTgBotContract Config # Edit starts here TgBotAPIKey = 'xxxx:yyyy' # API Keythat you get from @BotFather tg = 11111 # Your id, you can get it by sending command /id to bot @TONTgIDBot # Edit ends here tonoscli = '/opt/tonos-cli/target/release/tonos-cli' # P...
32.16129
78
0.713139
95086bdd5bed5808e0d9ba240d94e656c6d84fab
1,624
py
Python
_scripts/pandoc_wiki_filter.py
BenjaminPollak/coursebook
4646102b5f4c3d283885ba1b221da71a5e509eeb
[ "CC-BY-3.0", "CC-BY-4.0" ]
null
null
null
_scripts/pandoc_wiki_filter.py
BenjaminPollak/coursebook
4646102b5f4c3d283885ba1b221da71a5e509eeb
[ "CC-BY-3.0", "CC-BY-4.0" ]
null
null
null
_scripts/pandoc_wiki_filter.py
BenjaminPollak/coursebook
4646102b5f4c3d283885ba1b221da71a5e509eeb
[ "CC-BY-3.0", "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 """ Pandoc filter to change each relative URL to absolute """ from panflute import run_filter, Str, Header, Image, Math, Link, RawInline import sys import re base_raw_url = 'https://raw.githubusercontent.com/illinois-cs241/coursebook/master/' if __name__ == "__main__": main()
28.491228
84
0.640394
9508ac69c9c25e71d33441ccd8a681ec504ce33e
8,793
py
Python
PA_multiagent_game/multiagent_utils.py
salesforce/RIRL
6f137955bfbe2054be18bb2b15d0e6aedb972b06
[ "BSD-3-Clause" ]
null
null
null
PA_multiagent_game/multiagent_utils.py
salesforce/RIRL
6f137955bfbe2054be18bb2b15d0e6aedb972b06
[ "BSD-3-Clause" ]
null
null
null
PA_multiagent_game/multiagent_utils.py
salesforce/RIRL
6f137955bfbe2054be18bb2b15d0e6aedb972b06
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) 2022, salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause # import sys import glob sys.path.insert(0, '..') import numpy as np import matplotlib import matp...
35.313253
230
0.585579
950a7c06be019526c5d13e887a482057df6c98cd
758
py
Python
UVa Online Judge/v128/12808.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
1
2021-12-08T08:58:43.000Z
2021-12-08T08:58:43.000Z
UVa Online Judge/v128/12808.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
null
null
null
UVa Online Judge/v128/12808.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
null
null
null
# ============================================================================= # Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/ # FileName: 12808.py # Description: UVa Online Judge - 12808 # ============================================================================= import math...
27.071429
79
0.387863
950ac99a04713eeb0672575cefd8c1ec3997841b
4,377
py
Python
cnn_implementer/backends/halide.py
lwaeijen/cnn-mapping-tool
a41c2dccb820f6227ddb6d75af9213e187744826
[ "MIT" ]
null
null
null
cnn_implementer/backends/halide.py
lwaeijen/cnn-mapping-tool
a41c2dccb820f6227ddb6d75af9213e187744826
[ "MIT" ]
null
null
null
cnn_implementer/backends/halide.py
lwaeijen/cnn-mapping-tool
a41c2dccb820f6227ddb6d75af9213e187744826
[ "MIT" ]
null
null
null
import os import jinja2 import networkx as nx from ..utils import Logger from math import ceil, floor from ..model import Segment #Add function to Segments that generates unique names for internal nodes #Function is specific for halide backend, hence it is added here and not in the original definition of Segment Segm...
31.042553
162
0.558145
950b9bd680855e1bc01f2dffb96d063d03df4633
137
py
Python
plasmapy/utils/pytest_helpers/__init__.py
seanjunheng2/PlasmaPy
7b4e4aaf8b03d88b654456bca881329ade09e377
[ "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-1-Clause", "BSD-3-Clause" ]
429
2016-10-31T19:40:32.000Z
2022-03-25T12:27:11.000Z
plasmapy/utils/pytest_helpers/__init__.py
RAJAGOPALAN-GANGADHARAN/PlasmaPy
6df9583cc47375687a07300c0aa11ba31634d770
[ "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-1-Clause", "BSD-3-Clause" ]
1,400
2015-11-24T23:00:44.000Z
2022-03-30T21:03:25.000Z
plasmapy/utils/pytest_helpers/__init__.py
RAJAGOPALAN-GANGADHARAN/PlasmaPy
6df9583cc47375687a07300c0aa11ba31634d770
[ "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-1-Clause", "BSD-3-Clause" ]
289
2015-11-24T18:54:57.000Z
2022-03-18T17:26:59.000Z
from plasmapy.utils.pytest_helpers.pytest_helpers import ( assert_can_handle_nparray, run_test, run_test_equivalent_calls, )
22.833333
58
0.79562
950c169f450a431d53eeadbbe5cd4c9bc80dac22
664
py
Python
code/Attack/ParameterTypes/Types.py
TomasMadeja/ID2T
77f51c074d1ff83c7d648ae62ecaed3e5cfde80c
[ "MIT" ]
33
2018-11-21T12:50:52.000Z
2022-01-12T05:38:12.000Z
code/Attack/ParameterTypes/Types.py
TomasMadeja/ID2T
77f51c074d1ff83c7d648ae62ecaed3e5cfde80c
[ "MIT" ]
108
2018-11-21T12:33:47.000Z
2022-02-09T15:56:59.000Z
code/Attack/ParameterTypes/Types.py
TomasMadeja/ID2T
77f51c074d1ff83c7d648ae62ecaed3e5cfde80c
[ "MIT" ]
20
2018-11-22T13:03:20.000Z
2022-01-12T00:19:28.000Z
import enum
28.869565
111
0.712349
950c84ecd7d7ee95d6bf316b3a497327243be4e4
1,984
py
Python
utils/error_handlrer.py
RobinPaspuel/YtechCode
219a8492aa5be76c445f3d70f8b2ef74e81c188e
[ "MIT" ]
null
null
null
utils/error_handlrer.py
RobinPaspuel/YtechCode
219a8492aa5be76c445f3d70f8b2ef74e81c188e
[ "MIT" ]
null
null
null
utils/error_handlrer.py
RobinPaspuel/YtechCode
219a8492aa5be76c445f3d70f8b2ef74e81c188e
[ "MIT" ]
null
null
null
from utils.error_with_arrows import * ##### ERRORS ######## ##################################
40.489796
106
0.655242
950dcd67a7917370bcc5ec2201e9aaf688e1aa85
2,062
py
Python
postgres/python-asyncio/main.py
Gelbpunkt/idlebench
fe370f9fa6335cf738a91ca818638aedf0cf1ba3
[ "Apache-2.0" ]
null
null
null
postgres/python-asyncio/main.py
Gelbpunkt/idlebench
fe370f9fa6335cf738a91ca818638aedf0cf1ba3
[ "Apache-2.0" ]
null
null
null
postgres/python-asyncio/main.py
Gelbpunkt/idlebench
fe370f9fa6335cf738a91ca818638aedf0cf1ba3
[ "Apache-2.0" ]
4
2020-08-16T22:23:42.000Z
2020-08-17T20:15:33.000Z
import asyncio import asyncpg VALUES = [ 356091260429402122, "Why are you reading", 9164, 6000000, 14, 0, 0, 0, 463318425901596672, "https://i.imgur.com/LRV2QCK.png", 15306, ["Paragon", "White Sorcerer"], 0, 0, 647, "Leader", None, 0, "10.0",...
25.45679
88
0.511639
950e90e9549308bcb8380f5876c0fc12c6f68485
1,112
py
Python
fv-courseware/exercise-01/counter_formal.py
DonaldKellett/nmigen-beginner
260ae76a5277e36ec9909aaf6b76acab320aed88
[ "MIT" ]
1
2020-11-09T13:34:02.000Z
2020-11-09T13:34:02.000Z
fv-courseware/exercise-01/counter_formal.py
DonaldKellett/nmigen-beginner
260ae76a5277e36ec9909aaf6b76acab320aed88
[ "MIT" ]
null
null
null
fv-courseware/exercise-01/counter_formal.py
DonaldKellett/nmigen-beginner
260ae76a5277e36ec9909aaf6b76acab320aed88
[ "MIT" ]
null
null
null
from nmigen import * from nmigen.asserts import Assert from nmigen.cli import main_parser, main_runner __all__ = ["Counter"] """ Simple counter with formal verification See slides 50-60 in https://zipcpu.com/tutorial/class-verilog.pdf """ if __name__ == "__main__": parser = main_parser() args = parser.parse_args()...
25.272727
55
0.695144
951023fa012fa8c9f93693ace80f46cf9b0de998
10,524
py
Python
regru_cloudapi/__init__.py
plvskiy/regru_cloudapi
e137a391f67b116f51b77b8e33755f8a6c3b170d
[ "MIT" ]
1
2021-03-07T14:25:59.000Z
2021-03-07T14:25:59.000Z
regru_cloudapi/__init__.py
plvskiy/regru_cloudapi
e137a391f67b116f51b77b8e33755f8a6c3b170d
[ "MIT" ]
null
null
null
regru_cloudapi/__init__.py
plvskiy/regru_cloudapi
e137a391f67b116f51b77b8e33755f8a6c3b170d
[ "MIT" ]
null
null
null
import json import requests from regru_cloudapi.utils import Errors
33.515924
114
0.601292
9510db3851814a40d1e201c8697a846d403a09e9
731
py
Python
mnist/download.py
hiroog/cppapimnist
30d7e01954fc43da2eea5fe3ebf034b37e79cfd1
[ "MIT" ]
null
null
null
mnist/download.py
hiroog/cppapimnist
30d7e01954fc43da2eea5fe3ebf034b37e79cfd1
[ "MIT" ]
null
null
null
mnist/download.py
hiroog/cppapimnist
30d7e01954fc43da2eea5fe3ebf034b37e79cfd1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import urllib.request import os import gzip DOWNLOAD_URL='http://yann.lecun.com/exdb/mnist/' file_list=[ 'train-images-idx3-ubyte', 'train-labels-idx1-ubyte', 't10k-images-idx3-ubyte', 't10k-labels-idx1-ubyte' ] for name in file_list: if not os.path.exists( name ): gz_name= name + '.gz'...
30.458333
118
0.575923
951110f9319a47de447b38bde1aba4ab72ddd1bd
2,651
py
Python
arch/arm64/tests/a64_tbnz.py
Samsung/ADBI
3e424c45386b0a36c57211da819021cb1929775a
[ "Apache-2.0" ]
312
2016-02-04T11:03:17.000Z
2022-03-18T11:30:10.000Z
arch/arm64/tests/a64_tbnz.py
NickHardwood/ADBI
3e424c45386b0a36c57211da819021cb1929775a
[ "Apache-2.0" ]
4
2016-02-04T11:05:40.000Z
2017-07-27T04:22:27.000Z
arch/arm64/tests/a64_tbnz.py
NickHardwood/ADBI
3e424c45386b0a36c57211da819021cb1929775a
[ "Apache-2.0" ]
85
2016-02-04T12:48:30.000Z
2021-01-14T06:23:24.000Z
import random from common import *
38.42029
94
0.488118
95128ff73c5b19e12278311e5737397a3c5afe40
6,943
py
Python
infrastructure/cdn-in-a-box/ort/traffic_ops_ort/utils.py
hbeatty/incubator-trafficcontrol
13ed991531778c60298eb8f532b2a4862f7cb67b
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2021-04-11T16:55:27.000Z
2021-04-11T16:55:27.000Z
infrastructure/cdn-in-a-box/ort/traffic_ops_ort/utils.py
hbeatty/incubator-trafficcontrol
13ed991531778c60298eb8f532b2a4862f7cb67b
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
3
2021-03-12T22:35:02.000Z
2021-12-09T23:00:11.000Z
infrastructure/cdn-in-a-box/ort/traffic_ops_ort/utils.py
hbeatty/incubator-trafficcontrol
13ed991531778c60298eb8f532b2a4862f7cb67b
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.572222
211
0.715109
9512a6419412924d68f8311278ec236177bb738a
138
py
Python
api/models/province.py
krosben/api-ctan
01d5e29694e6f4e35fbe6797c319b109e5bc1c3f
[ "MIT" ]
null
null
null
api/models/province.py
krosben/api-ctan
01d5e29694e6f4e35fbe6797c319b109e5bc1c3f
[ "MIT" ]
6
2020-06-05T23:40:32.000Z
2021-06-10T19:03:25.000Z
api/models/province.py
krosben/api-ctan
01d5e29694e6f4e35fbe6797c319b109e5bc1c3f
[ "MIT" ]
null
null
null
from django.db import models
23
76
0.76087
9513d85dbfeb9ed30b03373fa4dafc60c0d1a5b4
7,512
py
Python
audino/backend/routes/labels.py
UCSD-E4E/Pyrenote
bede2cfae9cb543a855d5cb01133b8d7c4abaa1c
[ "MIT" ]
11
2021-07-09T21:39:05.000Z
2022-03-06T23:11:44.000Z
audino/backend/routes/labels.py
UCSD-E4E/Pyrenote
bede2cfae9cb543a855d5cb01133b8d7c4abaa1c
[ "MIT" ]
120
2021-07-08T04:15:18.000Z
2022-02-26T00:21:25.000Z
audino/backend/routes/labels.py
UCSD-E4E/Pyrenote
bede2cfae9cb543a855d5cb01133b8d7c4abaa1c
[ "MIT" ]
1
2021-10-16T04:55:42.000Z
2021-10-16T04:55:42.000Z
import sqlalchemy as sa from flask import jsonify, request from flask_jwt_extended import jwt_required, get_jwt_identity import csv from sqlalchemy.sql.expression import false from backend import app, db from backend.models import Label, LabelValue, Project from .helper_functions import ( check_admin, check_a...
29.574803
78
0.580804
9514c9647a31509619c43b943b315ef73a1f481a
1,192
py
Python
tests/test_hw02.py
timm/sinless-swe
b331b9bf4d27fdf357ce8a5ce54f9858103fd64f
[ "MIT" ]
null
null
null
tests/test_hw02.py
timm/sinless-swe
b331b9bf4d27fdf357ce8a5ce54f9858103fd64f
[ "MIT" ]
null
null
null
tests/test_hw02.py
timm/sinless-swe
b331b9bf4d27fdf357ce8a5ce54f9858103fd64f
[ "MIT" ]
2
2021-08-29T19:26:19.000Z
2021-09-20T17:44:27.000Z
import os import sys sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/..")) from src.hw2 import csv_reader
45.846154
82
0.452181
9514f668db331c946ecbf660cfa6375f54adec5b
2,462
py
Python
hyperdeck.py
FlantasticDan/hyperdeck-replay
5d5a62c9342c4e552e6a2d44dbe85cb3dba49f28
[ "MIT" ]
1
2021-09-06T15:02:34.000Z
2021-09-06T15:02:34.000Z
hyperdeck.py
FlantasticDan/hyperdeck-replay
5d5a62c9342c4e552e6a2d44dbe85cb3dba49f28
[ "MIT" ]
null
null
null
hyperdeck.py
FlantasticDan/hyperdeck-replay
5d5a62c9342c4e552e6a2d44dbe85cb3dba49f28
[ "MIT" ]
null
null
null
from telnetlib import Telnet from threading import Thread
34.676056
79
0.553209
95150abc9ac26ff15d14447cfaa884078a1c20b0
2,215
py
Python
tensorwatch/repeated_timer.py
sytelus/longview
686e43cf187eaf55df18949359fd63d57dc337b2
[ "MIT" ]
3,453
2019-05-22T15:01:23.000Z
2022-03-31T07:50:41.000Z
tensorwatch/repeated_timer.py
wgxcow/tensorwatch
142f83a7cb8c54e47e9bab06cb3a1ef8ae225422
[ "MIT" ]
69
2019-05-22T17:11:20.000Z
2022-03-03T09:32:38.000Z
tensorwatch/repeated_timer.py
wgxcow/tensorwatch
142f83a7cb8c54e47e9bab06cb3a1ef8ae225422
[ "MIT" ]
375
2019-05-22T17:10:33.000Z
2022-03-24T07:43:07.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import threading import time import weakref
31.197183
99
0.602709
9515d87797c5883ffb46a5046c9382bbdb71bc8f
1,037
py
Python
pushpy_examples/client/tasks/schedule/c_local_schedule.py
briangu/push-examples
3acf00d9f63523010ee3b70f3117d1be686c3335
[ "MIT" ]
null
null
null
pushpy_examples/client/tasks/schedule/c_local_schedule.py
briangu/push-examples
3acf00d9f63523010ee3b70f3117d1be686c3335
[ "MIT" ]
null
null
null
pushpy_examples/client/tasks/schedule/c_local_schedule.py
briangu/push-examples
3acf00d9f63523010ee3b70f3117d1be686c3335
[ "MIT" ]
null
null
null
import time from pushpy_examples.client.ex_push_manager import ExamplePushManager m = ExamplePushManager() m.connect() repl_code_store = m.repl_code_store() repl_code_store.set("schedule_task", ScheduleTask, sync=True) dt = m.local_tasks() dt.stop("schedule_task") dt.run("daemon", src="schedule_task", name="sched...
24.690476
69
0.633558
951662a92b08b48e3775881d06dfdde6053f3486
453
py
Python
leetcode/weekly154/balloons.py
jan25/code_sorted
f405fd0898f72eb3d5428f9e10aefb4a009d5089
[ "Unlicense" ]
2
2018-01-18T11:01:36.000Z
2021-12-20T18:14:48.000Z
leetcode/weekly154/balloons.py
jan25/code_sorted
f405fd0898f72eb3d5428f9e10aefb4a009d5089
[ "Unlicense" ]
null
null
null
leetcode/weekly154/balloons.py
jan25/code_sorted
f405fd0898f72eb3d5428f9e10aefb4a009d5089
[ "Unlicense" ]
null
null
null
''' https://leetcode.com/contest/weekly-contest-154/problems/maximum-number-of-balloons/ '''
28.3125
84
0.479029
9516843db83caf5de14579548efc7a35483c1024
3,100
py
Python
app/cache/basic.py
JunyongYao/flask-backend-seed
9d16f56a9f34ebb1ec32eaab800b7ad6b10d0c9d
[ "MIT" ]
9
2017-10-20T09:26:09.000Z
2021-01-28T02:54:43.000Z
app/cache/basic.py
JunyongYao/flask-backend-seed
9d16f56a9f34ebb1ec32eaab800b7ad6b10d0c9d
[ "MIT" ]
2
2018-03-06T06:27:53.000Z
2018-04-19T01:47:38.000Z
app/cache/basic.py
JunyongYao/flask-backend-seed
9d16f56a9f34ebb1ec32eaab800b7ad6b10d0c9d
[ "MIT" ]
2
2019-07-18T22:32:28.000Z
2020-06-15T14:10:29.000Z
# -*- coding: utf-8 -*- import logging import pickle from abc import ABCMeta, abstractmethod from app import redis from app.cache import set_dict_if_key_expire, set_data_if_key_expire, set_redis_dict_with_timeout, \ set_redis_data_with_timeout from task.asyncTask import refresh_cache class DictCacheABC(CacheAB...
32.978723
120
0.684516
9518a93eb1a74edc2a091b88692ed0896329bfe9
38,343
py
Python
fraudbot.py
DocGrishka/tetstsss
9e594333306e6ea8c13f0c81aa5ccb05bc7e9e5e
[ "MIT" ]
null
null
null
fraudbot.py
DocGrishka/tetstsss
9e594333306e6ea8c13f0c81aa5ccb05bc7e9e5e
[ "MIT" ]
null
null
null
fraudbot.py
DocGrishka/tetstsss
9e594333306e6ea8c13f0c81aa5ccb05bc7e9e5e
[ "MIT" ]
null
null
null
import discord import sqlite3 import random import requests import pymorphy2 from itertools import product # , - , # class Fraudbot(discord.Client): def user_status(self, user_id, get_channel=False): # . cur = self.con.cursor() user = cur.execute("Sel...
68.469643
122
0.463683
9518dbb4f02a3d9f4f06a63e879638510aa4fe07
31,698
py
Python
iocage/lib/ioc_json.py
project-fifo/iocage
1b8669bc2119718dbea8f2707a4eb4c92197c0f0
[ "BSD-2-Clause" ]
null
null
null
iocage/lib/ioc_json.py
project-fifo/iocage
1b8669bc2119718dbea8f2707a4eb4c92197c0f0
[ "BSD-2-Clause" ]
null
null
null
iocage/lib/ioc_json.py
project-fifo/iocage
1b8669bc2119718dbea8f2707a4eb4c92197c0f0
[ "BSD-2-Clause" ]
1
2022-03-06T10:09:18.000Z
2022-03-06T10:09:18.000Z
"""Convert, load or write JSON.""" import json import logging import os import re import sys from os import geteuid, path from subprocess import CalledProcessError, PIPE, Popen, STDOUT, check_call from iocage.lib.ioc_common import checkoutput, get_nested_key, open_atomic def _get_pool_and_iocroot(): """For inter...
39.573034
81
0.430942
951a6328f58a32b162e3ef00d555a91633c30955
6,913
py
Python
FP/V46_faraday_effect/plot.py
nsalewski/laboratory
e30d187a3f5227d5e228b0132c3de4d426d85ffb
[ "MIT" ]
1
2021-05-05T23:00:28.000Z
2021-05-05T23:00:28.000Z
FP/V46_faraday_effect/plot.py
nsalewski/laboratory
e30d187a3f5227d5e228b0132c3de4d426d85ffb
[ "MIT" ]
null
null
null
FP/V46_faraday_effect/plot.py
nsalewski/laboratory
e30d187a3f5227d5e228b0132c3de4d426d85ffb
[ "MIT" ]
null
null
null
#!usr/bin/env python3 #coding:utf8 import matplotlib.pyplot as plt import numpy as np from scipy.optimize import curve_fit from astropy.io import ascii from uncertainties import ufloat import uncertainties.unumpy as unp from modules.table import textable import scipy.constants as const import math as math from modules....
43.20625
613
0.707363
951a6b980e66f06393b5c53d18d14db57345b12d
2,256
py
Python
hackzurich_py/test_hist_threshold.py
ejoebstl/hackzurich16
81a3b302050a4a464e2191c1d0912f8038c26ed9
[ "MIT" ]
null
null
null
hackzurich_py/test_hist_threshold.py
ejoebstl/hackzurich16
81a3b302050a4a464e2191c1d0912f8038c26ed9
[ "MIT" ]
null
null
null
hackzurich_py/test_hist_threshold.py
ejoebstl/hackzurich16
81a3b302050a4a464e2191c1d0912f8038c26ed9
[ "MIT" ]
null
null
null
import os import matplotlib.pyplot as plt import numpy as np import cv2 filedir = '/Users/gabrielfior/Dropbox/Hackzurich16/pupils_cutout/' readbgr = filedir+'left_pupil232.bmp' frame = plt.imread(readbgr) white=plt.imread('/Users/gabrielfior/Dropbox/Hackzurich16/pupils_bw/right_pupil61.bmp') black=plt.imread('/Users/...
23.747368
88
0.626773
951fd4c03bbcd55fdd4eaa4cf1d74e5f3dba25ea
496
py
Python
Lyft-Dental/Django-WebRtc/home/views.py
Abhik1998/Lyft-sample_project
3f9a79fb86c7abee713ae37245f5e7971be09139
[ "MIT" ]
1
2021-01-09T08:42:24.000Z
2021-01-09T08:42:24.000Z
Lyft-Dental/Django-WebRtc/home/views.py
Abhik1998/Lyft-sample_project
3f9a79fb86c7abee713ae37245f5e7971be09139
[ "MIT" ]
null
null
null
Lyft-Dental/Django-WebRtc/home/views.py
Abhik1998/Lyft-sample_project
3f9a79fb86c7abee713ae37245f5e7971be09139
[ "MIT" ]
null
null
null
from django.shortcuts import render from chat.models import * # Create your views here.
20.666667
57
0.745968
9520fdc9ead572486f8211683471cb168ee795b7
6,113
py
Python
Spatial_Scripts/2_gtfs_arnold_stops.py
VolpeUSDOT/gtfs-measures
0530d3c7193f10d591edd446d7e4985d03a7c48a
[ "CC0-1.0" ]
3
2019-08-29T13:31:14.000Z
2021-06-18T06:10:06.000Z
Spatial_Scripts/2_gtfs_arnold_stops.py
VolpeUSDOT/gtfs-measures
0530d3c7193f10d591edd446d7e4985d03a7c48a
[ "CC0-1.0" ]
null
null
null
Spatial_Scripts/2_gtfs_arnold_stops.py
VolpeUSDOT/gtfs-measures
0530d3c7193f10d591edd446d7e4985d03a7c48a
[ "CC0-1.0" ]
null
null
null
#------------------------------------------------------------------------------- # Name: GTFS_Arnold_Stops # # Purpose: Associate stops with the route shapes that have already been snapped to ARNOLD # # Author: Alex Oberg and Gary Baker # # Created: 10/17/2016 # # Last updated 6/15/2017 #---------------------------...
33.773481
154
0.648454
9521b11ea24c3b1975d9331d56438810a026e0f3
14,298
py
Python
tensorflow_federated/python/research/baselines/emnist/models.py
khramtsova/federated
88b3ca65204a9922696ccefd774ece03ebf5cc8e
[ "Apache-2.0" ]
1
2019-10-10T06:19:52.000Z
2019-10-10T06:19:52.000Z
tensorflow_federated/python/research/baselines/emnist/models.py
khramtsova/federated
88b3ca65204a9922696ccefd774ece03ebf5cc8e
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/research/baselines/emnist/models.py
khramtsova/federated
88b3ca65204a9922696ccefd774ece03ebf5cc8e
[ "Apache-2.0" ]
2
2019-10-10T06:19:41.000Z
2021-01-28T03:06:55.000Z
# Lint as: python3 # Copyright 2019, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
34.873171
80
0.665268
9522282432e0e76392916180e81134140fe248cd
893
py
Python
iterdeciser/loader.py
mpavlase/responses-form-evaluator
d0066a44c078ece458ae44577afc207583116638
[ "MIT" ]
1
2020-02-19T00:39:10.000Z
2020-02-19T00:39:10.000Z
iterdeciser/loader.py
mpavlase/responses-form-evaluator
d0066a44c078ece458ae44577afc207583116638
[ "MIT" ]
null
null
null
iterdeciser/loader.py
mpavlase/responses-form-evaluator
d0066a44c078ece458ae44577afc207583116638
[ "MIT" ]
null
null
null
import csv from iterdeciser import models
27.060606
61
0.555431
95258effa24ad7ea4b397bc2159a4af1349e68bd
6,146
py
Python
adapter.py
jain-harshil/Adapter-BERT
fd74ed0eea21b13034f9a834244191846de6b8d5
[ "Apache-2.0" ]
4
2021-03-14T23:02:14.000Z
2022-02-14T10:10:12.000Z
adapter.py
jain-harshil/Adapter-BERT
fd74ed0eea21b13034f9a834244191846de6b8d5
[ "Apache-2.0" ]
null
null
null
adapter.py
jain-harshil/Adapter-BERT
fd74ed0eea21b13034f9a834244191846de6b8d5
[ "Apache-2.0" ]
2
2020-10-12T09:04:55.000Z
2021-11-13T03:54:55.000Z
import torch from torch import nn from transformers.modeling_bert import BertIntermediate, BertOutput, BertLayer, BertEncoder, BertModel, BertForSequenceClassification ### Bottleneck Adapter ### BERT ### Parallel Adapter ### XLM-R
35.94152
134
0.678653
9527282622ce1b8a8057c23be87132dc48225952
125
py
Python
test/integration_test/exampleProject/test_module.py
thusoy/grunt-pylint
1911144b76b144c991e721c794640c06101a8bf1
[ "MIT" ]
9
2015-03-04T22:35:49.000Z
2018-08-16T00:51:24.000Z
test/integration_test/exampleProject/test_module.py
thusoy/grunt-pylint
1911144b76b144c991e721c794640c06101a8bf1
[ "MIT" ]
10
2015-03-05T14:09:53.000Z
2019-04-13T21:48:05.000Z
test/integration_test/exampleProject/test_module.py
thusoy/grunt-pylint
1911144b76b144c991e721c794640c06101a8bf1
[ "MIT" ]
5
2015-03-04T16:25:05.000Z
2018-08-13T10:49:47.000Z
""" This module is used for integration testing. """ # pylint: disable=locally-disabled,unused-import import venv_exclusive
25
52
0.776
95277c92e91076992bcacdf611aab098dd6f15f0
3,837
py
Python
models/pixelpick/networks/deeplab.py
martafdezmAM/lessen_supervision
630dfea2e396b9b6f61a3ad6786bb3ee169da3fd
[ "MIT" ]
49
2021-04-08T07:45:13.000Z
2022-03-08T03:20:30.000Z
networks/deeplab.py
leiyu1980/PixelPick
f0ae7d35f62c1dda70f5bff1689177a513ab6259
[ "MIT" ]
5
2021-04-21T02:13:47.000Z
2022-03-30T12:06:36.000Z
networks/deeplab.py
leiyu1980/PixelPick
f0ae7d35f62c1dda70f5bff1689177a513ab6259
[ "MIT" ]
15
2021-04-14T01:15:06.000Z
2022-03-25T05:05:36.000Z
import os import torch import torch.nn as nn import torch.nn.functional as F from .aspp import ASPP from .decoders import SegmentHead from .mobilenet_v2 import MobileNetV2
37.990099
111
0.584832
95291ef04782317ff7c65177e450a86cba814b66
1,224
py
Python
examples/top_view.py
ryan-mooore/anvil-parser
f2da8e0b7ca84ace49da8c6784363d914b2ca93d
[ "MIT" ]
70
2019-08-12T18:46:09.000Z
2022-02-22T12:37:29.000Z
examples/top_view.py
ryan-mooore/anvil-parser
f2da8e0b7ca84ace49da8c6784363d914b2ca93d
[ "MIT" ]
24
2020-01-20T04:15:59.000Z
2022-03-13T20:49:55.000Z
examples/top_view.py
ryan-mooore/anvil-parser
f2da8e0b7ca84ace49da8c6784363d914b2ca93d
[ "MIT" ]
33
2019-12-06T19:22:10.000Z
2022-03-28T17:08:56.000Z
""" Generates a image of the top view of a chunk Needs a textures folder with a block folder inside """ import sys if len(sys.argv) == 1: print('You must give a region file') exit() else: region = sys.argv[1] chx = int(sys.argv[2]) chz = int(sys.argv[3]) import os from PIL import Image import _path ...
26.042553
63
0.555556
95293f8eba3bae03a2ebdf267114cb3e46a7731e
2,468
py
Python
readthedocs/worker.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
4,054
2015-01-01T00:58:07.000Z
2019-06-28T05:50:49.000Z
readthedocs/worker.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
4,282
2015-01-01T21:38:49.000Z
2019-06-28T15:41:00.000Z
readthedocs/worker.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
3,224
2015-01-01T07:38:45.000Z
2019-06-28T09:19:10.000Z
"""Celery worker application instantiation.""" import os from celery import Celery from django.conf import settings from django_structlog.celery.steps import DjangoStructLogInitStep def create_application(): """Create a Celery application using Django settings.""" os.environ.setdefault( 'DJANGO_SET...
32.473684
77
0.715559
952983a05bf28fe82e2cd622f5d71bbde9e46c7c
876
py
Python
tr_converter.py
EFatihAydin/contverter_error_utf8
971035644425af69d48b869d0de1668127843f01
[ "MIT" ]
null
null
null
tr_converter.py
EFatihAydin/contverter_error_utf8
971035644425af69d48b869d0de1668127843f01
[ "MIT" ]
null
null
null
tr_converter.py
EFatihAydin/contverter_error_utf8
971035644425af69d48b869d0de1668127843f01
[ "MIT" ]
null
null
null
file = open("./data.txt" , encoding = 'utf-8') data = file.readlines() liste=[] for string in data: string=string.replace('','') string=string.replace('','') string=string.replace('','') string=string.replace('','') string=string.replace('','') string=string.replace('','') string=string.replace('...
27.375
63
0.615297
952d81863666bd0aa65ead158b3c1300284fe4e6
1,485
py
Python
example/simple_example/example_models.py
kun-fang/avro-data-model
1a657e20e666b534d0196888ae580ad7caddadeb
[ "MIT" ]
9
2019-03-28T16:31:33.000Z
2022-02-18T03:22:50.000Z
example/simple_example/example_models.py
kun-fang/avro-data-model
1a657e20e666b534d0196888ae580ad7caddadeb
[ "MIT" ]
3
2019-06-17T17:09:38.000Z
2021-05-14T03:06:00.000Z
example/simple_example/example_models.py
kun-fang/avro-data-model
1a657e20e666b534d0196888ae580ad7caddadeb
[ "MIT" ]
2
2019-04-11T18:26:52.000Z
2022-02-18T03:22:52.000Z
import datetime import os from avro_models import avro_schema, AvroModelContainer EXAMPLE_NAMES = AvroModelContainer(default_namespace="example.avro") DIRNAME = os.path.dirname(os.path.realpath(__file__))
23.203125
71
0.641077
952e3eae671c4397df0072361e08791772e8f4d1
5,401
py
Python
src/lib/Server/Reports/settings.py
pcmxgti/bcfg2
33aaf9c6bbeb0d20eef084b1347a0fce42086663
[ "mpich2" ]
null
null
null
src/lib/Server/Reports/settings.py
pcmxgti/bcfg2
33aaf9c6bbeb0d20eef084b1347a0fce42086663
[ "mpich2" ]
null
null
null
src/lib/Server/Reports/settings.py
pcmxgti/bcfg2
33aaf9c6bbeb0d20eef084b1347a0fce42086663
[ "mpich2" ]
null
null
null
import django import sys # Compatibility import from Bcfg2.Bcfg2Py3k import ConfigParser # Django settings for bcfg2 reports project. c = ConfigParser.ConfigParser() if len(c.read(['/etc/bcfg2.conf', '/etc/bcfg2-web.conf'])) == 0: raise ImportError("Please check that bcfg2.conf or bcfg2-web.conf exists " ...
33.339506
79
0.695797
95300a9bbee2d9246ae4298544114b63521e0cfa
2,851
py
Python
arachne/lingo.py
Darumin/arachne
ddae1c9f47e177941a6d6deed84357cbf41ad116
[ "MIT" ]
1
2020-08-24T05:19:05.000Z
2020-08-24T05:19:05.000Z
arachne/lingo.py
Darumin/arachne
ddae1c9f47e177941a6d6deed84357cbf41ad116
[ "MIT" ]
null
null
null
arachne/lingo.py
Darumin/arachne
ddae1c9f47e177941a6d6deed84357cbf41ad116
[ "MIT" ]
null
null
null
from enum import Enum import arachne.nouns as a nouns = ( a.Container, a.Item, a.Door, a.Room, a.Key, a.Door ) # this is an arachne object, in the english grammar sense. # not to be confused with object types. # encompasses all known in-game vocabulary, unmatched vocab always default to...
24.577586
89
0.591371
9531452916d8af98d79a18cfcf7c243ec86f577d
488
py
Python
src/hera/host_alias.py
bchalk101/hera-workflows
a3e9262f996ba477a35850c7e4b18ce3d5749687
[ "MIT" ]
84
2021-10-20T17:20:22.000Z
2022-03-31T17:20:06.000Z
src/hera/host_alias.py
bchalk101/hera-workflows
a3e9262f996ba477a35850c7e4b18ce3d5749687
[ "MIT" ]
84
2021-10-31T16:05:51.000Z
2022-03-31T14:25:25.000Z
src/hera/host_alias.py
bchalk101/hera-workflows
a3e9262f996ba477a35850c7e4b18ce3d5749687
[ "MIT" ]
18
2021-11-01T04:34:39.000Z
2022-03-29T03:48:19.000Z
from typing import List from argo_workflows.models import HostAlias as ArgoHostAlias from pydantic import BaseModel
23.238095
103
0.715164
9532e0a3625fbfa97cee2a3c1c1ac08b02e54bbb
1,297
py
Python
legacy/lua_data/lua_data_converter.py
kshshkim/factorioCalcPy
2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205
[ "MIT" ]
1
2021-09-21T01:42:05.000Z
2021-09-21T01:42:05.000Z
legacy/lua_data/lua_data_converter.py
kshshkim/factorioCalcPy
2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205
[ "MIT" ]
null
null
null
legacy/lua_data/lua_data_converter.py
kshshkim/factorioCalcPy
2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205
[ "MIT" ]
null
null
null
from slpp import slpp as lua import json ''' lc=LuaConverter() lc.write('fluid.lua','fluid_dict.py') '''
36.027778
112
0.591365
9533f3d3d51a5a32d60d0e2337d926980cff5177
839
py
Python
odette/scripts/collect_iso_codes.py
mdelhoneux/oDETTE
1b09bb3a950eb847c409de48c466d6559a010bd8
[ "Unlicense" ]
2
2017-04-18T13:31:37.000Z
2017-07-12T21:00:10.000Z
odette/scripts/collect_iso_codes.py
mdelhoneux/oDETTE
1b09bb3a950eb847c409de48c466d6559a010bd8
[ "Unlicense" ]
null
null
null
odette/scripts/collect_iso_codes.py
mdelhoneux/oDETTE
1b09bb3a950eb847c409de48c466d6559a010bd8
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python #============================================================================== #author :Miryam de Lhoneux #email :miryam.de_lhoneux@lingfil.uu.se #date :2015/12/30 #version :1.0 #description :collect iso codes in UD directories #usage :python scripts/collect_iso_codes.py #Python version ...
28.931034
79
0.54112
20f86d70eb09a90cb1a4b918de25a5f97e226d8c
5,696
py
Python
airtest/core/ios/mjpeg_cap.py
Cache-Cloud/Airtest
4f831977a32c2b120dee631631c1154407b34d32
[ "Apache-2.0" ]
null
null
null
airtest/core/ios/mjpeg_cap.py
Cache-Cloud/Airtest
4f831977a32c2b120dee631631c1154407b34d32
[ "Apache-2.0" ]
null
null
null
airtest/core/ios/mjpeg_cap.py
Cache-Cloud/Airtest
4f831977a32c2b120dee631631c1154407b34d32
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- import numpy import socket import traceback from airtest import aircv from airtest.utils.snippet import reg_cleanup, on_method_ready, ready_method from airtest.core.ios.constant import ROTATION_MODE, DEFAULT_MJPEG_PORT from airtest.utils.logger import get_logger from airte...
33.309942
119
0.607619
20fa7eb3a7346661e1dcc5a7aa474c9102b7df4b
3,342
py
Python
happy.py
xiaoqcn/LearnLinuxViaPython
3c591471bbceefab44161aedb8ff67c2009b8ec0
[ "Apache-2.0" ]
null
null
null
happy.py
xiaoqcn/LearnLinuxViaPython
3c591471bbceefab44161aedb8ff67c2009b8ec0
[ "Apache-2.0" ]
null
null
null
happy.py
xiaoqcn/LearnLinuxViaPython
3c591471bbceefab44161aedb8ff67c2009b8ec0
[ "Apache-2.0" ]
null
null
null
import time import datetime import os import sys import atexit import signal from multiprocessing import Pool from threading import Thread
28.084034
92
0.529623
20fa9357a93d7d86c13beaf0a8a806393d553ed4
526
py
Python
functional_tests/test_gallery.py
atypicalrobot/igor_personal_site
8fd788bc43884792b786abeb34e9fec9e79492f1
[ "MIT" ]
null
null
null
functional_tests/test_gallery.py
atypicalrobot/igor_personal_site
8fd788bc43884792b786abeb34e9fec9e79492f1
[ "MIT" ]
null
null
null
functional_tests/test_gallery.py
atypicalrobot/igor_personal_site
8fd788bc43884792b786abeb34e9fec9e79492f1
[ "MIT" ]
null
null
null
from .base import *
29.222222
71
0.659696
20fb6d839493dfeb4698c4e202a1cd7ca0226dba
784
py
Python
plates.py
winksaville/cq-plates
fb175522fae991a8d88cdf26afad273a4b8b9098
[ "MIT" ]
null
null
null
plates.py
winksaville/cq-plates
fb175522fae991a8d88cdf26afad273a4b8b9098
[ "MIT" ]
null
null
null
plates.py
winksaville/cq-plates
fb175522fae991a8d88cdf26afad273a4b8b9098
[ "MIT" ]
null
null
null
import cadquery as cq # type: ignore nd = 0.4 # Nozzle Diameter length = 50 width = 20 gap = 5 p1 = ( cq.Workplane("XY", origin=(-(width + gap), 0, 0)) .rect(width, length) .extrude(nd/2) ) #show_object(p1) p2 = ( cq.Workplane("XY", origin=(0, 0, 0)) .rect(width, length) .extrude(nd) ) #sho...
21.189189
68
0.626276
20fe1adaa92216baa26b834b33664cd9c78ae67b
2,430
py
Python
tests/tonalmodel_tests/test_chromatic_scale.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
1
2021-05-06T19:45:54.000Z
2021-05-06T19:45:54.000Z
tests/tonalmodel_tests/test_chromatic_scale.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
tests/tonalmodel_tests/test_chromatic_scale.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
import unittest import logging from tonalmodel.chromatic_scale import ChromaticScale if __name__ == "__main__": unittest.main()
38.571429
117
0.60535
20feae08b04eeba7945d6473eedc0730006c75f9
3,093
py
Python
beeseyes/pycode/sampling.py
sosi-org/scientific-code
395bae0f95fbccb936dc01145c797dc22a1c99a0
[ "Unlicense" ]
null
null
null
beeseyes/pycode/sampling.py
sosi-org/scientific-code
395bae0f95fbccb936dc01145c797dc22a1c99a0
[ "Unlicense" ]
null
null
null
beeseyes/pycode/sampling.py
sosi-org/scientific-code
395bae0f95fbccb936dc01145c797dc22a1c99a0
[ "Unlicense" ]
null
null
null
import numpy as np import math import polygon_sampler nan_rgb = np.zeros((3,)) + np.NaN # sampler session: texture, W_,H_,W,H ''' Used by `sample_colors_squarepixels()` Samples a single point. Using square pixels. [0, ... ,W-1] (incl.) By mapping [0,1) -> [0,W) (int) (mapping u,v) ''' ''' Simple sampler. slow. "Pi...
25.991597
154
0.6172
20fedbf1080a9f144951aee297b7d6f393e3751d
5,237
py
Python
src/ui/workspace_view.py
weijiang1994/iPost
008e767c23691bd9ba802eab1e405f98094cce4c
[ "MIT" ]
2
2021-10-18T01:24:04.000Z
2021-12-14T01:29:22.000Z
src/ui/workspace_view.py
weijiang1994/iPost
008e767c23691bd9ba802eab1e405f98094cce4c
[ "MIT" ]
null
null
null
src/ui/workspace_view.py
weijiang1994/iPost
008e767c23691bd9ba802eab1e405f98094cce4c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'workspace_view.ui' # # Created by: PyQt5 UI code generator 5.14.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
50.355769
114
0.715104
20ff397b31725a7c336cc66646521d603dc8bb92
389
py
Python
task_queuing/tasks/custom.py
joejcollins/lieutenant-dean
eea536a146fb89b2feca244d5c4cf68e662cf2f2
[ "MIT" ]
null
null
null
task_queuing/tasks/custom.py
joejcollins/lieutenant-dean
eea536a146fb89b2feca244d5c4cf68e662cf2f2
[ "MIT" ]
null
null
null
task_queuing/tasks/custom.py
joejcollins/lieutenant-dean
eea536a146fb89b2feca244d5c4cf68e662cf2f2
[ "MIT" ]
null
null
null
"""Custom celery task to capitalize text""" import task_queuing.celery_app as app # app.queues.tasks.register(Capitalize)
19.45
43
0.694087
1f00bbb4cb26e6889fa5994c748463440e235c8e
654
py
Python
migrations/versions/d805931e1abd_add_topics.py
cyberinnovationhub/lunch-roulette
0b0b933188c095b6e3778ee7de9d4e21cd7caae5
[ "BSD-3-Clause" ]
4
2020-12-03T19:24:20.000Z
2022-03-16T13:45:11.000Z
migrations/versions/d805931e1abd_add_topics.py
cyberinnovationhub/lunch-roulette
0b0b933188c095b6e3778ee7de9d4e21cd7caae5
[ "BSD-3-Clause" ]
3
2020-08-24T08:05:11.000Z
2021-11-07T06:14:36.000Z
migrations/versions/d805931e1abd_add_topics.py
cyberinnovationhub/lunch-roulette
0b0b933188c095b6e3778ee7de9d4e21cd7caae5
[ "BSD-3-Clause" ]
3
2020-08-27T13:58:53.000Z
2022-03-09T14:09:06.000Z
"""add topics Revision ID: d805931e1abd Revises: 9430b6bc8d1a Create Date: 2018-09-18 15:11:45.922659 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'd805931e1abd' down_revision = '9430b6bc8d1a' branch_labels = None depends_on = None
22.551724
84
0.689602
1f01e1d172c08c2fafb69829e4c50d4807643989
726
py
Python
1-50/031NextPermutation.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
1-50/031NextPermutation.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
1-50/031NextPermutation.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Editor: Zhao Xinlu School: BUPT Date: 2018-03-24 """ if __name__ == '__main__': print Solution().nextPermutation([1, 3, 2])
24.2
74
0.508264
1f04128726942205094994e2b681a53cdfe743aa
64
py
Python
h1st/tuner/__init__.py
vophihungvn/h1st
d421995bb0b8de6a5a76788261efef5b26bc7c12
[ "Apache-2.0" ]
null
null
null
h1st/tuner/__init__.py
vophihungvn/h1st
d421995bb0b8de6a5a76788261efef5b26bc7c12
[ "Apache-2.0" ]
null
null
null
h1st/tuner/__init__.py
vophihungvn/h1st
d421995bb0b8de6a5a76788261efef5b26bc7c12
[ "Apache-2.0" ]
null
null
null
from h1st.tuner.hyperparameter_tuner import HyperParameterTuner
32
63
0.90625
1f0432871a66053bea5e2a19da56fe363bea9cb9
78,296
py
Python
allesfitter/basement.py
pierfra-ro/allesfitter
a6a885aaeb3253fec0d924ef3b45e8b7c473b181
[ "MIT" ]
null
null
null
allesfitter/basement.py
pierfra-ro/allesfitter
a6a885aaeb3253fec0d924ef3b45e8b7c473b181
[ "MIT" ]
null
null
null
allesfitter/basement.py
pierfra-ro/allesfitter
a6a885aaeb3253fec0d924ef3b45e8b7c473b181
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Oct 5 00:17:06 2018 @author: Dr. Maximilian N. Gnther European Space Agency (ESA) European Space Research and Technology Centre (ESTEC) Keplerlaan 1, 2201 AZ Noordwijk, The Netherlands Email: maximilian.guenther@esa.int GitHub: mnguenther Twitter: m_n_...
58.04003
224
0.481008
1f08e87bb685c5de27a28a6c0f75d6ba70a73d31
3,334
py
Python
schematron/ssk.py
SarahTV/SSK
ac7f5b7b1f1c02aefcb706abd80178f86c216cf7
[ "CC-BY-4.0" ]
null
null
null
schematron/ssk.py
SarahTV/SSK
ac7f5b7b1f1c02aefcb706abd80178f86c216cf7
[ "CC-BY-4.0" ]
null
null
null
schematron/ssk.py
SarahTV/SSK
ac7f5b7b1f1c02aefcb706abd80178f86c216cf7
[ "CC-BY-4.0" ]
null
null
null
#coding: utf-8 import re import os from lxml import etree as ET from bs4 import BeautifulSoup import csv
35.468085
96
0.54889
1f098e212077f84f0f80919da194e6c3605bd4fb
14,798
py
Python
src/01_eigenprogression_transform.py
lostanlen/nemisig2018
2868da84c938ff6db98936d81a830b838eef1131
[ "MIT" ]
1
2018-09-27T09:07:05.000Z
2018-09-27T09:07:05.000Z
src/01_eigenprogression_transform.py
lostanlen/nemisig2018
2868da84c938ff6db98936d81a830b838eef1131
[ "MIT" ]
null
null
null
src/01_eigenprogression_transform.py
lostanlen/nemisig2018
2868da84c938ff6db98936d81a830b838eef1131
[ "MIT" ]
null
null
null
import localmodule import datetime import h5py import math import music21 as m21 import numpy as np import os import scipy import scipy.linalg import sys import time # Parse arguments args = sys.argv[1:] composer_str = args[0] track_str = args[1] # Define constants. J_tm = 8 N = 2**10 n_octaves = 8 midi_octave_off...
34.334107
86
0.68462