hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
df6f2c67a8da3ba6a09918547b0345674413ccb9
200
py
Python
examples/request.py
guo-yu/pynotes
1418e387b91da0fb9a91bda0776d4dc5c2a5fc14
[ "MIT" ]
1
2019-05-19T03:49:16.000Z
2019-05-19T03:49:16.000Z
examples/request.py
guo-yu/pynotes
1418e387b91da0fb9a91bda0776d4dc5c2a5fc14
[ "MIT" ]
null
null
null
examples/request.py
guo-yu/pynotes
1418e387b91da0fb9a91bda0776d4dc5c2a5fc14
[ "MIT" ]
null
null
null
#!/usr/bin/python # Filename : request.py import requests r = requests.get('http://google.com') if r.status_code == 200: print 'your network access is cool' else: print 'you are behind the GFW'
18.181818
37
0.7
63bbb16de69ae37d36dff9c9b89e9fea464667e7
3,863
py
Python
venv/lib/python3.8/site-packages/ansible_collections/cisco/ise/plugins/modules/egress_matrix_cell_info.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_collections/cisco/ise/plugins/modules/egress_matrix_cell_info.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_collections/cisco/ise/plugins/modules/egress_matrix_cell_info.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2021, Cisco Systems # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r""" --- module: egress_matrix_cell_info short_description: Information module for Egress Matrix Cell description: - Get all Egress...
28.404412
114
0.64147
da1369fc453e89777759e395bcab7617ac0cf370
154
py
Python
tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_PolyTrend_BestCycle_AR.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_PolyTrend_BestCycle_AR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_PolyTrend_BestCycle_AR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Quantization'] , ['PolyTrend'] , ['BestCycle'] , ['AR'] );
38.5
81
0.746753
cfcaab970dbb0365b161119e56d459c90d97a83b
96
py
Python
ml_test/ml_test.py
Vidur-CUBoulder/GroceryRecommendataion
26de07156f4cd4ba5b008c8296c9c23be4032a54
[ "MIT" ]
null
null
null
ml_test/ml_test.py
Vidur-CUBoulder/GroceryRecommendataion
26de07156f4cd4ba5b008c8296c9c23be4032a54
[ "MIT" ]
null
null
null
ml_test/ml_test.py
Vidur-CUBoulder/GroceryRecommendataion
26de07156f4cd4ba5b008c8296c9c23be4032a54
[ "MIT" ]
null
null
null
import boto3 s3 = boto3.resource('s3') for bucket in s3.buckets.all(): print(bucket.name)
10.666667
31
0.6875
1d735836d01bee310c10778c6e5cbab1f75d191e
14,082
py
Python
cooltools/eigdecomp.py
ArtemLuzhin/cooltools
06b859160b69bfe99e83488e44f5f4f6f7208af7
[ "MIT" ]
null
null
null
cooltools/eigdecomp.py
ArtemLuzhin/cooltools
06b859160b69bfe99e83488e44f5f4f6f7208af7
[ "MIT" ]
null
null
null
cooltools/eigdecomp.py
ArtemLuzhin/cooltools
06b859160b69bfe99e83488e44f5f4f6f7208af7
[ "MIT" ]
null
null
null
import numpy as np import scipy import scipy.stats import pandas as pd from .lib import numutils import bioframe def _phase_eigs(eigvals, eigvecs, phasing_track, sort_metric=None): """ Flip `eigvecs` to achieve a positive correlation with `phasing_track`. Parameters ---------- sort_metric ...
34.346341
81
0.622639
3d81b38132425c416528750b933a87631c9c6938
27,317
py
Python
dqn/agent.py
ShuminKong/RL-Restore
0e03a53291f21d2155298e2ba4f6e20d8a17a783
[ "MIT" ]
null
null
null
dqn/agent.py
ShuminKong/RL-Restore
0e03a53291f21d2155298e2ba4f6e20d8a17a783
[ "MIT" ]
null
null
null
dqn/agent.py
ShuminKong/RL-Restore
0e03a53291f21d2155298e2ba4f6e20d8a17a783
[ "MIT" ]
null
null
null
import cv2 import numpy as np import os import random import scipy as sci import scipy.io as sio import tensorflow as tf from .base import BaseModel from .ops import linear, conv2d, clipped_error from .replay_memory import ReplayMemory from .utils import data_reformat, img2patch from tqdm import tqdm class Agent(BaseM...
48.520426
120
0.523191
08d38dfd345bfff9fbb7b97b1e9abc36372d5e2a
951
py
Python
tests/test_loader.py
Natureshadow/maillogger
b147e81411befd42a94f2252aae42def6d891732
[ "MIT" ]
2
2020-08-17T05:08:47.000Z
2020-12-16T19:47:15.000Z
tests/test_loader.py
Natureshadow/maillogger
b147e81411befd42a94f2252aae42def6d891732
[ "MIT" ]
null
null
null
tests/test_loader.py
Natureshadow/maillogger
b147e81411befd42a94f2252aae42def6d891732
[ "MIT" ]
1
2022-03-31T10:10:28.000Z
2022-03-31T10:10:28.000Z
import pytest from maillogger.file.filetype import is_gzip from maillogger.file.loader import Loader from tests.utils import BASE_DIR @pytest.mark.parametrize( 'filename, expectation', ( ('maillog', False), ('maillog.gz', True) ) ) def test_is_gzip(filename: str, expectation: bool): f...
24.384615
58
0.678233
d77bb3b00fadeee54d5b6b71bfe3fced44da29ce
1,078
py
Python
files_manager/migrations/0001_initial.py
Glooshak/file_storage
366be11ee83a03cce8d67747bf4d536428994877
[ "MIT" ]
4
2021-07-19T06:51:19.000Z
2021-07-19T06:52:40.000Z
files_manager/migrations/0001_initial.py
Glooshak/file_storage
366be11ee83a03cce8d67747bf4d536428994877
[ "MIT" ]
null
null
null
files_manager/migrations/0001_initial.py
Glooshak/file_storage
366be11ee83a03cce8d67747bf4d536428994877
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-06-20 17:10 import django.core.files.storage from django.db import migrations, models import django.utils.timezone import files_manager.models import pathlib class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations...
34.774194
330
0.652134
f904300f7ab4495c6d3e09da505612265a0aed79
82
py
Python
wpkit/cv/examples/torch/resnet/__init__.py
Peiiii/wpkit
23a07548be766b559b80e3114ecc24e3f2f65ea5
[ "MIT" ]
null
null
null
wpkit/cv/examples/torch/resnet/__init__.py
Peiiii/wpkit
23a07548be766b559b80e3114ecc24e3f2f65ea5
[ "MIT" ]
null
null
null
wpkit/cv/examples/torch/resnet/__init__.py
Peiiii/wpkit
23a07548be766b559b80e3114ecc24e3f2f65ea5
[ "MIT" ]
null
null
null
from .train import * from .test import * from .val import * from .predict import *
20.5
22
0.719512
30051b3ed532dd10f3039163019d14a5d5547691
2,235
py
Python
test/timing_sequence_test-2.9.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
null
null
null
test/timing_sequence_test-2.9.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
1
2019-10-22T21:28:31.000Z
2019-10-22T21:39:12.000Z
test/timing_sequence_test-2.9.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
2
2019-06-06T15:06:46.000Z
2020-07-20T02:03:22.000Z
"""Friedrich Schotte, 23 Jul 2015 - 29 Sep 2015""" __version__ = "2.9" if __name__ == "__main__": from pdb import pm # for debugging import logging logging.basicConfig(level=logging.DEBUG,format="%(asctime)s: %(message)s") ##import timing_system; timing_system.DEBUG = True from timing_system import...
41.388889
84
0.682774
446e9ee54ff822b7b73768a1f57c6b5ac5ec2653
420
py
Python
web/javarailsite/learn/migrations/0010_challenge_has_indent.py
wilfp/JavaRail
8dc708ded152b036dae8e73e95b24fb91c20c852
[ "MIT" ]
2
2019-02-06T23:15:21.000Z
2019-02-07T22:34:29.000Z
web/javarailsite/learn/migrations/0010_challenge_has_indent.py
wilfp/JavaRail
8dc708ded152b036dae8e73e95b24fb91c20c852
[ "MIT" ]
null
null
null
web/javarailsite/learn/migrations/0010_challenge_has_indent.py
wilfp/JavaRail
8dc708ded152b036dae8e73e95b24fb91c20c852
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2019-03-09 12:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('learn', '0009_fileupload'), ] operations = [ migrations.AddField( model_name='challenge', name='has_indent', ...
21
53
0.595238
1ccf21eca312e05f6b815a2e5bfc7cc4e49fee92
1,896
py
Python
bitforge/signature.py
yemel/coinage
ace015c565a5d95848f874d2f8c6586309e5950c
[ "MIT" ]
6
2015-04-15T19:23:30.000Z
2015-11-08T17:26:01.000Z
bitforge/signature.py
yemel/coinage
ace015c565a5d95848f874d2f8c6586309e5950c
[ "MIT" ]
27
2016-03-08T18:34:27.000Z
2016-03-16T21:51:50.000Z
bitforge/signature.py
yemel/bitforge
ace015c565a5d95848f874d2f8c6586309e5950c
[ "MIT" ]
2
2016-02-15T02:17:34.000Z
2017-10-24T12:17:30.000Z
from __future__ import unicode_literals SIGHASH_ALL = 0x01 SIGHASH_NONE = 0x02 SIGHASH_SINGLE = 0x03 SIGHASH_ANYONECANPAY = 0x80 def validate_signature(sig): # Minimum and maximum size constraints. sig = map(ord, sig) if (len(sig) < 9): return False; if (len(sig) > 73): retur...
29.625
91
0.630274
78d22c229152e630dbe1de06913f2daad342b934
5,172
py
Python
Lib/distutils/command/bdist_dumb.py
jimmyyu2004/jython
5b4dc2d54d01a6fda8c55d07b2608167e7a40769
[ "CNRI-Jython" ]
332
2015-08-22T12:43:56.000Z
2022-03-17T01:05:43.000Z
Lib/distutils/command/bdist_dumb.py
Pandinosaurus/jython3
def4f8ec47cb7a9c799ea4c745f12badf92c5769
[ "CNRI-Jython" ]
36
2015-05-30T08:39:19.000Z
2022-03-04T20:42:33.000Z
Lib/distutils/command/bdist_dumb.py
Pandinosaurus/jython3
def4f8ec47cb7a9c799ea4c745f12badf92c5769
[ "CNRI-Jython" ]
74
2015-05-29T17:18:53.000Z
2022-01-15T14:06:44.000Z
"""distutils.command.bdist_dumb Implements the Distutils 'bdist_dumb' command (create a "dumb" built distribution -- i.e., just an archive to be unpacked under $prefix or $exec_prefix).""" __revision__ = "$Id: bdist_dumb.py 77761 2010-01-26 22:46:15Z tarek.ziade $" import os from sysconfig import get_python_version...
39.181818
100
0.54331
b6109f5f53a26c32f60b428d145dbf7cad4f10c4
471
py
Python
python/send.py
ihtiandr9/rabbitmq-tutorials
4c906b34525842288b776c3fb8d652378d7d3ed6
[ "Apache-2.0" ]
null
null
null
python/send.py
ihtiandr9/rabbitmq-tutorials
4c906b34525842288b776c3fb8d652378d7d3ed6
[ "Apache-2.0" ]
null
null
null
python/send.py
ihtiandr9/rabbitmq-tutorials
4c906b34525842288b776c3fb8d652378d7d3ed6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import pika cred = pika.PlainCredentials(username='user',password='123') connection = pika.BlockingConnection( pika.ConnectionParameters(host='ihtiandr9.fvds.ru',credentials=cred)) channel = connection.channel() channel.queue_declare(queue='glass',durable=True) for i in range(5000): cha...
31.4
87
0.730361
3612b9b8c1b3f216d4f97a76e23273868fd31a81
993
py
Python
scripts/cwis_step06_fit_symmetry.py
emit-sds/emit-sds-l1b
be5307fe6821a043971becdd33609b4cf89b1974
[ "Apache-2.0" ]
null
null
null
scripts/cwis_step06_fit_symmetry.py
emit-sds/emit-sds-l1b
be5307fe6821a043971becdd33609b4cf89b1974
[ "Apache-2.0" ]
null
null
null
scripts/cwis_step06_fit_symmetry.py
emit-sds/emit-sds-l1b
be5307fe6821a043971becdd33609b4cf89b1974
[ "Apache-2.0" ]
null
null
null
# David R Thompson # Identify the axis of symmetry import numpy as np import sys, os from scipy.ndimage import gaussian_filter from scipy.stats import pearsonr from scipy.optimize import minimize_scalar, brute from spectral.io import envi left, right = 25, 1265 filename = '/beegfs/scratch/drt/20220112_CWIS2/hiss/2022...
24.825
101
0.676737
b92f961e526fdcf83943a4531044cc64f649927a
4,577
py
Python
test/test_month.py
bblommers/aws-analytics
be243bab6ded96a3d0563593ca57b4af536ea0a1
[ "MIT" ]
null
null
null
test/test_month.py
bblommers/aws-analytics
be243bab6ded96a3d0563593ca57b4af536ea0a1
[ "MIT" ]
22
2021-02-27T19:50:35.000Z
2021-03-22T19:36:59.000Z
code/python/test/test_month.py
tnorlund/Blog-backend
d231c32c9e37c38955fc07a6dd3cfaf833c8c99d
[ "MIT" ]
1
2021-01-09T10:02:37.000Z
2021-01-09T10:02:37.000Z
import pytest from dynamo.entities import Month, itemToMonth # pylint: disable=wrong-import-position def test_init(): month = Month( '/', 'Tyler Norlund', '2020-01', 10, 0.1, 0.25, { 'www': 0.5, '/blog': 0.25, '/resume': 0.25 }, { 'www': 0.25, '/blog': 0.5, '/resume': 0.25 } ) assert month.slug == '/...
31.136054
86
0.514092
ab91c57ed52b6be7dd2acde7dc397913540aae74
6,458
py
Python
payloadvoice/openstack/common/jsonutils.py
kickstandproject/payload-voice
54f12c4719b9d013dcf19a7e9b6727a748a394aa
[ "Apache-2.0" ]
1
2016-03-26T21:30:10.000Z
2016-03-26T21:30:10.000Z
payloadvoice/openstack/common/jsonutils.py
kickstandproject/payload-voice
54f12c4719b9d013dcf19a7e9b6727a748a394aa
[ "Apache-2.0" ]
null
null
null
payloadvoice/openstack/common/jsonutils.py
kickstandproject/payload-voice
54f12c4719b9d013dcf19a7e9b6727a748a394aa
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may #...
35.679558
79
0.653608
e11a46dcbb78c28a102feb7fd87764400ae4bd8d
5,995
py
Python
pgoapi/protos/pogoprotos/networking/responses/claim_codename_response_pb2.py
aroo135/pgoapi
47d384ffe54051363ba380f0cb14ec584feedab1
[ "MIT" ]
842
2016-08-07T00:07:26.000Z
2016-08-22T02:41:38.000Z
aiopogo/pogoprotos/networking/responses/claim_codename_response_pb2.py
ultrafunkamsterdam/aiopogo
43444c994a400bc9bc8fd1ccaa6a1f79ff5df1fe
[ "MIT" ]
102
2016-08-22T19:55:24.000Z
2018-10-28T12:06:33.000Z
aiopogo/pogoprotos/networking/responses/claim_codename_response_pb2.py
ultrafunkamsterdam/aiopogo
43444c994a400bc9bc8fd1ccaa6a1f79ff5df1fe
[ "MIT" ]
522
2016-08-07T00:06:05.000Z
2016-08-21T18:03:59.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: pogoprotos/networking/responses/claim_codename_response.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message ...
42.21831
776
0.77231
af8dfe7bc4e1de3b0aef4e461061ed2f5091bd4a
1,748
py
Python
var/spack/repos/builtin/packages/py-neurodamus/package.py
anilbey/spack
9ed435dab78f9e6c777c2cbcb10be7a8b71470db
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-neurodamus/package.py
anilbey/spack
9ed435dab78f9e6c777c2cbcb10be7a8b71470db
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-neurodamus/package.py
anilbey/spack
9ed435dab78f9e6c777c2cbcb10be7a8b71470db
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyNeurodamus(PythonPackage): """The BBP simulation control suite, Python API """ h...
36.416667
80
0.591533
060ff2a3bafe83828012d7e839fcfcef75243d82
6,078
py
Python
resources/dot_PyCharm/system/python_stubs/cache/6f04f0a187b33069f6338b7fa582592ecc293daf2d3376a25098d337ebc96d1e/win32wnet.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
1
2020-04-20T02:27:20.000Z
2020-04-20T02:27:20.000Z
resources/dot_PyCharm/system/python_stubs/cache/6f04f0a187b33069f6338b7fa582592ecc293daf2d3376a25098d337ebc96d1e/win32wnet.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
resources/dot_PyCharm/system/python_stubs/cache/6f04f0a187b33069f6338b7fa582592ecc293daf2d3376a25098d337ebc96d1e/win32wnet.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
# encoding: utf-8 # module win32wnet # from C:\Python27\lib\site-packages\win32\win32wnet.pyd # by generator 1.147 # no doc # imports from pywintypes import error # functions def NCBBuffer(*args, **kwargs): # real signature unknown """ Creates a memory buffer """ pass def Netbios(*args, **kwargs): # real s...
34.931034
123
0.667325
f74b21dcb399a11c00d706de5d4179127d4b973e
2,250
py
Python
mongo/pergunta1/pergunta1.py
mtctr/engdados-bigdata
25cd9559481015193bf3d82bb4574749677e4a0d
[ "MIT" ]
null
null
null
mongo/pergunta1/pergunta1.py
mtctr/engdados-bigdata
25cd9559481015193bf3d82bb4574749677e4a0d
[ "MIT" ]
null
null
null
mongo/pergunta1/pergunta1.py
mtctr/engdados-bigdata
25cd9559481015193bf3d82bb4574749677e4a0d
[ "MIT" ]
1
2018-08-10T18:43:48.000Z
2018-08-10T18:43:48.000Z
from pyspark.sql import SparkSession as spark #configuração do spark spark.builder.config('spark.jars.packages','org.mongodb.spark:mongo-spark-connector_2.11:2.2.0' ).getOrCreate() #conexão com a collection de candidatos spark_candidatos = spark \ .builder \ .appName("candidatosApp") \ .config("spark.mon...
43.269231
141
0.760444
0495a0c4a4214f3576c9bb44d1d8392151e3bd19
1,264
py
Python
examples/http2-server.py
Timo2907/quiche
8f6dcf60292575e2cf61b3e7cef7c6e5f557653b
[ "BSD-2-Clause" ]
null
null
null
examples/http2-server.py
Timo2907/quiche
8f6dcf60292575e2cf61b3e7cef7c6e5f557653b
[ "BSD-2-Clause" ]
null
null
null
examples/http2-server.py
Timo2907/quiche
8f6dcf60292575e2cf61b3e7cef7c6e5f557653b
[ "BSD-2-Clause" ]
null
null
null
import json import socket import h2.connection import h2.events def send_response(conn, event): stream_id = event.stream_id response_data = json.dumps(dict(event.headers)).encode('utf-8') conn.send_headers( stream_id=stream_id, headers=[ (':status', '200'), ('serve...
24.307692
67
0.613133
0467bf8853a7757adb6bd10ad27374ae7dd2887d
5,742
py
Python
src/data/user.py
lkeelery/real-estate-calculator-bot
99bbe34a2f3af46d7997254751a514cce126d759
[ "MIT" ]
null
null
null
src/data/user.py
lkeelery/real-estate-calculator-bot
99bbe34a2f3af46d7997254751a514cce126d759
[ "MIT" ]
null
null
null
src/data/user.py
lkeelery/real-estate-calculator-bot
99bbe34a2f3af46d7997254751a514cce126d759
[ "MIT" ]
1
2022-01-16T21:36:54.000Z
2022-01-16T21:36:54.000Z
"""Handles updating necessary variables per user input""" from dataclasses import dataclass from src.web.get_current_interest_rates \ import set_page_interest_rates, InterestRates from src.web.get_property_info \ import get_address, get_price, get_year, get_description, \ get_property_taxes, get_num_units...
34.178571
79
0.646639
33620aa3f786e53757872d8bbd7c9b6fca670df8
281
py
Python
erpnext_printing/config/desktop.py
makeen/erpnext_printing
298c29ec9616c252095650ba411ff2266a0364a0
[ "MIT" ]
null
null
null
erpnext_printing/config/desktop.py
makeen/erpnext_printing
298c29ec9616c252095650ba411ff2266a0364a0
[ "MIT" ]
null
null
null
erpnext_printing/config/desktop.py
makeen/erpnext_printing
298c29ec9616c252095650ba411ff2266a0364a0
[ "MIT" ]
1
2019-09-02T08:05:20.000Z
2019-09-02T08:05:20.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "module_name": "Custom printing documents", "color": "grey", "icon": "icon-pallete", "type": "module", "label": _("Custom printing documents") } ]
18.733333
46
0.629893
8de5fa07b8ba221be9e097810924f8ba93b30538
672
py
Python
supervised/tuner/random_parameters.py
wambagilles/mljar-supervised
3192c91979b31810b249767a63e60ee74068c668
[ "MIT" ]
1
2020-03-13T09:44:41.000Z
2020-03-13T09:44:41.000Z
supervised/tuner/random_parameters.py
wambagilles/mljar-supervised
3192c91979b31810b249767a63e60ee74068c668
[ "MIT" ]
null
null
null
supervised/tuner/random_parameters.py
wambagilles/mljar-supervised
3192c91979b31810b249767a63e60ee74068c668
[ "MIT" ]
null
null
null
import numpy as np class RandomParameters: """ Example params are in JSON format: { "booster": ["gbtree", "gblinear"], "objective": ["binary:logistic"], "eval_metric": ["auc", "logloss"], "eta": [0.0025, 0.005, 0.0075, 0.01, 0.025, 0.05, 0.075, 0.1] } """ @sta...
26.88
76
0.566964
a12e19291c8ca240963dc68c386d8bcb5eec43b4
891
py
Python
test/mnist/client/train.py
aitmlouk/fedn
d6b663554492464e4eaed391a7048ec09cb11f25
[ "Apache-2.0" ]
null
null
null
test/mnist/client/train.py
aitmlouk/fedn
d6b663554492464e4eaed391a7048ec09cb11f25
[ "Apache-2.0" ]
null
null
null
test/mnist/client/train.py
aitmlouk/fedn
d6b663554492464e4eaed391a7048ec09cb11f25
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import sys import tensorflow as tf import tensorflow.keras as keras import tensorflow.keras.models as krm import pickle tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR) from read_data import read_data def train(model,data,sample_fraction): print("-- RUNNING T...
24.081081
81
0.717172
c0244e6a03ad7b8f7c6eb1d51bc547225098ab38
15,096
py
Python
airflow/gcp/hooks/gsheets.py
gmaliar/airflow
5bfd7f481cbb9a997d33281eab945e2074f47c52
[ "Apache-2.0" ]
null
null
null
airflow/gcp/hooks/gsheets.py
gmaliar/airflow
5bfd7f481cbb9a997d33281eab945e2074f47c52
[ "Apache-2.0" ]
null
null
null
airflow/gcp/hooks/gsheets.py
gmaliar/airflow
5bfd7f481cbb9a997d33281eab945e2074f47c52
[ "Apache-2.0" ]
1
2019-12-09T08:41:32.000Z
2019-12-09T08:41:32.000Z
# -*- coding: utf-8 -*- # # 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 #...
40.8
103
0.661301
cec39fd004b40a219c225c0f990161884840ba39
2,779
py
Python
DataAnalysisLib/errorprop.py
jeanyvesb9/DataAnalysis-Lib
355669379448511e3d80c7a5a4a2b5e08598ac64
[ "MIT" ]
1
2018-05-27T18:53:44.000Z
2018-05-27T18:53:44.000Z
DataAnalysisLib/errorprop.py
jeanyvesb9/DataAnalysis-Lib
355669379448511e3d80c7a5a4a2b5e08598ac64
[ "MIT" ]
null
null
null
DataAnalysisLib/errorprop.py
jeanyvesb9/DataAnalysis-Lib
355669379448511e3d80c7a5a4a2b5e08598ac64
[ "MIT" ]
2
2018-11-02T14:33:53.000Z
2019-01-23T20:14:36.000Z
import warnings as _warnings import typing as _typing import sympy as _sp import numpy as _np import matplotlib.pyplot as _plt import dataset as _ds import global_funcs as _gf import global_enums as _ge class ErrorProp: def __init__(self, func, data = [] , eps = 0.1): if isinstance(data, _ds.Datas...
30.538462
126
0.586902
7fd939b5e8612020d175cc9009d6a92fb3909b85
243
py
Python
core/routing.py
gomezag/MQTTdash
fb95fb1acaa807be4780bd5a30526a93321523d5
[ "MIT" ]
2
2021-01-23T14:35:23.000Z
2021-06-03T03:45:07.000Z
core/routing.py
gomezag/mqttdash
fb95fb1acaa807be4780bd5a30526a93321523d5
[ "MIT" ]
null
null
null
core/routing.py
gomezag/mqttdash
fb95fb1acaa807be4780bd5a30526a93321523d5
[ "MIT" ]
null
null
null
# chat/routing.py from django.urls import re_path from . import consumers websocket_urlpatterns = [ re_path(r'ws/room/(?P<loc_name>\w+)/$', consumers.DataConsumer), re_path(r'ws/control/(?P<thing>\w+)/$', consumers.CommandConsumer), ]
30.375
71
0.711934
3cd7026995c921b5cc81fcdaf9448c2acdbd9fa7
2,403
py
Python
Einkommenssteuertarif.py
ThoEngel/rentenplanung
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
3
2022-01-01T18:24:46.000Z
2022-01-08T15:28:46.000Z
Einkommenssteuertarif.py
ThoEngel/Finanzen-Simuliert
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
null
null
null
Einkommenssteuertarif.py
ThoEngel/Finanzen-Simuliert
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
null
null
null
''' Vorsicht vor der 4% Regel (Teil 3) – welchen Einfluss haben Steuern auf die sichere Entnahmerate? Sichere Entnahmerate mit Steuer https://www.finanzen-erklaert.de/vorsicht-vor-der-4-regel-teil-3-welchen-einfluss-haben-steuern-auf-die-sichere-entnahmerate/ ''' import pandas as pd import time import plotly.expres...
27.62069
125
0.714524
f4ba50ac109d3ea62175282115cb6628f7745db8
89
py
Python
featuretools/primitives/premium/api.py
leahincom/qufafeat
62d59764e432df2f7ec8487a1b625eb6b8994574
[ "BSD-3-Clause" ]
2
2021-07-13T07:40:20.000Z
2021-08-19T04:57:24.000Z
featuretools/primitives/premium/api.py
leahincom/qufafeat
62d59764e432df2f7ec8487a1b625eb6b8994574
[ "BSD-3-Clause" ]
6
2021-07-19T05:15:38.000Z
2021-08-24T11:34:58.000Z
featuretools/primitives/premium/api.py
leahincom/qufafeat
62d59764e432df2f7ec8487a1b625eb6b8994574
[ "BSD-3-Clause" ]
2
2021-07-02T00:48:07.000Z
2021-07-02T09:35:49.000Z
# flake8: noqa from .aggregation_primitives import * from .transform_primitive import *
17.8
37
0.797753
6b73397140a04b27ae38d74a8e1615d4aa193b33
1,069
py
Python
venv/lib/python3.6/site-packages/pelican/tests/test_rstdirectives.py
Patrisha-de-Boon/CMPUT404-Lab5
cc235c56d707a96345e1093c8f346eee78e3644d
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.6/site-packages/pelican/tests/test_rstdirectives.py
Patrisha-de-Boon/CMPUT404-Lab5
cc235c56d707a96345e1093c8f346eee78e3644d
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.6/site-packages/pelican/tests/test_rstdirectives.py
Patrisha-de-Boon/CMPUT404-Lab5
cc235c56d707a96345e1093c8f346eee78e3644d
[ "Apache-2.0" ]
null
null
null
from unittest.mock import Mock from pelican.tests.support import unittest class Test_abbr_role(unittest.TestCase): def call_it(self, text): from pelican.rstdirectives import abbr_role rawtext = text lineno = 42 inliner = Mock(name='inliner') nodes, system_messages = abbr_r...
33.40625
63
0.63985
3e3c9f1b2413c74291524188050f2ecf7ef9c731
408
py
Python
tools/mo/openvino/tools/mo/front/tf/scatter_nd_ext.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
tools/mo/openvino/tools/mo/front/tf/scatter_nd_ext.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
tools/mo/openvino/tools/mo/front/tf/scatter_nd_ext.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
414
2018-10-17T05:53:46.000Z
2020-04-16T17:29:53.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openvino.tools.mo.ops.scatternd import TFScatterND from openvino.tools.mo.front.extractor import FrontExtractorOp class ScatterNDExtractor(FrontExtractorOp): op = 'ScatterNd' enabled = True @classmethod def extrac...
25.5
62
0.740196
f8dea673bb1583f989003e1cb0e98a4669a06b4f
4,682
py
Python
tests/test_example.py
cisagov/skeleton-python
7dc735b4ad8d66f0794dd6d3e16bae869bb9958b
[ "CC0-1.0" ]
18
2020-04-16T22:19:07.000Z
2022-03-22T12:17:13.000Z
tests/test_example.py
cisagov/skeleton-python
7dc735b4ad8d66f0794dd6d3e16bae869bb9958b
[ "CC0-1.0" ]
26
2019-04-11T20:15:11.000Z
2021-09-13T20:53:20.000Z
tests/test_example.py
vetspec/skeleton-python-library
0a70bbb810a299be785bfeb7d535fa5f18762ebe
[ "CC0-1.0" ]
9
2019-06-02T04:16:04.000Z
2021-11-06T20:26:50.000Z
#!/usr/bin/env pytest -vs """Tests for example.""" # Standard Python Libraries import logging import os import sys from unittest.mock import patch # Third-Party Libraries import pytest # cisagov Libraries import example div_params = [ (1, 1, 1), (2, 2, 1), (0, 1, 0), (8, 2, 4), ] log_levels = ( ...
32.289655
87
0.636907
fc81220cd7f02a033a26440db0b2f6448cd5b8e5
1,080
py
Python
PyInstaller/hooks/rthooks/pyi_rth_gstreamer.py
ravindrajeet27/pyinstaller
e2d61ecb4bf1fa4708b6db036929b6971fc641e8
[ "Apache-2.0" ]
12
2020-12-15T15:12:06.000Z
2022-03-18T16:17:42.000Z
PyInstaller/hooks/rthooks/pyi_rth_gstreamer.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
10
2020-09-30T12:49:45.000Z
2020-10-04T10:26:33.000Z
PyInstaller/hooks/rthooks/pyi_rth_gstreamer.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
10
2020-12-15T15:12:14.000Z
2022-02-09T21:02:17.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2013-2020, PyInstaller Development Team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # # The full license is in the file COPYING.txt, ...
36
78
0.646296
f8f06bdcdcca5b05243021716a6885d19199e111
5,114
py
Python
cartoframes/viz/helpers/color_category_layer.py
jorisvandenbossche/cartoframes
de0f514a8460d61a86afd58e46f7e738060ba09a
[ "BSD-3-Clause" ]
null
null
null
cartoframes/viz/helpers/color_category_layer.py
jorisvandenbossche/cartoframes
de0f514a8460d61a86afd58e46f7e738060ba09a
[ "BSD-3-Clause" ]
null
null
null
cartoframes/viz/helpers/color_category_layer.py
jorisvandenbossche/cartoframes
de0f514a8460d61a86afd58e46f7e738060ba09a
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from .utils import serialize_palette, get_value from ..layer import Layer def color_category_layer( source, value, title='', top=11, cat=None, palette=None, size=None, opacity=None, stroke_color=None, stroke_width=None, description='', footer='', legend...
43.338983
98
0.553774
069d600fd2a010808f7549a9c7aafc896e7f0bf0
1,149
py
Python
exercise/app/notification.py
assuzzanne/my-sqreen
81ae0eab417a1dbc0ae6b1778ebfdd71591c3c5b
[ "MIT" ]
null
null
null
exercise/app/notification.py
assuzzanne/my-sqreen
81ae0eab417a1dbc0ae6b1778ebfdd71591c3c5b
[ "MIT" ]
1
2021-06-02T00:27:34.000Z
2021-06-02T00:27:34.000Z
exercise/app/notification.py
assuzzanne/notifications-dispatcher-api
81ae0eab417a1dbc0ae6b1778ebfdd71591c3c5b
[ "MIT" ]
null
null
null
import logging from app.config import ACCOUNT_SID, AUTH_TOKEN, SLACK_TOKEN, SLACK_CHANNEL from twilio.rest import Client from slackclient import SlackClient twilio_client = Client(ACCOUNT_SID, AUTH_TOKEN) slack_client = SlackClient(SLACK_TOKEN) class Notification: def send_sms(self, sms_body, addressee): ...
31.054054
74
0.580505
103387e245532033181e03730d1a5ae53d5dbbc2
14,221
py
Python
readthedocs/projects/forms.py
ardalis/readthedocs.org
1c417d866f014e01d3842022facf7fed4c09921a
[ "MIT" ]
null
null
null
readthedocs/projects/forms.py
ardalis/readthedocs.org
1c417d866f014e01d3842022facf7fed4c09921a
[ "MIT" ]
null
null
null
readthedocs/projects/forms.py
ardalis/readthedocs.org
1c417d866f014e01d3842022facf7fed4c09921a
[ "MIT" ]
null
null
null
from random import choice from django import forms from django.conf import settings from django.contrib.auth.models import User from django.template.defaultfilters import slugify from django.template.loader import render_to_string from django.utils.translation import ugettext_lazy as _ from django.utils.safestring imp...
33.619385
97
0.611842
3168b1b493a5e142c403cb0904df69ab0b1efc49
1,885
py
Python
function_argument.py
YangZeCN/PythonLearningCenter
4528a232ca3c9abfa32ae0ce1673caf723db0bd2
[ "Apache-2.0" ]
null
null
null
function_argument.py
YangZeCN/PythonLearningCenter
4528a232ca3c9abfa32ae0ce1673caf723db0bd2
[ "Apache-2.0" ]
null
null
null
function_argument.py
YangZeCN/PythonLearningCenter
4528a232ca3c9abfa32ae0ce1673caf723db0bd2
[ "Apache-2.0" ]
null
null
null
''' Name: function_argument.py Author: Yang Ze Created: 2018.02.01 Last Modified: Version: V1.0 Description: # An example for default argument, keyword argument, VarArgs parameters, etc. ''' def default_argument(a, b, c=2, d='m'): '''The last two parameters b and c have defualt value; Only those pa...
29.920635
107
0.65252
e585e8c5484ff2d78c660484067a793dd07ce90b
4,517
py
Python
frontends/pytorch/test/node_import/prim.py
River707/mlir-npcomp
544cb4ef549b00e12a932b68f5b15b5de01fe440
[ "Apache-2.0" ]
null
null
null
frontends/pytorch/test/node_import/prim.py
River707/mlir-npcomp
544cb4ef549b00e12a932b68f5b15b5de01fe440
[ "Apache-2.0" ]
null
null
null
frontends/pytorch/test/node_import/prim.py
River707/mlir-npcomp
544cb4ef549b00e12a932b68f5b15b5de01fe440
[ "Apache-2.0" ]
null
null
null
# -*- Python -*- # This file is licensed under a pytorch-style license # See frontends/pytorch/LICENSE for license information. import typing import torch import torch_mlir import typing # RUN: %PYTHON %s | npcomp-opt | FileCheck %s mb = torch_mlir.ModuleBuilder() # CHECK-LABEL: func @__torch__.prim_NumToTenso...
38.939655
154
0.578703
f5bae603ee4b6b0aa953b081baeb3c0bebc32a87
648
py
Python
2/solve.py
cashew22/adventOfCode
25a2f04111251dcfe9022b112aa0b704b6f85ab5
[ "MIT" ]
2
2015-12-05T18:11:52.000Z
2015-12-05T18:12:07.000Z
2/solve.py
cashew22/adventOfCode
25a2f04111251dcfe9022b112aa0b704b6f85ab5
[ "MIT" ]
null
null
null
2/solve.py
cashew22/adventOfCode
25a2f04111251dcfe9022b112aa0b704b6f85ab5
[ "MIT" ]
null
null
null
class gift: def __init__(self, size): self.l = size[0] self.w = size[1] self.h = size[2] self.lw = self.l * self.w self.wh = self.w * self.h self.hl = self.h * self.l self.paper = min(self.lw, self.wh, self.hl) + 2*(self.lw + self.wh + self.hl) self.bow = self.l * self.w * self.h size.sort() self.r...
27
79
0.62037
792228aa26b00e66d878c53070e7caa85d1c75cd
2,425
py
Python
app/venv/lib/python2.7/site-packages/pygal/graph/dual.py
anaheino/Ufo-sightings-map
64af02093f97737cbbdfd8af9e1aeb4d8aa8fcdc
[ "MIT" ]
null
null
null
app/venv/lib/python2.7/site-packages/pygal/graph/dual.py
anaheino/Ufo-sightings-map
64af02093f97737cbbdfd8af9e1aeb4d8aa8fcdc
[ "MIT" ]
null
null
null
app/venv/lib/python2.7/site-packages/pygal/graph/dual.py
anaheino/Ufo-sightings-map
64af02093f97737cbbdfd8af9e1aeb4d8aa8fcdc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2015 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version...
37.890625
79
0.64
25a4205ee2ec554c5790d43ba9e81764e3f98a5a
6,083
py
Python
vtpl_api/models/default_response.py
vtpl1/videonetics_api
bef179df12f449db0c50c3910daca50b7d40ac49
[ "RSA-MD" ]
null
null
null
vtpl_api/models/default_response.py
vtpl1/videonetics_api
bef179df12f449db0c50c3910daca50b7d40ac49
[ "RSA-MD" ]
1
2021-02-26T07:31:37.000Z
2021-02-26T07:31:37.000Z
vtpl_api/models/default_response.py
vtpl1/videonetics_api
bef179df12f449db0c50c3910daca50b7d40ac49
[ "RSA-MD" ]
2
2020-11-04T02:52:55.000Z
2020-11-05T08:09:50.000Z
# coding: utf-8 """ Engine api Engine APIs # noqa: E501 OpenAPI spec version: 1.0.6 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class DefaultResponse(object): """NOTE: This class is auto generated by the swagger co...
25.240664
110
0.547263
492bcc50405da848a43a4b4b07112af5f3783991
1,651
py
Python
libs/detector/utils/file.py
explain116/labelImg
bce8963dd87f70ddad2f6fc83f967b52e69a86d6
[ "MIT" ]
null
null
null
libs/detector/utils/file.py
explain116/labelImg
bce8963dd87f70ddad2f6fc83f967b52e69a86d6
[ "MIT" ]
null
null
null
libs/detector/utils/file.py
explain116/labelImg
bce8963dd87f70ddad2f6fc83f967b52e69a86d6
[ "MIT" ]
null
null
null
#!/usr/bin/python3 python # encoding: utf-8 ''' @author: 孙昊 @contact: smartadpole@163.com @file: file.py @time: 2020/9/30 下午5:53 @desc: ''' import os from time import time from functools import wraps def Walk(path, suffix:list, depth=None): file_list = [] suffix = [s.lower() for s in suffix] if not os.pat...
26.629032
100
0.603876
18dda4af1219bfedbe42644610ee8f35bfcbb7c8
56,504
py
Python
packages/weevely/utils/ipaddr.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
null
null
null
packages/weevely/utils/ipaddr.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
null
null
null
packages/weevely/utils/ipaddr.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # # Copyright 2007 Google Inc. # Licensed to PSF under a Contributor Agreement. # # 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/LIC...
31.252212
80
0.566261
a3cd69977ad583f449792419ec7661916799e6a6
1,835
py
Python
tests/keymap/test_jsonify.py
jirutka/sublimedsl
ca9fc79ab06e6efd79a6d5b37cb716688d4affc2
[ "MIT" ]
1
2015-08-13T08:14:09.000Z
2015-08-13T08:14:09.000Z
tests/keymap/test_jsonify.py
jirutka/sublimedsl
ca9fc79ab06e6efd79a6d5b37cb716688d4affc2
[ "MIT" ]
null
null
null
tests/keymap/test_jsonify.py
jirutka/sublimedsl
ca9fc79ab06e6efd79a6d5b37cb716688d4affc2
[ "MIT" ]
null
null
null
from sublimedsl.keymap import Binding, Context, jsonify from textwrap import dedent def context_given_Context(): def dumps_attrs_in_defined_order(): context = Context('text').any().equal('meh') assert jsonify(context) == dedent('''\ { "key": "text", "operat...
25.84507
62
0.431063
645a697ea03a491346e9bf19e080599157e51df4
5,616
py
Python
montreal_forced_aligner/corpus/helper.py
ai-zahran/Montreal-Forced-Aligner
decbacfe86f81703022da4e95fd109eb94e7686d
[ "MIT" ]
null
null
null
montreal_forced_aligner/corpus/helper.py
ai-zahran/Montreal-Forced-Aligner
decbacfe86f81703022da4e95fd109eb94e7686d
[ "MIT" ]
null
null
null
montreal_forced_aligner/corpus/helper.py
ai-zahran/Montreal-Forced-Aligner
decbacfe86f81703022da4e95fd109eb94e7686d
[ "MIT" ]
null
null
null
"""Helper functions for corpus parsing and loading""" from __future__ import annotations import os import shutil import subprocess from typing import Dict, List, Optional, Tuple, Union import soundfile from ..dictionary import sanitize from ..exceptions import SoxError SoundFileInfoDict = Dict[str, Union[int, float...
30.193548
96
0.589031
411b0eac1712d040aa05be3569e06003c28167be
1,265
py
Python
src/robot/running/timeouts/posix.py
yahman72/robotframework
9f82d9a2bf088073859eb23a33d275c6a8c0b975
[ "ECL-2.0", "Apache-2.0" ]
7
2015-02-25T10:55:02.000Z
2015-11-04T03:20:05.000Z
src/robot/running/timeouts/posix.py
yahman72/robotframework
9f82d9a2bf088073859eb23a33d275c6a8c0b975
[ "ECL-2.0", "Apache-2.0" ]
12
2015-02-24T17:00:06.000Z
2015-07-31T08:32:07.000Z
src/robot/running/timeouts/posix.py
yahman72/robotframework
9f82d9a2bf088073859eb23a33d275c6a8c0b975
[ "ECL-2.0", "Apache-2.0" ]
2
2015-12-15T11:00:35.000Z
2018-02-24T18:11:24.000Z
# Copyright 2008-2015 Nokia Solutions and Networks # # 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...
30.119048
75
0.701976
876fbc349708b985fee852378857a6d28bf801fe
278
py
Python
tdoa/array_default.py
ProjektseminarAUT-Gruppe10/Sound-Source-Localization-for-Outdoor-Far-distance-Applications
07a0f2c5391ee85fe114a1178bab5d7baca52662
[ "MIT" ]
null
null
null
tdoa/array_default.py
ProjektseminarAUT-Gruppe10/Sound-Source-Localization-for-Outdoor-Far-distance-Applications
07a0f2c5391ee85fe114a1178bab5d7baca52662
[ "MIT" ]
null
null
null
tdoa/array_default.py
ProjektseminarAUT-Gruppe10/Sound-Source-Localization-for-Outdoor-Far-distance-Applications
07a0f2c5391ee85fe114a1178bab5d7baca52662
[ "MIT" ]
null
null
null
import array_parameters class ArrayDefault(array_parameters.ArrayParameters): def __init__(self): positions = [[0, 0.5], [0.3536, 0.3536], [0.5, 0], [0.3536, -0.3536], [0, -0.5], [-0.3536, -0.3536], [-0.5, 0], [-0.3536, 0.3536]] super().__init__(positions)
39.714286
138
0.604317
2cd26e3a053f8c0af740f76b24cba0697e706e0c
166
py
Python
setup.py
maximzubkov/long-range-arena
92e7bfc10434a3312dad423ec82ee6c0c1a15d99
[ "Apache-2.0" ]
null
null
null
setup.py
maximzubkov/long-range-arena
92e7bfc10434a3312dad423ec82ee6c0c1a15d99
[ "Apache-2.0" ]
null
null
null
setup.py
maximzubkov/long-range-arena
92e7bfc10434a3312dad423ec82ee6c0c1a15d99
[ "Apache-2.0" ]
null
null
null
import setuptools setuptools.setup( name="long-range-arena", author="Google", description="Long-Range Arena", packages=setuptools.find_packages(), )
18.444444
40
0.704819
ff860216c30bd1381e9f1b40bdf02e5082ab04aa
1,936
py
Python
util/data/read_id_href.py
firstprojectfor/FPF_python
2321aff0d5b56f787befec55917d731c8c776558
[ "MIT" ]
1
2019-05-04T01:32:06.000Z
2019-05-04T01:32:06.000Z
util/data/read_id_href.py
firstprojectfor/FPF_python
2321aff0d5b56f787befec55917d731c8c776558
[ "MIT" ]
null
null
null
util/data/read_id_href.py
firstprojectfor/FPF_python
2321aff0d5b56f787befec55917d731c8c776558
[ "MIT" ]
null
null
null
import json INIT_ICON_SQL = 'UPDATE arc_sys_menu SET icon_cls = \'{}\' WHERE href = \'{}\';' INIT_SQL_USE_ID = 'UPDATE arc_sys_menu SET href = \'{}\' WHERE id = {};' def read_menu_from_json(menus): result = [] for menu in menus: identify = menu['node']['name'] if menu['node']['scriptid']: ...
29.333333
80
0.615186
01e0a3f7ee3f868d6f2bb81c00bdce2d0943eb07
4,406
py
Python
venv/lib/python3.6/site-packages/github/GitBlob.py
jannahuang/blog
e1d8cfa9d79ac06097a0e55531bba9421fcbf283
[ "MIT" ]
1
2021-10-14T16:13:12.000Z
2021-10-14T16:13:12.000Z
venv/lib/python3.6/site-packages/github/GitBlob.py
jannahuang/blog
e1d8cfa9d79ac06097a0e55531bba9421fcbf283
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/github/GitBlob.py
jannahuang/blog
e1d8cfa9d79ac06097a0e55531bba9421fcbf283
[ "MIT" ]
null
null
null
############################ Copyrights and license ############################ # # # Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> # # Copyright 2012 Zearin <zearin@gonk.net> ...
44.06
119
0.500908
e9ff03665579132353c7aa705ab20818ee0c399a
2,158
py
Python
ide/fuente/teoserver/objeto/mensajes_de_error.py
jossehblanco/ProgramacionVisual
59354dc3c9448c997687420fceb179a76378e9de
[ "MIT" ]
1
2021-02-26T19:54:42.000Z
2021-02-26T19:54:42.000Z
scanner/objeto/mensajes_de_error.py
jossehblanco/ProgramacionVisual
59354dc3c9448c997687420fceb179a76378e9de
[ "MIT" ]
null
null
null
scanner/objeto/mensajes_de_error.py
jossehblanco/ProgramacionVisual
59354dc3c9448c997687420fceb179a76378e9de
[ "MIT" ]
null
null
null
mensaje_de_error=[ " no existe ese tipo de dato",#0 " debe ir seguido de un numero",#1 " el identificador debe ir seguido de ' = ' o un '['",#2 " se esperaba la instruccion mientras",#3 " falta una ',' o ';'",#4 " se esperaba un 'rango'",#5 " el identificador debe ser tipo num",#6 " no s...
42.313725
88
0.652919
bd0f8b31153ccfe7a3d3e995ab61e85417c3abcd
8,063
py
Python
src/Current Analysis/logic_cell_to_current_source.py
jinyier/EMSim
ca86a0d3ee182cfda3c4b9ecdbed340a0c20c310
[ "MIT" ]
3
2021-12-29T03:31:28.000Z
2022-01-05T08:59:06.000Z
src/Current Analysis/logic_cell_to_current_source.py
jinyier/EMSim
ca86a0d3ee182cfda3c4b9ecdbed340a0c20c310
[ "MIT" ]
null
null
null
src/Current Analysis/logic_cell_to_current_source.py
jinyier/EMSim
ca86a0d3ee182cfda3c4b9ecdbed340a0c20c310
[ "MIT" ]
3
2021-12-29T03:39:56.000Z
2022-03-17T01:30:35.000Z
import numpy as np import sys import argparse import time def LC_inserter(lc_current_traces_filename, cell_name_path, power_port, mark_net, netlist_filename, desired_time_scale): """ Replace logic cells with predefined current sources :param lc_current_traces_filename: path to the simulated logic cell cur...
47.994048
120
0.527595
a1ac2d36a4fd8a18d85a5b1ef3b82b774d5c9946
3,735
py
Python
tests/www_rbac/test_app.py
shrutimantri/airflow
61eaaacd20ab0f743786df895cf8f232b3b2a48c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
15
2017-04-06T09:01:50.000Z
2021-10-02T13:54:31.000Z
tests/www_rbac/test_app.py
shrutimantri/airflow
61eaaacd20ab0f743786df895cf8f232b3b2a48c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
26
2019-08-05T13:44:11.000Z
2022-03-30T10:06:18.000Z
tests/www_rbac/test_app.py
shrutimantri/airflow
61eaaacd20ab0f743786df895cf8f232b3b2a48c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
21
2017-08-20T03:01:05.000Z
2021-09-07T06:47:51.000Z
# -*- coding: utf-8 -*- # # 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 #...
41.5
91
0.68166
3efce9766f37c01c8bd482d99ff76563b677ed24
5,226
py
Python
src/stream_analysis/motion_detection/utils/layers.py
MLStruckmann/formula-frankfurt
5a09f6ed02805c1dd5cfa42e82f9e396f52f9001
[ "MIT" ]
null
null
null
src/stream_analysis/motion_detection/utils/layers.py
MLStruckmann/formula-frankfurt
5a09f6ed02805c1dd5cfa42e82f9e396f52f9001
[ "MIT" ]
null
null
null
src/stream_analysis/motion_detection/utils/layers.py
MLStruckmann/formula-frankfurt
5a09f6ed02805c1dd5cfa42e82f9e396f52f9001
[ "MIT" ]
1
2020-09-30T14:55:36.000Z
2020-09-30T14:55:36.000Z
import torch.nn.functional as F from stream_analysis.motion_detection.utils.utils import * def make_divisible(v, divisor): # Function ensures all layers have a channel number that is divisible by 8 # https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet/mobilenet.py return math.ce...
35.073826
120
0.56372
c455d5bc02ce6d505f0c4a1143d63cf5cdef5eb6
2,614
py
Python
document_index/settings.py
eigenholser/django-document-index
c2d2f9790a7120da547f2e353466a86008b5f646
[ "BSD-3-Clause" ]
null
null
null
document_index/settings.py
eigenholser/django-document-index
c2d2f9790a7120da547f2e353466a86008b5f646
[ "BSD-3-Clause" ]
null
null
null
document_index/settings.py
eigenholser/django-document-index
c2d2f9790a7120da547f2e353466a86008b5f646
[ "BSD-3-Clause" ]
null
null
null
""" Django settings for mysite project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) imp...
23.981651
71
0.72456
fffb201b6ad19a86340418a45a7f402f39e713e9
22,674
py
Python
opps/containers/migrations/0012_auto__add_field_containerbox_main_image__add_field_containerbox_main_i.py
jeanmask/opps
031c6136c38d43aa6d1ccb25a94f7bcd65ccbf87
[ "MIT" ]
159
2015-01-03T16:36:35.000Z
2022-03-29T20:50:13.000Z
opps/containers/migrations/0012_auto__add_field_containerbox_main_image__add_field_containerbox_main_i.py
jeanmask/opps
031c6136c38d43aa6d1ccb25a94f7bcd65ccbf87
[ "MIT" ]
81
2015-01-02T21:26:16.000Z
2021-05-29T12:24:52.000Z
opps/containers/migrations/0012_auto__add_field_containerbox_main_image__add_field_containerbox_main_i.py
jeanmask/opps
031c6136c38d43aa6d1ccb25a94f7bcd65ccbf87
[ "MIT" ]
75
2015-01-23T13:41:03.000Z
2021-09-24T03:45:23.000Z
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models from django.contrib.auth import get_user_model User = get_user_model() class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'ContainerBox.main_image' ...
99.0131
280
0.580092
689edaf497d09285e28c6c0788bd07ec5a967004
714
py
Python
public/plugins/Blockchain/UiWebsocketPlugin.py
d14na/zerocoding-org
0a3a143c52b6805a4c5a322f10372db9903f3428
[ "MIT" ]
null
null
null
public/plugins/Blockchain/UiWebsocketPlugin.py
d14na/zerocoding-org
0a3a143c52b6805a4c5a322f10372db9903f3428
[ "MIT" ]
null
null
null
public/plugins/Blockchain/UiWebsocketPlugin.py
d14na/zerocoding-org
0a3a143c52b6805a4c5a322f10372db9903f3428
[ "MIT" ]
null
null
null
import base64 import os from Crypt import CryptBitcoin, CryptHash from Plugin import PluginManager import lib.pybitcointools as btctools @PluginManager.registerTo("UiWebsocket") class UiWebsocketPlugin(object): # Create a new action that can be called using zeroframe api def actionBlockchainInfo(self, to): ...
27.461538
77
0.673669
16f621adf851eb39fa30b650c106b9f1f3eafcff
829
py
Python
common/migrations/0001_initial.py
GermanMtzmx/mailtest
9ec3f51344e6968698f8313ef987fca4d2907cdf
[ "Xnet", "X11" ]
null
null
null
common/migrations/0001_initial.py
GermanMtzmx/mailtest
9ec3f51344e6968698f8313ef987fca4d2907cdf
[ "Xnet", "X11" ]
null
null
null
common/migrations/0001_initial.py
GermanMtzmx/mailtest
9ec3f51344e6968698f8313ef987fca4d2907cdf
[ "Xnet", "X11" ]
null
null
null
# Generated by Django 2.0 on 2017-12-28 01:54 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='EmailLog', fields=[ ('id', models.CharField(e...
28.586207
107
0.553679
b8bc8b94745efad7770d0251692eda770ffcb375
6,114
py
Python
venv/lib/python3.6/site-packages/ansible_collections/wti/remote/plugins/modules/cpm_temp_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/wti/remote/plugins/modules/cpm_temp_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/wti/remote/plugins/modules/cpm_temp_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) 2019 Red Hat Inc. # Copyright (C) 2019 Western Telematic Inc. # # GNU General Public License v3.0+ # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PAR...
32.521277
147
0.654727
a2a57365d1a680931696d0e536395bce51716a24
54
py
Python
globe/util/user_agent.py
T620/globe
5033a9750387d169b757538764bdf4fd229b81ae
[ "MIT" ]
null
null
null
globe/util/user_agent.py
T620/globe
5033a9750387d169b757538764bdf4fd229b81ae
[ "MIT" ]
14
2018-04-06T16:19:38.000Z
2018-04-09T18:59:08.000Z
globe/util/user_agent.py
T620/globe
5033a9750387d169b757538764bdf4fd229b81ae
[ "MIT" ]
null
null
null
#handes users devices and upates services accordingly
27
53
0.851852
0789f336ab59b06e97ad1d9012fa98de268ac302
66,590
py
Python
src/prefect/core/flow.py
marwan116/prefect
328a56fa2cadd72e6b02d97d09de19cf7d8d373c
[ "Apache-2.0" ]
null
null
null
src/prefect/core/flow.py
marwan116/prefect
328a56fa2cadd72e6b02d97d09de19cf7d8d373c
[ "Apache-2.0" ]
null
null
null
src/prefect/core/flow.py
marwan116/prefect
328a56fa2cadd72e6b02d97d09de19cf7d8d373c
[ "Apache-2.0" ]
null
null
null
import collections import collections.abc import copy import functools import hashlib import inspect import itertools import json import os import tempfile import time import uuid import warnings from contextlib import contextmanager from pathlib import Path from typing import ( Any, Callable, Dict, Ite...
39.402367
104
0.56561
cfd1841c985c2cecd3d24d7443b1d68cedb79ec4
5,962
py
Python
reframe/frontend/argparse.py
mboisson/reframe
ebf0141596f19c7df60b59d8ad6211067f55b5e5
[ "BSD-3-Clause" ]
null
null
null
reframe/frontend/argparse.py
mboisson/reframe
ebf0141596f19c7df60b59d8ad6211067f55b5e5
[ "BSD-3-Clause" ]
null
null
null
reframe/frontend/argparse.py
mboisson/reframe
ebf0141596f19c7df60b59d8ad6211067f55b5e5
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # ReFrame Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import argparse from reframe.core.fields import ForwardField # # Notes on the ArgumentParser design # # An obvious design f...
38.714286
79
0.667058
da0c3fef4c663bd53b02dec42c12cb205c567e2c
942
py
Python
smart_open/tests/test_sanity.py
sivchand/smart_open
35d80d3bec5324c19427ce49fa8284f5b1c2c112
[ "MIT" ]
2,047
2016-06-16T15:35:45.000Z
2022-03-31T04:32:57.000Z
smart_open/tests/test_sanity.py
MateLabs/smart-open
7774087eb979db74f3f61ba5d512f0cc96607d5e
[ "MIT" ]
524
2016-06-16T09:48:14.000Z
2022-03-30T13:21:25.000Z
smart_open/tests/test_sanity.py
MateLabs/smart-open
7774087eb979db74f3f61ba5d512f0cc96607d5e
[ "MIT" ]
308
2016-06-16T09:02:51.000Z
2022-03-24T20:57:52.000Z
import unittest import boto3 import moto @moto.mock_s3() def setUpModule(): bucket = boto3.resource('s3').create_bucket(Bucket='mybucket') bucket.wait_until_exists() @moto.mock_s3() def tearDownModule(): resource = boto3.resource('s3') bucket = resource.Bucket('mybucket') try: bucket.d...
22.428571
74
0.654989
11bc4782800bf662476bb1a5532a1c9bc3bbb610
9,844
py
Python
paddle2onnx/op_mapper/custom_paddle_op/generate_proposals.py
PaddlePaddle/paddle2onnx
9773ccdfc19ddc0cab2fbdd827145adb21d78b51
[ "Apache-2.0" ]
95
2019-09-27T14:26:59.000Z
2020-12-08T01:20:28.000Z
paddle2onnx/op_mapper/custom_paddle_op/generate_proposals.py
PaddlePaddle/paddle2onnx
9773ccdfc19ddc0cab2fbdd827145adb21d78b51
[ "Apache-2.0" ]
42
2019-09-19T17:30:44.000Z
2020-12-07T02:23:00.000Z
paddle2onnx/op_mapper/custom_paddle_op/generate_proposals.py
PaddlePaddle/paddle2onnx
9773ccdfc19ddc0cab2fbdd827145adb21d78b51
[ "Apache-2.0" ]
22
2019-09-03T08:50:04.000Z
2020-12-02T11:05:42.000Z
# Copyright (c) 2020 PaddlePaddle 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 applic...
43.946429
88
0.63785
dacb5f70431394ca3d5a94fddcf90d2deb1e8826
2,685
py
Python
code/recon/count_modes.py
modichirag/21cm_cleaning
1615fea4e2d617bb6ef00770a49698901227daa8
[ "MIT" ]
1
2019-08-27T10:05:41.000Z
2019-08-27T10:05:41.000Z
code/recon/count_modes.py
modichirag/21cm_cleaning
1615fea4e2d617bb6ef00770a49698901227daa8
[ "MIT" ]
null
null
null
code/recon/count_modes.py
modichirag/21cm_cleaning
1615fea4e2d617bb6ef00770a49698901227daa8
[ "MIT" ]
null
null
null
import warnings from mpi4py import MPI rank = MPI.COMM_WORLD.rank #warnings.filterwarnings("ignore") if rank!=0: warnings.filterwarnings("ignore") import numpy import numpy as np #from cosmo4d.lab import mapbias as map from cosmo4d import lab from cosmo4d.lab import mapnoise from nbodykit.lab import BigFileMesh, FFT...
30.862069
147
0.547114
aea9fce041b2b7e619a9401274a823b11ee5ca14
3,767
py
Python
setup.py
jamartinh/d3rlpy
87f478451674ef769eb8ce74e3663c4d3b1c325d
[ "MIT" ]
null
null
null
setup.py
jamartinh/d3rlpy
87f478451674ef769eb8ce74e3663c4d3b1c325d
[ "MIT" ]
1
2020-11-17T22:35:50.000Z
2020-11-17T22:35:50.000Z
setup.py
jamartinh/d3rlpy
87f478451674ef769eb8ce74e3663c4d3b1c325d
[ "MIT" ]
null
null
null
import os from setuptools import setup, Extension os.environ['CFLAGS'] = '-std=c++11' # get __version__ variable here = os.path.abspath(os.path.dirname(__file__)) exec(open(os.path.join(here, 'd3rlpy', '_version.py')).read()) if __name__ == "__main__": from numpy import get_include from Cython.Build import ...
41.395604
98
0.433501
24a8d216c232f1a5f447595ab2b03d4502238f7e
4,184
py
Python
tictactoe.py
tomaszps/interview_practice
14748d674f72cef9344a3c013adca85011334af8
[ "MIT" ]
null
null
null
tictactoe.py
tomaszps/interview_practice
14748d674f72cef9344a3c013adca85011334af8
[ "MIT" ]
null
null
null
tictactoe.py
tomaszps/interview_practice
14748d674f72cef9344a3c013adca85011334af8
[ "MIT" ]
null
null
null
import numpy as np """ Example 1: Input: moves = [[0,0],[2,0],[1,1],[2,1],[2,2]] Output: "A" Explanation: "A" wins, he always plays first. "X " "X " "X " "X " "X " " " -> " " -> " X " -> " X " -> " X " " " "O " "O " "OO " "OOX" Example 2: Input: moves = [[0,0],[1,1],[0,1],[0,2]...
23.772727
106
0.522228
cd660f04f71d798215d8601591c76ce186ff9900
1,102
py
Python
src/sentry/identity/manager.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
4
2019-05-27T13:55:07.000Z
2021-03-30T07:05:09.000Z
src/sentry/identity/manager.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
196
2019-06-10T08:34:10.000Z
2022-02-22T01:26:13.000Z
src/sentry/identity/manager.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
1
2020-08-10T07:55:40.000Z
2020-08-10T07:55:40.000Z
from __future__ import absolute_import, print_function __all__ = ['IdentityManager'] import six from sentry.exceptions import NotRegistered class IdentityManager(object): def __init__(self): self.__values = {} def __iter__(self): return iter(self.all()) def all(self): for key ...
24.488889
64
0.592559
a1ff3878c4b6cb8bd7002b6b371ba85eab172bb1
4,467
py
Python
examples/semantic_segmentation/metric/iou.py
xiao1228/nncf
307262119ee3f50eec2fa4022b2ef96693fd8448
[ "Apache-2.0" ]
310
2020-10-29T09:22:42.000Z
2022-03-31T04:53:34.000Z
examples/semantic_segmentation/metric/iou.py
xiao1228/nncf
307262119ee3f50eec2fa4022b2ef96693fd8448
[ "Apache-2.0" ]
615
2020-10-28T10:22:25.000Z
2022-03-29T18:09:23.000Z
examples/semantic_segmentation/metric/iou.py
xiao1228/nncf
307262119ee3f50eec2fa4022b2ef96693fd8448
[ "Apache-2.0" ]
86
2020-10-28T11:34:34.000Z
2022-03-31T08:00:35.000Z
""" Copyright (c) 2019 Intel Corporation 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 writin...
40.243243
84
0.644056
afbaaae34d91736dada5dc31ccd04eecaa1cdc1f
3,519
py
Python
pygephi/client.py
backscatterdk/nlp_to_gephi
d6e6e9bf4dc6adc8217ea5dc2dc32ffb0bd71c95
[ "Apache-2.0" ]
null
null
null
pygephi/client.py
backscatterdk/nlp_to_gephi
d6e6e9bf4dc6adc8217ea5dc2dc32ffb0bd71c95
[ "Apache-2.0" ]
null
null
null
pygephi/client.py
backscatterdk/nlp_to_gephi
d6e6e9bf4dc6adc8217ea5dc2dc32ffb0bd71c95
[ "Apache-2.0" ]
1
2020-02-08T08:57:09.000Z
2020-02-08T08:57:09.000Z
#!/usr/bin/python # coding: utf-8 # # Copyright (C) 2012 André Panisson # # 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...
31.702703
100
0.612958
42467b9842a4a6ad95c4b64162f9107d5c0e822d
11,986
py
Python
pytorch3d/common/workaround/symeig3x3.py
jkxing/pytorch3d
71dbebe8010a0dac3e56be464778aa48fbd3bcd3
[ "BSD-3-Clause" ]
6,041
2020-01-23T23:29:41.000Z
2022-03-31T21:35:13.000Z
pytorch3d/common/workaround/symeig3x3.py
jkxing/pytorch3d
71dbebe8010a0dac3e56be464778aa48fbd3bcd3
[ "BSD-3-Clause" ]
1,054
2020-01-24T15:23:15.000Z
2022-03-31T15:31:59.000Z
pytorch3d/common/workaround/symeig3x3.py
jkxing/pytorch3d
71dbebe8010a0dac3e56be464778aa48fbd3bcd3
[ "BSD-3-Clause" ]
943
2020-01-24T00:10:30.000Z
2022-03-31T04:02:35.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import math from typing import Optional, Tuple import torch import torch.nn.functional as F from torch import nn...
37.810726
96
0.598198
24d9a7f99d3b1770b45124286e75d571d05f7c60
238
py
Python
app/app/api/ui/utils/serializers/BaseJsonSerializer.py
GPortas/Playgroundb
60f98a4dd62ce34fbb8abfa0d9ee63697e82c57e
[ "Apache-2.0" ]
1
2019-01-30T19:59:20.000Z
2019-01-30T19:59:20.000Z
app/app/api/ui/utils/serializers/BaseJsonSerializer.py
GPortas/Playgroundb
60f98a4dd62ce34fbb8abfa0d9ee63697e82c57e
[ "Apache-2.0" ]
null
null
null
app/app/api/ui/utils/serializers/BaseJsonSerializer.py
GPortas/Playgroundb
60f98a4dd62ce34fbb8abfa0d9ee63697e82c57e
[ "Apache-2.0" ]
null
null
null
import copy class BaseJsonSerializer: def to_json_dict(self, model): result = copy.deepcopy(model.__dict__) if result.get("_id") is not None: result["_id"] = str(result.get("_id")) return result
21.636364
50
0.617647
cef6914e73067de6bc8b8221323cb3246c2101c5
269
py
Python
nmtlab/__init__.py
jasonleeinf/nmtlab
122b70cc226d9ce17ad106a3bd3a5318bd3b359f
[ "MIT" ]
null
null
null
nmtlab/__init__.py
jasonleeinf/nmtlab
122b70cc226d9ce17ad106a3bd3a5318bd3b359f
[ "MIT" ]
null
null
null
nmtlab/__init__.py
jasonleeinf/nmtlab
122b70cc226d9ce17ad106a3bd3a5318bd3b359f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from .trainers import MTTrainer from .trainers import MTTrainerScaled from .dataset.mt_dataset import MTDataset from .utils.vocab import Vocab from .models import AttentionModel, EncoderDecoderModel __version__ = "0.7.4"
24.454545
55
0.776952
eee8dc75447648ccdb627189c3359a144c71094c
49,261
py
Python
iRONS/Notebooks/A - Knowledge transfer/Modules/Interactive_release_policy.py
csiro-hydrology/iRONS
022182d85ed2e7799e5d65bb5b9ed04f91da7526
[ "MIT" ]
12
2020-12-15T23:39:26.000Z
2021-10-30T18:48:35.000Z
iRONS/Notebooks/A - Knowledge transfer/Modules/Interactive_release_policy.py
csiro-hydrology/iRONS
022182d85ed2e7799e5d65bb5b9ed04f91da7526
[ "MIT" ]
1
2021-05-12T08:34:06.000Z
2021-06-11T10:11:15.000Z
iRONS/Notebooks/A - Knowledge transfer/Modules/Interactive_release_policy.py
csiro-hydrology/iRONS
022182d85ed2e7799e5d65bb5b9ed04f91da7526
[ "MIT" ]
5
2020-09-12T14:38:46.000Z
2021-07-17T15:56:36.000Z
# -*- coding: utf-8 -*- """ Created on Fri Aug 16 18:26:41 2019 @author: ap18525 """ import ipywidgets as widgets import numpy as np from scipy.interpolate import interp1d from bqplot import pyplot as plt from bqplot import * from bqplot.traits import * #import sys def Interactive_piecewiselin_manual(res_sys_sim, pol...
48.725025
122
0.456345
ad2d4b70ca77105083ad059921b62fefac48b5e9
16,493
py
Python
Janaagraha Bot/venv/Lib/site-packages/gcloud/logging/logger.py
CFGIndia20/team-19
e2b27ad8009303d262c2dc60551d6fcc4645b3b5
[ "MIT" ]
5
2018-01-18T11:39:23.000Z
2022-01-01T11:38:40.000Z
Janaagraha Bot/venv/Lib/site-packages/gcloud/logging/logger.py
CFGIndia20/team-19
e2b27ad8009303d262c2dc60551d6fcc4645b3b5
[ "MIT" ]
12
2021-10-18T00:37:47.000Z
2022-03-09T01:35:20.000Z
Janaagraha Bot/venv/Lib/site-packages/gcloud/logging/logger.py
CFGIndia20/team-19
e2b27ad8009303d262c2dc60551d6fcc4645b3b5
[ "MIT" ]
4
2018-01-18T11:32:38.000Z
2021-11-25T23:28:04.000Z
# Copyright 2016 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 required by applicable law or a...
37.146396
95
0.609349
8f885e8cfa12c649ffd1f49a6f4790b6da0110af
704
py
Python
blog/migrations/0001_initial.py
Kesel/django
f3fc3617c4b39b18e54bfb4c2fc8940e40f8fa25
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
Kesel/django
f3fc3617c4b39b18e54bfb4c2fc8940e40f8fa25
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
Kesel/django
f3fc3617c4b39b18e54bfb4c2fc8940e40f8fa25
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
28.16
114
0.606534
2dfa0fb9084c62300554cf95ee62fc2f1a1b392d
6,893
py
Python
sdk/python/pulumi_azure_native/datashare/v20210801/get_blob_container_data_set.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datashare/v20210801/get_blob_container_data_set.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datashare/v20210801/get_blob_container_data_set.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
36.089005
196
0.646018
c681dbcef8f41f1ee0de79ed94e3d1a5ee1d49be
51
py
Python
example_pkg_sckmkny/__main__.py
larkintuckerllc/example-prj-sckmkny
ffb435eb17afd8469ef8237628e6cf8c4c4091bc
[ "MIT" ]
null
null
null
example_pkg_sckmkny/__main__.py
larkintuckerllc/example-prj-sckmkny
ffb435eb17afd8469ef8237628e6cf8c4c4091bc
[ "MIT" ]
null
null
null
example_pkg_sckmkny/__main__.py
larkintuckerllc/example-prj-sckmkny
ffb435eb17afd8469ef8237628e6cf8c4c4091bc
[ "MIT" ]
null
null
null
from example_pkg_sckmkny import main main.hello()
12.75
36
0.823529
3664b194f7de59dbcf5a3f506ed7de2298c91546
2,603
py
Python
src/libraries/scrap_websites_util.py
rottedBen/telegram-bots
62bbde5cf796596f72091b4f26a55ff18f0e2518
[ "MIT" ]
1
2021-02-24T07:10:08.000Z
2021-02-24T07:10:08.000Z
src/libraries/scrap_websites_util.py
rottedBen/telegram-bots
62bbde5cf796596f72091b4f26a55ff18f0e2518
[ "MIT" ]
null
null
null
src/libraries/scrap_websites_util.py
rottedBen/telegram-bots
62bbde5cf796596f72091b4f26a55ff18f0e2518
[ "MIT" ]
4
2020-10-27T20:27:44.000Z
2022-03-23T22:07:55.000Z
import time import requests from datetime import datetime, timedelta from twython import TwythonError how_many_tweets = 5 # scraps /biz/ and returns a list of tuple (threadId, body, title) of threads matching the regex ^rot |rot$| rot |rotten|rotting def get_biz_threads(re_4chan): url = 'https://a.4cdn.org/biz/...
31.361446
128
0.57088
bf4703ed5ae1be756c29fae0f51fa6cf25a79cc0
4,349
py
Python
cep_price_console/old_unified_upload/match_review.py
zanebclark/cep_price_console
2f0e0a487a02a1eeceab9bc326d4cef153bd6781
[ "MIT" ]
null
null
null
cep_price_console/old_unified_upload/match_review.py
zanebclark/cep_price_console
2f0e0a487a02a1eeceab9bc326d4cef153bd6781
[ "MIT" ]
5
2021-03-31T19:27:48.000Z
2022-01-13T01:57:46.000Z
cep_price_console/old_unified_upload/match_review.py
zanebclark/cep_price_console
2f0e0a487a02a1eeceab9bc326d4cef153bd6781
[ "MIT" ]
null
null
null
from cep_price_console.utils.log_utils import CustomAdapter, debug from cep_price_console.old_unified_upload.step import Step import logging from cep_price_console.old_unified_upload.treeview import TreeviewConstructor import tkinter as tk import tkinter.ttk as ttk class MatchReview(Step): logger = CustomAdapter(...
46.265957
114
0.613704
0c622dde306f127e0dc8c4238828271b2eaadaa8
2,507
py
Python
integration_test/Bindings/Python/dialects/hw.py
uenoku/circt
f3900042fe84327047cd08d5c3ac9e58ece20f16
[ "Apache-2.0" ]
null
null
null
integration_test/Bindings/Python/dialects/hw.py
uenoku/circt
f3900042fe84327047cd08d5c3ac9e58ece20f16
[ "Apache-2.0" ]
null
null
null
integration_test/Bindings/Python/dialects/hw.py
uenoku/circt
f3900042fe84327047cd08d5c3ac9e58ece20f16
[ "Apache-2.0" ]
null
null
null
# REQUIRES: bindings_python # RUN: %PYTHON% %s | FileCheck %s import circt from circt.dialects import hw from mlir.ir import (Context, Location, InsertionPoint, IntegerType, IntegerAttr, Module, StringAttr, TypeAttr) with Context() as ctx, Location.unknown(): circt.register_dialects(ctx) i1...
31.3375
94
0.637814
85c56ef98e8680a653c29b31409d39e083560ff2
12,959
py
Python
reprocess_wfc3/anomalies.py
gbrammer/reprocess_wfc3
24fa66bdcc6cc05257b8a54c901652d1d21820f7
[ "MIT" ]
1
2018-12-31T01:12:18.000Z
2018-12-31T01:12:18.000Z
reprocess_wfc3/anomalies.py
gbrammer/reprocess_wfc3
24fa66bdcc6cc05257b8a54c901652d1d21820f7
[ "MIT" ]
null
null
null
reprocess_wfc3/anomalies.py
gbrammer/reprocess_wfc3
24fa66bdcc6cc05257b8a54c901652d1d21820f7
[ "MIT" ]
null
null
null
import numpy as np from numpy import ma import matplotlib.pyplot as plt from matplotlib import cm from matplotlib.figure import Figure from matplotlib.backends.backend_agg import FigureCanvasAgg from skimage.feature import canny from skimage.transform import probabilistic_hough_line from skimage import morphology as ...
32.3975
163
0.561617
9613ec1d1e930964ddfc3f85ef6f90381a8eb657
11,691
py
Python
signbank/dictionary/tests/test_update.py
GDiaz16/signbank
fe492965a6e1294eb036c3a2adc54d1c8ba19f0f
[ "BSD-3-Clause" ]
null
null
null
signbank/dictionary/tests/test_update.py
GDiaz16/signbank
fe492965a6e1294eb036c3a2adc54d1c8ba19f0f
[ "BSD-3-Clause" ]
3
2020-04-30T14:18:57.000Z
2021-06-10T22:30:30.000Z
signbank/dictionary/tests/test_update.py
GDiaz16/signbank
fe492965a6e1294eb036c3a2adc54d1c8ba19f0f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os from django.test import TestCase from django.test import Client from django.urls import reverse from django.contrib.auth.models import User, Permission from django.core.files.base import ContentFile from guardian.shortcuts import as...
54.630841
143
0.629544
58b03ee9540aaf4f876a0703c55fc1132e16be07
3,721
py
Python
desktop/libs/librdbms/src/librdbms/design.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
3
2018-01-29T14:16:02.000Z
2019-02-05T21:33:05.000Z
desktop/libs/librdbms/src/librdbms/design.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
1
2019-05-06T15:32:21.000Z
2019-05-06T15:32:21.000Z
desktop/libs/librdbms/src/librdbms/design.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
2
2019-06-17T11:51:56.000Z
2020-07-25T08:29:56.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
32.077586
145
0.700887
d6c41aa967739be120037b041cf3561d0dc05dd0
1,508
py
Python
tests/_display/test_line_round_dot_setting.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_display/test_line_round_dot_setting.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_display/test_line_round_dot_setting.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
from random import randint from retrying import retry import apysc as ap class TestLineRoundDotSetting: @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test___init__(self) -> None: setting: ap.LineRoundDotSetting = ap.LineRoundDotSetting( round_size=20, ...
35.069767
69
0.62931
9bcee781378a42fbe20ea76fb87a65357563722d
179
py
Python
Unit4/CalPiv1.py
yuhao1998/PythonStudy
fa678f0352673a6934b8f5b1689777af531f3675
[ "Apache-2.0" ]
null
null
null
Unit4/CalPiv1.py
yuhao1998/PythonStudy
fa678f0352673a6934b8f5b1689777af531f3675
[ "Apache-2.0" ]
null
null
null
Unit4/CalPiv1.py
yuhao1998/PythonStudy
fa678f0352673a6934b8f5b1689777af531f3675
[ "Apache-2.0" ]
null
null
null
#CalPiV1.py pi = 0 N = 100 for k in range(N): pi += 1/pow(16,k)*( \ 4/(8*k+1) - 2/(8*k+4) - \ 1/(8*k+5) - 1/(8*k+6) ) print("圆周率值是: {}".format(pi))
22.375
39
0.396648
fa471a40bbc01d19dadff0bee81bbfaa3ae19847
810
py
Python
memorious/helpers/dates.py
Rosencrantz/memorious
f06fe77fadb9c8f2de62595ed67dc8c3e5b4553d
[ "MIT" ]
265
2017-10-10T09:24:59.000Z
2022-03-08T08:43:23.000Z
memorious/helpers/dates.py
Rosencrantz/memorious
f06fe77fadb9c8f2de62595ed67dc8c3e5b4553d
[ "MIT" ]
129
2017-09-26T10:23:11.000Z
2022-03-29T12:27:21.000Z
memorious/helpers/dates.py
Rosencrantz/memorious
f06fe77fadb9c8f2de62595ed67dc8c3e5b4553d
[ "MIT" ]
56
2017-09-26T21:16:58.000Z
2022-03-03T14:22:31.000Z
import pytz import dateparser from datetime import datetime def parse_date(text, format_hint=None): if text is None: return if format_hint is not None: parsed = datetime.strptime(text, format_hint) else: # Strip things that don't belong in dates but websites like to wrap # ...
25.3125
75
0.660494
cc397ed8563c52a38e23d0bd8149837e123f03bb
686
py
Python
my_cv/gesture_recognition/prepare_data.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
2
2020-04-06T09:09:19.000Z
2020-07-24T03:59:55.000Z
my_cv/gesture_recognition/prepare_data.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
null
null
null
my_cv/gesture_recognition/prepare_data.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
null
null
null
import os import numpy as np import shutil # te = np.load('result/00001724.npy') # print(len(te)) path = 'result/' src_image_path = '/home/straw/下载/dataset/FreiHAND_pub_v2/evaluation/rgb' dst_image_path = 'result/images/' for file in os.listdir(path): # check ig npy file is valid if os.path.isdir(os.path.join(...
29.826087
72
0.626822
fe5e2151590e6f326095d128a5653f7a4c4fd1bd
1,338
py
Python
wc_sim/on_ROSS/try_c_and_python/python_with_c_callback.py
KarrLab/wc_sim
5b0ee03c3d19193fa67a3797d4258b753e6bc576
[ "MIT" ]
8
2018-03-27T21:35:25.000Z
2022-01-18T08:32:20.000Z
wc_sim/on_ROSS/try_c_and_python/python_with_c_callback.py
KarrLab/wc_sim
5b0ee03c3d19193fa67a3797d4258b753e6bc576
[ "MIT" ]
114
2018-02-27T14:14:39.000Z
2020-12-30T15:06:51.000Z
wc_sim/on_ROSS/try_c_and_python/python_with_c_callback.py
KarrLab/wc_sim
5b0ee03c3d19193fa67a3797d4258b753e6bc576
[ "MIT" ]
2
2019-04-05T16:17:28.000Z
2020-05-17T12:55:20.000Z
''' :Author: Arthur Goldberg <Arthur.Goldberg@mssm.edu> :Date: 2017-04-06 :Copyright: 2017-2018, Karr Lab :License: MIT ''' # example program using example callbacks module import callbacks # TODO(Arthur): cover after MVP wc_sim done if True: # pragma: no cover def f1(): print('Python executing f1') ...
30.409091
74
0.668161
c29928a84f3979a5c8f27d4ec65af93e9dcb1d30
249
py
Python
gitlab-ci/src/test_results/input.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
941
2021-05-10T08:14:14.000Z
2022-03-31T11:40:24.000Z
gitlab-ci/src/test_results/input.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
3
2022-02-16T12:24:20.000Z
2022-03-23T12:05:41.000Z
gitlab-ci/src/test_results/input.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
122
2021-05-10T08:21:23.000Z
2022-03-25T20:34:12.000Z
import json from types import SimpleNamespace def read_test_results(filepath): """Read from a file a JSON object containing test results.""" with open(filepath) as f: return json.load(f, object_hook=lambda d: SimpleNamespace(**d))
27.666667
71
0.726908
fab6c73284b2129ec7ee670fbf4f8720eb7a561f
1,487
py
Python
modules/dense.py
JakobChen/LightNet
6f8221a7df45cd1e88d1813fdddc389ee49106e9
[ "MIT" ]
2
2018-10-29T00:00:16.000Z
2019-03-20T20:01:41.000Z
modules/dense.py
JakobChen/LightNet
6f8221a7df45cd1e88d1813fdddc389ee49106e9
[ "MIT" ]
null
null
null
modules/dense.py
JakobChen/LightNet
6f8221a7df45cd1e88d1813fdddc389ee49106e9
[ "MIT" ]
null
null
null
from collections import OrderedDict import torch import torch.nn as nn from .bn import ABN class DenseModule(nn.Module): def __init__(self, in_chns, squeeze_ratio, out_chns, n_layers, dilate_sec=(1, 2, 4, 8, 16), norm_act=ABN): super(DenseModule, self).__init__() self.n_layers = n_layers ...
30.979167
110
0.561533
6bb11eb936148eced0ca8da7fd952bc4c0d15f12
6,627
py
Python
lib/services/vnas/ncloud_vnas/model/delete_nas_volume_instances_response.py
NaverCloudPlatform/ncloud-sdk-python
5976dfabd205c615fcf57ac2f0ab67313ee6953c
[ "MIT" ]
12
2018-11-20T04:30:49.000Z
2021-11-09T12:34:26.000Z
lib/services/vnas/ncloud_vnas/model/delete_nas_volume_instances_response.py
NaverCloudPlatform/ncloud-sdk-python
5976dfabd205c615fcf57ac2f0ab67313ee6953c
[ "MIT" ]
1
2019-01-24T15:56:15.000Z
2019-05-31T07:56:55.000Z
lib/services/vnas/ncloud_vnas/model/delete_nas_volume_instances_response.py
NaverCloudPlatform/ncloud-sdk-python
5976dfabd205c615fcf57ac2f0ab67313ee6953c
[ "MIT" ]
6
2018-06-29T03:45:50.000Z
2022-03-18T01:51:45.000Z
# coding: utf-8 """ vnas Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from ncloud_vnas.model.nas_volume_instance import NasVolumeInstance # noqa: F401,E501 class DeleteNasVolumeInstancesResponse(object): """NOTE: This cla...
30.680556
141
0.635582
520a30bbe40f796688948ee411e7ae0183c29970
1,911
py
Python
code/gini_calculator.py
leifos/retrievability
34720c9cefdaf0a61961ab7bec52447ba2943239
[ "MIT" ]
null
null
null
code/gini_calculator.py
leifos/retrievability
34720c9cefdaf0a61961ab7bec52447ba2943239
[ "MIT" ]
null
null
null
code/gini_calculator.py
leifos/retrievability
34720c9cefdaf0a61961ab7bec52447ba2943239
[ "MIT" ]
null
null
null
# AUTHOR: Leif Azzopardi # 13-02-2022 # calculate the gini coefficient give the retrievability file import os import argparse from collections import defaultdict def check_file_exists(filename): if filename and not os.path.exists(filename): print("{0} Not Found".format(filename)) quit(1) def cal...
29.859375
111
0.642072
9608f297064e3945d72cdb05871f8e19cee88b1f
723
py
Python
aaas.py
anthonydandrea/AAAS
162ac64ed413c77d1638b43fd106fb2af51e5fe0
[ "MIT" ]
null
null
null
aaas.py
anthonydandrea/AAAS
162ac64ed413c77d1638b43fd106fb2af51e5fe0
[ "MIT" ]
null
null
null
aaas.py
anthonydandrea/AAAS
162ac64ed413c77d1638b43fd106fb2af51e5fe0
[ "MIT" ]
null
null
null
from flask import Flask, request from flask_limiter import Limiter from flask_limiter.util import get_ipaddr from flask_cors import CORS, cross_origin import random app = Flask(__name__) CORS(app, support_credentials=True) limiter = Limiter( app, key_func=lambda: request.headers["X-Real-Ip"], ) @app.route("...
20.657143
50
0.64177
e6f1e4d899112bc8cc0ba6ea09a0b2e0248e7291
1,769
py
Python
frontends/pytorch/utils/pt_util.py
cathyzhyi/mlir-npcomp
79a3f639bfb449ba1409ff6dff161badf5a11b44
[ "Apache-2.0" ]
null
null
null
frontends/pytorch/utils/pt_util.py
cathyzhyi/mlir-npcomp
79a3f639bfb449ba1409ff6dff161badf5a11b44
[ "Apache-2.0" ]
null
null
null
frontends/pytorch/utils/pt_util.py
cathyzhyi/mlir-npcomp
79a3f639bfb449ba1409ff6dff161badf5a11b44
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Utility for handling common tasks for exported `.pt` model files. Usage: # Dump PyTorch data structures for .pt file. # This does not involve any MLIR code. $ pt_util.py --dump model.pt # Import the .pt file into MLIR. $ pt_util.py --import model.pt """ import torch imp...
32.163636
78
0.638214
0137ee5227d21dc5d9e766d12dea53d4c5e44ea8
5,832
py
Python
arcade/examples/platform_tutorial/06_scrolling.py
mseyne/arcade
fe73683e772f51411845eb871e46eb85465ad125
[ "MIT" ]
null
null
null
arcade/examples/platform_tutorial/06_scrolling.py
mseyne/arcade
fe73683e772f51411845eb871e46eb85465ad125
[ "MIT" ]
null
null
null
arcade/examples/platform_tutorial/06_scrolling.py
mseyne/arcade
fe73683e772f51411845eb871e46eb85465ad125
[ "MIT" ]
null
null
null
""" Platformer Game """ import arcade # Constants SCREEN_WIDTH = 1000 SCREEN_HEIGHT = 650 SCREEN_TITLE = "Platformer" # Constants used to scale our sprites from their original size CHARACTER_SCALING = 1 TILE_SCALING = 0.5 # Movement speed of player, in pixels per frame PLAYER_MOVEMENT_SPEED = 5 GRAVITY = 1 PLAYER_JU...
31.187166
106
0.631687
e800d96c078c784cc03b51607e5f54fe0bdacd9f
9,879
py
Python
webscrape.py
j-seward/webscraper
90cddd99a8617045188272e6f6c901ff5bc539a9
[ "MIT" ]
null
null
null
webscrape.py
j-seward/webscraper
90cddd99a8617045188272e6f6c901ff5bc539a9
[ "MIT" ]
null
null
null
webscrape.py
j-seward/webscraper
90cddd99a8617045188272e6f6c901ff5bc539a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Sep 25 14:26:30 2020 @author: Jonathan Seward Program: This is a scraper to pull misdemeanor data from Travis County Clerk's office website, and shows two methods of pulling the data from the websites. It pulls three types of web pages: ...
34.541958
211
0.594493
8e8c4a8444ff91469414bf479af50918e7480669
21
py
Python
btd6_memory_info/generated/System/Resources/resources.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Resources/resources.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Resources/resources.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class Resources: pass
21
21
0.857143