hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
1a08401fb30f5417d31f50f1d14aadf818b0ffd5
1,056
py
Python
arsenyinfo/src/utils.py
cortwave/camera-model-identification
b2cbac93308bd6e1bc9d38391f5e97f48da99263
[ "BSD-2-Clause" ]
6
2018-02-09T11:40:29.000Z
2021-06-14T06:08:50.000Z
arsenyinfo/src/utils.py
cortwave/camera-model-identification
b2cbac93308bd6e1bc9d38391f5e97f48da99263
[ "BSD-2-Clause" ]
null
null
null
arsenyinfo/src/utils.py
cortwave/camera-model-identification
b2cbac93308bd6e1bc9d38391f5e97f48da99263
[ "BSD-2-Clause" ]
7
2018-02-09T11:41:11.000Z
2021-06-14T06:08:52.000Z
import logging import subprocess logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(name)s: %(message)s (%(asctime)s; %(filename)s:%(lineno)d)', datefmt="%Y-%m-%d %H:%M:%S", ) logger = logging.getLogger(__name__) def get_img_attributes(fname): # ToDo: this sh...
29.333333
105
0.535038
0
0
0
0
0
0
0
0
273
0.258523
1a097db7feea5ecc6f10469e09b8bc2bd7a26dae
1,292
py
Python
4.logRegression/plot2D.py
zhaolongkzz/Machine-Learning
8ec62a4d469db125fd45534dc0217af4cbbf603d
[ "MIT" ]
null
null
null
4.logRegression/plot2D.py
zhaolongkzz/Machine-Learning
8ec62a4d469db125fd45534dc0217af4cbbf603d
[ "MIT" ]
null
null
null
4.logRegression/plot2D.py
zhaolongkzz/Machine-Learning
8ec62a4d469db125fd45534dc0217af4cbbf603d
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # !/usr/bin/python3.6 from numpy import * import matplotlib import matplotlib.pyplot as plt from matplotlib.patches import Rectangle import logRegress, regIteration dataMat,labelMat=logRegress.loadDataSet() dataArr = array(dataMat) weights = regIteration.stocGradAscent0(dataArr,label...
30.761905
107
0.643189
0
0
0
0
0
0
0
0
338
0.26161
1a0a2f514672571fd2b6146c24727b30c87165eb
2,596
py
Python
talos/distribute/distribute_run.py
abhijithneilabraham/talos
4f60dbbbedede240a086a7a6cd1e7a2b17db87dd
[ "MIT" ]
null
null
null
talos/distribute/distribute_run.py
abhijithneilabraham/talos
4f60dbbbedede240a086a7a6cd1e7a2b17db87dd
[ "MIT" ]
null
null
null
talos/distribute/distribute_run.py
abhijithneilabraham/talos
4f60dbbbedede240a086a7a6cd1e7a2b17db87dd
[ "MIT" ]
null
null
null
import json import threading from .distribute_params import run_scan_with_split_params from .distribute_utils import return_current_machine_id, ssh_connect, ssh_file_transfer, ssh_run from .distribute_database import update_db def run_central_machine(self, n_splits, run_central_node): ''' Parameters ----...
24.961538
96
0.582049
0
0
0
0
0
0
0
0
633
0.243837
1a0b60342365dfb5d7137cd8463e182aeaeff08e
8,063
py
Python
src/oci/database_management/models/sql_tuning_advisor_task_summary_finding_counts.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
3
2020-09-10T22:09:45.000Z
2021-12-24T17:00:07.000Z
src/oci/database_management/models/sql_tuning_advisor_task_summary_finding_counts.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/database_management/models/sql_tuning_advisor_task_summary_finding_counts.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2021, 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...
35.676991
245
0.693538
7,523
0.933027
0
0
7,553
0.936748
0
0
5,692
0.705941
1a0bb86d8ca4b904367d6aab9aa4d773f2edd6c4
2,220
py
Python
main.py
Araime/wine
3ab07d38b4321475ec6daf50e5d52c474fcd14cc
[ "MIT" ]
null
null
null
main.py
Araime/wine
3ab07d38b4321475ec6daf50e5d52c474fcd14cc
[ "MIT" ]
null
null
null
main.py
Araime/wine
3ab07d38b4321475ec6daf50e5d52c474fcd14cc
[ "MIT" ]
null
null
null
import datetime import pandas import collections import argparse from collections import OrderedDict from jinja2 import Environment, FileSystemLoader, select_autoescape from http.server import HTTPServer, SimpleHTTPRequestHandler def get_age(foundation_year): today = datetime.datetime.now() current_year = tod...
29.6
95
0.660811
0
0
0
0
0
0
0
0
446
0.188743
1a0c55e81de2d1138689ce8a17aa9a9f32891ab7
2,703
py
Python
src/genie/libs/parser/junos/tests/ShowOspfStatistics/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/junos/tests/ShowOspfStatistics/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/junos/tests/ShowOspfStatistics/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "ospf-statistics-information": { "ospf-statistics": { "dbds-retransmit": "203656", "dbds-retransmit-5seconds": "0", "flood-queue-depth": "0", "lsas-acknowledged": "225554974", "lsas-acknowledged-5seconds"...
41.584615
57
0.371439
0
0
0
0
0
0
0
0
1,254
0.463929
1a0cfe1974d3fead0e36d406bfbe33d55d632379
6,981
py
Python
marc_5gempower/run_5gempower.py
arled-papa/marc
cb94636d786e215195e914b37131277f835bcf52
[ "Apache-2.0" ]
1
2021-11-30T00:07:28.000Z
2021-11-30T00:07:28.000Z
marc_5gempower/run_5gempower.py
arled-papa/marc
cb94636d786e215195e914b37131277f835bcf52
[ "Apache-2.0" ]
null
null
null
marc_5gempower/run_5gempower.py
arled-papa/marc
cb94636d786e215195e914b37131277f835bcf52
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2021 Arled Papa # Author: Arled Papa <[email protected]> # # 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...
56.756098
116
0.627847
0
0
0
0
0
0
1,344
0.192523
4,559
0.653058
1a0dcd546c9fb9cfb2c22a03b6cf3ce13d629047
3,531
py
Python
jina/peapods/peas/gateway/grpc/__init__.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
1
2020-12-23T08:58:49.000Z
2020-12-23T08:58:49.000Z
jina/peapods/peas/gateway/grpc/__init__.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
jina/peapods/peas/gateway/grpc/__init__.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
import asyncio import argparse import os from multiprocessing.synchronize import Event from typing import Union, Dict import grpc import zmq.asyncio from .async_call import AsyncPrefetchCall from ... import BasePea from ....zmq import send_message_async, recv_message_async, _init_socket from .....enums import SocketT...
38.802198
112
0.652223
3,109
0.880487
0
0
0
0
2,152
0.609459
937
0.265364
1a0ddf6aed80f212b94b5faabe9879bd5b5f6957
895
py
Python
Spell Compendium/scr/Spell1059 - Improvisation.py
Sagenlicht/ToEE_Mods
a4b07f300df6067f834e09fcbc4c788f1f4e417b
[ "MIT" ]
1
2021-04-26T08:03:56.000Z
2021-04-26T08:03:56.000Z
Spell Compendium/scr/Spell1059 - Improvisation.py
Sagenlicht/ToEE_Mods
a4b07f300df6067f834e09fcbc4c788f1f4e417b
[ "MIT" ]
2
2021-06-11T05:55:01.000Z
2021-08-03T23:41:02.000Z
Spell Compendium/scr/Spell1059 - Improvisation.py
Sagenlicht/ToEE_Mods
a4b07f300df6067f834e09fcbc4c788f1f4e417b
[ "MIT" ]
1
2021-05-17T15:37:58.000Z
2021-05-17T15:37:58.000Z
from toee import * def OnBeginSpellCast(spell): print "Improvisation OnBeginSpellCast" print "spell.target_list=", spell.target_list print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level def OnSpellEffect(spell): print "Improvisation OnSpellEffect" spell.duration = spell.cast...
35.8
121
0.755307
0
0
0
0
0
0
0
0
286
0.319553
1a0ee9a3148043007875afdc8ae0b227516a59d4
131,586
py
Python
pybind/slxos/v17r_2_00/mpls_state/lsp/secondary_path/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/mpls_state/lsp/secondary_path/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/mpls_state/lsp/secondary_path/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
75.973441
1,982
0.766221
131,145
0.996649
0
0
0
0
0
0
71,803
0.545674
1a11560f409eb43a0ed24b3b54e89719dbd21b76
171
py
Python
Theseus/Tests/__init__.py
amias-iohk/theseus
88d9294721e3bbbb756b983f55df6d669e632da4
[ "MIT" ]
4
2018-08-08T07:11:29.000Z
2018-11-08T02:43:11.000Z
Theseus/Tests/__init__.py
amias-iohk/theseus
88d9294721e3bbbb756b983f55df6d669e632da4
[ "MIT" ]
null
null
null
Theseus/Tests/__init__.py
amias-iohk/theseus
88d9294721e3bbbb756b983f55df6d669e632da4
[ "MIT" ]
3
2018-10-18T13:42:24.000Z
2021-01-20T15:21:25.000Z
__author__ = 'Amias Channer <[email protected]> for IOHK' __doc__ = 'Daedalus Testing functions' from .Cardano import * from .Daedalus import * from .Common import *
24.428571
61
0.754386
0
0
0
0
0
0
0
0
76
0.444444
1a118f7d8b03da075a37997cfb06c80ceb08fc58
907
py
Python
mobula/operators/Multiply.py
wkcn/mobula
4eec938d6477776f5f2d68bcf41de83fb8da5195
[ "MIT" ]
47
2017-07-15T02:13:18.000Z
2022-01-01T09:37:59.000Z
mobula/operators/Multiply.py
wkcn/mobula
4eec938d6477776f5f2d68bcf41de83fb8da5195
[ "MIT" ]
3
2018-06-22T13:55:12.000Z
2020-01-29T01:41:13.000Z
mobula/operators/Multiply.py
wkcn/mobula
4eec938d6477776f5f2d68bcf41de83fb8da5195
[ "MIT" ]
8
2017-09-03T12:42:54.000Z
2020-09-27T03:38:59.000Z
from .Layer import * class Multiply(Layer): def __init__(self, models, *args, **kwargs): self.check_inputs(models, 2) Layer.__init__(self, models, *args, **kwargs) def reshape(self): self.Y = np.zeros(self.X[0].shape) def forward(self): self.Y = np.multiply(self.X[0], self.X...
32.392857
84
0.624035
814
0.897464
0
0
0
0
0
0
10
0.011025
1a1196d66c0c37b1c2d9a2fa6bdb80334a47691b
581
py
Python
project/settings_deploy.py
djstein/vue-django-webpack
d072e116d45800064b3972decbc6ec493801ea5b
[ "MIT" ]
43
2017-02-24T17:59:27.000Z
2020-02-04T16:49:38.000Z
project/settings_deploy.py
djstein/vue-django-webpack
d072e116d45800064b3972decbc6ec493801ea5b
[ "MIT" ]
6
2017-01-10T01:49:03.000Z
2017-10-03T06:12:59.000Z
project/settings_deploy.py
djstein/vue-django-webpack
d072e116d45800064b3972decbc6ec493801ea5b
[ "MIT" ]
13
2017-05-18T20:00:24.000Z
2021-01-22T06:32:45.000Z
from project.settings import INSTALLED_APPS, ALLOWED_HOSTS, BASE_DIR import os INSTALLED_APPS.append( 'webpack_loader',) INSTALLED_APPS.append( 'app',) ALLOWED_HOSTS.append('*',) # STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = [ # os.path.join(BASE_DIR, 'static',) os.path.join(BASE_DIR, ...
22.346154
83
0.652324
0
0
0
0
0
0
0
0
241
0.414802
1a124f44649021a9482a062fee582fc8ecf4209e
268
py
Python
dockerfiles/igv/igv.py
leipzig/gatk-sv
96566cbbaf0f8f9c8452517b38eea1e5dd6ed33a
[ "BSD-3-Clause" ]
76
2020-06-18T21:31:43.000Z
2022-03-02T18:42:58.000Z
dockerfiles/igv/igv.py
iamh2o/gatk-sv
bf3704bd1d705339577530e267cd4d1b2f77a17f
[ "BSD-3-Clause" ]
195
2020-06-22T15:12:28.000Z
2022-03-28T18:06:46.000Z
dockerfiles/igv/igv.py
iamh2o/gatk-sv
bf3704bd1d705339577530e267cd4d1b2f77a17f
[ "BSD-3-Clause" ]
39
2020-07-03T06:47:18.000Z
2022-03-03T03:47:25.000Z
import sys [_, varfile] = sys.argv plotdir = "plots" igvfile = "igv.txt" igvsh = "igv.sh" with open(varfile, 'r') as f: for line in f: dat = line.split('\t') chr = dat[0] start = dat[1] end = dat[2] data = dat[3].split(',')
20.615385
32
0.511194
0
0
0
0
0
0
0
0
34
0.126866
1a12b43b837e725bb85bfe8e14b6c166c2be8e99
691
py
Python
model/sample/adg.py
sdy99/PowerAI
ef40bacddbad72322e3e423417ae13d478d56a6d
[ "MIT" ]
7
2020-04-11T03:28:50.000Z
2021-03-29T14:53:36.000Z
model/sample/adg.py
sdy99/PowerAI
ef40bacddbad72322e3e423417ae13d478d56a6d
[ "MIT" ]
null
null
null
model/sample/adg.py
sdy99/PowerAI
ef40bacddbad72322e3e423417ae13d478d56a6d
[ "MIT" ]
5
2020-04-11T03:28:52.000Z
2021-11-27T05:23:12.000Z
# coding: gbk """ @author: sdy @email: [email protected] Abstract distribution and generation class """ class ADG(object): def __init__(self, work_path, fmt): self.work_path = work_path self.fmt = fmt self.features = None self.mode = 'all' def distribution_assess(self): ...
20.323529
49
0.662808
580
0.839363
0
0
0
0
0
0
111
0.160637
1a135f93a11c5cc15bf96c7f89491d4b0c295264
903
py
Python
src/validatesigner.py
harryttd/remote-signer
a1af4e58b1d6628b09166368362d05d6e876e466
[ "MIT" ]
null
null
null
src/validatesigner.py
harryttd/remote-signer
a1af4e58b1d6628b09166368362d05d6e876e466
[ "MIT" ]
null
null
null
src/validatesigner.py
harryttd/remote-signer
a1af4e58b1d6628b09166368362d05d6e876e466
[ "MIT" ]
null
null
null
# # The ValidateSigner applies a ChainRatchet to the signature request # and then passes it down to a signer. In order to do this, it must # parse the request and to obtain the level and round to pass to the # ratchet code. import logging from src.sigreq import SignatureReq class ValidateSigner: def __init__(s...
30.1
68
0.663344
622
0.688815
0
0
0
0
0
0
349
0.386489
1a146284d92debe9f0fcbd843d3eb7e8ae94afbb
25,766
py
Python
CODE/web_server/server/audio_processing/DataLoader.py
andrewbartels1/Marine-Mammal-Acoustics
9f833d97ac26ecd51b4c4e276a815ab9d2b67bb6
[ "MIT" ]
1
2022-03-29T12:24:11.000Z
2022-03-29T12:24:11.000Z
CODE/web_server/server/audio_processing/DataLoader.py
andrewbartels1/Marine-Mammal-Acoustics
9f833d97ac26ecd51b4c4e276a815ab9d2b67bb6
[ "MIT" ]
null
null
null
CODE/web_server/server/audio_processing/DataLoader.py
andrewbartels1/Marine-Mammal-Acoustics
9f833d97ac26ecd51b4c4e276a815ab9d2b67bb6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Dec 1 17:48:01 2021 @author: bartelsaa """ # boiler plate stuff import re, os, io from glob import glob import pandas as pd import sys import pytz from models import Sensor from datetime import datetime, timezone import pathlib from data_schema import ...
46.175627
168
0.557595
21,204
0.822945
0
0
0
0
0
0
5,893
0.228712
1a150533d8cad7a2aba7a53cd1cb833f76eb2499
3,078
py
Python
tests/lib/test_otping.py
reputage/py-didery
2d54a9e39fb01a81d4d6f7814ca7a611a7418a47
[ "Apache-2.0" ]
null
null
null
tests/lib/test_otping.py
reputage/py-didery
2d54a9e39fb01a81d4d6f7814ca7a611a7418a47
[ "Apache-2.0" ]
15
2018-05-24T23:30:21.000Z
2018-05-25T17:39:51.000Z
tests/lib/test_otping.py
reputage/py-didery
2d54a9e39fb01a81d4d6f7814ca7a611a7418a47
[ "Apache-2.0" ]
null
null
null
import pytest try: import simplejson as json except ImportError: import json from ioflo.aio.http import Valet # import didery.routing from diderypy.lib import generating as gen from diderypy.lib import otping as otp vk, sk, did = gen.keyGen() otpData = { "id": did, "blob": "AeYbsHot0pmdWAcgTo5sD8iA...
24.624
118
0.692982
0
0
0
0
0
0
0
0
367
0.119233
1a16d3dc97a2e27b58e28cd919840f007fc7b43f
3,722
py
Python
src/DCGMM/measuring/Logging.py
anon-scientist/dcgmm
1d2d96d1d9811c387ee11d462ff0a3819a66e137
[ "Apache-2.0", "MIT" ]
null
null
null
src/DCGMM/measuring/Logging.py
anon-scientist/dcgmm
1d2d96d1d9811c387ee11d462ff0a3819a66e137
[ "Apache-2.0", "MIT" ]
null
null
null
src/DCGMM/measuring/Logging.py
anon-scientist/dcgmm
1d2d96d1d9811c387ee11d462ff0a3819a66e137
[ "Apache-2.0", "MIT" ]
null
null
null
# 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, software # distributed u...
39.595745
166
0.610962
2,976
0.79957
0
0
0
0
0
0
1,492
0.40086
1a16e50ba3f5373ee622624d05fe6164d2927423
1,863
py
Python
demos/demo_pyqtgraph_threadsafe_static.py
Dennis-van-Gils/python-dvg-pyqtgraph-threadsafe
c766cef85c60195ecfdeacc6b62f16fd1b90dcf0
[ "MIT" ]
null
null
null
demos/demo_pyqtgraph_threadsafe_static.py
Dennis-van-Gils/python-dvg-pyqtgraph-threadsafe
c766cef85c60195ecfdeacc6b62f16fd1b90dcf0
[ "MIT" ]
1
2020-10-24T05:18:48.000Z
2020-10-24T11:37:09.000Z
demos/demo_pyqtgraph_threadsafe_static.py
Dennis-van-Gils/python-dvg-pyqtgraph-threadsafe
c766cef85c60195ecfdeacc6b62f16fd1b90dcf0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import numpy as np from PyQt5 import QtWidgets as QtWid import pyqtgraph as pg from dvg_pyqtgraph_threadsafe import PlotCurve USE_OPENGL = True if USE_OPENGL: print("OpenGL acceleration: Enabled") pg.setConfigOptions(useOpenGL=True) pg.setConfigO...
27.397059
80
0.500805
980
0.526033
0
0
0
0
0
0
559
0.300054
1a17b1be2074f64913108dde8915d54ffd44bd53
1,889
py
Python
froide/team/services.py
manonthemat/froide
698c49935eaf2e922f3c9f6a46af0fd545ccbbbb
[ "MIT" ]
null
null
null
froide/team/services.py
manonthemat/froide
698c49935eaf2e922f3c9f6a46af0fd545ccbbbb
[ "MIT" ]
null
null
null
froide/team/services.py
manonthemat/froide
698c49935eaf2e922f3c9f6a46af0fd545ccbbbb
[ "MIT" ]
null
null
null
import hashlib import hmac from django.conf import settings from django.template.loader import render_to_string from django.utils.crypto import constant_time_compare from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from froide.helper.email_sending import send_mail from .models ...
29.061538
65
0.599788
1,360
0.719958
0
0
0
0
0
0
187
0.098994
1a183c6499418e4965e990ea2623cf57e6ec50c1
340
py
Python
turtle/snowflake.py
yunzhang599/Python3_Package_Examples
3e479925f3f6818bf35e46123f720839acf075eb
[ "MIT" ]
1
2019-11-16T05:06:01.000Z
2019-11-16T05:06:01.000Z
turtle/snowflake.py
yunzhang599/Python3_Package_Examples
3e479925f3f6818bf35e46123f720839acf075eb
[ "MIT" ]
null
null
null
turtle/snowflake.py
yunzhang599/Python3_Package_Examples
3e479925f3f6818bf35e46123f720839acf075eb
[ "MIT" ]
null
null
null
from turtle import forward, left, right, width, color, clearscreen clearscreen() color("lightblue") width(3) for i in range(6): forward(50) left(60) forward(25) left(180) forward(25) left(60) forward(25) left(180) forward(25) right(120) forward(25) left(180) forwar...
14.782609
66
0.608824
0
0
0
0
0
0
0
0
11
0.032353
1a1935f678ac36846905eb87be171d453fa2af35
1,185
py
Python
pyechonest/config.py
gleitz/automaticdj
3880c175bc09c17ed9f71ba9902e348a00bb64ef
[ "MIT" ]
14
2015-06-19T22:00:41.000Z
2021-03-14T07:41:38.000Z
pyechonest/config.py
gleitz/automaticdj
3880c175bc09c17ed9f71ba9902e348a00bb64ef
[ "MIT" ]
null
null
null
pyechonest/config.py
gleitz/automaticdj
3880c175bc09c17ed9f71ba9902e348a00bb64ef
[ "MIT" ]
2
2015-07-19T10:51:23.000Z
2019-04-10T14:46:23.000Z
#!/usr/bin/env python # encoding: utf-8 """ Copyright (c) 2010 The Echo Nest. All rights reserved. Created by Tyler Williams on 2010-04-25. Global configuration variables for accessing the Echo Nest web API. """ __version__ = "4.2.8" import os if('ECHO_NEST_API_KEY' in os.environ): ECHO_NEST_API_KEY = os.envir...
19.42623
151
0.729958
0
0
0
0
0
0
0
0
878
0.740928
1a19acc97f7f0626e13396cbd8314c6fbb0fd66e
18,836
py
Python
norbert/__init__.py
AppleHolic/norbert
cceaa24bce625bcba3146198271a20e4c265f2c8
[ "MIT" ]
142
2019-03-19T18:36:28.000Z
2022-03-22T21:28:25.000Z
norbert/__init__.py
AppleHolic/norbert
cceaa24bce625bcba3146198271a20e4c265f2c8
[ "MIT" ]
15
2019-03-07T15:54:31.000Z
2022-03-04T15:13:21.000Z
norbert/__init__.py
AppleHolic/norbert
cceaa24bce625bcba3146198271a20e4c265f2c8
[ "MIT" ]
27
2018-10-28T14:13:34.000Z
2021-09-13T12:12:41.000Z
import numpy as np import itertools from .contrib import compress_filter, smooth, residual_model from .contrib import reduce_interferences def expectation_maximization(y, x, iterations=2, verbose=0, eps=None): r"""Expectation maximization algorithm, for refining source separation estimates. This algorith...
36.223077
79
0.646369
0
0
0
0
0
0
0
0
14,777
0.784508
1a1ab30134ffb46a2768f3d6e4b82bd7fcbd06d6
9,170
py
Python
postr/twitter_postr.py
dbgrigsby/Postr
c374648134123f857babb65aff161a4c3c470502
[ "MIT" ]
3
2018-10-09T17:02:05.000Z
2022-03-21T08:58:49.000Z
postr/twitter_postr.py
dbgrigsby/Postr
c374648134123f857babb65aff161a4c3c470502
[ "MIT" ]
11
2018-09-26T05:33:30.000Z
2019-04-06T04:06:51.000Z
postr/twitter_postr.py
dbgrigsby/Postr
c374648134123f857babb65aff161a4c3c470502
[ "MIT" ]
3
2018-12-20T18:35:25.000Z
2022-03-21T08:58:54.000Z
import csv import datetime import json import re import os import time from typing import List import matplotlib import matplotlib.pyplot as plt from tweepy import OAuthHandler from tweepy import Stream from tweepy.api import API from tweepy.streaming import StreamListener from tweepy.cursor import Cursor from textblo...
33.589744
108
0.619738
7,545
0.822792
0
0
536
0.058451
0
0
2,899
0.31614
1a1ae330b5d97b072b7de9905431059440f2b93a
2,149
py
Python
Contents/Libraries/Shared/subliminal_patch/providers/legendastv.py
Acidburn0zzz/Sub-Zero.bundle
eb3a0d52fde281773ba5109fad9801ede9c938ba
[ "MIT" ]
1
2018-02-01T18:00:59.000Z
2018-02-01T18:00:59.000Z
Contents/Libraries/Shared/subliminal_patch/providers/legendastv.py
Acidburn0zzz/Sub-Zero.bundle
eb3a0d52fde281773ba5109fad9801ede9c938ba
[ "MIT" ]
null
null
null
Contents/Libraries/Shared/subliminal_patch/providers/legendastv.py
Acidburn0zzz/Sub-Zero.bundle
eb3a0d52fde281773ba5109fad9801ede9c938ba
[ "MIT" ]
null
null
null
# coding=utf-8 import logging from subliminal.providers.legendastv import LegendasTVSubtitle as _LegendasTVSubtitle, \ LegendasTVProvider as _LegendasTVProvider, Episode, Movie, guess_matches, guessit, sanitize logger = logging.getLogger(__name__) class LegendasTVSubtitle(_LegendasTVSubtitle): def __init__(...
33.578125
109
0.635179
1,889
0.879013
0
0
0
0
0
0
169
0.078641
1a1b2daed4ebe5ea602e637a406c3b3e1a5fa4ac
339
py
Python
takeyourmeds/groups/groups_billing/plans.py
takeyourmeds/takeyourmeds-web
edf24188f26948902cfb69793b4d5aa3cf8b6dea
[ "MIT" ]
11
2015-06-01T16:31:42.000Z
2022-03-01T01:20:58.000Z
takeyourmeds/groups/groups_billing/plans.py
takeyourmeds/takeyourmeds-web
edf24188f26948902cfb69793b4d5aa3cf8b6dea
[ "MIT" ]
111
2015-07-20T13:23:16.000Z
2017-09-08T08:17:10.000Z
takeyourmeds/groups/groups_billing/plans.py
takeyourmeds/takeyourmeds-web
edf24188f26948902cfb69793b4d5aa3cf8b6dea
[ "MIT" ]
6
2015-07-15T08:08:12.000Z
2018-06-23T00:13:13.000Z
""" This file must be kept up-to-date with Stripe, especially the slugs: https://manage.stripe.com/plans """ PLANS = {} class Plan(object): def __init__(self, value, slug, display): self.value = value self.slug = slug self.display = display PLANS[slug] = self FREE = Plan(1, 'f...
18.833333
68
0.613569
176
0.519174
0
0
0
0
0
0
128
0.377581
1a1bc945602cc44132190cba60d0afbf196c8e4e
34,864
py
Python
footprint/socialnetwork/views.py
hairleng/Footprint
3c5ab2743584bcdf19161972f4a7e7581ba9d1ee
[ "MIT" ]
null
null
null
footprint/socialnetwork/views.py
hairleng/Footprint
3c5ab2743584bcdf19161972f4a7e7581ba9d1ee
[ "MIT" ]
null
null
null
footprint/socialnetwork/views.py
hairleng/Footprint
3c5ab2743584bcdf19161972f4a7e7581ba9d1ee
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 import json from django.http import HttpResponse, Http404 from django.urls import reverse from django.contrib.auth.decorators import login_required from django.utils import timezone # Create your views here. from socialnetwork.forms import * from soci...
40.776608
184
0.645336
149
0.004273
0
0
30,146
0.864476
0
0
8,810
0.252638
1a1cb891a28d6f1130bc984167bf2fda46be3fe3
24,095
py
Python
Application/datasources/datapod_backup/utils.py
GraphicalDot/datapod-backend-layer
ab38a5b0e969cd0d762e9d7720ab89174c333c37
[ "Apache-2.0" ]
null
null
null
Application/datasources/datapod_backup/utils.py
GraphicalDot/datapod-backend-layer
ab38a5b0e969cd0d762e9d7720ab89174c333c37
[ "Apache-2.0" ]
null
null
null
Application/datasources/datapod_backup/utils.py
GraphicalDot/datapod-backend-layer
ab38a5b0e969cd0d762e9d7720ab89174c333c37
[ "Apache-2.0" ]
null
null
null
from abc import ABC,abstractmethod import os import binascii import subprocess import time import datetime import platform import tempfile import requests import json import aiohttp from sanic import response from asyncinit import asyncinit from errors_module.errors import MnemonicRequiredError from errors_module.err...
40.838983
210
0.638431
22,214
0.921934
1,723
0.071509
8,358
0.346877
13,955
0.579166
10,325
0.428512
1a1fd264d38d2e67d8ce555d1064ae3d9aad16df
141
py
Python
abc/abc145/abc145b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc145/abc145b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc145/abc145b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
N = int(input()) S = input() if N % 2 == 1: print('No') exit() if S[:N // 2] == S[N // 2:]: print('Yes') else: print('No')
11.75
28
0.411348
0
0
0
0
0
0
0
0
13
0.092199
1a20018810aca71e231531dd6b4c27f07d98ddd0
289
py
Python
gadget/reboot.py
vaginessa/RaspberryPiZero_HID_MultiTool
c6227c7263cb1321a5655f938462392eb014a352
[ "Apache-2.0" ]
54
2017-01-06T21:43:40.000Z
2022-02-14T02:57:57.000Z
gadget/reboot.py
vaginessa/RaspberryPiZero_HID_MultiTool
c6227c7263cb1321a5655f938462392eb014a352
[ "Apache-2.0" ]
null
null
null
gadget/reboot.py
vaginessa/RaspberryPiZero_HID_MultiTool
c6227c7263cb1321a5655f938462392eb014a352
[ "Apache-2.0" ]
13
2017-01-31T23:35:21.000Z
2021-12-22T12:48:59.000Z
#!/usr/bin/python import RPi.GPIO as GPIO import os gpio_pin_number=21 GPIO.setmode(GPIO.BCM) GPIO.setup(gpio_pin_number, GPIO.IN, pull_up_down=GPIO.PUD_UP) try: GPIO.wait_for_edge(gpio_pin_number, GPIO.FALLING) os.system("sudo shutdown -h now") except: pass GPIO.cleanup()
18.0625
62
0.750865
0
0
0
0
0
0
0
0
39
0.134948
1a209ab2fb009b89d259657281d619b4962c46e2
64
py
Python
code/sample_1-2-16.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
1
2022-03-29T13:50:12.000Z
2022-03-29T13:50:12.000Z
code/sample_1-2-16.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
code/sample_1-2-16.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
rows = int(input()) x = [input() for i in range(rows)] print(x)
16
34
0.609375
0
0
0
0
0
0
0
0
0
0
1a20d5d763008a4d9582e33481f4795a17bbec47
1,056
py
Python
barcap/main.py
Barmaley13/CaptureBarcode
e19556dd515a1b86cf32b5bdca4dca398d1f0ef1
[ "MIT" ]
1
2021-04-17T18:04:19.000Z
2021-04-17T18:04:19.000Z
barcap/main.py
Barmaley13/CaptureBarcode
e19556dd515a1b86cf32b5bdca4dca398d1f0ef1
[ "MIT" ]
1
2021-07-08T09:48:07.000Z
2021-07-08T17:36:22.000Z
barcap/main.py
Barmaley13/CaptureBarcode
e19556dd515a1b86cf32b5bdca4dca398d1f0ef1
[ "MIT" ]
1
2019-09-27T12:37:25.000Z
2019-09-27T12:37:25.000Z
""" Run capture as a separate process """ import time from barcap.barcode import BarcodeCapture def main(): # Default camera index camera_index = 0 # Camera selection routine try: from .device_list import select_camera, camera_list # Get camera list dev_list = camera_list()...
22.956522
95
0.602273
0
0
0
0
0
0
0
0
401
0.379735
1a215082fa2f89d1a45dff26f70391daf14feaea
6,162
py
Python
gabriel_lego/lego_engine/config.py
molguin92/gabriel-lego-py3
2f8828326ca025997687a19d1af80bc1590a9290
[ "Apache-2.0" ]
null
null
null
gabriel_lego/lego_engine/config.py
molguin92/gabriel-lego-py3
2f8828326ca025997687a19d1af80bc1590a9290
[ "Apache-2.0" ]
1
2019-09-10T23:41:41.000Z
2019-09-11T20:21:11.000Z
gabriel_lego/lego_engine/config.py
molguin92/gabriel-lego-py3
2f8828326ca025997687a19d1af80bc1590a9290
[ "Apache-2.0" ]
1
2022-02-22T15:29:27.000Z
2022-02-22T15:29:27.000Z
#!/usr/bin/env python # # Cloudlet Infrastructure for Mobile Computing # - Task Assistance # # Author: Zhuo Chen <[email protected]> # # Copyright (C) 2011-2013 Carnegie Mellon University # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the...
33.857143
79
0.697988
0
0
0
0
0
0
0
0
3,030
0.491723
1a22da72753f4f1b92c14d244c71af9de316f1cd
5,670
py
Python
civis_jupyter_notebooks/platform_persistence.py
menglewis/civis-jupyter-notebook
71f9b3ae50d62280750a593e0125372f41ba90ab
[ "BSD-3-Clause" ]
null
null
null
civis_jupyter_notebooks/platform_persistence.py
menglewis/civis-jupyter-notebook
71f9b3ae50d62280750a593e0125372f41ba90ab
[ "BSD-3-Clause" ]
null
null
null
civis_jupyter_notebooks/platform_persistence.py
menglewis/civis-jupyter-notebook
71f9b3ae50d62280750a593e0125372f41ba90ab
[ "BSD-3-Clause" ]
null
null
null
""" This file contains utilities that bind the Jupyter notebook to our platform. It performs two functions: 1. On startup, pull the contents of the notebook from platform to the local disk 2. As a Jupyter post-save hook, push the contents of the notebook and a HTML preview of the same back to platform. 3. Cus...
36.580645
116
0.711817
160
0.028219
0
0
0
0
0
0
2,019
0.356085
1a241fc805a6084215d593c48583935b44833885
2,118
py
Python
dbt_cloud/command/job/run.py
jeremyyeo/dbt-cloud-cli
f1253bcc343c08232e18ea01ef4a74c2e62a9999
[ "Apache-2.0" ]
33
2021-12-09T11:17:58.000Z
2022-03-23T21:51:43.000Z
dbt_cloud/command/job/run.py
jeremyyeo/dbt-cloud-cli
f1253bcc343c08232e18ea01ef4a74c2e62a9999
[ "Apache-2.0" ]
20
2021-11-26T15:46:43.000Z
2022-03-25T15:49:20.000Z
dbt_cloud/command/job/run.py
jeremyyeo/dbt-cloud-cli
f1253bcc343c08232e18ea01ef4a74c2e62a9999
[ "Apache-2.0" ]
4
2022-01-17T19:18:34.000Z
2022-03-12T09:55:31.000Z
import os import requests from typing import Optional, List from pydantic import Field, validator from dbt_cloud.command.command import DbtCloudAccountCommand from dbt_cloud.field import JOB_ID_FIELD class DbtCloudJobRunCommand(DbtCloudAccountCommand): """Triggers a dbt Cloud job run and returns a status JSON res...
35.3
91
0.686497
1,915
0.904155
0
0
215
0.101511
0
0
708
0.334278
1a257d44848898125832b45b07d58d12e6e91f60
1,266
py
Python
modelzoo/migrations/0024_auto_20201014_1425.py
SuperElastix/ElastixModelZooWebsite
00d7b4aec8eb04c285d3771d53310079a3443fab
[ "Apache-2.0" ]
1
2021-11-15T07:30:24.000Z
2021-11-15T07:30:24.000Z
modelzoo/migrations/0024_auto_20201014_1425.py
SuperElastix/ElastixModelZooWebsite
00d7b4aec8eb04c285d3771d53310079a3443fab
[ "Apache-2.0" ]
null
null
null
modelzoo/migrations/0024_auto_20201014_1425.py
SuperElastix/ElastixModelZooWebsite
00d7b4aec8eb04c285d3771d53310079a3443fab
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.3 on 2020-10-14 12:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('modelzoo', '0023_model_con_mod_dims'), ] operations = [ migrations.RemoveField( model_name='model', name='author_ema...
26.93617
180
0.518167
1,173
0.92654
0
0
0
0
0
0
306
0.241706
1a270b137592d14be9f26784b9d3fa7001be71f2
5,982
py
Python
src/misc/MBExp.py
akshatha-k/Calibrated_MOPO
3b2e675003e9f6d31a0763be2ec784ceeae5099e
[ "MIT" ]
null
null
null
src/misc/MBExp.py
akshatha-k/Calibrated_MOPO
3b2e675003e9f6d31a0763be2ec784ceeae5099e
[ "MIT" ]
null
null
null
src/misc/MBExp.py
akshatha-k/Calibrated_MOPO
3b2e675003e9f6d31a0763be2ec784ceeae5099e
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function from __future__ import absolute_import import os from time import time, localtime, strftime import numpy as np from scipy.io import savemat from dotmap import DotMap from src.modeling.trainers import BNN_trainer from src.misc.DotmapUtils import ge...
39.615894
99
0.531595
5,499
0.919258
0
0
0
0
0
0
2,299
0.38432
1a286a917af5eacc1b12d3158f1106f90974b451
252
py
Python
lightnn/base/__init__.py
tongluocq/lightnn
602b0742d1141efc73a7146c930c5ea9eb994d37
[ "Apache-2.0" ]
131
2017-04-05T06:03:25.000Z
2021-05-20T03:05:36.000Z
ch4/lightnn/lightnn/base/__init__.py
helloqorld/book-of-qna-code
54950478fb28d15cd73dae4dc39f3cd783721e08
[ "Apache-2.0" ]
27
2018-11-26T07:39:25.000Z
2022-02-09T23:44:53.000Z
ch4/lightnn/lightnn/base/__init__.py
helloqorld/book-of-qna-code
54950478fb28d15cd73dae4dc39f3cd783721e08
[ "Apache-2.0" ]
62
2018-11-26T07:44:02.000Z
2022-01-13T08:31:00.000Z
#!/usr/bin/env python # coding=utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function from .activations import * from .losses import * from .initializers import * from .optimizers import *
19.384615
38
0.797619
0
0
0
0
0
0
0
0
35
0.138889
1a288c60c996fe5119fab7f4db833d65180f5556
3,273
py
Python
tests/vvadd/Q.py
sa2257/llvm-runtime-pass
6f2c92141465e7df56f9720ab7753826663d799f
[ "MIT" ]
null
null
null
tests/vvadd/Q.py
sa2257/llvm-runtime-pass
6f2c92141465e7df56f9720ab7753826663d799f
[ "MIT" ]
null
null
null
tests/vvadd/Q.py
sa2257/llvm-runtime-pass
6f2c92141465e7df56f9720ab7753826663d799f
[ "MIT" ]
null
null
null
import time class processingElement: def __init__(self, name, op, flex, regs, ports, bdwth, route, ctrl, branch): self.name = name self.op = op self.tick = 1 self.ins = [0, 0] self.outs = [None, None] self.flex = flex self.regs = regs self.p...
32.405941
84
0.513902
3,253
0.993889
0
0
0
0
0
0
245
0.074855
1a2b8e3fe78c16eea9e7fc19485f21ac4d60d622
22
py
Python
middleman/api/application/__init__.py
scooterman/middleman
c765c9157cce02574e7191608dacd573156e333b
[ "Xnet", "X11" ]
5
2020-03-19T07:19:49.000Z
2021-09-29T06:33:47.000Z
trends/__init__.py
victorkifer/SocialMediaTopTrends
32098f1621059700d9ca6437a988956ebe1d319a
[ "MIT" ]
22
2015-09-20T14:00:16.000Z
2021-06-10T20:08:25.000Z
trends/__init__.py
victorkifer/SocialMediaTopTrends
32098f1621059700d9ca6437a988956ebe1d319a
[ "MIT" ]
6
2015-12-14T21:05:01.000Z
2019-11-02T19:35:24.000Z
__author__ = 'victor'
11
21
0.727273
0
0
0
0
0
0
0
0
8
0.363636
1a2c8ecde415f77d6438cc4d119dd253cc4b947d
799
py
Python
2009/plotting_data_monitor/_distrib.py
mikiec84/code-for-blog
79b2264f9a808eb14f624cb3c5ae7624038c043a
[ "Unlicense" ]
1,199
2015-01-06T14:09:37.000Z
2022-03-29T19:39:51.000Z
2009/plotting_data_monitor/_distrib.py
mikiec84/code-for-blog
79b2264f9a808eb14f624cb3c5ae7624038c043a
[ "Unlicense" ]
25
2016-07-29T15:44:01.000Z
2021-11-19T16:21:01.000Z
2009/plotting_data_monitor/_distrib.py
mikiec84/code-for-blog
79b2264f9a808eb14f624cb3c5ae7624038c043a
[ "Unlicense" ]
912
2015-01-04T00:39:50.000Z
2022-03-29T06:50:22.000Z
from eblib import libcollect # Create a LibCollect object lc = libcollect.LibCollect() # Prepare arguments for do_collect # # Path to the script (can be absolute or relative) scriptname = 'plotting_data_monitor.pyw' # Ask the resulting distribution to be placed in # directory distrib targetdir = 'distr...
24.212121
55
0.624531
0
0
0
0
0
0
0
0
479
0.599499
1a2d28dea2bb837c0dd72c1aefaedfb353d8cc72
3,751
py
Python
tests/conftest.py
cread/aws-parallelcluster-node
1f3bcd32f216d246d89e0e175be8027c923ae8ec
[ "Apache-2.0" ]
33
2018-11-14T14:54:47.000Z
2022-03-22T23:47:51.000Z
tests/conftest.py
cread/aws-parallelcluster-node
1f3bcd32f216d246d89e0e175be8027c923ae8ec
[ "Apache-2.0" ]
180
2019-02-21T09:33:10.000Z
2022-03-31T08:01:28.000Z
tests/conftest.py
cread/aws-parallelcluster-node
1f3bcd32f216d246d89e0e175be8027c923ae8ec
[ "Apache-2.0" ]
35
2019-02-06T13:36:18.000Z
2022-03-01T12:54:05.000Z
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file accom...
41.21978
119
0.702479
0
0
2,633
0.701946
3,130
0.834444
0
0
1,967
0.524393
1a2d480359b08490e3beec01917db1a8d876c6dd
7,263
py
Python
scripts/fastrfaa.py
Facenapalm/NapalmBot
ce775a270f374e626bcabc313676e4e2f9dbb843
[ "MIT" ]
4
2016-05-14T17:42:03.000Z
2018-09-24T18:43:03.000Z
scripts/fastrfaa.py
Facenapalm/NapalmBot
ce775a270f374e626bcabc313676e4e2f9dbb843
[ "MIT" ]
null
null
null
scripts/fastrfaa.py
Facenapalm/NapalmBot
ce775a270f374e626bcabc313676e4e2f9dbb843
[ "MIT" ]
1
2021-05-08T15:45:30.000Z
2021-05-08T15:45:30.000Z
""" Maintainer script for ruwiki's administrator attention requests table ([[:ru:ВП:ЗКАБ]]). Log file is used for saving "администратор" field in deleted requests. Usage: python fastrfaa.py [logfile] """ import re import sys from datetime import datetime import pywikibot REGEXP = re.compile(r""" (?P<indent>...
31.171674
103
0.592317
0
0
0
0
0
0
0
0
2,591
0.335665
a7de746c56c67620e56b1437e51a6c5e5965554a
1,102
py
Python
rssfly/tests/common.py
lidavidm/rssfly
1cfb893a249e4095412b966a1bf50fc3de7744e7
[ "Apache-2.0" ]
1
2021-02-14T03:44:35.000Z
2021-02-14T03:44:35.000Z
rssfly/tests/common.py
lidavidm/rssfly
1cfb893a249e4095412b966a1bf50fc3de7744e7
[ "Apache-2.0" ]
6
2021-07-15T13:03:19.000Z
2022-03-26T14:14:14.000Z
rssfly/tests/common.py
lidavidm/rssfly
1cfb893a249e4095412b966a1bf50fc3de7744e7
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 David Li # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
29.783784
74
0.696915
303
0.274955
0
0
0
0
0
0
642
0.582577
a7dfe24c47f27180a9478cedac00f9ebde2a0811
16,502
py
Python
pybind/slxos/v16r_1_00b/protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
85.061856
1,055
0.690038
16,097
0.975458
0
0
0
0
0
0
8,650
0.524179
a7e04b7806a0a0c1a8e2d03be13546c94ed6e271
3,253
py
Python
scripts/generate.py
maruina/diagrams
8a9012fa24e2987b49672bae0abf16585fed440a
[ "MIT" ]
null
null
null
scripts/generate.py
maruina/diagrams
8a9012fa24e2987b49672bae0abf16585fed440a
[ "MIT" ]
null
null
null
scripts/generate.py
maruina/diagrams
8a9012fa24e2987b49672bae0abf16585fed440a
[ "MIT" ]
null
null
null
import os import sys from typing import Iterable from jinja2 import Environment, FileSystemLoader, Template import config as cfg from . import app_root_dir, doc_root_dir, resource_dir, template_dir _usage = "Usage: generate.py <onprem|aws|gcp|azure|k8s|alibabacloud|oci|programming|saas>" def load_tmpl(tmpl: str) -...
31.582524
90
0.640639
0
0
0
0
0
0
0
0
601
0.184753
a7e08ada30043433441727fc2f8b4036acae9399
5,023
py
Python
src/GUI/menuTypes.py
Vidhu007/Cloud-Encryption
ec9ccd76a71e98740d937b34a7734f821448fae0
[ "MIT" ]
7
2021-05-10T13:30:51.000Z
2022-03-20T17:49:59.000Z
src/GUI/menuTypes.py
Vidhu007/Cloud-Encryption
ec9ccd76a71e98740d937b34a7734f821448fae0
[ "MIT" ]
null
null
null
src/GUI/menuTypes.py
Vidhu007/Cloud-Encryption
ec9ccd76a71e98740d937b34a7734f821448fae0
[ "MIT" ]
8
2019-04-05T10:40:49.000Z
2022-03-20T06:00:43.000Z
import users import sys import encryption import googleDriveAPI u= users e= encryption g= googleDriveAPI #Function to generate menu for privileged (admin) user def privilegeMenu(): try: while True: #Menu system used to navigate the management console user_In = input("|U - Upload fi...
38.937984
129
0.428827
0
0
0
0
0
0
0
0
1,452
0.28907
a7e0cc5a6d14c321badeeffabba58fb153ebc18b
657
py
Python
eap_backend/eap_api/migrations/0005_alter_eapuser_is_active.py
alan-turing-institute/AssurancePlatform
1aa34b544990f981a289f6d21a832657ad19742e
[ "MIT" ]
5
2021-09-28T15:02:21.000Z
2022-03-23T14:37:51.000Z
eap_backend/eap_api/migrations/0005_alter_eapuser_is_active.py
alan-turing-institute/AssurancePlatform
1aa34b544990f981a289f6d21a832657ad19742e
[ "MIT" ]
69
2021-09-28T14:21:24.000Z
2022-03-31T17:12:19.000Z
eap_backend/eap_api/migrations/0005_alter_eapuser_is_active.py
alan-turing-institute/AssurancePlatform
1aa34b544990f981a289f6d21a832657ad19742e
[ "MIT" ]
1
2021-09-28T15:11:00.000Z
2021-09-28T15:11:00.000Z
# Generated by Django 3.2.8 on 2022-05-31 10:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("eap_api", "0004_auto_20220531_0935"), ] operations = [ migrations.AlterField( model_name="eapuser", name="is_active"...
25.269231
81
0.531202
564
0.858447
0
0
0
0
0
0
215
0.327245
a7e26aa446e86411030f396561a3b8cb6f32b961
465
py
Python
lucid_torch/transforms/monochrome/TFMSMonochromeTo.py
HealthML/lucid-torch
627700a83b5b2690cd8f95010b5ed439204102f4
[ "MIT" ]
1
2021-08-20T07:38:09.000Z
2021-08-20T07:38:09.000Z
lucid_torch/transforms/monochrome/TFMSMonochromeTo.py
HealthML/lucid-torch
627700a83b5b2690cd8f95010b5ed439204102f4
[ "MIT" ]
5
2021-03-19T15:50:42.000Z
2022-03-12T00:53:17.000Z
lucid_torch/transforms/monochrome/TFMSMonochromeTo.py
HealthML/lucid-torch
627700a83b5b2690cd8f95010b5ed439204102f4
[ "MIT" ]
null
null
null
import torch class TFMSMonochromeTo(torch.nn.Module): def __init__(self, num_dimensions: int = 3): super(TFMSMonochromeTo, self).__init__() if not isinstance(num_dimensions, int): raise TypeError() elif num_dimensions < 2: raise ValueError() self.num_dimensi...
31
79
0.658065
449
0.965591
0
0
0
0
0
0
0
0
a7e2b57529b0723b4ab18b73801cd2816d8025dd
1,027
py
Python
python/paddle/v2/framework/tests/test_modified_huber_loss_op.py
AI-books/Paddle
5b5f4f514047975ac09ec42b31e46dabf235e7dd
[ "Apache-2.0" ]
null
null
null
python/paddle/v2/framework/tests/test_modified_huber_loss_op.py
AI-books/Paddle
5b5f4f514047975ac09ec42b31e46dabf235e7dd
[ "Apache-2.0" ]
null
null
null
python/paddle/v2/framework/tests/test_modified_huber_loss_op.py
AI-books/Paddle
5b5f4f514047975ac09ec42b31e46dabf235e7dd
[ "Apache-2.0" ]
1
2020-06-04T04:27:15.000Z
2020-06-04T04:27:15.000Z
import unittest import numpy as np from op_test import OpTest def modified_huber_loss_forward(val): if val < -1: return -4 * val elif val < 1: return (1 - val) * (1 - val) else: return 0 class TestModifiedHuberLossOp(OpTest): def setUp(self): self.op_type = 'modified_...
25.675
80
0.590068
750
0.730282
0
0
0
0
0
0
82
0.079844
a7e54d153065f4c3487a12be2e95a69fef30b9f1
5,626
py
Python
bots.py
FatherUsarox/generadorqr
a56cc91c1b9320c03f3579c5a4d7d21f71b42f17
[ "MIT" ]
null
null
null
bots.py
FatherUsarox/generadorqr
a56cc91c1b9320c03f3579c5a4d7d21f71b42f17
[ "MIT" ]
null
null
null
bots.py
FatherUsarox/generadorqr
a56cc91c1b9320c03f3579c5a4d7d21f71b42f17
[ "MIT" ]
null
null
null
#!/usr/bin/env python # pylint: disable=C0116,W0613 # 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 Ctr...
32.900585
99
0.682545
0
0
0
0
0
0
0
0
2,386
0.424102
a7e702d2867f4402c54e0d45a5281d763c846bf9
746
py
Python
src/tests/TestQuadratureRule.py
WaveBlocks/WaveBlocks
2af3730dcf27e54006ec602e696b4d4df25459d8
[ "BSD-3-Clause" ]
null
null
null
src/tests/TestQuadratureRule.py
WaveBlocks/WaveBlocks
2af3730dcf27e54006ec602e696b4d4df25459d8
[ "BSD-3-Clause" ]
null
null
null
src/tests/TestQuadratureRule.py
WaveBlocks/WaveBlocks
2af3730dcf27e54006ec602e696b4d4df25459d8
[ "BSD-3-Clause" ]
null
null
null
"""The WaveBlocks Project Plot some quadrature rules. @author: R. Bourquin @copyright: Copyright (C) 2010, 2011 R. Bourquin @license: Modified BSD License """ from numpy import squeeze from matplotlib.pyplot import * from WaveBlocks import GaussHermiteQR tests = (2, 3, 4, 7, 32, 64, 128) for I in tests: ...
18.65
89
0.61126
0
0
0
0
0
0
0
0
247
0.331099
a7e7986c81b7eb2a012589680dc9149ce7e709a3
7,141
py
Python
neural_network.py
lee-winchester/deep-neural-network
8f7c012e864a6bf9a3257d8cd08e3b3488243b19
[ "MIT" ]
null
null
null
neural_network.py
lee-winchester/deep-neural-network
8f7c012e864a6bf9a3257d8cd08e3b3488243b19
[ "MIT" ]
null
null
null
neural_network.py
lee-winchester/deep-neural-network
8f7c012e864a6bf9a3257d8cd08e3b3488243b19
[ "MIT" ]
null
null
null
import os import cv2 import numpy as np import matplotlib.pyplot as plt import scipy ROWS = 64 COLS = 64 CHANNELS = 3 TRAIN_DIR = 'Train_data/' TEST_DIR = 'Test_data/' train_images = [TRAIN_DIR+i for i in os.listdir(TRAIN_DIR)] test_images = [TEST_DIR+i for i in os.listdir(TEST_DIR)] def read_image(file_path): ...
30.780172
148
0.618261
0
0
0
0
0
0
0
0
1,990
0.278672
a7e7c360d245af4066c15b6cc4582b7c3939eb5b
798
py
Python
main.py
UstymHanyk/NearbyMovies
b54995463a30a130f9023c63d6549e734c45251c
[ "MIT" ]
1
2021-02-15T20:20:06.000Z
2021-02-15T20:20:06.000Z
main.py
UstymHanyk/NearbyMovies
b54995463a30a130f9023c63d6549e734c45251c
[ "MIT" ]
null
null
null
main.py
UstymHanyk/NearbyMovies
b54995463a30a130f9023c63d6549e734c45251c
[ "MIT" ]
null
null
null
""" A module for generating a map with 10 nearest movies """ from data_reader import read_data, select_year from locations_finder import coord_finder, find_nearest_movies from map_generator import generate_map def start(): year = int(input("Please enter a year you would like to have a map for:")) user_location...
42
114
0.766917
0
0
0
0
0
0
0
0
234
0.293233
a7e7f170ca97fac3a1e811a7610e759c8f771e42
9,003
py
Python
wbtools/lib/nlp/entity_extraction/ntt_extractor.py
WormBase/wbtools
70d07109182706b2a6cc333ef7a17dcd293cc3f3
[ "MIT" ]
1
2021-02-17T06:54:13.000Z
2021-02-17T06:54:13.000Z
wbtools/lib/nlp/entity_extraction/ntt_extractor.py
WormBase/wbtools
70d07109182706b2a6cc333ef7a17dcd293cc3f3
[ "MIT" ]
1
2021-04-28T20:58:57.000Z
2021-04-28T20:58:57.000Z
wbtools/lib/nlp/entity_extraction/ntt_extractor.py
WormBase/wbtools
70d07109182706b2a6cc333ef7a17dcd293cc3f3
[ "MIT" ]
1
2021-03-31T17:23:37.000Z
2021-03-31T17:23:37.000Z
import math import re from typing import List, Dict from wbtools.db.generic import WBGenericDBManager from wbtools.lib.nlp.common import EntityType from wbtools.lib.nlp.literature_index.abstract_index import AbstractLiteratureIndex ALL_VAR_REGEX = r'({designations}|m|p|It)(_)?([A-z]+)?([0-9]+)([a-zA-Z]{{1,4}}[0-9]*)?...
56.26875
128
0.59258
8,125
0.902477
0
0
3,432
0.381206
0
0
1,359
0.15095
a7e832d5a07f4dde801acb1a916d9e7763b10c42
3,228
py
Python
tests/feature_extractors/test_bitteli.py
yamathcy/motif
3f43568e59f0879fbab5ef278e9e687b7cac3dd6
[ "MIT" ]
21
2016-08-22T22:00:49.000Z
2020-03-29T04:15:19.000Z
tests/feature_extractors/test_bitteli.py
yamathcy/motif
3f43568e59f0879fbab5ef278e9e687b7cac3dd6
[ "MIT" ]
22
2016-08-28T01:07:08.000Z
2018-02-07T14:38:26.000Z
tests/feature_extractors/test_bitteli.py
yamathcy/motif
3f43568e59f0879fbab5ef278e9e687b7cac3dd6
[ "MIT" ]
3
2017-01-12T10:04:27.000Z
2022-01-06T13:25:48.000Z
"""Test motif.features.bitteli """ import unittest import numpy as np from motif.feature_extractors import bitteli def array_equal(array1, array2): return np.all(np.isclose(array1, array2, atol=1e-7)) class TestBitteliFeatures(unittest.TestCase): def setUp(self): self.ftr = bitteli.BitteliFeatures...
30.742857
66
0.565675
3,017
0.934634
0
0
0
0
0
0
785
0.243185
a7e93039a39687c72a48499f5a446f6400a42bad
412
py
Python
data-structures/trees/node/node.py
b-ritter/python-notes
e08e466458b8a2987c0abe42674da4066c763e74
[ "MIT" ]
1
2017-05-04T18:48:45.000Z
2017-05-04T18:48:45.000Z
data-structures/trees/node/node.py
b-ritter/python-notes
e08e466458b8a2987c0abe42674da4066c763e74
[ "MIT" ]
null
null
null
data-structures/trees/node/node.py
b-ritter/python-notes
e08e466458b8a2987c0abe42674da4066c763e74
[ "MIT" ]
null
null
null
class Node(): def __init__(self, value=None): self.children = [] self.parent = None self.value = value def add_child(self, node): if type(node).__name__ == 'Node': node.parent = self self.children.append(node) else: raise ValueErro...
27.466667
59
0.553398
412
1
0
0
0
0
0
0
12
0.029126
a7e94b54f09da5dbd4544a51eda95b42dbf4bd2e
3,436
py
Python
qf_lib/backtesting/events/time_event/regular_date_time_rule.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
198
2019-08-16T15:09:23.000Z
2022-03-30T12:44:00.000Z
qf_lib/backtesting/events/time_event/regular_date_time_rule.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
13
2021-01-07T10:15:19.000Z
2022-03-29T13:01:47.000Z
qf_lib/backtesting/events/time_event/regular_date_time_rule.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
29
2019-08-16T15:21:28.000Z
2022-02-23T09:53:49.000Z
# Copyright 2016-present CERN – European Organization for Nuclear Research # # 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...
45.813333
116
0.680151
2,669
0.776323
0
0
0
0
0
0
1,494
0.434555
a7ea14ccf7f41c0614b8f95c605b3bd30018a21b
2,643
py
Python
example_project/blog/migrations/0001_initial.py
allran/djangorestframework-appapi
5e843b70910ccd55d787096ee08eb85315c80000
[ "BSD-2-Clause" ]
4
2019-10-15T06:47:29.000Z
2019-11-11T13:16:15.000Z
example_project/blog/migrations/0001_initial.py
allran/djangorestframework-appapi
5e843b70910ccd55d787096ee08eb85315c80000
[ "BSD-2-Clause" ]
null
null
null
example_project/blog/migrations/0001_initial.py
allran/djangorestframework-appapi
5e843b70910ccd55d787096ee08eb85315c80000
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-16 02:53 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
43.327869
193
0.573212
2,526
0.940782
0
0
0
0
0
0
459
0.17095
a7eb2348cfa9a172a906c37500f1917164aff9ba
515
py
Python
hamming/hamming.py
olepunchy/exercism-python-solutions
7710e49ec0188510d50a22928cdb951063ad1a44
[ "BSD-3-Clause" ]
1
2021-12-20T11:29:35.000Z
2021-12-20T11:29:35.000Z
hamming/hamming.py
olepunchy/exercism-python-solutions
7710e49ec0188510d50a22928cdb951063ad1a44
[ "BSD-3-Clause" ]
null
null
null
hamming/hamming.py
olepunchy/exercism-python-solutions
7710e49ec0188510d50a22928cdb951063ad1a44
[ "BSD-3-Clause" ]
null
null
null
"""Hamming Distance from Exercism""" def distance(strand_a, strand_b): """Determine the hamming distance between two RNA strings param: str strand_a param: str strand_b return: int calculation of the hamming distance between strand_a and strand_b """ if len(strand_a) != len(strand_b): ...
25.75
81
0.660194
0
0
0
0
0
0
0
0
265
0.514563
a7ec26521d5754d63393dc5921008ed61eb700b3
1,384
py
Python
python/scopePractice.py
5x5x5x5/Back2Basics
4cd4117c6fdcb064b6cd62fde63be92347950526
[ "Unlicense" ]
null
null
null
python/scopePractice.py
5x5x5x5/Back2Basics
4cd4117c6fdcb064b6cd62fde63be92347950526
[ "Unlicense" ]
1
2016-02-14T00:09:48.000Z
2016-02-14T00:10:05.000Z
python/scopePractice.py
5x5x5x5/Back2Basics
4cd4117c6fdcb064b6cd62fde63be92347950526
[ "Unlicense" ]
null
null
null
#def spam(): # eggs = 31337 #spam() #print(eggs) """ def spam(): eggs = 98 bacon() print(eggs) def bacon(): ham = 101 eggs = 0 spam() """ """ # Global variables can be read from local scope. def spam(): print(eggs) eggs = 42 spam() print(eggs) """ """ # Local and global variables with th...
16.674699
257
0.621387
0
0
0
0
0
0
0
0
1,297
0.937139
a7ee3074b0e06212ba87fbc858e47dc0897b2f73
3,114
py
Python
utils/csv_generator.py
stegmaierj/CellSynthesis
de2c90ed668b7f57b960896473df3d56636eca82
[ "Apache-2.0" ]
1
2021-07-21T21:40:32.000Z
2021-07-21T21:40:32.000Z
utils/csv_generator.py
stegmaierj/CellSynthesis
de2c90ed668b7f57b960896473df3d56636eca82
[ "Apache-2.0" ]
null
null
null
utils/csv_generator.py
stegmaierj/CellSynthesis
de2c90ed668b7f57b960896473df3d56636eca82
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ # 3D Image Data Synthesis. # Copyright (C) 2021 D. Eschweiler, M. Rethwisch, M. Jarchow, S. Koppers, J. Stegmaier # # 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 Liceense at ...
33.847826
113
0.633269
0
0
0
0
0
0
0
0
991
0.31824
a7f02ff728dc30360284b4e08bfb0d211597ed3b
1,003
py
Python
test/test_VersionUpdaterWindow.py
jmarrec/IDFVersionUpdater2
0420732141e41bdc06c85f1372d82f0843f8cebf
[ "BSD-3-Clause" ]
null
null
null
test/test_VersionUpdaterWindow.py
jmarrec/IDFVersionUpdater2
0420732141e41bdc06c85f1372d82f0843f8cebf
[ "BSD-3-Clause" ]
null
null
null
test/test_VersionUpdaterWindow.py
jmarrec/IDFVersionUpdater2
0420732141e41bdc06c85f1372d82f0843f8cebf
[ "BSD-3-Clause" ]
2
2020-09-25T08:02:39.000Z
2021-08-18T08:30:31.000Z
import os import sys import tempfile import unittest sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'IDFVersionUpdater')) from VersionUpdaterWindow import VersionUpdaterWindow class TestGetIDFVersion(unittest.TestCase): def setUp(self): self.idf_name = tempfile.mktemp() ...
31.34375
101
0.682951
789
0.78664
0
0
0
0
0
0
70
0.069791
a7f04cab3ce9aa87269ec6d3083f5676dec9b76a
421
py
Python
Algorithm/Mathematical/453. Minimum Moves to Equal Array Elements.py
smsubham/Data-Structure-Algorithms-Questions
45da68231907068ef4e4a0444ffdac69b337fa7c
[ "Apache-2.0" ]
null
null
null
Algorithm/Mathematical/453. Minimum Moves to Equal Array Elements.py
smsubham/Data-Structure-Algorithms-Questions
45da68231907068ef4e4a0444ffdac69b337fa7c
[ "Apache-2.0" ]
null
null
null
Algorithm/Mathematical/453. Minimum Moves to Equal Array Elements.py
smsubham/Data-Structure-Algorithms-Questions
45da68231907068ef4e4a0444ffdac69b337fa7c
[ "Apache-2.0" ]
null
null
null
# https://leetcode.com/problems/minimum-moves-to-equal-array-elements/ # Explanation: https://leetcode.com/problems/minimum-moves-to-equal-array-elements/discuss/93817/It-is-a-math-question # Source: https://leetcode.com/problems/minimum-moves-to-equal-array-elements/discuss/272994/Python-Greedy-Sum-Min*Len class Solu...
60.142857
118
0.752969
110
0.261283
0
0
0
0
0
0
306
0.726841
a7f28bd0d14c90ec88699bf98d0a9fe7b8320366
583
py
Python
tests/test_decisions.py/test_binary_decision.py
evanofslack/pyminion
0d0bfc6d8e84e9f33e617c7d01b6edb649166290
[ "MIT" ]
5
2021-12-17T20:34:55.000Z
2022-01-24T15:18:05.000Z
tests/test_decisions.py/test_binary_decision.py
evanofslack/pyminion
0d0bfc6d8e84e9f33e617c7d01b6edb649166290
[ "MIT" ]
31
2021-10-29T21:05:00.000Z
2022-03-22T03:27:14.000Z
tests/test_decisions.py/test_binary_decision.py
evanofslack/pyminion
0d0bfc6d8e84e9f33e617c7d01b6edb649166290
[ "MIT" ]
1
2021-12-23T18:32:47.000Z
2021-12-23T18:32:47.000Z
from pyminion.decisions import binary_decision def test_yes_input(monkeypatch): monkeypatch.setattr("builtins.input", lambda _: "y") assert binary_decision(prompt="test") is True def test_no_input(monkeypatch): monkeypatch.setattr("builtins.input", lambda _: "n") assert binary_decision(prompt="test"...
27.761905
56
0.749571
0
0
0
0
0
0
0
0
74
0.12693
a7f2b60426d4a9b0bbe027e12dcdd2ac3143d158
1,658
py
Python
commands/limit.py
nstra111/autovc
e73e1fea7b566721c3dce3ca6f587472e7ee9d1b
[ "MIT" ]
177
2020-02-02T18:03:46.000Z
2022-03-17T06:18:43.000Z
commands/limit.py
zigsphere/Auto-Voice-Channels
6ae901728580bef4246737a6f1b9f10763badd3e
[ "MIT" ]
82
2020-02-02T17:43:18.000Z
2022-03-24T20:34:55.000Z
commands/limit.py
zigsphere/Auto-Voice-Channels
6ae901728580bef4246737a6f1b9f10763badd3e
[ "MIT" ]
165
2019-02-17T20:15:20.000Z
2022-03-27T23:59:23.000Z
import utils import functions as func from commands.base import Cmd help_text = [ [ ("Usage:", "<PREFIX><COMMAND>\n" "<PREFIX><COMMAND> `N`"), ("Description:", "Use when already in a channel - Limit the number of users allowed in your channel to either the current " ...
28.586207
115
0.571773
0
0
0
0
0
0
1,028
0.612269
550
0.327576
a7f2fd039004fefa20925e8a466b301e8532a1f0
11,548
py
Python
salt/tests/unit/modules/test_metalk8s_solutions.py
zarumaru/metalk8s
8c79a28c2bd28ca5b84e58ace5605cbe6183fc75
[ "Apache-2.0" ]
null
null
null
salt/tests/unit/modules/test_metalk8s_solutions.py
zarumaru/metalk8s
8c79a28c2bd28ca5b84e58ace5605cbe6183fc75
[ "Apache-2.0" ]
null
null
null
salt/tests/unit/modules/test_metalk8s_solutions.py
zarumaru/metalk8s
8c79a28c2bd28ca5b84e58ace5605cbe6183fc75
[ "Apache-2.0" ]
null
null
null
import errno import os.path import yaml from parameterized import param, parameterized from salt.exceptions import CommandExecutionError from salttesting.mixins import LoaderModuleMockMixin from salttesting.unit import TestCase from salttesting.mock import MagicMock, mock_open, patch import metalk8s_solutions from...
36.660317
79
0.559144
10,996
0.9522
0
0
10,110
0.875476
0
0
1,850
0.160201
a7f5cbeb6c6ac6730e6541d991681e7c83554dd8
523
py
Python
fun.py
Krishna-Aaseri/Python_Logical_Questions
c0f025a56dbbf85426142adb423b25fa7b034adb
[ "MIT" ]
null
null
null
fun.py
Krishna-Aaseri/Python_Logical_Questions
c0f025a56dbbf85426142adb423b25fa7b034adb
[ "MIT" ]
null
null
null
fun.py
Krishna-Aaseri/Python_Logical_Questions
c0f025a56dbbf85426142adb423b25fa7b034adb
[ "MIT" ]
null
null
null
#def add(num,num1): # add1=num+num1 # print add1 #add(6,7) #def welcome(): # print "python kaisa lagta h aapko" # print "but please reply na kare aap" #welcome() user = int(raw_input("enter a number")) i = 0 new = [] while i < (user): user1 = int(raw_input("enter a number")) new.append(user1) i = i + 1 print new ...
13.763158
54
0.565966
0
0
0
0
0
0
0
0
234
0.447419
a7f7aa50e11186fe4bb67eb3b4c81147ea13ad7a
29
py
Python
app.py
00MB/lottocoin
ebf27f5a02169d948e8633b1dc5d5ad37ee1bb4a
[ "MIT" ]
2
2021-02-10T01:40:36.000Z
2021-02-10T01:41:22.000Z
app.py
00MB/lottocoin
ebf27f5a02169d948e8633b1dc5d5ad37ee1bb4a
[ "MIT" ]
null
null
null
app.py
00MB/lottocoin
ebf27f5a02169d948e8633b1dc5d5ad37ee1bb4a
[ "MIT" ]
null
null
null
from lottocoin import app
5.8
25
0.758621
0
0
0
0
0
0
0
0
0
0
a7f8a1ad9e3a4405d58d74a78a4a7eac31d085da
30,883
py
Python
api/views_v2.py
GeRDI-Project/HarvesterControlCenter
ce161a31a6510ae28ffa68b8e0fd43c42060cb07
[ "Apache-2.0" ]
null
null
null
api/views_v2.py
GeRDI-Project/HarvesterControlCenter
ce161a31a6510ae28ffa68b8e0fd43c42060cb07
[ "Apache-2.0" ]
9
2020-01-07T12:40:26.000Z
2021-09-22T18:00:38.000Z
api/views_v2.py
GeRDI-Project/HarvesterControlCenter
ce161a31a6510ae28ffa68b8e0fd43c42060cb07
[ "Apache-2.0" ]
null
null
null
""" This is the views module which encapsulates the backend logic which will be riggered via the corresponding path (url). """ import collections import json import logging from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required from django.contrib...
36.036173
96
0.628307
7,774
0.251692
0
0
17,346
0.561595
0
0
8,176
0.264707
a7f8c76db9c1ab40ada45ae9f5ec62c61c102d7a
8,151
py
Python
rin/modules/setu/lolicon.py
oralvi/rinyuuki
2b55a5a9f0ebbecbdba815e242450b248c8e727a
[ "MIT" ]
null
null
null
rin/modules/setu/lolicon.py
oralvi/rinyuuki
2b55a5a9f0ebbecbdba815e242450b248c8e727a
[ "MIT" ]
null
null
null
rin/modules/setu/lolicon.py
oralvi/rinyuuki
2b55a5a9f0ebbecbdba815e242450b248c8e727a
[ "MIT" ]
null
null
null
import datetime import io import json import os import random import traceback import aiohttp from PIL import Image import rin from rin import R from .config import get_api_num, get_config, key_vaildable_query, set_key_invaild quota_limit_time = datetime.datetime.now() def generate_image_struct(): return { 'id'...
25.392523
100
0.655502
0
0
0
0
0
0
4,956
0.600946
1,906
0.231114
a7fa41d77e47cb4e42dcb175ead24d162418cceb
363
py
Python
Python Backend/diarization/build/lib/s4d/__init__.py
AdityaK1211/Final_Year_Project_SCET
1a6092e1345dad473375ada787fb5cb00ee7515f
[ "MIT" ]
1
2022-02-15T02:49:22.000Z
2022-02-15T02:49:22.000Z
Python Backend/diarization/build/lib/s4d/__init__.py
AdityaK1211/Final_Year_Project_SCET
1a6092e1345dad473375ada787fb5cb00ee7515f
[ "MIT" ]
null
null
null
Python Backend/diarization/build/lib/s4d/__init__.py
AdityaK1211/Final_Year_Project_SCET
1a6092e1345dad473375ada787fb5cb00ee7515f
[ "MIT" ]
2
2021-07-11T12:42:43.000Z
2022-02-15T02:49:24.000Z
__author__ = 'meignier' import s4d.clustering.hac_bic import s4d.clustering.hac_clr import s4d.clustering.hac_iv import s4d.clustering.hac_utils import s4d.model_iv from s4d.clustering.cc_iv import ConnectedComponent from s4d.diar import Diar from s4d.segmentation import sanity_check, bic_linear, div_gauss from s4d.vi...
27.923077
64
0.837466
0
0
0
0
0
0
0
0
17
0.046832
a7faceab673a31a756534245b8aaabc503d661d6
1,217
py
Python
docs/demos/theme_explorer/list_group.py
sthagen/facultyai-dash-bootstrap-components
2dd5eaf1c1494b2077bcee82eb7968ec2e23af46
[ "Apache-2.0" ]
50
2018-09-23T08:57:28.000Z
2019-02-02T19:59:35.000Z
docs/demos/theme_explorer/list_group.py
sthagen/dash-bootstrap-components
d79ad7f8fdf4c26165038e6989e24f2ac17663b1
[ "Apache-2.0" ]
99
2018-09-21T11:06:29.000Z
2019-02-04T09:04:07.000Z
docs/demos/theme_explorer/list_group.py
sthagen/dash-bootstrap-components
d79ad7f8fdf4c26165038e6989e24f2ac17663b1
[ "Apache-2.0" ]
3
2018-09-25T02:16:24.000Z
2018-12-22T20:56:31.000Z
import dash_bootstrap_components as dbc from dash import html from .util import make_subheading list_group = html.Div( [ make_subheading("ListGroup", "list_group"), dbc.ListGroup( [ dbc.ListGroupItem("No color applied"), dbc.ListGroupItem("The primary it...
36.878788
73
0.520953
0
0
0
0
0
0
0
0
310
0.254725
a7fd2734a072f2bcad84ee84ad66f361e1da1371
865
py
Python
products/migrations/0004_auto_20210715_2006.py
keeks-mtl/go-tennis
af3f325a9cfb2faba4d935824492f4aea6d10309
[ "W3C", "PostgreSQL" ]
null
null
null
products/migrations/0004_auto_20210715_2006.py
keeks-mtl/go-tennis
af3f325a9cfb2faba4d935824492f4aea6d10309
[ "W3C", "PostgreSQL" ]
null
null
null
products/migrations/0004_auto_20210715_2006.py
keeks-mtl/go-tennis
af3f325a9cfb2faba4d935824492f4aea6d10309
[ "W3C", "PostgreSQL" ]
null
null
null
# Generated by Django 3.2.3 on 2021-07-15 20:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0003_auto_20210709_0117'), ] operations = [ migrations.AlterField( model_name='category', name='friendly...
25.441176
62
0.557225
772
0.892486
0
0
0
0
0
0
152
0.175723
a7fd5742db5fc95146713081d7d7a20b702afa5b
5,967
py
Python
task_landscape.py
aspnetcs/RecurJac-and-CROWN
5b3fcaaa7a275483e26164506f66a618538ee881
[ "BSD-2-Clause" ]
54
2020-09-09T12:43:43.000Z
2022-03-17T17:31:19.000Z
task_landscape.py
huanzhang12/RecurJac-Jacobian-Bounds
163c84e7a8d345d18c718cf6b0bc61baa8a1a78a
[ "BSD-2-Clause" ]
8
2020-09-23T05:11:31.000Z
2022-03-12T00:47:29.000Z
task_landscape.py
huanzhang12/RecurJac
163c84e7a8d345d18c718cf6b0bc61baa8a1a78a
[ "BSD-2-Clause" ]
5
2020-09-10T07:19:43.000Z
2021-07-24T06:28:04.000Z
## task_landscape.py ## ## Run RecurJac/FastLip bounds for exploring local optimization landscape ## ## Copyright (C) 2018, Huan Zhang <[email protected]> and contributors ## ## This program is licenced under the BSD 2-Clause License, ## contained in the LICENCE file in this directory. ## See CREDITS for a list of ...
54.743119
392
0.657282
5,447
0.912854
0
0
0
0
0
0
1,180
0.197754
a7fe6e62a19f61aac68612f736fdb8db8ad2bc69
5,956
py
Python
tests/test_prepareDeploymentContainerDefinitionsStep.py
AdventielFr/ecs-crd-cli
f1421055be0b2b25e5334aef277d27bc30f161e5
[ "MIT" ]
1
2020-07-22T15:18:51.000Z
2020-07-22T15:18:51.000Z
tests/test_prepareDeploymentContainerDefinitionsStep.py
AdventielFr/ecs-crd-cli
f1421055be0b2b25e5334aef277d27bc30f161e5
[ "MIT" ]
4
2020-03-24T17:30:40.000Z
2021-06-02T00:23:48.000Z
tests/test_prepareDeploymentContainerDefinitionsStep.py
AdventielFr/ecs-crd-cli
f1421055be0b2b25e5334aef277d27bc30f161e5
[ "MIT" ]
2
2019-09-24T15:21:56.000Z
2021-07-05T07:25:20.000Z
import pytest from unittest.mock import MagicMock import logging from ecs_crd.canaryReleaseInfos import CanaryReleaseInfos from ecs_crd.prepareDeploymentContainerDefinitionsStep import PrepareDeploymentContainerDefinitionsStep from ecs_crd.canaryReleaseInfos import ScaleInfos logger = logging.Logger('mock') infos = C...
30.54359
103
0.684184
0
0
0
0
0
0
0
0
978
0.164204
a7fef4c124b33416bb39eb6677220ad02a959e38
4,871
py
Python
Sim/A_star/A_star.py
Chains99/Battlefield-Simulator
9dc209c34aac5160232e47d6799bbe1b1bfcebad
[ "MIT" ]
null
null
null
Sim/A_star/A_star.py
Chains99/Battlefield-Simulator
9dc209c34aac5160232e47d6799bbe1b1bfcebad
[ "MIT" ]
null
null
null
Sim/A_star/A_star.py
Chains99/Battlefield-Simulator
9dc209c34aac5160232e47d6799bbe1b1bfcebad
[ "MIT" ]
null
null
null
from Sim.A_star.heap import node_heap,heapify_down,heapify_up,extract_min,append_node from math import inf from math import pow # Recibe x, y componentes de la matriz y devuelve la distancia euclideana entre ellos def euclidean_distance(x, y): distance = pow(x[0] - y[0], 2) + pow(x[1] - y[1], 2) distance = p...
31.836601
148
0.624512
0
0
819
0.168138
0
0
0
0
1,574
0.323137
a7ff7c5a80c329a083ab577506e02644e8986047
919
py
Python
setup.py
danielcliu/youtube-transcript-channel-api
3102c23379ad86231374b4763716310890133553
[ "MIT" ]
7
2020-10-21T08:55:38.000Z
2021-03-22T02:53:20.000Z
setup.py
danielcliu/youtube-transcript-channel-api
3102c23379ad86231374b4763716310890133553
[ "MIT" ]
3
2021-06-02T12:30:15.000Z
2022-02-11T12:46:13.000Z
setup.py
danielcliu/youtube-transcript-channel-api
3102c23379ad86231374b4763716310890133553
[ "MIT" ]
1
2021-03-25T20:03:36.000Z
2021-03-25T20:03:36.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="youtube-channel-transcript-api", # Replace with your own username version="0.0.1", author="Daniel Liu", author_email="[email protected]", description="A python package the utilizes the You...
32.821429
126
0.669206
0
0
0
0
0
0
0
0
482
0.524483
c50026f8c76e0a37813e1e12579a0e280470bcd9
1,252
py
Python
51-100/67.py
yshshadow/Leetcode
5097f69bb0050d963c784d6bc0e88a7e871568ed
[ "MIT" ]
null
null
null
51-100/67.py
yshshadow/Leetcode
5097f69bb0050d963c784d6bc0e88a7e871568ed
[ "MIT" ]
null
null
null
51-100/67.py
yshshadow/Leetcode
5097f69bb0050d963c784d6bc0e88a7e871568ed
[ "MIT" ]
null
null
null
# Given two binary strings, return their sum (also a binary string). # # For example, # a = "11" # b = "1" # Return "100". class Solution: def addBinary(self, a, b): """ :type a: str :type b: str :rtype: str """ la = len(a) lb = len(b) if la >= lb: ...
23.185185
68
0.384185
1,050
0.838658
0
0
0
0
0
0
245
0.195687
c5013b78c012ef81d3fc817c0e0956eb0e420741
2,761
py
Python
src/mds/query.py
phs-rcg/metadata-service
227ab79f1d8eadc3265cdb0c0bfcfc54db1da3b8
[ "Apache-2.0" ]
10
2020-04-28T10:20:02.000Z
2021-11-01T22:20:10.000Z
src/mds/query.py
phs-rcg/metadata-service
227ab79f1d8eadc3265cdb0c0bfcfc54db1da3b8
[ "Apache-2.0" ]
23
2020-02-04T22:36:02.000Z
2022-03-24T18:26:49.000Z
src/mds/query.py
phs-rcg/metadata-service
227ab79f1d8eadc3265cdb0c0bfcfc54db1da3b8
[ "Apache-2.0" ]
6
2020-01-14T20:44:50.000Z
2022-02-15T22:17:14.000Z
from fastapi import HTTPException, Query, APIRouter from starlette.requests import Request from starlette.status import HTTP_404_NOT_FOUND from .models import db, Metadata mod = APIRouter() @mod.get("/metadata") async def search_metadata( request: Request, data: bool = Query( False, descript...
27.61
88
0.574067
0
0
0
0
2,498
0.904745
2,442
0.884462
1,294
0.468671
c5013dd528c7dae240161ed939f71c7b9ea2e1ef
695
py
Python
src/RTmission/storeinfo/forms.py
shehabkotb/RTmission_backend
90afb06e7d290e934e3e5f77e789b9c5227805f7
[ "BSD-3-Clause" ]
null
null
null
src/RTmission/storeinfo/forms.py
shehabkotb/RTmission_backend
90afb06e7d290e934e3e5f77e789b9c5227805f7
[ "BSD-3-Clause" ]
null
null
null
src/RTmission/storeinfo/forms.py
shehabkotb/RTmission_backend
90afb06e7d290e934e3e5f77e789b9c5227805f7
[ "BSD-3-Clause" ]
null
null
null
from django import forms from django.core import validators from .models import UserInfo class UserInfoForm(forms.ModelForm): class Meta: model = UserInfo fields = [ 'name', 'email', 'phone', 'age', 'gender', 'comment' ...
22.419355
89
0.539568
602
0.866187
0
0
0
0
0
0
108
0.155396
c50321a74b64b29dc6c4a647f031c7b97620662c
2,668
py
Python
python/54.spiral-matrix.py
kadaliao/leetcode
32170b1c2ba24b3765d22f9379534651080bab26
[ "MIT" ]
null
null
null
python/54.spiral-matrix.py
kadaliao/leetcode
32170b1c2ba24b3765d22f9379534651080bab26
[ "MIT" ]
null
null
null
python/54.spiral-matrix.py
kadaliao/leetcode
32170b1c2ba24b3765d22f9379534651080bab26
[ "MIT" ]
null
null
null
# @lc app=leetcode.cn id=54 lang=python3 # # [54] 螺旋矩阵 # # https://leetcode-cn.com/problems/spiral-matrix/description/ # # algorithms # Medium (43.22%) # Total Accepted: 129.4K # Total Submissions: 284.1K # Testcase Example: '[[1,2,3],[4,5,6],[7,8,9]]' # # 给你一个 m 行 n 列的矩阵 matrix ,请按照 顺时针螺旋顺序 ,返回矩阵中的所有元素。 # # # 示例 ...
24.477064
87
0.467391
1,933
0.694574
0
0
0
0
0
0
862
0.309738
c503e7668b1bca9c8fa3e9b2fad69b66aea6dd54
660
py
Python
tests/test_path.py
Infinidat/infi.gevent-utils
7aef923fb19c2ea7abfe9f8341d2dfcb7b7eebdd
[ "BSD-3-Clause" ]
null
null
null
tests/test_path.py
Infinidat/infi.gevent-utils
7aef923fb19c2ea7abfe9f8341d2dfcb7b7eebdd
[ "BSD-3-Clause" ]
null
null
null
tests/test_path.py
Infinidat/infi.gevent-utils
7aef923fb19c2ea7abfe9f8341d2dfcb7b7eebdd
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from infi.gevent_utils.os import path import sys import os sys.path.append(os.path.dirname(__file__)) from utils import GreenletCalledValidatorTestCase class PathTestCase(GreenletCalledValidatorTestCase): def test_exists(self): self.switch_validator.assert_called(0)...
33
100
0.771212
465
0.704545
0
0
0
0
0
0
84
0.127273
c5041849eb6e20166cf188e490e80a877301469d
2,951
py
Python
download-from-web/govori.py
miroslavradojevic/python-snippets
753e1c15dc077d3bcf5de4fd5d3a675daf0da27c
[ "MIT" ]
null
null
null
download-from-web/govori.py
miroslavradojevic/python-snippets
753e1c15dc077d3bcf5de4fd5d3a675daf0da27c
[ "MIT" ]
null
null
null
download-from-web/govori.py
miroslavradojevic/python-snippets
753e1c15dc077d3bcf5de4fd5d3a675daf0da27c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Download .mp3 podcast files of Radio Belgrade show Govori da bih te video (Speak so that I can see you) # grab all mp3s and save them with parsed name and date to the output folder import requests import os import time import xml.dom.minidom from urllib.parse import urlparse url = "https://www....
36.432099
105
0.597763
0
0
0
0
0
0
0
0
941
0.318875
c506aceeb7ea06c9672cd06b35d80f96cd51d00c
830
py
Python
setup.py
uhlerlab/conditional_independence
aa4b5117b6f24bf39433d427d490312864e9bd69
[ "BSD-3-Clause" ]
4
2021-01-29T20:27:31.000Z
2022-02-01T11:55:33.000Z
setup.py
uhlerlab/conditional_independence
aa4b5117b6f24bf39433d427d490312864e9bd69
[ "BSD-3-Clause" ]
null
null
null
setup.py
uhlerlab/conditional_independence
aa4b5117b6f24bf39433d427d490312864e9bd69
[ "BSD-3-Clause" ]
1
2021-09-12T13:41:21.000Z
2021-09-12T13:41:21.000Z
import setuptools setuptools.setup( name='conditional_independence', version='0.1a.4', description='Parametric and non-parametric conditional independence tests.', long_description='', author='Chandler Squires', author_email='[email protected]', packages=setuptools.find_packages(e...
25.151515
80
0.6
0
0
0
0
0
0
0
0
407
0.490361
c509490417a8c93598f13380d18986bf96b33fd7
200
py
Python
feedbacks/urls.py
mpyatishev/djfeedback
fc1ebf0646d4449371ed80560db7cbb3f7996156
[ "MIT" ]
null
null
null
feedbacks/urls.py
mpyatishev/djfeedback
fc1ebf0646d4449371ed80560db7cbb3f7996156
[ "MIT" ]
null
null
null
feedbacks/urls.py
mpyatishev/djfeedback
fc1ebf0646d4449371ed80560db7cbb3f7996156
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from . import views urlpatterns = patterns( '', url(r'feedback$', views.FeedbackView.as_view(), name='feedback-post') )
15.384615
73
0.655
0
0
0
0
0
0
0
0
52
0.26
c5095d645afe3699b5e0ecd4c38a1042890d0c0e
6,466
py
Python
pygeoapi/provider/mongo.py
paul121/pygeoapi
21c4d36a408f510ac83ff6c1d56932338ddb6d6e
[ "MIT" ]
null
null
null
pygeoapi/provider/mongo.py
paul121/pygeoapi
21c4d36a408f510ac83ff6c1d56932338ddb6d6e
[ "MIT" ]
null
null
null
pygeoapi/provider/mongo.py
paul121/pygeoapi
21c4d36a408f510ac83ff6c1d56932338ddb6d6e
[ "MIT" ]
1
2021-10-02T14:04:20.000Z
2021-10-02T14:04:20.000Z
# ================================================================= # # Authors: Timo Tuunanen <[email protected]> # # Copyright (c) 2019 Timo Tuunanen # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to de...
35.333333
79
0.604547
4,844
0.749149
0
0
0
0
0
0
2,756
0.42623
c509a2151c61ed3015af0423248b9cd0ce672927
1,975
py
Python
examples/ecs/server_interface.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
43
2018-12-19T08:39:15.000Z
2021-07-21T02:45:43.000Z
examples/ecs/server_interface.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
11
2019-03-17T13:28:56.000Z
2020-09-23T23:57:50.000Z
examples/ecs/server_interface.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
47
2018-12-19T05:14:25.000Z
2022-03-19T15:28:30.000Z
# -*-coding:utf-8 -*- from openstack import connection # create connection username = "xxxxxx" password = "xxxxxx" projectId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx" # tenant ID userDomainId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx" # user account ID auth_url = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx" # endpoint url conn = connection....
32.377049
75
0.671392
0
0
0
0
0
0
0
0
407
0.206076
c50a6cdccc88ffe721b0e07a35e407563cda966e
9,060
py
Python
sdk/python/pulumi_google_native/dlp/v2/stored_info_type.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/dlp/v2/stored_info_type.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/dlp/v2/stored_info_type.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# 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...
45.757576
294
0.663135
8,621
0.951545
0
0
6,427
0.709382
0
0
3,862
0.426269
c50a6f36d8c6b2d26bcac12eab8fe5a236ca18f3
7,795
py
Python
python/GafferSceneUI/SceneHistoryUI.py
pier-robot/gaffer
9267f2ba3822b14430d8a283c745261110b0f570
[ "BSD-3-Clause" ]
null
null
null
python/GafferSceneUI/SceneHistoryUI.py
pier-robot/gaffer
9267f2ba3822b14430d8a283c745261110b0f570
[ "BSD-3-Clause" ]
null
null
null
python/GafferSceneUI/SceneHistoryUI.py
pier-robot/gaffer
9267f2ba3822b14430d8a283c745261110b0f570
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2019, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
31.946721
109
0.710969
0
0
0
0
0
0
0
0
2,276
0.291982
c50ac3b029d23e93f95a2998c1cb8c9b33f3b8ee
294
py
Python
core/middleware/scheduler.py
jiangxuewen16/hq-crawler
f03ec1e454513307e335943f224f4d927eaf2bbf
[ "MIT" ]
1
2021-02-25T08:33:40.000Z
2021-02-25T08:33:40.000Z
core/middleware/scheduler.py
jiangxuewen16/hq-crawler
f03ec1e454513307e335943f224f4d927eaf2bbf
[ "MIT" ]
null
null
null
core/middleware/scheduler.py
jiangxuewen16/hq-crawler
f03ec1e454513307e335943f224f4d927eaf2bbf
[ "MIT" ]
2
2021-03-08T07:25:16.000Z
2021-12-07T15:28:02.000Z
from django.utils.deprecation import MiddlewareMixin from django.utils.autoreload import logger class Scheduler(MiddlewareMixin): def process_request(self, request): pass # logger.info(request) def process_response(self, request, response): return response
21
52
0.731293
194
0.659864
0
0
0
0
0
0
22
0.07483
c50d8c67882d7ef410bf79b36de881a95ed1d06e
631
py
Python
python/cw/letterfreq2.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
7
2016-01-03T19:42:07.000Z
2018-10-23T14:03:12.000Z
python/cw/letterfreq2.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
null
null
null
python/cw/letterfreq2.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
1
2018-03-09T08:52:01.000Z
2018-03-09T08:52:01.000Z
#!/usr/bin/env python from __future__ import division import sys from string import ascii_lowercase with open(sys.argv[1]) as f: data = f.read().splitlines() d = {} for line in data: for letter in line: letter = letter.lower() if letter not in ascii_lowercase+' ': continue ...
21.033333
55
0.557845
0
0
0
0
0
0
0
0
42
0.066561
c50e54be42b3e46e041c3408bc115beca68acf17
946
py
Python
function/python/brightics/function/extraction/test/label_encoder_test.py
GSByeon/studio
782cf484541c6d68e1451ff6a0d3b5dc80172664
[ "Apache-2.0" ]
null
null
null
function/python/brightics/function/extraction/test/label_encoder_test.py
GSByeon/studio
782cf484541c6d68e1451ff6a0d3b5dc80172664
[ "Apache-2.0" ]
null
null
null
function/python/brightics/function/extraction/test/label_encoder_test.py
GSByeon/studio
782cf484541c6d68e1451ff6a0d3b5dc80172664
[ "Apache-2.0" ]
1
2020-11-19T06:44:15.000Z
2020-11-19T06:44:15.000Z
import unittest from brightics.function.extraction.encoder import label_encoder, \ label_encoder_model from brightics.common.datasets import load_iris import random def get_iris_randomgroup(): df = load_iris() random_group1 = [] random_group2 = [] random_group2_map = {1:'A', 2:'B'} for i in ra...
30.516129
101
0.684989
389
0.411205
0
0
0
0
0
0
111
0.117336
c510311a203699e5c3e0a6d1d76232cf2598509a
4,629
py
Python
data/query-with-params/parameter_supported_query_results.py
samelamin/setup
73f7807ad1bd37bfc7e7021c8c71f9ef34c8b9b4
[ "BSD-2-Clause" ]
7
2021-08-20T22:48:39.000Z
2022-01-29T04:07:43.000Z
redash_parameter_supported_query_results_query_runner/parameter_supported_query_results.py
ariarijp/redash-parameter-supported-query-results-query-runner
09e688c2be91354a8be76051b9a8e27c4cde5e4c
[ "BSD-2-Clause" ]
null
null
null
redash_parameter_supported_query_results_query_runner/parameter_supported_query_results.py
ariarijp/redash-parameter-supported-query-results-query-runner
09e688c2be91354a8be76051b9a8e27c4cde5e4c
[ "BSD-2-Clause" ]
null
null
null
import hashlib import json import logging import re import sqlite3 from typing import List, Optional, Tuple import pystache from redash.models import Query, User from redash.query_runner import TYPE_STRING, guess_type, register from redash.query_runner.query_results import Results, _load_query, create_table from reda...
29.864516
110
0.62022
2,069
0.446965
0
0
87
0.018795
0
0
476
0.10283
c5116b08a2ee4021d6233bcbecfc48a6ba698572
1,111
py
Python
notes/migrations/0005_auto_20160130_0015.py
nicbou/markdown-notes
a5d398b032b7a837909b684bb3121c7b68f49e7b
[ "CC0-1.0" ]
121
2015-04-11T20:59:48.000Z
2021-05-12T02:15:36.000Z
notes/migrations/0005_auto_20160130_0015.py
nicbou/markdown-notes
a5d398b032b7a837909b684bb3121c7b68f49e7b
[ "CC0-1.0" ]
56
2015-08-10T08:16:35.000Z
2022-03-11T23:12:33.000Z
notes/migrations/0005_auto_20160130_0015.py
nicbou/markdown-notes
a5d398b032b7a837909b684bb3121c7b68f49e7b
[ "CC0-1.0" ]
32
2015-08-11T02:50:44.000Z
2021-09-02T10:15:00.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.db.models.deletion from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('notes', ...
30.861111
126
0.591359
936
0.842484
0
0
0
0
0
0
135
0.121512
c5118009a2cf132e4b87f2f696c2abdd36248815
5,479
py
Python
Coursework_02/Q3/airport/scenarios.py
eBe02/COMP0037-21_22
c0872548ff4b653e3f786734666838813db2149a
[ "Apache-2.0" ]
null
null
null
Coursework_02/Q3/airport/scenarios.py
eBe02/COMP0037-21_22
c0872548ff4b653e3f786734666838813db2149a
[ "Apache-2.0" ]
null
null
null
Coursework_02/Q3/airport/scenarios.py
eBe02/COMP0037-21_22
c0872548ff4b653e3f786734666838813db2149a
[ "Apache-2.0" ]
null
null
null
''' Created on 25 Jan 2022 @author: ucacsjj ''' from .airport_map import MapCellType from .airport_map import AirportMap # This file contains a set of functions which build different maps. Only # two of these are needed for the coursework. Others are ones which were # used for developing and testing the algorithms a...
32.613095
94
0.686804
0
0
0
0
0
0
0
0
1,075
0.196204
c511d2974df6ea839e2f08eec91ae6a38dd211bf
332
py
Python
setup.py
abkfenris/adm_locations
266915ab7e7559bd4c66d4090bcd69a2a93ab563
[ "MIT" ]
null
null
null
setup.py
abkfenris/adm_locations
266915ab7e7559bd4c66d4090bcd69a2a93ab563
[ "MIT" ]
null
null
null
setup.py
abkfenris/adm_locations
266915ab7e7559bd4c66d4090bcd69a2a93ab563
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='csv_locate', version='0.1', py_modules=['csv_to_json'], install_requires=[ 'click', 'colorama', 'geocoder', 'geojson', 'jinja2', ], entry_points=''' [console_scripts] csv_locate=csv_to_json:convert...
17.473684
38
0.539157
0
0
0
0
0
0
0
0
150
0.451807
c511e84604115905acf9bda9b841b2099fbb06a7
1,600
py
Python
app.py
LuizGGoncalves/Corona-Graphics-Python
e2374abcff6e67f226a3e8f3d5a3dec5b4f2a5a8
[ "MIT" ]
null
null
null
app.py
LuizGGoncalves/Corona-Graphics-Python
e2374abcff6e67f226a3e8f3d5a3dec5b4f2a5a8
[ "MIT" ]
null
null
null
app.py
LuizGGoncalves/Corona-Graphics-Python
e2374abcff6e67f226a3e8f3d5a3dec5b4f2a5a8
[ "MIT" ]
null
null
null
from flask import Flask from Config import app_config, app_active from flask import render_template from flask_sqlalchemy import SQLAlchemy import Forms import LDB import gGraficos config = app_config[app_active] def create_app(config_name): app = Flask(__name__, template_folder='templates') app.secret_key...
34.782609
134
0.59
0
0
0
0
1,006
0.62875
0
0
182
0.11375
c5137e8834c331e474c1e9e3483b2dcf01683c8b
4,852
py
Python
kitti_meters/frustum.py
HaochengWan/PVT
95818d303ee63084f044a057344b2049d1fa4492
[ "MIT" ]
27
2021-12-14T02:10:37.000Z
2022-03-31T09:54:09.000Z
kitti_meters/frustum.py
HaochengWan/PVT
95818d303ee63084f044a057344b2049d1fa4492
[ "MIT" ]
3
2022-02-20T09:42:01.000Z
2022-03-21T07:32:46.000Z
kitti_meters/frustum.py
HaochengWan/PVT
95818d303ee63084f044a057344b2049d1fa4492
[ "MIT" ]
2
2021-12-30T05:43:41.000Z
2022-02-15T13:47:21.000Z
import numpy as np import torch from modules.frustum import get_box_corners_3d from kitti_meters.util import get_box_iou_3d __all__ = ['MeterFrustumKitti'] class MeterFrustumKitti: def __init__(self, num_heading_angle_bins, num_size_templates, size_templates, class_name_to_class_id, metric='iou_...
54.516854
117
0.650041
4,692
0.967024
0
0
0
0
0
0
493
0.101608