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
9e8d4ef7ae7b25982d179ef2208943c7bd42939b
10,380
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_01_01/models/_container_service_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_01_01/models/_container_service_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_01_01/models/_container_service_client_enums.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 ...
37.608696
102
0.730925
9e8d5cfcddc3526eeafc2a7e49990767cae5cdc7
10,347
py
Python
Chap3SpamClassifier.py
ErfanRasti/HandsOnMachineLearning
ff01d45e3bf03420e71f4bab8fbe9a7dbf118dcf
[ "MIT" ]
null
null
null
Chap3SpamClassifier.py
ErfanRasti/HandsOnMachineLearning
ff01d45e3bf03420e71f4bab8fbe9a7dbf118dcf
[ "MIT" ]
null
null
null
Chap3SpamClassifier.py
ErfanRasti/HandsOnMachineLearning
ff01d45e3bf03420e71f4bab8fbe9a7dbf118dcf
[ "MIT" ]
null
null
null
# %% """In this code we wanna build a spam classifier.""" # %% Setup # Importing modules from sklearn.metrics import precision_score, recall_score # from sklearn.model_selection import cross_val_score from sklearn.linear_model import LogisticRegression from sklearn.pipeline import Pipeline from scipy.sparse import csr...
30.254386
81
0.635547
9e8d68cd581997c3bba730eda26c43bd11bfaf79
722
py
Python
AAA/src/ej1.py
jiwidi/MIARFID
979eda45fc18a4816ef65d33b1423a6d63176c04
[ "MIT" ]
null
null
null
AAA/src/ej1.py
jiwidi/MIARFID
979eda45fc18a4816ef65d33b1423a6d63176c04
[ "MIT" ]
null
null
null
AAA/src/ej1.py
jiwidi/MIARFID
979eda45fc18a4816ef65d33b1423a6d63176c04
[ "MIT" ]
null
null
null
import numpy as np import math def distancef(p, q): r = 0 for u in range(len(p)): r += p[u] * math.log(p[u] / q[u]) return r if __name__ == "__main__": p = [1 / 4, 1 / 2, 1 / 4] q = [1 / 3, 1 / 3, 1 / 3] print(distancef(p, q) != distancef(q, p)) # Find u that breaks triangle ...
21.878788
70
0.461219
9e8d8adee903ee57a221b91d090e3ef565f144f9
4,797
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_role_ref.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_role_ref.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_role_ref.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1Rol...
27.568966
124
0.562018
9e8d90e5ebc714f38b15ebc9cd802514a5fbd85c
28,956
py
Python
xbbo/surrogate/gp_kernels.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
2
2021-09-06T02:06:22.000Z
2021-12-09T10:46:56.000Z
xbbo/surrogate/gp_kernels.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
xbbo/surrogate/gp_kernels.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
# License: 3-clause BSD # Copyright (c) 2016-2018, Ml4AAD Group (http://www.ml4aad.org/) from inspect import signature, Signature import math from typing import Optional, Union, Tuple, List, Callable, Dict, Any import numpy as np import sklearn.gaussian_process.kernels import scipy.optimize import scipy.spatial.dista...
40.840621
120
0.578395
9e8d991b513e9fe23a7f08709c2f34f4d9b548e3
392
py
Python
terrascript/data/databricks.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/databricks.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/databricks.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/databricks.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:14:57 UTC) # # For imports without namespace, e.g. # # >>> import terrascript.data.databricks # # instead of # # >>> import terrascript.data.databrickslabs.databricks # # This is only available for 'official' and 'partne...
26.133333
73
0.752551
9e8dc3ade440272d6b17fcc3721ff7e633186ac8
536
py
Python
proj/manage.py
glasst/CS491-Research-Survey-Tool-
4e379de8989ecd35cdad5875d9afb74906ed6009
[ "MIT" ]
5
2019-01-23T07:31:52.000Z
2021-09-23T10:03:21.000Z
proj/manage.py
glasst/CS491-Research-Survey-Tool-
4e379de8989ecd35cdad5875d9afb74906ed6009
[ "MIT" ]
3
2019-02-04T10:19:54.000Z
2020-04-17T09:12:49.000Z
manage.py
10sr/kvkv
10af20915852325849eb755bea2d0830eaf1f3f9
[ "Apache-2.0" ]
3
2018-07-02T21:13:01.000Z
2018-07-05T01:42:24.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "proj.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you...
33.5
73
0.684701
9e8dc77dada4a175805cb5d0a471e4d36ffad89f
1,132
py
Python
app/carbonmap/urls.py
opencarbon/opencarbonmap
a2653f3c8876ee73a77e0f19267252cbf429ddd3
[ "MIT" ]
null
null
null
app/carbonmap/urls.py
opencarbon/opencarbonmap
a2653f3c8876ee73a77e0f19267252cbf429ddd3
[ "MIT" ]
null
null
null
app/carbonmap/urls.py
opencarbon/opencarbonmap
a2653f3c8876ee73a77e0f19267252cbf429ddd3
[ "MIT" ]
null
null
null
"""carbonmap URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
34.30303
78
0.712014
9e8df5cbe4ee97b17aaa2cfd07423ed5ab9e496f
1,274
py
Python
h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oparse_setup.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
1
2017-03-28T09:10:12.000Z
2017-03-28T09:10:12.000Z
h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oparse_setup.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
null
null
null
h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oparse_setup.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import sys sys.path.insert(1,"../../../") from tests import pyunit_utils import h2o from h2o.utils.typechecks import assert_is_type from h2o.backend.connection import H2OResponse def h2oparse_setup(): """ Python API test: h2o.parse_setup(raw_frames, destination_frame=None,...
39.8125
117
0.692308
9e8dfdeca02f0ffce00a08d7c3cdb4d0c11d3c70
6,676
py
Python
radiomics/generalinfo.py
drmaxchen/pyradio
f2e46856425cfb233d29d391199bfb9b85824b06
[ "BSD-3-Clause" ]
null
null
null
radiomics/generalinfo.py
drmaxchen/pyradio
f2e46856425cfb233d29d391199bfb9b85824b06
[ "BSD-3-Clause" ]
null
null
null
radiomics/generalinfo.py
drmaxchen/pyradio
f2e46856425cfb233d29d391199bfb9b85824b06
[ "BSD-3-Clause" ]
null
null
null
import collections import logging import numpy import pywt import SimpleITK as sitk import six import radiomics class GeneralInfo(): def __init__(self, imagePath, maskPath, resampledMask, settings, enabledImageTypes): self.logger = logging.getLogger(self.__module__) self.elements = self._getElementNames(...
32.096154
138
0.700419
9e8e09159261d8ddc9f06a378c7a938af7794a2e
2,972
py
Python
grams/nltk_data/taggers/universal_tagset/universal_tags.py
escofresco/makeschool_fsp2_realtweets
a1df7c54e5ef3d5a91282141389200248b40f695
[ "MIT" ]
null
null
null
grams/nltk_data/taggers/universal_tagset/universal_tags.py
escofresco/makeschool_fsp2_realtweets
a1df7c54e5ef3d5a91282141389200248b40f695
[ "MIT" ]
9
2019-11-17T22:33:15.000Z
2021-06-02T00:37:50.000Z
grams/nltk_data/taggers/universal_tagset/universal_tags.py
escofresco/makeschool_fsp2_realtweets
a1df7c54e5ef3d5a91282141389200248b40f695
[ "MIT" ]
null
null
null
''' Interface for converting POS tags from various treebanks to the universal tagset of Petrov, Das, & McDonald. The tagset consists of the following 12 coarse tags: VERB - verbs (all tenses and modes) NOUN - nouns (common and proper) PRON - pronouns ADJ - adjectives ADV - adverbs ADP - adpositions (prepositions an...
26.300885
242
0.601615
9e8e19f97e0eb39926f29ca476d7649b8872fc92
1,923
py
Python
tests/graph/parallel_graphs.py
marcelotrevisani/acorns
682749b0963ffc0a3998a7065ef505fc95123f50
[ "MIT" ]
null
null
null
tests/graph/parallel_graphs.py
marcelotrevisani/acorns
682749b0963ffc0a3998a7065ef505fc95123f50
[ "MIT" ]
null
null
null
tests/graph/parallel_graphs.py
marcelotrevisani/acorns
682749b0963ffc0a3998a7065ef505fc95123f50
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import os import json import seaborn as sns import re sns.set(style="darkgrid") def atoi(text): return int(text) if text.isdigit() else text def natural_keys(text): ''' alist.sort(key=natural_keys) sorts in human order http://nedbatcheld...
33.736842
122
0.680707
9e8e4a33a54fab5e344a3928fc72eb48de03c3a5
2,752
py
Python
scripts/practice/Amazon/MaxAreaPieceOfCakeAfterHorizontalAndVerticalCuts.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/practice/Amazon/MaxAreaPieceOfCakeAfterHorizontalAndVerticalCuts.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/practice/Amazon/MaxAreaPieceOfCakeAfterHorizontalAndVerticalCuts.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts You are given a rectangular cake of size h x w and two arrays of integers horizontalCuts and verticalCuts where: horizontalCuts[i] is the distance from the top of the rectangular cake to the ith horizontal cut and similarly, and verticalCuts[j]...
37.69863
199
0.687863
9e8e65211c7454b221cde85b3345542d1b47138a
8,975
py
Python
benchmarking/cnn3d/feature_activity.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
benchmarking/cnn3d/feature_activity.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
benchmarking/cnn3d/feature_activity.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
import math import os import dotenv as de import numpy as np import pandas as pd de.load_dotenv(de.find_dotenv(usecwd=True)) import atom3d.shard.shard as sh import examples.cnn3d.subgrid_gen as subgrid_gen import examples.cnn3d.util as util grid_config = util.dotdict({ # Mapping from elements to position in c...
39.19214
111
0.638774
9e8e72eb9144976274af2489ea499f236d56fa01
6,088
py
Python
SBaaS_LIMS/lims_acquisitionMethod_query.py
dmccloskey/SBaaS_LIMS
5dfd73689674953345d523178a67b8dda10e6d47
[ "MIT" ]
null
null
null
SBaaS_LIMS/lims_acquisitionMethod_query.py
dmccloskey/SBaaS_LIMS
5dfd73689674953345d523178a67b8dda10e6d47
[ "MIT" ]
null
null
null
SBaaS_LIMS/lims_acquisitionMethod_query.py
dmccloskey/SBaaS_LIMS
5dfd73689674953345d523178a67b8dda10e6d47
[ "MIT" ]
null
null
null
from .lims_acquisitionMethod_postgresql_models import * from .lims_lcMethod_postgresql_models import * from .lims_autosamplerMethod_postgresql_models import * from .lims_msMethod_postgresql_models import * from SBaaS_base.sbaas_base_query_update import sbaas_base_query_update from SBaaS_base.sbaas_base_query_drop impo...
46.473282
125
0.57408
9e8e76267cbe4a123148c9de5e6c16f3e92a76e3
4,317
py
Python
qualys_cs_api/models/pivot_list_response_schedule_response.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
qualys_cs_api/models/pivot_list_response_schedule_response.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
qualys_cs_api/models/pivot_list_response_schedule_response.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
1
2020-05-15T04:20:48.000Z
2020-05-15T04:20:48.000Z
# coding: utf-8 """ Container Security APIs All features of the Container Security are available through REST APIs.<br/>Access support information at www.qualys.com/support/<br/><br/><b>Permissions:</b><br/>User must have the Container module enabled<br/>User must have API ACCESS permission # noqa: E501 ...
29.367347
265
0.598564
9e8e7780538009f363d50cacd36ed3e693b133e1
1,428
py
Python
cmd2/constants.py
scartill/cmd2
1b4e1e25f84bcc800a5f369783c3c3448a42361e
[ "MIT" ]
1
2021-07-06T23:59:46.000Z
2021-07-06T23:59:46.000Z
cmd2/constants.py
scartill/cmd2
1b4e1e25f84bcc800a5f369783c3c3448a42361e
[ "MIT" ]
null
null
null
cmd2/constants.py
scartill/cmd2
1b4e1e25f84bcc800a5f369783c3c3448a42361e
[ "MIT" ]
null
null
null
# # coding=utf-8 """Constants and definitions""" # Used for command parsing, output redirection, tab completion and word # breaks. Do not change. QUOTES = ['"', "'"] REDIRECTION_PIPE = '|' REDIRECTION_OUTPUT = '>' REDIRECTION_APPEND = '>>' REDIRECTION_CHARS = [REDIRECTION_PIPE, REDIRECTION_OUTPUT] REDIRECTION_TOKENS =...
32.454545
108
0.644258
9e8e9e584107ae23e5107e8bd1b3daf93d4eea31
61
py
Python
chapter12/10 TestFashionShopApp Doc/Storage/__init__.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter12/10 TestFashionShopApp Doc/Storage/__init__.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter12/10 TestFashionShopApp Doc/Storage/__init__.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
''' Data storage classes for the Fshion Shop application '''
15.25
52
0.737705
9e8eb5144a74189624f1879251ec2f93dda85b22
3,913
py
Python
pywikibot/page/_revision.py
ankitdobhal/pywikibot
d6328a486296c0e8452b9f5334d5467a2c77ec07
[ "MIT" ]
null
null
null
pywikibot/page/_revision.py
ankitdobhal/pywikibot
d6328a486296c0e8452b9f5334d5467a2c77ec07
[ "MIT" ]
null
null
null
pywikibot/page/_revision.py
ankitdobhal/pywikibot
d6328a486296c0e8452b9f5334d5467a2c77ec07
[ "MIT" ]
null
null
null
"""Object representing page revision.""" # # (C) Pywikibot team, 2008-2021 # # Distributed under the terms of the MIT license. # import hashlib from collections.abc import Mapping from pywikibot import Timestamp, warning from pywikibot.tools import deprecated class Revision(Mapping): """A structure holding inf...
30.811024
79
0.61104
9e8f6891616db10982db2206f7b9df4c708364ea
2,000
py
Python
mi/dataset/driver/ctdbp_cdef/dcl_cp/ctdbp_cdef_dcl_cp_telemetered_driver.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/driver/ctdbp_cdef/dcl_cp/ctdbp_cdef_dcl_cp_telemetered_driver.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/driver/ctdbp_cdef/dcl_cp/ctdbp_cdef_dcl_cp_telemetered_driver.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ @package mi.dataset.driver.ctdbp_cdef.dcl_cp.ctdbp_cdef_dcl_cp @file mi-dataset/mi/dataset/driver/ctdbp_cdef/dcl_cp/ctdbp_cdef_dcl_cp.py @author Tapana Gupta @brief Driver for the ctdbp_cdef_dcl_cp instrument (Telemetered Data) Release notes: Initial Release """ from mi.dataset.dataset_par...
33.898305
104
0.742
9e8f8226a1cb90c1ef320b3284a0b12cbc7d9a59
14,849
py
Python
nets/MobileFaceNet.py
pesong/mobilefacenet-tf
dfca29e3bd056c3a5c760cc7d13706ad18985614
[ "Apache-2.0" ]
372
2018-09-14T06:11:02.000Z
2022-03-30T06:55:09.000Z
nets/MobileFaceNet.py
BeGentleman/MobileFaceNet_TF
f0bae5982be2e030a89b346e6ce5ac8bdcc8f0e0
[ "Apache-2.0" ]
80
2018-09-14T01:16:25.000Z
2022-01-21T10:54:16.000Z
nets/MobileFaceNet.py
BeGentleman/MobileFaceNet_TF
f0bae5982be2e030a89b346e6ce5ac8bdcc8f0e0
[ "Apache-2.0" ]
152
2018-10-15T06:56:20.000Z
2022-03-31T20:07:05.000Z
# Copyright 2018 The AI boy xsr-ai. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
43.291545
165
0.680383
9e8fa6125c713cbba5bb06be68ea6118198f12ff
22,183
py
Python
experiments_transformers/main.py
wuhao55158/TimeSeriesForecasting-DeepLearning-master
9f6a1aa388857b49881dcdadd2c353a66c2a5ce3
[ "MIT" ]
null
null
null
experiments_transformers/main.py
wuhao55158/TimeSeriesForecasting-DeepLearning-master
9f6a1aa388857b49881dcdadd2c353a66c2a5ce3
[ "MIT" ]
null
null
null
experiments_transformers/main.py
wuhao55158/TimeSeriesForecasting-DeepLearning-master
9f6a1aa388857b49881dcdadd2c353a66c2a5ce3
[ "MIT" ]
null
null
null
import os import argparse import json import itertools import time import requests from multiprocessing import Process, Manager import numpy as np import pandas as pd from metrics import METRICS, evaluate from preprocessing import denormalize from tensorflow.keras.utils import plot_model def check_params(datasets, mo...
30.513067
167
0.551954
9e8fb21e0ef462bcfbd699384789afdb77143996
4,213
py
Python
sdk/cosmos/azure-cosmos/test/test_proxy.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/cosmos/azure-cosmos/test/test_proxy.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/cosmos/azure-cosmos/test/test_proxy.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
#The MIT License (MIT) #Copyright (c) 2014 Microsoft Corporation #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, modi...
39.009259
129
0.723475
9e8fd838eb41b9f7724fb29e36e03240613d3605
41,780
py
Python
plugin.video.torrentin/resources/parches/plexus/018/acecore.py
ponchofcult/Turning-Japanese
d29118817c369a7f9161c72ac0cfb3b0f17f7298
[ "MIT" ]
null
null
null
plugin.video.torrentin/resources/parches/plexus/018/acecore.py
ponchofcult/Turning-Japanese
d29118817c369a7f9161c72ac0cfb3b0f17f7298
[ "MIT" ]
null
null
null
plugin.video.torrentin/resources/parches/plexus/018/acecore.py
ponchofcult/Turning-Japanese
d29118817c369a7f9161c72ac0cfb3b0f17f7298
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Plexus (c) 2015 enen92 This file contains the acestream console of the addon. Initial versions were coded by Nouismons and so, this file is based on his work. Classes: Logger() -> Log class _TSPlayer(xbmc.Player) -> Inheritance of the xbmc.Player class for acestr...
42.6762
361
0.558545
9e8fd89b23291498477cf34fce04a1d63dc7dba9
8,181
py
Python
openpype/tools/settings/local_settings/window.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
1
2020-09-21T14:55:33.000Z
2020-09-21T14:55:33.000Z
openpype/tools/settings/local_settings/window.py
jrsndl/pype
f9d80ef2c0663921291c5f47d24bea51fc43bac7
[ "MIT" ]
null
null
null
openpype/tools/settings/local_settings/window.py
jrsndl/pype
f9d80ef2c0663921291c5f47d24bea51fc43bac7
[ "MIT" ]
null
null
null
import logging from Qt import QtWidgets, QtGui from ..settings import style from openpype.settings.lib import ( get_local_settings, save_local_settings ) from openpype.tools.settings import CHILD_OFFSET from openpype.api import ( SystemSettings, ProjectSettings ) from openpype.modules import ModulesMa...
31.709302
78
0.67779
9e8fe0862f3be90c52a809ad421fa372e826e7c6
3,663
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_01_02_preview/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_01_02_preview/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_01_02_preview/_configuration.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 ...
49.5
125
0.700792
9e8fe3e60ca241888afcee09b1e7da1bd0ccc94d
2,528
py
Python
sdk/rdbms/azure-mgmt-rdbms/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
sdk/rdbms/azure-mgmt-rdbms/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
sdk/rdbms/azure-mgmt-rdbms/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
34.162162
91
0.605617
9e9020d669ee52efa08bc92ae860a092c269a60e
981
py
Python
apidoc/common.py
arnaudsj/titanium_mobile
4ed83dd6b355947a88f52efbf4ac82d86a2eeffd
[ "Apache-2.0" ]
1
2015-11-05T13:59:16.000Z
2015-11-05T13:59:16.000Z
apidoc/common.py
arnaudsj/titanium_mobile
4ed83dd6b355947a88f52efbf4ac82d86a2eeffd
[ "Apache-2.0" ]
null
null
null
apidoc/common.py
arnaudsj/titanium_mobile
4ed83dd6b355947a88f52efbf4ac82d86a2eeffd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2011 Appcelerator, Inc. All Rights Reserved. # Licensed under the Apache Public License (version 2) # # Portions (c) 2009 Sridhar Ratnakumar # import sys, re simple_tag_pattern = re.compile(r"<[^>]*?>") not_real_titanium_types = ("Titanium.Proxy", "Titanium.Module", "Titanium.Ev...
28.028571
81
0.671764
9e904a91e0342288a35fc03c2c2ec2f7e295ceed
617
py
Python
example_storage_plugin_package/setup.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
1
2021-02-08T16:59:14.000Z
2021-02-08T16:59:14.000Z
example_storage_plugin_package/setup.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
example_storage_plugin_package/setup.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. from setuptools import setup, find_packages excludes = ["*.tests", "*.tests.*", "tests.*", "tests"] setup( name="example-storage-plugin", ...
28.045455
68
0.696921
9e905e4dc7ccbfc44ae2955e834063cc6167d374
7,927
py
Python
raspi/puzzles/telegraph_puzzle.py
kylecombes/poe-bocs
f2d6d96ee4e3d2365af3a7931697d2ded3433574
[ "MIT" ]
1
2019-01-19T22:34:16.000Z
2019-01-19T22:34:16.000Z
raspi/puzzles/telegraph_puzzle.py
kylecombes/bocs
f2d6d96ee4e3d2365af3a7931697d2ded3433574
[ "MIT" ]
null
null
null
raspi/puzzles/telegraph_puzzle.py
kylecombes/bocs
f2d6d96ee4e3d2365af3a7931697d2ded3433574
[ "MIT" ]
null
null
null
from raspi.puzzles.puzzle import BOCSPuzzle from raspi.arduino_comm import ArduinoCommEventType as EventType from raspi.io_states.cube_state import RotaryState from raspi.io_states.start_button_state import StartButtonState from raspi.available_io import * from datetime import datetime import math class TelegraphPuzz...
48.631902
120
0.633405
9e90634bc78f2b2c9e720e4d2c386ffa7ab50376
291
py
Python
kitchensink/serialization/csv.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
2
2015-03-17T05:02:42.000Z
2016-04-07T15:02:28.000Z
kitchensink/serialization/csv.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
null
null
null
kitchensink/serialization/csv.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
1
2015-10-07T21:50:44.000Z
2015-10-07T21:50:44.000Z
import pandas as pd import cStringIO as StringIO def serialize(obj): assert isinstance(obj, pd.DataFrame) f = StringIO.StringIO obj.to_csv(f) f.seek(0) return f.read() def deserialize(): f = StringIO.StringIO f.write(obj) f.seek(0) return pd.read_csv(f)
19.4
40
0.66323
9e90671b933e193ca1f726aaf9b95757f3b62ef6
531
py
Python
alpacka/agents/deterministic_mcts_test.py
shoot-tree-search/sts
2d9f19a40c7fb1c637dd3bd230942c01f14927e1
[ "MIT" ]
2
2021-01-03T04:21:56.000Z
2021-02-12T12:54:58.000Z
alpacka/agents/deterministic_mcts_test.py
shoot-tree-search/sts
2d9f19a40c7fb1c637dd3bd230942c01f14927e1
[ "MIT" ]
null
null
null
alpacka/agents/deterministic_mcts_test.py
shoot-tree-search/sts
2d9f19a40c7fb1c637dd3bd230942c01f14927e1
[ "MIT" ]
null
null
null
"""Tests for alpacka.agents.deterministic_mcts.""" from alpacka import agents from alpacka import envs from alpacka import testing def test_integration_with_cartpole(): env = envs.CartPole() agent = agents.DeterministicMCTSAgent(n_passes=2) network_sig = agent.network_signature( env.observation_s...
31.235294
85
0.758945
9e906b0e5bbc05cbb8feea1fb5c5bb231e178db4
1,062
py
Python
frameworks/deepl_translate/entrypoint.py
ClementChouteau/nmt-wizard-docker
b2bf2178b48ee1decd4a7216eee358b8e0953ce8
[ "MIT" ]
1
2019-11-09T04:18:58.000Z
2019-11-09T04:18:58.000Z
frameworks/deepl_translate/entrypoint.py
ClementChouteau/nmt-wizard-docker
b2bf2178b48ee1decd4a7216eee358b8e0953ce8
[ "MIT" ]
null
null
null
frameworks/deepl_translate/entrypoint.py
ClementChouteau/nmt-wizard-docker
b2bf2178b48ee1decd4a7216eee358b8e0953ce8
[ "MIT" ]
null
null
null
import requests import os from nmtwizard.cloud_translation_framework import CloudTranslationFramework class DeepLTranslateFramework(CloudTranslationFramework): def __init__(self): super(DeepLTranslateFramework, self).__init__() self._credentials = os.getenv('DEEPL_CREDENTIALS') if self._...
30.342857
75
0.636535
9e9091290da317449e4b1e467ee9f8234ebe40a4
5,341
py
Python
sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
39.562963
133
0.662236
9e90ab09d29f48e94c382aca70cd3e610c585ab7
6,498
py
Python
tests/test_cli.py
matthiask/daphne
cc6af549a61d0529182ef7370515547eedfb26fd
[ "BSD-3-Clause" ]
null
null
null
tests/test_cli.py
matthiask/daphne
cc6af549a61d0529182ef7370515547eedfb26fd
[ "BSD-3-Clause" ]
null
null
null
tests/test_cli.py
matthiask/daphne
cc6af549a61d0529182ef7370515547eedfb26fd
[ "BSD-3-Clause" ]
null
null
null
# coding: utf8 import logging from unittest import TestCase from daphne.cli import CommandLineInterface from daphne.endpoints import build_endpoint_description_strings as build class TestEndpointDescriptions(TestCase): """ Tests that the endpoint parsing/generation works as intended. """ def testBa...
27.302521
90
0.4506
9e90b025687fe9bbbd89d25c0a23a3765096a8c0
3,636
py
Python
drink_flow_control/settings.py
jeffersonkr/drink_flow_control
7dc6d97bce6110b34d309fa61079385e6f3efde5
[ "MIT" ]
null
null
null
drink_flow_control/settings.py
jeffersonkr/drink_flow_control
7dc6d97bce6110b34d309fa61079385e6f3efde5
[ "MIT" ]
1
2022-02-10T08:42:42.000Z
2022-02-10T08:42:42.000Z
drink_flow_control/settings.py
jeffersonkr/drink_flow_control
7dc6d97bce6110b34d309fa61079385e6f3efde5
[ "MIT" ]
null
null
null
""" Django settings for drink_flow_control project. Generated by 'django-admin startproject' using Django 2.0.7. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ i...
26.347826
91
0.680693
9e91262edcedbf4b317ddbd8aa409677044a3dd6
5,156
py
Python
tests/lowlevel/test_ranges.py
sgherbst/msdsl
e38d5ecdb88b3574bda62f22a4f91ce3e4173d12
[ "MIT" ]
15
2019-05-14T10:12:23.000Z
2022-03-29T15:29:52.000Z
tests/lowlevel/test_ranges.py
sgherbst/msdsl
e38d5ecdb88b3574bda62f22a4f91ce3e4173d12
[ "MIT" ]
19
2020-01-22T21:44:33.000Z
2021-06-05T02:10:41.000Z
tests/lowlevel/test_ranges.py
sgherbst/msdsl
e38d5ecdb88b3574bda62f22a4f91ce3e4173d12
[ "MIT" ]
5
2019-10-21T09:53:17.000Z
2021-08-10T17:32:20.000Z
import pytest import numpy as np from scipy.linalg import expm from pathlib import Path from msdsl.templates.channel import ChannelModel, S4PModel from msdsl.templates.saturation import SaturationModel from msdsl.templates.lds import LDSModel, CTLEModel THIS_DIR = Path(__file__).resolve().parent TOP_DIR = THIS_DIR.pa...
32.840764
100
0.670287
9e91582d6b31d471ffa09a6659cc4ecfa9d30ef3
1,602
py
Python
tests/test_create_model.py
kantharajucn/ML_web_server_boilerplate
9eb1a00a885813da0197645db1c62d8a9055ddaa
[ "MIT" ]
2
2021-06-22T18:27:52.000Z
2021-10-21T21:43:09.000Z
tests/test_create_model.py
kantharajucn/ML_web_server_boilerplate
9eb1a00a885813da0197645db1c62d8a9055ddaa
[ "MIT" ]
null
null
null
tests/test_create_model.py
kantharajucn/ML_web_server_boilerplate
9eb1a00a885813da0197645db1c62d8a9055ddaa
[ "MIT" ]
null
null
null
import pytest @pytest.mark.run(order=1) def test_create_model_success(test_client, dataset): """ API /create?target=Species' with the valid dataset file results model creation success and return the status code 200 """ response = test_client.post('/create?target=Species', ...
37.255814
121
0.612984
9e91a662840409048d92053c1f8cddf1d71f8a44
120
py
Python
Chapter 5/05/PaxHeader/cart41.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
Chapter 5/05/PaxHeader/cart41.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
Chapter 5/05/PaxHeader/cart41.py
robert0714/Python-Testing-Cookbook-Second-Edition
c7c5d59e42e9ca2874faf12a6dd201736a45ca83
[ "MIT" ]
null
null
null
15 uid=2057284 20 ctime=1290656303 20 atime=1292623534 24 SCHILY.dev=234881026 23 SCHILY.ino=25871139 18 SCHILY.nlink=1
17.142857
23
0.825
9e91ada554f06bc0033012522c2c6a4c8481d4a1
441
py
Python
ria/GreyMatter/SenseCells/tts.py
sjsucohort6/amigo-chatbot
ca4be6e0b90cd581b34f7414159dfc6a50eca969
[ "MIT" ]
5
2017-06-16T00:23:31.000Z
2019-10-15T14:20:56.000Z
ria/GreyMatter/SenseCells/tts.py
sjsucohort6/amigo-chatbot
ca4be6e0b90cd581b34f7414159dfc6a50eca969
[ "MIT" ]
null
null
null
ria/GreyMatter/SenseCells/tts.py
sjsucohort6/amigo-chatbot
ca4be6e0b90cd581b34f7414159dfc6a50eca969
[ "MIT" ]
3
2017-10-01T18:11:42.000Z
2019-03-28T06:14:07.000Z
import os import sys def tts(message): """ This function takes a message as an argument and converts it to speech depending on the OS. """ print (message) if sys.platform == 'darwin': tts_engine = 'say' return os.system(tts_engine + ' ' + message) elif sys.platform == 'linu...
27.5625
74
0.600907
9e91d013bcb30d02884b058af49e3cf8c7e617c3
9,626
py
Python
tracker/view/stats.py
remyoudompheng/arch-security-tracker
8451b618d74c9b322e163da5444452f25f0585cc
[ "MIT" ]
null
null
null
tracker/view/stats.py
remyoudompheng/arch-security-tracker
8451b618d74c9b322e163da5444452f25f0585cc
[ "MIT" ]
null
null
null
tracker/view/stats.py
remyoudompheng/arch-security-tracker
8451b618d74c9b322e163da5444452f25f0585cc
[ "MIT" ]
null
null
null
from collections import OrderedDict from collections import defaultdict from flask import render_template from werkzeug.exceptions import ImATeapot from tracker import db from tracker import tracker from tracker.model import CVE from tracker.model import Advisory from tracker.model import CVEGroup from tracker.model ...
41.313305
113
0.62861
9e91dc35f2065b9b077a4082389d99ce5036470d
1,102
py
Python
auth/config.py
uktrade/paas-airflow
ff5bb1eef922ee2a598eaa2b3e72c730d1f74362
[ "MIT" ]
null
null
null
auth/config.py
uktrade/paas-airflow
ff5bb1eef922ee2a598eaa2b3e72c730d1f74362
[ "MIT" ]
null
null
null
auth/config.py
uktrade/paas-airflow
ff5bb1eef922ee2a598eaa2b3e72c730d1f74362
[ "MIT" ]
1
2021-10-18T08:50:39.000Z
2021-10-18T08:50:39.000Z
"""A module that defines project wide config.""" import os AUTHBROKER_CLIENT_ID = os.environ.get("AUTHBROKER_CLIENT_ID") AUTHBROKER_CLIENT_SECRET = os.environ.get("AUTHBROKER_CLIENT_SECRET") AUTHBROKER_ALLOWED_DOMAINS = os.environ.get("AUTHBROKER_ALLOWED_DOMAINS") AUTHBROKER_URL = os.environ.get("AUTHBROKER_URL") DEB...
34.4375
112
0.778584
9e91df2cebc722d9a84ec7360adcf30791109c28
622
py
Python
python/nano/src/bigdl/nano/automl/hpo/visualization.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/automl/hpo/visualization.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/automl/hpo/visualization.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.555556
74
0.76045
9e91e71c71c7b5f1782db8fb38209ea0aea5b5f3
12,095
py
Python
lawyerd/dbtemplates/admin.py
loobinsk/customer_project
4f43d4c6db2c99926715ea16451511466569c4ae
[ "MIT" ]
null
null
null
lawyerd/dbtemplates/admin.py
loobinsk/customer_project
4f43d4c6db2c99926715ea16451511466569c4ae
[ "MIT" ]
null
null
null
lawyerd/dbtemplates/admin.py
loobinsk/customer_project
4f43d4c6db2c99926715ea16451511466569c4ae
[ "MIT" ]
null
null
null
import posixpath from django import forms from django.contrib import admin from django.core.exceptions import ImproperlyConfigured from django.utils.safestring import mark_safe from django.utils.translation import ungettext, ugettext_lazy as _ from dbtemplates.conf import settings from dbtemplates.models import (Temp...
42.29021
1,198
0.663332
9e92066c1b28a00554029c00afc192c9c2cae0a7
14,198
py
Python
analyzer/linux/analyzer.py
xuna123/Bold-Falcon
bef7dfc3103143bd51ca82838565877097fecc49
[ "BSD-3-Clause" ]
1
2021-06-22T05:33:08.000Z
2021-06-22T05:33:08.000Z
analyzer/linux/analyzer.py
xuna123/Bold-Falcon
bef7dfc3103143bd51ca82838565877097fecc49
[ "BSD-3-Clause" ]
null
null
null
analyzer/linux/analyzer.py
xuna123/Bold-Falcon
bef7dfc3103143bd51ca82838565877097fecc49
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2015-2017 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import os import sys import pkgutil import logging import tempfile import xmlrpclib import traceback import urllib import urllib2 import time import da...
37.070496
97
0.55867
9e92226603a2eafbcdaba06134f740c0ed9d98a7
675
py
Python
bso/server/__init__.py
LaetitiaBracco/bso-publications
6c5883ff98aa1d4d747ec563c795ebe8f67a6a1b
[ "MIT" ]
null
null
null
bso/server/__init__.py
LaetitiaBracco/bso-publications
6c5883ff98aa1d4d747ec563c795ebe8f67a6a1b
[ "MIT" ]
12
2021-05-25T07:00:53.000Z
2021-12-22T13:54:17.000Z
bso/server/__init__.py
LaetitiaBracco/bso-publications
6c5883ff98aa1d4d747ec563c795ebe8f67a6a1b
[ "MIT" ]
1
2021-12-02T17:00:17.000Z
2021-12-02T17:00:17.000Z
import os from flask import Flask from flask_bootstrap import Bootstrap # instantiate the extensions bootstrap = Bootstrap() def create_app(): # instantiate the app app = Flask( __name__, template_folder="../client/templates", static_folder="../client/static", ) # set config ...
24.107143
52
0.699259
9e9239e1392053a1bc50833817e59af372a315fc
2,347
py
Python
discord/types/embed.py
CuzImSyntax/dis.py
2f56d546f2594e1dbb6955c8b13b3a884a04eca6
[ "MIT" ]
1
2021-09-11T13:39:44.000Z
2021-09-11T13:39:44.000Z
discord/types/embed.py
CuzImSyntax/discordIO
47cd508ed48004aa61a41a5b196d3ff003456219
[ "MIT" ]
null
null
null
discord/types/embed.py
CuzImSyntax/discordIO
47cd508ed48004aa61a41a5b196d3ff003456219
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz 2021-present CuzImSyntax 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 u...
27.611765
75
0.741798
9e923e588cc2a0b260ede1398770546021ec4707
491
py
Python
predictor/kernel_density_estimation/kde_model.py
dlasecki/QaoaParamsPredictor
250b48d36d033adfe3d02a59e3e4a34991834e8f
[ "Apache-2.0" ]
null
null
null
predictor/kernel_density_estimation/kde_model.py
dlasecki/QaoaParamsPredictor
250b48d36d033adfe3d02a59e3e4a34991834e8f
[ "Apache-2.0" ]
1
2021-09-08T21:55:24.000Z
2021-09-14T14:42:00.000Z
kernel_density_estimation/kde_model.py
dlasecki/QaoaParamsPredictorApi
3cf449e29f99cdd3ebaaf8b39e9041e65ce75f25
[ "Apache-2.0" ]
1
2021-03-15T21:46:49.000Z
2021-03-15T21:46:49.000Z
class KdeModel: """Class storing a KDE model and associated metedata.""" def __init__(self, kde_model, kernel: str, bandwidth: float, problem_name, graph_type, number_of_instances_trained, p: int): self.kde_model = kde_model self.kernel = kernel self.bandwidth = bandwid...
37.769231
119
0.674134
9e9262bef214b15e09952d5e8556dd7edba97b46
964
py
Python
setup.py
bendichter/change_tense
a4a5003bb0f357f8c6ce7fbbdc38277639396c44
[ "MIT" ]
41
2018-03-06T23:36:40.000Z
2022-03-17T06:02:41.000Z
setup.py
bendichter/tenseflow
a4a5003bb0f357f8c6ce7fbbdc38277639396c44
[ "MIT" ]
9
2017-05-04T23:31:02.000Z
2020-12-24T16:55:39.000Z
setup.py
bendichter/change_tense
a4a5003bb0f357f8c6ce7fbbdc38277639396c44
[ "MIT" ]
9
2018-04-20T03:02:32.000Z
2021-09-03T11:20:34.000Z
#!/usr/bin/env python from setuptools import setup, find_packages from setuptools.command.install import install import os here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() class CustomInstall(install): def run(...
26.777778
66
0.655602
9e926e4f4f369cbdd2b1a07c358e487684adc935
9,683
py
Python
lib/tests/streamlit/cli_test.py
dwiel/streamlit
74ae7f30cc3d95948aff311371449963f8eaf29e
[ "Apache-2.0" ]
1
2020-01-04T06:45:37.000Z
2020-01-04T06:45:37.000Z
lib/tests/streamlit/cli_test.py
yutiansut/streamlit
929942f755ca40f859a03d905ffcbf743f45dffa
[ "Apache-2.0" ]
4
2021-05-09T11:42:18.000Z
2022-02-27T10:59:36.000Z
lib/tests/streamlit/cli_test.py
yutiansut/streamlit
929942f755ca40f859a03d905ffcbf743f45dffa
[ "Apache-2.0" ]
1
2020-06-26T14:41:01.000Z
2020-06-26T14:41:01.000Z
# -*- coding: utf-8 -*- # Copyright 2018-2019 Streamlit Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
38.424603
88
0.634308
9e9282c06c7fc8c92e46d9638b2fc2c8d45362de
340
py
Python
influxdb_client/client/date_utils.py
timbeccue/influxdb-client-python
ff136c7990527a87dcf5f8ff39f6f686ce218c98
[ "MIT" ]
null
null
null
influxdb_client/client/date_utils.py
timbeccue/influxdb-client-python
ff136c7990527a87dcf5f8ff39f6f686ce218c98
[ "MIT" ]
null
null
null
influxdb_client/client/date_utils.py
timbeccue/influxdb-client-python
ff136c7990527a87dcf5f8ff39f6f686ce218c98
[ "MIT" ]
null
null
null
from dateutil import parser parse_function = None def get_date_parse_function(): global parse_function if parse_function is None: try: import ciso8601 parse_function = ciso8601.parse_datetime except ModuleNotFoundError: parse_function = parser.parse re...
21.25
52
0.685294
9e9282f7b2a9cead199e8e9cb5d4409a16052688
1,266
py
Python
src/ggrc/migrations/versions/20160225114925_1894405f14ef_add_assessmenttemplate.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2018-03-30T11:28:48.000Z
2018-03-30T11:28:48.000Z
src/ggrc/migrations/versions/20160225114925_1894405f14ef_add_assessmenttemplate.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc/migrations/versions/20160225114925_1894405f14ef_add_assessmenttemplate.py
zidarsk8/ggrc-core
2509c989eddf434249d3bef50c21e08dbf56c1a4
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Add AssessmentTemplate Revision ID: 1894405f14ef Revises: 1e2abee7566c Create Date: 2016-02-25 11:49:25.128231 """ # pylint: disable=invalid-name import sqlalchemy as sa from alembic import op # re...
26.375
78
0.687994
9e928ba612b9321c86d46edda6a152849ac1d3d7
939
py
Python
scripts/filter_manifest.py
dnanexus/dxda
45c63a9c2dcbabe40c1ca92dcd1e6b4a2802b1eb
[ "Apache-2.0" ]
10
2018-12-11T21:42:24.000Z
2021-09-22T18:27:28.000Z
scripts/filter_manifest.py
dnanexus/dxda
45c63a9c2dcbabe40c1ca92dcd1e6b4a2802b1eb
[ "Apache-2.0" ]
20
2018-11-15T21:06:55.000Z
2022-02-10T19:28:20.000Z
scripts/filter_manifest.py
dnanexus/dxda
45c63a9c2dcbabe40c1ca92dcd1e6b4a2802b1eb
[ "Apache-2.0" ]
7
2018-12-13T14:46:32.000Z
2021-05-27T06:14:35.000Z
import argparse from pprint import pprint import json import bz2 import re import os import compat def main(): parser = argparse.ArgumentParser(description='Filter a manifest file by a regular expression on file path (folder and name)') parser.add_argument('manifest_file', help='BZIP2-compressed JSON manifest...
33.535714
129
0.717785
9e929403481b3fee6709be5dc56ab28b77c29ea1
5,883
py
Python
Scripts/matrixInverter.py
DerekRein/.nuke
2b3dbbfb75457b7e033a3fec5ac6d0e16f20a587
[ "MIT" ]
3
2019-10-01T11:06:06.000Z
2020-08-29T20:50:04.000Z
Scripts/matrixInverter.py
DerekRein/.nuke
2b3dbbfb75457b7e033a3fec5ac6d0e16f20a587
[ "MIT" ]
null
null
null
Scripts/matrixInverter.py
DerekRein/.nuke
2b3dbbfb75457b7e033a3fec5ac6d0e16f20a587
[ "MIT" ]
null
null
null
import nuke import _nukemath as m import nukescripts import threading import math import time """ # add this to menu.py file import matrixInverter nuke.menu("Nuke").addCommand('Scripts/Matrix Inverter', 'matrixInverter.main()') """ def htmlcolor(r, g, b): def clamp(x): return max(0, min(x, 255)) ...
38.45098
118
0.579296
9e929ce92a6afbb0fbc14738d826c287837e1a62
3,777
py
Python
SROMPy/target/NormalRandomVariable.py
datree-demo/SROMPy
5a5c0d66e823a059568805a1718372c9e80e2943
[ "Apache-2.0" ]
null
null
null
SROMPy/target/NormalRandomVariable.py
datree-demo/SROMPy
5a5c0d66e823a059568805a1718372c9e80e2943
[ "Apache-2.0" ]
null
null
null
SROMPy/target/NormalRandomVariable.py
datree-demo/SROMPy
5a5c0d66e823a059568805a1718372c9e80e2943
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 United States Government as represented by the Administrator of # the National Aeronautics and Space Administration. No copyright is claimed in # the United States under Title 17, U.S. Code. All Other Rights Reserved. # The Stochastic Reduced Order Models with Python (SROMPy) platform is licensed # un...
31.214876
80
0.663754
9e92b20548e47c209d2e4a01951a9635d09cb889
1,429
py
Python
unittests/nebula_website/views/view_util.py
threathunterX/nebula_query_web
9c73d82f7e6bc322ea2edfd86ff62727c49d7abb
[ "Apache-2.0" ]
1
2019-05-01T09:42:31.000Z
2019-05-01T09:42:31.000Z
nebula_website/views/view_util.py
threathunterX/nebula_query_web
9c73d82f7e6bc322ea2edfd86ff62727c49d7abb
[ "Apache-2.0" ]
null
null
null
nebula_website/views/view_util.py
threathunterX/nebula_query_web
9c73d82f7e6bc322ea2edfd86ff62727c49d7abb
[ "Apache-2.0" ]
5
2019-06-24T05:48:54.000Z
2022-02-18T03:34:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from collections import Mapping, Sequence # name mapping of the internal name and visual name scene_name_mapping_to_visual = { "VISITOR": "访客", "ACCOUNT": "帐号", "ORDER": "订单", "TRANSACTION": "支付", "MARKETING": "营销", "OTHER": "其他", } scene_name_...
25.981818
92
0.650105
9e92eb22aa47ce9c659c094cc92bc84f11df8797
78,378
py
Python
torch/testing/_internal/common_quantization.py
ZIZUN/pytorch
f565167fbdf607f3b0b95f077b11f2f78716c217
[ "Intel" ]
183
2018-04-06T21:10:36.000Z
2022-03-30T15:05:24.000Z
torch/testing/_internal/common_quantization.py
ZIZUN/pytorch
f565167fbdf607f3b0b95f077b11f2f78716c217
[ "Intel" ]
631
2018-06-05T16:59:11.000Z
2022-03-31T16:26:57.000Z
torch/testing/_internal/common_quantization.py
ZIZUN/pytorch
f565167fbdf607f3b0b95f077b11f2f78716c217
[ "Intel" ]
58
2018-06-05T16:40:18.000Z
2022-03-16T15:37:29.000Z
r"""Importing this file includes common utility methods and base clases for checking quantization api and properties of resulting modules. """ import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.intrinsic.quantized.dynamic as nniqd import torch.nn.quantized as nnq import torch.nn.quantiz...
37.663623
130
0.601113
9e9303db34f1001d5a33622c33f8f3a1fd2f771f
1,062
py
Python
cogs/settings.py
mallusrgreatv2/PyHDISCORD
e414976441cbdb3a57b2c545ab164810bebe2e4b
[ "MIT" ]
2
2021-07-05T12:00:39.000Z
2021-07-05T12:00:49.000Z
cogs/settings.py
mallusrgreatv2/PyHDISCORD
e414976441cbdb3a57b2c545ab164810bebe2e4b
[ "MIT" ]
null
null
null
cogs/settings.py
mallusrgreatv2/PyHDISCORD
e414976441cbdb3a57b2c545ab164810bebe2e4b
[ "MIT" ]
null
null
null
import os import sys import discord import datetime, time from discord.ext import commands from discord.ext.commands.core import command class Settings(commands.Cog): def __init__(self, client) -> None: self.client: commands.Bot = client @commands.Cog.listener() async def on_ready(self): ...
39.333333
178
0.667608
9e93126115a540b8f6ef0b39e3c7b99f8025c0ec
8,311
py
Python
API/src/main/resources/Lib/robot/output/logger.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/output/logger.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/output/logger.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license # # 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 b...
33.37751
83
0.644447
9e931628b44263723a274f3f683e36049833be97
6,410
py
Python
pointnet2/kitti/prepare_data.py
peiyunh/3dseg
59922b6d0b1e21b63958c41eb88c0fa83a943133
[ "BSD-3-Clause" ]
19
2020-03-31T12:25:37.000Z
2022-02-19T09:42:59.000Z
pointnet2/kitti/prepare_data.py
peiyunh/3dseg
59922b6d0b1e21b63958c41eb88c0fa83a943133
[ "BSD-3-Clause" ]
5
2020-04-20T10:53:50.000Z
2022-01-17T16:02:24.000Z
pointnet2/kitti/prepare_data.py
peiyunh/3dseg
59922b6d0b1e21b63958c41eb88c0fa83a943133
[ "BSD-3-Clause" ]
8
2020-04-17T15:20:21.000Z
2021-06-04T01:36:22.000Z
''' 1. filter point cloud with ground truth bounding boxes 2. extract ground truth segments based on ground truth bounding boxes 3. collect dbscan segments 4. save all of them to one pickle file I forgot to save one element for every segment I ended up saving one for every image but this is not ho...
42.733333
191
0.622621
9e9323b9c35bd7b522baf496858a231b2c4391f9
1,381
py
Python
src/cli_commands/interactive_gcode_robot_only.py
rgaensler/gcode
c6a6b617a04490dedefb2bae7b596a2e12ab4ab1
[ "MIT" ]
null
null
null
src/cli_commands/interactive_gcode_robot_only.py
rgaensler/gcode
c6a6b617a04490dedefb2bae7b596a2e12ab4ab1
[ "MIT" ]
314
2020-02-26T12:37:17.000Z
2021-08-02T00:32:32.000Z
src/cli_commands/interactive_gcode_robot_only.py
rgaensler/gcode
c6a6b617a04490dedefb2bae7b596a2e12ab4ab1
[ "MIT" ]
2
2020-11-12T16:07:48.000Z
2020-11-16T09:14:48.000Z
import logging from typing import Optional from src.printer_components.MelfaRobot import MelfaRobot from src.ApplicationExceptions import MelfaBaseException from src.clients.TcpClientR3 import TcpClientR3 from src.GCmd import GCmd def interactive_gcode_robot_only(ip: str, port: int, safe_return: Optional[bool] = Fal...
31.386364
98
0.661839
9e93268f08009e8905586ad96cf367c272a69551
736
py
Python
src/common/migrations/0003_client_created_client_modified.py
danpercic86/e-notary
ba15a9a80e2091593fb088feacfaf9574c816d6e
[ "Apache-2.0" ]
null
null
null
src/common/migrations/0003_client_created_client_modified.py
danpercic86/e-notary
ba15a9a80e2091593fb088feacfaf9574c816d6e
[ "Apache-2.0" ]
null
null
null
src/common/migrations/0003_client_created_client_modified.py
danpercic86/e-notary
ba15a9a80e2091593fb088feacfaf9574c816d6e
[ "Apache-2.0" ]
null
null
null
# Generated by Django 4.0.1 on 2022-01-29 13:43 from django.db import migrations import django.utils.timezone import model_utils.fields class Migration(migrations.Migration): dependencies = [ ('common', '0002_client'), ] operations = [ migrations.AddField( model_name='client...
28.307692
135
0.648098
9e93649df93f1fcee2ae02a51d5a25306fa9d1e2
684
py
Python
tests/data/expected/main/main_use_generic_container_types_standard_collections/models.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
891
2019-07-23T04:23:32.000Z
2022-03-31T13:36:33.000Z
tests/data/expected/main/main_use_generic_container_types_standard_collections/models.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
663
2019-07-23T09:50:26.000Z
2022-03-29T01:56:55.000Z
tests/data/expected/main/main_use_generic_container_types_standard_collections/models.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
108
2019-07-23T08:50:37.000Z
2022-03-09T10:50:22.000Z
# generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 from __future__ import annotations from collections.abc import Mapping, Sequence from enum import Enum from typing import Any, Optional, Union from pydantic import BaseModel class Species(Enum): dog = 'dog' ...
18.486486
70
0.671053
9e936d62d6960f2bb900fee7ed19ecb24fd9954f
52,907
py
Python
google/appengine/api/memcache/__init__.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/api/memcache/__init__.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/api/memcache/__init__.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 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/licenses/LICENSE-2.0 # # Unless required by applicable law o...
35.796346
83
0.67974
9e937b09cef853106fcc0b224cd82f96e98a705a
871
py
Python
atom/proton/python/test/test_goal_config.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2019-04-16T02:11:17.000Z
2021-12-16T22:51:40.000Z
atom/proton/python/test/test_goal_config.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
81
2019-11-19T23:24:28.000Z
2022-03-28T11:35:47.000Z
atom/proton/python/test/test_goal_config.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2020-07-08T02:29:56.000Z
2022-03-28T10:05:33.000Z
# coding: utf-8 """ Hydrogen Proton API Financial engineering module of Hydrogen Atom # noqa: E501 OpenAPI spec version: 1.9.2 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import...
21.243902
79
0.695752
9e9382e1c61ceedc389a5ed8e73c7d27191236b8
633
py
Python
Python-code-snippets-201-300/239-wifi-on-off.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-201-300/239-wifi-on-off.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-201-300/239-wifi-on-off.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
""""Code snippets vol-48-snippet-239 witch WiFi on or off. Download all snippets so far: https://wp.me/Pa5TU8-1yg Blog: stevepython.wordpress.com Requirements: None. origin: https://www.tutorialexample.com/best-practice-to-python-enable-and-disable-wifi-connection-on-win-10-python-tutorial/ """ import os WIFI...
26.375
117
0.763033
9e938ec08aab3aa8bf40c13fa04f727e9776efcd
485
py
Python
terraform_compliance/common/bdd_tags.py
tom-butler/terraform-compliance
810c8874a42b95bca2da748e92473ce569d9ca17
[ "MIT" ]
1
2020-04-21T23:28:38.000Z
2020-04-21T23:28:38.000Z
terraform_compliance/common/bdd_tags.py
avineshwar/terraform-compliance
20fa75221fcce0ef42c919b9b799411c447e3b52
[ "MIT" ]
null
null
null
terraform_compliance/common/bdd_tags.py
avineshwar/terraform-compliance
20fa75221fcce0ef42c919b9b799411c447e3b52
[ "MIT" ]
null
null
null
from terraform_compliance.common.defaults import Defaults def look_for_bdd_tags(_step_obj): _step_obj.context.no_failure = False _step_obj.context.failure_class = None if hasattr(_step_obj, 'all_tags') and len(_step_obj.all_tags) > 0: for tag in _step_obj.all_tags: if tag.name.lower()...
32.333333
70
0.701031
9e9394e7545e5340fa3e7d0ea64b60caafeed0e8
6,842
py
Python
nvflare/private/fed/server/cmd_utils.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
155
2021-08-05T18:05:09.000Z
2022-03-27T15:32:56.000Z
nvflare/private/fed/server/cmd_utils.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
216
2021-12-01T06:07:12.000Z
2022-03-30T23:34:02.000Z
nvflare/private/fed/server/cmd_utils.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
44
2021-11-24T16:03:29.000Z
2022-03-24T23:28:39.000Z
# Copyright (c) 2021-2022, NVIDIA CORPORATION. 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.736842
91
0.617217
9e93a1b87901e2ee08cfda297ed8fb19d5bd6e64
59,687
py
Python
pyrtools/pyramids/filters.py
drwalton/pyrtools
00c055639d2dc887c94bf5adddb7adaa8960fb5f
[ "MIT" ]
54
2019-04-18T06:32:31.000Z
2022-03-24T02:38:08.000Z
pyrtools/pyramids/filters.py
drwalton/pyrtools
00c055639d2dc887c94bf5adddb7adaa8960fb5f
[ "MIT" ]
10
2020-05-18T05:00:56.000Z
2021-10-05T15:07:44.000Z
pyrtools/pyramids/filters.py
drwalton/pyrtools
00c055639d2dc887c94bf5adddb7adaa8960fb5f
[ "MIT" ]
14
2019-05-09T21:00:26.000Z
2022-01-02T14:31:15.000Z
import numpy as np from scipy.signal import convolve def parse_filter(filt, normalize=True): """Parse the name or array like, and return a column shaped filter (which is normalized by default) Used during pyramid construction. Parameters ---------- filt : `str` or `array_like`. Name of t...
61.851813
127
0.524871
9e93b51f491ad7c93e81ba6e6eae1123a5cd8e5b
28,636
py
Python
sabnzbd/rss.py
smilers/sabnzbd
ed0e5bbf9b963113f4962e7aec297266f19d6615
[ "MIT", "PSF-2.0", "0BSD" ]
1,354
2015-01-02T11:53:23.000Z
2022-03-30T01:32:46.000Z
sabnzbd/rss.py
smilers/sabnzbd
ed0e5bbf9b963113f4962e7aec297266f19d6615
[ "MIT", "PSF-2.0", "0BSD" ]
1,742
2015-01-01T20:17:35.000Z
2022-03-30T21:05:00.000Z
sabnzbd/rss.py
smilers/sabnzbd
ed0e5bbf9b963113f4962e7aec297266f19d6615
[ "MIT", "PSF-2.0", "0BSD" ]
410
2015-01-24T05:32:46.000Z
2022-03-20T12:56:49.000Z
#!/usr/bin/python3 -OO # Copyright 2007-2021 The SABnzbd-Team <team@sabnzbd.org> # # This program 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 2 # of the License, or (at your option) any late...
37.778364
113
0.479781
9e93beb811c72b55108138ef1e81fee9f80905ea
5,398
py
Python
rbac/providers/ldap/initial_inbound_sync.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
null
null
null
rbac/providers/ldap/initial_inbound_sync.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
null
null
null
rbac/providers/ldap/initial_inbound_sync.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
1
2018-12-07T10:55:08.000Z
2018-12-07T10:55:08.000Z
#! /usr/bin/env python3 # Copyright 2018 Contributors to Hyperledger Sawtooth # # 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 re...
34.164557
106
0.670989
9e93e024e93b432bb81aeae9abb88581d12e60ea
27,256
py
Python
.eggs/python_cloudfiles-1.7.11-py2.7.egg/cloudfiles/storage_object.py
MQQ/git-bigstore
95f1e37fcda7fdce80502593cec31a44c604cf8a
[ "Apache-2.0" ]
null
null
null
.eggs/python_cloudfiles-1.7.11-py2.7.egg/cloudfiles/storage_object.py
MQQ/git-bigstore
95f1e37fcda7fdce80502593cec31a44c604cf8a
[ "Apache-2.0" ]
null
null
null
.eggs/python_cloudfiles-1.7.11-py2.7.egg/cloudfiles/storage_object.py
MQQ/git-bigstore
95f1e37fcda7fdce80502593cec31a44c604cf8a
[ "Apache-2.0" ]
null
null
null
""" Object operations An Object is analogous to a file on a conventional filesystem. You can read data from, or write data to your Objects. You can also associate arbitrary metadata with them. See COPYING for license information. """ try: from hashlib import md5 except ImportError: from md5 import md5 import...
35.769029
83
0.587834
9e93f0044ec3f593f0378e2a13b71ed256085ce4
19,386
py
Python
volttron/platform/install_agents.py
architpansare/volttron
ea8e7b3c8af9ce08dc736bd8a5c7b513d6b94fe9
[ "Apache-2.0", "BSD-2-Clause" ]
null
null
null
volttron/platform/install_agents.py
architpansare/volttron
ea8e7b3c8af9ce08dc736bd8a5c7b513d6b94fe9
[ "Apache-2.0", "BSD-2-Clause" ]
4
2021-05-28T19:12:54.000Z
2022-02-18T03:07:40.000Z
volttron/platform/install_agents.py
architpansare/volttron
ea8e7b3c8af9ce08dc736bd8a5c7b513d6b94fe9
[ "Apache-2.0", "BSD-2-Clause" ]
3
2021-06-12T19:49:56.000Z
2022-02-12T20:14:38.000Z
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2020, Battelle Memorial Institute. # # 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...
40.471816
123
0.601362
9e9441ff6cb36c995839c53e2d043606f957908a
43,387
py
Python
mesonbuild/dependencies/misc.py
felipeborges/meson
74ae71903370da0f7cd0049af8dd83f0afd68bf8
[ "Apache-2.0" ]
null
null
null
mesonbuild/dependencies/misc.py
felipeborges/meson
74ae71903370da0f7cd0049af8dd83f0afd68bf8
[ "Apache-2.0" ]
null
null
null
mesonbuild/dependencies/misc.py
felipeborges/meson
74ae71903370da0f7cd0049af8dd83f0afd68bf8
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2017 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agree...
37.114628
138
0.582525
9e9451fc77ea73620b3db191cad307306e7efcf5
922
py
Python
setup.py
EPAENERGYSTAR/epathermostat
98aaf571fe8e15e1a372567776081fd9dae7e872
[ "MIT" ]
12
2017-03-08T23:17:44.000Z
2021-10-15T15:56:30.000Z
setup.py
EPAENERGYSTAR/epathermostat
98aaf571fe8e15e1a372567776081fd9dae7e872
[ "MIT" ]
23
2017-10-24T00:07:37.000Z
2021-07-15T14:42:31.000Z
setup.py
EPAENERGYSTAR/epathermostat
98aaf571fe8e15e1a372567776081fd9dae7e872
[ "MIT" ]
11
2017-03-22T22:35:30.000Z
2021-01-01T22:30:14.000Z
from setuptools import setup, find_packages, Command version = __import__('thermostat').get_version() long_description = "Calculate connected thermostat temperature/run-time savings." setup(name='thermostat', version=version, description='Calculate connected thermostat savings', long_description=long_des...
29.741935
81
0.629067
9e945bde64c57f2409bcb9decf351cac67d8b515
12,995
py
Python
LaboratoryExercise3/lab3/naiveBayes/classifier.py
marinaRupe/FER.ArtificialIntelligence
8daf612505e072c72bc1b0f74eab262fee549c6b
[ "MIT" ]
null
null
null
LaboratoryExercise3/lab3/naiveBayes/classifier.py
marinaRupe/FER.ArtificialIntelligence
8daf612505e072c72bc1b0f74eab262fee549c6b
[ "MIT" ]
null
null
null
LaboratoryExercise3/lab3/naiveBayes/classifier.py
marinaRupe/FER.ArtificialIntelligence
8daf612505e072c72bc1b0f74eab262fee549c6b
[ "MIT" ]
2
2019-04-13T08:10:01.000Z
2019-05-25T17:25:49.000Z
import os, sys import util from naiveBayesClassifier import NaiveBayesClassifier from dataLoader import loadDataset ## Static results for validating classifier output, for samples 20-25 from the contest training and test set ## You can ignore this STATIC_RESULTS = { # dataset os.path.join('classifier_data',...
54.831224
178
0.644094
9e94bf0d6a895dd8f3544abe3a4109d99a2b71e1
6,420
py
Python
appengine/findit/findit_v2/services/test/build_util_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/findit_v2/services/test/build_util_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/findit_v2/services/test/build_util_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import mock from go.chromium.org.luci.buildbucket.proto import common_pb2 from go.chromium.org.luci.buildbucket.proto.build_pb2 import Build from go.chromiu...
40.377358
80
0.697508
9e94cb3fe040e09284346f21e0d2e369df9e6311
4,059
py
Python
qui/__init__.py
qtoggle/qui
280bc103d143a1474706d0d50d69a6ad859c553e
[ "Apache-2.0" ]
null
null
null
qui/__init__.py
qtoggle/qui
280bc103d143a1474706d0d50d69a6ad859c553e
[ "Apache-2.0" ]
1
2019-12-04T11:21:33.000Z
2019-12-04T19:46:22.000Z
qui/__init__.py
qtoggle/qui
280bc103d143a1474706d0d50d69a6ad859c553e
[ "Apache-2.0" ]
2
2019-10-03T13:48:19.000Z
2019-12-03T23:37:35.000Z
import hashlib import logging import re import secrets from typing import Any, Dict, Optional from . import settings logger = logging.getLogger(__name__) def configure( name: str, display_name: str, description: str, version: str, debug: bool, theme_color: Optional[str] = None, backgr...
38.292453
118
0.710273
9e94d39bb3efc872a9a229aaef33eb3ee01c650b
126
py
Python
HLWD_Django_dev/Django_mysite/apps/index/views.py
yo1995/Daily_Python_Tasks
211255deead5023cdcea1db4f49a53eedfe762b6
[ "MIT" ]
14
2018-05-21T05:12:25.000Z
2021-11-28T14:49:55.000Z
HLWD_Django_dev/Django_mysite/apps/index/views.py
yo1995/Daily_Python_Tasks
211255deead5023cdcea1db4f49a53eedfe762b6
[ "MIT" ]
2
2018-11-28T20:59:37.000Z
2021-07-27T22:39:33.000Z
HLWD_Django_dev/Django_mysite/apps/index/views.py
yo1995/Daily_Python_Tasks
211255deead5023cdcea1db4f49a53eedfe762b6
[ "MIT" ]
6
2019-03-21T01:07:57.000Z
2021-03-29T03:24:33.000Z
from django.shortcuts import render # Create your views here. def index(request): return render(request, 'index.html')
18
40
0.738095
9e94f339f045f324956669c1613caff32c701de2
56
py
Python
abc/abc133/a/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/abc133/a/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/abc133/a/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N, A, B = map(int, input().split()) print(min(N * A, B))
28
35
0.535714
9e94f7c47d5f377b5de60b48e98c5cfa9dfb6b9c
1,593
py
Python
do_mirandasdr_zfp.py
Meso272/PyTorch-VAE
b1f80082a92c706969a63162ae083b9f7d15d9aa
[ "Apache-2.0" ]
null
null
null
do_mirandasdr_zfp.py
Meso272/PyTorch-VAE
b1f80082a92c706969a63162ae083b9f7d15d9aa
[ "Apache-2.0" ]
null
null
null
do_mirandasdr_zfp.py
Meso272/PyTorch-VAE
b1f80082a92c706969a63162ae083b9f7d15d9aa
[ "Apache-2.0" ]
1
2022-02-11T23:22:41.000Z
2022-02-11T23:22:41.000Z
import os import numpy as np datafolder="/home/jliu447/lossycompression/MIRANDA" ebs=[-x for x in range(0,15)] cr=np.zeros((len(ebs)+1,2),dtype=np.float32) psnr=np.zeros((len(ebs)+1,2),dtype=np.float32) maxpwerr=np.zeros((len(ebs)+1,2),dtype=np.float32) #filelist=os.listdir(datafolder) filelist=["sdrbench_density_f...
29.5
99
0.560578
9e94fc2296fd1ca6cc14212e77680f4cc389fdf7
638
py
Python
toontown/safezone/DistributedGameTableAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/safezone/DistributedGameTableAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/safezone/DistributedGameTableAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.distributed import DistributedObjectAI class DistributedGameTableAI(DistributedObjectAI.DistributedObjectAI): def __init__(self, air): DistributedObjectAI.DistributedObjectAI.__init__(self, air) self.posHpr = (0, 0, 0, 0, 0, 0) # Required Fields: def setPosHpr(self, x, y...
24.538462
70
0.648903
9e950028fbfbf90c24273c467204efd70f1a074b
2,300
py
Python
sdks/python/appcenter_sdk/models/XcodeVersions.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/XcodeVersions.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/XcodeVersions.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class XcodeVersions(...
27.710843
80
0.554783
9e9504c649dd8fa9efed5665842dca84a0cebbf2
1,979
py
Python
finley/test/python/brick.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
finley/test/python/brick.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
finley/test/python/brick.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unt...
27.109589
78
0.682163
9e953064f2ff82d848dd093f87eed6ce8cc7e8ee
223
py
Python
lesson_10_work/Ex2.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
lesson_10_work/Ex2.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
lesson_10_work/Ex2.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
import random print("Введіть число від 1 до 10") inputed_val = int(input()) number = random.randrange(0,11) if inputed_val==number: print("You win!") else: print("You lose, the right number is: ",number )
24.777778
53
0.663677
9e9572a82a844ce603978d1541139136c9b391b6
487
py
Python
tests/data/expected/main_kr/main_modular/foo/bar.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
891
2019-07-23T04:23:32.000Z
2022-03-31T13:36:33.000Z
tests/data/expected/main_kr/main_modular/foo/bar.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
663
2019-07-23T09:50:26.000Z
2022-03-29T01:56:55.000Z
tests/data/expected/main_kr/main_modular/foo/bar.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
108
2019-07-23T08:50:37.000Z
2022-03-09T10:50:22.000Z
# generated by datamodel-codegen: # filename: modular.yaml # timestamp: 1985-10-26T08:21:00+00:00 from __future__ import annotations from typing import Any, Dict, List, Optional from pydantic import BaseModel class Thing(BaseModel): attributes: Optional[Dict[str, Any]] = None class Thang(BaseModel): ...
18.730769
53
0.720739
9e9573d72d2db1f692efbfbdd3b48513e36600a7
1,597
py
Python
example/create_buffer_with_helper_func.py
yamada-github-account/cpprb
0e37e8deef95156c5b0ad8e5bce1577f612e90fa
[ "MIT" ]
13
2019-07-28T14:51:56.000Z
2020-06-22T04:09:06.000Z
example/create_buffer_with_helper_func.py
yamada-github-account/cpprb
0e37e8deef95156c5b0ad8e5bce1577f612e90fa
[ "MIT" ]
1
2019-12-01T23:08:48.000Z
2019-12-03T04:16:42.000Z
example/create_buffer_with_helper_func.py
yamada-github-account/cpprb
0e37e8deef95156c5b0ad8e5bce1577f612e90fa
[ "MIT" ]
2
2020-04-22T23:10:42.000Z
2020-07-28T14:23:55.000Z
# create_buffer_with_helper_func.py # # Create `ReplayBuffer` for non simple space `gym.Env` with helper functions. import gym from cpprb import ReplayBuffer, create_env_dict, create_before_add_func env = gym.make("Blackjack-v0") # https://github.com/openai/gym/blob/master/gym/envs/toy_text/blackjack.py # BlackjackE...
33.270833
80
0.636819
9e957b2bee9622ea6dbdccfbc18a22377f05e2ca
3,400
py
Python
tests/test_callbacks_hooks.py
richlipkin/fastai
4ba76892da5e0a6763a6d0b47395798fcbd0016b
[ "Apache-2.0" ]
null
null
null
tests/test_callbacks_hooks.py
richlipkin/fastai
4ba76892da5e0a6763a6d0b47395798fcbd0016b
[ "Apache-2.0" ]
null
null
null
tests/test_callbacks_hooks.py
richlipkin/fastai
4ba76892da5e0a6763a6d0b47395798fcbd0016b
[ "Apache-2.0" ]
null
null
null
import pytest, torch, fastai from fastai.gen_doc.doctest import this_tests from fastai.basics import * from fastai.callbacks import * from fastai.callbacks.hooks import * from fastai.vision import * from fastai.text import * from fastai.tabular import * from fastai.collab import * use_gpu = torch.cuda.is_available() ...
35.789474
103
0.664118
9e9597d5e69c8df6f4ea2591f1b02a628f78b96e
2,414
py
Python
yaksh/settings.py
tyochans/online_test
4eb754c2e71922819de7390d1b4993a21763de3e
[ "Python-2.0" ]
1
2022-03-21T11:14:17.000Z
2022-03-21T11:14:17.000Z
yaksh/settings.py
tyochans/online_test
4eb754c2e71922819de7390d1b4993a21763de3e
[ "Python-2.0" ]
null
null
null
yaksh/settings.py
tyochans/online_test
4eb754c2e71922819de7390d1b4993a21763de3e
[ "Python-2.0" ]
null
null
null
""" settings for yaksh app. """ from decouple import config # The number of code server processes to run.. N_CODE_SERVERS = config('N_CODE_SERVERS', default=5, cast=int) # The server pool port. This is the server which returns available server # ports so as to minimize load. This is some random number where no oth...
40.915254
79
0.696769
9e9598f1ce8d49726c6f2a5856d3526a5b0e6551
925
py
Python
src/dataset/interpolate/basic/MnistTransformedInterpolateLoader.py
dhruvtapasvi/implementation
964980f431517f4548a87172a05107cdf700fb84
[ "MIT" ]
1
2020-05-25T10:24:58.000Z
2020-05-25T10:24:58.000Z
src/dataset/interpolate/basic/MnistTransformedInterpolateLoader.py
dhruvtapasvi/implementation
964980f431517f4548a87172a05107cdf700fb84
[ "MIT" ]
1
2017-12-18T02:16:44.000Z
2017-12-18T02:16:44.000Z
src/dataset/interpolate/basic/MnistTransformedInterpolateLoader.py
dhruvtapasvi/implementation
964980f431517f4548a87172a05107cdf700fb84
[ "MIT" ]
null
null
null
import numpy as np from dataset.loader.DatasetLoader import DatasetLoader from dataset.interpolate.InterpolateDatasetLoader import InterpolateDatasetLoader from dataset.interpolate.process.CreateTransformedInterpolateData import CreateTransformedInterpolateData import dataset.info.MnistTransformedInfo as mnistTransfor...
40.217391
105
0.803243
9e9599d14199282957313e22b4276191759b0852
3,060
py
Python
snf/experiments/conv1x1_glow_mnist.py
AnonICML/SelfNormalizingFlows
f924e786b83e4766241c6ece90b5195a3acc9e64
[ "MIT" ]
66
2020-11-17T12:06:52.000Z
2022-02-05T23:58:15.000Z
snf/experiments/conv1x1_glow_mnist.py
AnonICML/SelfNormalizingFlows
f924e786b83e4766241c6ece90b5195a3acc9e64
[ "MIT" ]
1
2021-07-26T19:29:32.000Z
2021-07-27T16:23:03.000Z
snf/experiments/conv1x1_glow_mnist.py
AnonICML/SelfNormalizingFlows
f924e786b83e4766241c6ece90b5195a3acc9e64
[ "MIT" ]
8
2020-11-17T17:42:51.000Z
2022-03-14T14:12:37.000Z
import torch from torch import optim from torch.optim.lr_scheduler import StepLR from snf.layers import Dequantization, Normalization from snf.layers.distributions.uniform import UniformDistribution from snf.layers.splitprior import SplitPrior from snf.layers.flowsequential import FlowSequential from snf.layers.conv1x...
36
102
0.644118
9e95aa3761d0cdb3d5e900aeeee5d649139ff2e4
7,892
py
Python
sigpipes/joiner.py
ki-prf-ujep/signal-pipes
79dbf8eb3525f83c9e9562d3c1a92b9b618121eb
[ "Apache-2.0" ]
2
2019-11-18T01:13:17.000Z
2021-03-17T19:13:00.000Z
sigpipes/joiner.py
ki-prf-ujep/signal-pipes
79dbf8eb3525f83c9e9562d3c1a92b9b618121eb
[ "Apache-2.0" ]
1
2021-03-17T16:56:12.000Z
2021-03-17T16:56:12.000Z
sigpipes/joiner.py
ki-prf-ujep/signal-pipes
79dbf8eb3525f83c9e9562d3c1a92b9b618121eb
[ "Apache-2.0" ]
2
2019-06-12T22:34:19.000Z
2021-03-25T14:20:39.000Z
import numpy as np from sigpipes.sigcontainer import SigContainer from sigpipes.sigoperator import SigOperator from warnings import warn from typing import Sequence, List from scipy.signal import correlate, convolve from deprecated import deprecated def common_prefix_index(*args): index = 0 for p in zip(*args...
41.756614
118
0.628358
9e95dc23014495e695b72abed4e35c1847346982
6,482
py
Python
algos/auth_resolver.py
erikjohnston/test-state-ideas
9b12af182181a449396b491a8cdb9b434a567f0e
[ "MIT" ]
null
null
null
algos/auth_resolver.py
erikjohnston/test-state-ideas
9b12af182181a449396b491a8cdb9b434a567f0e
[ "MIT" ]
null
null
null
algos/auth_resolver.py
erikjohnston/test-state-ideas
9b12af182181a449396b491a8cdb9b434a567f0e
[ "MIT" ]
null
null
null
"""A prototype auth resolver that includes auth chains in its calculations. Broadly speaking works by ordering all events that are different between the different states (and their auth chains) by ordering by power level, ensuring that their dependencies appear before them. This list is then iterated through and each ...
31.31401
79
0.633292
9e95ebc334f6f43d9833159d5e717027aafe1688
8,737
py
Python
macOS/Xcode/Maestral/Maestral/app_packages/survey/api.py
productinfo/maestral-cocoa
d1626c68ace1939bd53cda53c53cbb43c9fb7a8e
[ "MIT" ]
8
2020-11-13T08:48:01.000Z
2021-12-16T06:30:27.000Z
macOS/Xcode/Maestral/Maestral/app_packages/survey/api.py
productinfo/maestral-cocoa
d1626c68ace1939bd53cda53c53cbb43c9fb7a8e
[ "MIT" ]
4
2021-08-23T20:41:39.000Z
2021-11-16T08:43:58.000Z
macOS/Xcode/Maestral/Maestral/app_packages/survey/api.py
productinfo/maestral-cocoa
d1626c68ace1939bd53cda53c53cbb43c9fb7a8e
[ "MIT" ]
1
2022-01-05T08:56:59.000Z
2022-01-05T08:56:59.000Z
import sys import types import wrapio import functools import os import collections from . import io from . import cursor from . import tools from . import machines from . import display from . import helpers __all__ = () # [measure] > (visualize) > [edit / select] > (update) > (finish) > [respond] _io = io.IO(s...
17.72211
79
0.542177
9e96284876b2ea2206b6bd0187871c11f37201b7
1,902
py
Python
LC/369.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/369.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/369.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def plusOne(self, head): """ :type head: ListNode :rtype: ListNode """ ## naive way: 1. get the num;...
30.677419
74
0.480547
9e9697516ab78a14222cf8a06f14ecd9a882071d
2,226
py
Python
models/svm_model.py
jaeminsung/ml_stock_trading
32f5305f5111ba86eb428e982ac6f0f18842558d
[ "Apache-2.0" ]
null
null
null
models/svm_model.py
jaeminsung/ml_stock_trading
32f5305f5111ba86eb428e982ac6f0f18842558d
[ "Apache-2.0" ]
null
null
null
models/svm_model.py
jaeminsung/ml_stock_trading
32f5305f5111ba86eb428e982ac6f0f18842558d
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- import os import sys curDir = os.path.dirname(__file__) sys.path.append('{0}/../scripts/'.format(curDir)) from model import Model import numpy as np import pandas as pd from sklearn import svm from sklearn.model_selection import train_test_split from sklearn.feature_selection import SelectFrom...
30.493151
98
0.654987
9e96b5555c3c89f80ab19f9063f86ccd11f37937
788
py
Python
utils/bld/bld.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-04-13T07:14:34.000Z
2021-04-13T07:14:34.000Z
utils/bld/bld.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
2
2021-06-02T03:14:19.000Z
2022-02-11T23:21:24.000Z
utils/bld/bld.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-05-07T13:26:50.000Z
2021-05-07T13:26:50.000Z
import sys import click from pathlib import Path from shutil import copytree, rmtree # @click.option('--name', prompt='01-Ins_First_Activity', help='The Activity Folder Name.') @click.command() @click.argument('name') def cli(name): # Create Paths root = Path(name) solved = root / "Solved" unsolved ...
21.297297
91
0.633249
9e96b7232ae696c7c250544a5c6f2c075ac5314d
14,310
py
Python
egs/word_embedding/steps/tfrnnlm/lstm_skipgram.py
charlesliucn/LanMIT
537dab22335a21285699776ce66d95cb14c3db52
[ "Apache-2.0" ]
17
2019-07-08T08:34:50.000Z
2021-11-19T13:39:29.000Z
egs/word_embedding/steps/tfrnnlm/lstm_skipgram.py
charlesliucn/kaldi-lm
537dab22335a21285699776ce66d95cb14c3db52
[ "Apache-2.0" ]
null
null
null
egs/word_embedding/steps/tfrnnlm/lstm_skipgram.py
charlesliucn/kaldi-lm
537dab22335a21285699776ce66d95cb14c3db52
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import os import sys import time import math import reader import random import inspect import collections import numpy as np import tensorflow as tf reload(sys) sys.setdefaultencoding("utf-8") os.environ["CUDA_VISIBLE_DEVICES"] = "5" config = tf.ConfigProto() config.gpu_options.per_process_...
34.152745
92
0.71782
9e96cef77a0f15da729143bbf7ac25054a5cdc4d
465
py
Python
appflow/views/index.py
dyvenia/timesheets
5120acd66cbeb3ce43bff5acfee4cd6b14882962
[ "MIT" ]
13
2021-09-27T14:53:15.000Z
2022-02-15T05:48:01.000Z
appflow/views/index.py
dyvenia/timeflow
7852872f591fbdb88be19f7b41ebb226e805fbd9
[ "MIT" ]
62
2022-02-15T09:52:52.000Z
2022-03-31T12:50:13.000Z
appflow/views/index.py
dyvenia/timesheets
5120acd66cbeb3ce43bff5acfee4cd6b14882962
[ "MIT" ]
4
2022-03-02T15:24:03.000Z
2022-03-30T10:59:38.000Z
from email.mime import base from fastapi import APIRouter from fastapi.responses import HTMLResponse from dominate import tags as tg from .base import base_html router = APIRouter() @router.get("/", response_class=HTMLResponse) async def main(): doc = base_html() ul = tg.ul() ul += tg.li(tg.a("Login in...
22.142857
72
0.686022
9e96f034dc4d1aae0673e6541c398fa5272b3ecc
1,121
py
Python
runtests.py
allyjweir/django-url-mapper
65cb2905790fc405688f5bf1f484256bd674f6e7
[ "MIT" ]
null
null
null
runtests.py
allyjweir/django-url-mapper
65cb2905790fc405688f5bf1f484256bd674f6e7
[ "MIT" ]
1
2016-09-13T11:44:57.000Z
2016-09-13T11:44:57.000Z
runtests.py
allyjweir/django-url-mapper
65cb2905790fc405688f5bf1f484256bd674f6e7
[ "MIT" ]
1
2017-04-23T21:07:49.000Z
2017-04-23T21:07:49.000Z
from django.conf import settings from django.core.management import call_command settings.configure( DATABASES={ "default": { "ENGINE": "django.db.backends.sqlite3", } }, INSTALLED_APPS=( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.cont...
24.911111
63
0.609277