hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f75bbf6a55ff29e7a5c3ea5e635c10e919ac93ab
562
py
Python
ddf_library/functions/geo.py
eubr-bigsea/Compss-Python
09ab7c474c8badc9932de3e1148f62ffba16b0b2
[ "Apache-2.0" ]
3
2017-08-22T11:32:02.000Z
2021-08-09T09:35:51.000Z
ddf_library/functions/geo.py
eubr-bigsea/Compss-Python
09ab7c474c8badc9932de3e1148f62ffba16b0b2
[ "Apache-2.0" ]
null
null
null
ddf_library/functions/geo.py
eubr-bigsea/Compss-Python
09ab7c474c8badc9932de3e1148f62ffba16b0b2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Lucas Miguel S Ponce" __email__ = "lucasmsp@gmail.com" from .geo_lib.geo_within import geo_within_stage_1, geo_within_stage_2 from .geo_lib.read_shapefile import read_shapefile_stage_1, \ read_shapefile_stage_2, read_shapefile_all from .geo_lib.geo_oper...
33.058824
70
0.768683
__author__ = "Lucas Miguel S Ponce" __email__ = "lucasmsp@gmail.com" from .geo_lib.geo_within import geo_within_stage_1, geo_within_stage_2 from .geo_lib.read_shapefile import read_shapefile_stage_1, \ read_shapefile_stage_2, read_shapefile_all from .geo_lib.geo_operations import crst_transform __all__ = ['read...
true
true
f75bc007468cbe6a2d221bbf3b688ffac9b0e929
10,110
py
Python
contrib/spendfrom/spendfrom.py
EazyPayCoin/EazyPayCoin
eb508d3a05042ac12eb570a305099c512e85a636
[ "MIT" ]
null
null
null
contrib/spendfrom/spendfrom.py
EazyPayCoin/EazyPayCoin
eb508d3a05042ac12eb570a305099c512e85a636
[ "MIT" ]
null
null
null
contrib/spendfrom/spendfrom.py
EazyPayCoin/EazyPayCoin
eb508d3a05042ac12eb570a305099c512e85a636
[ "MIT" ]
2
2019-11-13T01:20:09.000Z
2019-11-13T15:39:50.000Z
#!/usr/bin/env python # # Use the raw transactions API to spend EZPAYs received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a eazypayzad or eaz...
37.723881
111
0.635312
from decimal import * import getpass import math import os import os.path import platform import sys import time from jsonrpc import ServiceProxy, json BASE_FEE=Decimal("0.001") def check_json_precision(): n = Decimal("20000000.00000003") satoshis = int(json.loads(json.dumps(float(n)))*1.0e8) if satoshis...
true
true
f75bc040265a0d4b70a2156eb6882fe86aadf632
5,404
py
Python
src/zenml/integrations/aws/secrets_managers/aws_secrets_manager.py
dumpmemory/zenml
ec3f6994ae9666493519d600471c035eb9109ac4
[ "Apache-2.0" ]
null
null
null
src/zenml/integrations/aws/secrets_managers/aws_secrets_manager.py
dumpmemory/zenml
ec3f6994ae9666493519d600471c035eb9109ac4
[ "Apache-2.0" ]
null
null
null
src/zenml/integrations/aws/secrets_managers/aws_secrets_manager.py
dumpmemory/zenml
ec3f6994ae9666493519d600471c035eb9109ac4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) ZenML GmbH 2022. 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: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
35.090909
80
0.685788
import json from typing import Any, ClassVar, Dict, List import boto3 from zenml.integrations.aws import AWS_SECRET_MANAGER_FLAVOR from zenml.logger import get_logger from zenml.secret.base_secret import BaseSecretSchema from zenml.secret.secret_schema_class_registry import SecretSchemaClassRegistry from zenml.secret...
true
true
f75bc09fdeafe072849de48b12f8a6bf10ab0bfd
19,432
py
Python
scqubits/core/zeropi.py
jkochNU/scqubits
9a405759665b96284e9a449188935cd06b42d580
[ "BSD-3-Clause" ]
4
2019-12-21T12:13:12.000Z
2022-03-21T03:48:24.000Z
scqubits/core/zeropi.py
jkochNU/scqubits
9a405759665b96284e9a449188935cd06b42d580
[ "BSD-3-Clause" ]
null
null
null
scqubits/core/zeropi.py
jkochNU/scqubits
9a405759665b96284e9a449188935cd06b42d580
[ "BSD-3-Clause" ]
null
null
null
# zeropi.py # # This file is part of scqubits. # # Copyright (c) 2019, Jens Koch and Peter Groszkowski # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. ##################################################...
38.176817
120
0.604364
import numpy as np from scipy import sparse import scqubits.core.constants as constants import scqubits.utils.plotting as plot from scqubits.core.discretization import Grid1d, GridSpec from scqubits.core.qubit_base import QubitBaseClass from scqubits.core.storage import WaveFunctionOnGrid from scqubits.utils.misc imp...
true
true
f75bc1144e881f8ac733562031f777fb2a9f845f
2,630
py
Python
examples/miscellaneous/plot_isotonic_regression.py
MarcinKonowalczyk/scikit-learn
8b18d4cbfc3a10ce85decec292d30470c69f40d7
[ "BSD-3-Clause" ]
2
2020-11-07T02:13:22.000Z
2022-01-18T14:42:59.000Z
examples/miscellaneous/plot_isotonic_regression.py
MarcinKonowalczyk/scikit-learn
8b18d4cbfc3a10ce85decec292d30470c69f40d7
[ "BSD-3-Clause" ]
1
2022-01-12T13:11:21.000Z
2022-01-12T13:11:21.000Z
examples/miscellaneous/plot_isotonic_regression.py
MarcinKonowalczyk/scikit-learn
8b18d4cbfc3a10ce85decec292d30470c69f40d7
[ "BSD-3-Clause" ]
1
2021-11-03T09:49:02.000Z
2021-11-03T09:49:02.000Z
""" =================== Isotonic Regression =================== An illustration of the isotonic regression on generated data (non-linear monotonic trend with homoscedastic uniform noise). The isotonic regression algorithm finds a non-decreasing approximation of a function while minimizing the mean squared error on th...
33.717949
79
0.741445
print(__doc__) import numpy as np import matplotlib.pyplot as plt from matplotlib.collections import LineCollection from sklearn.linear_model import LinearRegression from sklearn.isotonic import IsotonicRegression from sklearn.utils import check_random_state n = 100 x = np.arange(n) rs = check_random_state(0) y = r...
true
true
f75bc2a7b27db193ac7a70fb2d0b3b9bdb05af96
10,055
py
Python
schemas/polyaxon_schemas/lifecycle.py
polyaxon/schemas
e0742a80a0e6c5d1439d15ceb03de1e149331594
[ "Apache-2.0" ]
7
2017-09-24T15:34:17.000Z
2020-02-14T19:54:08.000Z
schemas/polyaxon_schemas/lifecycle.py
polyaxon/schemas
e0742a80a0e6c5d1439d15ceb03de1e149331594
[ "Apache-2.0" ]
53
2017-10-16T14:43:15.000Z
2020-07-01T18:11:11.000Z
schemas/polyaxon_schemas/lifecycle.py
polyaxon/schemas
e0742a80a0e6c5d1439d15ceb03de1e149331594
[ "Apache-2.0" ]
15
2017-10-03T22:03:38.000Z
2021-12-03T07:11:45.000Z
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 ...
30.469697
98
0.644058
import polyaxon_sdk from polyaxon_schemas.utils.date_utils import parse_datetime from polyaxon_schemas.utils.tz_utils import now class V1Stages(polyaxon_sdk.V1Stages): pass class V1Statuses(polyaxon_sdk.V1Statuses): allowable_hook_values = [ polyaxon_sdk.V1Statuses.FAILED, polyaxon_sdk.V1...
true
true
f75bc2de08eab69d4d4fbe50bd427147a6a74f07
1,432
py
Python
rlpyt/ul/experiments/behavior_cloning/scripts/train_bc/train_vel_regressor.py
Slienteagle-wyb/rlpyt
fee14b1c28481f6751a7a1a6ce9b8cbac1e001f0
[ "MIT" ]
null
null
null
rlpyt/ul/experiments/behavior_cloning/scripts/train_bc/train_vel_regressor.py
Slienteagle-wyb/rlpyt
fee14b1c28481f6751a7a1a6ce9b8cbac1e001f0
[ "MIT" ]
null
null
null
rlpyt/ul/experiments/behavior_cloning/scripts/train_bc/train_vel_regressor.py
Slienteagle-wyb/rlpyt
fee14b1c28481f6751a7a1a6ce9b8cbac1e001f0
[ "MIT" ]
null
null
null
import sys import pprint from rlpyt.utils.launching.affinity import affinity_from_code from rlpyt.ul.algos.downstreams.bc_vel_regressor import VelRegressBc from rlpyt.ul.runners.behavior_cloning import BehaviorCloning from rlpyt.utils.logging.context import logger_context from rlpyt.utils.launching.variant import load_...
31.822222
97
0.708101
import sys import pprint from rlpyt.utils.launching.affinity import affinity_from_code from rlpyt.ul.algos.downstreams.bc_vel_regressor import VelRegressBc from rlpyt.ul.runners.behavior_cloning import BehaviorCloning from rlpyt.utils.logging.context import logger_context from rlpyt.utils.launching.variant import load_...
true
true
f75bc361048f2e529af9862b665d975da3479583
13,051
py
Python
addition_module/DSDG/DUM/utils.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1
2022-02-07T02:03:37.000Z
2022-02-07T02:03:37.000Z
addition_module/DSDG/DUM/utils.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
null
null
null
addition_module/DSDG/DUM/utils.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import torch import shutil import torchvision.transforms as transforms from torch.autograd import Variable import sklearn from sklearn import metrics from sklearn.metrics import roc_curve, auc import pdb class AvgrageMeter(object): def __init__(self): self.reset() def re...
30.210648
130
0.60754
import os import numpy as np import torch import shutil import torchvision.transforms as transforms from torch.autograd import Variable import sklearn from sklearn import metrics from sklearn.metrics import roc_curve, auc import pdb class AvgrageMeter(object): def __init__(self): self.reset() def re...
true
true
f75bc4b6c29e89434d41a13849b49c9a7e058d1b
13,987
py
Python
lib/configuration/update/__init__.py
efeslab/bugbase
e9f914fb6c4eb1bc97f7dfc665e8dd6c7e7ad068
[ "BSD-3-Clause" ]
6
2016-07-13T09:52:20.000Z
2019-04-27T13:52:04.000Z
lib/configuration/update/__init__.py
efeslab/bugbase
e9f914fb6c4eb1bc97f7dfc665e8dd6c7e7ad068
[ "BSD-3-Clause" ]
null
null
null
lib/configuration/update/__init__.py
efeslab/bugbase
e9f914fb6c4eb1bc97f7dfc665e8dd6c7e7ad068
[ "BSD-3-Clause" ]
9
2016-01-16T19:45:40.000Z
2021-03-20T08:55:02.000Z
#!/usr/bin/env python # coding=utf-8 """ Handles configuration updates for Bugbase """ from configparser import ExtendedInterpolation import io import logging import os from lib import constants from lib.helper import Git from lib.configuration.update.formatters import format_list_numbered, format_closed_question fr...
37.700809
119
0.660041
from configparser import ExtendedInterpolation import io import logging import os from lib import constants from lib.helper import Git from lib.configuration.update.formatters import format_list_numbered, format_closed_question from lib.configuration.update.validators import validate_multiple_choice, validate_closed...
true
true
f75bc4c56effb638357ddfb7ffe863d7ecadb860
1,443
py
Python
integration/helpers/template.py
hawflau/serverless-application-model
d2cf4b7e23d26cdf677c564d53bb58e6a5b6cac2
[ "Apache-2.0" ]
1,279
2020-08-25T03:33:15.000Z
2022-03-31T09:49:22.000Z
integration/helpers/template.py
hawflau/serverless-application-model
d2cf4b7e23d26cdf677c564d53bb58e6a5b6cac2
[ "Apache-2.0" ]
797
2020-08-24T23:30:05.000Z
2022-03-31T22:28:29.000Z
integration/helpers/template.py
hawflau/serverless-application-model
d2cf4b7e23d26cdf677c564d53bb58e6a5b6cac2
[ "Apache-2.0" ]
431
2020-08-27T20:47:26.000Z
2022-03-31T23:57:55.000Z
import json import logging from functools import reduce import boto3 from samtranslator.model.exceptions import InvalidDocumentException from samtranslator.translator.managed_policy_translator import ManagedPolicyLoader from samtranslator.translator.transform import transform from samtranslator.yaml_helper import yam...
33.55814
105
0.735967
import json import logging from functools import reduce import boto3 from samtranslator.model.exceptions import InvalidDocumentException from samtranslator.translator.managed_policy_translator import ManagedPolicyLoader from samtranslator.translator.transform import transform from samtranslator.yaml_helper import yam...
true
true
f75bc6adaaf30157c69dddd3789eeb9e0c1caee7
416
py
Python
src/networks.py
argentumproject/electrum-server-arg
66a0980b19a9f7dc818f2924948f9534a7dbb632
[ "MIT" ]
2
2016-12-31T16:28:23.000Z
2018-05-27T08:08:58.000Z
src/networks.py
argentumproject/electrum-server-arg
66a0980b19a9f7dc818f2924948f9534a7dbb632
[ "MIT" ]
null
null
null
src/networks.py
argentumproject/electrum-server-arg
66a0980b19a9f7dc818f2924948f9534a7dbb632
[ "MIT" ]
null
null
null
# Main network and testnet3 definitions params = { 'argentum_main': { 'pubkey_address': 23, 'script_address': 5, 'genesis_hash': '88c667bc63167685e4e4da058fffdfe8e007e5abffd6855de52ad59df7bb0bb2' }, 'argentum_test': { 'pubkey_address': 111, 'script_address': 196, ...
27.733333
90
0.677885
params = { 'argentum_main': { 'pubkey_address': 23, 'script_address': 5, 'genesis_hash': '88c667bc63167685e4e4da058fffdfe8e007e5abffd6855de52ad59df7bb0bb2' }, 'argentum_test': { 'pubkey_address': 111, 'script_address': 196, 'genesis_hash': 'f5ae71e26c74beacc8...
true
true
f75bc71009af2c7fc046e907275694108517b2f5
1,808
py
Python
esphome/components/gpio/switch/__init__.py
huhuhugo1/esphome
eb895d2095861a4d51f1a5fcd582a97389c27b4f
[ "MIT" ]
null
null
null
esphome/components/gpio/switch/__init__.py
huhuhugo1/esphome
eb895d2095861a4d51f1a5fcd582a97389c27b4f
[ "MIT" ]
null
null
null
esphome/components/gpio/switch/__init__.py
huhuhugo1/esphome
eb895d2095861a4d51f1a5fcd582a97389c27b4f
[ "MIT" ]
null
null
null
import esphome.codegen as cg import esphome.config_validation as cv from esphome import pins from esphome.components import switch from esphome.const import CONF_ID, CONF_INTERLOCK, CONF_PIN, CONF_RESTORE_MODE from .. import gpio_ns GPIOSwitch = gpio_ns.class_('GPIOSwitch', switch.Switch, cg.Component) GPIOSwitchResto...
39.304348
95
0.767699
import esphome.codegen as cg import esphome.config_validation as cv from esphome import pins from esphome.components import switch from esphome.const import CONF_ID, CONF_INTERLOCK, CONF_PIN, CONF_RESTORE_MODE from .. import gpio_ns GPIOSwitch = gpio_ns.class_('GPIOSwitch', switch.Switch, cg.Component) GPIOSwitchResto...
true
true
f75bc7f00a0aad661d127e11046c8427379dafb6
3,482
py
Python
setup.py
iocco/python-tbk
a08b8729dc4f521da26a542d065666d2e97edaaa
[ "MIT" ]
null
null
null
setup.py
iocco/python-tbk
a08b8729dc4f521da26a542d065666d2e97edaaa
[ "MIT" ]
null
null
null
setup.py
iocco/python-tbk
a08b8729dc4f521da26a542d065666d2e97edaaa
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine import io import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command # Package meta-data. NAME = 'p...
26.180451
81
0.631821
from __future__ import unicode_literals import io import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command NAME = 'python-tbk' MODULE_NAME = 'tbk' DESCRIPTION = 'Unofficial TBK Web Services Python SDK.' URL = 'https://github.com/cornershop/python-tbk' EMAIL = 'tech@corners...
true
true
f75bc82bf2302397c894cceeb4686f92b7eba5e8
6,552
py
Python
ydb/public/api/grpc/ydb_scripting_v1_pb2_grpc.py
gridnevvvit/ydb-python-sdk
952f7b4f179595b07711934691d2e15643929cc5
[ "Apache-2.0" ]
2
2022-02-18T16:18:52.000Z
2022-02-19T20:15:05.000Z
ydb/public/api/grpc/ydb_scripting_v1_pb2_grpc.py
gridnevvvit/ydb-python-sdk
952f7b4f179595b07711934691d2e15643929cc5
[ "Apache-2.0" ]
1
2022-02-09T12:49:19.000Z
2022-02-21T08:15:36.000Z
ydb/public/api/grpc/ydb_scripting_v1_pb2_grpc.py
gridnevvvit/ydb-python-sdk
952f7b4f179595b07711934691d2e15643929cc5
[ "Apache-2.0" ]
2
2022-02-03T14:58:56.000Z
2022-02-22T19:42:59.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from ydb.public.api.protos import ydb_scripting_pb2 as ydb_dot_public_dot_api_dot_protos_dot_ydb__scripting__pb2 class ScriptingServiceStub(object): """Mis...
48.895522
142
0.710775
import grpc from ydb.public.api.protos import ydb_scripting_pb2 as ydb_dot_public_dot_api_dot_protos_dot_ydb__scripting__pb2 class ScriptingServiceStub(object): def __init__(self, channel): self.ExecuteYql = channel.unary_unary( '/Ydb.Scripting.V1.ScriptingService/ExecuteYql', ...
true
true
f75bc89398aaa1b3097c60617eed01dd0b4cbb19
5,944
py
Python
demo-django/ENV/lib/python2.7/site-packages/onelogin/api/models/user.py
poupyi/python-saml
f5756e297e0066479ced20176cfcd825d9a82307
[ "MIT" ]
null
null
null
demo-django/ENV/lib/python2.7/site-packages/onelogin/api/models/user.py
poupyi/python-saml
f5756e297e0066479ced20176cfcd825d9a82307
[ "MIT" ]
null
null
null
demo-django/ENV/lib/python2.7/site-packages/onelogin/api/models/user.py
poupyi/python-saml
f5756e297e0066479ced20176cfcd825d9a82307
[ "MIT" ]
null
null
null
#!/usr/bin/python from dateutil import parser class User(object): STATE_UNAPPROVED = 0 STATE_APPROVED = 1 STATE_REJECTED = 2 STATE_UNLICENSED = 3 STATUS_UNACTIVATED = 0 STATUS_ACTIVE = 1 STATUS_SUSPENDED = 2 STATUS_LOCKED = 3 STATUS_PASSWORD_EXPIRED = 4 STATUS_AWAITING_PASSW...
39.105263
120
0.653937
from dateutil import parser class User(object): STATE_UNAPPROVED = 0 STATE_APPROVED = 1 STATE_REJECTED = 2 STATE_UNLICENSED = 3 STATUS_UNACTIVATED = 0 STATUS_ACTIVE = 1 STATUS_SUSPENDED = 2 STATUS_LOCKED = 3 STATUS_PASSWORD_EXPIRED = 4 STATUS_AWAITING_PASSWORD_RESET = 5 ...
true
true
f75bc8c2bb5e389a6bf00ba375f416e672eeba10
2,759
py
Python
Python/pywarpx/timestepper.py
Yin-YinjianZhao/WarpX
a194b909f73c44703b013b39dbcead0f278a8ba6
[ "BSD-3-Clause-LBNL" ]
null
null
null
Python/pywarpx/timestepper.py
Yin-YinjianZhao/WarpX
a194b909f73c44703b013b39dbcead0f278a8ba6
[ "BSD-3-Clause-LBNL" ]
null
null
null
Python/pywarpx/timestepper.py
Yin-YinjianZhao/WarpX
a194b909f73c44703b013b39dbcead0f278a8ba6
[ "BSD-3-Clause-LBNL" ]
null
null
null
# Copyright 2017-2021 Andrew Myers, David Grote, Weiqun Zhang # # # This file is part of WarpX. # # License: BSD-3-Clause-LBNL # This is intended to be a Python level example of how one might write a customized # time stepping loop. This would replace the functionality of the WarpX::Evolve routine. # Wrappers are avai...
33.240964
90
0.662921
from . import libwarpx from . import callbacks class TimeStepper(object): def step(self, nsteps=1): for i in range(nsteps): self.onestep() def onestep(self): callbacks._beforestep() self.cur_time = libwarpx.libwarpx_so.warpx_gett_new(0) self.istep = libwarpx.l...
true
true
f75bc8d95ca405660aa431f88598fa050d241b47
59,119
py
Python
back/infolica/models/models.py
maltaesousa/infolica
9b510b706daba8f8a04434d281c1f8730651f25f
[ "MIT" ]
null
null
null
back/infolica/models/models.py
maltaesousa/infolica
9b510b706daba8f8a04434d281c1f8730651f25f
[ "MIT" ]
null
null
null
back/infolica/models/models.py
maltaesousa/infolica
9b510b706daba8f8a04434d281c1f8730651f25f
[ "MIT" ]
null
null
null
from sqlalchemy import ( Column, Integer, BigInteger, Float, Text, String, Date, DateTime, Boolean, ARRAY, ForeignKey, UniqueConstraint, Table ) from sqlalchemy.orm import relationship from geoalchemy2 import Geometry import datetime from .constant import Constant ...
42.96439
238
0.71872
from sqlalchemy import ( Column, Integer, BigInteger, Float, Text, String, Date, DateTime, Boolean, ARRAY, ForeignKey, UniqueConstraint, Table ) from sqlalchemy.orm import relationship from geoalchemy2 import Geometry import datetime from .constant import Constant ...
true
true
f75bc8f6ef87b35b3f6a399651a99f09d8c2b53a
36,071
py
Python
cqlmapper/models.py
reddit/cqlmapper
c5cfce4bc1fcda1562780133b4ff9407e071b0f8
[ "Apache-2.0" ]
11
2017-09-02T07:37:25.000Z
2021-04-19T03:30:59.000Z
cqlmapper/models.py
Seanpm2001-reddit/cqlmapper
c5cfce4bc1fcda1562780133b4ff9407e071b0f8
[ "Apache-2.0" ]
5
2018-02-15T06:40:16.000Z
2021-12-13T20:05:16.000Z
cqlmapper/models.py
Seanpm2001-reddit/cqlmapper
c5cfce4bc1fcda1562780133b4ff9407e071b0f8
[ "Apache-2.0" ]
15
2017-05-10T20:51:27.000Z
2021-04-19T03:31:10.000Z
# Modifications Copyright 2016-2017 Reddit, Inc. # # Copyright 2013-2016 DataStax, 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 # # Unle...
33.711215
97
0.60392
import logging import re from warnings import warn import six from cassandra.concurrent import execute_concurrent_with_args from cassandra.metadata import protect_name from cassandra.util import OrderedDict from cqlmapper import columns from cqlmapper import CQLEngineException from cqlmapper import query from cqlma...
true
true
f75bc9656041281005d2405f217d2685c7e74f87
21,738
py
Python
chapter_2_collection/diarize.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
1
2020-03-05T01:19:17.000Z
2020-03-05T01:19:17.000Z
chapter_2_collection/diarize.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
chapter_2_collection/diarize.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
''' ================================================ ## VOICEBOOK REPOSITORY ## ================================================ repository name: voicebook repository version: 1.0 repository link: https://github.com/jim-schwoebel/voicebook author: Jim Schwoebel author contact: js@neur...
42.960474
143
0.457172
import os, json, importlib, scipy, shutil, ffmpy, time, sys, getpass, zipfile import speech_recognition as sr_audio from pydub import AudioSegment import numpy as np if 'pyAudioAnalysis3' not in os.listdir(): os.system("git clone git@github.com:NeuroLexDiagnostics/pyAudioAnalysis3.git") sys.path.append(os.g...
true
true
f75bcaa34d2ce9adcb069b9fd9f60e1ff0644303
52,690
py
Python
swagger_client/api/categories_api.py
chbndrhnns/finapi-client
259beda8b05e912c49d2dc4c3ed71205134e5d8a
[ "MIT" ]
2
2019-04-15T05:58:21.000Z
2021-11-15T18:26:37.000Z
swagger_client/api/categories_api.py
chbndrhnns/finapi-client
259beda8b05e912c49d2dc4c3ed71205134e5d8a
[ "MIT" ]
1
2021-06-18T09:46:25.000Z
2021-06-18T20:12:41.000Z
swagger_client/api/categories_api.py
chbndrhnns/finapi-client
259beda8b05e912c49d2dc4c3ed71205134e5d8a
[ "MIT" ]
2
2019-07-08T13:41:09.000Z
2020-12-07T12:10:04.000Z
# coding: utf-8 """ finAPI RESTful Services finAPI RESTful Services # noqa: E501 OpenAPI spec version: v1.42.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library im...
62.577197
1,028
0.673619
""" finAPI RESTful Services finAPI RESTful Services # noqa: E501 OpenAPI spec version: v1.42.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re import six from swagger_client.api_client import ApiClient class Categorie...
false
true
f75bcabcd8fcf59e840843f74a9c6c8303645afb
4,772
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
43.381818
133
0.657376
from typing import TYPE_CHECKING import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpR...
true
true
f75bcb528db29aae8e94edfe19848e818ac8e88c
3,075
py
Python
tests/asserts.py
philsjh/django-modelclone
d7c9f18c6e95b5a67f96f65bb73fd4612286913c
[ "MIT" ]
51
2015-01-28T13:51:59.000Z
2022-02-08T11:22:23.000Z
tests/asserts.py
philsjh/django-modelclone
d7c9f18c6e95b5a67f96f65bb73fd4612286913c
[ "MIT" ]
28
2015-01-13T11:21:40.000Z
2022-02-01T11:03:54.000Z
tests/asserts.py
philsjh/django-modelclone
d7c9f18c6e95b5a67f96f65bb73fd4612286913c
[ "MIT" ]
33
2015-07-09T15:04:26.000Z
2022-03-22T17:37:53.000Z
__all__ = ( 'assert_input', 'refute_input', 'assert_page_title', 'assert_content_title', 'assert_breadcrums_title', 'assert_management_form_inputs', 'refute_delete_button', 'select_element', ) def assert_input(response, name, value=None): ''' Verify if the input with ``name`` e...
34.166667
97
0.658537
__all__ = ( 'assert_input', 'refute_input', 'assert_page_title', 'assert_content_title', 'assert_breadcrums_title', 'assert_management_form_inputs', 'refute_delete_button', 'select_element', ) def assert_input(response, name, value=None): field = cssselect_input_or_textarea(respons...
true
true
f75bcc6a79e737371cecbd43c064ef9c839bbda9
14,933
py
Python
tests/test_resources.py
TMiguelT/flask-jsonapi
a48836f674e5844ba343a7863119dcbdee4cb1f3
[ "BSD-3-Clause" ]
14
2017-06-01T08:53:35.000Z
2020-07-03T11:05:27.000Z
tests/test_resources.py
TMiguelT/flask-jsonapi
a48836f674e5844ba343a7863119dcbdee4cb1f3
[ "BSD-3-Clause" ]
50
2017-06-05T16:09:43.000Z
2022-03-17T11:48:47.000Z
tests/test_resources.py
TMiguelT/flask-jsonapi
a48836f674e5844ba343a7863119dcbdee4cb1f3
[ "BSD-3-Clause" ]
7
2017-09-23T16:27:36.000Z
2020-07-03T11:04:29.000Z
import collections import json from unittest import mock import marshmallow_jsonapi import pytest from marshmallow_jsonapi import fields from flask_jsonapi import api from flask_jsonapi import filters_schema from flask_jsonapi import resource_repository_views from flask_jsonapi import resources from flask_jsonapi.r...
30.917184
115
0.589165
import collections import json from unittest import mock import marshmallow_jsonapi import pytest from marshmallow_jsonapi import fields from flask_jsonapi import api from flask_jsonapi import filters_schema from flask_jsonapi import resource_repository_views from flask_jsonapi import resources from flask_jsonapi.r...
true
true
f75bcce573afc072c1888c6abea98e72baf64e26
3,062
py
Python
delphi/analyzer.py
fabianfreyer/delphi_ninja
9ad7b18605e4de5e54c646569fa6460d52a10a01
[ "MIT" ]
13
2020-10-06T01:55:49.000Z
2022-03-30T01:27:27.000Z
delphi/analyzer.py
fabianfreyer/delphi_ninja
9ad7b18605e4de5e54c646569fa6460d52a10a01
[ "MIT" ]
4
2021-11-15T18:58:13.000Z
2022-02-24T12:00:53.000Z
delphi/analyzer.py
fabianfreyer/delphi_ninja
9ad7b18605e4de5e54c646569fa6460d52a10a01
[ "MIT" ]
3
2020-10-09T06:38:12.000Z
2022-03-30T01:27:04.000Z
from binaryninja import BinaryReader, BinaryView from typing import Callable, List, Union import copy from .vmt import DelphiVMT from .constants import VMTOffsets class DelphiAnalyzer(object): ''' TODO: Doc ''' def __init__(self, bv: BinaryView, delphi_version: int, offset_ptr_size = -1, start = -1,...
28.351852
104
0.611692
from binaryninja import BinaryReader, BinaryView from typing import Callable, List, Union import copy from .vmt import DelphiVMT from .constants import VMTOffsets class DelphiAnalyzer(object): def __init__(self, bv: BinaryView, delphi_version: int, offset_ptr_size = -1, start = -1, end = -1): self._offs...
true
true
f75bcd1845d3fba783f5f048a619f65a87bb8def
6,891
py
Python
src/pretix/control/views/waitinglist.py
MaxRink/pretix
f561ece9d1591673a495a6226db812e809ab3aec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/control/views/waitinglist.py
MaxRink/pretix
f561ece9d1591673a495a6226db812e809ab3aec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/control/views/waitinglist.py
MaxRink/pretix
f561ece9d1591673a495a6226db812e809ab3aec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from django.contrib import messages from django.db import transaction from django.db.models import Sum from django.db.models.functions import Coalesce from django.http import Http404, HttpResponseRedirect from django.shortcuts import redirect from django.urls import reverse from django.utils.translation import ugettext...
40.535294
114
0.620955
from django.contrib import messages from django.db import transaction from django.db.models import Sum from django.db.models.functions import Coalesce from django.http import Http404, HttpResponseRedirect from django.shortcuts import redirect from django.urls import reverse from django.utils.translation import ugettext...
false
true
f75bcd77f08b24ef065b29218c3ad12c1683a3b8
6,378
py
Python
docs/conf.py
The-Fonz/quart-openapi
b0e7611805a1ce137983ab4e30ad5b2cada1edf3
[ "Apache-2.0" ]
76
2018-06-14T21:57:24.000Z
2022-03-14T17:01:15.000Z
docs/conf.py
The-Fonz/quart-openapi
b0e7611805a1ce137983ab4e30ad5b2cada1edf3
[ "Apache-2.0" ]
34
2018-09-25T03:04:54.000Z
2021-12-22T13:36:22.000Z
docs/conf.py
The-Fonz/quart-openapi
b0e7611805a1ce137983ab4e30ad5b2cada1edf3
[ "Apache-2.0" ]
14
2018-11-15T17:43:16.000Z
2021-07-29T21:18:48.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
29.391705
79
0.647225
import os import sys sys.path.insert(0, os.path.abspath('../')) from jsonschema import RefResolver RefResolver.__module__ = 'jsonschema' from quart_openapi import __short_version__, __release__, __description__ project = 'Quart-OpenApi' copyright = '2018, FactSet Research Systems, Inc.' author = 'Matt Topol <mt...
true
true
f75bcea2f378048756a4f72e33aa6330cc801d1c
14,505
py
Python
tools/codegen/gen_lazy_tensor.py
Haijunlv/pytorch
02ba0fa8e8bf4364b211b61670e221255e23e1f5
[ "Intel" ]
null
null
null
tools/codegen/gen_lazy_tensor.py
Haijunlv/pytorch
02ba0fa8e8bf4364b211b61670e221255e23e1f5
[ "Intel" ]
null
null
null
tools/codegen/gen_lazy_tensor.py
Haijunlv/pytorch
02ba0fa8e8bf4364b211b61670e221255e23e1f5
[ "Intel" ]
null
null
null
import pathlib import argparse import os import re import yaml from collections import namedtuple, Counter from typing import List, Dict, Union, Sequence, Optional, Callable, Iterable, Iterator, Tuple, Type from tools.codegen.dest.lazy_ir import LazyIR, TSLazyIR from tools.codegen.gen import get_grouped_native_function...
50.364583
119
0.682592
import pathlib import argparse import os import re import yaml from collections import namedtuple, Counter from typing import List, Dict, Union, Sequence, Optional, Callable, Iterable, Iterator, Tuple, Type from tools.codegen.dest.lazy_ir import LazyIR, TSLazyIR from tools.codegen.gen import get_grouped_native_function...
true
true
f75bd1c4e948fcdea9fc73495a104697ae94a109
1,127
py
Python
YukkiMusic/plugins/admins/stop.py
VasuXD/YukkiMusicBot
d7fdbd46d9fc793daedf624fa34fe644119bcb25
[ "MIT" ]
null
null
null
YukkiMusic/plugins/admins/stop.py
VasuXD/YukkiMusicBot
d7fdbd46d9fc793daedf624fa34fe644119bcb25
[ "MIT" ]
null
null
null
YukkiMusic/plugins/admins/stop.py
VasuXD/YukkiMusicBot
d7fdbd46d9fc793daedf624fa34fe644119bcb25
[ "MIT" ]
null
null
null
# # Copyright (C) 2021-2022 by TeamYukki@Github, < https://github.com/TeamYukki >. # # This file is part of < https://github.com/TeamYukki/YukkiMusicBot > project, # and is released under the "GNU v3.0 License Agreement". # Please see < https://github.com/TeamYukki/YukkiMusicBot/blob/master/LICENSE > # # All rights res...
28.897436
80
0.749778
from pyrogram import filters from pyrogram.types import Message from config import BANNED_USERS from strings import get_command from YukkiMusic import app from YukkiMusic.core.call import Yukki from YukkiMusic.utils.database import set_loop from YukkiMusic.utils.decorators import AdminRightsCheck STOP_COMMAND = get_...
true
true
f75bd29b72ff7b1a08d864a4424881e8c29a86e0
60,724
py
Python
scripts/partition_manager.py
odwraca/nrf9160-dk-aws-fota-secure
ca56782313b6a91e795d614be40b071b33936737
[ "MIT-0", "MIT" ]
1
2021-07-24T14:58:23.000Z
2021-07-24T14:58:23.000Z
scripts/partition_manager.py
odwraca/nrf9160-dk-aws-fota-secure
ca56782313b6a91e795d614be40b071b33936737
[ "MIT-0", "MIT" ]
1
2020-04-07T16:59:58.000Z
2020-04-07T16:59:58.000Z
scripts/partition_manager.py
odwraca/nrf9160-dk-aws-fota-secure
ca56782313b6a91e795d614be40b071b33936737
[ "MIT-0", "MIT" ]
1
2020-05-12T13:33:52.000Z
2020-05-12T13:33:52.000Z
#!/usr/bin/env python3 # # Copyright (c) 2019 Nordic Semiconductor ASA # # SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic import argparse import yaml from os import path import sys from pprint import pformat PERMITTED_STR_KEYS = ['size', 'region'] END_TO_START = 'end_to_start' START_TO_END = 'start_to_end' C...
44.682855
136
0.601047
import argparse import yaml from os import path import sys from pprint import pformat PERMITTED_STR_KEYS = ['size', 'region'] END_TO_START = 'end_to_start' START_TO_END = 'start_to_end' COMPLEX = 'complex' def remove_item_not_in_list(list_to_remove_from, list_to_check): to_remove = [x for x in list_to_remove_fr...
true
true
f75bd35cb9b47c31811eede0e8775d956663d4d1
3,663
py
Python
src/manager/om/script/local/CheckPreInstall.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
1
2020-06-30T15:00:50.000Z
2020-06-30T15:00:50.000Z
src/manager/om/script/local/CheckPreInstall.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
src/manager/om/script/local/CheckPreInstall.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ############################################################################# # Copyright (c) 2020 Huawei Technologies Co.,Ltd. # # openGauss is licensed under Mulan PSL v2. # You can use this software according to the terms # and conditions of the Mulan PSL v2. # You may o...
31.577586
78
0.587497
import subprocess import getopt import sys import os import pwd sys.path.append(sys.path[0] + "/../") from gspylib.common.GaussLog import GaussLog from gspylib.common.ParameterParsecheck import Parameter from gspylib.common.Common import DefaultValue from gspylib.common.ErrorCode import ErrorCode PREINSTALL_FLAG = "1...
true
true
f75bd39cbef6f0a24a11c9819aa76ac457b02234
378
py
Python
gnome/gnome2/gedit/plugins.symlink/FindInProject/FindInProjectUtil.py
icebreaker/dotfiles
5c3dc7f981069a728cc6b34ae39cd4c2da1122aa
[ "MIT" ]
4
2015-03-17T14:36:49.000Z
2019-06-10T09:34:35.000Z
gnome/gnome2/gedit/plugins.symlink/FindInProject/FindInProjectUtil.py
icebreaker/dotfiles
5c3dc7f981069a728cc6b34ae39cd4c2da1122aa
[ "MIT" ]
null
null
null
gnome/gnome2/gedit/plugins.symlink/FindInProject/FindInProjectUtil.py
icebreaker/dotfiles
5c3dc7f981069a728cc6b34ae39cd4c2da1122aa
[ "MIT" ]
1
2019-03-01T13:21:55.000Z
2019-03-01T13:21:55.000Z
""" Utility functions for find in project """ import gconf import os def filebrowser_root(): base = u'/apps/gedit-2/plugins/filebrowser/on_load' client = gconf.client_get_default() client.add_dir(base, gconf.CLIENT_PRELOAD_NONE) path = os.path.join(base, u'virtual_root') val = client.get(path)...
22.235294
55
0.687831
import gconf import os def filebrowser_root(): base = u'/apps/gedit-2/plugins/filebrowser/on_load' client = gconf.client_get_default() client.add_dir(base, gconf.CLIENT_PRELOAD_NONE) path = os.path.join(base, u'virtual_root') val = client.get(path) if val is not None: return val.get_st...
true
true
f75bd40082498baed8d4f4cd886a2d1afaa05e80
13,132
py
Python
Blender/appdata_common/Blender Foundation/Blender/BLENDER_VERSION/scripts/addons/DTB/DtbCommands.py
kostenickj/DazToBlender
527c39d3774102628c7011e99161828cc8648d81
[ "Apache-2.0" ]
null
null
null
Blender/appdata_common/Blender Foundation/Blender/BLENDER_VERSION/scripts/addons/DTB/DtbCommands.py
kostenickj/DazToBlender
527c39d3774102628c7011e99161828cc8648d81
[ "Apache-2.0" ]
null
null
null
Blender/appdata_common/Blender Foundation/Blender/BLENDER_VERSION/scripts/addons/DTB/DtbCommands.py
kostenickj/DazToBlender
527c39d3774102628c7011e99161828cc8648d81
[ "Apache-2.0" ]
null
null
null
import bpy import os import sys sys.path.append(os.path.dirname(__file__)) from . import DataBase from . import Versions from . import MatDct from . import DtbMaterial from . import Util from . import Global from . import Poses from bpy_extras.io_utils import ImportHelper from bpy.props import StringProperty from bpy.t...
35.301075
126
0.562824
import bpy import os import sys sys.path.append(os.path.dirname(__file__)) from . import DataBase from . import Versions from . import MatDct from . import DtbMaterial from . import Util from . import Global from . import Poses from bpy_extras.io_utils import ImportHelper from bpy.props import StringProperty from bpy.t...
true
true
f75bd46e6e679f347d07fe04e940962382046dd8
3,005
py
Python
predict.py
zhyq/cws_lstm
326980e0971482fc712602d3a79069e69a11c8fc
[ "Apache-2.0" ]
7
2018-04-28T02:32:51.000Z
2020-02-11T07:14:51.000Z
predict.py
zhyq/cws_lstm
326980e0971482fc712602d3a79069e69a11c8fc
[ "Apache-2.0" ]
null
null
null
predict.py
zhyq/cws_lstm
326980e0971482fc712602d3a79069e69a11c8fc
[ "Apache-2.0" ]
null
null
null
import argparse import data_helper from sklearn.model_selection import train_test_split import re import lstm from lstm import * import time from viterbi import Viterbi xrange = range def simple_cut(text,dh,lm,viterbi): """对一个片段text(标点符号把句子划分为多个片段)进行预测。""" if text: #print("text: %s" %text) te...
33.388889
125
0.628619
import argparse import data_helper from sklearn.model_selection import train_test_split import re import lstm from lstm import * import time from viterbi import Viterbi xrange = range def simple_cut(text,dh,lm,viterbi): if text: text_len = len(text) X_batch = dh.text2ids(text) fe...
true
true
f75bd49a13a2bd9f0ad56543ec321eabfe217c3e
2,083
py
Python
single.py
bryzgaloff/imiris
f54c6c662096acab07f131aa8cec09ec4eb963be
[ "MIT" ]
null
null
null
single.py
bryzgaloff/imiris
f54c6c662096acab07f131aa8cec09ec4eb963be
[ "MIT" ]
null
null
null
single.py
bryzgaloff/imiris
f54c6c662096acab07f131aa8cec09ec4eb963be
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import math import random import simpy customers_count = 0 total_latency = 0 log_fd = open('single.log', 'a') def cur_time(environment): # получение времени в читаемом виде для логов seconds = environment.now hours = int(seconds / 3600) % 24 + 9 # магазин начинает работу с 9 часов ...
37.196429
101
0.706193
import math import random import simpy customers_count = 0 total_latency = 0 log_fd = open('single.log', 'a') def cur_time(environment): seconds = environment.now hours = int(seconds / 3600) % 24 + 9 minutes = int(seconds % 3600 / 60) return '{0:02}:{1:02}:{2:02}'.format(hours, minutes, int(second...
false
true
f75bd54edbe73c504cd5d50f6c7f9059efdb8259
2,327
py
Python
setup.py
stiegerb/CMSMonitoring
5d728d8c2f9c8d0eb81a6ce902eb303677997703
[ "MIT" ]
null
null
null
setup.py
stiegerb/CMSMonitoring
5d728d8c2f9c8d0eb81a6ce902eb303677997703
[ "MIT" ]
null
null
null
setup.py
stiegerb/CMSMonitoring
5d728d8c2f9c8d0eb81a6ce902eb303677997703
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Standard python setup.py file for CMSMonitoring """ import os import sys import fnmatch import subprocess from distutils.core import setup def datafiles(dir, pattern=None): """Return list of data files in provided relative dir""" files = [] for dirname, dirnames, filenames in os...
36.936508
99
0.560378
import os import sys import fnmatch import subprocess from distutils.core import setup def datafiles(dir, pattern=None): files = [] for dirname, dirnames, filenames in os.walk(dir): for subdirname in dirnames: files.append(os.path.join(dirname, subdirname)) for filename in filenam...
true
true
f75bd5d21dab651c1134d9db6c8fa5cbc04c70dd
1,914
py
Python
__init__.py
zeehio/enclosure-text-skill
53eca2709a665354e526d34e6cc509ac6b3888e7
[ "MIT" ]
null
null
null
__init__.py
zeehio/enclosure-text-skill
53eca2709a665354e526d34e6cc509ac6b3888e7
[ "MIT" ]
null
null
null
__init__.py
zeehio/enclosure-text-skill
53eca2709a665354e526d34e6cc509ac6b3888e7
[ "MIT" ]
null
null
null
# Copyright 2018 Sergio Oller # # 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, distribut...
38.28
80
0.748171
from mycroft.skills.core import MycroftSkill from adapt.intent import IntentBuilder from mycroft.util.log import getLogger __author__ = 'zeehio' LOGGER = getLogger(__name__) class EnclosureTextSkill(MycroftSkill): def __init__(self): super(EnclosureTextSkill, self).__init__(name="EnclosureTextSkill") ...
true
true
f75bd628c4505503b97ac0cd6ed8b2951c3ac9cc
12,797
py
Python
BERT/Pytorch Binary/train.py
amurto/nlp-scripts
f1158221a87838589ccff4eaa4db5349e6ec1c8d
[ "MIT" ]
1
2020-06-15T05:46:42.000Z
2020-06-15T05:46:42.000Z
BERT/Pytorch Binary/train.py
amurto/nlp-scripts
f1158221a87838589ccff4eaa4db5349e6ec1c8d
[ "MIT" ]
null
null
null
BERT/Pytorch Binary/train.py
amurto/nlp-scripts
f1158221a87838589ccff4eaa4db5349e6ec1c8d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """threat.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1RXBu5d8AKHr3Da4IIENHH_5YWWjXLYn4 """ '''data = pd.read_csv("/content/drive/My Drive/New KS/Toxicity and Insult Detection/Training/Datasets/hatekeyword.csv") threat...
33.854497
171
0.651793
"""threat.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1RXBu5d8AKHr3Da4IIENHH_5YWWjXLYn4 """ '''data = pd.read_csv("/content/drive/My Drive/New KS/Toxicity and Insult Detection/Training/Datasets/hatekeyword.csv") threats = [] for i in range(0,...
false
true
f75bd7dce4802c4730d11deacfd0b5d28367f4d6
1,764
py
Python
fdap/app/autopost/template.py
miniyus/finance-data-auto-posting
aa630ac9c488e9db0135206b355c1bb1ba71cc6b
[ "MIT" ]
null
null
null
fdap/app/autopost/template.py
miniyus/finance-data-auto-posting
aa630ac9c488e9db0135206b355c1bb1ba71cc6b
[ "MIT" ]
1
2021-11-06T02:30:37.000Z
2021-11-06T02:30:37.000Z
fdap/app/autopost/template.py
miniyus/finance-data-auto-posting
aa630ac9c488e9db0135206b355c1bb1ba71cc6b
[ "MIT" ]
null
null
null
def make_subject(sector: str, year: str, q: str): return f'[업종: {sector}] {year}년도 {q}분기' def make_strong_tag(value: str): return f'<strong>{value}</strong>' def make_p_tag(value: str): return f'<p>{value}</p>' def make_img_tag(name: str, src: str): return f'<img src="{src}" alt="{name}">' def m...
23.837838
85
0.577664
def make_subject(sector: str, year: str, q: str): return f'[업종: {sector}] {year}년도 {q}분기' def make_strong_tag(value: str): return f'<strong>{value}</strong>' def make_p_tag(value: str): return f'<p>{value}</p>' def make_img_tag(name: str, src: str): return f'<img src="{src}" alt="{name}">' def m...
true
true
f75bd965bc722ef647a5ac01b99c47b8a2063a15
33,506
py
Python
packages/dcos-integration-test/extra/test_dcos_diagnostics.py
sharego/dcos
868ca3aba84ec36810218a4262ca910ec4405af5
[ "Apache-2.0" ]
null
null
null
packages/dcos-integration-test/extra/test_dcos_diagnostics.py
sharego/dcos
868ca3aba84ec36810218a4262ca910ec4405af5
[ "Apache-2.0" ]
null
null
null
packages/dcos-integration-test/extra/test_dcos_diagnostics.py
sharego/dcos
868ca3aba84ec36810218a4262ca910ec4405af5
[ "Apache-2.0" ]
null
null
null
import gzip import json import logging import os import tempfile import zipfile import pytest import retrying import test_helpers from dcos_test_utils.diagnostics import Diagnostics from dcos_test_utils.helpers import check_json __maintainer__ = 'mnaboka' __contact__ = 'dcos-cluster-ops@mesosphere.io' # Expected la...
46.861538
120
0.658002
import gzip import json import logging import os import tempfile import zipfile import pytest import retrying import test_helpers from dcos_test_utils.diagnostics import Diagnostics from dcos_test_utils.helpers import check_json __maintainer__ = 'mnaboka' __contact__ = 'dcos-cluster-ops@mesosphere.io' LATENCY = 120...
true
true
f75bd97bc6dec5c0632bd3937f2c163d6ba40888
49
py
Python
presentation/iterator-workshop/s2_gen259.py
uogbuji/techwriting
5c4610fa508f050a7923cd9bbd28b44566417978
[ "Apache-2.0" ]
6
2019-04-13T20:19:00.000Z
2020-09-18T07:54:50.000Z
presentation/iterator-workshop/s2_gen259.py
uogbuji/techwriting
5c4610fa508f050a7923cd9bbd28b44566417978
[ "Apache-2.0" ]
1
2019-11-15T14:54:46.000Z
2019-11-22T04:02:05.000Z
presentation/iterator-workshop/s2_gen259.py
uogbuji/techwriting
5c4610fa508f050a7923cd9bbd28b44566417978
[ "Apache-2.0" ]
4
2019-09-06T19:23:12.000Z
2019-09-06T22:43:43.000Z
def gen259(): yield 2 yield 5 yield 9
12.25
13
0.55102
def gen259(): yield 2 yield 5 yield 9
true
true
f75bddf5d04296216cce3eb34d703b1cdac16763
1,595
py
Python
acestream/ACEStream/Core/exceptions.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
null
null
null
acestream/ACEStream/Core/exceptions.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
null
null
null
acestream/ACEStream/Core/exceptions.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
2
2018-04-17T17:34:39.000Z
2020-07-26T03:43:33.000Z
#Embedded file name: ACEStream\Core\exceptions.pyo class ACEStreamException(Exception): def __init__(self, msg = None): Exception.__init__(self, msg) def __str__(self): return str(self.__class__) + ': ' + Exception.__str__(self) class OperationNotPossibleAtRuntimeException(ACEStreamExcepti...
24.538462
71
0.746082
class ACEStreamException(Exception): def __init__(self, msg = None): Exception.__init__(self, msg) def __str__(self): return str(self.__class__) + ': ' + Exception.__str__(self) class OperationNotPossibleAtRuntimeException(ACEStreamException): def __init__(self, msg = None): A...
true
true
f75bdf3223a64c2ae307ea0975b4c6b024fba84c
850
py
Python
tensorlayer/log.py
yellowei/AI
594826348dfdfdde523622bb037ff6800b7b2367
[ "MIT" ]
null
null
null
tensorlayer/log.py
yellowei/AI
594826348dfdfdde523622bb037ff6800b7b2367
[ "MIT" ]
null
null
null
tensorlayer/log.py
yellowei/AI
594826348dfdfdde523622bb037ff6800b7b2367
[ "MIT" ]
null
null
null
import logging import logging.handlers import utils logfile = utils.GetApplicationDir() + "\\logs\\" utils.ForceDirectories(logfile) logfile = logfile + "test.log" fileHandle = logging.handlers.TimedRotatingFileHandler(logfile,when='D',interval=1,backupCount=40) # 实例化handler fmt = '%(levelno)s,%(asctime)s,%(pro...
34
114
0.730588
import logging import logging.handlers import utils logfile = utils.GetApplicationDir() + "\\logs\\" utils.ForceDirectories(logfile) logfile = logfile + "test.log" fileHandle = logging.handlers.TimedRotatingFileHandler(logfile,when='D',interval=1,backupCount=40) fmt = '%(levelno)s,%(asctime)s,%(process)d,%(thread)...
true
true
f75bdffc45d3a3168219ce4eacc29ac656126a9c
972
py
Python
runners/bisim/lehnert_gridworld/LehnertGridworldHMM.py
ondrejba/discrete_abstractions
444def53ae2ca6c8a5b5b453448f7c4bbaba07e1
[ "MIT" ]
6
2020-09-14T22:48:00.000Z
2021-12-11T04:14:07.000Z
runners/bisim/lehnert_gridworld/LehnertGridworldHMM.py
ondrejba/discrete_abstractions
444def53ae2ca6c8a5b5b453448f7c4bbaba07e1
[ "MIT" ]
null
null
null
runners/bisim/lehnert_gridworld/LehnertGridworldHMM.py
ondrejba/discrete_abstractions
444def53ae2ca6c8a5b5b453448f7c4bbaba07e1
[ "MIT" ]
null
null
null
import constants from model.LehnertGridworldModelHMM import LehnertGridworldModelHMM from runners.bisim.lehnert_gridworld.LehnertGridworldGMM import LehnertGridworldGMMRunner class LehnertGridworldHMMRunner(LehnertGridworldGMMRunner): def __init__(self, runner_config, model_config): super(LehnertGridwor...
34.714286
89
0.73251
import constants from model.LehnertGridworldModelHMM import LehnertGridworldModelHMM from runners.bisim.lehnert_gridworld.LehnertGridworldGMM import LehnertGridworldGMMRunner class LehnertGridworldHMMRunner(LehnertGridworldGMMRunner): def __init__(self, runner_config, model_config): super(LehnertGridwor...
true
true
f75be0a4d8297c26fc257892ec9aa04baeb79bf5
1,120
py
Python
backend/core/service/column_generator/basic_generator/boolean.py
pecimuth/synthia
a54265ca6f772959d395de789bfe16bf054d97ad
[ "MIT" ]
null
null
null
backend/core/service/column_generator/basic_generator/boolean.py
pecimuth/synthia
a54265ca6f772959d395de789bfe16bf054d97ad
[ "MIT" ]
null
null
null
backend/core/service/column_generator/basic_generator/boolean.py
pecimuth/synthia
a54265ca6f772959d395de789bfe16bf054d97ad
[ "MIT" ]
null
null
null
from core.model.meta_column import MetaColumn from core.service.column_generator.base import SingleColumnGenerator, RegisteredGenerator from core.service.column_generator.decorator import parameter from core.service.data_source.data_provider import DataProvider from core.service.generation_procedure.database import Gen...
37.333333
89
0.744643
from core.model.meta_column import MetaColumn from core.service.column_generator.base import SingleColumnGenerator, RegisteredGenerator from core.service.column_generator.decorator import parameter from core.service.data_source.data_provider import DataProvider from core.service.generation_procedure.database import Gen...
true
true
f75be1c9161eec3f2b8cb1f4cad4183e1ba9d351
14,106
py
Python
CPCTrans/main.py
yliu1229/CPCTR
66fcd336ee69fd18b322853f195c5b65b4a046b7
[ "MIT" ]
null
null
null
CPCTrans/main.py
yliu1229/CPCTR
66fcd336ee69fd18b322853f195c5b65b4a046b7
[ "MIT" ]
null
null
null
CPCTrans/main.py
yliu1229/CPCTR
66fcd336ee69fd18b322853f195c5b65b4a046b7
[ "MIT" ]
null
null
null
import os import sys import time import re import argparse import numpy as np from tqdm import tqdm from tensorboardX import SummaryWriter import matplotlib.pyplot as plt plt.switch_backend('agg') sys.path.append('../Utils') from CPCTrans.dataset_3d import * from CPCTrans.model_3d import * from Backbone.resnet import...
41.245614
133
0.607188
import os import sys import time import re import argparse import numpy as np from tqdm import tqdm from tensorboardX import SummaryWriter import matplotlib.pyplot as plt plt.switch_backend('agg') sys.path.append('../Utils') from CPCTrans.dataset_3d import * from CPCTrans.model_3d import * from Backbone.resnet import...
true
true
f75be1d6678b0fcba8117c1f567c2dfef4fc4c32
546
py
Python
tweetbrain/backend/app/api_v1/songs/tests/test_song_matches.py
ShraxO1/you
7e781af61896b785e23ddb639809f3ff7a0649ff
[ "MIT" ]
1
2020-10-25T01:13:16.000Z
2020-10-25T01:13:16.000Z
tweetbrain/backend/app/api_v1/songs/tests/test_song_matches.py
ShraxO1/you
7e781af61896b785e23ddb639809f3ff7a0649ff
[ "MIT" ]
1
2020-10-21T17:40:48.000Z
2020-10-28T01:12:10.000Z
tweetbrain/backend/app/api_v1/songs/tests/test_song_matches.py
ShraxO1/you
7e781af61896b785e23ddb639809f3ff7a0649ff
[ "MIT" ]
8
2020-10-21T20:32:49.000Z
2020-10-25T14:27:41.000Z
from ....twitter.twitter_user import TwitterUser from ....genius.match import Match from .. import utils user = TwitterUser("MontellFish") matcher = Match() def test_basic_match(): query = "" top_words = user.get_top_words() word_limit = 1 for index, word_freq in enumerate(top_words): query ...
19.5
53
0.655678
from ....twitter.twitter_user import TwitterUser from ....genius.match import Match from .. import utils user = TwitterUser("MontellFish") matcher = Match() def test_basic_match(): query = "" top_words = user.get_top_words() word_limit = 1 for index, word_freq in enumerate(top_words): query ...
true
true
f75be31a5cd6c905447ce599d653902338e27a48
9,211
py
Python
chunair/kicad-footprint-generator-master/scripts/Connector/Connector_Molex/conn_molex_kk_396_5273_tht_top.py
speedypotato/chuni-lite
c8dda8428723f8c4f99075e7cbaa22a44cbc187d
[ "CC-BY-4.0" ]
2
2022-03-18T23:42:51.000Z
2022-03-19T15:31:34.000Z
chunair/kicad-footprint-generator-master/scripts/Connector/Connector_Molex/conn_molex_kk_396_5273_tht_top.py
speedypotato/chuni-lite
c8dda8428723f8c4f99075e7cbaa22a44cbc187d
[ "CC-BY-4.0" ]
null
null
null
chunair/kicad-footprint-generator-master/scripts/Connector/Connector_Molex/conn_molex_kk_396_5273_tht_top.py
speedypotato/chuni-lite
c8dda8428723f8c4f99075e7cbaa22a44cbc187d
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 # KicadModTree is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # KicadModTree is distributed in the hope that...
44.283654
199
0.677777
import sys import os sys.path.append(os.path.join(sys.path[0], "..", "..", "..")) from math import sqrt import argparse import yaml from helpers import * from KicadModTree import * sys.path.append(os.path.join(sys.path[0], "..", "..", "tools")) from footprint_text_fields import addTextFields series = "KK-396" se...
true
true
f75be33aba1add54bc533ce8dadede5be8d63dc2
357
py
Python
tests/conftest.py
andreasCastor/castoredc_api
ef0bd4eb8ac2efaa7e98e8462de7e5a7aa65a7f0
[ "MIT" ]
null
null
null
tests/conftest.py
andreasCastor/castoredc_api
ef0bd4eb8ac2efaa7e98e8462de7e5a7aa65a7f0
[ "MIT" ]
null
null
null
tests/conftest.py
andreasCastor/castoredc_api
ef0bd4eb8ac2efaa7e98e8462de7e5a7aa65a7f0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Global fixtures for testing CastorStudy @author: R.C.A. van Linschoten https://orcid.org/0000-0003-3052-596X """ pytest_plugins = [ "tests.test_castor_objects.fixtures_castor_objects", "tests.test_integration.fixtures_integration", "tests.test_api_endpoints.fixtures_api", "...
25.5
56
0.739496
pytest_plugins = [ "tests.test_castor_objects.fixtures_castor_objects", "tests.test_integration.fixtures_integration", "tests.test_api_endpoints.fixtures_api", "tests.test_import.fixtures_import", ]
true
true
f75be3b2e8dfbc714b1f699fd3fcad6b6eafbb76
744
py
Python
text_eval.py
AgnesYichenFeng/Attention
b70b8882871cb74f1533265fc13ccfad7bea3550
[ "Apache-2.0" ]
null
null
null
text_eval.py
AgnesYichenFeng/Attention
b70b8882871cb74f1533265fc13ccfad7bea3550
[ "Apache-2.0" ]
null
null
null
text_eval.py
AgnesYichenFeng/Attention
b70b8882871cb74f1533265fc13ccfad7bea3550
[ "Apache-2.0" ]
null
null
null
import numpy as np def ids2str(encoder, ids, num_reserved): if num_reserved: if np.any(np.where(ids==1)[0]): eos = np.where(ids==1)[0] ids = ids[:eos[0]] reserved_tokens = np.where(ids < num_reserved)[0] if reserved_totkens.size > 0: split_l...
31
85
0.510753
import numpy as np def ids2str(encoder, ids, num_reserved): if num_reserved: if np.any(np.where(ids==1)[0]): eos = np.where(ids==1)[0] ids = ids[:eos[0]] reserved_tokens = np.where(ids < num_reserved)[0] if reserved_totkens.size > 0: split_l...
true
true
f75be3e2ebabe3ec507800363983f06b3d71bcec
6,558
py
Python
nssrc/com/citrix/netscaler/nitro/resource/config/policy/policydataset_value_binding.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/policy/policydataset_value_binding.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/policy/policydataset_value_binding.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2008-2015 Citrix Systems, 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 l...
29.540541
129
0.714547
from nssrc.com.citrix.netscaler.nitro.resource.base.base_resource import base_resource from nssrc.com.citrix.netscaler.nitro.resource.base.base_resource import base_response from nssrc.com.citrix.netscaler.nitro.service.options import options from nssrc.com.citrix.netscaler.nitro.exception.nitro_exception import nitro...
true
true
f75be40a634c33e1208eb51fd610d1873401552f
2,689
py
Python
docs/source/conf.py
aiidateam/aiida-pseudo
87515a98fc86bd55756614968a1bc4f2b3f6feb6
[ "MIT" ]
3
2020-12-07T23:24:30.000Z
2021-05-15T01:50:04.000Z
docs/source/conf.py
aiidateam/aiida-pseudo
87515a98fc86bd55756614968a1bc4f2b3f6feb6
[ "MIT" ]
89
2020-10-15T11:46:18.000Z
2022-03-07T17:26:46.000Z
docs/source/conf.py
aiidateam/aiida-pseudo
87515a98fc86bd55756614968a1bc4f2b3f6feb6
[ "MIT" ]
6
2020-10-26T10:01:02.000Z
2021-06-07T20:20:58.000Z
# -*- coding: utf-8 -*- # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html from reentry import manager manager.scan() # -- Path setup --...
35.853333
215
0.673856
from reentry import manager manager.scan() import os import sys sys.path.insert(0, os.path.abspath('../../')) import aiida_pseudo project = 'aiida-pseudo' copyright = '2020-2021, ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE (Theory and Simulation of Materials (THEOS) and National Centre for Computational Design and...
true
true
f75be430b8c08ccee06b62c0dd79ecd856164c50
10,698
py
Python
util/visualizer.py
JoshuaEbenezer/cwgan
5f6a9a0bb8760bf85a9a28e25b29a149f3a4a7ca
[ "BSD-3-Clause" ]
15
2019-02-12T13:05:50.000Z
2022-03-17T03:13:25.000Z
util/visualizer.py
JoshuaEbenezer/cwgan
5f6a9a0bb8760bf85a9a28e25b29a149f3a4a7ca
[ "BSD-3-Clause" ]
1
2020-05-04T15:54:33.000Z
2020-08-31T23:43:10.000Z
util/visualizer.py
JoshuaEbenezer/cwgan
5f6a9a0bb8760bf85a9a28e25b29a149f3a4a7ca
[ "BSD-3-Clause" ]
2
2019-04-23T13:35:49.000Z
2021-01-18T16:14:56.000Z
import numpy as np import os import sys import ntpath import time from . import util, html from subprocess import Popen, PIPE from scipy.misc import imresize if sys.version_info[0] == 2: VisdomExceptionBase = Exception else: VisdomExceptionBase = ConnectionError def save_images(webpage, visuals, image_path, ...
47.127753
195
0.568517
import numpy as np import os import sys import ntpath import time from . import util, html from subprocess import Popen, PIPE from scipy.misc import imresize if sys.version_info[0] == 2: VisdomExceptionBase = Exception else: VisdomExceptionBase = ConnectionError def save_images(webpage, visuals, image_path, ...
true
true
f75be45940246a9e3d5519382bd0444202ba96ff
52,296
py
Python
testing/test_collection.py
solute/pytest
43faea832d0cf1dfd2f5e006c6fdb97b2a21ed3e
[ "MIT" ]
1
2021-05-06T02:11:44.000Z
2021-05-06T02:11:44.000Z
testing/test_collection.py
solute/pytest
43faea832d0cf1dfd2f5e006c6fdb97b2a21ed3e
[ "MIT" ]
57
2020-12-14T03:16:56.000Z
2022-03-28T03:03:00.000Z
testing/test_collection.py
zkneupper/pytest
ff6d29717c96c64e108581ddc7ead862f8d2398a
[ "MIT" ]
1
2021-07-07T14:22:29.000Z
2021-07-07T14:22:29.000Z
import os import pprint import shutil import sys import textwrap from pathlib import Path from typing import List import pytest from _pytest.config import ExitCode from _pytest.fixtures import FixtureRequest from _pytest.main import _in_venv from _pytest.main import Session from _pytest.monkeypatch import MonkeyPatch ...
35.192463
103
0.588095
import os import pprint import shutil import sys import textwrap from pathlib import Path from typing import List import pytest from _pytest.config import ExitCode from _pytest.fixtures import FixtureRequest from _pytest.main import _in_venv from _pytest.main import Session from _pytest.monkeypatch import MonkeyPatch ...
true
true
f75be4909a68b82b620965e3eb5071c64295b536
56,068
py
Python
scripts/build.py
ABHIJITBURMAN/oppia
a13ee60aa200f6351fc81b09b5b2c881372dba92
[ "Apache-2.0" ]
1
2019-09-09T12:09:31.000Z
2019-09-09T12:09:31.000Z
scripts/build.py
ABHIJITBURMAN/oppia
a13ee60aa200f6351fc81b09b5b2c881372dba92
[ "Apache-2.0" ]
null
null
null
scripts/build.py
ABHIJITBURMAN/oppia
a13ee60aa200f6351fc81b09b5b2c881372dba92
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 The Oppia 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 applicable ...
40.105866
80
0.686292
from __future__ import absolute_import from __future__ import unicode_literals import argparse import collections import fnmatch import hashlib import json import os import re import shutil import subprocess import threading import python_utils ASSETS_DEV_DIR = os.path.join('assets', '') ASSETS_OUT_DIR = os.path....
true
true
f75be60a50ab4afbd45ee6710da85a694b122f52
7,174
py
Python
oscar/lib/python2.7/site-packages/coverage/python.py
bhav11esh/Oscar-Bookshelf
b48f088e2ed908b3603f2ecc63d602f81392eac4
[ "BSD-3-Clause" ]
1
2017-03-21T12:08:52.000Z
2017-03-21T12:08:52.000Z
oscar/lib/python2.7/site-packages/coverage/python.py
bhav11esh/Oscar-Bookshelf
b48f088e2ed908b3603f2ecc63d602f81392eac4
[ "BSD-3-Clause" ]
27
2017-04-01T15:06:36.000Z
2021-02-08T20:19:58.000Z
env/lib/python3.4/site-packages/coverage/python.py
tlksio/tlksio
f62f86972ba547bc18a84a83fc74db7a2c0de916
[ "MIT" ]
null
null
null
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt """Python source expertise for coverage.py""" import os.path import types import zipimport from coverage import env, files from coverage.misc import ( contrac...
30.52766
84
0.620992
import os.path import types import zipimport from coverage import env, files from coverage.misc import ( contract, CoverageException, expensive, NoSource, join_regex, isolate_module, ) from coverage.parser import PythonParser from coverage.phystokens import source_token_lines, source_encoding from coverage.plugi...
true
true
f75be8f3a7d8bc32dd7cb80d46942905e6444d45
16,691
py
Python
rbm_gpu.py
evelkey/cudalearn
fbf9c18b2e6f4a8febd04557a7b2eacbe8957cf4
[ "BSD-3-Clause" ]
null
null
null
rbm_gpu.py
evelkey/cudalearn
fbf9c18b2e6f4a8febd04557a7b2eacbe8957cf4
[ "BSD-3-Clause" ]
null
null
null
rbm_gpu.py
evelkey/cudalearn
fbf9c18b2e6f4a8febd04557a7b2eacbe8957cf4
[ "BSD-3-Clause" ]
null
null
null
#Copyright (c) 2009,2010 George Dahl import numpy as num from singleSoftmax import singleSoftmax import cudamat as cm class GaussianRBM(object): def __init__(self, numVis, numHid, mbsz = 256, initHidBias = 0.0, initWeightSigma = 0.05): self._mbsz = mbsz self.numVis, self.numHid = numVis, numHid ...
37.507865
121
0.606315
import numpy as num from singleSoftmax import singleSoftmax import cudamat as cm class GaussianRBM(object): def __init__(self, numVis, numHid, mbsz = 256, initHidBias = 0.0, initWeightSigma = 0.05): self._mbsz = mbsz self.numVis, self.numHid = numVis, numHid self.visToHi...
false
true
f75be961db6a96e7cc66b93969a3087ee2536ee1
53
py
Python
JsToPy.py
CN-DXTZ/Wox.Plugin.Gtranslate
a45d4cde644c0259f65f9f534f40e5280ee693cf
[ "MIT" ]
2
2020-04-17T19:02:24.000Z
2021-04-18T15:40:01.000Z
JsToPy.py
CN-DXTZ/Wox.Plugin.Gtranslate
a45d4cde644c0259f65f9f534f40e5280ee693cf
[ "MIT" ]
2
2020-04-17T19:03:10.000Z
2020-10-24T12:57:03.000Z
JsToPy.py
CN-DXTZ/Wox.Plugin.Gtranslate
a45d4cde644c0259f65f9f534f40e5280ee693cf
[ "MIT" ]
1
2020-03-17T10:45:25.000Z
2020-03-17T10:45:25.000Z
import js2py js2py.translate_file('tk.js', 'tk.py')
13.25
38
0.716981
import js2py js2py.translate_file('tk.js', 'tk.py')
true
true
f75bea11459201c2c82647077e31c4e7d1846116
2,782
py
Python
ALRA/ALRA.py
pavlin-policar/ALRA
fab8d7661bf2a2179b40e68fb4f022015c700252
[ "BSD-3-Clause" ]
3
2018-12-13T06:10:25.000Z
2020-06-19T01:53:00.000Z
ALRA/ALRA.py
pavlin-policar/ALRA
fab8d7661bf2a2179b40e68fb4f022015c700252
[ "BSD-3-Clause" ]
null
null
null
ALRA/ALRA.py
pavlin-policar/ALRA
fab8d7661bf2a2179b40e68fb4f022015c700252
[ "BSD-3-Clause" ]
null
null
null
import logging import numpy as np from fbpca import pca from scipy.stats import norm from .sparseutils import nonzero_mean, nonzero_std, find_zeroed_indices log = logging.getLogger("ALRA") def choose_k(X, k=100, pval_thresh=1e-10, noise_start=80, n_iter=2): if k > min(X.shape): raise ValueError( ...
30.23913
80
0.669303
import logging import numpy as np from fbpca import pca from scipy.stats import norm from .sparseutils import nonzero_mean, nonzero_std, find_zeroed_indices log = logging.getLogger("ALRA") def choose_k(X, k=100, pval_thresh=1e-10, noise_start=80, n_iter=2): if k > min(X.shape): raise ValueError( ...
true
true
f75bea3240b8c70ff538e015e54231c08e029204
2,544
py
Python
firex_flame/main_app.py
FireXStuff/firex-flame
3e786ade286aac5f1d83d59a68e56611c9ab0582
[ "BSD-3-Clause" ]
1
2019-09-17T18:20:22.000Z
2019-09-17T18:20:22.000Z
firex_flame/main_app.py
FireXStuff/firex-flame
3e786ade286aac5f1d83d59a68e56611c9ab0582
[ "BSD-3-Clause" ]
6
2019-07-30T14:10:18.000Z
2021-04-15T15:06:53.000Z
firex_flame/main_app.py
FireXStuff/firex-flame
3e786ade286aac5f1d83d59a68e56611c9ab0582
[ "BSD-3-Clause" ]
null
null
null
import logging import os from threading import Thread import celery from firexapp.broker_manager.broker_factory import RedisManager from firex_flame.controller import FlameAppController from firex_flame.event_file_processor import process_recording_file from firex_flame.event_broker_processor import BrokerEventConsum...
47.111111
120
0.715409
import logging import os from threading import Thread import celery from firexapp.broker_manager.broker_factory import RedisManager from firex_flame.controller import FlameAppController from firex_flame.event_file_processor import process_recording_file from firex_flame.event_broker_processor import BrokerEventConsum...
true
true
f75beb3ec04b3fdc4b0766b516a59736e194bbef
16,165
py
Python
samtranslator/plugins/globals/globals.py
bhumikapaharia/serverless-application-model
4161fdd59f1ec449877a64796401ca074ae7be02
[ "Apache-2.0" ]
4
2021-12-18T06:44:57.000Z
2021-12-28T09:52:53.000Z
samtranslator/plugins/globals/globals.py
sriharikadali/serverless-application-model
e3a4641600ba1d042e021258fd540de8b3f3a927
[ "Apache-2.0" ]
1
2021-04-13T17:54:21.000Z
2021-04-13T17:54:21.000Z
samtranslator/plugins/globals/globals.py
chrisoverzero/serverless-application-model
f297cfb7bb68c75b3a75da49c9488e62bad16347
[ "Apache-2.0" ]
2
2022-03-08T07:11:42.000Z
2022-03-08T07:49:20.000Z
from samtranslator.public.sdk.resource import SamResourceType from samtranslator.public.intrinsics import is_intrinsics from samtranslator.swagger.swagger import SwaggerEditor from six import string_types class Globals(object): """ Class to parse and process Globals section in SAM template. If a property is ...
34.175476
120
0.613857
from samtranslator.public.sdk.resource import SamResourceType from samtranslator.public.intrinsics import is_intrinsics from samtranslator.swagger.swagger import SwaggerEditor from six import string_types class Globals(object): """ Class to parse and process Globals section in SAM template. If a property is ...
false
true
f75bec2c07a76832ec4541fc289abf7600abb449
9,438
py
Python
examples/FasterRCNN/eval.py
ChriPo92/tensorpack
45d2155850d3870bbf110c94c73508c707e1ae42
[ "Apache-2.0" ]
null
null
null
examples/FasterRCNN/eval.py
ChriPo92/tensorpack
45d2155850d3870bbf110c94c73508c707e1ae42
[ "Apache-2.0" ]
null
null
null
examples/FasterRCNN/eval.py
ChriPo92/tensorpack
45d2155850d3870bbf110c94c73508c707e1ae42
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # File: eval.py import itertools import sys import os import json import numpy as np from collections import namedtuple from concurrent.futures import ThreadPoolExecutor from contextlib import ExitStack import cv2 import pycocotools.mask as cocomask import tqdm import tensorflow as tf from ten...
36.3
118
0.619411
import itertools import sys import os import json import numpy as np from collections import namedtuple from concurrent.futures import ThreadPoolExecutor from contextlib import ExitStack import cv2 import pycocotools.mask as cocomask import tqdm import tensorflow as tf from tensorpack.callbacks import Callback from t...
true
true
f75bec32d86019f4ef31a448c8e51a44e6fa5ecf
3,675
py
Python
huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_add_image_member_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_add_image_member_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_add_image_member_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class GlanceAddImageMemberRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict)...
26.438849
79
0.564082
import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class GlanceAddImageMemberRequest: sensitive_list = [] openapi_types = { 'image_id': 'str', 'body': 'GlanceAddImageMemberRequestBody' } attribute_map = { 'image_id': 'image_...
true
true
f75bedc292f93c09e94b9ee21db65da494d3f7bf
13,357
py
Python
tutorials/rnn/quickdraw/train_model.py
SimiaCryptus/models
c652a23a650070b71e286f1ded93726670161940
[ "Apache-2.0" ]
null
null
null
tutorials/rnn/quickdraw/train_model.py
SimiaCryptus/models
c652a23a650070b71e286f1ded93726670161940
[ "Apache-2.0" ]
null
null
null
tutorials/rnn/quickdraw/train_model.py
SimiaCryptus/models
c652a23a650070b71e286f1ded93726670161940
[ "Apache-2.0" ]
null
null
null
# 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...
35.15
80
0.685783
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import ast import functools import sys import tensorflow as tf def get_num_classes(): classes = [] with tf.gfile.GFile(FLAGS.classes_file, "r") as f: classes = [x for x in f] num_...
true
true
f75bede6f82b8ab2060eb1567cbd3b7856337432
246
py
Python
sourcecode/21/21.3.1/pingP_3.py
ydong08/PythonCode
268f538608917565cdfc8eadbd04101606314c97
[ "MIT" ]
null
null
null
sourcecode/21/21.3.1/pingP_3.py
ydong08/PythonCode
268f538608917565cdfc8eadbd04101606314c97
[ "MIT" ]
null
null
null
sourcecode/21/21.3.1/pingP_3.py
ydong08/PythonCode
268f538608917565cdfc8eadbd04101606314c97
[ "MIT" ]
null
null
null
#!/usr/bin/python #encoding=utf-8 import subprocess pingP=subprocess.Popen(args=’ping –n 4 www.sina.com.cn’, shell=True, stdout = subprocess.PIPE) pingP.wait() #等待进程完成 print pingP.stdout.read() #读取进程的输出信息 print pingP.pid print pingP.returncode
22.363636
94
0.764228
import subprocess pingP=subprocess.Popen(args=’ping –n 4 www.sina.com.cn’, shell=True, stdout = subprocess.PIPE) pingP.wait() print pingP.stdout.read() print pingP.pid print pingP.returncode
false
true
f75beec99f0bab7ac1a6addea7238f8ba1361b92
49,303
py
Python
python/clockwork/db.py
oxfordmmm/clockwork
be1f6ea49debf8cb2b8f1ba974df2dc567d150fd
[ "MIT" ]
1
2020-01-10T06:43:39.000Z
2020-01-10T06:43:39.000Z
python/clockwork/db.py
oxfordmmm/clockwork
be1f6ea49debf8cb2b8f1ba974df2dc567d150fd
[ "MIT" ]
null
null
null
python/clockwork/db.py
oxfordmmm/clockwork
be1f6ea49debf8cb2b8f1ba974df2dc567d150fd
[ "MIT" ]
null
null
null
import csv import copy import datetime import os import re import sys import tempfile from operator import attrgetter, itemgetter from clockwork import db_connection, db_schema, isolate_dir, fastqc, lock_file, mykrobe, reference_dir, samtools_qc, utils from clockwork import __version__ as clockwork_version class Error...
51.626178
350
0.635438
import csv import copy import datetime import os import re import sys import tempfile from operator import attrgetter, itemgetter from clockwork import db_connection, db_schema, isolate_dir, fastqc, lock_file, mykrobe, reference_dir, samtools_qc, utils from clockwork import __version__ as clockwork_version class Error...
true
true
f75bef56dcf5886404444e81ed9f17d447a50428
100
py
Python
dotbot/plugins/__init__.py
benperiton/dotbot
fe516ee4af7bf57969e38a3226e2760f760b08e2
[ "MIT" ]
5,493
2015-01-07T22:16:25.000Z
2022-03-30T15:31:11.000Z
dotbot/plugins/__init__.py
benperiton/dotbot
fe516ee4af7bf57969e38a3226e2760f760b08e2
[ "MIT" ]
287
2015-02-03T05:12:38.000Z
2022-03-08T12:32:26.000Z
modules/dotbot/dotbot/plugins/__init__.py
danitome24/dotfiles
22821002e8922e1f1ff706b851e116ed77beb164
[ "MIT" ]
361
2015-01-17T08:31:30.000Z
2022-03-31T01:02:04.000Z
from .clean import Clean from .create import Create from .link import Link from .shell import Shell
20
26
0.8
from .clean import Clean from .create import Create from .link import Link from .shell import Shell
true
true
f75bf0c717a786b72cac8c66c3f280d84e1b209f
3,095
py
Python
airbyte-cdk/python/airbyte_cdk/connector.py
kattos-aws/airbyte
cbcbab4a2399c08d8f66d1b693ac824c245ba3da
[ "MIT" ]
null
null
null
airbyte-cdk/python/airbyte_cdk/connector.py
kattos-aws/airbyte
cbcbab4a2399c08d8f66d1b693ac824c245ba3da
[ "MIT" ]
1
2021-12-08T21:39:05.000Z
2021-12-09T17:10:45.000Z
airbyte-cdk/python/airbyte_cdk/connector.py
kattos-aws/airbyte
cbcbab4a2399c08d8f66d1b693ac824c245ba3da
[ "MIT" ]
1
2022-02-19T17:22:50.000Z
2022-02-19T17:22:50.000Z
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # import json import logging import os import pkgutil from abc import ABC, abstractmethod from typing import Any, Mapping, Optional import yaml from airbyte_cdk.models import AirbyteConnectionStatus, ConnectorSpecification def load_optional_package_file(pa...
34.775281
154
0.680452
import json import logging import os import pkgutil from abc import ABC, abstractmethod from typing import Any, Mapping, Optional import yaml from airbyte_cdk.models import AirbyteConnectionStatus, ConnectorSpecification def load_optional_package_file(package: str, filename: str) -> Optional[bytes]: try: ...
true
true
f75bf129f1d144e3008a4190b75849593d9df962
67,099
py
Python
bungieapi/generated/components/schemas/destiny/__init__.py
itemmanager/bungieapi
0c4326f88ea0f28a1dcab683dc08c8d21c940fc1
[ "MIT" ]
5
2022-01-06T21:05:53.000Z
2022-02-12T19:58:11.000Z
bungieapi/generated/components/schemas/destiny/__init__.py
itemmanager/bungieapi
0c4326f88ea0f28a1dcab683dc08c8d21c940fc1
[ "MIT" ]
8
2021-12-25T02:40:56.000Z
2022-03-28T03:31:41.000Z
bungieapi/generated/components/schemas/destiny/__init__.py
itemmanager/bungieapi
0c4326f88ea0f28a1dcab683dc08c8d21c940fc1
[ "MIT" ]
1
2022-01-30T23:53:25.000Z
2022-01-30T23:53:25.000Z
# generated by update to not change manually import dataclasses as dt import typing as t from enum import Enum, Flag from bungieapi.json import to_json from bungieapi.types import ManifestReference @dt.dataclass(frozen=True) class DestinyProgression: """Information about a current character's status with a Progr...
47.386299
958
0.712201
import dataclasses as dt import typing as t from enum import Enum, Flag from bungieapi.json import to_json from bungieapi.types import ManifestReference @dt.dataclass(frozen=True) class DestinyProgression: current_progress: int = dt.field( metadata={ "description": "This is the total amount ...
true
true
f75bf190b7686b3a06daf1bc1b03c5484898b3bb
288
py
Python
priv/python/qrcode.py
badubizzle/elixir_python_qrcode
1c592144ecc2a86f742dabe8b9712bcb3b6022a9
[ "MIT" ]
14
2018-04-03T01:36:26.000Z
2021-04-16T03:20:24.000Z
priv/python/qrcode.py
badubizzle/elixir_python_qrcode
1c592144ecc2a86f742dabe8b9712bcb3b6022a9
[ "MIT" ]
null
null
null
priv/python/qrcode.py
badubizzle/elixir_python_qrcode
1c592144ecc2a86f742dabe8b9712bcb3b6022a9
[ "MIT" ]
3
2018-11-25T14:15:00.000Z
2019-11-18T02:00:24.000Z
def decode(file_path): import qrtools qr = qrtools.QR() qr.decode(file_path) return qr.data def encode(data, file_path): import qrtools qr = qrtools.QR(data.encode("utf-8")) return qr.encode(filename=file_path) def greetings(name): return "Hello "+ name
20.571429
41
0.670139
def decode(file_path): import qrtools qr = qrtools.QR() qr.decode(file_path) return qr.data def encode(data, file_path): import qrtools qr = qrtools.QR(data.encode("utf-8")) return qr.encode(filename=file_path) def greetings(name): return "Hello "+ name
true
true
f75bf2f6ceae045991603d81f001d682a79dff21
7,447
py
Python
test/components/event.py
cblanquera/cradlepy
1634fe38a0cc58f92dbfc2b0c84ace9d16821c3c
[ "MIT" ]
null
null
null
test/components/event.py
cblanquera/cradlepy
1634fe38a0cc58f92dbfc2b0c84ace9d16821c3c
[ "MIT" ]
null
null
null
test/components/event.py
cblanquera/cradlepy
1634fe38a0cc58f92dbfc2b0c84ace9d16821c3c
[ "MIT" ]
null
null
null
import unittest from cradlepy.components.event import * class EventStub(EventTrait): pass class EventHandlerStub(EventHandler): pass class TestEventObserver(unittest.TestCase): def setUp(self): def callback(self): return self self.instance = EventObserver(callback) def ...
31.689362
77
0.595676
import unittest from cradlepy.components.event import * class EventStub(EventTrait): pass class EventHandlerStub(EventHandler): pass class TestEventObserver(unittest.TestCase): def setUp(self): def callback(self): return self self.instance = EventObserver(callback) def ...
true
true
f75bf304578990a7e31998e7a38e64b93e4d5fef
614
py
Python
graphgallery/nn/metrics/pytorch/metric.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
300
2020-08-09T04:27:41.000Z
2022-03-30T07:43:41.000Z
graphgallery/nn/metrics/pytorch/metric.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
5
2020-11-05T06:16:50.000Z
2021-12-11T05:05:22.000Z
graphgallery/nn/metrics/pytorch/metric.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
51
2020-09-23T15:37:12.000Z
2022-03-05T01:28:56.000Z
import torch from torch import nn class Metric(nn.Module): def __init__(self, name=None, **kwargs): super().__init__() self.name = name self.reset_states() def forward(self, *args, **kwargs): raise NotImplementedError def update_state(self): raise ...
21.172414
45
0.592834
import torch from torch import nn class Metric(nn.Module): def __init__(self, name=None, **kwargs): super().__init__() self.name = name self.reset_states() def forward(self, *args, **kwargs): raise NotImplementedError def update_state(self): raise ...
true
true
f75bf31d5fd6e5dee88255f9e325d8ca61b5e8f1
791
py
Python
areas/migrations/0003_add_contract_zone_contractor.py
jannetasa/haravajarjestelma
419f23656306d94ae4d9a8d3477a6325cc80b601
[ "MIT" ]
null
null
null
areas/migrations/0003_add_contract_zone_contractor.py
jannetasa/haravajarjestelma
419f23656306d94ae4d9a8d3477a6325cc80b601
[ "MIT" ]
79
2018-11-26T09:43:41.000Z
2022-02-10T08:19:11.000Z
areas/migrations/0003_add_contract_zone_contractor.py
jannetasa/haravajarjestelma
419f23656306d94ae4d9a8d3477a6325cc80b601
[ "MIT" ]
3
2018-11-27T08:08:22.000Z
2022-03-25T08:30:34.000Z
# Generated by Django 2.1.3 on 2019-02-28 19:40 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("areas", "0002_add_contra...
27.275862
66
0.604298
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("areas", "0002_add_contract_zone_contact_fields"), ] operations ...
true
true
f75bf499dfe3820e76a1d5e9953d7e2d434cde4a
3,932
py
Python
django/contrib/admindocs/utils.py
ericholscher/django
b9a90b371c90a987ed57f7a4a7cc1274c432b438
[ "BSD-3-Clause" ]
1
2015-11-08T11:42:08.000Z
2015-11-08T11:42:08.000Z
django/contrib/admindocs/utils.py
ericholscher/django
b9a90b371c90a987ed57f7a4a7cc1274c432b438
[ "BSD-3-Clause" ]
null
null
null
django/contrib/admindocs/utils.py
ericholscher/django
b9a90b371c90a987ed57f7a4a7cc1274c432b438
[ "BSD-3-Clause" ]
null
null
null
"Misc. utility functions/classes for admin documentation generator." import re from email.parser import HeaderParser from email.errors import HeaderParseError from django.utils.safestring import mark_safe from django.core.urlresolvers import reverse from django.utils.encoding import force_bytes try: import docuti...
33.042017
140
0.651577
import re from email.parser import HeaderParser from email.errors import HeaderParseError from django.utils.safestring import mark_safe from django.core.urlresolvers import reverse from django.utils.encoding import force_bytes try: import docutils.core import docutils.nodes import docutils.parsers.rst.rol...
true
true
f75bf539012371e80b25cb9bdeb75cd69b03b304
1,325
py
Python
010_XRDAnalysis/FeNi/FeNi_DAC11_P8a_030/Fit_XRD_Input.py
r-a-morrison/fe_alloy_sound_velocities
8da1b0d073e93fb4b4be3d61b73e58b7a7a3097b
[ "MIT" ]
null
null
null
010_XRDAnalysis/FeNi/FeNi_DAC11_P8a_030/Fit_XRD_Input.py
r-a-morrison/fe_alloy_sound_velocities
8da1b0d073e93fb4b4be3d61b73e58b7a7a3097b
[ "MIT" ]
null
null
null
010_XRDAnalysis/FeNi/FeNi_DAC11_P8a_030/Fit_XRD_Input.py
r-a-morrison/fe_alloy_sound_velocities
8da1b0d073e93fb4b4be3d61b73e58b7a7a3097b
[ "MIT" ]
null
null
null
# What file are we fitting? file_name = 'FeNi_DAC11_P8a_030' # What NRIXS experiment does this correspond to? NRIXSexp = 'FeNi_DAC11_P8' # How many background parameters do we need to fit the background? bg_par_num = 4 # What range should we fit data in? range_2theta = [22,30] primaryphase = 'hcp FeNi' # What phase...
31.547619
81
0.655094
file_name = 'FeNi_DAC11_P8a_030' NRIXSexp = 'FeNi_DAC11_P8' bg_par_num = 4 range_2theta = [22,30] primaryphase = 'hcp FeNi' phasedict = {'hcp FeNi': 'hcp', 'extrapeak': 'bcc'} peakintdict = {'hcp FeNi': 100, 'extrapeak': 100} peaknumdict = {'hcp FeNi': 3, 'extrapeak': 1}...
true
true
f75bf707c093f65884ec3f4513ef187852712671
8,606
py
Python
aviary/scripts/write_vamb_bins.py
wwood/aviary
1700fb58c31621fd0929c9a58bcc6e51d6d09f20
[ "BSD-3-Clause" ]
null
null
null
aviary/scripts/write_vamb_bins.py
wwood/aviary
1700fb58c31621fd0929c9a58bcc6e51d6d09f20
[ "BSD-3-Clause" ]
null
null
null
aviary/scripts/write_vamb_bins.py
wwood/aviary
1700fb58c31621fd0929c9a58bcc6e51d6d09f20
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ############################################################################### # flight.py - A fast binning algorithm spinning off of the methodology of # Lorikeet ############################################################################### # ...
39.296804
207
0.427028
from Bio import SeqIO from flock.__init__ import __version__ __author__ = "Rhys Newell" __copyright__ = "Copyright 2020" __credits__ = ["Rhys Newell"] __license__ = "GPL3" __maintainer__ = "Rhys Newell" __email__ = "rhys.newell near hdr.qut.edu.au" __status__ = "Development" import sys import argparse impo...
true
true
f75bf8c2960d7b4c5869c77dfc6e17790672fcc5
956
py
Python
experiments/test/yolo_air_math.py
alcinos/auto_yolo
78727596f937b38d4de47dd9f0a7cc8c6104323f
[ "MIT" ]
54
2018-12-10T21:08:42.000Z
2022-02-18T02:44:19.000Z
experiments/test/yolo_air_math.py
alcinos/auto_yolo
78727596f937b38d4de47dd9f0a7cc8c6104323f
[ "MIT" ]
8
2019-04-02T10:31:13.000Z
2022-03-31T13:44:25.000Z
experiments/test/yolo_air_math.py
alcinos/auto_yolo
78727596f937b38d4de47dd9f0a7cc8c6104323f
[ "MIT" ]
16
2019-04-26T11:45:08.000Z
2022-02-09T07:59:25.000Z
from auto_yolo import envs readme = "Testing yolo_air variational autoencoder with math." distributions = None durations = dict( long=dict( max_hosts=1, ppn=6, cpp=2, gpu_set="0,1", wall_time="24hours", project="rpp-bengioy", cleanup_time="20mins", slack_time="5mins", n_repeats=6, step_ti...
32.965517
73
0.675732
from auto_yolo import envs readme = "Testing yolo_air variational autoencoder with math." distributions = None durations = dict( long=dict( max_hosts=1, ppn=6, cpp=2, gpu_set="0,1", wall_time="24hours", project="rpp-bengioy", cleanup_time="20mins", slack_time="5mins", n_repeats=6, step_ti...
true
true
f75bf8e2c461f351d69b5a8e3db15b88b60151aa
688
py
Python
core/migrations/0003_ingredient.py
kazi-akib-abdullah/recipe-app-api
05d6834ad681412bad21039228256cb8495e9441
[ "MIT" ]
null
null
null
core/migrations/0003_ingredient.py
kazi-akib-abdullah/recipe-app-api
05d6834ad681412bad21039228256cb8495e9441
[ "MIT" ]
null
null
null
core/migrations/0003_ingredient.py
kazi-akib-abdullah/recipe-app-api
05d6834ad681412bad21039228256cb8495e9441
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-03-21 17:23 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0002_tag'), ] operations = [ migrations.CreateModel( n...
28.666667
118
0.619186
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0002_tag'), ] operations = [ migrations.CreateModel( name='Ingredient', fields=[ ...
true
true
f75bfa343ae1ed41f91e37771742cc754875a990
11,580
py
Python
oeuanalitico-posts/nfe/preprocessing/functions.py
netoferraz/oeuanalitico-posts
fc5799a2c77de1133f4f3f6b9f048b0fb3de6ba7
[ "MIT" ]
null
null
null
oeuanalitico-posts/nfe/preprocessing/functions.py
netoferraz/oeuanalitico-posts
fc5799a2c77de1133f4f3f6b9f048b0fb3de6ba7
[ "MIT" ]
8
2019-02-22T15:19:04.000Z
2019-03-22T02:08:51.000Z
oeuanalitico-posts/nfe/preprocessing/functions.py
netoferraz/oeuanalitico-posts
fc5799a2c77de1133f4f3f6b9f048b0fb3de6ba7
[ "MIT" ]
null
null
null
import pandas as pd from pathlib import Path from collections import Counter import datetime from collections import defaultdict from faker import Factory import faker from preprocessing.nfeProvider import Invoice import csv def convert_to_numeric(num): """ Converte strings que representam valores monetários ...
41.357143
136
0.601813
import pandas as pd from pathlib import Path from collections import Counter import datetime from collections import defaultdict from faker import Factory import faker from preprocessing.nfeProvider import Invoice import csv def convert_to_numeric(num): num = num.strip() if num != "": num = num.replac...
true
true
f75bfc6bd70d285e8df66e56086560c9c887971c
30,707
py
Python
tests/test_actionAngleTorus.py
turnergarrow/galpy
7132eddbf2dab491fe137790e31eacdc604b0534
[ "BSD-3-Clause" ]
null
null
null
tests/test_actionAngleTorus.py
turnergarrow/galpy
7132eddbf2dab491fe137790e31eacdc604b0534
[ "BSD-3-Clause" ]
null
null
null
tests/test_actionAngleTorus.py
turnergarrow/galpy
7132eddbf2dab491fe137790e31eacdc604b0534
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, division import os import sys import pytest import warnings import numpy from galpy.util import galpyWarning from test_actionAngle import reset_warning_registry _TRAVIS= bool(os.getenv('TRAVIS')) PY2= sys.version < '3' # Print all galpyWarnings always for tests of warnings warning...
52.851979
184
0.702055
from __future__ import print_function, division import os import sys import pytest import warnings import numpy from galpy.util import galpyWarning from test_actionAngle import reset_warning_registry _TRAVIS= bool(os.getenv('TRAVIS')) PY2= sys.version < '3' warnings.simplefilter("always",galpyWarning) def test_actionA...
true
true
f75bfc80ba06347746ca5b0e668bb4fd2e636d1c
845
py
Python
MoRT/mort/plot_corr/compute_userstudy_scores.py
ml-research/MoRT_NMI
98dc14f42714b1b794d685507c01b593cde5638c
[ "MIT" ]
4
2021-04-04T13:42:34.000Z
2021-11-29T15:38:50.000Z
MoRT/mort/plot_corr/compute_userstudy_scores.py
ml-research/MoRT_NMI
98dc14f42714b1b794d685507c01b593cde5638c
[ "MIT" ]
null
null
null
MoRT/mort/plot_corr/compute_userstudy_scores.py
ml-research/MoRT_NMI
98dc14f42714b1b794d685507c01b593cde5638c
[ "MIT" ]
null
null
null
import csv import os fname = "./data/user_study/userStudy_yes_no_regional.csv" fname_out = "./data_/correlation/userStudy_scores_regional.csv" sentences_ = list() actions = list() bias_dict = dict() with open(fname, "r") as f: for i, line in enumerate(f.readlines()): if i == 0: continue ...
26.40625
64
0.613018
import csv import os fname = "./data/user_study/userStudy_yes_no_regional.csv" fname_out = "./data_/correlation/userStudy_scores_regional.csv" sentences_ = list() actions = list() bias_dict = dict() with open(fname, "r") as f: for i, line in enumerate(f.readlines()): if i == 0: continue ...
true
true
f75bfdf651f04efe7fa0034a378df66e13de5648
5,005
bzl
Python
generated_api_shadow/bazel/repository_locations.bzl
xiaobinxbw/envoy
4e1146ba4c55ad0ef89e5cf51a0046b998812aa1
[ "Apache-2.0" ]
1
2021-09-09T01:33:32.000Z
2021-09-09T01:33:32.000Z
generated_api_shadow/bazel/repository_locations.bzl
xiaobinxbw/envoy
4e1146ba4c55ad0ef89e5cf51a0046b998812aa1
[ "Apache-2.0" ]
null
null
null
generated_api_shadow/bazel/repository_locations.bzl
xiaobinxbw/envoy
4e1146ba4c55ad0ef89e5cf51a0046b998812aa1
[ "Apache-2.0" ]
null
null
null
# This should match the schema defined in external_deps.bzl. REPOSITORY_LOCATIONS_SPEC = dict( bazel_skylib = dict( project_name = "bazel-skylib", project_desc = "Common useful functions and rules for Bazel", project_url = "https://github.com/bazelbuild/bazel-skylib", version = "1.0....
50.05
120
0.666533
REPOSITORY_LOCATIONS_SPEC = dict( bazel_skylib = dict( project_name = "bazel-skylib", project_desc = "Common useful functions and rules for Bazel", project_url = "https://github.com/bazelbuild/bazel-skylib", version = "1.0.3", sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93...
true
true
f75bfe3d16a7ba086baf76ed4c71da961afd588a
50,402
py
Python
python35/Lib/site-packages/sklearn/linear_model/ridge.py
Ombarus/python_env
4615976a51aa4f02206f5e03fc091b088d3273fc
[ "Apache-2.0" ]
null
null
null
python35/Lib/site-packages/sklearn/linear_model/ridge.py
Ombarus/python_env
4615976a51aa4f02206f5e03fc091b088d3273fc
[ "Apache-2.0" ]
null
null
null
python35/Lib/site-packages/sklearn/linear_model/ridge.py
Ombarus/python_env
4615976a51aa4f02206f5e03fc091b088d3273fc
[ "Apache-2.0" ]
1
2020-08-08T12:44:48.000Z
2020-08-08T12:44:48.000Z
""" Ridge regression """ # Author: Mathieu Blondel <mathieu@mblondel.org> # Reuben Fletcher-Costin <reuben.fletchercostin@gmail.com> # Fabian Pedregosa <fabian@fseoane.net> # Michael Eickenberg <michael.eickenberg@nsup.org> # License: BSD 3 clause from abc import ABCMeta, abstractmethod impor...
38.09675
79
0.621642
from abc import ABCMeta, abstractmethod import warnings import numpy as np from scipy import linalg from scipy import sparse from scipy.sparse import linalg as sp_linalg from .base import LinearClassifierMixin, LinearModel, _rescale_data from .sag import sag_solver from ..base import RegressorMixin from ..utils.ex...
true
true
f75bfee0011d9334651fa6f81d5b49b9ab75d084
5,757
py
Python
test/functional/mempool_persist.py
xuzicheng588/b3cc
ffee72b820f1ed7bb45514d555c49203235fc822
[ "MIT" ]
null
null
null
test/functional/mempool_persist.py
xuzicheng588/b3cc
ffee72b820f1ed7bb45514d555c49203235fc822
[ "MIT" ]
null
null
null
test/functional/mempool_persist.py
xuzicheng588/b3cc
ffee72b820f1ed7bb45514d555c49203235fc822
[ "MIT" ]
1
2020-04-23T00:46:44.000Z
2020-04-23T00:46:44.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test mempool persistence. By default, b3ccd will dump mempool on shutdown and then reload it on startu...
46.427419
207
0.701407
from decimal import Decimal import os import time from test_framework.test_framework import BitcoinTestFramework from test_framework.util import assert_equal, assert_raises_rpc_error, wait_until class MempoolPersistTest(BitcoinTestFramework): def set_test_params(self): self.num_nodes = 3 self.extr...
true
true
f75bff1ad391d109d49b7bd4002b7d942c1c4bb7
1,042
py
Python
isi_sdk_8_2_0/test/test_event_settings_settings_maintenance.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_0/test/test_event_settings_settings_maintenance.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_0/test/test_event_settings_settings_maintenance.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 7 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_2_0 from i...
25.414634
123
0.744722
from __future__ import absolute_import import unittest import isi_sdk_8_2_0 from isi_sdk_8_2_0.models.event_settings_settings_maintenance import EventSettingsSettingsMaintenance from isi_sdk_8_2_0.rest import ApiException class TestEventSettingsSettingsMaintenance(unittest.TestCase): def setUp(self): ...
true
true
f75bff47391c731fbc1f533ddbda6783150f04e3
396
py
Python
ur_ws/build/universal_robot/ur3_e_moveit_config/catkin_generated/pkg.installspace.context.pc.py
RrQqY/TableRearrangement
e03e4c2e64141dc0984dea65d336ddb6e784c82f
[ "MIT" ]
2
2022-03-14T16:01:53.000Z
2022-03-25T09:14:21.000Z
ur_ws/build/universal_robot/ur3_e_moveit_config/catkin_generated/pkg.installspace.context.pc.py
RrQqY/TableRearrangement
e03e4c2e64141dc0984dea65d336ddb6e784c82f
[ "MIT" ]
null
null
null
ur_ws/build/universal_robot/ur3_e_moveit_config/catkin_generated/pkg.installspace.context.pc.py
RrQqY/TableRearrangement
e03e4c2e64141dc0984dea65d336ddb6e784c82f
[ "MIT" ]
1
2022-03-25T07:16:57.000Z
2022-03-25T07:16:57.000Z
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "ur3_e_moveit_config" PROJECT_SPACE_DI...
44
68
0.719697
CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "ur3_e_moveit_config" PROJECT_SPACE_DIR = "/home/rrqq/TableRearrangement/ur_ws/install" PROJECT...
true
true
f75c0043f3f95b221c359588669aa23161988542
45
py
Python
lambdata/__init__.py
jpeone/lambdata-pt4
37bc77dedf365b8af20c0f33474cce0726b2e912
[ "MIT" ]
null
null
null
lambdata/__init__.py
jpeone/lambdata-pt4
37bc77dedf365b8af20c0f33474cce0726b2e912
[ "MIT" ]
1
2021-02-02T22:56:56.000Z
2021-02-02T22:56:56.000Z
lambdata/__init__.py
jpeone/lambdata-pt4
37bc77dedf365b8af20c0f33474cce0726b2e912
[ "MIT" ]
null
null
null
# lambdata/__init__.py # nothing to see here
15
22
0.755556
true
true
f75c01986e2b42c0e252dd48f657d77ce48c4caf
6,247
py
Python
qa/rpc-tests/p2p-versionbits-warning.py
cryptosurance/energi
0de140747aef369ae82ae658a44d62509a9d053b
[ "MIT" ]
1
2018-11-30T12:11:58.000Z
2018-11-30T12:11:58.000Z
qa/rpc-tests/p2p-versionbits-warning.py
cryptosurance/energi
0de140747aef369ae82ae658a44d62509a9d053b
[ "MIT" ]
null
null
null
qa/rpc-tests/p2p-versionbits-warning.py
cryptosurance/energi
0de140747aef369ae82ae658a44d62509a9d053b
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework fro...
38.801242
149
0.662238
from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * import time from test_framework.blocktools import create_block, create_coinbase VB_PERIOD = 144 VB_THRESHOLD = 108 VB_TOP_BITS = 0x20000000 VB_UNKNOWN_BIT = 27 class TestNode(NodeCo...
true
true
f75c01e0391c62f2fa4225c0b409b260f499dcb9
2,420
py
Python
nova/tests/functional/api_sample_tests/test_flavors.py
mmnelemane/nova_stable_juno
e049553c7312480080091ad2481dcaf49113d571
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/api_sample_tests/test_flavors.py
mmnelemane/nova_stable_juno
e049553c7312480080091ad2481dcaf49113d571
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/api_sample_tests/test_flavors.py
mmnelemane/nova_stable_juno
e049553c7312480080091ad2481dcaf49113d571
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Nebula, Inc. # Copyright 2013 IBM Corp. # # 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...
41.016949
78
0.694215
from oslo_config import cfg from nova.tests.functional.api_sample_tests import api_sample_base CONF = cfg.CONF CONF.import_opt('osapi_compute_extension', 'nova.api.openstack.compute.legacy_v2.extensions') class FlavorsSampleJsonTest(api_sample_base.ApiSampleTestBaseV3): sample_dir = 'flavors' ...
true
true
f75c02cb865e03c667ef1717f7726c836940a042
7,355
py
Python
Autocoders/src/generators/visitors/InstanceTopologyEventsHTMLVisitor.py
lydiaxing/fprime
f6b3e03f89e9aca1614243c9896d4a72aa0cc726
[ "Apache-2.0" ]
2
2020-09-08T05:39:05.000Z
2021-05-04T14:58:51.000Z
Autocoders/src/generators/visitors/InstanceTopologyEventsHTMLVisitor.py
JPLOpenSource/fprime-sw-Rel1.0
18364596c24fa369c938ef8758e5aa945ecc6a9b
[ "Apache-2.0" ]
2
2019-02-27T03:17:15.000Z
2019-03-01T22:34:30.000Z
Autocoders/src/generators/visitors/InstanceTopologyEventsHTMLVisitor.py
JPLOpenSource/fprime-sw-Rel1.0
18364596c24fa369c938ef8758e5aa945ecc6a9b
[ "Apache-2.0" ]
3
2019-02-17T20:41:15.000Z
2019-02-26T21:06:50.000Z
#!/bin/env python #=============================================================================== # NAME: InstanceTopologyHTMLVisitor.py # # DESCRIPTION: A visitor responsible for the generation of HTML tables # of event ID's, etc. # # AUTHOR: reder # EMAIL: reder@jpl.nasa.gov # DATE CREATED : Sep. 13, ...
34.050926
105
0.572944
# # AUTHOR: reder # EMAIL: reder@jpl.nasa.gov # DATE CREATED : Sep. 13, 2016 # # Copyright 2016, California Institute of Technology. # ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledged. #=============================================================================== # # Python standard modules # import lo...
true
true
f75c02f4b093045a6cc9f475574c824c57ab2cad
9,456
py
Python
lib/spack/spack/test/llnl/util/cpu.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
lib/spack/spack/test/llnl/util/cpu.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
lib/spack/spack/test/llnl/util/cpu.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 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 pytest import contextlib import os.path import jsonschema import llnl.util.cpu import llnl.util.cpu.detect impo...
34.764706
79
0.669628
import pytest import contextlib import os.path import jsonschema import llnl.util.cpu import llnl.util.cpu.detect import spack.paths from llnl.util.cpu import Microarchitecture @pytest.fixture(params=[ 'linux-ubuntu18.04-broadwell', 'linux-rhel7-broadwell', 'linux-rhel7-skylake_avx512', 'linux-...
true
true
f75c02f8358cc048fb485a9dde7b4bdf195f8ab0
6,916
py
Python
nipyapi/nifi/models/component_reference_dto.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
199
2017-08-24T12:19:41.000Z
2022-03-20T14:50:17.000Z
nipyapi/nifi/models/component_reference_dto.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
275
2017-08-28T21:21:49.000Z
2022-03-29T17:57:26.000Z
nipyapi/nifi/models/component_reference_dto.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
73
2017-09-07T10:13:56.000Z
2022-02-28T10:37:21.000Z
# coding: utf-8 """ NiFi Rest API The Rest API provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
29.058824
478
0.588635
from pprint import pformat from six import iteritems import re class ComponentReferenceDTO(object): swagger_types = { 'id': 'str', 'versioned_component_id': 'str', 'parent_group_id': 'str', 'position': 'PositionDTO', 'name': 'str' } attribute_map = { '...
true
true
f75c030a86d908e12a759c37d86b0f2ba49c971b
24,076
py
Python
airflow/gcp/operators/mlengine.py
iroddis/airflow
41d6ca56f0179384470f48cc652dda17f49fef82
[ "Apache-2.0" ]
1
2019-10-10T23:53:01.000Z
2019-10-10T23:53:01.000Z
airflow/gcp/operators/mlengine.py
iroddis/airflow
41d6ca56f0179384470f48cc652dda17f49fef82
[ "Apache-2.0" ]
null
null
null
airflow/gcp/operators/mlengine.py
iroddis/airflow
41d6ca56f0179384470f48cc652dda17f49fef82
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
38.155309
107
0.632206
import re from typing import List, Optional from airflow.exceptions import AirflowException from airflow.gcp.hooks.mlengine import MLEngineHook from airflow.models import BaseOperator from airflow.utils.decorators import apply_defaults from airflow.utils.log.logging_mixin import LoggingMixin log = LoggingMixin().log ...
true
true
f75c03d3280c7cd035bed5e34df10d88cbe228fe
341
py
Python
setup.py
OwnCA/ownca-rest-api
9964e2ad5837aa8107c5a7833d617ffe6fd625b3
[ "Apache-2.0" ]
null
null
null
setup.py
OwnCA/ownca-rest-api
9964e2ad5837aa8107c5a7833d617ffe6fd625b3
[ "Apache-2.0" ]
1
2022-01-24T04:22:45.000Z
2022-01-26T20:06:35.000Z
setup.py
OwnCA/ownca-rest-api
9964e2ad5837aa8107c5a7833d617ffe6fd625b3
[ "Apache-2.0" ]
1
2022-01-22T07:18:12.000Z
2022-01-22T07:18:12.000Z
from setuptools import find_packages, setup setup( name="ownca-rest-api", version="1.0.0", url="https://github.com/ownca/ownca-rest-api", author="Kairo de Araujo", author_email="kairo@dearaujo.nl", description="OwnCA REST API", packages=find_packages(), install_requires=["flask", "flask...
26.230769
55
0.671554
from setuptools import find_packages, setup setup( name="ownca-rest-api", version="1.0.0", url="https://github.com/ownca/ownca-rest-api", author="Kairo de Araujo", author_email="kairo@dearaujo.nl", description="OwnCA REST API", packages=find_packages(), install_requires=["flask", "flask...
true
true
f75c042e20cfb0d3820ded0c43cf30ef6d555916
176
py
Python
03-machine-learning-tabular-crossection/05 - Data_Compression/05_Data_Compression/solutions/solution_01.py
abefukasawa/datascience_course
919c715598fa9529703ba340039ad82b23221a0e
[ "MIT" ]
331
2019-01-26T21:11:45.000Z
2022-03-02T11:35:16.000Z
03-machine-learning-tabular-crossection/05 - Data_Compression/05_Data_Compression/solutions/solution_01.py
abefukasawa/datascience_course
919c715598fa9529703ba340039ad82b23221a0e
[ "MIT" ]
2
2019-11-02T22:32:13.000Z
2020-04-13T10:31:11.000Z
03-machine-learning-tabular-crossection/05 - Data_Compression/solutions/solution_01.py
sn3fru/datascience_course
ee0a505134383034e09020d9b1de18904d9b2665
[ "MIT" ]
88
2019-01-25T16:53:47.000Z
2022-03-03T00:05:08.000Z
# performing preprocessing part from sklearn.preprocessing import StandardScaler sc = StandardScaler() X_train = sc.fit_transform(X_train) X_test = sc.transform(X_test)
29.333333
49
0.789773
from sklearn.preprocessing import StandardScaler sc = StandardScaler() X_train = sc.fit_transform(X_train) X_test = sc.transform(X_test)
true
true
f75c066d3ec31ec2f99d70612e1572ff45c4ae07
930
py
Python
Regression/multiple_linear_regression.py
Rupii/Machine-Learning
2b00698815efb04346d5cb980b68af76f27a5ca6
[ "MIT" ]
null
null
null
Regression/multiple_linear_regression.py
Rupii/Machine-Learning
2b00698815efb04346d5cb980b68af76f27a5ca6
[ "MIT" ]
null
null
null
Regression/multiple_linear_regression.py
Rupii/Machine-Learning
2b00698815efb04346d5cb980b68af76f27a5ca6
[ "MIT" ]
1
2019-09-04T05:43:31.000Z
2019-09-04T05:43:31.000Z
# -*- coding: utf-8 -*- """ Created on Sat Feb 24 23:18:54 2018 @author: Rupesh """ # Multiple Linear Regression import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns plt.style.use("ggplot") # loading dependies df = pd.read_csv("50_Startups.csv") df.head() X = df.iloc[:, :-...
19.787234
74
0.731183
import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns plt.style.use("ggplot") df = pd.read_csv("50_Startups.csv") df.head() X = df.iloc[:, :-1].values y = df.iloc[:, 4].values from sklearn.preprocessing import LabelEncoder, OneHotEncoder X_cat = LabelEncoder() X[:, 3] = X_ca...
true
true
f75c0795f745173ad65e3c17043a7948a525f037
3,855
py
Python
verto/tests/ScratchInlineTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/tests/ScratchInlineTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/tests/ScratchInlineTest.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
import markdown from verto.VertoExtension import VertoExtension from verto.tests.ProcessorTest import ProcessorTest class ScratchInlineTest(ProcessorTest): '''Scratch blocks are unique in that they override behaviour in markdown. ''' def __init__(self, *args, **kwargs): '''Sets name for loading t...
54.295775
164
0.748119
import markdown from verto.VertoExtension import VertoExtension from verto.tests.ProcessorTest import ProcessorTest class ScratchInlineTest(ProcessorTest): def __init__(self, *args, **kwargs): ProcessorTest.__init__(self, *args, **kwargs) self.processor_name = 'scratch-inline' def setUp(self...
true
true
f75c08999077e6068aa8c359d5ffe7cacef1f79d
1,295
py
Python
tests/test_tutorial/test_options/test_completion/test_tutorial008.py
KBoehme/typer
2a1abdec64c068d7e7c79dc42a9f7930fb578dff
[ "MIT" ]
1
2020-06-26T02:32:01.000Z
2020-06-26T02:32:01.000Z
tests/test_tutorial/test_options/test_completion/test_tutorial008.py
KBoehme/typer
2a1abdec64c068d7e7c79dc42a9f7930fb578dff
[ "MIT" ]
null
null
null
tests/test_tutorial/test_options/test_completion/test_tutorial008.py
KBoehme/typer
2a1abdec64c068d7e7c79dc42a9f7930fb578dff
[ "MIT" ]
null
null
null
import os import subprocess import typer from typer.testing import CliRunner from options.autocompletion import tutorial008 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_completion(): result = subprocess.run( ["coverage", "run", mod.__file__, " "], stdout=sub...
26.428571
76
0.625483
import os import subprocess import typer from typer.testing import CliRunner from options.autocompletion import tutorial008 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_completion(): result = subprocess.run( ["coverage", "run", mod.__file__, " "], stdout=sub...
true
true
f75c08c886aa95c0895e885878435bd998cc0cee
3,097
py
Python
package/spack-tetgen/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
1
2018-07-17T07:45:09.000Z
2018-07-17T07:45:09.000Z
package/spack-tetgen/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
package/spack-tetgen/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
39.202532
114
0.646432
from spack import * import glob class Tetgen(Package): homepage = "http://wias-berlin.de/software/tetgen/" version('1.5.0', '3b9fd9cdec121e52527b0308f7aad5c1', url='http://www.tetgen.org/1.5/src/tetgen1.5.0.tar.gz') version('1.4.3', 'd6a4bcdde2ac804f7ec66c29dcb63c18', url='http://www.tetgen.org/files/t...
true
true
f75c0930d79d99eabcfe3fa157e17baf70c4fd78
16,473
py
Python
virtual/lib/python3.6/site-packages/pip/cmdoptions.py
najma-amin/News-Highlights
caad6c5af7650c2cc8490f100d070573fe18f6a6
[ "MIT" ]
62
2020-04-26T08:34:35.000Z
2022-01-13T14:16:29.000Z
virtual/lib/python3.6/site-packages/pip/cmdoptions.py
najma-amin/News-Highlights
caad6c5af7650c2cc8490f100d070573fe18f6a6
[ "MIT" ]
59
2018-06-27T02:39:35.000Z
2019-06-20T20:36:09.000Z
virtual/lib/python3.6/site-packages/pip/cmdoptions.py
najma-amin/News-Highlights
caad6c5af7650c2cc8490f100d070573fe18f6a6
[ "MIT" ]
84
2020-04-26T08:03:18.000Z
2021-09-05T02:42:14.000Z
""" shared options and groups The principle here is to define options once, but *not* instantiate them globally. One reason being that options with action='append' can carry state between parses. pip parses general options twice internally, and shouldn't pass on state. To be consistent, all options will follow this de...
25.98265
79
0.62223
from __future__ import absolute_import from functools import partial from optparse import OptionGroup, SUPPRESS_HELP, Option import warnings from pip.index import ( FormatControl, fmt_ctl_handle_mutual_exclude, fmt_ctl_no_binary, fmt_ctl_no_use_wheel) from pip.models import PyPI from pip.locations import USER...
true
true
f75c09621f9ec1472bb00ea3aa44c7be74d3299b
1,768
py
Python
tests/plugins/test_8_day.py
slimsevernake/osbb-bot
3a6b9512523a5374034c2f1cdb83ea5cd6de0ac8
[ "MIT" ]
9
2018-08-19T12:55:58.000Z
2021-07-17T15:38:40.000Z
tests/plugins/test_8_day.py
slimsevernake/osbb-bot
3a6b9512523a5374034c2f1cdb83ea5cd6de0ac8
[ "MIT" ]
124
2018-07-31T13:43:58.000Z
2022-03-11T23:27:43.000Z
tests/plugins/test_8_day.py
slimsevernake/osbb-bot
3a6b9512523a5374034c2f1cdb83ea5cd6de0ac8
[ "MIT" ]
3
2019-10-21T13:18:14.000Z
2021-02-09T11:05:10.000Z
import sys import unittest from typing import List from unittest.mock import MagicMock from src.dayof.day_8.model import random_gift_text sys.modules['telegram'] = MagicMock() sys.modules['telegram.ext'] = MagicMock() sys.modules['src.commands'] = MagicMock() sys.modules['src.config'] = MagicMock() sys.modules['src.c...
35.36
93
0.664027
import sys import unittest from typing import List from unittest.mock import MagicMock from src.dayof.day_8.model import random_gift_text sys.modules['telegram'] = MagicMock() sys.modules['telegram.ext'] = MagicMock() sys.modules['src.commands'] = MagicMock() sys.modules['src.config'] = MagicMock() sys.modules['src.c...
true
true