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
0cdfbe0659d37b3cc8cc00e18f2f0edb48d21d4a
3,410
py
Python
src/scs_airnow/cmd/cmd_csv_join.py
south-coast-science/scs_airnow
7f0657bd434aa3abe667f58bc971edaa00d0c24c
[ "MIT" ]
null
null
null
src/scs_airnow/cmd/cmd_csv_join.py
south-coast-science/scs_airnow
7f0657bd434aa3abe667f58bc971edaa00d0c24c
[ "MIT" ]
null
null
null
src/scs_airnow/cmd/cmd_csv_join.py
south-coast-science/scs_airnow
7f0657bd434aa3abe667f58bc971edaa00d0c24c
[ "MIT" ]
null
null
null
""" Created on 22 Feb 2019 @author: Bruno Beloff ([email protected]) source repo: scs_analysis """ import optparse # -------------------------------------------------------------------------------------------------------------------- class CmdCSVJoin(object): """unix command line handler""" ...
31.284404
118
0.509091
3,152
0.92434
0
0
854
0.25044
0
0
1,267
0.371554
0ce058cd8a6d65a8bc31474a1e02dc8c29923fe6
338
py
Python
test/receive_message.py
unknown-admin/easymq
e29b8f63402e385059ff8c263b0e7bb8e9fbd24b
[ "Apache-2.0" ]
1
2020-04-20T14:01:34.000Z
2020-04-20T14:01:34.000Z
test/receive_message.py
unknown-admin/easymq
e29b8f63402e385059ff8c263b0e7bb8e9fbd24b
[ "Apache-2.0" ]
null
null
null
test/receive_message.py
unknown-admin/easymq
e29b8f63402e385059ff8c263b0e7bb8e9fbd24b
[ "Apache-2.0" ]
1
2022-02-18T08:18:08.000Z
2022-02-18T08:18:08.000Z
import os from easymq.mq import MQ def receive(headers, body): print("---->", body) mq = MQ( mq_user=os.environ.get("mq_user"), password=os.environ.get("password"), host_and_ports=[ (os.environ.get("host"), os.environ.get("port")), ], func=receive, queue_name="/queue/test_queue"...
16.095238
57
0.612426
0
0
0
0
0
0
0
0
57
0.168639
0ce0840b66e590ef2a41c729b631412a225153c7
12,383
py
Python
test/unit/agent/common/util/text.py
dp92987/nginx-amplify-agent
1b2eed6eab52a82f35974928d75044451b4bedaf
[ "BSD-2-Clause" ]
308
2015-11-17T13:15:33.000Z
2022-03-24T12:03:40.000Z
test/unit/agent/common/util/text.py
dp92987/nginx-amplify-agent
1b2eed6eab52a82f35974928d75044451b4bedaf
[ "BSD-2-Clause" ]
211
2015-11-16T15:27:41.000Z
2022-03-28T16:20:15.000Z
test/unit/agent/common/util/text.py
dp92987/nginx-amplify-agent
1b2eed6eab52a82f35974928d75044451b4bedaf
[ "BSD-2-Clause" ]
80
2015-11-16T18:20:30.000Z
2022-03-02T12:47:56.000Z
# -*- coding: utf-8 -*- from hamcrest import * from test.base import BaseTestCase from amplify.agent.common.util.text import ( decompose_format, parse_line, parse_line_split ) __author__ = "Grant Hulegaard" __copyright__ = "Copyright (C) Nginx, Inc. All rights reserved." __license__ = "" __maintainer__ = "Grant...
42.407534
115
0.605023
11,847
0.956715
0
0
0
0
0
0
4,765
0.384802
0ce1ead7fccfec4e0bc42fdbdc128b022ce3b62a
9,982
py
Python
test/adb_test.py
bugobliterator/python-adb
2f4f5bcdf5dab5ccf8bf58ff9e91cde4d134f1c0
[ "Apache-2.0" ]
1,549
2015-01-04T04:45:48.000Z
2022-03-31T08:01:59.000Z
test/adb_test.py
bugobliterator/python-adb
2f4f5bcdf5dab5ccf8bf58ff9e91cde4d134f1c0
[ "Apache-2.0" ]
174
2015-01-04T04:47:39.000Z
2022-03-24T10:42:12.000Z
test/adb_test.py
bugobliterator/python-adb
2f4f5bcdf5dab5ccf8bf58ff9e91cde4d134f1c0
[ "Apache-2.0" ]
356
2015-01-09T10:10:33.000Z
2022-03-27T19:25:01.000Z
#!/usr/bin/env python # Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
31.588608
102
0.696053
8,982
0.89982
0
0
3,106
0.31116
0
0
1,656
0.165899
0ce32973b15677a9edaeef840f01f4ffb57eb837
6,149
py
Python
06_Statistik_und_Wahrscheinlichkeiten/Aufgabe.py
felixdittrich92/numerisches_python
0f895ee19b4fa3cf7ad38cd3dfe3cd7020ee34a7
[ "MIT" ]
null
null
null
06_Statistik_und_Wahrscheinlichkeiten/Aufgabe.py
felixdittrich92/numerisches_python
0f895ee19b4fa3cf7ad38cd3dfe3cd7020ee34a7
[ "MIT" ]
null
null
null
06_Statistik_und_Wahrscheinlichkeiten/Aufgabe.py
felixdittrich92/numerisches_python
0f895ee19b4fa3cf7ad38cd3dfe3cd7020ee34a7
[ "MIT" ]
null
null
null
from random import randint import numpy as np from collections import Counter from pprint import pprint import time # Aufgaben Siehe Buch print('-------------Aufgabe 1-------------') outcomes = [ randint(1,6) for _ in range(10000)] even_pips = [ x for x in outcomes if x % 2 == 0] greater_two = [ x for x in outcomes i...
29.5625
83
0.643031
0
0
0
0
0
0
0
0
2,192
0.356481
0ce58d7de1508c5e2496368e37a432c416830c42
2,183
py
Python
lib_dsp/iir/iir/design/iir.py
PyGears/lib-dsp
a4c80882f5188799233dc9108f91faa4bab0ac57
[ "MIT" ]
3
2019-08-26T17:32:33.000Z
2022-03-19T02:05:02.000Z
pygears_dsp/lib/iir.py
bogdanvuk/pygears-dsp
ca107d3f9e8d02023e9ccd27f7bc95f10b5aa995
[ "MIT" ]
null
null
null
pygears_dsp/lib/iir.py
bogdanvuk/pygears-dsp
ca107d3f9e8d02023e9ccd27f7bc95f10b5aa995
[ "MIT" ]
5
2019-09-18T18:00:13.000Z
2022-03-28T11:07:26.000Z
from pygears import gear, Intf from pygears.lib import dreg, decouple, saturate, qround @gear def iir_1dsos(din, *, a, b, gain): # add input gain and init delayed inputs zu0 = din * gain zu1 = zu0 | dreg(init=0) zu2 = zu1 | dreg(init=0) # perform b coefficient sum a1 = (zu1 * b[1]) + (zu2 * ...
24.255556
117
0.601466
0
0
0
0
2,083
0.954191
0
0
656
0.300504
0ce5cb9e4bc10393a6546a397038a2d745082f63
3,752
py
Python
read_iceye_h5.py
eciraci/iceye_gamma_proc
68b04bfd55082862f419031c28e7b52f1800f3db
[ "MIT" ]
null
null
null
read_iceye_h5.py
eciraci/iceye_gamma_proc
68b04bfd55082862f419031c28e7b52f1800f3db
[ "MIT" ]
null
null
null
read_iceye_h5.py
eciraci/iceye_gamma_proc
68b04bfd55082862f419031c28e7b52f1800f3db
[ "MIT" ]
null
null
null
#!/usr/bin/env python u""" read_iceye_h5.py Written by Enrico Ciraci' (03/2022) Read ICEYE Single Look Complex and Parameter file using GAMMA's Python integration with the py_gamma module. usage: read_iceye_h5.py [-h] [--directory DIRECTORY] TEST: Read ICEye Single Look Complex and Parameter. optional arguments: ...
36.076923
81
0.63033
0
0
0
0
0
0
0
0
1,848
0.492537
0ce5d95f10a05417cb3b6fc154c24d7adc27cf45
1,877
py
Python
scripts/baxter_find_tf.py
mkrizmancic/qlearn_baxter
0498315212cacb40334cbb97a858c6ba317f52a3
[ "MIT" ]
4
2017-11-11T18:16:22.000Z
2018-11-08T13:31:09.000Z
scripts/baxter_find_tf.py
mkrizmancic/qlearn_baxter
0498315212cacb40334cbb97a858c6ba317f52a3
[ "MIT" ]
null
null
null
scripts/baxter_find_tf.py
mkrizmancic/qlearn_baxter
0498315212cacb40334cbb97a858c6ba317f52a3
[ "MIT" ]
2
2019-09-04T12:28:58.000Z
2021-09-27T13:02:48.000Z
#!/usr/bin/env python """Calculate transformation matrices and broadcast transform from robot's base to head markers.""" import rospy import tf import math from PyKDL import Vector, Frame, Rotation if __name__ == '__main__': rospy.init_node('baxter_find_transformation') listener = tf.TransformListener() b...
39.93617
104
0.64731
0
0
0
0
0
0
0
0
373
0.198721
0ce7201689d9142cf85fb513dc2bf55a86b13523
475
py
Python
car/migrations/0004_sale_cc.py
jobkarani/carnect
8675d025e56fc07439b88e873e72a21cbbe747a9
[ "MIT" ]
null
null
null
car/migrations/0004_sale_cc.py
jobkarani/carnect
8675d025e56fc07439b88e873e72a21cbbe747a9
[ "MIT" ]
null
null
null
car/migrations/0004_sale_cc.py
jobkarani/carnect
8675d025e56fc07439b88e873e72a21cbbe747a9
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2022-01-10 12:39 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('car', '0003_auto_20220110_1507'), ] operations = [ migrations.AddField( model_name='sale', ...
22.619048
86
0.621053
353
0.743158
0
0
0
0
0
0
87
0.183158
0ce7e95642a1dd2c0010de92c604aaf0452e7669
509
py
Python
src/prepare_data/task_prepare_r_effective_by_rki.py
covid-19-impact-lab/sid-germany
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
[ "MIT" ]
4
2021-04-24T14:43:47.000Z
2021-07-03T14:05:21.000Z
src/prepare_data/task_prepare_r_effective_by_rki.py
covid-19-impact-lab/sid-germany
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
[ "MIT" ]
4
2021-04-27T10:34:45.000Z
2021-08-31T16:40:28.000Z
src/prepare_data/task_prepare_r_effective_by_rki.py
covid-19-impact-lab/sid-germany
aef4bbfb326adaf9190c6d8880e15b3d6f150d28
[ "MIT" ]
null
null
null
import pandas as pd import pytask from src.config import BLD @pytask.mark.depends_on(BLD / "data" / "raw_time_series" / "reproduction_number.csv") @pytask.mark.produces(BLD / "data" / "processed_time_series" / "r_effective.pkl") def task_prepare_rki_r_effective_data(depends_on, produces): df = pd.read_csv(depend...
29.941176
85
0.732809
0
0
0
0
444
0.872299
0
0
131
0.257367
0ce87ae6e8e21068ebe0de253baf4eb583ece22f
701
py
Python
conv.py
aenco9/HCAP2021
d194ba5eab7e361d67f6de3c62f9f17f896ebcf3
[ "MIT" ]
null
null
null
conv.py
aenco9/HCAP2021
d194ba5eab7e361d67f6de3c62f9f17f896ebcf3
[ "MIT" ]
null
null
null
conv.py
aenco9/HCAP2021
d194ba5eab7e361d67f6de3c62f9f17f896ebcf3
[ "MIT" ]
null
null
null
import numpy as np def convolucion(Ioriginal, kernel): '''Método encargado de realizar una convolución a una imagen Entrada: Ioriginal - imagen original en forma de matríz kernel - kernel para barrer la imagen Salida: res - imagen resultante''' #fr - filas, cr - columnas fr = len(Ioriginal)-(len(kernel)-1) c...
26.961538
61
0.664765
0
0
0
0
0
0
0
0
308
0.436261
0ce8bde6ed2f1bdf025074aeab207999685d2edc
1,124
py
Python
setup.py
viatoriche/vtr_utils
d877a97eabf57246cd73e975da5c56d6a343bba4
[ "MIT" ]
null
null
null
setup.py
viatoriche/vtr_utils
d877a97eabf57246cd73e975da5c56d6a343bba4
[ "MIT" ]
null
null
null
setup.py
viatoriche/vtr_utils
d877a97eabf57246cd73e975da5c56d6a343bba4
[ "MIT" ]
null
null
null
import os from distutils.core import setup from setuptools import find_packages package = 'vtr_utils' version = "0.1.0" packages = find_packages() def get_package_data(package): """ Return all files under the root package, that are not in a package themselves. """ walk = [(dirpath.replace(packag...
28.820513
86
0.662811
0
0
0
0
0
0
0
0
314
0.279359
0ce945d91f14b7115bc5eeecc89a0cbddf6f0ae2
2,925
py
Python
radical_translations/agents/tests/test_models.py
kingsdigitallab/radical_translations
c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a
[ "MIT" ]
3
2022-02-08T18:03:44.000Z
2022-03-18T18:10:43.000Z
radical_translations/agents/tests/test_models.py
kingsdigitallab/radical_translations
c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a
[ "MIT" ]
19
2020-05-11T15:36:35.000Z
2022-02-08T11:26:40.000Z
radical_translations/agents/tests/test_models.py
kingsdigitallab/radical_translations
c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a
[ "MIT" ]
null
null
null
from collections import defaultdict import pytest from radical_translations.agents.models import Organisation, Person pytestmark = pytest.mark.django_db @pytest.mark.usefixtures("vocabulary") class TestOrganisation: def test_agent_type(self, title): obj = Person(name="person name") obj.save() ...
31.793478
85
0.624274
2,685
0.917949
0
0
2,763
0.944615
0
0
588
0.201026
0ce95b5923e81e3d937258cb29b18f328d097198
1,557
py
Python
addons/website_sale_coupon/controllers/main.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/website_sale_coupon/controllers/main.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/website_sale_coupon/controllers/main.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from odoo import http from odoo.addons.website_sale.controllers.main import WebsiteSale from odoo.http import request class WebsiteSale(WebsiteSale): @http.route(['/shop/pricelist']) def pricelist(self, promo, **post): order = request.website.sale_get_order() coupon_st...
42.081081
95
0.680154
1,412
0.906872
0
0
1,061
0.681439
0
0
255
0.163776
0ce9ddf8982fdd13b64038e356850186f884758e
4,462
py
Python
go/apps/http_api/tests/test_views.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/apps/http_api/tests/test_views.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/apps/http_api/tests/test_views.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
from go.apps.tests.view_helpers import AppViewsHelper from go.base.tests.helpers import GoDjangoTestCase class TestHttpApiViews(GoDjangoTestCase): def setUp(self): self.app_helper = self.add_helper(AppViewsHelper(u'http_api')) self.client = self.app_helper.get_client() def test_show_stopped(...
40.93578
72
0.61385
4,354
0.975796
0
0
0
0
0
0
1,139
0.255267
0ceb15471ca6941f1a3c2803a1bcd3575ac7f39e
5,306
py
Python
PyPowerStore/utils/helpers.py
dell/python-powerstore
04d6d73e4c926cf0d347cf68b24f8f11ff80f565
[ "Apache-2.0" ]
15
2020-05-06T23:46:44.000Z
2021-12-14T08:04:48.000Z
PyPowerStore/utils/helpers.py
dell/python-powerstore
04d6d73e4c926cf0d347cf68b24f8f11ff80f565
[ "Apache-2.0" ]
2
2020-06-09T15:19:25.000Z
2020-08-18T18:58:59.000Z
PyPowerStore/utils/helpers.py
dell/python-powerstore
04d6d73e4c926cf0d347cf68b24f8f11ff80f565
[ "Apache-2.0" ]
5
2020-05-06T23:46:22.000Z
2021-05-08T03:03:07.000Z
# -*- coding: utf-8 -*- # Copyright: (c) 2019-2021, Dell EMC """Helper module for PowerStore""" import logging from pkg_resources import parse_version provisioning_obj = None def set_provisioning_obj(val): global provisioning_obj provisioning_obj = val def prepare_querystring(*query_arguments, **kw_query_...
35.373333
78
0.602714
0
0
0
0
0
0
0
0
1,848
0.348285
0ceb7ee6367f4094900b7a7ad37575ea6ba9548d
5,680
py
Python
minidump/streams/MiscInfoStream.py
lucasg/minidump
18474e3221038abe866256e4e0eb255e33615110
[ "MIT" ]
1
2021-06-13T10:00:44.000Z
2021-06-13T10:00:44.000Z
minidump/streams/MiscInfoStream.py
lucasg/minidump
18474e3221038abe866256e4e0eb255e33615110
[ "MIT" ]
null
null
null
minidump/streams/MiscInfoStream.py
lucasg/minidump
18474e3221038abe866256e4e0eb255e33615110
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Author: # Tamas Jos (@skelsec) # import io import enum #https://msdn.microsoft.com/en-us/library/windows/desktop/ms680388(v=vs.85).aspx class MinidumpMiscInfo2Flags1(enum.IntFlag): MINIDUMP_MISC1_PROCESS_ID = 0x00000001 #ProcessId is used. MINIDUMP_MISC1_PROCESS_TIMES = 0x00000002 #Proce...
42.074074
170
0.757394
5,257
0.925528
0
0
0
0
0
0
1,055
0.185739
0cec7a7b14ee446e6efc190805ad0c86fcf9567d
2,565
py
Python
test/python/transpiler/test_transpile.py
filemaster/qiskit-terra
8672c407a5a0e34405315f82d5ad5847916e857e
[ "Apache-2.0" ]
null
null
null
test/python/transpiler/test_transpile.py
filemaster/qiskit-terra
8672c407a5a0e34405315f82d5ad5847916e857e
[ "Apache-2.0" ]
null
null
null
test/python/transpiler/test_transpile.py
filemaster/qiskit-terra
8672c407a5a0e34405315f82d5ad5847916e857e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. # pylint: disable=redefined-builtin """Tests basic functionality of the transpile function""" from qiskit import QuantumReg...
34.2
100
0.665107
1,982
0.77271
0
0
0
0
0
0
741
0.288889
0cee3a5d83fc06ee8d80703cbf5bab61011eb8f9
7,039
py
Python
repiko/module/calculator.py
liggest/RepiKoBot
5a2aa511e747785ad341c60d809af2a2788963ab
[ "MIT" ]
1
2021-07-29T13:23:58.000Z
2021-07-29T13:23:58.000Z
repiko/module/calculator.py
liggest/RepiKoBot
5a2aa511e747785ad341c60d809af2a2788963ab
[ "MIT" ]
null
null
null
repiko/module/calculator.py
liggest/RepiKoBot
5a2aa511e747785ad341c60d809af2a2788963ab
[ "MIT" ]
null
null
null
import random class Calculator(): symbol=["+","-","*","/","(",")"] def __init__(self): pass def cal(self,s): if self.isnumber(s[0]): return s elif s[0]=="error": return ["error",s[1]] elif "(" in s[0] or ")" in s[0]: #or "^" in s[0]: el=sel...
36.661458
76
0.356016
6,980
0.979649
0
0
0
0
0
0
547
0.076772
0cf0a226855cb91425b2c33151d95bfc025b95b0
624
py
Python
tests/retrieve/test_segment.py
openghg/openghg
9a05dd6fe3cee6123898b8f390cfaded08dbb408
[ "Apache-2.0" ]
5
2021-03-02T09:04:07.000Z
2022-01-25T09:58:16.000Z
tests/retrieve/test_segment.py
openghg/openghg
9a05dd6fe3cee6123898b8f390cfaded08dbb408
[ "Apache-2.0" ]
229
2020-09-30T15:08:39.000Z
2022-03-31T14:23:55.000Z
tests/retrieve/test_segment.py
openghg/openghg
9a05dd6fe3cee6123898b8f390cfaded08dbb408
[ "Apache-2.0" ]
null
null
null
# import os # import uuid # import numpy as np # import pandas as pd # import pytest # mocked_uuid = "00000000-0000-1111-00000-000000000000" # @pytest.fixture(scope="session") # def data(): # filename = "bsd.picarro.1minute.248m.dat" # dir_path = os.path.dirname(__file__) # test_data = "../data/proc_t...
21.517241
71
0.674679
0
0
0
0
0
0
0
0
596
0.955128
0cf19d7af68dc81b523b12d529be9b1094af28ac
891
py
Python
setup.py
jjhelmus/break_my_python
4f8165fa3ae2bbe72b21f49156598387ee18b94a
[ "BSD-3-Clause" ]
null
null
null
setup.py
jjhelmus/break_my_python
4f8165fa3ae2bbe72b21f49156598387ee18b94a
[ "BSD-3-Clause" ]
null
null
null
setup.py
jjhelmus/break_my_python
4f8165fa3ae2bbe72b21f49156598387ee18b94a
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup with open('README.md') as f: long_description = f.read() setup( name='break_my_python', version='0.0.2', description='This package tries to breaks your python interpreter, do not install it', long_description=long_description, author='Jonathan J. Helmus', autho...
31.821429
90
0.655443
0
0
0
0
0
0
0
0
547
0.613917
0cf1bfd01d728cb0a54ff17ffb5bf2c3afbfaf92
12,039
py
Python
n4ofunc/comp.py
noaione/n4ofunc
81a69de67284f9685d1f88cb34f7d3d2d0ce19c1
[ "MIT" ]
4
2018-05-28T05:05:01.000Z
2020-03-24T15:01:24.000Z
n4ofunc/comp.py
noaione/n4ofunc
81a69de67284f9685d1f88cb34f7d3d2d0ce19c1
[ "MIT" ]
null
null
null
n4ofunc/comp.py
noaione/n4ofunc
81a69de67284f9685d1f88cb34f7d3d2d0ce19c1
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020-present noaione Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publis...
35.201754
110
0.631614
90
0.007476
482
0.040037
0
0
0
0
4,237
0.35194
0cf20d68ff93bb50029ab4621417fc5c929819f7
11,612
py
Python
mpas_analysis/ocean/time_series_sst.py
alicebarthel/MPAS-Analysis
a8c568180abf96879e890a73e848db58642cfdb6
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
mpas_analysis/ocean/time_series_sst.py
alicebarthel/MPAS-Analysis
a8c568180abf96879e890a73e848db58642cfdb6
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
mpas_analysis/ocean/time_series_sst.py
alicebarthel/MPAS-Analysis
a8c568180abf96879e890a73e848db58642cfdb6
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# This software is open source software available under the BSD-3 license. # # Copyright (c) 2020 Triad National Security, LLC. All rights reserved. # Copyright (c) 2020 Lawrence Livermore National Security, LLC. All rights # reserved. # Copyright (c) 2020 UT-Battelle, LLC. All rights reserved. # # Additional copyright...
38.072131
79
0.577678
10,458
0.90062
0
0
0
0
0
0
3,293
0.283586
0cf233053cbaff62ed1842427e42c01b9e93c0c4
3,682
py
Python
codes/data_scripts/test_dataloader.py
DengpanFu/mmsr
addfabdaee86d2f9e41988dcfe92a817c5efe7ab
[ "Apache-2.0" ]
null
null
null
codes/data_scripts/test_dataloader.py
DengpanFu/mmsr
addfabdaee86d2f9e41988dcfe92a817c5efe7ab
[ "Apache-2.0" ]
null
null
null
codes/data_scripts/test_dataloader.py
DengpanFu/mmsr
addfabdaee86d2f9e41988dcfe92a817c5efe7ab
[ "Apache-2.0" ]
null
null
null
import sys import os.path as osp import math import torchvision.utils sys.path.append(osp.dirname(osp.dirname(osp.abspath(__file__)))) from data import create_dataloader, create_dataset # noqa: E402 from utils import util # noqa: E402 def main(): dataset = 'REDS' # REDS | Vimeo90K | DIV2K800_sub opt = {} ...
35.066667
99
0.528246
0
0
0
0
0
0
0
0
1,265
0.343563
0cf243e0f912db385063a422e6bbf35dbe9d0972
3,663
py
Python
python/iceberg/api/transforms/transforms.py
moulimukherjee/incubator-iceberg
bf7edc4b325df6dd80d86fea0149d2be0ad09468
[ "Apache-2.0" ]
58
2019-09-10T20:51:26.000Z
2022-03-22T11:06:09.000Z
python/iceberg/api/transforms/transforms.py
moulimukherjee/incubator-iceberg
bf7edc4b325df6dd80d86fea0149d2be0ad09468
[ "Apache-2.0" ]
292
2019-07-23T04:33:18.000Z
2021-07-26T04:28:22.000Z
python/iceberg/api/transforms/transforms.py
moulimukherjee/incubator-iceberg
bf7edc4b325df6dd80d86fea0149d2be0ad09468
[ "Apache-2.0" ]
26
2019-08-28T23:59:03.000Z
2022-03-04T08:54:08.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
32.705357
78
0.65329
2,449
0.668578
0
0
2,289
0.624898
0
0
1,305
0.356265
0cf5f33e0cfd554440d95e9093a443f85242c9cf
3,067
py
Python
biocodes/re_eval.py
yjc9696/biobert-my
ffc11c91f7032cffbcc7d9526159f0ff8e08c1f3
[ "Apache-2.0" ]
null
null
null
biocodes/re_eval.py
yjc9696/biobert-my
ffc11c91f7032cffbcc7d9526159f0ff8e08c1f3
[ "Apache-2.0" ]
3
2020-11-13T17:48:47.000Z
2022-02-09T23:43:16.000Z
biocodes/re_eval.py
yjc9696/biobert-my
ffc11c91f7032cffbcc7d9526159f0ff8e08c1f3
[ "Apache-2.0" ]
null
null
null
import argparse import numpy as np import pandas as pd import sklearn.metrics import sklearn.metrics parser = argparse.ArgumentParser(description='') parser.add_argument('--output_path', type=str, help='') parser.add_argument('--answer_path', type=str, help='') parser.add_argument('--task', type=str, default="binary"...
41.445946
164
0.661559
0
0
0
0
0
0
0
0
847
0.276166
0cf776032667c66aa9047465a936c18e4c0e130b
99
py
Python
mysite/ChainLicense/apps.py
Hwieun/ChainLicense
35d552ff1cfd056584a54b946999ff287e87d8ad
[ "Apache-2.0" ]
2
2019-09-23T01:55:46.000Z
2019-11-08T16:33:47.000Z
mysite/ChainLicense/apps.py
Hwieun/ChainLicense
35d552ff1cfd056584a54b946999ff287e87d8ad
[ "Apache-2.0" ]
1
2019-10-07T01:11:55.000Z
2019-10-07T01:11:55.000Z
mysite/ChainLicense/apps.py
Hwieun/ChainLicense
35d552ff1cfd056584a54b946999ff287e87d8ad
[ "Apache-2.0" ]
1
2019-09-24T06:22:30.000Z
2019-09-24T06:22:30.000Z
from django.apps import AppConfig class ChainlicenseConfig(AppConfig): name = 'ChainLicense'
16.5
36
0.777778
62
0.626263
0
0
0
0
0
0
14
0.141414
0cf9f78c1ecb148ea8cc9e86512596f09bae6846
1,403
py
Python
tests/test_find_deployment.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
6
2016-10-10T09:26:07.000Z
2018-09-20T08:59:42.000Z
tests/test_find_deployment.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
11
2016-10-10T12:11:07.000Z
2018-05-09T22:11:02.000Z
tests/test_find_deployment.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
16
2016-09-28T16:00:58.000Z
2019-02-25T16:52:12.000Z
# Copyright (c) Trainline Limited, 2016-2017. All rights reserved. See LICENSE.txt in the project root for license information. from os.path import join import unittest from mock import patch from agent.find_deployment import find_deployment_dir_win class Fake(object): def __init__(self, **kwargs): self._...
48.37931
127
0.726301
1,149
0.818959
0
0
0
0
0
0
425
0.302922
0cfa89782c8d3290c0c6ceba7319a0449a110fed
2,585
py
Python
model/embeddings.py
johnnytorres/crisis_conv_crosslingual
a30e762007e08190275bdd83af3c0bbc717fb516
[ "MIT" ]
null
null
null
model/embeddings.py
johnnytorres/crisis_conv_crosslingual
a30e762007e08190275bdd83af3c0bbc717fb516
[ "MIT" ]
null
null
null
model/embeddings.py
johnnytorres/crisis_conv_crosslingual
a30e762007e08190275bdd83af3c0bbc717fb516
[ "MIT" ]
1
2019-12-03T00:29:14.000Z
2019-12-03T00:29:14.000Z
import os import logging import argparse import numpy as np import tensorflow as tf from keras_preprocessing.text import Tokenizer from tqdm import tqdm from data import DataLoader class EmbeddingsBuilder: def __init__(self, args): logging.info('initializing...') self.args = args self.da...
31.91358
109
0.635977
1,729
0.668859
0
0
0
0
0
0
501
0.19381
0cfa9b70f4dd085778dfa0f986d2747b6f89ea72
430
py
Python
bin/ADFRsuite/CCSBpckgs/mglkey/__init__.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/mglkey/__init__.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/mglkey/__init__.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
############################################################################# # # Author: Michel F. SANNER # # Copyright: M. Sanner and TSRI 2015 # ######################################################################### # # $Header: /mnt/raid/services/cvs/mglkeyDIST/mglkey/__init__.py,v 1.1.1.1 2016/12/07 23:27:34 sa...
30.714286
106
0.448837
0
0
0
0
0
0
0
0
385
0.895349
0cfc5802ff58618fd079fd5185d9edd8be7eda97
13,342
py
Python
source/rttov_test/profile-datasets-py/div83/027.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
source/rttov_test/profile-datasets-py/div83/027.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
1
2022-03-12T12:19:59.000Z
2022-03-12T12:19:59.000Z
source/rttov_test/profile-datasets-py/div83/027.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
""" Profile ../profile-datasets-py/div83/027.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/div83/027.py" self["Q"] = numpy.array([ 1.51831800e+00, 2.02599600e+00, 2.94787100e+00, 3.99669400e+00, 4.71653800e+00, 4.89106600e+00, 5.1439...
57.508621
92
0.570979
0
0
0
0
0
0
0
0
462
0.034627
0cfdd69003365202954e59ba474c596cdd274c91
10,386
py
Python
stanCode_Projects/break_out_game/breakoutgraphics.py
kunyi1022/sc-projects
0ab0019b2cdc86c434a0acff39b862263dcbc970
[ "MIT" ]
null
null
null
stanCode_Projects/break_out_game/breakoutgraphics.py
kunyi1022/sc-projects
0ab0019b2cdc86c434a0acff39b862263dcbc970
[ "MIT" ]
null
null
null
stanCode_Projects/break_out_game/breakoutgraphics.py
kunyi1022/sc-projects
0ab0019b2cdc86c434a0acff39b862263dcbc970
[ "MIT" ]
null
null
null
""" stanCode Breakout Project Adapted from Eric Roberts's Breakout by Sonja Johnson-Yu, Kylie Jue, Nick Bowman, and Jerry Liao File: breakoutgraphics.py Name: 林坤毅 Jordan ------------------------- This python file will create a class named BreakoutGraphics for the break out game. This class will contain the building b...
39.192453
134
0.604756
9,028
0.868745
0
0
0
0
0
0
4,380
0.421478
0cfe0c2510332685f3cc3783752192ba32a124ab
329
py
Python
PythonExercicios/ex020.py
github-felipe/ExerciciosEmPython-cursoemvideo
0045464a287f21b6245554a975588cf06c5b476d
[ "MIT" ]
null
null
null
PythonExercicios/ex020.py
github-felipe/ExerciciosEmPython-cursoemvideo
0045464a287f21b6245554a975588cf06c5b476d
[ "MIT" ]
null
null
null
PythonExercicios/ex020.py
github-felipe/ExerciciosEmPython-cursoemvideo
0045464a287f21b6245554a975588cf06c5b476d
[ "MIT" ]
null
null
null
from random import shuffle a1 = str(input('Digite o nome de um aluno: ')) a2 = str(input('Digite o nome de outro aluno: ')) a3 = str(input('Digite o nome de mais outro aluno: ')) a4 = str(input('Digite o nome do último aluno: ')) lista = [a1, a2, a3, a4] shuffle(lista) print(f'A ordem de apresentação é: \033[34m{lista}...
36.555556
58
0.680851
0
0
0
0
0
0
0
0
186
0.558559
4901c51c1ea8530e44c195ecd1215f420a39da2d
3,940
py
Python
okta/models/profile_enrollment_policy_rule_action.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
okta/models/profile_enrollment_policy_rule_action.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
okta/models/profile_enrollment_policy_rule_action.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
# flake8: noqa """ Copyright 2021 - Present Okta, 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 or agreed to in ...
42.826087
154
0.679949
2,831
0.718528
0
0
0
0
0
0
1,136
0.288325
490301996f235103083f9f733d639e25da1a8a52
1,478
py
Python
test/test_compression.py
Peter42/iasi
fc799d542c2bb80c3f559bc2f9e833ac330a5506
[ "MIT" ]
null
null
null
test/test_compression.py
Peter42/iasi
fc799d542c2bb80c3f559bc2f9e833ac330a5506
[ "MIT" ]
3
2019-05-02T12:49:21.000Z
2019-06-12T09:11:00.000Z
test/test_compression.py
Peter42/iasi
fc799d542c2bb80c3f559bc2f9e833ac330a5506
[ "MIT" ]
1
2019-10-18T21:33:33.000Z
2019-10-18T21:33:33.000Z
import datetime import unittest import luigi import numpy as np from netCDF4 import Dataset from iasi.compression import (CompressDataset, CompressDateRange, DecompressDataset) class TestCompression(unittest.TestCase): def test_dataset_compression(self): task = CompressDat...
30.791667
95
0.614344
1,263
0.854533
0
0
0
0
0
0
210
0.142084
4905009d57cff19e66575a7bfdba66a5dbebafe6
6,310
py
Python
bird_classify.py
google-coral/project-birdfeeder
3bcb9bfd4123a0c6f16a09087a8ccdfe0c6dd80e
[ "Apache-2.0" ]
26
2019-07-23T22:32:08.000Z
2022-01-09T15:15:50.000Z
bird_classify.py
hjonnala/project-birdfeeder
4375a9370d7567b756b6cc68f4dfcb4c8183b118
[ "Apache-2.0" ]
13
2019-07-26T17:10:48.000Z
2022-03-01T04:11:48.000Z
bird_classify.py
hjonnala/project-birdfeeder
4375a9370d7567b756b6cc68f4dfcb4c8183b118
[ "Apache-2.0" ]
19
2019-11-05T03:01:31.000Z
2022-03-29T01:13:46.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.711656
94
0.666878
0
0
0
0
0
0
0
0
2,463
0.390333
4906781740f98be4911b2335a3c4e24bb2089146
2,959
py
Python
memory/test/test_memory.py
MaxGreil/hail
4e0605b6bfd24a885a8194e8c0984b20994d3407
[ "MIT" ]
789
2016-09-05T04:14:25.000Z
2022-03-30T09:51:54.000Z
memory/test/test_memory.py
MaxGreil/hail
4e0605b6bfd24a885a8194e8c0984b20994d3407
[ "MIT" ]
5,724
2016-08-29T18:58:40.000Z
2022-03-31T23:49:42.000Z
memory/test/test_memory.py
MaxGreil/hail
4e0605b6bfd24a885a8194e8c0984b20994d3407
[ "MIT" ]
233
2016-08-31T20:42:38.000Z
2022-02-17T16:42:39.000Z
import unittest import uuid from memory.client import MemoryClient from hailtop.aiocloud.aiogoogle import GoogleStorageAsyncFS from hailtop.config import get_user_config from hailtop.utils import async_to_blocking from gear.cloud_config import get_gcp_config PROJECT = get_gcp_config().project class BlockingMemoryC...
36.085366
111
0.663738
2,656
0.897601
0
0
0
0
341
0.115242
237
0.080095
49078fb3338a8d88957f2187faa7b3d0420743af
990
py
Python
feladatok.py
python-feladatok-tesztekkel/-05-02-01-fuggvenyek-halado
0528125ec429584b21a41635517a3c55dfba559a
[ "CC0-1.0" ]
null
null
null
feladatok.py
python-feladatok-tesztekkel/-05-02-01-fuggvenyek-halado
0528125ec429584b21a41635517a3c55dfba559a
[ "CC0-1.0" ]
null
null
null
feladatok.py
python-feladatok-tesztekkel/-05-02-01-fuggvenyek-halado
0528125ec429584b21a41635517a3c55dfba559a
[ "CC0-1.0" ]
null
null
null
# feladat.py # 1. feladat # Írjon függvényt szokoev_e néven # A függvény térjen vissza igaz értékkel, ha a paraméterben megadott évszám szőköév def szokoev_e(ev:int) -> bool: # 2. feladat # A függvény bemenő paraméterei az a, b, c egész számok # Írjon kódot amely eredményeként az a változóba lesz a legnagyobb szám,...
28.285714
153
0.756566
0
0
0
0
0
0
0
0
803
0.763308
0b2242c98f153e44bcbb14ec8721042c75e0511e
76
py
Python
bin/pymodules/objectedit/__init__.py
mattire/naali
28c9cdc84c6a85e0151a222e55ae35c9403f0212
[ "Apache-2.0" ]
1
2018-04-02T15:38:10.000Z
2018-04-02T15:38:10.000Z
bin/pymodules/objectedit/__init__.py
mattire/naali
28c9cdc84c6a85e0151a222e55ae35c9403f0212
[ "Apache-2.0" ]
null
null
null
bin/pymodules/objectedit/__init__.py
mattire/naali
28c9cdc84c6a85e0151a222e55ae35c9403f0212
[ "Apache-2.0" ]
null
null
null
#from editgui import EditGUI #from only_layout import OnlyLayout as EditGUI
25.333333
46
0.842105
0
0
0
0
0
0
0
0
74
0.973684
0b24417f2ee0b6b95e1c21f1f50ee2435fb6de2e
1,210
py
Python
audiomate/processing/pipeline/onset.py
CostanzoPablo/audiomate
080402eadaa81f77f64c8680510a2de64bc18e74
[ "MIT" ]
133
2018-05-18T13:54:10.000Z
2022-02-15T02:14:20.000Z
audiomate/processing/pipeline/onset.py
CostanzoPablo/audiomate
080402eadaa81f77f64c8680510a2de64bc18e74
[ "MIT" ]
68
2018-06-03T16:42:09.000Z
2021-01-29T10:58:30.000Z
audiomate/processing/pipeline/onset.py
CostanzoPablo/audiomate
080402eadaa81f77f64c8680510a2de64bc18e74
[ "MIT" ]
37
2018-11-02T02:40:29.000Z
2021-11-30T07:44:50.000Z
import librosa import numpy as np from . import base from . import spectral class OnsetStrength(base.Computation): """ Compute a spectral flux onset strength envelope. Based on http://librosa.github.io/librosa/generated/librosa.onset.onset_strength.html Args: n_mels (int): Number of mel ban...
31.025641
104
0.686777
1,130
0.933884
0
0
0
0
0
0
338
0.279339
0b24c9c12856cb1232066c7941cc8a2db9d6f09f
2,496
py
Python
friction_ramp_analysis/classes/callForceRampGUI.py
JSotres/AFM-Friction-Ramp-Analysis
d663134f148575f09e2991186c991ed00598ab5e
[ "MIT" ]
null
null
null
friction_ramp_analysis/classes/callForceRampGUI.py
JSotres/AFM-Friction-Ramp-Analysis
d663134f148575f09e2991186c991ed00598ab5e
[ "MIT" ]
null
null
null
friction_ramp_analysis/classes/callForceRampGUI.py
JSotres/AFM-Friction-Ramp-Analysis
d663134f148575f09e2991186c991ed00598ab5e
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QMainWindow, QApplication, QFileDialog import sys from .readNanoscopeForceRamps import * import matplotlib.pyplot as plt from ..qt5_ui_files.ForceRampGUI import * from matplotlib.backends.backend_qt5agg import (NavigationToolbar2QT as NavigationToolbar) import os import math from ..qt5_ui_fi...
35.657143
105
0.733574
2,130
0.853365
0
0
0
0
0
0
159
0.063702
0b28b47566a0388433df755a312dddf760b4c430
1,250
py
Python
onebarangay_psql/users/tests/test_admin.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
null
null
null
onebarangay_psql/users/tests/test_admin.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
43
2022-02-07T00:18:35.000Z
2022-03-21T04:42:48.000Z
onebarangay_psql/users/tests/test_admin.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
null
null
null
"""Create your tests for the admin app here.""" import pytest from django.contrib.auth import get_user_model from django.urls import reverse pytestmark = pytest.mark.django_db User = get_user_model() class TestUserAdmin: """Test the admin interface.""" def test_changelist(self, admin_client): """Tes...
33.783784
79
0.668
1,046
0.8368
0
0
0
0
0
0
354
0.2832
0b296cbeff42f183e0f9446e0c1d52f582289ecd
1,129
py
Python
neuroscout/resources/dataset.py
jdkent/neuroscout
67aaafdf883988e2048197dc9ce4559a28e3b7b6
[ "BSD-3-Clause" ]
5
2018-07-16T16:23:21.000Z
2021-08-20T15:43:23.000Z
neuroscout/resources/dataset.py
jdkent/neuroscout
67aaafdf883988e2048197dc9ce4559a28e3b7b6
[ "BSD-3-Clause" ]
719
2018-07-09T17:19:57.000Z
2022-03-30T15:30:59.000Z
neuroscout/resources/dataset.py
jdkent/neuroscout
67aaafdf883988e2048197dc9ce4559a28e3b7b6
[ "BSD-3-Clause" ]
9
2019-07-10T17:45:31.000Z
2021-08-30T21:51:21.000Z
from flask_apispec import MethodResource, marshal_with, doc, use_kwargs from webargs import fields from ..models import Dataset from ..core import cache from .utils import first_or_404 from ..schemas.dataset import DatasetSchema class DatasetResource(MethodResource): @doc(tags=['dataset'], summary='Get dataset by...
35.28125
75
0.680248
894
0.791851
0
0
804
0.712135
0
0
175
0.155004
0b2a468542d7634a98be235c3eb2a43a90a6aa6a
2,194
py
Python
tests/test_measures.py
lanxuedang/TIGER
a134b49f9c64321cb521a25953f9771ced9b597e
[ "MIT" ]
88
2020-06-11T03:14:30.000Z
2022-03-21T07:36:36.000Z
tests/test_measures.py
lanxuedang/TIGER
a134b49f9c64321cb521a25953f9771ced9b597e
[ "MIT" ]
4
2021-04-29T19:22:08.000Z
2021-09-22T19:22:48.000Z
tests/test_measures.py
lanxuedang/TIGER
a134b49f9c64321cb521a25953f9771ced9b597e
[ "MIT" ]
13
2020-06-14T14:19:01.000Z
2022-02-17T22:50:41.000Z
import numpy as np from graph_tiger.graphs import o4_graph, p4_graph, c4_graph, k4_1_graph, k4_2_graph from graph_tiger.graphs import two_c4_0_bridge, two_c4_1_bridge, two_c4_2_bridge, two_c4_3_bridge from graph_tiger.measures import run_measure def test_measures(): measure_ground_truth = { # graph order: o4,...
42.192308
97
0.591613
0
0
0
0
0
0
0
0
475
0.2165
0b303fe60108c7d81edf13f0852f1b122917c330
13,679
py
Python
AuroraAppCode/login.py
zahraahhajhsn/automatic-student-counter
9b3e38f41aba3fbc59e1ccdaeae9ba229415f977
[ "Apache-2.0" ]
null
null
null
AuroraAppCode/login.py
zahraahhajhsn/automatic-student-counter
9b3e38f41aba3fbc59e1ccdaeae9ba229415f977
[ "Apache-2.0" ]
null
null
null
AuroraAppCode/login.py
zahraahhajhsn/automatic-student-counter
9b3e38f41aba3fbc59e1ccdaeae9ba229415f977
[ "Apache-2.0" ]
null
null
null
import verifyController import pyodbc from PyQt5.QtWidgets import QMessageBox from PyQt5 import QtCore, QtGui, QtWidgets from PySide2.QtCore import (QCoreApplication, QMetaObject,QSize,Qt) from PySide2.QtGui import (QCursor, QFont,QIcon) from PySide2.QtWidgets import * from PySide2 import QtCore, QtGui, QtWidg...
52.209924
238
0.59288
13,013
0.951312
0
0
0
0
0
0
2,942
0.215074
0b306e809cb7c5ad319eabca404494268373c70e
13,195
py
Python
ml/association/apriori.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
4
2016-12-17T20:06:10.000Z
2021-11-19T04:45:29.000Z
ml/association/apriori.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
11
2021-01-06T05:35:11.000Z
2022-03-11T23:28:31.000Z
ml/association/apriori.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
3
2015-06-12T10:44:16.000Z
2021-07-26T18:39:47.000Z
"""Association mining -- apriori algo""" __author__ = 'thor' from numpy import * # Modified from: # Everaldo Aguiar & Reid Johnson (https://github.com/cse40647/cse40647/blob/sp.14/10%20-%20Apriori.ipynb) # # Itself Modified from: # Marcel Caraciolo (https://gist.github.com/marcelcaraciolo/1423287) # # Functions to c...
35.093085
117
0.617582
0
0
0
0
0
0
0
0
7,200
0.545661
0b3087eb0d5de6a063260501def92d99d71d6436
397
py
Python
setup.py
TechAtNYU/api-python
26cfa78208f30c41095484422cd1232aeddbfcb2
[ "MIT" ]
null
null
null
setup.py
TechAtNYU/api-python
26cfa78208f30c41095484422cd1232aeddbfcb2
[ "MIT" ]
null
null
null
setup.py
TechAtNYU/api-python
26cfa78208f30c41095484422cd1232aeddbfcb2
[ "MIT" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup setup( description='Tech@NYU API Python Client', author='TechatNYU', url='https://github.com/TechAtNYU/pytnyu', author_email='[email protected]', version='0.0.4', install_requires=['requests'], ...
23.352941
46
0.677582
0
0
0
0
0
0
0
0
138
0.347607
0b36a23da3938dd6a58c332d22bc21433cd520a7
2,949
py
Python
hardware/max7219.py
gcurtis79/letsrobot
0cb5fae07392ee3661036d138d8986c9705bcf0c
[ "Apache-2.0" ]
26
2018-09-27T17:27:30.000Z
2022-03-04T20:37:18.000Z
hardware/max7219.py
gcurtis79/letsrobot
0cb5fae07392ee3661036d138d8986c9705bcf0c
[ "Apache-2.0" ]
30
2018-10-15T03:54:58.000Z
2020-05-28T06:57:08.000Z
hardware/max7219.py
gcurtis79/letsrobot
0cb5fae07392ee3661036d138d8986c9705bcf0c
[ "Apache-2.0" ]
16
2018-10-04T03:16:43.000Z
2021-04-25T06:59:49.000Z
import spidev columns = [0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8] LEDOn = [0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF] LEDOff = [0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0] LEDEmoteSmile = [0x0,0x0,0x24,0x0,0x42,0x3C,0x0,0x0] LEDEmoteSad = [0x0,0x0,0x24,0x0,0x0,0x3C,0x42,0x0] LEDEmoteTongue = [0x0,0x0,0x24,0x0,0x42,0x3C,0xC,0x0] LEDEmoteS...
25.205128
57
0.617158
0
0
0
0
0
0
0
0
375
0.127162
0b36b0a444f2d74d0736b72d8524d171de6f01c9
9,236
py
Python
kkl_wikicommons_upload.py
wmilbot/wikiscraper
c0e8c2ac45bcb275584fa6606c604ee7c9c9cea7
[ "MIT" ]
3
2018-11-14T14:06:09.000Z
2018-11-14T18:23:16.000Z
kkl_wikicommons_upload.py
wmilbot/wikiscraper
c0e8c2ac45bcb275584fa6606c604ee7c9c9cea7
[ "MIT" ]
null
null
null
kkl_wikicommons_upload.py
wmilbot/wikiscraper
c0e8c2ac45bcb275584fa6606c604ee7c9c9cea7
[ "MIT" ]
2
2018-11-14T14:06:23.000Z
2019-09-22T08:25:55.000Z
#!/usr/bin/env python from datapackage_pipelines.wrapper import ingest, spew import logging, collections from pipeline_params import get_pipeline_param_rows from google.cloud import storage from contextlib import contextmanager from tempfile import mkdtemp import os import pywikibot import time from pywikibot.pagegener...
37.092369
110
0.612711
0
0
992
0.107185
1,040
0.112372
0
0
3,114
0.336467
0b373158f05135f2dafba65a6ba39cdf0ba87c6d
1,348
py
Python
Badger/scripts/besdirac-wms-decaycard-get.py
zhangxt-ihep/IHEPDIRAC
fb53500a998adc43ff0c65c02caf492da2965de5
[ "MIT" ]
null
null
null
Badger/scripts/besdirac-wms-decaycard-get.py
zhangxt-ihep/IHEPDIRAC
fb53500a998adc43ff0c65c02caf492da2965de5
[ "MIT" ]
1
2021-03-04T08:48:38.000Z
2021-03-04T08:48:38.000Z
Badger/scripts/besdirac-wms-decaycard-get.py
zhangxt-ihep/IHEPDIRAC
fb53500a998adc43ff0c65c02caf492da2965de5
[ "MIT" ]
2
2020-08-26T06:36:51.000Z
2021-03-04T08:08:34.000Z
#!/usr/bin/env python import DIRAC from DIRAC import S_OK, S_ERROR from DIRAC.Core.Base import Script Script.setUsageMessage( """ Insert random trigger file into the File Catalog Usage: %s [option] lfn """ % Script.scriptName ) fcType = 'FileCatalog' Script.parseCommandLine( ignoreErrors = False ) options = S...
25.923077
96
0.557864
0
0
0
0
0
0
0
0
519
0.385015
0b39211e58c62524837539f8c02eb738f733141e
1,037
py
Python
GraphSAGE/fix.py
attre2vec/attre2vec
f36a2581f3d17887d6201a76624d4ced93d6503f
[ "MIT" ]
null
null
null
GraphSAGE/fix.py
attre2vec/attre2vec
f36a2581f3d17887d6201a76624d4ced93d6503f
[ "MIT" ]
null
null
null
GraphSAGE/fix.py
attre2vec/attre2vec
f36a2581f3d17887d6201a76624d4ced93d6503f
[ "MIT" ]
null
null
null
import pickle import networkx as nx import numpy as np import torch for name in ('cora', 'citeseer', 'pubmed'): with open(f'data/datasets/{name}.pkl', 'rb') as fin: dataset = pickle.load(fin) test_graph = dataset['original_graph'] e2i = dataset['edge2idx'] H = dataset['H'] node_fts = to...
25.925
70
0.580521
0
0
0
0
0
0
0
0
227
0.218901
0b3963c63ed1877c12683ef9458a7f962df91e0e
3,243
py
Python
finder.py
giuseppebrb/Pynder
a47defc08ff497096a1fe507ab5d7b01997b69ef
[ "MIT" ]
3
2017-11-11T01:19:57.000Z
2021-07-07T15:44:32.000Z
finder.py
giuseppebrb/Pynder
a47defc08ff497096a1fe507ab5d7b01997b69ef
[ "MIT" ]
null
null
null
finder.py
giuseppebrb/Pynder
a47defc08ff497096a1fe507ab5d7b01997b69ef
[ "MIT" ]
null
null
null
import os import fnmatch import smtplib import email.mime.application import sys import subprocess from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from pathlib import Path home = str(Path.home()) # Return a string representing the user’s home directory fileFound = 0 # Number of f...
35.25
120
0.716929
0
0
0
0
0
0
0
0
1,633
0.503236
0b3b1b7fa53f607bfa6820806f9bdec88c43a29d
2,092
py
Python
sushy/tests/unit/resources/fabric/test_endpoint.py
sapcc/sushy
7016cc0f31050ab656e1e26c80bd44ce3e9fd57a
[ "Apache-2.0" ]
37
2017-03-24T10:17:37.000Z
2022-02-10T19:42:26.000Z
sushy/tests/unit/resources/fabric/test_endpoint.py
sapcc/sushy
7016cc0f31050ab656e1e26c80bd44ce3e9fd57a
[ "Apache-2.0" ]
4
2020-07-08T10:53:30.000Z
2020-07-30T11:56:20.000Z
sushy/tests/unit/resources/fabric/test_endpoint.py
sapcc/sushy
7016cc0f31050ab656e1e26c80bd44ce3e9fd57a
[ "Apache-2.0" ]
29
2017-07-19T21:28:06.000Z
2021-06-09T05:20:32.000Z
# 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 # d...
40.230769
78
0.68021
1,385
0.662046
0
0
0
0
0
0
694
0.33174
0b3d35d3fa9e0c6688b8c47ccf07458bfaa3bde8
231
py
Python
engine/core/it_singleton.py
torrotitans/torro_community
a3f153e69a860f0d6c831145f529d9e92193a0ae
[ "MIT" ]
1
2022-01-12T08:31:59.000Z
2022-01-12T08:31:59.000Z
engine/core/it_singleton.py
torrotitans/torro_community
a3f153e69a860f0d6c831145f529d9e92193a0ae
[ "MIT" ]
null
null
null
engine/core/it_singleton.py
torrotitans/torro_community
a3f153e69a860f0d6c831145f529d9e92193a0ae
[ "MIT" ]
2
2022-01-19T06:26:32.000Z
2022-01-26T15:25:15.000Z
#!/usr/bin/python # -*- coding: UTF-8 -* from db.it.db_it_mgr import it_mgr __all__ = {"itSingleton"} class itSingleton(): def get_cmd_sql(self, sql): return it_mgr.get_cmd_sql(sql) it_singleton = itSingleton()
13.588235
38
0.670996
93
0.402597
0
0
0
0
0
0
52
0.225108
0b3f444aab07f3ace7008a9a2f44f279835a4a8e
25,437
py
Python
analyses/seasonality_paper_st/lai_only/shap_interaction/model_analysis_shap_interaction_1.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
analyses/seasonality_paper_st/lai_only/shap_interaction/model_analysis_shap_interaction_1.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
analyses/seasonality_paper_st/lai_only/shap_interaction/model_analysis_shap_interaction_1.py
akuhnregnier/wildfire-analysis
a04deada145cec864051d2fb15aec1a53a0246b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os from pathlib import Path from wildfires.utils import handle_array_job_args try: # This will only work after the path modification carried out in the job script. from specific import ( CACHE_DIR, SimpleCache, get_model, da...
14.16314
84
0.298306
0
0
0
0
150
0.005897
0
0
347
0.013642
0b3f95c97639b3abd555db4e30fef992d56dda30
1,954
py
Python
tests/test_res_grp_config.py
danos/vplane-config-npf
2103ac7e19ee77eacff30a3d11cf487dfbefee26
[ "BSD-3-Clause" ]
null
null
null
tests/test_res_grp_config.py
danos/vplane-config-npf
2103ac7e19ee77eacff30a3d11cf487dfbefee26
[ "BSD-3-Clause" ]
null
null
null
tests/test_res_grp_config.py
danos/vplane-config-npf
2103ac7e19ee77eacff30a3d11cf487dfbefee26
[ "BSD-3-Clause" ]
2
2020-05-27T10:34:20.000Z
2021-01-20T05:40:32.000Z
#!/usr/bin/env python3 # Copyright (c) 2019, AT&T Intellectual Property. # All rights reserved. # # SPDX-License-Identifier: LGPL-2.1-only # """ Unit-tests for the qos_config.py module. """ from vyatta.res_grp.res_grp_config import ResGrpConfig TEST_DATA = { 'vyatta-resources-v1:resources': { 'vyatta-re...
32.566667
71
0.413511
0
0
0
0
0
0
0
0
745
0.381269
0b4263d7f857ffd13d9244963a213a2d55a3ea6f
36,145
py
Python
fandango/objects.py
rhomspuron/fandango
51cc7659dfa7ea8c5890a993bbcc4c2049e45136
[ "CC-BY-3.0" ]
null
null
null
fandango/objects.py
rhomspuron/fandango
51cc7659dfa7ea8c5890a993bbcc4c2049e45136
[ "CC-BY-3.0" ]
null
null
null
fandango/objects.py
rhomspuron/fandango
51cc7659dfa7ea8c5890a993bbcc4c2049e45136
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python2.5 ############################################################################# ## ## file : objects.py ## ## description : see below ## ## project : Tango Control System ## ## $Author: [email protected], [email protected], [email protected] $ ## ## ## $Revision: 2008 $ ## ## copyleft : A...
33.938967
89
0.56135
24,906
0.689058
0
0
3,377
0.093429
0
0
14,820
0.410015
0b42ef18819891116ae94c7d2436b4f0dab7c2b9
5,877
py
Python
vdvae_flax/blocks.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
vdvae_flax/blocks.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
vdvae_flax/blocks.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 DeepMind Technologies Limited and the Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
35.618182
82
0.650842
4,222
0.718394
0
0
3,521
0.599115
0
0
2,535
0.431343
0b43e92ff65dfbae4bcf1fe66e16f6008f379b22
2,605
py
Python
test_hrm_code.py
liameirose/bme590hrm
d44573b73b46b121a31667c12bb6add4e8a8daa7
[ "MIT" ]
null
null
null
test_hrm_code.py
liameirose/bme590hrm
d44573b73b46b121a31667c12bb6add4e8a8daa7
[ "MIT" ]
2
2018-10-20T22:16:56.000Z
2018-10-25T23:56:43.000Z
test_hrm_code.py
liameirose/bme590hrm
d44573b73b46b121a31667c12bb6add4e8a8daa7
[ "MIT" ]
null
null
null
import pytest import json import numpy as np @pytest.mark.parametrize("candidate, expected", [ (1.345, True), (-4.554, True), ('9999', True) ]) def test_number_please(candidate, expected): from hrm_code import number_please assert number_please(candidate) == expected def test_import_data(): ...
26.05
69
0.621881
0
0
0
0
242
0.092898
0
0
372
0.142802
0b44a978913b26bbf0d8ab188b6560f82d0fe2d3
1,068
py
Python
core/migrations/0044_auto_20190510_0921.py
raheemazeezabiodun/art-backend
0bc47f3cf6f403101082f201c7fd1ca8108d5731
[ "MIT" ]
4
2018-03-12T23:49:01.000Z
2020-07-06T17:37:29.000Z
core/migrations/0044_auto_20190510_0921.py
raheemazeezabiodun/art-backend
0bc47f3cf6f403101082f201c7fd1ca8108d5731
[ "MIT" ]
259
2018-02-06T07:53:07.000Z
2020-06-05T19:18:32.000Z
core/migrations/0044_auto_20190510_0921.py
raheemazeezabiodun/art-backend
0bc47f3cf6f403101082f201c7fd1ca8108d5731
[ "MIT" ]
22
2018-01-25T14:02:05.000Z
2020-06-24T20:37:01.000Z
# Generated by Django 2.1.7 on 2019-05-10 09:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0043_auto_20190424_1029'), ] operations = [ migrations.RemoveField( model_name='statetransition', name='stat...
38.142857
258
0.634831
975
0.912921
0
0
0
0
0
0
477
0.446629
0b4772665a5a43688e79771eafbcfa9e4db57a1a
6,661
py
Python
postgres_connector/splitters.py
sandboxws/beam-postgres-connector
d08ed08e96991704fc234dd1e4d2ddf13f1885c1
[ "MIT" ]
null
null
null
postgres_connector/splitters.py
sandboxws/beam-postgres-connector
d08ed08e96991704fc234dd1e4d2ddf13f1885c1
[ "MIT" ]
null
null
null
postgres_connector/splitters.py
sandboxws/beam-postgres-connector
d08ed08e96991704fc234dd1e4d2ddf13f1885c1
[ "MIT" ]
null
null
null
import re from abc import ABCMeta, abstractmethod from datetime import datetime from typing import Callable, Iterator from apache_beam.io import iobase from apache_beam.io.range_trackers import (LexicographicKeyRangeTracker, OffsetRangeTracker, ...
37.632768
118
0.664465
6,242
0.937097
2,523
0.378772
958
0.143822
0
0
874
0.131212
0b479dbf807c903d09638149ff0de16acee169e3
5,827
py
Python
apis/python_interface_helpers/stk_env.py
davetrollope-fsml/sequence_toolkit
49495f679aad1d7c134cf8a189cca1e8acc9f4bd
[ "MIT" ]
null
null
null
apis/python_interface_helpers/stk_env.py
davetrollope-fsml/sequence_toolkit
49495f679aad1d7c134cf8a189cca1e8acc9f4bd
[ "MIT" ]
null
null
null
apis/python_interface_helpers/stk_env.py
davetrollope-fsml/sequence_toolkit
49495f679aad1d7c134cf8a189cca1e8acc9f4bd
[ "MIT" ]
null
null
null
from stk_sequence import * from stk_tcp_server import * from stk_tcp_client import * from stk_data_flow import * from stk_options import stk_clear_cb import time class stk_callback: def __init__(self): self._caller = None self._mapobj = None pass def add_callback_ref(self,caller): self._caller = caller def ...
34.276471
104
0.763686
5,658
0.970997
0
0
967
0.165952
0
0
657
0.112751
0b47c0ccbeb35e2ac408d98bd973b27910abd4c8
1,163
py
Python
readfile.py
y-azvd/perceptron
3cd4cefc7ae54bd8a3df702300ee9797389fef4a
[ "MIT" ]
null
null
null
readfile.py
y-azvd/perceptron
3cd4cefc7ae54bd8a3df702300ee9797389fef4a
[ "MIT" ]
null
null
null
readfile.py
y-azvd/perceptron
3cd4cefc7ae54bd8a3df702300ee9797389fef4a
[ "MIT" ]
null
null
null
import numpy as np ## ## @brief function_description ## ## @param filename The filename ## ## @return description_of_the_return_value ## def readfile(filename): csvfile = open(filename, "r") if not csvfile: print "error" return -1 rows = [] for row in csvfile: if row[0] != '#' : # linhas ...
23.26
71
0.674119
0
0
0
0
0
0
0
0
568
0.488392
0b49a43a85fb689276b933c981268752b4780e5f
3,255
py
Python
utils.py
SappieKonig/eind-practicum
d6ef30d233706812334a52b618f4ae00380ba3b7
[ "MIT" ]
null
null
null
utils.py
SappieKonig/eind-practicum
d6ef30d233706812334a52b618f4ae00380ba3b7
[ "MIT" ]
null
null
null
utils.py
SappieKonig/eind-practicum
d6ef30d233706812334a52b618f4ae00380ba3b7
[ "MIT" ]
null
null
null
import numpy as np import cv2 as cv import os import shutil from skimage.util.shape import view_as_windows import torch.nn.functional as F import torch from functools import lru_cache @lru_cache(maxsize=None) def get_exp_decay_filter(filter_size=1, decay=.9, avg=True): side = 2 * filter_size + 1 filter = torc...
31.601942
112
0.663902
0
0
0
0
372
0.114286
0
0
194
0.059601
0b4a7fb8ebee09432022b77e8750863d12e69e9f
134
py
Python
python/pangram.py
emiliot/hackerrank
7a3081f6b0a33f8402c63b94a6a54728a9adf47e
[ "MIT" ]
null
null
null
python/pangram.py
emiliot/hackerrank
7a3081f6b0a33f8402c63b94a6a54728a9adf47e
[ "MIT" ]
null
null
null
python/pangram.py
emiliot/hackerrank
7a3081f6b0a33f8402c63b94a6a54728a9adf47e
[ "MIT" ]
null
null
null
s = input().strip() res = [c for c in set(s.lower()) if c.isalpha()] if len(res) == 26: print("pangram") else: print("not pangram")
19.142857
48
0.604478
0
0
0
0
0
0
0
0
22
0.164179
0b4ac3436bf4854bb94f737d096d1fe630a754a3
8,423
py
Python
stream.py
ccgcyber/xpcap
a0e6fd1355fd0a9cbff4e074275b236ce8c6c3b8
[ "MIT" ]
5
2017-07-31T02:07:05.000Z
2021-02-14T16:39:49.000Z
stream.py
ccgcyber/xpcap
a0e6fd1355fd0a9cbff4e074275b236ce8c6c3b8
[ "MIT" ]
null
null
null
stream.py
ccgcyber/xpcap
a0e6fd1355fd0a9cbff4e074275b236ce8c6c3b8
[ "MIT" ]
4
2016-07-24T08:56:54.000Z
2020-07-12T11:50:02.000Z
from __future__ import print_function import pkgutil import stream_decoders # this module decodes stream based protocols. # and resolves retransmissions. decoders= [] # __path__ is used to find the location of all decoder submodules for impimp, name, ii in pkgutil.iter_modules(stream_decoders.__path__): impload= ...
32.396154
93
0.544343
6,089
0.722902
0
0
229
0.027187
0
0
1,793
0.21287
0b4afb977af41e7750f169c98501350be4fa6ae6
247
py
Python
app/db/connection.py
melhin/streamchat
8a3e7ffdcf4bc84045df71259556f4267a755351
[ "MIT" ]
null
null
null
app/db/connection.py
melhin/streamchat
8a3e7ffdcf4bc84045df71259556f4267a755351
[ "MIT" ]
3
2020-09-16T13:30:17.000Z
2020-09-19T09:56:50.000Z
app/db/connection.py
melhin/streamchat
8a3e7ffdcf4bc84045df71259556f4267a755351
[ "MIT" ]
null
null
null
import logging import aioredis from app.core.config import REDIS_DSN, REDIS_PASSWORD logger = logging.getLogger(__name__) async def get_redis_pool(): return await aioredis.create_redis(REDIS_DSN, encoding='utf-8', password=REDIS_PASSWORD)
22.454545
92
0.805668
0
0
0
0
0
0
120
0.48583
7
0.02834
0b4cc6aa957df616a9c14313fa9b9ee7ec6d0837
1,434
py
Python
calculators/static_dipolar_couplings/dcc.py
jlorieau/nmr
15224342a9277da8b02e10027644c86ac3769db1
[ "MIT" ]
null
null
null
calculators/static_dipolar_couplings/dcc.py
jlorieau/nmr
15224342a9277da8b02e10027644c86ac3769db1
[ "MIT" ]
null
null
null
calculators/static_dipolar_couplings/dcc.py
jlorieau/nmr
15224342a9277da8b02e10027644c86ac3769db1
[ "MIT" ]
null
null
null
from math import pi u0 = 4.*pi*1E-7 # T m /A hbar = 1.0545718E-34 # J s # 1 T = kg s^-2 A-1 = J A^-1 m^-2 g = { '1H' : 267.513E6, # rad T^-1 s^-1 '13C': 67.262E6, '15N': -27.116E6, 'e': 176086E6 } # nuc_i, nuc_j: nucleus string. ex: '1H' # r_ij: distance in Angstroms DCC = lambda nuc_i, nuc_j, ...
34.142857
89
0.502092
0
0
0
0
0
0
0
0
647
0.451185
0b4dc3067343c33e32c44d539a787edba0c40515
2,197
py
Python
torchvision/prototype/datasets/_builtin/country211.py
SariaCxs/vision
1db8795733b91cd6dd62a0baa7ecbae6790542bc
[ "BSD-3-Clause" ]
1
2022-03-31T02:37:35.000Z
2022-03-31T02:37:35.000Z
torchvision/prototype/datasets/_builtin/country211.py
SariaCxs/vision
1db8795733b91cd6dd62a0baa7ecbae6790542bc
[ "BSD-3-Clause" ]
null
null
null
torchvision/prototype/datasets/_builtin/country211.py
SariaCxs/vision
1db8795733b91cd6dd62a0baa7ecbae6790542bc
[ "BSD-3-Clause" ]
null
null
null
import pathlib from typing import Any, Dict, List, Tuple from torchdata.datapipes.iter import IterDataPipe, Mapper, Filter from torchvision.prototype.datasets.utils import Dataset, DatasetConfig, DatasetInfo, HttpResource, OnlineResource from torchvision.prototype.datasets.utils._internal import path_comparator, hint_...
38.54386
114
0.65817
1,786
0.812927
0
0
0
0
0
0
276
0.125626
0b5048a8c70006e924308165169ee5c4fabe48fa
934
py
Python
asar_pi_applications/asar_vision/robot_distance_incorrect.py
ssnover/msd-p18542
32bef466f9d5ba55429da2119a14081b3e411d0b
[ "MIT" ]
3
2021-01-07T07:46:50.000Z
2021-11-17T10:48:39.000Z
asar_pi_applications/asar_vision/robot_distance_incorrect.py
ssnover/msd-p18542
32bef466f9d5ba55429da2119a14081b3e411d0b
[ "MIT" ]
3
2018-02-19T20:30:30.000Z
2018-04-20T23:25:29.000Z
asar_pi_applications/asar_vision/robot_distance_incorrect.py
ssnover95/msd-p18542
32bef466f9d5ba55429da2119a14081b3e411d0b
[ "MIT" ]
1
2021-01-07T07:46:52.000Z
2021-01-07T07:46:52.000Z
import numpy as np from math import sqrt def robot_distance_incorrect(robot_actual_location, hexagon_pixel_values): distance_to_get_back = [] distances = [] pixel_distance = [] for i in range(0, len(hexagon_pixel_values)): dist = sqrt((robot_actual_location[0] - hexagon_pixel_values[i][0]) ** ...
44.47619
115
0.723769
0
0
0
0
0
0
0
0
168
0.179872
0b519f8596f5bf7ee53103adc8d550ce1fb62540
68,172
py
Python
tests/test_generate_unique_id_function.py
ssensalo/fastapi
146f57b8f70c5757dc20edc716dba1b96936a8d6
[ "MIT" ]
1
2022-01-08T16:39:28.000Z
2022-01-08T16:39:28.000Z
tests/test_generate_unique_id_function.py
ssensalo/fastapi
146f57b8f70c5757dc20edc716dba1b96936a8d6
[ "MIT" ]
1
2022-01-07T21:04:04.000Z
2022-01-07T21:04:04.000Z
tests/test_generate_unique_id_function.py
ssensalo/fastapi
146f57b8f70c5757dc20edc716dba1b96936a8d6
[ "MIT" ]
null
null
null
import warnings from typing import List from fastapi import APIRouter, FastAPI from fastapi.routing import APIRoute from fastapi.testclient import TestClient from pydantic import BaseModel def custom_generate_unique_id(route: APIRoute): return f"foo_{route.name}" def custom_generate_unique_id2(route: APIRoute)...
41.772059
106
0.285161
114
0.001672
0
0
3,794
0.055653
0
0
19,117
0.280423
0b5218f0be7a06f3e5bb1ddae6a9fce7c35741e8
11,880
py
Python
hbruraldoctor/hbvirtual/lib/python3.7/site-packages/Naked/app.py
hallohubo/DjangoDocterAPI
2d86d17c718affa968c0b2d4f9590aa08d43716e
[ "Apache-2.0" ]
89
2015-04-10T14:34:05.000Z
2021-11-08T09:17:09.000Z
hbruraldoctor/hbvirtual/lib/python3.7/site-packages/Naked/app.py
hallohubo/DjangoDocterAPI
2d86d17c718affa968c0b2d4f9590aa08d43716e
[ "Apache-2.0" ]
13
2015-03-17T15:44:41.000Z
2020-11-19T03:07:13.000Z
hbruraldoctor/hbvirtual/lib/python3.7/site-packages/Naked/app.py
hallohubo/DjangoDocterAPI
2d86d17c718affa968c0b2d4f9590aa08d43716e
[ "Apache-2.0" ]
19
2015-05-13T09:18:12.000Z
2021-04-28T10:35:39.000Z
#!/usr/bin/env python # encoding: utf-8 #------------------------------------------------------------------------------ # Naked | A Python command line application framework # Copyright 2014 Christopher Simpkins # MIT License #------------------------------------------------------------------------------ #-----------...
51.652174
135
0.448485
0
0
0
0
0
0
0
0
6,913
0.581902
0b57844b6fc847c94e6d69c32ba1624b13f6dfa7
366
py
Python
codes/day7_task1.py
tayyrov/AdventOfCode
69003407fd345ea76f8125b4b132e5b5d5ea33ab
[ "MIT" ]
1
2021-12-07T10:54:48.000Z
2021-12-07T10:54:48.000Z
codes/day7_task1.py
tayyrov/AdventOfCode
69003407fd345ea76f8125b4b132e5b5d5ea33ab
[ "MIT" ]
null
null
null
codes/day7_task1.py
tayyrov/AdventOfCode
69003407fd345ea76f8125b4b132e5b5d5ea33ab
[ "MIT" ]
null
null
null
""" Advent Of Code 2021 Day 7 Date: 07-12-2021 Site: https://adventofcode.com/2021/day/7 Author: Tayyrov """ import sys file1 = open('../input_files/day7_input', 'r') numbers = list(map(int, file1.readlines()[0].split(","))) numbers.sort() middle = numbers[len(numbers)//2] ans = 0 for n in numb...
15.25
58
0.620219
0
0
0
0
0
0
0
0
147
0.401639
0b57f9e75344dd34d7fe38dc10faa58dd476ec48
4,270
py
Python
events/utils.py
ewjoachim/pythondotorg
382741cc6208fc56aa827cdd1da41983fb7e6ba8
[ "Apache-2.0" ]
null
null
null
events/utils.py
ewjoachim/pythondotorg
382741cc6208fc56aa827cdd1da41983fb7e6ba8
[ "Apache-2.0" ]
null
null
null
events/utils.py
ewjoachim/pythondotorg
382741cc6208fc56aa827cdd1da41983fb7e6ba8
[ "Apache-2.0" ]
null
null
null
import datetime import re import pytz from django.utils.timezone import make_aware, is_aware def seconds_resolution(dt): return dt - dt.microsecond * datetime.timedelta(0, 0, 1) def minutes_resolution(dt): return dt - dt.second * datetime.timedelta(0, 1, 0) - dt.microsecond * datetime.timedelta(0, 0, 1) ...
34.16
102
0.545902
0
0
0
0
0
0
0
0
1,577
0.369321
0b59207603dace13de5bad24d570481b2383557b
4,282
py
Python
frontend/main.py
loukwn/klougle
45432841c594ced36437566f416e9c71017f83a5
[ "MIT" ]
2
2018-10-26T11:06:51.000Z
2020-04-29T13:38:13.000Z
frontend/main.py
loukwn/klougle
45432841c594ced36437566f416e9c71017f83a5
[ "MIT" ]
null
null
null
frontend/main.py
loukwn/klougle
45432841c594ced36437566f416e9c71017f83a5
[ "MIT" ]
null
null
null
import json import operator import os import webbrowser from timeit import default_timer as timer from kivy.app import App from kivy.config import Config from kivy.properties import ObjectProperty from kivy.uix.stacklayout import StackLayout from nltk.stem.wordnet import WordNetLemmatizer Config.set('input', 'mouse',...
34.532258
115
0.609295
1,647
0.384633
0
0
0
0
0
0
1,149
0.268333
0b5a05b2b3ff689eda558db7efd7ba2b693f4a50
1,244
py
Python
test.py
richisusiljacob/VideoTo360VR
14c176cfbe90fd7cf113cbdd2d4edf447c001894
[ "MIT" ]
5
2021-08-06T11:26:56.000Z
2022-03-17T09:06:07.000Z
test.py
richisusiljacob/VideoTo360VR
14c176cfbe90fd7cf113cbdd2d4edf447c001894
[ "MIT" ]
8
2021-07-03T08:08:00.000Z
2021-07-09T06:59:34.000Z
test.py
richisusiljacob/VideoTo360VR
14c176cfbe90fd7cf113cbdd2d4edf447c001894
[ "MIT" ]
2
2021-07-02T09:19:09.000Z
2021-07-04T13:34:30.000Z
from tkinter import * import tkinter.ttk as ttk from PIL import ImageTk,Image """ root = Tk() canvas = Canvas(root, width = 300, height = 300) canvas.pack() img = ImageTk.PhotoImage(Image.open("output/collage1/FinalCollage.jpg")) canvas.create_image(0,0,anchor=NW, image=img) root.mainloop() """ root = Tk(...
31.1
74
0.553859
0
0
0
0
0
0
0
0
381
0.30627
0b5a82c329031fc6f172ed423012d36ab20bca44
10,817
py
Python
testscripts/RDKB/component/WEBCONFIG/TS_WEBCONFIG_DisableRFC_QuerySyncParams.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/WEBCONFIG/TS_WEBCONFIG_DisableRFC_QuerySyncParams.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/WEBCONFIG/TS_WEBCONFIG_DisableRFC_QuerySyncParams.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2021 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
49.168182
194
0.665249
0
0
0
0
0
0
0
0
6,422
0.593695
0b5a9a6d564a0a48f6482c88a286d5b324351dbc
3,283
py
Python
xappt_qt/plugins/tools/examples/auto_advance.py
cmontesano/xappt_qt
74f8c62e0104a67b4b4eb65382df851221bf0bab
[ "MIT" ]
null
null
null
xappt_qt/plugins/tools/examples/auto_advance.py
cmontesano/xappt_qt
74f8c62e0104a67b4b4eb65382df851221bf0bab
[ "MIT" ]
12
2020-10-11T22:42:12.000Z
2021-10-04T19:38:51.000Z
xappt_qt/plugins/tools/examples/auto_advance.py
cmontesano/xappt_qt
74f8c62e0104a67b4b4eb65382df851221bf0bab
[ "MIT" ]
1
2021-09-29T23:53:34.000Z
2021-09-29T23:53:34.000Z
import time import xappt @xappt.register_plugin class AutoAdvance(xappt.BaseTool): message = xappt.ParamString(options={"ui": "label"}) next_iteration_advance_mode = xappt.ParamInt(choices=("no auto advance", "auto advance")) def __init__(self, *, interface: xappt.BaseInterface, **kwargs): super...
43.773333
110
0.616205
3,231
0.984161
0
0
3,254
0.991167
0
0
1,176
0.358209
0b5adb9041b96e89affef15661e25d3114bd15aa
962
py
Python
play-1.2.4/python/Lib/site-packages/Rpyc/Utils/Discovery.py
AppSecAI-TEST/restcommander
a2523f31356938f5c7fc6d379b7678da0b1e077a
[ "Apache-2.0" ]
550
2015-01-05T16:59:00.000Z
2022-03-20T16:55:25.000Z
framework/python/Lib/site-packages/Rpyc/Utils/Discovery.py
lafayette/JBTT
94bde9d90abbb274d29ecd82e632d43a4320876e
[ "MIT" ]
15
2015-02-05T06:00:47.000Z
2018-07-07T14:34:04.000Z
framework/python/Lib/site-packages/Rpyc/Utils/Discovery.py
lafayette/JBTT
94bde9d90abbb274d29ecd82e632d43a4320876e
[ "MIT" ]
119
2015-01-08T00:48:24.000Z
2022-01-27T14:13:15.000Z
""" Discovery: broadcasts a query, attempting to discover all running RPyC servers over the local network/specific subnet. """ import socket import select import struct __all__ = ["discover_servers"] UDP_DISCOVERY_PORT = 18813 QUERY_MAGIC = "RPYC_QUERY" MAX_DGRAM_SIZE = 100 def discover_servers(subnet = "255.255.25...
24.666667
82
0.672557
0
0
0
0
0
0
0
0
284
0.295218
0b5cea9d906ea2c35bda5ccee23fdca482e7e9b4
335
py
Python
atest/testresources/testlibs/objecttoreturn.py
userzimmermann/robotframework
7aa16338ce2120cb082605cf548c0794956ec901
[ "Apache-2.0" ]
7
2015-02-25T10:55:02.000Z
2015-11-04T03:20:05.000Z
atest/testresources/testlibs/objecttoreturn.py
userzimmermann/robotframework
7aa16338ce2120cb082605cf548c0794956ec901
[ "Apache-2.0" ]
12
2015-02-24T17:00:06.000Z
2015-07-31T08:32:07.000Z
atest/testresources/testlibs/objecttoreturn.py
userzimmermann/robotframework
7aa16338ce2120cb082605cf548c0794956ec901
[ "Apache-2.0" ]
2
2015-12-15T11:00:35.000Z
2018-02-24T18:11:24.000Z
try: import exceptions except ImportError: # Python 3 import builtins as exceptions class ObjectToReturn: def __init__(self, name): self.name = name def __str__(self): return self.name def exception(self, name, msg=""): exception = getattr(exceptions, name) raise ...
19.705882
45
0.647761
241
0.719403
0
0
0
0
0
0
12
0.035821
0b5db17336f788ad1d51e0ebfedab480c4c72a7e
2,068
py
Python
quiz/models.py
jzi040941/django_quiz
465d29c74e3ff6814f686296d225f18a50c99b9a
[ "MIT" ]
1
2018-03-14T16:43:00.000Z
2018-03-14T16:43:00.000Z
quiz/models.py
jzi040941/django_quiz
465d29c74e3ff6814f686296d225f18a50c99b9a
[ "MIT" ]
null
null
null
quiz/models.py
jzi040941/django_quiz
465d29c74e3ff6814f686296d225f18a50c99b9a
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class quiz_short(models.Model): AssignNum = models.ForeignKey('teacher.Assignment', on_delete=models.CASCADE) Question = models.TextField() Answer = models.TextField() def __str__(self): return "AssignNum : %s, question: %s Answer: %s" % ...
35.655172
113
0.696325
1,593
0.770309
0
0
0
0
0
0
848
0.410058
0b5e2ce14cd1b7d0c4bdab1dbcbd6268fb51f4f1
165
py
Python
benchmark/VAR/GG/common.py
victor-estrade/SystGradDescent
822e7094290301ec47a99433381a8d6406798aff
[ "MIT" ]
2
2019-03-20T09:05:02.000Z
2019-03-20T15:23:44.000Z
benchmark/VAR/GG/common.py
victor-estrade/SystGradDescent
822e7094290301ec47a99433381a8d6406798aff
[ "MIT" ]
null
null
null
benchmark/VAR/GG/common.py
victor-estrade/SystGradDescent
822e7094290301ec47a99433381a8d6406798aff
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import print_function from __future__ import division from __future__ import absolute_import from __future__ import unicode_literals
27.5
39
0.866667
0
0
0
0
0
0
0
0
15
0.090909
0b610800704e8c840fbc0a2a516adbeed8570f93
3,479
py
Python
problems/problem3.py
JakobHavtorn/euler
b5ca0b4393dc9a6d6e0623e0df5b96f803e116ab
[ "MIT" ]
null
null
null
problems/problem3.py
JakobHavtorn/euler
b5ca0b4393dc9a6d6e0623e0df5b96f803e116ab
[ "MIT" ]
null
null
null
problems/problem3.py
JakobHavtorn/euler
b5ca0b4393dc9a6d6e0623e0df5b96f803e116ab
[ "MIT" ]
null
null
null
"""Largest prime factor The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143? """ import math import numpy as np def largest_prime_factor_naive(number): """ Let the given number be n and let k = 2, 3, 4, 5, ... . For each k, if it is a factor of n ...
28.516393
122
0.603334
0
0
0
0
0
0
0
0
1,163
0.334291
0b61cadfab29026982ee72c19310998fdc907aa6
1,312
py
Python
aio_binance/futures/usdt/api/methods/stream.py
GRinvest/aiobinance
49ce0bdf955d9fa9363c41eb9cec3da2f121e611
[ "MIT" ]
5
2022-01-30T19:32:16.000Z
2022-03-12T15:00:13.000Z
aio_binance/futures/usdt/api/methods/stream.py
GRinvest/aio-binance-library
49ce0bdf955d9fa9363c41eb9cec3da2f121e611
[ "MIT" ]
null
null
null
aio_binance/futures/usdt/api/methods/stream.py
GRinvest/aio-binance-library
49ce0bdf955d9fa9363c41eb9cec3da2f121e611
[ "MIT" ]
null
null
null
class DataStream: async def create_private_listen_key(self) -> dict: """**Create a ListenKey (USER_STREAM)** Notes: ``POST /fapi/v1/listenKey`` See Also: https://binance-docs.github.io/apidocs/futures/en/#start-user-data-stream-user_stream """ retu...
29.155556
101
0.55564
1,310
0.998476
0
0
0
0
1,275
0.971799
843
0.64253
0b61d6924578e04d8bbfa01176c73eece0bd32ef
2,484
py
Python
nova/tests/test_hooks.py
bopopescu/zknova
8dd09199f5678697be228ffceeaf2c16f6d7319d
[ "Apache-2.0" ]
null
null
null
nova/tests/test_hooks.py
bopopescu/zknova
8dd09199f5678697be228ffceeaf2c16f6d7319d
[ "Apache-2.0" ]
null
null
null
nova/tests/test_hooks.py
bopopescu/zknova
8dd09199f5678697be228ffceeaf2c16f6d7319d
[ "Apache-2.0" ]
1
2020-07-24T08:25:25.000Z
2020-07-24T08:25:25.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2012 OpenStack, LLC. # 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...
28.227273
78
0.654187
1,692
0.681159
0
0
95
0.038245
0
0
801
0.322464
0b6439e111fde6d2d72ca7b4f1a3a62557d36d00
8,850
py
Python
code/reasoningtool/kg-construction/QueryUniprot.py
andrewsu/RTX
dd1de262d0817f7e6d2f64e5bec7d5009a3a2740
[ "MIT" ]
31
2018-03-05T20:01:10.000Z
2022-02-01T03:31:22.000Z
code/reasoningtool/kg-construction/QueryUniprot.py
andrewsu/RTX
dd1de262d0817f7e6d2f64e5bec7d5009a3a2740
[ "MIT" ]
1,774
2018-03-06T01:55:03.000Z
2022-03-31T03:09:04.000Z
code/reasoningtool/kg-construction/QueryUniprot.py
andrewsu/RTX
dd1de262d0817f7e6d2f64e5bec7d5009a3a2740
[ "MIT" ]
19
2018-05-10T00:43:19.000Z
2022-03-08T19:26:16.000Z
""" This module defines the class QueryUniprot which connects to APIs at http://www.uniprot.org/uploadlists/, querying reactome pathways from uniprot id. * map_enzyme_commission_id_to_uniprot_ids(ec_id) Description: map enzyme commission id to UniProt ids Args: ec_id (str): enzyme commissio...
40.410959
116
0.63209
6,364
0.719096
0
0
6,052
0.683842
0
0
2,369
0.267684
0b649e46fb5914bfe7b320bbcd19fe8e80f42ef7
1,624
py
Python
code_trunk/emb.py
chris4540/DD2430-ds-proj
b876efabe949392b27a7ebd4afb2be623174e287
[ "MIT" ]
null
null
null
code_trunk/emb.py
chris4540/DD2430-ds-proj
b876efabe949392b27a7ebd4afb2be623174e287
[ "MIT" ]
null
null
null
code_trunk/emb.py
chris4540/DD2430-ds-proj
b876efabe949392b27a7ebd4afb2be623174e287
[ "MIT" ]
null
null
null
import torch from network.siamese import SiameseNet from network.resnet import ResidualEmbNetwork import os import numpy as np from utils.datasets import DeepFashionDataset from torchvision.transforms import Compose from torchvision.transforms import Resize from torchvision.transforms import ToTensor from torchvision.t...
28.491228
72
0.76601
0
0
0
0
0
0
0
0
122
0.075123
0b67517486e91d69f9ba0a1be6a90a8c7366f494
507
py
Python
src/stations/datastructures.py
cwerner/st-folium-demo
31bfc3184e7e90d1901ab48fd0d4ee6026f97fe6
[ "Apache-2.0" ]
1
2021-03-19T11:10:04.000Z
2021-03-19T11:10:04.000Z
src/stations/datastructures.py
cwerner/st-folium-demo
31bfc3184e7e90d1901ab48fd0d4ee6026f97fe6
[ "Apache-2.0" ]
null
null
null
src/stations/datastructures.py
cwerner/st-folium-demo
31bfc3184e7e90d1901ab48fd0d4ee6026f97fe6
[ "Apache-2.0" ]
null
null
null
from enum import Enum # ifu ifu = {"name": "IFU", "geo_lat": 47.476180, "geo_lon": 11.063350} # tereno stations tereno_stations = [ {"name": "Fendth", "geo_lat": 47.83243, "geo_lon": 11.06111}, {"name": "Grasswang", "geo_lat": 47.57026, "geo_lon": 11.03189}, {"name": "Rottenbuch", "geo_lat": 47.73032, "ge...
23.045455
69
0.601578
163
0.321499
0
0
73
0.143984
0
0
181
0.357002
0b6861770f6d11f0e6e5144b7f72620064b17922
2,217
py
Python
Tools/Scripts/Python/module_Basemap_RegCM_domain.py
taobrienlbl/RegCM
bda1c78790f0a1501916d0979b843216a08b2cef
[ "AFL-1.1" ]
27
2019-04-23T08:36:25.000Z
2021-11-15T08:55:01.000Z
Tools/Scripts/Python/module_Basemap_RegCM_domain.py
taobrienlbl/RegCM
bda1c78790f0a1501916d0979b843216a08b2cef
[ "AFL-1.1" ]
9
2020-02-20T06:43:03.000Z
2021-09-24T11:26:46.000Z
Tools/Scripts/Python/module_Basemap_RegCM_domain.py
taobrienlbl/RegCM
bda1c78790f0a1501916d0979b843216a08b2cef
[ "AFL-1.1" ]
17
2019-06-10T12:49:05.000Z
2021-11-14T06:55:20.000Z
#!/usr/bin/python2.6 """ Here a comment starts, with 3 quotation marks. In the same way, the comment ends ... Purpose: Draw a base map of the CORDEX domain Selected projection: Lambert Conformal Projection Date: Sept. 26, 2018 Author: S. STRADA REFERENCES: Basemap Tool http://basemaptutorial.re...
41.830189
145
0.656292
0
0
0
0
0
0
0
0
1,424
0.642309
0b691cc681e4265eeba5b9e50b719f23cdd77315
24,369
py
Python
old_game/combat.py
jwvhewitt/dmeternal
bb09f2d497daf9b40dd8cfee10c55be55fb7c3cb
[ "Apache-2.0" ]
53
2015-07-03T21:25:36.000Z
2022-02-18T23:08:38.000Z
old_game/combat.py
jwvhewitt/dmeternal
bb09f2d497daf9b40dd8cfee10c55be55fb7c3cb
[ "Apache-2.0" ]
5
2015-07-03T21:27:12.000Z
2016-12-08T14:40:38.000Z
old_game/combat.py
jwvhewitt/dmeternal
bb09f2d497daf9b40dd8cfee10c55be55fb7c3cb
[ "Apache-2.0" ]
14
2016-02-02T06:49:51.000Z
2022-02-24T13:24:35.000Z
from . import characters from . import teams from . import hotmaps from . import pygwrap import pygame from . import maps import collections from . import image from . import pfov import random from . import stats from . import rpgmenu from . import animobs from . import effects from . import enchantments from . import...
43.207447
232
0.57249
22,963
0.942304
0
0
0
0
0
0
3,684
0.151176
0b6a970c6ea0942a3a8927c5faff7c9dff07c309
4,096
py
Python
tests/testJobQueue.py
hartloff/Tango
9dd867a596441e0e2ba1069017781dddb9c79bdb
[ "Apache-2.0" ]
2
2020-10-30T03:01:55.000Z
2021-03-25T03:18:12.000Z
tests/testJobQueue.py
hartloff/Tango
9dd867a596441e0e2ba1069017781dddb9c79bdb
[ "Apache-2.0" ]
7
2018-06-26T02:48:09.000Z
2021-01-21T03:12:19.000Z
tests/testJobQueue.py
hartloff/Tango
9dd867a596441e0e2ba1069017781dddb9c79bdb
[ "Apache-2.0" ]
9
2018-09-28T23:48:48.000Z
2021-10-03T20:29:48.000Z
import unittest import redis from jobQueue import JobQueue from tangoObjects import TangoIntValue, TangoJob from config import Config class TestJobQueue(unittest.TestCase): def setUp(self): if Config.USE_REDIS: __db = redis.StrictRedis( Config.REDIS_HOSTNAME, Config.REDIS_PO...
29.681159
63
0.619141
3,910
0.95459
0
0
0
0
0
0
245
0.059814
0b6b9493f9b4caffc3dc8d7eb74ffd39200333e1
6,891
py
Python
hybmc/products/Swap.py
sschlenkrich/HybridMonteCarlo
72f54aa4bcd742430462b27b72d70369c01f9ac4
[ "MIT" ]
3
2021-08-18T18:34:41.000Z
2021-12-24T07:05:19.000Z
hybmc/products/Swap.py
sschlenkrich/HybridMonteCarlo
72f54aa4bcd742430462b27b72d70369c01f9ac4
[ "MIT" ]
null
null
null
hybmc/products/Swap.py
sschlenkrich/HybridMonteCarlo
72f54aa4bcd742430462b27b72d70369c01f9ac4
[ "MIT" ]
3
2021-01-31T11:41:19.000Z
2022-03-25T19:51:20.000Z
#!/usr/bin/python import sys sys.path.append('./') import QuantLib as ql from hybmc.simulations.Payoffs import Payoff, Fixed, ZeroBond, LiborRate, Cache, Asset from hybmc.simulations.AmcPayoffs import AmcSum from hybmc.products.Product import Product def DiscountedPayoffFromCashFlow(cf, obsTime, payOrReceive, discY...
43.06875
110
0.628646
2,860
0.415034
0
0
0
0
0
0
1,565
0.227108
0b6dc7197643d4c8de27269ff87d6ea19785b867
1,571
py
Python
src/streamlink/plugins/tamago.py
hymer-up/streamlink
f09bf6e04cddc78eceb9ded655f716ef3ee4b84f
[ "BSD-2-Clause" ]
5
2019-07-26T17:03:26.000Z
2020-10-17T23:23:43.000Z
src/streamlink/plugins/tamago.py
hymer-up/streamlink
f09bf6e04cddc78eceb9ded655f716ef3ee4b84f
[ "BSD-2-Clause" ]
9
2018-01-14T15:20:23.000Z
2021-03-08T20:29:51.000Z
src/streamlink/plugins/tamago.py
bumplzz69/streamlink
34abc43875d7663ebafa241573dece272e93d88b
[ "BSD-2-Clause" ]
4
2018-01-14T13:27:25.000Z
2021-11-15T22:28:30.000Z
import re from streamlink.plugin import Plugin from streamlink.plugin.api import validate from streamlink.stream import HTTPStream from streamlink import NoStreamsError class Tamago(Plugin): _url_re = re.compile(r"https?://(?:player\.)?tamago\.live/w/(?P<id>\d+)") _api_url_base = "https://player.tamago.liv...
29.641509
112
0.623806
1,376
0.875875
738
0.469764
96
0.061108
0
0
226
0.143857
0b6e713eceaaae29df8407fca294483723c28e41
17,811
py
Python
models/misc/modules.py
zgjslc/Film-Recovery-master1
4497a9930398c9e826ac364056a79e5bcbf6c953
[ "Apache-2.0" ]
null
null
null
models/misc/modules.py
zgjslc/Film-Recovery-master1
4497a9930398c9e826ac364056a79e5bcbf6c953
[ "Apache-2.0" ]
null
null
null
models/misc/modules.py
zgjslc/Film-Recovery-master1
4497a9930398c9e826ac364056a79e5bcbf6c953
[ "Apache-2.0" ]
null
null
null
""" Name: modules.py Desc: This script defines some base module for building networks. """ from typing import Any import torch import torch.nn as nn import torch.nn.functional as F class UNet_down_block(nn.Module): def __init__(self, input_channel, output_channel, down_size=True): super(UNet_down_block,...
41.133949
117
0.60311
15,375
0.863231
0
0
0
0
0
0
2,574
0.144517
0b6eaa68175183e78cc2a72bb734ce612395335a
341
py
Python
flask_webpack_bundle/config.py
briancappello/flask-webpack-bundle
67896e6ade345e34721a8f9da156b65fc0646984
[ "MIT" ]
null
null
null
flask_webpack_bundle/config.py
briancappello/flask-webpack-bundle
67896e6ade345e34721a8f9da156b65fc0646984
[ "MIT" ]
null
null
null
flask_webpack_bundle/config.py
briancappello/flask-webpack-bundle
67896e6ade345e34721a8f9da156b65fc0646984
[ "MIT" ]
null
null
null
import os from flask_unchained import AppConfig class Config(AppConfig): WEBPACK_MANIFEST_PATH = os.path.join( AppConfig.STATIC_FOLDER, 'assets', 'manifest.json') class ProdConfig: # use relative paths by default, ie, the same host as the backend WEBPACK_ASSETS_HOST = '' class StagingConfig(P...
18.944444
69
0.730205
283
0.829912
0
0
0
0
0
0
90
0.26393
0b6fda84960a8cf5a23f750128dc700eaee71d2f
2,458
py
Python
touchdown/aws/elasticache/replication_group.py
yaybu/touchdown
70ecda5191ce2d095bc074dcb23bfa1584464814
[ "Apache-2.0" ]
14
2015-01-05T18:18:04.000Z
2022-02-07T19:35:12.000Z
touchdown/aws/elasticache/replication_group.py
yaybu/touchdown
70ecda5191ce2d095bc074dcb23bfa1584464814
[ "Apache-2.0" ]
106
2015-01-06T00:17:13.000Z
2019-09-07T00:35:32.000Z
touchdown/aws/elasticache/replication_group.py
yaybu/touchdown
70ecda5191ce2d095bc074dcb23bfa1584464814
[ "Apache-2.0" ]
5
2015-01-30T10:18:24.000Z
2022-02-07T19:35:13.000Z
# Copyright 2014 Isotoma Limited # # 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...
32.773333
83
0.746542
1,673
0.680635
0
0
0
0
0
0
1,092
0.444264
0b6ffbf766a563164a019a52f34be9e1263ae173
4,197
py
Python
core/env.py
ayyuriss/EigenFunctions
8cb6c22871fcddb633392c0a12691e960dad5143
[ "MIT" ]
null
null
null
core/env.py
ayyuriss/EigenFunctions
8cb6c22871fcddb633392c0a12691e960dad5143
[ "MIT" ]
null
null
null
core/env.py
ayyuriss/EigenFunctions
8cb6c22871fcddb633392c0a12691e960dad5143
[ "MIT" ]
null
null
null
import xxhash import numpy as np from base.grid import SimpleGRID import scipy.sparse as SP h = xxhash.xxh64() s_to_i = lambda x,size : size*x[0]+x[1] i_to_s = lambda x,size : (x%size,x//size) def hash(x): h.reset() h.update(x) return h.digest() class Indexer(object): def __init__(self): ...
26.732484
109
0.510841
2,850
0.679056
624
0.148678
127
0.03026
0
0
158
0.037646
0b710ba6108771869cc4dcfa0e46001cedd35936
14,324
py
Python
tests/test_properties.py
jmborr/ipdflex
9537247c78373f740873703448d948e7a7ada9fb
[ "MIT" ]
3
2020-01-15T08:23:48.000Z
2022-03-28T22:14:05.000Z
tests/test_properties.py
jmborr/idpflex
9537247c78373f740873703448d948e7a7ada9fb
[ "MIT" ]
46
2018-01-10T22:51:46.000Z
2021-11-15T17:47:32.000Z
tests/test_properties.py
jmborr/ipdflex
9537247c78373f740873703448d948e7a7ada9fb
[ "MIT" ]
5
2018-01-27T15:27:45.000Z
2020-01-15T08:23:50.000Z
import random import numpy as np import pytest import tempfile import shutil from idpflex import properties as ps from idpflex.properties import SecondaryStructureProperty as SSP class TestRegisterDecorateProperties(object): def test_register_as_node_property(self): class SomeProperty(object): ...
39.569061
79
0.645909
14,061
0.981639
0
0
2,852
0.199106
0
0
1,556
0.108629
0b71623dce279f8394f45396a0c88a69e51e39e7
272
py
Python
3d_cnn/src/constants/particles.py
mrmattuschka/DeePiCt
ef3e81ea25705076f340175d97ccff98f8d11799
[ "Apache-2.0" ]
null
null
null
3d_cnn/src/constants/particles.py
mrmattuschka/DeePiCt
ef3e81ea25705076f340175d97ccff98f8d11799
[ "Apache-2.0" ]
2
2022-03-08T09:22:23.000Z
2022-03-20T21:13:07.000Z
3d_cnn/src/constants/particles.py
ZauggGroup/DeePiCt
0bdf1cd845cc306e66e30face1010c12ca3a38d0
[ "Apache-2.0" ]
null
null
null
from os.path import join def create_particle_file_name(folder_path: str, img_number: int, coord_indx: int, ext: str) -> str: file_name = str(img_number) + 'particle' + str(coord_indx) + '.' + ext return join(folder_path, file_name)
34
74
0.636029
0
0
0
0
0
0
0
0
13
0.047794
0b72374ff1f0c05184c363dcfc881dd0ee234e7e
13,807
py
Python
unn/models/heads/utils/loss.py
zongdaoming/TinyTransformer
8e64f8816117048c388b4b20e3a56760ce149fe3
[ "Apache-2.0" ]
2
2021-08-08T11:23:14.000Z
2021-09-16T04:05:23.000Z
unn/models/heads/utils/loss.py
zongdaoming/TinyTransformer
8e64f8816117048c388b4b20e3a56760ce149fe3
[ "Apache-2.0" ]
1
2021-08-08T11:25:47.000Z
2021-08-08T11:26:15.000Z
unn/models/heads/utils/loss.py
zongdaoming/TinyTransformer
8e64f8816117048c388b4b20e3a56760ce149fe3
[ "Apache-2.0" ]
null
null
null
import logging import torch import torch.nn as nn import torch.nn.functional as F from .... import extensions as E from . import accuracy as A logger = logging.getLogger('global') def _reduce(loss, reduction, **kwargs): if reduction == 'none': ret = loss elif reduction == 'mean': normalizer...
35.043147
127
0.599768
7,140
0.517129
0
0
442
0.032013
0
0
2,536
0.183675