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
f0b9a9734fc82602ebc66cd8758b5aacd1abcb0d
17,679
py
Python
rbf/linalg.py
aaronbalzac/rbf-neural-network
69c86ccb4e8041fdfb7ce9eff1e4db98648d6b5f
[ "MIT" ]
1
2021-05-12T06:52:11.000Z
2021-05-12T06:52:11.000Z
rbf/linalg.py
0x41head/rbf-neural-network
69c86ccb4e8041fdfb7ce9eff1e4db98648d6b5f
[ "MIT" ]
null
null
null
rbf/linalg.py
0x41head/rbf-neural-network
69c86ccb4e8041fdfb7ce9eff1e4db98648d6b5f
[ "MIT" ]
null
null
null
''' Module for linear algebra routines. ''' import logging import warnings import numpy as np import scipy.sparse as sp import scipy.sparse.linalg as spla from scipy.linalg.lapack import (dpotrf, dpotrs, dtrtrs, dgetrf, dgetrs) from rbf.sputils import row_norms, divide_rows LOGGER =...
23.666667
79
0.587307
12,446
0.703999
0
0
0
0
0
0
10,296
0.582386
f0b9fbfd7322db83b4a975dbad3a4b36576b39d1
3,200
py
Python
week_3/cnn.py
jimichailidis/UVA_AML18
620a9aba6651dd4451f5286aa250d7037673f7bf
[ "MIT" ]
null
null
null
week_3/cnn.py
jimichailidis/UVA_AML18
620a9aba6651dd4451f5286aa250d7037673f7bf
[ "MIT" ]
null
null
null
week_3/cnn.py
jimichailidis/UVA_AML18
620a9aba6651dd4451f5286aa250d7037673f7bf
[ "MIT" ]
null
null
null
#%% import os print(os.getcwd()) from Blocks import ReLU, SequentialNN, Dense, Hinge, SGD from dataset_utils import load_mnist import numpy as np from convolution_layer import ConvLayer from maxpool_layer import MaxPool2x2 from flatten_layer import FlattenLayer import sys def iterate_minibatches(x, y, batch_size=16, ...
31.372549
81
0.672188
0
0
463
0.144688
0
0
0
0
817
0.255313
f0ba87898e06dbbd8420e2f2f2069300ec91a8de
25,935
py
Python
methylprep/processing/preprocess.py
WonyoungCho/methylprep
4e34f62be969158453ba9b05b7629433f9bbba8b
[ "MIT" ]
5
2019-08-28T08:27:16.000Z
2020-03-11T17:20:01.000Z
methylprep/processing/preprocess.py
WonyoungCho/methylprep
4e34f62be969158453ba9b05b7629433f9bbba8b
[ "MIT" ]
16
2021-04-08T22:02:58.000Z
2022-03-18T17:30:50.000Z
methylprep/processing/preprocess.py
WonyoungCho/methylprep
4e34f62be969158453ba9b05b7629433f9bbba8b
[ "MIT" ]
3
2022-01-26T00:12:19.000Z
2022-03-09T22:43:22.000Z
# Normal-exponential using out-of-band probes # normex: negative control probes # noob: ‘out-of-band’ Infinium I probes # Lib import logging import numpy as np import pandas as pd from statsmodels import robust from scipy.stats import norm, lognorm # App from ..models import ControlType, ArrayType from ..models.sketch...
51.05315
279
0.662888
594
0.0229
0
0
0
0
0
0
18,366
0.708046
f0bac3ba5e39b1d61b8af9133f958f0f2c233ba5
5,041
py
Python
examples/llvm_rl/model/inference_result.py
xtremey/CompilerGym
2c2ceaebfccae72beb4aaacc74e0c8134c6f2ffe
[ "MIT" ]
null
null
null
examples/llvm_rl/model/inference_result.py
xtremey/CompilerGym
2c2ceaebfccae72beb4aaacc74e0c8134c6f2ffe
[ "MIT" ]
null
null
null
examples/llvm_rl/model/inference_result.py
xtremey/CompilerGym
2c2ceaebfccae72beb4aaacc74e0c8134c6f2ffe
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging from typing import List import numpy as np from pydantic import BaseModel, validator from ray.rllib.agents.dqn import ApexTrain...
39.382813
84
0.649276
4,414
0.87562
0
0
3,652
0.724459
0
0
1,078
0.213846
f0bcf9adb138c5c68aa47fd5e13ac337ba12d12c
196
py
Python
Calculator/Division.py
rn44/statsCalculator
b827edfc49d9251c7490ede3e578b58b49d9bb13
[ "MIT" ]
null
null
null
Calculator/Division.py
rn44/statsCalculator
b827edfc49d9251c7490ede3e578b58b49d9bb13
[ "MIT" ]
null
null
null
Calculator/Division.py
rn44/statsCalculator
b827edfc49d9251c7490ede3e578b58b49d9bb13
[ "MIT" ]
2
2020-11-07T03:34:17.000Z
2020-12-10T16:34:55.000Z
def division(a, b): b = float(b) if b == 0: c = 0 print('Cannot divide by 0.') return c else: a = float(a) c = round(a / b, 9) return c
17.818182
36
0.408163
0
0
0
0
0
0
0
0
21
0.107143
f0c2b3418e682549772086df9363fdf46943f5bd
1,322
py
Python
fabulous/script_gen.py
FPGA-Research-Manchester/nextpnr-fabulous
665d13010eb6ea6ccf0c6041bb9df5028983a3bf
[ "0BSD" ]
1
2021-10-01T11:05:52.000Z
2021-10-01T11:05:52.000Z
fabulous/script_gen.py
FPGA-Research-Manchester/nextpnr-fabulous
665d13010eb6ea6ccf0c6041bb9df5028983a3bf
[ "0BSD" ]
null
null
null
fabulous/script_gen.py
FPGA-Research-Manchester/nextpnr-fabulous
665d13010eb6ea6ccf0c6041bb9df5028983a3bf
[ "0BSD" ]
1
2021-10-01T11:05:52.000Z
2021-10-01T11:05:52.000Z
import re from array import * import fileinput import sys, getopt import csv def main(argv): vlog = '' top = '' try: opts, args = getopt.getopt(argv,"hf:t:",["Vlog=","Top="]) except getopt.GetoptError: print ('script_gen.py -r <verilog file> -t <top module name>') sys.exit(2) ...
28.73913
141
0.559002
0
0
0
0
0
0
0
0
394
0.298033
f0c3581446d85c97a243b1adbc5978391a877b8e
269
py
Python
src/app/buy_btc.py
simondorfman/hello_cb_pro
cdb96ee1390d22753630e24dac9bfdc5e47e788d
[ "MIT" ]
null
null
null
src/app/buy_btc.py
simondorfman/hello_cb_pro
cdb96ee1390d22753630e24dac9bfdc5e47e788d
[ "MIT" ]
null
null
null
src/app/buy_btc.py
simondorfman/hello_cb_pro
cdb96ee1390d22753630e24dac9bfdc5e47e788d
[ "MIT" ]
null
null
null
import os from cbt.private_client import PrivateClient from cbt.auth import get_new_private_connection if __name__ == "__main__": usd = os.getenv("USD_BUY") auth = get_new_private_connection() client = PrivateClient(auth) client.market_buy_btc(usd)
20.692308
47
0.754647
0
0
0
0
0
0
0
0
19
0.070632
f0c366363d8d56f6982ab28b3008beafae215018
4,836
py
Python
sample/tensor_functions.py
TheLampshady/tensor_tutorial
a5665d05ce7fdefa4975081847ac34d44756a3d0
[ "MIT" ]
2
2018-04-19T19:33:43.000Z
2019-03-12T05:59:52.000Z
sample/tensor_functions.py
TheLampshady/tensor_tutorial
a5665d05ce7fdefa4975081847ac34d44756a3d0
[ "MIT" ]
null
null
null
sample/tensor_functions.py
TheLampshady/tensor_tutorial
a5665d05ce7fdefa4975081847ac34d44756a3d0
[ "MIT" ]
null
null
null
import numpy as np from os import getcwd, path import scipy.misc as misc import tensorflow as tf from tensorflow.contrib.tensorboard.plugins import projector def variable_summaries(var, histogram_name='histogram'): """ Attach a lot of summaries to a Tensor (for TensorBoard visualization). :type var: tf.Va...
30.225
96
0.680521
0
0
0
0
0
0
0
0
1,143
0.236352
f0c3d53843280be100078a8627ba65bbe0348c16
141
py
Python
test/example_project/main_package/workflow1.py
Tismas/bigflow
6a4a14616d66beeaf45700ea340c97d797a1f9e5
[ "Apache-2.0" ]
63
2020-08-15T19:02:06.000Z
2022-03-29T16:19:00.000Z
test/example_project/main_package/workflow1.py
Tismas/bigflow
6a4a14616d66beeaf45700ea340c97d797a1f9e5
[ "Apache-2.0" ]
133
2020-08-18T03:51:05.000Z
2022-03-05T13:43:22.000Z
test/example_project/main_package/workflow1.py
Tismas/bigflow
6a4a14616d66beeaf45700ea340c97d797a1f9e5
[ "Apache-2.0" ]
10
2020-08-25T05:19:31.000Z
2022-02-03T10:33:41.000Z
import bigflow as bf from .job import ExampleJob workflow1 = bf.Workflow( workflow_id='workflow1', definition=[ExampleJob('job1')])
20.142857
36
0.730496
0
0
0
0
0
0
0
0
17
0.120567
f0c4871928dffeb7e7e0aad03825633ae820c35a
2,076
py
Python
hello/migrations/0002_auto_20201116_1409.py
chenyuan99/OwlSavesCats
d8135848db5e6092467ee0d31aa46c36599cace1
[ "MIT" ]
null
null
null
hello/migrations/0002_auto_20201116_1409.py
chenyuan99/OwlSavesCats
d8135848db5e6092467ee0d31aa46c36599cace1
[ "MIT" ]
null
null
null
hello/migrations/0002_auto_20201116_1409.py
chenyuan99/OwlSavesCats
d8135848db5e6092467ee0d31aa46c36599cace1
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-11-16 19:09 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('hello', '0001_initial'), ] operations = [ migrations.CreateModel( name='Author', fi...
32.952381
114
0.53131
1,950
0.939306
0
0
0
0
0
0
307
0.147881
f0c48e7fef50233e0f0dc3c44b24dc530a2c32de
1,307
py
Python
Curso Em Video-python/PYTHON (MUNDO 1, MUNDO 2 E MUNDO 3)/pythonAulas/Aula18-listas-dentro-listas.py
AlamoVinicius/code-pratice
924a3ff782caf3695bbeeac39fa02fb23781cd75
[ "MIT" ]
null
null
null
Curso Em Video-python/PYTHON (MUNDO 1, MUNDO 2 E MUNDO 3)/pythonAulas/Aula18-listas-dentro-listas.py
AlamoVinicius/code-pratice
924a3ff782caf3695bbeeac39fa02fb23781cd75
[ "MIT" ]
null
null
null
Curso Em Video-python/PYTHON (MUNDO 1, MUNDO 2 E MUNDO 3)/pythonAulas/Aula18-listas-dentro-listas.py
AlamoVinicius/code-pratice
924a3ff782caf3695bbeeac39fa02fb23781cd75
[ "MIT" ]
null
null
null
""" aula sobre lista 18 repare como as listas podem ser incluidas dentro de uma lista. """ teste = [] teste.append('Álamo') teste.append(26) galera = [] galera.append(teste[:]) # é preciso fazer uma cópia com [:] para o sistema não duplicar teste[0] = 'Francielli' teste[1] = 22 galera.append(teste) print(galera[:]) ...
34.394737
118
0.643458
0
0
0
0
0
0
0
0
696
0.528474
f0c50e60679a31772ae1850437c877c7672b05e0
3,992
py
Python
src/flups/io.py
spalato/flups
b878920b01a073938b312dccc1d30a64bc9c30e5
[ "MIT" ]
null
null
null
src/flups/io.py
spalato/flups
b878920b01a073938b312dccc1d30a64bc9c30e5
[ "MIT" ]
null
null
null
src/flups/io.py
spalato/flups
b878920b01a073938b312dccc1d30a64bc9c30e5
[ "MIT" ]
null
null
null
# flups.io: tools for reading and writing files import re import logging import numpy as np from .calib import load_latest, calibration logger = logging.getLogger(__name__) def read_asc(fname): """ Read a single `asc` file, the ASCII format from Andor Solis. """ logger.debug("Loading `.asc` file: %s",...
27.342466
100
0.596443
0
0
0
0
0
0
0
0
2,517
0.630511
f0c5f63e6ccfe9b9da4d7242b7a76b297f2ab336
2,521
py
Python
tests/test_text_search.py
jdvala/kulhadi
9031d32070582fa46a74f760203882c213d02605
[ "MIT" ]
3
2021-10-31T07:02:04.000Z
2022-01-10T12:55:27.000Z
tests/test_text_search.py
jdvala/kulhadi
9031d32070582fa46a74f760203882c213d02605
[ "MIT" ]
2
2021-10-30T11:28:10.000Z
2021-10-30T11:30:28.000Z
tests/test_text_search.py
jdvala/kawadi
9031d32070582fa46a74f760203882c213d02605
[ "MIT" ]
null
null
null
import multiprocessing as mp import pytest from kawadi.text_search import SearchInText @pytest.fixture() def input_data(): text_to_find = "String distance algorithm" text_to_search = """SIFT4 is a general purpose string distance algorithm inspired by JaroWinkler and Longest Common Subsequence. It was develo...
33.171053
459
0.714002
0
0
0
0
841
0.333598
0
0
707
0.280444
f0ca3d609391dc32aa46d1c4b4ec4ee3f9a34e0a
448
py
Python
cbandits/core/bayesian_nn.py
AlliedToasters/dev_bandits
7e3655bd5a91854951a52d0f037ee06aefb2922c
[ "MIT" ]
null
null
null
cbandits/core/bayesian_nn.py
AlliedToasters/dev_bandits
7e3655bd5a91854951a52d0f037ee06aefb2922c
[ "MIT" ]
null
null
null
cbandits/core/bayesian_nn.py
AlliedToasters/dev_bandits
7e3655bd5a91854951a52d0f037ee06aefb2922c
[ "MIT" ]
null
null
null
"""Define the abstract class for Bayesian Neural Networks.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function class BayesianNN(object): """A Bayesian neural network keeps a distribution over neural nets.""" def __init__(self, optimizer): p...
21.333333
74
0.694196
274
0.611607
0
0
0
0
0
0
131
0.292411
f0cb07dafe313489f043d26fe74c8e52bf97cd97
99
py
Python
maidwhite/__init__.py
tihtw/maidwhite-python
0f7613029bf12118c901273aa26aa89e843bd6ed
[ "Apache-2.0" ]
1
2021-01-12T17:13:46.000Z
2021-01-12T17:13:46.000Z
maidwhite/__init__.py
tihtw/maidwhite-python
0f7613029bf12118c901273aa26aa89e843bd6ed
[ "Apache-2.0" ]
null
null
null
maidwhite/__init__.py
tihtw/maidwhite-python
0f7613029bf12118c901273aa26aa89e843bd6ed
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from .MaidWhite import MaidWhite name = "MaidWhite" __all__ = (MaidWhite)
16.5
32
0.676768
0
0
0
0
0
0
0
0
34
0.343434
f0cb537671d132b5a4770577912b310f7cda8e12
832
py
Python
app/main/config.py
leskeylevy/flaskBackend
1cada27072517234f37991a3ef655f8c63d13867
[ "MIT" ]
null
null
null
app/main/config.py
leskeylevy/flaskBackend
1cada27072517234f37991a3ef655f8c63d13867
[ "MIT" ]
null
null
null
app/main/config.py
leskeylevy/flaskBackend
1cada27072517234f37991a3ef655f8c63d13867
[ "MIT" ]
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config: SECRET_KEY = os.environ.get('SECRET_KEY') DEBUG = False class DevelopmentConfig: DEBUG = True SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://levy:Dadiesboy12@localhost/ronchezfitness' SQLALCHEMY_TRACK_MODIFICATIONS =...
21.333333
95
0.742788
626
0.752404
0
0
0
0
0
0
118
0.141827
f0cba37d4b9ac55bb211ec75a31599946da59b48
1,654
py
Python
crosstab/mega_analysis/lateralised_intensities.py
karandahele/Epilepsy-Repository
58f970b25808c0cdcd0dc44ab107cf00d9de74c2
[ "MIT" ]
2
2019-11-20T11:12:22.000Z
2019-12-23T21:19:34.000Z
crosstab/mega_analysis/lateralised_intensities.py
karandahele/Epilepsy-Repository
58f970b25808c0cdcd0dc44ab107cf00d9de74c2
[ "MIT" ]
6
2020-01-14T17:13:40.000Z
2020-04-06T09:19:51.000Z
crosstab/mega_analysis/lateralised_intensities.py
karandahele/Epilepsy-Repository
58f970b25808c0cdcd0dc44ab107cf00d9de74c2
[ "MIT" ]
3
2020-01-14T17:12:02.000Z
2020-04-01T13:08:06.000Z
import pandas as pd from crosstab.mega_analysis.pivot_result_to_pixel_intensities import * def lateralisation_to_pixel_intensities(all_combined_gifs, df, semiology_term, quantiles, method='non-linear', scale_factor=10, ...
50.121212
109
0.663845
0
0
0
0
0
0
0
0
511
0.308948
f0cd195aebcc37de4124760ae9d1f43db09b1611
585
py
Python
requests_test.py
AnakinJiang/PythonDemo
4e8e8296b098ce541c588fafdf07cf2d6d955d38
[ "MIT" ]
null
null
null
requests_test.py
AnakinJiang/PythonDemo
4e8e8296b098ce541c588fafdf07cf2d6d955d38
[ "MIT" ]
null
null
null
requests_test.py
AnakinJiang/PythonDemo
4e8e8296b098ce541c588fafdf07cf2d6d955d38
[ "MIT" ]
null
null
null
''' @Author: AnakinJiang @Email: jiangjinpeng319 AT gmail.com @Descripttion: requests测试demo @Date: 2019-08-27 15:37:14 @LastEditors: AnakinJiang @LastEditTime: 2019-08-27 16:55:06 ''' import requests def get_test(): url1 = 'https://www.douban.com/' r1 = requests.get(url1) print(r1.status_code) print(r1...
19.5
43
0.659829
0
0
0
0
0
0
0
0
265
0.449915
f0cfaf531119941e8908019c7d9b113afa90346e
3,536
py
Python
allennlp/training/learning_rate_schedulers/polynomial_decay.py
alle-pawols/allennlp
7d4a67263d7a210aca22d4f2b03e8568d3c34a48
[ "Apache-2.0" ]
2
2022-01-02T12:15:21.000Z
2022-01-02T12:15:23.000Z
allennlp/training/learning_rate_schedulers/polynomial_decay.py
alle-pawols/allennlp
7d4a67263d7a210aca22d4f2b03e8568d3c34a48
[ "Apache-2.0" ]
35
2021-08-11T13:20:30.000Z
2022-03-29T13:17:39.000Z
allennlp/training/learning_rate_schedulers/polynomial_decay.py
alle-pawols/allennlp
7d4a67263d7a210aca22d4f2b03e8568d3c34a48
[ "Apache-2.0" ]
1
2021-03-31T19:50:08.000Z
2021-03-31T19:50:08.000Z
from overrides import overrides import torch from allennlp.common.checks import ConfigurationError from allennlp.training.learning_rate_schedulers.learning_rate_scheduler import LearningRateScheduler @LearningRateScheduler.register("polynomial_decay") class PolynomialDecay(LearningRateScheduler): """ Impleme...
37.221053
114
0.653281
3,280
0.927602
0
0
3,332
0.942308
0
0
1,441
0.407523
f0cfb602ee2a0f5bc3a7dc61c2685237a493cae5
2,983
py
Python
Scripts/fill_year.py
usuallyunusual/The-Explorer
1569e8ac01f245cf2e2333070e82ff165abeb118
[ "MIT" ]
null
null
null
Scripts/fill_year.py
usuallyunusual/The-Explorer
1569e8ac01f245cf2e2333070e82ff165abeb118
[ "MIT" ]
5
2021-04-01T09:48:28.000Z
2021-04-17T09:13:06.000Z
Scripts/fill_year.py
usuallyunusual/The-Explorer
1569e8ac01f245cf2e2333070e82ff165abeb118
[ "MIT" ]
1
2020-09-14T11:42:40.000Z
2020-09-14T11:42:40.000Z
""" TO DO: 1. Lot of edge cases not accounted for 2. Could use some unit testing scripts for sanity check 3. What are the bounds for years? """ import mysql from mysql.connector import Error import re import numpy as np def reject_outliers(data, m = 6.): d = np.abs(data - np.median(data)) ...
30.131313
162
0.526316
0
0
0
0
0
0
0
0
1,052
0.352665
f0d055f8993a7d6c33e001e9675d7f51424a7021
3,505
py
Python
tests/web/client.py
bigbluedeer/instagram_private_api
e92b6f0b1904d25edf7ad02bc4c270627f461733
[ "MIT" ]
null
null
null
tests/web/client.py
bigbluedeer/instagram_private_api
e92b6f0b1904d25edf7ad02bc4c270627f461733
[ "MIT" ]
null
null
null
tests/web/client.py
bigbluedeer/instagram_private_api
e92b6f0b1904d25edf7ad02bc4c270627f461733
[ "MIT" ]
null
null
null
from ..common import ( WebApiTestBase, WebClientError as ClientError, WebClientLoginError as ClientLoginError, WebClient as Client, compat_mock, compat_urllib_error ) class ClientTests(WebApiTestBase): """Tests for client related functions.""" @staticmethod def init_all(api): retu...
34.362745
92
0.583452
3,319
0.946933
0
0
2,364
0.674465
0
0
741
0.211412
f0d05b63ba5129c1c92a989823c1a16fc9dc7cbf
842
py
Python
setup.py
dasmanov/pyEcovent
97efe1382d1a725135f2476b8e45aaf915121b1e
[ "MIT" ]
null
null
null
setup.py
dasmanov/pyEcovent
97efe1382d1a725135f2476b8e45aaf915121b1e
[ "MIT" ]
null
null
null
setup.py
dasmanov/pyEcovent
97efe1382d1a725135f2476b8e45aaf915121b1e
[ "MIT" ]
null
null
null
from setuptools import setup long_description = None with open("README.md", 'r') as fp: long_description = fp.read() setup( name = 'pyEcovent', packages = ['ecovent'], version='0.8.4', description='Python3 library for single-room energy recovery ventilators from Vents / Blauberg / Flexit', lo...
30.071429
109
0.648456
0
0
0
0
0
0
0
0
455
0.54038
f0d08e4db132f744024a09a0a079f7e2cb992ed6
5,105
py
Python
voicepuppet/atvgnet/train_atnet.py
taylorlu/voicepuppet
a0d3ca3296aca15abbfe75663a1bf682fb491efa
[ "MIT" ]
20
2020-10-28T07:32:29.000Z
2022-03-04T07:15:02.000Z
voicepuppet/atvgnet/train_atnet.py
taylorlu/voicepuppet
a0d3ca3296aca15abbfe75663a1bf682fb491efa
[ "MIT" ]
4
2020-11-24T14:42:44.000Z
2021-08-05T13:31:16.000Z
voicepuppet/atvgnet/train_atnet.py
taylorlu/voicepuppet
a0d3ca3296aca15abbfe75663a1bf682fb491efa
[ "MIT" ]
11
2020-10-29T07:11:22.000Z
2022-03-28T07:17:35.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- import tensorflow as tf import numpy as np import os from optparse import OptionParser import logging from atnet import ATNet from dataset.generator import ATNetDataGenerator from plot import * logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(le...
35.950704
121
0.641724
0
0
0
0
0
0
0
0
914
0.17904
f0d0afc35b9e84aba33193038e8752efcd1d32f7
1,695
py
Python
tests/test_errors.py
althonos/pyhmmer
eb6fe7c0e74557e0ae9d647693711583d2d86b68
[ "MIT" ]
26
2020-11-10T22:57:49.000Z
2022-03-24T16:58:55.000Z
tests/test_errors.py
althonos/pyhmmer
eb6fe7c0e74557e0ae9d647693711583d2d86b68
[ "MIT" ]
13
2020-11-12T11:41:08.000Z
2022-03-09T18:17:48.000Z
tests/test_errors.py
althonos/pyhmmer
eb6fe7c0e74557e0ae9d647693711583d2d86b68
[ "MIT" ]
2
2021-04-04T05:13:07.000Z
2021-11-30T09:11:23.000Z
import unittest from pyhmmer.easel import Alphabet from pyhmmer.errors import UnexpectedError, AllocationError, EaselError, AlphabetMismatch class TestErrors(unittest.TestCase): def test_unexpected_error(self): err = UnexpectedError(1, "p7_ReconfigLength") self.assertEqual(repr(err), "Unexpected...
42.375
111
0.684366
1,550
0.914454
0
0
0
0
0
0
506
0.298525
f0d0b9a716fb2240576fa6c1da54c8656e26b395
1,196
py
Python
electrum_gui/common/provider/chains/cfx/sdk/cfx_address/base32.py
BixinKey/electrum
f5de4e74e313b9b569f13ba6ab9142a38bf095f2
[ "MIT" ]
12
2020-11-12T08:53:05.000Z
2021-07-06T17:30:39.000Z
electrum_gui/common/provider/chains/cfx/sdk/cfx_address/base32.py
liyanhrxy/electrum
107608ef201ff1d20d2f6091c257b1ceff9b7362
[ "MIT" ]
209
2020-09-23T06:58:18.000Z
2021-11-18T11:25:41.000Z
electrum_gui/common/provider/chains/cfx/sdk/cfx_address/base32.py
liyanhrxy/electrum
107608ef201ff1d20d2f6091c257b1ceff9b7362
[ "MIT" ]
19
2020-10-13T11:42:26.000Z
2022-02-06T01:26:34.000Z
import base64 STANDARD_ALPHABET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567' CUSTOM_ALPHABET = 'abcdefghjkmnprstuvwxyz0123456789' ENCODE_TRANS = str.maketrans(STANDARD_ALPHABET, CUSTOM_ALPHABET) DECODE_TRANS = str.maketrans(CUSTOM_ALPHABET, STANDARD_ALPHABET) PADDING_LETTER = '=' def encode(buffer): assert type(buffer) ...
29.9
85
0.70903
0
0
0
0
0
0
0
0
221
0.184783
f0d117c241c9bb2cd6a66d2e35612733475a8a0e
437
py
Python
saefportal/datalakes/models/__init__.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
null
null
null
saefportal/datalakes/models/__init__.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
null
null
null
saefportal/datalakes/models/__init__.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
1
2020-12-16T15:02:52.000Z
2020-12-16T15:02:52.000Z
from .one_drive_datalake import OneDriveDatalake from .google_drive_datalake import GoogleDriveDatalake from .dropbox_datalake import DropboxDatalake from .google_cloud_storage_datalake import GoogleCloudStorageDatalake from .azure_blob_storage_datalake import AzureBlobStorageDatalake from .azure_data_lake_datalake imp...
48.555556
69
0.908467
0
0
0
0
0
0
0
0
0
0
f0d3f90aee2a25f409650fff2ffe65e97e26ad3b
4,319
py
Python
PathPlanning/AStar/a_star.py
Pythocrates/PythonRobotics
e16f070a59ef9edf7200361d2ab0171a6f540f1e
[ "MIT" ]
null
null
null
PathPlanning/AStar/a_star.py
Pythocrates/PythonRobotics
e16f070a59ef9edf7200361d2ab0171a6f540f1e
[ "MIT" ]
null
null
null
PathPlanning/AStar/a_star.py
Pythocrates/PythonRobotics
e16f070a59ef9edf7200361d2ab0171a6f540f1e
[ "MIT" ]
null
null
null
""" A* grid planning author: Atsushi Sakai(@Atsushi_twi) Nikos Kanargias ([email protected]) See Wikipedia article (https://en.wikipedia.org/wiki/A*_search_algorithm) """ import math from node import Node from obstacle_map import Position class AStarPlanner: def __init__(self, obstacle_map): """ ...
28.414474
77
0.538782
4,068
0.941885
0
0
898
0.207918
0
0
990
0.22922
f0d567896a4d3766c40a65ce7fc805db88f92454
1,995
py
Python
Wordle v3.py
favet/wordle
f0390775baec8534cdab564ed79225b530cbd404
[ "MIT" ]
null
null
null
Wordle v3.py
favet/wordle
f0390775baec8534cdab564ed79225b530cbd404
[ "MIT" ]
null
null
null
Wordle v3.py
favet/wordle
f0390775baec8534cdab564ed79225b530cbd404
[ "MIT" ]
null
null
null
wordle = open("Wordle.txt", "r") wordList = [] for line in wordle: stripped_line = line.strip() wordList.append(stripped_line) mutableList = [] outcomeList = [] def blackLetter(letter, list): for word in list: if letter in word: list.remove(word) def greenLetter(letter, ...
29.776119
56
0.507769
0
0
0
0
0
0
0
0
1,077
0.53985
f0d5a3b8f7ed6257ef4659a0b6e15b5bbbff0987
3,945
py
Python
tests/resources/test_wallet_transactions.py
andreshndz/cuenca-python
ca9f0f078584f1458e71baeb4cd15fcc55b40397
[ "MIT" ]
6
2020-11-02T21:03:11.000Z
2022-01-13T23:12:01.000Z
tests/resources/test_wallet_transactions.py
andreshndz/cuenca-python
ca9f0f078584f1458e71baeb4cd15fcc55b40397
[ "MIT" ]
220
2020-05-13T19:20:57.000Z
2022-03-30T22:03:03.000Z
tests/resources/test_wallet_transactions.py
andreshndz/cuenca-python
ca9f0f078584f1458e71baeb4cd15fcc55b40397
[ "MIT" ]
14
2020-07-15T15:32:03.000Z
2021-09-17T19:11:14.000Z
import datetime as dt import pytest from cuenca_validations.types import ( EntryType, SavingCategory, TransactionStatus, WalletTransactionType, ) from cuenca import BalanceEntry, Saving, WalletTransaction @pytest.mark.vcr def test_create_wallet_transaction(): wallet_id = 'LAvWUDH6OpQk-ber3E_zUEi...
35.223214
77
0.72218
0
0
0
0
3,710
0.940431
0
0
639
0.161977
f0d5e0d9829ebe242a427efa144fb271f139091a
884
py
Python
xldlib/xlpy/inputs.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
xldlib/xlpy/inputs.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
xldlib/xlpy/inputs.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
''' XlPy/inputs ___________ Validates input file selection, configurations, and matches file types. :copyright: (c) 2015 The Regents of the University of California. :license: GNU GPL, see licenses/GNU GPLv3.txt for more details. ''' # load modules import operator as op from xldlib.onstart.main ...
22.1
75
0.709276
0
0
0
0
463
0.523756
0
0
396
0.447964
f0d6040d9c0d555d327cb87ba85195c3342a52cf
4,789
py
Python
ros/src/tl_detector/mocked_tl_detector.py
nyukhalov/CarND-Capstone
949713ba7557a9765214a2a02329725b84552d13
[ "MIT" ]
3
2019-02-11T16:42:03.000Z
2019-02-11T20:52:48.000Z
ros/src/tl_detector/mocked_tl_detector.py
nyukhalov/CarND-Capstone
949713ba7557a9765214a2a02329725b84552d13
[ "MIT" ]
9
2019-02-12T18:38:18.000Z
2019-02-26T22:20:21.000Z
ros/src/tl_detector/mocked_tl_detector.py
nyukhalov/CarND-Capstone
949713ba7557a9765214a2a02329725b84552d13
[ "MIT" ]
2
2019-02-27T20:42:19.000Z
2019-03-06T13:41:23.000Z
#!/usr/bin/env python import rospy from std_msgs.msg import Int32 from geometry_msgs.msg import PoseStamped, Pose from styx_msgs.msg import TrafficLightArray, TrafficLight from styx_msgs.msg import Lane from sensor_msgs.msg import Image from scipy.spatial import KDTree import cv2 import yaml import math import numpy as...
33.725352
112
0.653999
4,243
0.885989
0
0
0
0
0
0
1,275
0.266235
f0d71db6f553884c2bb1448ebcb992750a840180
2,175
py
Python
reamber/algorithms/generate/sv/generators/svFuncSequencer.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
reamber/algorithms/generate/sv/generators/svFuncSequencer.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
reamber/algorithms/generate/sv/generators/svFuncSequencer.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
from typing import Callable, List, Union from numpy import arange from reamber.algorithms.generate.sv.SvPkg import SvPkg from reamber.algorithms.generate.sv.SvSequence import SvSequence def svFuncSequencer(funcs: List[Union[float, Callable[[float], float], None]], offsets: Union[List[float], flo...
38.157895
114
0.630805
0
0
0
0
0
0
0
0
890
0.409195
f0d87d7b32c42472be81003f06fe5e9c4bf5e20f
1,781
py
Python
e_secretary/migrations/0010_auto_20190329_2219.py
tsitsikas96/e-secretary
bdda95e17093da730af33acf4b15ed03331c7643
[ "MIT" ]
null
null
null
e_secretary/migrations/0010_auto_20190329_2219.py
tsitsikas96/e-secretary
bdda95e17093da730af33acf4b15ed03331c7643
[ "MIT" ]
null
null
null
e_secretary/migrations/0010_auto_20190329_2219.py
tsitsikas96/e-secretary
bdda95e17093da730af33acf4b15ed03331c7643
[ "MIT" ]
1
2020-03-08T16:12:34.000Z
2020-03-08T16:12:34.000Z
# Generated by Django 2.1.7 on 2019-03-29 20:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('e_secretary', '0009_profile'), ] operations = [ migrations.AlterModelOptions( name='professor', options={'ordering':...
27.4
91
0.522179
1,688
0.947782
0
0
0
0
0
0
337
0.18922
f0d9cf2dd06e2e64395354f03a64ed4bfa3145d9
28,778
py
Python
catenets/models/jax/pseudo_outcome_nets.py
AliciaCurth/CATENets
aeeae7625e454e97adff37b66ba2acb527dbd275
[ "BSD-3-Clause" ]
33
2021-02-25T13:50:11.000Z
2022-03-11T14:31:40.000Z
catenets/models/jax/pseudo_outcome_nets.py
vanderschaarlab/CATENets
d0bc5316fa784fad78d8801367ed57c37193d2c5
[ "BSD-3-Clause" ]
2
2022-02-21T16:16:32.000Z
2022-03-23T17:56:29.000Z
catenets/models/jax/pseudo_outcome_nets.py
vanderschaarlab/CATENets
d0bc5316fa784fad78d8801367ed57c37193d2c5
[ "BSD-3-Clause" ]
8
2021-02-26T10:20:06.000Z
2021-12-03T16:34:23.000Z
""" Implements Pseudo-outcome based Two-step Nets, namely the DR-learner, the PW-learner and the RA-learner. """ # Author: Alicia Curth from typing import Callable, Optional, Tuple import jax.numpy as jnp import numpy as onp import pandas as pd from sklearn.model_selection import StratifiedKFold import catenets.logge...
35.267157
98
0.629057
14,576
0.506498
0
0
0
0
0
0
4,153
0.144312
f0db46fd26b0c7315a9b0cf93b8d1fbaf8362e97
2,743
py
Python
gender_converter/logger_aegender.py
roebel/DeepGC
03eee63ff9d9f4daa34435ddca530b262f097ea6
[ "MIT" ]
null
null
null
gender_converter/logger_aegender.py
roebel/DeepGC
03eee63ff9d9f4daa34435ddca530b262f097ea6
[ "MIT" ]
1
2021-08-11T06:41:56.000Z
2021-08-11T06:41:56.000Z
gender_converter/logger_aegender.py
roebel/DeepGC
03eee63ff9d9f4daa34435ddca530b262f097ea6
[ "MIT" ]
null
null
null
import random from plotting_utils import plot_spectrogram_to_numpy, image_for_logger, plot_to_image import numpy as np import tensorflow as tf class GParrotLogger(): def __init__(self, logdir, ali_path='ali'): # super(ParrotLogger, self).__init__(logdir) self.writer = tf.summary.create_file_write...
55.979592
112
0.728035
2,597
0.946774
0
0
0
0
0
0
423
0.154211
f0db6dccf419614f773337c9ea484f5c0bdce823
452
py
Python
itmo/2015-16/final/weight.py
dluschan/olymp
dfbf4352dbc7f6fd7563e7bd19aff6fd67fb50b7
[ "MIT" ]
null
null
null
itmo/2015-16/final/weight.py
dluschan/olymp
dfbf4352dbc7f6fd7563e7bd19aff6fd67fb50b7
[ "MIT" ]
null
null
null
itmo/2015-16/final/weight.py
dluschan/olymp
dfbf4352dbc7f6fd7563e7bd19aff6fd67fb50b7
[ "MIT" ]
1
2018-09-14T18:50:48.000Z
2018-09-14T18:50:48.000Z
weight = [] diff = 0 n = int(input()) for i in range(n): q, c = map(int, input().split()) if c == 2: q *= -1 weight.append(q) diff += q min_diff = abs(diff) for i in range(n): if abs(diff - 2*weight[i]) < min_diff: min_diff = abs(diff - 2*weight[i]) for j in range(i+1, n): ...
25.111111
60
0.526549
0
0
0
0
0
0
0
0
0
0
f0db8dc49a5a35a6b18b47a43dda531b71b817b6
534
py
Python
open_spiel/python/examples/test.py
ThorvaldAagaard/open_spiel
58f6584b555b1a1a83bf674f0cbe0162c1251eca
[ "Apache-2.0" ]
null
null
null
open_spiel/python/examples/test.py
ThorvaldAagaard/open_spiel
58f6584b555b1a1a83bf674f0cbe0162c1251eca
[ "Apache-2.0" ]
null
null
null
open_spiel/python/examples/test.py
ThorvaldAagaard/open_spiel
58f6584b555b1a1a83bf674f0cbe0162c1251eca
[ "Apache-2.0" ]
null
null
null
import pyspiel game = pyspiel.load_game('bridge(use_double_dummy_result=false)') line = '30 32 10 35 50 45 21 7 1 42 39 43 0 16 40 20 36 15 22 44 26 6 4 51 47 46 25 14 29 5 34 11 49 31 37 9 41 13 24 8 28 17 48 23 33 18 3 19 38 2 27 12 56 57 52 63 52 52 52 0 32 48 8 3 51 47 15 44 28 16 4 14 50 2 10 49 5 37 9 36 31 24 2...
59.333333
321
0.685393
0
0
0
0
0
0
0
0
356
0.666667
f0dc6c0f1ad89845b0333162183c190359534d22
906
py
Python
texel/keys.py
Xen0byte/texel
9dcfba163c66e9da5e9b0757c4e587f297b0cfcb
[ "MIT" ]
119
2022-02-06T21:47:55.000Z
2022-03-21T23:14:30.000Z
texel/keys.py
Xen0byte/texel
9dcfba163c66e9da5e9b0757c4e587f297b0cfcb
[ "MIT" ]
3
2022-02-07T08:47:20.000Z
2022-02-09T09:07:17.000Z
texel/keys.py
Xen0byte/texel
9dcfba163c66e9da5e9b0757c4e587f297b0cfcb
[ "MIT" ]
5
2022-02-07T08:13:11.000Z
2022-02-12T22:31:37.000Z
import curses class Key: def __init__(self, *values): self.values = values self._hash = hash(values) self._keyset = set(values) def __eq__(self, other): return self._hash == other._hash def __hash__(self): return self._hash class Keys: ESC = Key(27) TAB ...
25.885714
80
0.572848
886
0.977925
0
0
86
0.094923
0
0
40
0.04415
f0dd70671137f9276770eb4324b9867b67865ca3
51,458
py
Python
tests/test_number_cleaner.py
theseus-automl/gorgona
a7366d54430caa5a038488432fb93702e1cb83b8
[ "Apache-2.0" ]
1
2021-12-12T10:47:00.000Z
2021-12-12T10:47:00.000Z
tests/test_number_cleaner.py
theseus-automl/gorgona
a7366d54430caa5a038488432fb93702e1cb83b8
[ "Apache-2.0" ]
5
2021-12-12T10:45:04.000Z
2022-01-17T07:51:14.000Z
tests/test_number_cleaner.py
theseus-automl/gorgona
a7366d54430caa5a038488432fb93702e1cb83b8
[ "Apache-2.0" ]
null
null
null
import pytest from gorgona.stages.cleaners import NumberCleaner @pytest.fixture() def setup_number_cleaner(): nc = NumberCleaner( '', '', ) return nc def test_positive_integer_single_digit_single_digit(setup_number_cleaner): assert setup_number_cleaner("7") == "" def test_positiv...
39.766615
110
0.837324
0
0
0
0
114
0.002213
0
0
8,056
0.156409
f0dd9ec3c005973e7ab2799270be09efd623558e
9,700
py
Python
test/test_digitalbitbox.py
matejcik/HWI
f0021502d470660b9d8a5e79fcc440ac809a610f
[ "MIT" ]
54
2018-03-16T14:50:19.000Z
2019-01-29T19:19:17.000Z
test/test_digitalbitbox.py
matejcik/HWI
f0021502d470660b9d8a5e79fcc440ac809a610f
[ "MIT" ]
86
2018-01-30T18:40:44.000Z
2019-01-30T20:48:24.000Z
test/test_digitalbitbox.py
matejcik/HWI
f0021502d470660b9d8a5e79fcc440ac809a610f
[ "MIT" ]
11
2017-09-05T17:19:53.000Z
2019-01-10T19:11:04.000Z
#! /usr/bin/env python3 import argparse import atexit import json import os import subprocess import sys import time import unittest from test_device import ( Bitcoind, DeviceEmulator, DeviceTestCase, TestDeviceConnect, TestGetKeypool, TestGetDescriptors, TestSignTx, ) from hwilib.devices...
45.971564
161
0.668454
7,277
0.750206
0
0
0
0
0
0
3,075
0.31701
f0de783da190b1f53132dc15989ab3f8990f924d
560
py
Python
docs/conf.py
maru/fiubar
be12547ae3f4560765c86ce5c49988931b09b19a
[ "MIT" ]
5
2016-07-27T16:01:41.000Z
2020-03-10T21:11:31.000Z
docs/conf.py
maru/fiubar
be12547ae3f4560765c86ce5c49988931b09b19a
[ "MIT" ]
14
2015-07-22T16:41:58.000Z
2019-03-28T20:45:17.000Z
docs/conf.py
maru/fiubar
be12547ae3f4560765c86ce5c49988931b09b19a
[ "MIT" ]
3
2015-07-22T15:14:44.000Z
2018-04-16T09:49:35.000Z
import os on_rtd = os.environ.get('READTHEDOCS', None) == 'True' extensions = [] templates_path = ['_templates'] source_suffix = ['.rst', '.md'] master_doc = 'index' project = u'fiubar' copyright = u'2008-2018, Maru Berezin' version = '2.0.0' release = '2.0.0' exclude_trees = ['_build'] pygments_style = 'sphinx' html...
24.347826
62
0.707143
0
0
0
0
0
0
0
0
184
0.328571
f0debfa3d1d8a0bacee277563d8f6b144a1f884d
663
py
Python
2021/day9.py
tobeannouncd/AdventOfCode
b4fe6e9b10a0dc191429a90ab351806df03bca10
[ "MIT" ]
null
null
null
2021/day9.py
tobeannouncd/AdventOfCode
b4fe6e9b10a0dc191429a90ab351806df03bca10
[ "MIT" ]
null
null
null
2021/day9.py
tobeannouncd/AdventOfCode
b4fe6e9b10a0dc191429a90ab351806df03bca10
[ "MIT" ]
null
null
null
from io import StringIO import itertools import numpy as np import numpy.ma as ma inputfile = './input/day9.txt' # inputfile = StringIO('''2199943210 # 3987894921 # 9856789892 # 8767896789 # 9899965678''') def neighbors(ar, i, j): return {ar[i-1,j], ar[i+1,j], ar[i,j-1], ar[i...
22.1
68
0.616893
0
0
0
0
0
0
0
0
109
0.164404
f0df7eb72b3c3a8b625596cf0e32b466f1260149
456
py
Python
ml-env/examples/train.py
RafalSkolasinski/dockerfiles
8c8609fda42ad2b55960b64aef12774e00e2a4d4
[ "MIT" ]
null
null
null
ml-env/examples/train.py
RafalSkolasinski/dockerfiles
8c8609fda42ad2b55960b64aef12774e00e2a4d4
[ "MIT" ]
134
2021-02-10T14:32:47.000Z
2022-03-31T02:16:17.000Z
ml-env/examples/train.py
RafalSkolasinski/dockerfiles
8c8609fda42ad2b55960b64aef12774e00e2a4d4
[ "MIT" ]
null
null
null
import numpy as np import joblib from sklearn import datasets from sklearn import svm from sklearn.model_selection import train_test_split filename_p = "model.joblib" if __name__ == "__main__": digits = datasets.load_digits() X_train, X_test, y_train, y_test = train_test_split( digits.data, digit...
19
56
0.717105
0
0
0
0
0
0
0
0
24
0.052632
f0dfa56f80d5b88124cdf73fc8c809e7cf604253
1,050
py
Python
vocoder/datasets/__init__.py
ZENGZHEN-TTS/LVCNet
e81e13f3479a4d85f498a02e42338ebe823a8b3d
[ "Apache-2.0" ]
45
2021-02-23T07:43:14.000Z
2021-06-21T11:33:45.000Z
vocoder/datasets/__init__.py
JackZiLong/LVCNet
e81e13f3479a4d85f498a02e42338ebe823a8b3d
[ "Apache-2.0" ]
3
2021-04-08T05:01:38.000Z
2021-06-09T17:41:48.000Z
vocoder/datasets/__init__.py
ZENGZHEN-TTS/LVCNet
e81e13f3479a4d85f498a02e42338ebe823a8b3d
[ "Apache-2.0" ]
11
2021-02-25T18:14:12.000Z
2021-06-21T11:40:41.000Z
from .audio_mel import PWGAudioMelNoiseDataset, DataLoader dataset_class_dict = { "PWGAudioMelNoiseDataset": PWGAudioMelNoiseDataset } def create_dataloader(dataset_classname, dataset_config, batch_size=1, collate_fn=None, s...
31.818182
73
0.521905
0
0
0
0
0
0
0
0
229
0.218095
f0dfa6a70f2b05edad087e65290480ef3841bae8
911
py
Python
src/mdfserver/models.py
UCHIC/iUTAHData
4ffab29ad6b3313416bb2a8b98acf0b2e02c8cab
[ "Unlicense" ]
2
2015-02-25T01:12:51.000Z
2017-02-08T22:54:41.000Z
src/mdfserver/models.py
UCHIC/iUTAHData
4ffab29ad6b3313416bb2a8b98acf0b2e02c8cab
[ "Unlicense" ]
48
2015-01-12T18:01:56.000Z
2021-06-10T20:05:26.000Z
src/mdfserver/models.py
UCHIC/iUTAHData
4ffab29ad6b3313416bb2a8b98acf0b2e02c8cab
[ "Unlicense" ]
null
null
null
from django.db import models # from tinymce import models as tinymce_models # # # Create your models here. # # class Page(models.Model): # title = models.CharField(max_length=200) # url = models.CharField(max_length=200) # content = models.TextField(max_length=20000) #tinymce_models.HTMLField()#forms.CharFi...
45.55
181
0.70472
0
0
0
0
0
0
0
0
864
0.948408
f0e0241d9b692b14994b533da81167806bad291d
2,468
py
Python
tests/test_connectors_bigquery.py
bbc/foxglove
eb09b23aed51ed615eccf71bf20f2f6b28f4b32f
[ "Apache-2.0" ]
null
null
null
tests/test_connectors_bigquery.py
bbc/foxglove
eb09b23aed51ed615eccf71bf20f2f6b28f4b32f
[ "Apache-2.0" ]
null
null
null
tests/test_connectors_bigquery.py
bbc/foxglove
eb09b23aed51ed615eccf71bf20f2f6b28f4b32f
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019 BBC. Licensed under the terms of the Apache License 2.0. """ from unittest.mock import Mock import pytest from google.cloud.bigquery import Client from foxglove.connectors.bigquery import BigQueryConnector @pytest.fixture def fake_bq_client(): return Mock(spec=Client(project='test_project')...
29.73494
93
0.731361
0
0
0
0
1,886
0.764182
0
0
608
0.246353
f0e245d926233f4c636eb409d21b940db19ff2c8
1,982
py
Python
activitfinal.py
AjayBadrinath/Python-Stuff
34bb0339968b943cc63c5dc31721e3504faea157
[ "MIT" ]
null
null
null
activitfinal.py
AjayBadrinath/Python-Stuff
34bb0339968b943cc63c5dc31721e3504faea157
[ "MIT" ]
null
null
null
activitfinal.py
AjayBadrinath/Python-Stuff
34bb0339968b943cc63c5dc31721e3504faea157
[ "MIT" ]
null
null
null
import sys #"splchar":["!","@","#","$",".",",",":","%","^","*"] splchar=[chr(i) for i in range(33,48)]#ASCII spl charecter range from 33-48 and58-65#and i here is the mapping expression ie the thing thet is executed evry iteration splchar1=[chr(i) for i in range(58,65)]#Instead of explicit declaration of for loop ...
48.341463
168
0.652371
0
0
0
0
0
0
0
0
1,427
0.71998
f0e44d50b65aca97969715923cd5504c6c2fa654
28,838
py
Python
pytests/backup/ibr.py
ramalingam-cb/testrunner
81cea7a5a493cf0c67fca7f97c667cd3c6ad2142
[ "Apache-2.0" ]
null
null
null
pytests/backup/ibr.py
ramalingam-cb/testrunner
81cea7a5a493cf0c67fca7f97c667cd3c6ad2142
[ "Apache-2.0" ]
null
null
null
pytests/backup/ibr.py
ramalingam-cb/testrunner
81cea7a5a493cf0c67fca7f97c667cd3c6ad2142
[ "Apache-2.0" ]
null
null
null
__author__ = 'ashvinder' import re import os import gc import logger import time from TestInput import TestInputSingleton from backup.backup_base import BackupBaseTest from remote.remote_util import RemoteMachineShellConnection from couchbase_helper.documentgenerator import BlobGenerator from couchbase_helper.documentg...
45.485804
165
0.627055
27,921
0.968202
0
0
0
0
0
0
3,484
0.120813
f0e68b0a27260d16ee0b208166b5530ca8b0baef
963
py
Python
examples/test_feasibility.py
OllieBoyne/sslap
02c88a05dee1c33d5e0c9b405f947d522fb0b150
[ "MIT" ]
7
2021-03-12T17:28:18.000Z
2022-02-14T08:05:23.000Z
examples/test_feasibility.py
OllieBoyne/sslap
02c88a05dee1c33d5e0c9b405f947d522fb0b150
[ "MIT" ]
6
2021-03-12T17:38:21.000Z
2022-02-16T10:37:33.000Z
examples/test_feasibility.py
OllieBoyne/sslap
02c88a05dee1c33d5e0c9b405f947d522fb0b150
[ "MIT" ]
4
2021-03-18T14:25:52.000Z
2021-12-06T14:38:30.000Z
"""Check the feasibility of a bipartite graph by using SSLAP's feasibility module""" import numpy as np from sslap import hopcroft_solve # All 3 methods will use the same input bipartite graph: # i = 0 connects to j = 0, 1 # i = 1 connects to j = 1, 2 # i = 2 connects to j = 1, 4 # i = 3 connects to j = 2 # i = 4 con...
24.692308
105
0.5919
0
0
0
0
0
0
0
0
414
0.429907
f0e6c3af9d104e8e439e1bf9d7509dae91e833dd
5,933
py
Python
clot/app.py
elliptical/clot
d1ee8ddc7527b170c0943b567b1cd589d5007b4d
[ "MIT" ]
null
null
null
clot/app.py
elliptical/clot
d1ee8ddc7527b170c0943b567b1cd589d5007b4d
[ "MIT" ]
null
null
null
clot/app.py
elliptical/clot
d1ee8ddc7527b170c0943b567b1cd589d5007b4d
[ "MIT" ]
null
null
null
"""A simple command-line interface to the clot.torrent package.""" from argparse import ArgumentParser from os import path, walk import shutil from clot import __version__, torrent def main(): """Execute actions according to the command-line arguments.""" args = _parse_command_line() for source in arg...
33.331461
99
0.572055
0
0
0
0
0
0
0
0
1,586
0.267318
f0e7d6bd1974b95ea4a8abd9c52fb010ef93328b
475
py
Python
app/converter/nsl/substance_cv_converter.py
c0d3m0nkey/xml-to-json-converter
9cf040b591f45031c80dc5bc64d6fbb2c4665d25
[ "BSD-2-Clause" ]
null
null
null
app/converter/nsl/substance_cv_converter.py
c0d3m0nkey/xml-to-json-converter
9cf040b591f45031c80dc5bc64d6fbb2c4665d25
[ "BSD-2-Clause" ]
null
null
null
app/converter/nsl/substance_cv_converter.py
c0d3m0nkey/xml-to-json-converter
9cf040b591f45031c80dc5bc64d6fbb2c4665d25
[ "BSD-2-Clause" ]
null
null
null
from lxml import objectify, etree from operator import itemgetter from ..xml_converter import XmlConverter class SubstanceCVConverter(XmlConverter): def convert(self, xml): item = {} item["term_english_equiv"] = str(xml.attrib["term-english-equiv"]) item["term_id"] = str(xml.attrib["term-i...
36.538462
74
0.671579
366
0.770526
0
0
0
0
0
0
118
0.248421
f0e89ae2be157a7563b7db3f026034c5b7dec360
482
py
Python
cardiffshop/cardiffshop/urls.py
yigitguler/admin-example
48a0eacea1d03123fef5e86165749e9c0213e0d8
[ "MIT" ]
null
null
null
cardiffshop/cardiffshop/urls.py
yigitguler/admin-example
48a0eacea1d03123fef5e86165749e9c0213e0d8
[ "MIT" ]
null
null
null
cardiffshop/cardiffshop/urls.py
yigitguler/admin-example
48a0eacea1d03123fef5e86165749e9c0213e0d8
[ "MIT" ]
null
null
null
from products.views import ProductDetail from django.conf import settings from django.conf.urls.static import static from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^products/(?P<slug>[-\w]+)/', ProductDetail.as_view()...
37.076923
88
0.761411
0
0
0
0
0
0
0
0
56
0.116183
f0e928a38ffedd9b5a5fdacb57e277620b6e15be
339
py
Python
headlineVsHeadline/polls/models.py
bacarpenter/headline-vs-headline
2dc59e75fadbf7d5bb0a5b15a0bf41784712a290
[ "MIT" ]
null
null
null
headlineVsHeadline/polls/models.py
bacarpenter/headline-vs-headline
2dc59e75fadbf7d5bb0a5b15a0bf41784712a290
[ "MIT" ]
1
2020-12-28T01:28:19.000Z
2020-12-28T01:56:47.000Z
headlineVsHeadline/polls/models.py
bacarpenter/headline-vs-headline
2dc59e75fadbf7d5bb0a5b15a0bf41784712a290
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class HeadlineListing(models.Model): headline_text = models.CharField(max_length=500) accessed = models.DateTimeField() source_url = models.CharField(max_length=200) author = models.CharField(default="", max_length=200) source = models.CharFie...
33.9
57
0.755162
281
0.828909
0
0
0
0
0
0
28
0.082596
f0ea161b0bdb8c1460310c8cf5b767d1b7345d34
1,678
py
Python
plot_result.py
PrimordialOcean/diffusion-plagioclase
f85a9c9a348435ca162de2da3ae9290b56d66807
[ "MIT" ]
null
null
null
plot_result.py
PrimordialOcean/diffusion-plagioclase
f85a9c9a348435ca162de2da3ae9290b56d66807
[ "MIT" ]
null
null
null
plot_result.py
PrimordialOcean/diffusion-plagioclase
f85a9c9a348435ca162de2da3ae9290b56d66807
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd def main(): times = [ 1, 100, 365, 365*20, 365*100, 100000] df = pd.read_csv('tmp.csv') df_ini = pd.read_csv("initial_value.csv") xan_measured = (df_ini["distance"], df_ini["XAn"]) df_m = pd.read_csv('measured_value.csv') measured_da...
34.244898
79
0.557211
0
0
0
0
0
0
0
0
406
0.241955
f0ec35912039f91ed3134032fb990304ca7ef9ce
2,685
py
Python
tests/unit/test_core_context.py
nickchen-mitac/fork
64dab56012da47465b4923f30f26925476c87afc
[ "Apache-2.0" ]
null
null
null
tests/unit/test_core_context.py
nickchen-mitac/fork
64dab56012da47465b4923f30f26925476c87afc
[ "Apache-2.0" ]
null
null
null
tests/unit/test_core_context.py
nickchen-mitac/fork
64dab56012da47465b4923f30f26925476c87afc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import pytest from pydispatch import dispatcher from ava.core.context import Context, get_core_context class MockAgent(object): def __init__(self): self.greenlets = [] self._dispatcher = dispatcher ...
26.85
88
0.642831
2,410
0.897579
0
0
62
0.023091
0
0
118
0.043948
f0ed814c5e8a404bf3c7bc581d0b6d473446eadd
5,736
py
Python
Nitesh-Bhosle-Visualization-for-company-stakeholders/code.py
Niteshnupur/greyatom-python-for-data-science
fc8fd221f9ca1b256740b201dff2a806047644e5
[ "MIT" ]
3
2020-05-21T13:40:35.000Z
2020-05-21T15:05:04.000Z
Nitesh-Bhosle-Visualization-for-company-stakeholders/code.py
Niteshnupur/greyatom-python-for-data-science
fc8fd221f9ca1b256740b201dff2a806047644e5
[ "MIT" ]
null
null
null
Nitesh-Bhosle-Visualization-for-company-stakeholders/code.py
Niteshnupur/greyatom-python-for-data-science
fc8fd221f9ca1b256740b201dff2a806047644e5
[ "MIT" ]
1
2020-05-14T04:11:22.000Z
2020-05-14T04:11:22.000Z
# -------------- # Loan Status # Loan Status # Let's start with the simple task of visualizing the company's record with respect to loan approvals. #Importing header files import pandas as pd import numpy as np import matplotlib.pyplot as plt # The path to the dataset has been stored in a variable path # Lo...
25.493333
214
0.719317
0
0
0
0
0
0
0
0
4,129
0.71984
f0ef146504402ffb34754f9067bbfa37ee601926
649
py
Python
tests/migration_tests.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
tests/migration_tests.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
tests/migration_tests.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
1
2021-07-09T16:29:50.000Z
2021-07-09T16:29:50.000Z
import json from rabbitai.migrations.versions.fb13d49b72f9_better_filters import ( Slice, upgrade_slice, ) from .base_tests import RabbitaiTestCase class TestMigration(RabbitaiTestCase): def test_upgrade_slice(self): slc = Slice( slice_name="FOO", viz_type="filter_box", ...
25.96
70
0.640986
488
0.751926
0
0
0
0
0
0
80
0.123267
f0f04e94a81beb88cb190deaab3f4d7bf4be0477
125
py
Python
pyaz/mariadb/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/mariadb/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/mariadb/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
''' Manage Azure Database for MariaDB servers. ''' from .. pyaz_utils import _call_az from . import db, server, server_logs
17.857143
42
0.744
0
0
0
0
0
0
0
0
50
0.4
f0f24b597dd5dc011330fa8b6f22b56989bc02be
19,805
py
Python
utils/pvacapi/controllers/database.py
mrichters/pVACtools
1e86411055b3da9f81f966e83578dfadc3883498
[ "BSD-3-Clause-Clear" ]
96
2017-11-06T18:53:19.000Z
2022-02-28T07:36:12.000Z
utils/pvacapi/controllers/database.py
mrichters/pVACtools
1e86411055b3da9f81f966e83578dfadc3883498
[ "BSD-3-Clause-Clear" ]
521
2017-11-29T16:27:54.000Z
2022-03-30T13:57:38.000Z
utils/pvacapi/controllers/database.py
mrichters/pVACtools
1e86411055b3da9f81f966e83578dfadc3883498
[ "BSD-3-Clause-Clear" ]
53
2017-11-29T19:40:27.000Z
2022-01-14T16:51:12.000Z
import os import re import csv import sys import json import yaml import time import socket import connexion import postgresql as psql from flask import current_app from urllib.parse import urlencode from hashlib import md5 from bokeh.embed import server_document from .processes import fetch_process, is_running, proce...
38.833333
142
0.533401
0
0
0
0
0
0
0
0
5,522
0.278818
f0f336d7a75970c20e9d6a476b0d5df71d22aa9a
3,327
py
Python
BiasedPUlearning/nnPUSB/model.py
XINGXIAOYU/PUlearning
3401b77ccdd653d39f4f3a6258a42c7938fa9ede
[ "MIT" ]
24
2019-10-06T08:05:29.000Z
2021-12-20T10:52:17.000Z
BiasedPUlearning/nnPUSB/model.py
XINGXIAOYU/PUlearning
3401b77ccdd653d39f4f3a6258a42c7938fa9ede
[ "MIT" ]
2
2020-09-29T22:34:25.000Z
2020-09-29T22:43:01.000Z
BiasedPUlearning/nnPUSB/model.py
MasaKat0/PUlearning
3401b77ccdd653d39f4f3a6258a42c7938fa9ede
[ "MIT" ]
13
2019-05-20T06:29:52.000Z
2022-02-03T15:31:20.000Z
import numpy as np import chainer from chainer import cuda, Function, gradient_check, Variable from chainer import optimizers, serializers, utils from chainer import Link, Chain, ChainList import chainer.functions as F import chainer.links as L class normalNN(Chain): def __init__(self, dim): super().__ini...
28.930435
64
0.502254
3,075
0.924256
0
0
0
0
0
0
0
0
f0f42be3894dc386d19ebedd7a5a49fac7cfc1f4
1,597
py
Python
scripts/set_examples_to_doc.py
sasmirnov/numba-dppy
6ec41a5adab3034ddcfba2df312117afd6e2327b
[ "Apache-2.0" ]
null
null
null
scripts/set_examples_to_doc.py
sasmirnov/numba-dppy
6ec41a5adab3034ddcfba2df312117afd6e2327b
[ "Apache-2.0" ]
null
null
null
scripts/set_examples_to_doc.py
sasmirnov/numba-dppy
6ec41a5adab3034ddcfba2df312117afd6e2327b
[ "Apache-2.0" ]
null
null
null
""" This script is needed to convert gdb scripts from commands to documentation """ import os def convert_commands_to_docs(): commands_dir = os.getcwd() + "/numba_dppy/examples/debug/commands" examples = os.listdir(commands_dir) os.chdir(commands_dir + "/docs") for file in examples: if file !=...
36.295455
85
0.469004
0
0
0
0
0
0
0
0
287
0.179712
f0f438b51d2d508d57dd917ca013391d3e1a093f
6,672
py
Python
Phidget22/Devices/Accelerometer.py
keysie/python-fast-data-visualization
ebf392fe6d8d25bd5c178edbf095cf29e0daa4af
[ "MIT" ]
1
2020-02-26T12:43:07.000Z
2020-02-26T12:43:07.000Z
Phidget22/Devices/Accelerometer.py
keysie/phidget-python-interface
ebf392fe6d8d25bd5c178edbf095cf29e0daa4af
[ "MIT" ]
null
null
null
Phidget22/Devices/Accelerometer.py
keysie/phidget-python-interface
ebf392fe6d8d25bd5c178edbf095cf29e0daa4af
[ "MIT" ]
1
2020-02-26T12:43:12.000Z
2020-02-26T12:43:12.000Z
import sys import ctypes from Phidget22.PhidgetSupport import PhidgetSupport from Phidget22.PhidgetException import PhidgetException from Phidget22.Phidget import Phidget class Accelerometer(Phidget): def __init__(self): Phidget.__init__(self) self.handle = ctypes.c_void_p() if sys.platform == 'win32': se...
27.012146
145
0.77473
6,498
0.973921
0
0
0
0
0
0
7
0.001049
f0f5116f620313599917f1b146e0c00251125aed
728
py
Python
prickly-pufferfish/python_questions/merge_ranges.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
40
2020-08-02T07:38:22.000Z
2021-07-26T01:46:50.000Z
prickly-pufferfish/python_questions/merge_ranges.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
134
2020-07-31T12:15:45.000Z
2020-12-13T04:42:19.000Z
prickly-pufferfish/python_questions/merge_ranges.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
101
2020-07-31T12:00:47.000Z
2021-11-01T09:06:58.000Z
""" In HiCal, a meeting is stored as tuples of integers (start_time, end_time). / These integers represent the number of 30-minute blocks past 9:00am. / For example: / (2, 3) # meeting from 10:00 - 10:30 am / (6, 9) # meeting from 12:00 - 1:30 pm / Write a function merge_ranges() that / takes a list of meeting time ran...
28
77
0.539835
0
0
0
0
0
0
0
0
727
0.998626
f0f5c3172c842de383a43edeab846b0154a88fb9
1,209
py
Python
tests/tokenizers.py
theeluwin/textrankr
ec692be8d952dc0d88c74001e77f5a9be20a12d3
[ "MIT" ]
219
2016-05-03T08:38:36.000Z
2022-03-08T04:40:09.000Z
tests/tokenizers.py
theeluwin/textrankr
ec692be8d952dc0d88c74001e77f5a9be20a12d3
[ "MIT" ]
11
2016-05-03T11:25:03.000Z
2020-12-18T00:10:31.000Z
tests/tokenizers.py
theeluwin/textrankr
ec692be8d952dc0d88c74001e77f5a9be20a12d3
[ "MIT" ]
44
2016-07-02T05:18:49.000Z
2022-03-08T08:14:26.000Z
import json import requests from typing import List from konlpy.tag import Okt from requests.models import Response class OktTokenizer: """ A POS-tagger based tokenizer functor. Note that these are just examples. The `phrases` function usually gives a better result than an ordinary POS tokenizer. ...
28.116279
165
0.647643
1,085
0.897436
0
0
0
0
0
0
587
0.485525
f0f5e1e9645a14c12d5c5d93830c5d22ebcb474f
823
py
Python
Module/engine.py
NoahSchiro/physics-engine
c96d96eeaf823583ac1035d58fb69d7d47019f87
[ "MIT" ]
null
null
null
Module/engine.py
NoahSchiro/physics-engine
c96d96eeaf823583ac1035d58fb69d7d47019f87
[ "MIT" ]
null
null
null
Module/engine.py
NoahSchiro/physics-engine
c96d96eeaf823583ac1035d58fb69d7d47019f87
[ "MIT" ]
null
null
null
from free_bodies import * # This is the actual engine which is apply physics to objects class physics_engine: FB = [] # Array holds all of the objects in our simulation. FB = free bodies # Add free bodies to the system def add_fb(self, fb): self.FB.append(fb) # Remove a free body fro...
28.37931
84
0.584447
711
0.863913
0
0
0
0
0
0
374
0.454435
f0f736be57d784d43416f82badd0762190fea39d
96
py
Python
venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/psapi.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/psapi.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/psapi.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/57/99/fd/1d22e7d1fbf9ab07bcdf332318605c4de276c282734bf85d8c6421a6ce
96
96
0.895833
0
0
0
0
0
0
0
0
0
0
f0f901df9fc78d9208f11171a838b27095f77671
5,044
py
Python
tests/test_spi.py
petermankowski510/python-periphery-master
11e76632d4a58a77db71cb2e35815ef7ebc5e5dc
[ "MIT" ]
null
null
null
tests/test_spi.py
petermankowski510/python-periphery-master
11e76632d4a58a77db71cb2e35815ef7ebc5e5dc
[ "MIT" ]
null
null
null
tests/test_spi.py
petermankowski510/python-periphery-master
11e76632d4a58a77db71cb2e35815ef7ebc5e5dc
[ "MIT" ]
null
null
null
import sys import periphery from .asserts import AssertRaises if sys.version_info[0] == 3: raw_input = input spi_device = None def test_arguments(): print("Starting arguments test...") # Invalid mode with AssertRaises(ValueError): periphery.SPI(spi_device, 4, int(1e6)) # Invalid bit ord...
28.822857
117
0.634615
0
0
0
0
0
0
0
0
2,182
0.432593
f0fb0c535a2388e4de96ced030b5de23be03985e
12,129
py
Python
src/shapiro/language.py
roskakori/shapiro
55c702cb20b85cbfcc33e82964849414817339d0
[ "MIT" ]
2
2018-07-28T13:00:35.000Z
2019-01-07T08:57:34.000Z
src/shapiro/language.py
roskakori/shapiro
55c702cb20b85cbfcc33e82964849414817339d0
[ "MIT" ]
26
2018-07-28T10:39:36.000Z
2018-08-05T20:37:20.000Z
src/shapiro/language.py
roskakori/shapiro
55c702cb20b85cbfcc33e82964849414817339d0
[ "MIT" ]
5
2018-07-28T10:51:55.000Z
2018-07-28T13:58:45.000Z
""" Language specific settings """ from typing import Dict, Set from shapiro.common import Rating, ranged_rating from shapiro.tools import log, signum from spacy.tokens import Token _log = log class LanguageSentiment: def __init__(self, language_code: str): assert language_code is not None asser...
31.260309
113
0.480419
11,355
0.934568
0
0
0
0
0
0
3,334
0.274403
f0fe1edc9a050c8494f0a0d7ffeb0068529e480f
3,053
py
Python
sources/zmp_feedforwad_control.py
ekorudiawan/ZMP_Preview_Control_WPG
7a0574e1ff991aafb9324eb82d0b9e66e96737f1
[ "MIT" ]
8
2020-04-08T19:36:26.000Z
2022-01-29T18:13:58.000Z
sources/zmp_feedforwad_control.py
ekorudiawan/ZMP_Preview_Control_WPG
7a0574e1ff991aafb9324eb82d0b9e66e96737f1
[ "MIT" ]
null
null
null
sources/zmp_feedforwad_control.py
ekorudiawan/ZMP_Preview_Control_WPG
7a0574e1ff991aafb9324eb82d0b9e66e96737f1
[ "MIT" ]
5
2020-10-19T12:10:52.000Z
2022-02-17T03:03:47.000Z
# ZMP preview control simulation with Python # By : Eko Rudiawan Jamzuri # Email : [email protected] # This is an implementation of ZMP preview control with feedforward method # This Python program will calculating CoM trajectory based on ZMP trajectory input # The Gain parameter Gi, Gx, and Gd is imported from ma...
30.838384
103
0.523092
0
0
0
0
0
0
0
0
674
0.220766
f0fe907e32be0b4e9c4019c39f5c30195bfaa907
458
py
Python
algorithms/sorting/counting_sort.py
abhishektyagi2912/python-dsa
8f51f15a091ee76e00fb34abc232c23cb68440cb
[ "MIT" ]
1
2021-05-02T05:43:34.000Z
2021-05-02T05:43:34.000Z
algorithms/sorting/counting_sort.py
abhishektyagi2912/python-dsa
8f51f15a091ee76e00fb34abc232c23cb68440cb
[ "MIT" ]
null
null
null
algorithms/sorting/counting_sort.py
abhishektyagi2912/python-dsa
8f51f15a091ee76e00fb34abc232c23cb68440cb
[ "MIT" ]
null
null
null
def counting_sort(arr): # Find min and max values min_value = min(arr) max_value = max(arr) counting_arr = [0]*(max_value-min_value+1) for num in arr: counting_arr[num-min_value] += 1 index = 0 for i, count in enumerate(counting_arr): for _ in range(count): ...
21.809524
46
0.591703
0
0
0
0
0
0
0
0
25
0.054585
0b0149c561d9b693e298cce2051643d984729630
154
py
Python
Python/8 kyu/Grasshopper - Terminal Game Move Function/solution.py
Hsins/CodeWars
7e7b912fdd0647c0af381d8b566408e383ea5df8
[ "MIT" ]
1
2020-01-09T21:47:56.000Z
2020-01-09T21:47:56.000Z
Python/8 kyu/Grasshopper - Terminal Game Move Function/solution.py
Hsins/CodeWars
7e7b912fdd0647c0af381d8b566408e383ea5df8
[ "MIT" ]
1
2020-01-20T12:39:03.000Z
2020-01-20T12:39:03.000Z
Python/8 kyu/Grasshopper - Terminal Game Move Function/solution.py
Hsins/CodeWars
7e7b912fdd0647c0af381d8b566408e383ea5df8
[ "MIT" ]
null
null
null
# [8 kyu] Grasshopper - Terminal Game Move Function # # Author: Hsins # Date: 2019/12/20 def move(position, roll): return position + 2 * roll
17.111111
51
0.649351
0
0
0
0
0
0
0
0
91
0.590909
0b04026c6e3cfd8fd000afa2890bd940e623cf60
2,501
py
Python
server/app/__init__.py
trungkienbkhn/nmt-wizard
dcf1f20d92e0f9788a811e79093ac0d917ae9e4e
[ "MIT" ]
null
null
null
server/app/__init__.py
trungkienbkhn/nmt-wizard
dcf1f20d92e0f9788a811e79093ac0d917ae9e4e
[ "MIT" ]
null
null
null
server/app/__init__.py
trungkienbkhn/nmt-wizard
dcf1f20d92e0f9788a811e79093ac0d917ae9e4e
[ "MIT" ]
null
null
null
import os import logging.config import redis from flask import Flask from nmtwizard import common from nmtwizard import configuration as config from utils.database_utils import DatabaseUtils from flask_session import Session VERSION = "1.12.0" app = Flask(__name__) app.request_id = 1 def get_log_handler(): log_...
29.423529
107
0.754498
0
0
0
0
0
0
0
0
338
0.135146
0b04b5673e663cf9c8fc8da92d1c7bd8d879657a
1,152
py
Python
Neural_Networks/Multilayer/Neural_Multi_pybrain.py
jeffreire/Deep_Learning
960142080dc63ea103b326ea3d6d17bd44ae0f51
[ "MIT" ]
null
null
null
Neural_Networks/Multilayer/Neural_Multi_pybrain.py
jeffreire/Deep_Learning
960142080dc63ea103b326ea3d6d17bd44ae0f51
[ "MIT" ]
null
null
null
Neural_Networks/Multilayer/Neural_Multi_pybrain.py
jeffreire/Deep_Learning
960142080dc63ea103b326ea3d6d17bd44ae0f51
[ "MIT" ]
null
null
null
# from pybrain.datasets import SupervisedDataSet # from pybrain.supervised.trainers import BackpropTrainer # from pybrain.structure.modules import SoftmaxLayer # from pybrain.structure.modules import SigmoidLayer # from pybrain.tools.s import buildNetwork # (x,y,z) = x é a quantidade de camadas de entrada, y é a...
39.724138
123
0.664931
0
0
0
0
0
0
0
0
1,115
0.964533
0b058e034e1693406e04d820118fb4291f6395b3
4,213
py
Python
aries_cloudagent/protocols/present_proof/dif/tests/test_pres_request.py
kuraakhilesh8230/aries-cloudagent-python
ee384d1330f6a50ff45a507392ce54f92900f23a
[ "Apache-2.0" ]
4
2019-07-01T13:12:50.000Z
2019-07-02T20:01:37.000Z
aries_cloudagent/protocols/present_proof/dif/tests/test_pres_request.py
kuraakhilesh8230/aries-cloudagent-python
ee384d1330f6a50ff45a507392ce54f92900f23a
[ "Apache-2.0" ]
51
2021-01-12T05:50:50.000Z
2022-03-25T06:03:13.000Z
aries_cloudagent/protocols/present_proof/dif/tests/test_pres_request.py
kuraakhilesh8230/aries-cloudagent-python
ee384d1330f6a50ff45a507392ce54f92900f23a
[ "Apache-2.0" ]
12
2019-06-24T22:17:44.000Z
2019-07-02T19:49:31.000Z
from unittest import TestCase from ..pres_request_schema import DIFProofRequestSchema class TestPresRequestSchema(TestCase): """DIF Presentation Request Test""" def test_limit_disclosure(self): test_pd_a = { "options": { "challenge": "3fa85f64-5717-4562-b3fc-2c963f66afa7"...
38.651376
101
0.350344
4,123
0.978638
0
0
0
0
0
0
1,193
0.283171
0b066a126354f8b346cb7cd4adb064a1438b7f2c
1,190
py
Python
datadog/api/screenboards.py
gust/datadogpy
94f7dfeed87849a615916a5f171b25400b7c6cc5
[ "BSD-3-Clause" ]
null
null
null
datadog/api/screenboards.py
gust/datadogpy
94f7dfeed87849a615916a5f171b25400b7c6cc5
[ "BSD-3-Clause" ]
null
null
null
datadog/api/screenboards.py
gust/datadogpy
94f7dfeed87849a615916a5f171b25400b7c6cc5
[ "BSD-3-Clause" ]
null
null
null
from datadog.api.resources import GetableAPIResource, CreateableAPIResource, \ UpdatableAPIResource, DeletableAPIResource, ActionAPIResource, ListableAPIResource class Screenboard(GetableAPIResource, CreateableAPIResource, UpdatableAPIResource, DeletableAPIResource, ActionAPIRe...
31.315789
90
0.668908
1,021
0.857983
0
0
690
0.579832
0
0
527
0.442857
0b07019b4136badacad9043f3524e2c6ae411079
10,525
py
Python
models/TCNet.py
sjenni/LCI
5313fe9eb43fce8f0352828094369bc153d98eb1
[ "MIT" ]
13
2020-05-01T12:55:20.000Z
2021-09-30T14:44:33.000Z
models/TCNet.py
sjenni/LCI
5313fe9eb43fce8f0352828094369bc153d98eb1
[ "MIT" ]
1
2020-06-25T23:19:07.000Z
2020-06-25T23:19:07.000Z
models/TCNet.py
sjenni/LCI
5313fe9eb43fce8f0352828094369bc153d98eb1
[ "MIT" ]
8
2020-05-25T19:13:25.000Z
2021-09-24T05:34:36.000Z
from .alexnet import alexnet_V2 import tensorflow.compat.v1 as tf import tensorflow.contrib.slim as slim from utils import montage_tf from .lci_nets import patch_inpainter, patch_discriminator import tensorflow.contrib as contrib # Average pooling params for imagenet linear classifier experiments AVG_POOL_PARAMS = {'...
41.113281
120
0.618622
6,678
0.634489
0
0
0
0
0
0
850
0.08076
0b07d80b933132232b4df2d891725e4a81593fd0
1,486
py
Python
dbs/dal/Whiteport.py
xinghejd/opencanary_web
0d7eec70e154ad2d172175ab3bff48ba8999d5d9
[ "BSD-3-Clause" ]
633
2018-09-04T03:55:10.000Z
2022-03-18T07:21:01.000Z
dbs/dal/Whiteport.py
fankeji/opencanary_web
71156ef8d7f86e2bb380a69f584de9603bfba93a
[ "BSD-3-Clause" ]
51
2018-12-27T15:46:33.000Z
2022-03-03T03:16:16.000Z
dbs/dal/Whiteport.py
fankeji/opencanary_web
71156ef8d7f86e2bb380a69f584de9603bfba93a
[ "BSD-3-Clause" ]
233
2018-09-04T05:59:50.000Z
2022-03-10T06:00:30.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Author: pirogue Purpose: 白名单端口表操作 Site: http://pirogue.org Created: 2018-08-03 17:32:54 """ from dbs.initdb import DBSession from dbs.models.Whiteport import Whiteport from sqlalchemy import desc,asc from sqlalchemy.exc import InvalidRequestError # import s...
24.360656
73
0.596231
1,192
0.766067
0
0
0
0
0
0
296
0.190231
0b080bc190d330770740d83db0e379029d019b52
789
py
Python
anyconfig/singleton.py
edyan/python-anyconfig
d237909a6e4848737539b80951b710238c72052f
[ "MIT" ]
null
null
null
anyconfig/singleton.py
edyan/python-anyconfig
d237909a6e4848737539b80951b710238c72052f
[ "MIT" ]
null
null
null
anyconfig/singleton.py
edyan/python-anyconfig
d237909a6e4848737539b80951b710238c72052f
[ "MIT" ]
null
null
null
# # Copyright (C) 2018 Satoru SATOH <ssato @ redhat.com> # License: MIT # r"""Singleton class .. versionadded:: 0.9.8 - Add to make a kind of manager instancne later to manage plugins. """ from __future__ import absolute_import import threading class Singleton(object): """Singleton utilizes __new__ special m...
22.542857
73
0.6109
515
0.652725
0
0
0
0
0
0
336
0.425856
0b0815c2d6a9cafe4678f5aa35ab346506fdf7c6
4,937
py
Python
geophires_simulation/main.py
tuw-eeg/GEOPHIRES-simulation
14343cefd7c373f240e610a5a5a1143457a4f8d4
[ "Apache-2.0" ]
null
null
null
geophires_simulation/main.py
tuw-eeg/GEOPHIRES-simulation
14343cefd7c373f240e610a5a5a1143457a4f8d4
[ "Apache-2.0" ]
null
null
null
geophires_simulation/main.py
tuw-eeg/GEOPHIRES-simulation
14343cefd7c373f240e610a5a5a1143457a4f8d4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Sep 9 10:37:24 2020 @author: fallahnejad Important Note: all the costs provided in EUR should be multiplied by EUR2USD factor before providing to the GEOPHIRES """ import os import re import shutil import pandas as pd from .cm.geophires.GEOPHIRESv2 import geophires def a...
40.801653
119
0.625886
0
0
0
0
0
0
0
0
1,218
0.246709
0b08ce05031842d1b1da5e73875c7ace68953124
6,040
py
Python
mydb/test_postgres.py
dappsunilabs/DB4SCI
54bdd03aaa12957e622c921b263e187740a8b2ae
[ "Apache-2.0" ]
7
2018-12-05T19:18:20.000Z
2020-11-21T07:27:54.000Z
mydb/test_postgres.py
dappsunilabs/DB4SCI
54bdd03aaa12957e622c921b263e187740a8b2ae
[ "Apache-2.0" ]
8
2018-04-25T06:02:41.000Z
2020-09-08T21:55:56.000Z
mydb/test_postgres.py
FredHutch/DB4SCI
cc950a36b6b678fe16c1c91925ec402581636fc0
[ "Apache-2.0" ]
2
2019-11-14T02:09:09.000Z
2021-12-28T19:05:51.000Z
#!/usr/bin/python import time import psycopg2 import argparse import postgres_util import container_util import admin_db import volumes from send_mail import send_mail from config import Config def full_test(params): admin_db.init_db() con_name = params['dbname'] dbtype = params['dbtype'] print('Star...
36.606061
86
0.565728
0
0
0
0
0
0
0
0
1,901
0.314735
0b09670421913d5dc655e11f02bde1b874775f20
4,742
py
Python
perfectextractor/tests/test_extractor.py
UUDigitalHumanitieslab/time-in-translation
2b1a3ef2d382b725ec87f0266fc726fbeb818e7b
[ "MIT" ]
3
2020-04-22T15:12:58.000Z
2021-05-31T16:36:23.000Z
perfectextractor/tests/test_extractor.py
UUDigitalHumanitieslab/time-in-translation
2b1a3ef2d382b725ec87f0266fc726fbeb818e7b
[ "MIT" ]
13
2017-08-17T13:31:40.000Z
2022-03-11T10:29:22.000Z
perfectextractor/tests/test_extractor.py
UUDigitalHumanitieslab/time-in-translation
2b1a3ef2d382b725ec87f0266fc726fbeb818e7b
[ "MIT" ]
1
2020-04-16T10:33:05.000Z
2020-04-16T10:33:05.000Z
# -*- coding: utf-8 -*- import unittest from lxml import etree from perfectextractor.apps.extractor.models import Perfect from perfectextractor.corpora.opus.perfect import OPUSPerfectExtractor class TestPerfectExtractor(unittest.TestCase): def test_is_lexically_bound(self): en_ex = OPUSPerfectExtractor...
43.907407
110
0.653522
4,558
0.958167
0
0
0
0
0
0
860
0.180786
0b09bab5310470d71a60ceebe7eea1ff4b9be3ca
4,303
py
Python
python/tvm/tensor_graph/core/auto_schedule/utils.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
22
2022-03-18T07:29:31.000Z
2022-03-23T14:54:32.000Z
python/tvm/tensor_graph/core/auto_schedule/utils.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
null
null
null
python/tvm/tensor_graph/core/auto_schedule/utils.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
2
2022-03-18T08:26:34.000Z
2022-03-20T06:02:48.000Z
import tvm from functools import reduce from ..utils import to_int, to_int_or_None def get_need_tile(need_tile): return [True if x.value == 1 else False for x in need_tile] def get_factors(split_factor_entities): return [[x.value for x in factors.factors] for factors in split_factor_entities] def tile_axis(st...
28.496689
115
0.660702
0
0
0
0
0
0
0
0
437
0.101557
0b0b1a7b4c5a81ec7957c24cfd67e9ce4f84e8eb
7,311
py
Python
SCALA_library/Lower_level_tools/pyCorner260.py
snfactory/scala
f046d0e458bc4146546e80df16e15259f6019f93
[ "Apache-2.0" ]
null
null
null
SCALA_library/Lower_level_tools/pyCorner260.py
snfactory/scala
f046d0e458bc4146546e80df16e15259f6019f93
[ "Apache-2.0" ]
null
null
null
SCALA_library/Lower_level_tools/pyCorner260.py
snfactory/scala
f046d0e458bc4146546e80df16e15259f6019f93
[ "Apache-2.0" ]
null
null
null
########################################################### # LOWER LEVEL LIBRARY THAT TALKS TO THE MONOCHROMATON # ########################################################### import subprocess import time # -- See pyserial import serial class CornerStone260: """This class controlls the Cornerstone 26...
36.193069
95
0.562987
6,942
0.949528
0
0
0
0
0
0
2,627
0.359322
0b0d5b4aaea543cf63af89cd9a03e2708a9fbab7
4,845
py
Python
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/AutoDockTools/autoflex4Commands.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
8
2021-12-14T21:30:01.000Z
2022-02-14T11:30:03.000Z
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/AutoDockTools/autoflex4Commands.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
null
null
null
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/AutoDockTools/autoflex4Commands.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
null
null
null
############################################################################# # # Author: Ruth HUEY, Michel F. SANNER # # Copyright: M. Sanner TSRI 2008 # ############################################################################# # $Header: /opt/cvs/python/packages/share1.5/AutoDockTools/autoflex4Commands.py,v 1.1 ...
36.984733
118
0.707327
0
0
0
0
0
0
0
0
2,416
0.498658
0b0e2f1e049e622e46932ea64784ee002a5a6564
6,801
py
Python
cohesity_management_sdk/models/net_app_volume_information.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
cohesity_management_sdk/models/net_app_volume_information.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
cohesity_management_sdk/models/net_app_volume_information.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. import cohesity_management_sdk.models.cifs_share_information import cohesity_management_sdk.models.volume_security_information class NetAppVolumeInformation(object): """Implementation of the 'NetApp Volume Information.' model. Specifies information abou...
43.877419
200
0.641964
6,614
0.972504
0
0
2,036
0.299368
0
0
4,097
0.602411
0b0f14dc9edd917b5943eaee8fa4e20472331f44
170
py
Python
src/matlab2cpp/node/__init__.py
neilferg/matlab2cpp
aa26671fc73dad297c977511053b076e05bdd2df
[ "BSD-3-Clause" ]
null
null
null
src/matlab2cpp/node/__init__.py
neilferg/matlab2cpp
aa26671fc73dad297c977511053b076e05bdd2df
[ "BSD-3-Clause" ]
null
null
null
src/matlab2cpp/node/__init__.py
neilferg/matlab2cpp
aa26671fc73dad297c977511053b076e05bdd2df
[ "BSD-3-Clause" ]
null
null
null
""" The module contains the following submodules. """ from .frontend import Node __all__ = ["Node"] if __name__ == "__main__": import doctest doctest.testmod()
15.454545
45
0.688235
0
0
0
0
0
0
0
0
69
0.405882
0b0f2186008ea5990d722ee460df30182fea5006
1,088
py
Python
ipsc/2016/f.py
csferng/competitive-programming
f7ae710392c0fd606f735df6efcfca5e8fbd3501
[ "MIT" ]
null
null
null
ipsc/2016/f.py
csferng/competitive-programming
f7ae710392c0fd606f735df6efcfca5e8fbd3501
[ "MIT" ]
null
null
null
ipsc/2016/f.py
csferng/competitive-programming
f7ae710392c0fd606f735df6efcfca5e8fbd3501
[ "MIT" ]
null
null
null
import collections import itertools import re import sys read_str = lambda : sys.stdin.readline().strip() read_str_list = lambda : sys.stdin.readline().strip().split() read_int = lambda : int(read_str()) read_int_list = lambda : map(int, read_str_list()) read_float = lambda : float(read_str()) read_float_list = lambda...
21.76
76
0.581801
0
0
0
0
0
0
0
0
128
0.117647
0b1003b9ec3ab93ffe28039b6241e37c51da92c6
5,958
py
Python
mcpython/common/data/gen/TextureDataGen.py
mcpython4-coding/core
e4c4f59dab68c90e2028db3add2e5065116bf4a6
[ "CC0-1.0", "MIT" ]
2
2019-11-02T05:26:11.000Z
2019-11-03T08:52:18.000Z
mcpython/common/data/gen/TextureDataGen.py
mcpython4-coding/core
e4c4f59dab68c90e2028db3add2e5065116bf4a6
[ "CC0-1.0", "MIT" ]
25
2019-11-02T05:24:29.000Z
2022-02-09T14:09:08.000Z
mcpython/common/data/gen/TextureDataGen.py
mcpython4-coding/core
e4c4f59dab68c90e2028db3add2e5065116bf4a6
[ "CC0-1.0", "MIT" ]
5
2019-11-09T05:36:06.000Z
2021-11-28T13:07:08.000Z
""" mcpython - a minecraft clone written in python licenced under the MIT-licence (https://github.com/mcpython4-coding/core) Contributors: uuk, xkcdjerry (inactive) Based on the game of fogleman (https://github.com/fogleman/Minecraft), licenced under the MIT-licence Original game "minecraft" by Mojang Studios (www.m...
35.891566
125
0.544982
5,105
0.856831
0
0
0
0
0
0
1,686
0.282981
0b10cab889db1a04677f05bcfb228ad6218dea84
9,537
py
Python
qinling/tests/unit/api/controllers/v1/test_webhook.py
goldyfruit/qinling
7e1391056cc90c274f063ea25b59bb138fdfef94
[ "Apache-2.0" ]
null
null
null
qinling/tests/unit/api/controllers/v1/test_webhook.py
goldyfruit/qinling
7e1391056cc90c274f063ea25b59bb138fdfef94
[ "Apache-2.0" ]
null
null
null
qinling/tests/unit/api/controllers/v1/test_webhook.py
goldyfruit/qinling
7e1391056cc90c274f063ea25b59bb138fdfef94
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Catalyst IT Limited # # 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...
35.585821
79
0.624934
8,758
0.918318
0
0
2,076
0.217679
0
0
2,256
0.236552
0b112c171eb02964d852f653ff119690933ba7a7
314
py
Python
setup.py
elcolumbio/goofy
f922db2b9662fcc5e26529a2d428feaabede6b42
[ "Apache-2.0" ]
1
2018-06-29T06:03:17.000Z
2018-06-29T06:03:17.000Z
setup.py
elcolumbio/goofy
f922db2b9662fcc5e26529a2d428feaabede6b42
[ "Apache-2.0" ]
null
null
null
setup.py
elcolumbio/goofy
f922db2b9662fcc5e26529a2d428feaabede6b42
[ "Apache-2.0" ]
null
null
null
from setuptools import setup setup(name='goofy', version='0.1', description='A goofy ebay bot.', url='github.com/elcolumbio/goofy', author='Florian Benkö', author_email='[email protected]', license='Apache License, Version 2.0 (the "License")', packages=['goofy'])
28.545455
60
0.640127
0
0
0
0
0
0
0
0
153
0.485714
0b114a97cf42ee5a0905829c9063503a14dd4b05
1,820
py
Python
nxt/main.py
TeamGalileoRobotics/qLearning
70333f45373abc72a489e1ac4089f8e3db34c6a8
[ "MIT" ]
4
2017-09-27T16:16:58.000Z
2019-11-27T09:26:54.000Z
nxt/main.py
TeamGalileoRobotics/qLearning
70333f45373abc72a489e1ac4089f8e3db34c6a8
[ "MIT" ]
null
null
null
nxt/main.py
TeamGalileoRobotics/qLearning
70333f45373abc72a489e1ac4089f8e3db34c6a8
[ "MIT" ]
null
null
null
import random import os import traceback import json from environment import Environment from environment import Action # 0 <= GAMMA < 1 # GAMMA = 0 -> only consider immediate rewards # GAMMA = 1 -> consider future rewards GAMMA = 0.8 confidence = 0 # initialize "brain" brain = open("brainFile", "r") if(os.stat("....
21.162791
104
0.638462
0
0
0
0
0
0
0
0
433
0.237912
0b115c280b92cd1887912e7b5b880c8d693ab762
987
py
Python
final_project/machinetranslation/tests.py
eduardomecchia/xzceb-flask_eng_fr
fa2da58ecabd43385a77be42f1eb6cf5401d6757
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/tests.py
eduardomecchia/xzceb-flask_eng_fr
fa2da58ecabd43385a77be42f1eb6cf5401d6757
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/tests.py
eduardomecchia/xzceb-flask_eng_fr
fa2da58ecabd43385a77be42f1eb6cf5401d6757
[ "Apache-2.0" ]
null
null
null
import unittest import translator class TestEnglishToFrench(unittest.TestCase): def test_love(self): self.assertEqual(translator.english_to_french('Love'), 'Amour') def test_sun(self): self.assertEqual(translator.english_to_french('Sun'), 'Soleil') def test_null(self): self.as...
31.83871
74
0.703141
898
0.909828
0
0
0
0
0
0
94
0.095238
0b12869eee8275c66479c755fba088b954a1e101
2,149
py
Python
dataRT/http.py
thedeltaflyer/dataRT
9befbad597cfd50aea1ea48271adcd29e29a4d45
[ "MIT" ]
2
2020-04-26T14:47:04.000Z
2022-02-25T21:04:00.000Z
dataRT/http.py
thedeltaflyer/dataRT
9befbad597cfd50aea1ea48271adcd29e29a4d45
[ "MIT" ]
null
null
null
dataRT/http.py
thedeltaflyer/dataRT
9befbad597cfd50aea1ea48271adcd29e29a4d45
[ "MIT" ]
null
null
null
from flask import (Flask, jsonify) from gevent import (pywsgi, sleep) from geventwebsocket.handler import WebSocketHandler from . import __version__ from .logs import logger class FlaskApp(object): def __init__(self, host='', port=8080): self.app = Flask(__name__) self._register_routes() ...
27.551282
108
0.584458
1,971
0.917171
0
0
704
0.327594
0
0
235
0.109353
0b1294f67b7fca283b849f80601174b8800cd976
9,284
py
Python
order/views.py
abhijitdalavi/matrix
29a736e6112994d6d746d9846520dcd532feb46d
[ "MIT" ]
null
null
null
order/views.py
abhijitdalavi/matrix
29a736e6112994d6d746d9846520dcd532feb46d
[ "MIT" ]
null
null
null
order/views.py
abhijitdalavi/matrix
29a736e6112994d6d746d9846520dcd532feb46d
[ "MIT" ]
null
null
null
from django.views.generic import ListView, CreateView, UpdateView from django.utils.decorators import method_decorator from django.contrib.admin.views.decorators import staff_member_required from django.shortcuts import get_object_or_404, redirect, reverse from django.urls import reverse_lazy from django.contrib import...
37.739837
118
0.630978
2,647
0.285114
0
0
8,532
0.919
0
0
856
0.092202
0b13468367f2b17010236ccf549467580e3949c1
4,880
py
Python
example/testify_pytorch_to_caffe_example.py
templeblock/nn_tools
4389f3e2ca35b0a37f872cbb85f3cadd3f94e4eb
[ "MIT" ]
null
null
null
example/testify_pytorch_to_caffe_example.py
templeblock/nn_tools
4389f3e2ca35b0a37f872cbb85f3cadd3f94e4eb
[ "MIT" ]
null
null
null
example/testify_pytorch_to_caffe_example.py
templeblock/nn_tools
4389f3e2ca35b0a37f872cbb85f3cadd3f94e4eb
[ "MIT" ]
null
null
null
import caffe import torch import numpy as np import argparse from collections import OrderedDict from torch.autograd import Variable import torch.nn as nn def arg_parse(): parser = argparse.ArgumentParser() parser.add_argument('--model', '-m', default='alexnet') parser.add_argument('--decimal', '-d', defa...
33.655172
100
0.63832
0
0
0
0
0
0
0
0
596
0.122131
0b13920e15983fcf25bab57e71b06db2fade7f5d
1,903
py
Python
gregsprograms/ohshots.py
gjhartwell/cth-python
558148a5755fd0bd3b12e1380d365f8bf51efa19
[ "MIT" ]
null
null
null
gregsprograms/ohshots.py
gjhartwell/cth-python
558148a5755fd0bd3b12e1380d365f8bf51efa19
[ "MIT" ]
null
null
null
gregsprograms/ohshots.py
gjhartwell/cth-python
558148a5755fd0bd3b12e1380d365f8bf51efa19
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue May 26 15:53:33 2020 @author: hartwgj """ # -------------------------------------- # OHShots.py # # MDSplus Python project # for CTH data access # # OHShots.py --- gets the shots within a given date range that use OH # # Parameters: # startdate # enddate # # Returns: #...
25.716216
78
0.393589
0
0
0
0
0
0
0
0
751
0.39464
0b1418e35fb652db01e8e815e64e3fe3157b954a
6,271
py
Python
app.py
plotly/radon-transform-visualisation
5a2fc53316087a08972400e55b1af54ebfb1b528
[ "MIT" ]
null
null
null
app.py
plotly/radon-transform-visualisation
5a2fc53316087a08972400e55b1af54ebfb1b528
[ "MIT" ]
null
null
null
app.py
plotly/radon-transform-visualisation
5a2fc53316087a08972400e55b1af54ebfb1b528
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output import numpy as np import cv2 import matplotlib.pyplot as plt from skimage.transform import radon, rescale, rotate import plotly.graph_objs as go ext...
26.238494
92
0.545368
0
0
0
0
3,173
0.50598
0
0
1,417
0.225961
0b14ffda334fedd5c264042439a74b0107e9cb74
766
py
Python
code/chapter_04/listing_04_13.py
guinslym/python_earth_science_book
f4dd0115dbbce140c6713989f630a71238daa72c
[ "MIT" ]
80
2021-04-19T10:03:57.000Z
2022-03-30T15:34:47.000Z
code/chapter_04/listing_04_13.py
guinslym/python_earth_science_book
f4dd0115dbbce140c6713989f630a71238daa72c
[ "MIT" ]
null
null
null
code/chapter_04/listing_04_13.py
guinslym/python_earth_science_book
f4dd0115dbbce140c6713989f630a71238daa72c
[ "MIT" ]
23
2021-04-25T03:50:07.000Z
2022-03-22T03:06:19.000Z
# Go to new line using \n print('-------------------------------------------------------') print("My name is\nMaurizio Petrelli") # Inserting characters using octal values print('-------------------------------------------------------') print("\100 \136 \137 \077 \176") # Inserting characters using hex values print('...
31.916667
64
0.26893
0
0
0
0
0
0
0
0
703
0.917755
0b15fe672d85053023d683317e83766d99d50902
505
py
Python
azure/durable_functions/models/RetryOptions.py
gled4er/azure-functions-durable-python
f212d4c32372e093a6d4d607ba40a2f443372f43
[ "MIT" ]
9
2019-08-16T15:37:51.000Z
2020-05-12T17:33:50.000Z
azure/durable_functions/models/RetryOptions.py
gled4er/azure-functions-durable-python
f212d4c32372e093a6d4d607ba40a2f443372f43
[ "MIT" ]
7
2019-07-26T00:24:20.000Z
2020-01-29T16:30:06.000Z
azure/durable_functions/models/RetryOptions.py
gled4er/azure-functions-durable-python
f212d4c32372e093a6d4d607ba40a2f443372f43
[ "MIT" ]
11
2019-07-22T17:40:47.000Z
2020-06-24T14:43:18.000Z
class RetryOptions: def __init__(self, firstRetry: int, maxNumber: int): self.backoffCoefficient: int self.maxRetryIntervalInMilliseconds: int self.retryTimeoutInMilliseconds: int self.firstRetryIntervalInMilliseconds: int = firstRetry self.maxNumberOfAttempts: int = maxNumb...
38.846154
69
0.683168
504
0.99802
0
0
0
0
0
0
65
0.128713
0b1794937b8fbf2bc1062698f11f7eb5b8b36fe3
14,753
py
Python
modules/kachelmann_bot.py
WhereIsTheExit/HeinzBot
1e35f1706d03b47dddfa8b8a04cede6a7c4be301
[ "Apache-2.0" ]
6
2019-05-12T13:30:48.000Z
2020-07-30T08:58:10.000Z
modules/kachelmann_bot.py
WhereIsTheExit/HeinzBot
1e35f1706d03b47dddfa8b8a04cede6a7c4be301
[ "Apache-2.0" ]
16
2019-05-11T14:07:06.000Z
2021-11-29T22:13:35.000Z
modules/kachelmann_bot.py
WhereIsTheExit/HeinzBot
1e35f1706d03b47dddfa8b8a04cede6a7c4be301
[ "Apache-2.0" ]
5
2019-05-11T13:29:47.000Z
2020-01-15T12:18:40.000Z
import datetime import urllib from urllib.request import urlopen import time import logging import bs4 import telegram from telegram import Update from telegram.ext import CommandHandler, CallbackContext from modules.abstract_module import AbstractModule from utils.decorators import register_module, register_command...
47.590323
140
0.626856
14,019
0.947678
0
0
14,038
0.948962
0
0
5,109
0.345366