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
faa101944e1ea1419bd8c69ecd6e50fa2ceaf965
2,280
py
Python
source/0A_write_cgi_v1.4.py
SpencerEricksen/PCBA_downloads_oxphos
62f5b7a6faf2743afa31368d3e8d529e248c815d
[ "MIT" ]
null
null
null
source/0A_write_cgi_v1.4.py
SpencerEricksen/PCBA_downloads_oxphos
62f5b7a6faf2743afa31368d3e8d529e248c815d
[ "MIT" ]
null
null
null
source/0A_write_cgi_v1.4.py
SpencerEricksen/PCBA_downloads_oxphos
62f5b7a6faf2743afa31368d3e8d529e248c815d
[ "MIT" ]
null
null
null
# script to read-in CID list and write out cgi XML files # for molecule downloads from pubchem using PUG REST # usage: 1_write_cgi_PUG_v1.4.py pcba-aid411_activities.csv import pandas as pd import sys def dump_cgi_xml( outfile, cid_list, AID, AID_chunk ): '''write out a cgi xml file for fetching''' outfi...
31.666667
107
0.548684
0
0
0
0
0
0
0
0
1,318
0.57807
faa1e8c5adf5fa05097413ffe672e4a2b342669b
1,974
py
Python
src/pymor/analyticalproblems/instationary.py
mahgadalla/pymor
ee2806b4c93748e716294c42454d611415da7b5e
[ "Unlicense" ]
1
2021-07-26T12:58:50.000Z
2021-07-26T12:58:50.000Z
src/pymor/analyticalproblems/instationary.py
mahgadalla/pymor
ee2806b4c93748e716294c42454d611415da7b5e
[ "Unlicense" ]
null
null
null
src/pymor/analyticalproblems/instationary.py
mahgadalla/pymor
ee2806b4c93748e716294c42454d611415da7b5e
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2017 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) from pymor.core.interfaces import ImmutableInterface class InstationaryP...
34.631579
104
0.66464
1,680
0.847629
0
0
0
0
0
0
1,140
0.575177
faa39971968922b9da43428bb86ae50cc3a8e49d
3,183
py
Python
pituophis/cli.py
dotcomboom/Pituophis
fbd07497a79a637f7bba4916458561cfdde9d698
[ "BSD-2-Clause" ]
30
2019-02-15T16:24:21.000Z
2022-03-08T00:52:26.000Z
pituophis/cli.py
dotcomboom/Pituophis
fbd07497a79a637f7bba4916458561cfdde9d698
[ "BSD-2-Clause" ]
16
2019-02-12T00:54:52.000Z
2020-10-28T16:27:35.000Z
pituophis/cli.py
dotcomboom/Pituophis
fbd07497a79a637f7bba4916458561cfdde9d698
[ "BSD-2-Clause" ]
2
2019-09-02T04:26:21.000Z
2020-05-15T20:46:35.000Z
import importlib import sys import pituophis # check if the user is running the script with the correct number of arguments if len(sys.argv) < 2: # if not, print the usage print('usage: pituophis [command] cd [options]') print('Commands:') print(' serve [options]') print(' fetch [url] [options]')...
40.807692
145
0.568646
0
0
0
0
0
0
0
0
1,299
0.408106
faa43f92ed4419078ca8c87c5823af07d1f539bd
1,711
py
Python
test/synth_mcmc.py
chris-stock/pyglm
fff2e91b0936275f37a7860bd75f867b560f4993
[ "MIT" ]
1
2017-03-11T19:10:17.000Z
2017-03-11T19:10:17.000Z
test/synth_mcmc.py
chris-stock/pyglm
fff2e91b0936275f37a7860bd75f867b560f4993
[ "MIT" ]
null
null
null
test/synth_mcmc.py
chris-stock/pyglm
fff2e91b0936275f37a7860bd75f867b560f4993
[ "MIT" ]
null
null
null
# Run as script using 'python -m test.synth' import cPickle import os import scipy.io from models.model_factory import * from inference.gibbs import gibbs_sample from utils.avg_dicts import average_list_of_dicts from synth_harness import initialize_test_harness from plotting.plot_results import plot_results from popul...
32.903846
81
0.661017
0
0
0
0
0
0
0
0
363
0.212157
faa4586ea3fbf6fea84324823f11f12d5b8ac80d
1,297
py
Python
pysh/transforms/autoimport.py
drslump/pysh
673cdf2b5ea95dc3209cb294bb91cb2f298bb888
[ "MIT" ]
3
2018-07-09T04:39:24.000Z
2020-11-27T05:44:56.000Z
pysh/transforms/autoimport.py
drslump/pysh
673cdf2b5ea95dc3209cb294bb91cb2f298bb888
[ "MIT" ]
null
null
null
pysh/transforms/autoimport.py
drslump/pysh
673cdf2b5ea95dc3209cb294bb91cb2f298bb888
[ "MIT" ]
1
2018-08-02T21:57:11.000Z
2018-08-02T21:57:11.000Z
""" Every name reference is swapped for a call to ``__autoimport__``, which will check if it's part of the locals or globals, falling back to trying an import before giving up. """ from importlib import import_module from ast import NodeTransformer, copy_location, fix_missing_locations, \ AST, Call, Name, Load, St...
23.160714
72
0.652274
447
0.344641
0
0
0
0
0
0
225
0.173477
faa460343b71b091ee5a98825ebabe0d6f30a3f0
4,983
py
Python
spyre/spyre/widgets/task.py
zhong-lab/optics
9de1942d9a128183ecb3d360b160b27126e7b8f0
[ "BSD-2-Clause" ]
1
2022-03-27T07:47:19.000Z
2022-03-27T07:47:19.000Z
spyre/spyre/widgets/task.py
zhong-lab/optics
9de1942d9a128183ecb3d360b160b27126e7b8f0
[ "BSD-2-Clause" ]
null
null
null
spyre/spyre/widgets/task.py
zhong-lab/optics
9de1942d9a128183ecb3d360b160b27126e7b8f0
[ "BSD-2-Clause" ]
4
2019-11-08T22:39:04.000Z
2021-11-05T02:39:37.000Z
from PyQt5 import QtWidgets, QtCore, QtGui from pyqtgraph import SignalProxy class TaskWidget(QtWidgets.QWidget): def __init__(self, task, rate_limit=0.01, parent=None): super().__init__(parent=parent) self.task = task self.init_ui() proxy_config = { 'signal': self.task...
35.848921
109
0.589003
4,489
0.900863
0
0
1,686
0.33835
0
0
483
0.09693
faa59189fcb0db287ca016ded409105514d4c263
15,742
py
Python
tests/test_fluids_bw92.py
trhallam/digirock
05b1199d741a384345a4930605be97369c9ec270
[ "MIT" ]
null
null
null
tests/test_fluids_bw92.py
trhallam/digirock
05b1199d741a384345a4930605be97369c9ec270
[ "MIT" ]
2
2022-02-28T08:51:53.000Z
2022-02-28T13:24:33.000Z
tests/test_fluids_bw92.py
trhallam/digirock
05b1199d741a384345a4930605be97369c9ec270
[ "MIT" ]
null
null
null
"""Test functions for pem.fluid.bw92 module """ import pytest from pytest import approx from _pytest.fixtures import SubRequest from hypothesis import given, settings, strategies as st import numpy as np import digirock.fluids.bw92 as bw92 from .strategies import n_varshp_arrays @pytest.fixture(scope="...
28.363964
102
0.581629
0
0
0
0
14,100
0.895693
0
0
1,556
0.098844
faa609968ff5a4b42dcd92861e9a5c5ca3e91929
3,103
py
Python
apps/site/api/views/abstract_views.py
LocalGround/localground
aa5a956afe7a84a7763a3b23d62a9fd925831cd7
[ "Apache-2.0" ]
9
2015-05-29T22:22:20.000Z
2022-02-01T20:39:00.000Z
apps/site/api/views/abstract_views.py
LocalGround/localground
aa5a956afe7a84a7763a3b23d62a9fd925831cd7
[ "Apache-2.0" ]
143
2015-01-22T15:03:40.000Z
2020-06-27T01:55:29.000Z
apps/site/api/views/abstract_views.py
LocalGround/localground
aa5a956afe7a84a7763a3b23d62a9fd925831cd7
[ "Apache-2.0" ]
5
2015-03-16T20:51:49.000Z
2017-02-07T20:48:49.000Z
from localground.apps.lib.helpers import get_timestamp_no_milliseconds from localground.apps.site.api import filters from localground.apps.site import models from rest_framework import generics, status, exceptions from localground.apps.site.api.serializers.user_profile_serializer import \ UserProfileSerializer from...
36.081395
79
0.705769
2,563
0.825975
0
0
0
0
0
0
355
0.114405
faa6a4c65241a389b815a30946e018a7f9d065de
1,859
py
Python
mymoney/apps/banktransactiontags/tests/test_models.py
ychab/mymoney
9ee665d40648fd0b95f6e90d82ccf2bfc791e8af
[ "BSD-3-Clause" ]
67
2015-12-22T10:27:34.000Z
2022-03-10T21:33:18.000Z
mymoney/apps/banktransactiontags/tests/test_models.py
clebercarmo/mymoney
9ee665d40648fd0b95f6e90d82ccf2bfc791e8af
[ "BSD-3-Clause" ]
null
null
null
mymoney/apps/banktransactiontags/tests/test_models.py
clebercarmo/mymoney
9ee665d40648fd0b95f6e90d82ccf2bfc791e8af
[ "BSD-3-Clause" ]
35
2016-08-07T11:43:51.000Z
2022-02-21T21:20:06.000Z
import unittest from mymoney.apps.bankaccounts.factories import BankAccountFactory from mymoney.core.factories import UserFactory from ..factories import BankTransactionTagFactory from ..models import BankTransactionTag class ManagerTestCase(unittest.TestCase): def setUp(self): self.owner = UserFactory...
32.051724
81
0.692846
1,631
0.877353
0
0
0
0
0
0
44
0.023669
faa7367cd6852d4396d5b354611f83726f61a9ab
690
py
Python
users/migrations/0017_auto_20190828_1311.py
dhanupandey12/Blog
fcd274b7249c255786b46cf81d6e949a903e9a53
[ "MIT" ]
null
null
null
users/migrations/0017_auto_20190828_1311.py
dhanupandey12/Blog
fcd274b7249c255786b46cf81d6e949a903e9a53
[ "MIT" ]
null
null
null
users/migrations/0017_auto_20190828_1311.py
dhanupandey12/Blog
fcd274b7249c255786b46cf81d6e949a903e9a53
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-08-28 07:41 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0016_friends'), ] operations = [ migrations.AlterModelOptions( name='friends', options={'verbose_name': 'Friend Lis...
25.555556
90
0.575362
605
0.876812
0
0
0
0
0
0
236
0.342029
faaa7770b0b932ab885702144bdccdde0f72ae42
819
py
Python
NLP/Platsbanken/CustomStopwords.py
lambda-snail/PythonMix
f2308a9a9cc1caa120b45de15dfa58b3c807d498
[ "MIT" ]
null
null
null
NLP/Platsbanken/CustomStopwords.py
lambda-snail/PythonMix
f2308a9a9cc1caa120b45de15dfa58b3c807d498
[ "MIT" ]
null
null
null
NLP/Platsbanken/CustomStopwords.py
lambda-snail/PythonMix
f2308a9a9cc1caa120b45de15dfa58b3c807d498
[ "MIT" ]
null
null
null
""" A list of stopwords to filter out, in addition to those that are already being filtered by the built-in toolkit. """ CustomStopwords = ['alltid', 'fler', 'ta', 'tar', 'sker', 'redan', 'who', 'what', 'gilla', 'big', 'something','fler', 'cv', 'snart', 'minst', 'kunna', '000', 'hr-plus', 'enligt...
58.5
123
0.5116
0
0
0
0
0
0
0
0
555
0.663876
faaaa6a2ed4e84a8136fbdc2d54d77b3af907a93
5,612
py
Python
root_gnn/trainer.py
Calvin-Qiu/TopReco
e9f7f0067530bc9140cd5ca51a134882fe259dbd
[ "Apache-2.0" ]
null
null
null
root_gnn/trainer.py
Calvin-Qiu/TopReco
e9f7f0067530bc9140cd5ca51a134882fe259dbd
[ "Apache-2.0" ]
null
null
null
root_gnn/trainer.py
Calvin-Qiu/TopReco
e9f7f0067530bc9140cd5ca51a134882fe259dbd
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from tensorflow.compat.v1 import logging logging.set_verbosity("INFO") logging.info("TF Version:{}".format(tf.__version__)) try: import horovod.tensorflow as hvd no_horovod = False except ModuleNotFoundError: logging.warning("No horvod module, cannot perform distributed training") ...
31.886364
108
0.65556
3,848
0.685674
551
0.098182
0
0
0
0
317
0.056486
faaad1e0a17c9ccfde15b59721ef3b9545cff063
871
py
Python
tests/test_vera.py
j-faria/vera
96cbdb61c98c3527416611155b29a03a2bc66b15
[ "MIT" ]
null
null
null
tests/test_vera.py
j-faria/vera
96cbdb61c98c3527416611155b29a03a2bc66b15
[ "MIT" ]
null
null
null
tests/test_vera.py
j-faria/vera
96cbdb61c98c3527416611155b29a03a2bc66b15
[ "MIT" ]
null
null
null
# import pytest def test_imports(): import vera from vera import RV def test_dace(): from vera.query_dace import get_observations _ = get_observations('HD10180', verbose=False) def test_read_rdb(): from vera import RV from os.path import dirname, join here = dirname(__file__) s = R...
18.531915
70
0.652124
0
0
0
0
0
0
0
0
134
0.153846
faab2433ad95cb7f0eab338db2a54fe92593e98a
11,664
py
Python
UMDPythonhangtestudo.py
FourplayHangman/Hangman-Kules
47f3f0deb8f1ee6f62c17807c014ba3865e4bcf5
[ "Apache-2.0" ]
null
null
null
UMDPythonhangtestudo.py
FourplayHangman/Hangman-Kules
47f3f0deb8f1ee6f62c17807c014ba3865e4bcf5
[ "Apache-2.0" ]
null
null
null
UMDPythonhangtestudo.py
FourplayHangman/Hangman-Kules
47f3f0deb8f1ee6f62c17807c014ba3865e4bcf5
[ "Apache-2.0" ]
1
2017-11-27T01:41:10.000Z
2017-11-27T01:41:10.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Project: Hangman File: hangman.py Author: Korvin F. Ezüst Created: 2017-11-24 IDE: PyCharm Community Edition Synopsis: hangman.py [ARGUMENT] Description: A simple hangman game that runs in the command li...
26.813793
73
0.561557
0
0
0
0
0
0
0
0
6,289
0.538442
faab28a77efcc6a6f4a4d08a57dae03f29543153
4,974
py
Python
tutorialworkflowresult.py
olegxtend/cdl_2021_demo
63bc7e5f7c9f5297b2b14ad864bb2a05d913f0ed
[ "MIT" ]
5
2021-07-16T16:18:21.000Z
2021-11-28T03:57:13.000Z
tutorialworkflowresult.py
olegxtend/cdl_2021_demo
63bc7e5f7c9f5297b2b14ad864bb2a05d913f0ed
[ "MIT" ]
null
null
null
tutorialworkflowresult.py
olegxtend/cdl_2021_demo
63bc7e5f7c9f5297b2b14ad864bb2a05d913f0ed
[ "MIT" ]
13
2021-07-16T15:46:05.000Z
2021-08-03T05:26:49.000Z
import json import os import typing import codecs import typing import os import json import dill from dataclasses import dataclass, field ENCODED_PICKLE = "encodedpickle" class TutorialJsonIOManager(typing.List[str]): """ TutorialJsonIOManager will read step results from a json file """ def __init_...
32.940397
97
0.620225
2,838
0.56988
0
0
648
0.13012
0
0
1,375
0.276104
faabfacf609a3780238f931eb1d3d9a233d1bf6c
3,382
py
Python
examples/sim_dust.py
Guo-Jian-Wang/cmbNNCS
cd55e0a2344aa5182d099cf559bc986ae0351cb7
[ "MIT" ]
null
null
null
examples/sim_dust.py
Guo-Jian-Wang/cmbNNCS
cd55e0a2344aa5182d099cf559bc986ae0351cb7
[ "MIT" ]
null
null
null
examples/sim_dust.py
Guo-Jian-Wang/cmbNNCS
cd55e0a2344aa5182d099cf559bc986ae0351cb7
[ "MIT" ]
null
null
null
import sys sys.path.append('../') sys.path.append('../..') import cmbnncs.utils as utils import cmbnncs.spherical as spherical import cmbnncs.simulator as simulator import numpy as np import time start_time = time.time() def sim_Dust(dust_seed, frequ, amplitude_randn, spectralIndex_randn, temp_randn): ### ComDust ...
46.972222
163
0.702543
0
0
0
0
0
0
0
0
1,405
0.415435
faadc11e3f24c6373636e3bb5814da8ad0ad2c17
14,140
py
Python
anima/env/nukeEnv.py
tws0002/anima
73c256d1f7716a2db7933d6d8519a51333c7e5b4
[ "BSD-2-Clause" ]
null
null
null
anima/env/nukeEnv.py
tws0002/anima
73c256d1f7716a2db7933d6d8519a51333c7e5b4
[ "BSD-2-Clause" ]
null
null
null
anima/env/nukeEnv.py
tws0002/anima
73c256d1f7716a2db7933d6d8519a51333c7e5b4
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2012-2018, Anima Istanbul # # This module is part of anima-tools and is released under the BSD 2 # License: http://www.opensource.org/licenses/BSD-2-Clause import os import nuke from nukescripts import * from anima.env import empty_reference_resolution from anima.env.base import...
33.037383
111
0.585007
13,800
0.975955
0
0
1,088
0.076945
0
0
5,552
0.392645
faae62e74233d85e1942ad4875600b68b5c29875
99
py
Python
trade_remedies_api/config/settings/bdd.py
uktrade/trade-remedies-api
fbe2d142ef099c7244788a0f72dd1003eaa7edce
[ "MIT" ]
1
2020-08-13T10:37:15.000Z
2020-08-13T10:37:15.000Z
trade_remedies_api/config/settings/bdd.py
uktrade/trade-remedies-api
fbe2d142ef099c7244788a0f72dd1003eaa7edce
[ "MIT" ]
4
2020-09-10T13:41:52.000Z
2020-12-16T09:00:21.000Z
trade_remedies_api/config/settings/bdd.py
uktrade/trade-remedies-api
fbe2d142ef099c7244788a0f72dd1003eaa7edce
[ "MIT" ]
null
null
null
from .base import * # noqa INSTALLED_APPS += [ "api_test", ] ROOT_URLCONF = "api_test.urls"
12.375
30
0.646465
0
0
0
0
0
0
0
0
31
0.313131
faaed7d726fb97374e33fe05e85c8cca35b6cc7d
2,015
py
Python
web/certificates/migrations/0011_doublecoutingregistration_doublecoutingregistrationinputoutput.py
MTES-MCT/biocarburants
ff084916e18cdbdc41400f36fa6cc76a5e05900e
[ "MIT" ]
4
2020-03-22T18:13:12.000Z
2021-01-25T10:33:31.000Z
web/certificates/migrations/0011_doublecoutingregistration_doublecoutingregistrationinputoutput.py
MTES-MCT/carbure
2876756b760ab4866fa783bb40e61a046eebb1ab
[ "MIT" ]
20
2020-07-06T14:33:14.000Z
2022-03-15T16:54:17.000Z
web/certificates/migrations/0011_doublecoutingregistration_doublecoutingregistrationinputoutput.py
MTES-MCT/biocarburants
ff084916e18cdbdc41400f36fa6cc76a5e05900e
[ "MIT" ]
4
2020-04-03T12:19:12.000Z
2021-06-15T12:20:57.000Z
# Generated by Django 3.2.4 on 2021-07-22 09:40 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0175_lotv2_lots_v2_year_87d135_idx'), ('certificates', '0010_auto_20210509_1038'), ] operations = [...
43.804348
144
0.60794
1,893
0.937593
0
0
0
0
0
0
693
0.343239
faaf8287b96dcdd8bc10415fc576deae3677d866
2,206
py
Python
floodsystem/plot.py
caizicharles/IA-Floodwarning
2f4931d000ca98b6c304507a422aabb49b4bd231
[ "MIT" ]
null
null
null
floodsystem/plot.py
caizicharles/IA-Floodwarning
2f4931d000ca98b6c304507a422aabb49b4bd231
[ "MIT" ]
null
null
null
floodsystem/plot.py
caizicharles/IA-Floodwarning
2f4931d000ca98b6c304507a422aabb49b4bd231
[ "MIT" ]
null
null
null
from .datafetcher import fetch_measure_levels from .stationdata import build_station_list, update_water_levels from .flood import stations_highest_rel_level import numpy as np import matplotlib import matplotlib.pyplot as plt from datetime import datetime, timedelta from floodsystem.station import inconsistent_typical_...
28.649351
93
0.691296
0
0
0
0
0
0
0
0
143
0.064823
fab1ae1fd23f251523f0e24d567662098132f1c5
232
py
Python
edx/problem_set_1/bob.py
spradeepv/dive-into-python
ec27d4686b7b007d21f9ba4f85d042be31ee2639
[ "MIT" ]
null
null
null
edx/problem_set_1/bob.py
spradeepv/dive-into-python
ec27d4686b7b007d21f9ba4f85d042be31ee2639
[ "MIT" ]
null
null
null
edx/problem_set_1/bob.py
spradeepv/dive-into-python
ec27d4686b7b007d21f9ba4f85d042be31ee2639
[ "MIT" ]
null
null
null
s = raw_input() find = 'bob' count = 0 index = 0 while index < len(s): index = s.find(find, index) if index == -1: break index += 2 count += 1 print "Number of times bob occurs is:", count
21.090909
45
0.521552
0
0
0
0
0
0
0
0
37
0.159483
fab1c59f92d41695f6c520dc6fa5d7c7dc7fd893
533
py
Python
documentstore_migracao/main/__init__.py
jamilatta/document-store-migracao
dc0473fb3ccf8c6c5f8d599b353f8c9caf104f55
[ "BSD-2-Clause" ]
null
null
null
documentstore_migracao/main/__init__.py
jamilatta/document-store-migracao
dc0473fb3ccf8c6c5f8d599b353f8c9caf104f55
[ "BSD-2-Clause" ]
null
null
null
documentstore_migracao/main/__init__.py
jamilatta/document-store-migracao
dc0473fb3ccf8c6c5f8d599b353f8c9caf104f55
[ "BSD-2-Clause" ]
null
null
null
""" module to methods to main """ import sys from .migrate_isis import migrate_isis_parser from .migrate_articlemeta import migrate_articlemeta_parser from .tools import tools_parser def main_migrate_articlemeta(): """ method main to script setup.py """ sys.exit(migrate_articlemeta_parser(sys.argv[1:])) ...
21.32
59
0.739212
0
0
0
0
0
0
0
0
82
0.153846
fab2d81b0d580f8beb6589e4107725b0beb05fc3
721
py
Python
zang/domain/fraud_control_rule_element.py
vlastikczech/zang-python
980f5243071404d6838554500a6955ff7bc2a0c7
[ "MIT" ]
1
2019-02-18T21:51:58.000Z
2019-02-18T21:51:58.000Z
zang/domain/fraud_control_rule_element.py
vlastikczech/zang-python
980f5243071404d6838554500a6955ff7bc2a0c7
[ "MIT" ]
6
2019-06-26T13:56:22.000Z
2022-02-17T16:40:48.000Z
zang/domain/fraud_control_rule_element.py
vlastikczech/zang-python
980f5243071404d6838554500a6955ff7bc2a0c7
[ "MIT" ]
6
2017-10-17T12:44:32.000Z
2020-02-07T20:45:00.000Z
# -*- coding: utf-8 -*- """ zang.domain.fraud_control_rule_whitelisted ~~~~~~~~~~~~~~~~~~~ `FraudControlRuleElement` model """ from zang.domain.base_resource import BaseResource from zang.domain.fraud_control_rule import FraudControlRule class FraudControlRuleElement(BaseResource): _map = { 'blocked': ...
20.6
59
0.674064
478
0.662968
0
0
197
0.273232
0
0
159
0.220527
fab458a70a67ab83469b992d3cb10888dc4cb5fd
6,321
py
Python
.qt_for_python/uic/installer.py
thomascswalker/bettergameexporter
4db3683a599d523e28c2f93bdcac889277130153
[ "MIT" ]
null
null
null
.qt_for_python/uic/installer.py
thomascswalker/bettergameexporter
4db3683a599d523e28c2f93bdcac889277130153
[ "MIT" ]
null
null
null
.qt_for_python/uic/installer.py
thomascswalker/bettergameexporter
4db3683a599d523e28c2f93bdcac889277130153
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'installer.ui' ## ## Created by: Qt User Interface Compiler version 5.15.1 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################...
42.422819
175
0.701946
5,842
0.924221
0
0
0
0
0
0
981
0.155197
fab4d1310e9ef911cecc3613e34d95dcfd6c0157
404
py
Python
paginas/migrations/0014_auto_20190206_2343.py
igor-pontes/Dolex
4d65a288fbf6cdf44628994fea3c821e8af2ea61
[ "MIT" ]
null
null
null
paginas/migrations/0014_auto_20190206_2343.py
igor-pontes/Dolex
4d65a288fbf6cdf44628994fea3c821e8af2ea61
[ "MIT" ]
4
2020-07-14T13:02:48.000Z
2021-06-10T20:27:09.000Z
paginas/migrations/0014_auto_20190206_2343.py
igor-pontes/Dolex
4d65a288fbf6cdf44628994fea3c821e8af2ea61
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-02-06 23:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('paginas', '0013_auto_20190206_1739'), ] operations = [ migrations.AlterField( model_name='players_lobby', name='slot...
21.263158
63
0.608911
311
0.769802
0
0
0
0
0
0
102
0.252475
fab57ed22c9e496c6b5d1c1f3f59197a8dfcfb21
2,231
py
Python
tap_gleantap/executor.py
Radico/tap-gleantap
1b2cafe6647224a60f68969c07c603cacca8ccd4
[ "Apache-2.0" ]
null
null
null
tap_gleantap/executor.py
Radico/tap-gleantap
1b2cafe6647224a60f68969c07c603cacca8ccd4
[ "Apache-2.0" ]
null
null
null
tap_gleantap/executor.py
Radico/tap-gleantap
1b2cafe6647224a60f68969c07c603cacca8ccd4
[ "Apache-2.0" ]
null
null
null
import singer from tap_kit import TapExecutor from tap_kit.utils import (transform_write_and_count) LOGGER = singer.get_logger() class GleanExecutor(TapExecutor): def __init__(self, streams, args, client): """ Args: streams (arr[Stream]) args (dict) client (B...
28.974026
88
0.543702
2,097
0.939937
0
0
0
0
0
0
555
0.248767
fab71b81531484d1696ade3aa93eda9a02495ebe
4,028
py
Python
design_patterns/factory_andri.py
andricampagnaro/documentacoes_e_testes
a12b1348dbb43ad72fe56a6287e228d6c031e36f
[ "MIT" ]
null
null
null
design_patterns/factory_andri.py
andricampagnaro/documentacoes_e_testes
a12b1348dbb43ad72fe56a6287e228d6c031e36f
[ "MIT" ]
4
2021-06-08T21:55:17.000Z
2022-01-13T02:57:49.000Z
design_patterns/factory_andri.py
andricampagnaro/documentacao_python3
a12b1348dbb43ad72fe56a6287e228d6c031e36f
[ "MIT" ]
null
null
null
# import logging # logging.basicConfig(filename='example.log',level=logging.DEBUG) # logging.debug('This message should go to the log file') # logging.info('So should this') # logging.warning('And this, too ã') class ValidaSmart(): def __init__(self): self._carrega_modulos_externos() def _carrega_mod...
33.566667
88
0.635055
3,229
0.798467
0
0
53
0.013106
0
0
1,594
0.394164
fab73276314f39860cdf6b1e49f429594d065a0f
14,376
py
Python
codes/models/modules/sftmd_arch.py
Mark-sloan/IKC
f70af607e9434931c22e4971469aaed7683a22a3
[ "Apache-2.0" ]
1
2020-02-27T09:27:17.000Z
2020-02-27T09:27:17.000Z
codes/models/modules/sftmd_arch.py
Mark-sloan/IKC
f70af607e9434931c22e4971469aaed7683a22a3
[ "Apache-2.0" ]
null
null
null
codes/models/modules/sftmd_arch.py
Mark-sloan/IKC
f70af607e9434931c22e4971469aaed7683a22a3
[ "Apache-2.0" ]
null
null
null
''' architecture for sftmd ''' import torch import torch.nn as nn import torch.nn.functional as F class Predictor(nn.Module): def __init__(self, input_channel=3, code_len=10, ndf=64, use_bias=True): super(Predictor, self).__init__() self.ConvNet = nn.Sequential(*[ nn.Conv2d(input_chan...
42.40708
128
0.61081
14,254
0.991514
0
0
0
0
0
0
643
0.044727
fab86be6f16580e58ee8836bf4504a1098307651
539
py
Python
server/urls.py
Valchris/AngularJS-Django-Template
10c90087984dcd9e6d29380eb4380824e65bcecf
[ "MIT" ]
1
2015-07-29T04:28:26.000Z
2015-07-29T04:28:26.000Z
server/urls.py
Valchris/AngularJS-Django-Template
10c90087984dcd9e6d29380eb4380824e65bcecf
[ "MIT" ]
null
null
null
server/urls.py
Valchris/AngularJS-Django-Template
10c90087984dcd9e6d29380eb4380824e65bcecf
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.contrib import admin from glue.views import * from glue.api import * urlpatterns = [ # Examples: # url(r'^$', 'server.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^api/user/data/', view=user_data), url(r'^api/user/si...
26.95
52
0.64564
0
0
0
0
0
0
0
0
191
0.35436
fab9927c333b405b4078ba0c4fbf717659119bd5
1,040
py
Python
Webcam2YouTubeLive.py
JulianLiederer/ffmpeg-youtube-live
63ce3b642d41c9368a3cf7b370b3ae7ccaaeeaa7
[ "MIT" ]
2
2020-03-30T13:55:32.000Z
2020-06-23T21:37:45.000Z
Webcam2YouTubeLive.py
liederer/ffmpeg-youtube-live
63ce3b642d41c9368a3cf7b370b3ae7ccaaeeaa7
[ "MIT" ]
null
null
null
Webcam2YouTubeLive.py
liederer/ffmpeg-youtube-live
63ce3b642d41c9368a3cf7b370b3ae7ccaaeeaa7
[ "MIT" ]
2
2022-01-02T18:40:06.000Z
2022-02-19T12:32:19.000Z
#!/usr/bin/env python """ LIVE STREAM TO YOUTUBE LIVE using FFMPEG -- from webcam https://www.scivision.co/youtube-live-ffmpeg-livestream/ https://support.google.com/youtube/answer/2853702 Windows: get DirectShow device list from: ffmpeg -list_devices true -f dshow -i dummy """ from youtubelive_ffmpeg import youtu...
26
56
0.678846
0
0
0
0
0
0
0
0
461
0.443269
fabc177219e2e95776351ee5bdc5b7834e86aaf5
17,943
py
Python
nebula/dao/strategy_dao.py
threathunterX/nebula_web
2e32e6e7b225e0bd87ee8c847c22862f12c51bb1
[ "Apache-2.0" ]
2
2019-05-01T09:42:32.000Z
2019-05-31T01:08:37.000Z
nebula/dao/strategy_dao.py
threathunterX/nebula_web
2e32e6e7b225e0bd87ee8c847c22862f12c51bb1
[ "Apache-2.0" ]
1
2021-06-01T23:30:04.000Z
2021-06-01T23:30:04.000Z
nebula/dao/strategy_dao.py
threathunterX/nebula_web
2e32e6e7b225e0bd87ee8c847c22862f12c51bb1
[ "Apache-2.0" ]
5
2019-05-14T09:30:12.000Z
2020-09-29T04:57:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import json import logging from threathunter_common.util import millis_now from nebula_meta.model import Strategy from .base_dao import BaseDao, BaseDefaultDao from . import cache from ..models.default import StrategyDefaultModel as M...
32.68306
113
0.567687
12,848
0.6949
0
0
0
0
0
0
5,575
0.301531
fabc961b87da1b6806ebcaaaca91e938753fd2bc
2,205
py
Python
src/21_zip.py
TheFlipbook/python_challenge
21bd42178088bcaafbe02c25a76bc4f2950509b2
[ "MIT" ]
null
null
null
src/21_zip.py
TheFlipbook/python_challenge
21bd42178088bcaafbe02c25a76bc4f2950509b2
[ "MIT" ]
null
null
null
src/21_zip.py
TheFlipbook/python_challenge
21bd42178088bcaafbe02c25a76bc4f2950509b2
[ "MIT" ]
null
null
null
# http://www.pythonchallenge.com/pc/bin/hex.html import bz2 import io import urllib.request import urllib.error import zipfile import zlib out_dir = "_out/idiot" prompt = "http://www.pythonchallenge.com/pc/hex/unreal.jpg" prompt_top = "http://www.pythonchallenge.com/pc/hex/" prompt_range = 1152983631 prompt_pass =...
24.5
67
0.631293
0
0
0
0
0
0
0
0
433
0.196372
fabc996394a50d0044d4c07929a9f64d42ea2f3d
86
py
Python
awards/signals.py
fgmacedo/django-awards
a5307a96f8d39abdd466eb854049dd0f7b13eaee
[ "MIT" ]
null
null
null
awards/signals.py
fgmacedo/django-awards
a5307a96f8d39abdd466eb854049dd0f7b13eaee
[ "MIT" ]
305
2017-05-16T17:45:58.000Z
2022-03-18T07:20:22.000Z
awards/signals.py
fgmacedo/django-awards
a5307a96f8d39abdd466eb854049dd0f7b13eaee
[ "MIT" ]
null
null
null
from django.dispatch import Signal badge_awarded = Signal(providing_args=["badge"])
17.2
48
0.790698
0
0
0
0
0
0
0
0
7
0.081395
fabd8c394c9b5ebf1b3c158c1fcc13c3e5dcf49b
2,596
py
Python
tests/test_auth/test_upload_passport.py
peterwade153/flybob
85fcd401bffed9adb06e7943f0c748be822fac75
[ "MIT" ]
1
2019-09-09T15:04:07.000Z
2019-09-09T15:04:07.000Z
tests/test_auth/test_upload_passport.py
peterwade153/flybob
85fcd401bffed9adb06e7943f0c748be822fac75
[ "MIT" ]
26
2019-03-27T16:59:26.000Z
2021-06-01T23:35:27.000Z
tests/test_auth/test_upload_passport.py
peterwade153/flybob
85fcd401bffed9adb06e7943f0c748be822fac75
[ "MIT" ]
null
null
null
import unittest from unittest.mock import patch, Mock from werkzeug.datastructures import FileStorage import io import json from app import app from app.models.base import db from app.models.user import User from app.auth.views import UserPassportphotoView from app.auth import views class AuthUploadPassportPhotoTes...
28.844444
71
0.558937
2,307
0.888675
0
0
438
0.168721
0
0
517
0.199153
fabe4605f255d398162a6669d4a99f004a58a723
6,380
py
Python
qchem/tests/test_two_particle.py
theRoughCode/pennylane
317f82ef00c752beeef7d2412b88119a753467b4
[ "Apache-2.0" ]
1
2020-10-15T01:09:27.000Z
2020-10-15T01:09:27.000Z
qchem/tests/test_two_particle.py
theRoughCode/pennylane
317f82ef00c752beeef7d2412b88119a753467b4
[ "Apache-2.0" ]
1
2020-10-04T22:45:45.000Z
2020-10-04T22:45:45.000Z
qchem/tests/test_two_particle.py
theRoughCode/pennylane
317f82ef00c752beeef7d2412b88119a753467b4
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import pytest from pennylane import qchem from openfermion.hamiltonians import MolecularData ref_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "test_ref_files") table_1 = np.array( [ [0.0, 0.0, 0.0, 0.0, 0.68238953], [0.0, 1.0, 1.0, 0.0, 0.68238953]...
37.529412
92
0.487461
0
0
0
0
1,770
0.277429
0
0
734
0.115047
fac02a78f618b71b9828bd71e56497f77be5f2b6
1,571
py
Python
example_project/news_with_archive/migrations/0001_initial.py
richardbarran/django-minipub
f6df9b15cf49ba95c5aefed5355a7d3de0241c3f
[ "MIT" ]
7
2016-02-19T12:52:01.000Z
2021-07-07T05:10:41.000Z
example_project/news_with_archive/migrations/0001_initial.py
richardbarran/django-minipub
f6df9b15cf49ba95c5aefed5355a7d3de0241c3f
[ "MIT" ]
2
2018-05-14T09:28:25.000Z
2021-05-12T19:21:10.000Z
example_project/news_with_archive/migrations/0001_initial.py
richardbarran/django-minipub
f6df9b15cf49ba95c5aefed5355a7d3de0241c3f
[ "MIT" ]
1
2021-03-24T00:44:22.000Z
2021-03-24T00:44:22.000Z
# Generated by Django 2.0 on 2018-02-14 13:39 from django.db import migrations, models import django.utils.timezone import model_utils.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Article', ...
44.885714
225
0.621897
1,425
0.907066
0
0
0
0
0
0
282
0.179504
fac137087e41cae16ef6b6cc8d7e95ccb0632729
6,159
py
Python
recipes/Python/578344_Simple_Finite_State_Machine_class_/recipe-578344.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/578344_Simple_Finite_State_Machine_class_/recipe-578344.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/578344_Simple_Finite_State_Machine_class_/recipe-578344.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
#! /usr/bin/env python """ Generic finite state machine class Initialise the class with a list of tuples - or by adding transitions Tony Flury - November 2012 Released under an MIT License - free to use so long as the author and other contributers are credited. """ class fsm(object): """ A simple to u...
41.06
178
0.585485
3,683
0.597987
0
0
0
0
0
0
2,704
0.439032
fac23535a62e06c8d2d429ebcc6d5025ccbe4a0b
873
py
Python
self-citation-check.py
Darkbladecr/pyresearch
e621923e33be234320ea4b7eafc556ff0f6565dc
[ "MIT" ]
7
2016-08-18T16:06:50.000Z
2021-09-14T23:53:26.000Z
self-citation-check.py
wenxuefeng3930/pyresearch
e621923e33be234320ea4b7eafc556ff0f6565dc
[ "MIT" ]
1
2016-12-20T10:21:35.000Z
2016-12-24T07:39:04.000Z
self-citation-check.py
wenxuefeng3930/pyresearch
e621923e33be234320ea4b7eafc556ff0f6565dc
[ "MIT" ]
3
2018-05-02T05:13:42.000Z
2022-03-12T16:07:56.000Z
from __future__ import division from optparse import OptionParser import numpy parser = OptionParser() parser.add_option("-i", "--input", dest="input", help="input file") (options, args) = parser.parse_args() def numpyImport(file): output = numpy.load("%s.npy" % file) output = output.item() return output...
33.576923
97
0.681558
0
0
0
0
0
0
0
0
198
0.226804
fac2cf1e6f7f65f78b062d38d2f66e6dbe2d2d4a
1,631
py
Python
socialaccount/admin.py
establishment/django-establishment
ad1d04fe9efc748e2fba5b4bc67446d2a4cf12f6
[ "CC0-1.0" ]
1
2017-04-27T19:35:42.000Z
2017-04-27T19:35:42.000Z
socialaccount/admin.py
establishment/django-establishment
ad1d04fe9efc748e2fba5b4bc67446d2a4cf12f6
[ "CC0-1.0" ]
null
null
null
socialaccount/admin.py
establishment/django-establishment
ad1d04fe9efc748e2fba5b4bc67446d2a4cf12f6
[ "CC0-1.0" ]
null
null
null
from django.contrib import admin from django import forms from establishment.accounts.utils import get_user_search_fields from .models import SocialApp, SocialAccount, SocialToken, SocialProvider class SocialAppForm(forms.ModelForm): class Meta: model = SocialApp exclude = [] widgets = {...
30.203704
73
0.677498
1,230
0.754139
0
0
0
0
0
0
273
0.167382
fac3be260753887f939d9f7cefb2d2cf2009eb52
1,665
py
Python
tap_github/tap.py
edgarrmondragon/tap-github
8eec764884801139651570fb9732fe3bfbe4617c
[ "Apache-2.0" ]
null
null
null
tap_github/tap.py
edgarrmondragon/tap-github
8eec764884801139651570fb9732fe3bfbe4617c
[ "Apache-2.0" ]
null
null
null
tap_github/tap.py
edgarrmondragon/tap-github
8eec764884801139651570fb9732fe3bfbe4617c
[ "Apache-2.0" ]
null
null
null
"""GitHub tap class.""" from typing import List from singer_sdk import Tap, Stream from singer_sdk import typing as th # JSON schema typing helpers from tap_github.streams import ( CommitsStream, CommunityProfileStream, IssueCommentsStream, IssueEventsStream, IssuesStream, PullRequestsStream...
27.295082
71
0.606006
1,258
0.755556
0
0
0
0
0
0
268
0.160961
fac3e2d997ccbfcf9bd430f63bf90f4c1c8106fa
14,513
py
Python
grand/backends/sqlbackend.py
aplbrain/grand
d85669df17a40834a13478ae200e984e13b41650
[ "Apache-2.0" ]
31
2020-10-16T16:46:02.000Z
2022-03-04T20:45:05.000Z
grand/backends/sqlbackend.py
aplbrain/grand
d85669df17a40834a13478ae200e984e13b41650
[ "Apache-2.0" ]
15
2020-10-15T16:28:49.000Z
2022-02-10T16:41:32.000Z
grand/backends/sqlbackend.py
aplbrain/grand
d85669df17a40834a13478ae200e984e13b41650
[ "Apache-2.0" ]
null
null
null
from typing import Hashable, Generator, Optional, Iterable import time import pandas as pd import sqlalchemy from sqlalchemy.pool import NullPool from sqlalchemy.sql import select from sqlalchemy import and_, or_, func from .backend import Backend _DEFAULT_SQL_URL = "sqlite:///" _DEFAULT_SQL_STR_LEN = 64 class SQL...
29.86214
87
0.506718
14,200
0.978433
0
0
0
0
0
0
3,979
0.274168
fac3e7ee67811ede3b6d8461b25dcb5790afb786
475
py
Python
Searches/models.py
Sofia190/book_store_app
3c32f269604948bb4a495802d17794a68188e3a5
[ "MIT" ]
null
null
null
Searches/models.py
Sofia190/book_store_app
3c32f269604948bb4a495802d17794a68188e3a5
[ "MIT" ]
null
null
null
Searches/models.py
Sofia190/book_store_app
3c32f269604948bb4a495802d17794a68188e3a5
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. from django.conf import settings from django.db import models from django.utils import timezone # Create your models here. class SearchQuery(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, blank=True, null=True, on_delete=models.CASCAD...
12.837838
100
0.755789
265
0.557895
0
0
0
0
0
0
52
0.109474
fac72b976d32fee06945ec2a9773f4034447c6e7
2,875
py
Python
non_semantic_speech_benchmark/distillation/write_savedmodel_to_disk.py
lix2k3/google-research
d0ec3bbce67641d3159a663e00288cbb578eda7d
[ "Apache-2.0" ]
1
2021-04-12T15:50:58.000Z
2021-04-12T15:50:58.000Z
non_semantic_speech_benchmark/distillation/write_savedmodel_to_disk.py
abbie0214/google-research
d154ffb7a92f7899807496cb8cb665fb5a01e65c
[ "Apache-2.0" ]
null
null
null
non_semantic_speech_benchmark/distillation/write_savedmodel_to_disk.py
abbie0214/google-research
d154ffb7a92f7899807496cb8cb665fb5a01e65c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
35.060976
78
0.742261
0
0
0
0
0
0
0
0
1,289
0.448348
fac956be30414f4e9750c5fba11e0bd38288e8e4
585
py
Python
event/migrations/0003_event_org.py
Ortus-Team/Moim
57bdd94ffb0c3b5d7dc74396264074e2a9a7f84a
[ "MIT" ]
null
null
null
event/migrations/0003_event_org.py
Ortus-Team/Moim
57bdd94ffb0c3b5d7dc74396264074e2a9a7f84a
[ "MIT" ]
6
2020-06-05T17:44:24.000Z
2022-02-09T23:15:16.000Z
event/migrations/0003_event_org.py
Ortus-Team/Moim
57bdd94ffb0c3b5d7dc74396264074e2a9a7f84a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-01-10 08:34 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('org', '0001_initial'), ('event', '0002_auto_2018010...
25.434783
126
0.634188
394
0.673504
0
0
0
0
0
0
148
0.252991
fac9f7ba04b46ffb5f398af944e0de63eaf7216f
9,806
py
Python
mcp23008slave.py
notro/cp-smbusslave
7aed8eedde2b391ef0d1c9fd246ac3531216b628
[ "MIT" ]
null
null
null
mcp23008slave.py
notro/cp-smbusslave
7aed8eedde2b391ef0d1c9fd246ac3531216b628
[ "MIT" ]
null
null
null
mcp23008slave.py
notro/cp-smbusslave
7aed8eedde2b391ef0d1c9fd246ac3531216b628
[ "MIT" ]
1
2020-04-23T10:29:11.000Z
2020-04-23T10:29:11.000Z
import digitalio import pulseio from smbusslave import SMBusSlave IODIR = 0x00 IPOL = 0x01 GPINTEN = 0x02 DEFVAL = 0x03 INTCON = 0x04 IOCON = 0x05 GPPU = 0x06 INTF = 0x07 INTCAP = 0x08 GPIO = 0x09 OLAT = 0x0a IOCON_SEQOP = 1 << 5 IOCON_ODR = 1 << 2 IOCON_INTPOL = 1 << 1 # Pull up on interrupt pins are not supported...
31.632258
103
0.532021
9,359
0.954416
0
0
1,466
0.1495
0
0
955
0.097389
facc8b55215e84d77bae17017885f0c7c6fa4a14
2,084
py
Python
src/main/python/counts_tools/exec/deviation_analysis.py
cday97/beam
7e1ab50eecaefafd04daab360f8b12bc7cab559b
[ "BSD-3-Clause-LBNL" ]
123
2017-04-06T20:17:19.000Z
2022-03-02T13:42:15.000Z
src/main/python/counts_tools/exec/deviation_analysis.py
cday97/beam
7e1ab50eecaefafd04daab360f8b12bc7cab559b
[ "BSD-3-Clause-LBNL" ]
2,676
2017-04-26T20:27:27.000Z
2022-03-31T16:39:53.000Z
src/main/python/counts_tools/exec/deviation_analysis.py
cday97/beam
7e1ab50eecaefafd04daab360f8b12bc7cab559b
[ "BSD-3-Clause-LBNL" ]
60
2017-04-06T20:14:32.000Z
2022-03-30T20:10:53.000Z
import ConfigParser from datetime import datetime import os import sys import numpy as np import pandas as pd import utils.counts import utils.counts_deviation __author__ = 'Andrew A Campbell' # This script finds the days with the greatest deviation from some reference value (such as hourly means or medians) if __n...
32.5625
116
0.669866
0
0
0
0
0
0
0
0
668
0.320537
facf32ca0ec852661f76a8129eb47cff600e9536
104
py
Python
boltstream/responses.py
geekpii/boltstream
3a107372ac7d67c18fd257c75769f125c855c5b6
[ "Apache-2.0" ]
1,735
2020-12-07T02:06:43.000Z
2022-03-18T01:47:06.000Z
boltstream/responses.py
sonrebmax/boltstream
10a4398b165cc4440c38ab4cd657a74e00cba38b
[ "Apache-2.0" ]
10
2020-12-07T02:41:23.000Z
2021-12-22T06:47:56.000Z
boltstream/responses.py
sonrebmax/boltstream
10a4398b165cc4440c38ab4cd657a74e00cba38b
[ "Apache-2.0" ]
126
2020-12-07T03:17:44.000Z
2022-03-12T18:06:27.000Z
from django.http import HttpResponse class HttpResponseNoContent(HttpResponse): status_code = 204
17.333333
42
0.807692
64
0.615385
0
0
0
0
0
0
0
0
fad2a283163dcc8ae897624ab986731628e63b17
5,457
py
Python
ChessRender/RenderFsmCommon/figure_manage.py
PavelLebed20/chess_classic
72f7d08cadae8db9c65d61411bcdc8c79bfa04c3
[ "Apache-2.0" ]
1
2019-06-04T11:08:55.000Z
2019-06-04T11:08:55.000Z
ChessRender/RenderFsmCommon/figure_manage.py
PavelLebed20/chess_classic
72f7d08cadae8db9c65d61411bcdc8c79bfa04c3
[ "Apache-2.0" ]
115
2019-03-02T08:02:50.000Z
2019-06-02T16:28:00.000Z
ChessRender/RenderFsmCommon/figure_manage.py
PavelLebed20/chess_classic
72f7d08cadae8db9c65d61411bcdc8c79bfa04c3
[ "Apache-2.0" ]
null
null
null
############################### # MODULE: Object settings # # AUTHOR: Yangildin Ivan # # LAST UPDATE: 08/04/2019 # ############################### import copy from enum import Enum, IntEnum from direct.gui.OnscreenText import TransparencyAttrib BLACK = (0.15, 0.15, 0.15, 1) #BLACK = (0.0, 0.0, 0.0, 1) WH...
37.376712
97
0.653839
4,698
0.860913
0
0
0
0
0
0
549
0.100605
fad48c005d43403bbab5e6857a996949ef7c14d5
1,202
py
Python
hostel_project/hostel_webapp/views.py
harsh-ux/hostel-app
89c341d55116913de81a3c7bd8a08d77729c39cb
[ "MIT" ]
null
null
null
hostel_project/hostel_webapp/views.py
harsh-ux/hostel-app
89c341d55116913de81a3c7bd8a08d77729c39cb
[ "MIT" ]
null
null
null
hostel_project/hostel_webapp/views.py
harsh-ux/hostel-app
89c341d55116913de81a3c7bd8a08d77729c39cb
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views import generic from django.shortcuts import redirect from django.utils import timezone from .models import Complaint from .forms import ComplaintForm class ComplaintList(generic.ListView): queryset = Complaint.objects.order_by('date') template_name = 'compl...
25.041667
64
0.655574
212
0.176373
0
0
0
0
0
0
174
0.144759
fad4a6741d0059fc88b188ba3616c0961edb64af
4,679
py
Python
map_crawling/map_crawling_code/Map_crawling.py
yumei86/iRamen_linebot
5b9f2653076faa04118f281970edf639288d79fd
[ "MIT" ]
16
2020-12-29T11:23:01.000Z
2022-01-01T01:55:42.000Z
map_crawling/map_crawling_code/Map_crawling.py
yumei86/iRamen_linebot
5b9f2653076faa04118f281970edf639288d79fd
[ "MIT" ]
null
null
null
map_crawling/map_crawling_code/Map_crawling.py
yumei86/iRamen_linebot
5b9f2653076faa04118f281970edf639288d79fd
[ "MIT" ]
4
2020-12-27T14:43:35.000Z
2021-02-26T09:35:03.000Z
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from time import sleep import time import csv import pyautogui #-------將網頁開啟的動作換為背景執行---------- options = webdriver.Chro...
27.046243
203
0.579397
0
0
0
0
0
0
0
0
1,557
0.308134
fada5720fcd6da7cbf8b1e56a59906ef13697176
2,052
py
Python
blamepipeline/preprocess/match_article_entry.py
jmmaki/BlamePipeline
ca5f1b54ebe62bcbea4b13f70c15b14002133d7c
[ "MIT" ]
null
null
null
blamepipeline/preprocess/match_article_entry.py
jmmaki/BlamePipeline
ca5f1b54ebe62bcbea4b13f70c15b14002133d7c
[ "MIT" ]
null
null
null
blamepipeline/preprocess/match_article_entry.py
jmmaki/BlamePipeline
ca5f1b54ebe62bcbea4b13f70c15b14002133d7c
[ "MIT" ]
null
null
null
# encoding: utf-8 ''' Match articles with annotated data ''' from collections import defaultdict import argparse from blamepipeline.preprocess.dataloader import Dataset case1, case2 = 0, 0 def match_data(source): dataset = Dataset(source) articles = dataset.get_articles() entries = dataset.get_entries...
27
86
0.618421
0
0
0
0
0
0
0
0
299
0.145712
fadaa73e2ce983f8ee457b6bf67edceb51e25ddc
197
py
Python
res/TensorFlowPythonExamples/examples/while/__init__.py
bogus-sudo/ONE-1
7052a817eff661ec2854ed2e7ee0de5e8ba82b55
[ "Apache-2.0" ]
255
2020-05-22T07:45:29.000Z
2022-03-29T23:58:22.000Z
res/TensorFlowPythonExamples/examples/while/__init__.py
bogus-sudo/ONE-1
7052a817eff661ec2854ed2e7ee0de5e8ba82b55
[ "Apache-2.0" ]
5,102
2020-05-22T07:48:33.000Z
2022-03-31T23:43:39.000Z
res/TensorFlowPythonExamples/examples/while/__init__.py
bogus-sudo/ONE-1
7052a817eff661ec2854ed2e7ee0de5e8ba82b55
[ "Apache-2.0" ]
120
2020-05-22T07:51:08.000Z
2022-02-16T19:08:05.000Z
import tensorflow as tf i = tf.compat.v1.constant(0, name="Hole") c = lambda i: tf.compat.v1.less(i, 10) b = lambda i: tf.compat.v1.add(i, 1) r = tf.compat.v1.while_loop(c, b, [i], name="While")
24.625
52
0.654822
0
0
0
0
0
0
0
0
13
0.06599
fade8de862f192db4db57a6e8e338b8eea806aa8
1,628
py
Python
tests/prosperpy/overlays/test_bollinger_bands.py
CaptainBriot/prosperpy
831abb9c9e3b730c81895647e33a59854c4e4648
[ "MIT" ]
2
2018-01-28T06:11:37.000Z
2018-02-04T16:01:30.000Z
tests/prosperpy/overlays/test_bollinger_bands.py
CaptainBriot/prosperpy
831abb9c9e3b730c81895647e33a59854c4e4648
[ "MIT" ]
1
2018-03-20T12:10:40.000Z
2018-03-21T00:08:04.000Z
tests/prosperpy/overlays/test_bollinger_bands.py
CaptainBriot/prosperpy
831abb9c9e3b730c81895647e33a59854c4e4648
[ "MIT" ]
2
2019-04-06T14:33:26.000Z
2020-06-25T23:34:32.000Z
import unittest import decimal import prosperpy def get_prices(): prices = ['90.704', '92.900', '92.978', '91.802', '92.665', '92.684', '92.302', '92.773', '92.537', '92.949', '93.204', '91.067', '89.832', '89.744', '90.399', '90.739', '88.018', '88.087', '88.844', '90.778', '90.542',...
49.333333
113
0.651106
1,228
0.7543
0
0
0
0
0
0
446
0.273956
fae0583fbc853b8b77719ed67cdd0c3a13ee094a
156
py
Python
projects/course_intro/raw_input.py
ProgressBG-Python-Course/ProgressBG-VC-Python
37f8be60fb73d558ebd9e3c2700c88dcb64e7f4f
[ "MIT" ]
null
null
null
projects/course_intro/raw_input.py
ProgressBG-Python-Course/ProgressBG-VC-Python
37f8be60fb73d558ebd9e3c2700c88dcb64e7f4f
[ "MIT" ]
null
null
null
projects/course_intro/raw_input.py
ProgressBG-Python-Course/ProgressBG-VC-Python
37f8be60fb73d558ebd9e3c2700c88dcb64e7f4f
[ "MIT" ]
null
null
null
machine_number = 43 user_number = int( raw_input("enter a number: ") ) print( type(user_number) ) if user_number == machine_number: print("Bravo!!!")
15.6
50
0.692308
0
0
0
0
0
0
0
0
28
0.179487
fae33f3464d3a11adc1fa5ba692617e0ef8bced7
15,377
py
Python
algorithm.py
James0231/Data-Visualization-PJ
053a1fdb26e07381e44cfd13cb989631e86b8b82
[ "MIT" ]
5
2019-01-24T02:53:43.000Z
2020-10-17T09:01:52.000Z
algorithm.py
James0231/Data-Visualization-PJ
053a1fdb26e07381e44cfd13cb989631e86b8b82
[ "MIT" ]
1
2020-02-20T07:55:50.000Z
2021-11-18T12:31:10.000Z
algorithm.py
James0231/Data-Visualization-PJ
053a1fdb26e07381e44cfd13cb989631e86b8b82
[ "MIT" ]
1
2022-03-16T05:49:17.000Z
2022-03-16T05:49:17.000Z
import copy import numpy as np class FFDAlgorithm(object): def __init__(self, num_x, num_y, num_z, filename, object_points): #定义三坐标轴上控制点个数 self.cp_num_x = num_x self.cp_num_y = num_y self.cp_num_z = num_z self.object_points_initial = object_points def cover_obj(self, initial=T...
38.929114
83
0.409703
15,828
0.997668
0
0
0
0
0
0
1,313
0.082761
fae347d92c6318856795474c7e5ee0e6b5c0295e
31
py
Python
src/DeepReinforcementLearning/__init__.py
Quantum56/AlphaZero-AI
504522feb4e67211d5fb592f4b14a2cb8271d015
[ "MIT" ]
1
2019-11-12T01:55:36.000Z
2019-11-12T01:55:36.000Z
src/DeepReinforcementLearning/__init__.py
Quantum56/AlphaZero-AI
504522feb4e67211d5fb592f4b14a2cb8271d015
[ "MIT" ]
14
2019-11-12T00:09:26.000Z
2022-02-10T00:46:30.000Z
src/DeepReinforcementLearning/__init__.py
Quantum56/AlphaZero-AI
504522feb4e67211d5fb592f4b14a2cb8271d015
[ "MIT" ]
null
null
null
# from AlphaZero-AI import game
31
31
0.806452
0
0
0
0
0
0
0
0
31
1
fae38456a099876d2c62dc6bca6f8fac9beb8f54
721
py
Python
utilities/tests/testTwitterAPI.py
nikhilsajwan/uhackathon
7bc4a6ac86959a8f9a639bf8aa984582d14b639f
[ "MIT" ]
4
2019-07-02T22:59:48.000Z
2021-03-03T21:14:09.000Z
utilities/tests/testTwitterAPI.py
SCCapstone/Social-Monomania
61f35d59960e2695820b9b072b7663e156b05232
[ "MIT" ]
3
2020-06-06T00:48:24.000Z
2021-06-02T01:06:20.000Z
utilities/tests/testTwitterAPI.py
SCCapstone/Social-Monomania
61f35d59960e2695820b9b072b7663e156b05232
[ "MIT" ]
null
null
null
from django.test import TestCase from ..twitterAPI import search class TwitterTestCase(TestCase): """Unit test to ensure that search string is found in 100 new reddit posts returned from API""" def setUp(self): self.queryString = "Police" self.submissions = search(self.queryString) def test_submissions_contai...
37.947368
96
0.642164
655
0.90846
0
0
0
0
0
0
255
0.353675
fae3fe1eca892e27465fc00f29bc82ac27f5a740
2,130
py
Python
recipes/mio/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
562
2019-09-04T12:23:43.000Z
2022-03-29T16:41:43.000Z
recipes/mio/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
9,799
2019-09-04T12:02:11.000Z
2022-03-31T23:55:45.000Z
recipes/mio/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1,126
2019-09-04T11:57:46.000Z
2022-03-31T16:43:38.000Z
from conans import ConanFile, tools import os required_conan_version = ">=1.33.0" class MioConan(ConanFile): name = "mio" description = "Cross-platform C++11 header-only library for memory mapped file IO." license = "MIT" topics = ("mio", "mmap", "memory-mapping", "fileviewer") homepage = "https:...
39.444444
109
0.668075
2,044
0.959624
0
0
76
0.035681
0
0
756
0.35493
fae455410ed9ea4b0f8b98a27a1ac01a68948851
3,330
py
Python
auto-test/tools/tcpreplay_tools.py
asterfusion/Tapplet
917020fce2aaa2678c36a91fb91f60b36142ad9e
[ "Apache-2.0" ]
1
2019-12-30T11:49:35.000Z
2019-12-30T11:49:35.000Z
auto-test/tools/tcpreplay_tools.py
asterfusion/Tapplet
917020fce2aaa2678c36a91fb91f60b36142ad9e
[ "Apache-2.0" ]
null
null
null
auto-test/tools/tcpreplay_tools.py
asterfusion/Tapplet
917020fce2aaa2678c36a91fb91f60b36142ad9e
[ "Apache-2.0" ]
null
null
null
import os import math from scapy.all import * from pytest_main import eth_config from pytest_main import dump_eth_config def getstatusoutput(cmd): pipe = os.popen(cmd + " 2>&1", 'r') text = pipe.read() sts = pipe.close() if sts is None: sts=0 if text[-1:] == "\n": text = text[:-1] return sts,...
37.41573
158
0.657057
0
0
0
0
0
0
0
0
805
0.241742
fae463c351e42ad7cf6fcfb323f650cd6cc418ae
304
py
Python
tests/test_statebus.py
invisible-college/tightrope
f0c96dd6702e9d4b730cffac70829b56f76077b6
[ "MIT" ]
1
2021-08-22T05:09:05.000Z
2021-08-22T05:09:05.000Z
tests/test_statebus.py
invisible-college/tightrope
f0c96dd6702e9d4b730cffac70829b56f76077b6
[ "MIT" ]
3
2017-09-18T01:45:44.000Z
2017-10-17T23:26:22.000Z
tests/test_statebus.py
invisible-college/tightrope
f0c96dd6702e9d4b730cffac70829b56f76077b6
[ "MIT" ]
null
null
null
// Test calls to statebus server var bus = require('statebus/server')(); bus.ws_client("/*", "ws://aws.local-box.org:45678"); x = bus.fetch("/paul/code"); console.log(JSON.stringify(x)); if (!x.written) { console.log("No member .written found, setting it now"); x.written = "here it is"; } save(x);
25.333333
58
0.654605
0
0
0
0
0
0
0
0
117
0.384868
fae48fbff8a06a587206ef5fa49056a7f5046d73
1,205
py
Python
src/pyams_utils/interfaces/intids.py
Py-AMS/pyams-utils
65b166596a8b9f66fb092a69ce5d53ac6675685e
[ "ZPL-2.1" ]
null
null
null
src/pyams_utils/interfaces/intids.py
Py-AMS/pyams-utils
65b166596a8b9f66fb092a69ce5d53ac6675685e
[ "ZPL-2.1" ]
null
null
null
src/pyams_utils/interfaces/intids.py
Py-AMS/pyams-utils
65b166596a8b9f66fb092a69ce5d53ac6675685e
[ "ZPL-2.1" ]
null
null
null
# # Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
26.777778
97
0.699585
448
0.371784
0
0
0
0
0
0
807
0.66971
fae717b2d4db53ea73a947ac37133ff735c46b9c
282
py
Python
reo/migrations/0083_merge_20201207_1317.py
akuam1/REopt_Lite_API
fb5a88ee52351b725fda5c15712b617f6e97ddca
[ "BSD-3-Clause" ]
41
2020-02-21T08:25:17.000Z
2022-01-14T23:06:42.000Z
reo/migrations/0083_merge_20201207_1317.py
akuam1/REopt_Lite_API
fb5a88ee52351b725fda5c15712b617f6e97ddca
[ "BSD-3-Clause" ]
167
2020-02-17T17:26:47.000Z
2022-01-20T20:36:54.000Z
reo/migrations/0083_merge_20201207_1317.py
akuam1/REopt_Lite_API
fb5a88ee52351b725fda5c15712b617f6e97ddca
[ "BSD-3-Clause" ]
31
2020-02-20T00:22:51.000Z
2021-12-10T05:48:08.000Z
# Generated by Django 2.2.13 on 2020-12-07 13:17 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('reo', '0075_auto_20201125_1947'), ('reo', '0082_chpmodel_chp_unavailability_hourly'), ] operations = [ ]
18.8
59
0.659574
196
0.695035
0
0
0
0
0
0
124
0.439716
fae76c8d74e47c824e067609790c8f64a424bb8f
4,020
py
Python
source/cifar/defense/base.py
DingfanChen/RelaxLoss
d21c82dee7016cd0cb6688a408104eeb0d832790
[ "MIT" ]
4
2022-02-08T06:39:13.000Z
2022-03-27T13:57:13.000Z
source/cifar/defense/base.py
DingfanChen/RelaxLoss
d21c82dee7016cd0cb6688a408104eeb0d832790
[ "MIT" ]
1
2022-02-22T10:17:49.000Z
2022-02-22T22:10:52.000Z
source/cifar/defense/base.py
DingfanChen/RelaxLoss
d21c82dee7016cd0cb6688a408104eeb0d832790
[ "MIT" ]
null
null
null
import os import sys import time import torch import torch.nn as nn import random import numpy as np import torchvision.transforms as transforms FILE_DIR = os.path.dirname(os.path.abspath(__file__)) DATA_ROOT = os.path.join(FILE_DIR, '../../../data') sys.path.append(os.path.join(FILE_DIR, '../')) sys.path.append(os.pa...
48.433735
119
0.582338
3,589
0.892786
0
0
0
0
0
0
321
0.079851
fae774df4ad53722905069cd6e306f9144ad0112
4,462
py
Python
hangman.py
maritzapott/hangmangame
773232abf8095ceef5ccfe38189c316064fc6f4b
[ "MIT" ]
null
null
null
hangman.py
maritzapott/hangmangame
773232abf8095ceef5ccfe38189c316064fc6f4b
[ "MIT" ]
null
null
null
hangman.py
maritzapott/hangmangame
773232abf8095ceef5ccfe38189c316064fc6f4b
[ "MIT" ]
1
2022-02-19T04:20:47.000Z
2022-02-19T04:20:47.000Z
# HANGMAN GAME from collections import namedtuple import main game_board = namedtuple('game_board', ['board', 'mistakes', 'letters', 'status']) def welcome(): """Starts the game.""" print("Welcome") word = main._choose_word() _print_start_game() _print_start_spaces(word) game_board.letters = []...
30.561644
112
0.571717
0
0
0
0
0
0
0
0
819
0.18355
fae78fe389b664367fb4e390660faee2c1fa36ea
159
py
Python
shows/Text.py
fenceFoil/canopto
2692d19282c8c7090d7e4201716627789d38a821
[ "BSD-3-Clause" ]
null
null
null
shows/Text.py
fenceFoil/canopto
2692d19282c8c7090d7e4201716627789d38a821
[ "BSD-3-Clause" ]
null
null
null
shows/Text.py
fenceFoil/canopto
2692d19282c8c7090d7e4201716627789d38a821
[ "BSD-3-Clause" ]
null
null
null
#!/bin/python3 import Canopto import pygame from pygame.locals import * import time import random import colorsys c = Canopto(2, 8, previewEnabled = True)
12.230769
40
0.761006
0
0
0
0
0
0
0
0
14
0.08805
faeb54d9605b6182b7e92333f3846926f9dfc119
8,246
py
Python
ls/joyous/models/one_off_events.py
tjwalch/ls.joyous
0ee50d3af71c066bddb2310948b02f74b52ee253
[ "BSD-3-Clause" ]
72
2018-03-16T16:35:08.000Z
2022-03-23T08:09:33.000Z
polrev/ls/joyous/models/one_off_events.py
polrev-github/polrev-django
99108ace1a5307b14c3eccb424a9f9616e8c02ae
[ "MIT" ]
41
2018-03-25T20:36:52.000Z
2022-03-10T08:59:27.000Z
polrev/ls/joyous/models/one_off_events.py
polrev-github/polrev-django
99108ace1a5307b14c3eccb424a9f9616e8c02ae
[ "MIT" ]
28
2018-08-13T22:36:09.000Z
2022-03-17T12:24:15.000Z
# ------------------------------------------------------------------------------ # Joyous events models # ------------------------------------------------------------------------------ import datetime as dt from django.db import models from django.db.models.query import ModelIterable from django.utils import timezone f...
37.652968
80
0.557361
6,578
0.79772
1,717
0.208222
367
0.044506
0
0
2,070
0.251031
faec8aa99a18a6be10e65d9e1fdc912f5b1a463a
2,534
py
Python
examples/titanic/assets/dataset/opener.py
eliaskousk/substra
00b9cb6e8adfa4cffacc5e1df7f9d64ce1f3dde8
[ "Apache-2.0" ]
119
2019-10-25T13:30:58.000Z
2021-06-02T12:13:04.000Z
examples/titanic/assets/dataset/opener.py
eliaskousk/substra
00b9cb6e8adfa4cffacc5e1df7f9d64ce1f3dde8
[ "Apache-2.0" ]
182
2019-10-29T17:27:22.000Z
2021-06-02T11:54:34.000Z
examples/titanic/assets/dataset/opener.py
eliaskousk/substra
00b9cb6e8adfa4cffacc5e1df7f9d64ce1f3dde8
[ "Apache-2.0" ]
22
2019-10-25T13:45:41.000Z
2021-05-11T20:55:22.000Z
import os import pandas as pd import random import string import numpy as np import substratools as tools class TitanicOpener(tools.Opener): def get_X(self, folders): data = self._get_data(folders) return self._get_X(data) def get_y(self, folders): data = self._get_data(folders) ...
33.786667
99
0.601026
2,424
0.95659
0
0
1,738
0.685872
0
0
187
0.073796
faedb7593b3fda8461621c6c98b5de97e2ad88e0
1,064
py
Python
test/integration/test_natural_language_understanding_v1.py
jsstylos/waston-developer-cloud-python-sdk
97de097b8c86622ab2f30f5386bb74321d28addf
[ "Apache-2.0" ]
1,579
2015-10-08T14:02:17.000Z
2022-02-28T10:49:21.000Z
test/integration/test_natural_language_understanding_v1.py
jsstylos/waston-developer-cloud-python-sdk
97de097b8c86622ab2f30f5386bb74321d28addf
[ "Apache-2.0" ]
749
2015-10-08T20:00:24.000Z
2022-03-21T21:33:17.000Z
test/integration/test_natural_language_understanding_v1.py
jsstylos/waston-developer-cloud-python-sdk
97de097b8c86622ab2f30f5386bb74321d28addf
[ "Apache-2.0" ]
1,006
2015-10-24T06:30:58.000Z
2022-03-23T07:10:04.000Z
# coding: utf-8 from unittest import TestCase import os import ibm_watson import pytest import json import time from ibm_watson.natural_language_understanding_v1 import Features, EntitiesOptions, KeywordsOptions @pytest.mark.skipif(os.getenv('NATURAL_LANGUAGE_UNDERSTANDING_APIKEY') is None, reason=...
39.407407
109
0.727444
693
0.651316
0
0
850
0.798872
0
0
255
0.239662
faeec08412c17e1886d0f4332b15cb71403f5016
1,337
py
Python
project/RealEstateMarketPlace/views/ListConversationsView.py
Mihaaai/RealEstateMarketplace
9b9fa1376436801303e1ed0207ef09845a7d827e
[ "Apache-2.0" ]
null
null
null
project/RealEstateMarketPlace/views/ListConversationsView.py
Mihaaai/RealEstateMarketplace
9b9fa1376436801303e1ed0207ef09845a7d827e
[ "Apache-2.0" ]
null
null
null
project/RealEstateMarketPlace/views/ListConversationsView.py
Mihaaai/RealEstateMarketplace
9b9fa1376436801303e1ed0207ef09845a7d827e
[ "Apache-2.0" ]
null
null
null
from django.views.generic import ListView from rest_framework import authentication, permissions from ..models import Message,Listing,User from django.db.models import Q class ListConversationsView(ListView): authentication_classes = (authentication.SessionAuthentication,) permission_classes = (permissions.I...
51.423077
174
0.735976
1,166
0.872102
0
0
0
0
0
0
226
0.169035
faef976b28e6bb519f13efc13c691a451b2b70dc
778
py
Python
image/src/binarization.py
Wookhwang/Tensorflow_by_wook
1388e2856564e93fa2e56b79530a7aaa3cec5b30
[ "Apache-2.0" ]
null
null
null
image/src/binarization.py
Wookhwang/Tensorflow_by_wook
1388e2856564e93fa2e56b79530a7aaa3cec5b30
[ "Apache-2.0" ]
null
null
null
image/src/binarization.py
Wookhwang/Tensorflow_by_wook
1388e2856564e93fa2e56b79530a7aaa3cec5b30
[ "Apache-2.0" ]
null
null
null
import cv2 as cv def nothing(x): pass cv.namedWindow('Binary') cv.createTrackbar('threshold', 'Binary', 0, 255, nothing) cv.setTrackbarPos('threshold', 'Binary', 167) img_color = cv.imread('wallpaper-2994965.jpg', cv.IMREAD_COLOR) cv.imshow('Color', img_color) cv.waitKey(0) img_gray = cv.cvtC...
22.228571
77
0.672237
0
0
0
0
0
0
0
0
117
0.150386
faf23c7862d37bd1a9a0c7bec5cf1daca9c2d615
1,210
py
Python
member_join.py
zStartKiller/BotDiscordPython
06283f03231c542fc72a64f43860d9d89b1f5c58
[ "MIT" ]
4
2021-12-03T18:23:13.000Z
2021-12-31T00:18:29.000Z
member_join.py
zStartKiller/BotDiscordPython
06283f03231c542fc72a64f43860d9d89b1f5c58
[ "MIT" ]
null
null
null
member_join.py
zStartKiller/BotDiscordPython
06283f03231c542fc72a64f43860d9d89b1f5c58
[ "MIT" ]
1
2021-12-03T18:29:57.000Z
2021-12-03T18:29:57.000Z
import asyncio import discord from discord import channel from discord.ext import commands import random from main import bot class member_joining(commands.Cog): def __init__(self, bot): self.bot = bot @commands.Cog.listener() async def on_member_join(self, member): channel = ...
40.333333
117
0.683471
993
0.816612
0
0
886
0.728618
826
0.679276
295
0.242599
faf418ba43d0d5638a18bcd19474ba97144519be
4,020
py
Python
instauto/api/actions/structs/friendships.py
marvic2409/instauto
6a36a7369e687b8eaf3bf9fee0cc42f6d9703734
[ "MIT" ]
null
null
null
instauto/api/actions/structs/friendships.py
marvic2409/instauto
6a36a7369e687b8eaf3bf9fee0cc42f6d9703734
[ "MIT" ]
null
null
null
instauto/api/actions/structs/friendships.py
marvic2409/instauto
6a36a7369e687b8eaf3bf9fee0cc42f6d9703734
[ "MIT" ]
null
null
null
from . import common as cmmn import logging import uuid from typing import Optional from instauto.api.structs import Surface logger = logging.getLogger(__name__) class _Base(cmmn.Base): _csrftoken: str = None radio_type: str = 'wifi-none' device_id: str = None _uid: str = None _uuid: str = None ...
32.16
82
0.651741
3,653
0.908706
0
0
0
0
0
0
1,105
0.274876
faf43a4433695f53b0308cbe7ff6a2053f4f2929
955
py
Python
InteractiveBreak_Filtering/showAnswerFiltering.py
JoeGreiner/MorphologicalOperatorsDemo
fd5ba06548887629515964fc30d402d87630d597
[ "BSD-3-Clause" ]
null
null
null
InteractiveBreak_Filtering/showAnswerFiltering.py
JoeGreiner/MorphologicalOperatorsDemo
fd5ba06548887629515964fc30d402d87630d597
[ "BSD-3-Clause" ]
null
null
null
InteractiveBreak_Filtering/showAnswerFiltering.py
JoeGreiner/MorphologicalOperatorsDemo
fd5ba06548887629515964fc30d402d87630d597
[ "BSD-3-Clause" ]
null
null
null
from IPython.display import display from ipywidgets import widgets button = widgets.Button(description="Click for answer") output = widgets.Output() display(button, output) already_clicked = False def on_button_clicked(b): global already_clicked, button if not already_clicked: already_clicked = True...
39.791667
125
0.670157
0
0
0
0
0
0
0
0
459
0.476636
faf66d5e9e6ff74d2a82b5b0fd5dc4b83c98d750
426
py
Python
respostas/migrations/0016_resposta_materia.py
Samio-Santos/Sistema_Questoes_Django
415c28b386ac7848fdd244ba51c20239b730f4ae
[ "MIT" ]
null
null
null
respostas/migrations/0016_resposta_materia.py
Samio-Santos/Sistema_Questoes_Django
415c28b386ac7848fdd244ba51c20239b730f4ae
[ "MIT" ]
null
null
null
respostas/migrations/0016_resposta_materia.py
Samio-Santos/Sistema_Questoes_Django
415c28b386ac7848fdd244ba51c20239b730f4ae
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-07-02 21:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('respostas', '0015_alter_resposta_banca'), ] operations = [ migrations.AddField( model_name='resposta', name='materia',...
22.421053
87
0.617371
335
0.786385
0
0
0
0
0
0
102
0.239437
faf67b2c9d286ee2d83587f71a298be32213ce3a
523
py
Python
libs/menus/menus.py
MilianoJunior/appSalva
d1ad23d06c57aa4b6d380ad637847b6842b68ccd
[ "MIT" ]
null
null
null
libs/menus/menus.py
MilianoJunior/appSalva
d1ad23d06c57aa4b6d380ad637847b6842b68ccd
[ "MIT" ]
null
null
null
libs/menus/menus.py
MilianoJunior/appSalva
d1ad23d06c57aa4b6d380ad637847b6842b68ccd
[ "MIT" ]
null
null
null
from kivymd.uix.boxlayout import MDBoxLayout from kivymd.uix.toolbar import MDToolbar class Menus(): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def __call__(self): box_central = MDBoxLayout(orientation='vertical') # criar componentes toolbar = MDToo...
26.15
57
0.66348
436
0.833652
0
0
0
0
0
0
139
0.265774
faf6934e3cb37291d228f183808eb0c338d26479
1,342
py
Python
setup.py
t-ceccarini/deep-b-spline-approximation
9e48b593717486bbdac9bf0269a5645830d76082
[ "MIT" ]
null
null
null
setup.py
t-ceccarini/deep-b-spline-approximation
9e48b593717486bbdac9bf0269a5645830d76082
[ "MIT" ]
null
null
null
setup.py
t-ceccarini/deep-b-spline-approximation
9e48b593717486bbdac9bf0269a5645830d76082
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jan 13 23:29:22 2022 @author: Tommaso """ from setuptools import setup VERSION = '0.2.8' DESCRIPTION = 'A python package for bspline curve approximation using deep learning' # Setting up setup( name='deep-b-spline-approximation', packages=['deep_b_spline_approximati...
35.315789
111
0.651267
0
0
0
0
0
0
0
0
916
0.682563
faf73cd0b10c574ff66ce3351fe78b6258b32478
1,697
py
Python
source/db_api/crud/crud_documents.py
JungeAlexander/kbase_db_api
f3ec5e8b9ae509f9e8d962183efef21be61ef425
[ "MIT" ]
1
2021-09-19T14:31:44.000Z
2021-09-19T14:31:44.000Z
source/db_api/crud/crud_documents.py
JungeAlexander/kbase_db_api
f3ec5e8b9ae509f9e8d962183efef21be61ef425
[ "MIT" ]
4
2020-10-13T08:41:49.000Z
2021-04-29T18:05:40.000Z
source/db_api/crud/crud_documents.py
JungeAlexander/kbase_db_api
f3ec5e8b9ae509f9e8d962183efef21be61ef425
[ "MIT" ]
null
null
null
from datetime import date from typing import Iterable from sqlalchemy.orm import Session from db_api import models, schemas def get_document(db: Session, document_id: str) -> models.Document: return db.query(models.Document).filter(models.Document.id == document_id).first() def get_documents_by_publication_da...
28.762712
101
0.70772
0
0
0
0
0
0
0
0
71
0.041839
faf7d9ad8af45e7f843f96215575e918e08bca9f
1,571
py
Python
displ/wannier/update_dis.py
tflovorn/displ
094c194c54f02d463353075c6ca82f457f1247fa
[ "MIT" ]
4
2018-04-09T20:39:24.000Z
2021-06-19T12:21:52.000Z
displ/wannier/update_dis.py
tflovorn/displ
094c194c54f02d463353075c6ca82f457f1247fa
[ "MIT" ]
null
null
null
displ/wannier/update_dis.py
tflovorn/displ
094c194c54f02d463353075c6ca82f457f1247fa
[ "MIT" ]
4
2018-04-09T20:39:41.000Z
2021-06-19T12:21:53.000Z
from argparse import ArgumentParser import os from displ.pwscf.parseScf import fermi_from_scf from displ.wannier.wannier_util import global_config from displ.wannier.build import Update_Disentanglement def _main(): parser = ArgumentParser(description="Update disentanglement window in W90 input") parser.add_arg...
39.275
85
0.701464
0
0
0
0
0
0
0
0
394
0.250796
faf7efb34d352ee908682f16b6b86e45d3b88d2e
942
py
Python
setup.py
maoterodapena/pysouliss
6dd3022d629505b44e2f7e41c16e4b48a4302c75
[ "MIT" ]
9
2017-08-03T19:19:55.000Z
2019-02-13T12:06:42.000Z
setup.py
maoterodapena/pysouliss
6dd3022d629505b44e2f7e41c16e4b48a4302c75
[ "MIT" ]
null
null
null
setup.py
maoterodapena/pysouliss
6dd3022d629505b44e2f7e41c16e4b48a4302c75
[ "MIT" ]
4
2017-08-15T18:07:53.000Z
2019-05-22T18:39:13.000Z
"""Setup file for souliss package.""" import os from setuptools import setup, find_packages if os.path.exists('README.rst'): README = open('README.rst').read() else: README = '' setup( name='pysouliss', version='0.0.5', description='Python API for talking to a Souliss gateway gateway', long_de...
30.387097
70
0.638004
0
0
0
0
0
0
0
0
488
0.518047
faf8407971775c6567b8c1eefdb799ea80949760
3,485
py
Python
scriptlib/scriptfile.py
Orbtial/scriptlib
9c3d1754da1eb875ecd89a6b6213457b9aa221d6
[ "MIT" ]
null
null
null
scriptlib/scriptfile.py
Orbtial/scriptlib
9c3d1754da1eb875ecd89a6b6213457b9aa221d6
[ "MIT" ]
null
null
null
scriptlib/scriptfile.py
Orbtial/scriptlib
9c3d1754da1eb875ecd89a6b6213457b9aa221d6
[ "MIT" ]
null
null
null
''' ScriptFile File Manager for the scriptlib package Developed by Orbtial ''' #Custom Imports from . import scriptui #Standard Imports import os def initPTPDIR(filePathAttr): """ Returns a string representation of the path to the file's parent directory. Should be initialised and stored before using any other fu...
36.684211
122
0.760689
0
0
0
0
0
0
0
0
2,523
0.72396
fafa3983ded0e46039f34e45b4c99afb412de3eb
6,823
py
Python
egg5_config.py
eastgenomics/egg5_dias_CEN_config
d59765e44c43f0044417bf66a4d174b41c6a671b
[ "MIT" ]
null
null
null
egg5_config.py
eastgenomics/egg5_dias_CEN_config
d59765e44c43f0044417bf66a4d174b41c6a671b
[ "MIT" ]
3
2021-11-08T13:32:42.000Z
2022-01-07T09:16:00.000Z
egg5_config.py
eastgenomics/egg5_dias_CEN_config
d59765e44c43f0044417bf66a4d174b41c6a671b
[ "MIT" ]
null
null
null
import sys sys.path.append("/mnt/storage/apps/software/dias_config") from dias_dynamic_files import ( genes2transcripts, bioinformatic_manifest, genepanels_file, ) assay_name = "CEN" # Core Endo Neuro assay_version = "v1.1.4" ref_project_id = "project-Fkb6Gkj433GVVvj73J7x8KbV" # Single workflow ss_wor...
38.988571
100
0.716254
0
0
0
0
0
0
0
0
3,244
0.475451
fafa474f05d327bb0527aea85277fe69e94fc722
105
py
Python
axiom/__init__.py
schehata/axiom-py
a2e34ec54606359a1c06b5ec12b0a4898ade66ee
[ "MIT" ]
4
2021-03-27T12:24:04.000Z
2021-10-21T07:04:21.000Z
axiom/__init__.py
schehata/axiom-py
a2e34ec54606359a1c06b5ec12b0a4898ade66ee
[ "MIT" ]
3
2021-04-01T21:19:34.000Z
2022-01-10T13:58:01.000Z
axiom/__init__.py
schehata/axiom-py
a2e34ec54606359a1c06b5ec12b0a4898ade66ee
[ "MIT" ]
4
2021-07-30T12:27:39.000Z
2022-01-28T23:38:17.000Z
""" Axiom Python Client """ __version__ = "0.1.0-beta.2" from .client import * from .datasets import *
11.666667
28
0.666667
0
0
0
0
0
0
0
0
41
0.390476
fafb8734f2572ef0c2b5074b37edc6e0b8a53374
1,070
py
Python
test_credentialData.py
mireille1999/Credential-Locker
fc7e8c9035a3d89c889ab7db603eec4ec3d62522
[ "Unlicense" ]
null
null
null
test_credentialData.py
mireille1999/Credential-Locker
fc7e8c9035a3d89c889ab7db603eec4ec3d62522
[ "Unlicense" ]
null
null
null
test_credentialData.py
mireille1999/Credential-Locker
fc7e8c9035a3d89c889ab7db603eec4ec3d62522
[ "Unlicense" ]
null
null
null
import unittest from credentialData import CredentialData class TestCredentials(unittest.TestCase): def setUp(self): """ setUp method """ self.new_credential = CredentialData("Instagram", "mimi", "mireille") def test_init(self): """ testing initialization ...
26.75
89
0.648598
960
0.897196
0
0
0
0
0
0
276
0.257944
fafbbbaa0af64eaf97c6dbad155b8d4576676728
1,130
py
Python
scripts/study_case/ID_13/torch_geometric/transforms/random_rotate.py
kzbnb/numerical_bugs
bc22e72bcc06df6ce7889a25e0aeed027bde910b
[ "Apache-2.0" ]
8
2021-06-30T06:55:14.000Z
2022-03-18T01:57:14.000Z
scripts/study_case/ID_13/torch_geometric/transforms/random_rotate.py
kzbnb/numerical_bugs
bc22e72bcc06df6ce7889a25e0aeed027bde910b
[ "Apache-2.0" ]
1
2021-06-30T03:08:15.000Z
2021-06-30T03:08:15.000Z
scripts/study_case/ID_13/torch_geometric/transforms/random_rotate.py
kzbnb/numerical_bugs
bc22e72bcc06df6ce7889a25e0aeed027bde910b
[ "Apache-2.0" ]
2
2021-11-17T11:19:48.000Z
2021-11-18T03:05:58.000Z
import numbers import random import math import torch from scripts.study_case.ID_13.torch_geometric.transforms import LinearTransformation class RandomRotate(object): def __init__(self, degrees, axis=0): if isinstance(degrees, numbers.Number): degrees = (-abs(degrees), abs(degrees)) a...
33.235294
84
0.565487
987
0.873451
0
0
0
0
0
0
8
0.00708
fafc611515c806788d4e3c897fee66ebe01e6548
4,606
py
Python
hsmodels/schemas/base_models.py
hydroshare/hsmodels
ebd834aa9ac82b5775e83378443e86dafa2395f0
[ "BSD-3-Clause" ]
null
null
null
hsmodels/schemas/base_models.py
hydroshare/hsmodels
ebd834aa9ac82b5775e83378443e86dafa2395f0
[ "BSD-3-Clause" ]
7
2021-10-15T20:30:49.000Z
2022-03-07T14:56:39.000Z
hsmodels/schemas/base_models.py
hydroshare/hsmodels
ebd834aa9ac82b5775e83378443e86dafa2395f0
[ "BSD-3-Clause" ]
1
2021-09-16T17:51:19.000Z
2021-09-16T17:51:19.000Z
from datetime import datetime from typing import Any, Callable, Dict, Optional, Union from pydantic import BaseModel class BaseMetadata(BaseModel): def dict( self, *, include: Union['AbstractSetIntStr', 'MappingIntStrAny'] = None, exclude: Union['AbstractSetIntStr', 'MappingIntStr...
39.706897
120
0.550803
4,482
0.973079
0
0
1,389
0.301563
0
0
1,414
0.306991
fafd772a07cdd650ed253ad18b37cc59015b77a9
594
py
Python
overlay_camera/Server.py
toakarsky/OverlayCamera
19ff8b616f38c41c68723f7b6abc1e893f9f2488
[ "MIT" ]
null
null
null
overlay_camera/Server.py
toakarsky/OverlayCamera
19ff8b616f38c41c68723f7b6abc1e893f9f2488
[ "MIT" ]
null
null
null
overlay_camera/Server.py
toakarsky/OverlayCamera
19ff8b616f38c41c68723f7b6abc1e893f9f2488
[ "MIT" ]
null
null
null
from flask import Flask, render_template, Response from .OverlayCamera import OverlayCamera from .settings import ROUTE app = Flask(__name__) def gen(camera): """Video streaming generator function.""" while True: frame = camera.get_frame() yield (b'--frame\r\n' b'Content-Type...
24.75
77
0.653199
0
0
213
0.358586
229
0.385522
0
0
213
0.358586
fafec615b08143a3fef967cae3cb798ebe890c40
8,098
py
Python
backend/shrunk/client/search.py
kevinmonisit/shrunk
55106356735c3491f8c8c0774f5ae500ba1c970a
[ "MIT" ]
13
2015-05-08T00:26:23.000Z
2021-07-28T15:42:10.000Z
backend/shrunk/client/search.py
kevinmonisit/shrunk
55106356735c3491f8c8c0774f5ae500ba1c970a
[ "MIT" ]
68
2015-01-12T20:27:44.000Z
2021-05-17T19:08:05.000Z
backend/shrunk/client/search.py
kevinmonisit/shrunk
55106356735c3491f8c8c0774f5ae500ba1c970a
[ "MIT" ]
7
2015-08-05T20:31:20.000Z
2022-01-28T21:14:06.000Z
"""Implements the :py:class:`SearchClient` class.""" from typing import Any, List from datetime import datetime, timezone from pymongo.collation import Collation import pymongo __all__ = ['SearchClient'] class SearchClient: """This class executes search queries.""" def __init__(self, *, db: pymongo.databa...
41.958549
115
0.470487
7,889
0.974191
0
0
0
0
0
0
3,148
0.388738
faff6b99f938954c9a5b7a6e6ff1a0945884e179
4,110
py
Python
tests/test_pinblock.py
adelosa/cardutil
fa31223aaac1f0749d50368bb639a311d98e279a
[ "MIT" ]
null
null
null
tests/test_pinblock.py
adelosa/cardutil
fa31223aaac1f0749d50368bb639a311d98e279a
[ "MIT" ]
1
2022-03-25T20:15:24.000Z
2022-03-30T09:20:34.000Z
tests/test_pinblock.py
adelosa/cardutil
fa31223aaac1f0749d50368bb639a311d98e279a
[ "MIT" ]
null
null
null
import unittest from cardutil import pinblock class PinblockTestCase(unittest.TestCase): def test_pin_block_Iso0(self): self.assertEqual( b'\x04\x12\x26\xcb\xa9\x87\x6f\xed', pinblock.Iso0PinBlock(pin='1234', card_number='4441234567890123').to_bytes()) def test_visa_pvv(self)...
45.164835
120
0.662287
4,011
0.975912
0
0
0
0
0
0
847
0.206083
faff7d52f28537ddf92bfe1718201e8d45c2ed7c
12,300
py
Python
tests/test_internal_devices.py
NotBobTheBuilder/gpiozero
aeb9d30056ec97e6bf896152e71a870bd0099b4e
[ "BSD-3-Clause" ]
1
2021-01-27T21:46:52.000Z
2021-01-27T21:46:52.000Z
tests/test_internal_devices.py
NotBobTheBuilder/gpiozero
aeb9d30056ec97e6bf896152e71a870bd0099b4e
[ "BSD-3-Clause" ]
null
null
null
tests/test_internal_devices.py
NotBobTheBuilder/gpiozero
aeb9d30056ec97e6bf896152e71a870bd0099b4e
[ "BSD-3-Clause" ]
1
2020-09-12T09:21:46.000Z
2020-09-12T09:21:46.000Z
# GPIO Zero: a library for controlling the Raspberry Pi's GPIO pins # Copyright (c) 2019 Jeevan M R <14.jeevan@gmail.com> # Copyright (c) 2019 Dave Jones <dave@waveform.org.uk> # Copyright (c) 2019 Ben Nuttall <ben@bennuttall.com> # Copyright (c) 2018 SteveAmor <steveamor@noreply.users.github.com> # # Redistribution an...
42.857143
80
0.637805
0
0
0
0
0
0
0
0
2,542
0.206667
faffe937b8eebc8fe07359a13eb9bfdaff6bf554
506
py
Python
ejercicio.py
inacayal/reservas
b74bd26eae3830ebc3329e43e50ebb86ca12ddb7
[ "MIT" ]
null
null
null
ejercicio.py
inacayal/reservas
b74bd26eae3830ebc3329e43e50ebb86ca12ddb7
[ "MIT" ]
7
2020-06-12T22:19:36.000Z
2022-02-26T11:42:58.000Z
ejercicio.py
inacayal/reservas
b74bd26eae3830ebc3329e43e50ebb86ca12ddb7
[ "MIT" ]
null
null
null
def pedir_entero (mensaje,min,max): numero = input(mensaje.format(min,max)) if type(numero)==int: while numero <= min or numero>=max: numero = input("el numero debe estar entre {:d} y {:d} ".format(min,max)) return numero else: return "debes introducir un entero" valido...
36.142857
85
0.630435
0
0
0
0
0
0
0
0
157
0.310277
4f002ef133ac9afe0b1bdd85f9600fa414911444
2,806
py
Python
src/thirdparty/yaml/utils.py
third-party-dev/yaml
545d63f350268028b6df2446f8e14284b0119ca3
[ "MIT" ]
1
2020-12-03T23:11:45.000Z
2020-12-03T23:11:45.000Z
src/thirdparty/yaml/utils.py
third-party-dev/yaml
545d63f350268028b6df2446f8e14284b0119ca3
[ "MIT" ]
null
null
null
src/thirdparty/yaml/utils.py
third-party-dev/yaml
545d63f350268028b6df2446f8e14284b0119ca3
[ "MIT" ]
null
null
null
# from collections.abc import MutableMapping, MutableSequence, MutableSet from collections.abc import Sequence, Container # , Mapping, Set from collections import OrderedDict import contextlib from ruamel.yaml.constructor import ConstructorError from ruamel.yaml.nodes import MappingNode, SequenceNode def _is_contai...
28.06
74
0.665716
0
0
1,625
0.579116
249
0.088738
0
0
627
0.22345
4f00e3c5d6d2a2a2f904f8badd0a0b8379b14bc2
2,482
py
Python
ooobuild/dyn/rendering/repaint_result.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/rendering/repaint_result.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/rendering/repaint_result.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
35.971014
114
0.695407
609
0.245367
0
0
0
0
0
0
1,328
0.535052
4f0149cb740276e036ceef0f9256600992cdaaba
338
py
Python
timetest.py
schaibo/gpio-
67843aa3869662ad87e9c23914bc0c1ff9f4e2bb
[ "Apache-2.0" ]
null
null
null
timetest.py
schaibo/gpio-
67843aa3869662ad87e9c23914bc0c1ff9f4e2bb
[ "Apache-2.0" ]
null
null
null
timetest.py
schaibo/gpio-
67843aa3869662ad87e9c23914bc0c1ff9f4e2bb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jan 26 16:01:59 2014 @author: pi """ import time def delay(i): k=0 for j in range(i): k+=1 n=5000 j=0 a=time.time() i=1 c=time.time() d=c-a print d a=time.time() for i in range(n): j+=1 c=time.time() d=c-a print d a=time.time() delay(n) c=time.tim...
9.941176
35
0.56213
0
0
0
0
0
0
0
0
80
0.236686
4f01cb78d8c650937562fd3ca942f32e2ccc0647
1,716
py
Python
pySIC/reader.py
edoaxyz/image_to_hOCR
20b96fd758e9994ce94b311fbc69b413d635004e
[ "MIT" ]
null
null
null
pySIC/reader.py
edoaxyz/image_to_hOCR
20b96fd758e9994ce94b311fbc69b413d635004e
[ "MIT" ]
null
null
null
pySIC/reader.py
edoaxyz/image_to_hOCR
20b96fd758e9994ce94b311fbc69b413d635004e
[ "MIT" ]
null
null
null
############################################################ import pytesseract import os from reportlab.lib.pagesizes import letter from reportlab.pdfgen import canvas from reportlab.pdfbase import pdfmetrics from reportlab.pdfbase.ttfonts import TTFont ############################################################# R_...
49.028571
141
0.593823
0
0
0
0
0
0
0
0
440
0.25641
4f029f9744d9cffb7aa60df64e098f556aa1867c
12,921
py
Python
sciflo/event/pdict.py
hysds/sciflo
f706288405c8eee59a2f883bab3dcb5229615367
[ "Apache-2.0" ]
null
null
null
sciflo/event/pdict.py
hysds/sciflo
f706288405c8eee59a2f883bab3dcb5229615367
[ "Apache-2.0" ]
null
null
null
sciflo/event/pdict.py
hysds/sciflo
f706288405c8eee59a2f883bab3dcb5229615367
[ "Apache-2.0" ]
1
2019-02-07T01:08:34.000Z
2019-02-07T01:08:34.000Z
""" pdict.py -- Implement a (remote) persistent dictionary that is accessed over a socket. The backend dictionary could be dbshelve, BSDDB, or even a relational table of (key, blob). *** The purpose is to have a bullet-proof, separate-process, persistent dictionary that is very fast, globa...
32.711392
103
0.582153
9,854
0.762634
0
0
0
0
0
0
3,947
0.305472
4f03405a3316d902d0f6702b629b6f2aae600c70
633
py
Python
tests/functional_tests.py
Ecotrust/OPCDB
f639408c9cfdfa392a9233042f40e116c703fff1
[ "MIT" ]
null
null
null
tests/functional_tests.py
Ecotrust/OPCDB
f639408c9cfdfa392a9233042f40e116c703fff1
[ "MIT" ]
7
2021-03-19T02:36:29.000Z
2022-01-21T23:51:38.000Z
tests/functional_tests.py
Ecotrust/OPCDB
f639408c9cfdfa392a9233042f40e116c703fff1
[ "MIT" ]
null
null
null
from selenium import webdriver import unittest class FirefoxTest(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() def tearDown(self): self.browser.quit() def test_page(self): #test method names must start with 'test' self.browser.get('http://localhost...
31.65
80
0.669826
373
0.589258
0
0
0
0
0
0
264
0.417062
4f0410491333c2d185cc0abeb6504f625457135d
204
py
Python
python-stuff/performance_timing.py
mnky9800n/python-data-analysis-tools
298dc6d9271c72f61285c19ff0112d755fb0c83c
[ "MIT" ]
2
2020-09-11T12:50:15.000Z
2021-05-12T07:10:04.000Z
python-stuff/performance_timing.py
mnky9800n/python-data-analysis-tools
298dc6d9271c72f61285c19ff0112d755fb0c83c
[ "MIT" ]
null
null
null
python-stuff/performance_timing.py
mnky9800n/python-data-analysis-tools
298dc6d9271c72f61285c19ff0112d755fb0c83c
[ "MIT" ]
3
2020-03-06T15:35:46.000Z
2021-12-11T07:36:08.000Z
import timeit # bro, probably could just use %timeit if # you are on ipython. :-P starttime = timeit.default_timer() """ your code here """ endtime = timeit.default_timer() print(endtime - starttime)
14.571429
41
0.715686
0
0
0
0
0
0
0
0
88
0.431373
4f0442ce4e58fffb400b80c3f2ed1670944947b9
336
py
Python
hortiradar/database/restart_workers.py
mctenthij/big-tu-top10
d551f944aa364728d97bb2b672276a97f8019749
[ "Apache-2.0", "BSD-2-Clause" ]
7
2019-04-21T15:25:29.000Z
2021-11-07T23:20:17.000Z
hortiradar/database/restart_workers.py
mctenthij/big-tu-top10
d551f944aa364728d97bb2b672276a97f8019749
[ "Apache-2.0", "BSD-2-Clause" ]
null
null
null
hortiradar/database/restart_workers.py
mctenthij/big-tu-top10
d551f944aa364728d97bb2b672276a97f8019749
[ "Apache-2.0", "BSD-2-Clause" ]
2
2019-04-21T15:25:30.000Z
2022-01-01T20:49:36.000Z
import os import re from subprocess import call from time import sleep supervisor_dir = "/etc/supervisor/conf.d/" _, _, files = next(os.walk(supervisor_dir)) for f in files: m = re.match("(hortiradar-worker\d)\.conf", f) if m: worker = m.group(1) call(["supervisorctl", "restart", worker]) ...
19.764706
50
0.642857
0
0
0
0
0
0
0
0
78
0.232143
4f0474aa94a2859bafafd22b10610ff8ce47631c
687
py
Python
service/main.py
release-depot/rtls
e3e8af0a41def60a13e46bef1b276d5bdd215b8d
[ "MIT" ]
null
null
null
service/main.py
release-depot/rtls
e3e8af0a41def60a13e46bef1b276d5bdd215b8d
[ "MIT" ]
4
2020-07-29T13:55:22.000Z
2021-01-07T14:51:24.000Z
service/main.py
release-depot/rtls
e3e8af0a41def60a13e46bef1b276d5bdd215b8d
[ "MIT" ]
3
2017-11-15T18:51:12.000Z
2020-12-08T18:37:39.000Z
#!/usr/bin/env python """ Main runner for the service """ from flask import Flask from flask_restful import Api from resources.rtls import Rtls def create_app(): app = Flask(__name__) api = Api(app) api.add_resource(Rtls, '/rtls/', '/rtls/<string:package>/<string:change_id>', ...
18.567568
66
0.631732
0
0
0
0
0
0
0
0
125
0.181951
4f0510a9836b3985958ce8cc21d77fb1c29fbe31
3,205
py
Python
ykdl/extractors/mgtv.py
163ui/ykdl
aea70f47cbe06cc500120c6b89c16cd0905ca19f
[ "MIT" ]
3
2018-09-04T09:33:51.000Z
2021-11-01T09:03:27.000Z
ykdl/extractors/mgtv.py
163ui/ykdl
aea70f47cbe06cc500120c6b89c16cd0905ca19f
[ "MIT" ]
null
null
null
ykdl/extractors/mgtv.py
163ui/ykdl
aea70f47cbe06cc500120c6b89c16cd0905ca19f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from ykdl.util.html import default_proxy_handler, get_content from ykdl.util.match import match1, matchall from ykdl.extractor import VideoExtractor from ykdl.videoinfo import VideoInfo from ykdl.compact import install_opener, build_opener, HTTPCookieProcessor import json...
36.420455
140
0.613417
2,326
0.71768
0
0
0
0
0
0
772
0.238198