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
03a5822a76a3273f4c8b467c10d6569b2fb0d2d3
85
py
Python
src/__init__.py
ciads-ut/transfer-learning-ner
07b689a6e1c0c0fe515764be525df8755d1cb03f
[ "MIT" ]
39
2018-06-14T22:07:33.000Z
2022-01-12T01:57:32.000Z
src/__init__.py
hukaiwlw/transfer-learning-ner
07b689a6e1c0c0fe515764be525df8755d1cb03f
[ "MIT" ]
1
2018-10-10T12:47:59.000Z
2018-10-10T12:47:59.000Z
src/__init__.py
hukaiwlw/transfer-learning-ner
07b689a6e1c0c0fe515764be525df8755d1cb03f
[ "MIT" ]
4
2019-05-15T09:19:59.000Z
2021-12-02T04:56:02.000Z
from transferlearning import DomainAdaptation from transferlearning import features
21.25
45
0.894118
03a58cde0d5c46ce298459ff3c0dd213ac739d3f
1,414
py
Python
dotmatrix/populationdensity/transform.py
alvinlao/dot-matrix-map
32925d5ede38c634ab53b966d779786366a1855c
[ "MIT" ]
null
null
null
dotmatrix/populationdensity/transform.py
alvinlao/dot-matrix-map
32925d5ede38c634ab53b966d779786366a1855c
[ "MIT" ]
null
null
null
dotmatrix/populationdensity/transform.py
alvinlao/dot-matrix-map
32925d5ede38c634ab53b966d779786366a1855c
[ "MIT" ]
null
null
null
from statistics import mean def transform(config, dataset): dataset_mean = mean(dataset.filter(lambda v: v is not None).iterable()) anchors = _anchors(config, dataset) return ( dataset .map_with_key( lambda key, v: _neighbor_reduce( dataset, key,...
23.566667
75
0.582744
03a5ace21f521618ad2b27b71914a6a729ee8aef
1,973
py
Python
qiskit/aqua/algorithms/minimum_eigen_solvers/main.py
Unathi-Skosana/qiskit-aqua
e13f66eda6d8b819a6f132319a2bac819941f6b1
[ "Apache-2.0" ]
2
2020-06-29T16:08:12.000Z
2020-08-07T22:42:13.000Z
qiskit/aqua/algorithms/minimum_eigen_solvers/main.py
Unathi-Skosana/qiskit-aqua
e13f66eda6d8b819a6f132319a2bac819941f6b1
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/algorithms/minimum_eigen_solvers/main.py
Unathi-Skosana/qiskit-aqua
e13f66eda6d8b819a6f132319a2bac819941f6b1
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': import numpy as np from qiskit import Aer from qiskit.aqua.algorithms.minimum_eigen_solvers import VQSD from qiskit.quantum_info.states import Statevector from qiskit.aqua.components.initial_states import Custom from qiskit.aqua.components.optimizers import COBYLA ...
40.265306
87
0.644703
03a5aeaba0646f20d802404121512fc57d1f8c8e
3,759
py
Python
grouper/ctl/factory.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
grouper/ctl/factory.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
grouper/ctl/factory.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
from typing import TYPE_CHECKING from grouper.ctl.dump_sql import DumpSqlCommand from grouper.ctl.permission import PermissionCommand from grouper.ctl.service_account import ServiceAccountCommand from grouper.ctl.sync_db import SyncDbCommand from grouper.ctl.user import UserCommand from grouper.ctl.user_proxy import U...
39.989362
96
0.708433
03a5c4d8cdd853c23ee74d3055dc914e5090faeb
523
py
Python
lib/utils/extension.py
harry1080/WSPIH
576a891deda296eea1ed1078cb540fb462d3af6f
[ "MIT" ]
202
2019-04-27T10:04:37.000Z
2022-03-28T02:11:09.000Z
lib/utils/extension.py
362902755/WSPIH
46b7db76f5d1447294f70be1687da7e92031965d
[ "MIT" ]
6
2021-03-19T00:21:26.000Z
2022-03-11T23:46:10.000Z
lib/utils/extension.py
362902755/WSPIH
46b7db76f5d1447294f70be1687da7e92031965d
[ "MIT" ]
52
2019-04-27T14:11:28.000Z
2022-03-22T08:11:33.000Z
#!/usr/local/bin/python # -*- coding:utf-8 -*- # @Time : 2019/4/1 12:23 AM # @Author : Jerry # @Desc : # @File : getExtension.py IGNORED_EXTESIONS = ["gif", "jpg", "png", "jpeg", "woff", "ttf", "eot", "svg", "woff2", "ico"] JS_EXTESIONS = ["js"] STATIC_EXTENSIONS = ["html", "htm", "xhtml", "xhtm", "shtml...
23.772727
101
0.564054
03a5d4f279c2ed66957f88b1add3084e70468165
34,973
py
Python
tests/test_parser.py
frnsys/mwlib_simple
358e06c3f1d80398cdd3a1f9ccbd25cd9adcbcc5
[ "Unlicense" ]
1
2019-02-04T15:09:28.000Z
2019-02-04T15:09:28.000Z
tests/test_parser.py
frnsys/mwlib_simple
358e06c3f1d80398cdd3a1f9ccbd25cd9adcbcc5
[ "Unlicense" ]
null
null
null
tests/test_parser.py
frnsys/mwlib_simple
358e06c3f1d80398cdd3a1f9ccbd25cd9adcbcc5
[ "Unlicense" ]
null
null
null
#! /usr/bin/env py.test # -*- coding: utf-8 -*- # Copyright (c) 2007-2009 PediaPress GmbH # See README.rst for additional licensing information. import pytest from mwlib import parser, expander, uparser from mwlib.expander import DictDB from mwlib.dummydb import DummyDB from mwlib.refine import util, core parse = up...
27.110853
626
0.625625
03a5dacd9ae5c709e08b75714174d7d2e62ae2ca
460
py
Python
tests/routers/organization/test_organization_users.py
upwork/python-upwork
63aa5ebfd91cbf6f019437358f3e89d0e3bc29aa
[ "Apache-2.0" ]
150
2015-05-28T19:09:33.000Z
2022-03-22T16:56:33.000Z
tests/routers/organization/test_organization_users.py
Top-coder-1/python-upwork
0671e1e90cc2d770be4f96ae4bfb21bc111dd122
[ "Apache-2.0" ]
38
2015-05-28T18:45:55.000Z
2021-06-14T09:34:27.000Z
tests/routers/organization/test_organization_users.py
upwork/python-upwork-oauth2
5a10558a5c4479e7aea462fec0193db40ecde9e2
[ "Apache-2.0" ]
61
2015-09-01T06:39:25.000Z
2021-11-09T12:29:57.000Z
import upwork from upwork.routers.organization import users from unittest.mock import patch @patch.object(upwork.Client, "get") def test_get_my_info(mocked_method): users.Api(upwork.Client).get_my_info() mocked_method.assert_called_with("/hr/v2/users/me") @patch.object(upwork.Client, "get") def test_get_spe...
28.75
62
0.780435
03a5f4603b81588ef849e7696731c6bbf46af3e8
2,404
py
Python
oscar/core/utils.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
oscar/core/utils.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
oscar/core/utils.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import # for import below import logging from django.utils.timezone import get_current_timezone, is_naive, make_aware from unidecode import unidecode from django.conf import settings from django.template.defaultfilters import date as date_filter def slugify(value): """ Slugif...
31.220779
76
0.659734
03a5fb784dc547c621ca6d77dc556e559c0b0d8c
1,313
py
Python
example_test_set/tests/test_inheritance.py
vodik/pytest-interactive
ff004105f7168af89f9bd4c823e08b8f04e1a1b4
[ "MIT" ]
15
2015-07-20T03:39:16.000Z
2018-02-21T00:59:41.000Z
example_test_set/tests/test_inheritance.py
vodik/pytest-interactive
ff004105f7168af89f9bd4c823e08b8f04e1a1b4
[ "MIT" ]
16
2015-03-11T17:24:06.000Z
2017-11-30T05:01:51.000Z
example_test_set/tests/test_inheritance.py
mehmetg/pytest-browser
7b4ca2612224d90a8b31c8a823b9d4363b33d5ec
[ "MIT" ]
4
2015-06-09T05:14:19.000Z
2018-07-09T17:18:31.000Z
# test set for inheritance bug import pytest # thanks to: # http://stackoverflow.com/questions/11281698/python-dynamic-class-methods class HookMeta(type): def __init__(cls, name, bases, dct): super(HookMeta, cls).__init__(name, bases, dct) # from types import MethodType # def __getattr__(cls, attr): ...
27.93617
74
0.616908
03a5fd4d31fa9688afd43e7b767533a016294420
1,379
py
Python
read_settings.py
rieder/ekster
0f9a6fc534a9c69d56f25b8860a105bae5cebbe9
[ "Apache-2.0" ]
1
2022-02-05T19:43:30.000Z
2022-02-05T19:43:30.000Z
read_settings.py
rieder/ekster
0f9a6fc534a9c69d56f25b8860a105bae5cebbe9
[ "Apache-2.0" ]
null
null
null
read_settings.py
rieder/ekster
0f9a6fc534a9c69d56f25b8860a105bae5cebbe9
[ "Apache-2.0" ]
1
2022-02-05T19:43:38.000Z
2022-02-05T19:43:38.000Z
from amuse.units import units from amuse.units.quantities import new_quantity import configparser def find_unit(string): if str(string) == string: # for simple units: unit = getattr(units, string) else: unit = 1 # for compound units: for component in string: ...
28.142857
74
0.596809
03a615ba13b56f9b67b85d64bc885a4352480f7f
12,539
py
Python
src/python/pants/engine/struct.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/engine/struct.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/engine/struct.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from collections.abc import MutableMapping, MutableSequence from typing import Any, Dict, Iterable, Optional from pants.engine.addressable import addressable, addressable_list from pants....
42.077181
100
0.692958
03a66761c2b62149158d9152447c6d3bb5b0ca50
114,368
py
Python
azure-devops/azext_devops/vstsCompressed/build/v4_1/models/models.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
null
null
null
azure-devops/azext_devops/vstsCompressed/build/v4_1/models/models.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
37
2020-04-27T07:45:19.000Z
2021-04-05T07:27:15.000Z
azure-devops/azext_devops/vstsCompressed/build/v4_1/models/models.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "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. # --------------------------------------------------------------------...
39.932961
768
0.648284
03a6cb59c12e7f15258f6f93a0eb31d98d0e7143
3,361
py
Python
panoptes_aggregation/reducers/shape_reducer_dbscan.py
amyrebecca/aggregation-for-caesar
5f0d884932312010f9caeb8ebfcfe358f490e41f
[ "Apache-2.0" ]
null
null
null
panoptes_aggregation/reducers/shape_reducer_dbscan.py
amyrebecca/aggregation-for-caesar
5f0d884932312010f9caeb8ebfcfe358f490e41f
[ "Apache-2.0" ]
null
null
null
panoptes_aggregation/reducers/shape_reducer_dbscan.py
amyrebecca/aggregation-for-caesar
5f0d884932312010f9caeb8ebfcfe358f490e41f
[ "Apache-2.0" ]
null
null
null
''' Shape Reducer DBSCAN -------------------- This module provides functions to cluster shapes extracted with :mod:`panoptes_aggregation.extractors.shape_extractor`. ''' import numpy as np from sklearn.cluster import DBSCAN from collections import OrderedDict from .reducer_wrapper import reducer_wrapper from .subtask_r...
42.544304
124
0.617971
03a6e7b97e4bc055d39dd07be455b6aee1e1a3e1
2,963
py
Python
pydep/setup_py.py
nokia/ort-pydep
ea18b40fca03438a0fb362e552c26df2d29fc19f
[ "BSD-3-Clause" ]
13
2015-11-29T00:38:57.000Z
2019-04-17T19:19:22.000Z
pydep/setup_py.py
nokia/ort-pydep
ea18b40fca03438a0fb362e552c26df2d29fc19f
[ "BSD-3-Clause" ]
15
2015-03-13T17:09:05.000Z
2018-04-06T18:30:36.000Z
pydep/setup_py.py
nokia/ort-pydep
ea18b40fca03438a0fb362e552c26df2d29fc19f
[ "BSD-3-Clause" ]
9
2015-03-16T12:03:47.000Z
2020-12-18T10:37:28.000Z
import sys import os import runpy from os import path PY2 = sys.version_info[0] == 2 def setup_dirs(container_dir): """ Given a directory that may contain Python packages (defined by setup.py files), returns a list of package root directories (i.e., directories that contain a setup.py) """ r...
32.56044
104
0.662504
03a6fdbea1831b4312c2a99e31c59e9d862d044a
1,126
py
Python
datareturn/migrations/0004_auto_20151204_1508.py
PersonalGenomesOrg/datareturn
bf570635579cd7562696e10fd5e1d0a67d568f41
[ "MIT" ]
null
null
null
datareturn/migrations/0004_auto_20151204_1508.py
PersonalGenomesOrg/datareturn
bf570635579cd7562696e10fd5e1d0a67d568f41
[ "MIT" ]
null
null
null
datareturn/migrations/0004_auto_20151204_1508.py
PersonalGenomesOrg/datareturn
bf570635579cd7562696e10fd5e1d0a67d568f41
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('datareturn', '0003_remove_siteconfig_sour...
31.277778
114
0.601243
03a7135017d3853d4b8052f65685be4252cd680c
2,823
py
Python
tests/test_temp_validate.py
tempodb/tempodb-python
8ce45231bd728c6c97ef799cf0f1513ea3a9a7d3
[ "MIT" ]
4
2015-02-04T14:05:37.000Z
2018-03-01T09:46:34.000Z
tests/test_temp_validate.py
tempodb/tempodb-python
8ce45231bd728c6c97ef799cf0f1513ea3a9a7d3
[ "MIT" ]
2
2022-01-30T22:45:34.000Z
2022-01-30T22:45:42.000Z
tests/test_temp_validate.py
tempodb/tempodb-python
8ce45231bd728c6c97ef799cf0f1513ea3a9a7d3
[ "MIT" ]
1
2018-04-16T13:55:50.000Z
2018-04-16T13:55:50.000Z
import unittest import datetime from tempodb.temporal.validate import check_time_param, convert_iso_stamp class TestTempValidate(unittest.TestCase): def setUp(self): pass def test_check_time_param_valid_string(self): s = '2008-01-03T10:12:32.231+0000' ret = check_time_param(s) ...
34.851852
73
0.654977
03a736a2a5f106eb8dbc9aa4217e3ecc49aaa929
8,964
py
Python
tests/feature/cli/features/environment.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
1
2021-02-08T16:59:14.000Z
2021-02-08T16:59:14.000Z
tests/feature/cli/features/environment.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
tests/feature/cli/features/environment.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
# # ======================================================== # Copyright (c) 2012 Whamcloud, Inc. All rights reserved. # ======================================================== import json import mock from chroma_core.lib.util import chroma_settings from iml_common.lib.name_value_list import NameValueList def pat...
36.439024
118
0.717983
03a748f2df9de9889ad4663e512451233b251b52
1,528
py
Python
b_cfn_twilio/cfn_task_queue/function.py
Biomapas/B.CfnTwilio
a0849f940c34531d4af467ef56a5bd516a6e2540
[ "Apache-2.0" ]
null
null
null
b_cfn_twilio/cfn_task_queue/function.py
Biomapas/B.CfnTwilio
a0849f940c34531d4af467ef56a5bd516a6e2540
[ "Apache-2.0" ]
null
null
null
b_cfn_twilio/cfn_task_queue/function.py
Biomapas/B.CfnTwilio
a0849f940c34531d4af467ef56a5bd516a6e2540
[ "Apache-2.0" ]
1
2021-12-20T08:37:09.000Z
2021-12-20T08:37:09.000Z
from __future__ import annotations from functools import lru_cache import b_aws_cf_response from aws_cdk.aws_lambda import Code, SingletonFunction, Runtime from aws_cdk.core import Stack, Duration from b_cfn_lambda_layer.package_version import PackageVersion from b_twilio_sdk_layer.layer import Layer as TwilioLayer ...
26.344828
68
0.596859
03a7621d5c4d2b3ed22abf4f7f4dde240915ef39
2,208
py
Python
models/model.py
FNNDSC/brain-masking-tool
53c4e015d7f733467c9bdf84e9ac05fcea19feb3
[ "MIT" ]
null
null
null
models/model.py
FNNDSC/brain-masking-tool
53c4e015d7f733467c9bdf84e9ac05fcea19feb3
[ "MIT" ]
null
null
null
models/model.py
FNNDSC/brain-masking-tool
53c4e015d7f733467c9bdf84e9ac05fcea19feb3
[ "MIT" ]
1
2020-01-31T16:25:32.000Z
2020-01-31T16:25:32.000Z
from keras.models import model_from_json from keras.preprocessing.image import ImageDataGenerator import cv2 import abc import numpy as np import sys, os bundle_dir = None if getattr(sys, 'frozen', False): bundle_dir = sys._MEIPASS else: sys.path.append(os.path.join(os.path.dirname(__file__), '..')) class Ma...
33.454545
87
0.669384
03a77140f1c1c23df5a5a76f063f796c0cc88846
488
py
Python
erpnext_ocr/config/docs.py
loftwah/erpnext_ocr
a3d2f309c3760b9343dff8ca3193c0059e28928d
[ "MIT" ]
null
null
null
erpnext_ocr/config/docs.py
loftwah/erpnext_ocr
a3d2f309c3760b9343dff8ca3193c0059e28928d
[ "MIT" ]
2
2020-06-01T16:34:32.000Z
2020-06-01T16:34:33.000Z
erpnext_ocr/config/docs.py
loftwah/erpnext_ocr
a3d2f309c3760b9343dff8ca3193c0059e28928d
[ "MIT" ]
null
null
null
""" Configuration for docs """ source_link = "https://github.com/Monogramm/erpnext_ocr" docs_base_url = "/docs" # docs_base_url = "https://Monogramm.github.io/erpnext_ocr" headline = "ERPNext OCR Integration" sub_heading = "Optical Character Recognition using tesseract within ERPNext" def get_context(context): conte...
28.705882
76
0.786885
03a79661d57c63557202389de6c71de0c4a537aa
5,000
py
Python
rbig_jax/transforms/histogram.py
alexhepburn/rbig_jax
706dd60d2049071be0fb3d311c83719121854678
[ "MIT" ]
null
null
null
rbig_jax/transforms/histogram.py
alexhepburn/rbig_jax
706dd60d2049071be0fb3d311c83719121854678
[ "MIT" ]
null
null
null
rbig_jax/transforms/histogram.py
alexhepburn/rbig_jax
706dd60d2049071be0fb3d311c83719121854678
[ "MIT" ]
null
null
null
import collections from typing import Union import jax import jax.numpy as np from chex import Array, dataclass from rbig_jax.utils import get_domain_extension from objax.typing import JaxArray @dataclass class UniHistParams: support: Array quantiles: Array support_pdf: Array empirical_pdf: Array d...
27.173913
82
0.6264
03a7a1dabc4952ebdab1d44b1f8b2afccfd3089f
7,700
py
Python
test_stardist_cziRGB.py
sebi06/czi_demos
b3f7801f46de0138a8a1ac245e9c80787e0a3f17
[ "MIT" ]
3
2020-12-31T10:06:42.000Z
2021-11-09T13:44:16.000Z
test_stardist_cziRGB.py
sebi06/czi_demos
b3f7801f46de0138a8a1ac245e9c80787e0a3f17
[ "MIT" ]
null
null
null
test_stardist_cziRGB.py
sebi06/czi_demos
b3f7801f46de0138a8a1ac245e9c80787e0a3f17
[ "MIT" ]
null
null
null
from __future__ import print_function, unicode_literals, absolute_import, division import sys import numpy as np import matplotlib.pyplot as plt # %matplotlib inline # %config InlineBackend.figure_format = 'retina' from glob import glob from tifffile import imread from csbdeep.utils import Path, normalize from csbdeep...
31.174089
139
0.652727
03a7b72df22299f7b9f80bb9abbf85c2586b5f13
3,144
py
Python
alipay/aop/api/domain/CardAmountDetailVO.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/CardAmountDetailVO.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/CardAmountDetailVO.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 CardAmountDetailVO(object): def __init__(self): self._amount = None self._card_holder_name = None self._out_bank_card_no = None self._out_bank_inst_id = None ...
31.128713
83
0.620229
03a7ccff0dd95f5e2a9e7827fa7f47f5eef76883
1,216
py
Python
py/cidoc_crm_types/properties/p93_took_out_of_existence.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p93_took_out_of_existence.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p93_took_out_of_existence.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from .p12_occurred_in_the_presence_of import P12OccurredInThePresenceOf from dataclasses import dataclass @dataclass class P93TookOutOfExistence(P12OccurredInThePresenceOf): """ Scope note: This property links an instance of E64 End of Existence to the instance E77 Persistent Item taken out of existence by it. I...
46.769231
492
0.777138
03a8188ff602d13a49ffbefbc9535e7f298ad6d4
8,257
py
Python
users/views.py
bllli/Django-China-API
79a5d85fe88ba7784d08d370b8e7519f7274f208
[ "MIT" ]
187
2018-03-08T11:18:11.000Z
2021-12-26T13:29:02.000Z
users/views.py
bllli/Django-China-API
79a5d85fe88ba7784d08d370b8e7519f7274f208
[ "MIT" ]
67
2018-03-09T14:56:47.000Z
2021-06-24T08:52:40.000Z
users/views.py
bllli/Django-China-API
79a5d85fe88ba7784d08d370b8e7519f7274f208
[ "MIT" ]
52
2018-03-08T11:18:12.000Z
2021-08-02T16:07:04.000Z
import math import random from allauth.account.views import ConfirmEmailView as AllAuthConfirmEmailView from allauth.socialaccount.providers.github.views import GitHubOAuth2Adapter from allauth.socialaccount.providers.oauth2.client import OAuth2Client from django.conf import settings from django.contrib.sites.shortcut...
36.374449
107
0.680392
03a81bbc94e5918412eb4d45b962b5f30125eca7
25,740
py
Python
LAB1/util.py
Yalfoosh/UI-Labosi
6c8f5796cafe603012ae94b9bd2adf4642c6a1e2
[ "Apache-2.0" ]
null
null
null
LAB1/util.py
Yalfoosh/UI-Labosi
6c8f5796cafe603012ae94b9bd2adf4642c6a1e2
[ "Apache-2.0" ]
null
null
null
LAB1/util.py
Yalfoosh/UI-Labosi
6c8f5796cafe603012ae94b9bd2adf4642c6a1e2
[ "Apache-2.0" ]
null
null
null
# custom_util.py # ------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. # ...
39.357798
104
0.63648
03a8227a42562b3bef063348c5991e6908f2f433
463
py
Python
_scripts/__init__.py
dfreeman06/wxyz
663cf6593f4c0ca12f7b94b61e34c0a8d3cbcdfd
[ "BSD-3-Clause" ]
1
2021-06-20T12:21:27.000Z
2021-06-20T12:21:27.000Z
_scripts/__init__.py
nrbgt/wxyz
663cf6593f4c0ca12f7b94b61e34c0a8d3cbcdfd
[ "BSD-3-Clause" ]
null
null
null
_scripts/__init__.py
nrbgt/wxyz
663cf6593f4c0ca12f7b94b61e34c0a8d3cbcdfd
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path import subprocess import sys HERE = Path(__file__).parent ROOT = HERE.parent SRC = ROOT / "src" PY_SRC = SRC / "py" TS_SRC = SRC / "ts" PY = sys.executable DIST = ROOT / "dist" IPYNB = ROOT / "notebooks" IPYNB_HTML = DIST / "notebooks" TEST_OUT = DIST / "test_output" ROBOT_OUT = TEST_OUT / ...
18.52
64
0.678186
03a87a6577694e526c8aecd44c873766386a537c
5,918
py
Python
tests/test_common.py
arknoll/laspy
8b57c38ac3fe666e527406589fa734a50f9ee86a
[ "BSD-2-Clause" ]
null
null
null
tests/test_common.py
arknoll/laspy
8b57c38ac3fe666e527406589fa734a50f9ee86a
[ "BSD-2-Clause" ]
null
null
null
tests/test_common.py
arknoll/laspy
8b57c38ac3fe666e527406589fa734a50f9ee86a
[ "BSD-2-Clause" ]
null
null
null
from pathlib import Path import numpy as np import pytest import laspy from laspy.lib import write_then_read_again from . import conftest simple_las = conftest.SIMPLE_LAS_FILE_PATH simple_laz = conftest.SIMPLE_LAZ_FILE_PATH vegetation1_3_las = conftest.VEGETATION1_3_LAS_FILE_PATH test1_4_las = conftest.TEST1_4_LAS_F...
28.180952
85
0.70784
03a8a0aaec70ed3dbcf80419a0c2b68fb6d4bcec
1,761
py
Python
portal/apps/notification/tests/test_views.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/apps/notification/tests/test_views.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/apps/notification/tests/test_views.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
7
2020-12-15T19:59:17.000Z
2021-11-24T16:47:06.000Z
from django.test import TestCase from django.core.urlresolvers import reverse from ..compat import get_user_model from ..models import create_notice_type, NoticeSetting, NoticeType from . import get_backend_id class TestViews(TestCase): def setUp(self): self.user = get_user_model().objects.create_user("...
44.025
96
0.697331
03a8b009a7eef7aef7d7fcc121b410fe1af50ad2
14,254
py
Python
datawinners/submission/views.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/submission/views.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/submission/views.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 import logging from django.contrib.auth.decorators import login_required from django.http import HttpResponse from django.views.decorators.csrf import csrf_view_exempt, csrf_response_exempt from django.views.decorators.http import require_http_methods import iso8601 from dja...
45.832797
123
0.769749
03a8c21496f32c2efac847dc4dc17b7c7f8b6ea4
1,250
py
Python
code/preprocessing/punctuation_remover.py
jlinkemeyer/MLinPractice
ef96888ef0565b84fece4283fe8dd8dc809c5e99
[ "MIT" ]
1
2021-10-04T11:49:51.000Z
2021-10-04T11:49:51.000Z
code/preprocessing/punctuation_remover.py
jlinkemeyer/MLinPractice
ef96888ef0565b84fece4283fe8dd8dc809c5e99
[ "MIT" ]
null
null
null
code/preprocessing/punctuation_remover.py
jlinkemeyer/MLinPractice
ef96888ef0565b84fece4283fe8dd8dc809c5e99
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Preprocessor that removes punctuation from the original tweet text. Created on Wed Sep 29 09:45:56 2021 @author: lbechberger """ import string from code.preprocessing.preprocessor import Preprocessor from code.util import COLUMN_TWEET, COLUMN_PUNCTUATION # removes ...
33.783784
87
0.7032
03a8d885455927bbf73148550d032563a7344ea3
42,411
py
Python
stravalib/model.py
johnewart/stravalib
8c06216a9c47e11793b0ce2c95462c3485559c03
[ "Apache-2.0" ]
1
2015-01-06T07:16:12.000Z
2015-01-06T07:16:12.000Z
stravalib/model.py
johnewart/stravalib
8c06216a9c47e11793b0ce2c95462c3485559c03
[ "Apache-2.0" ]
null
null
null
stravalib/model.py
johnewart/stravalib
8c06216a9c47e11793b0ce2c95462c3485559c03
[ "Apache-2.0" ]
null
null
null
""" Entity classes for representing the various Strava datatypes. """ import abc import logging from collections import Sequence from stravalib import exc from stravalib import unithelper as uh from stravalib.attributes import (META, SUMMARY, DETAILED, Attribute, TimestampAttribute, ...
52.619107
195
0.687605
03a8f5902055ae161ce67ccbd3bb04c295f180e4
9,798
py
Python
torchtrainer/trainer.py
ArthMx/torchtrainer
cc0fdbf7151b45425d4ab56cc61a669adf4d04c4
[ "MIT" ]
null
null
null
torchtrainer/trainer.py
ArthMx/torchtrainer
cc0fdbf7151b45425d4ab56cc61a669adf4d04c4
[ "MIT" ]
null
null
null
torchtrainer/trainer.py
ArthMx/torchtrainer
cc0fdbf7151b45425d4ab56cc61a669adf4d04c4
[ "MIT" ]
null
null
null
import torch import numpy as np import matplotlib.pyplot as plt from functools import reduce import os import time from .utils import Progbar class Trainer(object): """Class abstracting model training in PyTorch.""" def __init__(self, model, loss_fn, optimizer, metrics=None, device="auto"): """Wra...
38.124514
88
0.538681
03a8fb9bede900c33fda18ba3ff80cf15c6569b7
1,774
py
Python
tools/migrations/0038_auto_20190723_1646.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
2
2016-09-02T12:45:31.000Z
2018-02-10T10:18:11.000Z
tools/migrations/0038_auto_20190723_1646.py
Socialsquare/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
17
2020-03-24T15:58:05.000Z
2022-02-10T08:08:57.000Z
tools/migrations/0038_auto_20190723_1646.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
1
2018-01-05T08:02:18.000Z
2018-01-05T08:02:18.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2019-07-23 16:21 from __future__ import unicode_literals from django.apps import apps from django.db import migrations from django.db.models import Q def create_new_resource_connection(apps, schema_editor): from toolz.curried import pipe, map from toolz ...
29.081967
78
0.6708
03a921c0a5ae460c66602cd3a451c710a51b06e3
1,372
py
Python
nnvm/tests/python/compiler/test_rpc_exec.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
nnvm/tests/python/compiler/test_rpc_exec.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
nnvm/tests/python/compiler/test_rpc_exec.py
Aimledge/tvm
f41c050fc681a9d9805e6c73e729df233e1acbac
[ "Apache-2.0" ]
null
null
null
import tvm from tvm import rpc from tvm.contrib import util, graph_runtime import nnvm.symbol as sym import nnvm.compiler import numpy as np def test_rpc_executor(): host = "localhost" port = 9100 server = rpc.Server(host, port, use_popen=True) x = sym.Variable("x") y = sym.Variable("y") z = s...
26.901961
74
0.630466
03a925a5bd8e4f846cf6f156acc9da3590346be2
7,603
py
Python
tests/unit/test_node_taskgraph_typechecking.py
goosen78/gQuant
cc0bff4ac524ccfbe8097acd647a8b3fad5fe578
[ "Apache-2.0" ]
null
null
null
tests/unit/test_node_taskgraph_typechecking.py
goosen78/gQuant
cc0bff4ac524ccfbe8097acd647a8b3fad5fe578
[ "Apache-2.0" ]
null
null
null
tests/unit/test_node_taskgraph_typechecking.py
goosen78/gQuant
cc0bff4ac524ccfbe8097acd647a8b3fad5fe578
[ "Apache-2.0" ]
null
null
null
''' gQuant Node in TaskGraph Columns Validation Unit Tests To run unittests: # Using standard library unittest python -m unittest -v python -m unittest tests/unit/test_node_taskgraph_typechecking.py -v python -m unittest discover -v tests or # Using pytest # "conda install pytest" or "pip install pytest" pytest -v...
31.032653
78
0.641852
03a96c4a2ddc0997624a80326688e5f288550025
4,160
py
Python
rlkit/envs/goal_generation/pickup_goal_dataset.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
rlkit/envs/goal_generation/pickup_goal_dataset.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/envs/goal_generation/pickup_goal_dataset.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
from multiworld.envs.mujoco.sawyer_xyz.sawyer_pick_and_place \ import get_image_presampled_goals import numpy as np import cv2 import os.path as osp import random def setup_pickup_image_env(image_env, num_presampled_goals): """ Image env and pickup env will have presampled goals. VAE wrapper should ...
34.380165
101
0.640625
03a98863b560c47e759ff73ef8f663f5601e5e51
2,186
py
Python
nova/tests/functional/api_sample_tests/test_virtual_interfaces.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/api_sample_tests/test_virtual_interfaces.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/api_sample_tests/test_virtual_interfaces.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-03-01T17:04:57.000Z
2020-03-01T17:04:57.000Z
# Copyright 2012 Nebula, Inc. # Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
38.350877
78
0.694876
03a99df8e602bbfb97ba4c09635420caa6f66a32
2,379
py
Python
src/devel/___blocks/___rgb_led_block.py
jakub-vesely/hugo
604e7824c39f6da43ede9064001292917c1ee4ae
[ "MIT" ]
null
null
null
src/devel/___blocks/___rgb_led_block.py
jakub-vesely/hugo
604e7824c39f6da43ede9064001292917c1ee4ae
[ "MIT" ]
null
null
null
src/devel/___blocks/___rgb_led_block.py
jakub-vesely/hugo
604e7824c39f6da43ede9064001292917c1ee4ae
[ "MIT" ]
null
null
null
# Copyright (c) 2022 Jakub Vesely # This software is published under MIT license. Full text of the license is available at https://opensource.org/licenses/MIT from ___blocks.___block_types import BlockTypes from ___blocks.___block_base import BlockBase class RgbLedBlockCommand(): set_rgb = 1 # followed by 3 bytes...
29.012195
125
0.680958
03a9d012be828d985245b16e44b22aa8edcac189
29,378
py
Python
napari/layers/labels/_tests/test_labels.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
napari/layers/labels/_tests/test_labels.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
napari/layers/labels/_tests/test_labels.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
import itertools from tempfile import TemporaryDirectory import numpy as np import pandas as pd import pytest import tensorstore as ts import xarray as xr import zarr from numpy.core.numerictypes import issubdtype from numpy.testing import assert_array_almost_equal, assert_raises from skimage import data from napari....
30.570239
84
0.604738
03a9e0988fb0062ef79265216fde1d921bd0b75a
870
py
Python
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/fields/helpers.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
null
null
null
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/fields/helpers.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
7
2020-06-06T01:06:19.000Z
2022-02-10T11:15:14.000Z
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/fields/helpers.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
1
2020-11-04T03:21:24.000Z
2020-11-04T03:21:24.000Z
""" Helpers. """ from elasticsearch_dsl.utils import AttrDict, AttrList __title__ = 'django_elasticsearch_dsl_drf.fields.helpers' __author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>' __copyright__ = '2017-2019 Artur Barseghyan' __license__ = 'GPL 2.0/LGPL 2.1' __all__ = ('to_representation',) def to_represen...
30
72
0.651724
03a9fbf774640e54ab44b2403de5eed02be3c63c
4,353
py
Python
kfsims/network.py
hnykda/kfsims
0c814c1e6bc2881b72c74f519e693e74e9abde71
[ "MIT" ]
6
2018-06-16T17:33:31.000Z
2019-05-02T08:05:50.000Z
kfsims/network.py
hnykda/kfsims
0c814c1e6bc2881b72c74f519e693e74e9abde71
[ "MIT" ]
null
null
null
kfsims/network.py
hnykda/kfsims
0c814c1e6bc2881b72c74f519e693e74e9abde71
[ "MIT" ]
null
null
null
import networkx as nx import numpy as np import types from kfsims.node import node_factory, observe_factory from kfsims.common import init_all from kfsims import noise def make_node(measurements, cov, rho=0.9, tau=5, u=5): _, xk, P, _, _, _, _, H, F, Q, N = init_all() U = cov * (u - 3) nd = node_factory(...
26.542683
74
0.637032
03aa1ae166cace023b240687105b3958c8137322
174
py
Python
docs/src/development/tests/tests0/bot.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
docs/src/development/tests/tests0/bot.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
docs/src/development/tests/tests0/bot.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
from botx import Bot, Message bot = Bot() @bot.handler async def hello(message: Message) -> None: await bot.answer_message(f"Hello, {message.user.username}", message)
19.333333
72
0.718391
03aa58f00aa0d2515c3c589ec27d23a21d2f3422
7,116
py
Python
collections/ansible_collections/ansible/netcommon/tests/unit/module_utils/network/common/test_utils.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/ansible/netcommon/tests/unit/module_utils/network/common/test_utils.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/ansible/netcommon/tests/unit/module_utils/network/common/test_utils.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
2
2021-03-30T14:26:02.000Z
2021-04-01T18:17:29.000Z
# -*- coding: utf-8 -*- # # (c) 2017 Red Hat, Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ...
23.641196
93
0.598932
03aa8355c6c10cea2368ebc1d6dbd5ae6cd4c994
2,043
py
Python
tests/patterns/test_patterns_Pn.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
tests/patterns/test_patterns_Pn.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
tests/patterns/test_patterns_Pn.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import pytest import uqbar.strings import supriya.patterns pattern_01 = supriya.patterns.Pn( supriya.patterns.Pbind(foo=supriya.patterns.Pseq(["A", "B", "C"])), repetitions=2 ) pattern_02 = supriya.patterns.Pn( supriya.patterns.Pbind(foo=supriya.patterns.Pseq(["A", "B", "C"])), key="repeat", repetit...
20.636364
85
0.408223
03aa8687c640e28f130aa9416cb8e48b96dfc6d5
924
py
Python
utils.py
lizard1998myx/MultiBot
314e15122ed8cd99e231b5d9bfbd853f1b0b2272
[ "Apache-2.0" ]
3
2021-08-04T08:51:28.000Z
2022-01-13T01:48:10.000Z
utils.py
lizard1998myx/MultiBot
314e15122ed8cd99e231b5d9bfbd853f1b0b2272
[ "Apache-2.0" ]
null
null
null
utils.py
lizard1998myx/MultiBot
314e15122ed8cd99e231b5d9bfbd853f1b0b2272
[ "Apache-2.0" ]
2
2021-08-04T08:52:15.000Z
2022-01-12T14:20:25.000Z
import os, requests, datetime from PIL import Image from io import BytesIO from .paths import PATHS TEMP_DIR = PATHS['temp'] def image_filename(header='MultiBot', post='.jpg'): return datetime.datetime.now().strftime('{}_image_%Y%m%d-%H%M%S{}'.format(header, post)) def format_filename(header='Multi...
28.875
93
0.65368
03aa934b486fd5146d0c19829f126323b9e21d4b
13,739
py
Python
tests/unit/test_report.py
SimonBiggs/layer_linter
9eb518b74118e4a2d8079e2f32ecc12612ca9e86
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_report.py
SimonBiggs/layer_linter
9eb518b74118e4a2d8079e2f32ecc12612ca9e86
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_report.py
SimonBiggs/layer_linter
9eb518b74118e4a2d8079e2f32ecc12612ca9e86
[ "BSD-3-Clause" ]
null
null
null
from unittest.mock import MagicMock, patch, call, sentinel import pytest from layer_linter.module import Module from layer_linter.contract import Contract from layer_linter import report from layer_linter.report import QuietReport, NormalReport, VerboseReport, ConsolePrinter class StubDependencyGraph: def __init...
35.965969
96
0.600626
03aa951a6c45f20c84f9cea7ab2ab39386d52e3e
1,240
py
Python
src_calc/methods/inputs_excel.py
grissutpl/OPS-Design
866fbff2d6106e35017aed750c67be79157d9c72
[ "MIT" ]
null
null
null
src_calc/methods/inputs_excel.py
grissutpl/OPS-Design
866fbff2d6106e35017aed750c67be79157d9c72
[ "MIT" ]
null
null
null
src_calc/methods/inputs_excel.py
grissutpl/OPS-Design
866fbff2d6106e35017aed750c67be79157d9c72
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jan 01 20:00:29 2020 @author: Ing. Daniel Villarreal """ def ingreso_de_datos_excel(DatosPrincipales): ingreso_datos = [] for i in range(len(DatosPrincipales)): ingreso_datos.append([DatosPrincipales.values[i][0], DatosPrincipales.values[i][1], Dat...
65.263158
128
0.604032
03aa9f142b4edcfd1791be623e17fa91a2823fb6
1,522
py
Python
rpc2_test.py
strickyak/aphid
12469858facdc9d7f110bf6c895e58eae9fb728f
[ "MIT" ]
2
2015-05-25T10:47:30.000Z
2017-12-12T18:15:00.000Z
rpc2_test.py
strickyak/aphid
12469858facdc9d7f110bf6c895e58eae9fb728f
[ "MIT" ]
null
null
null
rpc2_test.py
strickyak/aphid
12469858facdc9d7f110bf6c895e58eae9fb728f
[ "MIT" ]
null
null
null
from go import bufio, bytes, io from go import net, sync, time from go import crypto.rand import dh, keyring import rpc2 as RPC2 def DemoSum(*args): z = 0.0 say args, z for a in args: say a z += float(a) say z return z def DemoSleepAndDouble(millis): time.Sleep(millis * time.Millisecond) retu...
22.382353
76
0.598555
03aac03c70d0179945929253c6418f43e142904f
426
py
Python
Misc/cheating_exam.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
Misc/cheating_exam.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
Misc/cheating_exam.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
d = int(input()) s = input() sol = [' ' for x in range(len(s))] #First 3 sol[0] = s[0] sol[2*(d-1)] = s[1] sol[4*(d-1)] = s[2] sol[d-1] = s[len(s)-2] sol[3*(d-1)] = s[len(s)-1] for i in range(1,int((len(s)-5)/4)+1): sol[i] = s[3+4*(i-1)] sol[2*(d-1)-i] = s[3+4*(i-1)+1] sol[2*(d-1)+i] = s[3+4*(i-1)+2] so...
23.666667
38
0.448357
03aaeb878e35e77068ad56a3e212a06616183e30
1,594
py
Python
alipay/aop/api/domain/LinkTypeListResult.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/LinkTypeListResult.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/LinkTypeListResult.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 * from alipay.aop.api.domain.LinkTypeResult import LinkTypeResult class LinkTypeListResult(object): def __init__(self): self._link_type_list = None @property def link_type_list(self): ...
30.075472
83
0.598494
03aaece6a8c2b4fdd9b43c11a951104f3b8a4adf
544
py
Python
flyqma/scripts/aggregate.py
sbernasek/flyqma
4a622c3f5fed4456c3b9240f5a96428789fde9bd
[ "MIT" ]
2
2020-02-22T09:53:15.000Z
2020-02-24T19:01:24.000Z
flyqma/scripts/aggregate.py
sbernasek/flyqma
4a622c3f5fed4456c3b9240f5a96428789fde9bd
[ "MIT" ]
null
null
null
flyqma/scripts/aggregate.py
sbernasek/flyqma
4a622c3f5fed4456c3b9240f5a96428789fde9bd
[ "MIT" ]
null
null
null
from time import time from clones.validation.arguments import SweepArguments from clones.validation.sweep import SweepBenchmark # ======================== PARSE SCRIPT ARGUMENTS ============================= args = SweepArguments(description='SweepBenchmark arguments.') # ============================= RUN SCRIPT ==...
30.222222
79
0.612132
03aaecf40ef032df6599da459bdb88afd82b9e9b
9,201
py
Python
ros/src/object_detection/object_detection.py
pdigese/CarND-Capstone-team-5-june20
0c7a7539a61c48f62b7557a76edd2c6308c60b81
[ "MIT" ]
null
null
null
ros/src/object_detection/object_detection.py
pdigese/CarND-Capstone-team-5-june20
0c7a7539a61c48f62b7557a76edd2c6308c60b81
[ "MIT" ]
6
2020-11-13T18:54:33.000Z
2022-02-10T02:01:18.000Z
ros/src/object_detection/object_detection.py
pdigese/CarND-Capstone-team-5-june20
0c7a7539a61c48f62b7557a76edd2c6308c60b81
[ "MIT" ]
1
2020-07-13T19:24:15.000Z
2020-07-13T19:24:15.000Z
#!/usr/bin/env python import rospy from sensor_msgs.msg import Image from geometry_msgs.msg import PoseStamped, Pose import tensorflow as tf import os from PIL import ( Image as Img, ) # Must not be named image since there is a datatype called Image from ROS from PIL import ImageColor from PIL import ImageDraw fr...
38.987288
228
0.62428
03aaf0a57602840f7ace1efb841b494c122a36e2
4,262
py
Python
lreid/datasets/dukemtmcreid.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
63
2021-03-20T15:33:11.000Z
2022-03-30T03:04:14.000Z
lreid/datasets/dukemtmcreid.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
5
2021-03-23T08:04:21.000Z
2022-03-10T02:28:43.000Z
lreid/datasets/dukemtmcreid.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
10
2021-04-30T11:14:10.000Z
2022-03-18T16:44:55.000Z
from __future__ import division, print_function, absolute_import import os import copy import os.path as osp from lreid.data_loader.incremental_datasets import IncrementalPersonReIDSamples from lreid.data.datasets import ImageDataset import re import glob class IncrementalSamples4duke(IncrementalPersonReIDSamples): ...
36.42735
124
0.632332
03aaf215c64e4cb9cde5a37fad6bd4cc693a4fc8
1,639
py
Python
Test/subplots_test.py
jswoboda/GeoDataPython
c3e29541327ec754eb5a2a9e8dd94bf1abee3328
[ "MIT" ]
7
2016-07-30T09:36:38.000Z
2020-08-13T08:40:23.000Z
Test/subplots_test.py
jswoboda/GeoDataPython
c3e29541327ec754eb5a2a9e8dd94bf1abee3328
[ "MIT" ]
5
2015-06-12T01:22:49.000Z
2018-04-20T18:26:26.000Z
Test/subplots_test.py
jswoboda/GeoDataPython
c3e29541327ec754eb5a2a9e8dd94bf1abee3328
[ "MIT" ]
5
2016-04-12T19:53:04.000Z
2020-06-04T21:01:48.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Example code on using the alt_slice_overlay function in the plotting.py file. Takes two h5 files--a RISR file and an OMTI file-- and creates 2 objects. This is inputed into alt_slice_overlay. The output is a 2D colorplot with the OMTI data on the bottom in grayscale an...
35.630435
125
0.694326
03ab01adc7b245a45884c97bcdf03d29540b939f
58
py
Python
tests/__init__.py
ericziethen/django-filter-property
d7433db657877049d008fa5ad381992ae7904b77
[ "MIT" ]
17
2020-07-21T10:54:20.000Z
2021-11-28T12:02:59.000Z
tests/__init__.py
ericziethen/django-property-filter
164e31e189eda7ca0fdedb832edc436cfe50de47
[ "MIT" ]
210
2020-05-28T04:51:23.000Z
2022-03-25T10:43:53.000Z
tests/__init__.py
ericziethen/django-filter-property
d7433db657877049d008fa5ad381992ae7904b77
[ "MIT" ]
3
2020-11-25T11:21:20.000Z
2022-02-17T11:55:49.000Z
"""Package to support filtering by Property in Django."""
29
57
0.741379
03ab12ee2e9a76c1fae4f2d7b1f6cc838f522ba3
267
py
Python
DreamContracts/kaagi/constants.py
ChoiceCoin/Smart_Contracts
a85623dc65361c517394947acf601affccac5454
[ "ECL-2.0", "Apache-2.0" ]
28
2021-09-13T08:34:58.000Z
2022-02-02T06:49:56.000Z
DreamContracts/kaagi/constants.py
ChoiceCoin/Smart_Contracts
a85623dc65361c517394947acf601affccac5454
[ "ECL-2.0", "Apache-2.0" ]
4
2021-09-13T21:47:09.000Z
2021-09-24T07:12:08.000Z
DreamContracts/kaagi/constants.py
ChoiceCoin/Smart_Contracts
a85623dc65361c517394947acf601affccac5454
[ "ECL-2.0", "Apache-2.0" ]
23
2021-09-13T04:55:18.000Z
2022-03-22T19:40:50.000Z
ALGONODE_NODE_ADDRESS = "http://testnet-api.algonode.network" ALGONODE_INDX_ADDRESS = "http://testnet-idx.algonode.network" ALGOEXPL_NODE_ADDRESS = "https://node.testnet.algoexplorerapi.io" ALGOEXPL_INDX_ADDRESS = "https://algoindexer.testnet.algoexplorerapi.io"
53.4
73
0.805243
03ab1d9b5cfff006d75a9d4987a632a42100dc93
4,791
py
Python
all/experiments/parallel_env_experiment.py
kcorder/autonomous-learning-library
0266195fa47564e51a32087bc007bff6dda5e263
[ "MIT" ]
null
null
null
all/experiments/parallel_env_experiment.py
kcorder/autonomous-learning-library
0266195fa47564e51a32087bc007bff6dda5e263
[ "MIT" ]
null
null
null
all/experiments/parallel_env_experiment.py
kcorder/autonomous-learning-library
0266195fa47564e51a32087bc007bff6dda5e263
[ "MIT" ]
null
null
null
import torch import time import numpy as np from all.core import State from .writer import ExperimentWriter, CometWriter from .experiment import Experiment from all.environments import VectorEnvironment from all.agents import ParallelAgent import gym class ParallelEnvExperiment(Experiment): '''An Experiment obje...
36.022556
103
0.594657
03ab268f0153e7a43384099236222731a24cd057
12,651
py
Python
openstack_dashboard/dashboards/admin/flavors/workflows.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/admin/flavors/workflows.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/admin/flavors/workflows.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
4
2015-05-05T08:17:28.000Z
2020-02-05T10:47:06.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # no...
40.548077
79
0.548652
03ab2cbad5655b413de7a3ad4ad9d5d8ac8893da
1,890
py
Python
Python_files/OD_matrix_estimation_GLS_Apr_weekday_NT_ext.py
jingzbu/InverseVITraffic
c0d33d91bdd3c014147d58866c1a2b99fb8a9608
[ "MIT" ]
null
null
null
Python_files/OD_matrix_estimation_GLS_Apr_weekday_NT_ext.py
jingzbu/InverseVITraffic
c0d33d91bdd3c014147d58866c1a2b99fb8a9608
[ "MIT" ]
null
null
null
Python_files/OD_matrix_estimation_GLS_Apr_weekday_NT_ext.py
jingzbu/InverseVITraffic
c0d33d91bdd3c014147d58866c1a2b99fb8a9608
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Jing Zhang" __email__ = "jingzbu@gmail.com" __status__ = "Development" from util import * import numpy as np from numpy.linalg import inv, matrix_rank import json # load logit_route_choice_probability_matrix P = zload('../temp_files/logit_route_choice_probability_matrix_ext.pkz'...
27
114
0.662434
03ab7857376072b9179ef8c8fd96f5d6742b6b30
792
py
Python
tests/core/test_p2pfactory.py
som-dev/QRL
4d335d0c65c4f9bfad21e3ae918a249eff64b047
[ "MIT" ]
1
2020-07-11T15:32:52.000Z
2020-07-11T15:32:52.000Z
tests/core/test_p2pfactory.py
som-dev/QRL
4d335d0c65c4f9bfad21e3ae918a249eff64b047
[ "MIT" ]
null
null
null
tests/core/test_p2pfactory.py
som-dev/QRL
4d335d0c65c4f9bfad21e3ae918a249eff64b047
[ "MIT" ]
null
null
null
# coding=utf-8 # Distributed under the MIT software license, see the accompanying # file LICENSE or http://www.opensource.org/licenses/mit-license.php. from unittest import TestCase from qrl.core.misc import logger from qrl.core.ChainManager import ChainManager from qrl.core.p2p.p2pfactory import P2PFactory from qrl.c...
36
94
0.751263
03ab8c545623e1b218c55237293c77609de56841
1,566
py
Python
setup.py
jarvy/jarvy
8a1e29559b959f8fa8b867cb406b8bc73b898dbf
[ "MIT" ]
16
2015-07-21T12:22:49.000Z
2021-06-02T03:44:50.000Z
setup.py
jarvy/jarvy
8a1e29559b959f8fa8b867cb406b8bc73b898dbf
[ "MIT" ]
null
null
null
setup.py
jarvy/jarvy
8a1e29559b959f8fa8b867cb406b8bc73b898dbf
[ "MIT" ]
7
2015-07-29T08:48:15.000Z
2018-05-18T00:16:59.000Z
#!/usr/bin/env python import os import re import sys from codecs import open try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() packages = [ 'jarvy', 'jarvy.packages', ...
24.857143
100
0.627714
03ab97d9335e9f2efdddc2443cfbd1103da0cdf5
19,281
py
Python
collections/ansible_collections/ansible/tower/plugins/modules/tower_job_template.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/ansible/tower/plugins/modules/tower_job_template.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/ansible/tower/plugins/modules/tower_job_template.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
2
2021-03-30T14:26:02.000Z
2021-04-01T18:17:29.000Z
#!/usr/bin/python # coding: utf-8 -*- # (c) 2017, Wayne Witzel III <wayne@riotousliving.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1...
36.242481
149
0.654012
03aba857312178d7945e9b1936c059af9b027b82
7,330
py
Python
monoport/lib/render/gl/Render.py
ArshdeepSahni/MonoPort
a67fdc02b4fb45b3cc187aa4ae34053574d0383c
[ "Unlicense" ]
1
2021-01-15T09:42:29.000Z
2021-01-15T09:42:29.000Z
monoport/lib/render/gl/Render.py
ArshdeepSahni/MonoPort
a67fdc02b4fb45b3cc187aa4ae34053574d0383c
[ "Unlicense" ]
null
null
null
monoport/lib/render/gl/Render.py
ArshdeepSahni/MonoPort
a67fdc02b4fb45b3cc187aa4ae34053574d0383c
[ "Unlicense" ]
null
null
null
import numpy as np from .Shader import * class Render(object): def __init__(self, width, height, multi_sample_rate=1, num_render_target=1 ): self.width = width self.height = height self.vbo_list = [] self.uniform_...
46.392405
119
0.594952
03ac611f527ac6a5f6f99a474f1820d7999e5949
2,501
py
Python
validation-scripts/ice_validator/tests/utils/volumes.py
onap/vnfsdk-ice
5fd4855accef1da2d19dec70c839fdd4080cbcb7
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
validation-scripts/ice_validator/tests/utils/volumes.py
onap/vnfsdk-ice
5fd4855accef1da2d19dec70c839fdd4080cbcb7
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
validation-scripts/ice_validator/tests/utils/volumes.py
onap/vnfsdk-ice
5fd4855accef1da2d19dec70c839fdd4080cbcb7
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# -*- coding: utf8 -*- # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. # ========================================...
34.260274
82
0.629348
03ac6f6a635847756b2d21bb45568265a4107b0e
10,538
py
Python
sdk/servicebus/azure-servicebus/azure/servicebus/aio/_async_auto_lock_renewer.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/servicebus/azure-servicebus/azure/servicebus/aio/_async_auto_lock_renewer.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/servicebus/azure-servicebus/azure/servicebus/aio/_async_auto_lock_renewer.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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...
44.652542
119
0.640254
03ac8c52303cfd9354e1244e938eef4434781667
1,621
py
Python
setup.py
igorlitvak/proxmoxmanager
3cd31a394350dd555236fa363b37fcb9e86fa20c
[ "MIT" ]
null
null
null
setup.py
igorlitvak/proxmoxmanager
3cd31a394350dd555236fa363b37fcb9e86fa20c
[ "MIT" ]
null
null
null
setup.py
igorlitvak/proxmoxmanager
3cd31a394350dd555236fa363b37fcb9e86fa20c
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages long_description_filename = "README.md" try: with open(long_description_filename, "r", encoding="utf-8") as f: long_description = f.read() except FileNotFoundError: long_description = f"File {long_description_filename} not found" except Exception: long_de...
28.438596
96
0.672424
03acd2fc9e6c442d48ac7bac921b2335e3119829
4,912
py
Python
e2e_dialog/e2e_dialog/simpletod/utils.py
hscspring/chatbot
9d0bc91db0d8834a1a75cba3edcd3133191e80af
[ "Apache-2.0" ]
null
null
null
e2e_dialog/e2e_dialog/simpletod/utils.py
hscspring/chatbot
9d0bc91db0d8834a1a75cba3edcd3133191e80af
[ "Apache-2.0" ]
null
null
null
e2e_dialog/e2e_dialog/simpletod/utils.py
hscspring/chatbot
9d0bc91db0d8834a1a75cba3edcd3133191e80af
[ "Apache-2.0" ]
null
null
null
import re def insertSpace(token, text): sidx = 0 while True: sidx = text.find(token, sidx) if sidx == -1: break if sidx + 1 < len(text) and re.match('[0-9]', text[sidx - 1]) and \ re.match('[0-9]', text[sidx + 1]): sidx += 1 continue ...
40.595041
126
0.575733
03acde025086837b07c2a1524a0863abb9c9bfa6
3,203
py
Python
userbot/assistant/botmanagers.py
ansiltech/Wolf-UserBot
4ae67752d00febe2671d0eaeb713dc3569c5d6df
[ "MIT" ]
2
2021-09-15T06:07:55.000Z
2021-09-15T08:42:02.000Z
userbot/assistant/botmanagers.py
ansiltech/Wolf-UserBot
4ae67752d00febe2671d0eaeb713dc3569c5d6df
[ "MIT" ]
null
null
null
userbot/assistant/botmanagers.py
ansiltech/Wolf-UserBot
4ae67752d00febe2671d0eaeb713dc3569c5d6df
[ "MIT" ]
null
null
null
from datetime import datetime from math import floor from telethon.utils import get_display_name from userbot import wolfub from ..Config import Config from ..core.logger import logging from ..helpers import reply_id from ..helpers.utils import _format from ..sql_helper.bot_blacklists import add_user_to_bl, rem_user...
33.364583
135
0.636903
03acf4913b3e32a391ea8defd66160c7aa00b5e8
5,457
py
Python
zested/gui/main.py
Luthaf/Zested
6731ddf50a44f94569528520395309037317f69b
[ "BSD-2-Clause" ]
1
2016-01-27T17:44:27.000Z
2016-01-27T17:44:27.000Z
zested/gui/main.py
Luthaf/Zested
6731ddf50a44f94569528520395309037317f69b
[ "BSD-2-Clause" ]
3
2017-12-06T13:23:32.000Z
2017-12-06T13:23:43.000Z
zested/gui/main.py
Luthaf/Zested
6731ddf50a44f94569528520395309037317f69b
[ "BSD-2-Clause" ]
null
null
null
import os from PySide import QtCore, QtGui, QtUiTools from zested.gui.loader import UiLoader from zested.gui import ZestedTextEditor, ZestedEditorTab from zested import UI_DIR from zested.tutorial import tutorial_from_manifest, render_tutorial APP_STATES = { "home": { "file": "home.ui", "connec...
31.543353
81
0.631482
03ad02be3e06d85cc8d498d551dfe8d1ea4af44c
2,060
py
Python
setup.py
solocompt/plugs-payments
ef69a7e9707a325b588e2087aad21a487bcf6746
[ "MIT" ]
null
null
null
setup.py
solocompt/plugs-payments
ef69a7e9707a325b588e2087aad21a487bcf6746
[ "MIT" ]
null
null
null
setup.py
solocompt/plugs-payments
ef69a7e9707a325b588e2087aad21a487bcf6746
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re import sys try: from setuptools import setup except ImportError: from distutils.core import setup def get_version(*file_paths): """Retrieves the version from plugs_payments/__init__.py""" filename = os.path.join(os.path.dirname(__file_...
28.219178
70
0.617961
03ad63d21d8a1ca06acc68c9e55c761bc8661f9a
748
py
Python
examples/addons/websocket-simple.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
examples/addons/websocket-simple.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
examples/addons/websocket-simple.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
"""Process individual messages from a WebSocket connection.""" import re from mitmproxy import ctx, http def websocket_message(flow: http.HTTPFlow): assert flow.websocket is not None # make type checker happy # get the latest message message = flow.websocket.messages[-1] # was the message sent from ...
32.521739
67
0.692513
03ad82ac96dc2401b1ba1ea81cc3cd192296fe40
12,321
py
Python
gammapy/makers/map.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
gammapy/makers/map.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
gammapy/makers/map.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import logging import astropy.units as u from astropy.table import Table from regions import PointSkyRegion from gammapy.irf import EDispKernelMap, PSFMap from gammapy.maps import Map from .core import Maker from .utils import ( make_edisp_kernel_map, ...
31.673522
126
0.594513
03adaf4eef106c1fdff44b3ce46591eb635f317d
12,051
py
Python
data_profiler/tests/profilers/test_datetime_column_profile.py
taylorfturner/data-profiler
da416d1ccaed4b04d2e5b93da41a508de58b642e
[ "Apache-2.0" ]
1
2021-02-13T21:53:16.000Z
2021-02-13T21:53:16.000Z
data_profiler/tests/profilers/test_datetime_column_profile.py
taylorfturner/data-profiler
da416d1ccaed4b04d2e5b93da41a508de58b642e
[ "Apache-2.0" ]
null
null
null
data_profiler/tests/profilers/test_datetime_column_profile.py
taylorfturner/data-profiler
da416d1ccaed4b04d2e5b93da41a508de58b642e
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import unittest from unittest import mock import datetime import six import warnings from collections import defaultdict import pandas as pd import numpy as np from . import utils from .. import test_utils from data_profiler.profilers import DateTimeColumn # This is taken fro...
35.031977
80
0.558958
03adb1a16d65287d82bf7adcc814eb08a37fac7e
4,907
py
Python
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/aio/_application_insights_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/aio/_application_insights_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/aio/_application_insights_management_client.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 ...
48.107843
156
0.725902
03add7b2203eb43b79c1bc7a7ed1933902adf929
6,015
py
Python
yellowant/endpoints.py
yellowanthq/yellowant-python-sdk
e6b8e46645492866e00e761869e9b8474726e6c6
[ "MIT" ]
null
null
null
yellowant/endpoints.py
yellowanthq/yellowant-python-sdk
e6b8e46645492866e00e761869e9b8474726e6c6
[ "MIT" ]
1
2021-06-01T22:18:04.000Z
2021-06-01T22:18:04.000Z
yellowant/endpoints.py
yellowanthq/yellowant-python-sdk
e6b8e46645492866e00e761869e9b8474726e6c6
[ "MIT" ]
1
2018-12-18T18:13:38.000Z
2018-12-18T18:13:38.000Z
# -*- coding: utf-8 -*- """ yellowant.endpoints ~~~~~~~~~~~~~~~~~~~~~ """ import os import warnings from io import BytesIO from time import sleep from .advisory import YellowAntDeprecationWarning class Endpoints(object): def get_user_profile(self, **params): """Returns the profile for the authenticati...
35.803571
141
0.646052
03adda06d2008e56102f451855882b7de9f49405
5,964
py
Python
bot.py
No1Cheats/a2b-disptach
1eb020997488ee74c761644d321cf985a2155a5d
[ "MIT" ]
null
null
null
bot.py
No1Cheats/a2b-disptach
1eb020997488ee74c761644d321cf985a2155a5d
[ "MIT" ]
null
null
null
bot.py
No1Cheats/a2b-disptach
1eb020997488ee74c761644d321cf985a2155a5d
[ "MIT" ]
null
null
null
# A2B Dispatch v1 # Made by Jan Imhof import json import discord import geopy.distance import requests import math import xml.etree.ElementTree as ET from discord.ext import commands # Opening the config.json file that stores the Discord Token, AVWX auth header and FSEconomy Datafeed with open('config.json') as conf...
39.236842
120
0.663146
03adf2fc9a7749c1e829f699296b7196bf968314
4,019
py
Python
apps/profiles/forms.py
emilps/onlineweb4
6f4aca2a4522698366ecdc6ab63c807ce5df2a96
[ "MIT" ]
null
null
null
apps/profiles/forms.py
emilps/onlineweb4
6f4aca2a4522698366ecdc6ab63c807ce5df2a96
[ "MIT" ]
null
null
null
apps/profiles/forms.py
emilps/onlineweb4
6f4aca2a4522698366ecdc6ab63c807ce5df2a96
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re from django import forms from django.contrib import auth from django.utils.translation import ugettext as _ from apps.authentication.models import OnlineUser, Position from apps.profiles.models import Privacy ZIP_CODE_VALIDATION_ERROR = "Postnummer må bestå av fire siffer." class ...
32.152
112
0.605126
03adf892fcf6fae07422169b92864332a4ae7a1d
8,731
py
Python
graviti/manager/dataset.py
wangyuqing0424/graviti-python-sdk
66300cc1edda6a848cac094899afb3d0421c595d
[ "MIT" ]
null
null
null
graviti/manager/dataset.py
wangyuqing0424/graviti-python-sdk
66300cc1edda6a848cac094899afb3d0421c595d
[ "MIT" ]
null
null
null
graviti/manager/dataset.py
wangyuqing0424/graviti-python-sdk
66300cc1edda6a848cac094899afb3d0421c595d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2022 Graviti. Licensed under MIT License. # """The implementation of the Dataset and DatasetManager.""" from typing import Any, Dict, Generator, Optional, Tuple, Type, TypeVar from tensorbay.utility import AttrsMixin, attr, common_loads from graviti.exception import ResourceNotE...
29.900685
96
0.58676
03ae5b7a35df46fcfbe8ea7efd243b530f6a1d7a
12,523
py
Python
custom_components/meross_lan/merossclient/const.py
aicarmic/meross_lan
acaecd2ca2325f515638e1cefa0224125bbfa675
[ "MIT" ]
null
null
null
custom_components/meross_lan/merossclient/const.py
aicarmic/meross_lan
acaecd2ca2325f515638e1cefa0224125bbfa675
[ "MIT" ]
null
null
null
custom_components/meross_lan/merossclient/const.py
aicarmic/meross_lan
acaecd2ca2325f515638e1cefa0224125bbfa675
[ "MIT" ]
null
null
null
from typing import OrderedDict # MQTT topics TOPIC_DISCOVERY = "/appliance/+/publish" TOPIC_REQUEST = "/appliance/{}/subscribe" TOPIC_RESPONSE = "/appliance/{}/publish" METHOD_PUSH = "PUSH" METHOD_GET = "GET" METHOD_GETACK = "GETACK" METHOD_SET = "SET" METHOD_SETACK = "SETACK" METHOD_ERROR = "ERROR" NS_APPLIANCE_SY...
35.882521
113
0.799249
03ae682718e947280dd94e388e563311362f2841
14,256
py
Python
deepCR/model.py
kgb0255/deepCR
bb449d77fb99abc052bf76d01e85dfdce326b779
[ "BSD-3-Clause" ]
null
null
null
deepCR/model.py
kgb0255/deepCR
bb449d77fb99abc052bf76d01e85dfdce326b779
[ "BSD-3-Clause" ]
null
null
null
deepCR/model.py
kgb0255/deepCR
bb449d77fb99abc052bf76d01e85dfdce326b779
[ "BSD-3-Clause" ]
null
null
null
"""main module to instantiate deepCR models and use them """ from os import path, mkdir import math import shutil import secrets import numpy as np import torch import torch.nn as nn from torch import from_numpy from joblib import Parallel, delayed from joblib import dump, load from joblib import wrap_non_picklable_ob...
42.810811
125
0.566779
03ae7224bcc4c28cf809c094bf1a145ab00252ed
1,153
py
Python
django_auto_model/utils.py
dipasqualew/django-auto-model
958063b2df99e95f043b06f6a6df02fe8ccfb5de
[ "MIT" ]
null
null
null
django_auto_model/utils.py
dipasqualew/django-auto-model
958063b2df99e95f043b06f6a6df02fe8ccfb5de
[ "MIT" ]
23
2020-10-29T07:02:00.000Z
2021-08-02T06:03:29.000Z
django_auto_model/utils.py
rolafium/Django-AutoModel
958063b2df99e95f043b06f6a6df02fe8ccfb5de
[ "MIT" ]
null
null
null
""" Utils module Defines utility functions used internally by the library """ import re import datetime import random def get_prefixed_str(original_str): """ Returns a new string that is prefixed with a random number (range 0-10000) This function is used to go around the uniqueness of certain fiel...
24.020833
71
0.680833
03ae795f4bed4e31b1164e17e689d7303444ca65
26,608
py
Python
elfinder/connector.py
bohyn/yawd-elfinder
fad675199bc151d42f9f4adbeb0f785c5dcb9e52
[ "BSD-3-Clause" ]
null
null
null
elfinder/connector.py
bohyn/yawd-elfinder
fad675199bc151d42f9f4adbeb0f785c5dcb9e52
[ "BSD-3-Clause" ]
null
null
null
elfinder/connector.py
bohyn/yawd-elfinder
fad675199bc151d42f9f4adbeb0f785c5dcb9e52
[ "BSD-3-Clause" ]
1
2019-07-18T09:27:09.000Z
2019-07-18T09:27:09.000Z
import os, re, time, urllib from django.utils.translation import ugettext as _ from exceptions import ElfinderErrorMessages, VolumeNotFoundError, DirNotFoundError, FileNotFoundError, NamedError, NotAnImageError class ElfinderConnector: """ A python implementation of the `elfinder connector api v2.0 <http...
38.450867
180
0.543521
03ae8ac5e3b62e30f19a69b2b14ff4b8e9e19806
10,261
py
Python
oscar/lib/python2.7/site-packages/dns/update.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/dns/update.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/dns/update.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PRO...
41.044
80
0.544879
03aed776387a24a3a6d8686fec1289af38738130
2,524
py
Python
components/aws/emr/submit_pyspark_job/src/submit_pyspark_job.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/aws/emr/submit_pyspark_job/src/submit_pyspark_job.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/aws/emr/submit_pyspark_job/src/submit_pyspark_job.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
38.242424
97
0.740095
03aed901eec47a0f36880c2864f6bb7657c2cd8d
6,269
py
Python
nlptools/utils/utils.py
zhupengjia/nlptools
a0afc4873ee1b3adb383d38075ad5ae5e0293055
[ "MIT" ]
1
2020-10-26T02:32:25.000Z
2020-10-26T02:32:25.000Z
nlptools/utils/utils.py
zhupengjia/nlptools
a0afc4873ee1b3adb383d38075ad5ae5e0293055
[ "MIT" ]
null
null
null
nlptools/utils/utils.py
zhupengjia/nlptools
a0afc4873ee1b3adb383d38075ad5ae5e0293055
[ "MIT" ]
1
2020-10-26T02:34:05.000Z
2020-10-26T02:34:05.000Z
#!/usr/bin/env python import os, zlib, numpy, re, pickle from collections import Counter from sklearn.utils import murmurhash3_32 ''' Author: Pengjia Zhu (zhupengjia@gmail.com) Some tool functions ''' def zdump(value,filename): ''' serialize compress variable to file using zlib and pickle ...
22.796364
133
0.536768
03aedc14e0b9d5ea764879fc1c56c332133a8ce9
2,693
py
Python
autoio-interfaces/mess_io/tests/test_write_spc.py
lpratalimaffei/autoio
57be6e4882af1841153c19e7353e2531e64ce47f
[ "Apache-2.0" ]
null
null
null
autoio-interfaces/mess_io/tests/test_write_spc.py
lpratalimaffei/autoio
57be6e4882af1841153c19e7353e2531e64ce47f
[ "Apache-2.0" ]
1
2022-02-15T19:35:14.000Z
2022-02-15T19:35:14.000Z
autoio-interfaces/mess_io/tests/test_write_spc.py
lpratalimaffei/autoio
57be6e4882af1841153c19e7353e2531e64ce47f
[ "Apache-2.0" ]
13
2020-06-24T05:21:11.000Z
2021-05-05T19:58:30.000Z
""" Tests the writing of the energy transfer section """ import os from ioformat import read_text_file import mess_io.writer # Atom/Molecule Data PATH = os.path.dirname(os.path.realpath(__file__)) CORE_STR = """ Geometry[angstrom] 8 C -0.75583 0.00710 -0.01604 C 0.75582 ...
32.841463
77
0.572967
03af246b969573d2e4a57e6e6bbfd243b7a0ffe1
3,443
py
Python
sc2/data.py
Matuiss2/python-sc2
dd93215d8b09b7ddacfd5c3cc4e9f43641d3f953
[ "MIT" ]
3
2019-01-20T19:37:25.000Z
2019-01-29T10:21:48.000Z
sc2/data.py
Matuiss2/python-sc2
dd93215d8b09b7ddacfd5c3cc4e9f43641d3f953
[ "MIT" ]
1
2019-02-13T06:42:26.000Z
2019-03-11T14:04:43.000Z
sc2/data.py
Matuiss2/python-sc2
dd93215d8b09b7ddacfd5c3cc4e9f43641d3f953
[ "MIT" ]
1
2019-02-13T05:44:16.000Z
2019-02-13T05:44:16.000Z
import enum from typing import Any, Dict, List, Optional, Set, Tuple, Union # mypy type checking from s2clientprotocol import common_pb2 as common_pb from s2clientprotocol import data_pb2 as data_pb from s2clientprotocol import error_pb2 as error_pb from s2clientprotocol import raw_pb2 as raw_pb from s2clientprotocol...
38.685393
117
0.762416
03af3413f2eaff2034e27d5f63553f2ee3286fe6
3,598
py
Python
alipay/aop/api/domain/CateringDeliveryInfo.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/CateringDeliveryInfo.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/CateringDeliveryInfo.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 CateringDeliveryInfo(object): def __init__(self): self._delivery_distance = None self._delivery_mobile = None self._distributor = None self._estimate_delivery_end_...
35.623762
107
0.668149
03af3fefc8a94cb65be1ae64e5758715711cd125
8,275
py
Python
leetcode_python/Stack/decode-string.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Stack/decode-string.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
null
null
null
leetcode_python/Stack/decode-string.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
""" 394. Decode String Medium Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is being repeated exactly k times. Note that k is guaranteed to be a positive integer. You may assume that the input string is always valid; ...
29.766187
183
0.473353
03af5cc5b2fa1229d0f44c138fb94a64664bd5b2
1,518
py
Python
generated/python/proto-google-cloud-speech-v1beta1/setup.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
18
2016-12-08T20:47:57.000Z
2022-01-29T19:36:04.000Z
generated/python/proto-google-cloud-speech-v1beta1/setup.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
252
2016-09-21T20:51:36.000Z
2021-03-25T23:02:36.000Z
generated/python/proto-google-cloud-speech-v1beta1/setup.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
37
2016-09-19T21:13:16.000Z
2022-01-29T19:36:07.000Z
"""A setup module for the GRPC Google Cloud Speech API service. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ import setuptools from setuptools import setup, find_packages install_requires = [ 'googleapis-common-protos>=1.5.2, <2.0dev', 'oauth2client>=2....
29.764706
99
0.688406
03af74cb513232ecbbea661a2b5f662b6b4786a4
1,753
py
Python
Python3/Books/Douson/chapter12/astrocrash01.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter12/astrocrash01.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter12/astrocrash01.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
# Astrocrash01 # Get asteroids moving on the screen import random from livewires import games games.init(screen_width = 640, screen_height = 480, fps = 50) class Asteroid(games.Sprite): """ An asteroid which floats across the screen. """ SMALL = 1 MEDIUM = 2 LARGE = 3 images = {SMALL : games.lo...
27.390625
81
0.586994
03afe65944be6e1dc0b03c5d962e435bbb115daa
6,658
py
Python
python/ray/tune/examples/tune_mnist_keras.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
2
2019-10-08T13:31:08.000Z
2019-10-22T18:34:52.000Z
python/ray/tune/examples/tune_mnist_keras.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
1
2018-12-26T01:09:50.000Z
2018-12-26T01:09:50.000Z
python/ray/tune/examples/tune_mnist_keras.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
6
2019-03-12T05:37:35.000Z
2020-03-09T12:25:17.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import argparse import keras from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2...
32.009615
79
0.594473
03b00f179f54485147c69f1411c1935f41b9718e
3,844
py
Python
terrascript/resource/invidian/ovh.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/invidian/ovh.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/invidian/ovh.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/invidian/ovh.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:24:14 UTC) import terrascript class ovh_cloud_network_private(terrascript.Resource): pass class ovh_cloud_network_private_subnet(terrascript.Resource): pass class ovh_cloud_user(terrascript.Resource): ...
21.595506
88
0.805151
03b0141a34fcf1545ff6ddef8c792baaeed579a9
2,083
py
Python
contrib/runners/noop_runner/noop_runner/noop_runner.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
contrib/runners/noop_runner/noop_runner/noop_runner.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
contrib/runners/noop_runner/noop_runner/noop_runner.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
30.632353
87
0.713394
03b0302b0d6b233c46fbf251219c24ed2fd9fc18
2,562
py
Python
mlep/mlep_error.py
NREL/python-mlep
3d8284d04b551093005c162680a72523911bfeaa
[ "BSD-3-Clause" ]
1
2021-04-28T01:51:21.000Z
2021-04-28T01:51:21.000Z
mlep/mlep_error.py
NREL/python-mlep
3d8284d04b551093005c162680a72523911bfeaa
[ "BSD-3-Clause" ]
1
2020-12-28T16:28:46.000Z
2020-12-28T16:28:46.000Z
mlep/mlep_error.py
NREL/python-mlep
3d8284d04b551093005c162680a72523911bfeaa
[ "BSD-3-Clause" ]
null
null
null
######################################################################################################################## # Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, ar...
49.269231
124
0.686183
03b03fcf442622542706fb6e9ae0587b407c12df
847
py
Python
alipay/aop/api/response/AlipayAssetPointVoucherprodBenefittemplateModifyResponse.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/AlipayAssetPointVoucherprodBenefittemplateModifyResponse.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/AlipayAssetPointVoucherprodBenefittemplateModifyResponse.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 AlipayAssetPointVoucherprodBenefittemplateModifyResponse(AlipayResponse): def __init__(self): super(AlipayAssetPointVoucherprodBenefittemplateModifyResponse, self).__init__()...
32.576923
129
0.75915
03b04197cda8ba80878f047cd0e0f2d9dabd9159
18,394
py
Python
indra/sources/eidos/processor.py
djinnome/indra
382b7f236e0b1422c96a268ef873530b5e92d48f
[ "BSD-2-Clause" ]
null
null
null
indra/sources/eidos/processor.py
djinnome/indra
382b7f236e0b1422c96a268ef873530b5e92d48f
[ "BSD-2-Clause" ]
null
null
null
indra/sources/eidos/processor.py
djinnome/indra
382b7f236e0b1422c96a268ef873530b5e92d48f
[ "BSD-2-Clause" ]
null
null
null
import re import copy import logging import datetime import objectpath from indra.statements import * logger = logging.getLogger(__name__) class EidosProcessor(object): """This processor extracts INDRA Statements from Eidos JSON-LD output. Parameters ---------- json_dict : dict A JSON dicti...
38.320833
78
0.567685
03b042e94bd3ba8c54f9f3f115175c152432a886
642
py
Python
hansard/scripts/save_model.py
CallumRai/Hansard
4d2a5b30d44e3d5af88ae6c4e01f6f229fcf12b8
[ "MIT" ]
null
null
null
hansard/scripts/save_model.py
CallumRai/Hansard
4d2a5b30d44e3d5af88ae6c4e01f6f229fcf12b8
[ "MIT" ]
null
null
null
hansard/scripts/save_model.py
CallumRai/Hansard
4d2a5b30d44e3d5af88ae6c4e01f6f229fcf12b8
[ "MIT" ]
null
null
null
import torch import os from transformers import GPT2Tokenizer, TFGPT2LMHeadModel if __name__ == "__main__": dir_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) # Save tokenizer tokenizer = GPT2Tokenizer.from_pretrained('gpt2', bos_token='<|startoftext|>', ...
35.666667
82
0.596573
03b051df91a418d4100cf0e2111659c7e8260968
118
py
Python
setup.py
akaped/blastnet
fef1ba7e5c8b73554a4d4f539b6d4a1400de9024
[ "MIT" ]
1
2020-02-17T09:30:40.000Z
2020-02-17T09:30:40.000Z
setup.py
akaped/blastnet
fef1ba7e5c8b73554a4d4f539b6d4a1400de9024
[ "MIT" ]
1
2020-08-20T08:56:05.000Z
2020-08-20T08:56:05.000Z
setup.py
akaped/blastnet
fef1ba7e5c8b73554a4d4f539b6d4a1400de9024
[ "MIT" ]
null
null
null
from os import system as sys sys("pip install networkx sklearn fa2 matplotlib pandas numpy") print("DONE INSTALLING")
29.5
63
0.79661