hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
9a9a50511abf52afcd61e02d8aeff1032454c0a6
3,379
py
Python
utils/videoJob.py
dbpeng/aws-lambda-python-example-zencoder
3c3e2d2ea88be824a62e41f16d6bdd79deeef2a0
[ "MIT" ]
1
2018-05-01T11:54:33.000Z
2018-05-01T11:54:33.000Z
utils/videoJob.py
dbpeng/aws-lambda-python-example-zencoder
3c3e2d2ea88be824a62e41f16d6bdd79deeef2a0
[ "MIT" ]
1
2021-06-01T22:18:53.000Z
2021-06-01T22:18:53.000Z
utils/videoJob.py
dbpeng/aws-lambda-python-example-zencoder
3c3e2d2ea88be824a62e41f16d6bdd79deeef2a0
[ "MIT" ]
null
null
null
import os import sys from sqlalchemy import Column, ForeignKey, Integer, String, DateTime from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine from datetime import datetime import json from base import Session, engine, Base from enum import...
25.406015
76
0.629772
2,520
0.745783
0
0
0
0
0
0
787
0.232909
9a9af8b29d8ddd5b44627798d65817d8e0c206e0
3,411
py
Python
alipay/aop/api/domain/MybankCreditSceneprodCommonQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/MybankCreditSceneprodCommonQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/MybankCreditSceneprodCommonQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class MybankCreditSceneprodCommonQueryModel(object): def __init__(self): self._app_seq_no = None self._ext_param = None self._operation_type = None self._org_code = None...
29.405172
79
0.588977
3,294
0.965699
0
0
1,489
0.436529
0
0
424
0.124304
9a9d13bd5f6b65068699065c4f4e5d2b6027979d
32,570
py
Python
train_end2end.py
lyn1874/daml
edd89c3baf018cdb407208d137364fcefd913896
[ "MIT" ]
null
null
null
train_end2end.py
lyn1874/daml
edd89c3baf018cdb407208d137364fcefd913896
[ "MIT" ]
null
null
null
train_end2end.py
lyn1874/daml
edd89c3baf018cdb407208d137364fcefd913896
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Aug 13 18:23:08 2019 This scrip is for training the experiement end2end @author: li """ import tensorflow as tf import models.AE as AE import optimization.loss_tf as loss_tf from data import read_frame_temporal as rft import numpy as np import os import ...
49.725191
142
0.576727
20,833
0.639638
0
0
0
0
0
0
5,099
0.156555
9a9d1d892502aafdc91f1a1eaee4fb13e479814b
10,781
py
Python
cellfinder_napari/detect.py
neuromusic/cellfinder-napari
9a58a3b2174c5cb4c740ace6373744b5bcc4cc3d
[ "BSD-3-Clause" ]
7
2021-03-03T11:58:24.000Z
2021-12-24T08:40:12.000Z
cellfinder_napari/detect.py
neuromusic/cellfinder-napari
9a58a3b2174c5cb4c740ace6373744b5bcc4cc3d
[ "BSD-3-Clause" ]
87
2021-03-08T18:58:26.000Z
2022-03-30T15:37:08.000Z
cellfinder_napari/detect.py
neuromusic/cellfinder-napari
9a58a3b2174c5cb4c740ace6373744b5bcc4cc3d
[ "BSD-3-Clause" ]
5
2021-05-26T19:23:50.000Z
2022-03-06T13:03:13.000Z
import napari from pathlib import Path from magicgui import magicgui from typing import List from cellfinder_napari.utils import brainglobe_logo # TODO: # how to store & fetch pre-trained models? # TODO: params to add NETWORK_VOXEL_SIZES = [5, 1, 1] CUBE_WIDTH = 50 CUBE_HEIGHT = 20 CUBE_DEPTH = 20 # If using ROI, h...
32.969419
119
0.576384
0
0
0
0
8,857
0.821538
0
0
3,419
0.317132
9a9de9279be39ea51b643d07bcacfa3cc557f3f2
1,414
py
Python
setup.py
paxtonfitzpatrick/nltools
9d52e2e1d665a21feb641ab16424e450aca0c971
[ "MIT" ]
65
2018-08-26T19:39:11.000Z
2022-02-20T10:32:58.000Z
setup.py
paxtonfitzpatrick/nltools
9d52e2e1d665a21feb641ab16424e450aca0c971
[ "MIT" ]
138
2018-08-15T22:31:45.000Z
2022-02-14T18:23:46.000Z
setup.py
paxtonfitzpatrick/nltools
9d52e2e1d665a21feb641ab16424e450aca0c971
[ "MIT" ]
18
2018-08-23T16:52:35.000Z
2022-02-24T01:52:27.000Z
from setuptools import setup, find_packages version = {} with open("nltools/version.py") as f: exec(f.read(), version) with open("requirements.txt") as f: requirements = f.read().splitlines() extra_setuptools_args = dict(tests_require=["pytest"]) setup( name="nltools", version=version["__version__"]...
35.35
79
0.681047
0
0
0
0
0
0
0
0
740
0.523338
9a9e35c047e006353fb6423b17d95459f785de56
4,028
py
Python
{{ cookiecutter.repo_name }}/src/config/config.py
johanngerberding/cookiecutter-data-science
db44c48cdce4886d42b610c04e758d758f834e32
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/src/config/config.py
johanngerberding/cookiecutter-data-science
db44c48cdce4886d42b610c04e758d758f834e32
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/src/config/config.py
johanngerberding/cookiecutter-data-science
db44c48cdce4886d42b610c04e758d758f834e32
[ "MIT" ]
null
null
null
import os import warnings from dotenv import find_dotenv, load_dotenv from yacs.config import CfgNode as ConfigurationNode from pathlib import Path # Please configure your own settings here # # YACS overwrite these settings using YAML __C = ConfigurationNode() ### EXAMPLE ### """ # data augmentation parameters with...
30.984615
115
0.712512
0
0
0
0
0
0
0
0
2,536
0.629593
9a9e673814218a6b691d7522f64cfb8d20627d8f
475
py
Python
section_7/ex 30.py
thiagofreitascarneiro/Python-avancado-Geek-University
861b742ad6b30955fcbe63274b8cf8afc6ca028f
[ "MIT" ]
null
null
null
section_7/ex 30.py
thiagofreitascarneiro/Python-avancado-Geek-University
861b742ad6b30955fcbe63274b8cf8afc6ca028f
[ "MIT" ]
null
null
null
section_7/ex 30.py
thiagofreitascarneiro/Python-avancado-Geek-University
861b742ad6b30955fcbe63274b8cf8afc6ca028f
[ "MIT" ]
null
null
null
list1 = [] list2 = [] list3 = [] cont = 0 while cont < 10: valor = int(input('Digite um numero na lista 1: ')) list1.append(valor) valor2 = int(input('Digite um numero na lista 2: ')) list2.append(valor2) cont = cont + 1 if cont == 10: for i in list1: if i in list2: ...
23.75
65
0.562105
0
0
0
0
0
0
0
0
122
0.255765
9a9ee79fbb5396d6313eb8172811069d5e290bd2
7,693
py
Python
scripts/eval/eval.py
p0l0satik/PlaneDetector
60d7330537b90ff0ca74247cd6dac2ca7fc627bc
[ "MIT" ]
null
null
null
scripts/eval/eval.py
p0l0satik/PlaneDetector
60d7330537b90ff0ca74247cd6dac2ca7fc627bc
[ "MIT" ]
null
null
null
scripts/eval/eval.py
p0l0satik/PlaneDetector
60d7330537b90ff0ca74247cd6dac2ca7fc627bc
[ "MIT" ]
null
null
null
import os from shutil import rmtree import cv2 import docker import numpy as np import open3d as o3d from pypcd import pypcd from src.metrics import metrics from src.metrics.metrics import multi_value, mean from src.parser import loaders, create_parser UNSEGMENTED_COLOR = np.asarray([0, 0, 0], dtype=int) algos = { ...
38.273632
118
0.66203
0
0
0
0
0
0
0
0
1,337
0.173794
9a9f85fc451de9881426ccefc8e13f03669bb8d6
491
py
Python
cosmogrb/utils/fits_file.py
wematthias/cosmogrb
09852eb4e6e7315bbede507e19a2d57f1b927c3f
[ "BSD-2-Clause" ]
3
2020-03-08T18:20:32.000Z
2022-03-10T17:27:26.000Z
cosmogrb/utils/fits_file.py
wematthias/cosmogrb
09852eb4e6e7315bbede507e19a2d57f1b927c3f
[ "BSD-2-Clause" ]
11
2020-03-04T17:21:15.000Z
2020-06-09T12:20:00.000Z
cosmogrb/utils/fits_file.py
wematthias/cosmogrb
09852eb4e6e7315bbede507e19a2d57f1b927c3f
[ "BSD-2-Clause" ]
5
2020-03-18T18:05:05.000Z
2022-03-21T16:06:38.000Z
from responsum.utils.fits_file import FITSFile, FITSExtension as FE import pkg_resources class FITSExtension(FE): # I use __new__ instead of __init__ because I need to use the classmethod .from_columns instead of the # constructor of fits.BinTableHDU def __init__(self, data_tuple, header_tuple): ...
32.733333
106
0.757637
399
0.812627
0
0
0
0
0
0
160
0.325866
9a9fb2cd7765697e57d5b413e5af8232b235432f
121,557
py
Python
mi/instrument/seabird/sbe26plus/driver.py
rhan1498/marine-integrations
ad94c865e0e4cc7c8fd337870410c74b57d5c826
[ "BSD-2-Clause" ]
null
null
null
mi/instrument/seabird/sbe26plus/driver.py
rhan1498/marine-integrations
ad94c865e0e4cc7c8fd337870410c74b57d5c826
[ "BSD-2-Clause" ]
null
null
null
mi/instrument/seabird/sbe26plus/driver.py
rhan1498/marine-integrations
ad94c865e0e4cc7c8fd337870410c74b57d5c826
[ "BSD-2-Clause" ]
null
null
null
""" @package mi.instrument.seabird.sbe26plus.ooicore.driver @file /Users/unwin/OOI/Workspace/code/marine-integrations/mi/instrument/seabird/sbe26plus/ooicore/driver.py @author Roger Unwin @brief Driver for the ooicore Release notes: None. """ __author__ = 'Roger Unwin' __license__ = 'Apache 2.0' import re import tim...
45.054485
167
0.613276
118,300
0.973206
0
0
2,677
0.022023
0
0
39,752
0.327024
9a9fc338c15aa55b529d0d570899ecd61a1b41cd
514
py
Python
Strings/count-index-find.py
tverma332/python3
544c4ec9c726c37293c8da5799f50575cc50852d
[ "MIT" ]
3
2022-03-28T09:10:08.000Z
2022-03-29T10:47:56.000Z
Strings/count-index-find.py
tverma332/python3
544c4ec9c726c37293c8da5799f50575cc50852d
[ "MIT" ]
1
2022-03-27T11:52:58.000Z
2022-03-27T11:52:58.000Z
Strings/count-index-find.py
tverma332/python3
544c4ec9c726c37293c8da5799f50575cc50852d
[ "MIT" ]
null
null
null
# 1) count = To count how many time a particular word & char. is appearing x = "Keep grinding keep hustling" print(x.count("t")) # 2) index = To get index of letter(gives the lowest index) x="Keep grinding keep hustling" print(x.index("t")) # will give the lowest index value of (t) # 3) find = To get index of lett...
25.7
82
0.684825
0
0
0
0
0
0
0
0
438
0.85214
9aa0a86fc034faf07525b543313701f15dfaa4e4
4,526
py
Python
datasets/datasets.py
rioyokotalab/ecl-isvr
ae274b1b81b1d1c10db008140c477f5893a0c1c3
[ "BSD-4-Clause-UC" ]
null
null
null
datasets/datasets.py
rioyokotalab/ecl-isvr
ae274b1b81b1d1c10db008140c477f5893a0c1c3
[ "BSD-4-Clause-UC" ]
null
null
null
datasets/datasets.py
rioyokotalab/ecl-isvr
ae274b1b81b1d1c10db008140c477f5893a0c1c3
[ "BSD-4-Clause-UC" ]
2
2021-09-30T02:13:40.000Z
2021-12-14T07:33:28.000Z
#! -*- coding:utf-8 from typing import Callable, List, Optional import numpy as np import torch import torchvision __all__ = ["CIFAR10", "FashionMNIST"] class CIFAR10(torch.utils.data.Dataset): def __init__(self, root: str, train: bool = True, tra...
36.208
87
0.527176
4,351
0.961335
0
0
554
0.122404
0
0
99
0.021874
9aa249f279f7113e5bf54c4bf46eea1716af9bd2
1,819
py
Python
API/Segmentation_API/detectron_seg.py
rogo96/Background-removal
e301d288b73074940356fa4fe9c11f11885dc506
[ "MIT" ]
40
2020-09-16T02:22:30.000Z
2021-12-22T11:30:49.000Z
API/Segmentation_API/detectron_seg.py
ganjbakhshali/Background-removal
39691c0044b824e8beab13e44f2c269e309aec72
[ "MIT" ]
6
2020-09-18T02:59:11.000Z
2021-09-06T15:44:33.000Z
API/Segmentation_API/detectron_seg.py
ganjbakhshali/Background-removal
39691c0044b824e8beab13e44f2c269e309aec72
[ "MIT" ]
14
2020-11-06T09:26:25.000Z
2021-10-20T08:00:48.000Z
from detectron2 import model_zoo from detectron2.engine import DefaultPredictor from detectron2.config import get_cfg from detectron2.utils.visualizer import Visualizer from detectron2.data import MetadataCatalog import torch import numpy as np import cv2 class Model: def __init__(self,confidence_thresh=0.6): ...
31.912281
124
0.6663
1,528
0.840022
0
0
0
0
0
0
163
0.08961
9aa39e5e7763187b713ab547d0e364010f1b3d6f
106
py
Python
examples/plugin_example/setup.py
linshoK/pysen
2b84a15240c5a47cadd8e3fc8392c54c2995b0b1
[ "MIT" ]
423
2021-03-22T08:45:12.000Z
2022-03-31T21:05:53.000Z
examples/plugin_example/setup.py
linshoK/pysen
2b84a15240c5a47cadd8e3fc8392c54c2995b0b1
[ "MIT" ]
1
2022-02-23T08:53:24.000Z
2022-03-23T14:11:54.000Z
examples/plugin_example/setup.py
linshoK/pysen
2b84a15240c5a47cadd8e3fc8392c54c2995b0b1
[ "MIT" ]
9
2021-03-26T14:20:07.000Z
2022-03-24T13:17:06.000Z
from setuptools import setup setup( name="example-advanced-package", version="0.0.0", packages=[], )
17.666667
66
0.698113
0
0
0
0
0
0
0
0
33
0.311321
9aa3bdf68ace18fc9d168671cbe55ba44bdbac29
416
py
Python
setup.py
xpac1985/pyASA
a6cf470a4d1b731864a1b450e321901636c1ebdf
[ "MIT" ]
10
2017-02-05T12:15:19.000Z
2020-05-20T14:33:04.000Z
setup.py
xpac1985/pyASA
a6cf470a4d1b731864a1b450e321901636c1ebdf
[ "MIT" ]
null
null
null
setup.py
xpac1985/pyASA
a6cf470a4d1b731864a1b450e321901636c1ebdf
[ "MIT" ]
3
2017-04-02T13:00:28.000Z
2020-06-13T23:34:37.000Z
from distutils.core import setup setup( name='pyASA', packages=['pyASA'], version='0.1.0', description='Wrapper for the Cisco ASA REST API', author='xpac', author_email='[email protected]', url='https://github.com/xpac1985/pyASA', download_url='https://github.com/xpac1985/pyASA/tarba...
27.733333
67
0.646635
0
0
0
0
0
0
0
0
207
0.497596
9aa3ca73beed1f30ce5fdf99995b03ee7f17a719
2,441
py
Python
Client.py
fimmartins/qpid_protobuf_python
b1411088e74b48347aeeaecdf84bbf9c7c9f7662
[ "Apache-2.0" ]
1
2015-12-15T19:21:26.000Z
2015-12-15T19:21:26.000Z
Client.py
fimmartins/qpid_protobuf_python
b1411088e74b48347aeeaecdf84bbf9c7c9f7662
[ "Apache-2.0" ]
null
null
null
Client.py
fimmartins/qpid_protobuf_python
b1411088e74b48347aeeaecdf84bbf9c7c9f7662
[ "Apache-2.0" ]
null
null
null
from Qpid import QpidConnection from mxt1xx_pb2 import * from commands_pb2 import * from QpidTypes import * from qpid.messaging import * #doc http://qpid.apache.org/releases/qpid-0.14/apis/python/html/ #examples https://developers.google.com/protocol-buffers/docs/pythontutorial qpidCon = QpidConnection('192.168.0.78...
31.294872
114
0.679639
0
0
0
0
0
0
0
0
406
0.166325
9aa4eade5a06a5cb47e49505af09bdb59f7f1c8a
1,574
py
Python
run_all.py
EinariTuukkanen/line-search-comparison
7daa38779017f26828caa31a53675c8223e6ab8e
[ "MIT" ]
null
null
null
run_all.py
EinariTuukkanen/line-search-comparison
7daa38779017f26828caa31a53675c8223e6ab8e
[ "MIT" ]
null
null
null
run_all.py
EinariTuukkanen/line-search-comparison
7daa38779017f26828caa31a53675c8223e6ab8e
[ "MIT" ]
null
null
null
import numpy as np from example_functions import target_function_dict from line_search_methods import line_search_dict from main_methods import main_method_dict from config import best_params from helpers import generate_x0 def run_one(_theta, _main_method, _ls_method, params, ls_params): theta = _theta() x0...
34.217391
74
0.670902
0
0
0
0
0
0
0
0
334
0.212198
9aa4fd6241fe5ed3a825608b2a7990cea4c0d1af
5,299
py
Python
bin/runner.py
ColorOfLight/ML-term-project
047b22fcdd8df7a18abd224ccbf23ae5d981fc97
[ "MIT" ]
null
null
null
bin/runner.py
ColorOfLight/ML-term-project
047b22fcdd8df7a18abd224ccbf23ae5d981fc97
[ "MIT" ]
null
null
null
bin/runner.py
ColorOfLight/ML-term-project
047b22fcdd8df7a18abd224ccbf23ae5d981fc97
[ "MIT" ]
null
null
null
# Load Packages import pandas as pd import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from sklearn import preprocessing from sklearn.model_selection import GridSearchCV, cross_val_score from sklearn.metrics import classification_report from plots import draw_corr_heatmap import seaborn as sns ...
32.115152
115
0.684846
0
0
0
0
0
0
0
0
1,452
0.274014
9aa693424bf8bc328cb722f9e8651b7867acfe8a
1,346
py
Python
api/app.py
t-kigi/nuxt-chalice-aws-app-template
d413752004976911938d2fc26aa864ddae91a34f
[ "MIT" ]
null
null
null
api/app.py
t-kigi/nuxt-chalice-aws-app-template
d413752004976911938d2fc26aa864ddae91a34f
[ "MIT" ]
null
null
null
api/app.py
t-kigi/nuxt-chalice-aws-app-template
d413752004976911938d2fc26aa864ddae91a34f
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ nuxt-chalice-api のテンプレート実装です。 主に、全体で利用するグローバルスコープのリソースを初期化します。 """ import os from chalice import ( Chalice, CognitoUserPoolAuthorizer, CORSConfig ) from chalicelib import aws from chalicelib.env import store stage = store.mutation( 'chalilce.stage', os.env...
22.433333
70
0.704309
0
0
0
0
0
0
0
0
646
0.423885
9aa815cea217ed0284d392142fbc2dadb16b41d8
2,186
py
Python
examples/plotting/plot_with_matplotlib.py
crzdg/acconeer-python-exploration
26c16a3164199c58fe2940fe7050664d0d0e1161
[ "BSD-3-Clause-Clear" ]
null
null
null
examples/plotting/plot_with_matplotlib.py
crzdg/acconeer-python-exploration
26c16a3164199c58fe2940fe7050664d0d0e1161
[ "BSD-3-Clause-Clear" ]
null
null
null
examples/plotting/plot_with_matplotlib.py
crzdg/acconeer-python-exploration
26c16a3164199c58fe2940fe7050664d0d0e1161
[ "BSD-3-Clause-Clear" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from acconeer.exptool import configs, utils from acconeer.exptool.clients import SocketClient, SPIClient, UARTClient def main(): args = utils.ExampleArgumentParser(num_sens=1).parse_args() utils.config_logging(args) if args.socket_addr: client =...
26.987654
77
0.682068
0
0
0
0
0
0
0
0
154
0.070448
9aa888a27862f3097e55339b5958acdbaec12723
437
py
Python
kryptobot/bots/multi_bot.py
eristoddle/Kryptobot
d0c3050a1c924125810946530670c19b2de72d3f
[ "Apache-2.0" ]
24
2018-05-29T13:44:36.000Z
2022-03-12T20:41:45.000Z
kryptobot/bots/multi_bot.py
eristoddle/Kryptobot
d0c3050a1c924125810946530670c19b2de72d3f
[ "Apache-2.0" ]
23
2018-07-08T02:31:18.000Z
2020-06-02T04:07:49.000Z
kryptobot/bots/multi_bot.py
eristoddle/Kryptobot
d0c3050a1c924125810946530670c19b2de72d3f
[ "Apache-2.0" ]
14
2018-08-10T15:44:27.000Z
2021-06-14T07:14:52.000Z
from .bot import Bot class MultiBot(Bot): strategies = [] def __init__(self, strategies, config=None): super().__init__(strategy=None, config=config) self.strategies = strategies # override this to inherit def __start(self): for st in self.strategies: st.add_sessi...
24.277778
54
0.606407
414
0.947368
0
0
0
0
0
0
32
0.073227
9aa8e28e915cdb48539530ca48ffdc1fa280bc82
140
py
Python
setup.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
27
2018-06-04T19:11:42.000Z
2022-02-23T22:46:39.000Z
setup.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
7
2018-06-09T15:27:51.000Z
2021-03-11T20:00:35.000Z
setup.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
3
2018-07-29T10:20:02.000Z
2021-11-18T19:55:07.000Z
#!/usr/bin/env python """Setup file for the ``mixt`` module. Configuration is in ``setup.cfg``.""" from setuptools import setup setup()
15.555556
76
0.678571
0
0
0
0
0
0
0
0
97
0.692857
9aa920f4f30751f1feef1f340c733399005558c4
1,235
py
Python
venv/lib/python3.9/site-packages/py2app/recipes/PIL/prescript.py
dequeb/asmbattle
27e8b209de5787836e288a2f2f9b7644ce07563e
[ "MIT" ]
193
2020-01-15T09:34:20.000Z
2022-03-18T19:14:16.000Z
venv/lib/python3.9/site-packages/py2app/recipes/PIL/prescript.py
dequeb/asmbattle
27e8b209de5787836e288a2f2f9b7644ce07563e
[ "MIT" ]
185
2020-01-15T08:38:27.000Z
2022-03-27T17:29:29.000Z
venv/lib/python3.9/site-packages/py2app/recipes/PIL/prescript.py
dequeb/asmbattle
27e8b209de5787836e288a2f2f9b7644ce07563e
[ "MIT" ]
23
2020-01-24T14:47:18.000Z
2022-02-22T17:19:47.000Z
def _recipes_pil_prescript(plugins): try: import Image have_PIL = False except ImportError: from PIL import Image have_PIL = True import sys def init(): if Image._initialized >= 2: return if have_PIL: try: impor...
26.276596
80
0.460729
0
0
0
0
0
0
0
0
136
0.110121
9aa95eb6fe52df130917d5af87f7b5c65c75b243
691
py
Python
app/accounts/views/user_type.py
phessabi/eshop
6a5352753a0c27f9c3f0eda6eec696f49ef4a8eb
[ "Apache-2.0" ]
1
2020-02-04T21:18:31.000Z
2020-02-04T21:18:31.000Z
app/accounts/views/user_type.py
phessabi/eshop
6a5352753a0c27f9c3f0eda6eec696f49ef4a8eb
[ "Apache-2.0" ]
12
2020-01-01T11:46:33.000Z
2022-03-12T00:10:01.000Z
app/accounts/views/user_type.py
phessabi/eshop
6a5352753a0c27f9c3f0eda6eec696f49ef4a8eb
[ "Apache-2.0" ]
1
2020-02-18T11:12:48.000Z
2020-02-18T11:12:48.000Z
from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView class GetTypeView(APIView): permission_classes = [IsAuthenticated] def get(self, request): user = request.user if hasattr(user, 'vendor'): t...
26.576923
54
0.570188
547
0.791606
0
0
0
0
0
0
59
0.085384
9aa976fa66600077fd0293cccc1c6dcd3ade5f91
9,390
py
Python
Statistical Thinking in Python (Part 1)/Thinking_probabilistically--_Discrete_variables.py
shreejitverma/Data-Scientist
03c06936e957f93182bb18362b01383e5775ffb1
[ "MIT" ]
2
2022-03-12T04:53:03.000Z
2022-03-27T12:39:21.000Z
Statistical Thinking in Python (Part 1)/Thinking_probabilistically--_Discrete_variables.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
null
null
null
Statistical Thinking in Python (Part 1)/Thinking_probabilistically--_Discrete_variables.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
2
2022-03-12T04:52:21.000Z
2022-03-27T12:45:32.000Z
# Thinking probabilistically-- Discrete variables!! # Statistical inference rests upon probability. Because we can very rarely say anything meaningful with absolute certainty from data, we use probabilistic language to make quantitative statements about data. In this chapter, you will learn how to think probabilistical...
47.908163
812
0.760809
0
0
0
0
0
0
0
0
7,912
0.842419
9aacaa2c9c98de085aff50585e25fcd2964d6c96
1,008
py
Python
ml/data_engineering/ETL/extract.py
alexnakagawa/tools
b5e8c047293247c8781d44607968402f637e597e
[ "MIT" ]
null
null
null
ml/data_engineering/ETL/extract.py
alexnakagawa/tools
b5e8c047293247c8781d44607968402f637e597e
[ "MIT" ]
null
null
null
ml/data_engineering/ETL/extract.py
alexnakagawa/tools
b5e8c047293247c8781d44607968402f637e597e
[ "MIT" ]
null
null
null
''' This is an abstract example of Extracting in an ETL pipeline. Inspired from the "Introduction to Data Engineering" course on Datacamp.com Author: Alex Nakagawa ''' import requests # Fetch the Hackernews post resp = requests.get("https://hacker-news.firebaseio.com/v0/item/16222426.json") # Print the response par...
30.545455
79
0.779762
0
0
0
0
0
0
0
0
623
0.618056
9aacd4bc00b3363cbb5a9d413afa93f29eedb771
531
py
Python
python/python-algorithm-intervew/11-hash-table/29-jewels-and-stones-3.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
1
2022-03-06T03:49:31.000Z
2022-03-06T03:49:31.000Z
python/python-algorithm-intervew/11-hash-table/29-jewels-and-stones-3.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
python/python-algorithm-intervew/11-hash-table/29-jewels-and-stones-3.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
""" * 보석과 돌 J는 보석이며, S는 갖고 있는 돌이다. S에는 보석이 몇 개나 있을까? 대소문자는 구분한다. - Example 1 Input : J = "aA", S = "aAAbbbb" Output : 3 - Example 2 Input : J = "z", S = "ZZ" Output : 0 """ import collections class Solution: # Counter로 계산 생략 def numJewelsInStones(self, J: str, S: str) -> int: freqs = collections.Count...
19.666667
55
0.585687
238
0.386992
0
0
0
0
0
0
295
0.479675
9aad0121a197a064fa70a4456dc468491585ad3b
774
py
Python
migrations/versions/e1c435b9e9dc_.py
vipshae/todo-lister
ca639a3efcc243bebe132ca43c1917a28d4e83a6
[ "MIT" ]
null
null
null
migrations/versions/e1c435b9e9dc_.py
vipshae/todo-lister
ca639a3efcc243bebe132ca43c1917a28d4e83a6
[ "MIT" ]
null
null
null
migrations/versions/e1c435b9e9dc_.py
vipshae/todo-lister
ca639a3efcc243bebe132ca43c1917a28d4e83a6
[ "MIT" ]
null
null
null
"""empty message Revision ID: e1c435b9e9dc Revises: 2527092d6a89 Create Date: 2020-06-11 14:22:00.453626 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e1c435b9e9dc' down_revision = '2527092d6a89' branch_labels = None depends_on = None def upgrade(): # ...
23.454545
65
0.652455
0
0
0
0
0
0
0
0
404
0.521964
9aad26c087264dde6976cf7bacd6c4bf3d397a51
1,345
py
Python
test/test_quilted_contacts_list.py
cocoroutine/pyquilted
dd8644043deec17608e00f46e3ac4562b8879603
[ "MIT" ]
1
2019-02-21T20:10:37.000Z
2019-02-21T20:10:37.000Z
test/test_quilted_contacts_list.py
cocoroutine/pyquilted
dd8644043deec17608e00f46e3ac4562b8879603
[ "MIT" ]
null
null
null
test/test_quilted_contacts_list.py
cocoroutine/pyquilted
dd8644043deec17608e00f46e3ac4562b8879603
[ "MIT" ]
null
null
null
import unittest from pyquilted.quilted.contact import * from pyquilted.quilted.contacts_list import ContactsList class TestContactsList(unittest.TestCase): def test_contact_list(self): contacts = ContactsList() email = EmailContact('[email protected]') phone = PhoneContact('555-123-4...
31.27907
79
0.475093
1,180
0.877323
0
0
0
0
0
0
345
0.256506
9aae954a3239c945002696eff2a9d8adff07720d
3,110
py
Python
examples/python/macOS/hack_or_die.py
kitazaki/NORA_Badge
9b04a57235f0763641ffa8e90e499f141dc57570
[ "Apache-2.0" ]
null
null
null
examples/python/macOS/hack_or_die.py
kitazaki/NORA_Badge
9b04a57235f0763641ffa8e90e499f141dc57570
[ "Apache-2.0" ]
null
null
null
examples/python/macOS/hack_or_die.py
kitazaki/NORA_Badge
9b04a57235f0763641ffa8e90e499f141dc57570
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import time import uuid import Adafruit_BluefruitLE CHARACTERISTIC_SERVICE_UUID = uuid.UUID('0000fee0-0000-1000-8000-00805f9b34fb') CHARACTERISTIC_DATA_UUID = uuid.UUID('0000fee1-0000-1000-8000-00805f9b34fb') provider = Adafruit_BluefruitLE.get_provider() def main(): provi...
37.02381
82
0.632797
0
0
0
0
0
0
0
0
1,077
0.346302
9aaec48386d244bd541a612785f13979caec8fe3
4,902
py
Python
turkish_morphology/validate_test.py
nogeeky/turkish-morphology
64881f23dad87c6f470d874030f6b5f33fe1a9eb
[ "Apache-2.0" ]
157
2019-05-20T13:05:43.000Z
2022-03-23T16:36:31.000Z
turkish_morphology/validate_test.py
OrenBochman/turkish-morphology
8f33046722ce204ccc51739687921ab041bed254
[ "Apache-2.0" ]
9
2019-09-11T08:17:12.000Z
2022-03-15T18:29:01.000Z
turkish_morphology/validate_test.py
OrenBochman/turkish-morphology
8f33046722ce204ccc51739687921ab041bed254
[ "Apache-2.0" ]
30
2019-09-29T06:50:01.000Z
2022-03-13T15:31:10.000Z
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
33.346939
76
0.659935
3,695
0.753774
0
0
3,644
0.74337
0
0
2,908
0.593227
9aaf20b86321deb4ac2d2c3951af5c3c52764470
115
py
Python
rplint/__main__.py
lpozo/rplint
907cb5342827b2c38e79721bc2dc99b3b6f7912b
[ "MIT" ]
7
2020-09-10T15:39:07.000Z
2021-02-15T17:45:04.000Z
rplint/__main__.py
lpozo/rplint
907cb5342827b2c38e79721bc2dc99b3b6f7912b
[ "MIT" ]
6
2020-11-11T02:42:37.000Z
2021-03-17T01:00:27.000Z
rplint/__main__.py
lpozo/rplint
907cb5342827b2c38e79721bc2dc99b3b6f7912b
[ "MIT" ]
3
2020-11-11T02:10:22.000Z
2020-12-12T01:02:29.000Z
#!/usr/bin/env python3 from .main import rplint if __name__ == "__main__": rplint.main(prog_name=__package__)
19.166667
38
0.730435
0
0
0
0
0
0
0
0
32
0.278261
9ab1353597b9195d65b8c371888b502f56866647
3,368
py
Python
physicspy/optics/jones.py
suyag/physicspy
f2b29a72cb08b1de170274b3e35c3d8eda32f9e1
[ "MIT" ]
null
null
null
physicspy/optics/jones.py
suyag/physicspy
f2b29a72cb08b1de170274b3e35c3d8eda32f9e1
[ "MIT" ]
null
null
null
physicspy/optics/jones.py
suyag/physicspy
f2b29a72cb08b1de170274b3e35c3d8eda32f9e1
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import division from numpy import sqrt, cos, sin, arctan, exp, abs, pi, conj from scipy import array, dot, sum class JonesVector: """ A Jones vector class to represent polarized EM waves """ def __init__(self,Jarray=array([1,0])): self.Jx = Jarray[0] self.J...
34.367347
101
0.518705
2,551
0.757423
0
0
0
0
0
0
1,101
0.3269
9ab5d8227882ea8202fdc93b49f22e935bbc0e93
2,560
py
Python
aiida/cmdline/params/options/config.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
1
2020-10-01T17:11:58.000Z
2020-10-01T17:11:58.000Z
aiida/cmdline/params/options/config.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
17
2020-03-11T17:04:05.000Z
2020-05-01T09:34:45.000Z
aiida/cmdline/params/options/config.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
36.056338
116
0.605078
1,550
0.605469
0
0
0
0
0
0
1,981
0.773828
9ab6d13a500341cc43c1e83dfab97d3f76d1b8d3
460
py
Python
vaccine_feed_ingest/runners/ct/state/parse.py
jeremyschlatter/vaccine-feed-ingest
215f6c144fe5220deaccdb5db3e96f28b7077b3f
[ "MIT" ]
27
2021-04-24T02:11:18.000Z
2021-05-17T00:54:45.000Z
vaccine_feed_ingest/runners/ct/state/parse.py
jeremyschlatter/vaccine-feed-ingest
215f6c144fe5220deaccdb5db3e96f28b7077b3f
[ "MIT" ]
574
2021-04-06T18:09:11.000Z
2021-08-30T07:55:06.000Z
vaccine_feed_ingest/runners/ct/state/parse.py
jeremyschlatter/vaccine-feed-ingest
215f6c144fe5220deaccdb5db3e96f28b7077b3f
[ "MIT" ]
47
2021-04-23T05:31:14.000Z
2021-07-01T20:22:46.000Z
#!/usr/bin/env python import json import pathlib import sys input_dir = pathlib.Path(sys.argv[2]) output_dir = pathlib.Path(sys.argv[1]) output_file = output_dir / "data.parsed.ndjson" results = [] for input_file in input_dir.glob("data.raw.*.json"): with input_file.open() as fin: results.extend(json.loa...
23
52
0.680435
0
0
0
0
0
0
0
0
74
0.16087
9ab9d917b353cf0f8ea3e285cac62732af59e404
563
py
Python
python_learning/exception_redefinition.py
KonstantinKlepikov/all-python-ml-learning
a8a41347b548828bb8531ccdab89c622a0be20e1
[ "MIT" ]
null
null
null
python_learning/exception_redefinition.py
KonstantinKlepikov/all-python-ml-learning
a8a41347b548828bb8531ccdab89c622a0be20e1
[ "MIT" ]
null
null
null
python_learning/exception_redefinition.py
KonstantinKlepikov/all-python-ml-learning
a8a41347b548828bb8531ccdab89c622a0be20e1
[ "MIT" ]
1
2020-12-23T19:32:51.000Z
2020-12-23T19:32:51.000Z
# example of redefinition __repr__ and __str__ of exception class MyBad(Exception): def __str__(self): return 'My mistake!' class MyBad2(Exception): def __repr__(self): return 'Not calable' # because buid-in method has __str__ try: raise MyBad('spam') except MyBad as X: print(X) #...
20.107143
65
0.648313
191
0.339254
0
0
0
0
0
0
257
0.456483
9abaab450ac2ca5229b853ff9168c5720ce319bf
7,998
py
Python
difPy/dif.py
ppizarror/Duplicate-Image-Finder
371d70454531d1407b06d98f3e3bdc5e3fc03f49
[ "MIT" ]
null
null
null
difPy/dif.py
ppizarror/Duplicate-Image-Finder
371d70454531d1407b06d98f3e3bdc5e3fc03f49
[ "MIT" ]
null
null
null
difPy/dif.py
ppizarror/Duplicate-Image-Finder
371d70454531d1407b06d98f3e3bdc5e3fc03f49
[ "MIT" ]
null
null
null
import skimage.color import matplotlib.pyplot as plt import numpy as np import cv2 import os import imghdr import time """ Duplicate Image Finder (DIF): function that searches a given directory for images and finds duplicate/similar images among them. Outputs the number of found duplicate/similar image pairs with a l...
41.65625
128
0.572893
7,625
0.953363
0
0
0
0
0
0
2,686
0.335834
9abc03c9cf82f6250f6e274347a435222a3060a0
1,572
py
Python
minmax.py
jeffmorais/estrutura-de-dados
e7088df4fe753af106b4642c5e147d578a466c3b
[ "MIT" ]
1
2016-02-16T13:52:00.000Z
2016-02-16T13:52:00.000Z
minmax.py
jeffmorais/estrutura-de-dados
e7088df4fe753af106b4642c5e147d578a466c3b
[ "MIT" ]
null
null
null
minmax.py
jeffmorais/estrutura-de-dados
e7088df4fe753af106b4642c5e147d578a466c3b
[ "MIT" ]
null
null
null
# A função min_max deverá rodar em O(n) e o código não pode usar nenhuma # lib do Python (sort, min, max e etc) # Não pode usar qualquer laço (while, for), a função deve ser recursiva # Ou delegar a solução para uma função puramente recursiva import unittest def bora(cont, seq, min, max): if cont < len(seq): ...
29.111111
72
0.588422
319
0.200629
0
0
0
0
0
0
482
0.303145
9abd21b74954fe3eba3090f8582e570668b4381d
3,927
py
Python
news-category-classifcation/build_vocab.py
lyeoni/pytorch-nlp-tutorial
8cc490adc6cc92d458548e0e73fbbf1db575f049
[ "MIT" ]
1,433
2018-12-14T06:20:28.000Z
2022-03-31T14:12:50.000Z
news-category-classifcation/build_vocab.py
itsshaikaslam/nlp-tutorial-1
6e4c74e103f4cdc5e0559d987ae6e41c40e17a5a
[ "MIT" ]
14
2019-04-03T08:30:23.000Z
2021-07-11T11:41:05.000Z
news-category-classifcation/build_vocab.py
itsshaikaslam/nlp-tutorial-1
6e4c74e103f4cdc5e0559d987ae6e41c40e17a5a
[ "MIT" ]
306
2018-12-20T09:41:24.000Z
2022-03-31T05:07:14.000Z
import argparse import pickle from tokenization import Vocab, Tokenizer TOKENIZER = ('treebank', 'mecab') def argparser(): p = argparse.ArgumentParser() # Required parameters p.add_argument('--corpus', default=None, type=str, required=True) p.add_argument('--vocab', default=None, type=str, required=T...
40.071429
98
0.638146
0
0
0
0
0
0
0
0
1,145
0.291571
9abd5d0a8f6f8a824f776810d4a5b66aeca261fa
650
py
Python
lambda-sfn-terraform/src/LambdaFunction.py
extremenelson/serverless-patterns
c307599ab2759567c581c37d70561e85b0fa8788
[ "MIT-0" ]
1
2022-01-12T17:22:02.000Z
2022-01-12T17:22:02.000Z
lambda-sfn-terraform/src/LambdaFunction.py
extremenelson/serverless-patterns
c307599ab2759567c581c37d70561e85b0fa8788
[ "MIT-0" ]
null
null
null
lambda-sfn-terraform/src/LambdaFunction.py
extremenelson/serverless-patterns
c307599ab2759567c581c37d70561e85b0fa8788
[ "MIT-0" ]
null
null
null
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 import json import boto3 import os from aws_lambda_powertools import Logger logger = Logger() client = boto3.client('stepfunctions') sfnArn = os.environ['SFN_ARN'] def lambda_handler(event, context): # TODO impl...
23.214286
68
0.676923
0
0
0
0
0
0
0
0
227
0.349231
9abd6d106252aee5d79f8c8f78a07cba499bc3da
3,068
py
Python
tests/encryption/aes_decrypter.py
dfjxs/dfvfs
a4154b07bb08c3c86afa2847f3224189dd80c138
[ "Apache-2.0" ]
176
2015-01-02T13:55:39.000Z
2022-03-12T11:44:37.000Z
tests/encryption/aes_decrypter.py
dfjxs/dfvfs
a4154b07bb08c3c86afa2847f3224189dd80c138
[ "Apache-2.0" ]
495
2015-01-13T06:47:06.000Z
2022-03-12T11:07:03.000Z
tests/encryption/aes_decrypter.py
dfjxs/dfvfs
a4154b07bb08c3c86afa2847f3224189dd80c138
[ "Apache-2.0" ]
62
2015-02-23T08:19:38.000Z
2022-03-18T06:01:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for the AES decrypter object.""" import unittest from dfvfs.encryption import aes_decrypter from dfvfs.lib import definitions from tests.encryption import test_lib class AESDecrypterTestCase(test_lib.DecrypterTestCase): """Tests for the AES decrypter object....
33.714286
77
0.730769
2,796
0.911343
0
0
0
0
0
0
848
0.276402
9abfb5ca61ed6e49fce34592c1824290b02d1d23
4,460
py
Python
Crash Course on Python/WEEK 5/solutions.py
atharvpuranik/Google-IT-Automation-with-Python-Professional-Certificate
4d8fd587fa85ea4db62db6142fbb58cd9c29bb69
[ "MIT" ]
42
2020-04-28T09:06:21.000Z
2022-01-09T01:01:55.000Z
Crash Course on Python/WEEK 5/solutions.py
vaquarkhan/Google-IT-Automation-with-Python-Professional-Certificate
d87dffe924de218f73d61d27689798646824ed6c
[ "MIT" ]
null
null
null
Crash Course on Python/WEEK 5/solutions.py
vaquarkhan/Google-IT-Automation-with-Python-Professional-Certificate
d87dffe924de218f73d61d27689798646824ed6c
[ "MIT" ]
52
2020-05-12T05:29:46.000Z
2022-01-26T21:24:08.000Z
#Q2 # “If you have an apple and I have an apple and we exchange these apples then # you and I will still each have one apple. But if you have an idea and I have # an idea and we exchange these ideas, then each of us will have two ideas.” # George Bernard Shaw class Person: apples = 0 ideas = 0 johanna = Perso...
31.188811
140
0.722646
153
0.034274
0
0
0
0
0
0
2,346
0.525538
9ac1c767370071e77aa1a0a522794a49b7886db3
205
py
Python
python/test/is_prime.test.py
hotate29/kyopro_lib
20085381372d2555439980c79887ca6b0809bb77
[ "MIT" ]
null
null
null
python/test/is_prime.test.py
hotate29/kyopro_lib
20085381372d2555439980c79887ca6b0809bb77
[ "MIT" ]
2
2020-10-13T17:02:12.000Z
2020-10-17T16:04:48.000Z
python/test/is_prime.test.py
hotate29/kyopro_lib
20085381372d2555439980c79887ca6b0809bb77
[ "MIT" ]
null
null
null
# verification-helper: PROBLEM http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_1_C from python.lib.is_prime import isprime print(sum(isprime(int(input())) for _ in range(int(input()))))
25.625
97
0.756098
0
0
0
0
0
0
0
0
97
0.473171
9ac242f669af4d52c4d497c2811debd7113e2d03
691
py
Python
utils/pad.py
Zenodia/nativePytorch_NMT
bfced09eb6e5476d34619dfc0dd41d4ed610248f
[ "MIT" ]
60
2018-09-28T07:53:11.000Z
2020-11-06T11:59:07.000Z
utils/pad.py
Pravin74/transformer-pytorch
c31e163ed57321e405771ef7fb556d4d92fd5efb
[ "MIT" ]
2
2021-02-15T14:08:08.000Z
2021-09-12T12:52:37.000Z
utils/pad.py
Pravin74/transformer-pytorch
c31e163ed57321e405771ef7fb556d4d92fd5efb
[ "MIT" ]
18
2018-09-28T07:56:35.000Z
2020-11-24T00:11:33.000Z
import torch import numpy as np PAD_TOKEN_INDEX = 0 def pad_masking(x, target_len): # x: (batch_size, seq_len) batch_size, seq_len = x.size() padded_positions = x == PAD_TOKEN_INDEX # (batch_size, seq_len) pad_mask = padded_positions.unsqueeze(1).expand(batch_size, target_len, seq_len) return pa...
32.904762
87
0.723589
0
0
0
0
0
0
0
0
86
0.124457
9ac324779be3fdadd696253340d551fc8f9b954c
576
py
Python
jesse/modes/utils.py
julesGoullee/jesse
49a1ac46715682e8a30df133ce055bf2dfdedb7d
[ "MIT" ]
4
2021-02-23T18:23:58.000Z
2021-10-10T07:32:41.000Z
jesse/modes/utils.py
ArdeshirV/jesse
2ff415f6768f9ef7cca3e86d8f2f87988d3e7129
[ "MIT" ]
null
null
null
jesse/modes/utils.py
ArdeshirV/jesse
2ff415f6768f9ef7cca3e86d8f2f87988d3e7129
[ "MIT" ]
2
2021-04-30T06:49:26.000Z
2022-01-24T09:24:35.000Z
from jesse.store import store from jesse import helpers from jesse.services import logger def save_daily_portfolio_balance(): balances = [] # add exchange balances for key, e in store.exchanges.storage.items(): balances.append(e.assets[helpers.app_currency()]) # add open position values ...
27.428571
76
0.694444
0
0
0
0
0
0
0
0
84
0.145833
9ac5612f4d7fef57c2d92d9c354db5aaef44d59e
1,020
py
Python
Modo/Kits/OD_ModoCopyPasteExternal/lxserv/cmd_copyToExternal.py
heimlich1024/OD_CopyPasteExternal
943b993198e16d19f1fb4ba44049e498abf1e993
[ "Apache-2.0" ]
278
2017-04-27T18:44:06.000Z
2022-03-31T02:49:42.000Z
Modo/Kits/OD_ModoCopyPasteExternal/lxserv/cmd_copyToExternal.py
heimlich1024/OD_CopyPasteExternal
943b993198e16d19f1fb4ba44049e498abf1e993
[ "Apache-2.0" ]
57
2017-05-01T11:58:41.000Z
2022-02-06T18:43:13.000Z
Modo/Kits/OD_ModoCopyPasteExternal/lxserv/cmd_copyToExternal.py
heimlich1024/OD_CopyPasteExternal
943b993198e16d19f1fb4ba44049e498abf1e993
[ "Apache-2.0" ]
49
2017-04-28T19:24:14.000Z
2022-03-12T15:17:13.000Z
################################################################################ # # cmd_copyToExternal.py # # Author: Oliver Hotz | Chris Sprance # # Description: Copies Geo/Weights/Morphs/UV's to External File # # Last Update: # ###############################################################################...
23.72093
81
0.560784
538
0.527451
0
0
0
0
0
0
366
0.358824
9ac6f272c7449b8674bd2e0ae76f212c2c1488d6
17,828
py
Python
iotest/case.py
gwk/iotest
bb5386c8d2e96cf99ca840fc512008ef786c4805
[ "CC0-1.0" ]
1
2018-03-24T16:03:15.000Z
2018-03-24T16:03:15.000Z
iotest/case.py
gwk/iotest
bb5386c8d2e96cf99ca840fc512008ef786c4805
[ "CC0-1.0" ]
1
2016-08-12T19:09:43.000Z
2016-08-12T19:09:43.000Z
iotest/case.py
gwk/iotest
bb5386c8d2e96cf99ca840fc512008ef786c4805
[ "CC0-1.0" ]
null
null
null
# Dedicated to the public domain under CC0: https://creativecommons.org/publicdomain/zero/1.0/. import ast import os import re import shlex from itertools import zip_longest from string import Template from typing import * from .pithy.fs import * from .pithy.io import * from .pithy.types import * # type: ignore fro...
40.796339
146
0.648138
12,669
0.710624
0
0
376
0.02109
0
0
5,233
0.293527
9ac8a3896499bd8c6da3c5ab7c320fbd74dda4ff
111
py
Python
aiophotoprism/__init__.py
zhulik/aiophotoprism
91cc263ffbd85c7dc7ccef6d4cdafdfdaf2a4c85
[ "MIT" ]
4
2021-08-09T05:02:23.000Z
2022-01-30T03:04:29.000Z
aiophotoprism/__init__.py
zhulik/aiophotoprism
91cc263ffbd85c7dc7ccef6d4cdafdfdaf2a4c85
[ "MIT" ]
null
null
null
aiophotoprism/__init__.py
zhulik/aiophotoprism
91cc263ffbd85c7dc7ccef6d4cdafdfdaf2a4c85
[ "MIT" ]
null
null
null
"""Asynchronous Python client for the Photoprism REST API.""" from .photoprism import API, Photoprism # noqa
27.75
61
0.756757
0
0
0
0
0
0
0
0
67
0.603604
9ac8a6eee2b79ed601b853802a3795b71f290223
5,558
py
Python
xen/xen-4.2.2/tools/python/scripts/test_vm_create.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2018-02-02T00:15:26.000Z
2018-02-02T00:15:26.000Z
xen/xen-4.2.2/tools/python/scripts/test_vm_create.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
null
null
null
xen/xen-4.2.2/tools/python/scripts/test_vm_create.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2019-05-27T09:47:18.000Z
2019-05-27T09:47:18.000Z
#!/usr/bin/python vm_cfg = { 'name_label': 'APIVM', 'user_version': 1, 'is_a_template': False, 'auto_power_on': False, # TODO 'memory_static_min': 64, 'memory_static_max': 128, #'memory_dynamic_min': 64, #'memory_dynamic_max': 128, 'VCPUs_policy': 'credit', 'VCPUs...
26.216981
75
0.542821
0
0
0
0
0
0
0
0
1,884
0.338971
9ac8dc710710ba41c77dd17ed479decc6f7a00ea
6,171
py
Python
portfolyo/core/pfline/tests/test_single_helper.py
rwijtvliet/portfolyo
b22948fbc55264ec5d69824e791ca7ef45c6e49c
[ "BSD-3-Clause" ]
null
null
null
portfolyo/core/pfline/tests/test_single_helper.py
rwijtvliet/portfolyo
b22948fbc55264ec5d69824e791ca7ef45c6e49c
[ "BSD-3-Clause" ]
null
null
null
portfolyo/core/pfline/tests/test_single_helper.py
rwijtvliet/portfolyo
b22948fbc55264ec5d69824e791ca7ef45c6e49c
[ "BSD-3-Clause" ]
null
null
null
from portfolyo import testing, dev from portfolyo.core.pfline import single_helper from portfolyo.tools.nits import Q_ from portfolyo.tools.stamps import FREQUENCIES import pandas as pd import pytest def assert_w_q_compatible(freq, w, q): if freq == "15T": testing.assert_series_equal(q, w * Q_(0.25, "h"),...
33
97
0.580943
0
0
0
0
5,082
0.823529
0
0
1,268
0.205477
9ac99cea9babd92f880b3baa9bf72af575865d84
31,044
py
Python
gomill/mcts_tuners.py
BenisonSam/goprime
3613f643ee765b4ad48ebdc27bd9f1121b1c5298
[ "MIT" ]
null
null
null
gomill/mcts_tuners.py
BenisonSam/goprime
3613f643ee765b4ad48ebdc27bd9f1121b1c5298
[ "MIT" ]
null
null
null
gomill/mcts_tuners.py
BenisonSam/goprime
3613f643ee765b4ad48ebdc27bd9f1121b1c5298
[ "MIT" ]
null
null
null
"""Competitions for parameter tuning using Monte-carlo tree search.""" from __future__ import division import operator import random from heapq import nlargest from math import exp, log, sqrt from gomill import compact_tracebacks from gomill import game_jobs from gomill import competitions from gomill import competi...
35.077966
95
0.616544
30,160
0.971524
0
0
0
0
0
0
8,512
0.274191
9aca58a06217030d4df687fba53565676f1f3f48
460
py
Python
Leetcoding-Actions/Explore-Monthly-Challenges/2021-02/25-shortestUnsortedContinuousSubarray.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
1
2020-11-14T18:28:13.000Z
2020-11-14T18:28:13.000Z
Leetcoding-Actions/Explore-Monthly-Challenges/2021-02/25-shortestUnsortedContinuousSubarray.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
Leetcoding-Actions/Explore-Monthly-Challenges/2021-02/25-shortestUnsortedContinuousSubarray.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
class Solution: def findUnsortedSubarray(self, nums: List[int]) -> int: ''' T: O(n log n) and S: O(1) ''' n = len(nums) sorted_nums = sorted(nums) start, end = n + 1, -1 for i in range(n): if nums[i] != sorted_nums[i]: ...
25.555556
59
0.428261
459
0.997826
0
0
0
0
0
0
49
0.106522
9acbd6e09016763ff8a75cf2e88c6a01d873ad9c
9,705
py
Python
endoscopic_ai.py
dennkitotaichi/AI_prediction_for_patients_with_colorectal_polyps
afbad36cb3fc2de31665fc3b0a7f065b7e6564a0
[ "MIT" ]
null
null
null
endoscopic_ai.py
dennkitotaichi/AI_prediction_for_patients_with_colorectal_polyps
afbad36cb3fc2de31665fc3b0a7f065b7e6564a0
[ "MIT" ]
null
null
null
endoscopic_ai.py
dennkitotaichi/AI_prediction_for_patients_with_colorectal_polyps
afbad36cb3fc2de31665fc3b0a7f065b7e6564a0
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt #%matplotlib inline import codecs import lightgbm as lgb from sklearn.model_selection import StratifiedShuffleSplit from sklearn.metrics import mean_squared_error from sklearn.metrics import r2_score # Read data image_file_path = './simulated_dpc_d...
48.525
165
0.757651
0
0
0
0
0
0
0
0
2,631
0.270484
9acbf669f84ad525253b32c114c4e395b93adc19
3,488
py
Python
open-hackathon-tempUI/src/hackathon/config-sample.py
SpAiNiOr/LABOSS
32ad341821e9f30fecfa338b5669f574d32dd0fa
[ "Apache-2.0" ]
null
null
null
open-hackathon-tempUI/src/hackathon/config-sample.py
SpAiNiOr/LABOSS
32ad341821e9f30fecfa338b5669f574d32dd0fa
[ "Apache-2.0" ]
null
null
null
open-hackathon-tempUI/src/hackathon/config-sample.py
SpAiNiOr/LABOSS
32ad341821e9f30fecfa338b5669f574d32dd0fa
[ "Apache-2.0" ]
null
null
null
# "javascript" section for javascript. see @app.route('/config.js') in app/views.py # oauth constants HOSTNAME = "http://hackathon.chinacloudapp.cn" # host name of the UI site QQ_OAUTH_STATE = "openhackathon" # todo state should be constant. Actually it should be unguessable to prevent CSFA HACkATHON_API_ENDPOINT = ...
48.444444
294
0.648222
0
0
0
0
0
0
0
0
2,476
0.709862
9acc78e7c1d68d1a67b2d32bd290cc493caa9d62
1,036
py
Python
marocco/first.py
panos1998/Thesis_Code
3f95730b1b2139011b060f002d5ce449a886079b
[ "Apache-2.0" ]
null
null
null
marocco/first.py
panos1998/Thesis_Code
3f95730b1b2139011b060f002d5ce449a886079b
[ "Apache-2.0" ]
null
null
null
marocco/first.py
panos1998/Thesis_Code
3f95730b1b2139011b060f002d5ce449a886079b
[ "Apache-2.0" ]
null
null
null
#%% import sys import numpy as np from typing import Any, List import pandas as pd from sklearn.preprocessing import MinMaxScaler sys.path.append('C:/Users/panos/Documents/Διπλωματική/code/fz') from arfftocsv import function_labelize import csv colnames =['age', 'sex', 'cp', 'trestbps', 'chol', 'fbs', 'restecg', 'thal...
32.375
63
0.712355
0
0
0
0
0
0
0
0
341
0.325692
9accd3c42fa9f549ce35aac4c4567cb2591c14a9
10,323
py
Python
matlab2cpp/datatype.py
emc2norway/m2cpp
81943057c184c539b409282cbbd47bbf933db04f
[ "BSD-3-Clause" ]
28
2017-04-25T10:06:38.000Z
2022-02-09T07:25:34.000Z
matlab2cpp/datatype.py
emc2norway/m2cpp
81943057c184c539b409282cbbd47bbf933db04f
[ "BSD-3-Clause" ]
null
null
null
matlab2cpp/datatype.py
emc2norway/m2cpp
81943057c184c539b409282cbbd47bbf933db04f
[ "BSD-3-Clause" ]
5
2017-04-25T17:54:53.000Z
2022-03-21T20:15:15.000Z
""" The follwing constructor classes exists here: +------------------------------------------+---------------------------------------+ | Class | Description | +==========================================+=======================================+ | :py:class:`~...
28.675
84
0.465272
5,400
0.523104
0
0
0
0
0
0
5,722
0.554296
9acd3d20a14d9e96bec466426e861a98197f22b0
330
py
Python
src/the_impossible/live/migrations/newsletter/migrations/0002_auto_20200514_1518.py
micha31r/The-Impossible
7a79dea3169907eb93107107f4003c5813de58dc
[ "MIT" ]
null
null
null
src/the_impossible/live/migrations/newsletter/migrations/0002_auto_20200514_1518.py
micha31r/The-Impossible
7a79dea3169907eb93107107f4003c5813de58dc
[ "MIT" ]
2
2020-04-15T03:57:42.000Z
2020-06-06T01:43:34.000Z
src/the_impossible/live/migrations/newsletter/migrations/0002_auto_20200514_1518.py
micha31r/The-Impossible
7a79dea3169907eb93107107f4003c5813de58dc
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2020-05-14 03:18 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('newsletter', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='Newsletter', new_name='Subscriber', ...
18.333333
47
0.593939
245
0.742424
0
0
0
0
0
0
97
0.293939
9acd4db9f55911f16eb79b057e6fc8abf0b3c6d4
210
py
Python
resident/views.py
felipeue/SmartBuilding
57d904c6166c87f836bc8fada9eb5a2bc82069b8
[ "MIT" ]
null
null
null
resident/views.py
felipeue/SmartBuilding
57d904c6166c87f836bc8fada9eb5a2bc82069b8
[ "MIT" ]
null
null
null
resident/views.py
felipeue/SmartBuilding
57d904c6166c87f836bc8fada9eb5a2bc82069b8
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView from main.permissions import ResidentLoginRequiredMixin class DashboardView(ResidentLoginRequiredMixin, TemplateView): template_name = "index_dashboard.html"
30
62
0.852381
105
0.5
0
0
0
0
0
0
22
0.104762
9acff9f4ad0162148d8ed69428c049eb258f8169
9,179
py
Python
src/awspfx/awspfx.py
exfi/awspfx
118d2f83a365e1cd37da0b0689e6d5ff527e0f64
[ "MIT" ]
1
2021-08-10T23:17:07.000Z
2021-08-10T23:17:07.000Z
src/awspfx/awspfx.py
exfi/awspfx
118d2f83a365e1cd37da0b0689e6d5ff527e0f64
[ "MIT" ]
2
2021-09-22T03:59:52.000Z
2021-12-22T22:48:18.000Z
src/awspfx/awspfx.py
exfi/awspfx
118d2f83a365e1cd37da0b0689e6d5ff527e0f64
[ "MIT" ]
1
2022-03-29T15:14:22.000Z
2022-03-29T15:14:22.000Z
#!/usr/bin/env python3 """awspfx Usage: awspfx.py <profile> awspfx.py [(-c | --current) | (-l | --list) | (-s | --swap)] awspfx.py token [(-p | --profile) <profile>] awspfx.py sso [(login | token)] [(-p | --profile) <profile>] awspfx.py -h | --help awspfx.py --version Examples: awspfx.py ...
26.002833
93
0.610742
0
0
0
0
0
0
0
0
2,602
0.283473
9ad11bb35b11a89ca5873c299ffa8f65fee28a06
3,694
py
Python
test/test_contacts_info_from_main_page.py
OlgaZtv/python_training
661165613ef4b9545345a8a2c61a894571ded703
[ "Apache-2.0" ]
null
null
null
test/test_contacts_info_from_main_page.py
OlgaZtv/python_training
661165613ef4b9545345a8a2c61a894571ded703
[ "Apache-2.0" ]
null
null
null
test/test_contacts_info_from_main_page.py
OlgaZtv/python_training
661165613ef4b9545345a8a2c61a894571ded703
[ "Apache-2.0" ]
null
null
null
import re from model.contact import Contact def test_contact_info_from_home_page(app, db): app.navigation.open_home_page() contact_from_home_page = sorted(app.contact.get_contact_list(), key=Contact.id_or_max) def clean(contact): return Contact(id=contact.id, firstname=contact.firstname.strip(), ...
52.028169
119
0.67542
0
0
0
0
0
0
0
0
1,931
0.511252
9ad1371d592dd9a07aabbaf79a51d2d1c5de33e5
628
py
Python
Leetcode/1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree/solution1.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def getTargetCopy(self, original: TreeNode, cloned: TreeNode, target: TreeNode) -> TreeNode: if not target or not original or not...
36.941176
96
0.644904
464
0.738854
0
0
0
0
0
0
156
0.248408
9ad242baf7204452ac38c08eb06958775483a1b5
1,790
py
Python
benchmark.py
raonyguimaraes/machinelearning
03b18e5c69931c4ee2ea4803de72c846aba97bce
[ "MIT" ]
1
2016-10-23T19:45:12.000Z
2016-10-23T19:45:12.000Z
benchmark.py
raonyguimaraes/machinelearning
03b18e5c69931c4ee2ea4803de72c846aba97bce
[ "MIT" ]
null
null
null
benchmark.py
raonyguimaraes/machinelearning
03b18e5c69931c4ee2ea4803de72c846aba97bce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Writing Our First Classifier - Machine Learning Recipes #5 #https://www.youtube.com/watch?v=AoeEHqVSNOw&list=PLOU2XLYxmsIIuiBfYad6rFYQU_jL2ryal&index=1 from scipy.spatial import distance from sklearn.neighbors import KNeighborsClassifier from sklearn.metrics import accu...
24.189189
92
0.754749
507
0.28324
0
0
0
0
0
0
299
0.167039
9ad3c6eb1d3fc248c366e0859044b8671327d992
2,323
py
Python
process_frames.py
w-garcia/video-caption.pytorch
ef3766b093815b7cfd48d29b2af880c05b45ddbe
[ "MIT" ]
4
2019-03-27T11:37:44.000Z
2021-01-07T02:10:46.000Z
process_frames.py
w-garcia/video-caption.pytorch
ef3766b093815b7cfd48d29b2af880c05b45ddbe
[ "MIT" ]
2
2019-07-11T20:34:19.000Z
2019-08-19T13:21:52.000Z
process_frames.py
w-garcia/video-caption.pytorch
ef3766b093815b7cfd48d29b2af880c05b45ddbe
[ "MIT" ]
3
2020-02-12T02:31:58.000Z
2021-02-07T06:17:48.000Z
""" Re-tooled version of the script found on VideoToTextDNN: https://github.com/OSUPCVLab/VideoToTextDNN/blob/master/data/process_frames.py """ import sys import os import argparse import time from multiprocessing import Pool def main(args): src_dir = args.src_dir dst_dir = args.dst_dir start = int(args.s...
27.329412
145
0.635385
0
0
0
0
0
0
0
0
753
0.32415
9ad3d0b300ea5b2d36712d2ed1f19a77b925f25f
383
py
Python
plaintext_password/checks.py
bryanwills/django-plaintext-password
752cf0316cdc45dc9bed5f9107614881d613647f
[ "MIT" ]
null
null
null
plaintext_password/checks.py
bryanwills/django-plaintext-password
752cf0316cdc45dc9bed5f9107614881d613647f
[ "MIT" ]
null
null
null
plaintext_password/checks.py
bryanwills/django-plaintext-password
752cf0316cdc45dc9bed5f9107614881d613647f
[ "MIT" ]
2
2021-04-23T08:24:08.000Z
2022-03-01T06:56:33.000Z
from django.contrib.auth.hashers import get_hashers_by_algorithm from django.core import checks @checks.register(checks.Tags.security, deploy=True) def check_for_plaintext_passwords(app_configs, **kwargs): if "plaintext" in get_hashers_by_algorithm(): yield checks.Critical( "Plaintext module s...
34.818182
83
0.744125
0
0
232
0.605744
284
0.741514
0
0
75
0.195822
9ad4238b4ae5b1bf04e852349b10a5a6489f5283
105
py
Python
city.py
cromermw/gen_pop
74541590b0142fac5178e7db25b068d967618dfb
[ "CC0-1.0" ]
null
null
null
city.py
cromermw/gen_pop
74541590b0142fac5178e7db25b068d967618dfb
[ "CC0-1.0" ]
null
null
null
city.py
cromermw/gen_pop
74541590b0142fac5178e7db25b068d967618dfb
[ "CC0-1.0" ]
null
null
null
class City: name = "city" size = "default" draw = -1 danger = -1 population = []
17.5
21
0.47619
105
1
0
0
0
0
0
0
15
0.142857
9ad5dd0d9bd8fbcbf6eef199aef2d2ca49925d18
9,340
py
Python
code/preprocess/data_generation.py
hms-dbmi/VarPPUD
316a45f33c12dfecadb17fa41b699ef95096a623
[ "Apache-2.0" ]
null
null
null
code/preprocess/data_generation.py
hms-dbmi/VarPPUD
316a45f33c12dfecadb17fa41b699ef95096a623
[ "Apache-2.0" ]
null
null
null
code/preprocess/data_generation.py
hms-dbmi/VarPPUD
316a45f33c12dfecadb17fa41b699ef95096a623
[ "Apache-2.0" ]
1
2022-01-18T17:14:31.000Z
2022-01-18T17:14:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 24 17:19:39 2021 @author: rayin """ import os, sys import numpy as np import pandas as pd import torch import warnings import random import torchvision.models as models from sdv.tabular import CTGAN from sdv.evaluation import evaluate from sdv.met...
37.51004
147
0.713169
0
0
0
0
0
0
0
0
3,768
0.403426
9ad633a8b545c9fd60433dd7e1485b51abf58bfc
1,265
py
Python
app/user/models.py
briankaemingk/streaks-with-todoist
c6cbc982fbedafce04e9f23af7422e996513c8bb
[ "MIT" ]
3
2019-08-06T19:04:32.000Z
2022-01-19T14:00:12.000Z
app/user/models.py
briankaemingk/streaks-with-todoist
c6cbc982fbedafce04e9f23af7422e996513c8bb
[ "MIT" ]
6
2018-10-14T21:32:58.000Z
2021-03-20T00:07:56.000Z
app/user/models.py
briankaemingk/streaks-with-todoist
c6cbc982fbedafce04e9f23af7422e996513c8bb
[ "MIT" ]
null
null
null
from app.extensions import db from flask import current_app class User(db.Model): __tablename__ = 'users' id = db.Column(db.Integer, primary_key=True) access_token = db.Column(db.String()) jit_feature = db.Column(db.Boolean()) recurrence_resch_feature = db.Column(db.Boolean()) streaks_feature ...
38.333333
147
0.714625
1,198
0.947036
0
0
0
0
0
0
138
0.109091
9ad63695127b031d5978acb9042f9c3b9cb8c5de
1,240
py
Python
output/models/boeing_data/ipo4/ipo_xsd/address.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/boeing_data/ipo4/ipo_xsd/address.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/boeing_data/ipo4/ipo_xsd/address.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from enum import Enum from typing import Optional from output.models.boeing_data.ipo4.ipo_xsd.ipo import AddressType __NAMESPACE__ = "http://www.example.com/IPO" class Usstate(Enum): AK = "AK" AL = "AL" AR = "AR" CA = "CA" PA = "PA" @dataclass class Ukad...
20
66
0.504032
1,005
0.810484
0
0
937
0.755645
0
0
253
0.204032
9ad672b90b5e5960648f597358159ab9f9c375ec
5,060
py
Python
Invaders/Displays/animation_display.py
JaredsGames/SpaceInvaders
8a0da236c97340c4a8a06e7dd68e4672f885d9e0
[ "MIT" ]
null
null
null
Invaders/Displays/animation_display.py
JaredsGames/SpaceInvaders
8a0da236c97340c4a8a06e7dd68e4672f885d9e0
[ "MIT" ]
null
null
null
Invaders/Displays/animation_display.py
JaredsGames/SpaceInvaders
8a0da236c97340c4a8a06e7dd68e4672f885d9e0
[ "MIT" ]
null
null
null
# Jared Dyreson # CPSC 386-01 # 2021-11-29 # [email protected] # @JaredDyreson # # Lab 00-04 # # Some filler text # """ This module contains the Intro display class """ import pygame import functools import sys import pathlib import typing import os import dataclasses import random from pprint import ppr...
32.025316
86
0.594862
3,809
0.752767
0
0
0
0
0
0
775
0.153162
9ad73e40610067893659f1466d9493e1d1fdb576
49
py
Python
ledger/checkout/models.py
jawaidm/ledger
7094f3320d6a409a2a0080e70fa7c2b9dba4a715
[ "Apache-2.0" ]
59
2015-08-29T10:51:34.000Z
2021-11-03T10:00:25.000Z
ledger/checkout/models.py
jawaidm/ledger
7094f3320d6a409a2a0080e70fa7c2b9dba4a715
[ "Apache-2.0" ]
162
2018-02-16T05:13:03.000Z
2021-05-14T02:47:37.000Z
ledger/checkout/models.py
jawaidm/ledger
7094f3320d6a409a2a0080e70fa7c2b9dba4a715
[ "Apache-2.0" ]
22
2015-08-10T10:46:18.000Z
2020-04-04T07:11:55.000Z
from oscar.apps.checkout.models import * # noqa
24.5
48
0.755102
0
0
0
0
0
0
0
0
6
0.122449
9ad97cd25d6ffe7ca83c1fced680d4dc39e56290
1,642
py
Python
api/serializers.py
mariomtzjr/podemos_test
5efaf02a19aa8c4849e3ad0108546e95af524126
[ "MIT" ]
null
null
null
api/serializers.py
mariomtzjr/podemos_test
5efaf02a19aa8c4849e3ad0108546e95af524126
[ "MIT" ]
null
null
null
api/serializers.py
mariomtzjr/podemos_test
5efaf02a19aa8c4849e3ad0108546e95af524126
[ "MIT" ]
null
null
null
from rest_framework import serializers from apps.calendarioPago.models import CalendarioPago from apps.cliente.models import Cliente from apps.cuenta.models import Cuenta from apps.grupo.models import Grupo from apps.miembro.models import Miembro from apps.transaccion.models import Transaccion # Serializers define t...
26.483871
84
0.694275
1,277
0.77771
0
0
0
0
0
0
256
0.155907
9ada5e1bb0d72f096389f3d35f059bd13ec5be47
8,194
py
Python
emmet/markup/format/html.py
emmetio/py-emmet
9cbb42f482526d7df18ba632b3b3f2ed3b7653a5
[ "MIT" ]
29
2019-11-12T16:15:15.000Z
2022-02-06T10:51:25.000Z
emmet/markup/format/html.py
emmetio/py-emmet
9cbb42f482526d7df18ba632b3b3f2ed3b7653a5
[ "MIT" ]
3
2020-04-25T11:02:53.000Z
2021-11-25T10:39:09.000Z
emmet/markup/format/html.py
emmetio/py-emmet
9cbb42f482526d7df18ba632b3b3f2ed3b7653a5
[ "MIT" ]
7
2020-04-25T09:42:54.000Z
2021-02-16T20:29:41.000Z
import re from .walk import walk, WalkState from .utils import caret, is_inline_element, is_snippet, push_tokens, should_output_attribute from .comment import comment_node_before, comment_node_after, CommentWalkState from ...abbreviation import Abbreviation, AbbreviationNode, AbbreviationAttribute from ...abbreviation....
34.868085
122
0.611667
59
0.007193
0
0
0
0
0
0
1,355
0.165204
9adc3fed9b6a076b0f178e8d91edfcd0fe2b0e5f
2,584
py
Python
secant_method.py
FixingMind5/proyecto_metodos_I
4eaed1991ad18574984bcc0010394ecb9c4a620e
[ "MIT" ]
null
null
null
secant_method.py
FixingMind5/proyecto_metodos_I
4eaed1991ad18574984bcc0010394ecb9c4a620e
[ "MIT" ]
null
null
null
secant_method.py
FixingMind5/proyecto_metodos_I
4eaed1991ad18574984bcc0010394ecb9c4a620e
[ "MIT" ]
null
null
null
"""Secant Method module""" from numeric_method import NumericMethod class SecantMethod(NumericMethod): """Secant method class""" def secant_method(self, previous_value, value): """The secant method itself @param previous_value: first value of interval @param previous_value: second va...
32.708861
101
0.540635
2,516
0.972555
0
0
0
0
0
0
891
0.344414
9add394027ddb25c4a3c822d581f2bbeacc67447
245
py
Python
variables.py
bestend/korquad
3b92fffcc950ff584e0f9755ea9b04f8bece7a31
[ "MIT" ]
1
2019-09-06T04:47:14.000Z
2019-09-06T04:47:14.000Z
variables.py
bestend/korquad
3b92fffcc950ff584e0f9755ea9b04f8bece7a31
[ "MIT" ]
6
2020-01-28T22:12:50.000Z
2022-02-09T23:30:45.000Z
variables.py
bestend/korquad
3b92fffcc950ff584e0f9755ea9b04f8bece7a31
[ "MIT" ]
null
null
null
import os import re MODEL_FILE_FORMAT = 'weights.{epoch:02d}-{val_loss:.2f}.h5' MODEL_REGEX_PATTERN = re.compile(r'^.*weights\.(\d+)\-\d+\.\d+\.h5$') LAST_MODEL_FILE_FORMAT = 'last.h5' TEAMS_WEBHOOK_URL = os.environ.get('TEAMS_WEBHOOK_URL', '')
35
69
0.714286
0
0
0
0
0
0
0
0
104
0.42449
9ade61531561b4025a09449d1265b8472b175b17
977
py
Python
svm.py
sciencementors2019/Image-Processer
a1b036f38166722d2bb0ee44de1f3558880312c5
[ "MIT" ]
null
null
null
svm.py
sciencementors2019/Image-Processer
a1b036f38166722d2bb0ee44de1f3558880312c5
[ "MIT" ]
null
null
null
svm.py
sciencementors2019/Image-Processer
a1b036f38166722d2bb0ee44de1f3558880312c5
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn import svm from mlxtend.plotting import plot_decision_regions import matplotlib.pyplot as plt # Create arbitrary dataset for example df = pd.DataFrame({'Planned_End': np.random.uniform(low=-5, high=5, size=50), 'Actual_End': np.random.uniform(low...
32.566667
85
0.663255
0
0
0
0
0
0
0
0
296
0.302968
9ae1bc0d9c8249afc93cd2e786ee58fa70373ce4
2,544
py
Python
tests/importing/test_read_genes.py
EKingma/Transposonmapper
1413bda16a0bd5f5f3ccf84d86193c2dba0ab01b
[ "Apache-2.0" ]
2
2021-11-23T09:39:35.000Z
2022-01-25T15:49:45.000Z
tests/importing/test_read_genes.py
EKingma/Transposonmapper
1413bda16a0bd5f5f3ccf84d86193c2dba0ab01b
[ "Apache-2.0" ]
76
2021-07-07T18:31:44.000Z
2022-03-22T10:04:40.000Z
tests/importing/test_read_genes.py
EKingma/Transposonmapper
1413bda16a0bd5f5f3ccf84d86193c2dba0ab01b
[ "Apache-2.0" ]
2
2021-09-16T10:56:20.000Z
2022-01-25T12:33:25.000Z
from transposonmapper.importing import ( load_default_files,read_genes ) def test_output_format(): a,b,c=load_default_files(gff_file=None,essentials_file=None,gene_names_file=None) a_0,b_0,c_0=read_genes(gff_file=a,essentials_file=b,gene_names_file=c) assert type(a_0)==dict, "the gene coordinates...
39.138462
107
0.717374
0
0
0
0
0
0
0
0
802
0.315252
9ae33df6172e3d387be468447aa95067143972f3
4,477
py
Python
src/apps/tractatusapp/views_spacetree.py
lambdamusic/wittgensteiniana
f9b37282dcf4b93f9a6218cc827a6ab7386a3dd4
[ "MIT" ]
1
2018-04-24T09:55:40.000Z
2018-04-24T09:55:40.000Z
src/apps/tractatusapp/views_spacetree.py
lambdamusic/wittgensteiniana
f9b37282dcf4b93f9a6218cc827a6ab7386a3dd4
[ "MIT" ]
null
null
null
src/apps/tractatusapp/views_spacetree.py
lambdamusic/wittgensteiniana
f9b37282dcf4b93f9a6218cc827a6ab7386a3dd4
[ "MIT" ]
1
2020-11-25T08:53:49.000Z
2020-11-25T08:53:49.000Z
""" Using http://thejit.org/static/v20/Docs/files/Options/Options-Canvas-js.html#Options.Canvas """ from django.http import HttpResponse, Http404, HttpResponseRedirect from django.urls import reverse from django.shortcuts import render, redirect, get_object_or_404 import json import os import json from libs.myuti...
33.916667
309
0.663837
0
0
0
0
0
0
0
0
2,957
0.660487
9ae3c34cb81d8405b95cc94d6b0a73cbfa7be42a
14,772
py
Python
vumi/blinkenlights/metrics_workers.py
apopheniac/vumi
e04bf32a0cf09292f03dfe8628798adff512b709
[ "BSD-3-Clause" ]
null
null
null
vumi/blinkenlights/metrics_workers.py
apopheniac/vumi
e04bf32a0cf09292f03dfe8628798adff512b709
[ "BSD-3-Clause" ]
null
null
null
vumi/blinkenlights/metrics_workers.py
apopheniac/vumi
e04bf32a0cf09292f03dfe8628798adff512b709
[ "BSD-3-Clause" ]
2
2018-03-05T18:01:45.000Z
2019-11-02T19:34:18.000Z
# -*- test-case-name: vumi.blinkenlights.tests.test_metrics_workers -*- import time import random import hashlib from datetime import datetime from twisted.python import log from twisted.internet.defer import inlineCallbacks, Deferred from twisted.internet import reactor from twisted.internet.task import LoopingCall ...
36.384236
79
0.641822
14,097
0.954305
3,875
0.262321
4,022
0.272272
0
0
4,422
0.29935
9ae436efa8485153023aeda553abb0051a92e57f
1,401
py
Python
src/sentry/web/forms/base_organization_member.py
JannKleen/sentry
8b29c8234bb51a81d5cab821a1f2ed4ea8e8bd88
[ "BSD-3-Clause" ]
1
2019-02-27T15:13:06.000Z
2019-02-27T15:13:06.000Z
src/sentry/web/forms/base_organization_member.py
rmax/sentry
8b29c8234bb51a81d5cab821a1f2ed4ea8e8bd88
[ "BSD-3-Clause" ]
5
2020-07-17T11:20:41.000Z
2021-05-09T12:16:53.000Z
src/sentry/web/forms/base_organization_member.py
zaasmi/codeerrorhelp
1ab8d3e314386b9b2d58dad9df45355bf6014ac9
[ "BSD-3-Clause" ]
2
2021-01-26T09:53:39.000Z
2022-03-22T09:01:47.000Z
from __future__ import absolute_import from django import forms from django.db import transaction from sentry.models import ( OrganizationMember, OrganizationMemberTeam, Team, ) class BaseOrganizationMemberForm(forms.ModelForm): """ Base form used by AddOrganizationMemberForm, InviteOrganization...
29.1875
94
0.68237
1,206
0.860814
0
0
407
0.290507
0
0
177
0.126338
9ae66ae64bed27a4c419e21d360710c58e9c3114
1,589
py
Python
turbinia/workers/fsstat.py
dfjxs/turbinia
23a97d9d826cbcc51e6b5dfd50d85251506bf242
[ "Apache-2.0" ]
1
2021-05-31T19:44:50.000Z
2021-05-31T19:44:50.000Z
turbinia/workers/fsstat.py
dfjxs/turbinia
23a97d9d826cbcc51e6b5dfd50d85251506bf242
[ "Apache-2.0" ]
null
null
null
turbinia/workers/fsstat.py
dfjxs/turbinia
23a97d9d826cbcc51e6b5dfd50d85251506bf242
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2021 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
33.104167
79
0.733166
715
0.449969
0
0
0
0
0
0
920
0.57898
9ae7351fe81fa3901619faf1757d1f1b2dffbe49
401
py
Python
app/django-doubtfire-api/endpoint/urls.py
JiatengTao/speaker-verification-api
89c0b82c49498426c4d35104e0e4935c193a3cb1
[ "MIT" ]
null
null
null
app/django-doubtfire-api/endpoint/urls.py
JiatengTao/speaker-verification-api
89c0b82c49498426c4d35104e0e4935c193a3cb1
[ "MIT" ]
null
null
null
app/django-doubtfire-api/endpoint/urls.py
JiatengTao/speaker-verification-api
89c0b82c49498426c4d35104e0e4935c193a3cb1
[ "MIT" ]
null
null
null
from django.urls import include, path from django.conf.urls import url from endpoint.views import ( enroll_user, validate_recording, check_redis_health, redirect_flower_dashboard, ) urlpatterns = [ path("enroll", enroll_user), path("validate", validate_recording), path("redis-healthcheck", ...
25.0625
61
0.733167
0
0
0
0
0
0
0
0
49
0.122195
9ae9da1c04d49fc47628f3418837d002feeee3c7
3,096
py
Python
back/src/crud.py
Celeo/wiki_elm
620caf74b4cc17d3ffe3231493df15e84bfcf67f
[ "MIT" ]
null
null
null
back/src/crud.py
Celeo/wiki_elm
620caf74b4cc17d3ffe3231493df15e84bfcf67f
[ "MIT" ]
null
null
null
back/src/crud.py
Celeo/wiki_elm
620caf74b4cc17d3ffe3231493df15e84bfcf67f
[ "MIT" ]
null
null
null
from datetime import datetime from typing import List, Optional import bcrypt from sqlalchemy.orm import Session from . import models, schemas def get_user(db: Session, id: int) -> models.User: """Return a single user by id. Args: db (Session): database connection id (int): id of the user ...
26.016807
105
0.648256
0
0
0
0
0
0
0
0
1,428
0.46124
9ae9dc9146555c9b41506690dc497c2bf3438943
170
py
Python
commands/cmd_invite.py
cygnus-dev/python01
e0111ef7031f2c931d433d3dc6449c6740a7880e
[ "MIT" ]
null
null
null
commands/cmd_invite.py
cygnus-dev/python01
e0111ef7031f2c931d433d3dc6449c6740a7880e
[ "MIT" ]
4
2021-06-08T22:27:42.000Z
2022-03-12T00:51:07.000Z
commands/cmd_invite.py
cygnus-dev/python01
e0111ef7031f2c931d433d3dc6449c6740a7880e
[ "MIT" ]
null
null
null
async def run(ctx): await ctx.send(''' `bot invite link:` <https://discord.com/api/oauth2/authorize?client_id=732933945057869867&permissions=538569921&scope=bot>''')
42.5
107
0.747059
0
0
0
0
0
0
169
0.994118
129
0.758824
9aea27159d7833c105fb4af0a9c01c188110c93d
2,693
py
Python
polymorphic/tests/test_utils.py
likeanaxon/django-polymorphic
ad4e6e90c82f897300c1c135bd7a95e4b2d802a3
[ "BSD-3-Clause" ]
1
2021-03-12T17:42:37.000Z
2021-03-12T17:42:37.000Z
polymorphic/tests/test_utils.py
likeanaxon/django-polymorphic
ad4e6e90c82f897300c1c135bd7a95e4b2d802a3
[ "BSD-3-Clause" ]
10
2020-02-12T01:46:41.000Z
2022-02-10T09:00:03.000Z
polymorphic/tests/test_utils.py
likeanaxon/django-polymorphic
ad4e6e90c82f897300c1c135bd7a95e4b2d802a3
[ "BSD-3-Clause" ]
1
2020-04-18T15:14:47.000Z
2020-04-18T15:14:47.000Z
from django.test import TransactionTestCase from polymorphic.models import PolymorphicModel, PolymorphicTypeUndefined from polymorphic.tests.models import ( Enhance_Base, Enhance_Inherit, Model2A, Model2B, Model2C, Model2D, ) from polymorphic.utils import ( get_base_polymorphic_model, r...
32.445783
82
0.671742
2,322
0.862235
0
0
0
0
0
0
395
0.146677
9aeae4d01c050a9274a24e3e6c5783d7fc583318
2,098
py
Python
blockchain/utils.py
TheEdgeOfRage/blockchain
f75764b5a5a87337200b14d1909077c31e2dbdc1
[ "MIT" ]
null
null
null
blockchain/utils.py
TheEdgeOfRage/blockchain
f75764b5a5a87337200b14d1909077c31e2dbdc1
[ "MIT" ]
null
null
null
blockchain/utils.py
TheEdgeOfRage/blockchain
f75764b5a5a87337200b14d1909077c31e2dbdc1
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2020 <[email protected]> # # Distributed under terms of the BSD 3-Clause license. import hashlib import itertools import json from decimal import Decimal from multiprocessing import ( cpu_count, Pool, Process, Queue ) class D...
18.900901
69
0.702574
174
0.082897
0
0
0
0
0
0
417
0.198666
9aebd92051cfcf6d0045079f9f922a518fd301b8
5,317
py
Python
myfunds/web/views/joint_limits/limit/views/participants.py
anzodev/myfunds
9f6cda99f443cec064d15d7ff7780f297cbdfe10
[ "MIT" ]
null
null
null
myfunds/web/views/joint_limits/limit/views/participants.py
anzodev/myfunds
9f6cda99f443cec064d15d7ff7780f297cbdfe10
[ "MIT" ]
null
null
null
myfunds/web/views/joint_limits/limit/views/participants.py
anzodev/myfunds
9f6cda99f443cec064d15d7ff7780f297cbdfe10
[ "MIT" ]
null
null
null
import peewee as pw from flask import g from flask import redirect from flask import render_template from flask import request from flask import url_for from myfunds.core.models import Account from myfunds.core.models import Category from myfunds.core.models import JointLimitParticipant from myfunds.web import auth fr...
30.912791
88
0.658454
0
0
0
0
4,501
0.84653
0
0
547
0.102878
9aec3cbbdf80ed6024cc8bfdc62a6afaf2fdc1c4
6,854
py
Python
elyra/pipeline/component_parser_kfp.py
rachaelhouse/elyra
e2f474f26f65fd7c5ec5602f6e40a229dda0a081
[ "Apache-2.0" ]
null
null
null
elyra/pipeline/component_parser_kfp.py
rachaelhouse/elyra
e2f474f26f65fd7c5ec5602f6e40a229dda0a081
[ "Apache-2.0" ]
null
null
null
elyra/pipeline/component_parser_kfp.py
rachaelhouse/elyra
e2f474f26f65fd7c5ec5602f6e40a229dda0a081
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018-2021 Elyra Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
45.390728
111
0.579224
5,966
0.870441
0
0
0
0
0
0
2,070
0.302013
9aedf1a23d553278d5b929adc837502da68eda10
356
py
Python
mayan/apps/mimetype/apps.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
2,743
2017-12-18T07:12:30.000Z
2022-03-27T17:21:25.000Z
mayan/apps/mimetype/apps.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
15
2017-12-18T14:58:07.000Z
2021-03-01T20:05:05.000Z
mayan/apps/mimetype/apps.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
257
2017-12-18T03:12:58.000Z
2022-03-25T08:59:10.000Z
from __future__ import unicode_literals from django.utils.translation import ugettext_lazy as _ from common import MayanAppConfig from .licenses import * # NOQA class MIMETypesApp(MayanAppConfig): name = 'mimetype' verbose_name = _('MIME types') def ready(self, *args, **kwargs): super(MIMETyp...
22.25
56
0.727528
188
0.52809
0
0
0
0
0
0
28
0.078652
9aefb8bc9120b71f8727047442cac13c02b21950
388
py
Python
test/level.py
Matt-London/command-line-tutorial
5b6afeedb4075de114e8c91756ecf3a03645fde7
[ "MIT" ]
1
2020-07-11T06:29:25.000Z
2020-07-11T06:29:25.000Z
test/level.py
Matt-London/Command-Line-Tutorial
5b6afeedb4075de114e8c91756ecf3a03645fde7
[ "MIT" ]
15
2020-07-10T20:01:51.000Z
2020-08-10T05:23:47.000Z
test/level.py
Matt-London/command-line-tutorial
5b6afeedb4075de114e8c91756ecf3a03645fde7
[ "MIT" ]
null
null
null
from packages.levels.Level import Level import packages.levels.levels as Levels import packages.resources.functions as function import packages.resources.variables as var from packages.filesystem.Directory import Directory from packages.filesystem.File import File var.bash_history = ("Check") test = Level("Instruct",...
27.714286
51
0.796392
0
0
0
0
0
0
0
0
30
0.07732
9af07d32c8be1202f3730dbd2847cb3a451513ad
1,235
py
Python
tests/test_buffers.py
TheCharmingCthulhu/cython-vst-loader
2d2d358515f24f4846ca664e5a9b366a207207a6
[ "MIT" ]
23
2020-07-29T14:44:29.000Z
2022-01-07T05:29:16.000Z
tests/test_buffers.py
TheCharmingCthulhu/cython-vst-loader
2d2d358515f24f4846ca664e5a9b366a207207a6
[ "MIT" ]
14
2020-09-09T02:38:24.000Z
2022-03-04T05:19:25.000Z
tests/test_buffers.py
TheCharmingCthulhu/cython-vst-loader
2d2d358515f24f4846ca664e5a9b366a207207a6
[ "MIT" ]
2
2021-06-05T23:30:08.000Z
2021-06-06T19:58:59.000Z
# noinspection PyUnresolvedReferences import unittest from cython_vst_loader.vst_loader_wrapper import allocate_float_buffer, get_float_buffer_as_list, \ free_buffer, \ allocate_double_buffer, get_double_buffer_as_list class TestBuffers(unittest.TestCase): def test_float_buffer(self): pointer = ...
36.323529
99
0.688259
1,004
0.812955
0
0
0
0
0
0
89
0.072065
9af148fc623927e65f3f0abe332698d9eddb80f8
1,520
py
Python
samples/17.multilingual-bot/translation/microsoft_translator.py
hangdong/botbuilder-python
8ff979a58fadc4356d76b9ce577f94da3245f664
[ "MIT" ]
null
null
null
samples/17.multilingual-bot/translation/microsoft_translator.py
hangdong/botbuilder-python
8ff979a58fadc4356d76b9ce577f94da3245f664
[ "MIT" ]
null
null
null
samples/17.multilingual-bot/translation/microsoft_translator.py
hangdong/botbuilder-python
8ff979a58fadc4356d76b9ce577f94da3245f664
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import uuid import requests class MicrosoftTranslator: def __init__(self, subscription_key: str, subscription_region: str): self.subscription_key = subscription_key self.subscription_region = subscriptio...
40
82
0.678947
1,394
0.917105
0
0
0
0
848
0.557895
708
0.465789
9af29a94a64ce15c2f18ac01d5658596e67aa248
48
py
Python
dachar/utils/__init__.py
roocs/dachar
687b6acb535f634791d13a435cded5f97cae8e76
[ "BSD-3-Clause" ]
2
2020-05-01T11:17:06.000Z
2020-11-23T10:37:24.000Z
dachar/utils/__init__.py
roocs/dachar
687b6acb535f634791d13a435cded5f97cae8e76
[ "BSD-3-Clause" ]
69
2020-03-26T15:39:26.000Z
2022-01-14T14:34:39.000Z
dachar/utils/__init__.py
roocs/dachar
687b6acb535f634791d13a435cded5f97cae8e76
[ "BSD-3-Clause" ]
null
null
null
from .common import * from .json_store import *
16
25
0.75
0
0
0
0
0
0
0
0
0
0
9af36b234d70f262e1618ab3933e4d7b9aedd9f4
2,760
py
Python
scraper/models.py
mrcnc/assessor-scraper
b502ebb157048d20294ca44ab0d30e3a44d86c08
[ "MIT" ]
null
null
null
scraper/models.py
mrcnc/assessor-scraper
b502ebb157048d20294ca44ab0d30e3a44d86c08
[ "MIT" ]
null
null
null
scraper/models.py
mrcnc/assessor-scraper
b502ebb157048d20294ca44ab0d30e3a44d86c08
[ "MIT" ]
1
2019-02-14T04:01:40.000Z
2019-02-14T04:01:40.000Z
# -*- coding: utf-8 -*- import os import logging from sqlalchemy import create_engine, Column, Integer, String, ForeignKey from sqlalchemy.engine.url import URL from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship from scraper import settings Base = declarative_base() def...
29.677419
73
0.721014
1,997
0.723551
0
0
0
0
0
0
260
0.094203
9af3a835ffd32ad662ca751cd48d5f535bf94f5d
487
py
Python
WeIrD-StRiNg-CaSe.py
lovefov/Python
ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8
[ "MIT" ]
null
null
null
WeIrD-StRiNg-CaSe.py
lovefov/Python
ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8
[ "MIT" ]
null
null
null
WeIrD-StRiNg-CaSe.py
lovefov/Python
ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8
[ "MIT" ]
1
2021-02-08T08:48:44.000Z
2021-02-08T08:48:44.000Z
def to_weird_case(string): arr=string.split() count=0 for i in arr: tmp=list(i) for j in range(len(tmp)): if j%2==0: tmp[j]=tmp[j].upper() arr[count] = ''.join(tmp) count+=1 return ' '.join(arr) ''' 一个比较不错的版本 def to_weird_case(string): r...
23.190476
97
0.521561
0
0
0
0
0
0
0
0
237
0.469307
9af63c97cc5b9b0bb2ddfde6ccac394409cbd012
1,573
py
Python
FTP_client/LHYlearning/Entry.py
welles2000/CCNProject
0f20718aa171571a952343d7a07c2f1c0f953a6e
[ "MulanPSL-1.0" ]
2
2022-03-29T05:43:09.000Z
2022-03-29T14:29:46.000Z
FTP_client/LHYlearning/Entry.py
welles2000/CCNProject
0f20718aa171571a952343d7a07c2f1c0f953a6e
[ "MulanPSL-1.0" ]
null
null
null
FTP_client/LHYlearning/Entry.py
welles2000/CCNProject
0f20718aa171571a952343d7a07c2f1c0f953a6e
[ "MulanPSL-1.0" ]
null
null
null
# 经典面向对象的GUI写法 from tkinter import * from tkinter import messagebox class Application(Frame): """一个经典的GUI程序""" def __init__(self,master=None): super().__init__(master) self.master = master self.pack() self.createWidget() def createWidget(self): """创建组件""" ...
24.2
75
0.577241
1,514
0.85779
0
0
0
0
0
0
494
0.279887
9af728f0342a41c7e42c05bfe4ce250d82a4e42b
839
py
Python
curso-em-video/ex054.py
joseluizbrits/sobre-python
316143c341e5a44070a3b13877419082774bd730
[ "MIT" ]
null
null
null
curso-em-video/ex054.py
joseluizbrits/sobre-python
316143c341e5a44070a3b13877419082774bd730
[ "MIT" ]
null
null
null
curso-em-video/ex054.py
joseluizbrits/sobre-python
316143c341e5a44070a3b13877419082774bd730
[ "MIT" ]
null
null
null
# Grupo da Maioridade '''Crie um programa que leia o ANO DE NASCIMENTO de SETE PESSOAS. No final, mostre quantas pessoas ainda não atingiram a maioridade e quantas já são maiores''' from datetime import date anoatual = date.today().year # Pegará o ano atual configurado na máquina totalmaior = 0 totalmenor = 0 for pess...
38.136364
87
0.682956
0
0
0
0
0
0
0
0
447
0.525882
9af8cf4aed2f78a490c8a32e60b1aabe24f15e72
2,160
py
Python
stellar/simulation/data.py
strfx/stellar
41b190eed016d2d6ad8548490a0c9620a02d711e
[ "MIT" ]
null
null
null
stellar/simulation/data.py
strfx/stellar
41b190eed016d2d6ad8548490a0c9620a02d711e
[ "MIT" ]
null
null
null
stellar/simulation/data.py
strfx/stellar
41b190eed016d2d6ad8548490a0c9620a02d711e
[ "MIT" ]
null
null
null
from typing import Tuple import numpy as np import png from skimage.transform import resize def load_world(filename: str, size: Tuple[int, int], resolution: int) -> np.array: """Load a preconstructred track to initialize world. Args: filename: Full path to the track file (png). ...
29.189189
83
0.611574
0
0
0
0
0
0
0
0
1,046
0.484259
9af8e51dd66ea49555fb4a24794f6c9c1dc7752a
885
py
Python
apps/user/serializers.py
major-hub/soil_app
ddd250161ad496afd4c8484f79500ff2657b51df
[ "MIT" ]
null
null
null
apps/user/serializers.py
major-hub/soil_app
ddd250161ad496afd4c8484f79500ff2657b51df
[ "MIT" ]
null
null
null
apps/user/serializers.py
major-hub/soil_app
ddd250161ad496afd4c8484f79500ff2657b51df
[ "MIT" ]
null
null
null
from rest_framework import serializers from user.models import User from main.exceptions.user_exceptions import UserException user_exception = UserException class UserRegisterSerializer(serializers.ModelSerializer): password_confirmation = serializers.CharField(max_length=128) class Meta: model = U...
32.777778
116
0.754802
719
0.812429
0
0
0
0
0
0
151
0.170621
9af8e62cf5607d29f1d31c790e20bc86925e4fe4
7,332
py
Python
bf_compiler.py
PurpleMyst/bf_compiler
51832ac9bb493b478c88f68798e99727cf43e180
[ "MIT" ]
31
2018-03-09T15:40:46.000Z
2021-01-15T10:03:40.000Z
bf_compiler.py
PurpleMyst/bf_compiler
51832ac9bb493b478c88f68798e99727cf43e180
[ "MIT" ]
null
null
null
bf_compiler.py
PurpleMyst/bf_compiler
51832ac9bb493b478c88f68798e99727cf43e180
[ "MIT" ]
2
2018-03-09T23:59:28.000Z
2021-01-15T10:05:00.000Z
#!/usr/bin/env python3 import argparse import ctypes import os import sys from llvmlite import ir, binding as llvm INDEX_BIT_SIZE = 16 def parse(bf): bf = iter(bf) result = [] for c in bf: if c == "[": result.append(parse(bf)) elif c == "]": break else: ...
31.2
79
0.610475
0
0
0
0
0
0
0
0
1,429
0.194899
9afad36409d9c59fa007a59c5630a3d8610a0ebd
4,715
py
Python
dapbench/record_dap.py
cedadev/dapbench
e722c52f1d38d0ea008e177a1d68adff0a5daecc
[ "BSD-3-Clause-Clear" ]
null
null
null
dapbench/record_dap.py
cedadev/dapbench
e722c52f1d38d0ea008e177a1d68adff0a5daecc
[ "BSD-3-Clause-Clear" ]
null
null
null
dapbench/record_dap.py
cedadev/dapbench
e722c52f1d38d0ea008e177a1d68adff0a5daecc
[ "BSD-3-Clause-Clear" ]
1
2019-08-05T20:01:23.000Z
2019-08-05T20:01:23.000Z
#!/usr/bin/env python # BSD Licence # Copyright (c) 2011, Science & Technology Facilities Council (STFC) # All rights reserved. # # See the LICENSE file in the source distribution of this software for # the full license text. """ Execute a programme that makes NetCDF-API OPeNDAP calls, capturing request events and timi...
30.419355
103
0.599152
2,111
0.44772
1,078
0.228632
0
0
0
0
1,486
0.315164