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
d502f42420ea0d4c1fd48cba1e1627cd81dab70c
436
py
Python
desafios/Mundo 2/Ex052.py
duartecgustavo/Python---Estudos-
13a47f115dd24ef475addaed7b0c860a7b3817ca
[ "MIT" ]
6
2021-01-20T20:43:39.000Z
2021-08-13T15:44:10.000Z
desafios/Mundo 2/Ex052.py
duartecgustavo/PythonProgress
13a47f115dd24ef475addaed7b0c860a7b3817ca
[ "MIT" ]
null
null
null
desafios/Mundo 2/Ex052.py
duartecgustavo/PythonProgress
13a47f115dd24ef475addaed7b0c860a7b3817ca
[ "MIT" ]
1
2020-09-06T03:34:19.000Z
2020-09-06T03:34:19.000Z
# Desafio 52 - Aula 13 : Programa que leia um numero e diga se é um numero PRIMO. conta = 0 primo = int(input('Me diga um numero: ')) for c in range(1, primo+1): if primo % c == 0 : print('\033[34m', end='') conta += 1 else: print('\033[m', end='') print(f'{c}', end=' ') if c...
24.222222
81
0.545872
d5031723362b46474bb003bb526b8409998f32d1
3,527
py
Python
impbot/connections/irc.py
rlazarus/impbot
9c9b0e0d84c7badd1786813bc5e19b20175f5d5b
[ "MIT" ]
null
null
null
impbot/connections/irc.py
rlazarus/impbot
9c9b0e0d84c7badd1786813bc5e19b20175f5d5b
[ "MIT" ]
null
null
null
impbot/connections/irc.py
rlazarus/impbot
9c9b0e0d84c7badd1786813bc5e19b20175f5d5b
[ "MIT" ]
null
null
null
import datetime import logging import threading import time from typing import Optional, List from irc import client from impbot.core import base PING_TIMEOUT = datetime.timedelta(minutes=5, seconds=30) logger = logging.getLogger(__name__) class IrcConnection(base.ChatConnection): def __init__(self, host: str...
36.739583
80
0.621775
d5034cb08a2aa5c74bff83582a1917fe7e90c3b2
5,468
py
Python
utils/evaluate.py
sorrowyn/C-Tran
236d785952c59210e6812b4ad5ee12bab585ce4c
[ "MIT" ]
104
2021-01-25T17:27:16.000Z
2022-03-20T10:17:50.000Z
utils/evaluate.py
mensudza/C-Tran
4895ccb0e675ae2dcd2b619a9e47f30707062668
[ "MIT" ]
9
2021-02-26T08:11:46.000Z
2021-11-17T16:24:52.000Z
utils/evaluate.py
mensudza/C-Tran
4895ccb0e675ae2dcd2b619a9e47f30707062668
[ "MIT" ]
18
2021-02-21T14:01:23.000Z
2022-03-16T08:41:27.000Z
import numpy as np import logging from collections import OrderedDict import torch import math from pdb import set_trace as stop import os from models.utils import custom_replace from utils.metrics import * import torch.nn.functional as F import warnings warnings.filterwarnings("ignore") def compute_metrics(args,al...
39.338129
132
0.661119
d5034df374016bd74a03584a7033f03c81d7c586
1,630
py
Python
src/langs/Kumiai.py
serapio/kwaras
e575ed2c3512c9517778d4108558f7e9680a93ee
[ "MIT" ]
4
2016-10-03T00:52:00.000Z
2021-07-26T00:32:32.000Z
src/langs/Kumiai.py
ucsd-field-lab/kwaras
e575ed2c3512c9517778d4108558f7e9680a93ee
[ "MIT" ]
null
null
null
src/langs/Kumiai.py
ucsd-field-lab/kwaras
e575ed2c3512c9517778d4108558f7e9680a93ee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Feb 3, 2016 @author: lucien """ import os import json from ..formats import eaf, utfcsv def main(): cfg_file = "config.txt" up_dir = os.path.dirname(os.getcwd()) cfg = json.load(os.path.join(up_dir, cfg_file)) csvfile = utfcsv.UnicodeWriter(os.path.join(cfg["F...
28.596491
112
0.608589
d5034f41312a5d73d021b542427607416b2b105e
4,888
py
Python
model/main/train_utils.py
jcheng1602/JC-Net
b81f78fa331b83f0107ebf728afc29cf946c55cc
[ "Unlicense" ]
null
null
null
model/main/train_utils.py
jcheng1602/JC-Net
b81f78fa331b83f0107ebf728afc29cf946c55cc
[ "Unlicense" ]
null
null
null
model/main/train_utils.py
jcheng1602/JC-Net
b81f78fa331b83f0107ebf728afc29cf946c55cc
[ "Unlicense" ]
null
null
null
import tensorflow as tf slim = tf.contrib.slim def get_model_init_fn(train_logdir, tf_initial_checkpoint, initialize_last_layer, last_layers, ignore_missing_vars=False): """Gets the function initializing model variables from a ...
35.941176
80
0.739362
d50355a7ab78d852933bab974f18074379ea064d
1,335
py
Python
ethereum/tests/test_trie_next_prev.py
isaiahgenis/Ethereum-Python
295975d393be3b74f7bd7dc89ce45f9d973e225a
[ "MIT" ]
5
2016-09-12T15:26:11.000Z
2018-09-17T20:27:15.000Z
ethereum/tests/test_trie_next_prev.py
isaiahgenis/Ethereum-Python
295975d393be3b74f7bd7dc89ce45f9d973e225a
[ "MIT" ]
null
null
null
ethereum/tests/test_trie_next_prev.py
isaiahgenis/Ethereum-Python
295975d393be3b74f7bd7dc89ce45f9d973e225a
[ "MIT" ]
2
2016-09-12T07:04:30.000Z
2017-02-24T20:56:59.000Z
import os import json import ethereum.trie as trie from ethereum.utils import to_string from ethereum.tests.utils import new_db from ethereum.testutils import fixture_to_bytes import ethereum.testutils as testutils from ethereum.slogging import get_logger logger = get_logger() # customize VM log output to your needs #...
28.404255
87
0.665169
d5035acbc39b3000753985be3d38e8b82663bab7
7,128
py
Python
contrail-opserver/test/utils/stats_fixture.py
biswajit-mandal/contrail-analytics
393157153c223925d1dabdc2e173da90ab61aa50
[ "Apache-2.0" ]
null
null
null
contrail-opserver/test/utils/stats_fixture.py
biswajit-mandal/contrail-analytics
393157153c223925d1dabdc2e173da90ab61aa50
[ "Apache-2.0" ]
null
null
null
contrail-opserver/test/utils/stats_fixture.py
biswajit-mandal/contrail-analytics
393157153c223925d1dabdc2e173da90ab61aa50
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. # # # stats_fixture.py # # Python generator test fixtures # from gevent import monkey monkey.patch_all() import fixtures import socket from util import retry from pysandesh.sandesh_base import * from sandesh.stats_test.ttypes im...
35.819095
98
0.545455
d50380813f68f5ac6b8ab7f1d43ab041bb56c0f7
25,392
py
Python
modules/s3layouts.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/s3layouts.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/s3layouts.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Sahana Eden GUI Layouts (HTML Renderers) @copyright: 2012-2021 (c) Sahana Software Foundation @license: MIT 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...
34.453189
121
0.433995
d50389d5fe5f0e61c40577db08e243ca0393b3a0
15,776
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_vmware/tests/objects/test_datastore.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_vmware/tests/objects/test_datastore.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_vmware/tests/objects/test_datastore.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 VMware, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.44
79
0.596095
d503be4a7585f06b0d2910095de7fc7b777e9ff7
646
py
Python
run_clean.py
sailist/ASRFrame
2fd022c3c00af1d5178dee4b367b2269241bc73c
[ "Apache-2.0" ]
223
2019-07-13T06:31:18.000Z
2022-03-11T08:23:01.000Z
run_clean.py
mayite/ASRFrame
484cf1ee5beec4c39439de683c5b4c1f1ea3a94a
[ "Apache-2.0" ]
7
2019-12-27T08:48:42.000Z
2021-09-01T09:45:13.000Z
run_clean.py
mayite/ASRFrame
484cf1ee5beec4c39439de683c5b4c1f1ea3a94a
[ "Apache-2.0" ]
71
2019-07-14T13:14:13.000Z
2022-03-18T06:58:54.000Z
''' 用于清洗数据,只需要传入相应数据的根目录即可 ''' import config from util.dataset import Thchs30,Z200,AiShell,Primewords,ST_CMDS if __name__ == "__main__": Thchs30(config.thu_datapath).label_dataset() Z200(config.z200_datapath).label_dataset() AiShell(config.aishell_datapath).label_dataset() Primewords(config.prime_datap...
35.888889
64
0.781734
d503c6b74d7179c8eb0bc59ff33f5851c4632bf8
17,711
py
Python
scripts/NHEJ_analysis_mh.py
trdvangraft/mlbio
7e7a3f1fbc4d1a21d1d6f1e4006c120d4d9424c4
[ "MIT" ]
null
null
null
scripts/NHEJ_analysis_mh.py
trdvangraft/mlbio
7e7a3f1fbc4d1a21d1d6f1e4006c120d4d9424c4
[ "MIT" ]
null
null
null
scripts/NHEJ_analysis_mh.py
trdvangraft/mlbio
7e7a3f1fbc4d1a21d1d6f1e4006c120d4d9424c4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Author: Will Chen #System tools import os,sys,csv,re from re import findall import collections import itertools from collections import Counter import pickle as pkl # Usefule modules import numpy as np from math import exp from random import randint from Bio import SeqIO from Bio import pair...
44.951777
180
0.505336
d5041d3bc14edc2278187eeb39641240321ca0ee
31,167
py
Python
disnake/permissions.py
UT1C/disnake
4f1e3a78b662b42ef5dbe10c75c16283c3010460
[ "MIT" ]
290
2021-11-03T12:33:16.000Z
2022-03-31T19:30:19.000Z
disnake/permissions.py
UT1C/disnake
4f1e3a78b662b42ef5dbe10c75c16283c3010460
[ "MIT" ]
200
2021-11-03T10:41:41.000Z
2022-03-31T08:13:11.000Z
disnake/permissions.py
shiftinv/disnake
2f93645d8becc9267acecbc45547457861611919
[ "MIT" ]
118
2021-11-03T18:27:09.000Z
2022-03-25T22:00:45.000Z
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz Copyright (c) 2021-present Disnake Development 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 limi...
32.841939
126
0.607694
d50461c45bac38185f72b72ee107ee399338af24
1,058
py
Python
util/manual_place_data.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/manual_place_data.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/manual_place_data.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
from maps import * from tower import Tower, Point from towers import * from map import Map import mouse import keyboard import pyscreeze import time import win32gui def give_info(*args): x, y = mouse.get_position() img = pyscreeze.screenshot() win = win32gui.GetActiveWindow() keyboard.press_and_rel...
26.45
60
0.529301
d504690281fa57cd45492dfbc47e7e733c3c2654
7,420
py
Python
tethysapp/geoglows_hydroviewer/app.py
rileyhales/geoglows_hydroviewer
97029be5be3ec8310f31cadbd7c9d4bade3810dd
[ "BSD-3-Clause-Clear" ]
null
null
null
tethysapp/geoglows_hydroviewer/app.py
rileyhales/geoglows_hydroviewer
97029be5be3ec8310f31cadbd7c9d4bade3810dd
[ "BSD-3-Clause-Clear" ]
null
null
null
tethysapp/geoglows_hydroviewer/app.py
rileyhales/geoglows_hydroviewer
97029be5be3ec8310f31cadbd7c9d4bade3810dd
[ "BSD-3-Clause-Clear" ]
null
null
null
from tethys_sdk.app_settings import CustomSetting from tethys_sdk.base import TethysAppBase, url_map_maker class GeoglowsHydroviewer(TethysAppBase): """ Tethys app class for the GEOGloWS ECMWF Streamflow Hydroviewer """ name = 'GEOGloWS Hydroviewer' package = 'geoglows_hydroviewer' root_url = ...
55.373134
119
0.632615
d504719bb8529e7016b9c561a9a58b1be68cd449
5,894
py
Python
server.py
rezahsnz/papi
b17e5fc3a0380549a9541ade246862a55c905eea
[ "MIT" ]
null
null
null
server.py
rezahsnz/papi
b17e5fc3a0380549a9541ade246862a55c905eea
[ "MIT" ]
null
null
null
server.py
rezahsnz/papi
b17e5fc3a0380549a9541ade246862a55c905eea
[ "MIT" ]
1
2022-02-20T10:45:36.000Z
2022-02-20T10:45:36.000Z
from flask import Flask, jsonify, request, render_template from flask_restful import Api, Resource import json import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), 'api')) import market import position import funding import liquidation import account import order import trader app = Flask(__...
25.850877
63
0.650662
d504a81791e37fe91d1a9b1f8134dc4810f192f9
2,814
py
Python
sac/mpi.py
dogeplusplus/torch-actor-critic
c12f5a6845fe27cf0f2b231a88e7b6d9f5985960
[ "MIT" ]
null
null
null
sac/mpi.py
dogeplusplus/torch-actor-critic
c12f5a6845fe27cf0f2b231a88e7b6d9f5985960
[ "MIT" ]
null
null
null
sac/mpi.py
dogeplusplus/torch-actor-critic
c12f5a6845fe27cf0f2b231a88e7b6d9f5985960
[ "MIT" ]
null
null
null
import os import sys import torch import subprocess import numpy as np from mpi4py import MPI def mpi_fork(n, bind_to_core=False): """Re-launch script with workers linked by MPI. Terminates the original process that opened it """ if n <= 1: return if os.getenv("IN_MPI") is None: ...
24.258621
77
0.617626
d504bfb8bad2434f8fdbf1843be7c42c52a35c3c
3,719
py
Python
graphite_plugin_agent/plugins/uwsgi.py
jondkelley/graphite-plugin-agent
924193262cbd7f6eaa498c33951883473e435c90
[ "BSD-3-Clause" ]
1
2018-06-20T04:41:15.000Z
2018-06-20T04:41:15.000Z
graphite_plugin_agent/plugins/uwsgi.py
jondkelley/graphite-plugin-agent
924193262cbd7f6eaa498c33951883473e435c90
[ "BSD-3-Clause" ]
null
null
null
graphite_plugin_agent/plugins/uwsgi.py
jondkelley/graphite-plugin-agent
924193262cbd7f6eaa498c33951883473e435c90
[ "BSD-3-Clause" ]
null
null
null
""" uWSGI """ import json import logging import re from graphite_plugin_agent.plugins import base LOGGER = logging.getLogger(__name__) class uWSGI(base.SocketStatsPlugin): GUID = 'com.meetme.newrelic_uwsgi_agent' DEFAULT_HOST = 'localhost' DEFAULT_PORT = 1717 def add_datapoints(self, stats): ...
36.821782
80
0.532401
d504d659e1c36027bc22d6642fcbec338367249a
10,028
py
Python
sdk/identity/azure-identity/tests/test_identity_async.py
OlhaTkachenko/azure-sdk-for-python
0e43638457cc0c44d4a5e4a287fb4e53674b3231
[ "MIT" ]
null
null
null
sdk/identity/azure-identity/tests/test_identity_async.py
OlhaTkachenko/azure-sdk-for-python
0e43638457cc0c44d4a5e4a287fb4e53674b3231
[ "MIT" ]
null
null
null
sdk/identity/azure-identity/tests/test_identity_async.py
OlhaTkachenko/azure-sdk-for-python
0e43638457cc0c44d4a5e4a287fb4e53674b3231
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE.txt in the project root for # license information. # ------------------------------------------------------------------------- import asyn...
35.814286
119
0.714699
d504ed0dd47bec8e34ea2c0ddc088e484d07f1be
3,024
py
Python
src/w2v_pos_tagger/w2vpos.py
andifunke/w2v-pos-tagger
8fd2ae6281132a66877b7c1be2b6b2fc9240cacb
[ "MIT" ]
1
2020-03-25T20:11:18.000Z
2020-03-25T20:11:18.000Z
src/w2v_pos_tagger/w2vpos.py
andifunke/w2v-pos-tagger
8fd2ae6281132a66877b7c1be2b6b2fc9240cacb
[ "MIT" ]
null
null
null
src/w2v_pos_tagger/w2vpos.py
andifunke/w2v-pos-tagger
8fd2ae6281132a66877b7c1be2b6b2fc9240cacb
[ "MIT" ]
1
2021-03-19T09:07:53.000Z
2021-03-19T09:07:53.000Z
#!/usr/bin/env python import argparse import sys class Parser(object): def __init__(self): parser = argparse.ArgumentParser( description='Single Token Part-of-Speech Tagging using ' 'Support Vector Machines and Word Embedding Features', usage="w2vpos <comm...
29.359223
95
0.602513
d5050c2db4ab97650556ffbba97dc2ca4811da40
5,531
py
Python
bookmarknav.py
KainokiKaede/firefox-sync-client-pythonista
960e134020295e10f811b057071de05d31835464
[ "Unlicense" ]
null
null
null
bookmarknav.py
KainokiKaede/firefox-sync-client-pythonista
960e134020295e10f811b057071de05d31835464
[ "Unlicense" ]
null
null
null
bookmarknav.py
KainokiKaede/firefox-sync-client-pythonista
960e134020295e10f811b057071de05d31835464
[ "Unlicense" ]
null
null
null
import os import ui import json import console import webbrowser from updatebookmarks import update_bookmarks class BookmarkData(object): def __init__(self): self.filepath = os.path.join(os.environ['HOME'],'Documents','bookmarks.json') try: self.reset() except IOError: ...
33.72561
141
0.65377
d5053323bbb94fe74d94dc5d6cd0fc210f0ea28c
2,896
py
Python
presidio-analyzer/presidio_analyzer/recognizer_registry/recognizers_store_api.py
querylayer/presidio
4e952dc3149b9fd13c4db7194483a0cba133729d
[ "MIT" ]
null
null
null
presidio-analyzer/presidio_analyzer/recognizer_registry/recognizers_store_api.py
querylayer/presidio
4e952dc3149b9fd13c4db7194483a0cba133729d
[ "MIT" ]
null
null
null
presidio-analyzer/presidio_analyzer/recognizer_registry/recognizers_store_api.py
querylayer/presidio
4e952dc3149b9fd13c4db7194483a0cba133729d
[ "MIT" ]
null
null
null
import os import grpc from presidio_analyzer.protobuf_models import ( recognizers_store_pb2, recognizers_store_pb2_grpc, ) from presidio_analyzer import PatternRecognizer, Pattern, PresidioLogger logger = PresidioLogger("presidio") class RecognizerStoreApi: """ The RecognizerStoreApi is the object tha...
32.909091
84
0.634669
d505606dc5a2b9bfd5d02cc0c054a5dd1ed54593
1,490
py
Python
alipay/aop/api/domain/MybankCreditLoanapplyTaxOpenSendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/MybankCreditLoanapplyTaxOpenSendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/MybankCreditLoanapplyTaxOpenSendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class MybankCreditLoanapplyTaxOpenSendModel(object): def __init__(self): self._business_type = None self._data_object = None @property def business_type(self): return s...
26.607143
77
0.61745
d5056492f8f3aff8f2786c11a7cf9b67374b4a1a
3,214
py
Python
opencga-client/src/main/python/pyOpenCGA/pyopencga/opencga_config.py
dapregi/opencga
9aaee47952ac9e68f831b138945c7939199ab92d
[ "Apache-2.0" ]
null
null
null
opencga-client/src/main/python/pyOpenCGA/pyopencga/opencga_config.py
dapregi/opencga
9aaee47952ac9e68f831b138945c7939199ab92d
[ "Apache-2.0" ]
null
null
null
opencga-client/src/main/python/pyOpenCGA/pyopencga/opencga_config.py
dapregi/opencga
9aaee47952ac9e68f831b138945c7939199ab92d
[ "Apache-2.0" ]
null
null
null
import json import requests import yaml class ClientConfiguration(object): """ Configuration class shared between OpenCGA python clients usage: >>> from pyopencga.opencga_config import ClientConfiguration >>> config_file = "/opt/opencga/conf/client-configuration.yml" # it can accept...
30.037383
111
0.610143
d505651564123295b6422c2ac0dba1e0550648ac
25,182
py
Python
deepchem/models/tensorgraph/models/graph_models.py
rbharath/deepchem
8c3bcdd557abdbb380b64c2d460a73aff76fb303
[ "MIT" ]
3
2017-10-07T13:48:48.000Z
2021-06-13T09:09:03.000Z
deepchem/models/tensorgraph/models/graph_models.py
rbharath/deepchem
8c3bcdd557abdbb380b64c2d460a73aff76fb303
[ "MIT" ]
1
2017-08-29T22:08:24.000Z
2017-08-29T22:08:24.000Z
deepchem/models/tensorgraph/models/graph_models.py
rbharath/deepchem
8c3bcdd557abdbb380b64c2d460a73aff76fb303
[ "MIT" ]
5
2017-03-19T01:48:13.000Z
2019-02-22T01:12:03.000Z
import numpy as np import six import tensorflow as tf from deepchem.feat.mol_graphs import ConvMol from deepchem.metrics import to_one_hot, from_one_hot from deepchem.models.tensorgraph.graph_layers import WeaveLayer, WeaveGather, \ Combine_AP, Separate_AP, DTNNEmbedding, DTNNStep, DTNNGather, DAGLayer, DAGGather,...
37.417533
115
0.625089
d505858e4de3f68b6372cab2c7e891e4f8e0d232
1,685
py
Python
letshelp-letsencrypt/setup.py
mrudtf/letsencrypt
6a7b4a8e142eb392a8fe696d9536b52c0fc4b5e3
[ "Apache-2.0" ]
null
null
null
letshelp-letsencrypt/setup.py
mrudtf/letsencrypt
6a7b4a8e142eb392a8fe696d9536b52c0fc4b5e3
[ "Apache-2.0" ]
null
null
null
letshelp-letsencrypt/setup.py
mrudtf/letsencrypt
6a7b4a8e142eb392a8fe696d9536b52c0fc4b5e3
[ "Apache-2.0" ]
null
null
null
import sys from setuptools import setup from setuptools import find_packages version = '0.6.0.dev0' install_requires = [ 'setuptools', # pkg_resources ] if sys.version_info < (2, 7): install_requires.append('mock<1.1.0') else: install_requires.append('mock') docs_extras = [ 'Sphinx>=1.0', # autod...
28.083333
78
0.632047
d505a606c93503591d8c7a6a35121d6bbe038ff7
6,060
py
Python
DoraGamePlaying-m7noskip/LargeAgent.py
AlexDoumas/BrPong_1
372913513932c95bc502f5d03700ec9ba61c6a9b
[ "CECILL-B" ]
3
2020-06-22T15:02:23.000Z
2021-05-05T14:03:25.000Z
DoraGamePlaying-m7noskip/LargeAgent.py
AlexDoumas/BrPong_1
372913513932c95bc502f5d03700ec9ba61c6a9b
[ "CECILL-B" ]
null
null
null
DoraGamePlaying-m7noskip/LargeAgent.py
AlexDoumas/BrPong_1
372913513932c95bc502f5d03700ec9ba61c6a9b
[ "CECILL-B" ]
null
null
null
import numpy as np import tensorflow as tf import os class LargeAgent: """ make sure the neural network is build """ def __init__(self, trajectory=False): self.actionsTaken = 0 self.skipFrame = 1 # repeat the action for this number of frames self.currentFrame = -1 # a counter to see at...
38.846154
158
0.690264
d505ac374f041197cc42c13f28da611f00cdbb01
16,514
py
Python
packages/infra_libs/infra_libs/test/httplib2_utils_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
packages/infra_libs/infra_libs/test/httplib2_utils_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
packages/infra_libs/infra_libs/test/httplib2_utils_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import httplib import json import os import socket import time import urllib import unittest import infra_libs from infra_libs.ts_mon.common import http_met...
37.026906
79
0.694986
d505b6f35f48b1868377af82fe4e18b53bebe939
5,132
py
Python
fanficfare/adapters/adapter_quotevcom.py
davidferguson/FanFicUpload
dcc3010b9c35c6d0e479cfc2aa07d951d280d9b2
[ "Apache-2.0" ]
1
2019-06-13T11:20:33.000Z
2019-06-13T11:20:33.000Z
fanficfare/adapters/adapter_quotevcom.py
davidferguson/FanFicUpload
dcc3010b9c35c6d0e479cfc2aa07d951d280d9b2
[ "Apache-2.0" ]
null
null
null
fanficfare/adapters/adapter_quotevcom.py
davidferguson/FanFicUpload
dcc3010b9c35c6d0e479cfc2aa07d951d280d9b2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import re import urlparse import urllib2 import datetime from .. import exceptions from base_adapter import BaseSiteAdapter from ..htmlcleanup import stripHTML SITE_DOMAIN = 'quotev.com' STORY_URL_TEMPLATE = 'http://www.quotev.com/story/%s' def getClass(): return QuotevComAdapter def...
36.140845
108
0.597818
d505c2481e5e8b5fd2c93571aa3c833c07396dc2
8,883
py
Python
tools/android/dexdiffer/dexdiffer.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
tools/android/dexdiffer/dexdiffer.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/android/dexdiffer/dexdiffer.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Tool to diff 2 dex files that have been proguarded. To use this tool, first get dextra. http://newandroidbook.com/tools/dextra.html Then use the dextra bi...
32.068592
80
0.69132
d505d90dfa59f4ee16f3f0b37c4b2084dfa09265
8,954
py
Python
edb/schema/objtypes.py
aeros/edgedb
db8c240d1607765799caf124a4b418250e0c0a96
[ "Apache-2.0" ]
null
null
null
edb/schema/objtypes.py
aeros/edgedb
db8c240d1607765799caf124a4b418250e0c0a96
[ "Apache-2.0" ]
null
null
null
edb/schema/objtypes.py
aeros/edgedb
db8c240d1607765799caf124a4b418250e0c0a96
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB 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...
31.307692
78
0.591132
d5060612bfbcf1b2af3571bd5ad3ef640fe22843
321
py
Python
oscar/lib/python2.7/site-packages/IPython/external/mathjax.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/external/mathjax.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/external/mathjax.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python """ `IPython.external.mathjax` is deprecated with IPython 4.0+ mathjax is now install by default with the notebook package """ import sys if __name__ == '__main__' : sys.exit("IPython.external.mathjax is deprecated, Mathjax is now installed by default with the notebook package") ...
22.928571
118
0.713396
d5061e3116a35aa624b797fabe0f93b0c0a2c7f2
6,274
py
Python
budget-rnn/src/layers/cells/skip_rnn_cells.py
tejaskannan/ml-models
ad5acad2c0ce75773062ffcdff088a6fbe5ffc17
[ "Apache-2.0" ]
1
2021-06-28T15:40:41.000Z
2021-06-28T15:40:41.000Z
budget-rnn/src/layers/cells/skip_rnn_cells.py
tejaskannan/ml-models
ad5acad2c0ce75773062ffcdff088a6fbe5ffc17
[ "Apache-2.0" ]
5
2021-03-04T19:42:15.000Z
2022-02-10T05:46:15.000Z
budget-rnn/src/layers/cells/skip_rnn_cells.py
tejaskannan/budget-rnn
ad5acad2c0ce75773062ffcdff088a6fbe5ffc17
[ "Apache-2.0" ]
null
null
null
""" This file implements various Skip RNN Cells. The classes here are inspired by the following repository and associated paper: Paper: https://arxiv.org/abs/1708.06834 Repo: https://github.com/imatge-upc/skiprnn-2017-telecombcn/blob/master/src/rnn_cells/skip_rnn_cells.py. """ import tensorflow as tf from collections ...
54.086207
134
0.582722
d50631a3bbbeb13bb74e3e0634e357b7123bfeb3
364
py
Python
onadata/libs/serializers/fields/xform_field.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/libs/serializers/fields/xform_field.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/libs/serializers/fields/xform_field.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals, print_function, division, absolute_import from rest_framework import serializers from onadata.apps.logger.models import XForm class XFormField(serializers.Field): def to_representation(self, obj): return obj.pk def to_internal_value(self, data)...
28
82
0.769231
d50631c94548a2c5c39cd73e3b0921a4a205496b
1,382
py
Python
end_to_end_tests/golden-record/my_test_api_client/api/tag1/get_tag_with_number.py
JamesHinshelwood/openapi-python-client
08bc2acf91d50d4fcdd7f0e50a8b0d3f00a187d9
[ "MIT" ]
1
2022-02-17T11:45:13.000Z
2022-02-17T11:45:13.000Z
end_to_end_tests/golden-record/my_test_api_client/api/tag1/get_tag_with_number.py
guioliveirabh/openapi-python-client
d8d9cecffe41c5dc1c43bc667598b90f0d9253ca
[ "MIT" ]
null
null
null
end_to_end_tests/golden-record/my_test_api_client/api/tag1/get_tag_with_number.py
guioliveirabh/openapi-python-client
d8d9cecffe41c5dc1c43bc667598b90f0d9253ca
[ "MIT" ]
null
null
null
from typing import Any, Dict import httpx from ...client import Client from ...types import Response def _get_kwargs( *, client: Client, ) -> Dict[str, Any]: url = "{}/tag_with_number".format(client.base_url) headers: Dict[str, str] = client.get_headers() cookies: Dict[str, Any] = client.get_co...
18.675676
70
0.60275
d5065f77014ba4ea64303880474efe7092866fa2
6,657
py
Python
experiments/shikhar/corl2019/pointmass/pointmass_rig_sweep_n6_1b.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/shikhar/corl2019/pointmass/pointmass_rig_sweep_n6_1b.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/shikhar/corl2019/pointmass/pointmass_rig_sweep_n6_1b.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from experiments.murtaza.multiworld.skew_fit.reacher.generate_uniform_dataset import generate_uniform_dataset_reacher from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in from rlkit.launchers.launcher_util import run_experiment from rlkit.torch.grill.launcher i...
36.983333
120
0.57909
d5066005acc7ade472ee3033310f46dd6bdb4ac8
1,488
py
Python
src/__main__.py
silmae/HyperBlend
ac9c8a8802d4f3969b0ec3605ac163fde1a17193
[ "MIT" ]
1
2021-11-11T12:58:51.000Z
2021-11-11T12:58:51.000Z
src/__main__.py
silmae/HyperBlend
ac9c8a8802d4f3969b0ec3605ac163fde1a17193
[ "MIT" ]
null
null
null
src/__main__.py
silmae/HyperBlend
ac9c8a8802d4f3969b0ec3605ac163fde1a17193
[ "MIT" ]
1
2021-11-11T12:58:58.000Z
2021-11-11T12:58:58.000Z
""" Entry point of the program. There is no user interface to the program (yet) so code your calls here and run in IDE. """ import logging import sys import numpy as np from src.prospect import prospect from src.optimization import Optimization from src.surface_model import surface_model as SM from src.utils import...
31
86
0.709677
d5066cad2dc2b98b05339188e963357421bc9cc9
807
py
Python
webserver/lswb/webserver3a.py
zeroam/build-your-own-x
e7932cd25145aa3c347511db6846b1242dbb30eb
[ "MIT" ]
null
null
null
webserver/lswb/webserver3a.py
zeroam/build-your-own-x
e7932cd25145aa3c347511db6846b1242dbb30eb
[ "MIT" ]
5
2021-04-08T21:59:04.000Z
2022-02-10T14:19:59.000Z
webserver/lswb/webserver3a.py
zeroam/build-your-own-x
e7932cd25145aa3c347511db6846b1242dbb30eb
[ "MIT" ]
null
null
null
import socket SERVER_ADDRESS = (HOST, PORT) = "", 8888 REQUEST_QUEUE_SIZE = 5 def handle_request(client_connection): request = client_connection.recv(1024) print(request.decode()) http_response = b"""HTTP/1.1 200 OK Hello, World! """ client_connection.sendall(http_response) def serve_forev...
25.21875
71
0.718711
d506828c4a88a8a3d9dd7681ed3c77fe98674059
7,473
py
Python
lang/py/test/test_script.py
gth828r/avro-python3
c8379728b4a762d99262e526fb53f631076fb143
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
lang/py/test/test_script.py
gth828r/avro-python3
c8379728b4a762d99262e526fb53f631076fb143
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
lang/py/test/test_script.py
gth828r/avro-python3
c8379728b4a762d99262e526fb53f631076fb143
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.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 u...
29.077821
75
0.588117
d506851e924b188c3cef7d40b1c5680b0358f757
507
py
Python
binary-search/0374-guess-number-higher-or-lower(最原始二分法).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-01-10T17:03:21.000Z
2021-01-10T17:03:21.000Z
binary-search/0374-guess-number-higher-or-lower(最原始二分法).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
null
null
null
binary-search/0374-guess-number-higher-or-lower(最原始二分法).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-07-25T07:53:14.000Z
2021-07-25T07:53:14.000Z
# The guess API is already defined for you. # @param num, your guess # @return -1 if my number is lower, 1 if my number is higher, otherwise return 0 def guess(num): pass class Solution(object): def guessNumber(self, n): left = 1 right = n while left <= right: mid = (left +...
25.35
80
0.500986
d5068a288c1265b6f65fb5a9e0176be01c510e82
11,628
py
Python
sysinv/sysinv/sysinv/sysinv/agent/rpcapi.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/agent/rpcapi.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/agent/rpcapi.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # coding=utf-8 # Copyright 2013 Hewlett-Packard Development Company, L.P. # 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 Lic...
38.25
93
0.608015
d506a8f801589382dba78a6fbbed8a92920e4e36
5,079
py
Python
dev/tools/static_codegen/units.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
1
2019-12-25T16:33:37.000Z
2019-12-25T16:33:37.000Z
dev/tools/static_codegen/units.py
divyashivaram/brian2
ac086e478efa50be772c6cee55b52b43018bc77a
[ "BSD-2-Clause" ]
null
null
null
dev/tools/static_codegen/units.py
divyashivaram/brian2
ac086e478efa50be772c6cee55b52b43018bc77a
[ "BSD-2-Clause" ]
null
null
null
import os, re curdir, _ = os.path.split(__file__) units_fname = os.path.normpath(os.path.join(curdir, '../../../brian2/units/allunits.py')) _siprefixes = {"y":1e-24, "z":1e-21, "a":1e-18, "f":1e-15, "p":1e-12, "n":1e-9, "u":1e-6, "m":1e-3, "c":1e-2, "d":1e-1, "":1, "da":1e1, "h":1e2, ...
44.946903
100
0.54873
d506c113b70841caea5b0385640c791d469ec5c2
700
py
Python
alipay/aop/api/response/KoubeiCateringDishMenuSyncResponse.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/KoubeiCateringDishMenuSyncResponse.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/KoubeiCateringDishMenuSyncResponse.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 class KoubeiCateringDishMenuSyncResponse(AlipayResponse): def __init__(self): super(KoubeiCateringDishMenuSyncResponse, self).__init__() self._cook_id = None @property...
26.923077
107
0.708571
d506c423521ae178a7548065dd408e35e8e68d94
669
py
Python
supriya/ugens/CoinGate.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/CoinGate.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/CoinGate.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import CalculationRate from supriya.synthdefs import UGen class CoinGate(UGen): """ A probabilistic trigger gate. :: >>> trigger = supriya.ugens.Impulse.ar() >>> coin_gate = supriya.ugens.CoinGate.ar( ... probability=0.5, ... trigg...
20.90625
79
0.608371
d506ca635411c4fad41020b780b89589ed63b6bb
279
py
Python
tests/__init__.py
turing-complet/fs-azureblob
b27549303a23fc016f67abff91a5cec2ab34e726
[ "MIT" ]
2
2021-12-21T10:44:29.000Z
2022-01-04T17:25:12.000Z
tests/__init__.py
turing-complet/fs-azureblob
b27549303a23fc016f67abff91a5cec2ab34e726
[ "MIT" ]
11
2021-09-16T23:39:42.000Z
2022-02-11T02:42:45.000Z
tests/__init__.py
turing-complet/fs-azureblob
b27549303a23fc016f67abff91a5cec2ab34e726
[ "MIT" ]
1
2021-11-07T22:15:57.000Z
2021-11-07T22:15:57.000Z
# type: ignore import os import fs # Add the local code directory to the `fs` module path fs.__path__.insert(0, os.path.realpath(os.path.join(__file__, "..", "..", "fs"))) fs.opener.__path__.insert( 0, os.path.realpath(os.path.join(__file__, "..", "..", "fs", "opener")) )
25.363636
81
0.648746
d506d89e445a2b13c6adc38af043fe7d52cbd054
26,764
py
Python
src/bin/feature_extract.py
tarepan/cyclevae-vc-neuralvoco
22f3957b90a2bbb0359477ad2458744644e5a8a8
[ "Apache-2.0" ]
null
null
null
src/bin/feature_extract.py
tarepan/cyclevae-vc-neuralvoco
22f3957b90a2bbb0359477ad2458744644e5a8a8
[ "Apache-2.0" ]
null
null
null
src/bin/feature_extract.py
tarepan/cyclevae-vc-neuralvoco
22f3957b90a2bbb0359477ad2458744644e5a8a8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2021 Patrick Lumban Tobing (Nagoya University) # based on PyTorch implementation for WaveNet vocoder by Tomoki Hayashi (Nagoya University) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) from __future__ import division from __future__ import print_...
38.288984
135
0.573532
d506f7dbf61952ed19c9188a3268f6e5defc5e8f
4,701
py
Python
backend/settings.py
UTMIST/WallStreetBots
fd10aed16d6ed1185827d8b2439a711688d8182b
[ "MIT" ]
4
2021-11-12T02:04:30.000Z
2022-01-03T22:56:41.000Z
backend/settings.py
UTMIST/WallStreetBots
fd10aed16d6ed1185827d8b2439a711688d8182b
[ "MIT" ]
5
2021-11-11T20:48:34.000Z
2022-03-12T18:08:40.000Z
backend/settings.py
UTMIST/WallStreetBots
fd10aed16d6ed1185827d8b2439a711688d8182b
[ "MIT" ]
2
2021-11-15T14:23:36.000Z
2021-11-27T19:44:38.000Z
""" Django settings for backend project. Generated by 'django-admin startproject' using Django 3.2.8. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib...
27.17341
91
0.700702
d506f7ea4f847b9f0ef0e18017e2bffcffed5121
3,761
py
Python
stack.py
deepti-chauhan/Data_Structures_in_python
7a3c88fb636b0b69ed880e2da08802e473da657a
[ "MIT" ]
null
null
null
stack.py
deepti-chauhan/Data_Structures_in_python
7a3c88fb636b0b69ed880e2da08802e473da657a
[ "MIT" ]
null
null
null
stack.py
deepti-chauhan/Data_Structures_in_python
7a3c88fb636b0b69ed880e2da08802e473da657a
[ "MIT" ]
null
null
null
#Program to implement Stack #creating a class Stack class Stack: #size(int) : for size of the stack def __init__(self,size): self.size = size self.top = -1 #initial value of top also means that the stack is empty self.st = [' ']*size #creating a list of SIZE : size with value ' ' ...
28.067164
93
0.466897
d50738fbae932f3b44ec45215f91f5311525cb0c
346
py
Python
example.py
ktprograms/walkmapper
a915c78dff9c7c68375b8cff0e279c9f1982bf1a
[ "MIT" ]
null
null
null
example.py
ktprograms/walkmapper
a915c78dff9c7c68375b8cff0e279c9f1982bf1a
[ "MIT" ]
null
null
null
example.py
ktprograms/walkmapper
a915c78dff9c7c68375b8cff0e279c9f1982bf1a
[ "MIT" ]
null
null
null
import os from walkmapper.routes import MultipleRoutes files = [f"examples/data/{i}" for i in os.listdir("examples/data")] rts = MultipleRoutes(files) rts.heat_map("examples/maps/Portland_45.5372_m122.5831_45.4761_m122.7077.png") rts.basic_route_animation( map_file_path="examples/maps/Portland_45.5372_m122.583...
26.615385
83
0.791908
d50750001ec6fd57afee80b63999ed5641b34249
13,684
py
Python
tensorflow/contrib/layers/python/ops/sparse_ops_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/contrib/layers/python/ops/sparse_ops_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/layers/python/ops/sparse_ops_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2016 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...
40.485207
80
0.617217
d50753ac0e51f1879b9fd67103c379f515195a53
59,822
py
Python
src/transformers/models/electra/modeling_electra.py
norabelrose/transformers
0639f72ebcc008dac59757bc5c38d6f074301491
[ "Apache-2.0" ]
15
2020-12-02T07:56:38.000Z
2021-12-15T06:16:01.000Z
src/transformers/models/electra/modeling_electra.py
norabelrose/transformers
0639f72ebcc008dac59757bc5c38d6f074301491
[ "Apache-2.0" ]
null
null
null
src/transformers/models/electra/modeling_electra.py
norabelrose/transformers
0639f72ebcc008dac59757bc5c38d6f074301491
[ "Apache-2.0" ]
8
2020-12-12T09:03:46.000Z
2021-12-10T04:50:49.000Z
# coding=utf-8 # Copyright 2019 The Google AI Language Team Authors and The HuggingFace Inc. 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/LICEN...
41.892157
168
0.663836
d507587e2c53d0d1bd4d26702411eeda6a8bdbe4
2,544
py
Python
panoptes_aggregation/reducers/reducer_wrapper.py
amyrebecca/aggregation-for-caesar
5f0d884932312010f9caeb8ebfcfe358f490e41f
[ "Apache-2.0" ]
null
null
null
panoptes_aggregation/reducers/reducer_wrapper.py
amyrebecca/aggregation-for-caesar
5f0d884932312010f9caeb8ebfcfe358f490e41f
[ "Apache-2.0" ]
null
null
null
panoptes_aggregation/reducers/reducer_wrapper.py
amyrebecca/aggregation-for-caesar
5f0d884932312010f9caeb8ebfcfe358f490e41f
[ "Apache-2.0" ]
null
null
null
import ast from functools import wraps from .process_kwargs import process_kwargs from ..append_version import append_version, remove_version def reducer_wrapper( process_data=None, defaults_process=None, defaults_data=None, user_id=False, relevant_reduction=False ): def decorator(func): ...
41.032258
110
0.576258
d507a60ffb176641b7cf05df5a8b45456f94deb1
5,862
py
Python
config/settings.py
DatalogiForAlle/MarketSim
7b501f585cea2d19ca5b3f927065003480954298
[ "MIT" ]
null
null
null
config/settings.py
DatalogiForAlle/MarketSim
7b501f585cea2d19ca5b3f927065003480954298
[ "MIT" ]
104
2021-06-01T08:10:38.000Z
2021-09-07T11:30:19.000Z
config/settings.py
DatalogiForAlle/MarketSim
7b501f585cea2d19ca5b3f927065003480954298
[ "MIT" ]
1
2022-02-24T14:04:03.000Z
2022-02-24T14:04:03.000Z
""" Django settings for config project. Generated by 'django-admin startproject' using Django 3.1.7. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib ...
29.019802
91
0.720914
d507f21c6b91ea473de5f8bfa08c94d1ab2a5001
1,017
py
Python
alipay/aop/api/response/AlipaySocialForestSimplecertificateQueryResponse.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/AlipaySocialForestSimplecertificateQueryResponse.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/AlipaySocialForestSimplecertificateQueryResponse.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 class AlipaySocialForestSimplecertificateQueryResponse(AlipayResponse): def __init__(self): super(AlipaySocialForestSimplecertificateQueryResponse, self).__init__() self._c...
28.25
121
0.694199
d5081163096ca5ecebdbfa073f20256a080e6b95
972
py
Python
hiicart/__init__.py
kbourgoin/hiicart
151d64be60ffa5e09b4abc21bf42fd235bf87eea
[ "MIT" ]
null
null
null
hiicart/__init__.py
kbourgoin/hiicart
151d64be60ffa5e09b4abc21bf42fd235bf87eea
[ "MIT" ]
5
2020-10-29T01:05:05.000Z
2020-10-29T01:05:19.000Z
hiicart/__init__.py
kbourgoin/hiicart
151d64be60ffa5e09b4abc21bf42fd235bf87eea
[ "MIT" ]
null
null
null
__version__ = '0.2.12' def validate_gateway(gateway): """Test that a gateway is correctly set up. Returns True if successful, or an error message.""" from hiicart.gateway.base import GatewayError from hiicart.gateway.amazon.gateway import AmazonGateway from hiicart.gateway.google.gateway import Go...
34.714286
71
0.695473
d5083509dccd4af3269fc0187426904ed6247f64
1,863
py
Python
tests/test_configuration/test_load_source_from_dict.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
12
2019-12-13T10:17:38.000Z
2022-01-05T09:01:36.000Z
tests/test_configuration/test_load_source_from_dict.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
26
2016-04-01T11:55:26.000Z
2021-12-30T17:03:59.000Z
tests/test_configuration/test_load_source_from_dict.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
1
2021-05-31T08:45:22.000Z
2021-05-31T08:45:22.000Z
import enum import os from satella.configuration.sources import load_source_from_dict, load_source_from_list from .test_sources.utils import SourceTestCase INNER_DATA = [ { 'type': 'BuildObjectFrom', 'key': 'test', 'child': { 'type': 'StaticSource', 'args': [ ...
21.917647
86
0.485776
d50839073b5a0413c93c3dbea8a1ee0a681bda30
6,955
py
Python
mongo_orchestration/server.py
DmitryLukyanov/mongo-orchestration
06fdd68c47971efd8a383f64c535ec05c0c219a0
[ "Apache-2.0" ]
49
2015-01-16T21:29:34.000Z
2021-11-19T13:20:02.000Z
mongo_orchestration/server.py
DmitryLukyanov/mongo-orchestration
06fdd68c47971efd8a383f64c535ec05c0c219a0
[ "Apache-2.0" ]
109
2015-01-07T01:49:00.000Z
2021-04-14T19:20:47.000Z
mongo_orchestration/server.py
DmitryLukyanov/mongo-orchestration
06fdd68c47971efd8a383f64c535ec05c0c219a0
[ "Apache-2.0" ]
16
2015-01-28T05:51:50.000Z
2021-01-02T06:46:34.000Z
#!/usr/bin/python # coding=utf-8 import argparse import logging import os.path import signal import socket import sys import time import traceback try: # Need simplejson for the object_pairs_hook option in Python 2.6. import simplejson as json except ImportError: # Python 2.7+. import json from bson i...
36.605263
80
0.617973
d508515554977b2f2ec9b64fd7afbf02be04a936
10,783
py
Python
amr_parser/data.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
9
2021-07-12T22:05:47.000Z
2022-02-22T03:10:14.000Z
amr_parser/data.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
4
2021-08-31T08:28:37.000Z
2022-03-28T05:52:14.000Z
amr_parser/data.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
null
null
null
import random from collections import Counter import numpy as np from amr_parser.extract import read_file, write_vocab from elit.components.amr.amr_parser.data import REL from elit.datasets.parsing.amr import linearize, levi_amr import tempfile PAD, UNK, DUM, NIL, END, CLS = '<PAD>', '<UNK>', '<DUMMY>', '<NULL>', '<E...
38.927798
132
0.586386
d50855d8be6e88aee31d4cd78b7ecb3035505269
1,199
py
Python
example/cryptofutures_example.py
anshul96go/toolbox
f60ba0b885eb0eb4786f6e56260073f923a7f844
[ "MIT" ]
null
null
null
example/cryptofutures_example.py
anshul96go/toolbox
f60ba0b885eb0eb4786f6e56260073f923a7f844
[ "MIT" ]
null
null
null
example/cryptofutures_example.py
anshul96go/toolbox
f60ba0b885eb0eb4786f6e56260073f923a7f844
[ "MIT" ]
null
null
null
import qnt.data as qndata import qnt.stats as qnstats import qnt.xr_talib as qnxrtalib import xarray as xr import pandas as pd from qnt.stepper import test_strategy import xarray.ufuncs as xrf import datetime as dt data = qndata.cryptofutures_load_data( tail=dt.timedelta(days=10*365), max_date=None, dims...
23.98
102
0.709758
d5085b848dfbd5cff80ff2b050584bbbbd6319cf
4,793
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/container_registry_management_client.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/container_registry_management_client.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/container_registry_management_client.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "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 ...
45.216981
108
0.734613
d5085cf4459a5dd6effe74f2219c5e3fde75f52b
1,776
py
Python
tests/Unit/Regressors/test_stacking.py
nielsuit227/AutoML
51e2076d52d76dc84a190293b5bb59da2833df89
[ "MIT" ]
2
2021-06-16T22:09:01.000Z
2021-09-06T20:26:42.000Z
tests/Unit/Regressors/test_stacking.py
nielsuit227/AutoML
51e2076d52d76dc84a190293b5bb59da2833df89
[ "MIT" ]
1
2021-06-04T08:22:02.000Z
2021-06-04T08:22:02.000Z
tests/Unit/Regressors/test_stacking.py
nielsuit227/AutoML
51e2076d52d76dc84a190293b5bb59da2833df89
[ "MIT" ]
1
2021-09-15T08:34:20.000Z
2021-09-15T08:34:20.000Z
import unittest import pandas as pd from sklearn.datasets import make_regression from sklearn.base import clone from sklearn.metrics import SCORERS from Amplo.Regressors import StackingRegressor class TestStackingRegression(unittest.TestCase): @classmethod def setUpClass(cls) -> None: cls.model = Sta...
29.114754
69
0.63964
d50864024f29e86e8162c89c22af30d15555452c
565
py
Python
setup.py
lexibank/marrisonnaga
84d5bba62b0013618e95af1a6f9f2475ed02194c
[ "CC-BY-4.0" ]
null
null
null
setup.py
lexibank/marrisonnaga
84d5bba62b0013618e95af1a6f9f2475ed02194c
[ "CC-BY-4.0" ]
21
2019-02-18T11:18:43.000Z
2021-04-21T14:17:39.000Z
setup.py
lexibank/marrisonnaga
84d5bba62b0013618e95af1a6f9f2475ed02194c
[ "CC-BY-4.0" ]
1
2019-07-26T08:18:57.000Z
2019-07-26T08:18:57.000Z
from setuptools import setup import json with open("metadata.json", encoding="utf-8") as fp: metadata = json.load(fp) setup( name="lexibank_marrisonnaga", description=metadata["title"], license=metadata.get("license", ""), url=metadata.get("url", ""), py_modules=["lexibank_marrisonnaga"], ...
26.904762
86
0.684956
d508c07a4ca5ae48741d5ad2502dcc849a27e97c
1,810
py
Python
tempest/thirdparty/boto/test_ec2_network.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
tempest/thirdparty/boto/test_ec2_network.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
tempest/thirdparty/boto/test_ec2_network.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # 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 requ...
41.136364
78
0.721547
d508c59c24debf6201aebeabe54e1caacf53262d
345
py
Python
savu/plugins/unregistered/ral_fit_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/plugins/unregistered/ral_fit_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/plugins/unregistered/ral_fit_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
from savu.plugins.plugin_tools import PluginTools class RalFitTools(PluginTools): """This plugin fits peaks. """ def define_parameters(self): """ width_guess: visibility: intermediate dtype: float description: An initial guess at the width. de...
23
55
0.585507
d50944eb4a352a4081edbc0b7abe0c0e625acea6
2,082
py
Python
tests/core/test_app_manager.py
nums-project/nums
3984b7942e9f1eb0d824086cbbbdca737af50f97
[ "Apache-2.0" ]
111
2020-06-16T02:52:11.000Z
2022-03-29T10:24:19.000Z
tests/core/test_app_manager.py
nums-project/nums
3984b7942e9f1eb0d824086cbbbdca737af50f97
[ "Apache-2.0" ]
160
2020-10-07T21:49:36.000Z
2022-03-11T03:06:23.000Z
tests/core/test_app_manager.py
nums-project/nums
3984b7942e9f1eb0d824086cbbbdca737af50f97
[ "Apache-2.0" ]
25
2020-11-11T17:10:26.000Z
2022-03-07T23:17:16.000Z
# coding=utf-8 # Copyright (C) 2020 NumS 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...
35.288136
76
0.739673
d509453cbd948f65cfdf9992685d22571901404f
21,631
py
Python
luna/gateware/usb/usb2/request.py
asaioe99/luna_JP
276c9d86d2c964c7c4be149d721156d869c9489b
[ "BSD-3-Clause" ]
1
2021-02-25T01:43:12.000Z
2021-02-25T01:43:12.000Z
luna/gateware/usb/usb2/request.py
kbeckmann/luna
befb33620d1c4267607a45f331b84bc196c7a8bf
[ "BSD-3-Clause" ]
null
null
null
luna/gateware/usb/usb2/request.py
kbeckmann/luna
befb33620d1c4267607a45f331b84bc196c7a8bf
[ "BSD-3-Clause" ]
null
null
null
# # This file is part of LUNA. # """ Low-level USB transciever gateware -- control request components. """ import unittest import functools import operator from nmigen import Signal, Module, Elaboratable, Cat from nmigen.hdl.rec import Record, DIR_FANOUT from . import USBSpeed fro...
37.553819
114
0.576349
d509567a2a35098bfa931a4d79962a089cdae13e
2,141
py
Python
PythonProjects/99-CapstoneProject-202020d_SOLUTION/libs/rosebot_touch_sensor.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020d_SOLUTION/libs/rosebot_touch_sensor.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020d_SOLUTION/libs/rosebot_touch_sensor.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
""" Capstone Team Project. Code to run on the EV3 robot (NOT on a laptop). This code defines the TouchSensor class, for the robot's touch sensor that detects when the arm and claw are in the fully-up position. Authors: Your professors (for the framework) and PUT_YOUR_NAMES_HERE. Winter term, 2019-2020. """ # TO...
36.913793
79
0.449323
d5096f267998d1035d4817965e60ffb0ee02c350
3,667
py
Python
style_creator.py
rpdhaines/covid_analysisRH1
1eaa83a5cfeee8eb4ba53b58bf9fabf170d0a0ed
[ "MIT" ]
null
null
null
style_creator.py
rpdhaines/covid_analysisRH1
1eaa83a5cfeee8eb4ba53b58bf9fabf170d0a0ed
[ "MIT" ]
null
null
null
style_creator.py
rpdhaines/covid_analysisRH1
1eaa83a5cfeee8eb4ba53b58bf9fabf170d0a0ed
[ "MIT" ]
null
null
null
# container for helper functions to quickly set styles def create_div_style(mb=3, mt=3, ml=5, mr=5, fs=12, c='black', w='100%', display='block', va='top', float='left', borderb=None, bordert=None, borderl=None, borderr=None, bc=None, gradient=None): """ creates a style dictionary with some...
43.141176
113
0.587947
d5096f4a85b2a5285127f1bef436e4e09b78f2af
4,332
py
Python
lib/roi_data_layer/roidb.py
miyamotost/hand_object_detector
34c8c6ad53306d4a12c12857e71bcd73bd6a68bf
[ "MIT" ]
130
2020-06-12T00:44:32.000Z
2022-03-29T18:22:54.000Z
lib/roi_data_layer/roidb.py
miyamotost/hand_object_detector
34c8c6ad53306d4a12c12857e71bcd73bd6a68bf
[ "MIT" ]
16
2020-06-26T09:27:32.000Z
2022-02-12T02:57:06.000Z
lib/roi_data_layer/roidb.py
miyamotost/hand_object_detector
34c8c6ad53306d4a12c12857e71bcd73bd6a68bf
[ "MIT" ]
40
2020-06-12T13:38:19.000Z
2022-03-13T08:32:31.000Z
"""Transform a roidb into a trainable roidb by adding a bunch of metadata.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import datasets import numpy as np from model.utils.config import cfg from datasets.factory import get_imdb import PIL import pdb d...
30.723404
77
0.665743
d509897977113cff336ba07f0f33f420282c1ea1
13,391
py
Python
python/hsml/engine/serving_engine.py
logicalclocks/machine-learning-api
26cc2df6a998d53ed2726d4ee6bc43310e64c124
[ "Apache-2.0" ]
8
2021-09-14T08:40:34.000Z
2022-03-23T23:18:56.000Z
python/hsml/engine/serving_engine.py
logicalclocks/machine-learning-api
26cc2df6a998d53ed2726d4ee6bc43310e64c124
[ "Apache-2.0" ]
46
2021-11-03T13:17:13.000Z
2022-03-28T09:44:38.000Z
python/hsml/engine/serving_engine.py
logicalclocks/machine-learning-api
26cc2df6a998d53ed2726d4ee6bc43310e64c124
[ "Apache-2.0" ]
2
2021-09-13T15:27:35.000Z
2021-12-16T21:11:32.000Z
# # Copyright 2022 Logical Clocks AB # # 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 ag...
40.82622
149
0.608842
d5098bd7451c4982e9ab293559957e612a9da651
10,541
py
Python
kafka_utils/util/validation.py
EladLeev/kafka-utils
74831206648512db1a29426c6ebb428b33820d04
[ "Apache-2.0" ]
302
2016-05-18T02:05:04.000Z
2022-03-28T21:36:28.000Z
kafka_utils/util/validation.py
EladLeev/kafka-utils
74831206648512db1a29426c6ebb428b33820d04
[ "Apache-2.0" ]
135
2016-05-17T23:15:16.000Z
2021-11-04T13:35:51.000Z
kafka_utils/util/validation.py
EladLeev/kafka-utils
74831206648512db1a29426c6ebb428b33820d04
[ "Apache-2.0" ]
133
2016-05-18T10:23:05.000Z
2022-01-29T17:24:17.000Z
# -*- coding: utf-8 -*- # Copyright 2016 Yelp Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
34.113269
83
0.601271
d509ac118cf3eebc4fcb1ad8991935502e4fb8f3
2,267
py
Python
whispers/plugins/xml.py
supaflysnooka/whispers
762fcee6173ba0016687545bb9861751af72e277
[ "Apache-2.0" ]
1
2021-08-01T00:40:59.000Z
2021-08-01T00:40:59.000Z
whispers/plugins/xml.py
supaflysnooka/whispers
762fcee6173ba0016687545bb9861751af72e277
[ "Apache-2.0" ]
null
null
null
whispers/plugins/xml.py
supaflysnooka/whispers
762fcee6173ba0016687545bb9861751af72e277
[ "Apache-2.0" ]
null
null
null
from pathlib import Path from lxml import etree as ElementTree from whispers.log import debug from whispers.plugins.uri import Uri from whispers.rules import WhisperRules class Xml: def __init__(self): self.breadcrumbs = [] self.rules = WhisperRules() def pairs(self, filepath: Path): ...
35.984127
77
0.498456
d509c9e941e8c78b64f0344b34c9a0134606ef72
10,613
py
Python
amplify/backend/function/savesearch/src/springer_api.py
theEpsilon/slr-tool
941d01dc108d6d2ceadced0a92ac63fa518ebab2
[ "Apache-2.0" ]
null
null
null
amplify/backend/function/savesearch/src/springer_api.py
theEpsilon/slr-tool
941d01dc108d6d2ceadced0a92ac63fa518ebab2
[ "Apache-2.0" ]
null
null
null
amplify/backend/function/savesearch/src/springer_api.py
theEpsilon/slr-tool
941d01dc108d6d2ceadced0a92ac63fa518ebab2
[ "Apache-2.0" ]
null
null
null
import json import requests # converts json query to query string # query = json query # returns query string def build_query(query): '''Builds springer api ready string from json query Parameters ---------- query : json Json with the query Returns ------- str String whi...
37.108392
137
0.592387
d509de1a2e7b8372c4237ea8f0b7fde966f8d3aa
1,318
py
Python
backend/model/migrate/versions/21cc8f612d2_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
backend/model/migrate/versions/21cc8f612d2_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
backend/model/migrate/versions/21cc8f612d2_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
"""Add PromoCode Index on customer_id Revision ID: 21cc8f612d2 Revises: 1751dd2a255 Create Date: 2015-09-01 16:33:17.159614 """ # revision identifiers, used by Alembic. revision = '21cc8f612d2' down_revision = '1751dd2a255' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def ...
24.867925
111
0.713961
d50a049142fa4abe4f840a8f67e3a6f3d795c393
4,048
py
Python
streamlit_book/render_true_or_false.py
sebastiandres/streamlit_book
0779dfcca6c428fcebfa0122b27e0b1324ce5112
[ "MIT" ]
13
2021-11-19T21:17:21.000Z
2022-02-28T12:57:11.000Z
streamlit_book/render_true_or_false.py
sebastiandres/streamlit_book
0779dfcca6c428fcebfa0122b27e0b1324ce5112
[ "MIT" ]
2
2022-01-31T14:51:54.000Z
2022-02-25T10:15:10.000Z
streamlit_book/render_true_or_false.py
sebastiandres/streamlit_book
0779dfcca6c428fcebfa0122b27e0b1324ce5112
[ "MIT" ]
4
2022-02-26T00:24:26.000Z
2022-03-25T06:17:28.000Z
import streamlit as st try: from keywords import check_keyword from keywords import TRUE_FALSE_KEYWORD, BUTTON, SUCCESS, ERROR, DEFAULT_BUTTON_MESSAGE, DEFAULT_SUCCESS_MESSAGE, DEFAULT_ERROR_MESSAGE from answers import save_answer except: from .keywords import check_keyword from .keywords import TR...
37.831776
140
0.62747
d50a24f4bb5afa5441fc6658a8488743c4cc7685
1,313
py
Python
piChain/config.py
themoodymann/piChain
4de9e8da3994901371713b68bc05295fe6676571
[ "MIT" ]
8
2018-02-22T08:52:26.000Z
2022-02-01T01:28:29.000Z
piChain/config.py
themoodymann/piChain
4de9e8da3994901371713b68bc05295fe6676571
[ "MIT" ]
3
2018-03-07T18:13:53.000Z
2019-12-03T23:42:42.000Z
piChain/config.py
florianmorath/piChain
df498021cb7c2df26a7980fb85b795f4a0105faf
[ "MIT" ]
7
2018-02-26T12:28:34.000Z
2021-01-01T11:33:59.000Z
""" Configuration module. Can be used to fine-tune the timeouts. """ # # Paxos Logic (Timing - Fine tuning) # ACCUMULATION_TIME = 0.1 """float: Time the quick node accumulates transactions befor creating a block. dependencies: the higher the RPS rate, the higher this value should be. default = 0.1 seconds """ MA...
23.872727
118
0.740289
d50a496dccae63e8d6135a920f863b73bb803516
3,468
py
Python
src/indriya_msgs/python/pose_animation_pb2.py
praveenv4k/Indriya
a74a4b8bb9f04b5e858305769e892edfcab32df5
[ "MIT" ]
1
2017-07-12T15:30:58.000Z
2017-07-12T15:30:58.000Z
src/indriya_msgs/python/pose_animation_pb2.py
praveenv4k/Indriya
a74a4b8bb9f04b5e858305769e892edfcab32df5
[ "MIT" ]
null
null
null
src/indriya_msgs/python/pose_animation_pb2.py
praveenv4k/Indriya
a74a4b8bb9f04b5e858305769e892edfcab32df5
[ "MIT" ]
1
2016-03-09T12:34:19.000Z
2016-03-09T12:34:19.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: pose_animation.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as...
36.125
336
0.752307
d50a592a4a3f02ffe64088379a71831fb628fdeb
1,670
py
Python
molotov/tests/statsd.py
jldiaz-uniovi/molotov
137864eb4ca7301303af21aadadd3f735dd0d042
[ "Apache-2.0" ]
401
2017-01-25T13:42:37.000Z
2022-03-27T21:29:18.000Z
molotov/tests/statsd.py
jldiaz-uniovi/molotov
137864eb4ca7301303af21aadadd3f735dd0d042
[ "Apache-2.0" ]
131
2017-01-19T20:34:40.000Z
2022-03-02T12:49:32.000Z
molotov/tests/statsd.py
jldiaz-uniovi/molotov
137864eb4ca7301303af21aadadd3f735dd0d042
[ "Apache-2.0" ]
31
2017-01-26T01:18:55.000Z
2022-03-25T15:11:42.000Z
import asyncio # taken from aiostatsd.tests.test_client class ServerProto: def __init__(self, received_queue): self.received_queue = received_queue self.transport = None def connection_made(self, transport): self.transport = transport def datagram_received(self, data, addr): ...
25.30303
69
0.602395
d50a853973cf163418f43f687a6b0cd5d66582e3
2,657
py
Python
oscar/lib/python2.7/site-packages/pbr/tests/test_files.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pbr/tests/test_files.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pbr/tests/test_files.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # 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....
33.632911
77
0.597667
d50a8d55199fe01e254e52fbda136bf30f3cb4a8
2,062
py
Python
src/protocol_analysis/load_csv.py
shelleyshuzhang/mon-iot-traffic-analysis
fb4cead55fed8163af5975ccf2ccea3c63b8c97a
[ "Apache-2.0" ]
1
2020-10-18T07:56:47.000Z
2020-10-18T07:56:47.000Z
src/protocol_analysis/load_csv.py
shelleyshuzhang/mon-iot-traffic-analysis
fb4cead55fed8163af5975ccf2ccea3c63b8c97a
[ "Apache-2.0" ]
null
null
null
src/protocol_analysis/load_csv.py
shelleyshuzhang/mon-iot-traffic-analysis
fb4cead55fed8163af5975ccf2ccea3c63b8c97a
[ "Apache-2.0" ]
null
null
null
from csv import reader from . import Destination from . import DestinationPro from . import ProtocolPort def read_prot_port_info(info): prot_info = {"HTTP": ["1", "1", "1"], "HTTPS": ["1", "0", "1"]} with open(info, "r") as f: csv_reader = reader(f) next(csv_reader) for row in csv_rea...
33.258065
90
0.558196
d50aa99a9d991d1bd6a1eb6414b5762b888755aa
855
py
Python
rtf_sensors/imu_cal_mag_node.py
RecklessTedsFunland/rtf_sensors
880e93b1a358ff3ea65f5c90949c483e52ac44c7
[ "MIT" ]
null
null
null
rtf_sensors/imu_cal_mag_node.py
RecklessTedsFunland/rtf_sensors
880e93b1a358ff3ea65f5c90949c483e52ac44c7
[ "MIT" ]
null
null
null
rtf_sensors/imu_cal_mag_node.py
RecklessTedsFunland/rtf_sensors
880e93b1a358ff3ea65f5c90949c483e52ac44c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################## # The MIT License (MIT) # Copyright (c) 2020 Kevin Walchko # see LICENSE for full details ############################################## import os if 'BLINKA_MCP2221' in os.environ.keys(): pass else: os.environ['BLINKA...
21.375
59
0.587135
d50aaf18c7e458b809b42d8f7d9077e9206e1a72
616
py
Python
model/Board.py
1amG4bor/PySnake
40499856ef4c711db46de38bc96040b57b2eddf3
[ "MIT" ]
1
2020-10-08T16:35:11.000Z
2020-10-08T16:35:11.000Z
model/Board.py
1amG4bor/PySnake
40499856ef4c711db46de38bc96040b57b2eddf3
[ "MIT" ]
null
null
null
model/Board.py
1amG4bor/PySnake
40499856ef4c711db46de38bc96040b57b2eddf3
[ "MIT" ]
null
null
null
import random from config import Config from model.Location import Location class Board: """Represent the game board""" def __init__(self, size): self.table_size = size self.food_location = Location(0, 0) self.generate_food() def get_food_location(self): return self.food...
23.692308
57
0.673701
d50ab268dbf2f992f0e1a5cf43badf64b0e6b227
1,441
py
Python
python/geeksforgeeks/dp/ShortestCommonSupersequence.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/geeksforgeeks/dp/ShortestCommonSupersequence.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/geeksforgeeks/dp/ShortestCommonSupersequence.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
""" Shortest Common Supersequence https://www.techiedelight.com/shortest-common-supersequence-introduction-scs-length/ The shortest common supersequence (SCS) is the problem of finding the shortest supersequence Z of given sequences X and Y such that both X & Y are subsequences of Z. """ def scs(A,B,m,n): if n==0 ...
27.188679
165
0.559334
d50ae1f1cc1a10d4e3c71faf19ed20378409979b
825
py
Python
rassh/commands/queue.py
rbricheno/rassh
2a8406965bcbdc06b3e83f92ea449619e1b359aa
[ "MIT" ]
null
null
null
rassh/commands/queue.py
rbricheno/rassh
2a8406965bcbdc06b3e83f92ea449619e1b359aa
[ "MIT" ]
null
null
null
rassh/commands/queue.py
rbricheno/rassh
2a8406965bcbdc06b3e83f92ea449619e1b359aa
[ "MIT" ]
null
null
null
from rassh.commands.command_base import CommandBase from rassh.datatypes.well_formed_command import WellFormedCommand class Queue(CommandBase): def __init__(self, expect_manager): CommandBase.__init__(self, expect_manager) self.object_type = 'queue' self.command_name = 'queue' self...
34.375
89
0.667879
d50ae41b64d7060d557f35ea1db98b6710f851a0
204
py
Python
maps/another_brick/another_brick.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
maps/another_brick/another_brick.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
maps/another_brick/another_brick.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
from map import Map class AnotherBrick(Map): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.name = 'another_brick' self.difficulty = 'advanced'
20.4
41
0.622549
d50b0005e389a655d1c5291b6a45a10f618ff110
5,749
py
Python
pydefect/cli/tests/test_main_function.py
wangvei/pydefect
e909796c429e16982cefe549d16881039bce89e7
[ "MIT" ]
1
2021-06-07T03:05:39.000Z
2021-06-07T03:05:39.000Z
pydefect/cli/tests/test_main_function.py
wangvei/pydefect
e909796c429e16982cefe549d16881039bce89e7
[ "MIT" ]
null
null
null
pydefect/cli/tests/test_main_function.py
wangvei/pydefect
e909796c429e16982cefe549d16881039bce89e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from argparse import Namespace import os from pathlib import Path from unittest.mock import patch from shutil import copyfile, rmtree from pydefect.util.testing import PydefectTest from pydefect.cli.main_functions import ( unitcell_calc_results, initial_setting ) parent_dir = Path(__file...
33.424419
100
0.554009
d50b383cbd0f1151a6dd62d52def7fb0f6d174cb
3,877
py
Python
google/cloud/pubsublite/cloudpubsub/subscriber_client_interface.py
LaudateCorpus1/python-pubsublite
f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd
[ "Apache-2.0" ]
15
2020-11-10T15:36:52.000Z
2022-03-06T15:00:25.000Z
google/cloud/pubsublite/cloudpubsub/subscriber_client_interface.py
LaudateCorpus1/python-pubsublite
f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd
[ "Apache-2.0" ]
110
2020-11-11T18:14:31.000Z
2022-03-30T22:42:17.000Z
google/cloud/pubsublite/cloudpubsub/subscriber_client_interface.py
LaudateCorpus1/python-pubsublite
f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd
[ "Apache-2.0" ]
6
2020-11-13T19:24:27.000Z
2022-01-29T08:13:14.000Z
# Copyright 2020 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.898148
122
0.713438
d50b4e4338c7d06869a4a61fc41823eb12532f66
4,272
py
Python
lemur/plugins/lemur_openssl/plugin.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/plugins/lemur_openssl/plugin.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/plugins/lemur_openssl/plugin.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
""" .. module: lemur.plugins.lemur_openssl.plugin :platform: Unix :copyright: (c) 2018 by Netflix Inc., see AUTHORS for more :license: Apache, see LICENSE for more details. .. moduleauthor:: Kevin Glisson <kglisson@netflix.com> """ from io import open import subprocess from flask import current_app from ...
28.864865
112
0.555712
d50b545c5a4c6d0d4beb1aca4fbe3d48a8217bc2
14,544
py
Python
SuppFig/DONE_supp_table.py
sergpolly/Thermal_adapt_scripts
faca767209dc7fa66f35b4738dcdd1b7d3bbac93
[ "MIT" ]
2
2018-12-05T07:43:39.000Z
2018-12-05T07:43:42.000Z
SuppFig/DONE_supp_table.py
sergpolly/Thermal_adapt_scripts
faca767209dc7fa66f35b4738dcdd1b7d3bbac93
[ "MIT" ]
null
null
null
SuppFig/DONE_supp_table.py
sergpolly/Thermal_adapt_scripts
faca767209dc7fa66f35b4738dcdd1b7d3bbac93
[ "MIT" ]
null
null
null
import re import os import sys from Bio import Seq from Bio import SeqIO from Bio import SeqUtils import pandas as pd from functools import partial import time from multiprocessing import Pool topt = 'OptimumTemperature' # SPECIAL CASE: archaeal assemblies from GenBank@NCBI before any filtering # see second (2) pa...
35.473171
151
0.607811
d50b6fc2813cf0478e558f7eaa5c250a824aa614
2,022
py
Python
UnleashClient/api/register.py
briandcho/unleash-client-python
ce7f69028265fd7aae774aa41144b4f5e078c91d
[ "MIT" ]
null
null
null
UnleashClient/api/register.py
briandcho/unleash-client-python
ce7f69028265fd7aae774aa41144b4f5e078c91d
[ "MIT" ]
null
null
null
UnleashClient/api/register.py
briandcho/unleash-client-python
ce7f69028265fd7aae774aa41144b4f5e078c91d
[ "MIT" ]
null
null
null
import json from datetime import datetime, timezone import requests from UnleashClient.constants import SDK_NAME, SDK_VERSION, REQUEST_TIMEOUT, APPLICATION_HEADERS, REGISTER_URL from UnleashClient.utils import LOGGER # pylint: disable=broad-except def register_client(url: str, app_name: str, ...
34.271186
109
0.638477
d50b730acfc928186f2062d855bbe5e175d5c212
2,883
py
Python
coupons/forms.py
ademuk/django-coupons
42c7fcffbd697e6fef39a1269940403c787c200f
[ "BSD-3-Clause" ]
null
null
null
coupons/forms.py
ademuk/django-coupons
42c7fcffbd697e6fef39a1269940403c787c200f
[ "BSD-3-Clause" ]
null
null
null
coupons/forms.py
ademuk/django-coupons
42c7fcffbd697e6fef39a1269940403c787c200f
[ "BSD-3-Clause" ]
null
null
null
from django import forms from django.utils.translation import ugettext_lazy as _ from .models import Coupon, CouponUser, Campaign from .settings import COUPON_TYPES class CouponGenerationForm(forms.Form): quantity = forms.IntegerField(label=_("Quantity")) value = forms.IntegerField(label=_("Value")) type...
37.441558
115
0.632674
d50b73d210f3348859202dec54551446f2e2ddbd
2,826
py
Python
hyperbox/networks/nasbench201/db_gen/query.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
1
2022-01-17T00:34:14.000Z
2022-01-17T00:34:14.000Z
hyperbox/networks/nasbench201/db_gen/query.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
hyperbox/networks/nasbench201/db_gen/query.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
import functools from peewee import fn from playhouse.shortcuts import model_to_dict from hyperbox.networks.nasbench201.db_gen.model import Nb201TrialStats, Nb201TrialConfig def query_nb201_trial_stats(arch, num_epochs, dataset, reduction=None, include_intermediates=False): """ Query trial stats of NAS-Bench...
42.818182
117
0.672328
d50b74fc256a57cf7d166dae0ac3a41aed804e4b
5,765
py
Python
src/oop_ext/foundation/callback/_typed_callback.py
nicoddemus/oop-ext
279c80eae56783c02d99ba7b94a8d2df7eb1aec3
[ "MIT" ]
12
2019-03-08T12:56:42.000Z
2021-12-01T18:15:01.000Z
src/oop_ext/foundation/callback/_typed_callback.py
nicoddemus/oop-ext
279c80eae56783c02d99ba7b94a8d2df7eb1aec3
[ "MIT" ]
30
2019-03-08T19:33:00.000Z
2022-01-25T20:32:41.000Z
src/oop_ext/foundation/callback/_typed_callback.py
nicoddemus/oop-ext
279c80eae56783c02d99ba7b94a8d2df7eb1aec3
[ "MIT" ]
1
2019-08-08T16:55:41.000Z
2019-08-08T16:55:41.000Z
# mypy: disallow-untyped-defs # mypy: disallow-any-decorated """ Implement specializations of Callback which are type-checker friendly. Each new Callback variant (Callback0, Callback1, Callback2, etc) subclasses ``Callback``, but explicitly declare the signature of each method so it only accepts the correct number and...
27.716346
94
0.546748
d50b9fc26a67412e9ffa32ca8aad4d38fd5b1bbe
1,544
py
Python
27/save5_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
27/save5_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
27/save5_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
import glob import json import os from urllib.request import urlretrieve BASE_URL = 'http://projects.bobbelderbos.com/pcc/omdb/' MOVIES = ('bladerunner2049 fightclub glengary ' 'horrible-bosses terminator').split() TMP = '/tmp' # little bit of prework (yes working on pip installables ...) for movie in MOVIE...
29.132075
113
0.683938
d50bae455b7455a006b7ee2b60f03fa9f6ba6caf
1,012
py
Python
sdks/python/test/test_CrashGroupOperatingSystems.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_CrashGroupOperatingSystems.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_CrashGroupOperatingSystems.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.3
111
0.743083
d50bd681bc6b273557d5766f45ba03c7a77e8c74
100
py
Python
tests/test_project/test_project/tests/__init__.py
beachmachine/celery-amqp-backend
40dd2de1f4c926ebf7b8341be99857e48f1c6cf2
[ "MIT" ]
null
null
null
tests/test_project/test_project/tests/__init__.py
beachmachine/celery-amqp-backend
40dd2de1f4c926ebf7b8341be99857e48f1c6cf2
[ "MIT" ]
null
null
null
tests/test_project/test_project/tests/__init__.py
beachmachine/celery-amqp-backend
40dd2de1f4c926ebf7b8341be99857e48f1c6cf2
[ "MIT" ]
1
2021-10-08T09:02:48.000Z
2021-10-08T09:02:48.000Z
__all__ = [ 'default_app_config', ] default_app_config = 'test_project.tests.apps.TestsConfig'
16.666667
58
0.75
d50c6fb030ee77933daabd7a3c4ef8b2f09e95e3
4,584
py
Python
test_utils/templatetags/__init__.py
kkubasik/django-test-utils
e8124541dac36bcf0fc006854f7b59fb4a40ae16
[ "MIT" ]
1
2015-11-08T11:33:47.000Z
2015-11-08T11:33:47.000Z
test_utils/templatetags/__init__.py
kkubasik/django-test-utils
e8124541dac36bcf0fc006854f7b59fb4a40ae16
[ "MIT" ]
null
null
null
test_utils/templatetags/__init__.py
kkubasik/django-test-utils
e8124541dac36bcf0fc006854f7b59fb4a40ae16
[ "MIT" ]
null
null
null
import re import os from django.conf import settings from django.template.loaders.filesystem import load_template_source DEFAULT_TAGS = ['autoescape' , 'block' , 'comment' , 'cycle' , 'debug' , 'extends' , 'filter' , 'firstof' , 'for' , 'if' , 'else', 'ifchanged' , 'ifequal' , 'ifnotequal' , 'include' , 'load' , 'now'...
38.847458
156
0.580716
d50c7968fe6947d3b1de29d0ff45be492276710a
4,066
py
Python
cinder/volume/drivers/falconstor/iscsi.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/falconstor/iscsi.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/falconstor/iscsi.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 FalconStor, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
37.302752
78
0.622971
d50cebd8012d60e5b96f00323e16551c8bc11790
5,850
py
Python
website/archiver/model.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
1
2015-10-02T18:35:53.000Z
2015-10-02T18:35:53.000Z
website/archiver/model.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
4
2016-05-13T14:24:16.000Z
2017-03-30T15:28:31.000Z
website/archiver/model.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
null
null
null
import datetime from modularodm import fields from framework.mongo import ObjectId from framework.mongo import StoredObject from website.archiver import ( ARCHIVER_INITIATED, ARCHIVER_SUCCESS, ARCHIVER_FAILURE, ARCHIVER_FAILURE_STATUSES ) from addons.base.models import BaseStorageAddon from website ...
31.451613
115
0.617436
d50ceca96d2c99f4205c99d4d3c10af309ed254d
7,036
py
Python
pygraphviz/setup_extra.py
Yen-HuaChen/hLDA
d3acaab83f4a7d681d599de44ff3a043bf2b59ac
[ "MIT" ]
5
2017-12-18T16:57:05.000Z
2019-11-11T15:43:16.000Z
pygraphviz/setup_extra.py
Yen-HuaChen/hLDA
d3acaab83f4a7d681d599de44ff3a043bf2b59ac
[ "MIT" ]
null
null
null
pygraphviz/setup_extra.py
Yen-HuaChen/hLDA
d3acaab83f4a7d681d599de44ff3a043bf2b59ac
[ "MIT" ]
2
2018-04-19T09:16:16.000Z
2020-07-09T21:22:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup helpers for PyGraphviz. """ # Copyright (C) 2006-2015 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Manos Renieris, http://www.cs.brown.edu/~er/ # Distributed with BSD license. # All rights reserved, see LICENSE f...
35.535354
139
0.639568
d50ceda256c8ff65557ea5f8f6642700ee6d9257
10,707
py
Python
extensions/arcade/sawtooth_xo/xo_cli.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
1
2019-03-18T13:31:11.000Z
2019-03-18T13:31:11.000Z
extensions/arcade/sawtooth_xo/xo_cli.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
extensions/arcade/sawtooth_xo/xo_cli.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2016 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...
28.476064
80
0.625012