hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7988244c1b8a8dbe7c92fd753ab01d5dd0f9b4bb
5,227
py
Python
src/oci/monitoring/models/post_metric_data_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/monitoring/models/post_metric_data_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/monitoring/models/post_metric_data_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
39.300752
245
0.690645
79882465f91ba46b1f014050d9c41023f568d8d8
546
py
Python
viberio/handlers/users/__init__.py
bostud/Viber_bot
076113433837aab942f86a0f73275c50037ed8f9
[ "MIT" ]
null
null
null
viberio/handlers/users/__init__.py
bostud/Viber_bot
076113433837aab942f86a0f73275c50037ed8f9
[ "MIT" ]
null
null
null
viberio/handlers/users/__init__.py
bostud/Viber_bot
076113433837aab942f86a0f73275c50037ed8f9
[ "MIT" ]
null
null
null
from .help import dp from .debuge import dp from .users_count import dp from .send_phone import dp # from .cach_photo import dp from .start import dp from .cancel_button import dp from .main_menu_uk import dp from .get_location import dp from .my_parcels_in import dp from .my_parcels_out import dp from .my_parcels_arch...
26
37
0.815018
79882533b6dd377af4cd86a1cfe1760cfa16392d
7,035
py
Python
Code/src/Server.py
blynotes/CS6301_SDN
7db92b6273222ddce28aaa238678a40fbd435b25
[ "Apache-2.0" ]
1
2020-02-26T08:33:08.000Z
2020-02-26T08:33:08.000Z
Code/src/Server.py
blynotes/CS6301_SDN
7db92b6273222ddce28aaa238678a40fbd435b25
[ "Apache-2.0" ]
null
null
null
Code/src/Server.py
blynotes/CS6301_SDN
7db92b6273222ddce28aaa238678a40fbd435b25
[ "Apache-2.0" ]
7
2019-03-30T03:37:17.000Z
2022-02-03T20:40:41.000Z
#!/usr/bin/python3 # Copyright 2018 Stephen Blystone, Taniya Riar, Juhi Bhandari, & Ishwank Singh # 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-...
51.350365
3,158
0.763042
7988270b761de6ea52f70275755429eabd65671d
603
py
Python
prepare/migrations/0009_auto_20210808_1324.py
engelsmann/bedom
eeb7eea5c5e908b8a0c744e36a4f9806105c3eb2
[ "CC0-1.0" ]
1
2020-10-01T06:40:32.000Z
2020-10-01T06:40:32.000Z
prepare/migrations/0009_auto_20210808_1324.py
engelsmann/bedom
eeb7eea5c5e908b8a0c744e36a4f9806105c3eb2
[ "CC0-1.0" ]
17
2020-10-01T11:49:30.000Z
2022-03-04T16:07:45.000Z
prepare/migrations/0009_auto_20210808_1324.py
engelsmann/bedom
eeb7eea5c5e908b8a0c744e36a4f9806105c3eb2
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-08 11:24 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('prepare', '0008_auto_20210808_1245'), ] operations = [ migrations.RemoveField( model_name='foku...
25.125
125
0.615257
798827263d852170a1f3eff045410b7f233701a3
1,454
py
Python
P1/p5_blockchain.py
bondxue/Data-Structure-and-Algorithm
5c8ea309bdef8f6409d82f2391be20f1410d027c
[ "MIT" ]
1
2020-06-22T11:10:22.000Z
2020-06-22T11:10:22.000Z
P1/p5_blockchain.py
bondxue/Data-Structure-and-Algorithm
5c8ea309bdef8f6409d82f2391be20f1410d027c
[ "MIT" ]
null
null
null
P1/p5_blockchain.py
bondxue/Data-Structure-and-Algorithm
5c8ea309bdef8f6409d82f2391be20f1410d027c
[ "MIT" ]
null
null
null
import hashlib import datetime class Block: def __init__(self, timestamp, data, previous_hash): self.timestamp = timestamp self.data = data self.previous_hash = previous_hash self.hash = self.calc_hash() self.next = None def calc_hash(self): sha = hashlib.sha2...
21.382353
78
0.620358
79882784160ead1a19b6fbfebc54ccafb6b6982c
1,576
py
Python
src/command_modules/vsts-cli-build/setup.py
ds-ms/vsts-cli
5cb0f452f3256fbeb2e0b6b23ca84b576620db08
[ "MIT" ]
null
null
null
src/command_modules/vsts-cli-build/setup.py
ds-ms/vsts-cli
5cb0f452f3256fbeb2e0b6b23ca84b576620db08
[ "MIT" ]
null
null
null
src/command_modules/vsts-cli-build/setup.py
ds-ms/vsts-cli
5cb0f452f3256fbeb2e0b6b23ca84b576620db08
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
30.307692
94
0.591371
798827f32794b40eebd75474cea624105f4dd490
1,402
py
Python
ngsutils/bed/overlap.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
57
2015-03-09T01:26:45.000Z
2022-02-22T07:26:01.000Z
ngsutils/bed/overlap.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-02-03T23:24:46.000Z
2022-03-16T20:08:10.000Z
ngsutils/bed/overlap.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-01-18T16:47:47.000Z
2022-02-22T07:28:09.000Z
#!/usr/bin/env python #!/usr/bin/env python ## category General ## desc Find overlapping BED regions from a query and target file ''' Finds BED regions from the query file that overlap with regions from the target file. ''' import os import sys from ngsutils.bed import BedStreamer, BedFile def usage(): print __d...
26.45283
121
0.616976
798829c3d1ff007834accb4d5f5e36348c87519e
173
py
Python
preprocessors/preprocessor.py
TheLocust3/FRC-Field-Vision-System
356243de64279d76ed18a43393d124493f82d7a1
[ "MIT" ]
1
2017-01-12T15:04:38.000Z
2017-01-12T15:04:38.000Z
preprocessors/preprocessor.py
TheLocust3/FRC-Field-Vision-System
356243de64279d76ed18a43393d124493f82d7a1
[ "MIT" ]
null
null
null
preprocessors/preprocessor.py
TheLocust3/FRC-Field-Vision-System
356243de64279d76ed18a43393d124493f82d7a1
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod class Preprocessor(object): __metaclass__ = ABCMeta @abstractmethod def preprocess_image(self, image): pass
21.625
39
0.710983
79882a25e8eb41f0fe8115ce2882d0cde9b215c2
637
py
Python
backend/manage.py
crowdbotics-apps/muddy-cloud-30262
538326b9271dd6435af8a018fca416adfb1068c9
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/manage.py
crowdbotics-apps/muddy-cloud-30262
538326b9271dd6435af8a018fca416adfb1068c9
[ "FTL", "AML", "RSA-MD" ]
26
2021-09-02T02:24:27.000Z
2021-12-19T17:21:10.000Z
backend/manage.py
crowdbotics-apps/muddy-cloud-30262
538326b9271dd6435af8a018fca416adfb1068c9
[ "FTL", "AML", "RSA-MD" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'muddy_cloud_30262.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ra...
28.954545
81
0.687598
79882b999151459dfb022a398adeb0537622bd3b
13,396
py
Python
battle-for-indent/engine/units.py
ficrus/battle-for-indent
54a9750e3e2ea09d233647918aa7b5cb4586fa4e
[ "MIT" ]
null
null
null
battle-for-indent/engine/units.py
ficrus/battle-for-indent
54a9750e3e2ea09d233647918aa7b5cb4586fa4e
[ "MIT" ]
9
2019-03-26T20:29:48.000Z
2022-03-12T00:53:50.000Z
battle-for-indent/engine/units.py
ficrus/battle-for-indent
54a9750e3e2ea09d233647918aa7b5cb4586fa4e
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from interface import Leaf import arcade class BaseUnit(Leaf): def __init__(self, sprite=None, x=0, y=0, scale=1, mirrored=False): self.sprite = None if sprite is not None: self.sprite = sprite(scale=scale, mirrored=mirrored) self.fraction = ...
36.601093
117
0.571812
79882c20bd692916cbdcc5e4c20f6f5fc50898bf
1,601
py
Python
demo/PCA_demo_without_label.py
abmas/loglizer
6f5216c9bc48ced7d3dd0eba8fabcf2ffb987f3e
[ "MIT" ]
null
null
null
demo/PCA_demo_without_label.py
abmas/loglizer
6f5216c9bc48ced7d3dd0eba8fabcf2ffb987f3e
[ "MIT" ]
null
null
null
demo/PCA_demo_without_label.py
abmas/loglizer
6f5216c9bc48ced7d3dd0eba8fabcf2ffb987f3e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys sys.path.append('../') from loglizer.models import PCA from loglizer import dataloader, preprocessing struct_log = '../data/HDFS/HDFS_100k.log_structured.csv' # The structured log file if __name__ == '__main__': ## 1. Load strutured log file and extract fe...
41.051282
99
0.700187
79882c5d13907182bb3e3bf510945e116ed25003
2,747
py
Python
PythonScripts/get_dTrdzProfiles.py
UBC-MOAD/outputanalysisnotebooks
50839cde3832d26bac6641427fed03c818fbe170
[ "Apache-2.0" ]
null
null
null
PythonScripts/get_dTrdzProfiles.py
UBC-MOAD/outputanalysisnotebooks
50839cde3832d26bac6641427fed03c818fbe170
[ "Apache-2.0" ]
null
null
null
PythonScripts/get_dTrdzProfiles.py
UBC-MOAD/outputanalysisnotebooks
50839cde3832d26bac6641427fed03c818fbe170
[ "Apache-2.0" ]
null
null
null
from netCDF4 import Dataset import numpy as np import pandas as pd import canyon_tools.readout_tools as rout #from MITgcmutils import rdmds # cant make it work CGrid = '/data/kramosmu/results/TracerExperiments/3DVISC_REALISTIC/run29/gridGlob.nc' # Smallest volume grid, closed bdy, no canyon. CGridOut = Dataset(CGrid) ...
32.317647
145
0.589734
79882d456ec7b1366e8f8b19bd3ec13a67f1257c
942
py
Python
supervised_learning/0x01-classification/1-neuron.py
cbarros7/holbertonschool-machine_learning
1edb4c253441f6319b86c9c590d1e7dd3fc32bf4
[ "MIT" ]
1
2022-03-09T19:12:22.000Z
2022-03-09T19:12:22.000Z
supervised_learning/0x01-classification/1-neuron.py
cbarros7/holbertonschool-machine_learning
1edb4c253441f6319b86c9c590d1e7dd3fc32bf4
[ "MIT" ]
null
null
null
supervised_learning/0x01-classification/1-neuron.py
cbarros7/holbertonschool-machine_learning
1edb4c253441f6319b86c9c590d1e7dd3fc32bf4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Classification""" import numpy as np class Neuron(): """Single neuron performing binary classification""" def __init__(self, nx): """Constructor""" if not isinstance(nx, int): raise TypeError("nx must be an integer") if nx < 1: raise V...
20.478261
62
0.519108
79882d7eee3336e1457319347086b511ad04a910
21,431
py
Python
serial_scripts/rbac/base.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
5
2020-09-29T00:36:57.000Z
2022-02-16T06:51:32.000Z
serial_scripts/rbac/base.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
27
2019-11-02T02:18:34.000Z
2022-02-24T18:49:08.000Z
serial_scripts/rbac/base.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
20
2019-11-28T16:02:25.000Z
2022-01-06T05:56:58.000Z
import test_v1 from rbac_test import RbacFixture from vn_test import VNFixture from vm_test import VMFixture from port_fixture import PortFixture from security_group import SecurityGroupFixture from svc_template_fixture import SvcTemplateFixture from project_test import ProjectFixture from floating_ip import FloatingIP...
44.278926
92
0.587093
79882d8bc4e6c3a4f85605e327904bde96956d49
18,128
py
Python
Python3.8/deepROC.py
Big-Life-Lab/deepROC
a36711205b2f5cc6091e20a8ae56dda1e3e9ae08
[ "Apache-2.0" ]
1
2021-09-16T22:07:52.000Z
2021-09-16T22:07:52.000Z
Python3.8/deepROC.py
Big-Life-Lab/deepROC
a36711205b2f5cc6091e20a8ae56dda1e3e9ae08
[ "Apache-2.0" ]
2
2022-02-10T05:52:57.000Z
2022-02-10T05:58:58.000Z
Python3.8/deepROC.py
Big-Life-Lab/deepROC
a36711205b2f5cc6091e20a8ae56dda1e3e9ae08
[ "Apache-2.0" ]
1
2022-02-09T22:03:27.000Z
2022-02-09T22:03:27.000Z
# deepROC.py # # Copyright 2021 Ottawa Hospital Research Institute # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
38.40678
111
0.60823
79882e150d0c16229915747795982d06260aa38e
6,081
py
Python
heat/cluster/kmedoids.py
shssf/heat
9db0a936c92491fa5aa862f558cb385c9916216b
[ "MIT" ]
105
2018-05-18T11:34:03.000Z
2022-03-29T06:37:23.000Z
heat/cluster/kmedoids.py
shssf/heat
9db0a936c92491fa5aa862f558cb385c9916216b
[ "MIT" ]
909
2018-05-18T07:50:26.000Z
2022-03-31T20:16:30.000Z
heat/cluster/kmedoids.py
shssf/heat
9db0a936c92491fa5aa862f558cb385c9916216b
[ "MIT" ]
28
2018-05-24T14:39:18.000Z
2022-03-31T19:18:47.000Z
""" Module Implementing the Kmedoids Algorithm """ import heat as ht from heat.cluster._kcluster import _KCluster from heat.core.dndarray import DNDarray from typing import Optional, Union, TypeVar class KMedoids(_KCluster): """ This is not the original implementation of k-medoids using PAM as originally prop...
40.271523
193
0.583621
79882eda384cd05808f7f9951c3a623c20540a02
2,195
py
Python
cuegui/setup.py
prOOrc/OpenCue
02cb67f50b90e69f8494b931f5e7fefea296fd09
[ "Apache-2.0" ]
334
2019-01-23T13:48:08.000Z
2019-06-10T06:58:49.000Z
cuegui/setup.py
prOOrc/OpenCue
02cb67f50b90e69f8494b931f5e7fefea296fd09
[ "Apache-2.0" ]
564
2019-06-11T15:31:48.000Z
2022-03-31T19:53:03.000Z
cuegui/setup.py
prOOrc/OpenCue
02cb67f50b90e69f8494b931f5e7fefea296fd09
[ "Apache-2.0" ]
155
2019-06-13T11:42:00.000Z
2022-03-16T18:31:24.000Z
# Copyright Contributors to the OpenCue Project # # 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...
30.915493
75
0.659681
79882f21b94719f4de9be7b20b23060e279cecb3
2,126
py
Python
envs/dev/bin/player.py
Aleksey-Hugo/Avtoservis-Ulyanovsk-one-
073cf02eda5efc7ed7598a39bcf62815f2bfeebb
[ "Apache-2.0" ]
1
2021-06-29T13:28:44.000Z
2021-06-29T13:28:44.000Z
envs/dev/bin/player.py
Aleksey-Hugo/Avtoservis-Ulyanovsk-one-
073cf02eda5efc7ed7598a39bcf62815f2bfeebb
[ "Apache-2.0" ]
null
null
null
envs/dev/bin/player.py
Aleksey-Hugo/Avtoservis-Ulyanovsk-one-
073cf02eda5efc7ed7598a39bcf62815f2bfeebb
[ "Apache-2.0" ]
null
null
null
#!/home/pinachet/PROJECTS/car_service/envs/dev/bin/python3.5 # # The Python Imaging Library # $Id$ # from __future__ import print_function import sys if sys.version_info[0] > 2: import tkinter else: import Tkinter as tkinter from PIL import Image, ImageTk # ------------------------------------------------...
21.693878
80
0.497178
79882f990a16d96612c51b83b31c8f44de85a3f8
9,591
py
Python
helmet_assignment/score.py
rmulla-biocorellc/helmet-assignment
9e806468aed127e9e1e77d36a5e56fa654aa2ea1
[ "Apache-2.0" ]
null
null
null
helmet_assignment/score.py
rmulla-biocorellc/helmet-assignment
9e806468aed127e9e1e77d36a5e56fa654aa2ea1
[ "Apache-2.0" ]
null
null
null
helmet_assignment/score.py
rmulla-biocorellc/helmet-assignment
9e806468aed127e9e1e77d36a5e56fa654aa2ea1
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd from sklearn.metrics import accuracy_score """ Helper functions for scoring accoring to the competition evaluation metric. https://www.kaggle.com/c/nfl-health-and-safety-helmet-assignment/overview/evaluation """ def check_submission(sub): """ Checks that the submission ...
36.60687
120
0.599208
79882ff5a2172301a7cd0da2cf8c3fcd5a288c40
2,473
py
Python
docs/gallery/grib_scatterplot.py
ecmwf/metview-docs
cfde15232834c2d2a8393e7e6ba67ba95acd51e0
[ "Apache-2.0" ]
2
2021-07-19T09:02:33.000Z
2021-09-01T14:29:50.000Z
docs/gallery/grib_scatterplot.py
ecmwf/metview-docs
cfde15232834c2d2a8393e7e6ba67ba95acd51e0
[ "Apache-2.0" ]
1
2021-10-14T11:53:08.000Z
2021-12-01T10:07:34.000Z
docs/gallery/grib_scatterplot.py
ecmwf/metview-docs
cfde15232834c2d2a8393e7e6ba67ba95acd51e0
[ "Apache-2.0" ]
null
null
null
""" GRIB Scatterplot """ # (C) Copyright 2017- ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its ...
24.245098
87
0.690659
79883051404f7ab3aa87fce3e0ffd7976e3245d4
529
py
Python
benchmarks/distributed/rpc/parameter_server/metrics/CPUMetric.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
benchmarks/distributed/rpc/parameter_server/metrics/CPUMetric.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
benchmarks/distributed/rpc/parameter_server/metrics/CPUMetric.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
import time from .MetricBase import MetricBase class CPUMetric(MetricBase): def __init__(self, name: str): self.name = name self.start = None self.end = None def record_start(self): self.start = time.time() def record_end(self): self.end = time.time() def el...
22.041667
47
0.599244
79883053b39243c3198b52a2c889f40cc1d293ed
31,638
py
Python
openmdao/core/tests/test_discrete.py
relf/OpenMDAO
e96aa063d04330ed0aedece365b7f0b8717aad3b
[ "Apache-2.0" ]
null
null
null
openmdao/core/tests/test_discrete.py
relf/OpenMDAO
e96aa063d04330ed0aedece365b7f0b8717aad3b
[ "Apache-2.0" ]
null
null
null
openmdao/core/tests/test_discrete.py
relf/OpenMDAO
e96aa063d04330ed0aedece365b7f0b8717aad3b
[ "Apache-2.0" ]
1
2021-04-15T13:33:39.000Z
2021-04-15T13:33:39.000Z
""" Unit tests for discrete variables.""" import sys import unittest import copy from io import StringIO import numpy as np import openmdao.api as om from openmdao.core.driver import Driver from openmdao.visualization.n2_viewer.n2_viewer import _get_viewer_data from openmdao.test_suite.components.sellar import State...
32.819502
132
0.577944
79883059a66ed94f5480aa85171b7943229e7851
688
py
Python
google/ads/googleads/v6/services/services/feed_item_set_service/__init__.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v6/services/services/feed_item_set_service/__init__.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v6/services/services/feed_item_set_service/__init__.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
32.761905
74
0.75436
7988319648dde12f1f3498184e7c6930b3a65a24
535
py
Python
src/study_keras/1_hello_mnist/hello_mnist.py
iascchen/ai_study_notes
03f46c5e37670c10bd99000d979940db8878f36c
[ "MIT" ]
4
2019-08-08T09:39:01.000Z
2019-08-08T09:44:58.000Z
src/study_keras/1_hello_mnist/hello_mnist.py
iascchen/ai_study_notes
03f46c5e37670c10bd99000d979940db8878f36c
[ "MIT" ]
5
2020-01-28T22:54:31.000Z
2021-12-13T20:07:11.000Z
src/study_keras/1_hello_mnist/hello_mnist.py
iascchen/ai_study_notes
03f46c5e37670c10bd99000d979940db8878f36c
[ "MIT" ]
null
null
null
from tensorflow.keras import datasets, layers, models mnist = datasets.mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() x_train, x_test = x_train / 255.0, x_test / 255.0 model = models.Sequential([ layers.Flatten(input_shape=(28, 28)), layers.Dense(128, activation='relu'), layers.Dropout(0....
28.157895
93
0.725234
798832046ef2d07da35dddfac44c0a9c323e5241
5,551
py
Python
practice/chatbot/practice.py
ohahohah/basketball-chatbot
1154942fe38749eba58f7f45766a597540f1658e
[ "MIT" ]
4
2020-05-03T02:54:50.000Z
2021-07-23T15:10:34.000Z
practice/chatbot/practice.py
ohahohah/basketball-chatbot
1154942fe38749eba58f7f45766a597540f1658e
[ "MIT" ]
6
2020-04-29T14:24:31.000Z
2020-06-03T12:54:43.000Z
practice/chatbot/practice.py
ohahohah/basketball-chatbot
1154942fe38749eba58f7f45766a597540f1658e
[ "MIT" ]
1
2020-05-31T12:50:45.000Z
2020-05-31T12:50:45.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # This program is dedicated to the public domain under the CC0 license. """ First, a few callback functions are defined. Then, those functions are passed to the Dispatcher and registered at their respective places. Then, the bot is started and runs until we press Ctrl-C on...
32.846154
99
0.667808
7988332af1b3588c38ea99bcc129436cef521930
1,534
py
Python
examples/getfile.py
susmit85/ndn-python-repo
45a76bd3e78b0157e364413d62d3aaa51cd20353
[ "Apache-2.0" ]
5
2019-10-07T00:01:54.000Z
2019-12-03T18:28:59.000Z
examples/getfile.py
susmit85/ndn-python-repo
45a76bd3e78b0157e364413d62d3aaa51cd20353
[ "Apache-2.0" ]
48
2020-01-24T04:29:14.000Z
2020-12-11T09:08:50.000Z
examples/getfile.py
susmit85/ndn-python-repo
45a76bd3e78b0157e364413d62d3aaa51cd20353
[ "Apache-2.0" ]
6
2020-02-20T00:05:33.000Z
2020-11-27T05:27:14.000Z
#!/usr/bin/env python3 """ NDN Repo getfile example. @Author jonnykong@cs.ucla.edu """ import argparse import asyncio as aio import logging from ndn.app import NDNApp from ndn.encoding import Name from ndn.security import KeychainDigest from ndn_python_repo.clients import GetfileClient async def run_getfile...
29.5
90
0.619948
79883382efbbbdbc0d0901ddaaa5739701d4eb74
5,684
py
Python
deeplab_Mobile/nets/mobilenetV2.py
Ice833/Semantic-Segmentation
23d23f6da3b34884c044a2253d65a1e4097adb2d
[ "MIT" ]
1
2020-12-16T08:29:13.000Z
2020-12-16T08:29:13.000Z
deeplab_Mobile/nets/mobilenetV2.py
Ice833/Semantic-Segmentation
23d23f6da3b34884c044a2253d65a1e4097adb2d
[ "MIT" ]
null
null
null
deeplab_Mobile/nets/mobilenetV2.py
Ice833/Semantic-Segmentation
23d23f6da3b34884c044a2253d65a1e4097adb2d
[ "MIT" ]
null
null
null
from keras.models import Model from keras import layers from keras.layers import Input from keras.layers import Lambda from keras.layers import Activation from keras.layers import Concatenate from keras.layers import Add from keras.layers import Dropout from keras.layers import BatchNormalization from keras.la...
46.211382
103
0.603976
798833cbeb459edbac5b858afc22546c4e36d26e
25,557
py
Python
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_07_01/aio/operations/_config_servers_operations.py
JianpingChen/azure-sdk-for-python
3072fc8c0366287fbaea1b02493a50259c3248a2
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_07_01/aio/operations/_config_servers_operations.py
JianpingChen/azure-sdk-for-python
3072fc8c0366287fbaea1b02493a50259c3248a2
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_07_01/aio/operations/_config_servers_operations.py
JianpingChen/azure-sdk-for-python
3072fc8c0366287fbaea1b02493a50259c3248a2
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
52.157143
205
0.686348
7988344ed8e2dcc42a4385c612b595283ed527b1
26,416
py
Python
test/unit/test_vm.py
sturmianseq/vcdriver
2af612fd7dfef4fb691bc1c3cbe612269c27f3de
[ "MIT" ]
3
2019-04-20T04:34:52.000Z
2020-05-13T01:41:46.000Z
test/unit/test_vm.py
sturmianseq/vcdriver
2af612fd7dfef4fb691bc1c3cbe612269c27f3de
[ "MIT" ]
8
2017-09-29T15:31:56.000Z
2021-08-03T15:49:21.000Z
test/unit/test_vm.py
sturmianseq/vcdriver
2af612fd7dfef4fb691bc1c3cbe612269c27f3de
[ "MIT" ]
10
2017-08-17T09:28:13.000Z
2021-08-10T02:45:09.000Z
import datetime import mock import os import pytest from pyVmomi import vim import winrm from vcdriver.exceptions import ( NoObjectFound, TooManyObjectsFound, SshError, DownloadError, UploadError, WinRmError, TimeoutError, NotEnoughDiskSpace, ) from vcdriver.vm import ( VirtualMach...
33.953728
79
0.729596
79883470a408b51b840dc907f08fe9f116074857
1,358
py
Python
sparksession.py
tsevans/EmoViz
f1b679c96551ec169e996cf68dd46825ba8a5fa3
[ "MIT" ]
null
null
null
sparksession.py
tsevans/EmoViz
f1b679c96551ec169e996cf68dd46825ba8a5fa3
[ "MIT" ]
null
null
null
sparksession.py
tsevans/EmoViz
f1b679c96551ec169e996cf68dd46825ba8a5fa3
[ "MIT" ]
null
null
null
from pyspark.sql import SparkSession as SS from pyspark.conf import SparkConf from pyspark.sql import SQLContext import multiprocessing as mp def csv_to_spark_dataframe(file_path, sesh): """ Convert a csv file to a spark dataframe. :param file_path: File path object of the csv to convert. :param sesh:...
32.333333
105
0.717231
798834795d7d28815c16c819a8bc518268901457
410
py
Python
h/migrations/versions/c739ee2ae59c_add_refresh_token_column_to_token_table.py
tgiardina/rpp-h
fece590f901b052a59c19a24acfeba52cee33c84
[ "BSD-2-Clause" ]
1
2020-06-19T01:49:39.000Z
2020-06-19T01:49:39.000Z
h/migrations/versions/c739ee2ae59c_add_refresh_token_column_to_token_table.py
tgiardina/rpp-h
fece590f901b052a59c19a24acfeba52cee33c84
[ "BSD-2-Clause" ]
5
2019-10-31T14:23:18.000Z
2019-11-15T19:24:27.000Z
h/migrations/versions/c739ee2ae59c_add_refresh_token_column_to_token_table.py
tgiardina/rpp-h
fece590f901b052a59c19a24acfeba52cee33c84
[ "BSD-2-Clause" ]
null
null
null
""" add refresh_token column to token table Revision ID: c739ee2ae59c Revises: 9f5e274b202c Create Date: 2017-01-24 19:00:07.493002 """ import sqlalchemy as sa from alembic import op revision = "c739ee2ae59c" down_revision = "9f5e274b202c" def upgrade(): op.add_column("token", sa.Column("refresh_token", sa.Uni...
18.636364
85
0.743902
798834d9abcf448238caf0ddafe983bc38f5bcd3
6,567
py
Python
azure/scripts/azureutils.py
f5devcentral/f5-big-iq-trial
0bc3a28b08bc7ce9b161fea4a649d79571f7ca89
[ "Apache-2.0" ]
10
2018-07-26T03:57:11.000Z
2020-04-27T07:20:13.000Z
azure/scripts/azureutils.py
f5devcentral/f5-big-iq-trial
0bc3a28b08bc7ce9b161fea4a649d79571f7ca89
[ "Apache-2.0" ]
6
2018-08-17T02:34:48.000Z
2019-03-22T19:47:25.000Z
azure/scripts/azureutils.py
f5devcentral/f5-big-iq-trial
0bc3a28b08bc7ce9b161fea4a649d79571f7ca89
[ "Apache-2.0" ]
7
2018-08-20T07:12:59.000Z
2021-12-26T23:04:30.000Z
#! /usr/local/bin/python2.7 import argparse import subprocess import os from azure.mgmt.resource import ResourceManagementClient from azure.common.credentials import ServicePrincipalCredentials api_version = "2018-10-01" subscription_holder = "{subscription}" resource_group_holder = "{resourceGroupName}" public_ip_hol...
42.921569
147
0.743109
798834ee49dd196e9f6a627e0901f2add975e62b
6,161
py
Python
trainer/get_realtime_mbta_feed.py
amalrkrishna/subway_time_prediction
11d3b82dfdba84ed0953b8f38e0c13bd2124b885
[ "MIT" ]
3
2020-12-18T09:06:51.000Z
2021-06-01T07:58:09.000Z
trainer/get_realtime_mbta_feed.py
amalrkrishna/subway_time_prediction
11d3b82dfdba84ed0953b8f38e0c13bd2124b885
[ "MIT" ]
null
null
null
trainer/get_realtime_mbta_feed.py
amalrkrishna/subway_time_prediction
11d3b82dfdba84ed0953b8f38e0c13bd2124b885
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Dec 9 10:35:12 2018 @author: amal """ import time import task import model import helpers import numpy as np import pandas as pd from geopy.distance import vincenty import threading VEHICLE_POSITIONS = "https://cdn.mbta.com/realtime/VehiclePositions...
40.006494
109
0.531245
7988355e1161af457fdb9dd0d8f38d94c7a0a8a9
10,726
py
Python
isi_sdk_8_0/isi_sdk_8_0/models/quota_notification_create_params.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_0/isi_sdk_8_0/models/quota_notification_create_params.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_0/isi_sdk_8_0/models/quota_notification_create_params.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 3 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_8_0.models.quota_not...
32.801223
190
0.629312
7988365ee70d0970b14fde1db9f62bbee6b9e9b6
184
py
Python
examples/account1/scam.py
Atheridis/aptbot
ee4372b6f0878fe3678e6a67d44494cc92437856
[ "MIT" ]
null
null
null
examples/account1/scam.py
Atheridis/aptbot
ee4372b6f0878fe3678e6a67d44494cc92437856
[ "MIT" ]
null
null
null
examples/account1/scam.py
Atheridis/aptbot
ee4372b6f0878fe3678e6a67d44494cc92437856
[ "MIT" ]
null
null
null
from aptbot.bot import Message, Commands, Bot def main(bot: Bot, message: Message): msg = message.nick + " you have been scammed KEKW" bot.send_privmsg(message.channel, msg)
26.285714
54
0.717391
79883a938827fab94b10ab9f71637d87c3fba9f6
129
py
Python
utils.py
alextitonis/Simple-GPT3-Chat-Bot
267eba9609448bb6f7346e72743c951f242391a2
[ "MIT" ]
null
null
null
utils.py
alextitonis/Simple-GPT3-Chat-Bot
267eba9609448bb6f7346e72743c951f242391a2
[ "MIT" ]
null
null
null
utils.py
alextitonis/Simple-GPT3-Chat-Bot
267eba9609448bb6f7346e72743c951f242391a2
[ "MIT" ]
null
null
null
def read_file(filename): print(filename) with open(filename, 'r') as infile: text = infile.read() return text
25.8
39
0.635659
79883abd1c46ab4dc93c7b763746993dd083c458
897
py
Python
fedlab_benchmarks/fedasync/cross_machine.py/server.py
williamium3000/FedLab-benchmarks
9c2c49c95da6c2d464140769b913a28ea48e08f7
[ "Apache-2.0" ]
46
2021-09-05T11:49:53.000Z
2022-03-30T07:11:22.000Z
fedlab_benchmarks/fedasync/cross_machine.py/server.py
williamium3000/FedLab-benchmarks
9c2c49c95da6c2d464140769b913a28ea48e08f7
[ "Apache-2.0" ]
7
2021-11-17T08:45:14.000Z
2022-03-28T12:39:57.000Z
fedlab_benchmarks/fedasync/cross_machine.py/server.py
williamium3000/FedLab-benchmarks
9c2c49c95da6c2d464140769b913a28ea48e08f7
[ "Apache-2.0" ]
14
2021-09-06T02:21:38.000Z
2022-03-31T15:10:40.000Z
import os import sys from fedlab.core.network import DistNetwork from fedlab.core.server.handler import AsyncParameterServerHandler from fedlab.core.server.manager import ServerAsynchronousManager sys.path.append("../../../") from models.cnn import CNN_MNIST import argparse if __name__ == "__main__": parser = arg...
32.035714
79
0.701226
79883c45d6defebb46494a74e55f2893b6d88010
500
py
Python
home/migrations/0068_auto_20181114_2237.py
gjergjk71/Attendence
9e9370125bfc4958de02171a3ae4c8e16bf10913
[ "MIT" ]
null
null
null
home/migrations/0068_auto_20181114_2237.py
gjergjk71/Attendence
9e9370125bfc4958de02171a3ae4c8e16bf10913
[ "MIT" ]
null
null
null
home/migrations/0068_auto_20181114_2237.py
gjergjk71/Attendence
9e9370125bfc4958de02171a3ae4c8e16bf10913
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-14 17:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('home', '0067_auto_20181114_2237'), ] operations = [ migrations.AlterField( model_name='add_stud...
25
112
0.654
79883caa5b75915d0cfc0a43d25bc631c2ffd19b
311
py
Python
Proyecto/tester/test2.py
arnel-sanchez/IA-Sim-Com
22023342f20202b260caa759af9cce71d803663e
[ "MIT" ]
2
2021-11-20T23:35:20.000Z
2021-12-10T17:45:56.000Z
Proyecto/tester/test2.py
arnel-sanchez/IA-Sim-Com
22023342f20202b260caa759af9cce71d803663e
[ "MIT" ]
null
null
null
Proyecto/tester/test2.py
arnel-sanchez/IA-Sim-Com
22023342f20202b260caa759af9cce71d803663e
[ "MIT" ]
1
2022-02-11T07:24:50.000Z
2022-02-11T07:24:50.000Z
from os.path import dirname, abspath from sys import path SCRIPT_DIR = dirname(abspath(__file__)) path[0] = dirname(SCRIPT_DIR) path[1] = dirname(SCRIPT_DIR) from main import main if __name__ == '__main__': main("Prueba2 ,#Error al querer comparar expresiones que tienen tipos inducidos diferentes.pys")
25.916667
100
0.765273
79883cb52ff533062c658f02e3999974a7d25651
24,107
py
Python
pymantic/rdf.py
dnswd/blazegraph-python
046a6b47406b0f56d71abc6039f4d7586a1708d2
[ "BSD-3-Clause" ]
null
null
null
pymantic/rdf.py
dnswd/blazegraph-python
046a6b47406b0f56d71abc6039f4d7586a1708d2
[ "BSD-3-Clause" ]
null
null
null
pymantic/rdf.py
dnswd/blazegraph-python
046a6b47406b0f56d71abc6039f4d7586a1708d2
[ "BSD-3-Clause" ]
1
2021-12-27T07:42:32.000Z
2021-12-27T07:42:32.000Z
"""Provides common classes and functions for modelling an RDF graph using Python objects.""" import sys import os.path import urlparse import re import logging from io import StringIO from string import Template import pymantic.util as util from pymantic.primitives import * log = logging.getLogger(__name__) if sys....
42.97148
110
0.628614
79883cbc4c8d5ecef0ccee1f1f05396bc6df552b
10,994
py
Python
ilorest/extensions/COMMANDS/LoginCommand.py
thomasgoirand/python-redfish-utility
96e879df231c5be7b1a23d1242e42d9b12e3d9b1
[ "Apache-2.0" ]
null
null
null
ilorest/extensions/COMMANDS/LoginCommand.py
thomasgoirand/python-redfish-utility
96e879df231c5be7b1a23d1242e42d9b12e3d9b1
[ "Apache-2.0" ]
null
null
null
ilorest/extensions/COMMANDS/LoginCommand.py
thomasgoirand/python-redfish-utility
96e879df231c5be7b1a23d1242e42d9b12e3d9b1
[ "Apache-2.0" ]
null
null
null
### # Copyright 2016-2021 Hewlett Packard Enterprise, 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 # # Un...
42.284615
139
0.585774
79883cf024637514baec1220e174ffb59ac14788
2,405
py
Python
every_election/apps/organisations/boundaries/management/base.py
DemocracyClub/EveryElection
da8a561cb4a84d9b432b1508a68f8cfada3d9515
[ "BSD-3-Clause" ]
8
2017-06-29T10:11:33.000Z
2019-12-16T16:17:51.000Z
every_election/apps/organisations/boundaries/management/base.py
DemocracyClub/EveryElection
da8a561cb4a84d9b432b1508a68f8cfada3d9515
[ "BSD-3-Clause" ]
1,300
2017-01-08T14:02:24.000Z
2022-03-31T09:11:30.000Z
every_election/apps/organisations/boundaries/management/base.py
DemocracyClub/EveryElection
da8a561cb4a84d9b432b1508a68f8cfada3d9515
[ "BSD-3-Clause" ]
11
2017-02-04T10:48:04.000Z
2021-01-27T15:07:55.000Z
import shutil from django.core.management.base import BaseCommand from core.mixins import ReadFromFileMixin from organisations.models import ( DivisionGeography, OrganisationDivision, OrganisationGeography, ) from storage.zipfile import unzip class BaseBoundaryLineCommand(ReadFromFileMixin, BaseCommand):...
34.357143
88
0.626195
79883ed225e08b8422290636a2b993d11abdb8f7
4,989
py
Python
tests/python/relay/test_ir_nodes.py
fegin/tvm
493fc040287cd79410539b65886cf06efbb2e927
[ "Apache-2.0" ]
1
2021-05-09T01:38:04.000Z
2021-05-09T01:38:04.000Z
tests/python/relay/test_ir_nodes.py
KeDengMS/tvm
259e350aabfc86c1a0ce1a22036de3bd34c6d16c
[ "Apache-2.0" ]
1
2019-03-19T21:02:32.000Z
2019-03-19T21:02:32.000Z
tests/python/relay/test_ir_nodes.py
fegin/tvm
493fc040287cd79410539b65886cf06efbb2e927
[ "Apache-2.0" ]
null
null
null
""" test ir""" import tvm from tvm import relay from tvm.expr import * def test_bad_constructor(): try: x = relay.ty.TensorType("xx", "xx") except tvm.TVMError: pass # Span def test_span(): span = relay.Span(None, 1, 1) assert span.source == None assert span.lineno == 1 assert...
24.576355
80
0.627781
79884048f52ac02cbf97bb0ba5a19e8d9570dc65
2,570
py
Python
examples/lstm.py
hotpxl/minpy-jit
fdf968ebe526f1e3f1d7fd7b5c3595d70a4b851d
[ "Apache-2.0" ]
1
2019-09-13T20:23:14.000Z
2019-09-13T20:23:14.000Z
examples/lstm.py
hotpxl/minpy-jit
fdf968ebe526f1e3f1d7fd7b5c3595d70a4b851d
[ "Apache-2.0" ]
null
null
null
examples/lstm.py
hotpxl/minpy-jit
fdf968ebe526f1e3f1d7fd7b5c3595d70a4b851d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import time import sys import functools import mxnet as mx import mxnet.ndarray as nd sys.path.append('../') from minpy import atomic, jit context = mx.cpu() @atomic def linear(X, W, bias): return nd.dot(X, W) + bias @atomic def sigmoid(x): return .5 * (nd.tanh...
26.22449
85
0.589494
7988425ad45a3616b8f75a95d763e39fde48928a
6,955
py
Python
drf_spectacular/utils.py
jayvdb/drf-spectacular
bca26d3a731b0b16543d854a118aaa6a6d11bdc5
[ "BSD-3-Clause" ]
null
null
null
drf_spectacular/utils.py
jayvdb/drf-spectacular
bca26d3a731b0b16543d854a118aaa6a6d11bdc5
[ "BSD-3-Clause" ]
null
null
null
drf_spectacular/utils.py
jayvdb/drf-spectacular
bca26d3a731b0b16543d854a118aaa6a6d11bdc5
[ "BSD-3-Clause" ]
null
null
null
import inspect from rest_framework.settings import api_settings class PolymorphicProxySerializer: """ This class is to be used with :func:`@extend_schema <.extend_schema>` to signal a request/response might be polymorphic (accepts/returns data possibly from different serializers) Beware that thi...
36.994681
116
0.640259
7988428672336771fa8808a6295bbc6953676c45
6,999
py
Python
36-ratios/eval/voc_eval.py
Yu-Nie/YOLOV3
09db1d551d293dcfa7a638fd6693920840d28a74
[ "MIT" ]
null
null
null
36-ratios/eval/voc_eval.py
Yu-Nie/YOLOV3
09db1d551d293dcfa7a638fd6693920840d28a74
[ "MIT" ]
null
null
null
36-ratios/eval/voc_eval.py
Yu-Nie/YOLOV3
09db1d551d293dcfa7a638fd6693920840d28a74
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Fast/er R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Bharath Hariharan # -------------------------------------------------------- import xml.etree.ElementTree as ET import os import pickle import numpy as np def parse_rec(fi...
34.648515
78
0.524504
798842d72b873617d613089bdca1f86eae28cb05
14,395
py
Python
vocoder/models/fatchord_version.py
mgerhards/Real-Time-Voice-Cloning
c7defceed16fc7c3e0798331c740d121e2a76129
[ "MIT" ]
305
2019-09-02T19:59:03.000Z
2022-03-27T09:44:42.000Z
vocoder/models/fatchord_version.py
mgerhards/Real-Time-Voice-Cloning
c7defceed16fc7c3e0798331c740d121e2a76129
[ "MIT" ]
28
2019-09-10T18:00:32.000Z
2021-10-01T07:24:27.000Z
vocoder/models/fatchord_version.py
mgerhards/Real-Time-Voice-Cloning
c7defceed16fc7c3e0798331c740d121e2a76129
[ "MIT" ]
88
2019-08-27T07:14:53.000Z
2022-03-27T09:37:35.000Z
import torch import torch.nn as nn import torch.nn.functional as F from vocoder.distribution import sample_from_discretized_mix_logistic from vocoder.display import * from vocoder.audio import * class ResBlock(nn.Module): def __init__(self, dims): super().__init__() self.conv1 = nn.Conv1d(dims, di...
34.770531
113
0.553039
798842ea4982e9e20fe739f9b253dca894076373
800
py
Python
tests/benchmarks/bm_subdivide_meshes.py
janEbert/pytorch3d
accdac80fb29e82f72d4e8e73135ba8fd790b6c0
[ "MIT", "BSD-3-Clause" ]
1
2022-01-24T20:51:16.000Z
2022-01-24T20:51:16.000Z
tests/benchmarks/bm_subdivide_meshes.py
janEbert/pytorch3d
accdac80fb29e82f72d4e8e73135ba8fd790b6c0
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests/benchmarks/bm_subdivide_meshes.py
janEbert/pytorch3d
accdac80fb29e82f72d4e8e73135ba8fd790b6c0
[ "MIT", "BSD-3-Clause" ]
1
2022-03-29T04:29:06.000Z
2022-03-29T04:29:06.000Z
# Copyright (c) Meta Platforms, Inc. and 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. from itertools import product from fvcore.common.benchmark import benchmark from test_subdivide_meshes import...
25
71
0.69125
7988438b0d467fc1f1f8a61e15a730f93319b203
6,066
py
Python
ote/ote/utils/misc.py
dqawami/openvino_training_extensions
dddda1dfd651eaae2d59cecda84275b1b03bd0ad
[ "Apache-2.0" ]
256
2020-09-09T03:27:57.000Z
2022-03-30T10:06:06.000Z
ote/ote/utils/misc.py
dqawami/openvino_training_extensions
dddda1dfd651eaae2d59cecda84275b1b03bd0ad
[ "Apache-2.0" ]
604
2020-09-08T12:29:49.000Z
2022-03-31T21:51:08.000Z
ote/ote/utils/misc.py
dqawami/openvino_training_extensions
dddda1dfd651eaae2d59cecda84275b1b03bd0ad
[ "Apache-2.0" ]
160
2020-09-09T14:06:07.000Z
2022-03-30T14:50:48.000Z
""" Copyright (c) 2020-2021 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 i...
33.7
113
0.620343
798843e5f75b1d18716a8140b43cf52a08213708
732
py
Python
airline/migrations/0004_airlineroutewaypoints.py
RobertPastor/flight-profile
bdc3bb9defeb347db26f96f7accd4d06cad1e33b
[ "MIT" ]
null
null
null
airline/migrations/0004_airlineroutewaypoints.py
RobertPastor/flight-profile
bdc3bb9defeb347db26f96f7accd4d06cad1e33b
[ "MIT" ]
null
null
null
airline/migrations/0004_airlineroutewaypoints.py
RobertPastor/flight-profile
bdc3bb9defeb347db26f96f7accd4d06cad1e33b
[ "MIT" ]
null
null
null
# Generated by Django 2.2.11 on 2022-03-16 21:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('airline', '0003_airlineaircraft'), ] operations = [ migrations.CreateModel( name='AirlineRoute...
30.5
117
0.60929
79884460e772f40a607203371c61d714639d6bc0
7,548
py
Python
setup.py
Narsil/sympy
4d837e074b871af351b42591697fe126411a910f
[ "BSD-3-Clause" ]
null
null
null
setup.py
Narsil/sympy
4d837e074b871af351b42591697fe126411a910f
[ "BSD-3-Clause" ]
null
null
null
setup.py
Narsil/sympy
4d837e074b871af351b42591697fe126411a910f
[ "BSD-3-Clause" ]
1
2022-03-21T09:07:27.000Z
2022-03-21T09:07:27.000Z
#!/usr/bin/env python """Distutils based setup script for SymPy. This uses Distutils (http://python.org/sigs/distutils-sig/) the standard python mechanism for installing packages. For the easiest installation just type the command (you'll probably need root privileges for that): python setup.py install This will...
29.952381
134
0.626391
798844a45f158dc0a70cc882e9716ccb0ee3bfaa
4,300
py
Python
PythonWeb/example/App/views.py
JimouChen/python-application
b7b16506a17e2c304d1c5fabd6385e96be211c56
[ "Apache-2.0" ]
1
2020-08-09T12:47:27.000Z
2020-08-09T12:47:27.000Z
PythonWeb/example/App/views.py
JimouChen/Python_Application
b7b16506a17e2c304d1c5fabd6385e96be211c56
[ "Apache-2.0" ]
null
null
null
PythonWeb/example/App/views.py
JimouChen/Python_Application
b7b16506a17e2c304d1c5fabd6385e96be211c56
[ "Apache-2.0" ]
null
null
null
from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage from django.http import HttpResponse from django.shortcuts import render # Create your views here. from App.models import User, Movie def home(request): return render(request, 'app01/home.html') def handle_data(request): # 增加记录 # ...
22.751323
72
0.594419
798846d2f7dce2efa4ce4622941cb7677b42b21c
1,522
py
Python
RiverToys/ConceptDriftExample.py
PenHsuanWang/IncrementalLearningE2EPlayground
c22708bdf4dd4ba8770dafe6e85f0481b34030fd
[ "Apache-2.0" ]
null
null
null
RiverToys/ConceptDriftExample.py
PenHsuanWang/IncrementalLearningE2EPlayground
c22708bdf4dd4ba8770dafe6e85f0481b34030fd
[ "Apache-2.0" ]
null
null
null
RiverToys/ConceptDriftExample.py
PenHsuanWang/IncrementalLearningE2EPlayground
c22708bdf4dd4ba8770dafe6e85f0481b34030fd
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from matplotlib import gridspec from river import drift #Auxiliary function to plot the data def plot_data(dist_a, dist_b, dist_c, drifts=None): fig = plt.figure(figsize=(7,3), tight_layout=True) gs = gridspec.GridSpec(1, 2, width_ratios=[3, 1]) ax1, ax2 ...
34.590909
88
0.701708
798846f98de74b429e9b99efa3e673195388fa33
3,169
py
Python
tensorflow/lite/testing/op_tests/pool3d.py
wainshine/tensorflow
dc7a8dc8546c679b9c7b3df7494ce4506bfc1a6d
[ "Apache-2.0" ]
54
2017-06-17T14:07:48.000Z
2022-03-29T02:11:20.000Z
tensorflow/lite/testing/op_tests/pool3d.py
wainshine/tensorflow
dc7a8dc8546c679b9c7b3df7494ce4506bfc1a6d
[ "Apache-2.0" ]
19
2021-12-28T12:44:55.000Z
2022-01-13T08:11:28.000Z
tensorflow/lite/testing/op_tests/pool3d.py
wainshine/tensorflow
dc7a8dc8546c679b9c7b3df7494ce4506bfc1a6d
[ "Apache-2.0" ]
11
2018-04-19T22:36:01.000Z
2021-08-02T08:44:43.000Z
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.211111
80
0.665825
798847af364915a7bfadb576b79e1c56a6fada42
1,037
py
Python
window/oneImage.py
DragonGongY/mmdet-ui
41582b0ee2b3d9c631ee48540ca8a6d87be362e0
[ "Apache-2.0" ]
1
2021-12-24T05:28:20.000Z
2021-12-24T05:28:20.000Z
window/oneImage.py
DragonGongY/mmdet-ui
41582b0ee2b3d9c631ee48540ca8a6d87be362e0
[ "Apache-2.0" ]
null
null
null
window/oneImage.py
DragonGongY/mmdet-ui
41582b0ee2b3d9c631ee48540ca8a6d87be362e0
[ "Apache-2.0" ]
null
null
null
from argparse import ArgumentParser from mmdet.apis import inference_detector, init_detector, show_result_pyplot def one_image(img, config, checkpoint, score_thr, score_bbox): parser = ArgumentParser() parser.add_argument('--img', default=img, help='Image file') parser.add_argument('--config', default=c...
37.035714
83
0.720347
7988499e1e4c05ecc94fcf4fa4f284e83a132799
3,033
py
Python
utils/warmup_scheduler.py
Outflier/nerf_pl
b8d97627f68138437b42fe6751b7817020cf0f55
[ "MIT" ]
null
null
null
utils/warmup_scheduler.py
Outflier/nerf_pl
b8d97627f68138437b42fe6751b7817020cf0f55
[ "MIT" ]
null
null
null
utils/warmup_scheduler.py
Outflier/nerf_pl
b8d97627f68138437b42fe6751b7817020cf0f55
[ "MIT" ]
null
null
null
from torch.optim.lr_scheduler import _LRScheduler from torch.optim.lr_scheduler import ReduceLROnPlateau class GradualWarmupScheduler(_LRScheduler): """ Gradually warm-up(increasing) learning rate in optimizer. Proposed in 'Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour'. Args: optimiz...
40.986486
143
0.594131
79884a3f3ea4edb291a9598dbc5efb7138132f7f
4,916
py
Python
synchrophasor/utils.py
aleneus/pypmu
66e6c495a91efb8a6018061ff7955a6654b1404d
[ "BSD-3-Clause" ]
50
2016-03-30T18:48:34.000Z
2022-03-11T01:41:37.000Z
synchrophasor/utils.py
aleneus/pypmu
66e6c495a91efb8a6018061ff7955a6654b1404d
[ "BSD-3-Clause" ]
32
2017-10-20T06:52:38.000Z
2022-03-18T14:13:03.000Z
synchrophasor/utils.py
aleneus/pypmu
66e6c495a91efb8a6018061ff7955a6654b1404d
[ "BSD-3-Clause" ]
36
2016-05-17T19:43:14.000Z
2022-03-17T18:37:22.000Z
############################################################################## # # Copyright (C) Gennady Trafimenkov, 2011 # # This program 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, ei...
42.017094
84
0.644426
79884b16dbb390267bcc5b10e8d5070c1b40c1c6
119
py
Python
plume/__init__.py
mcflugen/plume
7fc65ba9461fece372eef4b2bee9ba6e72f42d19
[ "MIT" ]
null
null
null
plume/__init__.py
mcflugen/plume
7fc65ba9461fece372eef4b2bee9ba6e72f42d19
[ "MIT" ]
null
null
null
plume/__init__.py
mcflugen/plume
7fc65ba9461fece372eef4b2bee9ba6e72f42d19
[ "MIT" ]
1
2018-08-30T17:32:26.000Z
2018-08-30T17:32:26.000Z
from .plume import Plume from ._version import get_versions __version__ = get_versions()['version'] del get_versions
17
39
0.798319
79884b5ef60c42fabfd502214dd6428f09179300
934
py
Python
test/test_modify_group_by_index.py
OlgaZtv/python_training
661165613ef4b9545345a8a2c61a894571ded703
[ "Apache-2.0" ]
null
null
null
test/test_modify_group_by_index.py
OlgaZtv/python_training
661165613ef4b9545345a8a2c61a894571ded703
[ "Apache-2.0" ]
null
null
null
test/test_modify_group_by_index.py
OlgaZtv/python_training
661165613ef4b9545345a8a2c61a894571ded703
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from model.group import Group from random import randrange def test_modify_group_name(app): if app.group.count() == 0: app.group.create(Group(name="test")) old_groups = app.group.get_group_list() index = randrange(len(old_groups)) group = Group(name="New group") grou...
33.357143
93
0.691649
79884ba3c98372f7e047d18ff1a22fd1a798344e
14,340
py
Python
tests/test_cross_section.py
karldw/conleySE
4fb680106896786a6068b7f347f98ce97a08197e
[ "BSD-3-Clause" ]
null
null
null
tests/test_cross_section.py
karldw/conleySE
4fb680106896786a6068b7f347f98ce97a08197e
[ "BSD-3-Clause" ]
null
null
null
tests/test_cross_section.py
karldw/conleySE
4fb680106896786a6068b7f347f98ce97a08197e
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import numpy as np from distance import great_circle from core import cross_section as conley_cross_section from core import (CutoffError, get_kernel_fn, _neighbors_to_sparse_uniform, _neighbors_to_sparse_nonuniform) from numpy.testing import assert_allclose from hypothesis import giv...
42.551929
100
0.658159
79884c92749657cfe9421271a756963ab9572eeb
3,049
py
Python
python/pytest/test_dataset.py
bbayukari/abess
3b21b0a58cac6c1464ec9403ffbe4902fee7b890
[ "Intel" ]
null
null
null
python/pytest/test_dataset.py
bbayukari/abess
3b21b0a58cac6c1464ec9403ffbe4902fee7b890
[ "Intel" ]
null
null
null
python/pytest/test_dataset.py
bbayukari/abess
3b21b0a58cac6c1464ec9403ffbe4902fee7b890
[ "Intel" ]
null
null
null
import pytest import numpy as np import abess from utilities import assert_shape @pytest.mark.filterwarnings("ignore") class TestOther: """ Test for other modules in abess package. Include: `abess.datasets` """ @staticmethod def test_glm(): np.random.seed(123) n = 100 ...
28.764151
78
0.465726
79884cfaa2939435cf3d57d5d0e519e18c0c1311
2,599
py
Python
plugins/commands.py
robin2255/aryastark
6f90ae32a1a5af893ccb73ee326462d8e2dfaf7e
[ "MIT" ]
null
null
null
plugins/commands.py
robin2255/aryastark
6f90ae32a1a5af893ccb73ee326462d8e2dfaf7e
[ "MIT" ]
null
null
null
plugins/commands.py
robin2255/aryastark
6f90ae32a1a5af893ccb73ee326462d8e2dfaf7e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @trojanzhex from pyrogram import Client, filters from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton from script import script @Client.on_message(filters.command(["start"]) & filters.private) async def start(client, message): try: await ...
32.898734
90
0.504425
79884e9fb5cf3377524abeecd05a070793054ccf
23,842
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_12_01/operations/_express_route_circuit_connections_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-03-24T06:26:11.000Z
2021-04-18T15:55:59.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_12_01/operations/_express_route_circuit_connections_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_12_01/operations/_express_route_circuit_connections_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.16309
249
0.671252
79884f0588e80ccd434daae62f37d83b97063cd2
516
py
Python
ticketing/migrations/0006_auto_20180731_0015.py
autlamps/tessera-backend
1d02e8e3651c1ad75bdf4e5d0e61765a2a6de0c2
[ "MIT" ]
null
null
null
ticketing/migrations/0006_auto_20180731_0015.py
autlamps/tessera-backend
1d02e8e3651c1ad75bdf4e5d0e61765a2a6de0c2
[ "MIT" ]
1
2018-08-14T03:15:00.000Z
2018-08-21T00:33:34.000Z
ticketing/migrations/0006_auto_20180731_0015.py
autlamps/tessera-backend
1d02e8e3651c1ad75bdf4e5d0e61765a2a6de0c2
[ "MIT" ]
null
null
null
# Generated by Django 2.0.4 on 2018-07-31 00:15 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('ticketing', '0005_merge_20180717_0134'), ] operations = [ migrations.AlterField( model_name='ba...
25.8
136
0.660853
79884f21a6fa544a43fdbe8b8901812f024c127c
736
py
Python
Lib/idlelib/idle_test/test_calltips.py
Flowerowl/Python2.7.6
b1f762257a643ee7ad2abae8ac351054ee57498f
[ "PSF-2.0" ]
36
2015-02-12T06:44:29.000Z
2021-08-08T06:07:15.000Z
BitmessageKit/Vendor/static-python/Lib/idlelib/idle_test/test_calltips.py
VoluntaryLabs/BitmessageKit
dd634977a629ab4dec184e12bb6324cc01149ba3
[ "MIT" ]
1
2019-09-24T13:09:22.000Z
2019-09-24T13:09:22.000Z
BitmessageKit/Vendor/static-python/Lib/idlelib/idle_test/test_calltips.py
VoluntaryLabs/BitmessageKit
dd634977a629ab4dec184e12bb6324cc01149ba3
[ "MIT" ]
5
2016-01-26T23:52:02.000Z
2022-01-26T21:10:11.000Z
import unittest import idlelib.CallTips as ct CTi = ct.CallTips() class Get_entityTest(unittest.TestCase): # In 3.x, get_entity changed from 'instance method' to module function # since 'self' not used. Use dummy instance until change 2.7 also. def test_bad_entity(self): self.assertIsNone(CTi.get_e...
35.047619
77
0.682065
79884f60e6c993aeae39d4e87202728f8558de0c
2,948
py
Python
implementation/datasetloader.py
DKuva/projclfimg1819
58f799b69f50edfff651b789287a33ef9a0477b8
[ "MIT" ]
null
null
null
implementation/datasetloader.py
DKuva/projclfimg1819
58f799b69f50edfff651b789287a33ef9a0477b8
[ "MIT" ]
null
null
null
implementation/datasetloader.py
DKuva/projclfimg1819
58f799b69f50edfff651b789287a33ef9a0477b8
[ "MIT" ]
null
null
null
import os import matplotlib.pyplot as plt import numpy as np import cv2 import csv def get_images_and_labels(datadir,train_data,imtype=-1,bgr2rgb=False,resolution=(0,0),crop=False): ''' Reads traffic sign data for German Traffic Sign Recognition Benchmark. Arguments: datadir -- path to the tra...
32.755556
98
0.546811
79884f765025ba1f38fef6c090e688c99c551c07
124
py
Python
test_package/conanfile.py
ccaughie/conan-yasm_installer
0ef1efba018526212a376ffa42434bc0e73be0cb
[ "MIT" ]
null
null
null
test_package/conanfile.py
ccaughie/conan-yasm_installer
0ef1efba018526212a376ffa42434bc0e73be0cb
[ "MIT" ]
null
null
null
test_package/conanfile.py
ccaughie/conan-yasm_installer
0ef1efba018526212a376ffa42434bc0e73be0cb
[ "MIT" ]
2
2019-02-08T16:18:16.000Z
2019-07-18T19:24:55.000Z
from conans import ConanFile import os class TestPackage(ConanFile): def test(self): self.run("yasm --help")
13.777778
31
0.677419
798850a498bf03b73d9706702ed5c14e1fce99ab
213
py
Python
app/task.py
FromZeus/sample-task
2ddb00a260496918d9807c7556d533a5e1c577cf
[ "Apache-2.0" ]
1
2017-11-02T11:37:03.000Z
2017-11-02T11:37:03.000Z
app/task.py
FromZeus/drweb
2ddb00a260496918d9807c7556d533a5e1c577cf
[ "Apache-2.0" ]
null
null
null
app/task.py
FromZeus/drweb
2ddb00a260496918d9807c7556d533a5e1c577cf
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import time import random def run(task_model): time.sleep(random.randint(0, task_model.difficulty)) return task_model, {"end_time": datetime.utcnow(), "status": "Complete"}
23.666667
76
0.746479
79885127eca547999d8dddec25197569e777dfae
1,487
py
Python
server/apps/main/urls.py
badgermind/AutSPACEs
26968ffc6304d9868eb85ad9bdd28a440ec11692
[ "MIT" ]
13
2021-04-03T12:40:19.000Z
2021-12-29T09:03:11.000Z
server/apps/main/urls.py
badgermind/AutSPACEs
26968ffc6304d9868eb85ad9bdd28a440ec11692
[ "MIT" ]
112
2021-04-01T20:55:52.000Z
2022-03-02T09:25:58.000Z
server/apps/main/urls.py
mridubhatnagar/AutSPACEs
05f67b39a355c4796c2e174152fe98e5d157b904
[ "MIT" ]
8
2021-03-11T13:50:31.000Z
2021-03-29T17:20:38.000Z
from django.conf.urls import url from django.urls import path from server.apps.main import views app_name = 'main' urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^signup/?$', views.signup, name='signup'), url(r'^signup1/?$', views.signup_frame4_test, name='signup_frame4_test'), url(r'^l...
39.131579
78
0.667115
798852a4c4c2a111a56ecf45a88a814c5fc031ed
35,669
py
Python
airflow/configuration.py
Pverheijen/airflow
13a827d80fef738e25f30ea20c095ad4dbd401f6
[ "Apache-2.0" ]
1
2020-08-20T02:00:27.000Z
2020-08-20T02:00:27.000Z
airflow/configuration.py
Pverheijen/airflow
13a827d80fef738e25f30ea20c095ad4dbd401f6
[ "Apache-2.0" ]
9
2021-03-01T21:20:13.000Z
2022-03-29T22:28:14.000Z
airflow/configuration.py
vuppalli/airflow
dfe8337ca2d3ed173d9ecc112938271519792c40
[ "Apache-2.0" ]
2
2020-03-08T14:12:55.000Z
2020-06-10T10:17:32.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 ...
40.077528
110
0.626875
798852ad56fc4225b24490b48083abec144f8b75
3,815
py
Python
geomstats/geometry/product_riemannian_metric.py
opeltre/geomstats
135d5bb6f19e29dd453c68399e04100a9e2c76bf
[ "MIT" ]
null
null
null
geomstats/geometry/product_riemannian_metric.py
opeltre/geomstats
135d5bb6f19e29dd453c68399e04100a9e2c76bf
[ "MIT" ]
null
null
null
geomstats/geometry/product_riemannian_metric.py
opeltre/geomstats
135d5bb6f19e29dd453c68399e04100a9e2c76bf
[ "MIT" ]
null
null
null
""" Product of Riemannian metrics. """ import geomstats.backend as gs from geomstats.geometry.riemannian_metric import RiemannianMetric EPSILON = 1e-5 # TODO(nina): unit tests class ProductRiemannianMetric(RiemannianMetric): """ Class for product of Riemannian metrics. """ def __init__(self, metri...
33.761062
76
0.569332
798853d5ca7ffede58a4af0f2edf565768d84610
14,172
py
Python
salt/states/win_wua.py
olivier-mauras/salt
a6483b1b39705401fc6143a7abab13d046bd55de
[ "Apache-2.0" ]
null
null
null
salt/states/win_wua.py
olivier-mauras/salt
a6483b1b39705401fc6143a7abab13d046bd55de
[ "Apache-2.0" ]
null
null
null
salt/states/win_wua.py
olivier-mauras/salt
a6483b1b39705401fc6143a7abab13d046bd55de
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Installation of Windows Updates using the Windows Update Agent .. versionadded:: 2017.7.0 Salt can manage Windows updates via the "wua" state module. Updates can be installed and removed. Update management declarations are as follows: For installation: .. code-block:: yaml # Install...
28.063366
122
0.583051
798854b8cf97e656cb9f90d7823ac7f40e9e8cfd
4,475
py
Python
atm/checks/poi_based.py
gina-alaska/arctic_thermokarst_model
7a3dbedb72b133670bb6e476fc3f5788bbcdbca4
[ "MIT" ]
null
null
null
atm/checks/poi_based.py
gina-alaska/arctic_thermokarst_model
7a3dbedb72b133670bb6e476fc3f5788bbcdbca4
[ "MIT" ]
null
null
null
atm/checks/poi_based.py
gina-alaska/arctic_thermokarst_model
7a3dbedb72b133670bb6e476fc3f5788bbcdbca4
[ "MIT" ]
null
null
null
""" POI Based transition -------------------- Transition functions for POI based changes in area """ import numpy as np import functions # import matplotlib.pyplot as plt def transition (name, year, grids, control): """This checks for any area in the cohort 'name' that should be transitioned to the next cohor...
35.23622
96
0.643128
7988553d1f7df9cfcb87108776aac0771e40061b
15,845
py
Python
web/portal/views.py
LSSTDESC/desc-data-portal
7e88452f8f69d4a1a3b0eb50f5ef947b5c41a272
[ "BSD-3-Clause" ]
7
2021-01-13T15:50:41.000Z
2022-01-31T18:36:35.000Z
web/portal/views.py
LSSTDESC/desc-data-portal
7e88452f8f69d4a1a3b0eb50f5ef947b5c41a272
[ "BSD-3-Clause" ]
66
2021-01-12T16:39:12.000Z
2022-03-30T23:06:21.000Z
web/portal/views.py
LSSTDESC/desc-data-portal
7e88452f8f69d4a1a3b0eb50f5ef947b5c41a272
[ "BSD-3-Clause" ]
2
2021-01-21T15:41:43.000Z
2021-06-24T19:00:42.000Z
import requests from flask import (abort, flash, redirect, render_template, request, session, url_for) from globus_sdk import (RefreshTokenAuthorizer, TransferAPIError, TransferClient, TransferData) from portal import app, database, datasets from portal.decorators import auth...
36.425287
168
0.620827
798855f22ca9c84c64fd3656d17f3fc76a942f5b
624
py
Python
src/data/normalize_column.py
steffen-jung/movie-mining
d49a6d6b9a6c632ea748fc582c2576b71fab9074
[ "MIT" ]
13
2017-12-02T11:09:35.000Z
2021-12-19T10:23:20.000Z
src/data/normalize_column.py
steffen-jung/movie-mining
d49a6d6b9a6c632ea748fc582c2576b71fab9074
[ "MIT" ]
9
2017-11-09T09:12:48.000Z
2017-11-26T15:34:42.000Z
src/data/normalize_column.py
yOoMarvin/movie-mining
d49a6d6b9a6c632ea748fc582c2576b71fab9074
[ "MIT" ]
4
2017-11-30T18:34:40.000Z
2020-10-15T07:30:11.000Z
import pandas as pd from sklearn import preprocessing import numpy as np # this method removes the initial column and replaces it with the normalized column def normalize_column_data(df, column_name): x = df[column_name].astype(np.float64) x = x.values.reshape(-1, 1) # Create a minimum and maximum proce...
29.714286
83
0.748397
7988562f1be6df9986df15c3aee596a85cc5ded3
74,662
py
Python
apps/questionnaire/utils.py
baggids/qcat
2a4a826b3f78c279c88b5bc9282deabb565a7aba
[ "Apache-2.0" ]
null
null
null
apps/questionnaire/utils.py
baggids/qcat
2a4a826b3f78c279c88b5bc9282deabb565a7aba
[ "Apache-2.0" ]
null
null
null
apps/questionnaire/utils.py
baggids/qcat
2a4a826b3f78c279c88b5bc9282deabb565a7aba
[ "Apache-2.0" ]
null
null
null
import ast import json import logging from uuid import UUID from django.apps import apps from django.contrib import messages from django.db import IntegrityError from django.db.models import Q from django.db.models.signals import pre_save from django.template.loader import render_to_string from django.shortcuts import...
39.357934
111
0.580684
798856e6f4c37ee1aad912e701a7eac942c1639e
3,205
py
Python
tests/print_qstats_test.py
julesmuhizi/qkeras
eec5a4a9f1930d0ee51319ab7363dd038a6e68c5
[ "Apache-2.0" ]
388
2019-08-06T22:16:48.000Z
2022-03-30T17:17:47.000Z
tests/print_qstats_test.py
julesmuhizi/qkeras
eec5a4a9f1930d0ee51319ab7363dd038a6e68c5
[ "Apache-2.0" ]
76
2019-08-21T19:25:58.000Z
2022-03-31T09:07:07.000Z
tests/print_qstats_test.py
julesmuhizi/qkeras
eec5a4a9f1930d0ee51319ab7363dd038a6e68c5
[ "Apache-2.0" ]
79
2019-08-15T03:00:02.000Z
2022-03-31T09:05:11.000Z
# Copyright 2019 Google LLC # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
28.362832
80
0.663339
798857a03f0151949b20ec52a7b1c2f193ff8070
14,953
py
Python
BitTornado/Meta/Info.py
alahoo/BitTornado
02a25579e83d907623b5451473de41d1e01ce150
[ "MIT" ]
116
2015-01-24T23:29:05.000Z
2022-02-06T11:05:55.000Z
BitTornado/Meta/Info.py
alahoo/BitTornado
02a25579e83d907623b5451473de41d1e01ce150
[ "MIT" ]
39
2015-02-09T15:26:01.000Z
2019-01-11T07:14:21.000Z
BitTornado/Meta/Info.py
alahoo/BitTornado
02a25579e83d907623b5451473de41d1e01ce150
[ "MIT" ]
44
2015-02-07T08:47:46.000Z
2021-05-17T13:22:54.000Z
"""Generate metafile data for use in BitTorrent applications These data structures are generalizations of the original BitTorrent and BitTornado makemetafile.py behaviors. """ import os import re import time import hashlib from ..Types import TypedDict, TypedList, SplitList from .bencode import BencodedFile def get...
35.349882
78
0.557413
79885895beaf8ee00f0004da7f1232c1f5be9db5
32,919
py
Python
firmware_tools/vxhunter_r2_py3.py
FiniteStateInc/vxhunter
aaacf453dc77180012da8de13e25a2ebb6688fab
[ "BSD-2-Clause" ]
null
null
null
firmware_tools/vxhunter_r2_py3.py
FiniteStateInc/vxhunter
aaacf453dc77180012da8de13e25a2ebb6688fab
[ "BSD-2-Clause" ]
null
null
null
firmware_tools/vxhunter_r2_py3.py
FiniteStateInc/vxhunter
aaacf453dc77180012da8de13e25a2ebb6688fab
[ "BSD-2-Clause" ]
2
2020-03-23T19:12:46.000Z
2020-12-22T17:08:32.000Z
# !/usr/bin/env python3 # coding=utf-8 import logging import struct import r2pipe import sys default_check_count = 100 known_address = [0x80002000, 0x10000, 0x1000, 0xf2003fe4, 0x100000, 0x107fe0] function_name_key_words = [b'bzero', b'usrInit', b'bfill'] # VxWorks 5.5 vx_5_sym_types = [ # 0x00, # Undefine...
38.277907
152
0.566876
798859088cb7e27912d71ca5f3d16d0c115f5edb
413
py
Python
letraspotengienses/wsgi.py
PedrinaBrasil/PortalLetrasPotengienses
89e12200a626583d938352859cabc2aff914bbc9
[ "Apache-2.0" ]
null
null
null
letraspotengienses/wsgi.py
PedrinaBrasil/PortalLetrasPotengienses
89e12200a626583d938352859cabc2aff914bbc9
[ "Apache-2.0" ]
null
null
null
letraspotengienses/wsgi.py
PedrinaBrasil/PortalLetrasPotengienses
89e12200a626583d938352859cabc2aff914bbc9
[ "Apache-2.0" ]
null
null
null
""" WSGI config for LetrasPotengienses project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('D...
24.294118
78
0.79661
798859f2b9415e5d9cc2919a28bc123af61f034e
214
py
Python
jharyo/present.py
grnydawn/jharyo
2b66bb79995d5ebb1ceaeaa3fbb07f133ec8b8b3
[ "BSD-3-Clause" ]
null
null
null
jharyo/present.py
grnydawn/jharyo
2b66bb79995d5ebb1ceaeaa3fbb07f133ec8b8b3
[ "BSD-3-Clause" ]
null
null
null
jharyo/present.py
grnydawn/jharyo
2b66bb79995d5ebb1ceaeaa3fbb07f133ec8b8b3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Jharyo data presentor module.""" from __future__ import absolute_import, division, print_function # TODO: present_data is a factory function def present_data(data, ns, args): pass
21.4
64
0.724299
79885b78bc957092c07bcdf528c87a1b20a4fab1
435
py
Python
Cell.py
belous-dp/Conways-Game-of-Life
6f729fa809c1784891ac16ccc811e51ff5e6d9c0
[ "MIT" ]
null
null
null
Cell.py
belous-dp/Conways-Game-of-Life
6f729fa809c1784891ac16ccc811e51ff5e6d9c0
[ "MIT" ]
null
null
null
Cell.py
belous-dp/Conways-Game-of-Life
6f729fa809c1784891ac16ccc811e51ff5e6d9c0
[ "MIT" ]
null
null
null
from dataclasses import dataclass # чтобы не писать __init__ @dataclass class Cell: val: bool = False sum: int = 0 # В принципе мало какие из этих методов нужны, но раз уж создавать отдельный класс для bool'а, то давайте как-нибудь # пафосно назовём их def is_alive(self): return self.val...
22.894737
120
0.664368
79885b78ce6aaeadbad5976e8dc1e05aa75080f8
4,658
py
Python
kubernetes/client/models/v1_role_ref.py
redjohn/python
5e512ff564c244c50cab780d821542ed56aa965a
[ "Apache-2.0" ]
1
2019-04-14T23:51:35.000Z
2019-04-14T23:51:35.000Z
kubernetes/client/models/v1_role_ref.py
redjohn/python
5e512ff564c244c50cab780d821542ed56aa965a
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_role_ref.py
redjohn/python
5e512ff564c244c50cab780d821542ed56aa965a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
25.043011
105
0.542293
79885b7e66131a65d58c5ac6d24e1f3f5972bbaa
156
py
Python
virtual/bin/django-admin.py
iankabugi/instaclone
c1948fce71881a4e8004cfe117f6c48ba49faf53
[ "MIT" ]
null
null
null
virtual/bin/django-admin.py
iankabugi/instaclone
c1948fce71881a4e8004cfe117f6c48ba49faf53
[ "MIT" ]
null
null
null
virtual/bin/django-admin.py
iankabugi/instaclone
c1948fce71881a4e8004cfe117f6c48ba49faf53
[ "MIT" ]
null
null
null
#!/home/ian/Desktop/instaclone/virtual/bin/python from django.core import management if __name__ == "__main__": management.execute_from_command_line()
26
49
0.788462
79885bb4570c4b4de8e950ca2988860f4eb9440b
11,578
py
Python
modelseedpy/fbapkg/flexiblebiomasspkg.py
freiburgermsu/ModelSEEDpy
f368354f99ddfe0b9f5ac0c8b2de72a89ccb6016
[ "MIT" ]
5
2021-06-22T18:22:29.000Z
2022-03-02T02:17:49.000Z
modelseedpy/fbapkg/flexiblebiomasspkg.py
freiburgermsu/ModelSEEDpy
f368354f99ddfe0b9f5ac0c8b2de72a89ccb6016
[ "MIT" ]
8
2021-06-18T07:12:48.000Z
2022-03-30T15:35:06.000Z
modelseedpy/fbapkg/flexiblebiomasspkg.py
freiburgermsu/ModelSEEDpy
f368354f99ddfe0b9f5ac0c8b2de72a89ccb6016
[ "MIT" ]
7
2021-05-05T22:54:01.000Z
2022-03-11T10:18:43.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import import logging from optlang.symbolics import Zero, add from cobra import Model, Reaction, Metabolite from modelseedpy.fbapkg.basefbapkg import BaseFBAPkg from modelseedpy.core.fbahelper import FBAHelper classes = { "rna":{"cpd00052":-1,"cpd00038":-1,...
59.989637
296
0.564778
79885c4bf73c6c2612110671dbd81764308f3025
6,704
py
Python
common/des.py
garrickvan/blog
e7b9a729327f2a858b6380ed6b81eeb2980766ff
[ "Apache-2.0" ]
1
2020-05-25T23:02:44.000Z
2020-05-25T23:02:44.000Z
common/des.py
garrickvan/blog
e7b9a729327f2a858b6380ed6b81eeb2980766ff
[ "Apache-2.0" ]
null
null
null
common/des.py
garrickvan/blog
e7b9a729327f2a858b6380ed6b81eeb2980766ff
[ "Apache-2.0" ]
null
null
null
#coding=utf-8 from functools import partial class DES(object): """ DES加密算法 interface: input_key(s, base=10), encode(s), decode(s) """ __ip = [ 58,50,42,34,26,18,10,2,60,52,44,36,28,20,12,4, 62,54,46,38,30,22,14,6,64,56,48,40,32,24,16,8, 57,49,41,33,25,17, 9,1,59,51,43,35,27,...
35.284211
91
0.520286
79885c8bbd34701020746469486aaa3e94c20700
1,084
py
Python
05_face_verification/evaluation.py
yeodongbin/2020AIChallengeCode
776c686b65a67bc0d71eed1118eed6cf45ea17c6
[ "MIT" ]
null
null
null
05_face_verification/evaluation.py
yeodongbin/2020AIChallengeCode
776c686b65a67bc0d71eed1118eed6cf45ea17c6
[ "MIT" ]
null
null
null
05_face_verification/evaluation.py
yeodongbin/2020AIChallengeCode
776c686b65a67bc0d71eed1118eed6cf45ea17c6
[ "MIT" ]
null
null
null
import argparse import numpy as np import sklearn.metrics def evaluate(prediction_labels, gt_labels): f1 = sklearn.metrics.f1_score(gt_labels,prediction_labels, pos_label='0') return f1 def read_prediction_pt(file_name): with open(file_name) as f: lines = f.readlines() pt = [list(l.replace("\...
27.794872
77
0.706642
79885daf98163c4785486cb74bae91e6a2898270
11,554
py
Python
vidgear/tests/writer_tests/test_compression_mode.py
enarche-ahn/vidgear
6900fd9f607b8216f9328d1d8877c2c9c1b470b5
[ "Apache-2.0" ]
null
null
null
vidgear/tests/writer_tests/test_compression_mode.py
enarche-ahn/vidgear
6900fd9f607b8216f9328d1d8877c2c9c1b470b5
[ "Apache-2.0" ]
null
null
null
vidgear/tests/writer_tests/test_compression_mode.py
enarche-ahn/vidgear
6900fd9f607b8216f9328d1d8877c2c9c1b470b5
[ "Apache-2.0" ]
null
null
null
""" =============================================== vidgear library source-code is deployed under the Apache 2.0 License: Copyright (c) 2019 Abhishek Thakur(@abhiTronix) <abhi.una12@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with th...
31.05914
107
0.565605
79885de73e0d2d212ed362383adce02b5c61d6b7
492
py
Python
tests/test_data/tilesets/image_background_color/expected.py
Beefy-Swain/pytiled_parser
ba959ded16749136563fe6aafbdcdf2129c04eb0
[ "MIT" ]
13
2019-05-01T01:22:08.000Z
2020-11-12T05:37:59.000Z
tests/test_data/tilesets/image_background_color/expected.py
pythonarcade/pytiled_parser
2308428a5e87ae8de8946c62961ceb6cba9162ec
[ "MIT" ]
30
2019-05-27T20:07:08.000Z
2021-06-12T20:52:31.000Z
tests/test_data/tilesets/image_background_color/expected.py
pythonarcade/pytiled_parser
2308428a5e87ae8de8946c62961ceb6cba9162ec
[ "MIT" ]
15
2019-05-02T17:57:42.000Z
2021-04-12T01:56:26.000Z
from pathlib import Path from pytiled_parser import tileset from pytiled_parser.common_types import Color EXPECTED = tileset.Tileset( columns=8, image=Path("../../images/tmw_desert_spacing.png"), image_height=199, image_width=265, firstgid=1, margin=1, spacing=1, name="tile_set_image",...
21.391304
54
0.676829
79885debc655a4d2531913903a3be5cb8542b21f
7,092
py
Python
mush/tests/test_dependencies.py
cjw296/mush
909d6bf7575ac2b778653b8eedc768f9962f0a56
[ "MIT" ]
null
null
null
mush/tests/test_dependencies.py
cjw296/mush
909d6bf7575ac2b778653b8eedc768f9962f0a56
[ "MIT" ]
null
null
null
mush/tests/test_dependencies.py
cjw296/mush
909d6bf7575ac2b778653b8eedc768f9962f0a56
[ "MIT" ]
null
null
null
from unittest import TestCase from mock import Mock, call from testfixtures import ShouldRaise, compare from mush import Runner, requires, first, last, attr, item, after class RunnerTests(TestCase): def test_simple_chain(self): m = Mock() class T1(object): pass class T2(object): ...
24.040678
65
0.433446
79885e4f616c900d78328f0b6c7f1955c49a238c
9,340
py
Python
openmdao.lib/src/openmdao/lib/drivers/test/test_opt_genetic.py
Kenneth-T-Moore/OpenMDAO-Framework
76e0ebbd6f424a03b547ff7b6039dea73d8d44dc
[ "Apache-2.0" ]
3
2015-06-02T00:36:28.000Z
2018-11-03T00:35:21.000Z
openmdao.lib/src/openmdao/lib/drivers/test/test_opt_genetic.py
JustinSGray/OpenMDAO-Framework
7ebd7fda0b10fbe8a86ae938dc4f135396dd9759
[ "Apache-2.0" ]
null
null
null
openmdao.lib/src/openmdao/lib/drivers/test/test_opt_genetic.py
JustinSGray/OpenMDAO-Framework
7ebd7fda0b10fbe8a86ae938dc4f135396dd9759
[ "Apache-2.0" ]
null
null
null
""" Test the genetic optimizer driver """ import logging import pkg_resources import sys import unittest import random from openmdao.lib.datatypes.api import Float, Array, Enum, Int, Str from pyevolve import Selectors from openmdao.main.api import Assembly, Component, set_as_top from openmdao.lib.drivers.genetic im...
33.84058
114
0.599572
79885f26a50f3c3b11f73452e5dcd28670f601c8
1,323
py
Python
mmdet/core/core/bbox/geometry.py
qgh1223/SLRDet
f63335e9626067b462ad548c98f986e0d33addf9
[ "Apache-2.0" ]
27
2019-11-20T07:34:15.000Z
2022-03-04T01:02:33.000Z
mmdet/core/core/bbox/geometry.py
qgh1223/SLRDet
f63335e9626067b462ad548c98f986e0d33addf9
[ "Apache-2.0" ]
5
2019-12-03T13:16:02.000Z
2020-01-16T08:59:53.000Z
mmdet/core/core/bbox/geometry.py
LUCKMOONLIGHT/SLRDet
f63335e9626067b462ad548c98f986e0d33addf9
[ "Apache-2.0" ]
5
2019-12-03T12:21:36.000Z
2021-12-17T12:37:08.000Z
import torch # from mmdet.ops.nms.rotated_overlap import get_iou_matrix from mmdet.ops.rotated.rotate_nms import rotate_iou as get_iou_matrix def bbox_overlaps(bboxes1, bboxes2, mode='iou', is_aligned=False): """Calculate overlap between two set of bboxes. If ``is_aligned`` is ``False``, then calculate t...
33.923077
80
0.624339
79885f9713f3c171cccb01dfb3d8e465370020e8
385
py
Python
luna/asgi.py
avrilmaomao/lunakeeper
95c55007e703edea0bc39455b4bf0ff60d4914d8
[ "MIT" ]
1
2021-09-01T01:29:20.000Z
2021-09-01T01:29:20.000Z
luna/asgi.py
avrilmaomao/lunakeeper
95c55007e703edea0bc39455b4bf0ff60d4914d8
[ "MIT" ]
1
2021-09-01T03:27:13.000Z
2021-09-01T03:27:13.000Z
luna/asgi.py
avrilmaomao/lunakeeper
95c55007e703edea0bc39455b4bf0ff60d4914d8
[ "MIT" ]
null
null
null
""" ASGI config for luna project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS...
22.647059
78
0.781818
79885fc2b900544e0df68bb7212feeda80547552
20,335
py
Python
chiadoge/wallet/wallet.py
Jsewill/chiadogecoin
55511228301a0b4d00c8f4da270be8b434777470
[ "Apache-2.0" ]
null
null
null
chiadoge/wallet/wallet.py
Jsewill/chiadogecoin
55511228301a0b4d00c8f4da270be8b434777470
[ "Apache-2.0" ]
null
null
null
chiadoge/wallet/wallet.py
Jsewill/chiadogecoin
55511228301a0b4d00c8f4da270be8b434777470
[ "Apache-2.0" ]
null
null
null
import logging import time from typing import Any, Dict, List, Optional, Set from blspy import G1Element from chiadoge.consensus.cost_calculator import calculate_cost_of_program, NPCResult from chiadoge.full_node.bundle_tools import simple_solution_generator from chiadoge.full_node.mempool_check_conditions import get...
42.720588
117
0.662749
7988601892ccd4b8138f7f2cc2b2c1003dd009a7
3,047
bzl
Python
config/custom_rules.bzl
pondok-programmer/swift-algorithm-club
3a8d419b614bbe2ae1492dfb234dd656cddd58ce
[ "MIT" ]
null
null
null
config/custom_rules.bzl
pondok-programmer/swift-algorithm-club
3a8d419b614bbe2ae1492dfb234dd656cddd58ce
[ "MIT" ]
null
null
null
config/custom_rules.bzl
pondok-programmer/swift-algorithm-club
3a8d419b614bbe2ae1492dfb234dd656cddd58ce
[ "MIT" ]
null
null
null
load( "@build_bazel_rules_apple//apple:ios.bzl", "ios_application", "ios_unit_test", ) load( "@build_bazel_rules_apple//apple:apple.bzl", "apple_dynamic_framework_import", "apple_static_framework_import", ) load( "@build_bazel_rules_swift//swift:swift.bzl", "swift_library", ) load( ...
22.240876
106
0.571053
798860dc1deba43066f1c29dcbe132eca11accef
1,441
py
Python
wagtailsharing/tests/shareable_routable_testapp/migrations/0001_initial.py
spapas/wagtail-sharing
2576dd7303328cf004d609b3b774dee43a864ead
[ "CC0-1.0" ]
43
2017-01-10T17:26:02.000Z
2022-03-23T08:09:50.000Z
wagtailsharing/tests/shareable_routable_testapp/migrations/0001_initial.py
spapas/wagtail-sharing
2576dd7303328cf004d609b3b774dee43a864ead
[ "CC0-1.0" ]
25
2017-01-13T20:27:56.000Z
2022-03-10T15:55:51.000Z
wagtailsharing/tests/shareable_routable_testapp/migrations/0001_initial.py
spapas/wagtail-sharing
2576dd7303328cf004d609b3b774dee43a864ead
[ "CC0-1.0" ]
12
2017-01-31T20:47:50.000Z
2021-11-03T09:38:06.000Z
# Generated by Django 2.2.17 on 2021-02-22 12:17 from django.db import migrations, models import django.db.models.deletion import wagtail.contrib.routable_page.models import wagtailsharing.models class Migration(migrations.Migration): initial = True dependencies = [ ('wagtailcore', '0041_group_coll...
35.146341
191
0.619709
798861907bbe6b15f9d122c889f4c9b49c600813
7,872
py
Python
SwedishSources.py
dis-maja/gr-SwedishSources
da647102873862b3c3215adb56bb14b9b57f76cc
[ "BSD-3-Clause" ]
null
null
null
SwedishSources.py
dis-maja/gr-SwedishSources
da647102873862b3c3215adb56bb14b9b57f76cc
[ "BSD-3-Clause" ]
null
null
null
SwedishSources.py
dis-maja/gr-SwedishSources
da647102873862b3c3215adb56bb14b9b57f76cc
[ "BSD-3-Clause" ]
null
null
null
# Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2018 Mats O Jansson # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your optio...
32.937238
92
0.567073
798861ada0b7d868ae77152754ae09648496a336
6,325
py
Python
pirates/piratesbase/UniqueIdManager.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/piratesbase/UniqueIdManager.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/piratesbase/UniqueIdManager.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.piratesbase.UniqueIdManager from direct.task import Task class UniqueIdManager: __module__ = __name__ def __init__(sel...
35.9375
125
0.572016
798862054629a1dec249e77076c1cdcd247a718d
2,510
py
Python
TinyAutoML/builders.py
thomktz/TinyAutoML
74d9d806ac31795dbf1c4fd60755b0bf9a7c4124
[ "MIT" ]
null
null
null
TinyAutoML/builders.py
thomktz/TinyAutoML
74d9d806ac31795dbf1c4fd60755b0bf9a7c4124
[ "MIT" ]
null
null
null
TinyAutoML/builders.py
thomktz/TinyAutoML
74d9d806ac31795dbf1c4fd60755b0bf9a7c4124
[ "MIT" ]
null
null
null
from typing import Union import numpy as np import pandas as pd from sklearn.base import BaseEstimator from sklearn.compose import ColumnTransformer from sklearn.pipeline import Pipeline from sklearn.preprocessing import ( FunctionTransformer, MinMaxScaler, OneHotEncoder, StandardScaler, ) from .Prepr...
30.240964
89
0.630677
798862f4dba0483b7c9cfe23b0ea272e130db90d
14,245
py
Python
Providers/nxOMSAutomationWorker/automationworker/worker/hybridworker.py
assing/PowerShell-DSC-for-Linux-1
2747634e5e82fbbfcc87fff5e2c1cb0b91187d47
[ "MIT" ]
1
2020-05-23T11:56:52.000Z
2020-05-23T11:56:52.000Z
Providers/nxOMSAutomationWorker/automationworker/worker/hybridworker.py
assing/PowerShell-DSC-for-Linux-1
2747634e5e82fbbfcc87fff5e2c1cb0b91187d47
[ "MIT" ]
null
null
null
Providers/nxOMSAutomationWorker/automationworker/worker/hybridworker.py
assing/PowerShell-DSC-for-Linux-1
2747634e5e82fbbfcc87fff5e2c1cb0b91187d47
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # # Copyright (C) Microsoft Corporation, All rights reserved. import ConfigParser import os import platform import shutil import subprocess import sys import threading import time import traceback # import worker module after linuxutil.daemonize() call sandboxes_root_folder_name = "sandboxes" ...
41.774194
119
0.660091