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
1d5e9ec1b77932727594f3e58590f000c949ebf3
1,977
py
Python
splitter/tiered_manager/tiered.py
splitter-research/splitter
94e5e3073b4f383ba50397168ddb8bcd5fc48da4
[ "MIT" ]
null
null
null
splitter/tiered_manager/tiered.py
splitter-research/splitter
94e5e3073b4f383ba50397168ddb8bcd5fc48da4
[ "MIT" ]
null
null
null
splitter/tiered_manager/tiered.py
splitter-research/splitter
94e5e3073b4f383ba50397168ddb8bcd5fc48da4
[ "MIT" ]
null
null
null
"""This file is part of Splitter which is released under MIT License. tiered.py defines file storage operations. These operations allows for complex file storage systems such as tiered storage, and easy file movement and access. """ from splitter.core import * class TieredFileStorageManager(StorageManager): """ Ti...
31.887097
78
0.744057
1d5e9f663019ffdf09f7e20e41bdc6b470ab65b7
35,310
py
Python
impacket/nmb.py
kanzure/impacket
88c7536ca24bc8f47718764f76cc38cdc8cf1879
[ "Apache-1.1" ]
null
null
null
impacket/nmb.py
kanzure/impacket
88c7536ca24bc8f47718764f76cc38cdc8cf1879
[ "Apache-1.1" ]
null
null
null
impacket/nmb.py
kanzure/impacket
88c7536ca24bc8f47718764f76cc38cdc8cf1879
[ "Apache-1.1" ]
4
2015-02-25T20:08:18.000Z
2021-07-06T12:31:29.000Z
# Copyright (c) 2003-2012 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # $Id$ # # -*- mode: python; tab-width: 4 -*- # # Copyright (C) 2001 Michael Teo <michaelteo@bigfoot....
36.590674
199
0.590201
1d5ea8f4e9383d77444b4e2fce4e1c696a99a515
5,149
py
Python
dashi/runscanner/yield_over_time.py
slazicoicr/dashi
ede0cebbd2c3490e9f8c4b56ba3f2e04b6576997
[ "MIT" ]
null
null
null
dashi/runscanner/yield_over_time.py
slazicoicr/dashi
ede0cebbd2c3490e9f8c4b56ba3f2e04b6576997
[ "MIT" ]
7
2019-06-06T13:42:08.000Z
2019-06-06T17:43:08.000Z
dashi/runscanner/yield_over_time.py
slazicoicr/dashi
ede0cebbd2c3490e9f8c4b56ba3f2e04b6576997
[ "MIT" ]
null
null
null
from dash.dependencies import Input, Output import dash_core_components as dcc import dash_html_components as html import dash_table import pandas import plotly.graph_objs as go import gsiqcetl.load from gsiqcetl.runscanner.illumina.constants import FlowCellCacheSchema from gsiqcetl.pinery.instruments.constants import...
26.958115
78
0.591571
1d5ecae61e1024b4847b7c75b0c01c6d795b29e3
21,301
py
Python
stripped/ipython/RobbytorchTutorial_stripped.py
badochov/robbytorch
460617eace7d89e093c62051490fa05b86373d64
[ "MIT" ]
3
2021-07-05T12:33:06.000Z
2021-07-21T12:44:21.000Z
stripped/ipython/RobbytorchTutorial_stripped.py
Swarzkopf314/robbytorch
aac4c7b7396cd5756642fb9f9bbc52cce5ecfce2
[ "MIT" ]
1
2022-03-21T12:41:20.000Z
2022-03-21T12:41:20.000Z
stripped/ipython/RobbytorchTutorial_stripped.py
Swarzkopf314/robbytorch
aac4c7b7396cd5756642fb9f9bbc52cce5ecfce2
[ "MIT" ]
2
2021-09-09T12:07:31.000Z
2022-01-08T16:32:07.000Z
#!/usr/bin/env python # coding: utf-8 # **Note**: To run this notebook clone the [robbytorch repo](https://github.com/mim-solutions/robbytorch) and run this notebook from within. Alternatively you can just download the CuteDataset from [here](https://github.com/mim-solutions/robbytorch/tree/master/data/cute_dataset) a...
31.09635
777
0.702033
1d5ee1f08657be8bd1a9cad1c59f5dca98de5bd7
1,717
py
Python
doll/input_parser/__init__.py
badge/doll
36d99d9dd8ab6ff2e155e8daa8dad28619e46ef7
[ "Apache-2.0" ]
2
2016-12-17T23:10:50.000Z
2020-04-29T23:03:31.000Z
doll/input_parser/__init__.py
badge/doll
36d99d9dd8ab6ff2e155e8daa8dad28619e46ef7
[ "Apache-2.0" ]
3
2015-08-30T16:11:50.000Z
2015-09-01T19:59:50.000Z
doll/input_parser/__init__.py
badge/doll
36d99d9dd8ab6ff2e155e8daa8dad28619e46ef7
[ "Apache-2.0" ]
null
null
null
import os from ..input_parser.add_database_types import create_type_contents from ..input_parser.parse_dictionary import parse_dict_file from ..input_parser.parse_inflections import parse_inflect_file from ..config import config def parse_all_inputs(words_dir: str = os.path.expanduser('~/.doll/wordsall'), commit_chan...
35.770833
108
0.677927
1d5eeef5163d4f15a342c7dd13aa8ea80c1705ff
787
py
Python
setup.py
rcbops-qe/test_runner
8480618dc3682f57e83af431b2d4b2308a287d96
[ "MIT" ]
null
null
null
setup.py
rcbops-qe/test_runner
8480618dc3682f57e83af431b2d4b2308a287d96
[ "MIT" ]
null
null
null
setup.py
rcbops-qe/test_runner
8480618dc3682f57e83af431b2d4b2308a287d96
[ "MIT" ]
null
null
null
from setuptools import setup # def readme(): # with open('README', 'r') as f: # return f.read() setup( name='test_runner', version='1.0', description='Execute OpenStack frameworks', # long_description=readme(), url='https://github.com/jpmontez/test_runner', author='Julian Montez'...
21.861111
56
0.579416
1d5f35519f2fca0e7153d5c54f139a2d31f47365
2,845
py
Python
hindi_inverse_text_normalization/verbalizers/time.py
Open-Speech-EkStep/punctuation-ITN
d4b8340786a836d44b510ff981667a37cac4b65e
[ "MIT" ]
2
2022-01-17T09:13:42.000Z
2022-01-18T23:33:42.000Z
hindi_inverse_text_normalization/verbalizers/time.py
Open-Speech-EkStep/punctuation-ITN
d4b8340786a836d44b510ff981667a37cac4b65e
[ "MIT" ]
null
null
null
hindi_inverse_text_normalization/verbalizers/time.py
Open-Speech-EkStep/punctuation-ITN
d4b8340786a836d44b510ff981667a37cac4b65e
[ "MIT" ]
2
2022-02-07T14:10:30.000Z
2022-02-09T07:28:19.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # Copyright 2015 and onwards Google, 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/license...
32.329545
105
0.576801
1d5f48ccf5f1fffb5b421d0d3ccc1d07f0c930af
16,326
py
Python
solaris/eval/vector.py
eddiethedean/solaris
ca575414f6e36aed48057812c47bacb7b94141da
[ "Apache-2.0" ]
null
null
null
solaris/eval/vector.py
eddiethedean/solaris
ca575414f6e36aed48057812c47bacb7b94141da
[ "Apache-2.0" ]
null
null
null
solaris/eval/vector.py
eddiethedean/solaris
ca575414f6e36aed48057812c47bacb7b94141da
[ "Apache-2.0" ]
null
null
null
import os import glob from tqdm import tqdm import numpy as np import geopandas as gpd from .iou import calculate_iou def average_score_by_class(ious, threshold=0.5): """ for a list of object ious by class, test if they are a counted as a positive or a negative. Arguments --------- ious : list...
43.30504
152
0.614664
1d5f496e64e3a8fe3c5625b8e1128231d4f7cf1b
2,628
py
Python
apscheduler/events.py
cychenyin/windmill
cc90126f8ba57531b28b1bc722927e8b66dc31b1
[ "MIT" ]
null
null
null
apscheduler/events.py
cychenyin/windmill
cc90126f8ba57531b28b1bc722927e8b66dc31b1
[ "MIT" ]
null
null
null
apscheduler/events.py
cychenyin/windmill
cc90126f8ba57531b28b1bc722927e8b66dc31b1
[ "MIT" ]
null
null
null
# coding: utf-8 __all__ = ('EVENT_SCHEDULER_START', 'EVENT_SCHEDULER_SHUTDOWN', 'EVENT_EXECUTOR_ADDED', 'EVENT_EXECUTOR_REMOVED', 'EVENT_JOBSTORE_ADDED', 'EVENT_JOBSTORE_REMOVED', 'EVENT_ALL_JOBS_REMOVED', 'EVENT_JOB_ADDED', 'EVENT_JOB_REMOVED', 'EVENT_JOB_MODIFIED', 'EVENT_JOB_EXECUTED', 'EVENT_J...
35.04
117
0.717275
1d5f4bafa07c47751aa54cbb34e453814b7aa1bc
2,740
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/messages/send_screenshot_notification.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/functions/messages/send_screenshot_notification.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/messages/send_screenshot_notification.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
32.619048
106
0.626642
1d5f5f4e44e28ea33317ef6e2c5b28d9b46279a2
3,569
py
Python
tensorlayer/layers/dense/base_dense.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
tensorlayer/layers/dense/base_dense.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
tensorlayer/layers/dense/base_dense.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python # -*- coding: utf-8 -*- import numpy as np import tensorflow as tf import tensorlayer as tl from tensorlayer import logging from tensorlayer.decorators import deprecated_alias from tensorlayer.layers.core import Layer # from tensorlayer.layers.core import LayersConfig __all__ = [ 'Dense', ]...
31.034783
101
0.604651
1d5f60ee1f1b20bc9d6dbedbcdc2b67c9beda518
874
py
Python
test/test_postgresql.py
rec/backer
b42177f7c796db41e308c9bd4254c8f053c83f6b
[ "MIT" ]
1
2020-02-21T15:48:22.000Z
2020-02-21T15:48:22.000Z
test/test_postgresql.py
rec/backer
b42177f7c796db41e308c9bd4254c8f053c83f6b
[ "MIT" ]
8
2020-03-02T15:24:43.000Z
2020-03-12T17:33:00.000Z
test/test_postgresql.py
rec/backer
b42177f7c796db41e308c9bd4254c8f053c83f6b
[ "MIT" ]
null
null
null
from . import patch @patch.execute class TestPostgresql(patch.MainTester): def test_all(self): config = {'postgresql': {'0': DATABASE}} line = 'pg_dumpall' + POSTGRESQL actual, expected = self._test(config, line) assert actual == expected def test_database_and_tables(self): ...
24.277778
70
0.594966
1d5f8dc0e54834b09d15b0090d61bd5e4898d190
8,879
py
Python
prism/preprocess.py
animesh/deepmass
19284937ac7df015666cf122ad9a139b439ee362
[ "Apache-2.0" ]
null
null
null
prism/preprocess.py
animesh/deepmass
19284937ac7df015666cf122ad9a139b439ee362
[ "Apache-2.0" ]
null
null
null
prism/preprocess.py
animesh/deepmass
19284937ac7df015666cf122ad9a139b439ee362
[ "Apache-2.0" ]
null
null
null
# # Copyright 2017 Verily Life Sciences LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
31.485816
80
0.686339
1d5fa117d5643fe3eed1041d31a3a53d1e533d3b
557
py
Python
examples/django-server.py
disruptive-technologies/python-integrations
24798a2f26bfa661149311465fbe1f6ac12e5f79
[ "MIT" ]
1
2022-02-08T21:19:42.000Z
2022-02-08T21:19:42.000Z
examples/django-server.py
disruptive-technologies/python-integrations
24798a2f26bfa661149311465fbe1f6ac12e5f79
[ "MIT" ]
null
null
null
examples/django-server.py
disruptive-technologies/python-integrations
24798a2f26bfa661149311465fbe1f6ac12e5f79
[ "MIT" ]
1
2021-11-03T10:55:08.000Z
2021-11-03T10:55:08.000Z
import os from django.http import HttpResponse # pip install django from django.views.decorators.csrf import csrf_exempt from dtintegrations import data_connector, provider @csrf_exempt def index(request): # Use the provider-specific validation function. payload = data_connector.HttpPush.from_provider( ...
25.318182
58
0.7307
1d5fa72ac2a76f145aa6779185ec14672a40b61e
1,382
py
Python
alipay/aop/api/domain/CreativeRefuseExtendInfo.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/CreativeRefuseExtendInfo.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/CreativeRefuseExtendInfo.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 CreativeRefuseExtendInfo(object): def __init__(self): self._image_url_list = None @property def image_url_list(self): return self._image_url_list @image_url_list.set...
28.204082
79
0.595514
1d5fc7c223cf7f382fcaf8b6176e8058dd1718f5
6,977
py
Python
src/sardana/sardanabase.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
src/sardana/sardanabase.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
src/sardana/sardanabase.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
32.602804
85
0.618031
1d5fd227846d427bbde90d359744cee5f03cccf6
3,373
py
Python
lib/galaxy/datatypes/converters/interval_to_fli.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
lib/galaxy/datatypes/converters/interval_to_fli.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
lib/galaxy/datatypes/converters/interval_to_fli.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
''' Creates a feature location index (FLI) for a given BED/GFF file. FLI index has the form:: [line_length] <symbol1_in_lowercase><tab><symbol1><tab><location> <symbol2_in_lowercase><tab><symbol2><tab><location> ... where location is formatted as: contig:start-end and symbols are sorted in lexig...
31.231481
107
0.522087
1d5ffe9568192b1bcb3a56c678e2ec636805279e
1,357
py
Python
scandeval/benchmarks/__init__.py
NbAiLab/ScandEval
59eb1902a1880d7483d48a4ee213bbec0e2eb71a
[ "MIT" ]
10
2021-07-21T10:47:42.000Z
2022-03-03T13:45:25.000Z
scandeval/benchmarks/__init__.py
NbAiLab/ScandEval
59eb1902a1880d7483d48a4ee213bbec0e2eb71a
[ "MIT" ]
28
2021-07-29T12:21:15.000Z
2022-03-09T12:46:49.000Z
scandeval/benchmarks/__init__.py
NbAiLab/ScandEval
59eb1902a1880d7483d48a4ee213bbec0e2eb71a
[ "MIT" ]
4
2022-01-17T12:11:58.000Z
2022-03-14T18:42:01.000Z
from .dane import DaneBenchmark # noqa from .ddt_pos import DdtPosBenchmark # noqa from .ddt_dep import DdtDepBenchmark # noqa from .angry_tweets import AngryTweetsBenchmark # noqa from .twitter_sent import TwitterSentBenchmark # noqa from .europarl import EuroparlBenchmark # noqa from .lcc import LccBenchmark #...
45.233333
54
0.808401
1d603029e4a7ac731b1e134f1be72345c31f3401
6,895
py
Python
jina/logging/logger.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
jina/logging/logger.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
jina/logging/logger.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
import logging import logging.handlers import os import platform import sys from typing import Optional from . import formatter from .. import __uptime__, __resources_path__ from ..enums import LogVerbosity from ..jaml import JAML class SysLogHandlerWrapper(logging.handlers.SysLogHandler): """ Override the p...
33.309179
119
0.571284
1d605bba8e7ecb8f02040cf284e91217b5471118
2,436
bzl
Python
closure/private/files_equal_test.bzl
x1ddos/rules_closure
6e0810ca7b67a7ffffa435bc1a53f8587f2aca3c
[ "Apache-2.0" ]
3
2021-04-18T07:58:53.000Z
2021-11-17T10:59:40.000Z
closure/private/files_equal_test.bzl
x1ddos/rules_closure
6e0810ca7b67a7ffffa435bc1a53f8587f2aca3c
[ "Apache-2.0" ]
null
null
null
closure/private/files_equal_test.bzl
x1ddos/rules_closure
6e0810ca7b67a7ffffa435bc1a53f8587f2aca3c
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The Closure Rules 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 appli...
36.358209
74
0.570197
1d60735df41df81f55351aded32f45addedec857
3,399
py
Python
test_project/settings.py
ninemoreminutes/django-crum
9478f38726dc9dd3e11c40e56a5b5694c221550b
[ "BSD-3-Clause" ]
68
2015-02-09T18:15:02.000Z
2022-03-15T06:22:35.000Z
test_project/settings.py
ninemoreminutes/django-crum
9478f38726dc9dd3e11c40e56a5b5694c221550b
[ "BSD-3-Clause" ]
17
2016-06-11T17:57:25.000Z
2022-02-10T07:05:39.000Z
test_project/settings.py
ninemoreminutes/django-crum
9478f38726dc9dd3e11c40e56a5b5694c221550b
[ "BSD-3-Clause" ]
7
2015-07-09T13:37:40.000Z
2022-03-28T15:16:46.000Z
# Python import os # Absolute path to the directory containing this Django project. BASE_DIR = os.path.abspath(os.path.dirname(__file__)) DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'test_project.sqlite3'),...
23.441379
70
0.59135
1d609ca30186b1a55af418b066d6b5cae5557d3f
4,946
py
Python
src/gnn_make_static_grid.py
qiq208/traffic4cast_graph_ens
0608d9839fd1a69ea3e138ab8730a47ee5cbcd75
[ "Apache-2.0" ]
2
2020-12-17T05:28:29.000Z
2021-02-07T15:33:50.000Z
src/gnn_make_static_grid.py
qiq208/traffic4cast_graph_ens
0608d9839fd1a69ea3e138ab8730a47ee5cbcd75
[ "Apache-2.0" ]
1
2021-02-22T03:43:16.000Z
2021-02-25T02:05:26.000Z
src/gnn_make_static_grid.py
qiq208/traffic4cast_graph_ens
0608d9839fd1a69ea3e138ab8730a47ee5cbcd75
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import h5py import os import logging from pathlib import Path from numba import jit #@jit() # Set "nopython" mode for best performance, equivalent to @njit def get_road_network(dir, image_size, testing, data_type): grid = np.zeros(image_size) i=0 tot = len(os.listdir(...
44.160714
167
0.645977
1d60bfee1671defc9f8ed6fe9e994e787408ac0f
2,106
py
Python
gps303/opencellid.py
crosser/gsm303
c09808cddcddadbe7af392337977707ac27355e9
[ "MIT" ]
null
null
null
gps303/opencellid.py
crosser/gsm303
c09808cddcddadbe7af392337977707ac27355e9
[ "MIT" ]
null
null
null
gps303/opencellid.py
crosser/gsm303
c09808cddcddadbe7af392337977707ac27355e9
[ "MIT" ]
null
null
null
""" Lookaside backend to query local opencellid database """ from sqlite3 import connect from typing import Any, Dict, List, Tuple __all__ = "init", "lookup" ldb = None def init(conf: Dict[str, Any]) -> None: global ldb ldb = connect(conf["opencellid"]["dbfn"]) def lookup( mcc: int, mnc: int, gsm_cel...
28.849315
76
0.560304
1d60cf293f716b14e016e8551d8a8c63614dc1de
5,899
py
Python
tensorflow/tensorboard/plugins/debugger/plugin.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
44
2017-01-26T11:39:36.000Z
2019-06-28T10:03:19.000Z
tensorflow/tensorboard/plugins/debugger/plugin.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
5
2017-01-31T00:32:02.000Z
2017-12-17T14:34:17.000Z
tensorflow/tensorboard/plugins/debugger/plugin.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
10
2017-03-27T04:15:07.000Z
2018-07-09T15:03:03.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.113095
80
0.701814
1d60f2f2678c6e99d80da291b84fc14bffd0354a
12,933
py
Python
src/shape.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
null
null
null
src/shape.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
14
2020-09-30T21:16:46.000Z
2021-11-08T18:54:34.000Z
src/shape.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
1
2020-09-17T12:48:57.000Z
2020-09-17T12:48:57.000Z
# This work is based on original code developed and copyrighted by TNO 2020. # Subsequent contributions are licensed to you by the developers of such code and are # made available to the Project under one or several contributor license agreements. # # This work is licensed to you under the Apache License, Versi...
40.040248
119
0.633728
1d60f7a97eb10afca08f65099fc7adfd6199e752
1,880
py
Python
regparser/grammar/terms.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
26
2016-06-04T20:48:09.000Z
2021-07-28T18:13:30.000Z
regparser/grammar/terms.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
146
2016-04-06T19:07:54.000Z
2022-01-02T20:09:53.000Z
regparser/grammar/terms.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
28
2016-04-09T20:40:48.000Z
2021-05-08T17:52:59.000Z
# -*- coding: utf-8 -*- from pyparsing import (LineStart, Literal, OneOrMore, Optional, Regex, SkipTo, Suppress, Word, ZeroOrMore, srange) from regparser.grammar import atomic, unified from regparser.grammar.utils import (DocLiteral, Marker, QuickSearchable, ...
35.471698
78
0.606915
1d60fbe45cadd469ca111dfa0275bb78737ae219
727
py
Python
mapentity/management/commands/update_permissions_mapentity.py
makinacorpus/django-mapentity
69a53fb8a676a9d4f6173b77fc09f99d38c4795e
[ "BSD-3-Clause" ]
26
2015-01-12T13:22:40.000Z
2022-03-07T16:50:52.000Z
mapentity/management/commands/update_permissions_mapentity.py
makinacorpus/django-mapentity
69a53fb8a676a9d4f6173b77fc09f99d38c4795e
[ "BSD-3-Clause" ]
94
2015-01-21T16:20:47.000Z
2022-03-24T13:44:56.000Z
mapentity/management/commands/update_permissions_mapentity.py
makinacorpus/django-mapentity
69a53fb8a676a9d4f6173b77fc09f99d38c4795e
[ "BSD-3-Clause" ]
13
2015-01-22T07:11:15.000Z
2019-10-28T02:07:48.000Z
from importlib import import_module import logging from django.conf import settings from django.core.management.base import BaseCommand from mapentity.registry import create_mapentity_model_permissions, registry logger = logging.getLogger(__name__) class Command(BaseCommand): help = "Create MapEntity models p...
26.925926
75
0.740028
1d611486cf73c071d2e40220030d19de165ca7b5
4,571
py
Python
leetcode/2-medium/3-treegraph/3-buildtree/construct_tree.py
ai7/study
be490336dc70ade62a8ff8d7866af7ac52bef4c1
[ "MIT" ]
null
null
null
leetcode/2-medium/3-treegraph/3-buildtree/construct_tree.py
ai7/study
be490336dc70ade62a8ff8d7866af7ac52bef4c1
[ "MIT" ]
null
null
null
leetcode/2-medium/3-treegraph/3-buildtree/construct_tree.py
ai7/study
be490336dc70ade62a8ff8d7866af7ac52bef4c1
[ "MIT" ]
null
null
null
# https://leetcode.com/explore/interview/card/top-interview-questions-medium/108/trees-and-graphs/788/ # https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/description/ # Construct Binary Tree from Preorder and Inorder Traversal # # Given preorder and inorder traversal of a tree, c...
36.568
102
0.648873
1d61215e3f987476540881cafccd9efb08854995
1,640
py
Python
Projective-Geometry/bergar/com.bergar.simonsen.homography/tools/Calc.py
tonybeltramelli/Graphics-And-Vision
a1dbeada8e907b119ecce1fe421ae91e64ff3371
[ "Apache-2.0" ]
12
2017-05-26T12:04:38.000Z
2021-07-11T04:42:19.000Z
Projective-Geometry/bergar/com.bergar.simonsen.homography/tools/Calc.py
tonybeltramelli/Graphics-And-Vision
a1dbeada8e907b119ecce1fe421ae91e64ff3371
[ "Apache-2.0" ]
null
null
null
Projective-Geometry/bergar/com.bergar.simonsen.homography/tools/Calc.py
tonybeltramelli/Graphics-And-Vision
a1dbeada8e907b119ecce1fe421ae91e64ff3371
[ "Apache-2.0" ]
4
2017-05-09T08:26:44.000Z
2018-04-23T03:16:01.000Z
__author__ = 'bs' import numpy as np import cv2 def getRectangleLowerCenter(pt1, pt2): deltax = abs(pt2[0] - pt1[0]) centerx = pt1[0] + deltax / 2 return centerx, pt2[1] def angle_cos(p0, p1, p2): d1, d2 = p0-p1, p2-p1 return abs( np.dot(d1, d2) / np.sqrt( np.dot(d1, d1)*np.dot(d2, d2) ) ) def ...
34.166667
122
0.612805
1d6155fcd6f577da93b66ae4ed3b999163e7f3de
3,628
py
Python
onadata/apps/logger/management/commands/create_image_thumbnails.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/logger/management/commands/create_image_thumbnails.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/logger/management/commands/create_image_thumbnails.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 fileencoding=utf-8 # coding: utf-8 from __future__ import unicode_literals, print_function, division, absolute_import from optparse import make_option from django.contrib.auth.models import User from django.core.management.base import BaseCommand, CommandError from d...
43.710843
82
0.570838
1d6158680bb005403ce7d2583ff37a5fc2273f63
1,406
py
Python
suiron/utils/file_finder.py
3keepmovingforward3/suiron
8e51e186ae83a412eb09c732a8edd1e3c15ac0bf
[ "MIT" ]
800
2016-09-15T05:58:52.000Z
2022-03-31T16:48:52.000Z
suiron/utils/file_finder.py
3keepmovingforward3/suiron
8e51e186ae83a412eb09c732a8edd1e3c15ac0bf
[ "MIT" ]
6
2016-10-11T18:11:44.000Z
2021-01-17T14:57:15.000Z
suiron/utils/file_finder.py
3keepmovingforward3/suiron
8e51e186ae83a412eb09c732a8edd1e3c15ac0bf
[ "MIT" ]
101
2016-10-04T01:56:35.000Z
2021-09-13T04:00:15.000Z
import os # Check if folder exists def check_folder_exists(folder='data'): if not os.path.exists(folder): os.mkdir(folder) # Get numeric number for new file (e.g. output_{x}) def get_iter_no(folder='data', filename='output_', extension='.csv'): iter_name = 0 while os.path.exists(os.path.join(folde...
42.606061
99
0.738976
1d615c4c4b53931aac3f37b54eb5e64892508eef
18,060
py
Python
qnarre.old/nn/eval/squad.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre.old/nn/eval/squad.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre.old/nn/eval/squad.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2019 Quantapix 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 l...
35.481336
87
0.606977
1d616cf3aa89323fe37f63d84caf41680c8a5db8
1,243
py
Python
setup.py
tbreitenfeldt/accessible_output2
0f0b34993fb4b271f88b5cb2581d194704d1c70f
[ "MIT" ]
7
2019-11-08T09:18:06.000Z
2021-11-15T18:38:45.000Z
setup.py
wafiqtaher/accessible_output2
e2b3039d9ac176b0ebdaf2480c2b85f04b2b5d37
[ "MIT" ]
9
2020-02-03T22:29:39.000Z
2022-03-05T23:54:53.000Z
setup.py
wafiqtaher/accessible_output2
e2b3039d9ac176b0ebdaf2480c2b85f04b2b5d37
[ "MIT" ]
11
2019-06-19T21:19:46.000Z
2022-02-15T11:21:03.000Z
from setuptools import setup, find_packages import io __doc__ = ( """Library to provide speech and braille output to a variety of different screen readers and other accessibility solutions.""" ) with io.open("readme.rst", encoding="UTF8") as readme: long_description = readme.read() setup( name...
33.594595
131
0.637168
1d6190599708bff97d0ee8c308f689128f7ccf10
448
py
Python
tolqc-api/app/main/model/tolqc_centre.py
sanger-tol/tolqc
6ef535a0eb0028c5d9270ff18d95d38c6656cbdd
[ "MIT" ]
null
null
null
tolqc-api/app/main/model/tolqc_centre.py
sanger-tol/tolqc
6ef535a0eb0028c5d9270ff18d95d38c6656cbdd
[ "MIT" ]
null
null
null
tolqc-api/app/main/model/tolqc_centre.py
sanger-tol/tolqc
6ef535a0eb0028c5d9270ff18d95d38c6656cbdd
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Genome Research Ltd. # # SPDX-License-Identifier: MIT from .base import Base, db from .base import setup_model @setup_model class TolqcCentre(Base): __tablename__ = "centre" class Meta: type_ = 'centres' id = db.Column(db.Integer(), primary_key=True) name = db...
22.4
62
0.694196
1d61980a1d4b4eac48a921a53b9bab6374e01f69
5,201
py
Python
modin/engines/ray/pandas_on_ray/io.py
manesioz/modin
637e148dba354825307f3f131fa2185ad5a6b54a
[ "Apache-2.0" ]
null
null
null
modin/engines/ray/pandas_on_ray/io.py
manesioz/modin
637e148dba354825307f3f131fa2185ad5a6b54a
[ "Apache-2.0" ]
null
null
null
modin/engines/ray/pandas_on_ray/io.py
manesioz/modin
637e148dba354825307f3f131fa2185ad5a6b54a
[ "Apache-2.0" ]
null
null
null
import pandas from modin.backends.pandas.query_compiler import PandasQueryCompiler from modin.engines.ray.generic.io import RayIO from modin.engines.base.io import CSVReader, JSONReader from modin.backends.pandas.parsers import ( PandasCSVParser, PandasJSONParser, _split_result_for_readers, ) from modin.en...
39.70229
89
0.686022
1d61988e0b954189b0d5444f16dc2c351a493bb7
453
py
Python
catkin_ws/build/simple_applications/catkin_generated/pkg.installspace.context.pc.py
a-yildiz/ROS-Simple-Sample-Packages
eb6b18adcd1fe26e2b5e644c42922e8102867cd9
[ "MIT" ]
1
2021-09-19T07:51:23.000Z
2021-09-19T07:51:23.000Z
catkin_ws/build/simple_applications/catkin_generated/pkg.installspace.context.pc.py
a-yildiz/ROS-Simple-Sample-Packages
eb6b18adcd1fe26e2b5e644c42922e8102867cd9
[ "MIT" ]
null
null
null
catkin_ws/build/simple_applications/catkin_generated/pkg.installspace.context.pc.py
a-yildiz/ROS-Simple-Sample-Packages
eb6b18adcd1fe26e2b5e644c42922e8102867cd9
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else [] PROJECT_CATKIN_DEPENDS = "message_runtime".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJ...
50.333333
101
0.735099
1d61c998e947325eabf8ee05dbbc09162ce82fe4
14,313
py
Python
cinder/backup/drivers/google.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/backup/drivers/google.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/backup/drivers/google.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2012 Hewlett-Packard Development Company, L.P. # Copyright (c) 2014 TrilioData, Inc # Copyright (c) 2015 EMC Corporation # Copyright (C) 2015 Kevin Fox <kevin@efox.cc> # Copyright (C) 2015 Tom Barron <tpb@dyncloud.net> # Copyright (C) 2016 Vedams Inc. # Copyright (C) 2016 Google Inc. # All Rights Reserv...
38.683784
79
0.605813
1d61cd819b4eba2e0eb882d3ae4892df2a3e3157
3,778
py
Python
pylibs/unittests/test_signals.py
sbeyn/ot-ns
94d577176ca4d4579c4e45fed52d847bebe80117
[ "BSD-3-Clause" ]
2
2021-03-31T21:16:57.000Z
2021-11-08T11:18:27.000Z
pylibs/unittests/test_signals.py
sbeyn/ot-ns
94d577176ca4d4579c4e45fed52d847bebe80117
[ "BSD-3-Clause" ]
null
null
null
pylibs/unittests/test_signals.py
sbeyn/ot-ns
94d577176ca4d4579c4e45fed52d847bebe80117
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2020, The OTNS Authors. # 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, th...
34.66055
77
0.698518
1d61ce119f507fa69320140b97c376cee28181bc
62,428
py
Python
sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/models/_models.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/models/_models.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/models/_models.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
38.229026
134
0.652271
1d61d105f1f20c4806eeaa08d9d56b1ee0451d53
1,608
py
Python
src/Mail.py
Vamshi399/Attendance_Automation_System
e91f86503621eb54e664af9e84bfd49ca7059c52
[ "Apache-2.0" ]
null
null
null
src/Mail.py
Vamshi399/Attendance_Automation_System
e91f86503621eb54e664af9e84bfd49ca7059c52
[ "Apache-2.0" ]
null
null
null
src/Mail.py
Vamshi399/Attendance_Automation_System
e91f86503621eb54e664af9e84bfd49ca7059c52
[ "Apache-2.0" ]
null
null
null
import os,sys import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email import encoders from datetime import datetime def mailsend(toaddr,msgbody): fromadrs="aasbychargers@gmail.com" password = "team2chargers" msg = M...
26.360656
86
0.58209
1d61f16539ff15327cda29bdd41915f2a3755900
10,780
py
Python
components/tiles.py
mavroskardia/oworld
840421818b04c0d7242881519f83acf348efbb5e
[ "MIT" ]
null
null
null
components/tiles.py
mavroskardia/oworld
840421818b04c0d7242881519f83acf348efbb5e
[ "MIT" ]
null
null
null
components/tiles.py
mavroskardia/oworld
840421818b04c0d7242881519f83acf348efbb5e
[ "MIT" ]
null
null
null
# tiles.py # All classes related to the organization and display of tiles. # author: Andrew Martin (2006) # # TODO: # [] Comment all classes # [] Rename members that don't adhere to style guidelines # [] Review algorithms to determine if there is a more pythonic way # [] Review classes invluded in module fo...
38.5
137
0.58525
1d61fc8119c3e8bd9f58a03d7b8504d6c4670c74
2,873
py
Python
plugins/houdini/publish/collect_instances.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
plugins/houdini/publish/collect_instances.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
plugins/houdini/publish/collect_instances.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import pyblish.api class CollectInstances(pyblish.api.ContextPlugin): """Gather instances by all node in out graph and pre-defined attributes This collector takes into account assets that are associated with an specific node and marked with a unique identifier; Identifier: id (str): "pyblis...
29.316327
79
0.577445
1d6217d9ec5ab9bf74229c24bb797169717ab91b
235
py
Python
dskc/clean/topic_modeling/io.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
dskc/clean/topic_modeling/io.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
dskc/clean/topic_modeling/io.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
import pickle def save_model(model,path): print("saving model... ", end="") pickle.dump(model, open(path, 'wb')) def load_model(path): try: return pickle.load(open(path, 'rb')) except: return None
14.6875
44
0.595745
1d6246f5c96b8338c148580c28f95fbb970e5707
5,155
py
Python
cnn2d/skp/etl/3_extract_face_rois.py
jphdotam/DFDC
b08c31781406e303394642c2af1ab59222115683
[ "MIT" ]
48
2020-06-12T15:46:14.000Z
2022-03-19T16:02:05.000Z
cnn2d/skp/etl/3_extract_face_rois.py
jphdotam/DFDC
b08c31781406e303394642c2af1ab59222115683
[ "MIT" ]
2
2020-11-11T10:40:49.000Z
2020-11-16T02:07:23.000Z
cnn2d/skp/etl/3_extract_face_rois.py
jphdotam/DFDC
b08c31781406e303394642c2af1ab59222115683
[ "MIT" ]
17
2020-06-13T12:25:42.000Z
2021-11-22T14:49:26.000Z
import argparse def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('mode', type=str) parser.add_argument('--start', type=int, default=0) parser.add_argument('--end', type=int, default=-1) parser.add_argument('--save-failures', type=str, default='./bad_videos.txt') return ...
37.086331
144
0.579243
1d624e6504c375937fd2dcd70ccad7efffcaa33a
3,767
py
Python
carla/recourse_methods/catalog/clue/library/clue_ml/src/radam.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
140
2021-08-03T21:53:32.000Z
2022-03-20T08:52:02.000Z
carla/recourse_methods/catalog/clue/library/clue_ml/src/radam.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
54
2021-03-07T18:22:16.000Z
2021-08-03T12:06:31.000Z
carla/recourse_methods/catalog/clue/library/clue_ml/src/radam.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
16
2021-08-23T12:14:58.000Z
2022-03-01T00:52:58.000Z
import math import torch from torch.optim.optimizer import Optimizer class RAdam(Optimizer): def __init__(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8, weight_decay=0): if not 0.0 <= lr: raise ValueError("Invalid learning rate: {}".format(lr)) if not 0.0 <= eps: rai...
38.835052
87
0.477303
1d6256ef59a9a52f90a4efbc8a2db826be1c7170
1,870
py
Python
common/logger.py
ForestMars/Coda.to
55e99a8fb1867738e0bb2292461fa2bf3a7770f7
[ "DOC", "MIT" ]
null
null
null
common/logger.py
ForestMars/Coda.to
55e99a8fb1867738e0bb2292461fa2bf3a7770f7
[ "DOC", "MIT" ]
null
null
null
common/logger.py
ForestMars/Coda.to
55e99a8fb1867738e0bb2292461fa2bf3a7770f7
[ "DOC", "MIT" ]
null
null
null
# lib/logger.py - Logging class and functions for Codato. __version__ = '0.1' __all__ = ['Log', 'LOG_LEVEL', 'LOG_DIR', 'LOGFILE_NAME'] #import inspect import logging import traceback # Sensible defaults. LOG_LEVEL = 'DEBUG' LOG_DIR = 'logs/' LOGFILE_NAME = 'debug.log' logger = logging.getLogger(__name__) logger.se...
25.27027
165
0.660963
1d62c27983ca188b96cf872f4765101eead588ed
16,282
py
Python
src/sardana/taurus/qt/qtgui/extra_macroexecutor/macroparameterseditor/macroparameterseditor.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
src/sardana/taurus/qt/qtgui/extra_macroexecutor/macroparameterseditor/macroparameterseditor.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
src/sardana/taurus/qt/qtgui/extra_macroexecutor/macroparameterseditor/macroparameterseditor.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
39.712195
110
0.611718
1d62dca45b2e8595c2633cfce8e89b926d713870
1,502
py
Python
size_test.py
diamondgloves/im2latex
8ef3378cb289846a5d85ce60785e11c6c5291700
[ "Apache-2.0" ]
1
2020-01-03T15:30:32.000Z
2020-01-03T15:30:32.000Z
size_test.py
diamondgloves/im2latex
8ef3378cb289846a5d85ce60785e11c6c5291700
[ "Apache-2.0" ]
null
null
null
size_test.py
diamondgloves/im2latex
8ef3378cb289846a5d85ce60785e11c6c5291700
[ "Apache-2.0" ]
null
null
null
from scipy.misc import imread from model.utils.image import greyscale from PIL import Image import numpy as np crop = 'sample_cropped.png' proc = 'sample_processed.png' small = 'small.png' medium = 'medium.png' big = 'big.png' mac = 'mac_crop.png' tmp = 'sample.png' # img = imread(tmp) # print(img.size//img[:,:,0].s...
32.652174
90
0.608522
1d62ebefe1758f88385d7c154e9e916778aeb20e
39,978
py
Python
test/run_test.py
ZIZUN/pytorch
f565167fbdf607f3b0b95f077b11f2f78716c217
[ "Intel" ]
183
2018-04-06T21:10:36.000Z
2022-03-30T15:05:24.000Z
test/run_test.py
ZIZUN/pytorch
f565167fbdf607f3b0b95f077b11f2f78716c217
[ "Intel" ]
631
2018-06-05T16:59:11.000Z
2022-03-31T16:26:57.000Z
test/run_test.py
ZIZUN/pytorch
f565167fbdf607f3b0b95f077b11f2f78716c217
[ "Intel" ]
58
2018-06-05T16:40:18.000Z
2022-03-16T15:37:29.000Z
#!/usr/bin/env python3 import argparse import copy from datetime import datetime from distutils.util import strtobool import functools import os import pathlib import shutil import signal import subprocess import sys import tempfile import torch from torch.utils import cpp_extension from torch.testing._internal.commo...
37.786389
118
0.661964
1d6322d56c4417b7f9aafcc804b1ff2ddd286017
51,942
py
Python
python_modules/dagster/dagster/core/storage/event_log/sql_event_log.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/storage/event_log/sql_event_log.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/storage/event_log/sql_event_log.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import logging from abc import abstractmethod from collections import OrderedDict from datetime import datetime from typing import Dict, Iterable, List, Mapping, Optional, Sequence, cast import pendulum import sqlalchemy as db from dagster import check, seven from dagster.core.assets import AssetDetails from dagster....
42.856436
121
0.612452
1d632c1fe4a7e644c40649b553a24f25dcf9b843
2,566
py
Python
src/zenml/config/global_config.py
keppy/zenml
a2671d66201abfaf11894ef9010d7bb8619a63e7
[ "Apache-2.0" ]
1
2022-03-10T18:24:53.000Z
2022-03-10T18:24:53.000Z
src/zenml/config/global_config.py
keppy/zenml
a2671d66201abfaf11894ef9010d7bb8619a63e7
[ "Apache-2.0" ]
null
null
null
src/zenml/config/global_config.py
keppy/zenml
a2671d66201abfaf11894ef9010d7bb8619a63e7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) ZenML GmbH 2020. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.675676
76
0.696804
1d632f4231e582b9a0cd636d540dbbc65bb60aad
8,649
py
Python
harstorage/controllers/superposed.py
dominicmcginnis/harstorage
d8680268fbe8b2094af567bef372c3f102cde93f
[ "Apache-2.0" ]
null
null
null
harstorage/controllers/superposed.py
dominicmcginnis/harstorage
d8680268fbe8b2094af567bef372c3f102cde93f
[ "Apache-2.0" ]
null
null
null
harstorage/controllers/superposed.py
dominicmcginnis/harstorage
d8680268fbe8b2094af567bef372c3f102cde93f
[ "Apache-2.0" ]
null
null
null
from pylons import request, tmpl_context as c from pylons import config from pylons.decorators.rest import restrict from harstorage.lib.base import BaseController, render from harstorage.lib.MongoHandler import MongoDB from harstorage.lib.Math import Histogram, Aggregator class SuperposedController(BaseController): ...
32.885932
106
0.511967
1d6351a3b177a6923185dfead4dcc41a07b6a45d
6,372
py
Python
magenta/models/polyamp/timbre_dataset_util.py
Jss7268/magenta
10e0b2c50baaa01a9c942ed3334b5b2cca761bef
[ "Apache-2.0" ]
null
null
null
magenta/models/polyamp/timbre_dataset_util.py
Jss7268/magenta
10e0b2c50baaa01a9c942ed3334b5b2cca761bef
[ "Apache-2.0" ]
1
2020-03-01T16:02:10.000Z
2020-03-01T16:02:10.000Z
magenta/models/polyamp/timbre_dataset_util.py
Jss7268/magenta
10e0b2c50baaa01a9c942ed3334b5b2cca761bef
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Magenta Authors. # Modifications Copyright 2020 Jack Spencer Smith. # # 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 # #...
37.263158
95
0.68189
1d63535fb9eabb34b93b1fd7d13d899f6edd8141
821
py
Python
python/day4.py
karlwnw/adventofcode2019
7a01a0dd9c3f93ae3f9aa123a91641a37289eb7a
[ "MIT" ]
2
2020-01-02T12:59:44.000Z
2020-01-04T19:21:31.000Z
python/day4.py
karlwnw/adventofcode2019
7a01a0dd9c3f93ae3f9aa123a91641a37289eb7a
[ "MIT" ]
null
null
null
python/day4.py
karlwnw/adventofcode2019
7a01a0dd9c3f93ae3f9aa123a91641a37289eb7a
[ "MIT" ]
null
null
null
from collections import defaultdict start, end = 357253, 892942 num_digits = 6 def solve(start, end, strict=False): length = end - start count = 0 for i in range(length): number = start + i previous = number % 10 consecutives = defaultdict(int) for j in range(1, num_digit...
22.189189
88
0.53715
1d6361ab73ca8e8fe1024d1c519949706205fb67
9,749
py
Python
common/_rest_qa_api/response_validator.py
albalabkin/PyCats
b3fa09e116f38cebbb66faef16785e2795d80aa9
[ "Apache-2.0" ]
null
null
null
common/_rest_qa_api/response_validator.py
albalabkin/PyCats
b3fa09e116f38cebbb66faef16785e2795d80aa9
[ "Apache-2.0" ]
null
null
null
common/_rest_qa_api/response_validator.py
albalabkin/PyCats
b3fa09e116f38cebbb66faef16785e2795d80aa9
[ "Apache-2.0" ]
null
null
null
import inspect import logging from copy import copy from typing import TYPE_CHECKING, Union from common.config_parser.config_dto import APIValidationDTO from common._rest_qa_api.rest_checkers import BaseRESTCheckers from common._rest_qa_api.rest_utils import SKIP if TYPE_CHECKING: # to avoid import loop only for ...
47.556098
120
0.644887
1d636551e72b84069233fdb71e4c75c21635307d
6,449
py
Python
alipay/aop/api/domain/AlipayUserApplepayProvisioningbundleQueryModel.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/AlipayUserApplepayProvisioningbundleQueryModel.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/AlipayUserApplepayProvisioningbundleQueryModel.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 * from alipay.aop.api.domain.FraudData import FraudData class AlipayUserApplepayProvisioningbundleQueryModel(object): def __init__(self): self._encryption_cert_chain = None self._encrypti...
38.849398
111
0.648163
1d639311c173590ff9d96e0c13a9d9521e1e2b59
3,755
py
Python
tests/test_docs/test_docs_skill.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
tests/test_docs/test_docs_skill.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
tests/test_docs/test_docs_skill.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2020 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
36.456311
124
0.623702
1d63e3ba5c00008b9787bc3d8c057261d39e8576
44,618
py
Python
model/utils/net_utils.py
ZhangHanbo/Visual-Manipulation-Relationship-Network-Pytorch
9dd24947db318f6e404918d4758f1d824eea3748
[ "MIT" ]
26
2019-10-31T08:21:46.000Z
2022-03-11T13:58:43.000Z
build/lib.linux-x86_64-3.5/model/utils/net_utils.py
moli1026/regrad
f66c38c00405b22cb746cc3f5c38d2b49f77d854
[ "MIT" ]
12
2019-11-07T09:12:50.000Z
2022-03-12T02:58:18.000Z
build/lib.linux-x86_64-3.5/model/utils/net_utils.py
moli1026/regrad
f66c38c00405b22cb746cc3f5c38d2b49f77d854
[ "MIT" ]
11
2019-10-30T08:44:47.000Z
2022-03-11T13:58:48.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np from model.utils.config import cfg from model.rpn.bbox_transform import bbox_transform_inv, clip_boxes from model.fcgn.bbox_transform_grasp import labels2points, grasp_decode from model.roi_layers...
39.172959
124
0.592496
1d63e7171c5fb5334949207743d06a061ff260ba
9,608
py
Python
src/simulator/network_simulator/sender.py
zxxia/RL-CC-Video
916d059ba15fa587c0101470aa608ea8a01b8305
[ "Apache-2.0" ]
null
null
null
src/simulator/network_simulator/sender.py
zxxia/RL-CC-Video
916d059ba15fa587c0101470aa608ea8a01b8305
[ "Apache-2.0" ]
null
null
null
src/simulator/network_simulator/sender.py
zxxia/RL-CC-Video
916d059ba15fa587c0101470aa608ea8a01b8305
[ "Apache-2.0" ]
null
null
null
from typing import List, TypeVar, Tuple from common import sender_obs from simulator.network_simulator import network, packet from simulator.network_simulator.constants import BITS_PER_BYTE, BYTES_PER_PACKET, EVENT_TYPE_SEND from simulator.network_simulator.app import Application class Sender: """Base class of s...
35.717472
103
0.610221
1d63fa95714e0fd28f0be2e512ecb7f29df49265
877
py
Python
csv_export_gsheets/utils/credentials.py
dlancer/csv-export-gsheets
ac7a3184bd55558468f89e309187fafab7dbeb1a
[ "BSD-3-Clause" ]
null
null
null
csv_export_gsheets/utils/credentials.py
dlancer/csv-export-gsheets
ac7a3184bd55558468f89e309187fafab7dbeb1a
[ "BSD-3-Clause" ]
3
2021-02-08T20:45:56.000Z
2021-06-01T23:30:20.000Z
csv_export_gsheets/utils/credentials.py
dlancer/csv-export-gsheets
ac7a3184bd55558468f89e309187fafab7dbeb1a
[ "BSD-3-Clause" ]
1
2019-03-08T09:28:07.000Z
2019-03-08T09:28:07.000Z
from oauth2client.service_account import ServiceAccountCredentials def load_credentials_from_json(credentials): """ Load Google Service Account key file from json :param credentials: path to json key file :return: credential object """ scope = ['https://spreadsheets.google.com/feeds', ...
31.321429
86
0.72634
1d645c0863129155259f5607d8e0e2a00106c3c4
3,376
py
Python
mspacman/realtime/buffer_.py
davidlu89/mspacman
ecb9addf63f56411bd7719c913ee6f673c4d9f17
[ "MIT" ]
3
2018-06-20T15:53:33.000Z
2020-05-10T18:16:39.000Z
mspacman/realtime/buffer_.py
SachsLab/mspacman
ecb9addf63f56411bd7719c913ee6f673c4d9f17
[ "MIT" ]
null
null
null
mspacman/realtime/buffer_.py
SachsLab/mspacman
ecb9addf63f56411bd7719c913ee6f673c4d9f17
[ "MIT" ]
null
null
null
import numpy as np # Authors : David C.C. Lu <davidlu89@gmail.com> # # License : BSD (3-clause) class Buffer(object): """ """ def __init__(self, nch=None, nsamp=None): self._nch = 1 if nch is None else nch self._nsamp = 2**10 if nsamp is None else nsamp self._dat = np.zeros((self.nc...
28.133333
79
0.558945
1d64911e0a27990e7b8145a8752f22c7fe4be7b5
12,397
py
Python
app/api/routes.py
soris-codes/resources_api
48130749370071255bfd9a4a98de2315505412ac
[ "MIT" ]
null
null
null
app/api/routes.py
soris-codes/resources_api
48130749370071255bfd9a4a98de2315505412ac
[ "MIT" ]
null
null
null
app/api/routes.py
soris-codes/resources_api
48130749370071255bfd9a4a98de2315505412ac
[ "MIT" ]
null
null
null
from flask import request, redirect from sqlalchemy import or_, func from algoliasearch.exceptions import AlgoliaUnreachableHostException, AlgoliaException from app.api import bp from app.api.auth import is_user_oc_member, authenticate from app.models import Language, Resource, Category, Key from app import Config, db,...
30.9925
88
0.667581
1d64b0a169b360e2390d37b511a20da4672a3295
12,583
py
Python
contrib/.venv/lib/python3.8/site-packages/bitcoinlib/config/config.py
jtatman/katersltc-client
7ea88bfa32e9bdce9bf8d434a8909a07b65412f7
[ "MIT" ]
null
null
null
contrib/.venv/lib/python3.8/site-packages/bitcoinlib/config/config.py
jtatman/katersltc-client
7ea88bfa32e9bdce9bf8d434a8909a07b65412f7
[ "MIT" ]
null
null
null
contrib/.venv/lib/python3.8/site-packages/bitcoinlib/config/config.py
jtatman/katersltc-client
7ea88bfa32e9bdce9bf8d434a8909a07b65412f7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # BitcoinLib - Python Cryptocurrency Library # CONFIG - Configuration settings # © 2019 March - 1200 Web Development <http://1200wd.com/> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # ...
39.569182
120
0.663276
1d64b8d5cd0ee92651182c672a7414f5e413abb7
36,961
py
Python
python/phonenumbers/phonenumbermatcher.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/phonenumbermatcher.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/phonenumbermatcher.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
null
null
null
"""Functionality to match phone numbers in a piece of text""" # Based on original Java code: # java/src/com/google/i18n/phonenumbers/PhoneNumberMatch.java # java/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java # Copyright (C) 2011 The Libphonenumber Authors # # Licensed under the Apache License, Ver...
48.189048
112
0.669435
1d64c3016c6a5401a2ade90177c3ad5aab6ae25f
176
py
Python
experiments/test_outgoing.py
edsu/us-legislators-social
b0ce979b842159d7def480a73bbcd160f10fa842
[ "CC0-1.0" ]
null
null
null
experiments/test_outgoing.py
edsu/us-legislators-social
b0ce979b842159d7def480a73bbcd160f10fa842
[ "CC0-1.0" ]
null
null
null
experiments/test_outgoing.py
edsu/us-legislators-social
b0ce979b842159d7def480a73bbcd160f10fa842
[ "CC0-1.0" ]
null
null
null
from outgoing import check_url def test_twitter(): assert check_url('https://twitter.com/repsusandavis') == False assert check_url('https://twitter.com/edsu') == True
29.333333
66
0.727273
1d64d38765900046069d38c66fb6334e6269d056
15,938
py
Python
asprin/src/program_parser/program_parser.py
potassco/asprin
42e296cdc70cacbbc4d699ef32ec903c83c8208a
[ "MIT" ]
16
2016-11-16T17:24:42.000Z
2022-01-08T16:19:46.000Z
asprin/src/program_parser/program_parser.py
potassco/asprin
42e296cdc70cacbbc4d699ef32ec903c83c8208a
[ "MIT" ]
10
2018-03-14T14:18:40.000Z
2022-01-21T13:24:06.000Z
asprin/src/program_parser/program_parser.py
potassco/asprin
42e296cdc70cacbbc4d699ef32ec903c83c8208a
[ "MIT" ]
4
2018-03-10T04:25:45.000Z
2020-10-20T09:43:08.000Z
# MIT License # # Copyright (c) 2017 Javier Romero # # 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, mer...
36.305239
81
0.610177
1d6502ad91c5580b499122a2900ededa22a3d417
7,086
py
Python
regolith/builders/reimbursementbuilder.py
MichaelTrumbull/regolith
881f543cfa7bbf80b38ed2b357209c5bc009a6af
[ "CC0-1.0" ]
7
2018-07-20T19:19:23.000Z
2022-02-02T20:48:15.000Z
regolith/builders/reimbursementbuilder.py
MichaelTrumbull/regolith
881f543cfa7bbf80b38ed2b357209c5bc009a6af
[ "CC0-1.0" ]
822
2017-11-06T21:54:58.000Z
2022-03-31T12:25:41.000Z
regolith/builders/reimbursementbuilder.py
MichaelTrumbull/regolith
881f543cfa7bbf80b38ed2b357209c5bc009a6af
[ "CC0-1.0" ]
43
2018-01-05T20:35:21.000Z
2022-03-24T00:13:03.000Z
"""Builder for Resumes.""" import os import openpyxl from regolith.builders.basebuilder import BuilderBase from regolith.dates import get_dates from regolith.sorters import position_key from regolith.tools import all_docs_from_collection, month_and_year, \ fuzzy_retrieval class ReimbursementBuilder(BuilderBase):...
41.928994
96
0.411375
1d651b3dae31ed84a31c07cb0274ff70e61ae7f4
1,668
py
Python
src/config.py
hvuhsg/yoyocoin
aad0f413479728dc4e0842447cf1910e5dff1418
[ "MIT" ]
11
2021-05-25T07:42:27.000Z
2022-01-03T07:46:38.000Z
src/config.py
hvuhsg/yoyocoin
aad0f413479728dc4e0842447cf1910e5dff1418
[ "MIT" ]
18
2021-05-25T17:42:46.000Z
2021-09-13T15:14:38.000Z
src/config.py
hvuhsg/yoyocoin
aad0f413479728dc4e0842447cf1910e5dff1418
[ "MIT" ]
5
2021-06-23T17:38:51.000Z
2022-03-03T12:40:53.000Z
import argparse from ecdsa.curves import SECP256k1 class Config: ENV_TYPE = "DEVELOPMENT " # "PRODUCTION" EXPOSE_API = False API_PORT = 6001 API_HOST = "0.0.0.0" IPFS_PORT = 5001 IPFS_HOST = "127.0.0.1" if ENV_TYPE == "PRODUCTION": IPFS_HOST = "ipfs-node" IS_TEST_NET = Tru...
28.758621
86
0.63729
1d6521b2cd218eacbc65b886e7b1c82685614be7
5,444
py
Python
salt/auth/pam.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
salt/auth/pam.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
salt/auth/pam.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # The pam components have been modified to be salty and have been taken from # the pam module under this licence: # (c) 2007 Chris AtLee <chris@atlee.ca> # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license.php ''' Authenticate against PAM Provides an authenticate ...
26.427184
86
0.664401
1d6526090ac659b9d2bf5c5787d707d470f0c84e
4,725
py
Python
cloudmesh/config/openstack_grizzly_cloud.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
cloudmesh/config/openstack_grizzly_cloud.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
cloudmesh/config/openstack_grizzly_cloud.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import sys from cloudmesh.config.cloudmesh_cloud import cloudmesh_cloud try: from keystoneclient.v2_0 import client except: print("ERROR: keystoneclient is not installed") print(" Please see http://docs.openstack.org/developer/python-keystoneclient/") sys.e...
40.384615
111
0.617354
1d6536c108213930a3f100d552da6dd672bb3a65
5,116
py
Python
tests/test_topic_model.py
tbsexton/textacy
964614213c7261f91f09c106334269388d45f790
[ "Apache-2.0" ]
1
2021-11-03T19:11:11.000Z
2021-11-03T19:11:11.000Z
tests/test_topic_model.py
tbsexton/textacy
964614213c7261f91f09c106334269388d45f790
[ "Apache-2.0" ]
null
null
null
tests/test_topic_model.py
tbsexton/textacy
964614213c7261f91f09c106334269388d45f790
[ "Apache-2.0" ]
1
2022-02-20T14:23:03.000Z
2022-02-20T14:23:03.000Z
import numpy as np import pytest from sklearn.decomposition import NMF, LatentDirichletAllocation, TruncatedSVD from textacy import Corpus from textacy.tm import TopicModel from textacy.vsm import Vectorizer @pytest.fixture(scope="module") def term_lists(): texts = [ "Mary had a little lamb. Its fleece w...
30.452381
88
0.677287
1d655a2b96aee14b6d7436a610c8d3877c04e7a4
6,146
py
Python
oscar/lib/python2.7/site-packages/prompt_toolkit/eventloop/select.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/prompt_toolkit/eventloop/select.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/prompt_toolkit/eventloop/select.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
""" Selectors for the Posix event loop. """ from __future__ import unicode_literals, absolute_import import sys import abc import errno import select import six __all__ = ( 'AutoSelector', 'PollSelector', 'SelectSelector', 'Selector', 'fd_to_int', ) def fd_to_int(fd): assert...
28.322581
81
0.581354
1d657f31e443049bc0316f02f5694e49ad80f97f
9,891
py
Python
experiments/sasha/awac_exps/goal_reaching/combined_obj_sweep.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/sasha/awac_exps/goal_reaching/combined_obj_sweep.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/sasha/awac_exps/goal_reaching/combined_obj_sweep.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from rlkit.demos.source.dict_to_mdp_path_loader import EncoderDictToMDPPathLoader from rlkit.launchers.experiments.ashvin.awac_rig import awac_rig_experiment from rlkit.launchers.launcher_util import run_experiment from rlkit.launchers.arglauncher import run_variants from rlkit.t...
37.465909
111
0.615408
1d659a08ad50d74de43164cec7fb89ac27ea81c2
3,628
py
Python
tests/_display/test_flip_x_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_display/test_flip_x_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_display/test_flip_x_interface.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
from random import randint from retrying import retry import apysc as ap from apysc._display.flip_x_interface import FlipXInterface from apysc._expression import expression_data_util class _TestInterface(FlipXInterface): def __init__(self) -> None: """ The class for the testing of ...
40.311111
78
0.687982
1d65a0d6b1dacc09b773832b10a9ab993d67c75c
3,703
py
Python
DryCase.py
Vikalp86/soil-moisture-profile
fb18e3fdca50be1470097aa33ceeb270a100f96c
[ "MIT" ]
null
null
null
DryCase.py
Vikalp86/soil-moisture-profile
fb18e3fdca50be1470097aa33ceeb270a100f96c
[ "MIT" ]
null
null
null
DryCase.py
Vikalp86/soil-moisture-profile
fb18e3fdca50be1470097aa33ceeb270a100f96c
[ "MIT" ]
null
null
null
""" Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://opensource.org/licenses/MIT THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTI...
30.603306
155
0.557656
1d65b64a6624e59b0d207eebd28f833bbf4ca3f1
1,888
py
Python
reporting_scripts/navigational_events_completers.py
andyzsf/edx_data_research
07a587edb1dc4797f116bfeb60ffecbf4ce5bd7a
[ "MIT" ]
null
null
null
reporting_scripts/navigational_events_completers.py
andyzsf/edx_data_research
07a587edb1dc4797f116bfeb60ffecbf4ce5bd7a
[ "MIT" ]
null
null
null
reporting_scripts/navigational_events_completers.py
andyzsf/edx_data_research
07a587edb1dc4797f116bfeb60ffecbf4ce5bd7a
[ "MIT" ]
null
null
null
''' This module counts the number of navigation events: seq_next, seq_prev, seq_goto for those students who completed the course ''' import csv from base_edx import EdXConnection from generate_csv_report import CSV connection = EdXConnection('tracking_atoc185x') collection = connection.get_access_to_collection() wi...
48.410256
458
0.666314
1d65c8ac7d6404ef440b704c635d845ec9e6fbe1
2,201
py
Python
src/rubrix/sdk/models/score_range.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/score_range.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/score_range.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021-present, the Recognai S.L. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
28.584416
77
0.646524
1d65ca85414b1cf901b7ced7dba630007bf59dcd
3,794
py
Python
src/login/bklogin/backends/bk.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/login/bklogin/backends/bk.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/login/bklogin/backends/bk.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
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-2018 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...
36.834951
115
0.683448
1d65e19f2d9ce4456e3b1346a8ad52d7da57c207
218
py
Python
tests/test_input_two_bodies_contact.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
510
2015-01-19T16:22:25.000Z
2022-03-30T19:02:51.000Z
tests/test_input_two_bodies_contact.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
402
2015-01-22T10:57:50.000Z
2022-03-30T15:19:23.000Z
tests/test_input_two_bodies_contact.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
156
2015-01-05T14:23:38.000Z
2022-03-22T13:08:30.000Z
from __future__ import absolute_import input_name = '../examples/linear_elasticity/two_bodies_contact.py' output_name = 'test_two_bodies_contact.vtk' from tests_basic import TestInput class Test(TestInput): pass
24.222222
66
0.821101
1d661b3607dfd5035a60a8fdf77cdc04ad80bc38
2,985
py
Python
gym_jiminy/gym_jiminy/unit/acrobot_learning/acrobot_her_baseline.py
matthieuvigne/jiminy
f893b2254a9e695a4154b941b599536756ea3d8b
[ "MIT" ]
null
null
null
gym_jiminy/gym_jiminy/unit/acrobot_learning/acrobot_her_baseline.py
matthieuvigne/jiminy
f893b2254a9e695a4154b941b599536756ea3d8b
[ "MIT" ]
null
null
null
gym_jiminy/gym_jiminy/unit/acrobot_learning/acrobot_her_baseline.py
matthieuvigne/jiminy
f893b2254a9e695a4154b941b599536756ea3d8b
[ "MIT" ]
null
null
null
import os import time import gym from stable_baselines.her import GoalSelectionStrategy from stable_baselines.sac.policies import FeedForwardPolicy from stable_baselines import HER, DQN, SAC, DDPG, TD3 import jiminy_py # Select the model class model_class = SAC # Create a single-process environment env = gym.make(...
31.755319
86
0.701508
1d667c36fb4e037e322a4c50f090a253d8885c47
15,301
py
Python
core/migrations/0016_alignmentchoiceblock.py
kingsdigitallab/egomedia-django
7347fc96ca52ac195b388e43204d0a0faab0c88f
[ "MIT" ]
null
null
null
core/migrations/0016_alignmentchoiceblock.py
kingsdigitallab/egomedia-django
7347fc96ca52ac195b388e43204d0a0faab0c88f
[ "MIT" ]
10
2021-04-06T18:17:44.000Z
2022-03-01T12:21:40.000Z
core/migrations/0016_alignmentchoiceblock.py
kingsdigitallab/egomedia-django
7347fc96ca52ac195b388e43204d0a0faab0c88f
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-02-27 15:49 from django.db import migrations import wagtail.contrib.table_block.blocks import wagtail.core.blocks import wagtail.core.fields import wagtail.documents.blocks import wagtail.embeds.blocks import wagtail.images.blocks class Migration(migrations.Migration): depend...
382.525
5,091
0.734004
1d66ad2744dc53ad06bb39b8f0e39807050dd67c
11,630
py
Python
models/drn.py
magic2du/dlnn
9a6fdd1e9e84826c402b564853673dd1c9cd12b9
[ "Apache-2.0" ]
null
null
null
models/drn.py
magic2du/dlnn
9a6fdd1e9e84826c402b564853673dd1c9cd12b9
[ "Apache-2.0" ]
null
null
null
models/drn.py
magic2du/dlnn
9a6fdd1e9e84826c402b564853673dd1c9cd12b9
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Tianchuan Du University of Delaware # 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 # # THIS CODE IS PROVIDED *AS IS* BAS...
42.137681
136
0.570421
1d671e932abe5d719a755c98fd8e824bd717f730
69,216
py
Python
electrum/commands.py
particl/electrum
f1b8c13636c9ffcf6fd37a03340d4eff2d7f0354
[ "MIT" ]
null
null
null
electrum/commands.py
particl/electrum
f1b8c13636c9ffcf6fd37a03340d4eff2d7f0354
[ "MIT" ]
null
null
null
electrum/commands.py
particl/electrum
f1b8c13636c9ffcf6fd37a03340d4eff2d7f0354
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2011 thomasv@gitorious # # 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 witho...
44.199234
228
0.637598
1d6726121c009a84f5f353c2f65002b43ec63944
2,995
py
Python
vmware_nsx/services/qos/nsx_v3/driver.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
null
null
null
vmware_nsx/services/qos/nsx_v3/driver.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
null
null
null
vmware_nsx/services/qos/nsx_v3/driver.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
1
2019-06-21T18:07:53.000Z
2019-06-21T18:07:53.000Z
# Copyright 2017 VMware, Inc. # # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
32.204301
78
0.676461
1d6727ffae45c8d2973471f3530b855635e62846
9,498
py
Python
vmware_nsx/shell/admin/plugins/nsxv/resources/metadata.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
null
null
null
vmware_nsx/shell/admin/plugins/nsxv/resources/metadata.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
null
null
null
vmware_nsx/shell/admin/plugins/nsxv/resources/metadata.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
1
2019-06-21T18:07:53.000Z
2019-06-21T18:07:53.000Z
# Copyright 2016 VMware, Inc. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
41.475983
79
0.654875
1d672a487060482a24bda107d7148b281f888618
324
py
Python
prousthon/__version__.py
deepspaceghost/deme
324741ee8e6ef30de5116f6018966829302796ed
[ "MIT" ]
null
null
null
prousthon/__version__.py
deepspaceghost/deme
324741ee8e6ef30de5116f6018966829302796ed
[ "MIT" ]
6
2021-07-09T16:56:28.000Z
2022-03-12T00:58:06.000Z
prousthon/__version__.py
deepspaceghost/demeter.py
324741ee8e6ef30de5116f6018966829302796ed
[ "MIT" ]
1
2021-06-01T23:49:44.000Z
2021-06-01T23:49:44.000Z
__title__ = "prousthon" __description__ = "Package to generate Proust-related questions" __url__ = "https://github.com/deepspaceghost/deme-app/tree/prousthon" __version__ = "0.0.0.150" __author__ = "deepspaceghost" __author_email__ = "ghostblac@protonmail.com" __license__ = "none" __copyright__ = "© 2021 demiurg...
36
70
0.759259
1d67368ff66543e1cb9e0b52a63371970fdf6960
1,541
py
Python
examples/computer_vision_techniques/loop_edge_enhance.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
examples/computer_vision_techniques/loop_edge_enhance.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
examples/computer_vision_techniques/loop_edge_enhance.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
""" ============================== Edge Enhancing Filtering a Map ============================== This example shows how to edge enhance coronal loops in an SDO/AIA image. """ import numpy as np from scipy import ndimage import matplotlib.pyplot as plt import astropy.units as u from astropy.coordinates import SkyCoord...
33.5
79
0.612589
1d676b1616b64dd08e52fef255f335eaddb962e9
4,792
py
Python
tests/python/pants_test/base/test_deprecated.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/base/test_deprecated.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/base/test_deprecated.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
1
2019-06-10T17:24:34.000Z
2019-06-10T17:24:34.000Z
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import warnings from...
28.86747
97
0.741235
1d677eb7d4521bac1974a26413c6ad487592b816
95
py
Python
CodeChef/FEB21C/HDIVISR.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
CodeChef/FEB21C/HDIVISR.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
CodeChef/FEB21C/HDIVISR.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
n = int(input()) for i in range(10,0,-1): if n%i: continue print(i) break
11.875
24
0.494737
1d6798a78de9bf6a3d6ba28f61ea9fe9c2cfbef4
10,550
py
Python
tests/python/pants_test/source/test_wrapped_globs.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/source/test_wrapped_globs.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
tests/python/pants_test/source/test_wrapped_globs.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import unittest from textwrap import dedent from pants.base.payload import Payload from pants.build_graph.address_lookup_error import AddressLookupError from pants.build_graph.build_file_...
38.50365
99
0.65782
1d67cc24469df858f9969ac5c19265ad42b36897
130
py
Python
my_hello_world_app/web_api/__init__.py
gsjay980/data-science-IP
715550d1cbf67e552c0df533619460c0fee15b94
[ "MIT" ]
5
2020-05-26T09:33:54.000Z
2021-07-01T02:42:30.000Z
my_hello_world_app/web_api/__init__.py
gsjay980/data-science-IP
715550d1cbf67e552c0df533619460c0fee15b94
[ "MIT" ]
3
2019-12-26T17:34:24.000Z
2020-02-04T03:16:23.000Z
my_hello_world_app/web_api/__init__.py
gsjay980/data-science-IP
715550d1cbf67e552c0df533619460c0fee15b94
[ "MIT" ]
2
2021-12-17T00:46:03.000Z
2022-02-26T11:04:55.000Z
from flask import Flask from my_hello_world_app.web_api.router import create_app def start() -> Flask: return create_app()
16.25
56
0.769231
1d6801138ff89d7d7e51ea2475713d4b3d55fd61
4,392
py
Python
esengine/bases/document.py
0mars/esengine
7da722e2950a51df46b3c6f8130477c00cff1d46
[ "MIT" ]
null
null
null
esengine/bases/document.py
0mars/esengine
7da722e2950a51df46b3c6f8130477c00cff1d46
[ "MIT" ]
null
null
null
esengine/bases/document.py
0mars/esengine
7da722e2950a51df46b3c6f8130477c00cff1d46
[ "MIT" ]
null
null
null
from esengine.bases.py3 import * # noqa from esengine.fields import KeywordField from esengine.exceptions import ValidationError import warnings from six import iteritems class BaseDocument(object): _strict = False _validators = None _query_fields = None def _initialize_defaults_fields(self, ignore...
35.136
76
0.586749
1d680147c47c6ed6dbf5354703c319048fc0cd89
878
py
Python
sko/tools.py
gitter-badger/scikit-opt
fc3a5790b17cf7c8ece8127c0487652567799fe8
[ "MIT" ]
null
null
null
sko/tools.py
gitter-badger/scikit-opt
fc3a5790b17cf7c8ece8127c0487652567799fe8
[ "MIT" ]
null
null
null
sko/tools.py
gitter-badger/scikit-opt
fc3a5790b17cf7c8ece8127c0487652567799fe8
[ "MIT" ]
null
null
null
def func_transformer(func): ''' transform this kind of function: ``` def demo_func(x): x1, x2, x3 = x return x1 ** 2 + (x2 - 0.05) ** 2 + x3 ** 2 ``` into this kind of function: ``` def demo_func(x): x1, x2, x3 = x return x1 ** 2 + x2 ** 2 + x3 ** 2 ...
20.904762
51
0.498861
1d68087600fa50a8e4b01ed47874808702f790ea
197
py
Python
src/rolca/core/tests/conftest.py
dblenkus/rolca
033492d9b573b1dc65cb836579dff27c6e06c7a7
[ "Apache-2.0" ]
null
null
null
src/rolca/core/tests/conftest.py
dblenkus/rolca
033492d9b573b1dc65cb836579dff27c6e06c7a7
[ "Apache-2.0" ]
12
2016-11-27T18:38:23.000Z
2017-09-09T16:18:17.000Z
src/rolca/core/tests/conftest.py
dblenkus/rolca
033492d9b573b1dc65cb836579dff27c6e06c7a7
[ "Apache-2.0" ]
null
null
null
import os import django from django.conf import settings os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tests.settings') def pytest_configure(): settings.DEBUG = False django.setup()
16.416667
65
0.761421
1d6826ef7e1d8944e7af3f296c527ebc1ed84d6d
6,462
py
Python
examples/streaming_video_low_level.py
kingrollsdice/p2pcam
b4f1124b081e2ae8d525dac434fec9704ec8458a
[ "MIT" ]
3
2021-05-14T20:36:48.000Z
2021-06-14T10:04:01.000Z
examples/streaming_video_low_level.py
kingrollsdice/p2pcam
b4f1124b081e2ae8d525dac434fec9704ec8458a
[ "MIT" ]
null
null
null
examples/streaming_video_low_level.py
kingrollsdice/p2pcam
b4f1124b081e2ae8d525dac434fec9704ec8458a
[ "MIT" ]
1
2021-09-21T11:49:48.000Z
2021-09-21T11:49:48.000Z
import time try: import av except ImportError: av = None try: import cv2 except ImportError: cv2 = None from p2pcam.tutk import tutk from p2pcam.tutk.tutk_ioctl_mux import TutkIOCtrlMux from p2pcam.tutk.tutk_protocol import ( K10000ConnectRequest, K10020CheckCameraInfo, K10056SetResolving...
30.338028
109
0.589601
1d68286051be44986864894d4e75c603932f30f8
7,321
py
Python
src/invoke_hello_python.py
punica-box/hello-python-box
d57d7a50c577fabe26c4dc43be519b38bc6ad9f5
[ "MIT" ]
null
null
null
src/invoke_hello_python.py
punica-box/hello-python-box
d57d7a50c577fabe26c4dc43be519b38bc6ad9f5
[ "MIT" ]
null
null
null
src/invoke_hello_python.py
punica-box/hello-python-box
d57d7a50c577fabe26c4dc43be519b38bc6ad9f5
[ "MIT" ]
1
2018-11-28T02:48:28.000Z
2018-11-28T02:48:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import binascii from ontology.ont_sdk import OntologySdk from ontology.common.address import Address from ontology.account.account import Account from ontology.utils.contract_data_parser import ContractDataParser from ontology.smart_contract.neo_contract.invoke_function ...
49.134228
119
0.623549
1d686c457f0afc07782f7371941534167a0281bf
1,293
py
Python
exams/admin.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
exams/admin.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
1
2022-02-17T20:28:19.000Z
2022-02-17T20:28:19.000Z
exams/admin.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
from django.contrib import admin, messages from django.utils.translation import ngettext_lazy, gettext_lazy as _ from .models import Exam @admin.register(Exam) class ExamAdmin(admin.ModelAdmin): date_hierarchy = 'date' readonly_fields = ('minute_file', 'minute_author', 'submitted_on') list_display = ('co...
40.40625
79
0.699149
1d686da62400561f844342c4a827f82a88585dad
2,202
py
Python
stackoverflow-solutions/submission-scripts/SO_Q61353078_python_regex_full_utc_datetime.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
1
2020-07-21T23:24:25.000Z
2020-07-21T23:24:25.000Z
stackoverflow-solutions/submission-scripts/SO_Q61353078_python_regex_full_utc_datetime.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
4
2021-06-29T00:38:57.000Z
2022-01-15T00:22:15.000Z
stackoverflow-solutions/submission-scripts/SO_Q61353078_python_regex_full_utc_datetime.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
null
null
null
""" Purpose: Stakcoverflow question 61353078 Date created: 2020-04-21 URL: https://stackoverflow.com/questions/61353078/python-regex-capture-characters-after-whitespace-and-hyphen/61354480#61354480 Contributor(s): Mark M. """ # Answer in full text """ import re dt_neg_value = "2020-04-21 23:59:59.999-0400" # N...
31.457143
127
0.623978
1d6887035a0750a0e4146e198885e1567bff716b
3,557
py
Python
ThirdParty/Twisted/twisted/conch/test/test_text.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
7
2015-04-28T13:26:11.000Z
2020-02-09T17:01:04.000Z
ThirdParty/Twisted/twisted/conch/test/test_text.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
ThirdParty/Twisted/twisted/conch/test/test_text.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
5
2015-10-09T04:12:29.000Z
2021-12-15T16:57:11.000Z
# -*- test-case-name: twisted.conch.test.test_text -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. from twisted.trial import unittest from twisted.conch.insults import helper, text A = text.attributes class Serialization(unittest.TestCase): def setUp(self): self.attrs = helpe...
34.872549
94
0.549339
1d689d6ffc2ceceb048497c746585bb6c9b45743
2,154
py
Python
python/src/main/protobuf/logger.py
nowelium/protobuf-socket-rpc
2546a261dccbc19f90fa3f1ea325c4032e610d49
[ "MIT" ]
3
2015-09-05T06:29:55.000Z
2017-02-15T13:59:39.000Z
python/src/main/protobuf/logger.py
nowelium/protobuf-socket-rpc
2546a261dccbc19f90fa3f1ea325c4032e610d49
[ "MIT" ]
null
null
null
python/src/main/protobuf/logger.py
nowelium/protobuf-socket-rpc
2546a261dccbc19f90fa3f1ea325c4032e610d49
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2009 Las Cumbres Observatory (www.lcogt.net) # # 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 #...
35.9
79
0.748839