hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
45964458a6856b2a86f4f46cc5817ea558997e6a
65
py
Python
tests/test_version_cmd.py
ixje/app-neo3
079b178017684958cdf66fdf144f317ea37d65ae
[ "MIT" ]
null
null
null
tests/test_version_cmd.py
ixje/app-neo3
079b178017684958cdf66fdf144f317ea37d65ae
[ "MIT" ]
null
null
null
tests/test_version_cmd.py
ixje/app-neo3
079b178017684958cdf66fdf144f317ea37d65ae
[ "MIT" ]
null
null
null
def test_version(cmd): assert cmd.get_version() == (0, 1, 0)
21.666667
41
0.630769
fd1609990ef1071c6f0ff02bf1497be19ed39662
11,531
py
Python
api/anubis/views/admin/courses.py
ShubhamGG/Anubis
2c538ef258a1edf5463596a33bc66caa2ef7e35b
[ "MIT" ]
null
null
null
api/anubis/views/admin/courses.py
ShubhamGG/Anubis
2c538ef258a1edf5463596a33bc66caa2ef7e35b
[ "MIT" ]
null
null
null
api/anubis/views/admin/courses.py
ShubhamGG/Anubis
2c538ef258a1edf5463596a33bc66caa2ef7e35b
[ "MIT" ]
null
null
null
from flask import Blueprint from sqlalchemy.exc import IntegrityError, DataError from anubis.models import db, Course, TAForCourse, ProfessorForCourse, User, InCourse from anubis.utils.auth.http import require_admin, require_superuser from anubis.utils.auth.user import current_user from anubis.utils.data import row2di...
26.147392
85
0.661695
b3c8adab475095026cb1cc9187c978d84d66a6f1
20,351
py
Python
nilmtk/disaggregate/hart_85.py
raktim2015/nilmtk
2e5ffc32a52df2be48a6b7e464f41a8dbb7981ff
[ "Apache-2.0" ]
1
2019-02-28T16:44:28.000Z
2019-02-28T16:44:28.000Z
nilmtk/disaggregate/hart_85.py
raktim2015/nilmtk
2e5ffc32a52df2be48a6b7e464f41a8dbb7981ff
[ "Apache-2.0" ]
null
null
null
nilmtk/disaggregate/hart_85.py
raktim2015/nilmtk
2e5ffc32a52df2be48a6b7e464f41a8dbb7981ff
[ "Apache-2.0" ]
1
2021-05-15T16:18:28.000Z
2021-05-15T16:18:28.000Z
from __future__ import print_function, division from collections import OrderedDict, deque import pandas as pd from nilmtk.feature_detectors.cluster import hart85_means_shift_cluster from nilmtk.feature_detectors.steady_states import find_steady_states_transients from nilmtk.disaggregate import Disaggregator # Fix t...
42.48643
123
0.555599
d0df4c09c876658930e2b85c18d30c810b9b9beb
933
py
Python
uninas/modules/activations/common.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
18
2020-11-22T16:03:08.000Z
2022-03-15T12:11:46.000Z
uninas/modules/activations/common.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
2
2022-01-04T08:10:17.000Z
2022-01-05T08:13:14.000Z
uninas/modules/activations/common.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
6
2021-03-08T07:08:52.000Z
2022-02-24T12:00:43.000Z
""" common activation functions """ import torch.nn as nn from uninas.register import Register @Register.act_fun() def identity(inplace=False) -> nn.Module: return nn.Identity() @Register.act_fun() def skip(inplace=False) -> nn.Module: return nn.Identity() @Register.act_fun() def softmax(inplace=False) -...
17.942308
42
0.709539
ad5564a263937df6e89d1158885e68380e2a9fdc
345
py
Python
hello-world/hello-world.py
this-should-never-happen/this-should-never-happen
3641622934e6f187a6e8a7ea393119cd1498acea
[ "Apache-2.0" ]
5
2017-09-07T01:06:31.000Z
2019-04-16T22:03:11.000Z
hello-world/hello-world.py
this-should-never-happen/this-should-never-happen
3641622934e6f187a6e8a7ea393119cd1498acea
[ "Apache-2.0" ]
1
2017-09-04T03:09:03.000Z
2017-09-04T03:09:03.000Z
hello-world/hello-world.py
this-should-never-happen/this-should-never-happen
3641622934e6f187a6e8a7ea393119cd1498acea
[ "Apache-2.0" ]
2
2017-09-30T02:01:59.000Z
2019-12-03T22:23:37.000Z
#!/usr/bin/python class Data(object): """__name__""" def __init__(__main__): Hello = None World = None if (globals()[Data.__doc__] == ''.join(Data.__init__.__code__.co_varnames[ :Data.__init__.__code__.co_argcount])): print(' '.join(Data.__init__.__code__.co_varnames[ Data.__init__._...
21.5625
52
0.663768
881b456b6f2f3a641d5fc0ee7ce1b868704a5d7e
136
py
Python
cli/jobs/basics/src/hello-git.py
jplummer01/azureml-examples
6a073d157f21060312941f71cfbcf25d0c541183
[ "MIT" ]
null
null
null
cli/jobs/basics/src/hello-git.py
jplummer01/azureml-examples
6a073d157f21060312941f71cfbcf25d0c541183
[ "MIT" ]
null
null
null
cli/jobs/basics/src/hello-git.py
jplummer01/azureml-examples
6a073d157f21060312941f71cfbcf25d0c541183
[ "MIT" ]
null
null
null
from pygit2 import Repository try: print(Repository(".").head.shorthand) except: print("Repository('.').head.shorthand error")
19.428571
49
0.705882
43f53773f77d4acb582d0d4ba9e2995e57364a06
11,579
py
Python
src/genie/libs/parser/iosxe/tests/ShowBgpAllNeighborsAdvertisedRoutes/cli/equal/golden_output2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowBgpAllNeighborsAdvertisedRoutes/cli/equal/golden_output2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowBgpAllNeighborsAdvertisedRoutes/cli/equal/golden_output2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
null
null
null
expected_output = { "vrf": { "default": { "neighbor": { "10.106.102.3": { "address_family": { "ipv4 multicast": { "advertised": { "10.9.1.0/24": { ...
51.462222
117
0.195699
ce9f47af53f068be90756f4a1b47ba5e3d411668
174
py
Python
detector/utils/__init__.py
dingjiangang/light-head-rcnn
7ab24c1655b9872666b163fe36fd063aef359f2e
[ "MIT" ]
null
null
null
detector/utils/__init__.py
dingjiangang/light-head-rcnn
7ab24c1655b9872666b163fe36fd063aef359f2e
[ "MIT" ]
null
null
null
detector/utils/__init__.py
dingjiangang/light-head-rcnn
7ab24c1655b9872666b163fe36fd063aef359f2e
[ "MIT" ]
null
null
null
from .box_utils import prune_outside_window, clip_by_window,\ batch_decode, encode, iou, decode, area, intersection from .nms import batch_multiclass_non_max_suppression
43.5
61
0.833333
ca06798ae39e1bb26d1eab54fb03a276166cb425
10,197
py
Python
src/benchmark.py
snakers4/pyarmor
cba32d36ceb8129b54e9fd610f5fcc7fa0a0b0af
[ "Python-2.0", "OLDAP-2.7" ]
1,463
2017-09-30T02:46:56.000Z
2022-03-30T15:11:05.000Z
src/benchmark.py
JangKyumin/pyarmor
a9c2535e097467ab58bf52de78b487fef87c5504
[ "Python-2.0", "OLDAP-2.7" ]
702
2016-12-02T23:47:21.000Z
2022-03-31T08:14:00.000Z
src/benchmark.py
JangKyumin/pyarmor
a9c2535e097467ab58bf52de78b487fef87c5504
[ "Python-2.0", "OLDAP-2.7" ]
208
2018-01-17T05:55:55.000Z
2022-03-29T18:27:47.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # ############################################################# # # # Copyright @ 2013 - 2017 Dashingsoft corp. # # All rights reserved. # # ...
26.624021
78
0.612827
4e35efcf90e4f1630d15a7d4cd8e32c4ad85a869
11,106
py
Python
mlens/ensemble/temporal.py
mehrdad-shokri/mlens
6cbc11354b5f9500a33d9cefb700a1bba9d3199a
[ "MIT" ]
760
2017-03-13T10:11:45.000Z
2022-03-30T20:59:20.000Z
mlens/ensemble/temporal.py
rahulsaini/mlens
6cbc11354b5f9500a33d9cefb700a1bba9d3199a
[ "MIT" ]
115
2017-01-18T22:10:33.000Z
2022-03-17T12:42:34.000Z
mlens/ensemble/temporal.py
rahulsaini/mlens
6cbc11354b5f9500a33d9cefb700a1bba9d3199a
[ "MIT" ]
96
2017-03-13T10:12:48.000Z
2022-02-23T17:12:39.000Z
"""ML-ENSEMBLE :author: Sebastian Flennerhag :copyright: 2017-2018 :licence: MIT Temporal ensemble class. Fully integrable with Scikit-learn. """ from __future__ import division from .base import BaseEnsemble from ..index import TemporalIndex, FullIndex class TemporalEnsemble(BaseEnsemble): r"""Temporal ense...
40.093863
85
0.609941
ae4c3dd53948846840661bcedf9b4e0fd17deeeb
3,881
py
Python
powershell_kernel/powershell_proxy.py
VasuBhog/jupyter-powershell
a69b8ee9667f95e80ef09cc538de7884efc0365f
[ "MIT" ]
114
2016-02-09T04:20:10.000Z
2022-03-09T22:52:24.000Z
powershell_kernel/powershell_proxy.py
VasuBhog/jupyter-powershell
a69b8ee9667f95e80ef09cc538de7884efc0365f
[ "MIT" ]
34
2016-06-22T16:10:53.000Z
2020-12-11T01:19:11.000Z
powershell_kernel/powershell_proxy.py
VasuBhog/jupyter-powershell
a69b8ee9667f95e80ef09cc538de7884efc0365f
[ "MIT" ]
28
2016-06-22T16:03:21.000Z
2022-03-26T18:08:39.000Z
import threading try: import queue except ImportError: import Queue as queue from threading import Timer, Lock from time import sleep class ReplReader(threading.Thread): def __init__(self, repl): super(ReplReader, self).__init__() self.repl = repl self.daemon = True self.que...
33.17094
105
0.569441
eccbf7f386a7fb6585eaaa989f99dfa691b23b9d
2,256
py
Python
ceph_deploy/gatherkeys.py
zidarsk8/ceph-deploy
e286d7d0cf6e161708909c91ea7f99aacf08c7c4
[ "MIT" ]
1
2018-01-03T03:13:24.000Z
2018-01-03T03:13:24.000Z
ceph_deploy/gatherkeys.py
zidarsk8/ceph-deploy
e286d7d0cf6e161708909c91ea7f99aacf08c7c4
[ "MIT" ]
null
null
null
ceph_deploy/gatherkeys.py
zidarsk8/ceph-deploy
e286d7d0cf6e161708909c91ea7f99aacf08c7c4
[ "MIT" ]
null
null
null
import os.path import logging from .cliutil import priority from . import hosts LOG = logging.getLogger(__name__) def fetch_file(args, frompath, topath, _hosts): if os.path.exists(topath): LOG.debug('Have %s', topath) return True else: for hostname in _hosts: LOG.debug('...
25.066667
79
0.537234
53708cdbd4d6ccf80a8d9cd9d2c8497cef8067b0
15,308
py
Python
python/ccxt/async_support/btcbox.py
bmschwartz/ccxt
9197b497ce765251efcd3ca2e750f78edd7c20c6
[ "MIT" ]
2
2019-07-15T22:39:54.000Z
2021-05-15T16:13:00.000Z
python/ccxt/async_support/btcbox.py
bmschwartz/ccxt
9197b497ce765251efcd3ca2e750f78edd7c20c6
[ "MIT" ]
3
2021-06-26T15:32:50.000Z
2021-06-28T12:07:01.000Z
python/ccxt/async_support/btcbox.py
bmschwartz/ccxt
9197b497ce765251efcd3ca2e750f78edd7c20c6
[ "MIT" ]
2
2020-09-08T01:41:24.000Z
2021-04-30T00:07:59.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
39.658031
170
0.532009
51e0251319938e5451326d1ec5a6cb80efbe706b
12,371
py
Python
openapps/userialbridge/userialbridge_tx_serial.py
renfernand/openwsn-fw
1d85821f455feae6f0bb4d72bdbd2c3f1a5379de
[ "BSD-3-Clause" ]
null
null
null
openapps/userialbridge/userialbridge_tx_serial.py
renfernand/openwsn-fw
1d85821f455feae6f0bb4d72bdbd2c3f1a5379de
[ "BSD-3-Clause" ]
null
null
null
openapps/userialbridge/userialbridge_tx_serial.py
renfernand/openwsn-fw
1d85821f455feae6f0bb4d72bdbd2c3f1a5379de
[ "BSD-3-Clause" ]
null
null
null
import serial import threading import traceback import time import logging import socket log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) ch = logging.StreamHandler() ch.setLevel(logging.INFO) formatter = logging.Formatter('%(asctime)s - %(message)s') ch.setFormatter(formatter) log.addHandler(ch) #======...
37.716463
116
0.480317
c0ff35d293d3e7af76a836e6a960e5d881d845b8
11,794
py
Python
preprocessing/annotate_variants/annot_variants.py
keoughkath/AlleleAnalyzer
854f16edf3053e9319c73a23cb83b93934ad0cd5
[ "MIT" ]
11
2018-09-21T16:49:19.000Z
2022-03-03T19:29:16.000Z
preprocessing/annotate_variants/annot_variants.py
keoughkath/ExcisionFinder
a33adc53f515fe5f00e519b703dd9abf006b2804
[ "MIT" ]
26
2018-03-01T04:58:17.000Z
2018-08-30T20:49:30.000Z
preprocessing/annotate_variants/annot_variants.py
keoughkath/AlleleAnalyzer
854f16edf3053e9319c73a23cb83b93934ad0cd5
[ "MIT" ]
1
2020-01-28T20:06:02.000Z
2020-01-28T20:06:02.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ annot_variants.py generates a dataframe that stores annotations for each variant in the specified locus and genome that tell us whether the variant generates allele-specific sgRNA sites for the Cas variety/varieties specified. Written in Python v 3.6.1. Kathleen Keou...
33.988473
153
0.614974
1f1a69b171e021487051c4be04265c9272f44e8f
539
py
Python
Python/ArmstrongNumber.py
notakbuzz/All_Program_helper
f87aa346f1536854912c00989aab63d0eaa68cc9
[ "MIT" ]
16
2021-10-03T11:15:49.000Z
2021-10-31T04:40:24.000Z
Python/ArmstrongNumber.py
notakbuzz/All_Program_helper
f87aa346f1536854912c00989aab63d0eaa68cc9
[ "MIT" ]
232
2021-10-02T14:51:43.000Z
2021-11-14T08:23:27.000Z
Python/ArmstrongNumber.py
notakbuzz/All_Program_helper
f87aa346f1536854912c00989aab63d0eaa68cc9
[ "MIT" ]
166
2021-10-02T13:56:34.000Z
2021-10-31T17:56:34.000Z
# Python Program to ask the user for a range and display all Armstrong numbers in that interval # take input from the user lower = int(input("Enter lower range: ")) upper = int(input("Enter upper range: ")) for num in range(lower,upper + 1): # initialize sum sum = 0 ...
26.95
99
0.525046
87dc1d293f67f137dca76cf9419eaa94e6ab8c05
531
py
Python
tools/tileset/tileset.py
stoiandan/OpenPokemonRed
3ce2483d4620255c7fe182012f2821be3121c375
[ "MIT" ]
204
2020-11-04T07:32:28.000Z
2022-01-16T20:39:22.000Z
tools/tileset/tileset.py
stoiandan/OpenPokemonRed
3ce2483d4620255c7fe182012f2821be3121c375
[ "MIT" ]
11
2020-10-26T07:53:24.000Z
2021-01-07T19:03:09.000Z
tools/tileset/tileset.py
stoiandan/OpenPokemonRed
3ce2483d4620255c7fe182012f2821be3121c375
[ "MIT" ]
14
2020-11-21T22:02:28.000Z
2022-02-15T15:26:55.000Z
import cv2 import os import shutil if os.path.exists("result"): shutil.rmtree("result") os.mkdir("result") # https://www.spriters-resource.com/fullview/63033/ img = cv2.imread("tilesets.png") x0 = 2 width = 16 def height(i: int) -> int: if i == 18: return 2 return 6 def calc_y0(i: int) -> int: ...
17.129032
58
0.59887
e24e3030594663fc3dae8c2faf418de5aadfe661
69,786
py
Python
nuagevsdsim/common/utils.py
pdellaert/vspk-sim
459a84366a9bdde82d74aca18ea866e3d55d62ee
[ "BSD-3-Clause" ]
null
null
null
nuagevsdsim/common/utils.py
pdellaert/vspk-sim
459a84366a9bdde82d74aca18ea866e3d55d62ee
[ "BSD-3-Clause" ]
null
null
null
nuagevsdsim/common/utils.py
pdellaert/vspk-sim
459a84366a9bdde82d74aca18ea866e3d55d62ee
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # BSD 3-Clause License # # Copyright (c) 2017, Nokia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright no...
45.701375
137
0.647852
140c1fa38ee008f7735f2f13fe8ecc4837780c2e
416
py
Python
contact_form/helpers.py
joebos/django-cbv-contact-form
a4905de7081906af7bb1ceac24a9c3243e07e536
[ "BSD-3-Clause" ]
1
2015-10-05T01:25:36.000Z
2015-10-05T01:25:36.000Z
contact_form/helpers.py
joebos/django-cbv-contact-form
a4905de7081906af7bb1ceac24a9c3243e07e536
[ "BSD-3-Clause" ]
null
null
null
contact_form/helpers.py
joebos/django-cbv-contact-form
a4905de7081906af7bb1ceac24a9c3243e07e536
[ "BSD-3-Clause" ]
null
null
null
try: from ipware.ip import get_ip, get_real_ip except ImportError: raise 'django-cbv-contact-form application required django-ipware package' def get_user_ip(request): """Return user ip :param request: Django request object :return: user ip """ ip = get_real_ip(request) if ip is None:...
21.894737
78
0.637019
072f969dce494cdbabc660adcf5753fe41342c6f
2,019
py
Python
Individual.py
thanhdeku/MFLTGA
03517683d910f1d671db0eb6e352ecf47610cb1f
[ "Apache-2.0" ]
null
null
null
Individual.py
thanhdeku/MFLTGA
03517683d910f1d671db0eb6e352ecf47610cb1f
[ "Apache-2.0" ]
null
null
null
Individual.py
thanhdeku/MFLTGA
03517683d910f1d671db0eb6e352ecf47610cb1f
[ "Apache-2.0" ]
null
null
null
import random import sys from Utils import random_Prufer class Individual(object): def __init__(self, genes, fitness, connector): self.genes = genes self.fitness = fitness self.connector = connector self.unchange = 0 def updateSkillFactor(self,skillFactor): self.skil...
25.556962
108
0.551758
c89e83a8f3f1a6209ee1139928ceeb2fbe41d6ff
573
py
Python
anondolok_library/admin_panel/migrations/0019_auto_20210808_1412.py
Horraira/anondolokLibrary
f80a9f1b620235136bec0794a67882f4cb420d50
[ "MIT" ]
null
null
null
anondolok_library/admin_panel/migrations/0019_auto_20210808_1412.py
Horraira/anondolokLibrary
f80a9f1b620235136bec0794a67882f4cb420d50
[ "MIT" ]
null
null
null
anondolok_library/admin_panel/migrations/0019_auto_20210808_1412.py
Horraira/anondolokLibrary
f80a9f1b620235136bec0794a67882f4cb420d50
[ "MIT" ]
null
null
null
# Generated by Django 3.2.1 on 2021-08-08 08:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('admin_panel', '0018_alter_wish_list_unique_together'), ] operations = [ migrations.AddField( model_name='books', nam...
23.875
64
0.593368
1daea4367da6c0a19efe178a449bf1c2b0a9a1a4
395
py
Python
organizer/organizer/wsgi.py
balusio/task-organizer
23e294d9c4116412dcbc58d76cffdef1fbc0ed16
[ "MIT" ]
null
null
null
organizer/organizer/wsgi.py
balusio/task-organizer
23e294d9c4116412dcbc58d76cffdef1fbc0ed16
[ "MIT" ]
null
null
null
organizer/organizer/wsgi.py
balusio/task-organizer
23e294d9c4116412dcbc58d76cffdef1fbc0ed16
[ "MIT" ]
null
null
null
""" WSGI config for organizer 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/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
00888b38c6e9744d0cd4e9a60913138b132e33a1
10,528
py
Python
superset/dashboards/schemas.py
dylanli073/superset
171514360e8ba821b2343706e74c9a537b76047c
[ "Apache-2.0" ]
2
2020-08-13T15:01:37.000Z
2021-04-08T20:27:09.000Z
superset/dashboards/schemas.py
dylanli073/superset
171514360e8ba821b2343706e74c9a537b76047c
[ "Apache-2.0" ]
62
2020-05-06T22:51:53.000Z
2022-03-28T20:49:17.000Z
superset/dashboards/schemas.py
paulo-amaral/incubator-superset
5e64d65a8b8202b57b7a98275d4d50416211d49b
[ "Apache-2.0" ]
null
null
null
# 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 u...
36.303448
87
0.707067
dee7bc6218af7f5188683be4b140ff471267587d
722
py
Python
stubs/micropython-v1_13-266-esp32/urandom.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_13-266-esp32/urandom.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_13-266-esp32/urandom.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
""" Module: 'urandom' on micropython-v1.13-266-esp32 """ # MCU: {'ver': 'v1.13-266', 'port': 'esp32', 'arch': 'xtensawin', 'sysname': 'esp32', 'release': '1.13.0', 'name': 'micropython', 'mpy': 10757, 'version': '1.13.0', 'machine': 'ESP32 module (spiram) with ESP32', 'build': '266', 'nodename': 'esp32', 'platform': 'e...
20.628571
294
0.560942
dbbee67cae76d2f853ba4c18a1085ccc7acd864d
393
py
Python
LuoguCodes/P2293.py
Anguei/OI-Codes
0ef271e9af0619d4c236e314cd6d8708d356536a
[ "MIT" ]
null
null
null
LuoguCodes/P2293.py
Anguei/OI-Codes
0ef271e9af0619d4c236e314cd6d8708d356536a
[ "MIT" ]
null
null
null
LuoguCodes/P2293.py
Anguei/OI-Codes
0ef271e9af0619d4c236e314cd6d8708d356536a
[ "MIT" ]
null
null
null
import math a=int(input()) b=int(input()) l, r = 0, 1 while r ** a <= b: #while math.pow(r, a) <= b: l = r r *= 2 while l + 1 < r: mid = (l + r) // 2 if mid ** a <= b: #if math.pow(mid, a) + 0.0000000001 <= b: l = mid else: r = mid if l ** a <= b: #if math.pow(l, a) <= b: pri...
17.863636
47
0.468193
6d2c4f5587de860a7b8ebc00b2f002f99e85b2c3
63,748
py
Python
Lib/subprocess.py
odeke-em/cpython
9ceea101c15b499824dc82dbcc5aa5c676898881
[ "PSF-2.0" ]
null
null
null
Lib/subprocess.py
odeke-em/cpython
9ceea101c15b499824dc82dbcc5aa5c676898881
[ "PSF-2.0" ]
null
null
null
Lib/subprocess.py
odeke-em/cpython
9ceea101c15b499824dc82dbcc5aa5c676898881
[ "PSF-2.0" ]
null
null
null
# subprocess - Subprocesses with accessible I/O streams # # For more information about this module, see PEP 324. # # Copyright (c) 2003-2005 by Peter Astrand <astrand@lysator.liu.se> # # Licensed to PSF under a Contributor Agreement. # See http://www.python.org/2.4/license for licensing details. r"""subprocess - Subpr...
38.058507
92
0.575265
a47045e09d9ec5a2138981d63e5a6287e6b49cee
3,825
py
Python
python/cuxfilter/dataframe.py
sean-frye/cuxfilter
e7291b819b01907da142f585112da66f7231d888
[ "Apache-2.0" ]
null
null
null
python/cuxfilter/dataframe.py
sean-frye/cuxfilter
e7291b819b01907da142f585112da66f7231d888
[ "Apache-2.0" ]
null
null
null
python/cuxfilter/dataframe.py
sean-frye/cuxfilter
e7291b819b01907da142f585112da66f7231d888
[ "Apache-2.0" ]
null
null
null
import cudf import pyarrow as pa from typing import Type from .dashboard import DashBoard from .layouts import single_feature from .themes import light from .assets import notebook_assets def read_arrow(source): # print('reading arrow file as arrow table from disk') reader = pa.RecordBatchStreamReader(source...
24.837662
79
0.55268
fa114d5e628becd1999d91a5e97a9eb9f982fb8e
658
py
Python
detection/configs/faster_rcnn_r50_fpn_1x_dota15.py
chandlerbing65nm/PVT
e171519b2a1a44e36ebdf0732f274a190b50ce29
[ "Apache-2.0" ]
null
null
null
detection/configs/faster_rcnn_r50_fpn_1x_dota15.py
chandlerbing65nm/PVT
e171519b2a1a44e36ebdf0732f274a190b50ce29
[ "Apache-2.0" ]
null
null
null
detection/configs/faster_rcnn_r50_fpn_1x_dota15.py
chandlerbing65nm/PVT
e171519b2a1a44e36ebdf0732f274a190b50ce29
[ "Apache-2.0" ]
null
null
null
_base_ = [ '_base_/models/faster_rcnn_r50_fpn_dota15.py', '_base_/datasets/dota15_detection.py', '_base_/schedules/schedule_1x.py', '_base_/default_runtime.py' ] model = dict( # pretrained='pretrained/pvt_small.pth', pretrained='torchvision://resnet50', backbone=dict( type='ResNet', ...
28.608696
74
0.650456
a812fd000c19a99ab3c5cb8b7905ff933eeb5e10
3,297
py
Python
solid_test_case.py
piotrjk/solid_test_framework
9aef87cc41aef20881c25c0ddb4bdfccd1cd77e5
[ "MIT" ]
null
null
null
solid_test_case.py
piotrjk/solid_test_framework
9aef87cc41aef20881c25c0ddb4bdfccd1cd77e5
[ "MIT" ]
null
null
null
solid_test_case.py
piotrjk/solid_test_framework
9aef87cc41aef20881c25c0ddb4bdfccd1cd77e5
[ "MIT" ]
null
null
null
import sys import os import unittest from solid_test_suite import SolidTestResult class SolidTestCase(unittest.TestCase): def get_name(self): return self._testMethodName def get_class(self, full=False): if full: return self.__class__.__name__ return self.__cla...
38.788235
89
0.503488
fc11ea8b217151b0ee15e0c69b3265a3c0f600b7
6,305
py
Python
models/FlowNetS_3x3_Q.py
kairx772/FlowNetPytorch
604bffdf564331b9921efe81640a2a7aa3438a67
[ "MIT" ]
2
2020-12-16T14:44:02.000Z
2021-01-29T06:23:57.000Z
models/FlowNetS_3x3_Q.py
kairx772/FlowNetPytorch
604bffdf564331b9921efe81640a2a7aa3438a67
[ "MIT" ]
null
null
null
models/FlowNetS_3x3_Q.py
kairx772/FlowNetPytorch
604bffdf564331b9921efe81640a2a7aa3438a67
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.nn.init import kaiming_normal_, constant_ from .util_lsq import conv, predict_flow, deconv, crop_like, conv_Q, predict_flow_Q, deconv_Q, ACT_Q from .util_lsq import QuantConvTranspose2d as ConvTrans2d_Q device = torch.device("cuda" if torch.cuda.is_available() else "cpu") ...
45.035714
102
0.659635
a5c0bde9514ad09eb51d8ec780baaef66fe56b95
6,505
py
Python
kmeans_for_anchors.py
SekiroRong/YOLOP
e59628925dfaadfa549790cd0cf1c8a7e1139a2c
[ "MIT" ]
1
2022-02-22T04:17:17.000Z
2022-02-22T04:17:17.000Z
kmeans_for_anchors.py
SekiroRong/YOLOP
e59628925dfaadfa549790cd0cf1c8a7e1139a2c
[ "MIT" ]
null
null
null
kmeans_for_anchors.py
SekiroRong/YOLOP
e59628925dfaadfa549790cd0cf1c8a7e1139a2c
[ "MIT" ]
null
null
null
#-------------------------------------------------------------------------------------------------# # kmeans虽然会对数据集中的框进行聚类,但是很多数据集由于框的大小相近,聚类出来的9个框相差不大, # 这样的框反而不利于模型的训练。因为不同的特征层适合不同大小的先验框,越浅的特征层适合越大的先验框 # 原始网络的先验框已经按大中小比例分配好了,不进行聚类也会有非常好的效果。 #------------------------------------------------------------------...
35.939227
100
0.347425
9c86da69d38f39667ca3b27e9646b9a4aa3cb10f
17,902
py
Python
google/cloud/aiplatform_v1/services/pipeline_service/transports/grpc.py
geraint0923/python-aiplatform
f40f32289e1fbeb93b35e4b66f65d15528a6481c
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1/services/pipeline_service/transports/grpc.py
geraint0923/python-aiplatform
f40f32289e1fbeb93b35e4b66f65d15528a6481c
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1/services/pipeline_service/transports/grpc.py
geraint0923/python-aiplatform
f40f32289e1fbeb93b35e4b66f65d15528a6481c
[ "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 or...
44.755
109
0.652218
dcb393ab9a1e1f0e6f5bedceb17a26cc8bd34f68
332
py
Python
app/event/migrations/0029_merge_20160819_1158.py
Sovol2018/sovolo
54250e42b4af3391d2f99690f45b93ab240563c2
[ "MIT" ]
2
2017-06-06T11:34:49.000Z
2017-10-24T13:09:50.000Z
app/event/migrations/0029_merge_20160819_1158.py
Sovol2018/sovolo
54250e42b4af3391d2f99690f45b93ab240563c2
[ "MIT" ]
346
2016-08-09T20:50:57.000Z
2018-08-28T06:52:17.000Z
app/event/migrations/0029_merge_20160819_1158.py
hejob/sovolo
8b73253d7bf0427c7ae0ebb6d8e3d70e118e8427
[ "MIT" ]
3
2017-11-27T14:07:57.000Z
2018-08-13T15:51:01.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-08-19 02:58 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('event', '0025_auto_20160819_1109'), ('event', '0028_auto_20160819_1009'), ] operation...
19.529412
46
0.659639
7b662b0468ae5c36429890cf66f5f9060f905ad0
4,083
py
Python
benchmark/startCirq1409.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq1409.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq1409.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=5 # total number=55 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
39.259615
77
0.654666
0b401573e9077f3c6783b633593f84277e6cb597
88
py
Python
basic.py
technotekr/pywebview_example-1
4d04ea1b10aec422e82b8ae4fed022b9f54dd611
[ "MIT" ]
null
null
null
basic.py
technotekr/pywebview_example-1
4d04ea1b10aec422e82b8ae4fed022b9f54dd611
[ "MIT" ]
null
null
null
basic.py
technotekr/pywebview_example-1
4d04ea1b10aec422e82b8ae4fed022b9f54dd611
[ "MIT" ]
null
null
null
import webview webview.create_window('TechNote', 'https://technote.kr') webview.start()
22
56
0.772727
4ceb102ea4786bfcf77fee3fb4cac0544db403b8
2,333
py
Python
analysis/extraction.py
nverhaaren/istanbul-game
9e5051346dda8d8143201eb4548b2800fc3eb67a
[ "MIT" ]
null
null
null
analysis/extraction.py
nverhaaren/istanbul-game
9e5051346dda8d8143201eb4548b2800fc3eb67a
[ "MIT" ]
null
null
null
analysis/extraction.py
nverhaaren/istanbul-game
9e5051346dda8d8143201eb4548b2800fc3eb67a
[ "MIT" ]
null
null
null
import itertools import typing from lib.utils import extract_from_dict def diff_dicts(d1, d2): if not isinstance(d1, dict) and not isinstance(d2, dict): return d2, set() removed_keys = set(d1) - set(d2) updates = {k: v for k, v in d2.items() if k not in d1} for k in set(d1) & set(d2): ...
42.418182
93
0.609516
068617097e0052b49882a36148a948e56ddcdcfb
1,772
py
Python
mobify/sources/misc.py
macbre/mobify
69d1d8754fc30f7cbb2626beb890261b41964852
[ "MIT" ]
5
2015-11-29T00:18:36.000Z
2022-03-28T22:23:31.000Z
mobify/sources/misc.py
macbre/mobify
69d1d8754fc30f7cbb2626beb890261b41964852
[ "MIT" ]
29
2015-10-09T19:07:35.000Z
2022-01-27T13:02:53.000Z
mobify/sources/misc.py
macbre/mobify
69d1d8754fc30f7cbb2626beb890261b41964852
[ "MIT" ]
1
2017-11-20T04:40:04.000Z
2017-11-20T04:40:04.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import re from os import getenv from mobify.source import MobifySource class MiscSource(MobifySource): """ This source needs to be forced via --source=MiscSource and configured via env variables MOBIFY_SOURCE_TITLE=//h2 MOBIFY_...
26.447761
89
0.577878
a9b7d899827355d9d4c08ef5f6914dca52995143
3,639
py
Python
venv/Lib/site-packages/caffe2/python/test_util.py
Westlanderz/AI-Plat1
1187c22819e5135e8e8189c99b86a93a0d66b8d8
[ "MIT" ]
1
2022-01-08T12:30:44.000Z
2022-01-08T12:30:44.000Z
venv/Lib/site-packages/caffe2/python/test_util.py
Westlanderz/AI-Plat1
1187c22819e5135e8e8189c99b86a93a0d66b8d8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/caffe2/python/test_util.py
Westlanderz/AI-Plat1
1187c22819e5135e8e8189c99b86a93a0d66b8d8
[ "MIT" ]
null
null
null
## @package test_util # Module caffe2.python.test_util import numpy as np from caffe2.python import core, workspace import os import pathlib import shutil import tempfile import unittest from typing import Any, Callable, Tuple, Type from types import TracebackType def rand_array(*dims): # ...
31.37069
86
0.651003
1cf78a9ed564c6bdb0c67a592030ee456a4dca31
282
py
Python
atividades/ex99.py
Fleen66/Python_exercises
fd05fdf1181da833a1a1bc9f4a476afc8f467977
[ "MIT" ]
null
null
null
atividades/ex99.py
Fleen66/Python_exercises
fd05fdf1181da833a1a1bc9f4a476afc8f467977
[ "MIT" ]
null
null
null
atividades/ex99.py
Fleen66/Python_exercises
fd05fdf1181da833a1a1bc9f4a476afc8f467977
[ "MIT" ]
null
null
null
from time import sleep def maior(*num): m = max(num) me = min(num) print(f'Há {len(num)} numeros') print(f'{num}: o maior numero é {m} e o menor é {me}') sleep(1) print() maior(3, 5 ,18, 11, 6, 7, 9,1 ) maior(2,5,10,9) maior(5,9,8,10,3) maior(9,7,6,1,3)
16.588235
58
0.553191
9e715ac2c4a44b7b0ee1a6b6a41ecaa9acbd6243
676
py
Python
test/test_basic.py
sumannam/DEVS-Python
b47f51e3ab7d981356d8bc18f521f9a42f5e46ea
[ "Apache-2.0" ]
1
2021-09-28T23:35:39.000Z
2021-09-28T23:35:39.000Z
test/test_basic.py
sumannam/DEVS-Python
b47f51e3ab7d981356d8bc18f521f9a42f5e46ea
[ "Apache-2.0" ]
10
2019-11-04T08:47:56.000Z
2022-01-31T09:35:10.000Z
test/test_basic.py
sumannam/DEVS-Python
b47f51e3ab7d981356d8bc18f521f9a42f5e46ea
[ "Apache-2.0" ]
1
2019-11-04T08:19:18.000Z
2019-11-04T08:19:18.000Z
import sys import unittest sys.path.append('D:/Git/DEVS-Python') from testPModelTest import testPModelTest from testEF_P import testEF_P from testROOT_CO_ORDINATORS import testROOT_CO_ORDINATORS if __name__ == '__main__': test_p = unittest.TestLoader().loadTestsFromTestCase(testPModelTest) test_efp = unittes...
33.8
96
0.804734
dfb6be047b610667d735edfe1c08ee136018ef22
385
py
Python
python/Blog/Blog/wsgi.py
egemeric/Dj-Blog
c0771cb461a3b147683f313295a9577b493cbcda
[ "MIT" ]
1
2020-07-23T19:36:30.000Z
2020-07-23T19:36:30.000Z
python/Blog/Blog/wsgi.py
egemeric/Dj-Blog
c0771cb461a3b147683f313295a9577b493cbcda
[ "MIT" ]
7
2021-03-30T14:02:05.000Z
2022-03-12T00:42:51.000Z
python/Blog/Blog/wsgi.py
egemeric/Dj-Blog
c0771cb461a3b147683f313295a9577b493cbcda
[ "MIT" ]
null
null
null
""" WSGI config for test 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.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS...
22.647059
78
0.781818
d57efb5664c75799d4e8c1c74fdc49842e025c12
17,695
py
Python
doudizhu/engine.py
LaudateCorpus1/doudizhu
26ada27dc2fc17ba973ebb7b57828a9f57bd7fa5
[ "MIT" ]
210
2018-04-06T16:33:47.000Z
2022-03-31T15:57:34.000Z
doudizhu/engine.py
LaudateCorpus1/doudizhu
26ada27dc2fc17ba973ebb7b57828a9f57bd7fa5
[ "MIT" ]
5
2018-04-20T12:25:06.000Z
2020-07-29T07:35:43.000Z
doudizhu/engine.py
LaudateCorpus1/doudizhu
26ada27dc2fc17ba973ebb7b57828a9f57bd7fa5
[ "MIT" ]
44
2018-04-08T05:42:38.000Z
2022-02-21T05:27:31.000Z
# -*- coding: utf-8 -*- """ 斗地主规则检查及比较器 ~~~~~~~~~~~~~~~~~~~~~ 枚举所有37种牌型,制作一个花色无关、顺序无关的字典, 能够在O(1)时间内判断出牌是否有效,在O(1)时间内比较大小 """ import itertools import logging from doudizhu.compat import is_py3, cmp_to_key logging.basicConfig(level=logging.INFO) CARDS = '3-4-5-6-7-8-9-10-J-Q-K-A-2-BJ-CJ'.split('-') CARD_IDX = {c: w...
32.290146
81
0.540661
9dce22b35b66b2604e28764662052d36ab9f696c
27,435
py
Python
archive/py_lib/ftplib.py
benc-uk/ziz
4e05e5f90c33007d17d4f8bd4b7347284a32eb40
[ "Apache-2.0" ]
69
2015-01-16T13:12:55.000Z
2022-02-14T12:55:27.000Z
archive/py_lib/ftplib.py
benc-uk/ziz
4e05e5f90c33007d17d4f8bd4b7347284a32eb40
[ "Apache-2.0" ]
3
2019-07-19T18:02:02.000Z
2021-04-25T06:35:42.000Z
archive/py_lib/ftplib.py
benc-uk/ziz
4e05e5f90c33007d17d4f8bd4b7347284a32eb40
[ "Apache-2.0" ]
32
2015-02-06T12:10:32.000Z
2019-06-18T03:21:36.000Z
"""An FTP client class and some helper functions. Based on RFC 959: File Transfer Protocol (FTP), by J. Postel and J. Reynolds Example: >>> from ftplib import FTP >>> ftp = FTP('ftp.python.org') # connect to host, default port >>> ftp.login() # default, i.e.: user anonymous, passwd anonymous@ '230 Guest login ok, ac...
33.294903
101
0.546419
4ed8511ed7c240e018a9c174a941469cddb9a452
8,569
py
Python
bin/dumptruck.py
Meshcloud/dumptruck
659392f67f99f9597c45f1de891b4909ca31bbd2
[ "MIT" ]
1
2018-08-24T07:49:21.000Z
2018-08-24T07:49:21.000Z
bin/dumptruck.py
meshcloud/dumptruck
659392f67f99f9597c45f1de891b4909ca31bbd2
[ "MIT" ]
2
2018-10-01T20:39:00.000Z
2018-10-17T04:58:51.000Z
bin/dumptruck.py
meshcloud/dumptruck
659392f67f99f9597c45f1de891b4909ca31bbd2
[ "MIT" ]
1
2018-12-01T21:13:29.000Z
2018-12-01T21:13:29.000Z
#!/usr/bin/env python3 import time import json import os import os.path import subprocess import sys import traceback import re from glob import glob import requests import swift import rclone ROOT = os.path.dirname(os.path.realpath(__file__)) DUMP = ROOT + "/dump.sh" def backup_all(encryption, sources, storage, ...
27.641935
194
0.57743
ba68f2a4b59ffae2b47c9cfedcd19509e93dfcea
814
py
Python
src/freqpoly/freqpoly.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/freqpoly/freqpoly.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/freqpoly/freqpoly.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.cm as cmp import matplotlib.colors as cl import matplotlib.pyplot as plt import plotly.express as px import plotly.graph_objects as go # matplotlib fig, ax = plt.subplots(1, figsize=(24,15)) x = np.array(event_count_summer['Event']) ax.tick_params(axis='x', colo...
28.068966
108
0.701474
87a020e6c86cac4f6971f46554f8b38c1c1206b2
4,120
py
Python
elekta-beamformer-master/mne/phantom_helpers.py
RTHMaK/RPGOne
3f3ada7db1762781668bfb2377154fdc00e17212
[ "Apache-2.0" ]
1
2017-04-11T13:03:55.000Z
2017-04-11T13:03:55.000Z
elekta-beamformer-master/mne/phantom_helpers.py
RTHMaK/RPGOne
3f3ada7db1762781668bfb2377154fdc00e17212
[ "Apache-2.0" ]
null
null
null
elekta-beamformer-master/mne/phantom_helpers.py
RTHMaK/RPGOne
3f3ada7db1762781668bfb2377154fdc00e17212
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ ================================ Helpers for phantom localization ================================ """ import os.path as op import numpy as np import matplotlib.pyplot as plt import mne actual_pos = mne.dipole.get_phantom_dipoles('otaniemi')[0] base_path = op.join(op.dirname(__file__), '...
34.621849
76
0.590291
0cf6b440fbf8b88f459f79898876e8e3fba7f2f6
8,872
py
Python
rltf/models/bstrap_dqn.py
nikonikolov/rltf
d56714494f73e53ed4b41d6376d942332b406885
[ "MIT" ]
90
2018-05-02T17:15:52.000Z
2021-11-09T08:53:44.000Z
rltf/models/bstrap_dqn.py
arita37/rltf
d56714494f73e53ed4b41d6376d942332b406885
[ "MIT" ]
1
2019-10-01T11:41:53.000Z
2019-12-08T15:38:53.000Z
rltf/models/bstrap_dqn.py
arita37/rltf
d56714494f73e53ed4b41d6376d942332b406885
[ "MIT" ]
25
2018-01-14T16:56:44.000Z
2021-11-09T08:53:48.000Z
import tensorflow as tf from rltf.models import BaseDQN from rltf.tf_utils import tf_utils class BaseBstrapDQN(BaseDQN): def __init__(self, huber_loss, n_heads, **kwargs): """ Args: obs_shape: list. Shape of the observation tensor n_actions: int. Number of possible actions opt_conf: ...
35.630522
106
0.664337
61864cc619fdd4200e68060287541afde1f4e5a8
1,941
py
Python
tests/api_resources/test_payout.py
timvisher/stripe-python
ae953fd0aa531f5b500e5e86eee5859df95a255d
[ "MIT" ]
2
2020-12-05T09:02:14.000Z
2021-03-28T17:23:20.000Z
tests/api_resources/test_payout.py
timvisher/stripe-python
ae953fd0aa531f5b500e5e86eee5859df95a255d
[ "MIT" ]
null
null
null
tests/api_resources/test_payout.py
timvisher/stripe-python
ae953fd0aa531f5b500e5e86eee5859df95a255d
[ "MIT" ]
2
2019-12-19T10:25:38.000Z
2020-01-03T08:54:20.000Z
from __future__ import absolute_import, division, print_function import stripe TEST_RESOURCE_ID = 'po_123' class TestPayout(object): def test_is_listable(self, request_mock): resources = stripe.Payout.list() request_mock.assert_requested( 'get', '/v1/payouts' ) ...
29.409091
64
0.607419
307b7a44c1829c0e5cbf90ebdac5692e8c69495a
883
py
Python
xlsxwriter/test/comparison/test_object_position19.py
dthadi3/XlsxWriter
f1801e82240aa9c746ce14948ef95990b83162cf
[ "BSD-2-Clause-FreeBSD" ]
1
2020-07-01T07:24:37.000Z
2020-07-01T07:24:37.000Z
xlsxwriter/test/comparison/test_object_position19.py
dthadi3/XlsxWriter
f1801e82240aa9c746ce14948ef95990b83162cf
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_object_position19.py
dthadi3/XlsxWriter
f1801e82240aa9c746ce14948ef95990b83162cf
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2020, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
24.527778
83
0.612684
082be03b9f0129269a5290e08609e176093fdb54
21,706
py
Python
Tests/test_TogoWS.py
lennax/biopython
db56e6917ef750df31e952472ebf63cd496f9ce9
[ "BSD-3-Clause" ]
2
2016-04-15T22:39:55.000Z
2020-12-11T16:11:33.000Z
Tests/test_TogoWS.py
lennax/biopython
db56e6917ef750df31e952472ebf63cd496f9ce9
[ "BSD-3-Clause" ]
null
null
null
Tests/test_TogoWS.py
lennax/biopython
db56e6917ef750df31e952472ebf63cd496f9ce9
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2010-2013 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Testing Bio.TogoWS online code. """ from __future__ import print_function import unitte...
45.220833
87
0.568875
c98ff1f23940cf0f1225ee858644497d07fcccbc
8,555
py
Python
test/functional/wallet_accounts.py
5ha2s6/kevacoin
ed7768c931386a93f70fae0b215faf2be2f9cf6f
[ "MIT" ]
30
2018-12-28T20:36:22.000Z
2022-02-08T00:31:38.000Z
test/functional/wallet_accounts.py
5ha2s6/kevacoin
ed7768c931386a93f70fae0b215faf2be2f9cf6f
[ "MIT" ]
21
2020-01-28T01:53:44.000Z
2021-07-11T11:16:29.000Z
test/functional/wallet_accounts.py
5ha2s6/kevacoin
ed7768c931386a93f70fae0b215faf2be2f9cf6f
[ "MIT" ]
12
2019-01-19T00:39:11.000Z
2022-03-13T10:09:51.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test account RPCs. RPCs tested are: - getaccountaddress - getaddressesbyaccount - listaddr...
41.328502
93
0.666511
95fd737d2d591f0fdaa718c407f5c5d29b3b842a
4,406
py
Python
examples/grinimports.py
ccazabon/grin3
87c4825da3b356987e3f9112eac7afbd959dec0c
[ "BSD-3-Clause" ]
7
2020-03-13T12:35:35.000Z
2021-12-24T17:33:53.000Z
examples/grinimports.py
ccazabon/grin3
87c4825da3b356987e3f9112eac7afbd959dec0c
[ "BSD-3-Clause" ]
7
2020-07-29T04:18:52.000Z
2021-06-30T20:49:11.000Z
examples/grinimports.py
ccazabon/grin3
87c4825da3b356987e3f9112eac7afbd959dec0c
[ "BSD-3-Clause" ]
3
2020-07-29T04:19:54.000Z
2021-01-20T18:05:27.000Z
#!/usr/bin/env python3 """ Transform Python files into normalized import statements for grepping. """ import os import shlex import sys from io import StringIO import compiler import grin from compiler.visitor import ASTVisitor, walk __version__ = "1.2" def normalize_From(node): """ Return a list of string...
27.36646
94
0.637313
54c4ff36b270ef7b3c1c4fc4f95720db8104c6cf
795
py
Python
test.py
TheAcademyofNaturalSciences/BMPxlsx
825c60d319710cbe285632e1f4a99b18b24750f5
[ "MIT" ]
null
null
null
test.py
TheAcademyofNaturalSciences/BMPxlsx
825c60d319710cbe285632e1f4a99b18b24750f5
[ "MIT" ]
1
2021-09-16T14:17:13.000Z
2022-01-11T17:35:51.000Z
test.py
TheAcademyofNaturalSciences/BMPxlsx
825c60d319710cbe285632e1f4a99b18b24750f5
[ "MIT" ]
null
null
null
import BMPxlsx import os # Example Function Run # Function(dataDictionary, FileName) # DICTIONARY {"SHEET": {"CELL": VALUE, "CELL": VALUE}} datadict = {'Sheet1': {'D1': 123.4, 'D2': 567.8}, 'Sheet2': {'D1': 123.4, 'D2': 567.8}, 'Sheet3': {'D1': 123.4, 'D2': 567.8}, } # FULL PATH ...
24.090909
54
0.513208
ac0b4bf6ade9c61d0dc1c581476f062b6dac9085
24,773
py
Python
tests/test_routes.py
ahopkins/sanic
4d22b6c3680d1a7d357e031fd4276c9b5c2e8e00
[ "MIT" ]
null
null
null
tests/test_routes.py
ahopkins/sanic
4d22b6c3680d1a7d357e031fd4276c9b5c2e8e00
[ "MIT" ]
null
null
null
tests/test_routes.py
ahopkins/sanic
4d22b6c3680d1a7d357e031fd4276c9b5c2e8e00
[ "MIT" ]
null
null
null
import asyncio import pytest from sanic import Sanic from sanic.response import text, json from sanic.router import RouteExists, RouteDoesNotExist, ParameterNameConflicts from sanic.constants import HTTP_METHODS # ------------------------------------------------------------ # # UTF-8 # -----------------------------...
26.214815
91
0.644008
9a7a58ec748b9b35f8135ada77bfee832a9b6266
28,785
py
Python
pycochleagram/cochleagram.py
z430/pycochleagram
45420d969047781933a91281592f46befcc3f48f
[ "BSD-3-Clause-Clear" ]
null
null
null
pycochleagram/cochleagram.py
z430/pycochleagram
45420d969047781933a91281592f46befcc3f48f
[ "BSD-3-Clause-Clear" ]
null
null
null
pycochleagram/cochleagram.py
z430/pycochleagram
45420d969047781933a91281592f46befcc3f48f
[ "BSD-3-Clause-Clear" ]
null
null
null
# TODO: # + convert docstrings to np format # + build and format docs # + put docs on github # + test padding (pad_factor) # + sensible parameters for downsampling? # + clean up old and deprecated methods # + write readme # + python compatibility issues # + erb filters fails with certain arguments: # `N: 680, sample_f...
50.323427
192
0.724996
e7d4a340af0465d26aa9572719336b20b47b1ebe
423
py
Python
pyscord/exceptions.py
Sly-Little-Test/Pyscord
9c1bb7ccd79366686ef0e3e302d30fdb5044bc77
[ "MIT" ]
null
null
null
pyscord/exceptions.py
Sly-Little-Test/Pyscord
9c1bb7ccd79366686ef0e3e302d30fdb5044bc77
[ "MIT" ]
null
null
null
pyscord/exceptions.py
Sly-Little-Test/Pyscord
9c1bb7ccd79366686ef0e3e302d30fdb5044bc77
[ "MIT" ]
null
null
null
from typing import Optional class InvalidTokenError(ValueError): def __init__(self, hint: Optional[str] = None): """Exception raised when the authorization token is invalid. :param hint: Additional information about the exception cause. """ super(InvalidTokenError, se...
28.2
78
0.635934
6637c441a354ee9e734586f7548d8c3f731b5ae2
21,700
py
Python
opentamp/core/util_classes/no_openrave_body.py
Algorithmic-Alignment-Lab/openTAMP
f0642028d551d0436b3a3dbc3bfb2f23a00adc14
[ "MIT" ]
4
2022-02-13T15:52:18.000Z
2022-03-26T17:33:13.000Z
opentamp/core/util_classes/no_openrave_body.py
Algorithmic-Alignment-Lab/openTAMP
f0642028d551d0436b3a3dbc3bfb2f23a00adc14
[ "MIT" ]
1
2022-02-13T22:48:09.000Z
2022-02-13T22:48:09.000Z
opentamp/core/util_classes/no_openrave_body.py
Algorithmic-Alignment-Lab/openTAMP
f0642028d551d0436b3a3dbc3bfb2f23a00adc14
[ "MIT" ]
null
null
null
import numpy as np from math import cos, sin, atan2 from errors_exceptions import OpenRAVEException from openravepy import quatFromAxisAngle, matrixFromPose, poseFromMatrix, \ axisAngleFromRotationMatrix, KinBody, GeometryType, RaveCreateRobot, \ RaveCreateKinBody, TriMesh, Environment, DOFAffine, IkParameterization, I...
40.0369
151
0.595346
27511c5668a76e696e0764325067f7b90eab876a
9,086
py
Python
python/ray/_private/import_thread.py
goswamig/amazon-ray
9984ebcdc9d0da0de65363074021e9aff2f82636
[ "Apache-2.0" ]
1
2022-01-11T11:41:31.000Z
2022-01-11T11:41:31.000Z
python/ray/_private/import_thread.py
goswamig/amazon-ray
9984ebcdc9d0da0de65363074021e9aff2f82636
[ "Apache-2.0" ]
27
2021-11-19T05:20:27.000Z
2022-03-26T07:09:49.000Z
python/ray/_private/import_thread.py
goswamig/amazon-ray
9984ebcdc9d0da0de65363074021e9aff2f82636
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict import threading import traceback import redis import grpc import ray from ray import ray_constants from ray import cloudpickle as pickle import ray._private.profiling as profiling import logging logger = logging.getLogger(__name__) class ImportThread: """A thread used to im...
45.20398
79
0.614462
f19fcf1773f5801b6771c5b1600be9817e8e14c0
1,667
py
Python
test/mock_status.py
qarnot/computing-python-sdk
cfee10a16bfdaf9e894317b04efd5563933b0ce4
[ "Apache-2.0" ]
11
2016-09-08T06:00:37.000Z
2021-11-11T21:03:16.000Z
test/mock_status.py
qarnot/computing-python-sdk
cfee10a16bfdaf9e894317b04efd5563933b0ce4
[ "Apache-2.0" ]
3
2020-01-20T23:00:32.000Z
2021-04-26T08:09:05.000Z
test/mock_status.py
qarnot/computing-python-sdk
cfee10a16bfdaf9e894317b04efd5563933b0ce4
[ "Apache-2.0" ]
5
2017-09-26T14:58:58.000Z
2021-02-24T15:23:08.000Z
default_json_status = { "timestamp": "0001-01-01T00:00:00Z", "lastUpdateTimestamp": "0001-01-01T00:00:00Z", "downloadProgress": 0, "executionProgress": 100, "uploadProgress": 100, "instanceCount": 0, "downloadTime": "00:00:00", "downloadTimeSec": 0, "environmentTime": "00:01...
28.254237
62
0.527894
89645c558eb36442b2daa779b0d35c7def365a0a
777
py
Python
src/tests/docker_classif/docker_classif.py
terencebeauj/mle_project
6270860c4161f259be5663c15c4ff7153fec6639
[ "MIT" ]
1
2022-03-25T03:18:19.000Z
2022-03-25T03:18:19.000Z
src/tests/docker_classif/docker_classif.py
terencebeauj/mle_project
6270860c4161f259be5663c15c4ff7153fec6639
[ "MIT" ]
null
null
null
src/tests/docker_classif/docker_classif.py
terencebeauj/mle_project
6270860c4161f259be5663c15c4ff7153fec6639
[ "MIT" ]
null
null
null
import requests import os api_adddress = "fastapi_container" api_port = "8000" patient = "10" username = os.environ.get("username") password = os.environ.get("password") params = {"user": username, "password": password} r = requests.get(url=f"http://{api_adddress}:{api_port}/decision/{patient}", params=params) status...
20.447368
91
0.658945
f2dd53e48223c9ce6f747e180f2481e2fa345ad9
705
py
Python
homework(november)/homeworkAssigment2/greatest_common _divisor.py
tkanicka/python_learning
67fc0e8ca6333571f8b0d30f835b759d670a8643
[ "Unlicense" ]
null
null
null
homework(november)/homeworkAssigment2/greatest_common _divisor.py
tkanicka/python_learning
67fc0e8ca6333571f8b0d30f835b759d670a8643
[ "Unlicense" ]
null
null
null
homework(november)/homeworkAssigment2/greatest_common _divisor.py
tkanicka/python_learning
67fc0e8ca6333571f8b0d30f835b759d670a8643
[ "Unlicense" ]
null
null
null
x = int(input("first number: ")) y = int(input("second number: ")) def GCD(x,y): smallerNumber = min(abs(x),abs(y)) for divisor in range(1,smallerNumber + 1): if x % divisor == 0 and y % divisor == 0: gcd = divisor return gcd def GCD_recursion(x,y): higher_number = max(abs(x), ab...
28.2
115
0.588652
945576316526e1ee81b60817d8c4047793cf902b
258
py
Python
UnityEngine/AudioClip/PCMSetPositionCallback/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/AudioClip/PCMSetPositionCallback/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/AudioClip/PCMSetPositionCallback/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
from UdonPie import UnityEngine from UdonPie.Undefined import * class PCMSetPositionCallback: def __new__(cls, arg1=None): ''' :returns: PCMSetPositionCallback :rtype: UnityEngine.PCMSetPositionCallback ''' pass
21.5
50
0.670543
7426002b592bd5172d7f12c0252cf0e490de9927
3,331
py
Python
recorded_future/komand_recorded_future/actions/search_urls/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
recorded_future/komand_recorded_future/actions/search_urls/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
recorded_future/komand_recorded_future/actions/search_urls/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
import komand import json from .schema import SearchUrlsInput, SearchUrlsOutput, Component, Input from komand.exceptions import PluginException # Custom imports below class SearchUrls(komand.Action): def __init__(self): super(self.__class__, self).__init__( name='search_urls', ...
52.046875
121
0.67157
74341e0c8c449fabc46b5e251c04639070857c8a
1,530
py
Python
pystock_crawler/exporters.py
breakhearts/pystock-crawler
8b803c8944f36af46daf04c6767a74132e37a101
[ "MIT" ]
320
2015-01-01T01:44:54.000Z
2022-01-03T15:04:45.000Z
pystock_crawler/exporters.py
breakhearts/pystock-crawler
8b803c8944f36af46daf04c6767a74132e37a101
[ "MIT" ]
8
2015-04-23T12:38:36.000Z
2018-10-04T16:50:13.000Z
pystock_crawler/exporters.py
breakhearts/pystock-crawler
8b803c8944f36af46daf04c6767a74132e37a101
[ "MIT" ]
112
2015-01-06T20:16:13.000Z
2022-03-25T05:16:00.000Z
from scrapy.conf import settings from scrapy.contrib.exporter import BaseItemExporter, CsvItemExporter class CsvItemExporter2(CsvItemExporter): ''' The standard CsvItemExporter class does not pass the kwargs through to the CSV writer, resulting in EXPORT_FIELDS and EXPORT_ENCODING being ignored (EXPOR...
38.25
124
0.69281
8b5a97999c26f77632fe246ad595df4852f9dfac
411
py
Python
Gecko_web_app_API/wsgi.py
urosjevremovic/Github-API-web-app
beb784c814c920852a8e2d7ffd6259e8bb58a8f3
[ "MIT" ]
null
null
null
Gecko_web_app_API/wsgi.py
urosjevremovic/Github-API-web-app
beb784c814c920852a8e2d7ffd6259e8bb58a8f3
[ "MIT" ]
6
2020-02-11T23:05:41.000Z
2021-09-08T00:05:14.000Z
Gecko_web_app_API/wsgi.py
urosjevremovic/Github-API-web-app
beb784c814c920852a8e2d7ffd6259e8bb58a8f3
[ "MIT" ]
null
null
null
""" WSGI config for Gecko_web_app_API 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/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJ...
24.176471
78
0.79562
d7b5c50f1f6e37912ecbf5882290c16882638bac
69,537
py
Python
tensorflow/python/eager/context.py
leike666666/tensorflow
a3fd0ddfcb716be124e95b51e96e6c1e4507ef64
[ "Apache-2.0" ]
1
2019-12-31T02:05:11.000Z
2019-12-31T02:05:11.000Z
tensorflow/python/eager/context.py
leike666666/tensorflow
a3fd0ddfcb716be124e95b51e96e6c1e4507ef64
[ "Apache-2.0" ]
2
2021-08-25T15:57:35.000Z
2022-02-10T01:09:32.000Z
tensorflow/python/eager/context.py
leike666666/tensorflow
a3fd0ddfcb716be124e95b51e96e6c1e4507ef64
[ "Apache-2.0" ]
1
2017-11-27T02:55:11.000Z
2017-11-27T02:55:11.000Z
# Copyright 2017 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...
33.034204
89
0.719789
93b087456c44717bf74c6e9f9a7f13f4c4405411
2,603
py
Python
devicemanager.py
ToddFranks-TM/tinkerAccess
f875772f0cd452586d08d4c41c5390aed0f5aea6
[ "MIT" ]
15
2016-01-29T21:52:58.000Z
2021-04-07T06:21:47.000Z
devicemanager.py
ToddFranks-TM/tinkerAccess
f875772f0cd452586d08d4c41c5390aed0f5aea6
[ "MIT" ]
26
2015-07-18T00:04:25.000Z
2021-09-24T13:21:27.000Z
devicemanager.py
ToddFranks-TM/tinkerAccess
f875772f0cd452586d08d4c41c5390aed0f5aea6
[ "MIT" ]
16
2015-07-18T00:12:04.000Z
2022-03-28T07:23:31.000Z
#!/usr/bin/python import sqlite3 import optparse import sys parser = optparse.OptionParser() parser.add_option("-a", "--add", default=False, help='add a device', dest="addDevice", action="store_true") parser.add_option("-n", "--name", default=False, help='name of device', dest="deviceName", action="store") parser.a...
38.279412
137
0.674606
b87ba305755efeb5865fd30577adc924bc13c6cc
2,736
py
Python
tests/pytorch_pfn_extras_tests/profiler_tests/test_time_summary.py
kmaehashi/pytorch-pfn-extras
70b5db0dad8a8e342cc231e8a18c6f32ce250d1c
[ "MIT" ]
null
null
null
tests/pytorch_pfn_extras_tests/profiler_tests/test_time_summary.py
kmaehashi/pytorch-pfn-extras
70b5db0dad8a8e342cc231e8a18c6f32ce250d1c
[ "MIT" ]
null
null
null
tests/pytorch_pfn_extras_tests/profiler_tests/test_time_summary.py
kmaehashi/pytorch-pfn-extras
70b5db0dad8a8e342cc231e8a18c6f32ce250d1c
[ "MIT" ]
null
null
null
import multiprocessing as mp import subprocess import sys import time import pytest from pytorch_pfn_extras.profiler import TimeSummary, time_summary def test_report(): summary = TimeSummary() with summary.report("foo"): pass summary.synchronize() with summary.summary() as s: assert ...
25.811321
76
0.621711
4677c0c3806d91a34a20159e9b5ec9e51d4e1cce
1,641
py
Python
iPokeMon/ipokemon/EdgeManager/terminater.py
yalhaizaey/Dreich
9528856c3879d4c9d3ced453f223785a71188808
[ "Apache-2.0" ]
25
2019-05-09T19:03:37.000Z
2022-02-06T20:47:37.000Z
Experiments/iPokeMon/ipokemon/EdgeManager/terminater.py
jonathanmcchesney/DeFog
bc314d41471d00b9d605bb4519f31a465e0a6b75
[ "Apache-2.0" ]
null
null
null
Experiments/iPokeMon/ipokemon/EdgeManager/terminater.py
jonathanmcchesney/DeFog
bc314d41471d00b9d605bb4519f31a465e0a6b75
[ "Apache-2.0" ]
9
2019-08-19T19:00:41.000Z
2021-12-09T04:46:07.000Z
import os import redis def connect_redis(conn_dict): conn = redis.StrictRedis(host=conn_dict['host'], port=conn_dict['port'], db=conn_dict['db']) return conn def conn_string_type(string): format = '<host>:<port>/<db>' try: host, portdb...
29.303571
115
0.553931
0015cf7b1b2dad91f575c7d44becd6d694c854e8
5,499
py
Python
bioinfo_sec3/week2/No3_edit_distance.py
maqueredkop/Bioinformatics_Specialization_Coursea_Exercise
286fb1420994e78612e4dc419420548e3b8f86e7
[ "MIT" ]
null
null
null
bioinfo_sec3/week2/No3_edit_distance.py
maqueredkop/Bioinformatics_Specialization_Coursea_Exercise
286fb1420994e78612e4dc419420548e3b8f86e7
[ "MIT" ]
null
null
null
bioinfo_sec3/week2/No3_edit_distance.py
maqueredkop/Bioinformatics_Specialization_Coursea_Exercise
286fb1420994e78612e4dc419420548e3b8f86e7
[ "MIT" ]
null
null
null
''' Edit Distance Problem: Find the edit distance between two strings. Input: Two strings. Output: The edit distance between these strings. ''' import sys sys.setrecursionlimit(1500) score_matrix = dict() with open('BLOSUM62.txt','r') as f: #with open('PAM250.txt','r') as f: amino_acid = next(f).strip()...
34.584906
882
0.681942
10476ae5d1789a3f8162c2c3179d8ace85408e30
7,156
py
Python
pretrained-model/tts/tacotron2/test/tacotron2-male.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
111
2020-08-31T04:58:54.000Z
2022-03-29T15:44:18.000Z
pretrained-model/tts/tacotron2/test/tacotron2-male.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
14
2020-12-16T07:27:22.000Z
2022-03-15T17:39:01.000Z
pretrained-model/tts/tacotron2/test/tacotron2-male.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
29
2021-02-09T08:57:15.000Z
2022-03-12T14:09:19.000Z
import os os.environ['CUDA_VISIBLE_DEVICES'] = '1' import tensorflow as tf from glob import glob from itertools import cycle import tensorflow as tf import malaya_speech import malaya_speech.train from malaya_speech.train.model import tacotron2 import malaya_speech.config import numpy as np import json from malaya_sp...
29.816667
85
0.627306
370a9d3cb22cae1a74e9d23d2e9de2fb700334a0
2,672
py
Python
Script/componentList.py
bveenema/KiCad-Cabling
792b7c613fa57ea3990c3fc3ca3e3535edaf95d2
[ "MIT" ]
null
null
null
Script/componentList.py
bveenema/KiCad-Cabling
792b7c613fa57ea3990c3fc3ca3e3535edaf95d2
[ "MIT" ]
null
null
null
Script/componentList.py
bveenema/KiCad-Cabling
792b7c613fa57ea3990c3fc3ca3e3535edaf95d2
[ "MIT" ]
null
null
null
def getComponentList(net): nets = net.nets; components = net.getInterestingComponents() componentList = []; # [ # { # ref: "HOUSING1", # Connections: [ # {pin: 3, net: "Net-(HOUSING1-Pad3)"}, # {pin: 2, net: "...
33.4
95
0.534805
7d0a1fa488282b218638b5ae6a7664e2247a2ccf
11,505
py
Python
build/ninja/android.py
JohannesLorenz/rpmalloc
8d790d2b45e1818e531c61bf649c5225556dd07a
[ "Unlicense", "MIT" ]
811
2016-11-18T12:57:43.000Z
2019-05-23T17:07:27.000Z
build/ninja/android.py
JohannesLorenz/rpmalloc
8d790d2b45e1818e531c61bf649c5225556dd07a
[ "Unlicense", "MIT" ]
108
2019-05-24T21:46:54.000Z
2022-03-28T07:48:40.000Z
build/ninja/android.py
JohannesLorenz/rpmalloc
8d790d2b45e1818e531c61bf649c5225556dd07a
[ "Unlicense", "MIT" ]
84
2019-06-01T05:26:43.000Z
2022-03-31T21:17:27.000Z
#!/usr/bin/env python """Ninja toolchain abstraction for Android platform""" import os import subprocess import toolchain def make_target(toolchain, host, target): return Android(toolchain, host, target) class Android(object): def __init__(self, toolchain, host, target): self.host = host if host.is_wi...
46.204819
195
0.673012
385563ddcb6d357d6b5e1600edcedf6c34634312
487
py
Python
priv/python/user/pyclass.py
heyoka/pythra
8776294b060e2a0f25e4cb6a88d3570c04f37d82
[ "Apache-2.0" ]
3
2019-11-17T03:03:02.000Z
2019-11-21T08:03:42.000Z
priv/python/user/pyclass.py
heyoka/pythra
8776294b060e2a0f25e4cb6a88d3570c04f37d82
[ "Apache-2.0" ]
null
null
null
priv/python/user/pyclass.py
heyoka/pythra
8776294b060e2a0f25e4cb6a88d3570c04f37d82
[ "Apache-2.0" ]
null
null
null
from erlport.erlterms import Map class Pyclass: def __init__(self, value): print("pyClass __init__") print(value) print(type(value)) # if isinstance(value, list): # myval = list() # for d in value: # myval.append(dict(d)) # elif isi...
22.136364
39
0.529774
8c96746e93740316199f82544b37b6a74e5198f0
13,072
py
Python
sppas/sppas/src/ui/phoenix/dialogs/messages.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/ui/phoenix/dialogs/messages.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/ui/phoenix/dialogs/messages.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- """ .. --------------------------------------------------------------------- ___ __ __ __ ___ / | \ | \ | \ / the automatic \__ |__/ |__/ |___| \__ annotation and \ | | | | \ ...
32.039216
116
0.554697
0845b812c7fd2b442414d75629db9e255dbc8dd1
1,350
py
Python
pokemonCodeChecker.py
DapperDog/PokemonTCGOCodeChecker
46f786cba10a6f97970902c860ee0dbac6d7bc05
[ "MIT" ]
5
2019-08-26T00:09:51.000Z
2021-12-25T04:56:01.000Z
pokemonCodeChecker.py
DapperDog/PokemonTCGOCodeChecker
46f786cba10a6f97970902c860ee0dbac6d7bc05
[ "MIT" ]
3
2018-08-28T04:31:52.000Z
2020-10-07T08:29:26.000Z
pokemonCodeChecker.py
DapperDog/PokemonTCGOCodeChecker
46f786cba10a6f97970902c860ee0dbac6d7bc05
[ "MIT" ]
2
2020-05-06T05:19:14.000Z
2021-07-03T00:01:25.000Z
import requests import time import json from configparser import ConfigParser if __name__ == '__main__': try: config = ConfigParser() config.read('settings.ini') session_id = config.get('Session','session_id') source_codes = config.get('Global','source_codes') print session_id cooki...
30.681818
139
0.619259
b16ae1d488e0db54435971ec8cf9f0a58ef71c58
6,849
py
Python
tests/components/zha/common.py
silvertoken/core
9b8688b0fc624e7bfcb6cac81bcdadd9d2b4be79
[ "Apache-2.0" ]
1
2021-09-04T14:03:00.000Z
2021-09-04T14:03:00.000Z
tests/components/zha/common.py
silvertoken/core
9b8688b0fc624e7bfcb6cac81bcdadd9d2b4be79
[ "Apache-2.0" ]
1
2022-03-31T06:35:00.000Z
2022-03-31T06:35:00.000Z
tests/components/zha/common.py
silvertoken/core
9b8688b0fc624e7bfcb6cac81bcdadd9d2b4be79
[ "Apache-2.0" ]
1
2020-05-18T09:13:52.000Z
2020-05-18T09:13:52.000Z
"""Common test objects.""" import time from zigpy.device import Device as zigpy_dev from zigpy.endpoint import Endpoint as zigpy_ep import zigpy.profiles.zha import zigpy.types import zigpy.zcl import zigpy.zcl.clusters.general import zigpy.zcl.foundation as zcl_f import zigpy.zdo.types import homeassistant.component...
32.614286
98
0.68959
65cf6813778a528ab3521436c18bec8b2ec967f7
1,790
py
Python
data_preprocessing/main.py
SamedHrmn/MachineLearningWorks
9253c3d78881ce6085efa8f01b36943320a2f083
[ "MIT" ]
1
2021-02-28T14:04:56.000Z
2021-02-28T14:04:56.000Z
data_preprocessing/main.py
SamedHrmn/MachineLearningWorks
9253c3d78881ce6085efa8f01b36943320a2f083
[ "MIT" ]
null
null
null
data_preprocessing/main.py
SamedHrmn/MachineLearningWorks
9253c3d78881ce6085efa8f01b36943320a2f083
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.impute import SimpleImputer from sklearn import preprocessing from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler #veri ön işleme aşaması, verilerin makine öğrenmesi #algoritmalarına hazırlandığı aşamadır. #verinin o...
27.538462
91
0.765363
2e3250063a5ead30354526ffcb6555612ac9287e
2,975
py
Python
pyostie/insights_ext.py
rishabhjha708/Pyostie
47091748bc746920f386952c1a6c1002340e3224
[ "MIT" ]
null
null
null
pyostie/insights_ext.py
rishabhjha708/Pyostie
47091748bc746920f386952c1a6c1002340e3224
[ "MIT" ]
null
null
null
pyostie/insights_ext.py
rishabhjha708/Pyostie
47091748bc746920f386952c1a6c1002340e3224
[ "MIT" ]
null
null
null
import pytesseract from pytesseract import Output import cv2 import pandas as pd import numpy as np from PIL import Image df = pd.DataFrame() class generate_insights: def __init__(self, filename, data): """ Parameters ---------- filename : The file that needs to be processed. ...
39.666667
98
0.563697
554ee05c0434555daadd3669c898381d0aace1b2
423
py
Python
dronekarta/wsgi.py
tlubenov/dronekarta
e743f0150ca25e55f1304ef56b2e3b708f9cf04b
[ "MIT" ]
null
null
null
dronekarta/wsgi.py
tlubenov/dronekarta
e743f0150ca25e55f1304ef56b2e3b708f9cf04b
[ "MIT" ]
null
null
null
dronekarta/wsgi.py
tlubenov/dronekarta
e743f0150ca25e55f1304ef56b2e3b708f9cf04b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ WSGI config for dronekarta 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/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.env...
22.263158
78
0.765957
72e04a6bc569e6c2d4c7daa90e8c5aae06ef42e0
8,191
py
Python
ppfa/selenium_tests/migrations/0005_auto__add_ppfateststeptype.py
Goldcap/django-selenium-testing
ad6fc09eb4fd8a54d0532c4478add0753ead1d96
[ "MIT" ]
null
null
null
ppfa/selenium_tests/migrations/0005_auto__add_ppfateststeptype.py
Goldcap/django-selenium-testing
ad6fc09eb4fd8a54d0532c4478add0753ead1d96
[ "MIT" ]
null
null
null
ppfa/selenium_tests/migrations/0005_auto__add_ppfateststeptype.py
Goldcap/django-selenium-testing
ad6fc09eb4fd8a54d0532c4478add0753ead1d96
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'PpfaTestStepType' db.create_table(u'selenium_tests_ppfate...
70.008547
195
0.575266
f269c06374fe0321ab849c15b38a370061717143
8,673
py
Python
redock/base.py
xolox/python-redock
12f8282d7e6199468992c5ee558513cc2a5cc536
[ "MIT" ]
8
2015-05-20T23:06:54.000Z
2020-12-03T03:45:23.000Z
redock/base.py
xolox/python-redock
12f8282d7e6199468992c5ee558513cc2a5cc536
[ "MIT" ]
null
null
null
redock/base.py
xolox/python-redock
12f8282d7e6199468992c5ee558513cc2a5cc536
[ "MIT" ]
2
2016-06-21T20:44:09.000Z
2017-08-29T21:11:49.000Z
# Initialization of the base image used by Redock. # # Author: Peter Odding <peter@peterodding.com> # Last Change: September 30, 2013 # URL: https://github.com/xolox/python-redock """ The :py:mod:`redock.base` module implements the initialization of the base image used by Redock. You'll probably never need to use this...
41.104265
116
0.688113
62a5ed2e1a57aad92c4658a03f54aeb7f07e7fc2
19,724
py
Python
tests/test_setup_chronos_job.py
jackchi/paasta
0899adcef43cb07c247a36f5af82f09bb6f8db12
[ "Apache-2.0" ]
1
2019-05-07T12:01:48.000Z
2019-05-07T12:01:48.000Z
tests/test_setup_chronos_job.py
jackchi/paasta
0899adcef43cb07c247a36f5af82f09bb6f8db12
[ "Apache-2.0" ]
4
2021-02-08T20:42:08.000Z
2021-06-02T00:51:04.000Z
tests/test_setup_chronos_job.py
eric-erki/An-open-distributed-platform-as-a-service
6769c5601685deb1017910ab8d09109e8e998892
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2015-2016 Yelp Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
42.971678
117
0.625482
2a17006a7c407c682d9ebca0702c3c2ac2e5dd44
5,924
py
Python
pandas/tests/base/test_misc.py
BhavarthShah/pandas
efb068f25b911ff3009d5692eb831df35bb042e5
[ "BSD-3-Clause" ]
1
2021-09-17T14:27:25.000Z
2021-09-17T14:27:25.000Z
pandas/tests/base/test_misc.py
BhavarthShah/pandas
efb068f25b911ff3009d5692eb831df35bb042e5
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/base/test_misc.py
BhavarthShah/pandas
efb068f25b911ff3009d5692eb831df35bb042e5
[ "BSD-3-Clause" ]
null
null
null
import sys import numpy as np import pytest from pandas.compat import PYPY from pandas.core.dtypes.common import ( is_categorical_dtype, is_datetime64_dtype, is_datetime64tz_dtype, is_object_dtype, ) import pandas as pd from pandas import DataFrame, Index, IntervalIndex, Series @pytest.mark.parame...
29.919192
85
0.664247
055ac0c4ad64dc5c7eecefcd0848535784813a81
2,082
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/FCESCSWRJT_template.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/FCESCSWRJT_template.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/FCESCSWRJT_template.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files class FC_ESC_SW_RJT(Base): __slots__ = () _SDM_NAME = 'FCESCSWRJT' _SDM_ATT_MAP = { 'FC Header': 'fcESCSWRJT.header.fcHeader', 'FC Command': 'fcESCSWRJT.header.fcCmd', 'Reserved1': 'fcESCSWRJT.header.re...
35.896552
98
0.708934
dda3b73e5bd709fa2505bd70f6aa0ca886c9f3c1
144
py
Python
statistics/dist/weibull.py
Sunhick/ml-tutorials
c1b9ee075e43263d99f85d0842e3cfa0820b4432
[ "MIT" ]
1
2019-11-17T09:50:22.000Z
2019-11-17T09:50:22.000Z
statistics/dist/weibull.py
Sunhick/ml-tutorials
c1b9ee075e43263d99f85d0842e3cfa0820b4432
[ "MIT" ]
null
null
null
statistics/dist/weibull.py
Sunhick/ml-tutorials
c1b9ee075e43263d99f85d0842e3cfa0820b4432
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ probability distributions. """ import sys def main(args): pass if __name__ == "__main__": main(sys.argv[1:])
10.285714
26
0.631944
d70ed7942d90b41d1369e28934a0a2f86d205c1c
63,700
py
Python
examples/rc2.py
thibaultfalque/pysat
ed60b2571101bcfd05cd26617bf66c32540cf241
[ "MIT" ]
null
null
null
examples/rc2.py
thibaultfalque/pysat
ed60b2571101bcfd05cd26617bf66c32540cf241
[ "MIT" ]
null
null
null
examples/rc2.py
thibaultfalque/pysat
ed60b2571101bcfd05cd26617bf66c32540cf241
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8 -*- ## ## rc2.py ## ## Created on: Dec 2, 2017 ## Author: Alexey S. Ignatiev ## E-mail: aignatiev@ciencias.ulisboa.pt ## """ =============== List of classes =============== .. autosummary:: :nosignatures: RC2 RC2Stratified ...
36.863426
131
0.542339
d2864ce15bfb103444564b842f02244626f982fd
32,254
py
Python
hiseq/bin/piRNA_pipe_utils.py
bakerwm/hiseq
f05ed5011377350964ac57874257adb3ef53c172
[ "MIT" ]
1
2022-03-24T14:03:22.000Z
2022-03-24T14:03:22.000Z
hiseq/bin/piRNA_pipe_utils.py
bakerwm/hiseq
f05ed5011377350964ac57874257adb3ef53c172
[ "MIT" ]
null
null
null
hiseq/bin/piRNA_pipe_utils.py
bakerwm/hiseq
f05ed5011377350964ac57874257adb3ef53c172
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ piRNA analysis (small RNAseq) date: 2020-12-23 Author: Ming Wang # flowchart of piRNA analysis 1. remove structural RNAs (uniqe + multi) 2. remove miRNAs (unique + multi) 3. remove reads not in [23-29] nt 4. collapse reads: consider 1-23nt only, allow 1-2 at 3' differ (2019-11-26) 5. s...
30.200375
92
0.538073
cfc25b418c2837951c2a6830e2ffaf31e4bf6b7d
3,813
py
Python
src/module_tests/config_test.py
eirikeve/esrdgan
058687816663c47b013721e5a98c0d175a876596
[ "Apache-2.0" ]
8
2019-04-07T11:49:42.000Z
2021-03-25T06:24:16.000Z
src/module_tests/config_test.py
eirikeve/esrdgan
058687816663c47b013721e5a98c0d175a876596
[ "Apache-2.0" ]
2
2019-04-08T18:24:02.000Z
2020-06-19T06:21:22.000Z
src/module_tests/config_test.py
eirikeve/esrdgan
058687816663c47b013721e5a98c0d175a876596
[ "Apache-2.0" ]
null
null
null
""" test_config.py Written by Eirik Vesterkjær, 2019 Apache License tests for config/config.py run this using unittest: python -m unittest module_tests/config_test.py """ import unittest import tempfile from config.config import * cfg_ini = \ """[DEFAULT] name = test_name model ...
22.832335
88
0.6984
2e684918d8e6e1c6277c27aa89521a7c6cf229bc
13,766
py
Python
train.py
TianlongChenTAMU/ABD-Net
502305e37ab36bb23084c64f200437d19a9e9e28
[ "MIT" ]
244
2019-08-03T16:56:42.000Z
2020-08-08T00:57:21.000Z
train.py
TianlongChenTAMU/ABD-Net
502305e37ab36bb23084c64f200437d19a9e9e28
[ "MIT" ]
31
2019-08-09T09:13:22.000Z
2020-08-11T07:27:47.000Z
train.py
TianlongChenTAMU/ABD-Net
502305e37ab36bb23084c64f200437d19a9e9e28
[ "MIT" ]
44
2019-08-09T00:55:48.000Z
2020-07-27T03:52:13.000Z
from __future__ import print_function from __future__ import division import os import sys import time import datetime import os.path as osp import numpy as np import torch import torch.nn as nn import torch.backends.cudnn as cudnn from torch.optim import lr_scheduler from args import argument_parser, image_dataset_...
35.117347
135
0.611579
92d7342b2b8d4a52aaeba10f1297509b41be45a0
1,912
py
Python
wb/main/models/get_system_resources_job_model.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
23
2022-03-17T12:24:09.000Z
2022-03-31T09:13:30.000Z
wb/main/models/get_system_resources_job_model.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
18
2022-03-21T08:17:44.000Z
2022-03-30T12:42:30.000Z
wb/main/models/get_system_resources_job_model.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
16
2022-03-17T12:24:14.000Z
2022-03-31T12:15:12.000Z
""" OpenVINO DL Workbench Class for ORM model describing job for getting system resources from target Copyright (c) 2020 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 ...
37.490196
91
0.685146
18699c5f298928d7138823cd4e14c79c32c4212f
797
py
Python
Python/sorts/bubble_sort.py
fanxiangs/notebook
c11fdfa4d1ea4d79f97422851999313fc81b0970
[ "MIT" ]
null
null
null
Python/sorts/bubble_sort.py
fanxiangs/notebook
c11fdfa4d1ea4d79f97422851999313fc81b0970
[ "MIT" ]
null
null
null
Python/sorts/bubble_sort.py
fanxiangs/notebook
c11fdfa4d1ea4d79f97422851999313fc81b0970
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # author: fan # time: 11/14/2021 from typing import List def bubble_sort(nums: List[int]): """ 冒泡排序: 比较相邻的元素,如果第一个比第二个大(升序),就交换位置。 时间复杂度: O(n^2) @param nums: 无序数组 @return: 升序数组 >>> import random >>> nums = random.sample(range(-50, 50), ...
21.540541
63
0.540778
f8ac3d3b58b1adbcd63f15b2497cb7658e3cec8a
15,391
py
Python
xarray/tests/test_coding_times.py
thadncs/https-github.com-pydata-xarray
e31cf43e8d183c63474b2898a0776fda72abc82c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2019-09-10T17:41:42.000Z
2019-09-10T17:41:42.000Z
xarray/tests/test_coding_times.py
thadncs/https-github.com-pydata-xarray
e31cf43e8d183c63474b2898a0776fda72abc82c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
xarray/tests/test_coding_times.py
thadncs/https-github.com-pydata-xarray
e31cf43e8d183c63474b2898a0776fda72abc82c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import warnings import numpy as np import pandas as pd from xarray import Variable, coding from . import ( TestCase, requires_netCDF4, assert_array_equal) import pytest @np.vectorize def _ensure_naive_t...
47.503086
79
0.536612
2c99e4306d15082ad0fc9413da5b4d07f060db4c
808
py
Python
src/src/urls.py
vijaykharkar/twitter-user-data-django
dc849fdc44f2319f11982fccf0a4ea647b23bf25
[ "Apache-2.0" ]
null
null
null
src/src/urls.py
vijaykharkar/twitter-user-data-django
dc849fdc44f2319f11982fccf0a4ea647b23bf25
[ "Apache-2.0" ]
null
null
null
src/src/urls.py
vijaykharkar/twitter-user-data-django
dc849fdc44f2319f11982fccf0a4ea647b23bf25
[ "Apache-2.0" ]
null
null
null
"""src URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
33.666667
77
0.706683
e377843f36962ae6e71821c5b3d159cc12824de8
6,837
py
Python
audio_gallery/settings.py
adw1n/audio-gallery
47ffde7266d62cac8e8cb5281225ec452ca1cb5e
[ "Unlicense" ]
null
null
null
audio_gallery/settings.py
adw1n/audio-gallery
47ffde7266d62cac8e8cb5281225ec452ca1cb5e
[ "Unlicense" ]
6
2020-06-05T18:41:46.000Z
2022-03-11T23:25:38.000Z
audio_gallery/settings.py
adw1n/audio-gallery
47ffde7266d62cac8e8cb5281225ec452ca1cb5e
[ "Unlicense" ]
null
null
null
import os import distutils.util from django.utils.translation import ugettext_lazy as _ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) def generate_secret_key(file: str)->str: from django.utils.crypto import get_random_string # key is generated in the same way as in django startproje...
31.506912
131
0.621179
a3a75b8e7223a4c47aeb78777cf63942ec4791ae
2,650
py
Python
intro_to_dna_center.py
zapodeanu/DEVWKS_2840
630c57f8a4486e4b96234623fd0fcd5e0426bb3a
[ "BSD-Source-Code" ]
2
2020-12-16T03:27:04.000Z
2021-01-14T18:14:37.000Z
intro_to_dna_center.py
zapodeanu/DEVWKS_2840
630c57f8a4486e4b96234623fd0fcd5e0426bb3a
[ "BSD-Source-Code" ]
1
2021-06-02T00:52:26.000Z
2021-06-02T00:52:26.000Z
intro_to_dna_center.py
zapodeanu/DEVWKS_2840
630c57f8a4486e4b96234623fd0fcd5e0426bb3a
[ "BSD-Source-Code" ]
2
2020-07-31T17:30:52.000Z
2021-01-14T18:14:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright (c) 2019 Cisco and/or its affiliates. This software is licensed to you under the terms of the Cisco Sample Code License, Version 1.1 (the "License"). You may obtain a copy of the License at https://developer.cisco.com/docs/licenses All use o...
31.176471
84
0.744528
f2790f7dd8c6e89a0691bca1a8a9307340a34f41
1,744
py
Python
api/app.py
Paxman23l/weatherapi
3c88b528c5a96ef64f79d0c0519dcab1bd6bb60c
[ "MIT" ]
null
null
null
api/app.py
Paxman23l/weatherapi
3c88b528c5a96ef64f79d0c0519dcab1bd6bb60c
[ "MIT" ]
1
2022-03-02T09:57:08.000Z
2022-03-02T09:57:08.000Z
api/app.py
Paxman23l/weatherstation
3c88b528c5a96ef64f79d0c0519dcab1bd6bb60c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from importlib import import_module import os from flask import Flask, render_template, Response from dotenv import load_dotenv from weather import Weather import json import threading load_dotenv() # import camera driver if os.environ.get('CAMERA'): Camera = import_module('camera_' + os.env...
26.830769
77
0.686353
327fc27fe88d668ad853d48c0798879d25c93924
105,152
py
Python
pynetdicom/tests/test_service_qr.py
howardpchen/pynetdicom
a67ad0422dbbc8b7c196da2b2c5fd38e7caf8d47
[ "MIT" ]
null
null
null
pynetdicom/tests/test_service_qr.py
howardpchen/pynetdicom
a67ad0422dbbc8b7c196da2b2c5fd38e7caf8d47
[ "MIT" ]
null
null
null
pynetdicom/tests/test_service_qr.py
howardpchen/pynetdicom
a67ad0422dbbc8b7c196da2b2c5fd38e7caf8d47
[ "MIT" ]
null
null
null
"""Tests for the following Service Classes: * QueryRetrieveServiceClass * HangingProtocolQueryRetrieveServiceClass * DefinedProcedureProtocolQueryRetrieveServiceClass * ColorPaletteQueryRetrieveServiceClass * ImplantTemplateQueryRetrieveServiceClass """ from io import BytesIO import logging import os import threadin...
36.882497
95
0.637544
87ab9b312af73c02d796690b9a4edceede078f90
505
py
Python
p0sx/settings/dev.py
norbeta/p0sX-server
816f86e274b6cbee42588ee778298d51cb8282c0
[ "MIT" ]
null
null
null
p0sx/settings/dev.py
norbeta/p0sX-server
816f86e274b6cbee42588ee778298d51cb8282c0
[ "MIT" ]
null
null
null
p0sx/settings/dev.py
norbeta/p0sX-server
816f86e274b6cbee42588ee778298d51cb8282c0
[ "MIT" ]
null
null
null
from p0sx.settings.base import * ALLOWED_HOSTS = ['polar.tla.wtf', 'localhost'] # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'secret' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True # Database # https://docs.djangoproject.com/en/1.8/ref/settings/#dat...
22.954545
66
0.683168
a931b5232bfa787696ab7bf5925734179c4958d9
7,220
py
Python
complexExercise_01_fluorescence/fluorescence.py
AlreadyTakenJonas/pythonBootCamp2021
736002cfdb6992f363c00e3397fc021f879f495d
[ "MIT" ]
null
null
null
complexExercise_01_fluorescence/fluorescence.py
AlreadyTakenJonas/pythonBootCamp2021
736002cfdb6992f363c00e3397fc021f879f495d
[ "MIT" ]
null
null
null
complexExercise_01_fluorescence/fluorescence.py
AlreadyTakenJonas/pythonBootCamp2021
736002cfdb6992f363c00e3397fc021f879f495d
[ "MIT" ]
null
null
null
# # This script uses fluorescence spectra of different solution with known concentration to # calculate an unknown concentration from given fluorescence intensity # Calculations are done in nano moles per liter # # # STEP 1 : READ DATA FROM FILE # # IMPORT MODULES # # Handling files and paths from pathli...
35.392157
119
0.71662