hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
93e5ef1257a4fb8a25df2cd530120e925e639361
20,022
py
Python
pint/pandas_interface/pint_array.py
andrewgsavage/pint
94a0e6c34a3cd028fcf37457f65f0803beb32910
[ "BSD-3-Clause" ]
null
null
null
pint/pandas_interface/pint_array.py
andrewgsavage/pint
94a0e6c34a3cd028fcf37457f65f0803beb32910
[ "BSD-3-Clause" ]
2
2018-08-09T10:58:49.000Z
2019-09-17T20:19:21.000Z
pint/pandas_interface/pint_array.py
andrewgsavage/pint
94a0e6c34a3cd028fcf37457f65f0803beb32910
[ "BSD-3-Clause" ]
1
2019-08-22T05:07:56.000Z
2019-08-22T05:07:56.000Z
# -*- coding: utf-8 -*- """ pint.pandas_interface.pint_array ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # I'm happy with both of these as long as Andrew and Zebedee are added on # but need to check with Pint Authors... :copyright: 2018 by Pint Authors, see AUTHORS for more details. :license: BSD, see LIC...
32.293548
87
0.596094
93e62211c04afc76dc6b879b9d0ce48ded4c6cb6
7,077
py
Python
custom_components/hasl3/binary_sensor.py
jadlers/integration
f8a489ce6febdada9330cf8b319d71d34e8efb89
[ "Apache-2.0" ]
null
null
null
custom_components/hasl3/binary_sensor.py
jadlers/integration
f8a489ce6febdada9330cf8b319d71d34e8efb89
[ "Apache-2.0" ]
null
null
null
custom_components/hasl3/binary_sensor.py
jadlers/integration
f8a489ce6febdada9330cf8b319d71d34e8efb89
[ "Apache-2.0" ]
null
null
null
""" SL Platform Sensor """ import logging from homeassistant.helpers.entity import Entity from homeassistant.core import HomeAssistant, State from homeassistant.util.dt import now from .const import ( DOMAIN, HASL_VERSION, DEVICE_NAME, DEVICE_MANUFACTURER, DEVICE_MODEL, DEVICE_GUID, DEVICE...
35.923858
200
0.607602
93e65dec7f15bbc245408359e7574d1a837d1194
1,447
py
Python
filterdesigner/IIRDesign/_iirpeak.py
Yuki-F-HCU/filterdesigner
bb735d507da0338b2925f84e54df091ce1c32f95
[ "BSD-3-Clause" ]
null
null
null
filterdesigner/IIRDesign/_iirpeak.py
Yuki-F-HCU/filterdesigner
bb735d507da0338b2925f84e54df091ce1c32f95
[ "BSD-3-Clause" ]
null
null
null
filterdesigner/IIRDesign/_iirpeak.py
Yuki-F-HCU/filterdesigner
bb735d507da0338b2925f84e54df091ce1c32f95
[ "BSD-3-Clause" ]
null
null
null
import scipy.signal as signal from typing import List, Tuple import numpy as np def iirpeak(w0:float, bw:float)->Tuple: """ Design second-order IIR peak (resonant) digital filter. A peak filter is a band-pass filter with a narrow bandwidth (high quality factor). It rejects compone...
30.145833
75
0.585349
93e668e551e81d7087b1c36ae487ec147351eaa6
5,222
py
Python
run_train.py
cheng-xie/dpgfddagger
5264d5b9e0ab76fc9620da63bcfd78b25dadcbec
[ "MIT" ]
null
null
null
run_train.py
cheng-xie/dpgfddagger
5264d5b9e0ab76fc9620da63bcfd78b25dadcbec
[ "MIT" ]
null
null
null
run_train.py
cheng-xie/dpgfddagger
5264d5b9e0ab76fc9620da63bcfd78b25dadcbec
[ "MIT" ]
null
null
null
from environment import GymEnvironment from ddpg_agent import DDPGAgent import numpy as np import sys import random import os import json import pdb import argparse def main(args): use_cuda = args.cuda is_test = args.test model_path = args.model_path conf_path = os.path.join(model_path, 'config.json'...
40.48062
142
0.621601
93e67431ad79875e59219b762fed86f7ff021faa
18,817
py
Python
virtual/lib/python3.9/site-packages/flask_uploads.py
Kevson102/Pitches
a1c41b83edf687135edf35dc068696ea6b7bf824
[ "MIT" ]
null
null
null
virtual/lib/python3.9/site-packages/flask_uploads.py
Kevson102/Pitches
a1c41b83edf687135edf35dc068696ea6b7bf824
[ "MIT" ]
null
null
null
virtual/lib/python3.9/site-packages/flask_uploads.py
Kevson102/Pitches
a1c41b83edf687135edf35dc068696ea6b7bf824
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ flaskext.uploads ================ This module provides upload support for Flask. The basic pattern is to set up an `UploadSet` object and upload your files to it. :copyright: 2010 Matthew "LeafStorm" Frazier :license: MIT/X11, see LICENSE for details """ import sys PY3 = sys.version_inf...
37.187747
79
0.645586
93e688ae383448e53a84998bd0cbf01bc11bc6ac
530
py
Python
sketch/models/MSStyleShadow.py
shrredd/sketch
eebcd5077ae355f914bc77ac44d06410f9caa132
[ "MIT", "Unlicense" ]
2
2018-10-22T12:43:51.000Z
2018-12-02T02:41:55.000Z
sketch/models/MSStyleShadow.py
shrredd/sketch
eebcd5077ae355f914bc77ac44d06410f9caa132
[ "MIT", "Unlicense" ]
null
null
null
sketch/models/MSStyleShadow.py
shrredd/sketch
eebcd5077ae355f914bc77ac44d06410f9caa132
[ "MIT", "Unlicense" ]
null
null
null
class MSStyleShadow(object): """ Each a float. Names should be self-explanatory """ @property def offsetX(self): pass @property def offsetY(self): pass @property def blurRadius(self): pass @property def spread(self): pass @property ...
17.666667
67
0.564151
93e6928f3de5db686207c8322c6a5478d741e0be
21,927
py
Python
Test32_munit/MUNIT.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
3
2018-07-29T17:31:58.000Z
2019-06-27T10:36:34.000Z
Test32_munit/MUNIT.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
null
null
null
Test32_munit/MUNIT.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
1
2019-02-18T02:27:39.000Z
2019-02-18T02:27:39.000Z
from ops import * from utils import * from glob import glob import time from tensorflow.contrib.data import batch_and_drop_remainder class MUNIT(object) : def __init__(self, sess, args): self.model_name = 'MUNIT' self.sess = sess self.checkpoint_dir = args.checkpoint_dir self.result...
42.74269
233
0.591919
93e69c773d6295e446029cb09c93864101e60318
159
py
Python
rocket/connectors/base.py
Contraz/pyrocket
bc1129ba30b32a3324f8416a698f9d93555f9e35
[ "Zlib" ]
19
2017-04-14T09:52:16.000Z
2022-03-20T00:43:57.000Z
rocket/connectors/base.py
Contraz/pyrocket
bc1129ba30b32a3324f8416a698f9d93555f9e35
[ "Zlib" ]
2
2018-07-03T21:31:01.000Z
2018-08-14T19:43:56.000Z
rocket/connectors/base.py
Contraz/pyrocket
bc1129ba30b32a3324f8416a698f9d93555f9e35
[ "Zlib" ]
5
2017-07-29T20:59:34.000Z
2021-08-21T20:57:18.000Z
class Connector: def update(self): pass def track_added(self, name): pass def controller_row_changed(self, row): pass
12.230769
42
0.584906
93e6ec12ef13d3bd5c6ba088921f6e5657df87b8
43,523
py
Python
gamecam/pyrcolate.py
SpooksMcGoose/gamecam
4325357422c81e78bad482b33f718c00c0b7f424
[ "MIT" ]
null
null
null
gamecam/pyrcolate.py
SpooksMcGoose/gamecam
4325357422c81e78bad482b33f718c00c0b7f424
[ "MIT" ]
null
null
null
gamecam/pyrcolate.py
SpooksMcGoose/gamecam
4325357422c81e78bad482b33f718c00c0b7f424
[ "MIT" ]
null
null
null
import json import operator import os import shutil import string import sys import time import cv2 import piexif import numpy as np from sklearn.cluster import KMeans from datetime import datetime as dt, timedelta as td from matplotlib import pyplot as plt from matplotlib.widgets import Slider, RectangleSelector im...
32.407297
79
0.561106
93e6f19884b0473bea2f69bb73277d25e894fc87
95
py
Python
python/16_numpy/13_innerandouter.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
python/16_numpy/13_innerandouter.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
python/16_numpy/13_innerandouter.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
3
2021-09-22T11:06:58.000Z
2022-01-25T09:29:24.000Z
Solution to [Inner and Outer](https://www.hackerrank.com/challenges/np-inner-and-outer/problem)
95
95
0.8
93e6f737ee430158f6a3956b639284e562c4adb2
32,519
py
Python
sirepo/template/warpvnd.py
yeeon/sirepo
081595df256d40fbc7959614689d64ad2bc745d4
[ "Apache-2.0" ]
1
2019-06-06T08:08:11.000Z
2019-06-06T08:08:11.000Z
sirepo/template/warpvnd.py
yeeon/sirepo
081595df256d40fbc7959614689d64ad2bc745d4
[ "Apache-2.0" ]
null
null
null
sirepo/template/warpvnd.py
yeeon/sirepo
081595df256d40fbc7959614689d64ad2bc745d4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- u"""Warp VND/WARP execution template. :copyright: Copyright (c) 2017 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function from pykern import pkcollections from pykern import pkio from...
35.735165
145
0.611827
93e719f9a7a130eb2b81ebf2ec2ccdf192456845
336
py
Python
cupy/linalg/eigenvalue.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
cupy/linalg/eigenvalue.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
cupy/linalg/eigenvalue.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
1
2018-11-18T00:36:51.000Z
2018-11-18T00:36:51.000Z
def eig(a): # TODO(beam2d): Implement it raise NotImplementedError def eigh(a, UPLO='L'): # TODO(beam2d): Implement it raise NotImplementedError def eigvals(a): # TODO(beam2d): Implement it raise NotImplementedError def eigvalsh(a, UPLO='L'): # TODO(beam2d): Implement it raise NotI...
17.684211
32
0.678571
93e71a01ec61686811296496cc625a0eecdcf18c
11,313
py
Python
src/SALib/analyze/morris.py
RWTH-EBC/SALib
f79a11833638acc1e21c95f2fbbb1c4c16874c6a
[ "MIT" ]
8
2017-05-05T08:56:41.000Z
2020-12-28T15:03:38.000Z
src/SALib/analyze/morris.py
JoerivanEngelen/SALib
0a36d0edaf96b1ceea4c9a56019657c84a553c38
[ "MIT" ]
1
2015-04-22T10:04:31.000Z
2015-04-22T10:04:32.000Z
src/SALib/analyze/morris.py
JoerivanEngelen/SALib
0a36d0edaf96b1ceea4c9a56019657c84a553c38
[ "MIT" ]
1
2017-11-05T08:05:23.000Z
2017-11-05T08:05:23.000Z
from __future__ import division from __future__ import print_function from scipy.stats import norm import numpy as np from . import common_args from ..util import read_param_file, compute_groups_matrix, ResultDict from ..sample.morris import compute_delta def analyze(problem, X, Y, num_resamples=1000, ...
36.14377
81
0.600106
93e71b316c1cd17dd6439800ba328718662a5121
667
py
Python
lib/codegen/meta/isa/x86/__init__.py
brson/cretonne
9384d3d7363246245b2ffd1a09938e4028f620a2
[ "Apache-2.0" ]
null
null
null
lib/codegen/meta/isa/x86/__init__.py
brson/cretonne
9384d3d7363246245b2ffd1a09938e4028f620a2
[ "Apache-2.0" ]
null
null
null
lib/codegen/meta/isa/x86/__init__.py
brson/cretonne
9384d3d7363246245b2ffd1a09938e4028f620a2
[ "Apache-2.0" ]
null
null
null
""" x86 Target Architecture ------------------------- This target ISA generates code for x86 CPUs with two separate CPU modes: `I32` 32-bit x86 architecture, also known as 'IA-32', also sometimes referred to as 'i386', however note that Cretonne depends on instructions not in the original `i386`, such as ...
29
75
0.70015
93e72720578e8c525867f38ce71dcfdeb7b185aa
73
py
Python
abc/136/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/136/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/136/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
A, B, C = map(int, input().split()) C -= max(A - B, 0) print(max([0, C]))
24.333333
35
0.493151
93e741dd76637e8f101f92bbf8a538830abb66b2
6,915
py
Python
net_benefit_ascvd/prediction_utils/pytorch_utils/pytorch_metrics.py
som-shahlab/net_benefit_ascvd
1259692025d90618211206105d8d23bd5a90a66c
[ "MIT" ]
null
null
null
net_benefit_ascvd/prediction_utils/pytorch_utils/pytorch_metrics.py
som-shahlab/net_benefit_ascvd
1259692025d90618211206105d8d23bd5a90a66c
[ "MIT" ]
null
null
null
net_benefit_ascvd/prediction_utils/pytorch_utils/pytorch_metrics.py
som-shahlab/net_benefit_ascvd
1259692025d90618211206105d8d23bd5a90a66c
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn.functional as F # Metric functions that have the same function call signature as torch loss functions # Details # Operate on unnormalized model outputs # Take a sample_weight argument # Take a surrogate_fn argument for smooth differentiable relaxations of the metric de...
26.494253
111
0.650759
93e742a4705fdac62cab87fd2a8db41e35ed8955
4,001
py
Python
tests/common/test_op/ascend/bessel_i0e.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/ascend/bessel_i0e.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/ascend/bessel_i0e.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # 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 agre...
38.84466
101
0.670582
93e742dc4056af101cc0adbef60edc02451632e8
11,707
py
Python
sacla/scripts/backups/old_scripts/ancient-preOct2016/sacla2_Chip_Manager1_v1.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
sacla/scripts/backups/old_scripts/ancient-preOct2016/sacla2_Chip_Manager1_v1.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
sacla/scripts/backups/old_scripts/ancient-preOct2016/sacla2_Chip_Manager1_v1.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
import pv import os, re, sys import math import string from time import sleep from ca import caput, caget from sacla2_Chip_StartUp1 import get_xy from sacla2_Chip_StartUp1 import make_path_dict from sacla2_Chip_StartUp1 import scrape_dcparameters ########################################### # OLD Chip_Manager from SAC...
33.353276
115
0.569915
93e74defeed9c9686e8933703da3def888c26377
6,415
py
Python
ciphers/xor_cipher.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
ciphers/xor_cipher.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
ciphers/xor_cipher.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
28.638393
85
0.551832
93e76c531b2bcdb4dd90df5fb8f8603773676412
2,288
py
Python
SOLO/visualize.py
youngster-all/Unified-Gesture
8d20e051f2b692244c38a4d016629f13fe81c200
[ "MIT" ]
1
2019-12-24T17:00:11.000Z
2019-12-24T17:00:11.000Z
SOLO/visualize.py
youngster-all/Unified-Gesture
8d20e051f2b692244c38a4d016629f13fe81c200
[ "MIT" ]
null
null
null
SOLO/visualize.py
youngster-all/Unified-Gesture
8d20e051f2b692244c38a4d016629f13fe81c200
[ "MIT" ]
1
2019-12-24T17:39:46.000Z
2019-12-24T17:39:46.000Z
import cv2 import numpy as np from preprocess.find_folder import find_folder from SOLO.preprocess.flag import flag from SOLO.preprocess.solo_labelgen import label_generator, grid_generator f = flag() grid = f.grid grid_size = f.grid_size target_size = f.target_size threshold = f.threshold def visualize(image, outpu...
33.647059
118
0.629371
93e773a710ec63836e5f56fce18a31e6da5b609a
3,864
py
Python
frequency_planner/frequency_mask.py
TheSDK-blocks/frequency_planner
ef9e75c19753d5a0561eec23ceb780fe8bc36b69
[ "Apache-2.0" ]
null
null
null
frequency_planner/frequency_mask.py
TheSDK-blocks/frequency_planner
ef9e75c19753d5a0561eec23ceb780fe8bc36b69
[ "Apache-2.0" ]
null
null
null
frequency_planner/frequency_mask.py
TheSDK-blocks/frequency_planner
ef9e75c19753d5a0561eec23ceb780fe8bc36b69
[ "Apache-2.0" ]
null
null
null
""" ======== Frequency mask ======== A frequency domain signal class to provide methods to vcombine and merge responses Current docstring documentation style is Numpy https://numpydoc.readthedocs.io/en/latest/format.html This text here is to remind you that documentation is important. However, youu may find it out ...
27.6
89
0.613354
93e781b35cc8436e36f5b22b046c469fa4a897ef
8,451
py
Python
quest/keras/applications/vgg16.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
75
2018-08-03T01:10:36.000Z
2022-02-25T05:08:39.000Z
keras/applications/vgg16.py
coderclear/ConvGRU
c458024d5c379ef990f72b6f6b738301e1895cff
[ "MIT" ]
9
2018-08-14T14:33:58.000Z
2021-09-06T07:04:14.000Z
keras/applications/vgg16.py
coderclear/ConvGRU
c458024d5c379ef990f72b6f6b738301e1895cff
[ "MIT" ]
19
2018-08-11T20:44:42.000Z
2021-12-01T00:41:52.000Z
# -*- coding: utf-8 -*- """VGG16 model for Keras. # Reference - [Very Deep Convolutional Networks for Large-Scale Image Recognition](https://arxiv.org/abs/1409.1556) """ from __future__ import print_function from __future__ import absolute_import import warnings from ..models import Model from ..layers import Flat...
43.787565
145
0.606082
93e78553c8a4e8b704890e6dcf8fdd785802c321
17,119
py
Python
pontoon/settings/base.py
zbraniecki/pontoon
d559316783938bc66d5d9a52dcdb01137475c259
[ "BSD-3-Clause" ]
1
2017-04-04T06:55:46.000Z
2017-04-04T06:55:46.000Z
pontoon/settings/base.py
zbraniecki/pontoon
d559316783938bc66d5d9a52dcdb01137475c259
[ "BSD-3-Clause" ]
null
null
null
pontoon/settings/base.py
zbraniecki/pontoon
d559316783938bc66d5d9a52dcdb01137475c259
[ "BSD-3-Clause" ]
null
null
null
"""Django settings for Pontoon.""" import os import socket from django.utils.functional import lazy import dj_database_url _dirname = os.path.dirname ROOT = _dirname(_dirname(_dirname(os.path.abspath(__file__)))) def path(*args): return os.path.join(ROOT, *args) # Environment-dependent settings. These are l...
31.068966
88
0.629651
93e7cb8d9b8ca3c858f8cec83be934a55953e69a
21
py
Python
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/Main/MapSelect/MapButton/map_button.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/Main/MapSelect/MapButton/map_button.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/Main/MapSelect/MapButton/map_button.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class MapButton: pass
21
21
0.857143
93e7d6771c0623f9842c7fbd8add54654f6b885a
27,844
py
Python
rotkehlchen/constants/cryptocompare.py
bobkilla/rotkehlchen
f611351e39cb1ebcc16f1344b4f7adaa441cc763
[ "BSD-3-Clause" ]
1
2019-08-04T08:30:14.000Z
2019-08-04T08:30:14.000Z
rotkehlchen/constants/cryptocompare.py
bobkilla/rotkehlchen
f611351e39cb1ebcc16f1344b4f7adaa441cc763
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/constants/cryptocompare.py
bobkilla/rotkehlchen
f611351e39cb1ebcc16f1344b4f7adaa441cc763
[ "BSD-3-Clause" ]
null
null
null
WORLD_TO_CRYPTOCOMPARE = { 'DATAcoin': 'DATA', 'IOTA': 'MIOTA', 'XRB': 'NANO', 'AIR-2': 'AIR*', # In Rotkehlchen Bitswift is BITS-2 but in cryptocompare it's BITSW 'BITS-2': 'BITSW', # In Rotkehlchen BTM is Bitmark and BTM-2 is Bytom but in # Cryptocompare Bytom is BTM and Bitmark is BTM...
43.303266
97
0.681332
93e7e0292e0ecee42c93a84f630f0e42c642c820
474
py
Python
test/unittests/test_et.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
null
null
null
test/unittests/test_et.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
6
2018-07-24T22:46:28.000Z
2018-07-29T19:13:09.000Z
test/unittests/test_et.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
1
2018-07-24T18:22:01.000Z
2018-07-24T18:22:01.000Z
import numpy as np from VariableUnittest import VariableUnitTest from gwlfe.Input.WaterBudget import ET class TestET(VariableUnitTest): def test_DailyETPart1(self): z = self.z np.testing.assert_array_almost_equal(ET.DailyET_f(z.Temp, z.KV, z.PcntET, z.DayHrs), ...
33.857143
110
0.580169
93e843b7a7daad68ebcebe53be5e1980f0a7635d
433
py
Python
src/hepdata_maker/useful_functions.py
butsuri43/hepdata_maker
b241e9fc89bd79ac762d3a123be33a2bdd2a8b02
[ "Apache-2.0" ]
null
null
null
src/hepdata_maker/useful_functions.py
butsuri43/hepdata_maker
b241e9fc89bd79ac762d3a123be33a2bdd2a8b02
[ "Apache-2.0" ]
9
2021-09-07T07:11:17.000Z
2021-09-07T18:33:34.000Z
src/hepdata_maker/useful_functions.py
butsuri43/hepdata_maker
b241e9fc89bd79ac762d3a123be33a2bdd2a8b02
[ "Apache-2.0" ]
null
null
null
import scipy.stats # type: ignore import numpy as np def poisson_interval_RooFit_style(data:np.ndarray, CL:float=0.68) -> np.ndarray: """ get RooFit-style Poisson interval for data in numpy array. """ down_var=np.nan_to_num(scipy.stats.gamma.ppf((1.-CL)/2.,data))-data ...
36.083333
71
0.646651
93e86c7a93de76c00e4c728321a9f31c45b9ec85
144,810
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/bar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/bar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/bar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): # marker # ------ @property def marker(self): """ The 'marker' property is an instance of Marker that may be specified as: ...
35.606098
87
0.559216
93e88841ef750fa9a66bb8b886074d56b9f28f55
5,598
py
Python
git/test/performance/test_streams.py
yarikoptic/GitPython
7576b282013249a2b20ccda4acacefd5e625ea39
[ "BSD-3-Clause" ]
1
2020-10-15T06:16:48.000Z
2020-10-15T06:16:48.000Z
git/test/performance/test_streams.py
yarikoptic/GitPython
7576b282013249a2b20ccda4acacefd5e625ea39
[ "BSD-3-Clause" ]
null
null
null
git/test/performance/test_streams.py
yarikoptic/GitPython
7576b282013249a2b20ccda4acacefd5e625ea39
[ "BSD-3-Clause" ]
null
null
null
"""Performance data streaming performance""" from git.test.lib import * from gitdb import * from gitdb.util import bin_to_hex from time import time import os import sys import stat import subprocess from gitdb.test.lib import make_memory_file from lib import ( TestBigRepoR ) class TestObjDBPerformance(Tes...
42.409091
200
0.544302
93e890740609c40915ea9f2c1445fe31b7070d20
7,062
py
Python
app/facial_verification.py
omkarudawant/Facial-Recognition
790372885ab96b049044a859b86f9b13c1cedf2a
[ "MIT" ]
1
2021-01-21T04:54:26.000Z
2021-01-21T04:54:26.000Z
app/facial_verification.py
omkarudawant/Facial-Recognition
790372885ab96b049044a859b86f9b13c1cedf2a
[ "MIT" ]
null
null
null
app/facial_verification.py
omkarudawant/Facial-Recognition
790372885ab96b049044a859b86f9b13c1cedf2a
[ "MIT" ]
1
2020-08-09T10:24:14.000Z
2020-08-09T10:24:14.000Z
from warnings import filterwarnings filterwarnings('ignore') import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import tensorflow as tf tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR) from mtcnn import MTCNN import numpy as np from PIL import Image import cv2 class FaceVerification: """ A cl...
36.402062
92
0.564996
93e892500f22a26ce566676427534015ee01e8a0
737
py
Python
leetcode/230.KthSmallestElementInBST/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
leetcode/230.KthSmallestElementInBST/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
leetcode/230.KthSmallestElementInBST/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def kthSmallest(self, root: TreeNode, k: int) -> int: self.res = None self.c = 0 sel...
33.5
65
0.552239
93e898a4b46c05cc6b585e24a53adbf6852c6f05
962
py
Python
satchless/contrib/delivery/simplepost/providers.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
1
2015-11-05T05:09:27.000Z
2015-11-05T05:09:27.000Z
satchless/contrib/delivery/simplepost/providers.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
null
null
null
satchless/contrib/delivery/simplepost/providers.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
null
null
null
from django.utils.translation import ugettext_lazy as _ from satchless.delivery import DeliveryProvider from . import forms from . import models class PostDeliveryProvider(DeliveryProvider): name = _("Post delivery") def __unicode__(self): return unicode(self.name) def enum_types(self, customer=N...
32.066667
81
0.702703
93e89ecceb83e6f22b2fa875cfc56602fdef5696
37,134
py
Python
pyscf/fci/direct_spin1.py
mussard/pyscf
6c78bd73740544dd9b6b7e82b7da6b385eab38ab
[ "Apache-2.0" ]
2
2019-05-28T05:25:56.000Z
2019-11-09T02:16:43.000Z
pyscf/fci/direct_spin1.py
mussard/pyscf
6c78bd73740544dd9b6b7e82b7da6b385eab38ab
[ "Apache-2.0" ]
null
null
null
pyscf/fci/direct_spin1.py
mussard/pyscf
6c78bd73740544dd9b6b7e82b7da6b385eab38ab
[ "Apache-2.0" ]
1
2019-11-09T02:13:16.000Z
2019-11-09T02:13:16.000Z
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
41.676768
95
0.611919
93e8a73274da2691f20250c4675b0e6985b65b34
4,866
py
Python
nova/virt/libvirt/volume/scality.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/virt/libvirt/volume/scality.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/virt/libvirt/volume/scality.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-07-24T01:18:44.000Z
2020-07-24T01:18:44.000Z
# 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 writing, software # d...
35.518248
78
0.620838
93e8ac173e721d9623fce91f30ac4642d273caba
53,626
py
Python
python/paddle/trainer_config_helpers/networks.py
AI-books/Paddle
5b5f4f514047975ac09ec42b31e46dabf235e7dd
[ "Apache-2.0" ]
null
null
null
python/paddle/trainer_config_helpers/networks.py
AI-books/Paddle
5b5f4f514047975ac09ec42b31e46dabf235e7dd
[ "Apache-2.0" ]
null
null
null
python/paddle/trainer_config_helpers/networks.py
AI-books/Paddle
5b5f4f514047975ac09ec42b31e46dabf235e7dd
[ "Apache-2.0" ]
1
2020-06-04T04:27:15.000Z
2020-06-04T04:27:15.000Z
# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
35.608234
92
0.614795
93e8b519a9e20cf8cb5ed1e327e410c80cf6f6b3
1,322
py
Python
tools/templatetags/toolstags.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
2
2016-09-02T12:45:31.000Z
2018-02-10T10:18:11.000Z
tools/templatetags/toolstags.py
Socialsquare/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
17
2020-03-24T15:58:05.000Z
2022-02-10T08:08:57.000Z
tools/templatetags/toolstags.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
1
2018-01-05T08:02:18.000Z
2018-01-05T08:02:18.000Z
import os from django import template from ..models import Tool, StoryOverviewPage, ToolOverviewPage, CategoryGroupOverviewPage register = template.Library() @register.filter def css_filefield(filefield): """ Filter, takes Django FileField instance as an argument and returns css class string. """ ...
25.921569
89
0.642965
93e8e3fe8df78b62c026b5d6923423a645befd7f
3,128
py
Python
tests/components/qwikswitch/test_init.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
1
2021-09-29T20:33:32.000Z
2021-09-29T20:33:32.000Z
tests/components/qwikswitch/test_init.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
3
2021-09-08T03:31:36.000Z
2022-03-12T01:00:03.000Z
tests/components/qwikswitch/test_init.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""Test qwikswitch sensors.""" import asyncio import logging from homeassistant.components.qwikswitch import DOMAIN as QWIKSWITCH from homeassistant.const import EVENT_HOMEASSISTANT_START from homeassistant.setup import async_setup_component from tests.test_util.aiohttp import MockLongPollSideEffect _LOGGER = loggin...
28.697248
88
0.598146
93e8f4f7dfbf9e3be055914dbe89b047d88b7bf8
6,729
py
Python
sdk/python/sawtooth_processor_test/message_factory.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
sdk/python/sawtooth_processor_test/message_factory.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
1
2021-12-09T23:11:26.000Z
2021-12-09T23:11:26.000Z
sdk/python/sawtooth_processor_test/message_factory.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Intel Corporation # # 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 wri...
32.196172
80
0.655224
93e904fe8991869d5c9be33db03763c267759eb6
4,004
py
Python
alipay/aop/api/request/AlipayInsSceneClaimNewreportCreateRequest.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/request/AlipayInsSceneClaimNewreportCreateRequest.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/request/AlipayInsSceneClaimNewreportCreateRequest.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.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayInsSceneClaimNewreportCreateModel import AlipayInsSceneClaimNewreportCreateModel class AlipayInsSceneClaimNewreportCreateReque...
27.613793
148
0.647353
93e9364b291de3bc0ad2ab38a0d04e57aaa3b362
1,483
py
Python
ForgeGit/forgegit/controllers.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2019-03-17T04:16:15.000Z
2019-03-17T04:16:15.000Z
ForgeGit/forgegit/controllers.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
ForgeGit/forgegit/controllers.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
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 (t...
42.371429
68
0.706001
93e954ac3db5a02d4e68f92ce11ddd552a5da20b
16,785
py
Python
nile/common/timeutils.py
Orpheus11/nile
b92d514f57eec9583d9e6f2a7df83506efe2a2e8
[ "Apache-2.0" ]
null
null
null
nile/common/timeutils.py
Orpheus11/nile
b92d514f57eec9583d9e6f2a7df83506efe2a2e8
[ "Apache-2.0" ]
null
null
null
nile/common/timeutils.py
Orpheus11/nile
b92d514f57eec9583d9e6f2a7df83506efe2a2e8
[ "Apache-2.0" ]
null
null
null
""" Time related utilities and helper functions. """ import calendar import datetime import logging import time from debtcollector import removals import iso8601 from monotonic import monotonic as now import pytz import six from nile.common import reflection # ISO 8601 extended time format with microseconds _ISO860...
31.669811
79
0.61835
93e9adcd744d27e2c6d804404daee642c54f8b89
2,622
py
Python
arcface/cpn/network.py
DerryHub/the-TaobaoLive-Commodity-Identify-Competition
7e5e5c4fbddd9949fe01810d58bd7994889c007c
[ "MIT" ]
4
2020-08-15T14:49:37.000Z
2022-01-16T08:34:07.000Z
arcface/cpn/network.py
weilin-droid/the-TaobaoLive-Commodity-Identify-Competition
7e5e5c4fbddd9949fe01810d58bd7994889c007c
[ "MIT" ]
null
null
null
arcface/cpn/network.py
weilin-droid/the-TaobaoLive-Commodity-Identify-Competition
7e5e5c4fbddd9949fe01810d58bd7994889c007c
[ "MIT" ]
2
2021-05-26T05:16:09.000Z
2021-06-09T09:07:49.000Z
from arcface.cpn.resnet import ResNet import torch.nn as nn import torch from arcface.cpn.globalNet import globalNet from arcface.cpn.refineNet import refineNet from arcface.utils import Flatten, l2_norm class CPN(nn.Module): def __init__(self, config): super(CPN, self).__init__() # self.output_sha...
40.338462
147
0.594966
93e9bd1d00807c5a07c5d556539d1fa711a5a481
46
py
Python
tests/validation-sets/common/assets/example.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
158
2019-03-18T13:42:40.000Z
2022-03-25T09:46:59.000Z
tests/validation-sets/common/assets/example.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
192
2019-03-15T14:12:25.000Z
2022-03-27T18:35:48.000Z
tests/validation-sets/common/assets/example.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
54
2019-03-22T14:14:31.000Z
2022-03-08T06:54:28.000Z
# -*- coding: utf-8 -*- print('hello world')
11.5
23
0.543478
93e9cbe3f921bf8b086bb6c40406dba97b6e60ff
3,710
py
Python
here_location_services/config/dest_weather_config.py
jain-aayush1123/here-location-services-python
11ad5ef8273b4f243c43bc00ebd470f725b980bc
[ "Apache-2.0" ]
16
2021-02-15T13:49:29.000Z
2022-03-29T10:34:43.000Z
here_location_services/config/dest_weather_config.py
jain-aayush1123/here-location-services-python
11ad5ef8273b4f243c43bc00ebd470f725b980bc
[ "Apache-2.0" ]
8
2021-02-27T18:40:46.000Z
2021-10-03T15:49:27.000Z
here_location_services/config/dest_weather_config.py
jain-aayush1123/here-location-services-python
11ad5ef8273b4f243c43bc00ebd470f725b980bc
[ "Apache-2.0" ]
11
2021-02-16T04:58:08.000Z
2022-02-21T20:51:55.000Z
# Copyright (C) 2019-2021 HERE Europe B.V. # SPDX-License-Identifier: Apache-2.0 """This module defines all the configs which will be required as inputs to Destination Weather API.""" from .base_config import Bunch class DestWeatherProduct(Bunch): """A class to define constant attributes for ``product`` par...
25.238095
99
0.669272
93e9db0d9e5dd6a9c43813079229d1b82f626b6b
31,924
py
Python
Bio/File.py
espritfollet/biopython
6000bab160b220ede643f496b1acfcf11ab3a238
[ "BSD-3-Clause" ]
2
2019-11-21T02:34:52.000Z
2021-02-14T07:47:43.000Z
Bio/File.py
espritfollet/biopython
6000bab160b220ede643f496b1acfcf11ab3a238
[ "BSD-3-Clause" ]
null
null
null
Bio/File.py
espritfollet/biopython
6000bab160b220ede643f496b1acfcf11ab3a238
[ "BSD-3-Clause" ]
1
2021-02-14T07:47:46.000Z
2021-02-14T07:47:46.000Z
# Copyright 1999 by Jeffrey Chang. All rights reserved. # Copyright 2009-2015 by Peter Cock. All rights reserved. # # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Code for more fancy file handle...
38.931707
99
0.588711
93e9f91dc923512dcd8bbff88b4d8b5b54e15d9f
1,093
py
Python
tests/core/test_core_converter.py
timvink/pheasant
eb5b0a8b5473baad5ad4903984433fe763f5312e
[ "MIT" ]
24
2018-05-25T15:23:30.000Z
2021-06-09T10:56:52.000Z
tests/core/test_core_converter.py
timvink/pheasant
eb5b0a8b5473baad5ad4903984433fe763f5312e
[ "MIT" ]
14
2019-04-30T10:51:01.000Z
2020-09-16T20:37:30.000Z
tests/core/test_core_converter.py
timvink/pheasant
eb5b0a8b5473baad5ad4903984433fe763f5312e
[ "MIT" ]
9
2019-06-12T10:54:18.000Z
2022-01-15T21:19:05.000Z
import re import pytest from pheasant.core.converter import Converter from pheasant.renderers.number.number import Header def test_converter_init(jupyter): converter = Converter() converter.register([jupyter, Header()]) assert len(converter.parsers) == 1 def test_converter(jupyter): converter = Co...
31.228571
82
0.668801
93ea2420f7c419c7acb3fb7cf85af28b33d15b77
3,572
py
Python
drltr/scripts/run_hw3_dqn.py
bbrzycki/deep-rl-trading
ff51e0d88cff6cee298818ca0492f9f63b4eab9a
[ "MIT" ]
3
2019-12-16T16:47:28.000Z
2020-08-03T03:00:10.000Z
drltr/scripts/run_hw3_dqn.py
bbrzycki/deep-rl-trading
ff51e0d88cff6cee298818ca0492f9f63b4eab9a
[ "MIT" ]
null
null
null
drltr/scripts/run_hw3_dqn.py
bbrzycki/deep-rl-trading
ff51e0d88cff6cee298818ca0492f9f63b4eab9a
[ "MIT" ]
null
null
null
import os import time from drltr.infrastructure.rl_trainer import RL_Trainer from drltr.agents.dqn_agent import DQNAgent from drltr.infrastructure.dqn_utils import get_env_kwargs class Q_Trainer(object): def __init__(self, params): self.params = params train_args = { 'num_agent_trai...
34.346154
107
0.648096
93ea4fffd23e0f759955251cd6af9b8f1f965f78
3,110
py
Python
gibson2/tasks/dynamic_nav_random_task.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
3
2021-02-07T14:00:38.000Z
2021-07-03T19:40:59.000Z
gibson2/tasks/dynamic_nav_random_task.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
null
null
null
gibson2/tasks/dynamic_nav_random_task.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
2
2021-04-01T12:14:59.000Z
2021-06-18T13:04:39.000Z
from gibson2.tasks.point_nav_random_task import PointNavRandomTask import pybullet as p from gibson2.robots.turtlebot_robot import Turtlebot import numpy as np class DynamicNavRandomTask(PointNavRandomTask): """ Dynamic Navigation Random Task The goal is to navigate to a random goal position, in the prese...
36.588235
92
0.641801
93ea676362f5bb8aef6bc611e634b059fd767fc1
6,593
py
Python
pandaharvester/harvestertest/further_testing_go_bulk_preparator.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
11
2017-06-01T10:16:58.000Z
2019-11-22T08:41:36.000Z
pandaharvester/harvestertest/further_testing_go_bulk_preparator.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
34
2016-10-25T19:15:24.000Z
2021-03-05T12:59:04.000Z
pandaharvester/harvestertest/further_testing_go_bulk_preparator.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
17
2016-10-24T13:29:45.000Z
2021-03-23T17:35:27.000Z
import sys import os import os.path import hashlib import datetime import uuid import random import string import time import threading import logging from future.utils import iteritems from pandaharvester.harvesterconfig import harvester_config from pandaharvester.harvestercore.job_spec import JobSpec from pandaharves...
39.479042
137
0.718186
93ea85b6784538637609e4078815b578f828b1a5
374
py
Python
savu/plugins/loaders/mapping_loaders/nxmonitor_loader_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/plugins/loaders/mapping_loaders/nxmonitor_loader_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/plugins/loaders/mapping_loaders/nxmonitor_loader_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
from savu.plugins.plugin_tools import PluginTools class NxmonitorLoaderTools(PluginTools): """A class to load tomography data from an NXmonitor file """ def define_parameters(self): """ name: visibility: basic dtype: str description: The name assigned to ...
26.714286
61
0.609626
93ea896bcbfe9d73b97a2d58e7de87621627888a
1,880
py
Python
lib/models/backbones/DCNv2/setup.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
245
2019-11-29T02:55:25.000Z
2022-03-30T07:30:18.000Z
lib/models/backbones/DCNv2/setup.py
shachargluska/centerpose
01c2c8bfa9d3ee91807f2ffdcc48728d104265bd
[ "MIT" ]
24
2019-11-29T10:05:00.000Z
2022-03-30T07:16:06.000Z
lib/models/backbones/DCNv2/setup.py
FishLiuabc/centerpose
555d753cd82693476f91f78c53aa4147f5a83015
[ "MIT" ]
45
2019-11-29T05:12:02.000Z
2022-03-21T02:20:36.000Z
#!/usr/bin/env python import glob import os import torch from setuptools import find_packages, setup from torch.utils.cpp_extension import CUDA_HOME, CppExtension, CUDAExtension requirements = ["torch", "torchvision"] def get_extensions(): this_dir = os.path.dirname(os.path.abspath(__file__)) extensions_dir...
30.322581
76
0.659043
93ea9816cbee79c75bc915da09d49c700487fe5a
6,602
py
Python
rest_framework/throttling.py
areski/django-rest-framework
ffdf633aa53526d2868e485ecffe0411a4ce0874
[ "Unlicense" ]
3
2018-01-29T17:27:36.000Z
2021-08-02T08:04:13.000Z
rest_framework/throttling.py
nschlemm/django-rest-framework
b950b025bc66e3018d5f74e1494ff17f7742be75
[ "Unlicense" ]
7
2019-10-06T14:48:03.000Z
2021-09-08T01:20:06.000Z
rest_framework/throttling.py
nschlemm/django-rest-framework
b950b025bc66e3018d5f74e1494ff17f7742be75
[ "Unlicense" ]
null
null
null
""" Provides various throttling policies. """ from __future__ import unicode_literals from django.core.cache import cache from rest_framework import exceptions from rest_framework.settings import api_settings import time class BaseThrottle(object): """ Rate throttling of requests. """ def allow_reques...
31.141509
80
0.617237
93eaa46d433a07beb5da95898f8b4bf76be13405
16,181
py
Python
sciwing/utils/sciwing_toml_runner.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
50
2019-09-13T10:32:29.000Z
2022-02-14T16:52:53.000Z
sciwing/utils/sciwing_toml_runner.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
31
2019-09-03T11:06:03.000Z
2021-08-20T14:57:09.000Z
sciwing/utils/sciwing_toml_runner.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
9
2019-09-16T03:25:15.000Z
2021-05-11T10:28:25.000Z
import pathlib import toml from sciwing.utils.exceptions import TOMLConfigurationError from sciwing.datasets import * from sciwing.models import * from sciwing.metrics import * from sciwing.engine import * from sciwing.modules import * from sciwing.utils.class_nursery import ClassNursery from sciwing.utils.common impor...
39.274272
95
0.599469
93eabfb9381e1ccfcfce6d0e5d6174cae088219d
1,259
py
Python
nagios/create_config.py
bigdataplot/devops-examples
add1a0894f921d3b21d8002f71d07fec78533363
[ "MIT" ]
2
2018-12-10T19:10:05.000Z
2019-02-08T20:02:38.000Z
nagios/create_config.py
bigdataplot/devops-examples
add1a0894f921d3b21d8002f71d07fec78533363
[ "MIT" ]
3
2017-01-03T17:57:12.000Z
2017-02-03T05:06:10.000Z
nagios/create_config.py
banjocat/docker-devops-examples
4a68329590ebd7adaf5c5abe9c2067a13c504685
[ "MIT" ]
3
2019-02-08T20:02:42.000Z
2019-10-13T09:04:43.000Z
''' This script is what parses the environmental variables It then outputs the nagios config file ''' import os import re from jinja2 import Template with open('./objects.cfg.j2') as f: template = Template(f.read()) def parse_envs(): ''' Goes through all the environmental variables Any matching a n...
22.482143
58
0.651311
93eb16a5425fb456d44d9d74702ebed3eab6a6f5
679
py
Python
cli_util.py
wxiang54/chess-opening-catalog
dd242f0d95bd33b3f61cde2632b386ec225c8009
[ "CC0-1.0" ]
null
null
null
cli_util.py
wxiang54/chess-opening-catalog
dd242f0d95bd33b3f61cde2632b386ec225c8009
[ "CC0-1.0" ]
null
null
null
cli_util.py
wxiang54/chess-opening-catalog
dd242f0d95bd33b3f61cde2632b386ec225c8009
[ "CC0-1.0" ]
null
null
null
COLOR = { "RED": "\033[91m", "GREEN": "\033[92m", "YELLOW": "\033[93m", "BLUE": "\033[94m", "PINK": "\033[95m", "END": "\033[0m", } def color_text(msg, color): return f"{COLOR[color]}{msg}{COLOR['END']}" def red(msg): return color_text(msg, "RED") def yellow(msg): return color_tex...
17.410256
47
0.581738
93eb68a8841b7b98a00923c830edc2aa395bdcce
605
py
Python
app/shorturl_form.py
PradheepShrinivasan/UrlShortener
16e57ebf426090adc850efa392caccb2897f726d
[ "BSD-3-Clause" ]
2
2015-12-25T21:37:37.000Z
2021-12-08T13:49:20.000Z
app/shorturl_form.py
PradheepShrinivasan/UrlShortener
16e57ebf426090adc850efa392caccb2897f726d
[ "BSD-3-Clause" ]
4
2015-12-31T07:08:20.000Z
2021-04-06T18:26:43.000Z
app/shorturl_form.py
PradheepShrinivasan/UrlShortener
16e57ebf426090adc850efa392caccb2897f726d
[ "BSD-3-Clause" ]
3
2016-01-19T02:46:58.000Z
2017-01-30T22:52:12.000Z
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField from wtforms.validators import url, data_required class ShortURLForm(FlaskForm): url = StringField('url', validators=[url(message="Must be valid url"), data_required(message="Url is mandatory")...
27.5
84
0.636364
93eb71836d0608e4384ee7f9e10b74e115e2e8e7
3,623
py
Python
BDD/sw-bdd/GherkinTools/gherkinParser/PythonScripts/feature_parser.py
lanillo/QMSat-Satellite
376f0ba1f755778df2cb3fadb67212faf834a3b2
[ "Apache-2.0" ]
null
null
null
BDD/sw-bdd/GherkinTools/gherkinParser/PythonScripts/feature_parser.py
lanillo/QMSat-Satellite
376f0ba1f755778df2cb3fadb67212faf834a3b2
[ "Apache-2.0" ]
null
null
null
BDD/sw-bdd/GherkinTools/gherkinParser/PythonScripts/feature_parser.py
lanillo/QMSat-Satellite
376f0ba1f755778df2cb3fadb67212faf834a3b2
[ "Apache-2.0" ]
null
null
null
import os from CommunPackage.feature import Feature from CommunPackage.feature_unicity_manager import NumberUnicityManager from gherkinParser.gherkin.parser import Parser from gherkinParser.gherkin.pickles.compiler import compile from CommunPackage.scenario import Step, Scenario _parser = Parser() def _get_feature(...
47.051948
148
0.666023
93eb738729f47690568994242bec6ed92f8375d6
325
py
Python
ims/upload/indexes.py
imsweb/ims.upload
b1143ed231b1a9a22f3f53596c0c8b90bda1a0d0
[ "MIT" ]
null
null
null
ims/upload/indexes.py
imsweb/ims.upload
b1143ed231b1a9a22f3f53596c0c8b90bda1a0d0
[ "MIT" ]
null
null
null
ims/upload/indexes.py
imsweb/ims.upload
b1143ed231b1a9a22f3f53596c0c8b90bda1a0d0
[ "MIT" ]
null
null
null
from plone.indexer import indexer from zope.interface import Interface from .transformable import ITransformIndexable @indexer(Interface) def transformableIndexer(obj): try: adapter = ITransformIndexable(obj) except TypeError: # not transformable, ignore return return adapter.can_transfo...
23.214286
50
0.756923
93eb91dd47c443edb94f6efdca1366809816cc37
4,455
py
Python
tests/errors/test_errors.py
elixir-cloud-aai/flask-connexion-archetype
8676b93e17c0e33818a83cf5e795d86ce1c2f52c
[ "Apache-2.0" ]
1
2020-02-19T17:47:08.000Z
2020-02-19T17:47:08.000Z
tests/errors/test_errors.py
elixir-cloud-aai/flask-connexion-archetype
8676b93e17c0e33818a83cf5e795d86ce1c2f52c
[ "Apache-2.0" ]
11
2020-02-09T13:41:28.000Z
2020-03-18T08:34:22.000Z
tests/errors/test_errors.py
elixir-cloud-aai/flask-connexion-archetype
8676b93e17c0e33818a83cf5e795d86ce1c2f52c
[ "Apache-2.0" ]
1
2020-03-12T18:18:36.000Z
2020-03-12T18:18:36.000Z
""" Tests for exceptions.py """ from copy import deepcopy import json from flask import (Flask, Response) from connexion import App import pytest from foca.errors.exceptions import ( _exc_to_str, _exclude_key_nested_dict, _problem_handler_json, _log_exception, register_exception_handler, _sub...
29.117647
75
0.691807
93ebcbfdb288b0e51c5b4a96a3ca85b5662ed37a
22,964
py
Python
salt/cloud/clouds/digital_ocean.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/digital_ocean.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/digital_ocean.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' DigitalOcean Cloud Module ========================= The DigitalOcean cloud module is used to control access to the DigitalOcean VPS system. Use of this module requires a requires a ``personal_access_token``, an ``ssh_key_file``, and at least one SSH key name in ``ssh_key_names``. More ``ss...
27.801453
138
0.591752
93ebe6b500e5c5b3af6a62e9dec52fb2aad2876f
5,293
py
Python
ros_workspace/devel/lib/python2.7/dist-packages/argos_bridge/msg/_MotoGroundList.py
pepojs/Swarm_robots
c651c32b3aae5b3774c9fc21db3c8982afcff213
[ "MIT" ]
null
null
null
ros_workspace/devel/lib/python2.7/dist-packages/argos_bridge/msg/_MotoGroundList.py
pepojs/Swarm_robots
c651c32b3aae5b3774c9fc21db3c8982afcff213
[ "MIT" ]
null
null
null
ros_workspace/devel/lib/python2.7/dist-packages/argos_bridge/msg/_MotoGroundList.py
pepojs/Swarm_robots
c651c32b3aae5b3774c9fc21db3c8982afcff213
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from argos_bridge/MotoGroundList.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import argos_bridge.msg class MotoGroundList(genpy.Message): _md5sum = "4...
33.289308
145
0.639713
93ebe78b056c08732e49a928489c2749d4f9f784
3,389
py
Python
fakolibri/content/utils/paths.py
learningequality/channel2site
0020c15f404c58e369bbe435950e1a38418313e8
[ "MIT" ]
null
null
null
fakolibri/content/utils/paths.py
learningequality/channel2site
0020c15f404c58e369bbe435950e1a38418313e8
[ "MIT" ]
null
null
null
fakolibri/content/utils/paths.py
learningequality/channel2site
0020c15f404c58e369bbe435950e1a38418313e8
[ "MIT" ]
null
null
null
import os import re from django.conf import settings from django.core.urlresolvers import reverse try: from urlparse import urljoin except ImportError: from urllib.parse import urljoin # valid storage filenames consist of 32-char hex plus a file extension VALID_STORAGE_FILENAME = re.compile("[0-9a-f]{32}(-d...
31.091743
114
0.708469
93ebf06ddd8ae6773a9da9e8cec2508f2bc3f5dd
3,528
py
Python
elit/datasets/ner/tsv.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
9
2021-07-12T22:05:47.000Z
2022-02-22T03:10:14.000Z
elit/datasets/ner/tsv.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
4
2021-08-31T08:28:37.000Z
2022-03-28T05:52:14.000Z
elit/datasets/ner/tsv.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2020-12-24 23:09 from typing import Union, List, Callable from elit.common.dataset import TransformableDataset from elit.utils.io_util import get_resource, generate_words_tags_from_tsv from elit.utils.string_util import split_long_sentence_into class TSVTaggingDataset(...
41.505882
150
0.567177
93ec1d87f5ce6c601ce43d1f7a0f1eb69dd353e0
5,594
py
Python
venv/Lib/site-packages/pyrogram/raw/types/message_service.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/message_service.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/message_service.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram 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...
41.437037
440
0.597605
93ec34df3a429e5aa518bf57050c46b6f9917b5a
84,339
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_10_01/aio/operations/_managed_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_10_01/aio/operations/_managed_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_10_01/aio/operations/_managed_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
45.637987
814
0.670212
93ec4e4f3a5d49b7cb4e760f3b7f862780e237b3
33,421
py
Python
appengine/findit/services/test_failure/test/ci_test_failure_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/services/test_failure/test/ci_test_failure_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/services/test_failure/test/ci_test_failure_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import mock from google.appengine.api import datastore_errors from common.findit_http_client import FinditHttpClient from model.wf_step import WfStep from ...
31.648674
80
0.555848
93ec59f25cbdcf1e2cd323fdfb9ab7c42869f98a
10,203
py
Python
visualbert/models/model_wrapper.py
WadeYin9712/GD-VCR
aa8138b55f5a9136dae10ceb99455d9f2beb6d75
[ "MIT" ]
19
2021-09-04T16:49:57.000Z
2022-01-07T08:49:20.000Z
visualbert/models/model_wrapper.py
WadeYin9712/GD-VCR
aa8138b55f5a9136dae10ceb99455d9f2beb6d75
[ "MIT" ]
null
null
null
visualbert/models/model_wrapper.py
WadeYin9712/GD-VCR
aa8138b55f5a9136dae10ceb99455d9f2beb6d75
[ "MIT" ]
null
null
null
# Handles model training (optimizer), loading, saving import argparse import os import shutil from copy import deepcopy import multiprocessing import numpy as np import pandas as pd import torch from allennlp.common.params import Params from allennlp.training.learning_rate_schedulers import LearningRateScheduler from...
40.812
134
0.632265
93ec66dded45b80cccf38cf6759d9ee50a0b3e6b
1,695
py
Python
.github/workflows/check-news.py
sthagen/xonsh-xonsh
5f418483015dfdac064c69a3891d7769971a0772
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
.github/workflows/check-news.py
sthagen/xonsh-xonsh
5f418483015dfdac064c69a3891d7769971a0772
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
.github/workflows/check-news.py
sthagen/xonsh-xonsh
5f418483015dfdac064c69a3891d7769971a0772
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
"""Check if the PR has a news item. Put a warning comment if it doesn't. """ import os from fnmatch import fnmatch from github import Github, PullRequest def get_added_files(pr: PullRequest.PullRequest): print(pr, pr.number) for file in pr.get_files(): if file.status == "added": yield fi...
26.076923
116
0.652507
93ec6b5234d96a6aa61222a3399dfe5ce30bba31
2,620
py
Python
venv/Lib/site-packages/pyrogram/raw/types/input_group_call_stream.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/input_group_call_stream.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/input_group_call_stream.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram 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...
32.345679
103
0.614122
93ec6efc392f2ff4a093efe951f00926d3505ee0
5,639
py
Python
contexts/migrations/0001_initial.py
ChalkLab/SciFlow
5bf021007d6184402ebfe6cefc2111d99160cb69
[ "MIT" ]
1
2021-04-26T20:03:11.000Z
2021-04-26T20:03:11.000Z
contexts/migrations/0001_initial.py
ChalkLab/SciFlow
5bf021007d6184402ebfe6cefc2111d99160cb69
[ "MIT" ]
17
2021-04-23T16:51:59.000Z
2021-12-13T21:17:41.000Z
contexts/migrations/0001_initial.py
ChalkLab/SciFlow
5bf021007d6184402ebfe6cefc2111d99160cb69
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-08 21:27 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Contexts', fields=[ ('id', models.AutoField...
49.034783
114
0.545664
93ec8cde3946bdc87a29368fd56578be6d9a4a97
1,741
py
Python
otp/level/VisibilityExtender.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
otp/level/VisibilityExtender.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
otp/level/VisibilityExtender.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from otp.level import Entity class VisibilityExtender(Entity.Entity): def __init__(self, level, entId): Entity.Entity.__init__(self, level, entId) self.initVisExt() def initVisExt(self): self.extended = 0 self.zoneEntId = self.getZoneEntId() self.eventName = None ...
28.540984
64
0.588168
93eca34e24c08a6433e79693b13a5ca98e395563
2,059
py
Python
mars/services/cluster/supervisor/service.py
deka108/mars
2cd39847c188bb690dd5e2d612a5cbe9f7b21eca
[ "Apache-2.0" ]
1
2021-11-30T12:07:21.000Z
2021-11-30T12:07:21.000Z
mars/services/cluster/supervisor/service.py
deka108/mars
2cd39847c188bb690dd5e2d612a5cbe9f7b21eca
[ "Apache-2.0" ]
null
null
null
mars/services/cluster/supervisor/service.py
deka108/mars
2cd39847c188bb690dd5e2d612a5cbe9f7b21eca
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding Ltd. # # 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 a...
34.316667
74
0.676542
93eca4ae97eebec335e7cfd822c1778b3422215e
1,182
py
Python
dynamic-programming/0139-word-break(记忆化搜索).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-01-10T17:03:21.000Z
2021-01-10T17:03:21.000Z
dynamic-programming/0139-word-break(记忆化搜索).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
null
null
null
dynamic-programming/0139-word-break(记忆化搜索).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-07-25T07:53:14.000Z
2021-07-25T07:53:14.000Z
from typing import List class Solution: def __init__(self): self.memo_ = dict() def wordBreak(self, s: str, wordDict: List[str]) -> bool: """ :type s: str :type wordDict: List[str] :rtype: bool """ # 题目说了 s 非空,wordDict 非空 word_set = set(wordDic...
21.888889
71
0.520305
93ece618a99de6f0490484f10ce2d01c3d38b4e2
49,448
py
Python
timechart/displays/main_display.py
ZLLentz/timechart
ed872eaae8b5ab44136ad2ecf4f606e9e25e6180
[ "BSD-3-Clause-LBNL" ]
null
null
null
timechart/displays/main_display.py
ZLLentz/timechart
ed872eaae8b5ab44136ad2ecf4f606e9e25e6180
[ "BSD-3-Clause-LBNL" ]
null
null
null
timechart/displays/main_display.py
ZLLentz/timechart
ed872eaae8b5ab44136ad2ecf4f606e9e25e6180
[ "BSD-3-Clause-LBNL" ]
null
null
null
""" The Main Display Window """ import os import logging from functools import partial import datetime from pyqtgraph import TextItem from qtpy.QtCore import Qt, Slot, QTimer from qtpy.QtWidgets import (QApplication, QWidget, QCheckBox, QHBoxLayout, QVBoxLayout, QFormLayout, QLabel, QSpl...
41.693086
119
0.68207
93ecf83c9206bcb1d93c41bf018d0619f60ee14b
12,684
py
Python
grailbase/GrailPrefs.py
notatallshaw/Grail-0.6
2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43
[ "CNRI-Jython" ]
null
null
null
grailbase/GrailPrefs.py
notatallshaw/Grail-0.6
2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43
[ "CNRI-Jython" ]
null
null
null
grailbase/GrailPrefs.py
notatallshaw/Grail-0.6
2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43
[ "CNRI-Jython" ]
null
null
null
"""Functional interface to Grail user preferences. See the Grail htdocs/info/extending/preferences.html for documentation.""" # To test, "(cd <scriptdir>; python GrailPrefs.py)". __version__ = "$Revision: 2.33 $" import os import sys import string if __name__ == "__main__": sys.path.insert(0, '../utils') import...
36.24
82
0.571902
93ed072806215b867fda53ec25393ea79415c9d1
993
py
Python
packages/fetchai/skills/error/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
packages/fetchai/skills/error/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
packages/fetchai/skills/error/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
36.777778
80
0.612286
93ed0a2da286f2a64c67261c0d2b16489e0550b4
23,643
py
Python
ssdaq/core/io.py
sflis/SSDAQold
4f9a84c34b580548a53719e000dc623f6e1b8a40
[ "BSD-3-Clause" ]
1
2018-10-23T11:12:44.000Z
2018-10-23T11:12:44.000Z
ssdaq/core/io.py
sflis/SSDAQold
4f9a84c34b580548a53719e000dc623f6e1b8a40
[ "BSD-3-Clause" ]
28
2019-02-07T12:50:10.000Z
2019-11-18T20:36:31.000Z
ssdaq/core/io.py
sflis/SSDAQold
4f9a84c34b580548a53719e000dc623f6e1b8a40
[ "BSD-3-Clause" ]
2
2019-02-07T12:46:03.000Z
2019-05-27T13:44:41.000Z
import struct import binascii from .utils import get_si_prefix from datetime import datetime import os from typing import Union import numpy as np import bz2 _chunk_header = struct.Struct("<2I") _file_header = struct.Struct("<Q4I") ###Raw object IO classes##### class RawObjectWriterBase: """ Base class of a fil...
30.66537
137
0.561942
93ed1a24b858977502fbe81f33ee1b91a846ce98
3,156
py
Python
Data_Science/src/app.py
robovish/Python-Projects
1cdfa18c093af32cfc02ac7d08e2bdf682670470
[ "MIT" ]
null
null
null
Data_Science/src/app.py
robovish/Python-Projects
1cdfa18c093af32cfc02ac7d08e2bdf682670470
[ "MIT" ]
null
null
null
Data_Science/src/app.py
robovish/Python-Projects
1cdfa18c093af32cfc02ac7d08e2bdf682670470
[ "MIT" ]
1
2022-03-03T09:21:37.000Z
2022-03-03T09:21:37.000Z
# import the necessary libraries import streamlit as st import joblib import pandas as pd from PIL import Image import os from datetime import datetime import pymysql as msql path = os.getcwd() @st.cache(allow_output_mutation=True) def load(scaler_path, model_path): sc = joblib.load(scaler_path) model = jobl...
40.461538
306
0.684411
93ed21443b9d148c31d93c3056740d3c2c3c352c
24,399
py
Python
util/data/gen/DNSAPI.dll.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/data/gen/DNSAPI.dll.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/data/gen/DNSAPI.dll.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
symbols = [] exports = [{'type': 'function', 'name': 'AdaptiveTimeout_ClearInterfaceSpecificConfiguration', 'address': '0x7ffb3aee1370'}, {'type': 'function', 'name': 'AdaptiveTimeout_ResetAdaptiveTimeout', 'address': '0x7ffb3af0a7d0'}, {'type': 'function', 'name': 'AddRefQueryBlobEx', 'address': '0x7ffb3aee7330'}, {'t...
12,199.5
24,386
0.691668
93ed2e55bfef2068609a5a34117eff60600abeab
1,028
py
Python
office365/sharepoint/permissionKind.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
office365/sharepoint/permissionKind.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
office365/sharepoint/permissionKind.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
class PermissionKind: """Specifies permissions that are used to define user roles.""" def __init__(self): pass EmptyMask = 0 ViewListItems = 1 AddListItems = 2 EditListItems = 3 DeleteListItems = 4 ApproveItems = 5 OpenItems = 6 ViewVersions = 7 DeleteVersions = 8 ...
22.844444
67
0.669261
93ed723b333c384114fbb111191305d116559fd3
8,309
py
Python
tests/test_failures.py
cloudbutton/lithops-array
5e74b881c7db95eccdccf986f1e3b0dc44603889
[ "Apache-2.0" ]
null
null
null
tests/test_failures.py
cloudbutton/lithops-array
5e74b881c7db95eccdccf986f1e3b0dc44603889
[ "Apache-2.0" ]
null
null
null
tests/test_failures.py
cloudbutton/lithops-array
5e74b881c7db95eccdccf986f1e3b0dc44603889
[ "Apache-2.0" ]
null
null
null
from numpywren.matrix import BigMatrix from numpywren import matrix_utils, uops from numpywren import lambdapack as lp from numpywren import job_runner from numpywren import compiler from numpywren.matrix_init import shard_matrix import numpywren.wait import pytest import numpy as np from numpy.linalg import cholesky i...
40.334951
142
0.553737
93ed747b94265f5417e23205ffd9859524ab0665
345
py
Python
sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/_version.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/_version.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ---------------------------------------------------------------------...
38.333333
76
0.414493
93ed764de5d229a46c86833140ee06bd88a5cd14
269
py
Python
genienlp/ned/__init__.py
saligrama/genienlp
35659911883c43fdbe38c4391e75ca106763eb40
[ "BSD-3-Clause" ]
null
null
null
genienlp/ned/__init__.py
saligrama/genienlp
35659911883c43fdbe38c4391e75ca106763eb40
[ "BSD-3-Clause" ]
null
null
null
genienlp/ned/__init__.py
saligrama/genienlp
35659911883c43fdbe38c4391e75ca106763eb40
[ "BSD-3-Clause" ]
null
null
null
from .abstract import AbstractEntityDisambiguator # noqa from .bootleg import BatchBootlegEntityDisambiguator, ServingBootlegEntityDisambiguator # noqa from .main import EntityOracleEntityDisambiguator, NaiveEntityDisambiguator, TypeOracleEntityDisambiguator # noqa
67.25
114
0.877323
93ed8ad7a8b85eed96a9c0264ee85a26fa5602e3
795
py
Python
artifact_py/__main__.py
Josh-Thompson/artifact_py
3e8bffefed3fcb28bbadca2f8cd0ad1414b9e243
[ "Apache-2.0", "MIT" ]
7
2019-07-22T15:22:32.000Z
2021-06-24T13:22:26.000Z
artifact_py/__main__.py
Josh-Thompson/artifact_py
3e8bffefed3fcb28bbadca2f8cd0ad1414b9e243
[ "Apache-2.0", "MIT" ]
5
2019-07-27T02:09:40.000Z
2019-08-24T19:40:52.000Z
artifact_py/__main__.py
Josh-Thompson/artifact_py
3e8bffefed3fcb28bbadca2f8cd0ad1414b9e243
[ "Apache-2.0", "MIT" ]
2
2019-07-30T13:39:31.000Z
2020-05-13T04:16:25.000Z
# artifact_py: the design documentation tool made for everyone. # # Copyright (C) 2019 Rett Berg <github.com/vitiral> # # The source code is Licensed under either of # # * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or # http://www.apache.org/licenses/LICENSE-2.0) # * MIT license ([LICENSE-MIT](LIC...
28.392857
81
0.732075
93edac2dfdbd83ce759a0ac0725c03b7506a1c32
4,239
py
Python
desidiff/src/scores.py
rknop/timedomain
d3e3c43dfbb9cadc150ea04024d9b4132cb9ca17
[ "MIT" ]
1
2021-06-18T05:25:27.000Z
2021-06-18T05:25:27.000Z
desidiff/src/scores.py
MatthewPortman/timedomain
b9c6c2e6804d7dde56311d9402769be545d505d0
[ "MIT" ]
null
null
null
desidiff/src/scores.py
MatthewPortman/timedomain
b9c6c2e6804d7dde56311d9402769be545d505d0
[ "MIT" ]
null
null
null
import numpy import numpy.ma as ma import copy def clipmean_one(y,ivar,mask,nsig=3): w=numpy.where(mask==0)[0] ansivar = ivar[w].sum() ansmean = numpy.sum(y[w]*ivar[w])/ansivar newy = y-ansmean w=numpy.where(numpy.logical_and.reduce([mask==0, numpy.abs(newy*numpy.sqrt(ivar)) < nsig]))[0] a...
33.377953
119
0.576551
93edb8fec88bd9fa88ea5d15412312b390beb071
545
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/operations/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/operations/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/operations/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
38.928571
94
0.554128
93edbddad9990ccb7c020764c28511da0273f699
2,423
py
Python
scripts/setup_dataset_format2.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
scripts/setup_dataset_format2.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
scripts/setup_dataset_format2.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
import os from multiprocessing import Process import wget import time import sys import tarfile def download_report_status(tar_url, output_file, dataset_dir="dataset"): start_time = time.time() p = Process(target=download_tar, args=(tar_url, output_file, dataset_dir)) p.start() time.sleep(1) while...
35.632353
92
0.675609
93edcc6d2de85dba61f1316a076270357bf7c90d
6,350
py
Python
ethnicolr/pred_fl_reg_ln_cn_int.py
basharnaji/ethnicolr
e3cb49c21a47d7c3dec74676b7a440e2fb44e3f5
[ "MIT" ]
null
null
null
ethnicolr/pred_fl_reg_ln_cn_int.py
basharnaji/ethnicolr
e3cb49c21a47d7c3dec74676b7a440e2fb44e3f5
[ "MIT" ]
null
null
null
ethnicolr/pred_fl_reg_ln_cn_int.py
basharnaji/ethnicolr
e3cb49c21a47d7c3dec74676b7a440e2fb44e3f5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import sys import numpy as np import pandas as pd from tensorflow.keras.models import load_model from tensorflow.keras.preprocessing import sequence from pkg_resources import resource_filename from ethnicolr.utils import column_exists, find_ngrams, fixup_...
35.47486
102
0.603937
93ede4571c9f5adbb8fcdcdbad28e2fdd6a4f3dd
3,560
py
Python
magma/session.py
bfontaine/p7magma
713647aa9e3187c93c2577ef812f33ec42ae5494
[ "MIT" ]
4
2015-01-21T20:57:09.000Z
2015-01-27T14:43:12.000Z
magma/session.py
bfontaine/p7magma
713647aa9e3187c93c2577ef812f33ec42ae5494
[ "MIT" ]
2
2015-02-08T14:53:09.000Z
2019-10-23T08:12:49.000Z
magma/session.py
bfontaine/p7magma
713647aa9e3187c93c2577ef812f33ec42ae5494
[ "MIT" ]
1
2016-03-30T17:12:00.000Z
2016-03-30T17:12:00.000Z
# -*- coding: UTF-8 -*- from bs4 import BeautifulSoup from requests import Session as BaseSession try: from cookielib import LWPCookieJar except ImportError: # Python 3 from http.cookiejar import LWPCookieJar URLS = { 'login': '/~etudiant/controlerMotDePasseEtudiant.php', 'logout': '/~etudiant/quitt...
27.175573
76
0.569944
93ee52fae9f145df33c8aaf1287b15a062c7a58f
344
py
Python
osm/transformers/ExclamationTransformer.py
cjneetha/osm
cc391fbfee8c89a1f15257ea36e6bbc85bbea938
[ "MIT" ]
1
2018-06-12T09:11:34.000Z
2018-06-12T09:11:34.000Z
osm/transformers/ExclamationTransformer.py
cjneetha/osm
cc391fbfee8c89a1f15257ea36e6bbc85bbea938
[ "MIT" ]
null
null
null
osm/transformers/ExclamationTransformer.py
cjneetha/osm
cc391fbfee8c89a1f15257ea36e6bbc85bbea938
[ "MIT" ]
2
2018-10-22T12:32:02.000Z
2018-12-28T11:43:03.000Z
from sklearn.base import TransformerMixin import osm.transformers.preprocessor as utils class ExclamationTransformer(TransformerMixin): def __init__(self) -> None: super().__init__() def fit(self, x, y=None): return self def transform(self, x): return [utils.run_replace_exclamat...
22.933333
65
0.703488
93ee8542e73c895f5ecc70b07e024b9827f45152
298
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble/advertising/apple.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble/advertising/apple.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ble/advertising/apple.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2020 ladyada for Adafruit Industries # # SPDX-License-Identifier: MIT # class iBeacon(Advertisement): # # Apple manufacturer data with subtype 2 # match_prefixes = (b"\xff\x00\x4c\x02",) # # proximity_uuid = # major = # minor = # signal_power = #
21.285714
62
0.66443
93ee92be03b686c015da5873810f65f7ccd7347f
1,218
py
Python
src/tfg_webapp/urls.py
franloza/TFG_Webapp
64bbec0276c92ad625b2f6aa8d8306f60a668b64
[ "MIT" ]
null
null
null
src/tfg_webapp/urls.py
franloza/TFG_Webapp
64bbec0276c92ad625b2f6aa8d8306f60a668b64
[ "MIT" ]
6
2020-02-12T03:22:33.000Z
2021-12-13T20:35:08.000Z
src/tfg_webapp/urls.py
franloza/TFG_Webapp
64bbec0276c92ad625b2f6aa8d8306f60a668b64
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.contrib import admin from django.conf import settings from django.conf.urls.static import static from django.views.decorators.cache import never_cache from termsandconditions.decorators import terms_required import profiles.urls import accounts.urls from . import v...
38.0625
101
0.731527
93eeaf8ddbcc0e762269ff720bf0f38164f5afdf
11,423
py
Python
fortinet-fortisandbox-cloud/utils.py
ftnt-cse/connector-fortinet-fortisandbox-cloud
65fbdfdce7569840fd31e5ec679463c90f93f296
[ "MIT" ]
null
null
null
fortinet-fortisandbox-cloud/utils.py
ftnt-cse/connector-fortinet-fortisandbox-cloud
65fbdfdce7569840fd31e5ec679463c90f93f296
[ "MIT" ]
null
null
null
fortinet-fortisandbox-cloud/utils.py
ftnt-cse/connector-fortinet-fortisandbox-cloud
65fbdfdce7569840fd31e5ec679463c90f93f296
[ "MIT" ]
null
null
null
""" Copyright start Copyright (C) 2008 - 2021 Fortinet Inc. All rights reserved. FORTINET CONFIDENTIAL & FORTINET PROPRIETARY SOURCE CODE Copyright end """ import requests from base64 import b64encode from connectors.core.connector import get_logger, ConnectorError logger = get_logger('fortisandbox') QUERY_...
26.320276
121
0.401908
93eebcd2b3cfb141a4c001e7e8d4e19594c980c4
638
py
Python
(3)Algorithms/operator_math.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(3)Algorithms/operator_math.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(3)Algorithms/operator_math.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
from operator import * a = -1 b = 5.0 c=2 d=6 print('a=',a) print('b=',b) print('c=',c) print('d=',d) print('Positive / Negative:') print('abs(a):',abs(a)) print('neg(a):',neg(a)) print('neg(b):', neg(b)) print('pos(a):', pos(a)) print('pos(b):', pos(b)) print('\nArithmetic:') print('add(a, b) :', print('floordiv(a...
14.177778
29
0.543887
93eed6e516b848ef4123be325814a1c54622bca8
729
py
Python
post-process/PythonScripts/YAMLutils.py
gyselax/gyselalibxx
5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34
[ "MIT" ]
3
2022-02-28T08:47:07.000Z
2022-03-01T10:29:08.000Z
post-process/PythonScripts/YAMLutils.py
gyselax/gyselalibxx
5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34
[ "MIT" ]
null
null
null
post-process/PythonScripts/YAMLutils.py
gyselax/gyselalibxx
5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34
[ "MIT" ]
null
null
null
""" General functions used to read YAML files """ # pylint: disable=import-error import yaml class loadYAML(): """ Object which represents the contents of a YAML file in numpy objects which can be more easily manipulated in the rest of the code Parameters ---------- filenames : str/list ...
22.78125
61
0.624143
93eeda8f2380e404695810c297531ace672eff11
1,448
py
Python
py3iperf3/iperf3_client.py
KimJeongChul/py3iperf3
e8a0bf0e81a172fb818e8d20b15facd3b011a566
[ "MIT" ]
3
2018-10-16T11:58:51.000Z
2019-11-13T14:07:19.000Z
py3iperf3/iperf3_client.py
KimJeongChul/py3iperf3
e8a0bf0e81a172fb818e8d20b15facd3b011a566
[ "MIT" ]
1
2019-09-19T13:27:44.000Z
2019-09-19T13:27:44.000Z
py3iperf3/iperf3_client.py
KimJeongChul/py3iperf3
e8a0bf0e81a172fb818e8d20b15facd3b011a566
[ "MIT" ]
6
2019-01-04T07:48:45.000Z
2022-03-01T08:12:03.000Z
""" An entry point and a shell holding iPerf tests on the client side. """ import logging import asyncio from py3iperf3.iperf3_test import Iperf3Test class Iperf3Client(object): """Implements iPerf3 Client functionality""" def __init__(self, loop=None, use_processes=False): """Initialize the client""...
24.542373
70
0.593923
93ef1e62c54aeef8a3f2a6842bddda9636cff72b
2,073
py
Python
lib_fr/roi_data_layer/roidb.py
chang010453/GRP-HAI
60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22
[ "MIT" ]
null
null
null
lib_fr/roi_data_layer/roidb.py
chang010453/GRP-HAI
60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22
[ "MIT" ]
null
null
null
lib_fr/roi_data_layer/roidb.py
chang010453/GRP-HAI
60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Transform a roidb into a trainable roidb by adding a bunch of metada...
41.46
77
0.636758
93ef2f217af62de9936bdc4d2913a42ae4187a7f
1,726
py
Python
tests/test_telegram.py
nasfarley88/horseback
b94f8c89c452a6d22d1bbb67ed7a8d6bdc77b50f
[ "Unlicense" ]
null
null
null
tests/test_telegram.py
nasfarley88/horseback
b94f8c89c452a6d22d1bbb67ed7a8d6bdc77b50f
[ "Unlicense" ]
null
null
null
tests/test_telegram.py
nasfarley88/horseback
b94f8c89c452a6d22d1bbb67ed7a8d6bdc77b50f
[ "Unlicense" ]
null
null
null
import unittest import asyncio import aiohttp import yaml from horseback.services.telegram import Telegram from horseback import Horseback class TestTelegramBot(unittest.TestCase): def setUp(self): self.loop = asyncio.new_event_loop() asyncio.set_event_loop(self.loop) self.config = yaml....
32.566038
73
0.577057
93ef41f86dd1d8027f61d4b2bdd4e6c14c356e3d
10,077
py
Python
embiggen/embedders/tensorflow_embedders/tensorflow_embedder.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
2
2020-01-30T11:57:37.000Z
2020-05-02T00:05:49.000Z
embiggen/embedders/tensorflow_embedders/tensorflow_embedder.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
93
2020-01-26T00:43:51.000Z
2020-05-10T03:29:54.000Z
embiggen/embedders/tensorflow_embedders/tensorflow_embedder.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
5
2020-02-13T07:18:11.000Z
2020-03-19T08:03:34.000Z
"""Abstract Keras Model wrapper for embedding models.""" from typing import Dict, Sequence, Tuple, Any import numpy as np import pandas as pd import tensorflow as tf from ensmallen import Graph from tensorflow.keras.callbacks import ( # pylint: disable=import-error,no-name-in-module EarlyStopping, ReduceLROnPlate...
35.86121
99
0.59095
93ef5071e442dc5689310ebc34e4d75341a784c1
11,928
py
Python
utils/ml_utils/models/additive_gp.py
ChangYong-Oh/CoCaBO_code
d7eab8c8419de8df68355f1e410b8c4b4e697e44
[ "MIT" ]
28
2020-01-20T13:58:58.000Z
2022-03-22T08:22:32.000Z
utils/ml_utils/models/additive_gp.py
ChangYong-Oh/CoCaBO_code
d7eab8c8419de8df68355f1e410b8c4b4e697e44
[ "MIT" ]
1
2021-05-09T16:11:10.000Z
2021-05-09T16:11:10.000Z
utils/ml_utils/models/additive_gp.py
ChangYong-Oh/CoCaBO_code
d7eab8c8419de8df68355f1e410b8c4b4e697e44
[ "MIT" ]
5
2020-06-15T17:46:32.000Z
2021-03-09T12:50:26.000Z
# -*- coding: utf-8 -*- #========================================== # Title: additive_gp.py # Author: Binxin Ru and Ahsan Alvi # Date: 20 August 2019 # Link: https://arxiv.org/abs/1906.08878 #========================================== from typing import Union, Tuple import GPy import numpy as np from paramz.tran...
36.036254
78
0.540325