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
084c2609bba77b69e854803580aec72369f86050
4,874
py
Python
Cat Heaven.py
JustCoding7/Cat-Heaven-TelegramBot
3c5e5509261a1f5f0217df230a28141e46172440
[ "MIT" ]
1
2021-01-10T18:22:28.000Z
2021-01-10T18:22:28.000Z
Cat Heaven.py
JustCoding7/CatHeaven-TelegramBot
3c5e5509261a1f5f0217df230a28141e46172440
[ "MIT" ]
null
null
null
Cat Heaven.py
JustCoding7/CatHeaven-TelegramBot
3c5e5509261a1f5f0217df230a28141e46172440
[ "MIT" ]
null
null
null
import requests import json import random import telebot from flask import Flask,request from telebot import types as tp # Credentials token = '<Bot-Token>' secret = '<Client-Secret>' url = '<Webhook-URL>' + secret # APIs Used TheCatAPI = 'https://api.thecatapi.com/v1/images/search' RandomFact = 'https://some-random-...
38.078125
529
0.733484
084c52d2b2c22c4a6743e1a83f18b95a040ec45f
2,840
py
Python
src/train.py
grantgasser/vehicle-detection
812932d545eba088f530fa77dc9ef0399d30b713
[ "MIT" ]
1
2021-03-09T15:36:35.000Z
2021-03-09T15:36:35.000Z
src/train.py
grantgasser/vehicle-detection
812932d545eba088f530fa77dc9ef0399d30b713
[ "MIT" ]
null
null
null
src/train.py
grantgasser/vehicle-detection
812932d545eba088f530fa77dc9ef0399d30b713
[ "MIT" ]
null
null
null
import glob import os import time import cv2 import numpy as np import pickle import matplotlib.image as mpimg import matplotlib.pyplot as plt from sklearn.preprocessing import StandardScaler from sklearn.model_selection import train_test_split from sklearn.svm import SVC from sklearn.decomposition import PCA from p...
29.894737
95
0.761268
084c6292530eb99644d2a69274374dc2f8d4e45f
13,459
py
Python
src/Cjson/scripts/rebuild_lib_Cjson.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
3
2019-11-26T05:33:47.000Z
2020-05-18T06:49:41.000Z
src/Cjson/scripts/rebuild_lib_Cjson.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
null
null
null
src/Cjson/scripts/rebuild_lib_Cjson.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
1
2020-06-03T03:27:27.000Z
2020-06-03T03:27:27.000Z
#!python3 # -*- coding:utf-8 -*- import os import sys import time import ctypes import shutil import subprocess IsPy3 = sys.version_info[0] >= 3 if IsPy3: import winreg else: import codecs import _winreg as winreg BuildType = 'Release' IsRebuild = True Build = 'Rebuild' Update = False C...
39.239067
178
0.582213
084c687d5fcf5522c1debb34f93e19ed170aba2e
7,130
py
Python
google/cloud/compute_v1/services/addresses/transports/base.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/addresses/transports/base.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/addresses/transports/base.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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...
36.377551
101
0.650351
084c6b216cf58f5a554e080aceb2514eb268df76
326
py
Python
observedPIN.py
EdvinAlvarado/Code-Wars
a3a06a44cda004052b5c0930f3693678c5c92e21
[ "BSD-2-Clause" ]
null
null
null
observedPIN.py
EdvinAlvarado/Code-Wars
a3a06a44cda004052b5c0930f3693678c5c92e21
[ "BSD-2-Clause" ]
null
null
null
observedPIN.py
EdvinAlvarado/Code-Wars
a3a06a44cda004052b5c0930f3693678c5c92e21
[ "BSD-2-Clause" ]
null
null
null
# https://www.codewars.com/kata/the-observed-pin/solutions?show-solutions=1 from itertools import product ADJACENTS = ('08', '124', '2135', '326', '4157', '52468', '6359', '748', '85790', '968') def get_pins(observed): return [''.join(p) for p in product(*(ADJACENTS[int(d)] for d in observed))] print(get_pins('1...
29.636364
88
0.662577
084cde0e3e5c2c31de2986910e725dfde80dc7e3
4,937
py
Python
scripts/pbs.py
asrivast28/bn-utils
dc6ecc8912de91b3868a1968b2e90daea0c33c1f
[ "Apache-2.0" ]
1
2021-08-09T01:33:35.000Z
2021-08-09T01:33:35.000Z
scripts/pbs.py
asrivast28/bn-utils
dc6ecc8912de91b3868a1968b2e90daea0c33c1f
[ "Apache-2.0" ]
null
null
null
scripts/pbs.py
asrivast28/bn-utils
dc6ecc8912de91b3868a1968b2e90daea0c33c1f
[ "Apache-2.0" ]
1
2021-08-12T14:34:31.000Z
2021-08-12T14:34:31.000Z
#!/usr/bin/env python ## # @file pbs.py # @brief Script for submitting PBS jobs. # @author Ankit Srivastava <asrivast@gatech.edu> # # Copyright 2020 Georgia Institute of Technology # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # Y...
41.141667
143
0.658497
084d2e673f88f8a2d806adcff0ddaa0b808bf85f
6,510
py
Python
figure_3/model_I/sobolev_alignment/target_hyperopt_search.py
saroudant/sobolev_alignment_manuscript
2b4d7ce4bbdac3a32ad8c02b950b4d1c91cda193
[ "MIT" ]
null
null
null
figure_3/model_I/sobolev_alignment/target_hyperopt_search.py
saroudant/sobolev_alignment_manuscript
2b4d7ce4bbdac3a32ad8c02b950b4d1c91cda193
[ "MIT" ]
null
null
null
figure_3/model_I/sobolev_alignment/target_hyperopt_search.py
saroudant/sobolev_alignment_manuscript
2b4d7ce4bbdac3a32ad8c02b950b4d1c91cda193
[ "MIT" ]
null
null
null
""" SEARCH OF HYPERPARAMETER FOR TARGET ON MODEL II 2021/11/05 - Soufiane Mourragui This scripts performs the Bayesian search for hyper-parameters in scVI using hyperopt. The idea is to find the optimal combination of hyper-parameters that gives the best performance in left-out samples. Comparison of performances ar...
31.601942
126
0.693088
084d49eec944a6efb0c4a78989421b9755ec2625
375
py
Python
config/logging.py
caohui-ouba/cadvis-graph-analysis-server
4ee3b1e4dd8fcac03d242bbc2c2999b522cafb2f
[ "Apache-2.0" ]
1
2020-03-06T12:40:12.000Z
2020-03-06T12:40:12.000Z
config/logging.py
caohui-ouba/cadvis-graph-analysis-server
4ee3b1e4dd8fcac03d242bbc2c2999b522cafb2f
[ "Apache-2.0" ]
null
null
null
config/logging.py
caohui-ouba/cadvis-graph-analysis-server
4ee3b1e4dd8fcac03d242bbc2c2999b522cafb2f
[ "Apache-2.0" ]
null
null
null
import logging def config_log(): # logging config LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s" DATE_FORMAT = "%m/%d/%Y %H:%M:%S %p" # fp = logging.FileHandler('log.txt', encoding='utf-8') fs = logging.StreamHandler() logging.basicConfig(level=logging.DEBUG, format=LOG_FORMAT, ...
31.25
63
0.618667
084d649a80390fa3b338d9b7aa06e170cff92df6
551
py
Python
fishy/helper/__init__.py
fishyboteso/fishyboteso
f77478d52b801926bcf98f83c3a6192d448dfc0b
[ "MIT" ]
13
2021-03-22T20:14:13.000Z
2022-03-15T03:48:42.000Z
fishy/helper/__init__.py
Sibiryak82/fishyboteso
f77478d52b801926bcf98f83c3a6192d448dfc0b
[ "MIT" ]
49
2021-01-18T23:33:22.000Z
2022-03-17T06:07:46.000Z
fishy/helper/__init__.py
Sibiryak82/fishyboteso
f77478d52b801926bcf98f83c3a6192d448dfc0b
[ "MIT" ]
8
2021-03-03T20:04:40.000Z
2022-03-09T11:34:03.000Z
from .auto_update import auto_upgrade, upgrade_avail, versions from .config import Config from .helper import (addon_exists, create_shortcut, create_shortcut_first, get_addonversion, get_savedvarsdir, initialize_uid, install_addon, install_thread_excepthook, manifest_file, ...
55.1
77
0.704174
084de256c80feb3c0cf29afed632087142258542
1,413
py
Python
nexus-ingest/nexus-xd-python-modules/nexusxd/callncpdq.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
23
2016-08-09T22:45:14.000Z
2020-02-17T08:18:29.000Z
nexus-ingest/nexus-xd-python-modules/nexusxd/callncpdq.py
lewismc/incubator-sdap-nexus
ff98fa346303431542b8391cc2a1bf7561d1bd03
[ "Apache-2.0" ]
6
2017-04-27T21:22:17.000Z
2021-06-01T21:45:52.000Z
nexus-ingest/nexus-xd-python-modules/nexusxd/callncpdq.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
5
2016-08-31T13:47:29.000Z
2017-11-14T21:45:22.000Z
""" Copyright (c) 2017 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved """ import logging import os from subprocess import call from springxd.tcpstream import start_server, LengthHeaderTcpProcessor dimension_order = os.environ['DIMENSION_ORDER'].split(':') try: output_prefix ...
23.949153
100
0.70913
084df49eed2b5c40f2a56d0a7cc527501711b395
68,007
py
Python
Sklearn_scipy_numpy/source/scipy/linalg/tests/test_decomp_update.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
11
2017-12-25T23:22:13.000Z
2021-09-28T00:23:37.000Z
Sklearn_scipy_numpy/source/scipy/linalg/tests/test_decomp_update.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Sklearn_scipy_numpy/source/scipy/linalg/tests/test_decomp_update.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
5
2016-05-18T21:47:17.000Z
2021-08-09T11:48:30.000Z
from __future__ import division, print_function, absolute_import import itertools import numpy as np from numpy.testing import (assert_, assert_allclose, assert_raises, assert_equal, run_module_suite) from scipy import linalg import scipy.linalg._decomp_update as _decomp_update from scipy.linalg._decomp_upda...
40.193262
88
0.556796
084dff2930e9e73ca9cb5e5d013921d28c89d312
46,478
py
Python
electricpy/sim.py
miguelzaqui/ElectricPy
763feeca12da5e47315cf8de181b94a3eb724fef
[ "MIT" ]
20
2020-02-04T13:37:16.000Z
2022-03-23T18:31:42.000Z
electricpy/sim.py
miguelzaqui/ElectricPy
763feeca12da5e47315cf8de181b94a3eb724fef
[ "MIT" ]
36
2020-04-21T18:45:48.000Z
2022-03-30T13:38:22.000Z
electricpy/sim.py
miguelzaqui/ElectricPy
763feeca12da5e47315cf8de181b94a3eb724fef
[ "MIT" ]
17
2020-07-06T08:09:02.000Z
2022-03-23T19:11:10.000Z
################################################################################ """ `electricpy.sim` - Simulation Module. >>> from electricpy import sim """ ################################################################################ # Import Required External Dependencies import numpy as _np import matplotlib...
39.255068
108
0.572357
084dff9172831d872c75a1af5d6d19983e23a1b3
6,155
py
Python
lib/reda/importers/eit_version_2010.py
j-hase/reda
b6419c39842cfbdd9380a27a5c6e9a04ccaeb294
[ "MIT" ]
12
2017-12-11T08:32:46.000Z
2021-06-09T05:41:57.000Z
lib/reda/importers/eit_version_2010.py
j-hase/reda
b6419c39842cfbdd9380a27a5c6e9a04ccaeb294
[ "MIT" ]
58
2017-11-12T11:10:42.000Z
2021-06-11T13:52:44.000Z
lib/reda/importers/eit_version_2010.py
geophysics-ubonn/REDA
8f0399031121f5a937171231a25f9ab03a3c8873
[ "MIT" ]
11
2017-11-12T12:02:35.000Z
2021-02-16T06:54:04.000Z
"""Research Center Jülich - EIT40 system importer (2010 version) """ import datetime import numpy as np import pandas as pd def _average_swapped_current_injections(df): AB = df[['a', 'b']].values # get unique injections abu = np.unique( AB.flatten().view(AB.dtype.descr * 2) ).view(AB.dtype)....
29.309524
78
0.497969
084e179e51c7e5b6c2ac3d14e260254ef59d5720
94
py
Python
services/traction/setup.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/setup.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/setup.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
from setuptools import setup, find_packages setup(name="traction", packages=find_packages())
23.5
48
0.808511
084e5ecda9392046009fe0d18f5b03da6f459c20
26
py
Python
btd6_memory_info/generated/Assets/Scripts/Simulation/Input/PowerInventory/power_inventory.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Simulation/Input/PowerInventory/power_inventory.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Simulation/Input/PowerInventory/power_inventory.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class PowerInventory: pass
26
26
0.884615
084ec614b4bdd2bf65c8dab8160a22d0c5403d39
976
py
Python
saf/nonlinear/weno5js.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
saf/nonlinear/weno5js.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
saf/nonlinear/weno5js.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
import numpy as np from . import weno5js_impl_c class WENO5JS: """Docstring for WenoInterpolation. """ def __init__(self, eps, size): """@todo: to be defined1. """ self._eps = eps self._size = size - 2 - 3 # Strip off boundary and ghost points. weno5js_impl_c.init(eps, self...
25.025641
73
0.553279
084ed83b06775e845d73d0ad30b870f4dfcbe912
3,456
py
Python
avito-demand-prediction-challenge/python_codes/prepare_active_HDF5.py
LowPass-DataScience/avito-demand-prediction-chanllege
966be906f30470a97b88cb05bec5cce7e4f3aa7b
[ "MIT" ]
2
2018-06-29T23:38:23.000Z
2018-06-30T17:04:37.000Z
avito-demand-prediction-challenge/python_codes/prepare_active_HDF5.py
LowPass-DataScience/avito-demand-prediction-chanllege
966be906f30470a97b88cb05bec5cce7e4f3aa7b
[ "MIT" ]
null
null
null
avito-demand-prediction-challenge/python_codes/prepare_active_HDF5.py
LowPass-DataScience/avito-demand-prediction-chanllege
966be906f30470a97b88cb05bec5cce7e4f3aa7b
[ "MIT" ]
1
2018-07-03T03:36:21.000Z
2018-07-03T03:36:21.000Z
import pandas as pd import numpy as np import string import os import json import gc from sklearn.preprocessing import LabelEncoder gc.enable() dataPath='../../../data/avito-demand-prediction' ## Load csv.zip data train_active = pd.read_csv(os.path.join(dataPath, 'train_active.csv.zip'), compression='zip') print('tra...
32.299065
109
0.693866
084ee0d9bcb7cb2876f8e54175f7b65483cb2ade
3,030
py
Python
src/extensions/_hydra_helper/ipc_events.py
unified-moderation-network/salamander
98578aa1974a0d7778569ac9d822f13614d31269
[ "Apache-2.0" ]
10
2020-08-20T21:25:01.000Z
2021-06-30T05:28:24.000Z
src/extensions/_hydra_helper/ipc_events.py
unified-moderation-network/salamander
98578aa1974a0d7778569ac9d822f13614d31269
[ "Apache-2.0" ]
61
2020-09-28T14:56:23.000Z
2022-02-19T20:04:59.000Z
src/extensions/_hydra_helper/ipc_events.py
unified-moderation-network/salamander
98578aa1974a0d7778569ac9d822f13614d31269
[ "Apache-2.0" ]
2
2020-10-03T17:07:57.000Z
2020-11-02T02:06:11.000Z
# Copyright 2020-present Michael Hall # # 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...
33.666667
119
0.670627
084f12f6385d0f81df0b013d2467a6924c149e84
66,688
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/violin/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/violin/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/violin/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): # marker # ------ @property def marker(self): """ The 'marker' property is an instance of Marker that may be specified as: ...
35.191557
85
0.552963
084f12f9c4e388f7d48645a91af4b2834e1c1e5b
1,494
py
Python
lite-hrnet/src/utils.py
kingcong/MindSpore_Code
afe6ef9cada6c98f601754197db84ee1c21dbc9d
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
lite-hrnet/src/utils.py
kingcong/MindSpore_Code
afe6ef9cada6c98f601754197db84ee1c21dbc9d
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
lite-hrnet/src/utils.py
kingcong/MindSpore_Code
afe6ef9cada6c98f601754197db84ee1c21dbc9d
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2022 Huawei Technologies Co., Ltd # # 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...
41.5
90
0.649264
084f4ec6644089f6dc95d37c961fe26f4ef2dc4a
2,393
py
Python
testing.py
sitina/udacity-drl-navigation
af64cfc5a3691627c28a1838cb0e4212074adfe6
[ "MIT" ]
null
null
null
testing.py
sitina/udacity-drl-navigation
af64cfc5a3691627c28a1838cb0e4212074adfe6
[ "MIT" ]
null
null
null
testing.py
sitina/udacity-drl-navigation
af64cfc5a3691627c28a1838cb0e4212074adfe6
[ "MIT" ]
3
2019-12-10T11:45:13.000Z
2020-12-28T01:23:32.000Z
from unityagents import UnityEnvironment import numpy as np import random import torch from collections import deque import argparse from agent import Agent if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--environment', type=str, help='Path to Unity environment files', ...
39.229508
107
0.617217
084f6cca8146ce605c242bb2a8fb324009c6a3ad
494
py
Python
alipay/aop/api/response/AlipayOpenMiniInnerappPluginuseconfigCancelResponse.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/AlipayOpenMiniInnerappPluginuseconfigCancelResponse.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/AlipayOpenMiniInnerappPluginuseconfigCancelResponse.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 AlipayOpenMiniInnerappPluginuseconfigCancelResponse(AlipayResponse): def __init__(self): super(AlipayOpenMiniInnerappPluginuseconfigCancelResponse, self).__init__() def...
30.875
124
0.803644
084f71e0cd63a232698b72a6a394d81d54b6d573
35
py
Python
jduargs/__init__.py
jeandemeusy/jdu_args
cbaf69d70c4cc25492989787ff97b4642b58078f
[ "MIT" ]
null
null
null
jduargs/__init__.py
jeandemeusy/jdu_args
cbaf69d70c4cc25492989787ff97b4642b58078f
[ "MIT" ]
null
null
null
jduargs/__init__.py
jeandemeusy/jdu_args
cbaf69d70c4cc25492989787ff97b4642b58078f
[ "MIT" ]
null
null
null
from .parser import ArgumentParser
17.5
34
0.857143
084f84142051c38a6e15ba89499ce7f0d9676c08
712
py
Python
Chapter 02/example01.py
PacktPublishing/Python-Geospatial-Development-Third-Edition
e1e1f52da8509876e8576e081de9d5f251a21f77
[ "MIT" ]
44
2016-06-14T05:36:10.000Z
2022-01-30T18:29:44.000Z
Chapter 02/example01.py
KonstantinKlepikov/Python-Geospatial-Development-Third-Edition
ca3545dbab75dac63080582538de40d4d1c15dab
[ "MIT" ]
null
null
null
Chapter 02/example01.py
KonstantinKlepikov/Python-Geospatial-Development-Third-Edition
ca3545dbab75dac63080582538de40d4d1c15dab
[ "MIT" ]
48
2016-12-11T08:53:46.000Z
2022-02-10T12:10:34.000Z
import osgeo.ogr shapefile = osgeo.ogr.Open("tl_2014_us_state.shp") numLayers = shapefile.GetLayerCount() print("Shapefile contains {} layers".format(numLayers)) print() for layerNum in range(numLayers): layer = shapefile.GetLayer(layerNum) spatialRef = layer.GetSpatialRef().ExportToProj4() numFeatures =...
30.956522
75
0.70927
084fc55775df0d812582f920f2227fff03b7593b
1,436
py
Python
converter/nnef_converters/caffe_converters/common.py
asdor/NNEF-Tools
e84c3db29c1bffbd1938d40a10765badc0848606
[ "Apache-2.0" ]
null
null
null
converter/nnef_converters/caffe_converters/common.py
asdor/NNEF-Tools
e84c3db29c1bffbd1938d40a10765badc0848606
[ "Apache-2.0" ]
null
null
null
converter/nnef_converters/caffe_converters/common.py
asdor/NNEF-Tools
e84c3db29c1bffbd1938d40a10765badc0848606
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 The Khronos Group Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
27.09434
99
0.747214
084fc9b77152d1c285a43ac17360c2318fa34fb5
1,133
py
Python
alipay/aop/api/response/AlipayCommerceIotDeviceBindQueryResponse.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/AlipayCommerceIotDeviceBindQueryResponse.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/AlipayCommerceIotDeviceBindQueryResponse.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.IotDeviceBindInfo import IotDeviceBindInfo class AlipayCommerceIotDeviceBindQueryResponse(AlipayResponse): def __init__(self): super(AlipayCommerceIotDev...
34.333333
113
0.696381
085007a14196ff25e629ea1734fab39a28d3ff90
1,550
py
Python
premade_modules/2.79/2.79b/bpy/app/handlers.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.79/2.79b/bpy/app/handlers.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.79/2.79b/bpy/app/handlers.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
frame_change_post = None '''on frame change for playback and rendering (after) ''' frame_change_pre = None '''on frame change for playback and rendering (before) ''' game_post = None '''on ending the game engine ''' game_pre = None '''on starting the game engine ''' load_post = None '''on loading a new blend file (...
27.192982
211
0.724516
08502cbe850ce4dacbf57f3f7e588a41fb16731e
19,040
py
Python
tests/unit/modules/file_test.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
2
2017-09-17T21:10:35.000Z
2019-08-26T03:00:12.000Z
tests/unit/modules/file_test.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/file_test.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
# -*- coding: utf-8 -*- # Import python libs import os import tempfile import textwrap # Import Salt Testing libs from salttesting import TestCase from salttesting.helpers import ensure_in_syspath from salttesting.mock import MagicMock ensure_in_syspath('../../') # Import Salt libs from salt.modules import file as ...
36.405354
80
0.548372
08504694c49ad6b8dd305194c9c945e922fefc3e
1,706
py
Python
misc/pyqttools/winpyqtwheelsetup.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
69
2015-01-13T02:54:40.000Z
2022-03-27T14:25:51.000Z
misc/pyqttools/winpyqtwheelsetup.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
127
2015-01-01T06:26:34.000Z
2022-03-02T12:48:05.000Z
misc/pyqttools/winpyqtwheelsetup.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
48
2015-01-22T19:57:49.000Z
2022-03-27T14:27:53.000Z
""" Create wheel with python setup.py bdist_wheel --plat-name win_amd64 --python-tag cp35 """ import os.path import glob from os.path import join as pjoin from os.path import relpath as rpath from setuptools import find_packages try: from setuptools import setup, Extension except ImportError: from distutil...
28.433333
74
0.699297
0850598b0d480bc792339c9db72ff64d22bef1b3
6,447
py
Python
everything_at_once/dataset/crosstask_mining_dataset.py
ninatu/everything_at_once
b4cd3a70076ea3ea2b40832aa3e2afab50495c47
[ "BSD-3-Clause" ]
null
null
null
everything_at_once/dataset/crosstask_mining_dataset.py
ninatu/everything_at_once
b4cd3a70076ea3ea2b40832aa3e2afab50495c47
[ "BSD-3-Clause" ]
null
null
null
everything_at_once/dataset/crosstask_mining_dataset.py
ninatu/everything_at_once
b4cd3a70076ea3ea2b40832aa3e2afab50495c47
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from __future__ import print_function import torch as th from torch.utils.data import Dataset import pandas as pd import os import numpy as np import json import librosa from everything_at_once.dataset.utils...
39.552147
119
0.599659
08507e5518e4453a5dd37ea0b2f8cb7c5381311c
1,228
py
Python
invoice-processing-pipeline/processor/helpers.py
GoogleCloudPlatform/jobs-demos
6a005ba4a053d6c45551ad0f790b39b4ad414bab
[ "Apache-2.0" ]
2
2022-03-23T19:02:49.000Z
2022-03-24T19:33:12.000Z
invoice-processing-pipeline/processor/helpers.py
GoogleCloudPlatform/jobs-demos
6a005ba4a053d6c45551ad0f790b39b4ad414bab
[ "Apache-2.0" ]
1
2022-03-23T21:40:52.000Z
2022-03-23T21:45:05.000Z
invoice-processing-pipeline/processor/helpers.py
GoogleCloudPlatform/jobs-demos
6a005ba4a053d6c45551ad0f790b39b4ad414bab
[ "Apache-2.0" ]
3
2022-03-18T09:37:17.000Z
2022-03-24T17:43:40.000Z
# /usr/env/python3 # Copyright 2022 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 agre...
34.111111
83
0.741042
08508932c02e7eec8878b264233c9c2e7bfed2ea
2,348
py
Python
tests/workers/test_supported_groups_openssl3_0_0_ed25519_ed448.py
timb-machine-mirrors/tlsmate
1313161b9170311f466a3a43b3d84797cecc0291
[ "MIT" ]
null
null
null
tests/workers/test_supported_groups_openssl3_0_0_ed25519_ed448.py
timb-machine-mirrors/tlsmate
1313161b9170311f466a3a43b3d84797cecc0291
[ "MIT" ]
null
null
null
tests/workers/test_supported_groups_openssl3_0_0_ed25519_ed448.py
timb-machine-mirrors/tlsmate
1313161b9170311f466a3a43b3d84797cecc0291
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Implements a class to be used for unit testing. """ import pathlib from tlsmate.workers.supported_groups import ScanSupportedGroups from tlsmate.tlssuite import TlsSuiteTester from tlsmate.tlssuite import TlsLibrary groups_tls12 = ["SECP256R1", "SECP384R1", "SECP521R1", "X25519", "X448"] g...
30.894737
76
0.665673
085098e4988f36f2dc034a68fb9cc10c02417557
1,361
py
Python
raiden/transfer/routes.py
ExchangeUnion/raiden
2217bcb698fcfce3499dc1f41ad919ed82e8e45f
[ "MIT" ]
null
null
null
raiden/transfer/routes.py
ExchangeUnion/raiden
2217bcb698fcfce3499dc1f41ad919ed82e8e45f
[ "MIT" ]
12
2019-08-09T19:12:17.000Z
2019-12-05T15:49:29.000Z
raiden/transfer/routes.py
ExchangeUnion/raiden
2217bcb698fcfce3499dc1f41ad919ed82e8e45f
[ "MIT" ]
null
null
null
from raiden.transfer.state import NODE_NETWORK_REACHABLE, RouteState from raiden.utils.typing import ChannelID, List, NodeNetworkStateMap def filter_reachable_routes( route_states: List[RouteState], nodeaddresses_to_networkstates: NodeNetworkStateMap ) -> List[RouteState]: """ This function makes sure we use ...
34.897436
98
0.74504
08509afc3a3baa8b07200a9fa2fc59fc056165c9
3,524
py
Python
check.py
manhcntt21/TextNormSeq2Seq
440b252bddc0c735f083acd51271f2056d088a0a
[ "MIT" ]
null
null
null
check.py
manhcntt21/TextNormSeq2Seq
440b252bddc0c735f083acd51271f2056d088a0a
[ "MIT" ]
null
null
null
check.py
manhcntt21/TextNormSeq2Seq
440b252bddc0c735f083acd51271f2056d088a0a
[ "MIT" ]
null
null
null
import random def get_repleace_character(): repleace_character = {} # repleace_character['ch'] = ['tr'] # repleace_character['tr'] = ['ch'] repleace_character['l'] = ['n'] repleace_character['n'] = ['l'] repleace_character['x'] = ['s'] repleace_character['s'] = ['x'] repleace_character...
33.245283
100
0.442111
08510032a8730c30cc11ee721ccbc118de480b42
1,309
py
Python
tests/dataverk/test_Dataverk.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
3
2019-09-29T20:48:46.000Z
2021-03-31T10:16:07.000Z
tests/dataverk/test_Dataverk.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
148
2019-02-08T12:30:58.000Z
2021-03-11T15:31:55.000Z
tests/dataverk/test_Dataverk.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
1
2020-11-18T14:10:05.000Z
2020-11-18T14:10:05.000Z
import json import unittest from pathlib import Path from dataverk.dataverk import Dataverk from tests.windows_safe_tempdir import WindowsSafeTempDirectory SETTINGS = { "index_connections": { "elastic_host": "https://es-index.no", "index": "index-name" }, "bucket_storage_connections": { "git...
26.18
85
0.661574
0851232cd3f5f1f73f7c59aecba933766057f791
6,657
py
Python
storm_control/sc_hardware/lumencor/celesta.py
BogdanBintu/Megafish
bc310172b4e85813d8cfc44b55ffec3bd5dc3a3c
[ "MIT" ]
null
null
null
storm_control/sc_hardware/lumencor/celesta.py
BogdanBintu/Megafish
bc310172b4e85813d8cfc44b55ffec3bd5dc3a3c
[ "MIT" ]
null
null
null
storm_control/sc_hardware/lumencor/celesta.py
BogdanBintu/Megafish
bc310172b4e85813d8cfc44b55ffec3bd5dc3a3c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Generic Lumencor laser control via HTTP (ethernet connection). Bogdan 3/19 """ import urllib.request import traceback def lumencor_httpcommand(command = 'GET IP',ip = '192.168.201.200'): """ Sends commands to the lumencor system via http. Plese find commands here: http://lumenc...
36.983333
119
0.618297
085148a78fe28c97438c5512128df93282b7194a
13,185
py
Python
app_exportformats/views.py
markusSMHI/sharkdata_py3
129a250e1729cfef10994f0778d1243a05f9cf8a
[ "MIT" ]
null
null
null
app_exportformats/views.py
markusSMHI/sharkdata_py3
129a250e1729cfef10994f0778d1243a05f9cf8a
[ "MIT" ]
null
null
null
app_exportformats/views.py
markusSMHI/sharkdata_py3
129a250e1729cfef10994f0778d1243a05f9cf8a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # Copyright (c) 2013-present SMHI, Swedish Meteorological and Hydrological Institute # License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit). import json import codecs from django.http import HttpResponse, HttpResponseRedirect #, Streamin...
41.724684
137
0.603489
08515242593107a0af02ca7e32c1263d42caf851
14,743
py
Python
trdg/run.py
ToluClassics/TextRecognitionDataGenerator
58a9c2ccea35bcc29968ebe3aab71a3fb3d6a16e
[ "MIT" ]
null
null
null
trdg/run.py
ToluClassics/TextRecognitionDataGenerator
58a9c2ccea35bcc29968ebe3aab71a3fb3d6a16e
[ "MIT" ]
null
null
null
trdg/run.py
ToluClassics/TextRecognitionDataGenerator
58a9c2ccea35bcc29968ebe3aab71a3fb3d6a16e
[ "MIT" ]
1
2021-11-09T12:52:15.000Z
2021-11-09T12:52:15.000Z
import argparse import errno import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), "..")) import random as rnd import string import sys from multiprocessing import Pool from tqdm import tqdm from trdg.data_generator import FakeTextDataGenerator from trdg.string_generator import (create_string...
30.714583
176
0.551855
085153dac0da7b3b20f482c76d31eb5bc28976ed
2,530
py
Python
sdk/storage/azure-mgmt-storagecache/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
sdk/storage/azure-mgmt-storagecache/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
sdk/storage/azure-mgmt-storagecache/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
34.189189
91
0.605929
08515507cc060775a6917a03221c22461b034478
2,302
py
Python
sunpy/map/sources/rhessi.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
2
2020-07-02T13:01:42.000Z
2020-08-27T20:05:31.000Z
sunpy/map/sources/rhessi.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
1
2020-05-11T13:38:56.000Z
2020-05-11T13:38:56.000Z
sunpy/map/sources/rhessi.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
null
null
null
"""RHESSI Map subclass definitions""" __author__ = "Steven Christe" __email__ = "steven.d.christe@nasa.gov" from sunpy.map import GenericMap __all__ = ['RHESSIMap'] class RHESSIMap(GenericMap): """RHESSI Image Map. The RHESSI mission consists of a single spin-stabilized spacecraft in a low-altitude or...
33.362319
91
0.638141
08515d08322f1006b5809a141cfa870eddd5c02c
86
py
Python
src/seddy/__init__.py
sys-fs/seddy
9d1d5a6da99b7a3630274c9f8bd836073567fef0
[ "BSD-3-Clause" ]
1
2016-12-14T21:45:24.000Z
2016-12-14T21:45:24.000Z
src/seddy/__init__.py
sys-fs/seddy
9d1d5a6da99b7a3630274c9f8bd836073567fef0
[ "BSD-3-Clause" ]
null
null
null
src/seddy/__init__.py
sys-fs/seddy
9d1d5a6da99b7a3630274c9f8bd836073567fef0
[ "BSD-3-Clause" ]
null
null
null
'''An IRC bot for tubes.''' from . import main from . import tubes from . import sed
14.333333
27
0.674419
0851638c06d59ffdbd460e3493bfa71190192e3a
16,264
py
Python
transformers_ace/temp/lm_finetuning/pregenerate_training_data.py
modudeepnlp/transformers-ace
c048155156daf1fe1901757f039b1f67fed46b14
[ "Apache-2.0" ]
null
null
null
transformers_ace/temp/lm_finetuning/pregenerate_training_data.py
modudeepnlp/transformers-ace
c048155156daf1fe1901757f039b1f67fed46b14
[ "Apache-2.0" ]
1
2020-12-21T02:20:04.000Z
2020-12-21T02:20:04.000Z
transformers_ace/temp/lm_finetuning/pregenerate_training_data.py
modudeepnlp/transformers-ace
c048155156daf1fe1901757f039b1f67fed46b14
[ "Apache-2.0" ]
null
null
null
from argparse import ArgumentParser from pathlib import Path from tqdm import tqdm, trange from tempfile import TemporaryDirectory import shelve from multiprocessing import Pool from random import random, randrange, randint, shuffle, choice from transformers.tokenization_bert import BertTokenizer import numpy as np im...
45.814085
120
0.625369
0851bfbe4ecf37203a05b0fecc51debef101412b
429
py
Python
competitive_coding/dynamic_programming/knapsack01.py
5aurabhpathak/src
dda72beba2aaae67542a2f10e89048e86d04cb28
[ "BSD-3-Clause" ]
1
2021-07-07T06:51:18.000Z
2021-07-07T06:51:18.000Z
competitive_coding/dynamic_programming/knapsack01.py
5aurabhpathak/all-I-ve-done
dda72beba2aaae67542a2f10e89048e86d04cb28
[ "BSD-3-Clause" ]
null
null
null
competitive_coding/dynamic_programming/knapsack01.py
5aurabhpathak/all-I-ve-done
dda72beba2aaae67542a2f10e89048e86d04cb28
[ "BSD-3-Clause" ]
1
2020-08-11T09:53:22.000Z
2020-08-11T09:53:22.000Z
#!/bin/env python3.5 (w, n), wt, v = (map(int, input().split())), [], [] for _ in range(n): a,b = map(int, input().split()) wt += a, v += b, def knapsack(n, w, wt, v): dp = [[0]*(w+1)] dp += [[(0 if j == 0 else (dp[i][j-1] if wt[j-1] > j else max(dp[i][j-1], v[j-1] + dp[i-1][j-w...
30.642857
156
0.449883
0851c1bcecdad4dd1080ab7fd8700183c502cd1f
2,784
py
Python
alipay/aop/api/domain/SearchBoxServiceInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/SearchBoxServiceInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/SearchBoxServiceInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class SearchBoxServiceInfo(object): def __init__(self): self._service_category_code = None self._service_category_name = None self._service_code = None self._service_nam...
32.372093
93
0.645833
0851c8e764c5f9bcfe2b7e253c29adef72857f90
1,646
py
Python
warg/data_structures/auto_dict.py
cnheider/warg
4bcc5d3e86dd843773ca6cbca21bcab3b8ae84eb
[ "Apache-2.0" ]
1
2018-11-30T09:14:28.000Z
2018-11-30T09:14:28.000Z
warg/data_structures/auto_dict.py
aivclab/warg
4bcc5d3e86dd843773ca6cbca21bcab3b8ae84eb
[ "Apache-2.0" ]
49
2019-04-02T12:06:10.000Z
2019-08-31T14:30:12.000Z
warg/data_structures/auto_dict.py
cnHeider/warg
4bcc5d3e86dd843773ca6cbca21bcab3b8ae84eb
[ "Apache-2.0" ]
1
2019-03-16T13:56:03.000Z
2019-03-16T13:56:03.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 21/12/2019 """ from collections import defaultdict from typing import Dict, Optional __all__ = ["AutoDict", "recursive_default_dict_print", "sanitise_auto_dict"] def AutoDict() ->...
19.831325
76
0.532807
0851e47026c5150036bfcb6b360ab1716261c445
4,909
py
Python
python/orca/src/bigdl/orca/tfpark/text/estimator/bert_squad.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/orca/src/bigdl/orca/tfpark/text/estimator/bert_squad.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/orca/src/bigdl/orca/tfpark/text/estimator/bert_squad.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL 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 agreed to in ...
46.311321
100
0.654105
0852034a08fa6bd0f6191ddf8536ec0fae1a3c18
4,735
py
Python
plugin_service/serializers.py
Chace-wang/bk-sops
c5f42606c796eae369d23c7de3e47d4ec166c658
[ "Apache-2.0" ]
null
null
null
plugin_service/serializers.py
Chace-wang/bk-sops
c5f42606c796eae369d23c7de3e47d4ec166c658
[ "Apache-2.0" ]
null
null
null
plugin_service/serializers.py
Chace-wang/bk-sops
c5f42606c796eae369d23c7de3e47d4ec166c658
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
42.276786
115
0.754805
08528465a652a51f3068a064c3c0628725c64aeb
5,929
py
Python
Tools/Scripts/webkitpy/style/checkers/cmake_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/style/checkers/cmake_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/style/checkers/cmake_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2012 Intel Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
42.654676
128
0.557598
08528d5c1d763a700fc367959bc75d21bb26bfa1
371
py
Python
app/urls.py
malrefai/todo
8c650f4f416fec34e38bfc524e5422b15555d26c
[ "MIT" ]
null
null
null
app/urls.py
malrefai/todo
8c650f4f416fec34e38bfc524e5422b15555d26c
[ "MIT" ]
5
2018-09-14T10:51:30.000Z
2021-06-10T20:47:46.000Z
app/urls.py
malrefai/todo
8c650f4f416fec34e38bfc524e5422b15555d26c
[ "MIT" ]
1
2018-09-14T10:49:09.000Z
2018-09-14T10:49:09.000Z
from django.conf.urls import url, include from rest_framework.routers import DefaultRouter from app.views import todos_view # Create a router and register our viewsts with it. router = DefaultRouter() router.register(r"todos", todos_view.TodoViewSet) # The API URLs are now determined automatically by the router. url...
26.5
62
0.77628
0852adcc268741b7552449fd7af63ae29b3c9b27
17,812
py
Python
ai4water/postprocessing/SeqMetrics/_SeqMetrics.py
csiro-hydroinformatics/AI4Water
cdb18bd4bf298f77b381f1829045a1e790146985
[ "MIT" ]
12
2020-10-13T08:23:17.000Z
2021-01-22T04:36:21.000Z
ai4water/postprocessing/SeqMetrics/_SeqMetrics.py
csiro-hydroinformatics/AI4Water
cdb18bd4bf298f77b381f1829045a1e790146985
[ "MIT" ]
1
2020-10-15T02:42:52.000Z
2020-10-15T02:51:07.000Z
ai4water/postprocessing/SeqMetrics/_SeqMetrics.py
csiro-hydroinformatics/AI4Water
cdb18bd4bf298f77b381f1829045a1e790146985
[ "MIT" ]
2
2020-11-23T04:45:38.000Z
2020-11-26T10:12:34.000Z
import json import warnings import numpy as np from typing import Union from ai4water.utils.utils import ts_features # TODO remove repeated calculation of mse, std, mean etc # TODO make weights, class attribute # TODO write tests # TODO standardized residual sum of squares # http://documentation.sas.com/?cdcId=fscdc...
39.670379
366
0.595554
0852e5969828dd6459ae22c5b89c721c25201857
515
py
Python
.npm-install/duhportbundler-bin.py
sifive/duhportinf
f7c02b62b594a69a324f44000801754cb50abb42
[ "Apache-2.0" ]
3
2019-12-06T04:22:19.000Z
2020-12-03T21:44:53.000Z
.npm-install/duhportbundler-bin.py
sifive/duhportinf
f7c02b62b594a69a324f44000801754cb50abb42
[ "Apache-2.0" ]
14
2019-05-07T16:16:21.000Z
2020-11-24T19:26:04.000Z
.npm-install/duhportbundler-bin.py
sifive/duhportinf
f7c02b62b594a69a324f44000801754cb50abb42
[ "Apache-2.0" ]
4
2019-06-13T19:57:55.000Z
2021-05-19T05:20:28.000Z
#! /usr/bin/env python3 import os import sys # prepend directory ../pylib, which contains both locally installed python # deps and also the duhportinf pyhton package, to PYTHONPATH rootdir = os.path.abspath( os.path.join(os.path.dirname(os.path.realpath(__file__)), '..') ) pylib = os.path.join(rootdir, 'pylib') as...
28.611111
80
0.733981
085310f57f22c6a6655882e2c2890d273bcba466
2,267
py
Python
src/numkit/tests/test_timeseries.py
Becksteinlab/numkit
0a734642f63a9cd985d07446c5711fb1b239ea22
[ "BSD-3-Clause" ]
2
2017-05-03T22:58:21.000Z
2021-07-20T19:30:37.000Z
src/numkit/tests/test_timeseries.py
Becksteinlab/numkit
0a734642f63a9cd985d07446c5711fb1b239ea22
[ "BSD-3-Clause" ]
23
2017-03-28T08:14:37.000Z
2021-09-01T23:56:43.000Z
src/numkit/tests/test_timeseries.py
Becksteinlab/numkit
0a734642f63a9cd985d07446c5711fb1b239ea22
[ "BSD-3-Clause" ]
1
2019-02-12T16:56:54.000Z
2019-02-12T16:56:54.000Z
# -*- coding: utf-8 -*- # numkit.integration test cases # Part of GromacsWrapper # Copyright (c) Oliver Beckstein <orbeckst@gmail.com> # Published under the Modified BSD Licence. import numkit.timeseries import numpy as np from numpy.testing import assert_almost_equal, assert_equal import pytest @pytest.fixture(sco...
33.835821
87
0.664314
085321e9641a9c0a144cd871bda57999df7caa46
4,299
py
Python
external/sbml/bindings/python/test/sbml/TestConstraint.py
dchandran/evolvenetworks
072f9e1292552f691a86457ffd16a5743724fb5e
[ "BSD-3-Clause" ]
1
2019-08-22T17:17:41.000Z
2019-08-22T17:17:41.000Z
external/sbml/bindings/python/test/sbml/TestConstraint.py
dchandran/evolvenetworks
072f9e1292552f691a86457ffd16a5743724fb5e
[ "BSD-3-Clause" ]
null
null
null
external/sbml/bindings/python/test/sbml/TestConstraint.py
dchandran/evolvenetworks
072f9e1292552f691a86457ffd16a5743724fb5e
[ "BSD-3-Clause" ]
null
null
null
# # @file TestConstraint.py # @brief SBML Constraint unit tests # # @author Akiya Jouraku (Python conversion) # @author Sarah Keating # # $Id: TestConstraint.py 10124 2009-08-28 12:04:51Z sarahkeating $ # $HeadURL: https://sbml.svn.sourceforge.net/svnroot/sbml/trunk/libsbml/src/bindings/python/test/sbml/TestCon...
34.392
121
0.656897
0853336e25394158688d2dd30250c59f160ee2fa
301,521
py
Python
python/mxnet/numpy/multiarray.py
Jopyth/incubator-mxnet
b40ac2c1707646866743bf9768138b01c5a62a36
[ "Apache-2.0" ]
null
null
null
python/mxnet/numpy/multiarray.py
Jopyth/incubator-mxnet
b40ac2c1707646866743bf9768138b01c5a62a36
[ "Apache-2.0" ]
null
null
null
python/mxnet/numpy/multiarray.py
Jopyth/incubator-mxnet
b40ac2c1707646866743bf9768138b01c5a62a36
[ "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 # "L...
33.776297
141
0.59428
0853353b572f9a5a73dca201ca6eed2bbbf3bc69
837
py
Python
hgtools/tests/test_managers.py
jaraco/hgtools
1090d139e5dbdab864da8f1917a9e674331b6f9b
[ "MIT" ]
1
2017-05-17T15:12:29.000Z
2017-05-17T15:12:29.000Z
hgtools/tests/test_managers.py
jaraco/hgtools
1090d139e5dbdab864da8f1917a9e674331b6f9b
[ "MIT" ]
12
2016-01-01T14:43:44.000Z
2021-10-03T02:13:19.000Z
hgtools/tests/test_managers.py
jaraco/hgtools
1090d139e5dbdab864da8f1917a9e674331b6f9b
[ "MIT" ]
null
null
null
from unittest import mock import pytest from hgtools import managers def test_existing_only(): """ Test the static method RepoManager.existing_only. """ # presumably, '/' is never an hg repo - at least for our purposes, that's # a reasonable assumption. mgrs = managers.RepoManager.get_valid_...
27
77
0.703704
08537ec24783318013dcdf6e15465b887cd1cd19
1,520
py
Python
python/pymei/Modules/neumes.py
Breakend/libmei
c031be79a2775e8bb9b47e1057e1398232d4b293
[ "MIT" ]
null
null
null
python/pymei/Modules/neumes.py
Breakend/libmei
c031be79a2775e8bb9b47e1057e1398232d4b293
[ "MIT" ]
null
null
null
python/pymei/Modules/neumes.py
Breakend/libmei
c031be79a2775e8bb9b47e1057e1398232d4b293
[ "MIT" ]
1
2021-02-23T21:13:47.000Z
2021-02-23T21:13:47.000Z
""" Copyright (c) 2012 Andrew Hankinson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
35.348837
74
0.723026
0853880a47d20656eb1dea97a507b3fbfb5126b9
1,131
py
Python
src/ice/tests/steam_grid_updater_tests.py
geraldhumphries/Ice
ec466e85407361bbbc87b9e484fe427c1769b4fe
[ "MIT" ]
null
null
null
src/ice/tests/steam_grid_updater_tests.py
geraldhumphries/Ice
ec466e85407361bbbc87b9e484fe427c1769b4fe
[ "MIT" ]
null
null
null
src/ice/tests/steam_grid_updater_tests.py
geraldhumphries/Ice
ec466e85407361bbbc87b9e484fe427c1769b4fe
[ "MIT" ]
null
null
null
import mock import unittest from ice import steam_grid_updater class SteamGridUpdaterTests(unittest.TestCase): def setUp(self): self.mock_logger = mock.MagicMock() self.mock_provider = mock.MagicMock() self.mock_user = mock.MagicMock() self.updater = steam_grid_updater.SteamGridUpdater( s...
29.763158
70
0.758621
0853c179704c1b8e83ef05e1fb50cd62d4443e15
4,555
py
Python
downunder/test/python/run_domainbuilder.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
downunder/test/python/run_domainbuilder.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
downunder/test/python/run_domainbuilder.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unti...
37.03252
106
0.697695
0853dba0ea62f5d6890cbfb9d53c0f6529fb87cd
28
py
Python
btd6_memory_info/generated/Mono/MonoAssemblyName/mono_assembly_name.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Mono/MonoAssemblyName/mono_assembly_name.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Mono/MonoAssemblyName/mono_assembly_name.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class MonoAssemblyName: pass
28
28
0.892857
0853dc25ea6749877155e7dbd80c2ebaf72c99ae
1,772
py
Python
data/transcoder_evaluation_gfg/python/COUNT_INDEX_PAIRS_EQUAL_ELEMENTS_ARRAY_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/COUNT_INDEX_PAIRS_EQUAL_ELEMENTS_ARRAY_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/COUNT_INDEX_PAIRS_EQUAL_ELEMENTS_ARRAY_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n ) : mp = dict ( ) for i in range ( n ) : if arr [ i ] in mp.keys ( ) : mp [ arr...
44.3
215
0.454853
0853ee738a6d3788d7438124a4264dcdbd1b1244
927
py
Python
venv/Scripts/rst2xetex.py
cwiens32/pixel2world_base
fbb1c0e7828ef1013bcb9fb8a577556b08b7af52
[ "MIT" ]
null
null
null
venv/Scripts/rst2xetex.py
cwiens32/pixel2world_base
fbb1c0e7828ef1013bcb9fb8a577556b08b7af52
[ "MIT" ]
null
null
null
venv/Scripts/rst2xetex.py
cwiens32/pixel2world_base
fbb1c0e7828ef1013bcb9fb8a577556b08b7af52
[ "MIT" ]
null
null
null
#!c:\users\cwiens\packages_python\pixel2world_base\venv\scripts\python.exe # $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $ # Author: Guenter Milde # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code. """ try: import lo...
33.107143
77
0.682848
08543df1fd0717e7d0dfe09bd3516ace4aae239c
183
py
Python
cgatpipelines/tools/pipeline_docs/pipeline_rnaseqtranscripts/trackers/Validation.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
49
2015-04-13T16:49:25.000Z
2022-03-29T10:29:14.000Z
cgatpipelines/tools/pipeline_docs/pipeline_rnaseqtranscripts/trackers/Validation.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
252
2015-04-08T13:23:34.000Z
2019-03-18T21:51:29.000Z
cgatpipelines/tools/pipeline_docs/pipeline_rnaseqtranscripts/trackers/Validation.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
22
2015-05-21T00:37:52.000Z
2019-09-25T05:04:27.000Z
from CGATReport.Tracker import * from RnaseqTranscriptsReport import * class ExonValidationSummary(RnaseqTranscriptsTracker, SingleTableTrackerRows): table = "exon_validation"
22.875
78
0.830601
085442eb3915bacf58a51392fa9b434925cba57e
12,059
py
Python
src/buildstream/storage/directory.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
src/buildstream/storage/directory.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
src/buildstream/storage/directory.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (C) 2018 Bloomberg Finance LP # # 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...
35.055233
93
0.650883
08546119c5256fcd03226de1f7eb8380332e381d
5,902
py
Python
gspread/utils.py
TripiOpen/gspread
479ab757c4a6499a19b76cdb60494dbbb65b57d9
[ "MIT" ]
null
null
null
gspread/utils.py
TripiOpen/gspread
479ab757c4a6499a19b76cdb60494dbbb65b57d9
[ "MIT" ]
null
null
null
gspread/utils.py
TripiOpen/gspread
479ab757c4a6499a19b76cdb60494dbbb65b57d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ gspread.utils ~~~~~~~~~~~~~ This module contains utility functions. """ import re from functools import wraps from collections import defaultdict from itertools import chain from .exceptions import IncorrectCellLabel, NoValidUrlKeyFound MAGIC_NUMBER = 64 CELL_ADDR_RE = re.compile(r'([A...
24.288066
81
0.589631
08546a95ca794cb15aa5179b4eb891551cd96bcb
44,392
py
Python
new-venv/lib/python3.6/site-packages/python_freeipa/client_legacy.py
superteece/Flask-FreeIPA
edbeb8ea776a1a0e94af049b15e126778cf8cb38
[ "MIT" ]
1
2020-06-30T16:48:20.000Z
2020-06-30T16:48:20.000Z
new-venv/lib/python3.6/site-packages/python_freeipa/client_legacy.py
superteece/Flask-FreeIPA
edbeb8ea776a1a0e94af049b15e126778cf8cb38
[ "MIT" ]
null
null
null
new-venv/lib/python3.6/site-packages/python_freeipa/client_legacy.py
superteece/Flask-FreeIPA
edbeb8ea776a1a0e94af049b15e126778cf8cb38
[ "MIT" ]
null
null
null
from python_freeipa.client import Client from python_freeipa.exceptions import DuplicateEntry from python_freeipa.exceptions import parse_group_management_error from python_freeipa.exceptions import parse_hostgroup_management_error class ClientLegacy(Client): """Lightweight FreeIPA JSON RPC client.""" def _...
32.665195
119
0.594927
08547c8617a965e18f9274a496f6077d933d354a
1,729
py
Python
QPC.py
IKostric/DAT640_SMART
7d2770119237d520d954b1228375ceeaf91a6fd4
[ "MIT" ]
null
null
null
QPC.py
IKostric/DAT640_SMART
7d2770119237d520d954b1228375ceeaf91a6fd4
[ "MIT" ]
null
null
null
QPC.py
IKostric/DAT640_SMART
7d2770119237d520d954b1228375ceeaf91a6fd4
[ "MIT" ]
null
null
null
import numpy as np import os import json from sklearn.feature_extraction.text import CountVectorizer from sklearn.neural_network import MLPClassifier import pickle class QPC_model: def __init__(self): ''' Arguments conf: Configuration ID for saving or loading model ...
32.622642
85
0.551764
085489591c6f6c140a8b50a200ea1da4ac825e77
6,114
py
Python
python/graph2tensor/model/layers/gat_layer.py
deepest-stack/graph2tensor
4258bd7fff68348c98a77cff88afef039c1d44ba
[ "Apache-2.0" ]
null
null
null
python/graph2tensor/model/layers/gat_layer.py
deepest-stack/graph2tensor
4258bd7fff68348c98a77cff88afef039c1d44ba
[ "Apache-2.0" ]
null
null
null
python/graph2tensor/model/layers/gat_layer.py
deepest-stack/graph2tensor
4258bd7fff68348c98a77cff88afef039c1d44ba
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import tensorflow as tf from tensorflow.keras import activations class GATConv(tf.keras.layers.Layer): r""" Graph Attention Convolution layer. .. math:: \overrightarrow{h_i^{\prime}} = \sigma (\sum_{j \in \mathcal{N}_i \cup \{i\}} \alpha_{ij} \mathbf{W} \overrighta...
39.445161
98
0.583415
08548eb643442e1a5c98491bc804f43e581aa9a7
4,806
py
Python
ssm_read_data.py
lkilcommons/ssmtools
fd84b30f6217214bdfad25448a72649182e7c1f9
[ "MIT" ]
1
2018-04-10T18:10:07.000Z
2018-04-10T18:10:07.000Z
ssm_read_data.py
lkilcommons/ssmtools
fd84b30f6217214bdfad25448a72649182e7c1f9
[ "MIT" ]
null
null
null
ssm_read_data.py
lkilcommons/ssmtools
fd84b30f6217214bdfad25448a72649182e7c1f9
[ "MIT" ]
null
null
null
import numpy as np import matplotlib import matplotlib.pyplot as pp from spacepy import pycdf import os,time,datetime #from scipy.ndimage.filters import gaussian_filter1d #Python datetime to day of year def datetime2doy(dt): return dt.timetuple().tm_yday + dt.hour/24. + dt.minute/24./60. + dt.second/86400. + dt.micr...
34.826087
137
0.696005
08549106478ff8941903eeb1db87a631abcbe7a8
287
py
Python
demo-django/demo/urls.py
JonathanRowe/python-saml-master
81dad60667191e6e1443a770bf779f175ed6beac
[ "MIT" ]
null
null
null
demo-django/demo/urls.py
JonathanRowe/python-saml-master
81dad60667191e6e1443a770bf779f175ed6beac
[ "MIT" ]
2
2020-06-06T00:11:05.000Z
2021-06-10T22:19:47.000Z
demo-django/demo/urls.py
JonathanRowe/python-saml-master
81dad60667191e6e1443a770bf779f175ed6beac
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.contrib import admin from demo.views import index, attrs, metadata admin.autodiscover() urlpatterns = [ url(r'^$', index, name='index'), # url(r'^attrs/$', attrs, name='attrs'), url(r'^metadata/$', metadata, name='metadata') ]
22.076923
50
0.672474
0854b8bc7222b66bcb15478de58c2ed5d13bfa15
2,014
py
Python
ds_toolkit/internet.py
davidsilva2841/ds-toolkit
d1f39a204db03eda87aa4f464ca0b044ece02357
[ "MIT" ]
null
null
null
ds_toolkit/internet.py
davidsilva2841/ds-toolkit
d1f39a204db03eda87aa4f464ca0b044ece02357
[ "MIT" ]
null
null
null
ds_toolkit/internet.py
davidsilva2841/ds-toolkit
d1f39a204db03eda87aa4f464ca0b044ece02357
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from urllib.request import urlretrieve import requests from ds_toolkit.logger import get_logger log = get_logger() def get_links_from_webpage(url, extension_filters=None, base_url=''): """ Args: url (string): extension_filters (list): base_url (str): ...
26.853333
89
0.576961
0854c28f10ce52d024d63217ab85dd4283cd6660
487
py
Python
src/kol/request/DeleteMessagesRequest.py
thedufer/pykol
bad8ff4bf2f4bc6a7a5b6dbbd9333ef5aaf3432a
[ "BSD-3-Clause" ]
1
2016-05-08T12:10:32.000Z
2016-05-08T12:10:32.000Z
src/kol/request/DeleteMessagesRequest.py
ZJ/pykol
c0523a4a4d09bcdf16f8c86c78da96914e961076
[ "BSD-3-Clause" ]
null
null
null
src/kol/request/DeleteMessagesRequest.py
ZJ/pykol
c0523a4a4d09bcdf16f8c86c78da96914e961076
[ "BSD-3-Clause" ]
null
null
null
from GenericRequest import GenericRequest class DeleteMessagesRequest(GenericRequest): "A request used to delete messages." def __init__(self, session, messagesToDelete, box="Inbox"): super(DeleteMessagesRequest, self).__init__(session) self.url = session.serverURL + "messages.php" self.requestData["the_acti...
32.466667
60
0.743326
0854c64c9b0f0ae66f1f2367532bf95a019e9778
3,924
py
Python
ingestion/monitoring/daily_metrics.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
5
2020-04-16T13:54:24.000Z
2020-07-06T13:42:10.000Z
ingestion/monitoring/daily_metrics.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
487
2020-04-16T00:56:09.000Z
2020-07-27T09:09:29.000Z
ingestion/monitoring/daily_metrics.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
null
null
null
import datetime import os import sys import json import operator import tempfile from pathlib import Path import logging import requests import boto3 BUCKET = "covid-19-aggregates-eu" WEBHOOK_URL = os.environ.get("SLACK_WEBHOOK_METRICS_URL", None) logger = logging.getLogger(__name__) def is_latest_file_current(la...
31.902439
106
0.62105
0854f742f69e2367ae52a10bdeb420755cd517d0
2,279
py
Python
userbot/plugins/colorpp.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/colorpp.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/colorpp.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
import asyncio import os import random import shutil from datetime import datetime from PIL import Image, ImageDraw, ImageFont from pySmartDL import SmartDL from telethon.tl import functions from userbot import ALIVE_NAME from userbot.utils import lightning_cmd FONT_FILE_TO_USE = "Fonts/digital.ttf" DEFAULTUSER = ...
22.343137
88
0.6086
08550b11e0e629f8b81bd8b88daa0945b0a3feba
3,346
py
Python
cadnano/assembly.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2022-03-27T14:37:32.000Z
2022-03-27T14:37:32.000Z
cadnano/assembly.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
null
null
null
cadnano/assembly.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2021-01-22T02:29:38.000Z
2021-01-22T02:29:38.000Z
from collections import defaultdict # from operator import attrgetter from operator import methodcaller from cadnano.proxies.cnobject import CNObject # from cadnano.part import Part from cadnano.proxies.cnproxy import ProxySignal # from cadnano.proxies.cnproxy import UndoCommand, UndoStack class Assembly(CNObject):...
31.271028
91
0.656904
08553c47314e951fc4bcf2a70db13fbdca0900b0
91,433
py
Python
sympy/core/tests/test_wester.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
1
2015-08-31T06:55:47.000Z
2015-08-31T06:55:47.000Z
sympy/core/tests/test_wester.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
null
null
null
sympy/core/tests/test_wester.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
3
2015-04-18T22:33:32.000Z
2015-09-23T06:45:07.000Z
""" Tests from Michael Wester's 1999 paper "Review of CAS mathematical capabilities". http://www.math.unm.edu/~wester/cas/book/Wester.pdf See also http://math.unm.edu/~wester/cas_review.html for detailed output of each tested system. """ from sympy import (Rational, symbols, factorial, sqrt, log, exp, oo, zoo, pr...
30.066754
285
0.486017
08554efd5b2607f971072cf3b62f77ed67e8e2f7
13,510
py
Python
jenna/jenna_parts.py
GoZaddy/jenna
08918b3ecb935514d4dd31f2a2cdce1f14d08bc9
[ "MIT" ]
3
2021-05-08T06:07:25.000Z
2021-11-03T01:14:01.000Z
jenna/jenna_parts.py
GoZaddy/jenna
08918b3ecb935514d4dd31f2a2cdce1f14d08bc9
[ "MIT" ]
null
null
null
jenna/jenna_parts.py
GoZaddy/jenna
08918b3ecb935514d4dd31f2a2cdce1f14d08bc9
[ "MIT" ]
null
null
null
from typing import List from .utils import stringify, triple_stringify from .errors import CodegenError # represents anything that requires indentation class Block: """ Block is an 'interface' that represents a block of code. It is mostly used for indenting """ def __init__(self, indent_level): ...
31.418605
140
0.591858
085553148abe317819a5449dd712ffc0a3e0b4ff
2,645
py
Python
djangocms_versioning/test_utils/test_helpers.py
webbyfox/djangocms-versioning
a466ff0f8d109a22ec2f567cace6ef69d332180c
[ "BSD-3-Clause" ]
null
null
null
djangocms_versioning/test_utils/test_helpers.py
webbyfox/djangocms-versioning
a466ff0f8d109a22ec2f567cace6ef69d332180c
[ "BSD-3-Clause" ]
null
null
null
djangocms_versioning/test_utils/test_helpers.py
webbyfox/djangocms-versioning
a466ff0f8d109a22ec2f567cace6ef69d332180c
[ "BSD-3-Clause" ]
null
null
null
from django.test import RequestFactory from cms.toolbar.toolbar import CMSToolbar from djangocms_versioning.cms_toolbars import VersioningToolbar from djangocms_versioning.test_utils.factories import UserFactory def get_toolbar(content_obj, user=None, **kwargs): """ Helper method to set up the toolbar ...
34.802632
96
0.70775
08558dbc4b0e872e5578f10f16f4105d44480b5b
1,917
py
Python
venv/Lib/site-packages/pyrogram/raw/base/stats_group_top_poster.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/base/stats_group_top_poster.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/base/stats_group_top_poster.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# 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...
38.34
100
0.648409
0855eb8c2e0580522ec0b90543852838eba8338e
342
py
Python
tests/core/txpool-module/conftest.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
tests/core/txpool-module/conftest.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
tests/core/txpool-module/conftest.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
import pytest @pytest.fixture(autouse=True) def skip_testrpc_and_wait_for_mining_start(web3, wait_for_miner_start, skip_if_testrpc): skip_if_testrpc(web3) wait_for_miner_start(web3) assert web3.platon.mining assert...
24.428571
64
0.599415
0855ff2b573ebd5c9044e8a85be0e4198e05e201
9,286
py
Python
server/hnp/ui/views.py
ehackify/hnp
ba0e10e9ca390616dfa3888ceafc94672f41d26d
[ "MIT" ]
2
2020-04-29T09:58:21.000Z
2020-05-08T20:23:33.000Z
server/hnp/ui/views.py
ehackify/hnp
ba0e10e9ca390616dfa3888ceafc94672f41d26d
[ "MIT" ]
1
2020-05-01T11:00:58.000Z
2020-05-01T11:00:58.000Z
server/hnp/ui/views.py
ehackify/hnp
ba0e10e9ca390616dfa3888ceafc94672f41d26d
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from pygal.style import * import pygal from flask import ( Blueprint, render_template, request, url_for, redirect, g) from flask_security import logout_user as logout from sqlalchemy import desc, func from hnp.ui.utils import get_flag_ip, get_sensor_name from hn...
33.644928
121
0.668318
08560b2ead5b7323ceeabba291d0205965b99542
56,162
py
Python
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2016_02_03/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2016_02_03/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2016_02_03/models/_models_py3.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 ...
39.30161
191
0.658025
08567fdadaa22b8c8349b2c9ae9422bf6e08eb36
1,188
py
Python
main.py
shindexro/tenhou-secure
fc85e67bbb44b6756ce038cea6b5709060f6dcbd
[ "MIT" ]
1
2021-11-11T23:40:58.000Z
2021-11-11T23:40:58.000Z
main.py
shindexro/tenhou-secure
fc85e67bbb44b6756ce038cea6b5709060f6dcbd
[ "MIT" ]
null
null
null
main.py
shindexro/tenhou-secure
fc85e67bbb44b6756ce038cea6b5709060f6dcbd
[ "MIT" ]
1
2021-11-20T05:13:50.000Z
2021-11-20T05:13:50.000Z
""" Encrypt tenhou traffics. Intercepts TCP packets from the windows tenhou client and establish WSS connection with tenhou instead. """ import logging import threading from datetime import datetime from redirect import Redirect from tenhou import WebSocketProxy from util import get_local_ip LOGGING_LEVEL = logging....
27.627907
103
0.720539
085698e6be891f34d45b6b2f0219d87a4ce41960
3,306
py
Python
data_science/code/btc.py
conducto/demo
fb89f6c978fde37ec4040c72759b83c2044f0a73
[ "Apache-2.0" ]
3
2020-05-12T22:56:48.000Z
2020-11-10T04:03:19.000Z
data_science/code/btc.py
conducto/demo
fb89f6c978fde37ec4040c72759b83c2044f0a73
[ "Apache-2.0" ]
3
2020-04-03T16:15:11.000Z
2020-06-07T21:25:07.000Z
data_science/code/btc.py
conducto/demo
fb89f6c978fde37ec4040c72759b83c2044f0a73
[ "Apache-2.0" ]
3
2020-06-07T03:08:51.000Z
2022-02-18T20:09:27.000Z
import conducto as co import json import time def clear(): """ Delete all blocks from `co.data.user`. Uses the following methods from `co.data.user`: * `list(prefix)` - get all blocks currently in the data store. * `delete(path)` - delete the given block from the data store """ base_path...
33.06
101
0.628554
0856aa273702229df0d3cf33b0a8fb5fafdea9e1
144
py
Python
stf_appium_client/__init__.py
OpenTMI/stf-appium-python-client
766aeafbde77a6462cbfee2bbdd5379ced11aa4b
[ "MIT" ]
2
2021-07-18T07:38:50.000Z
2022-03-03T17:23:38.000Z
stf_appium_client/__init__.py
OpenTMI/stf-appium-python-client
766aeafbde77a6462cbfee2bbdd5379ced11aa4b
[ "MIT" ]
5
2021-04-27T18:24:44.000Z
2021-11-11T08:38:11.000Z
stf_appium_client/__init__.py
OpenTMI/stf-appium-python-client
766aeafbde77a6462cbfee2bbdd5379ced11aa4b
[ "MIT" ]
1
2021-08-10T09:33:20.000Z
2021-08-10T09:33:20.000Z
from stf_appium_client.StfClient import StfClient from stf_appium_client.AdbServer import AdbServer from stf_appium_client.Appium import Appium
36
49
0.895833
0856dd9e4f8a8d9f05e8d7da30fc606846e8a2f1
202
py
Python
btc_address_dump/__init__.py
Groestlcoin/btc-address-dump
04c4e0617974dd8025c1f5d6567978fb1a207ca7
[ "MIT" ]
19
2021-02-13T15:32:09.000Z
2022-03-07T14:30:43.000Z
btc_address_dump/__init__.py
Groestlcoin/btc-address-dump
04c4e0617974dd8025c1f5d6567978fb1a207ca7
[ "MIT" ]
7
2021-02-01T14:52:47.000Z
2022-02-10T11:08:48.000Z
btc_address_dump/__init__.py
Groestlcoin/btc-address-dump
04c4e0617974dd8025c1f5d6567978fb1a207ca7
[ "MIT" ]
12
2021-01-23T01:45:42.000Z
2022-03-24T22:34:27.000Z
"""btc-address-dump. A utility for dump btc address from mnemonic words or private key or public key. """ from .btc_address_dump import main_entry import sys def run_main(): main_entry(sys.argv)
18.363636
80
0.752475
0856dedaa9bcdce6f0380937913d5af78dd569ad
13,270
py
Python
docs/gallery/general/extensions.py
tjd2002/pynwb
426109b85c2e683d96f2126286fb3369013abb8b
[ "BSD-3-Clause-LBNL" ]
null
null
null
docs/gallery/general/extensions.py
tjd2002/pynwb
426109b85c2e683d96f2126286fb3369013abb8b
[ "BSD-3-Clause-LBNL" ]
null
null
null
docs/gallery/general/extensions.py
tjd2002/pynwb
426109b85c2e683d96f2126286fb3369013abb8b
[ "BSD-3-Clause-LBNL" ]
null
null
null
''' .. _tutorial-extending-nwb: Extensions ========================= The NWB-N format was designed to be easily extendable. Here we will demonstrate how to extend NWB using the PyNWB API. .. note:: A more in-depth discussion of the components and steps for creating and using extensions is available as part ...
37.275281
119
0.618312
0856e18fc1dac6c13ec918311a9d7f30d14ba2a7
48
py
Python
datasimple/__init__.py
CraigKelly/datasimple
1458149f789b7aeb0e2d7886bc9ba5fd5600d700
[ "Apache-2.0" ]
1
2018-05-29T18:12:13.000Z
2018-05-29T18:12:13.000Z
datasimple/__init__.py
CraigKelly/datasimple
1458149f789b7aeb0e2d7886bc9ba5fd5600d700
[ "Apache-2.0" ]
null
null
null
datasimple/__init__.py
CraigKelly/datasimple
1458149f789b7aeb0e2d7886bc9ba5fd5600d700
[ "Apache-2.0" ]
null
null
null
"""Library for simple data processing tasks."""
24
47
0.729167
0856f49d65ebf267189c12885bbd50f6c7e2a2c9
10,018
py
Python
custom_components/tahoma/cover_devices/tahoma_cover.py
dmaasland/ha-tahoma
180d190e10f450681c1497215455d33dc9523771
[ "MIT" ]
1
2022-01-14T20:16:31.000Z
2022-01-14T20:16:31.000Z
custom_components/tahoma/cover_devices/tahoma_cover.py
dmaasland/ha-tahoma
180d190e10f450681c1497215455d33dc9523771
[ "MIT" ]
null
null
null
custom_components/tahoma/cover_devices/tahoma_cover.py
dmaasland/ha-tahoma
180d190e10f450681c1497215455d33dc9523771
[ "MIT" ]
2
2022-02-16T06:38:00.000Z
2022-03-10T23:03:22.000Z
"""Base class for TaHoma covers, shutters, awnings, etc.""" from homeassistant.components.cover import ( ATTR_POSITION, ATTR_TILT_POSITION, SUPPORT_CLOSE_TILT, SUPPORT_OPEN_TILT, SUPPORT_SET_TILT_POSITION, SUPPORT_STOP_TILT, CoverEntity, ) from ..entity import OverkizEntity ATTR_OBSTRUCTIO...
35.524823
93
0.68896
0856fbe0f3da5f71470145c9bc6ac4a91d4739e3
20,651
py
Python
gui/icons.py
vault-the/sorter
aa5ed284a6fd1dabc2e3a4447f41db0d83163bfd
[ "BSD-3-Clause" ]
37
2017-04-12T12:34:49.000Z
2022-03-29T04:39:51.000Z
gui/icons.py
vault-the/sorter
aa5ed284a6fd1dabc2e3a4447f41db0d83163bfd
[ "BSD-3-Clause" ]
2
2017-05-03T08:29:34.000Z
2017-06-16T07:56:18.000Z
gui/icons.py
vault-the/sorter
aa5ed284a6fd1dabc2e3a4447f41db0d83163bfd
[ "BSD-3-Clause" ]
11
2017-05-01T19:19:07.000Z
2021-04-01T04:31:07.000Z
#! /usr/bin/env python3 # base64, utf-8 encoded icon.gif(s) icon_string = """R0lGODlhMAAwAOfUABMODBQPDhUQDxYREBYSERcTEhgUExkVFBoWFRsXFhwYFxsZHB0ZGB0aGRwa Hh4aGR8bGiAcGyAdHCEdHCIeHSMfHiQgHyUhICYiIScjIiklJComJSknKysnJiwoJy0pKC4qKS8q KS8rKjAsKzEtLDQwLzUxMDYyMTczMjg0Mzo1NDs2NTs3Nj05OD46OT87OkA8OkI9PEM+PURAP0VB QERCRUhDQkZ...
75.094545
93
0.948429
0856ff2abe1ddd46740c461ba865773ea988f29b
3,346
py
Python
src/dataverk/connectors/databases/postgres.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
3
2019-09-29T20:48:46.000Z
2021-03-31T10:16:07.000Z
src/dataverk/connectors/databases/postgres.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
148
2019-02-08T12:30:58.000Z
2021-03-11T15:31:55.000Z
src/dataverk/connectors/databases/postgres.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
1
2020-11-18T14:10:05.000Z
2020-11-18T14:10:05.000Z
import time import pandas as pd from dataverk.exceptions import dataverk_exceptions from sqlalchemy.exc import SQLAlchemyError, OperationalError from collections.abc import Mapping from dataverk.connectors.databases.base import DBBaseConnector from dataverk.connectors.databases.utils.error_strategies import ( Post...
34.494845
99
0.624925
0857072c5474b10c6a2470639d9f114dd767bb72
301
py
Python
talks-articles/languages-n-runtimes/python/wrapping-go-in-python/example-1/callr_go_go_go.py
abhishekkr/tutorials_as_code
f355dc62a5025b710ac6d4a6ac2f9610265fad54
[ "MIT" ]
37
2015-02-01T23:16:39.000Z
2021-12-22T16:50:48.000Z
talks-articles/languages-n-runtimes/python/wrapping-go-in-python/example-1/callr_go_go_go.py
abhishekkr/tutorials_as_code
f355dc62a5025b710ac6d4a6ac2f9610265fad54
[ "MIT" ]
1
2017-03-02T04:55:48.000Z
2018-01-14T10:51:11.000Z
talks-articles/languages-n-runtimes/python/wrapping-go-in-python/example-1/callr_go_go_go.py
abhishekkr/tutorials_as_code
f355dc62a5025b710ac6d4a6ac2f9610265fad54
[ "MIT" ]
15
2015-03-02T08:09:01.000Z
2021-06-10T03:25:41.000Z
import ctypes import os def main(): # Path to shared object file path = os.path.join(os.path.abspath("."), "go_go_go.so") # load shared object file lib = ctypes.CDLL(path) # call shared object method #import pdb ; pdb.set_trace(); lib.go_go_go() if __name__ == "__main__": main()
16.722222
58
0.66113
085783427bed615045882055375fd644457e9f50
15,990
py
Python
snntoolbox/simulation/target_simulators/brian2_target_sim.py
sunpengfei1122/snn_toolbox
3bdbe329eccd74952989cc704e65567b6bf8b168
[ "MIT" ]
null
null
null
snntoolbox/simulation/target_simulators/brian2_target_sim.py
sunpengfei1122/snn_toolbox
3bdbe329eccd74952989cc704e65567b6bf8b168
[ "MIT" ]
null
null
null
snntoolbox/simulation/target_simulators/brian2_target_sim.py
sunpengfei1122/snn_toolbox
3bdbe329eccd74952989cc704e65567b6bf8b168
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Building and simulating spiking neural networks using Brian2. @author: rbodo """ from __future__ import division, absolute_import from __future__ import print_function, unicode_literals import warnings import numpy as np import os from future import standard_library from s...
40.687023
80
0.571857
0857af3d5baa4906d0f7964f30801e245dc8cf52
4,702
py
Python
djangoenv/lib/python3.8/site-packages/svgwrite/gradients.py
zawad2221/courier_delivery
f96c41a60943946f9f7e0837d017215aa8cd02dd
[ "MIT" ]
null
null
null
djangoenv/lib/python3.8/site-packages/svgwrite/gradients.py
zawad2221/courier_delivery
f96c41a60943946f9f7e0837d017215aa8cd02dd
[ "MIT" ]
null
null
null
djangoenv/lib/python3.8/site-packages/svgwrite/gradients.py
zawad2221/courier_delivery
f96c41a60943946f9f7e0837d017215aa8cd02dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 # Author: mozman --<mozman@gmx.at> # Purpose: gradients module # Created: 26.10.2010 # Copyright (C) 2010, Manfred Moitzi # License: MIT License """ Gradients consist of continuously smooth color transitions along a vector from one color to another, possibly followed by add...
36.449612
88
0.597618
0857d518a6de1145c2e63d32e2b1a62bd5f30062
22,911
py
Python
main_fei.py
foxlf823/ace2005-preprocessing
2cd379f6d25d3902139d6cd6cdf1596a999dfe3b
[ "MIT" ]
null
null
null
main_fei.py
foxlf823/ace2005-preprocessing
2cd379f6d25d3902139d6cd6cdf1596a999dfe3b
[ "MIT" ]
null
null
null
main_fei.py
foxlf823/ace2005-preprocessing
2cd379f6d25d3902139d6cd6cdf1596a999dfe3b
[ "MIT" ]
null
null
null
import os import copy import re import json from stanfordcorenlp import StanfordCoreNLP import argparse from tqdm import tqdm verbose = False pattern = re.compile(r'[-]') pattern1 = r'([-])' class Tree(object): def __init__(self, nodes): self.nodes = nodes self.match = True self.leaf_node...
36.6576
203
0.551787
08581420cc5b4e77c59669a6ee10bce528473112
1,433
py
Python
Homework/Refactoring-Code/Organizing-Data/extract_superclass.py
caocmai/SPD-2.31-Testing-and-Architecture
5e9a86849dff795cc06c7a41af49c030df91eaa8
[ "MIT" ]
null
null
null
Homework/Refactoring-Code/Organizing-Data/extract_superclass.py
caocmai/SPD-2.31-Testing-and-Architecture
5e9a86849dff795cc06c7a41af49c030df91eaa8
[ "MIT" ]
null
null
null
Homework/Refactoring-Code/Organizing-Data/extract_superclass.py
caocmai/SPD-2.31-Testing-and-Architecture
5e9a86849dff795cc06c7a41af49c030df91eaa8
[ "MIT" ]
null
null
null
# By Kamran Bigdely # Extract superclass class Enemy: def __init__(self): self.health = 100 def take_damage(self, damage): self.health -= damage class AngryMushroom(Enemy): # def __init__(self): # self.health = 100 # def take_damage(self, damage): # self...
21.38806
52
0.614794
0858293c22e5fcc8c9a433fea8b56f2d4601a397
399
py
Python
setup.py
spsandiford/scte35-python
c325b170b87164da9cd08802d4861149596cd231
[ "MIT" ]
2
2020-01-16T09:55:52.000Z
2020-05-14T09:10:47.000Z
setup.py
spsandiford/scte35-python
c325b170b87164da9cd08802d4861149596cd231
[ "MIT" ]
null
null
null
setup.py
spsandiford/scte35-python
c325b170b87164da9cd08802d4861149596cd231
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='scte35-python', version='0.0.1-SNAPSHOT', packages=['scte35'], url='', license='MIT License', author='spsandiford', description='A python 3 parser library for SCTE-35 objects', install_requires=[ 'bitstring', ], python_requires='...
22.166667
64
0.626566
085830221631db901e1d020676efa7be2f90d835
16,248
py
Python
tests/interfaces/test_classification_element.py
Purg/SMQTK-Classifier
007aefc213d535215af9675930a3555d7cbfcbef
[ "BSD-3-Clause" ]
null
null
null
tests/interfaces/test_classification_element.py
Purg/SMQTK-Classifier
007aefc213d535215af9675930a3555d7cbfcbef
[ "BSD-3-Clause" ]
null
null
null
tests/interfaces/test_classification_element.py
Purg/SMQTK-Classifier
007aefc213d535215af9675930a3555d7cbfcbef
[ "BSD-3-Clause" ]
null
null
null
import pickle import unittest import unittest.mock as mock import pytest from smqtk_classifier import ClassificationElement from smqtk_classifier.exceptions import NoClassificationError class DummyCEImpl (ClassificationElement): @classmethod def is_usable(cls): # Required to be True to construct. ...
36.594595
80
0.618722
08583ef026800e8c9485644d22efea22797d0247
17,950
py
Python
barotropic/grid.py
chpolste/barotropic
2c2afbd6fd97c2a50acba09b7643e73d2dca3537
[ "Apache-2.0" ]
4
2020-07-14T21:38:12.000Z
2021-06-14T17:12:32.000Z
barotropic/grid.py
chpolste/barotropic
2c2afbd6fd97c2a50acba09b7643e73d2dca3537
[ "Apache-2.0" ]
null
null
null
barotropic/grid.py
chpolste/barotropic
2c2afbd6fd97c2a50acba09b7643e73d2dca3537
[ "Apache-2.0" ]
1
2021-06-14T17:12:22.000Z
2021-06-14T17:12:22.000Z
import numpy as np import spharm from .constants import EARTH_RADIUS, EARTH_OMEGA class Grid: """Regular lat-lon grid and operations for a spherical planet. Latitudes start at the north pole, as is convention in `spharm`. This results in horizontally flipped images when plotting fields in matplotlib ...
47.612732
113
0.618997
085846199af16e3a7156327bc249e7efcc53a9f5
1,494
py
Python
services/consumer_manager/puller/kafkapuller.py
Forcepoint/fp-bd-okta-fba
7c9ee682cdc9d227296df0dee54846e533aa2600
[ "Apache-2.0" ]
null
null
null
services/consumer_manager/puller/kafkapuller.py
Forcepoint/fp-bd-okta-fba
7c9ee682cdc9d227296df0dee54846e533aa2600
[ "Apache-2.0" ]
null
null
null
services/consumer_manager/puller/kafkapuller.py
Forcepoint/fp-bd-okta-fba
7c9ee682cdc9d227296df0dee54846e533aa2600
[ "Apache-2.0" ]
null
null
null
# # Author: Dlo Bagari # created Date: 12-10-2019 from cunsumer.consumerhandler import ConsumerHandler from database.databasehandler import DataBaseHandler from publisher.publisher import Publisher from organization.organization import Organization from database.userutils import UserUtils class KafkaPuller: def ...
45.272727
110
0.702142
085853a2063b2e3527063c3e7eab4ffbdb14c6ed
25,204
py
Python
core/controllers/question_editor_test.py
cclauss/oppia
7ad9d06e434c589f0aaa015252ca65872557b7eb
[ "Apache-2.0" ]
null
null
null
core/controllers/question_editor_test.py
cclauss/oppia
7ad9d06e434c589f0aaa015252ca65872557b7eb
[ "Apache-2.0" ]
null
null
null
core/controllers/question_editor_test.py
cclauss/oppia
7ad9d06e434c589f0aaa015252ca65872557b7eb
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
43.010239
79
0.66049