hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
38773adb6f9ad093ba799ae9d3635dfaf96d49a7
12,885
py
Python
lexicon/providers/godaddy.py
rosieeyes/lexicon
db82a948febee04972bb648ac59471b292c7e394
[ "MIT" ]
null
null
null
lexicon/providers/godaddy.py
rosieeyes/lexicon
db82a948febee04972bb648ac59471b292c7e394
[ "MIT" ]
null
null
null
lexicon/providers/godaddy.py
rosieeyes/lexicon
db82a948febee04972bb648ac59471b292c7e394
[ "MIT" ]
null
null
null
"""Module provider for Godaddy""" import hashlib import json import logging import requests from requests.adapters import HTTPAdapter from urllib3.util.retry import Retry # type: ignore from lexicon.providers.base import Provider as BaseProvider LOGGER = logging.getLogger(__name__) NAMESERVER_DOMAINS = ["godaddy.c...
39.283537
127
0.557315
38774a8cfa36bd096638ca8bd7b0647e7f329f9f
2,520
py
Python
pcdet/models/detectors/second_net_mcd.py
zhangweichen2006/SRDAN_Open
47c1bd9d2369d8e486b18a7aea220af7324c9011
[ "Apache-2.0" ]
8
2021-06-23T02:06:56.000Z
2022-03-18T08:34:32.000Z
pcdet/models/detectors/second_net_mcd.py
zhangweichen2006/SRDAN_Open
47c1bd9d2369d8e486b18a7aea220af7324c9011
[ "Apache-2.0" ]
2
2021-07-17T11:19:14.000Z
2021-09-25T03:30:36.000Z
pcdet/models/detectors/second_net_mcd.py
zhangweichen2006/SRDAN_Open
47c1bd9d2369d8e486b18a7aea220af7324c9011
[ "Apache-2.0" ]
null
null
null
from .detector3d_template import Detector3DTemplate class SECONDNetMCD(Detector3DTemplate): def __init__(self, model_cfg, num_class, dataset, nusc=False): super().__init__(model_cfg=model_cfg, num_class=num_class, dataset=dataset, nusc=nusc) self.module_list = self.build_networks() def forwar...
31.111111
94
0.518651
38777d089ccacc23724c9a81fd6c23963f457f03
5,096
py
Python
src/flowrect/simulations/QR.py
jokteur/ASMA
25ac8a0455c680232d56c18d31de62c3188b7153
[ "MIT" ]
2
2021-11-01T09:13:17.000Z
2022-03-08T14:34:16.000Z
src/flowrect/simulations/QR.py
jokteur/ASMA
25ac8a0455c680232d56c18d31de62c3188b7153
[ "MIT" ]
null
null
null
src/flowrect/simulations/QR.py
jokteur/ASMA
25ac8a0455c680232d56c18d31de62c3188b7153
[ "MIT" ]
null
null
null
import numpy as np import time from numba import jit, prange from .util import f_SRM, eta_SRM, kappa_interaction def find_cutoff(begin, end, dt, Lambda, Gamma, epsilon_c): """ Find recursively tau_c within the precision of dt """ t_space = np.linspace(begin, end, 20) tau_c = 0 exp = np.exp(...
23.813084
90
0.551805
387781926239d2d8a72a968471c8b490f8a00ec4
8,334
py
Python
test/rvc_test.py
ccirrinc/rvc2mqtt
108328323357e55be6242887b964ca936ea7b3fc
[ "Apache-2.0" ]
1
2022-01-30T18:02:13.000Z
2022-01-30T18:02:13.000Z
test/rvc_test.py
ccirrinc/rvc2mqtt
108328323357e55be6242887b964ca936ea7b3fc
[ "Apache-2.0" ]
null
null
null
test/rvc_test.py
ccirrinc/rvc2mqtt
108328323357e55be6242887b964ca936ea7b3fc
[ "Apache-2.0" ]
null
null
null
""" Unit tests for the rvc decoder class Copyright 2022 Sean Brogan SPDX-License-Identifier: Apache-2.0 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 ...
40.653659
111
0.640629
3877915cbf5148b334bd7ce8ec0234cae3a9d3e2
3,336
py
Python
python/ICUTransformFilter.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
python/ICUTransformFilter.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
python/ICUTransformFilter.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ==================================================================== # 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/LIC...
38.344828
78
0.659472
3877b8421a995746f0fa4c2704a4568fa52d79d2
4,930
py
Python
InterventionsMIP/main_least_squares.py
haoxiangyang89/COVID_Staged_Alert
4c2cc5ef1d38c140875380a5f10a0fe1eaf8a47a
[ "MIT" ]
1
2021-06-24T19:27:01.000Z
2021-06-24T19:27:01.000Z
InterventionsMIP/main_least_squares.py
haoxiangyang89/COVID_Staged_Alert
4c2cc5ef1d38c140875380a5f10a0fe1eaf8a47a
[ "MIT" ]
null
null
null
InterventionsMIP/main_least_squares.py
haoxiangyang89/COVID_Staged_Alert
4c2cc5ef1d38c140875380a5f10a0fe1eaf8a47a
[ "MIT" ]
3
2021-12-15T13:32:25.000Z
2022-02-24T13:57:07.000Z
if __name__ == '__main__': import datetime as dt import multiprocessing as mp from utils import parse_arguments from InterventionsMIP import load_config_file, logger, change_paths # Parse arguments args = parse_arguments() # Load config file load_config_file(args.f_config) # Adjust p...
47.864078
324
0.666937
3877dbe55869ed70582cd32852a3347497f2f342
1,236
py
Python
alipay/aop/api/response/AnttechBlockchainDefinSaasInstQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AnttechBlockchainDefinSaasInstQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AnttechBlockchainDefinSaasInstQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AnttechBlockchainDefinSaasInstQueryResponse(AlipayResponse): def __init__(self): super(AnttechBlockchainDefinSaasInstQueryResponse, self).__init__() self._channel_mem...
34.333333
116
0.748382
3877f4d7ae715087c499a7944510717ac265087d
681
py
Python
blog/fixtures/db.py
luismayta/python-example-elasticsearch
4572b03c425f525094d5892ef8c625cfa991174a
[ "MIT" ]
4
2019-08-04T19:23:39.000Z
2021-04-10T08:26:44.000Z
blog/fixtures/db.py
luismayta/python-example-elasticsearch
4572b03c425f525094d5892ef8c625cfa991174a
[ "MIT" ]
3
2019-07-08T20:08:02.000Z
2019-07-09T19:47:25.000Z
blog/fixtures/db.py
luismayta/python-example-elasticsearch
4572b03c425f525094d5892ef8c625cfa991174a
[ "MIT" ]
1
2019-08-05T05:15:26.000Z
2019-08-05T05:15:26.000Z
# -*- coding: utf-8 -*- import pytest from django.core.management import call_command from io import StringIO from testing.validation import assert_test_database @pytest.fixture def django_db_setup(db, django_db_blocker): assert_test_database() new_io = StringIO() with django_db_blocker.unblock(): ...
28.375
57
0.651982
3877f835b1237db6939a20765da47c460a365cef
5,604
py
Python
pyntejos/coadd.py
ntejos/pyntejos
ecac98807c33c58e0ced690231991375b89739c9
[ "BSD-3-Clause" ]
null
null
null
pyntejos/coadd.py
ntejos/pyntejos
ecac98807c33c58e0ced690231991375b89739c9
[ "BSD-3-Clause" ]
null
null
null
pyntejos/coadd.py
ntejos/pyntejos
ecac98807c33c58e0ced690231991375b89739c9
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pylab as pl from astropy.io import fits from astropy.table import Table from linetools.spectra.io import readspec from linetools.spectra.xspectrum1d import XSpectrum1D from linetools.spectra.utils import collate import numpy as np from pypeit.core import coadd as arco from astropy import units...
31.661017
95
0.648108
3877fa90666bb02f71e5bcd95111c77f89c7e363
70
py
Python
src/cell_division/__init__.py
mightytreefolk/regulated_gene_expression
0d5f298d821ca17fdc05e825514b46a6771a9137
[ "MIT" ]
null
null
null
src/cell_division/__init__.py
mightytreefolk/regulated_gene_expression
0d5f298d821ca17fdc05e825514b46a6771a9137
[ "MIT" ]
null
null
null
src/cell_division/__init__.py
mightytreefolk/regulated_gene_expression
0d5f298d821ca17fdc05e825514b46a6771a9137
[ "MIT" ]
null
null
null
from .models import Gillespie, CellDivision, DeterministicCellDivision
70
70
0.885714
387812500579ecbf32632461158c82811806004f
1,206
py
Python
src/azul/hmac.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
src/azul/hmac.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
src/azul/hmac.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
import logging import chalice import requests from requests_http_signature import HTTPSignatureAuth from azul.deployment import aws logger = logging.getLogger(__name__) def verify(current_request): try: current_request.headers['authorization'] except KeyError as e: logger.warning('Missing au...
31.736842
77
0.71393
387817fabf871e3ec06eb31c1d0c317ef0b34ca2
806
py
Python
deepxde/__init__.py
smao-astro/deepxde
aa2ff31141268c1c5e1c25815a5f26dcdcdcdbee
[ "Apache-2.0" ]
1
2021-01-13T18:19:17.000Z
2021-01-13T18:19:17.000Z
deepxde/__init__.py
smao-astro/deepxde
aa2ff31141268c1c5e1c25815a5f26dcdcdcdbee
[ "Apache-2.0" ]
null
null
null
deepxde/__init__.py
smao-astro/deepxde
aa2ff31141268c1c5e1c25815a5f26dcdcdcdbee
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from . import backend from . import boundary_conditions as bc from . import callbacks from . import data from . import geometry from . import gradients as grad from . import maps from .boundary_conditions import DirichletBC from .boundary_conditions import NeumannBC from .boundar...
20.666667
44
0.719603
3878189e2cd147c464c3131d2b0c40bf0c2028c6
1,894
py
Python
py_hanabi/commands/command_hint.py
krinj/hanabi-simulator
b77b04aa09bab8bd8d7b784e04bf8b9d5d76d1a6
[ "MIT" ]
1
2018-09-28T00:47:52.000Z
2018-09-28T00:47:52.000Z
py_hanabi/commands/command_hint.py
krinj/hanabi-simulator
b77b04aa09bab8bd8d7b784e04bf8b9d5d76d1a6
[ "MIT" ]
null
null
null
py_hanabi/commands/command_hint.py
krinj/hanabi-simulator
b77b04aa09bab8bd8d7b784e04bf8b9d5d76d1a6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Give a hint to a player. """ from py_hanabi.commands.command import Command from py_hanabi.card import Color from py_hanabi.hint_stat import HintStat from py_hanabi.state import State __author__ = "Jakrin Juangbhanich" __email__ = "juangbhanich.k@gmail.com" class CommandHint(Command): ...
29.59375
112
0.595037
38781cd841e6f1f12b14e4c20e174d553115d4dd
15,449
py
Python
ufora/test/MultiMachineTestRunner.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
ufora/test/MultiMachineTestRunner.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
ufora/test/MultiMachineTestRunner.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
# Copyright 2015 Ufora Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
36.871122
100
0.618098
387840c60f4a34898be691996647553d4675e32d
13,787
py
Python
var/spack/repos/builtin/packages/openspeedshop/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
7
2020-06-18T18:55:51.000Z
2022-01-31T23:01:55.000Z
var/spack/repos/builtin/packages/openspeedshop/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
35
2016-05-11T06:52:44.000Z
2022-03-23T04:37:34.000Z
var/spack/repos/builtin/packages/openspeedshop/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
7
2020-06-18T18:59:09.000Z
2021-11-16T02:24:37.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import spack.store from spack import * class Openspeedshop(CMakePackage): """OpenSpeedShop is a community...
42.033537
108
0.607529
38785b0600e06beb2a3a96730ac5ffddc4e3c2d5
299
py
Python
random/func3.py
sgherbst/msdsl
e38d5ecdb88b3574bda62f22a4f91ce3e4173d12
[ "MIT" ]
15
2019-05-14T10:12:23.000Z
2022-03-29T15:29:52.000Z
random/func3.py
sgherbst/msdsl
e38d5ecdb88b3574bda62f22a4f91ce3e4173d12
[ "MIT" ]
19
2020-01-22T21:44:33.000Z
2021-06-05T02:10:41.000Z
random/func3.py
sgherbst/msdsl
e38d5ecdb88b3574bda62f22a4f91ce3e4173d12
[ "MIT" ]
5
2019-10-21T09:53:17.000Z
2021-08-10T17:32:20.000Z
import numpy as np from msdsl import * m = MixedSignalModel('rc') dt = m.add_analog_input('dt') alpha = m.add_analog_output('alpha') func = lambda dt: np.exp(-dt) f = m.make_function(func, domain=[0, 10], numel=512, order=1) m.set_from_sync_func(alpha, f, dt) m.compile_and_print(VerilogGenerator())
33.222222
61
0.735786
38787195fda300239d5cd51cf5ca02f997e89cc3
6,784
py
Python
carbon/lib/carbon/amqp_listener.py
katzj/graphite
e33bf5e035360880c4172a3c2ecb355485d7b172
[ "Apache-2.0" ]
1
2016-07-25T09:45:31.000Z
2016-07-25T09:45:31.000Z
carbon/lib/carbon/amqp_listener.py
katzj/graphite
e33bf5e035360880c4172a3c2ecb355485d7b172
[ "Apache-2.0" ]
null
null
null
carbon/lib/carbon/amqp_listener.py
katzj/graphite
e33bf5e035360880c4172a3c2ecb355485d7b172
[ "Apache-2.0" ]
2
2018-03-19T17:49:03.000Z
2018-12-04T02:14:09.000Z
#!/usr/bin/env python """ Copyright 2009 Lucio Torre <lucio.torre@canonical.com> This is an AMQP client that will connect to the specified broker and read messages, parse them, and post them as metrics. Each message's routing key should be a metric name. The message body should be one or more lines of the form: <val...
33.254902
80
0.621315
3878850631713f8e4fb76d70b9a6d4b5aa9330a0
7,091
py
Python
apps/Analyzer_Datasets/maps/lib_graph_map_colormap.py
c-hydro/hat
6342f87237ae9e71f05d54264bce97299ab4eb61
[ "MIT" ]
1
2022-03-21T03:30:43.000Z
2022-03-21T03:30:43.000Z
apps/Analyzer_Datasets/maps/lib_graph_map_colormap.py
c-hydro/hat
6342f87237ae9e71f05d54264bce97299ab4eb61
[ "MIT" ]
3
2021-05-06T15:22:37.000Z
2021-05-06T16:31:05.000Z
apps/Analyzer_Datasets/maps/lib_graph_map_colormap.py
c-hydro/hat
6342f87237ae9e71f05d54264bce97299ab4eb61
[ "MIT" ]
null
null
null
""" Library Features: Name: lib_graph_map_utils Author(s): Fabio Delogu (fabio.delogu@cimafoundation.org) Date: '20210903' Version: '1.0.0' """ ####################################################################################### # Libraries import matplotlib.cm as cm import matplotlib.co...
40.062147
92
0.506135
387893273a86bf3141d925c3907062da0e7286a5
1,122
py
Python
learning-chaos-engineering-book-samples/chapter5/service.py
yanntoque/community-playground
a2cea3550bccbb18f6eabf5f785ec3f0a460ba70
[ "Apache-2.0" ]
45
2019-05-02T13:07:10.000Z
2022-02-21T22:32:18.000Z
learning-chaos-engineering-book-samples/chapter5/service.py
yanntoque/community-playground
a2cea3550bccbb18f6eabf5f785ec3f0a460ba70
[ "Apache-2.0" ]
29
2019-04-29T11:05:16.000Z
2022-02-21T22:11:19.000Z
learning-chaos-engineering-book-samples/chapter5/service.py
yanntoque/community-playground
a2cea3550bccbb18f6eabf5f785ec3f0a460ba70
[ "Apache-2.0" ]
20
2019-07-26T23:37:56.000Z
2022-03-04T07:48:39.000Z
# -*- coding: utf-8 -*- from datetime import datetime import io import time import threading from wsgiref.validate import validator from wsgiref.simple_server import make_server EXCHANGE_FILE = "./exchange.dat" def update_exchange_file(): """ Writes the current date and time every 10 seconds into the exchang...
24.933333
77
0.656863
3878ca9b49f3c7bae883968126b9b129e035f93b
7,519
py
Python
tools/generate_data.py
MatthewCYM/SFLM
831c71b910bd1ddeac24d0e4836417054b95ea97
[ "MIT" ]
10
2021-11-01T15:22:43.000Z
2022-02-10T06:08:47.000Z
tools/generate_data.py
MatthewCYM/SFLM
831c71b910bd1ddeac24d0e4836417054b95ea97
[ "MIT" ]
null
null
null
tools/generate_data.py
MatthewCYM/SFLM
831c71b910bd1ddeac24d0e4836417054b95ea97
[ "MIT" ]
2
2021-11-04T08:00:35.000Z
2022-02-10T05:34:10.000Z
"""This script samples K labeled examples and MU * K unlabeled examples randomly without replacement from the original data. """ import argparse import os import numpy as np import pandas as pd from pandas import DataFrame def get_label(task, line): if task in ["MNLI", "MRPC", "QNLI", "RTE", "SNLI", "SST-2"]: ...
38.757732
128
0.486634
38791dfb57cedf8f0240833f7b46d2d00feb2f5f
1,145
py
Python
src/decisionengine_modules/util/test_retry_function.py
goodenou/decisionengine_modules
cf4311949d3c5fd991d1c5c4a6a190ba53a2eb71
[ "BSD-3-Clause" ]
2
2020-03-17T15:51:19.000Z
2022-02-23T15:45:37.000Z
src/decisionengine_modules/util/test_retry_function.py
goodenou/decisionengine_modules
cf4311949d3c5fd991d1c5c4a6a190ba53a2eb71
[ "BSD-3-Clause" ]
358
2020-03-02T20:06:38.000Z
2022-03-28T20:39:01.000Z
src/decisionengine_modules/util/test_retry_function.py
goodenou/decisionengine_modules
cf4311949d3c5fd991d1c5c4a6a190ba53a2eb71
[ "BSD-3-Clause" ]
34
2020-02-24T17:17:11.000Z
2022-01-13T21:50:11.000Z
from functools import partial import decisionengine_modules.util.retry_function as retry_function class Dummy: def __init__(self, name="Dummy"): self.name = name self.max_retries = 2 self.retry_interval = 2 def _func_success(self, foo, input2=3): return foo + input2 + self.ma...
27.926829
109
0.641921
38792f9e140924b9c76153133081c8ba497f2f4a
1,407
py
Python
ABLIRC/install/external_lib/HTSeq/_HTSeq_internal.py
ablifedev/ABLIRC
875278b748a8e22ada2c76c3c76dbf970be4a6a4
[ "MIT" ]
1
2020-02-25T13:08:20.000Z
2020-02-25T13:08:20.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/HTSeq-0.6.1p1-py2.7-linux-x86_64.egg/HTSeq/_HTSeq_internal.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
ABLIRC/install/external_lib/HTSeq/_HTSeq_internal.py
ablifedev/ABLIRC
875278b748a8e22ada2c76c3c76dbf970be4a6a4
[ "MIT" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import HTSeq import itertools import numpy def GenomicInterval_xrange( gi, step ): for pos in xrange( gi.start, gi.end, step ): yield HTSeq.GenomicPosition( gi.chrom, pos, gi.strand ) def GenomicInterval_xranged( gi, step ): if gi.strand == "-": step *= -1 for pos in xrange( gi.start_d, gi....
36.076923
95
0.61123
387987d6dec640fdbf8755476591ec2b16431346
4,441
py
Python
KerbalStuff/ReadOnly.py
toadicus/PyKStuff
b9bb1d5488adb814b4a2845bb940754255ecdc50
[ "Unlicense" ]
null
null
null
KerbalStuff/ReadOnly.py
toadicus/PyKStuff
b9bb1d5488adb814b4a2845bb940754255ecdc50
[ "Unlicense" ]
null
null
null
KerbalStuff/ReadOnly.py
toadicus/PyKStuff
b9bb1d5488adb814b4a2845bb940754255ecdc50
[ "Unlicense" ]
null
null
null
__author__ = 'toadicus' import requests import sys from .Constants import Constants from .Mod import Mod, ModVersion from .User import User from StaticClass import staticclass Constants.RootUri = "https://kerbalstuff.com" Constants.ApiUri = Constants.RootUri + "/api" Constants.UserAgent = "PyKStuff by toadicus" Cons...
30.627586
97
0.648052
3879c254dee96ba438b6142ac0c81a9cee306193
1,095
py
Python
services/traction/acapy_wrapper/models/v20_pres_send_request_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_wrapper/models/v20_pres_send_request_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_wrapper/models/v20_pres_send_request_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
# coding: utf-8 from __future__ import annotations from datetime import date, datetime # noqa: F401 import re # noqa: F401 from typing import Any, Dict, List, Optional # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401 from acapy_wrapper.models.v20_pres_request_by_format import...
33.181818
96
0.76895
3879d4cd7d2fa64e53e3bebb5023dcf3395408c6
1,823
py
Python
toontown/coghq/DistributedStomperAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/coghq/DistributedStomperAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/DistributedStomperAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from otp.ai.AIBase import * from direct.interval.IntervalGlobal import * from direct.directnotify import DirectNotifyGlobal from toontown.coghq import DistributedCrusherEntityAI from toontown.coghq import StomperGlobals from direct.distributed import ClockDelta from toontown.coghq import CrusherCellAI class Distribute...
42.395349
134
0.708173
3879ee28ddca74cba2285eda08979f4d94559f7a
167
py
Python
config.py
m-lab/mlab-vis-api
2368d88223148bf73d83c62d285fb458558619e0
[ "MIT" ]
1
2017-09-05T14:52:11.000Z
2017-09-05T14:52:11.000Z
config.py
m-lab/mlab-vis-api
2368d88223148bf73d83c62d285fb458558619e0
[ "MIT" ]
9
2017-09-14T15:30:02.000Z
2019-03-05T18:35:20.000Z
config.py
m-lab/mlab-vis-api
2368d88223148bf73d83c62d285fb458558619e0
[ "MIT" ]
3
2017-06-01T16:01:37.000Z
2017-10-24T22:44:47.000Z
# -*- coding: utf-8 -*- ''' Configurations for Flask App ''' from dotenv import load_dotenv, find_dotenv load_dotenv(find_dotenv()) GA_TRACKING_ID = 'UA-86118171-1'
16.7
43
0.718563
3879fcfc0ec9bdc8657acb27ea1b24a47a97cf1e
1,678
py
Python
geohash_cluster/rest_framework.py
EvgeneOskin/django-geohash-cluster
3b94055e4f1daede7962d2fc6b70075fee338f90
[ "MIT" ]
3
2019-10-05T03:54:57.000Z
2020-12-07T04:06:44.000Z
geohash_cluster/rest_framework.py
EvgeneOskin/django-geohash-cluster
3b94055e4f1daede7962d2fc6b70075fee338f90
[ "MIT" ]
1
2017-12-01T04:45:16.000Z
2017-12-01T04:45:16.000Z
geohash_cluster/rest_framework.py
EvgeneOskin/django-geohash-cluster
3b94055e4f1daede7962d2fc6b70075fee338f90
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Module provides Django Rest Framework Serializer and Filter for Clusters.""" from django.contrib.gis.geos import Point from rest_framework.serializers import CharField, IntegerField from rest_framework.filters import BaseFilterBackend from rest_framework_gis.serializers import ( GeoFeatu...
26.21875
79
0.626937
387a1d600e789ac019bbd38ccd76ed8a52ee72dd
8,851
py
Python
neuroscience/tensorflow/model_building.py
tpawlowski/image_analytics
60445177a45c81a2c9c389b2f85f0d49d561c211
[ "MIT" ]
3
2017-08-08T09:07:27.000Z
2018-09-12T14:54:56.000Z
neuroscience/tensorflow/model_building.py
tpawlowski/image_analytics
60445177a45c81a2c9c389b2f85f0d49d561c211
[ "MIT" ]
1
2020-10-13T04:13:10.000Z
2020-10-13T04:13:10.000Z
neuroscience/tensorflow/model_building.py
tpawlowski/image_analytics
60445177a45c81a2c9c389b2f85f0d49d561c211
[ "MIT" ]
2
2018-02-26T18:03:23.000Z
2018-03-20T08:29:00.000Z
import dipy.core.gradients as dpg import dipy.reconst.dti as dti import nibabel as nib import numpy as np import tensorflow as tf MIN_POSITIVE_SIGNAL = 0.0001 tol = 1e-6 _lt_indices = np.array([[0, 1, 3], [1, 2, 4], [3, 4, 5]]) def pinv(a, rcond=1e-15): """ IM...
34.042308
98
0.601288
387a38761e179e3f5b3012c232a1faf73389c25b
1,065
py
Python
datalad_deprecated/utils.py
dereklu888/datalad-deprecated
a3d2d7ca1d9d3b35f5916a26efcce5f3b87df99e
[ "MIT" ]
null
null
null
datalad_deprecated/utils.py
dereklu888/datalad-deprecated
a3d2d7ca1d9d3b35f5916a26efcce5f3b87df99e
[ "MIT" ]
42
2021-04-12T18:31:11.000Z
2022-03-02T19:48:03.000Z
datalad_deprecated/utils.py
dereklu888/datalad-deprecated
a3d2d7ca1d9d3b35f5916a26efcce5f3b87df99e
[ "MIT" ]
2
2021-07-06T21:03:57.000Z
2021-12-07T16:17:19.000Z
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
34.354839
87
0.532394
387aa00c6837d65903053a99bfd83e6c402e4b76
11,367
py
Python
covsirphy/worldwide/policy.py
rebeccadavidsson/covid19-sir
ca7a408c5fcf87e4857edd14a9276cae0b6737cf
[ "Apache-2.0" ]
null
null
null
covsirphy/worldwide/policy.py
rebeccadavidsson/covid19-sir
ca7a408c5fcf87e4857edd14a9276cae0b6737cf
[ "Apache-2.0" ]
null
null
null
covsirphy/worldwide/policy.py
rebeccadavidsson/covid19-sir
ca7a408c5fcf87e4857edd14a9276cae0b6737cf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from itertools import groupby from operator import itemgetter import pandas as pd from covsirphy.util.error import deprecate, UnExecutedError from covsirphy.util.plotting import line_plot from covsirphy.cleaning.jhu_data import JHUData from covsirphy.cleaning.population im...
37.391447
97
0.601478
387aa04b3df754d5a877887957ce43f923580808
2,299
py
Python
Chapter 8/08/recipe64_server.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
Chapter 8/08/recipe64_server.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
Chapter 8/08/recipe64_server.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
from springpython.database.factory import * from springpython.database.core import * from springpython.remoting.pyro import * from springpython.aop import * from network import * from datetime import datetime import os import os.path import pickle import logging logger = logging.getLogger("springpython.remoting") log...
30.653333
85
0.698565
387ab3d3dadb14d28bebb61bc04c2d3dbf8c87cf
253
py
Python
projects/EQL/eql/cfg.py
Swall0w/detectron2
b7dab14f77d35a9180750ee721735fe37ad4678f
[ "Apache-2.0" ]
196
2020-03-10T03:34:47.000Z
2022-03-29T11:40:16.000Z
projects/EQL/eql/cfg.py
e-271/DropLoss
2eb46f5d3ac8e207f81f30bb2426085e686aacfd
[ "Apache-2.0" ]
19
2020-03-11T05:32:28.000Z
2022-03-12T00:18:42.000Z
projects/EQL/eql/cfg.py
e-271/DropLoss
2eb46f5d3ac8e207f81f30bb2426085e686aacfd
[ "Apache-2.0" ]
19
2020-03-12T02:41:04.000Z
2021-12-29T11:17:08.000Z
def add_eql_config(cfg): """ Add config for EQL. """ cfg.MODEL.ROI_HEADS.LAMBDA = 0.00177 cfg.MODEL.ROI_HEADS.PRIOR_PROB = 0.001 # legacy cfg key (make model compatible with previous ckpt) cfg.MODEL.ROI_HEADS.FREQ_INFO = ""
25.3
63
0.664032
387ac2da399261a79d59cefda2b7299b9fdeb5d6
591
py
Python
py/cidoc_crm_types/properties/p181_has_amount.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p181_has_amount.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p181_has_amount.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from .p90_has_value import P90HasValue from dataclasses import dataclass @dataclass class P181HasAmount(P90HasValue): """ Scope note: This property establishes the relationship between an instance of E97 Monetary Amount and the amount of currency, an instance of E60 Number, that it consists of. Examples: - Chr...
25.695652
161
0.734349
387b70cfb38d9f84cfbf72ce380a6860f9d4a366
1,897
py
Python
sqlserver/setup.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2020-08-08T02:01:01.000Z
2020-08-08T02:01:01.000Z
sqlserver/setup.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
sqlserver/setup.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:45:42.000Z
2018-08-15T05:45:42.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from setuptools import setup from codecs import open # To use a consistent encoding from os import path HERE = path.dirname(path.abspath(__file__)) # Get version info ABOUT = {} with open(path.join(HERE, 'datad...
27.897059
79
0.683711
387b9302f8cf6214ccca9266b72496313a63398c
972
py
Python
userbot/__main__.py
monubot/monman
8bf9790f9eff01be183bd8371a74b123ca17f59f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/__main__.py
monubot/monman
8bf9790f9eff01be183bd8371a74b123ca17f59f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/__main__.py
monubot/monman
8bf9790f9eff01be183bd8371a74b123ca17f59f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # """ Userbot start point """ from importlib import import_module from sys import argv from telethon.errors.rpcerrorlis...
26.27027
78
0.715021
387bc0345ed8a93cfddaf14bae2c3fbf999f170e
2,204
py
Python
python/ray/experimental/sgd/tfbench/model_config.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
3
2019-05-01T04:31:20.000Z
2021-03-01T09:25:36.000Z
python/ray/experimental/sgd/tfbench/model_config.py
collinswei/ray
2e30f7ba386e716bf80f019dcd473b67d83abb95
[ "Apache-2.0" ]
2
2019-01-28T00:31:25.000Z
2019-11-26T16:57:06.000Z
python/ray/experimental/sgd/tfbench/model_config.py
collinswei/ray
2e30f7ba386e716bf80f019dcd473b67d83abb95
[ "Apache-2.0" ]
6
2019-03-12T05:37:35.000Z
2020-03-09T12:25:17.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38
80
0.700091
387be15df52ef666eaeb63f64a22b18f0be06c30
4,787
py
Python
toontown/safezone/DDPlayground.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/safezone/DDPlayground.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/safezone/DDPlayground.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from pandac.PandaModules import * from toontown.safezone import Playground from direct.task.Task import Task import random from direct.fsm import ClassicFSM, State from direct.actor import Actor from toontown.toonbase import ToontownGlobals from direct.directnotify import DirectNotifyGlobal from toontown.hood import Pl...
34.688406
204
0.668477
387c046a3a0ab23ea2d0885e4e9d76e81758f661
1,684
py
Python
server/tests/main.py
TheDarrenJoseph/AberWebMUD
c8b33e03a0c78e5d0aceaa1ce85a2924c71cdb1c
[ "MIT" ]
2
2018-08-20T18:09:47.000Z
2019-04-29T06:18:42.000Z
server/tests/main.py
TheDarrenJoseph/AberWebMUD
c8b33e03a0c78e5d0aceaa1ce85a2924c71cdb1c
[ "MIT" ]
6
2019-04-28T20:56:25.000Z
2022-02-12T04:33:23.000Z
server/tests/main.py
TheDarrenJoseph/AberWebMUD
c8b33e03a0c78e5d0aceaa1ce85a2924c71cdb1c
[ "MIT" ]
null
null
null
import unittest import logging import sys VERBOSITY = 0 LOGGER = logging.getLogger() LOGGER.setLevel(logging.DEBUG) # Adding some niceness to the default TextTestRunner, test totals, etc class CustomRunner(unittest.TextTestRunner): def run(self, test): ran_count = 0 errors = [] failures = ...
35.829787
131
0.600356
387c13fd6d122dd9b86192f423587a360ecf8c1e
5,812
py
Python
rotkehlchen/fval.py
michaelsproul/rotkehlchen
410987682c02919dfd4f4b025836c5c191782b35
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/fval.py
michaelsproul/rotkehlchen
410987682c02919dfd4f4b025836c5c191782b35
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/fval.py
michaelsproul/rotkehlchen
410987682c02919dfd4f4b025836c5c191782b35
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal, InvalidOperation from typing import Union # Here even though we got __future__ annotations using FVal does not seem to work AcceptableFValInitInput = Union[float, bytes, Decimal, int, str, 'FVal'] AcceptableFValOtherInput = Union[int, 'FVal'] class FVal(object): """A value to repres...
35.876543
96
0.655712
387c28981c34a62adaed73464b9f904777a5be4b
12,919
py
Python
gslib/tests/test_perfdiag.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
gslib/tests/test_perfdiag.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
null
null
null
gslib/tests/test_perfdiag.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
1
2022-01-28T15:28:54.000Z
2022-01-28T15:28:54.000Z
# -*- coding: utf-8 -*- # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
41.407051
80
0.651289
387c303b2a11f4c1e90502f82346fc1123f1c23d
1,262
py
Python
setup.py
jtimonen/hdviz
068e7a16ae3bb88e46a83abeed8e8ace287ddd4c
[ "MIT" ]
null
null
null
setup.py
jtimonen/hdviz
068e7a16ae3bb88e46a83abeed8e8ace287ddd4c
[ "MIT" ]
null
null
null
setup.py
jtimonen/hdviz
068e7a16ae3bb88e46a83abeed8e8ace287ddd4c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import re import setuptools pkg_name = "hdviz" # Get long description with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() # Requirements with open("requirements.txt", "r") as fh: install_requires = fh.read() # Get version from hdviz/__init__.py ...
27.434783
81
0.670365
387c3978662469afb839af76384fe37ba650d642
14,739
py
Python
factorio_schema.py
jcranmer/factorio-tools
83bd0dfe1f066dd1ea2a47d30fe7e80be590a47b
[ "BSD-3-Clause" ]
13
2016-09-20T19:41:23.000Z
2021-09-19T11:32:56.000Z
factorio_schema.py
jcranmer/factorio-tools
83bd0dfe1f066dd1ea2a47d30fe7e80be590a47b
[ "BSD-3-Clause" ]
5
2016-09-21T02:12:54.000Z
2017-05-15T02:42:55.000Z
factorio_schema.py
jcranmer/factorio-tools
83bd0dfe1f066dd1ea2a47d30fe7e80be590a47b
[ "BSD-3-Clause" ]
4
2016-11-26T19:18:01.000Z
2020-05-03T21:16:46.000Z
''' This contains Python data types for the Lua data prototypes. Almost all of the classes here are loaded dynamically from a schema.json file. If you run the file directly, you can verify the correctness of the schema. ''' import factorio_types import functools import json def make_wrapper_object(data, lua_object):...
39.835135
129
0.649841
387c3f7bf25322259877870f5055df9ac73bbfd0
251
py
Python
practice/2016-C/main.py
cycoe/math_modeling
fd3270dc0b90ad35cfff29df5d8afa985a93ab2f
[ "MIT" ]
null
null
null
practice/2016-C/main.py
cycoe/math_modeling
fd3270dc0b90ad35cfff29df5d8afa985a93ab2f
[ "MIT" ]
null
null
null
practice/2016-C/main.py
cycoe/math_modeling
fd3270dc0b90ad35cfff29df5d8afa985a93ab2f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from modules.Case import Case def main(): case = Case() case.load_case("samples/learning/case001_input.txt") case.init_argvs() print(case.first()) if __name__ == "__main__": main()
16.733333
56
0.633466
387c40b3d9a5630770386610e340f76f1c4f85bb
544
py
Python
myproject/common/handlers/processors.py
sert121/privacy-sharing
69f712b0524361c8a3b4db0574a13ce914222695
[ "MIT" ]
3
2018-08-15T16:17:19.000Z
2020-01-13T22:20:49.000Z
myproject/common/handlers/processors.py
sert121/privacy-sharing
69f712b0524361c8a3b4db0574a13ce914222695
[ "MIT" ]
45
2018-06-23T18:02:28.000Z
2021-08-25T14:46:12.000Z
myproject/common/handlers/processors.py
sert121/privacy-sharing
69f712b0524361c8a3b4db0574a13ce914222695
[ "MIT" ]
null
null
null
""" Context processors for project-specific attributes to be passed to all templates. """ from django.conf import settings __author__ = "Alex Laird" __copyright__ = "Copyright 2018, Alex Laird" __version__ = "0.2.0" def template(request): """ Append project-specific attributes to a request context. :pa...
22.666667
81
0.700368
387c5c8da95993f984f20522253b471eca93a58d
3,567
py
Python
testing/scripts/run_telemetry_benchmark_as_googletest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
testing/scripts/run_telemetry_benchmark_as_googletest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
testing/scripts/run_telemetry_benchmark_as_googletest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
#!/usr/bin/env python # Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Runs an isolate bundled Telemetry benchmark. This script attempts to emulate the contract of gtest-style tests invoked via recipes....
31.017391
79
0.693019
387c6264ef1a452363e7ab85701449268d733975
2,596
py
Python
utility/cog/character/ability/list/_12_triple_pilots.py
DrLarck/DiscordBallZ_
c274e26efce4c5a757d258c54bc285d118618751
[ "MIT" ]
4
2020-01-19T13:53:43.000Z
2020-01-20T13:34:17.000Z
utility/cog/character/ability/list/_12_triple_pilots.py
DrLarck/DiscordBallZ_
c274e26efce4c5a757d258c54bc285d118618751
[ "MIT" ]
18
2020-01-19T17:52:17.000Z
2020-02-17T15:06:13.000Z
utility/cog/character/ability/list/_12_triple_pilots.py
DrLarck/DiscordBallZ_
c274e26efce4c5a757d258c54bc285d118618751
[ "MIT" ]
1
2020-01-19T16:33:19.000Z
2020-01-19T16:33:19.000Z
""" Manages the triple pilots ability. -- Author : DrLarck Last update : 04/03/20 (DrLarck) """ # dependancies import asyncio # util from utility.cog.character.ability.ability import Ability from utility.cog.character.ability.util.effect_checker import Effect_checker from utility.cog.displayer.move import Move_dis...
28.217391
182
0.580894
387c774c44b62d2c3d6b0fd4600e72e1a2e2d508
2,598
py
Python
alipay/aop/api/domain/CollectReceiptOpenApiPageDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/CollectReceiptOpenApiPageDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/CollectReceiptOpenApiPageDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.CollectReceiptOpenApiDTO import CollectReceiptOpenApiDTO class CollectReceiptOpenApiPageDTO(object): def __init__(self): self._current_page = None self._datas...
28.866667
83
0.598537
387c81b9835df1b50d20cbc6eac6c36ffe3a1d12
34,961
py
Python
whoville/cloudbreak/models/cluster_request.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/cluster_request.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/cluster_request.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Cloudbreak API Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud...
33.01322
984
0.639741
387c8497140271b473a447fd0cf0730236079722
17,284
py
Python
hyperschedule/scrapers/claremont/portal.py
MuddCreates/hyperschedule-api
c35758d4db05b71e3d92f9474df3eea011bc7ca5
[ "MIT" ]
3
2019-11-13T22:32:54.000Z
2021-06-08T18:41:16.000Z
hyperschedule/scrapers/claremont/portal.py
MuddCreates/hyperschedule-api
c35758d4db05b71e3d92f9474df3eea011bc7ca5
[ "MIT" ]
13
2017-11-22T06:54:28.000Z
2021-07-13T23:37:22.000Z
hyperschedule/scrapers/claremont/portal.py
MuddCreates/hyperschedule-api
c35758d4db05b71e3d92f9474df3eea011bc7ca5
[ "MIT" ]
8
2019-10-01T00:37:59.000Z
2020-10-13T19:04:53.000Z
""" Module for retrieving data from the HMC Portal and formatting it appropriately for the frontend (sans course descriptions). Main entry point is `get_courses`. This module returns course objects as described in the Hyperschedule API spec, but also uses an intermediate ("raw") representation for course data that ha...
36.387368
86
0.629831
387ca08b1718d303b5387a1989eea79cb43cfd93
11,338
py
Python
b2sdk/transfer/outbound/copy_manager.py
ehossack/b2-sdk-python
034bec38671c0862b6956915993061359dbd51f6
[ "MIT" ]
null
null
null
b2sdk/transfer/outbound/copy_manager.py
ehossack/b2-sdk-python
034bec38671c0862b6956915993061359dbd51f6
[ "MIT" ]
null
null
null
b2sdk/transfer/outbound/copy_manager.py
ehossack/b2-sdk-python
034bec38671c0862b6956915993061359dbd51f6
[ "MIT" ]
null
null
null
###################################################################### # # File: b2sdk/transfer/outbound/copy_manager.py # # Copyright 2020 Backblaze Inc. All Rights Reserved. # # License https://www.backblaze.com/using_b2_code.html # ###################################################################### import concur...
41.07971
118
0.662815
387cb0edb3739b493afebd81a4c753624d1e4cce
4,240
py
Python
cupy/cuda/compiler.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
cupy/cuda/compiler.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
cupy/cuda/compiler.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
import hashlib import os import re import subprocess import sys import tempfile import filelock import six from cupy.cuda import device from cupy.cuda import function _nvcc_version = None def _get_nvcc_version(): global _nvcc_version if _nvcc_version is None: cmd = ['nvcc', '--version'] _n...
26.5
78
0.594811
387d252641f99eacc6c4ca5d19f9eaf8f027e197
7,001
py
Python
docs/examples/export_security_manager.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
198
2016-08-04T05:45:38.000Z
2022-02-17T08:30:58.000Z
docs/examples/export_security_manager.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
13
2018-02-04T14:16:16.000Z
2020-10-09T02:16:24.000Z
docs/examples/export_security_manager.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
57
2016-08-08T04:24:04.000Z
2022-01-24T08:43:02.000Z
from blesuite.connection_manager import BLEConnectionManager from blesuite.entities.gatt_device import BLEDevice from blesuite.entities.permissions import Permissions import blesuite.utils.att_utils as att_utils import blesuite.utils.gap_utils as gap_utils import json import gevent adapter = 0 role = 'peripheral' wit...
50.731884
154
0.711613
387d2f06b28afe68805abca7d3816a6a12033fc7
4,264
py
Python
gis4wrf/core/transforms/project_to_wrf_namelist.py
XavierCLL/gis4wrf
686b167d656f5f1835858f1b94de4423091f957c
[ "MIT" ]
111
2018-06-13T15:34:52.000Z
2022-03-23T04:59:53.000Z
gis4wrf/core/transforms/project_to_wrf_namelist.py
XavierCLL/gis4wrf
686b167d656f5f1835858f1b94de4423091f957c
[ "MIT" ]
190
2018-06-14T15:08:37.000Z
2022-03-02T14:02:54.000Z
gis4wrf/core/transforms/project_to_wrf_namelist.py
XavierCLL/gis4wrf
686b167d656f5f1835858f1b94de4423091f957c
[ "MIT" ]
29
2018-06-13T15:35:05.000Z
2022-01-27T03:18:18.000Z
# GIS4WRF (https://doi.org/10.5281/zenodo.1288569) # Copyright (c) 2018 D. Meyer and M. Riechert. Licensed under MIT. from collections import OrderedDict import os import glob import netCDF4 as nc from gis4wrf.core.util import export from gis4wrf.core.errors import UserError from gis4wrf.core.project import Project ...
41
125
0.647514
387d711d44ca585bf47068fece136fc4fd32d712
646
py
Python
char_dictionary.py
tiredamage42/WikiCrawler
264d3511dec20bcf9c633315d3d6c93aa64cbe5c
[ "MIT" ]
1
2021-02-14T19:49:39.000Z
2021-02-14T19:49:39.000Z
char_dictionary.py
tiredamage42/WikiCrawler
264d3511dec20bcf9c633315d3d6c93aa64cbe5c
[ "MIT" ]
null
null
null
char_dictionary.py
tiredamage42/WikiCrawler
264d3511dec20bcf9c633315d3d6c93aa64cbe5c
[ "MIT" ]
null
null
null
''' CHARACTER LEVEL DICTIONARY ''' id2char = '`~!@#$%^&*()_+1234567890-=qwertyuiop[]|";:/?.>,<}{asdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM' + " '" # 0 = pad # 1 = unknown 0 is pad (+offset from char dictionary) char2id = { w: i + 2 for i, w in enumerate(id2char) } vocab_size = len(id2char) + 2 def encode_char(char)...
24.846154
111
0.645511
387d950b57e3c18e7c3efd465bcee96df358cdd1
1,827
py
Python
postgres/setup.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
postgres/setup.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
postgres/setup.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from codecs import open from os import path from setuptools import setup HERE = path.abspath(path.dirname(__file__)) # Get version info ABOUT = {} with open(path.join(HERE, "datadog_checks", "postgres"...
29.95082
78
0.679803
387d9ac5c661ea6f58d2f37db206ee8dfd36a657
3,256
py
Python
qualtrics_api_wrapper/__contacts/contacts.py
wpriddy/qualtrics_wrappre
59c32416798cd5dc6f8acea084f83f3c14b2ab6e
[ "MIT" ]
null
null
null
qualtrics_api_wrapper/__contacts/contacts.py
wpriddy/qualtrics_wrappre
59c32416798cd5dc6f8acea084f83f3c14b2ab6e
[ "MIT" ]
null
null
null
qualtrics_api_wrapper/__contacts/contacts.py
wpriddy/qualtrics_wrappre
59c32416798cd5dc6f8acea084f83f3c14b2ab6e
[ "MIT" ]
null
null
null
#%% from qualtrics.__settings import qualtrics_settings, headers from qualtrics.__admin import _in_codes, mailing_list, Qualtrics_Codes, replacer, save_settings, read_settings, mailing_list, _test_type, _is_path import requests as r import json from datetime import datetime import pandas as pd # %% data_center ...
36.58427
147
0.576781
387e0437f3f6244c2a0a54c47a014d7c39f25262
65,905
py
Python
torch/_prims/__init__.py
iyuanyin/pytorch
e21c0ac9a5d318a62371a6348c7fecc5e905129c
[ "Intel" ]
null
null
null
torch/_prims/__init__.py
iyuanyin/pytorch
e21c0ac9a5d318a62371a6348c7fecc5e905129c
[ "Intel" ]
null
null
null
torch/_prims/__init__.py
iyuanyin/pytorch
e21c0ac9a5d318a62371a6348c7fecc5e905129c
[ "Intel" ]
null
null
null
import torch from torch import Tensor, _TypedStorage import torch._prims.utils as utils from torch._prims.utils import ( TensorLike, TensorLikeType, ShapeType, getnvFuserDtype, DimsType, DimsSequenceType, StrideType, Number, NumberType, TensorMeta, ) from torch.overrides import ...
26.966039
121
0.679266
387e096c4a41943b2f3d1340e05b5805a9778a98
311
py
Python
archive/nexus-api-v2/Database/Utilities/Validation/__init__.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/Utilities/Validation/__init__.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/Utilities/Validation/__init__.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
1
2022-01-03T05:33:15.000Z
2022-01-03T05:33:15.000Z
""" ... """ import dataclasses import pydantic import pydantic.types String = pydantic.types.StrBytes Integer = pydantic.types.PositiveInt Base = pydantic.BaseModel Field = pydantic.Field Optional = pydantic.types.Optional __all__ = [ "String", "Integer", "Base", "Field", "Optional" ]
12.958333
36
0.684887
387e51819dffca0f3b0019a49fbf6ddbda44c761
1,417
py
Python
survey_sumo/survey/forms.py
siracoj/SurveySumo
46767c2a181c917253ac9cb6251aa5080723d1f0
[ "Apache-2.0" ]
null
null
null
survey_sumo/survey/forms.py
siracoj/SurveySumo
46767c2a181c917253ac9cb6251aa5080723d1f0
[ "Apache-2.0" ]
null
null
null
survey_sumo/survey/forms.py
siracoj/SurveySumo
46767c2a181c917253ac9cb6251aa5080723d1f0
[ "Apache-2.0" ]
null
null
null
from django import forms from survey import models class UserForm(forms.ModelForm): """ Form used for validation on user creation """ class Meta: model = models.User fields = ["username", "first_name", "last_name", "email", "password"] def clean(self): """ Custom ...
26.240741
97
0.599153
387e62ffbcc95ce1a2da7d159b0454cee4c20505
363
py
Python
Python/ex066.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
1
2021-02-16T17:36:53.000Z
2021-02-16T17:36:53.000Z
Python/ex066.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
null
null
null
Python/ex066.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
null
null
null
s = cont = 0 while True: # enquanto isso for verdade repita: n = int(input('Digite um numero: ')) if n == 999: # se o numero for igual a 999 interrompa break cont += 1 s += n # soma é soma + o numero #print('A soma vale {}'.format(s)) print(f'A soma vale {s}, e você digitou {cont} numeros') # n...
36.3
103
0.62259
387e79050a81a59ea714d1080bb1c8c2cba861e6
1,080
py
Python
01-Lesson-Plans/02-Python/1/Activities/07-Stu_Conditionals/Solved/conditionals.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-04-13T07:14:34.000Z
2021-04-13T07:14:34.000Z
01-Lesson-Plans/02-Python/1/Activities/07-Stu_Conditionals/Solved/conditionals.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
2
2021-06-02T03:14:19.000Z
2022-02-11T23:21:24.000Z
01-Lesson-Plans/02-Python/1/Activities/07-Stu_Conditionals/Solved/conditionals.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-05-07T13:26:50.000Z
2021-05-07T13:26:50.000Z
# 1. Output: `Oooo needs some work` x = 5 if 2 * x > 10: print("Question 1 works!") else: print("Oooo needs some work") # 2. Output: `Question 2 works!` x = 5 if len("Dog") < x: print("Question 2 works!") else: print("Still missing out") # 3. Output: `You are of drinking age!` age = 21 if age > 20: ...
24
88
0.616667
387e8826576626e1918e23f03e15e24ae0e7e1e4
1,627
py
Python
src/yafs/__init__.py
diegopso/YAFS
5e9d22bcea836cb3c8caef1d3f721f889536a54e
[ "MIT" ]
1
2020-03-12T13:16:09.000Z
2020-03-12T13:16:09.000Z
src/yafs/__init__.py
mikesneider/YAFS
1b805cb0dc5ceb438ab335c347750e1cb1cdd34a
[ "MIT" ]
null
null
null
src/yafs/__init__.py
mikesneider/YAFS
1b805cb0dc5ceb438ab335c347750e1cb1cdd34a
[ "MIT" ]
null
null
null
""" The ``yafs`` module is the main component who perform the simulation. The following tables list all of the available components in this module. {toc} """ from pkgutil import extend_path from yafs.core import Sim from yafs.placement import Placement,ClusterPlacement from yafs.selection import Selection,OneRandom...
29.581818
87
0.712354
387eb246d476df936f4e16199e8c5c3915a30164
1,749
py
Python
setup.py
melvinkcx/graphql-utils
43ced16ff1ed6b5e8de3978429b14c85dc87044f
[ "MIT" ]
17
2020-01-31T13:34:07.000Z
2022-03-19T21:06:03.000Z
setup.py
melvinkcx/graphql-utils
43ced16ff1ed6b5e8de3978429b14c85dc87044f
[ "MIT" ]
6
2020-02-19T00:11:33.000Z
2020-05-24T01:53:08.000Z
setup.py
melvinkcx/graphql-utils
43ced16ff1ed6b5e8de3978429b14c85dc87044f
[ "MIT" ]
1
2020-03-08T05:53:57.000Z
2020-03-08T05:53:57.000Z
import os import setuptools def get_version(): package_init = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'graphql_utilities', '__init__.py') with open(package_init) as f: for line in f: if line.startswith('__version__ ='): return line.split('=')[1].strip().st...
31.8
111
0.593482
387eb6c5cb48102227ab7a3e1a1cdf882097fb4b
9,579
py
Python
lib/molecule/test/unit/command/test_base.py
santiagoroman/molecule
4565cce0ea1f9b1e2dc3fb2aa668715ae466d534
[ "MIT" ]
null
null
null
lib/molecule/test/unit/command/test_base.py
santiagoroman/molecule
4565cce0ea1f9b1e2dc3fb2aa668715ae466d534
[ "MIT" ]
null
null
null
lib/molecule/test/unit/command/test_base.py
santiagoroman/molecule
4565cce0ea1f9b1e2dc3fb2aa668715ae466d534
[ "MIT" ]
null
null
null
# Copyright (c) 2015-2018 Cisco Systems, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge...
32.917526
87
0.759578
387f1c9a0be119da62f5c82887a8c660937a8c53
7,725
py
Python
testproject/benchmark.py
dszmaj/channels
be07934debaf620bf30f08103d88eff39cb4d6eb
[ "BSD-3-Clause" ]
null
null
null
testproject/benchmark.py
dszmaj/channels
be07934debaf620bf30f08103d88eff39cb4d6eb
[ "BSD-3-Clause" ]
1
2022-02-11T03:46:32.000Z
2022-02-11T03:46:32.000Z
testproject/benchmark.py
zsjohny/channels
6d71106c3c6a8924f75e5058cd6c54e765af3b94
[ "BSD-3-Clause" ]
1
2022-03-04T22:00:32.000Z
2022-03-04T22:00:32.000Z
from __future__ import unicode_literals import time import random import statistics from autobahn.twisted.websocket import ( WebSocketClientProtocol, WebSocketClientFactory, ) from twisted.internet import reactor stats = {} class MyClientProtocol(WebSocketClientProtocol): def __init__(self, *args, **kw...
34.333333
123
0.569838
387f3440e32098af07cffc8d1859e5b90d3271d9
6,176
py
Python
thompson_sampling/helpers.py
wooohoooo/thompson_sampling
259f4ba5d7ec023c5c48fa51e9d6c2ba0ee19fcc
[ "Apache-2.0" ]
1
2021-07-28T16:35:58.000Z
2021-07-28T16:35:58.000Z
thompson_sampling/helpers.py
wooohoooo/thompson_sampling
259f4ba5d7ec023c5c48fa51e9d6c2ba0ee19fcc
[ "Apache-2.0" ]
2
2020-04-24T12:58:34.000Z
2022-02-26T07:03:05.000Z
thompson_sampling/helpers.py
wooohoooo/thompson_sampling
259f4ba5d7ec023c5c48fa51e9d6c2ba0ee19fcc
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 99_helpers.ipynb (unless otherwise specified). __all__ = ['plot_regret', 'showcase_code', 'iters', 'l2', 'n_std', 'plot_online_logreg', 'prettify_ax', 'sample', 'sample', 'plot_param_through_time'] # Cell import numpy as np import matplotlib.pyplot as plt impor...
30.574257
113
0.616418
387f3818644b74da7990c528ecc9eacfcfd04921
1,898
py
Python
leo/plugins/bzr_qcommands.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/bzr_qcommands.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/bzr_qcommands.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
#@+leo-ver=5-thin #@+node:ekr.20101110084839.5682: * @file bzr_qcommands.py """ Adds a context menu to each node containing all the commands in the bzr Qt interface. Bzr is invoked based on the path of the current node. *Requires contextmenu.py.* """ # by TNB import subprocess # from leo.core.leoQt import QtCore impo...
36.5
78
0.664384
387f5cb481090f5ba31816f117462de480d39dab
2,911
py
Python
src/sap/config.py
Rygor83/sap-command-line
7ff93a48c297ae7c5181c0bea825cf3f1251e8fb
[ "MIT" ]
null
null
null
src/sap/config.py
Rygor83/sap-command-line
7ff93a48c297ae7c5181c0bea825cf3f1251e8fb
[ "MIT" ]
null
null
null
src/sap/config.py
Rygor83/sap-command-line
7ff93a48c297ae7c5181c0bea825cf3f1251e8fb
[ "MIT" ]
null
null
null
# ------------------------------------------ # Copyright (c) Rygor. 2021. # ------------------------------------------ import ctypes import os import click import sap.utilities as utilities from collections import namedtuple from configparser import ConfigParser SapConfig = namedtuple('SapConfig', ['db_path', 'db...
36.848101
115
0.586396
387f88d59cab86eb538533d5207d91737dabf84f
2,002
py
Python
python/test/test_filtered_data_page_definition.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
python/test/test_filtered_data_page_definition.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
1
2021-01-20T00:20:01.000Z
2021-01-20T00:20:01.000Z
python/test/test_filtered_data_page_definition.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenLattice API OpenLattice API # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@openlattice.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import openlattice from openlat...
29.880597
109
0.58991
387f98f61d94f2e4ac5378853a599f569d2e6892
2,186
py
Python
experiments/moniqua_test.py
epfml/powergossip
087eb09f64b0980c4224f3d0d8da1276a77aa721
[ "MIT" ]
6
2020-08-04T09:24:56.000Z
2021-10-05T04:25:10.000Z
experiments/moniqua_test.py
epfml/powergossip
087eb09f64b0980c4224f3d0d8da1276a77aa721
[ "MIT" ]
null
null
null
experiments/moniqua_test.py
epfml/powergossip
087eb09f64b0980c4224f3d0d8da1276a77aa721
[ "MIT" ]
1
2021-03-03T02:49:10.000Z
2021-03-03T02:49:10.000Z
#!/usr/bin/env python3 import os from jobmonitor.api import ( kubernetes_schedule_job, kubernetes_schedule_job_queue, register_job, upload_code_package, ) from jobmonitor.connections import mongo excluded_files = [ "core", "output.tmp", ".vscode", "node_modules", "scripts", "....
23.76087
130
0.601555
387f9f9ec464c8ac9621b3097715347e4d7e0c6f
11,513
py
Python
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/filter_backends/ordering/common.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
null
null
null
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/filter_backends/ordering/common.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
7
2020-06-06T01:06:19.000Z
2022-02-10T11:15:14.000Z
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/filter_backends/ordering/common.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
1
2020-11-04T03:21:24.000Z
2020-11-04T03:21:24.000Z
""" Ordering backend. """ from six import string_types from rest_framework.filters import BaseFilterBackend from rest_framework.settings import api_settings from ...compat import coreapi from ...compat import coreschema from ...compat import nested_sort_entry __title__ = 'django_elasticsearch_dsl_drf.filter_backend...
36.318612
79
0.577
387fb231cd1e99e0f1aa67b505a4941872231184
749
py
Python
debate/api/views.py
steventimberman/debateIt
32b17552894b2c54a5f57c36257f4b6bc8846711
[ "MIT" ]
null
null
null
debate/api/views.py
steventimberman/debateIt
32b17552894b2c54a5f57c36257f4b6bc8846711
[ "MIT" ]
4
2017-08-16T03:50:16.000Z
2017-08-22T05:41:04.000Z
debate/api/views.py
steventimberman/masterDebater
32b17552894b2c54a5f57c36257f4b6bc8846711
[ "MIT" ]
1
2020-11-04T08:39:22.000Z
2020-11-04T08:39:22.000Z
from rest_framework.generics import ( ListAPIView, RetrieveAPIView, DestroyAPIView, UpdateAPIView ) from debate.models import DebateTopic from debate.api.serializers import DebateTopicSerializer class DebateTopicListAPIView(ListAPIView): queryset = DebateTopic.objects.all() serializer_class...
28.807692
56
0.798398
387fb5d31e940ecdf769683433e0ae2816742bb6
17,190
py
Python
post_processing/post_processing.py
fywalter/TorchSeg
729eb22d8c5d607466055552fd82e0819d5f29e2
[ "MIT" ]
null
null
null
post_processing/post_processing.py
fywalter/TorchSeg
729eb22d8c5d607466055552fd82e0819d5f29e2
[ "MIT" ]
null
null
null
post_processing/post_processing.py
fywalter/TorchSeg
729eb22d8c5d607466055552fd82e0819d5f29e2
[ "MIT" ]
2
2020-07-31T14:40:49.000Z
2020-07-31T17:52:30.000Z
# coding: utf-8 # In[1]: import numpy as np import pydensecrf.densecrf as dcrf import os import cv2 import random from tqdm import tqdm from utils import * # In[2]: from skimage.color import gray2rgb from skimage.color import rgb2gray import matplotlib.pyplot as plt from sklearn.metrics import f1_score, accurac...
58.074324
148
0.561198
387fd175533abc05671c4cf6e05d652e55dc3ab8
13,196
py
Python
limit_order_book/test/test_limit_order_book.py
Kautenja/lob
88416a12a0b34b026cbf1d598823fd315a1f2dbf
[ "MIT" ]
67
2020-04-09T23:36:26.000Z
2022-03-24T06:55:38.000Z
limit_order_book/test/test_limit_order_book.py
Kautenja/lob
88416a12a0b34b026cbf1d598823fd315a1f2dbf
[ "MIT" ]
1
2022-02-23T03:37:47.000Z
2022-02-23T23:48:51.000Z
limit_order_book/test/test_limit_order_book.py
Kautenja/lob
88416a12a0b34b026cbf1d598823fd315a1f2dbf
[ "MIT" ]
24
2020-01-17T13:47:49.000Z
2022-03-29T21:09:23.000Z
"""Test cases for the lob module.""" from unittest import TestCase from .. import limit_order_book class ShouldInitializeLimitOrderBook(TestCase): def test(self): book = limit_order_book.LimitOrderBook() self.assertIsInstance(book, limit_order_book.LimitOrderBook) self.assertEqual(0, book....
38.249275
68
0.64224
38801376cbf443ae08784c3ab25cb2d71ecdfbaa
36,335
py
Python
rhasspy/wake.py
underscorephil/rhasspy
df974c4faf267d637a10951845ec487e1a32525a
[ "MIT" ]
null
null
null
rhasspy/wake.py
underscorephil/rhasspy
df974c4faf267d637a10951845ec487e1a32525a
[ "MIT" ]
null
null
null
rhasspy/wake.py
underscorephil/rhasspy
df974c4faf267d637a10951845ec487e1a32525a
[ "MIT" ]
null
null
null
"""Wake word support.""" import json import os import re import shutil import struct import subprocess import threading import time from pathlib import Path from typing import Any, Dict, Iterable, List, Optional, Type from rhasspy.actor import RhasspyActor from rhasspy.audio_recorder import AudioData, StartStreaming, ...
38.247368
176
0.547461
388027f26c32150751c81ad4acf61187af122a74
15,230
py
Python
mmgen/models/gans/basic_conditional_gan.py
StevenJokess/mmgeneration
e517edd8085efa6a1e221fab74719f88c3360f0d
[ "Apache-2.0" ]
null
null
null
mmgen/models/gans/basic_conditional_gan.py
StevenJokess/mmgeneration
e517edd8085efa6a1e221fab74719f88c3360f0d
[ "Apache-2.0" ]
null
null
null
mmgen/models/gans/basic_conditional_gan.py
StevenJokess/mmgeneration
e517edd8085efa6a1e221fab74719f88c3360f0d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. from copy import deepcopy import torch import torch.nn as nn from torch.nn.parallel.distributed import _find_tensors from ..builder import MODELS, build_module from ..common import set_requires_grad from .base_gan import BaseGAN @MODELS.register_module('BasiccGAN') @M...
41.273713
79
0.598818
38802d7988880f638e3957beaa79afae47179974
14,173
py
Python
src/cyborgbackup/api/filters.py
ikkemaniac/cyborgbackup
b11139fa9632f745a3c288787c51fbf814b961fa
[ "BSD-3-Clause" ]
null
null
null
src/cyborgbackup/api/filters.py
ikkemaniac/cyborgbackup
b11139fa9632f745a3c288787c51fbf814b961fa
[ "BSD-3-Clause" ]
null
null
null
src/cyborgbackup/api/filters.py
ikkemaniac/cyborgbackup
b11139fa9632f745a3c288787c51fbf814b961fa
[ "BSD-3-Clause" ]
null
null
null
# Python import re import json import logging # Django from django.core.exceptions import FieldError, ValidationError from django.db import models from django.db.models import Q from django.db.models.fields import FieldDoesNotExist from django.db.models.fields.related import ForeignObjectRel, ManyToManyField, ForeignK...
41.80826
110
0.543216
388052b387b8d623a8e6be69167618355d897a2c
519
py
Python
examples/protocols/adherent/app/components.py
pauleveritt/viewdom_wired
40d8f2f190a12bbd07ff957654626001a9f3a778
[ "MIT" ]
null
null
null
examples/protocols/adherent/app/components.py
pauleveritt/viewdom_wired
40d8f2f190a12bbd07ff957654626001a9f3a778
[ "MIT" ]
null
null
null
examples/protocols/adherent/app/components.py
pauleveritt/viewdom_wired
40d8f2f190a12bbd07ff957654626001a9f3a778
[ "MIT" ]
null
null
null
from dataclasses import dataclass from viewdom import html from viewdom_wired import component from .decorators import adherent from .protocols import Logo, Navbar @component(for_=Logo) @adherent(Logo) @dataclass class DefaultLogo: src: str alt: str = 'Logo' def __call__(self): return html('<im...
18.535714
64
0.697495
388052f986eb928de64d7f981dd16c21d6da33c5
12,087
py
Python
ground_seg.py
shinkansan/2019-UGRP-DPoom
eedee93b47e068f22bf420140d869a43f7551876
[ "Apache-2.0" ]
33
2020-07-16T06:31:38.000Z
2022-03-23T18:34:58.000Z
ground_seg.py
shinkansan/2019-UGRP-DPoom
eedee93b47e068f22bf420140d869a43f7551876
[ "Apache-2.0" ]
5
2020-08-27T08:06:21.000Z
2022-02-23T12:34:09.000Z
ground_seg.py
shinkansan/2019-UGRP-DPoom
eedee93b47e068f22bf420140d869a43f7551876
[ "Apache-2.0" ]
10
2020-08-05T15:05:58.000Z
2021-11-19T10:20:44.000Z
###################################### #######realsense plotting############# ###################################### ''' Working with UBUNTU 16.04 LTS OPENCV 4.0~ Python 3.6 pyrealsense2 matplotlib numpy for intel D435i font ''' import pyrealsense2 as rs import numpy as np import cv2 import ma...
32.146277
149
0.654505
3880617ca31403e4812d0b05b5d9cddb41cb0874
5,005
py
Python
utils/show_results_sunrgbd.py
zaiweizhang/H3DNet
e69f2855634807b37ae12e6db5963c924e64d3e7
[ "MIT" ]
212
2020-06-11T01:03:36.000Z
2022-03-17T17:29:21.000Z
utils/show_results_sunrgbd.py
zaiweizhang/H3DNet
e69f2855634807b37ae12e6db5963c924e64d3e7
[ "MIT" ]
25
2020-06-15T13:35:13.000Z
2022-03-10T05:44:05.000Z
utils/show_results_sunrgbd.py
zaiweizhang/H3DNet
e69f2855634807b37ae12e6db5963c924e64d3e7
[ "MIT" ]
24
2020-06-11T01:17:24.000Z
2022-03-30T13:34:45.000Z
# 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. """ Batch mode in loading Scannet scenes with vertices and ground truth labels for semantic and instance segmentations Usage example: python ...
35.75
147
0.651748
3880623be240bedd4f05187d22a51bbfb3a6aebb
3,548
py
Python
test/test_pml/test_tools/test_optimize.py
ashadhaz/pml
8d9261c8885a82d795c89de23f53ff7d05ef9495
[ "MIT" ]
2
2018-03-21T16:26:16.000Z
2020-10-27T02:45:11.000Z
test/test_pml/test_tools/test_optimize.py
ashadhaz/pml
8d9261c8885a82d795c89de23f53ff7d05ef9495
[ "MIT" ]
null
null
null
test/test_pml/test_tools/test_optimize.py
ashadhaz/pml
8d9261c8885a82d795c89de23f53ff7d05ef9495
[ "MIT" ]
4
2015-02-25T16:19:05.000Z
2021-02-06T06:36:46.000Z
# Copyright (C) 2013 David Rusk # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribu...
39.865169
79
0.63416
38809922b8af785e2c8dcc9441e767d60094154c
3,033
py
Python
ryu/app/wsgi.py
rpt/ryu
ebf7638aac4481762e10ec90958f1480761a3893
[ "Apache-2.0" ]
1
2021-09-26T06:09:27.000Z
2021-09-26T06:09:27.000Z
ryu/app/wsgi.py
rpt/ryu
ebf7638aac4481762e10ec90958f1480761a3893
[ "Apache-2.0" ]
null
null
null
ryu/app/wsgi.py
rpt/ryu
ebf7638aac4481762e10ec90958f1480761a3893
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2012 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2012 Isaku Yamahata <yamahata at private email ne jp> # # 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 # # h...
29.446602
78
0.649192
388099e733fbda0da84757e572466d6529acc35a
4,293
py
Python
api/tokens.py
ypshukla/airnotifier
b9096d83bcc4d2661cef59afff97929c2f378f11
[ "BSD-3-Clause" ]
null
null
null
api/tokens.py
ypshukla/airnotifier
b9096d83bcc4d2661cef59afff97929c2f378f11
[ "BSD-3-Clause" ]
null
null
null
api/tokens.py
ypshukla/airnotifier
b9096d83bcc4d2661cef59afff97929c2f378f11
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2012, Dongsheng Cai # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # notice, this ...
42.93
96
0.658281
3880aa3295959945f975151e23e351c1215bca45
5,729
py
Python
parlai/tasks/narrative_qa/build.py
hengyicai/Adaptive_Multi-curricula_Learning_for_Dialog
e2d2c613ac4075ce023d6b4acb0a5eddac4e7837
[ "MIT" ]
17
2020-03-27T17:25:52.000Z
2021-11-19T03:46:25.000Z
parlai/tasks/narrative_qa/build.py
urantialife/ParlAI
9b6640d50d907e9fa5352f5c4c2290d436110854
[ "MIT" ]
3
2020-11-01T10:12:52.000Z
2021-12-10T09:06:44.000Z
parlai/tasks/narrative_qa/build.py
urantialife/ParlAI
9b6640d50d907e9fa5352f5c4c2290d436110854
[ "MIT" ]
3
2020-05-04T04:37:42.000Z
2021-07-19T11:09:37.000Z
#!/usr/bin/env python3 # 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 parlai.core.build_data as build_data import os import subprocess import shutil import csv import time NARRATIV...
31.13587
88
0.612323
3880c636d229fa6be57b5d42903a7118bed47cc2
15,944
py
Python
trax/layers/research/position_encodings.py
yakovkeselman/trax
615432bbc58ffb5bdf83a771e8f8b470995456db
[ "Apache-2.0" ]
null
null
null
trax/layers/research/position_encodings.py
yakovkeselman/trax
615432bbc58ffb5bdf83a771e8f8b470995456db
[ "Apache-2.0" ]
null
null
null
trax/layers/research/position_encodings.py
yakovkeselman/trax
615432bbc58ffb5bdf83a771e8f8b470995456db
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
36.072398
100
0.654541
3880d2bfa17e98e55faf4f5e170a9cc145f6a5de
1,908
py
Python
test/test_core/test_fs_path.py
etcher-be/esst
ac41cd0c07af8ca8532997f533756c529c9609a4
[ "MIT" ]
4
2018-06-24T14:03:44.000Z
2019-01-21T01:20:02.000Z
test/test_core/test_fs_path.py
etcher-be/esst
ac41cd0c07af8ca8532997f533756c529c9609a4
[ "MIT" ]
106
2018-06-24T13:59:52.000Z
2019-11-26T09:05:14.000Z
test/test_core/test_fs_path.py
theendsofinvention/esst
ac41cd0c07af8ca8532997f533756c529c9609a4
[ "MIT" ]
null
null
null
# coding=utf-8 """ Tests for esst.core.FS """ from pathlib import Path import pytest from esst import FS @pytest.fixture(autouse=True) def _setup(): FS.saved_games_path = './Saved Games' FS.dcs_path = './DCS' Path('./Saved Games').mkdir() Path('./Saved Games/DCS').mkdir() Path('./DCS').mkdir() ...
25.44
64
0.68501
3880da9ca79c6dd10ad193deba60a47dd581d914
6,234
py
Python
larch/math/__init__.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/math/__init__.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/math/__init__.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
__DOC__ = """Mathematical functions for Larch""" from .utils import (linregress, polyfit, realimag, as_ndarray, complex_phase, deriv, interp, interp1d, remove_dups, remove_nans2, index_of, index_nearest, savitzky_golay, smooth, boxcar) from .lineshapes impor...
66.319149
101
0.48428
3880df18ae10e7387ea6b9091e450c91213bea8f
148
py
Python
0x05-python-exceptions/6-raise_exception_msg.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x05-python-exceptions/6-raise_exception_msg.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x05-python-exceptions/6-raise_exception_msg.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ 6. Raise a message """ def raise_exception_msg(message=""): """ raise_exception_msg """ raise NameError(message)
14.8
36
0.648649
3881006a852d3e3b19303025f19d589675250efd
701
py
Python
services/traction/acapy_wrapper/models/clear_pending_revocations_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_wrapper/models/clear_pending_revocations_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_wrapper/models/clear_pending_revocations_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
# coding: utf-8 from __future__ import annotations from datetime import date, datetime # noqa: F401 import re # noqa: F401 from typing import Any, Dict, List, Optional # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401 class ClearPendingRevocationsRequest(BaseModel): """N...
26.961538
96
0.74893
38810946a436574f5745b517557da95bead68bb6
2,010
py
Python
Q/questionnaire/tests/tests_functional/test_functional_index.py
ES-DOC/esdoc-questionnaire
9301eda375c4046323265b37ba96d94c94bf8b11
[ "MIT" ]
null
null
null
Q/questionnaire/tests/tests_functional/test_functional_index.py
ES-DOC/esdoc-questionnaire
9301eda375c4046323265b37ba96d94c94bf8b11
[ "MIT" ]
477
2015-01-07T18:22:27.000Z
2017-07-17T15:05:48.000Z
Q/questionnaire/tests/tests_functional/test_functional_index.py
ES-DOC/esdoc-questionnaire
9301eda375c4046323265b37ba96d94c94bf8b11
[ "MIT" ]
null
null
null
#################### # ES-DOC CIM Questionnaire # Copyright (c) 2016 ES-DOC. All rights reserved. # # University of Colorado, Boulder # http://cires.colorado.edu/ # # This project is distributed according to the terms of the MIT license [http://www.opensource.org/licenses/MIT]. #################### __author_...
32.419355
115
0.675124
3881297ad1f5b4afc6d870812dc24220646ee984
15,262
py
Python
aws_inventory.py
FredHutch/aws-inventory
b76dbc537e98704762bef98e12f42667de74d06c
[ "Apache-2.0" ]
null
null
null
aws_inventory.py
FredHutch/aws-inventory
b76dbc537e98704762bef98e12f42667de74d06c
[ "Apache-2.0" ]
null
null
null
aws_inventory.py
FredHutch/aws-inventory
b76dbc537e98704762bef98e12f42667de74d06c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import argparse import logging import os.path import re import string import botocore from opinel.utils.console import configPrintException from opinel.utils.credentials import get_profiles_from_aws_credentials_file, aws_config_file import aws_inventory.config import aws_inventory.b...
42.160221
171
0.610864
388155d8d6f884dd371e107c8ce9058c544a6d75
20,770
py
Python
toontown/minigame/DistributedMinigameAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2022-01-06T23:51:18.000Z
2022-01-06T23:51:18.000Z
toontown/minigame/DistributedMinigameAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/minigame/DistributedMinigameAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from otp.ai.AIBase import * from direct.distributed.ClockDelta import * from toontown.ai.ToonBarrier import * from direct.distributed import DistributedObjectAI from direct.fsm import ClassicFSM, State from direct.fsm import State from toontown.shtiker import PurchaseManagerAI from toontown.shtiker import NewbiePurchas...
41.790744
203
0.662542
388156c79637733396e94c31c7c642f672627ba9
10,143
py
Python
cmsplus/plugin_base.py
domlysi/djangocms_plus
4779a17935827aa9fb6608bf53f56c10b8cd938a
[ "MIT" ]
null
null
null
cmsplus/plugin_base.py
domlysi/djangocms_plus
4779a17935827aa9fb6608bf53f56c10b8cd938a
[ "MIT" ]
null
null
null
cmsplus/plugin_base.py
domlysi/djangocms_plus
4779a17935827aa9fb6608bf53f56c10b8cd938a
[ "MIT" ]
null
null
null
import logging from cms.plugin_base import CMSPluginBase from django.utils.safestring import mark_safe from filer.models.filemodels import File as FilerFileModel from cmsplus.app_settings import cmsplus_settings as cps from cmsplus.forms import PlusPluginFormBase from cmsplus.models import PlusPlugin logger = loggin...
34.036913
118
0.578527
388159c8b04934970084ff747015838c3e6c4128
3,602
py
Python
intersight/models/iam_end_point_user_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_end_point_user_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_end_point_user_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class IamEndPointUserRef(object): """ NOTE: This cl...
24.013333
77
0.540533
3881757494c81e1741444f4c51803092cd4b3afe
604
py
Python
modelscript/megamodels/megamodels/_registries/issues.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
1
2019-02-22T14:27:06.000Z
2019-02-22T14:27:06.000Z
modelscript/megamodels/megamodels/_registries/issues.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
4
2015-12-18T10:30:02.000Z
2015-12-18T10:36:28.000Z
modelscript/megamodels/megamodels/_registries/issues.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
null
null
null
# coding=utf-8 """issue box registry. This module provides a unique mixin _IssueBoxRegistry to be included in the Megamodel class. """ __all__=( '_IssueBoxRegistry' ) class _IssueBoxRegistry(object): """Part of the megamodel dealing with issueBoxes """ _issueBoxes = [] @classmethod def registerI...
20.827586
59
0.655629
3881b007c89137d750c907d6e928a964b9e6b1c4
18,664
py
Python
mutagen/m4a.py
RossLote/cloudplayer
aec24b6ea2fdae365e62c9dfc7f366ef9cc84d73
[ "MIT" ]
null
null
null
mutagen/m4a.py
RossLote/cloudplayer
aec24b6ea2fdae365e62c9dfc7f366ef9cc84d73
[ "MIT" ]
null
null
null
mutagen/m4a.py
RossLote/cloudplayer
aec24b6ea2fdae365e62c9dfc7f366ef9cc84d73
[ "MIT" ]
null
null
null
# Copyright 2006 Joe Wreschnig # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. import sys if sys.version_info[0] != 2: raise ImportError("No longer available with Python 3, use...
33.934545
78
0.585619
3881c0d190f9f5dbe2a0083a1f1110fb2a0b5945
11,357
py
Python
lisa/tests/staging/sched_android.py
keroles/lisa
9a0fc0421b8ce919f4a6203ca88b246131e8d22e
[ "Apache-2.0" ]
1
2020-11-30T16:14:02.000Z
2020-11-30T16:14:02.000Z
lisa/tests/staging/sched_android.py
keroles/lisa
9a0fc0421b8ce919f4a6203ca88b246131e8d22e
[ "Apache-2.0" ]
null
null
null
lisa/tests/staging/sched_android.py
keroles/lisa
9a0fc0421b8ce919f4a6203ca88b246131e8d22e
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2019, Arm Limited and contributors. # # 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 # # ...
37.114379
130
0.657216
38820be30b1cafdcd4007b9a186ac98e224e5f38
145
py
Python
dsd/__init__.py
dsd-test-nupack-in-github-workflow/dsd
55b006323550eb32398b050ca1a3e71a26719709
[ "MIT" ]
null
null
null
dsd/__init__.py
dsd-test-nupack-in-github-workflow/dsd
55b006323550eb32398b050ca1a3e71a26719709
[ "MIT" ]
null
null
null
dsd/__init__.py
dsd-test-nupack-in-github-workflow/dsd
55b006323550eb32398b050ca1a3e71a26719709
[ "MIT" ]
null
null
null
import dsd.constraints import dsd.vienna_nupack import dsd.np import dsd.stopwatch import dsd.modifications from dsd.constraints import logger
16.111111
34
0.848276
3882270b1f4d92487ac8ff956784cd9c20594a60
975
py
Python
python/test/test_service_collection.py
alextselegidis/easyappointments-sdk
8ba969dc1221ea614b70d4d52313f20fc85df1e1
[ "CC-BY-3.0" ]
null
null
null
python/test/test_service_collection.py
alextselegidis/easyappointments-sdk
8ba969dc1221ea614b70d4d52313f20fc85df1e1
[ "CC-BY-3.0" ]
null
null
null
python/test/test_service_collection.py
alextselegidis/easyappointments-sdk
8ba969dc1221ea614b70d4d52313f20fc85df1e1
[ "CC-BY-3.0" ]
null
null
null
# coding: utf-8 """ Easy!Appointments API These are the OpenAPI specs that describe the REST API of Easy!Appointments. # noqa: E501 OpenAPI spec version: 1.0.0 Contact: info@easyappointments.org Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute...
24.375
94
0.721026
38823b478ba5b83c816c1ff8f300f0b76e01f1d9
958
py
Python
dectools/test/test_call_if2.py
merriam/dectools
ad8b507abe0f9f7c9fe81f0307622c79db76db23
[ "MIT" ]
2
2016-07-31T01:10:14.000Z
2016-09-29T15:13:53.000Z
dectools/test/test_call_if2.py
merriam/dectools
ad8b507abe0f9f7c9fe81f0307622c79db76db23
[ "MIT" ]
null
null
null
dectools/test/test_call_if2.py
merriam/dectools
ad8b507abe0f9f7c9fe81f0307622c79db76db23
[ "MIT" ]
null
null
null
import dectools.dectools as dectools from print_buffer import print_buffer p = print_buffer() prnt = p.rint printed = p.rinted prnt("Testing call_if") def yes(function, args, kwargs): return True def no(function, args, kwargs): return False @dectools.call_if(yes) def yes_sir(): prnt("Sir! Yes, Sir!") ...
19.16
64
0.688935