hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
3614d33d41608cc98e11c32c8f6332442dec7bc8
44,167
py
Python
statsmodels/tsa/tests/results/arima111_css_results.py
yarikoptic/statsmodels
f990cb1a1ef0c9883c9394444e6f9d027efabec6
[ "BSD-3-Clause" ]
34
2018-07-13T11:30:46.000Z
2022-01-05T13:48:10.000Z
venv/lib/python3.6/site-packages/statsmodels/tsa/tests/results/arima111_css_results.py
HeyWeiPan/vnpy_crypto
844381797a475a01c05a4e162592a5a6e3a48032
[ "MIT" ]
6
2015-08-28T16:59:03.000Z
2019-04-12T22:29:01.000Z
venv/lib/python3.6/site-packages/statsmodels/tsa/tests/results/arima111_css_results.py
HeyWeiPan/vnpy_crypto
844381797a475a01c05a4e162592a5a6e3a48032
[ "MIT" ]
28
2015-04-01T20:02:25.000Z
2021-07-03T00:09:28.000Z
import numpy as np llf = np.array([-242.06033399744]) nobs = np.array([ 202]) k = np.array([ 4]) k_exog = np.array([ 1]) sigma = np.array([ .80201496146073]) chi2 = np.array([ 348.43324197088]) df_model = np.array([ 2]) k_ar = np.array([ 1]) k...
34.451638
229
0.402042
d65b4b8b488f7aceea6d7dc05230aa8a1bf929c9
3,014
py
Python
core/setup.py
tconbeer/dbt
bf867f6aff79fd9dad98ed36ceecd4aa181fe106
[ "Apache-2.0" ]
null
null
null
core/setup.py
tconbeer/dbt
bf867f6aff79fd9dad98ed36ceecd4aa181fe106
[ "Apache-2.0" ]
null
null
null
core/setup.py
tconbeer/dbt
bf867f6aff79fd9dad98ed36ceecd4aa181fe106
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys if sys.version_info < (3, 6): print('Error: dbt does not support this version of Python.') print('Please upgrade to Python 3.6 or higher.') sys.exit(1) from setuptools import setup try: from setuptools import find_namespace_packages except ImportError: #...
29.54902
78
0.584605
4c6724b907fa4faab66d93b06519ede0cb2ab4c2
4,889
py
Python
scripts/google-java-format-diff.py
taesu82/google-java-format
5202af98006d744aafc2ba7cba2fa19a14e9b7b1
[ "Apache-2.0" ]
4
2019-11-08T16:42:02.000Z
2021-11-11T17:56:38.000Z
scripts/google-java-format-diff.py
taesu82/google-java-format
5202af98006d744aafc2ba7cba2fa19a14e9b7b1
[ "Apache-2.0" ]
null
null
null
scripts/google-java-format-diff.py
taesu82/google-java-format
5202af98006d744aafc2ba7cba2fa19a14e9b7b1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2.7 # #===- google-java-format-diff.py - google-java-format Diff Reformatter -----===# # # The LLVM Compiler Infrastructure # # This file is distributed under the University of Illinois Open Source # License. See LICENSE.TXT for details. # #===-----------------------------------...
35.948529
90
0.605236
2b4fd39b448316935008160974f748dcfb693fff
15,052
py
Python
python/oneflow/compatible/single_client/__init__.py
mosout/oneflow
afbb221d900f1a340568ae2462b2022f8fcc4b3d
[ "Apache-2.0" ]
1
2022-01-19T07:50:28.000Z
2022-01-19T07:50:28.000Z
python/oneflow/compatible/single_client/__init__.py
mosout/oneflow
afbb221d900f1a340568ae2462b2022f8fcc4b3d
[ "Apache-2.0" ]
null
null
null
python/oneflow/compatible/single_client/__init__.py
mosout/oneflow
afbb221d900f1a340568ae2462b2022f8fcc4b3d
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow 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 law or agr...
35.5
88
0.821884
aa303c4affd686620d30062a8a518957c2f54ef1
1,830
py
Python
tests/test_synthesizer.py
SebastianWolf-SAP/data-synthesis-for-machine-learning
b622739776cedf57a906d7304a96aa31f767340c
[ "Apache-2.0" ]
12
2019-10-24T08:52:41.000Z
2021-12-20T21:54:09.000Z
tests/test_synthesizer.py
SebastianWolf-SAP/data-synthesis-for-machine-learning
b622739776cedf57a906d7304a96aa31f767340c
[ "Apache-2.0" ]
7
2020-01-07T23:02:42.000Z
2022-02-17T21:36:19.000Z
tests/test_synthesizer.py
SebastianWolf-SAP/data-synthesis-for-machine-learning
b622739776cedf57a906d7304a96aa31f767340c
[ "Apache-2.0" ]
9
2019-12-16T19:51:48.000Z
2022-02-27T18:40:40.000Z
from .testdata import adults01 def test_calculate_degree(): from ds4ml.synthesizer import calculate_degree degree = calculate_degree(8140, 6, 0.05) assert 0 < degree <= 6 / 2 def test_greedy_bayes(): from pandas import DataFrame from ds4ml.synthesizer import greedy_bayes network = greedy_ba...
28.153846
63
0.564481
aa3b89c0810862bbf3b19b25408247533e949c3b
3,217
py
Python
tests/oauth2/rfc6749/endpoints/test_revocation_endpoint.py
garciasolero/oauthlib
8dadaf0fde2b502df359632853fda00963dce3f5
[ "BSD-3-Clause" ]
1
2015-10-22T09:49:50.000Z
2015-10-22T09:49:50.000Z
tests/oauth2/rfc6749/endpoints/test_revocation_endpoint.py
garciasolero/oauthlib
8dadaf0fde2b502df359632853fda00963dce3f5
[ "BSD-3-Clause" ]
null
null
null
tests/oauth2/rfc6749/endpoints/test_revocation_endpoint.py
garciasolero/oauthlib
8dadaf0fde2b502df359632853fda00963dce3f5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from json import loads from mock import MagicMock from oauthlib.common import urlencode from oauthlib.oauth2 import RequestValidator, RevocationEndpoint from ....unittest import TestCase class RevocationEndpointTest(TestCase): de...
41.779221
77
0.607087
2c1b6f77bf8583fbc12ecc39334cc773eb7ea663
1,536
py
Python
app/infrastructures/repositories/user_repository.py
harokki/fastapi-authenticated
baca823d3489739843b4df68f57fa785da7bf50d
[ "MIT" ]
null
null
null
app/infrastructures/repositories/user_repository.py
harokki/fastapi-authenticated
baca823d3489739843b4df68f57fa785da7bf50d
[ "MIT" ]
null
null
null
app/infrastructures/repositories/user_repository.py
harokki/fastapi-authenticated
baca823d3489739843b4df68f57fa785da7bf50d
[ "MIT" ]
null
null
null
from contextlib import AbstractContextManager from typing import Callable, List from sqlalchemy.orm import Session from app.domains.entities.user import User from app.domains.repositories.user_repository import UserRepository from app.schemas.user import UserCreateSchema class SAUserRepository(UserRepository): ...
33.391304
88
0.66276
7e511b00d49dfedea45fc30dc21c606534dc8abc
83
py
Python
pys/namta.py
nahian-147/my_codes
9729c56b227d75354ea49982720de94ed1c21909
[ "MIT" ]
null
null
null
pys/namta.py
nahian-147/my_codes
9729c56b227d75354ea49982720de94ed1c21909
[ "MIT" ]
null
null
null
pys/namta.py
nahian-147/my_codes
9729c56b227d75354ea49982720de94ed1c21909
[ "MIT" ]
null
null
null
n = int(input()) for k in range(1,11): print(str(n)+'x'+str(k)+'='+str(n*k))
16.6
39
0.506024
2785c0c59e943376320d0aafd538da33ef19f8a8
11,215
py
Python
pymc/backends/ndarray.py
michaeloriordan/pymc
a099292f1de592447abc54f223ecd6e5d93a95dc
[ "Apache-2.0" ]
null
null
null
pymc/backends/ndarray.py
michaeloriordan/pymc
a099292f1de592447abc54f223ecd6e5d93a95dc
[ "Apache-2.0" ]
null
null
null
pymc/backends/ndarray.py
michaeloriordan/pymc
a099292f1de592447abc54f223ecd6e5d93a95dc
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The PyMC Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
34.937695
98
0.605707
3337008f4b17aa8eb9f627980ac7000d0d391fb2
6,393
py
Python
gector/datareader.py
convobox/gector
348be658027f2d16ce2e883755a1fb4a9222831e
[ "Apache-2.0" ]
null
null
null
gector/datareader.py
convobox/gector
348be658027f2d16ce2e883755a1fb4a9222831e
[ "Apache-2.0" ]
null
null
null
gector/datareader.py
convobox/gector
348be658027f2d16ce2e883755a1fb4a9222831e
[ "Apache-2.0" ]
null
null
null
"""Tweaked AllenNLP dataset reader.""" import logging import re from random import random from typing import Dict, List from allennlp.common.file_utils import cached_path from allennlp.data.dataset_readers.dataset_reader import DatasetReader from allennlp.data.fields import TextField, SequenceLabelField, MetadataField...
41.784314
107
0.595026
51de8faf5a3d7e6151cc4ab124c94f0d802206e4
9,869
py
Python
testing/test_env.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
testing/test_env.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
testing/test_env.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python # Copyright (c) 2012 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. """Sets environment variables needed to run a chromium unit test.""" import io import os import stat import subprocess import sys ...
35.120996
80
0.69004
b88b21df9859466fa2bd0ca00e69abfbe371bd8c
2,091
py
Python
rapidsms/messages/incoming.py
Code4Salone/rapidsms
6f8354c0af04c1eccfa051782fcd71a6095532e9
[ "BSD-3-Clause" ]
null
null
null
rapidsms/messages/incoming.py
Code4Salone/rapidsms
6f8354c0af04c1eccfa051782fcd71a6095532e9
[ "BSD-3-Clause" ]
2
2018-08-03T18:48:09.000Z
2019-01-02T19:33:23.000Z
rapidsms/messages/incoming.py
Code4Salone/rapidsms
6f8354c0af04c1eccfa051782fcd71a6095532e9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 from rapidsms.messages.base import MessageBase from rapidsms.messages.error import ErrorMessage class IncomingMessage(MessageBase): """Inbound message that provides an API to handle responses. """ def __init__(self, *args, **kwargs): if 'receiv...
36.684211
77
0.643711
e3df486cc520c7fa5e11d066dbea40fe85f266d5
3,293
py
Python
conans/test/unittests/client/conf/config_installer_test.py
laundry-96/conan
fd938f7220ca042d94c42ec5eb607ee69c6785a3
[ "MIT" ]
1
2021-06-14T01:39:27.000Z
2021-06-14T01:39:27.000Z
conans/test/unittests/client/conf/config_installer_test.py
laundry-96/conan
fd938f7220ca042d94c42ec5eb607ee69c6785a3
[ "MIT" ]
2
2018-02-22T21:28:04.000Z
2018-09-28T13:51:47.000Z
conans/test/unittests/client/conf/config_installer_test.py
laundry-96/conan
fd938f7220ca042d94c42ec5eb607ee69c6785a3
[ "MIT" ]
1
2021-06-03T23:08:43.000Z
2021-06-03T23:08:43.000Z
import os import unittest from parameterized import parameterized from conans.client.conf.config_installer import _process_config_install_item from conans.errors import ConanException from conans.test.utils.test_files import temp_folder from conans.util.files import save class ConfigInstallerTests(unittest.TestCase)...
49.149254
111
0.666262
443e67ef077448665b781b7cbd4b746ddf066e0b
3,291
py
Python
setup.py
sap-archive/cloud-sapjwt
b5244e68bc1f1b7bc2e69f8a10115cf1666d5e1b
[ "BSD-Source-Code" ]
2
2019-07-09T21:23:18.000Z
2019-11-04T18:52:47.000Z
setup.py
sap-archive/cloud-sapjwt
b5244e68bc1f1b7bc2e69f8a10115cf1666d5e1b
[ "BSD-Source-Code" ]
null
null
null
setup.py
sap-archive/cloud-sapjwt
b5244e68bc1f1b7bc2e69f8a10115cf1666d5e1b
[ "BSD-Source-Code" ]
null
null
null
"""setup for sap-py-jwt See: https://github.com/SAP-samples/cloud-sapjwt """ # To use a consistent encoding from codecs import open # pylint: disable=W0622 from os import path # Always prefer setuptools over distutils from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) # pylint: d...
37.397727
91
0.618353
0f2a0c417595319bddc65b4145e1c2da365aedf7
78
py
Python
sppas/sppas/src/ui/phoenix/page_analyze/__init__.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/ui/phoenix/page_analyze/__init__.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/ui/phoenix/page_analyze/__init__.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
from .analyze import sppasAnalyzePanel __all__ = ( "sppasAnalyzePanel" )
13
38
0.74359
31e1e3fd02b33fcfd3d5a1999511688c10cdff65
1,754
py
Python
tensorflow_federated/python/learning/reconstruction/__init__.py
zhihansh/federated-oss
38cfcb05702ff7297db76d3ccb5f5afef53ca09b
[ "Apache-2.0" ]
1
2022-02-08T01:11:14.000Z
2022-02-08T01:11:14.000Z
tensorflow_federated/python/learning/reconstruction/__init__.py
zhihansh/federated-oss
38cfcb05702ff7297db76d3ccb5f5afef53ca09b
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/learning/reconstruction/__init__.py
zhihansh/federated-oss
38cfcb05702ff7297db76d3ccb5f5afef53ca09b
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, The TensorFlow Federated 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 o...
64.962963
113
0.86146
e48cdf7a4ce34e8080bd1d05ffd87fcc3c2f1560
557
py
Python
advertorch/setup.py
sleepstagingrest/rest
cf0de7ae82b6b74fe23e9d057214970cd3c9672d
[ "MIT" ]
18
2020-02-03T07:14:40.000Z
2021-12-20T18:45:43.000Z
advertorch/setup.py
sleepstagingrest/rest
cf0de7ae82b6b74fe23e9d057214970cd3c9672d
[ "MIT" ]
11
2020-01-28T23:16:25.000Z
2022-02-10T01:04:56.000Z
advertorch/setup.py
sleepstagingrest/REST
cf0de7ae82b6b74fe23e9d057214970cd3c9672d
[ "MIT" ]
2
2020-08-20T08:15:09.000Z
2021-02-23T07:30:40.000Z
# Copyright (c) 2018-present, Royal Bank of Canada. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import os from setuptools import setup from setuptools import find_packages with open(os.path.join(os.path.dirname(__f...
25.318182
78
0.728905
decd98e50120348080b7b12e71cd5bd4863de355
2,981
py
Python
q1.py
rklogan/Finite-Element-Music-Synthesis
7d250678f7bdf6caebbd9a375faef7f3ed69cf16
[ "Unlicense" ]
null
null
null
q1.py
rklogan/Finite-Element-Music-Synthesis
7d250678f7bdf6caebbd9a375faef7f3ed69cf16
[ "Unlicense" ]
null
null
null
q1.py
rklogan/Finite-Element-Music-Synthesis
7d250678f7bdf6caebbd9a375faef7f3ed69cf16
[ "Unlicense" ]
null
null
null
import sys import numpy as np import time OUTPUT_TIMING_DATA = False #define constants grid_size = 4 eta = 0.0002 rho = 0.5 G = 0.75 #debug function. Not used in submission def print_grid(grid, current_only=False): for row in grid: string = '' for col in row: if current_only: ...
27.859813
77
0.526669
beae614adbbb166cde6e1a7de77bec9bfe772ade
1,549
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/11_features/numtrees_30/rule_12.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/11_features/numtrees_30/rule_12.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/11_features/numtrees_30/rule_12.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Passanger, obj[1]: Time, obj[2]: Coupon, obj[3]: Age, obj[4]: Education, obj[5]: Occupation, obj[6]: Bar, obj[7]: Coffeehouse, obj[8]: Restaurant20to50, obj[9]: Direction_same, obj[10]: Distance # {"feature": "Age", "instances": 34, "metric_value": 0.7871, "depth": 1} if obj[3]>1: # ...
36.023256
226
0.562298
fce225e87c40716a539b67a0324275c25ed9202f
897
py
Python
test/test_customer_video_stats_list_response.py
kinow-io/kaemo-python-sdk
610fce09e3a9e631babf09195b0492959d9e4d56
[ "Apache-2.0" ]
1
2017-05-03T12:48:22.000Z
2017-05-03T12:48:22.000Z
test/test_customer_video_stats_list_response.py
kinow-io/kaemo-python-sdk
610fce09e3a9e631babf09195b0492959d9e4d56
[ "Apache-2.0" ]
null
null
null
test/test_customer_video_stats_list_response.py
kinow-io/kaemo-python-sdk
610fce09e3a9e631babf09195b0492959d9e4d56
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Server API Reference for Server API (REST/Json) OpenAPI spec version: 2.0.9 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest import kinow_client from kinow_client.rest import A...
20.860465
103
0.735786
fd780e955efca20dd3a1104f87d39fd1fd8b9148
339
py
Python
setup.py
jrminter/ezwrappers
89da5bb0f555901813a4da0e1c60a193c3c77d65
[ "MIT" ]
null
null
null
setup.py
jrminter/ezwrappers
89da5bb0f555901813a4da0e1c60a193c3c77d65
[ "MIT" ]
null
null
null
setup.py
jrminter/ezwrappers
89da5bb0f555901813a4da0e1c60a193c3c77d65
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='ezwrappers', version='0.0.910.dev0', description='Utility functions for python 3.x w/o hyperspy', url='http://github.com/jrminter/ezwrappers', author='Many', author_email='jrminter@gmail.com', license='MIT', packages=['ezwrappers'], ...
28.25
66
0.651917
56d2e8119b5d2f8b78119df16d4f7749b7e076d8
4,371
py
Python
light_field_neural_rendering/src/models/transformer.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-02-25T05:34:44.000Z
2022-02-25T05:34:44.000Z
light_field_neural_rendering/src/models/transformer.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
light_field_neural_rendering/src/models/transformer.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
30.566434
94
0.693663
b13d9ed8055b9a5c7e3cb6f4e27e7a6594da50a6
259
py
Python
exercises/ex10.py
gravyboat/python-exercises
50162a9e6f3d51fbb2c15ed08fcecba810d61338
[ "MIT" ]
null
null
null
exercises/ex10.py
gravyboat/python-exercises
50162a9e6f3d51fbb2c15ed08fcecba810d61338
[ "MIT" ]
null
null
null
exercises/ex10.py
gravyboat/python-exercises
50162a9e6f3d51fbb2c15ed08fcecba810d61338
[ "MIT" ]
null
null
null
#!/usr/bin/python def overlapping(first_list, second_list): ''' Takes two lists and checks if they have at least one number in common ''' for item in first_list: if item in second_list: return(True) return(False)
21.583333
73
0.625483
d6990d9cd0c07fe8dfe0c1623a5f20fdd38db5ed
3,577
py
Python
aav/util/model_utils.py
muell-monster/google-research
04d2024f4723bc4be3d639a668c19fb1f6a31478
[ "Apache-2.0" ]
2
2021-01-06T04:28:23.000Z
2021-02-24T13:46:04.000Z
aav/util/model_utils.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
7
2021-11-10T19:44:38.000Z
2022-02-10T06:48:39.000Z
aav/util/model_utils.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
4
2021-02-08T10:25:45.000Z
2021-04-17T14:46:26.000Z
# coding=utf-8 # Copyright 2020 The Google Research 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 applicab...
35.77
80
0.727705
f9a7c684dd923abc734b92869ee33441ddc5a8dd
1,510
py
Python
game/passwordValidator.py
MayankShrivastava17/algorithms-python-hacktoberfest-2021
bfb06448229c6a00f81f126e62f212205ce7d7e7
[ "MIT" ]
4
2021-10-01T13:22:20.000Z
2021-10-04T11:39:25.000Z
game/passwordValidator.py
MayankShrivastava17/algorithms-python-hacktoberfest-2021
bfb06448229c6a00f81f126e62f212205ce7d7e7
[ "MIT" ]
2
2021-10-11T16:56:03.000Z
2021-10-30T14:25:25.000Z
game/passwordValidator.py
MayankShrivastava17/algorithms-python-hacktoberfest-2021
bfb06448229c6a00f81f126e62f212205ce7d7e7
[ "MIT" ]
10
2021-10-11T12:28:48.000Z
2021-10-31T16:37:02.000Z
upper=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"] upper_new=[] lower=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] lower_new=[] number=["0","1","2","3","4","5","6","7","8","9"] number_new=[] char...
27.454545
111
0.49404
c947c21401e6c3311c0b41b322793fcd77e2e4d7
10,328
py
Python
docs/conf.py
invenio-toaster/invenio-marc21
98f7259d5dc14763fb44cd90908a0c9b802ec605
[ "MIT" ]
1
2016-06-10T04:50:20.000Z
2016-06-10T04:50:20.000Z
docs/conf.py
invenio-toaster/invenio-marc21
98f7259d5dc14763fb44cd90908a0c9b802ec605
[ "MIT" ]
41
2016-02-11T15:21:32.000Z
2018-03-15T16:06:30.000Z
docs/conf.py
invenio-toaster/invenio-marc21
98f7259d5dc14763fb44cd90908a0c9b802ec605
[ "MIT" ]
25
2016-02-12T09:51:21.000Z
2021-12-07T08:59:05.000Z
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2016-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. from __future__ import print_function import os import sphinx.environment from docu...
31.392097
85
0.70488
252564c77cefbb21c122f70fa88a032329e73b7e
112
py
Python
pages/urls.py
chulth/CV
79be708588455bf2894b005734fb137eb5e338e1
[ "CC0-1.0" ]
3
2021-12-08T21:36:52.000Z
2021-12-15T15:49:33.000Z
pages/urls.py
chulth/CV
79be708588455bf2894b005734fb137eb5e338e1
[ "CC0-1.0" ]
1
2022-02-28T22:50:06.000Z
2022-02-28T22:50:06.000Z
pages/urls.py
chulth/CV
79be708588455bf2894b005734fb137eb5e338e1
[ "CC0-1.0" ]
1
2022-02-15T17:18:15.000Z
2022-02-15T17:18:15.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), ]
18.666667
40
0.651786
8ede39824e9633bb4c1b875280ccb4d72874754c
342
py
Python
DjangoApp/stwms_app/migrations/0021_remove_rawmaterialrequest_status.py
EricBrianAnil/smarTangle-auth0
777a260260dfc36b338c141aac9a69d475f0adeb
[ "Apache-2.0" ]
null
null
null
DjangoApp/stwms_app/migrations/0021_remove_rawmaterialrequest_status.py
EricBrianAnil/smarTangle-auth0
777a260260dfc36b338c141aac9a69d475f0adeb
[ "Apache-2.0" ]
null
null
null
DjangoApp/stwms_app/migrations/0021_remove_rawmaterialrequest_status.py
EricBrianAnil/smarTangle-auth0
777a260260dfc36b338c141aac9a69d475f0adeb
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.3 on 2020-06-24 03:58 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('stwms_app', '0020_auto_20200624_0927'), ] operations = [ migrations.RemoveField( model_name='rawmaterialrequest', name='stat...
19
49
0.608187
dc9a0e0e0c27aa4732a607d0281f94234dbcf5ef
385
py
Python
src/fidesops/schemas/redis_cache.py
eastandwestwind/fidesops
93e2881c0fdc30075b7cc22024965d18cec0bdea
[ "Apache-2.0" ]
41
2021-11-01T23:53:43.000Z
2022-03-22T23:07:56.000Z
src/fidesops/schemas/redis_cache.py
eastandwestwind/fidesops
93e2881c0fdc30075b7cc22024965d18cec0bdea
[ "Apache-2.0" ]
235
2021-11-01T20:31:55.000Z
2022-03-31T15:40:58.000Z
src/fidesops/schemas/redis_cache.py
eastandwestwind/fidesops
93e2881c0fdc30075b7cc22024965d18cec0bdea
[ "Apache-2.0" ]
12
2021-11-02T00:44:51.000Z
2022-03-14T16:23:10.000Z
from typing import Optional from pydantic import Extra from fidesops.schemas.base_class import BaseSchema class PrivacyRequestIdentity(BaseSchema): """Some PII grouping pertaining to a human""" phone_number: Optional[str] = None email: Optional[str] = None class Config: """Only allow phone_...
22.647059
62
0.719481
4ac8e1730e0561df713a47a6a427a67c30b8b871
765
py
Python
buuctf/31-0ctf_2018_heapstorm2/exp.py
RoderickChan/ctf_tasks
a021c6d86cade26448d099933f3caa856ed28360
[ "MIT" ]
null
null
null
buuctf/31-0ctf_2018_heapstorm2/exp.py
RoderickChan/ctf_tasks
a021c6d86cade26448d099933f3caa856ed28360
[ "MIT" ]
null
null
null
buuctf/31-0ctf_2018_heapstorm2/exp.py
RoderickChan/ctf_tasks
a021c6d86cade26448d099933f3caa856ed28360
[ "MIT" ]
null
null
null
#! /usr/bin/python3 from pwncli import * cli_script() def allocate(p:tube, size): p.sendlineafter("Command: ", "1") p.sendlineafter("Size: ", str(size)) p.recvline() def update(p:tube, idx, size, content): p.sendlineafter("Command: ", "2") p.sendlineafter("Index: ", str(idx)) p.sendlineafter...
20.675676
40
0.607843
7f60a3dcf4ce91ddc38916e9a81b059da308a945
232
py
Python
reverse_complement.py
rjcc/bioinformatics_algorithms
99a5e564f8c02e6da5ee9e186bf8d5d3f1effb92
[ "MIT" ]
1
2019-05-13T13:44:57.000Z
2019-05-13T13:44:57.000Z
reverse_complement.py
rjcc/bioinformatics_algorithms
99a5e564f8c02e6da5ee9e186bf8d5d3f1effb92
[ "MIT" ]
null
null
null
reverse_complement.py
rjcc/bioinformatics_algorithms
99a5e564f8c02e6da5ee9e186bf8d5d3f1effb92
[ "MIT" ]
1
2019-11-07T12:47:12.000Z
2019-11-07T12:47:12.000Z
def complement(p): if (p == "A"): return "T" if (p == "C"): return "G" if (p == "G"): return "C" if (p == "T"): return "A" def reverse_complement(pattern): p = "" for i in pattern: p = complement(i) + p return p
17.846154
32
0.517241
043429e8f687518ec0c3a02d638f82940fac2853
1,083
py
Python
pyscreenshot/check/speedtest.py
gatoatigrado/pyscreenshot
40233cf17492f2f6b2f7e0950ac42317e9487b40
[ "BSD-2-Clause" ]
null
null
null
pyscreenshot/check/speedtest.py
gatoatigrado/pyscreenshot
40233cf17492f2f6b2f7e0950ac42317e9487b40
[ "BSD-2-Clause" ]
null
null
null
pyscreenshot/check/speedtest.py
gatoatigrado/pyscreenshot
40233cf17492f2f6b2f7e0950ac42317e9487b40
[ "BSD-2-Clause" ]
null
null
null
import pyscreenshot import tempfile import time import shutil def run(force_backend, n): tmpdir = tempfile.mkdtemp(prefix='pyscreenshot_speedtest_') start = time.time() for _ in range(n): pyscreenshot.grab( backend=force_backend, childprocess=True) end = time.time() dt = end - ...
19
67
0.527239
69827888d485788c8d6a18a21b8e39b5bb87ebde
1,911
py
Python
tests/ogm/test_validators.py
TwoBitAlchemist/NeoAlchemy
e28634734da3aa6b80eeb439cfc217d9b7de82a8
[ "MIT" ]
25
2016-07-19T00:21:22.000Z
2021-12-28T14:37:54.000Z
tests/ogm/test_validators.py
TwoBitAlchemist/NeoAlchemy
e28634734da3aa6b80eeb439cfc217d9b7de82a8
[ "MIT" ]
4
2016-12-29T22:08:27.000Z
2021-09-04T07:03:09.000Z
tests/ogm/test_validators.py
TwoBitAlchemist/NeoAlchemy
e28634734da3aa6b80eeb439cfc217d9b7de82a8
[ "MIT" ]
9
2017-03-21T07:40:40.000Z
2021-10-25T00:16:57.000Z
"""Tests for type validators""" import uuid import pytest from neoalchemy.validators import * def test_date_validators(): assert isodate('Mar 24, 1985') == '1985-03-24' assert isodate('03/24/1985') == '1985-03-24' assert isodate('1985-03-24') == '1985-03-24' assert isodate('3-24-85') == '1985-03-24'...
32.389831
74
0.608582
1feb9d61b5b252eb7443fd00ac639d2c48ec0f59
492
py
Python
quizzie/urls.py
JogiDheeraj/hello
1c918d9709a5c07b1df38da1ff05fbece60585db
[ "MIT" ]
null
null
null
quizzie/urls.py
JogiDheeraj/hello
1c918d9709a5c07b1df38da1ff05fbece60585db
[ "MIT" ]
null
null
null
quizzie/urls.py
JogiDheeraj/hello
1c918d9709a5c07b1df38da1ff05fbece60585db
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from django.contrib import admin from django.contrib.auth.views import login, logout from game.views import index urlpatterns = [ url(r'^$', index, name='homepage'), url(r'^accounts/login/$', login, name='login'), url(r'^accounts/logout/$', logout, name='logout'),...
32.8
70
0.672764
0ff29e53e76b7f2e22558926c3cfa8c3baed514b
1,312
py
Python
DEVWKS-1512/code/jinja_create_vlan.py
akennerly/byrne-workshops
5a002c511a42a598736ca6c96967a22ec09432c8
[ "MIT" ]
8
2018-10-08T16:51:42.000Z
2021-04-05T22:01:30.000Z
DEVWKS-1512/code/jinja_create_vlan.py
akennerly/byrne-workshops
5a002c511a42a598736ca6c96967a22ec09432c8
[ "MIT" ]
3
2019-01-10T17:39:38.000Z
2021-03-31T18:50:08.000Z
DEVWKS-1512/code/jinja_create_vlan.py
akennerly/byrne-workshops
5a002c511a42a598736ca6c96967a22ec09432c8
[ "MIT" ]
10
2019-05-23T07:31:33.000Z
2021-02-23T20:04:41.000Z
#!/usr/bin/env python """ Copyright (c) 2019 Cisco and/or its affiliates. This software is licensed to you under the terms of the Cisco Sample Code License, Version 1.0 (the "License"). You may obtain a copy of the License at https://developer.cisco.com/docs/licenses All use of the material herein m...
29.818182
72
0.634909
8df2be99c4663be0348ead924e2a13f808f4876d
192
py
Python
src/plugin/__init__.py
changleibox/flutter_build_script
a93a7d9ce276b68c3a2d34b5830a4fc9683e574b
[ "Apache-2.0" ]
null
null
null
src/plugin/__init__.py
changleibox/flutter_build_script
a93a7d9ce276b68c3a2d34b5830a4fc9683e574b
[ "Apache-2.0" ]
null
null
null
src/plugin/__init__.py
changleibox/flutter_build_script
a93a7d9ce276b68c3a2d34b5830a4fc9683e574b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2020 CHANGLEI. All rights reserved. # Created by changlei on 2020/6/29. from src.plugin.dingtalk_chatbot import DingtalkChatbot
27.428571
55
0.729167
95a9c60c677322304b6cd09bde1d137d7360ea76
21,926
py
Python
tensorflow/contrib/layers/python/layers/optimizers_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/layers/python/layers/optimizers_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/layers/python/layers/optimizers_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 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...
40.754647
81
0.639332
5427837b055703bbbc6bd9a0642e2276e82b6c63
2,140
py
Python
generated-libraries/python/netapp/cluster_peer/cluster_peer_active_address.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/cluster_peer/cluster_peer_active_address.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/cluster_peer/cluster_peer_active_address.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.netapp_object import NetAppObject class ClusterPeerActiveAddress(NetAppObject): """ A list of active IP addresses configured in a peer cluster When returned as part of the output, all elements of this typedef are reported, unless limited by a set of desired attributes specified by the c...
32.923077
95
0.63972
763910886922259b2b079a7f69baeb548ee01782
25,418
py
Python
scheduler/scheduler.py
wmodes/blackrockstation
8134322517803d225b936958a2d4ad16e286397a
[ "MIT" ]
1
2021-04-18T06:46:07.000Z
2021-04-18T06:46:07.000Z
scheduler/scheduler.py
wmodes/blackrockstation
8134322517803d225b936958a2d4ad16e286397a
[ "MIT" ]
null
null
null
scheduler/scheduler.py
wmodes/blackrockstation
8134322517803d225b936958a2d4ad16e286397a
[ "MIT" ]
null
null
null
"""Controller class for scheduler subsystem.""" from shared import config from shared.controller import Controller import logging from datetime import datetime, timedelta import csv from columnar import columnar import time import re import random import shutil from curses import wrapper logger = logging.getLogger()...
36.259629
169
0.511409
cd6fbfb85755bf30dc0e353fc07b5ef28fa8ae7a
332
py
Python
xautodl/models/cell_searchs/_test_module.py
Joey61Liuyi/AutoDL-Projects
2092e144920e82d74753a7ac31e1890a150d41cf
[ "MIT" ]
817
2020-01-15T00:23:41.000Z
2022-03-31T14:52:03.000Z
xautodl/models/cell_searchs/_test_module.py
Joey61Liuyi/AutoDL-Projects
2092e144920e82d74753a7ac31e1890a150d41cf
[ "MIT" ]
77
2020-01-14T14:02:45.000Z
2022-03-25T07:06:02.000Z
xautodl/models/cell_searchs/_test_module.py
Joey61Liuyi/AutoDL-Projects
2092e144920e82d74753a7ac31e1890a150d41cf
[ "MIT" ]
176
2020-01-15T10:39:41.000Z
2022-03-31T04:24:53.000Z
################################################## # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2019 # ################################################## import torch from search_model_enas_utils import Controller def main(): controller = Controller(6, 4) predictions = controller() if __name__ == "__main__":...
22.133333
50
0.478916
3def23c95e424d306ecfd158c75361ce90c44da1
1,716
py
Python
minato_namikaze/botmain/bot/cogs/info/feedback.py
Onii-Chan-Discord/yondaime-hokage
d6e75405a9d30b37bfb4fd588f02c0de813c92b1
[ "Apache-2.0" ]
null
null
null
minato_namikaze/botmain/bot/cogs/info/feedback.py
Onii-Chan-Discord/yondaime-hokage
d6e75405a9d30b37bfb4fd588f02c0de813c92b1
[ "Apache-2.0" ]
null
null
null
minato_namikaze/botmain/bot/cogs/info/feedback.py
Onii-Chan-Discord/yondaime-hokage
d6e75405a9d30b37bfb4fd588f02c0de813c92b1
[ "Apache-2.0" ]
null
null
null
import discord from discord.ext import commands from discord.ext.commands import command from ...lib import ( Embed, ErrorEmbed, check_if_feedback_system_setup, return_feedback_channel, ) class Feedback(commands.Cog): def __init__(self, bot): self.bot = bot self.description = 'Sen...
33.647059
147
0.648601
5da8e18e51f5f3a5bac1b38762ca3bfb485d1e4b
3,022
py
Python
lib/galaxy/model/migrate/versions/0108_add_extended_metadata.py
igorhollaender/sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
2
2018-10-14T16:42:39.000Z
2018-10-14T16:42:41.000Z
lib/galaxy/model/migrate/versions/0108_add_extended_metadata.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/migrate/versions/0108_add_extended_metadata.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
null
null
null
""" Add the ExtendedMetadata and ExtendedMetadataIndex tables """ import logging from sqlalchemy import Column, ForeignKey, Integer, MetaData, String, Table, TEXT from galaxy.model.custom_types import JSONType log = logging.getLogger( __name__ ) metadata = MetaData() ExtendedMetadata_table = Table("extended_metadat...
40.293333
134
0.62045
28160127efd3dd3a1d9e0a1b9da8676dab93d4f2
7,951
py
Python
bridge_adaptivity/module/tests/test_utils.py
eng-alecrim/bridge-adaptivity
8644e512272006eaeedd0928ac743fd6295bd731
[ "BSD-3-Clause" ]
32
2017-06-01T16:31:50.000Z
2021-11-19T03:37:00.000Z
bridge_adaptivity/module/tests/test_utils.py
eng-alecrim/bridge-adaptivity
8644e512272006eaeedd0928ac743fd6295bd731
[ "BSD-3-Clause" ]
44
2017-08-04T13:58:12.000Z
2021-06-09T17:25:59.000Z
bridge_adaptivity/module/tests/test_utils.py
eng-alecrim/bridge-adaptivity
8644e512272006eaeedd0928ac743fd6295bd731
[ "BSD-3-Clause" ]
17
2017-12-08T07:24:28.000Z
2022-03-14T16:56:10.000Z
import logging import ddt from django.core.exceptions import MultipleObjectsReturned from django.test import TestCase from mock import patch from bridge_lti.models import BridgeUser, LtiLmsPlatform, LtiUser, OutcomeService from module.models import ( Activity, Collection, CollectionOrder, Engine, GradingPolicy, M...
43.448087
119
0.672871
8598dfacdcb9949cd7d4adf4c90b56c407aa8544
2,587
py
Python
heron/cli/src/python/jars.py
sbilly/heron
d8cc6977791dd3d8ed4333562e2ce249646a5226
[ "Apache-2.0" ]
1
2021-04-25T11:25:44.000Z
2021-04-25T11:25:44.000Z
heron/cli/src/python/jars.py
sbilly/heron
d8cc6977791dd3d8ed4333562e2ce249646a5226
[ "Apache-2.0" ]
null
null
null
heron/cli/src/python/jars.py
sbilly/heron
d8cc6977791dd3d8ed4333562e2ce249646a5226
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Twitter. 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 or agree...
36.957143
80
0.443757
2344428346134dab4e8b6ea8fc0110dbe3f0f59a
4,019
py
Python
cv/classification/classicNets/resNet.py
XingJinming-real/DL
9c793338a60b663ab3cdc702dc73617156b4ae93
[ "MIT" ]
1
2021-07-22T13:16:51.000Z
2021-07-22T13:16:51.000Z
cv/classification/classicNets/resNet.py
XingJinming-real/DL
9c793338a60b663ab3cdc702dc73617156b4ae93
[ "MIT" ]
null
null
null
cv/classification/classicNets/resNet.py
XingJinming-real/DL
9c793338a60b663ab3cdc702dc73617156b4ae93
[ "MIT" ]
null
null
null
import time import d2l.torch import numpy as np import pandas as pd import torch.nn as nn import torch from torchvision import datasets from torchvision import transforms from torch.utils import data import matplotlib.pyplot as plt import torch.nn.functional as F from sklearn.preprocessing import LabelEncoder from PIL ...
33.491667
118
0.619059
bb9ead70808a80058ecf34502635a152aa495c1c
3,640
py
Python
utils.py
raoofnaushad/Fourier-Transformation-for-Image-Processing
f3f1d11dc97e593392a019ad25d583dd19d07552
[ "MIT" ]
2
2020-10-15T11:38:58.000Z
2021-09-27T08:30:09.000Z
utils.py
raoofnaushad/Fourier-Transformation-for-Image-Processing
f3f1d11dc97e593392a019ad25d583dd19d07552
[ "MIT" ]
null
null
null
utils.py
raoofnaushad/Fourier-Transformation-for-Image-Processing
f3f1d11dc97e593392a019ad25d583dd19d07552
[ "MIT" ]
null
null
null
import numpy as np import cv2 import os from fourier_transform import * def img_FFT(img): if len(img.shape) == 2 or len(img.shape) == 3: return FFT_2D(img) else: raise ValueError("Please input a gray or RGB image!") def img_FFT_inverse(img): if len(img.shape) == 2 or len(img.shape) == 3...
28
86
0.615659
0c81eceb34faf06deca8059ed34a529d843304e5
30
py
Python
btd6_memory_info/generated/Assets/Scripts/Models/Towers/Behaviors/Abilities/Behaviors/IncreaseRangeModel/increase_range_model.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Models/Towers/Behaviors/Abilities/Behaviors/IncreaseRangeModel/increase_range_model.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Models/Towers/Behaviors/Abilities/Behaviors/IncreaseRangeModel/increase_range_model.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class IncreaseRangeModel: pass
30
30
0.9
9cdf65fe1c1914d17292901be27526fe0de91919
14,448
py
Python
dsbox/ml/feature_engineering/timeseries.py
Pandinosaurus/dsbox
aea56049025ed7e6e66427f8636286f8be1b6e03
[ "Apache-2.0" ]
16
2020-05-11T09:10:15.000Z
2021-04-13T08:43:28.000Z
dsbox/ml/feature_engineering/timeseries.py
Pandinosaurus/dsbox
aea56049025ed7e6e66427f8636286f8be1b6e03
[ "Apache-2.0" ]
1
2020-12-03T20:02:32.000Z
2020-12-03T20:02:32.000Z
dsbox/ml/feature_engineering/timeseries.py
Pandinosaurus/dsbox
aea56049025ed7e6e66427f8636286f8be1b6e03
[ "Apache-2.0" ]
1
2020-05-11T17:22:20.000Z
2020-05-11T17:22:20.000Z
import numpy as np import pandas as pd from numpy.lib.stride_tricks import as_strided from sklearn.base import BaseEstimator, TransformerMixin import types __author__ = "Vincent Levorato" __credits__ = "https://github.com/octo-technology/bdacore" __license__ = "Apache 2.0" class Shifter(BaseEstimator, TransformerMix...
30.871795
127
0.55018
07e3f17638e89cc1e785f0ea1ab11efd910cc619
4,638
py
Python
models/hr_attendance_day.py
gregoril/hr_cgt
10a92c0d54f63aa7216318448f7053c874d1be7d
[ "Apache-2.0" ]
null
null
null
models/hr_attendance_day.py
gregoril/hr_cgt
10a92c0d54f63aa7216318448f7053c874d1be7d
[ "Apache-2.0" ]
null
null
null
models/hr_attendance_day.py
gregoril/hr_cgt
10a92c0d54f63aa7216318448f7053c874d1be7d
[ "Apache-2.0" ]
2
2019-08-07T18:25:43.000Z
2019-08-19T16:19:57.000Z
# -*- coding: utf-8 -*- from odoo import models, fields, api, _ from odoo.exceptions import ValidationError from odoo.tools import DEFAULT_SERVER_DATE_FORMAT, \ DEFAULT_SERVER_DATETIME_FORMAT import pytz from datetime import datetime class FullAttendanceDay(models.Model): _name = 'hr.attendance.day' _desc...
26.20339
76
0.525873
96f433068e3392fa16f667bd2b6aacd25a03c4ff
1,309
py
Python
settings/EnsembleSAXS_PP_Panel_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
null
null
null
settings/EnsembleSAXS_PP_Panel_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
1
2019-10-22T21:28:31.000Z
2019-10-22T21:39:12.000Z
settings/EnsembleSAXS_PP_Panel_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
2
2019-06-06T15:06:46.000Z
2020-07-20T02:03:22.000Z
Calibration.CustomView = ['X-ray Scope Trigger', 'Ps Laser Osc. Delay', 'Ps Laser Trigger', 'Ns Laser Q-Switch Trigger', 'Ns Laser Flash Lamp Trigger', 'Laser Scope Trigger', 'Heatload Chopper Phase', 'Heatload Chop. Act. Phase', 'ChemMat Chopper Phase', 'ChemMat Chop. Act. Phase', 'X-ray Shutter Delay'] Calibration.vi...
218.166667
764
0.679908
5b4414a98835034efd4fbc353ec021208fbe2d83
238
py
Python
smartbackup/__main__.py
alexsilva/smartbackup
fa203ff7c4c8e7eba5ae0f7e8e72578c6c844685
[ "MIT" ]
null
null
null
smartbackup/__main__.py
alexsilva/smartbackup
fa203ff7c4c8e7eba5ae0f7e8e72578c6c844685
[ "MIT" ]
null
null
null
smartbackup/__main__.py
alexsilva/smartbackup
fa203ff7c4c8e7eba5ae0f7e8e72578c6c844685
[ "MIT" ]
null
null
null
#!/usr/local/bin/python # What is '__main__' module ? # Reference - https://docs.python.org/2/using/cmdline.html#cmdoption-m __author__ = 'alex' def main(): import bakthat bakthat.main() if __name__ == '__main__': main()
15.866667
70
0.663866
02b89d5f168b6cd6fd05fb18a196571e26be7c7f
328
py
Python
Chapter07/c7_24_read_ffcMonthly.py
John-ye666/Python-for-Finance-Second-Edition
dabef09bcdd7b0ec2934774741bd0a7e1950de73
[ "MIT" ]
236
2017-07-02T03:06:54.000Z
2022-03-31T03:15:33.000Z
Chapter07/c7_24_read_ffcMonthly.py
John-ye666/Python-for-Finance-Second-Edition
dabef09bcdd7b0ec2934774741bd0a7e1950de73
[ "MIT" ]
null
null
null
Chapter07/c7_24_read_ffcMonthly.py
John-ye666/Python-for-Finance-Second-Edition
dabef09bcdd7b0ec2934774741bd0a7e1950de73
[ "MIT" ]
139
2017-06-30T10:28:16.000Z
2022-01-19T19:43:34.000Z
""" Name : c7_24_read_ffMonthly.py Book : Python for Finance (2nd ed.) Publisher: Packt Publishing Ltd. Author : Yuxing Yan Date : 6/6/2017 email : yany@canisius.edu paulyxy@hotmail.com """ import pandas as pd x=pd.read_pickle("c:/temp/ffMonthly.pkl") print(x.head()) print(x...
21.866667
41
0.631098
14c3e0e1b201402ecba988680caead86765bb5b1
2,877
py
Python
sdk/network/azure-mgmt-dns/setup.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-dns/setup.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/network/azure-mgmt-dns/setup.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
#!/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. #----------------------------------------------------------------...
32.325843
91
0.601668
005c023bb35eb6941588b482adcd80a017afa84f
2,758
py
Python
tests/test_item_rates.py
Canisback/solari
bd7c46e5cb727033644b32531f4559702cb41f68
[ "MIT" ]
16
2021-01-04T21:44:24.000Z
2022-01-07T12:02:26.000Z
tests/test_item_rates.py
Canisback/solari
bd7c46e5cb727033644b32531f4559702cb41f68
[ "MIT" ]
1
2021-01-26T07:45:24.000Z
2021-02-03T19:11:39.000Z
tests/test_item_rates.py
Canisback/solari
bd7c46e5cb727033644b32531f4559702cb41f68
[ "MIT" ]
2
2021-01-05T14:00:28.000Z
2021-07-25T04:03:44.000Z
from solari import Leona from solari.stats import ItemPickrate, ItemWinrate def test_item_pickrate(match_set_1): l = Leona([ ItemPickrate() ]) for m in match_set_1: l.push_match(m) stats = l.get_stats() # Nightbringer picked 7 times in 3 games assert stats["P...
23.176471
81
0.592821
d5521e804ac7b05c00179c152fe3c2a0e316a994
10,153
py
Python
yt/geometry/coordinates/coordinate_handler.py
themousepotato/yt
6befef2bc0427250fd62395962599be41b193e65
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/geometry/coordinates/coordinate_handler.py
themousepotato/yt
6befef2bc0427250fd62395962599be41b193e65
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/geometry/coordinates/coordinate_handler.py
themousepotato/yt
6befef2bc0427250fd62395962599be41b193e65
[ "BSD-3-Clause-Clear" ]
null
null
null
import numpy as np import weakref from numbers import Number from yt.funcs import \ validate_width_tuple, \ fix_unitary, \ iterable from yt.units.yt_array import \ YTArray, YTQuantity from yt.utilities.exceptions import \ YTCoordinateNotImplemented, \ YTInvalidWidthError def _unknown_coord(fie...
35.253472
87
0.578548
9fc8326051148f3440f52ec4c2b97ddbfc6657e9
714
py
Python
postprocessing/partner_annotations/luigi_pipeline_spec_dir/run_debug.py
d-v-b/CNNectome
2b1f4786282306edf94b231c9fcf64419d8d1e2a
[ "BSD-2-Clause" ]
4
2019-06-21T18:06:22.000Z
2021-11-29T08:28:46.000Z
CNNectome/postprocessing/partner_annotations/luigi_pipeline_spec_dir/run_debug.py
GenevieveBuckley/CNNectome
bde8528ed5adc0a4aefca3b19ecc4c2144f2cbcc
[ "BSD-2-Clause" ]
4
2018-12-18T19:31:04.000Z
2022-01-10T16:06:45.000Z
CNNectome/postprocessing/partner_annotations/luigi_pipeline_spec_dir/run_debug.py
GenevieveBuckley/CNNectome
bde8528ed5adc0a4aefca3b19ecc4c2144f2cbcc
[ "BSD-2-Clause" ]
9
2018-03-22T18:17:57.000Z
2022-03-24T01:17:21.000Z
import luigi import os from cleftreport_luigi import CleftReport from partnerreport_luigi import PartnerReport import logging class AllEvaluations(luigi.WrapperTask): it = 90000 data_train = "data2016-unaligned" augmentation = "deluxe" data_eval = "data2017-unaligned" mode = "validation" sampl...
23.032258
59
0.630252
4b2579fa231d30e6360dc0d4b65381bc4a1ba122
8,662
py
Python
pedash/utils.py
theoturner/Pedash
cb3dbdefbc970ca9b1a5147498010e9a23558732
[ "Apache-2.0" ]
null
null
null
pedash/utils.py
theoturner/Pedash
cb3dbdefbc970ca9b1a5147498010e9a23558732
[ "Apache-2.0" ]
null
null
null
pedash/utils.py
theoturner/Pedash
cb3dbdefbc970ca9b1a5147498010e9a23558732
[ "Apache-2.0" ]
null
null
null
""" Utilities for the issuer and prover plus a postgres wallet plugin """ import sys import asyncio import json import random from ctypes import cdll, CDLL from time import sleep import platform import logging from indy import wallet from indy.error import ErrorCode, IndyError from vcx.api.connection import Connect...
40.476636
162
0.69903
cd361d9e8a3441547ed67fc0dc239dd81c6d7d6a
8,064
py
Python
Tools/LyTestTools/tests/unit/test_editor_test_utils.py
GameInstitute/o3de
daf4dbb54d94b1c4240a273a9fdd831cce543339
[ "Apache-2.0", "MIT" ]
1
2021-12-25T02:43:48.000Z
2021-12-25T02:43:48.000Z
Tools/LyTestTools/tests/unit/test_editor_test_utils.py
RoddieKieley/o3de
e804fd2a4241b039a42d9fa54eaae17dc94a7a92
[ "Apache-2.0", "MIT" ]
2
2021-09-08T03:30:28.000Z
2022-03-12T00:59:27.000Z
Tools/LyTestTools/tests/unit/test_editor_test_utils.py
RoddieKieley/o3de
e804fd2a4241b039a42d9fa54eaae17dc94a7a92
[ "Apache-2.0", "MIT" ]
1
2021-07-09T06:02:14.000Z
2021-07-09T06:02:14.000Z
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ import pytest import os import unittest.mock as mock import unittest import ly_test_tools.o3de.editor_test_util...
49.472393
132
0.728919
c625843e6d75f46dbf1c64d752abd82c11f8668a
8,672
py
Python
platform/gsutil/gslib/addlhelp/metadata.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
platform/gsutil/gslib/addlhelp/metadata.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
platform/gsutil/gslib/addlhelp/metadata.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2012 Google 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 require...
43.144279
80
0.758649
888cfea0d976ad02e38ff51870ebd54a09163f6d
860
py
Python
python/test.py
ajdinm/crypto
d013e607de5e099749e20a748bff5bf7ef4f6689
[ "MIT" ]
null
null
null
python/test.py
ajdinm/crypto
d013e607de5e099749e20a748bff5bf7ef4f6689
[ "MIT" ]
1
2019-11-29T19:07:26.000Z
2019-11-29T19:07:26.000Z
python/test.py
ajdinm/crypto
d013e607de5e099749e20a748bff5bf7ef4f6689
[ "MIT" ]
null
null
null
from termcolor import colored def test(test_cases, f, f_name, ok_msg = 'OK', nok_msg = 'NOK', print_ok_case = False, print_nok_case = True): print '--- init testing ' + f_name + ' function ---' for test_case in test_cases: result = f(*test_case[:-1]) is_ok = result == test_case[-1] to_p...
40.952381
110
0.553488
7c0a837cce384af4c07f196f0608df57074a5b08
7,271
py
Python
FGAN/fgan_model.py
sumersumerdjl/kozistr-Awesome-GANs
6e20e9cd07d0ec413a187d496159b97d793dab0c
[ "MIT" ]
1
2021-08-16T01:40:46.000Z
2021-08-16T01:40:46.000Z
FGAN/fgan_model.py
siavelis/Awesome-GANs
9add33fdfcb9fead75c37dd7afdbede625a303c9
[ "MIT" ]
null
null
null
FGAN/fgan_model.py
siavelis/Awesome-GANs
9add33fdfcb9fead75c37dd7afdbede625a303c9
[ "MIT" ]
1
2021-08-16T01:35:21.000Z
2021-08-16T01:35:21.000Z
import tensorflow as tf import numpy as np import sys sys.path.append('../') import tfutil as t tf.set_random_seed(777) class FGAN: def __init__(self, s, batch_size=64, height=28, width=28, channel=1, sample_num=8 * 8, sample_size=8, z_dim=128, dfc_unit=256, gfc_unit=1024, l...
36.174129
113
0.581213
5b637ff6d8b11e209b1b17f4529389b9e5bce031
691
py
Python
range-exclude.py
bpcox/range-exclude
c151f843964408481a5f6569718537a786ff5722
[ "MIT" ]
1
2016-06-27T15:11:37.000Z
2016-06-27T15:11:37.000Z
range-exclude.py
bpcox/range-exclude
c151f843964408481a5f6569718537a786ff5722
[ "MIT" ]
null
null
null
range-exclude.py
bpcox/range-exclude
c151f843964408481a5f6569718537a786ff5722
[ "MIT" ]
null
null
null
#! /usr/bin/env python3.4 import ipaddress import math supernet = False subnet = False while not supernet: inputRange = input('Input the IP range you would like remove a subrange from: ') try: supernet =ipaddress.ip_network(inputRange) except ValueError: print('Invalid input, try again') while not subnet: ...
23.033333
81
0.740955
909a25babe1f0965af793a6d69d15dcd1f295b81
3,245
py
Python
game.py
iamgreaser/fireball
2c5afb3dc5756a3b26da9045278f7e4a2bc036d2
[ "BSD-2-Clause-FreeBSD" ]
1
2019-05-06T15:11:17.000Z
2019-05-06T15:11:17.000Z
game.py
iamgreaser/fireball
2c5afb3dc5756a3b26da9045278f7e4a2bc036d2
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
game.py
iamgreaser/fireball
2c5afb3dc5756a3b26da9045278f7e4a2bc036d2
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
""" Copyright 2011 Ben Russell & contributors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions ...
30.046296
92
0.735901
00749ac20ab37e147373dec3cca8fd4757f24e69
694
py
Python
funds/funds/models/funds.py
zxc111/funds
0d52d1fc305d329c3d31a909aed41f092ed12160
[ "MIT" ]
null
null
null
funds/funds/models/funds.py
zxc111/funds
0d52d1fc305d329c3d31a909aed41f092ed12160
[ "MIT" ]
null
null
null
funds/funds/models/funds.py
zxc111/funds
0d52d1fc305d329c3d31a909aed41f092ed12160
[ "MIT" ]
null
null
null
# coding: utf8 from sqlalchemy import Column, Integer, String from .config import Base class Fund(Base): __tablename__ = "funds" id = Column(Integer, primary_key=True) name = Column(String(256)) fundcode = Column(String(32), unique=True) manager = Column(String(32)) @classmethod def g...
22.387097
61
0.631124
df93fea315585c30af4c09a7c4775e83fbff50b7
2,247
py
Python
gcc/models/gcn.py
TangYucopper/GCC
26c9e0bbe9db330748055924bc0f2bc3a0868cdf
[ "MIT" ]
243
2020-06-16T08:06:57.000Z
2022-03-31T10:09:37.000Z
gcc/models/gcn.py
TangYucopper/GCC
26c9e0bbe9db330748055924bc0f2bc3a0868cdf
[ "MIT" ]
21
2020-06-22T01:31:35.000Z
2022-01-06T08:02:07.000Z
gcc/models/gcn.py
TangYucopper/GCC
26c9e0bbe9db330748055924bc0f2bc3a0868cdf
[ "MIT" ]
49
2020-06-28T02:37:17.000Z
2022-03-29T08:07:35.000Z
#!/usr/bin/env python # encoding: utf-8 # File Name: gcn.py # Author: Jiezhong Qiu # Create Time: 2019/12/13 15:38 # TODO: import dgl import dgl.function as fn import torch import torch.nn as nn import torch.nn.functional as F from dgl.model_zoo.chem.gnn import GCNLayer from dgl.nn.pytorch import AvgPooling, Set2Set ...
29.181818
78
0.558522
a2651aee8e6701544a6b83b225c20e91bfbb2482
2,591
py
Python
pysnmp/CISCO-POP-MGMT-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CISCO-POP-MGMT-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CISCO-POP-MGMT-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-POP-MGMT-CAPABILITY (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-POP-MGMT-CAPABILITY # Produced by pysmi-0.3.4 at Mon Apr 29 17:52:48 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3....
103.64
477
0.791586
f4865eaa08850bb7be0a373c47e33c0b92147a15
1,870
py
Python
mac_os_scripts/configure_ntp.py
initialed85/mac_os_scripts
aa8a2c1dc9193dbce796985f5f125c82f6f90bed
[ "MIT", "BSD-3-Clause" ]
32
2017-11-01T17:20:41.000Z
2020-06-22T02:18:48.000Z
mac_os_scripts/configure_ntp.py
initialed85/mac_os_scripts
aa8a2c1dc9193dbce796985f5f125c82f6f90bed
[ "MIT", "BSD-3-Clause" ]
null
null
null
mac_os_scripts/configure_ntp.py
initialed85/mac_os_scripts
aa8a2c1dc9193dbce796985f5f125c82f6f90bed
[ "MIT", "BSD-3-Clause" ]
null
null
null
""" This script is responsible for enabling NTP and setting the NTP server Commands used: - systemsetup -setusingnetworktime on - systemsetup -setnetworktimeserver (NTP server) """ from common import CLITieIn class NTPConfigurator(CLITieIn): def enable_ntp(self): command = '/usr/sbin/systemsetup -set...
22.261905
82
0.582353
5b17faf1258bbe066c95df11238fb4f0cc4f86a3
6,132
py
Python
wfexs_backend/podman_container.py
stain/WfExS-backend
e0e1cf5bc1466791043f0dd052ef9ea04927e108
[ "Apache-2.0" ]
10
2021-04-21T20:56:51.000Z
2022-03-28T15:03:11.000Z
wfexs_backend/podman_container.py
stain/WfExS-backend
e0e1cf5bc1466791043f0dd052ef9ea04927e108
[ "Apache-2.0" ]
22
2021-05-14T10:05:22.000Z
2022-03-31T22:35:19.000Z
wfexs_backend/podman_container.py
Acivico/WfExS-backend
05173ceca4dfdcd65f2a957e3638a65d76c6eb25
[ "Apache-2.0" ]
2
2021-09-22T09:34:33.000Z
2021-11-03T09:27:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2020-2021 Barcelona Supercomputing Center (BSC), Spain # # 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...
37.619632
163
0.580072
c31946b04feb4d7894e2b4173ad8779bc994afa1
499
py
Python
users/migrations/0002_auto_20190224_0337.py
JySa65/platzi-gram
e991a59a8ebe28574671f39cf8bd552e31799cd8
[ "MIT" ]
null
null
null
users/migrations/0002_auto_20190224_0337.py
JySa65/platzi-gram
e991a59a8ebe28574671f39cf8bd552e31799cd8
[ "MIT" ]
null
null
null
users/migrations/0002_auto_20190224_0337.py
JySa65/platzi-gram
e991a59a8ebe28574671f39cf8bd552e31799cd8
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2019-02-24 07:37 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.RenameField( model_name='profile', old_name='created', new_na...
20.791667
45
0.553106
909e3f8ccad76fd04557fdc6d0e8eb449816c506
1,199
py
Python
djangocms_snippet/migrations/0006_auto_20160831_0729.py
Bernardvdv/djangocms-snippet
883f9f895c6036f243ae90ce24a6e30ec82ad57f
[ "BSD-3-Clause" ]
27
2015-03-29T01:06:26.000Z
2020-02-04T02:02:55.000Z
djangocms_snippet/migrations/0006_auto_20160831_0729.py
Bernardvdv/djangocms-snippet
883f9f895c6036f243ae90ce24a6e30ec82ad57f
[ "BSD-3-Clause" ]
65
2015-01-02T05:15:17.000Z
2020-09-20T17:56:04.000Z
djangocms_snippet/migrations/0006_auto_20160831_0729.py
adam-murray/djangocms-snippet
a58974888ea4e2569a22feafe03b051f28bc22db
[ "BSD-3-Clause" ]
28
2015-01-10T06:34:43.000Z
2020-09-20T17:35:03.000Z
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('djangocms_snippet', '0005_set_related_name_for_cmsplugin_ptr'), ] operations = [ migrations.AlterModelOptions( name='snippetptr', options={'verbose_name': 'Snippet',...
38.677419
333
0.622185
09716c10e7765af5eb12ad9cdc2cab32a9540016
2,078
py
Python
setup.py
manonthemat/froide
698c49935eaf2e922f3c9f6a46af0fd545ccbbbb
[ "MIT" ]
null
null
null
setup.py
manonthemat/froide
698c49935eaf2e922f3c9f6a46af0fd545ccbbbb
[ "MIT" ]
null
null
null
setup.py
manonthemat/froide
698c49935eaf2e922f3c9f6a46af0fd545ccbbbb
[ "MIT" ]
null
null
null
#!/usr/bin/env python import codecs import re import os from setuptools import setup, find_packages def read(*parts): filename = os.path.join(os.path.dirname(__file__), *parts) with codecs.open(filename, encoding='utf-8') as fp: return fp.read() def find_version(*file_paths): version_file = re...
27.706667
68
0.593359
90aeb33200d94264d3875f7066881ff3b799d13f
29,957
py
Python
sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_client.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_client.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_client.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from datetime import datetime try: from typing import TYPE_CHECKING except ImportError: TYPE_CHECKING = False if TYPE_CHECKING: from typing import Any, Dic...
43.542151
185
0.632807
fa1d88bb6d07924afde5015c96f82b97699def28
1,304
py
Python
mi/dataset/driver/fdchp_a/fdchp_a_recovered_driver.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
1
2018-09-14T23:28:29.000Z
2018-09-14T23:28:29.000Z
mi/dataset/driver/fdchp_a/fdchp_a_recovered_driver.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
33
2017-04-25T19:53:45.000Z
2022-03-18T17:42:18.000Z
mi/dataset/driver/fdchp_a/fdchp_a_recovered_driver.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
31
2015-03-04T01:01:09.000Z
2020-10-28T14:42:12.000Z
#!/usr/bin/env python """ @package mi.dataset.driver.fdchp_a @file mi/dataset/driver/fdchp_a/fdchp_a_recovered_driver.py @author Emily Hahn @brief Driver for the fdchp series a recovered instrument """ from mi.dataset.dataset_driver import SimpleDatasetDriver from mi.dataset.parser.fdchp_a import FdchpAParser from mi...
30.325581
87
0.753834
706c9917f17617e5469d6dc54d2d396cebfe5b74
4,481
py
Python
train_stage2.py
pravn/StackGAN
cbb76e0af44b05a74a0c852cdb2fb9b5736a95b8
[ "MIT" ]
2
2020-02-11T11:28:27.000Z
2021-09-16T06:33:28.000Z
train_stage2.py
pravn/StackGAN
cbb76e0af44b05a74a0c852cdb2fb9b5736a95b8
[ "MIT" ]
null
null
null
train_stage2.py
pravn/StackGAN
cbb76e0af44b05a74a0c852cdb2fb9b5736a95b8
[ "MIT" ]
1
2019-08-24T20:41:54.000Z
2019-08-24T20:41:54.000Z
import argparse import torch import os import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from torch.autograd import Variable from torch import autograd #from torchvision.datasets import MNIST #from torchvision.transforms import transforms from torchvision.utils import save_image...
28.909677
95
0.552778
4ab508ec6d76d7d86d55af5c3712895e2a5d2bee
439
py
Python
firecares/weather/migrations/0006_auto_20181015_1358.py
FireCARES/firecares
aa708d441790263206dd3a0a480eb6ca9031439d
[ "MIT" ]
12
2016-01-30T02:28:35.000Z
2019-05-29T15:49:56.000Z
firecares/weather/migrations/0006_auto_20181015_1358.py
FireCARES/firecares
aa708d441790263206dd3a0a480eb6ca9031439d
[ "MIT" ]
455
2015-07-27T20:21:56.000Z
2022-03-11T23:26:20.000Z
firecares/weather/migrations/0006_auto_20181015_1358.py
FireCARES/firecares
aa708d441790263206dd3a0a480eb6ca9031439d
[ "MIT" ]
14
2015-07-29T09:45:53.000Z
2020-10-21T20:03:17.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('weather', '0005_auto_20181015_1355'), ] operations = [ migrations.AlterField( model_name='weatherwarnings', ...
21.95
78
0.624146
61fac75e765587b715755954029c8304ec12f8ec
599
py
Python
TWLight/applications/migrations/0009_auto_20160527_1505.py
jajodiaraghav/TWLight
22359ab0b95ee3653e8ffa0eb698acd7bb8ebf70
[ "MIT" ]
1
2019-10-24T04:49:52.000Z
2019-10-24T04:49:52.000Z
TWLight/applications/migrations/0009_auto_20160527_1505.py
jajodiaraghav/TWLight
22359ab0b95ee3653e8ffa0eb698acd7bb8ebf70
[ "MIT" ]
1
2019-03-29T15:29:45.000Z
2019-03-29T15:57:20.000Z
TWLight/applications/migrations/0009_auto_20160527_1505.py
jajodiaraghav/TWLight
22359ab0b95ee3653e8ffa0eb698acd7bb8ebf70
[ "MIT" ]
1
2019-09-26T14:40:27.000Z
2019-09-26T14:40:27.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('applications', '0008_auto_20160527_1502'), ] operations = [ migrations.RemoveField( model_name='application', ...
23.96
95
0.597663
d34d4a134f4dc3edfb20a6f83f81aee69524029e
657
py
Python
Web/urlib.py
YangChenye/Python-Code
66a7edff84143ed6cc9518717c555399683e334c
[ "MIT" ]
41
2019-01-30T05:19:06.000Z
2022-01-30T06:37:16.000Z
Web/urlib.py
YangChenye/Python-Code
66a7edff84143ed6cc9518717c555399683e334c
[ "MIT" ]
null
null
null
Web/urlib.py
YangChenye/Python-Code
66a7edff84143ed6cc9518717c555399683e334c
[ "MIT" ]
44
2019-01-30T05:14:26.000Z
2022-01-02T08:15:19.000Z
from urllib import request if __name__ == "__main__": #访问网址 url = 'http://www.whatismyip.com.tw/' #这是代理IP proxy = {'http':'106.46.136.112:808'} #创建ProxyHandler proxy_support = request.ProxyHandler(proxy) #创建Opener opener = request.build_opener(proxy_support) #添加User Angent opene...
29.863636
156
0.668189
de75c874b64242d7348d4329dfa083046b036a7b
6,877
py
Python
tensorflow/compiler/plugin/poplar/tests/sendrecv_ops_test.py
DebeshJha/tensorflow-1
2b5a225c49d25273532d11c424d37ce394d7579a
[ "Apache-2.0" ]
2
2021-03-08T23:32:06.000Z
2022-01-13T03:43:49.000Z
tensorflow/compiler/plugin/poplar/tests/sendrecv_ops_test.py
DebeshJha/tensorflow-1
2b5a225c49d25273532d11c424d37ce394d7579a
[ "Apache-2.0" ]
null
null
null
tensorflow/compiler/plugin/poplar/tests/sendrecv_ops_test.py
DebeshJha/tensorflow-1
2b5a225c49d25273532d11c424d37ce394d7579a
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.934524
106
0.566381
0e2e807c886e18878f8f76a1ab8a971bb43d0fc9
6,961
py
Python
spinoffs/oryx/oryx/experimental/nn/convolution.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
2
2020-12-17T20:43:24.000Z
2021-06-11T22:09:16.000Z
spinoffs/oryx/oryx/experimental/nn/convolution.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
2
2021-08-25T16:14:51.000Z
2022-02-10T04:47:11.000Z
spinoffs/oryx/oryx/experimental/nn/convolution.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
1
2021-01-03T20:23:52.000Z
2021-01-03T20:23:52.000Z
# Copyright 2020 The TensorFlow Probability 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 o...
35.515306
78
0.644304
f4546ec5f67b9126df66038612427cd79680eeee
8,269
py
Python
deepsim/deepsim/core/math.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
1
2022-03-25T07:20:49.000Z
2022-03-25T07:20:49.000Z
deepsim/deepsim/core/math.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
deepsim/deepsim/core/math.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
################################################################################# # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"). ...
32.813492
112
0.58943
e324012a32d7e4b62dde14d0c920e33fa27eb7d5
30,026
py
Python
airflow/providers/google/cloud/hooks/tasks.py
troywinter/airflow
ba66ba0d97941c55d9f00f66329a9d3c7ad673e7
[ "Apache-2.0" ]
1
2020-11-26T16:00:01.000Z
2020-11-26T16:00:01.000Z
airflow/providers/google/cloud/hooks/tasks.py
troywinter/airflow
ba66ba0d97941c55d9f00f66329a9d3c7ad673e7
[ "Apache-2.0" ]
9
2020-07-28T15:07:03.000Z
2022-03-29T22:27:52.000Z
airflow/providers/google/cloud/hooks/tasks.py
troywinter/airflow
ba66ba0d97941c55d9f00f66329a9d3c7ad673e7
[ "Apache-2.0" ]
1
2019-06-15T08:38:53.000Z
2019-06-15T08:38:53.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
42.529745
96
0.643009
d250dc6cde24da9826634f0d45793bab58267b81
1,405
py
Python
test/test_node_partitions_node_partition_statfs.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
test/test_node_partitions_node_partition_statfs.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
test/test_node_partitions_node_partition_statfs.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
# coding: utf-8 """ Copyright 2016 SmartBear Software 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...
28.673469
111
0.760142
dd2cd4738c86a30adb627297acaa3db38fccf148
153
py
Python
F_django/Scripts/django-admin.py
lincoco/learning_log
980c4ae41cd4e34d3208057a77e7d232c389dec3
[ "MIT" ]
1
2019-06-03T03:41:26.000Z
2019-06-03T03:41:26.000Z
F_django/Scripts/django-admin.py
lincoco/learning_log
980c4ae41cd4e34d3208057a77e7d232c389dec3
[ "MIT" ]
null
null
null
F_django/Scripts/django-admin.py
lincoco/learning_log
980c4ae41cd4e34d3208057a77e7d232c389dec3
[ "MIT" ]
null
null
null
#!c:\py_\f_django\f_django\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
25.5
46
0.777778
e4a30816c6b68cb8e83ec352c7a27365d18f31e2
5,094
py
Python
src/gamesbyexample/bouncingdvd.py
spp2/PythonStdioGames
7edc6a07ef816a44579800e773f30217541971fa
[ "MIT" ]
null
null
null
src/gamesbyexample/bouncingdvd.py
spp2/PythonStdioGames
7edc6a07ef816a44579800e773f30217541971fa
[ "MIT" ]
null
null
null
src/gamesbyexample/bouncingdvd.py
spp2/PythonStdioGames
7edc6a07ef816a44579800e773f30217541971fa
[ "MIT" ]
1
2020-10-12T06:43:06.000Z
2020-10-12T06:43:06.000Z
"""Bouncing DVD Logo, by Al Sweigart al@inventwithpython.com A bouncing DVD logo animation. You have to be "of a certain age" to appreciate this. Press Ctrl-C to stop. NOTE: Do not resize the terminal window while this program is running. This and other games are available at https://nostarch.com/XX Tags: short, artis...
34.187919
71
0.540636
f56291a9ec5414b75b831e6f75a491faa1950a91
3,357
py
Python
apps/connections/statistics.py
Houston-ARTCC/zhu-core
99a2f95fa7c61e27560557b3a8aee41cc995d101
[ "MIT" ]
1
2020-12-25T04:21:07.000Z
2020-12-25T04:21:07.000Z
apps/connections/statistics.py
Houston-ARTCC/zhu-core
99a2f95fa7c61e27560557b3a8aee41cc995d101
[ "MIT" ]
3
2021-09-21T18:22:51.000Z
2021-12-10T20:31:19.000Z
apps/connections/statistics.py
Houston-ARTCC/zhu-core
99a2f95fa7c61e27560557b3a8aee41cc995d101
[ "MIT" ]
1
2021-04-13T23:33:39.000Z
2021-04-13T23:33:39.000Z
from datetime import timedelta from django.db.models import Sum, Q, DurationField from django.db.models.functions import Coalesce, Cast from django.utils import timezone from .models import ControllerSession from ..users.models import User, Status def annotate_hours(query): """ Annotates given QuerySet with ...
39.964286
120
0.716413
ad5d530c875330f18c850d869e31e10471526da8
3,063
py
Python
speech.py
derHeinz/speech_recognition
fe715980826ebdcfff8c416efdf1957a13098c8e
[ "Apache-2.0" ]
null
null
null
speech.py
derHeinz/speech_recognition
fe715980826ebdcfff8c416efdf1957a13098c8e
[ "Apache-2.0" ]
null
null
null
speech.py
derHeinz/speech_recognition
fe715980826ebdcfff8c416efdf1957a13098c8e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- from speech_recognition import Microphone, RequestError, UnknownValueError import json import os import sys import logging from porcupinerecognizer import CallbackCapablePorcupineRecognizer from tonegenerator_multithreading import ToneGeneratorThread import postopenhab from ...
35.206897
120
0.603983
0cd926f0660759b0d22e439c89144dc8cc27ba65
1,128
py
Python
eth2/beacon/types/proposal_signed_data.py
kushagrasharma/trinity
0dd33ee304630b93192861626ac5e9eca6fc4d92
[ "MIT" ]
null
null
null
eth2/beacon/types/proposal_signed_data.py
kushagrasharma/trinity
0dd33ee304630b93192861626ac5e9eca6fc4d92
[ "MIT" ]
null
null
null
eth2/beacon/types/proposal_signed_data.py
kushagrasharma/trinity
0dd33ee304630b93192861626ac5e9eca6fc4d92
[ "MIT" ]
null
null
null
from eth_typing import ( Hash32, ) import rlp from eth2.beacon._utils.hash import hash_eth2 from eth2.beacon.sedes import ( uint64, hash32, ) from eth2.beacon.typing import ( SlotNumber, ShardNumber, ) class ProposalSignedData(rlp.Serializable): """ Note: using RLP until we have standard...
20.888889
68
0.553191
51d6977ca2cea8afc292595613721344730eb8d2
1,914
py
Python
Mdd-master/willusetfidf.py
ayushsahu1999/startupGuidance
f6ca8c2c81cdd1f135aedd780b18771bd2681acd
[ "MIT" ]
null
null
null
Mdd-master/willusetfidf.py
ayushsahu1999/startupGuidance
f6ca8c2c81cdd1f135aedd780b18771bd2681acd
[ "MIT" ]
null
null
null
Mdd-master/willusetfidf.py
ayushsahu1999/startupGuidance
f6ca8c2c81cdd1f135aedd780b18771bd2681acd
[ "MIT" ]
2
2019-10-13T16:14:36.000Z
2020-10-10T08:36:40.000Z
# -*- coding: utf-8 -*- """ Created on Wed Apr 17 22:13:41 2019 @author: Dell """ # Making the Uniqueness Function of MDD Model # Let's get started BITCH! # Importing the Libraries def Uniqueness(): import numpy as np import pandas as pd import math # Importing the dataset dataset = pd....
22
68
0.471264
a06fb51a97ccf6c6e5d1bf55e453bba47b6aa4db
12,509
py
Python
tests/test_keep_largest_connected_componentd.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
1
2022-03-16T01:18:43.000Z
2022-03-16T01:18:43.000Z
tests/test_keep_largest_connected_componentd.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
null
null
null
tests/test_keep_largest_connected_componentd.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
36.048991
116
0.34679
09e6bb214cc83de36d8633ec0b2628a12398198d
2,029
py
Python
setup.py
ScriptBox99/deepmind-sonnet
5cbfdc356962d9b6198d5b63f0826a80acfdf35b
[ "Apache-2.0" ]
10,287
2017-04-07T12:33:37.000Z
2022-03-30T03:32:16.000Z
setup.py
ScriptBox99/deepmind-sonnet
5cbfdc356962d9b6198d5b63f0826a80acfdf35b
[ "Apache-2.0" ]
209
2017-04-07T15:57:11.000Z
2022-03-27T10:43:03.000Z
setup.py
ScriptBox99/deepmind-sonnet
5cbfdc356962d9b6198d5b63f0826a80acfdf35b
[ "Apache-2.0" ]
1,563
2017-04-07T13:15:06.000Z
2022-03-29T15:26:04.000Z
"""Setup for pip package.""" from setuptools import find_namespace_packages from setuptools import setup def _get_sonnet_version(): with open('sonnet/__init__.py') as fp: for line in fp: if line.startswith('__version__'): g = {} exec(line, g) # pylint: disable=exec-used return g[...
32.206349
75
0.66831
a6fa75d51247bb002b5fbfa7ce99d2439332ff22
2,415
py
Python
spiceypy/utils/callbacks.py
seignovert/SpiceyPy
6bee6198d4842d38ea9c6e9f4a54976407ce8d26
[ "MIT" ]
null
null
null
spiceypy/utils/callbacks.py
seignovert/SpiceyPy
6bee6198d4842d38ea9c6e9f4a54976407ce8d26
[ "MIT" ]
null
null
null
spiceypy/utils/callbacks.py
seignovert/SpiceyPy
6bee6198d4842d38ea9c6e9f4a54976407ce8d26
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) [2015-2017] [Andrew Annex] 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, modif...
32.2
79
0.722567
ae929dd48f7f4d6040d8671348b2ac7dd7334e06
2,464
py
Python
pokemongo_bot/event_manager.py
walaoaaa1234/PokemonGo-Bot_
24affedf5ff4b70aa816da00a6186a9eb37dc40f
[ "MIT" ]
1
2018-12-29T07:47:48.000Z
2018-12-29T07:47:48.000Z
pokemongo_bot/event_manager.py
walaoaaa1234/PokemonGo-Bot_
24affedf5ff4b70aa816da00a6186a9eb37dc40f
[ "MIT" ]
2
2021-03-25T21:33:45.000Z
2021-06-01T21:42:48.000Z
pokemongo_bot/event_manager.py
walaoaaa1234/PokemonGo-Bot_
24affedf5ff4b70aa816da00a6186a9eb37dc40f
[ "MIT" ]
1
2018-02-10T23:56:46.000Z
2018-02-10T23:56:46.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import print_function from sys import stdout class EventNotRegisteredException(Exception): pass class EventMalformedException(Exception): pass class EventHandler(object): def __init__(self): pass def handle_e...
31.589744
120
0.620536
21dda736c3d4aaee37185a85702ad8c80c0265a8
7,296
py
Python
activitysim/activitysim/core/util.py
ual/DOE-repo-deliverable
4bafdd9a702a9a6466dd32ae62f440644d735d3c
[ "BSD-3-Clause" ]
null
null
null
activitysim/activitysim/core/util.py
ual/DOE-repo-deliverable
4bafdd9a702a9a6466dd32ae62f440644d735d3c
[ "BSD-3-Clause" ]
null
null
null
activitysim/activitysim/core/util.py
ual/DOE-repo-deliverable
4bafdd9a702a9a6466dd32ae62f440644d735d3c
[ "BSD-3-Clause" ]
null
null
null
import os import psutil import gc from operator import itemgetter import numpy as np import pandas as pd from zbox import toolz as tz def memory_info(): gc.collect() process = psutil.Process(os.getpid()) bytes = process.memory_info().rss mb = (bytes / (1024 * 1024.0)) gb = (bytes / (1024 * 1024...
32.426667
94
0.658306
f2e4158eef445ba8f1bc21de095f108bae4aa8ea
8,038
py
Python
flash/tabular/forecasting/data.py
ar90n/lightning-flash
61e1a2d3b72f8fbbffe6ace14fb5b5bb35c5f131
[ "Apache-2.0" ]
null
null
null
flash/tabular/forecasting/data.py
ar90n/lightning-flash
61e1a2d3b72f8fbbffe6ace14fb5b5bb35c5f131
[ "Apache-2.0" ]
null
null
null
flash/tabular/forecasting/data.py
ar90n/lightning-flash
61e1a2d3b72f8fbbffe6ace14fb5b5bb35c5f131
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning 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 agreed to i...
42.983957
118
0.635606
fc3dd87173d8e3e1a808e0fda902045e844dddbf
12
py
Python
mock/ten.py
kevinghst/UDA_sup
c970622370d5de6b8c48b458cb8b4fe59e37effb
[ "Apache-2.0" ]
null
null
null
mock/ten.py
kevinghst/UDA_sup
c970622370d5de6b8c48b458cb8b4fe59e37effb
[ "Apache-2.0" ]
null
null
null
mock/ten.py
kevinghst/UDA_sup
c970622370d5de6b8c48b458cb8b4fe59e37effb
[ "Apache-2.0" ]
null
null
null
print("ten")
12
12
0.666667
f0d3931242c1d4cebe05d5322a31738405d02220
1,006
py
Python
main.py
aallali/SFJ-MSR
f87f45df46341ae8d9f2e84484cccbdde26b9baf
[ "MIT" ]
1
2022-03-04T14:32:27.000Z
2022-03-04T14:32:27.000Z
main.py
aallali/SFJ-MSR
f87f45df46341ae8d9f2e84484cccbdde26b9baf
[ "MIT" ]
null
null
null
main.py
aallali/SFJ-MSR
f87f45df46341ae8d9f2e84484cccbdde26b9baf
[ "MIT" ]
null
null
null
# **************************************************************************** # # # # ::: :::::::: # # main.py :+: :+: :+: ...
59.176471
80
0.162028
602a4b937ce16f95b41d5122f2b7d6175ee1cdd9
4,266
py
Python
handy_tools/_scratch_rot_morph.py
VelionaVollerei/PMX-VMD-Scripting-Tools
f935669e3bbc14f4a9b47803a1ccea1464b538b2
[ "MIT" ]
null
null
null
handy_tools/_scratch_rot_morph.py
VelionaVollerei/PMX-VMD-Scripting-Tools
f935669e3bbc14f4a9b47803a1ccea1464b538b2
[ "MIT" ]
null
null
null
handy_tools/_scratch_rot_morph.py
VelionaVollerei/PMX-VMD-Scripting-Tools
f935669e3bbc14f4a9b47803a1ccea1464b538b2
[ "MIT" ]
null
null
null
_SCRIPT_VERSION = "Script version: Nuthouse01 - 6/10/2021 - v6.00" """ DO FEET THE BEST WAY !!! in the final model, first vertex morph is applied, then bone morph is applied requires: vertex morph from pointed feet pose to flat feet pose sequence: 1. invert v morph that goes point > flat, save as feetflat 2. use "avg...
36.152542
191
0.716128
093de2884f525651728367c2b55e829a7b94cbd6
1,073
py
Python
tensorflow/python/keras/saving/saved_model/constants.py
khanhlvg/tensorflow
a59b74ccaafae59d616ecf08204d63023ff6f49c
[ "Apache-2.0" ]
2
2021-01-06T23:39:38.000Z
2021-01-06T23:39:38.000Z
tensorflow/python/keras/saving/saved_model/constants.py
khanhlvg/tensorflow
a59b74ccaafae59d616ecf08204d63023ff6f49c
[ "Apache-2.0" ]
8
2019-07-08T10:09:18.000Z
2019-09-26T20:55:43.000Z
tensorflow/python/keras/saving/saved_model/constants.py
khanhlvg/tensorflow
a59b74ccaafae59d616ecf08204d63023ff6f49c
[ "Apache-2.0" ]
1
2021-02-27T07:40:01.000Z
2021-02-27T07:40:01.000Z
# Copyright 2019 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...
42.92
80
0.719478
debadbd655f80c9770d752693710fb57412fa4d4
8,956
py
Python
geeet/meteo.py
Kripankc/geeet
64f183e62376dc119989ba0e7db0ed6acbd041c6
[ "MIT" ]
12
2021-03-11T12:09:13.000Z
2022-03-15T07:53:02.000Z
geeet/meteo.py
Kripankc/geeet
64f183e62376dc119989ba0e7db0ed6acbd041c6
[ "MIT" ]
2
2021-08-29T11:39:12.000Z
2022-01-12T13:10:45.000Z
geeet/meteo.py
Kripankc/geeet
64f183e62376dc119989ba0e7db0ed6acbd041c6
[ "MIT" ]
5
2021-03-27T19:48:13.000Z
2022-02-28T05:57:26.000Z
"""Meteorological functions""" from geeet.common import is_img import numpy as np # Constants defined as in # https://www.ecmwf.int/sites/default/files/elibrary/2016/17117-part-iv-physical-processes.pdf#subsection.L.5 Rdry = 287.0597 # gas constant for dry air, J/(kg*degK) Rvap = 461.5250 # gas constant for water vapo...
39.280702
143
0.625167
e6c484d7c63a1dc15b997611d27f24e47edea40f
4,564
py
Python
keras_gym/wrappers/video.py
KristianHolsheimer/keras-gym
0296ddcc8685e1ce732c3173caaa0fd25af9ef58
[ "MIT" ]
16
2019-07-01T10:56:26.000Z
2021-01-31T18:56:56.000Z
keras_gym/wrappers/video.py
KristianHolsheimer/keras-gym
0296ddcc8685e1ce732c3173caaa0fd25af9ef58
[ "MIT" ]
10
2019-03-10T21:56:10.000Z
2020-09-06T21:49:55.000Z
keras_gym/wrappers/video.py
KristianHolsheimer/keras-gym
0296ddcc8685e1ce732c3173caaa0fd25af9ef58
[ "MIT" ]
5
2019-08-02T22:11:19.000Z
2020-04-19T20:18:38.000Z
import gym import numpy as np from PIL import Image from ..utils import check_numpy_array from ..base.mixins import AddOrigToInfoDictMixin from ..base.errors import NumpyArrayCheckError __all__ = ( 'ImagePreprocessor', 'FrameStacker', ) class ImagePreprocessor(gym.Wrapper, AddOrigToInfoDictMixin): """ ...
29.636364
79
0.599036