hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
e8ae32527b28281fb22206e4bce402625c508b14
4,030
py
Python
easy_efficientdet/_third_party/training.py
waldemarmeier/easy-efficientdet
1329f497fdfd0542ee0db074020c4db351b1aa57
[ "Apache-2.0" ]
null
null
null
easy_efficientdet/_third_party/training.py
waldemarmeier/easy-efficientdet
1329f497fdfd0542ee0db074020c4db351b1aa57
[ "Apache-2.0" ]
null
null
null
easy_efficientdet/_third_party/training.py
waldemarmeier/easy-efficientdet
1329f497fdfd0542ee0db074020c4db351b1aa57
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google Research. 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 law...
39.90099
87
0.624318
e8ae3c7690a081de94ae1d457a43be2a4b207f4e
22,057
py
Python
sysinv/sysinv/sysinv/sysinv/api/controllers/v1/storage_tier.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/api/controllers/v1/storage_tier.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/api/controllers/v1/storage_tier.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2017 UnitedStack Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache....
38.901235
96
0.590425
e8ae4d512942a7c28d67e5c0e7dd1aa96cd5edf9
514
py
Python
cdp_scrapers/types.py
AZIZXlaouiti/cdp-scrapers
4b23cb45c5b2c3a3914494ef39e3e604e893d954
[ "MIT" ]
null
null
null
cdp_scrapers/types.py
AZIZXlaouiti/cdp-scrapers
4b23cb45c5b2c3a3914494ef39e3e604e893d954
[ "MIT" ]
null
null
null
cdp_scrapers/types.py
AZIZXlaouiti/cdp-scrapers
4b23cb45c5b2c3a3914494ef39e3e604e893d954
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from typing import Dict, NamedTuple, Optional from cdp_backend.pipeline.ingestion_models import ( Body, Person, Seat, ) ############################################################################### class ContentURIs(NamedTuple): video_uri: Optional[str...
22.347826
79
0.581712
e8ae54a5843dfe3d6c521bb5c6e5c19e894a5006
3,284
py
Python
ibmsecurity/isam/base/runtime/tuning_parameters.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
2
2019-12-05T13:51:10.000Z
2019-12-20T08:02:35.000Z
ibmsecurity/isam/base/runtime/tuning_parameters.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
null
null
null
ibmsecurity/isam/base/runtime/tuning_parameters.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
1
2020-04-03T09:30:01.000Z
2020-04-03T09:30:01.000Z
import logging logger = logging.getLogger(__name__) requires_modules = ["mga", "federation"] def get(isamAppliance, check_mode=False, force=False): """ Get runtime tuning settings """ return isamAppliance.invoke_get("Retrieving runtime tuning parameters", "/mga/run...
32.514851
119
0.640987
e8ae5e6b1f14707e3228a3dfac8ace8ad4c1e4e8
943
py
Python
Hackkerank/Python Challenges/collections_challenge.py
peternewman22/Python_Coding-Challenges
a64a5a908e7bf30c775d26e1f115003209ea89ea
[ "MIT" ]
null
null
null
Hackkerank/Python Challenges/collections_challenge.py
peternewman22/Python_Coding-Challenges
a64a5a908e7bf30c775d26e1f115003209ea89ea
[ "MIT" ]
null
null
null
Hackkerank/Python Challenges/collections_challenge.py
peternewman22/Python_Coding-Challenges
a64a5a908e7bf30c775d26e1f115003209ea89ea
[ "MIT" ]
null
null
null
from collections import Counter import logging LOG_FORMAT = "%(levelname)s %(asctime)s - %(message)s" logging.basicConfig(filename = "log_collections_challenge.log", level = logging.DEBUG, format = LOG_FORMAT, filemode = 'w') # make a root logger logger = l...
20.955556
76
0.583245
e8ae7610b74a4648d2b5a349897a71db39f8360f
14,815
py
Python
multi_person_demo.py
david8862/tf-keras-simple-baselines-keypoint-detection
091ab3fde4cecaf35a6582148fbf1bd4247d69d5
[ "MIT" ]
null
null
null
multi_person_demo.py
david8862/tf-keras-simple-baselines-keypoint-detection
091ab3fde4cecaf35a6582148fbf1bd4247d69d5
[ "MIT" ]
null
null
null
multi_person_demo.py
david8862/tf-keras-simple-baselines-keypoint-detection
091ab3fde4cecaf35a6582148fbf1bd4247d69d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os, sys, argparse import cv2 from PIL import Image import numpy as np import time from timeit import default_timer as timer from tensorflow.keras.models import Model, load_model import tensorflow.keras.backend as K from simple_baselines.model import get_simple_base...
38.884514
161
0.646912
e8ae8b057f4f16b46ce69a7505db157ef2dea867
3,063
py
Python
Part1/data_format.py
ParashRahman/Database-Project
3a934d82289b58dcf83497b658970b2d336c1fba
[ "Apache-2.0" ]
null
null
null
Part1/data_format.py
ParashRahman/Database-Project
3a934d82289b58dcf83497b658970b2d336c1fba
[ "Apache-2.0" ]
null
null
null
Part1/data_format.py
ParashRahman/Database-Project
3a934d82289b58dcf83497b658970b2d336c1fba
[ "Apache-2.0" ]
null
null
null
""" Usage: import this using "from data_format import data_formats_info". Then data_formats_info.method_name(). Contains information about the data types of fields of the respective tables. We will use these information and notify user when they make an input error """ class data_formats_info: def people(): prin...
36.464286
153
0.686255
e8ae954013083d06da9c1af5c0c4998efe349db9
13,008
py
Python
rlbase/algos/ddpg/ddpg.py
sahandrez/rlbase
e5ef2a8f4ef0d142c4de41a7aea1bf9bb7708e7e
[ "BSD-3-Clause" ]
null
null
null
rlbase/algos/ddpg/ddpg.py
sahandrez/rlbase
e5ef2a8f4ef0d142c4de41a7aea1bf9bb7708e7e
[ "BSD-3-Clause" ]
4
2020-03-13T21:14:41.000Z
2020-03-18T01:52:53.000Z
rlbase/algos/ddpg/ddpg.py
sahandrez/rlbase
e5ef2a8f4ef0d142c4de41a7aea1bf9bb7708e7e
[ "BSD-3-Clause" ]
null
null
null
from copy import deepcopy import numpy as np import torch from torch.optim import Adam import gym import time import rlbase.algos.ddpg.core as core from rlbase.utils.logx import EpochLogger class ReplayBuffer: """ A simple FIFO experience replay buffer for DDPG agents. """ def __init__(self, obs_dim,...
39.658537
90
0.604859
e8ae99e3f8393ca9bd888d7419b780539db82124
6,555
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v1beta1_storage_class_list.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1beta1_storage_class_list.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1beta1_storage_class_list.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1bet...
33.106061
295
0.622121
e8ae9da890189e0645242d88e83bb6873c637840
14,147
py
Python
pixiu/pxtester.py
tradepython/pixiu
8f4639c2b3b620e641e5cd19842c007707f26e12
[ "Apache-2.0" ]
3
2021-07-12T10:50:26.000Z
2022-02-24T10:30:03.000Z
pixiu/pxtester.py
tradepython/pixiu
8f4639c2b3b620e641e5cd19842c007707f26e12
[ "Apache-2.0" ]
null
null
null
pixiu/pxtester.py
tradepython/pixiu
8f4639c2b3b620e641e5cd19842c007707f26e12
[ "Apache-2.0" ]
null
null
null
# env import csv import json import time import dateutil import hashlib import traceback import numpy as np import pandas as pd from datetime import timedelta, datetime from urllib.parse import urlencode from urllib.request import Request, urlopen from pathlib import Path # from pixiu.api import (TimeFrame, ) from pix...
42.483483
153
0.557857
e8aea766d5c9dff48781910653dc43908519184d
4,276
py
Python
dnspc/server.py
chepazzo/dnspc
b12ab0abafd8bfcee39ab7d6db632a3599888c5b
[ "MIT" ]
null
null
null
dnspc/server.py
chepazzo/dnspc
b12ab0abafd8bfcee39ab7d6db632a3599888c5b
[ "MIT" ]
null
null
null
dnspc/server.py
chepazzo/dnspc
b12ab0abafd8bfcee39ab7d6db632a3599888c5b
[ "MIT" ]
null
null
null
#/usr/bin/env python # -*- coding: utf-8 -*- ## Add or save rule to ruleset via POST to /saverule: ## curl -i -H "Content-Type: application/json" -X POST -d '{"mac":"192.168.0.134","dow":"0,1,2,3,4","time_start":"18:00","time_end:"23:59","domain":"youtube.com","action":"block"}' http://localhost:5000/saverule import ...
26.559006
211
0.641955
e8aea88fdd56b7db3fec0068f4958b5de3212709
11,431
py
Python
test/include_exclude_ignore_refs_test.py
lechat/multiconf
c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3
[ "BSD-3-Clause" ]
null
null
null
test/include_exclude_ignore_refs_test.py
lechat/multiconf
c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3
[ "BSD-3-Clause" ]
null
null
null
test/include_exclude_ignore_refs_test.py
lechat/multiconf
c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012 Lars Hupfeldt Nielsen, Hupfeldt IT # All rights reserved. This work is under a BSD license, see LICENSE.TXT. # pylint: disable=E0611 from pytest import raises from .utils.utils import config_error, lineno, assert_lines_in from .utils.compare_json import compare_json from .. import ConfigRoot, Co...
31.930168
103
0.561018
e8aea92176ac78100069cdbea07d36016b7d547a
3,277
py
Python
Gcode_gen/gen.py
jeremyDudo/gcodeEditor
e97b23b9b40f07416c03bfafd3feedd01ce14268
[ "MIT" ]
null
null
null
Gcode_gen/gen.py
jeremyDudo/gcodeEditor
e97b23b9b40f07416c03bfafd3feedd01ce14268
[ "MIT" ]
null
null
null
Gcode_gen/gen.py
jeremyDudo/gcodeEditor
e97b23b9b40f07416c03bfafd3feedd01ce14268
[ "MIT" ]
null
null
null
import numpy as np import datetime class syringe(): def __init__(self, text=True): """ Note: not modular yet, setting constants for now! Components: resting: resting height such that the syringe does not knock over any vials when moveing [mm] in_tube; h...
26.860656
106
0.529143
e8aea953ca66f50f4a70bdb53a4c68cabbd80311
6,470
py
Python
utils/pynche/ListViewer.py
notatallshaw/Grail-0.6
2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43
[ "CNRI-Jython" ]
22
2021-05-17T07:01:04.000Z
2021-10-31T09:03:29.000Z
utils/pynche/ListViewer.py
notatallshaw/Grail-0.6
2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43
[ "CNRI-Jython" ]
17
2021-05-17T04:39:49.000Z
2021-09-06T14:50:39.000Z
utils/pynche/ListViewer.py
notatallshaw/Grail-0.6
2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43
[ "CNRI-Jython" ]
6
2021-05-17T07:37:01.000Z
2022-01-09T10:26:24.000Z
"""ListViewer class. This class implements an input/output view on the color model. It lists every unique color (e.g. unique r/g/b value) found in the color database. Each color is shown by small swatch and primary color name. Some colors have aliases -- more than one name for the same r/g/b value. These aliases a...
38.742515
78
0.559351
e8aeaa67c59b519e55972ba40a347ce54cb72cf9
14,043
py
Python
pulser-core/pulser/register/_reg_drawer.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
pulser-core/pulser/register/_reg_drawer.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
pulser-core/pulser/register/_reg_drawer.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pulser Development Team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
36.100257
79
0.490422
e8aec2785cf0e0ac0cc55809f3c6ef630faec0fd
1,289
py
Python
tb-ec-gcp/modules/gcloud.py
eeaton/tb-gcp
a6a4640e8e9cf1c593e319af9deaea3661c39810
[ "Apache-2.0" ]
null
null
null
tb-ec-gcp/modules/gcloud.py
eeaton/tb-gcp
a6a4640e8e9cf1c593e319af9deaea3661c39810
[ "Apache-2.0" ]
null
null
null
tb-ec-gcp/modules/gcloud.py
eeaton/tb-gcp
a6a4640e8e9cf1c593e319af9deaea3661c39810
[ "Apache-2.0" ]
1
2021-08-31T15:13:34.000Z
2021-08-31T15:13:34.000Z
# Copyright 2019 The Tranquility Base Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
35.805556
115
0.705974
e8af2c05821d4cc720b90824c00459f43a6ea7b2
10,132
py
Python
ckan/tests/functional/test_home.py
jasonzou/ckan
d7006805cce5a7cc10901d18895f9fee2de04886
[ "BSD-3-Clause" ]
1
2016-02-11T04:51:21.000Z
2016-02-11T04:51:21.000Z
ckan/tests/functional/test_home.py
jasonzou/ckan
d7006805cce5a7cc10901d18895f9fee2de04886
[ "BSD-3-Clause" ]
null
null
null
ckan/tests/functional/test_home.py
jasonzou/ckan
d7006805cce5a7cc10901d18895f9fee2de04886
[ "BSD-3-Clause" ]
null
null
null
from pylons import c, session from pylons.i18n import set_lang from ckan.lib.create_test_data import CreateTestData from ckan.controllers.home import HomeController import ckan.model as model from ckan.tests import * from ckan.tests.html_check import HtmlCheckMethods from ckan.tests.pylons_controller import PylonsTes...
39.424125
116
0.598895
e8af3125ad1864fa24a74e985bd441320cd6f3c6
3,891
py
Python
venv/Lib/site-packages/pyrogram/methods/bots/set_game_score.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/methods/bots/set_game_score.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/methods/bots/set_game_score.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
39.30303
116
0.599332
e8af686cef71f1396fd7ef8875df8806b7c9859b
5,644
py
Python
toydata/figure_scripts/Fig2_supplements.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
11
2015-08-24T05:20:56.000Z
2021-08-13T13:58:31.000Z
toydata/figure_scripts/Fig2_supplements.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
3
2015-08-24T04:43:25.000Z
2021-07-06T00:33:44.000Z
toydata/figure_scripts/Fig2_supplements.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
3
2019-08-30T18:52:49.000Z
2021-06-15T06:47:04.000Z
import glob,sys import numpy as np sys.path.append('../../flu/src') import test_flu_prediction as test_flu import matplotlib.pyplot as plt import analysis_utils_toy_data as AU file_formats = ['.svg', '.pdf'] plt.rcParams.update(test_flu.mpl_params) line_styles = ['-', '--', '-.'] cols = ['b', 'r', 'g', 'c', 'm', 'k'...
44.793651
142
0.540751
e8af89b834e3e5df18eb1d0a52edbb2ab6084314
25,949
py
Python
ethereum/vm.py
isaiahgenis/Ethereum-Python
295975d393be3b74f7bd7dc89ce45f9d973e225a
[ "MIT" ]
5
2016-09-12T15:26:11.000Z
2018-09-17T20:27:15.000Z
ethereum/vm.py
isaiahgenis/Ethereum-Python
295975d393be3b74f7bd7dc89ce45f9d973e225a
[ "MIT" ]
null
null
null
ethereum/vm.py
isaiahgenis/Ethereum-Python
295975d393be3b74f7bd7dc89ce45f9d973e225a
[ "MIT" ]
2
2016-09-12T07:04:30.000Z
2017-02-24T20:56:59.000Z
# ####### dev hack flags ############### verify_stack_after_op = False # ###################################### import sys from ethereum import utils from ethereum.abi import is_numeric import copy from ethereum import opcodes import time from ethereum.slogging import get_logger from rlp.utils import encode_hex, a...
41.853226
100
0.496166
e8af8c1f44fd9d267c89649b1ea8309d45698326
28,292
py
Python
src/pymp4/parser.py
newdive/pymp4
a6f093f525f90d2450dc4002b210fcc5034a2791
[ "Apache-2.0" ]
null
null
null
src/pymp4/parser.py
newdive/pymp4
a6f093f525f90d2450dc4002b210fcc5034a2791
[ "Apache-2.0" ]
null
null
null
src/pymp4/parser.py
newdive/pymp4
a6f093f525f90d2450dc4002b210fcc5034a2791
[ "Apache-2.0" ]
1
2021-01-29T21:26:01.000Z
2021-01-29T21:26:01.000Z
#!/usr/bin/env python """ Copyright 2016 beardypig 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 la...
32.296804
128
0.60533
e8af97b186e4fed6506e798c0b518ec7fb37b0b4
26,975
py
Python
bridge.py
rieder/ekster
0f9a6fc534a9c69d56f25b8860a105bae5cebbe9
[ "Apache-2.0" ]
1
2022-02-05T19:43:30.000Z
2022-02-05T19:43:30.000Z
bridge.py
rieder/ekster
0f9a6fc534a9c69d56f25b8860a105bae5cebbe9
[ "Apache-2.0" ]
null
null
null
bridge.py
rieder/ekster
0f9a6fc534a9c69d56f25b8860a105bae5cebbe9
[ "Apache-2.0" ]
1
2022-02-05T19:43:38.000Z
2022-02-05T19:43:38.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ bridge-like integrator for amuse the bridge class provides a bridge like coupling between different gravitational integrators. In this way a system composed of multiple components can be evolved taking account of the self gravity of the whole system self con...
33.179582
86
0.60367
e8afa435affbc1371fa03200be45222772d4321e
10,076
py
Python
nile/common/context.py
Orpheus11/nile
b92d514f57eec9583d9e6f2a7df83506efe2a2e8
[ "Apache-2.0" ]
null
null
null
nile/common/context.py
Orpheus11/nile
b92d514f57eec9583d9e6f2a7df83506efe2a2e8
[ "Apache-2.0" ]
null
null
null
nile/common/context.py
Orpheus11/nile
b92d514f57eec9583d9e6f2a7df83506efe2a2e8
[ "Apache-2.0" ]
null
null
null
import positional import uuid # These arguments will be passed to a new context from the first available # header to support backwards compatibility. _ENVIRON_HEADERS = { 'auth_token': ['HTTP_X_AUTH_TOKEN', 'HTTP_X_STORAGE_TOKEN'], 'user': ['HTTP_X_USER_ID', 'HTTP_X_USER'], ...
40.95935
78
0.618003
e8aff7c3ea3939c9daf227b44e8cde32bdb1942f
10,874
py
Python
privex/exchange/Kraken.py
Privex/python-exchange
858d5d2499bba0169fd58763aa3214b3d4e8dc80
[ "X11" ]
null
null
null
privex/exchange/Kraken.py
Privex/python-exchange
858d5d2499bba0169fd58763aa3214b3d4e8dc80
[ "X11" ]
5
2020-08-15T17:40:52.000Z
2021-09-22T19:05:52.000Z
privex/exchange/Kraken.py
Privex/python-exchange
858d5d2499bba0169fd58763aa3214b3d4e8dc80
[ "X11" ]
1
2021-02-28T18:02:04.000Z
2021-02-28T18:02:04.000Z
from json import JSONDecodeError from typing import Set, Tuple, Optional, AsyncGenerator, Dict, List, Union from async_property import async_property from httpx import HTTPError from privex.helpers import empty, awaitable_class, r_cache_async from privex.exchange.base import PriceData, AsyncProvidesAdapter from prive...
40.423792
119
0.568052
e8afff8985823d9726432060baa5bc889bc76990
52,154
py
Python
salt/key.py
feth/salt
f4e610bb987d9529faca1f0ad1c339d3c4b3642b
[ "Apache-2.0" ]
null
null
null
salt/key.py
feth/salt
f4e610bb987d9529faca1f0ad1c339d3c4b3642b
[ "Apache-2.0" ]
1
2019-09-06T13:57:28.000Z
2019-09-06T13:57:28.000Z
salt/key.py
feth/salt
f4e610bb987d9529faca1f0ad1c339d3c4b3642b
[ "Apache-2.0" ]
1
2020-09-30T16:09:48.000Z
2020-09-30T16:09:48.000Z
# -*- coding: utf-8 -*- ''' The Salt Key backend API and interface used by the CLI. The Key class can be used to manage salt keys directly without interfacing with the CLI. ''' # Import python libs from __future__ import absolute_import, print_function import os import copy import json import stat import shutil import...
36.728169
108
0.493078
e8b008591ea25e39d87084c7781e8994b7ffc08a
113
py
Python
hayes/__init__.py
andersinno/hayes
f0843960ee71e78d3c7360ea8a77ae8b681be1be
[ "MIT" ]
2
2016-02-16T07:43:56.000Z
2018-05-13T17:31:46.000Z
hayes/__init__.py
andersinno/hayes
f0843960ee71e78d3c7360ea8a77ae8b681be1be
[ "MIT" ]
9
2017-08-17T11:34:39.000Z
2021-12-13T19:48:50.000Z
hayes/__init__.py
andersinno/hayes
f0843960ee71e78d3c7360ea8a77ae8b681be1be
[ "MIT" ]
3
2015-10-29T15:10:19.000Z
2017-01-14T18:00:45.000Z
# -*- coding: utf-8 -*- from __future__ import with_statement from hayes.conn import Hayes __all__ = ["Hayes"]
16.142857
37
0.707965
e8b05cc8d9288336923e7c42b573d815ab8e687d
10,217
py
Python
sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_quota_request_status_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_quota_request_status_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_quota_request_status_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
43.292373
185
0.64794
e8b09641b3b715355951a5ad4192ff599b63b41d
13,130
py
Python
wienerschnitzelgemeinschaft/src/shai/fastai/sub_leakCor_12.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/shai/fastai/sub_leakCor_12.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/shai/fastai/sub_leakCor_12.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
import pandas as pd #submission_df = pd.read_csv('en_res34swa_re50xt_re101xtswa_wrn_4.8.csv') submission_df = pd.read_csv('subs/en12a_original_4.8.csv') df2 = pd.read_csv('../input/test_matches_tommy.csv') for index,row in df2.iterrows(): submission_df.loc[submission_df['Id'] == row['Test'], 'Predicted'] = row...
93.120567
107
0.74425
e8b0a51f6d118969fa82c57a22a3e34a684252ea
7,528
py
Python
my_configs/ls_configs/cascade_rcnn_hrnet_w32.py
Daniel-xsy/MMDet_VisDrone2021
668d10b61a4b99dda0163b67b093cad2e699ee3b
[ "Apache-2.0" ]
null
null
null
my_configs/ls_configs/cascade_rcnn_hrnet_w32.py
Daniel-xsy/MMDet_VisDrone2021
668d10b61a4b99dda0163b67b093cad2e699ee3b
[ "Apache-2.0" ]
null
null
null
my_configs/ls_configs/cascade_rcnn_hrnet_w32.py
Daniel-xsy/MMDet_VisDrone2021
668d10b61a4b99dda0163b67b093cad2e699ee3b
[ "Apache-2.0" ]
null
null
null
_base_ = [ # '../_base_/datasets/det_visdrone_p3.py', '../_base_/datasets/det_visdrone_ped_hum_only_add_val_p3.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] # model settings model = dict( type='CascadeRCNN', pretrained='open-mmlab://msra/hrnetv2_w32', ...
35.847619
158
0.463735
e8b1107a7bea5f0855ebc51edbeacd732d2422d9
1,569
py
Python
code/part_a/db1_ninapro/inceptionv3_db1_ninapro.py
DSIP-UPatras/sEMG-based-gesture-recognition-mgeorgoula
a5f8f234aebad671b38296730f46f0b637fadc64
[ "MIT" ]
3
2019-08-22T11:24:09.000Z
2020-06-09T07:16:45.000Z
code/part_a/db1_ninapro/inceptionv3_db1_ninapro.py
DSIP-UPatras/sEMG-based-gesture-recognition-mgeorgoula
a5f8f234aebad671b38296730f46f0b637fadc64
[ "MIT" ]
1
2019-08-24T06:25:24.000Z
2019-08-24T06:25:24.000Z
code/part_a/db1_ninapro/inceptionv3_db1_ninapro.py
DSIP-UPatras/sEMG-based-gesture-recognition-mgeorgoula
a5f8f234aebad671b38296730f46f0b637fadc64
[ "MIT" ]
1
2020-05-25T02:21:35.000Z
2020-05-25T02:21:35.000Z
# -*- coding: utf-8 -*- """ Modify InceptionV3 -DB1 NinaPro """ from keras.layers import * from keras import initializers, regularizers, constraints, optimizers from keras.models import load_model, Model from keras.applications import inception_v3 import keras.backend as K import keras.utils def Inception...
30.764706
85
0.660931
e8b12d41ef43c4b89943b7cec21c3da799a1f8a5
18,822
py
Python
lib/plots.py
JaneliaSciComp/twocof
8c3d99df29b796705ba9c3316c8ea99704a2d3d5
[ "BSD-3-Clause" ]
null
null
null
lib/plots.py
JaneliaSciComp/twocof
8c3d99df29b796705ba9c3316c8ea99704a2d3d5
[ "BSD-3-Clause" ]
null
null
null
lib/plots.py
JaneliaSciComp/twocof
8c3d99df29b796705ba9c3316c8ea99704a2d3d5
[ "BSD-3-Clause" ]
null
null
null
""" this file contains the plotting routines, both the specific routines for specific plots and all the supporting routines that (eg) place labels, format axes, etc. (this stuff used to be in trackdata.py, a holdover from the days when the whole project was one monolithic file; moving plot routines to this file is p...
29.87619
93
0.590692
e8b13b971d97c6884cf61369a1248df56c27a75e
2,272
py
Python
rony/cli.py
felipe-cosse/rony
f2bed037ab73c4c74e8f3c585b1b4e0084a1244f
[ "Apache-2.0" ]
null
null
null
rony/cli.py
felipe-cosse/rony
f2bed037ab73c4c74e8f3c585b1b4e0084a1244f
[ "Apache-2.0" ]
null
null
null
rony/cli.py
felipe-cosse/rony
f2bed037ab73c4c74e8f3c585b1b4e0084a1244f
[ "Apache-2.0" ]
null
null
null
import click import os import re import sys from .writer import copy_files, write_readme_file from .validation import get_operational_system, check_version_python, check_python_compile from .__init__ import __version__ as version LOCAL_PATH = os.getcwd() logo = r""" _ __ ___ _ __ _ _ | '__/ _ \| '_ \| | | | | ...
26.418605
98
0.668574
e8b1b4e2657bca205a9726c5bc0f5c350456c768
1,325
py
Python
alipay/aop/api/response/AlipayEbppCommunityPubkeyQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayEbppCommunityPubkeyQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayEbppCommunityPubkeyQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.AccessPublicKey import AccessPublicKey class AlipayEbppCommunityPubkeyQueryResponse(AlipayResponse): def __init__(self): super(AlipayEbppCommunityPubkeyQ...
30.813953
111
0.659623
e8b1bc909b9bd025d0384b2e18a79afa439133f3
968
py
Python
rest_API/urls.py
Amithnc/rest_API
2ee62ca68e05a77197a89626f495fff4f55cbc62
[ "MIT" ]
null
null
null
rest_API/urls.py
Amithnc/rest_API
2ee62ca68e05a77197a89626f495fff4f55cbc62
[ "MIT" ]
null
null
null
rest_API/urls.py
Amithnc/rest_API
2ee62ca68e05a77197a89626f495fff4f55cbc62
[ "MIT" ]
null
null
null
"""rest_API URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
37.230769
78
0.727273
e8b1cf839edbad1f8352e4d64d7bd61b8936b688
779
py
Python
matroska_cache/dep/id.py
kolypto/py-matroska-cache
b40030f97d463aac8e3a6f4b0e0e9f081dfc92b1
[ "MIT" ]
null
null
null
matroska_cache/dep/id.py
kolypto/py-matroska-cache
b40030f97d463aac8e3a6f4b0e0e9f081dfc92b1
[ "MIT" ]
null
null
null
matroska_cache/dep/id.py
kolypto/py-matroska-cache
b40030f97d463aac8e3a6f4b0e0e9f081dfc92b1
[ "MIT" ]
null
null
null
from typing import Union from .base import DependencyBase, dataclass @dataclass class Id(DependencyBase): """ Dependency on an id of some object Usage: when the cached data includes an object, use its id to declare a dependency Example: cache.put( 'articles-list', ...
20.5
83
0.494223
e8b1d09a1e0e530a0870bc1612fd4c2b835e4e15
2,840
py
Python
oscar/lib/python2.7/site-packages/whoosh/lang/snowball/swedish.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/whoosh/lang/snowball/swedish.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/whoosh/lang/snowball/swedish.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from .bases import _ScandinavianStemmer from whoosh.compat import u class SwedishStemmer(_ScandinavianStemmer): """ The Swedish Snowball stemmer. :cvar __vowels: The Swedish vowels. :type __vowels: unicode :cvar __s_ending: Letters that may directly appear before a word final 's'. ...
35.061728
80
0.500704
e8b1d29bf5b29e117c473bef96ec81b9b719fb4e
1,408
py
Python
run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/ttLib/tables/F_F_T_M_.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
2
2019-05-24T18:19:18.000Z
2020-09-17T10:23:13.000Z
run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/ttLib/tables/F_F_T_M_.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
9
2019-06-15T21:31:27.000Z
2021-05-08T18:55:51.000Z
run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/ttLib/tables/F_F_T_M_.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
null
null
null
from fontTools.misc.py23 import * from fontTools.misc import sstruct from fontTools.misc.textTools import safeEval from ._h_e_a_d import mac_epoch_diff from . import DefaultTable import time import calendar FFTMFormat = """ > # big endian version: I FFTimeStamp: Q sourceCreated: Q sourceModified: ...
30.608696
88
0.691051
e8b1e427c8156a8d092d9580d338c7b2c031d786
32,616
py
Python
datasets/mmdet_tusimple/mmdet/models/dense_heads/lane_anchor_head.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
13
2021-10-15T15:14:45.000Z
2022-03-09T00:22:55.000Z
datasets/mmdet_tusimple/mmdet/models/dense_heads/lane_anchor_head.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
4
2021-10-17T09:04:20.000Z
2022-03-25T06:43:00.000Z
datasets/mmdet_tusimple/mmdet/models/dense_heads/lane_anchor_head.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
2
2021-11-17T11:31:35.000Z
2021-11-29T06:50:35.000Z
import torch import torch.nn as nn from mmcv.cnn import normal_init from mmdet.core import (anchor_inside_flags, build_anchor_generator, build_assigner, build_bbox_coder, build_sampler, force_fp32, images_to_levels, multi_apply, multiclass_nms, un...
45.363004
79
0.577171
e8b2013b747d0f85b39604ae113ff5fc2de0c8fa
2,848
py
Python
lib/datasets/SearchDatasetWrap.py
Mirofil/AutoDL-Projects
e7ee9fe27e5c5561a4b9fd1c1ee185677ef30893
[ "MIT" ]
3
2021-11-22T09:40:46.000Z
2022-03-02T02:15:54.000Z
lib/datasets/SearchDatasetWrap.py
Mirofil/AutoDL-Projects
e7ee9fe27e5c5561a4b9fd1c1ee185677ef30893
[ "MIT" ]
1
2022-02-26T11:00:37.000Z
2022-02-26T11:00:37.000Z
weight_sharing_nas/oneshot_nas/oneshot_nb201/lib/datasets/SearchDatasetWrap.py
rubinxin/TSE
5f55142f4c1ab482033383968f3267578575f431
[ "MIT" ]
null
null
null
################################################## # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2019 # ################################################## import torch, copy, random import torch.utils.data as data class SearchDataset(data.Dataset): def __init__(self, name, data, train_split, valid_split, direct_inde...
45.206349
228
0.669593
e8b2291c71884e47d7836f92a37e0bb726fa1532
1,728
py
Python
tests/test_imperial_walker.py
catherinedevlin/imperial-walker
34f086a3d58796c5fc04ca6ac30ac5fe0bef715e
[ "MIT" ]
6
2019-09-17T18:16:06.000Z
2021-06-29T17:40:58.000Z
tests/test_imperial_walker.py
catherinedevlin/imperial-walker
34f086a3d58796c5fc04ca6ac30ac5fe0bef715e
[ "MIT" ]
287
2019-09-24T16:52:23.000Z
2022-03-27T19:11:17.000Z
tests/test_imperial_walker.py
catherinedevlin/imperial-walker
34f086a3d58796c5fc04ca6ac30ac5fe0bef715e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `imperial_walker` package.""" import pytest from click.testing import CliRunner from imperial_walker import cli from imperial_walker.walker import ScoutWalker, Walker # @pytest.fixture # def response(): # """Sample pytest fixture. # See more at: ht...
28.327869
80
0.594329
e8b23d6a7485efe147c862ffdd9f0334502ebc2e
27,504
py
Python
deepchem/splits/splitters.py
rbharath/deepchem
8c3bcdd557abdbb380b64c2d460a73aff76fb303
[ "MIT" ]
3
2017-10-07T13:48:48.000Z
2021-06-13T09:09:03.000Z
deepchem/splits/splitters.py
rbharath/deepchem
8c3bcdd557abdbb380b64c2d460a73aff76fb303
[ "MIT" ]
1
2017-08-29T22:08:24.000Z
2017-08-29T22:08:24.000Z
deepchem/splits/splitters.py
rbharath/deepchem
8c3bcdd557abdbb380b64c2d460a73aff76fb303
[ "MIT" ]
5
2017-03-19T01:48:13.000Z
2019-02-22T01:12:03.000Z
""" Contains an abstract base class that supports chemically aware data splits. """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals __author__ = "Bharath Ramsundar, Aneesh Pappu " __copyright__ = "Copyright 2016, Stanford University" __license__ = "MIT" im...
33.955556
103
0.636126
e8b243e4d827fd751eb853357f5bb8992e637713
38,335
py
Python
trainSSL.py
drkostas/SemiSeg-Contrastive
af6b133400368911ef77f401b7673894fe6aa05c
[ "Apache-2.0" ]
null
null
null
trainSSL.py
drkostas/SemiSeg-Contrastive
af6b133400368911ef77f401b7673894fe6aa05c
[ "Apache-2.0" ]
null
null
null
trainSSL.py
drkostas/SemiSeg-Contrastive
af6b133400368911ef77f401b7673894fe6aa05c
[ "Apache-2.0" ]
null
null
null
import argparse import os import timeit import datetime import pickle from contrastive_losses import * import torch.backends.cudnn as cudnn from torch.utils import data, model_zoo import torch.nn as nn from utils.loss import CrossEntropy2d from utils.loss import CrossEntropyLoss2dPixelWiseWeighted import math from uti...
42.68931
176
0.597887
e8b251239d05e823ef9a4cdae77d590035fb5513
5,037
py
Python
deepdoctection/eval/tp_eval_callback.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
39
2021-12-14T11:05:25.000Z
2022-03-31T18:50:58.000Z
deepdoctection/eval/tp_eval_callback.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
17
2022-01-04T14:32:26.000Z
2022-03-29T14:01:36.000Z
deepdoctection/eval/tp_eval_callback.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
4
2022-01-11T16:40:17.000Z
2022-03-30T02:09:55.000Z
# -*- coding: utf-8 -*- # File: tp_eval_callback.py # Copyright 2021 Dr. Janis Meyer. 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/licen...
39.046512
111
0.688307
e8b282ae8ef4fb7fdc3b198fb71a7a793b5572fa
20,289
py
Python
pywechat/services/wechat_shake.py
OctavianLee/pywechat
d9ceae01c5da0c8341fa7b5a964f6e1f7a3a9c35
[ "MIT" ]
3
2015-05-29T15:13:32.000Z
2016-04-12T10:46:48.000Z
pywechat/services/wechat_shake.py
OctavianLee/Wechat
d9ceae01c5da0c8341fa7b5a964f6e1f7a3a9c35
[ "MIT" ]
2
2015-06-05T07:49:24.000Z
2015-11-09T02:47:54.000Z
pywechat/services/wechat_shake.py
OctavianLee/Wechat
d9ceae01c5da0c8341fa7b5a964f6e1f7a3a9c35
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pywechat.services.basic import Basic class ShakeService(Basic): """This class is an implement of the Wechat service of shaking. All request's urls come from the official documents. Link: https://mp.weixin.qq.com/wiki/home/index.html """ def bind_page( s...
29.792952
80
0.464045
e8b29afb323f46a7a65fe37c932c5004e9ffbbab
2,823
py
Python
test/api/AI/test_find_duplicates.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
1
2022-01-14T10:06:26.000Z
2022-01-14T10:06:26.000Z
test/api/AI/test_find_duplicates.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
3
2019-07-17T15:01:31.000Z
2020-12-29T09:16:10.000Z
test/api/AI/test_find_duplicates.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
null
null
null
# coding: utf-8 # ---------------------------------------------------------------------------- # <copyright company="Aspose" file="test_find_duplicates.py"> # Copyright (c) 2019 Aspose Pty Ltd. All rights reserved. # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtai...
47.847458
81
0.665604
e8b2b8db1c1d4d4813813869b389e1071b4380a8
20,441
py
Python
datadog_checks_dev/datadog_checks/dev/tooling/utils.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_dev/datadog_checks/dev/tooling/utils.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_dev/datadog_checks/dev/tooling/utils.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import csv import io import json import os import re from ast import literal_eval from datetime import datetime, timezone from json.decoder import JSONDecodeError import requests import semver import yaml...
30.692192
119
0.668363
e8b2cb45607678bd213913c70592d14c173716c7
6,871
py
Python
deeplearning/format_data.py
wadpac/SleepStageClassification
5b288995e62bbd66faa66bd932b06af8a65f8445
[ "Apache-2.0" ]
24
2019-04-15T09:18:51.000Z
2022-03-05T14:09:34.000Z
deeplearning/format_data.py
wadpac/SleepStageClassification
5b288995e62bbd66faa66bd932b06af8a65f8445
[ "Apache-2.0" ]
2
2021-01-28T01:02:06.000Z
2021-04-02T06:34:04.000Z
deeplearning/format_data.py
wadpac/SleepStageClassification
5b288995e62bbd66faa66bd932b06af8a65f8445
[ "Apache-2.0" ]
11
2019-05-30T19:27:39.000Z
2021-06-19T02:41:53.000Z
import sys,os import numpy as np import pandas as pd import h5py, math from collections import Counter # Get Euclidean Norm minus One def get_ENMO(x,y,z): enorm = np.sqrt(x*x + y*y + z*z) ENMO = np.maximum(enorm-1.0, 0.0) return ENMO # Get tilt angles def get_tilt_angles(x,y,z): angle_x = np.arctan2(x, np.sqr...
38.385475
111
0.6721
e8b2cfa6fa15bf3618380d6828faf94901f00b8c
1,497
py
Python
tests/e2e/workloads/amq/test_amq_streams.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/e2e/workloads/amq/test_amq_streams.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/e2e/workloads/amq/test_amq_streams.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
import logging import pytest import time from ocs_ci.framework.testlib import E2ETest, workloads from ocs_ci.ocs import constants from ocs_ci.ocs.amq import AMQ from ocs_ci.helpers.helpers import default_storage_class log = logging.getLogger(__name__) @pytest.fixture(scope="function") def test_fixture_amq(request):...
25.372881
82
0.661991
e8b2e19b8a5256e1836b6857f40ce1c57cf69d9a
72,405
py
Python
sdks/python/apache_beam/runners/dataflow/dataflow_runner.py
abergmeier/beam
f1360c4dd71d9880bfce7feea415457ac0647c30
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/runners/dataflow/dataflow_runner.py
abergmeier/beam
f1360c4dd71d9880bfce7feea415457ac0647c30
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/runners/dataflow/dataflow_runner.py
abergmeier/beam
f1360c4dd71d9880bfce7feea415457ac0647c30
[ "Apache-2.0" ]
1
2021-12-26T15:58:25.000Z
2021-12-26T15:58:25.000Z
# # 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 us...
42.591176
114
0.707741
e8b3045de15547fbfc97f7f34f2aed22e0ace268
7,522
py
Python
photometry/run_todo_merge.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
photometry/run_todo_merge.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
photometry/run_todo_merge.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import logging import sqlite3 import os.path import tempfile from contextlib import closing import shutil import shlex import subprocess #-------------------------------------------------------------------------------------------------- if __name__ == '__m...
36.514563
127
0.707259
e8b30de76cfec6b8d8dd86eb2f771b6262664615
1,030
py
Python
sdks/python/test/test_NotificationTargetAccountIds.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_NotificationTargetAccountIds.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_NotificationTargetAccountIds.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
25.75
115
0.747573
e8b32ea08e2adb0a50030e3da4170c77e2a399a1
13,935
py
Python
codes/src/optimize/single/optimize_vae_model_aware.py
hwangoh/uq-vae
382548e6f6dd7f9d72feff0e0752beec871db348
[ "MIT" ]
2
2021-07-28T16:47:18.000Z
2021-08-03T00:53:58.000Z
codes/src/optimize/single/optimize_vae_model_aware.py
HwanGoh/uq-vae
24a3d26987e2ec807d57601b14c68b22f3652a18
[ "MIT" ]
null
null
null
codes/src/optimize/single/optimize_vae_model_aware.py
HwanGoh/uq-vae
24a3d26987e2ec807d57601b14c68b22f3652a18
[ "MIT" ]
2
2021-09-29T08:31:46.000Z
2021-11-07T10:26:45.000Z
'''Optimization routine for the case where the model posterior possesses a diagonal covariance and the parameter-to-observable map is learned In preparation for optimization, this script will: 1) Constuct any objects necessary to be passed to the loss functionals 2) Instantiate the Metrics class 3) Instant...
47.077703
101
0.614209
e8b33036fcbeab70476a1be55192f04e122261ac
630
py
Python
test/extras/run.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
null
null
null
test/extras/run.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
14
2021-01-26T06:53:10.000Z
2022-03-14T11:16:54.000Z
test/extras/run.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2021 Snowflake Computing Inc. All right reserved. # # This script run every Python file in this directory other than this one in a subprocess # and checks their exit codes import pathlib import subprocess import sys file_ignore_list = ['run.py', '_...
30
102
0.719048
e8b330c7277ba99e337a62a955185289584b6c7f
2,840
py
Python
experiments/vitchyr/nips2018/rl_with_full_state/full_state_sawyer_torque_reach/her_td3.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/nips2018/rl_with_full_state/full_state_sawyer_torque_reach/her_td3.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/nips2018/rl_with_full_state/full_state_sawyer_torque_reach/her_td3.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import rlkit.misc.hyperparameter as hyp from rlkit.data_management.her_replay_buffer import RelabelingReplayBuffer from rlkit.envs.mujoco.sawyer_gripper_env import SawyerXYEnv from rlkit.envs.mujoco.sawyer_reach_env import SawyerReachXYEnv from rlkit.envs.mujoco.sawyer_reach_torque_env import SawyerReachTorqueEnv from ...
30.869565
100
0.580282
e8b33c61fb697b5671bf892fad420f5483e3c548
4,113
py
Python
src/ziprepo.py
gertjanklein/iris-export-builder
5b8c14429c923f653b04b78badc5dc84ad5d9ce7
[ "Apache-2.0" ]
null
null
null
src/ziprepo.py
gertjanklein/iris-export-builder
5b8c14429c923f653b04b78badc5dc84ad5d9ce7
[ "Apache-2.0" ]
null
null
null
src/ziprepo.py
gertjanklein/iris-export-builder
5b8c14429c923f653b04b78badc5dc84ad5d9ce7
[ "Apache-2.0" ]
null
null
null
""" Defines a source tree inside a zipfile """ from __future__ import annotations from typing import Sequence import logging from zipfile import ZipFile, ZipInfo from repo import Repository, RepositorySourceItem, RepositoryCspItem, RepositoryDataItem class ZipRepo(Repository): """Handle a zipped repository."""...
29.589928
89
0.579139
e8b344b51a223b1e5273e67b3b59be695106f873
159
py
Python
dfi/hparams.py
nicemanis/deep-focus-interpolation
1df772fdb9a7c9c0813a3d1d6948a07dedb4384b
[ "MIT" ]
null
null
null
dfi/hparams.py
nicemanis/deep-focus-interpolation
1df772fdb9a7c9c0813a3d1d6948a07dedb4384b
[ "MIT" ]
null
null
null
dfi/hparams.py
nicemanis/deep-focus-interpolation
1df772fdb9a7c9c0813a3d1d6948a07dedb4384b
[ "MIT" ]
null
null
null
import yaml import munch def create_hparams(path): with open(path) as f: yaml_params = yaml.safe_load(f) return munch.munchify(yaml_params)
15.9
39
0.704403
e8b34af67f6dc455999df3d8c8c62065edcdc8d9
2,046
py
Python
contrib/go/src/python/pants/contrib/go/register.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
contrib/go/src/python/pants/contrib/go/register.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
contrib/go/src/python/pants/contrib/go/register.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
1
2019-06-10T17:24:34.000Z
2019-06-10T17:24:34.000Z
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from pants.build_gra...
44.478261
99
0.757576
e8b357922af1d572d28393e9079f9ba6080ea3af
3,628
py
Python
test/BribeNet/graph/temporal/test_multiBriberRatingGraph.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
test/BribeNet/graph/temporal/test_multiBriberRatingGraph.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
test/BribeNet/graph/temporal/test_multiBriberRatingGraph.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
from copy import deepcopy from unittest import TestCase from BribeNet.bribery.temporal.nonBriber import NonBriber from BribeNet.bribery.temporal.randomBriber import RandomBriber from BribeNet.graph.temporal.noCustomerActionGraph import NoCustomerActionGraph class TestMultiBriberRatingGraph(TestCase): def setUp(...
39.434783
98
0.614112
e8b389013db68920669359d29272794f1eb3b2e2
510
py
Python
pandayoda/common/exceptions.py
PalNilsson/panda-yoda
cf3c3786ca8937c9a61730b6201edd5bfaeda022
[ "Apache-2.0" ]
null
null
null
pandayoda/common/exceptions.py
PalNilsson/panda-yoda
cf3c3786ca8937c9a61730b6201edd5bfaeda022
[ "Apache-2.0" ]
22
2018-07-26T15:54:36.000Z
2019-05-27T09:28:48.000Z
pandayoda/common/exceptions.py
PalNilsson/panda-yoda
cf3c3786ca8937c9a61730b6201edd5bfaeda022
[ "Apache-2.0" ]
3
2018-05-21T13:12:10.000Z
2019-04-02T08:41:57.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # # Authors: # - Taylor Childers (john.taylor.childers@cern.ch) class MessengerJobAlreadyRequested...
21.25
66
0.758824
e8b397c7cd3849371a8fa218de8d9a5c82c1fbbe
6,932
py
Python
inference.py
josephch405/airdialogue_model
435f36ddacc6ab07717f97b11b885f1be38b59ca
[ "Apache-2.0" ]
14
2019-11-18T06:22:39.000Z
2021-05-30T09:21:10.000Z
inference.py
josephch405/airdialogue_model
435f36ddacc6ab07717f97b11b885f1be38b59ca
[ "Apache-2.0" ]
3
2020-05-18T20:59:52.000Z
2020-07-04T23:51:04.000Z
inference.py
josephch405/airdialogue_model
435f36ddacc6ab07717f97b11b885f1be38b59ca
[ "Apache-2.0" ]
11
2019-11-19T00:58:27.000Z
2021-10-21T00:33:11.000Z
# Copyright 2019 Google LLC # # 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 applicable law or agreed to in writing, ...
40.302326
81
0.726053
e8b3a9da429acc14574592eb4c35623c3eb1bf87
112
py
Python
seml/__init__.py
cqql/seml
9c0c8fed0135508e1f151662843af6d6adf7102b
[ "MIT" ]
null
null
null
seml/__init__.py
cqql/seml
9c0c8fed0135508e1f151662843af6d6adf7102b
[ "MIT" ]
null
null
null
seml/__init__.py
cqql/seml
9c0c8fed0135508e1f151662843af6d6adf7102b
[ "MIT" ]
null
null
null
from seml.experiment import * from seml.observers import * from seml.evaluation import * __version__ = '0.3.4'
18.666667
29
0.758929
e8b3f6d1f7afa8012583f3943362ec402ed24f8a
56,368
py
Python
tests/vxlan/test_vxlan_ecmp.py
jsanghra/sonic-mgmt
9f7af402de9e8e16a33c81b31581c9e155e55430
[ "Apache-2.0" ]
null
null
null
tests/vxlan/test_vxlan_ecmp.py
jsanghra/sonic-mgmt
9f7af402de9e8e16a33c81b31581c9e155e55430
[ "Apache-2.0" ]
null
null
null
tests/vxlan/test_vxlan_ecmp.py
jsanghra/sonic-mgmt
9f7af402de9e8e16a33c81b31581c9e155e55430
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 ''' Script to automate the cases listed in VxLAN HLD document: https://github.com/Azure/SONiC/blob/8ca1ac93c8912fda7b09de9bfd51498e5038c292/doc/vxlan/Overlay%20ECMP%20with%20BFD.md#test-cases To test functionality: ./run_tests.sh -n ucs-m5-2 -d mth64-m5-2 -O -u -e -s -e --disab...
47.169874
196
0.64863
e8b4189c10a898725008207a63190915147adcaf
6,251
py
Python
tortoise/backends/sqlite/client.py
nsidnev/tortoise-orm
e6870a22414862068cbfcc1c94d23ab4f6817f2a
[ "Apache-2.0" ]
null
null
null
tortoise/backends/sqlite/client.py
nsidnev/tortoise-orm
e6870a22414862068cbfcc1c94d23ab4f6817f2a
[ "Apache-2.0" ]
null
null
null
tortoise/backends/sqlite/client.py
nsidnev/tortoise-orm
e6870a22414862068cbfcc1c94d23ab4f6817f2a
[ "Apache-2.0" ]
null
null
null
import asyncio import logging import os import sqlite3 from functools import wraps from typing import List, Optional # noqa import aiosqlite from tortoise.backends.base.client import ( BaseDBAsyncClient, BaseTransactionWrapper, Capabilities, ConnectionWrapper, ) from tortoise.backends.sqlite.executor...
37.431138
97
0.653335
e8b42550238be783576c8455b25f0c1c13271bc0
2,008
py
Python
src/python/octmps_io.py
SiavashMT/OCT-MPS
1fe8a8c25063ef3cee8b96128f20d040ac613ba7
[ "MIT" ]
18
2018-03-12T01:15:47.000Z
2021-08-09T15:20:56.000Z
src/python/octmps_io.py
SiavashMT/OCT-MPS
1fe8a8c25063ef3cee8b96128f20d040ac613ba7
[ "MIT" ]
5
2019-03-18T05:49:44.000Z
2021-07-02T08:14:05.000Z
src/python/octmps_io.py
SiavashMT/OCT-MPS
1fe8a8c25063ef3cee8b96128f20d040ac613ba7
[ "MIT" ]
7
2019-04-01T02:47:50.000Z
2021-11-15T07:59:57.000Z
from __future__ import absolute_import, division, print_function, unicode_literals class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' def show_version(): print(...
39.372549
118
0.654382
e8b43140fa260aa3820207e8b2905b6b4d2eae51
5,356
py
Python
src/xoak/tests/conftest.py
benbovy/xoak
420214f219255b34e1bfece1267a8c663c12b3cc
[ "MIT" ]
19
2021-03-12T22:31:04.000Z
2022-01-27T18:42:37.000Z
src/xoak/tests/conftest.py
benbovy/xoak
420214f219255b34e1bfece1267a8c663c12b3cc
[ "MIT" ]
31
2020-06-27T12:35:51.000Z
2021-03-09T16:58:37.000Z
src/xoak/tests/conftest.py
xarray-contrib/xoak
420214f219255b34e1bfece1267a8c663c12b3cc
[ "MIT" ]
3
2020-06-29T06:22:26.000Z
2021-03-08T18:33:53.000Z
import dask import numpy as np import pytest import xarray as xr from sklearn.metrics import pairwise_distances_argmin_min # use single-threaded dask scheduler for all tests, as multi-threads or # multi-processes may not be supported by some index adapters. # TODO: enable multi-threaded and/or multi-processes per inde...
32.071856
97
0.681665
e8b44cd2ea7b7bb27f8cf277f91ff0dce17baa3a
1,887
py
Python
experiments/ashvin/contexts/state/pointmass1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/contexts/state/pointmass1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/contexts/state/pointmass1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from rlkit.launchers.contextual_env_launcher_util import ( goal_conditioned_sac_experiment, process_args ) from rlkit.launchers.launcher_util import run_experiment from rlkit.launchers.arglauncher import run_variants if __name__ == "__main__": variant = dict( env...
29.484375
73
0.631161
e8b471dd038ddf1e6d142d0e190768c4cc6f18d8
10,961
py
Python
test/knxip_tests/routing_indication_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
test/knxip_tests/routing_indication_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
test/knxip_tests/routing_indication_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
"""Unit test for KNX/IP RountingIndication objects.""" import asyncio import unittest from xknx import XKNX from xknx.dpt import DPTArray, DPTBinary, DPTTemperature, DPTTime from xknx.knxip import CEMIFrame, KNXIPFrame, KNXIPServiceType from xknx.telegram import GroupAddress, PhysicalAddress, Telegram, TelegramType ...
40.899254
98
0.627133
e8b4724c3771d9fb12bc2c6e8768315741ee1dbb
29,775
py
Python
sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_channels_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_channels_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_channels_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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.915929
224
0.676306
e8b4815a6c9dfc2b963f0d48fe0c5b5ca69c2a8f
18,807
py
Python
taf/testlib/linux/commands/cmd_helper.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
10
2016-12-16T00:05:58.000Z
2018-10-30T17:48:25.000Z
taf/testlib/linux/commands/cmd_helper.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
40
2017-01-04T23:07:05.000Z
2018-04-16T19:52:02.000Z
taf/testlib/linux/commands/cmd_helper.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
23
2016-12-30T05:03:53.000Z
2020-04-01T08:40:24.000Z
# Copyright (c) 2016 - 2017, Intel Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
30.983526
105
0.602967
e8b4fa487bc16e99be6995bd6090d81df1042e38
2,047
py
Python
chatbot/recommend.py
lameinthebox/cid-backend
1258000ab7801ebe2f6aef2a4006d3b35c9c88d8
[ "MIT" ]
null
null
null
chatbot/recommend.py
lameinthebox/cid-backend
1258000ab7801ebe2f6aef2a4006d3b35c9c88d8
[ "MIT" ]
null
null
null
chatbot/recommend.py
lameinthebox/cid-backend
1258000ab7801ebe2f6aef2a4006d3b35c9c88d8
[ "MIT" ]
null
null
null
from numpy.random import choice from chatbot.models import * def recommend(user, opt): # Make candidates by option candidates = Music.objects.exclude(pk__in=user.recommended.all()) if 'genre' in opt: candidates = candidates.filter(genre__icontains=opt['genre']) if 'artist' in opt: can...
34.116667
125
0.664387
e8b5044061abeef9d5135b0f19311787a9b27156
3,120
py
Python
synapse/tests/test_lib_queue.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/tests/test_lib_queue.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/tests/test_lib_queue.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
import synapse.lib.queue as s_queue from synapse.tests.common import * class QueueTest(SynTest): def test_queue_base(self): q = s_queue.Queue() self.len(0, q) self.eq(q.size(), 0) q.put('woot') self.len(1, q) self.eq(q.size(), 1) self.eq(q.get(), 'woot'...
21.369863
62
0.455449
e8b50952ba51d6df18b629b7f71c76c006cb9220
3,359
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_08_01/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
49.397059
172
0.70646
e8b547edba8380c0eab6485d7ab92b4a09b3efc7
9,736
py
Python
conans/client/rest/uploader_downloader.py
NewProggie/conan
6ec73ac2b4be98e1ab4e5ee797008b50ca2d7424
[ "MIT" ]
null
null
null
conans/client/rest/uploader_downloader.py
NewProggie/conan
6ec73ac2b4be98e1ab4e5ee797008b50ca2d7424
[ "MIT" ]
null
null
null
conans/client/rest/uploader_downloader.py
NewProggie/conan
6ec73ac2b4be98e1ab4e5ee797008b50ca2d7424
[ "MIT" ]
null
null
null
import os import time import traceback from conans.client.tools.files import human_size from conans.errors import AuthenticationException, ConanConnectionError, ConanException, \ NotFoundException from conans.util.files import mkdir, save_append, sha1sum, to_file_bytes from conans.util.log import logger from conan...
38.330709
106
0.591516
e8b54d3fb16833d6449b8d3a0d91fc555e22bd6c
4,073
py
Python
sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/aio/operations/_operations_results_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/aio/operations/_operations_results_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/aio/operations/_operations_results_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 ...
41.989691
155
0.693592
e8b561b409620580aa87de4745719727ba72e98a
2,455
py
Python
rest_framework_jk/authentication.py
pandy1988/django-rest-framework-jk
adb99ec6dd3fa246d370efb5ef5eeaeb452cf1fe
[ "MIT" ]
2
2019-07-05T03:43:20.000Z
2020-07-31T07:53:44.000Z
rest_framework_jk/authentication.py
pandy1988/django-rest-framework-jk
adb99ec6dd3fa246d370efb5ef5eeaeb452cf1fe
[ "MIT" ]
null
null
null
rest_framework_jk/authentication.py
pandy1988/django-rest-framework-jk
adb99ec6dd3fa246d370efb5ef5eeaeb452cf1fe
[ "MIT" ]
null
null
null
from uuid import UUID from django.utils.translation import ugettext as _ from rest_framework.exceptions import AuthenticationFailed from rest_framework.authentication import BaseAuthentication, get_authorization_header from rest_framework_jk.settings import api_settings from rest_framework_jk.compat import verify_au...
31.474359
98
0.683503
e8b567474bb7ca24c06eabd95a56732ed43dbeae
2,451
py
Python
components/amp-utility/python/math2.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
components/amp-utility/python/math2.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
components/amp-utility/python/math2.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
# * coding: UTF8 * """ 该模块实现相应CPython模块的子集,如下所示,math 模块提供一些用于处理浮点数的基本函数。 函数 ------------------------------ """ def acos(x): """ 返回 ``x`` 的反余弦函数 """ pass def acosh(x): """ 返回 ``x`` 的反双曲余弦函数 """ pass def asin(x): """ 返回 ``x`` 的反正弦函数 """ pass def asinh(x): """ 返回 ``x...
10.128099
125
0.406773
e8b5681310412560ea35539a8959b4245e541a69
82,955
py
Python
pytorch/test/quantization/test_quantize.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
pytorch/test/quantization/test_quantize.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
pytorch/test/quantization/test_quantize.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.quantized as nnq import torch.nn.intrinsic as nni import torch.nn.intrinsic.quantized as nniq import torch.nn.intrinsic.qat as nniqat from torch.nn.utils.rnn import PackedSequence from torch.quantization import ( quantize, prepare, convert, prepare_qat,...
44.767944
132
0.591574
e8b56fd53afa14c006c45ae9910cfcfef07d8b00
21,080
py
Python
pytype/tests/py3/test_typing.py
souravbadami/pytype
804fa97e7f9208df2711976085a96f756b3949e6
[ "Apache-2.0" ]
1
2020-04-20T02:55:21.000Z
2020-04-20T02:55:21.000Z
pytype/tests/py3/test_typing.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
pytype/tests/py3/test_typing.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
"""Tests for typing.py.""" from pytype import file_utils from pytype.pytd import pep484 from pytype.tests import test_base from pytype.tests import test_utils class TypingTest(test_base.TargetPython3BasicTest): """Tests for typing.py.""" _TEMPLATE = """ import collections import typing def f(s: %(an...
31.8429
112
0.555598
e8b5abbfb014eb31cf1ac9351b90a5a11fed1902
3,327
py
Python
osos/api_pypi/api_pypi.py
NREL/osos
28b2d9382058e17dfa10a873b5f2fd115b319bb1
[ "BSD-3-Clause" ]
null
null
null
osos/api_pypi/api_pypi.py
NREL/osos
28b2d9382058e17dfa10a873b5f2fd115b319bb1
[ "BSD-3-Clause" ]
1
2021-11-19T20:44:38.000Z
2021-11-19T20:45:03.000Z
osos/api_pypi/api_pypi.py
NREL/osos
28b2d9382058e17dfa10a873b5f2fd115b319bb1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Interface module for pypi API """ import pypistats import datetime import numpy as np import pandas as pd import logging logger = logging.getLogger(__name__) class Pypi: """Class to call pypi data and return osos-formatted pypi usage data.""" @staticmethod def get_data(name,...
33.27
79
0.592125
e8b5b5c3e9afe79c2f47a0aca03ee689f7d6f2d6
1,892
py
Python
lists/mergesort_linkedlist.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
lists/mergesort_linkedlist.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
lists/mergesort_linkedlist.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
""" Merge sort a linked list O(nlog(n)) time complexity. O(1) space. """ class Node: def __init__(self, val, next=None): self.val = val self.next = next def list_to_str(head): temp = head list = [] while temp: list.append(temp.val) temp = temp.next return ",".join(ma...
18.019048
43
0.547569
e8b5c81e0acbb5273e1dd4764ff13646f39ef802
115
py
Python
iris_sdk/models/maps/sites.py
NumberAI/python-bandwidth-iris
0e05f79d68b244812afb97e00fd65b3f46d00aa3
[ "MIT" ]
2
2020-04-13T13:47:59.000Z
2022-02-23T20:32:41.000Z
iris_sdk/models/maps/sites.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2020-09-18T20:59:24.000Z
2021-08-25T16:51:42.000Z
iris_sdk/models/maps/sites.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2018-12-12T14:39:50.000Z
2020-11-17T21:42:29.000Z
#!/usr/bin/env python from iris_sdk.models.maps.base_map import BaseMap class SitesMap(BaseMap): site = None
16.428571
49
0.747826
e8b5d738623297553fd72f2120dc8e27fd2b44b2
1,892
py
Python
axonius_api_client/cli/grp_assets/grp_saved_query/cmd_add.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
11
2020-01-31T00:28:26.000Z
2022-03-25T20:27:08.000Z
axonius_api_client/cli/grp_assets/grp_saved_query/cmd_add.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
83
2020-01-22T12:52:38.000Z
2022-02-07T16:20:18.000Z
axonius_api_client/cli/grp_assets/grp_saved_query/cmd_add.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
16
2019-08-23T17:44:31.000Z
2022-01-06T00:57:34.000Z
# -*- coding: utf-8 -*- """Command line interface for Axonius API Client.""" from ...context import CONTEXT_SETTINGS, click from ...options import ( AUTH, FIELDS_SELECT, QUERY, add_options, get_option_fields_default, get_option_help, ) from ..grp_common import WIZ, load_wiz from .grp_common impo...
30.031746
98
0.675476
e8b5f78a8ec9bbddc0c058ceab7a08d23205eb10
25,871
py
Python
ambari-server/src/test/python/stacks/2.0.6/YARN/test_resourcemanager.py
alexryndin/ambari
478eeb02ebecef1f7f0506885a041d2070d2bccb
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/YARN/test_resourcemanager.py
alexryndin/ambari
478eeb02ebecef1f7f0506885a041d2070d2bccb
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/YARN/test_resourcemanager.py
alexryndin/ambari
478eeb02ebecef1f7f0506885a041d2070d2bccb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' 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")...
45.547535
261
0.585018
e8b62a336a07217f88b19414fb340c7c888dd134
1,983
py
Python
toontown/safezone/DistributedDGFlowerAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2018-06-16T23:06:38.000Z
2018-06-16T23:06:38.000Z
toontown/safezone/DistributedDGFlowerAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/safezone/DistributedDGFlowerAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.distributed import DistributedObjectAI from direct.distributed.ClockDelta import * from otp.ai.AIBase import * from toontown.toonbase.ToontownGlobals import * import random HEIGHT_DELTA = 0.5 MAX_HEIGHT = 10.0 MIN_HEIGHT = 2.0 EGG_TOONS = 20 class DistributedDGFlowerAI(DistributedObjectAI.DistributedObjec...
29.597015
69
0.619768
e8b6301d4cf33c668b040b02e37bc6d081768988
196
py
Python
Tests/Runnable2/r_extproperty_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
5
2019-05-26T20:48:36.000Z
2021-07-09T01:38:38.000Z
Tests/Runnable2/r_extproperty_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
null
null
null
Tests/Runnable2/r_extproperty_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
1
2022-02-10T07:14:58.000Z
2022-02-10T07:14:58.000Z
from r_extproperty import CheeseShop shop = CheeseShop() print shop.cheese shop.cheese = "camembert" print shop.cheese shop.cheese = "cheddar" print shop.cheese del shop.cheese print shop.cheese
17.818182
36
0.795918
e8b669bc938a3b1e3e8dc4caa9c544f79b309a55
3,277
py
Python
nicos_virt_mlz/panda/setups/ana.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_virt_mlz/panda/setups/ana.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_virt_mlz/panda/setups/ana.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- description = 'Analyser' includes = ['system', 'sampletable'] group = 'lowlevel' devices = dict( att_step = device('nicos.devices.generic.VirtualMotor', unit = 'deg', abslimits = (-140, 140), speed = 1, lowlevel = True, curvalue = -40, ), ...
26.860656
76
0.536771
e8b66c552f94f655c292de4ac9a2f4c9d146ccb5
2,239
py
Python
endpoints/notifier.py
mazore/covidwa-notifications
9aaad7d581111074da4297395dceeb832da84bf8
[ "Apache-2.0" ]
null
null
null
endpoints/notifier.py
mazore/covidwa-notifications
9aaad7d581111074da4297395dceeb832da84bf8
[ "Apache-2.0" ]
18
2021-03-29T01:08:51.000Z
2021-04-13T17:16:05.000Z
endpoints/notifier.py
mazore/covidwa-notifications
9aaad7d581111074da4297395dceeb832da84bf8
[ "Apache-2.0" ]
null
null
null
from helpers import database, extract_zip, send_text from flask import request import os from helpers.zip_helpers import get_closest_zips from constants import NUM_TO_SEND def notifier(): data = request.json if not int(os.environ['NOTIFIER_ENABLED']): # If disabled return {'statusCode': 200} if ...
41.462963
106
0.61322
e8b678e702248ab151c743744726b3108338c95e
2,200
py
Python
project_euler/problem_03/sol2.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
project_euler/problem_03/sol2.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
project_euler/problem_03/sol2.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
28.947368
78
0.646364
e8b6c03cfc855e46a1d10c31ef235d758ce58329
1,435
py
Python
Network/POP3/POP3_REC_MAIL.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
null
null
null
Network/POP3/POP3_REC_MAIL.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
null
null
null
Network/POP3/POP3_REC_MAIL.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/python3.4 # -*- coding=utf-8 -*- #本脚由亁颐堂现任明教教主编写,用于乾颐盾Python课程! #教主QQ:605658506 #亁颐堂官网www.qytang.com #乾颐盾是由亁颐堂现任明教教主开发的综合性安全课程 #包括传统网络安全(防火墙,IPS...)与Python语言和黑客渗透课程! import sys sys.path.append('/usr/local/lib/python3.4/dist-packages/PyQYT/ExtentionPackages') sys.path.append('/usr/lib/python3.4/site-packages/...
31.195652
81
0.730314
e8b6e68b89897a0369ddc6a92b0115d36f1e5b9e
3,484
py
Python
echome/network/views.py
mgtrrz/echome
b3a123391089d4a09b4eb6e240bb783ef5bc06cc
[ "MIT" ]
2
2022-01-31T19:32:51.000Z
2022-01-31T22:42:13.000Z
echome/network/views.py
mgtrrz/echome
b3a123391089d4a09b4eb6e240bb783ef5bc06cc
[ "MIT" ]
7
2021-04-04T01:15:53.000Z
2022-02-07T03:34:48.000Z
echome/network/views.py
mgtrrz/echome
b3a123391089d4a09b4eb6e240bb783ef5bc06cc
[ "MIT" ]
1
2022-02-01T11:34:50.000Z
2022-02-01T11:34:50.000Z
import logging from rest_framework.permissions import IsAuthenticated from rest_framework.views import APIView from rest_framework import viewsets, status from api.api_view import HelperView from .models import VirtualNetwork from .exceptions import InvalidNetworkConfiguration, InvalidNetworkName from .serializers impo...
31.387387
89
0.584386
e8b6ea9920e13f528c1c85ad14c552d8c5bd94a9
5,294
py
Python
tools/train_sr.py
Ixuanzhang/mmdet
a8f8397e49e3091f23262f8ace9641ee2c6be746
[ "Apache-2.0" ]
null
null
null
tools/train_sr.py
Ixuanzhang/mmdet
a8f8397e49e3091f23262f8ace9641ee2c6be746
[ "Apache-2.0" ]
null
null
null
tools/train_sr.py
Ixuanzhang/mmdet
a8f8397e49e3091f23262f8ace9641ee2c6be746
[ "Apache-2.0" ]
null
null
null
from __future__ import division import argparse import copy import os import os.path as osp import time import mmcv import torch from mmcv import Config from mmcv.runner import init_dist from mmdet import __version__ from mmdet.apis import set_random_seed, train_detector from mmdet.datasets import build_dataset from ...
34.828947
119
0.657915
e8b7255506520760a11e6d2c45d0de4a8da1db4f
2,993
py
Python
src/charm.py
cornmetto/charm-k8s-falco
12c29e953b81de3f8a8011a2acd72e29a3452848
[ "Apache-2.0" ]
null
null
null
src/charm.py
cornmetto/charm-k8s-falco
12c29e953b81de3f8a8011a2acd72e29a3452848
[ "Apache-2.0" ]
null
null
null
src/charm.py
cornmetto/charm-k8s-falco
12c29e953b81de3f8a8011a2acd72e29a3452848
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2021 Cornellius Metto # See LICENSE file for licensing details. # import logging from ops.charm import ActionEvent, CharmBase from ops.charm import ConfigChangedEvent from ops.main import main from ops.model import ActiveStatus, ModelError from jinja2 import Environment, FileSystemL...
32.89011
95
0.641497
e8b73e03da06c5d58b2a66e641fd26dc194934a5
964
py
Python
thenewboston/serializers/network_transaction.py
rajat4665/thenewboston-python
df842c793fe7bfd8731fd8746abf25747c9e569e
[ "MIT" ]
null
null
null
thenewboston/serializers/network_transaction.py
rajat4665/thenewboston-python
df842c793fe7bfd8731fd8746abf25747c9e569e
[ "MIT" ]
3
2021-03-30T14:03:41.000Z
2021-09-22T19:30:31.000Z
thenewboston/serializers/network_transaction.py
rajat4665/thenewboston-python
df842c793fe7bfd8731fd8746abf25747c9e569e
[ "MIT" ]
null
null
null
from rest_framework import serializers from thenewboston.constants.network import VERIFY_KEY_LENGTH class NetworkTransactionSerializer(serializers.Serializer): amount = serializers.DecimalField(max_digits=32, decimal_places=16) recipient = serializers.CharField(max_length=VERIFY_KEY_LENGTH) def create(s...
26.054054
103
0.681535
e8b74331ffe22bdc3b3419d7a743ac3dfbb56927
1,509
py
Python
tests/eth2/beacon/test_beacon_validation.py
nrryuya/trinity
7436d9c3fdef5fbeef5d7a1123c8ed2ecd16e033
[ "MIT" ]
null
null
null
tests/eth2/beacon/test_beacon_validation.py
nrryuya/trinity
7436d9c3fdef5fbeef5d7a1123c8ed2ecd16e033
[ "MIT" ]
null
null
null
tests/eth2/beacon/test_beacon_validation.py
nrryuya/trinity
7436d9c3fdef5fbeef5d7a1123c8ed2ecd16e033
[ "MIT" ]
null
null
null
import pytest from eth_utils import ( ValidationError, ) from eth2.beacon.validation import ( validate_slot, validate_slot_for_state_slot, ) @pytest.mark.parametrize( "slot,is_valid", ( (tuple(), False), ([], False), ({}, False), (set(), False), ('abc', Fa...
20.958333
79
0.493704
e8b75abe1b6a8e0a0dce68c15d9e88e90067e255
22,562
py
Python
ch_util/rfi.py
CHIMEFRB/ch_util
37b2f2510ba39def44ecce0e8cb729e2ea108603
[ "MIT" ]
1
2021-02-16T15:59:08.000Z
2021-02-16T15:59:08.000Z
ch_util/rfi.py
CHIMEFRB/ch_util
37b2f2510ba39def44ecce0e8cb729e2ea108603
[ "MIT" ]
20
2021-01-22T01:43:14.000Z
2022-02-15T05:08:30.000Z
ch_util/rfi.py
CHIMEFRB/ch_util
37b2f2510ba39def44ecce0e8cb729e2ea108603
[ "MIT" ]
2
2021-03-10T00:47:09.000Z
2021-06-03T18:51:23.000Z
"""Tools for RFI flagging This module contains tools for finding and removing Radio Frequency Interference (RFI). Note that this generates masks where the elements containing RFI are marked as :obj:`True`, and the remaining elements are marked :obj:`False`. This is in contrast to the routines in :mod:`ch_pipeline.rfi...
32.416667
91
0.64059
e8b778dbb0247789c198f954d6dfad109707da5d
2,962
py
Python
ice_validator/tests/test_port_connected_to_multiple_servers.py
rohitagarwal0910/vvp-cnf-validation-scripts
2825f9517f4f186b4f6cc733dc1f11f1414c438e
[ "Apache-2.0", "CC-BY-4.0" ]
1
2018-08-29T19:33:22.000Z
2018-08-29T19:33:22.000Z
ice_validator/tests/test_port_connected_to_multiple_servers.py
rohitagarwal0910/vvp-cnf-validation-scripts
2825f9517f4f186b4f6cc733dc1f11f1414c438e
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
ice_validator/tests/test_port_connected_to_multiple_servers.py
rohitagarwal0910/vvp-cnf-validation-scripts
2825f9517f4f186b4f6cc733dc1f11f1414c438e
[ "Apache-2.0", "CC-BY-4.0" ]
2
2019-07-23T15:47:43.000Z
2021-07-02T15:04:19.000Z
# -*- coding: utf8 -*- # ============LICENSE_START==================================================== # org.onap.vvp/validation-scripts # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. # ===========================================...
41.138889
88
0.648548
e8b77d613ba9e46ae1fdf075cfc12b51f446fafd
5,168
py
Python
doc/examples/viz_slice.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
doc/examples/viz_slice.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
doc/examples/viz_slice.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
""" ===================== Simple volume slicing ===================== Here we present an example for visualizing slices from 3D images. """ from __future__ import division import os import nibabel as nib from dipy.data import fetch_bundles_2_subjects from dipy.viz import window, actor """ Let's download and load a...
24.262911
79
0.647059
e8b77f9a8351ba5da4f07e896a0474cc8f896acc
3,727
py
Python
leetcode_python/Dynamic_Programming/rotated-digits.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Dynamic_Programming/rotated-digits.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Dynamic_Programming/rotated-digits.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# Time: O(logn) # Space: O(logn) # X is a good number if after rotating each digit individually by 180 degrees, # we get a valid number that is different from X. # A number is valid if each digit remains a digit after rotation. # 0, 1, and 8 rotate to themselves; 2 and 5 rotate to each other; # 6 and 9 rotate to each...
30.056452
94
0.475181
e8b7b8a21741836ecf1c8153c32d123f57c6551d
398
py
Python
backend/tradingApp/wsgi.py
JoseAntpr/tradingApp
728b2fbb46c4345ea89f1481396632b24a30d5cb
[ "MIT" ]
null
null
null
backend/tradingApp/wsgi.py
JoseAntpr/tradingApp
728b2fbb46c4345ea89f1481396632b24a30d5cb
[ "MIT" ]
3
2020-02-12T00:36:37.000Z
2021-06-10T20:11:33.000Z
backend/tradingApp/wsgi.py
JoseAntpr/tradingApp
728b2fbb46c4345ea89f1481396632b24a30d5cb
[ "MIT" ]
1
2017-09-12T18:15:17.000Z
2017-09-12T18:15:17.000Z
""" WSGI config for tradingApp project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_S...
23.411765
78
0.788945
e8b7c14a655742e5c23b17556813fbb70d582887
903
py
Python
atom3d/datasets/lep/ensemble.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
atom3d/datasets/lep/ensemble.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
atom3d/datasets/lep/ensemble.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
"""Code to ensemble ligand efficacy prediction (LEP) dataset.""" import collections as col import os import pandas as pd def lep_ensembler(pdb_files): dirs = list(set([os.path.dirname(f) for f in pdb_files])) info_files = [os.path.join(x, 'info.csv') for x in dirs] labels = pd.concat([pd.read_csv(x) for ...
31.137931
75
0.602436