hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
690892f9b1090d1b9215d16a482be6ada3492dda
7,768
py
Python
configure_finetuning.py
gaphex/electra
d04fcf7ff6d2a1fe9f9ab0cb9eca239be5e7879b
[ "Apache-2.0" ]
null
null
null
configure_finetuning.py
gaphex/electra
d04fcf7ff6d2a1fe9f9ab0cb9eca239be5e7879b
[ "Apache-2.0" ]
null
null
null
configure_finetuning.py
gaphex/electra
d04fcf7ff6d2a1fe9f9ab0cb9eca239be5e7879b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 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.0 # # Unless required by applicab...
43.887006
80
0.670185
fe15d864c769c91b5d74a3f49e260b434a5cedf8
1,456
py
Python
itscsapp/admision/migrations/0003_admisionevent.py
danyRivC/itscsapp
485309f41f477fcebf66899740a0b4a954f4b98b
[ "MIT" ]
null
null
null
itscsapp/admision/migrations/0003_admisionevent.py
danyRivC/itscsapp
485309f41f477fcebf66899740a0b4a954f4b98b
[ "MIT" ]
null
null
null
itscsapp/admision/migrations/0003_admisionevent.py
danyRivC/itscsapp
485309f41f477fcebf66899740a0b4a954f4b98b
[ "MIT" ]
null
null
null
# Generated by Django 2.0.13 on 2019-03-31 14:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('events', '0003_auto_20190331_0310'), ('admision', '0002_admisioncarrer_email'), ] operations = [ m...
42.823529
149
0.610577
ef9e4936f24a0dcca20578b0cf72e86cecc63d7b
3,008
py
Python
pytext/builtin_task.py
crisov/pytext
bab787c272ec4e1ec49b5f912f979600297c5d3f
[ "BSD-3-Clause" ]
null
null
null
pytext/builtin_task.py
crisov/pytext
bab787c272ec4e1ec49b5f912f979600297c5d3f
[ "BSD-3-Clause" ]
null
null
null
pytext/builtin_task.py
crisov/pytext
bab787c272ec4e1ec49b5f912f979600297c5d3f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import glob import importlib import inspect import os from pytext.config.component import register_tasks from pytext.task.disjoint_multitask import DisjointMultitask, NewDisjointMultitask from pytext.task.new_task import New...
30.383838
82
0.659907
e8509d5ba6755be6a04b56340668a5bec2e40118
7,109
py
Python
sphinx/testing/path.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
4,973
2015-01-03T15:44:00.000Z
2022-03-31T03:11:51.000Z
sphinx/testing/path.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
7,850
2015-01-02T08:09:25.000Z
2022-03-31T18:57:40.000Z
sphinx/testing/path.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
2,179
2015-01-03T15:26:53.000Z
2022-03-31T12:22:44.000Z
""" sphinx.testing.path ~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import builtins import os import shutil import sys import warnings from typing import IO, Any, Callable, List from sphinx.deprecation import Removed...
30.122881
86
0.568997
a9d3126b5213b67392f18e5bab8295f13d5070fe
402
py
Python
run.py
megaweb33/Python_AWS_Lambda
4ee89650989567d22af420edb03fce5fdab03db5
[ "Apache-2.0" ]
2
2020-03-26T02:16:13.000Z
2020-04-10T03:23:21.000Z
run.py
megaweb33/Python_AWS_Lambda
4ee89650989567d22af420edb03fce5fdab03db5
[ "Apache-2.0" ]
null
null
null
run.py
megaweb33/Python_AWS_Lambda
4ee89650989567d22af420edb03fce5fdab03db5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from __future__ import division from __future__ import absolute_import from future import standard_library standard_library.install_aliases() import re import sys from byu_awslogin.index import cli if __name__ == '__main__': sys....
23.647059
69
0.731343
47931d7c145155c3fbb06b9541942aa0890bb11b
75
py
Python
memegen/meme_template.py
WalterSimoncini/memegen-api
ddb3dfa296a46fadfd484f8479f46fcb7b6c7236
[ "MIT" ]
null
null
null
memegen/meme_template.py
WalterSimoncini/memegen-api
ddb3dfa296a46fadfd484f8479f46fcb7b6c7236
[ "MIT" ]
null
null
null
memegen/meme_template.py
WalterSimoncini/memegen-api
ddb3dfa296a46fadfd484f8479f46fcb7b6c7236
[ "MIT" ]
1
2021-02-13T04:36:34.000Z
2021-02-13T04:36:34.000Z
from enum import Enum class MemeTemplate(str, Enum): DRAKE = "drake"
12.5
30
0.693333
f012be26e937cadb4d3a164b26d7179aab0a174b
125
py
Python
run.py
dabble-of-devops-bioanalyze/single-cell-cloud-lab
324bf936297b6a5bd23d4f7e1cf3cbd6b31ba495
[ "Apache-2.0" ]
null
null
null
run.py
dabble-of-devops-bioanalyze/single-cell-cloud-lab
324bf936297b6a5bd23d4f7e1cf3cbd6b31ba495
[ "Apache-2.0" ]
null
null
null
run.py
dabble-of-devops-bioanalyze/single-cell-cloud-lab
324bf936297b6a5bd23d4f7e1cf3cbd6b31ba495
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- from apps import app if __name__ == '__main__': app.run(host="0.0.0.0", port=5005, debug=True)
25
50
0.624
61815d1fe1ede1e0e3d9775e9be5b6d860a131b9
6,431
py
Python
pymyq/device.py
b3nj1/pymyq
4326c1f257e7a0a75f63b714a3076ee9a68b8e50
[ "MIT" ]
null
null
null
pymyq/device.py
b3nj1/pymyq
4326c1f257e7a0a75f63b714a3076ee9a68b8e50
[ "MIT" ]
null
null
null
pymyq/device.py
b3nj1/pymyq
4326c1f257e7a0a75f63b714a3076ee9a68b8e50
[ "MIT" ]
null
null
null
"""Define a generic MyQ device.""" import asyncio import logging from typing import Callable, Union from .errors import RequestError _LOGGER = logging.getLogger(__name__) DEFAULT_UPDATE_RETRIES = 3 DEVICE_ATTRIBUTE_GET_ENDPOINT = "api/v4/DeviceAttribute/getDeviceAttribute" DEVICE_SET_ENDPOINT = "api/v4/DeviceAttrib...
30.62381
76
0.563987
9ce07b9ffc53e62689a40426bbd0d23f950dbb97
3,273
py
Python
tests/test_example.py
steinitzu/fastapi-etag
da2976e23b6f17ae50e97fd9f591607f7617fca7
[ "MIT" ]
18
2020-02-15T23:04:59.000Z
2022-03-18T14:36:58.000Z
tests/test_example.py
steinitzu/fastapi-etag
da2976e23b6f17ae50e97fd9f591607f7617fca7
[ "MIT" ]
6
2020-02-18T19:14:03.000Z
2021-08-31T08:06:02.000Z
tests/test_example.py
steinitzu/fastapi-etag
da2976e23b6f17ae50e97fd9f591607f7617fca7
[ "MIT" ]
5
2020-02-15T23:07:19.000Z
2021-06-15T08:12:19.000Z
import pytest from fastapi import Depends from requests import Response from starlette.requests import Request from fastapi_etag import add_exception_handler, Etag EXTRA_HEADERS = {"Cache-Control": "public, max-age=30", "X-Custom-Header": "asdf"} @pytest.fixture(autouse=True) def hello_endpoint(app): add_excep...
30.305556
87
0.640086
e12f49325d89d76aba7485a1be34e5a7457b75d8
7,141
py
Python
pytext/models/masked_lm.py
dimalik/pytext
1e4dd71b1a42350ba8a31123aa8d9d753ec7f7ce
[ "BSD-3-Clause" ]
null
null
null
pytext/models/masked_lm.py
dimalik/pytext
1e4dd71b1a42350ba8a31123aa8d9d753ec7f7ce
[ "BSD-3-Clause" ]
null
null
null
pytext/models/masked_lm.py
dimalik/pytext
1e4dd71b1a42350ba8a31123aa8d9d753ec7f7ce
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from typing import Dict, List import torch from fairseq.modules.transformer_sentence_encoder import init_bert_params from pytext.common.constants import Stage from pytext.config import ConfigBase from pytext.data.bert_tensor...
39.893855
92
0.660832
80dcae4572f46defe0f460dfdd455742230fca93
42,173
py
Python
sympy/core/function.py
jegerjensen/sympy
3a43310f1957a21a6f095fe2801cc05b5268a2c7
[ "BSD-3-Clause" ]
1
2016-07-13T04:30:25.000Z
2016-07-13T04:30:25.000Z
sympy/core/function.py
jegerjensen/sympy
3a43310f1957a21a6f095fe2801cc05b5268a2c7
[ "BSD-3-Clause" ]
null
null
null
sympy/core/function.py
jegerjensen/sympy
3a43310f1957a21a6f095fe2801cc05b5268a2c7
[ "BSD-3-Clause" ]
null
null
null
""" There are two types of functions: 1) defined function like exp or sin that has a name and body (in the sense that function can be evaluated). e = exp 2) undefined function with a name but no body. Undefined functions can be defined using a Function class as follows: f = Function('f') (the result...
32.440769
106
0.559671
35e5c254fe71fa70a52fced884a05bc2594b171f
10,537
py
Python
oneflow/python/summary/summary_hparams.py
wanghongsheng01/framework_enflame
debf613e05e3f5ea8084c3e79b60d0dd9e349526
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
oneflow/python/summary/summary_hparams.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-06-16T08:37:50.000Z
2021-06-16T08:37:50.000Z
oneflow/python/summary/summary_hparams.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-11-10T07:57:01.000Z
2021-11-10T07:57:01.000Z
""" Copyright 2020 The OneFlow 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 applicable law or agr...
29.515406
88
0.625415
e15f5e813ab92bb501d0aac711ed985ae9952e04
98
py
Python
src/daproperties/__init__.py
EUB-LE/domain-adaptation
8e548cf99663b12b9fac322ee1c7668118cb1ade
[ "MIT" ]
null
null
null
src/daproperties/__init__.py
EUB-LE/domain-adaptation
8e548cf99663b12b9fac322ee1c7668118cb1ade
[ "MIT" ]
5
2021-05-22T07:58:28.000Z
2021-05-23T10:58:37.000Z
src/daproperties/__init__.py
EUB-LE/domain-adaptation
8e548cf99663b12b9fac322ee1c7668118cb1ade
[ "MIT" ]
null
null
null
from daproperties.stats import rvs_from_mixed, rv_from_continuous, rv_from_discrete, rv_from_mixed
98
98
0.897959
26d79467708323b57c12a7ecea34d0f9c371f88c
6,192
py
Python
share/synctex-katarakt-vim.py
inducer/katarakt
121f2b7bfb4331703e068a22702ee96d83c7a491
[ "BSD-2-Clause" ]
null
null
null
share/synctex-katarakt-vim.py
inducer/katarakt
121f2b7bfb4331703e068a22702ee96d83c7a491
[ "BSD-2-Clause" ]
1
2021-07-04T12:23:32.000Z
2021-07-04T19:40:41.000Z
share/synctex-katarakt-vim.py
inducer/katarakt
121f2b7bfb4331703e068a22702ee96d83c7a491
[ "BSD-2-Clause" ]
3
2020-04-19T16:45:06.000Z
2021-06-28T02:50:24.000Z
#!/usr/bin/env python3 # Dependencies (Debian/Ubuntu package names): # # python3-gi # python3-dbus # # Thorsten Wißmann, 2015 # in case of bugs, contact: edu _at_ thorsten-wissmann _dot_ de def print_help(): print("""Usage: {0} SESSIONNAME [PDFFILE] A katarakt wrapper for synctex communication between ...
29.769231
132
0.661337
5ffbc75b14af8db90e3152452603425b8eccdb2e
2,680
py
Python
src/toil/utils/toilKill.py
cmarkello/toil
756c45c773c5bd95d48d5d2fd7986d467781f09b
[ "Apache-2.0" ]
null
null
null
src/toil/utils/toilKill.py
cmarkello/toil
756c45c773c5bd95d48d5d2fd7986d467781f09b
[ "Apache-2.0" ]
null
null
null
src/toil/utils/toilKill.py
cmarkello/toil
756c45c773c5bd95d48d5d2fd7986d467781f09b
[ "Apache-2.0" ]
1
2021-03-24T16:56:54.000Z
2021-03-24T16:56:54.000Z
# Copyright (C) 2015-2018 Regents of the University of California # # 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 app...
44.666667
135
0.704851
b542048f7804ea82dabbc2f749e09d2db350b17a
2,646
py
Python
options/train_options.py
phymhan/face-aging
2970793d85f2502929222ca7269fb427afee71c1
[ "BSD-3-Clause" ]
4
2018-09-14T10:16:53.000Z
2019-10-10T21:55:27.000Z
options/train_options.py
phymhan/face-aging
2970793d85f2502929222ca7269fb427afee71c1
[ "BSD-3-Clause" ]
null
null
null
options/train_options.py
phymhan/face-aging
2970793d85f2502929222ca7269fb427afee71c1
[ "BSD-3-Clause" ]
null
null
null
from .base_options import BaseOptions class TrainOptions(BaseOptions): def initialize(self, parser): parser = BaseOptions.initialize(self, parser) parser.add_argument('--display_freq', type=int, default=500, help='frequency of showing training results on screen') parser.add_argument('--dis...
91.241379
175
0.714664
0b994c38361d4e76d217e1bb64105f9338ae75d5
1,535
py
Python
qirest/server/settings.py
ohsu-qin/qirest
393a2126b94b00b04bd6d2ef0e0d657dad1885ca
[ "BSD-2-Clause" ]
null
null
null
qirest/server/settings.py
ohsu-qin/qirest
393a2126b94b00b04bd6d2ef0e0d657dad1885ca
[ "BSD-2-Clause" ]
null
null
null
qirest/server/settings.py
ohsu-qin/qirest
393a2126b94b00b04bd6d2ef0e0d657dad1885ca
[ "BSD-2-Clause" ]
null
null
null
"""This ``settings`` file specifies the Eve configuration.""" import os PROD_DBNAME = 'qiprofile' """The production database name.""" TEST_DBNAME = 'qiprofile_test' """The test/dev database name.""" # The run environment default is production. # Modify this by setting the NODE_ENV environment variable. env = os.get...
26.016949
64
0.725733
12ca03599d7048abfb86d4dde6a5fee2639483c7
2,518
py
Python
tests/unit/algorithms/TransientAdvectionDiffusionTest.py
bryanwweber/OpenPNM
0547b5724ffedc0a593aae48639d36fe10e0baed
[ "MIT" ]
1
2021-02-19T18:16:21.000Z
2021-02-19T18:16:21.000Z
tests/unit/algorithms/TransientAdvectionDiffusionTest.py
kvmkrao/OpenPNM
0547b5724ffedc0a593aae48639d36fe10e0baed
[ "MIT" ]
null
null
null
tests/unit/algorithms/TransientAdvectionDiffusionTest.py
kvmkrao/OpenPNM
0547b5724ffedc0a593aae48639d36fe10e0baed
[ "MIT" ]
null
null
null
import openpnm as op import scipy as sp import pytest class TransientAdvectionDiffusionTest: def setup_class(self): sp.random.seed(0) self.net = op.network.Cubic(shape=[4, 3, 1], spacing=1.0) self.geo = op.geometry.GenericGeometry(network=self.net, ...
38.151515
73
0.562351
89a9e245e63ea51d59710719132a7ec57519e6ee
4,705
py
Python
aiida_phtools/calculations/distance_matrix.py
kjappelbaum/aiida-phtools
6e800002bf40c38299e59f9c9afc368efd3151da
[ "MIT" ]
null
null
null
aiida_phtools/calculations/distance_matrix.py
kjappelbaum/aiida-phtools
6e800002bf40c38299e59f9c9afc368efd3151da
[ "MIT" ]
null
null
null
aiida_phtools/calculations/distance_matrix.py
kjappelbaum/aiida-phtools
6e800002bf40c38299e59f9c9afc368efd3151da
[ "MIT" ]
1
2019-08-30T11:57:44.000Z
2019-08-30T11:57:44.000Z
""" Calculations provided by plugin Register calculations via the "aiida.calculations" entry point in setup.json. """ from aiida.orm.calculation.job import JobCalculation from aiida.common.utils import classproperty from aiida.common.exceptions import (InputValidationError, ValidationError) from aiida.common.datastru...
33.133803
79
0.618704
1fcd92548d184006526939ab25f7562d1c6f9be6
1,241
py
Python
lambda_function.py
dogancifaruk/Barrel_Distortion_Correction_on_AWS_Lambda
98685dcafe37c4e873403bff601dee7a89a82939
[ "MIT" ]
3
2017-09-18T12:13:36.000Z
2020-01-03T06:59:04.000Z
lambda_function.py
dogancifaruk/Barrel_Distortion_Correction_on_AWS_Lambda
98685dcafe37c4e873403bff601dee7a89a82939
[ "MIT" ]
null
null
null
lambda_function.py
dogancifaruk/Barrel_Distortion_Correction_on_AWS_Lambda
98685dcafe37c4e873403bff601dee7a89a82939
[ "MIT" ]
1
2021-04-19T12:32:52.000Z
2021-04-19T12:32:52.000Z
import cv2 import boto3 import numpy as np s3 = boto3.resource('s3') def lambda_handler(event, context): # Obtained from camera calibration K = np.array([[ 3.6467990983524174e+02, 0., 3.2932846845849457e+02], [0., 3.6467990983524174e+02, 2.5598789691130796e+02], [ 0. , 0. ...
26.404255
94
0.669621
fd76f4c84d04fbba2b6280b40513d8138a0cbfd4
406
py
Python
scripts/benchmark/utils/format.py
shreyasnbhat/py-evm
cd31d83185e102a7cb2f11e2f67923b069ee9cef
[ "MIT" ]
1
2019-09-14T13:32:40.000Z
2019-09-14T13:32:40.000Z
scripts/benchmark/utils/format.py
shreyasnbhat/py-evm
cd31d83185e102a7cb2f11e2f67923b069ee9cef
[ "MIT" ]
1
2019-09-23T07:13:35.000Z
2019-09-23T07:13:35.000Z
scripts/benchmark/_utils/format.py
voith/py-evm
1254611c2d622150e55c15148ced433ed153681c
[ "MIT" ]
2
2019-09-05T01:31:56.000Z
2019-09-17T09:09:16.000Z
from eth_utils import ( encode_hex, ) from eth.rlp.blocks import BaseBlock def format_block(block: BaseBlock) -> str: return ( "\n\n" "------------------------Block------------------------------------\n" "Number #{b.number:>12} Hash {hash}\n" "----------------------------------...
29
77
0.408867
24e982485575e4d6b5a9becbd40a39dc0ce16f5c
1,836
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/models/base_image_trigger_update_parameters.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/models/base_image_trigger_update_parameters.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/models/base_image_trigger_update_parameters.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
39.06383
82
0.638889
e75aab0660fae0055aaa52582d897a010d67d530
3,441
py
Python
api/features/permissions.py
mevinbabuc/flagsmith
751bd6cb4a34bd2f80af5a9c547559da9c2fa010
[ "BSD-3-Clause" ]
1,259
2021-06-10T11:24:09.000Z
2022-03-31T10:30:44.000Z
api/features/permissions.py
mevinbabuc/flagsmith
751bd6cb4a34bd2f80af5a9c547559da9c2fa010
[ "BSD-3-Clause" ]
392
2021-06-10T11:12:29.000Z
2022-03-31T10:13:53.000Z
api/features/permissions.py
mevinbabuc/flagsmith
751bd6cb4a34bd2f80af5a9c547559da9c2fa010
[ "BSD-3-Clause" ]
58
2021-06-11T03:18:07.000Z
2022-03-31T14:39:10.000Z
from rest_framework.permissions import BasePermission from environments.models import Environment from environments.permissions.constants import UPDATE_FEATURE_STATE from projects.models import Project ACTION_PERMISSIONS_MAP = { "retrieve": "VIEW_PROJECT", "destroy": "DELETE_FEATURE", "list": "VIEW_PROJEC...
35.474227
87
0.669573
cd2c8dbc487fadf6d759f14939896d6844c7c1ea
134,401
py
Python
Lib/test/_test_multiprocessing.py
ralic/python3.62mac
6f18095357e354a7b0be47909a9914fa418241f2
[ "PSF-2.0" ]
null
null
null
Lib/test/_test_multiprocessing.py
ralic/python3.62mac
6f18095357e354a7b0be47909a9914fa418241f2
[ "PSF-2.0" ]
null
null
null
Lib/test/_test_multiprocessing.py
ralic/python3.62mac
6f18095357e354a7b0be47909a9914fa418241f2
[ "PSF-2.0" ]
null
null
null
# # Unit tests for the multiprocessing package # import unittest import queue as pyqueue import time import io import itertools import sys import os import gc import errno import signal import array import socket import random import logging import struct import operator import weakref import test.support import test....
31.698349
85
0.585055
6279f5558dcd395fe3763a6725315e7b3bcd3b70
1,349
py
Python
Wettbewerbe/migrations/0004_auto_20170605_1616.py
wmles/olymp
97b1a256982c2a75c39ba3a855b63a147d4409c5
[ "MIT" ]
null
null
null
Wettbewerbe/migrations/0004_auto_20170605_1616.py
wmles/olymp
97b1a256982c2a75c39ba3a855b63a147d4409c5
[ "MIT" ]
null
null
null
Wettbewerbe/migrations/0004_auto_20170605_1616.py
wmles/olymp
97b1a256982c2a75c39ba3a855b63a147d4409c5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-06-05 16:16 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('Wettbewerbe', '0003_auto_2...
31.372093
133
0.619718
e5d61f54a183b059e4a0f05171c890e47c5f8c73
1,097
py
Python
Step_6a_scatterplots.py
open-risk/Academy-Course-DAT31018
551e9128ef2c07302552ad3fa554ebee69aa8f14
[ "Apache-2.0" ]
3
2020-08-30T06:18:41.000Z
2021-08-09T01:34:39.000Z
Step_6a_scatterplots.py
open-risk/Academy-Course-DAT31018
551e9128ef2c07302552ad3fa554ebee69aa8f14
[ "Apache-2.0" ]
null
null
null
Step_6a_scatterplots.py
open-risk/Academy-Course-DAT31018
551e9128ef2c07302552ad3fa554ebee69aa8f14
[ "Apache-2.0" ]
2
2020-07-11T18:13:13.000Z
2021-03-01T09:25:32.000Z
# (c) 2019 Open Risk (https://www.openriskmanagement.com) # # This code is licensed under the Apache 2.0 license a copy of which is included # in the source distribution of the course. This is notwithstanding any licenses of # third-party software included in this distribution. You may not use this file except in # com...
39.178571
96
0.775752
bebbd8a3615e01a0da913605569c059e17677b4c
3,862
py
Python
character_data.py
evanmiltenburg/Dutch-checker
84b6f0bcf007aba09ea69e7ef26ec0a697bf9fc5
[ "Apache-2.0" ]
null
null
null
character_data.py
evanmiltenburg/Dutch-checker
84b6f0bcf007aba09ea69e7ef26ec0a697bf9fc5
[ "Apache-2.0" ]
1
2017-06-27T11:41:52.000Z
2017-06-27T14:34:23.000Z
character_data.py
evanmiltenburg/Dutch-checker
84b6f0bcf007aba09ea69e7ef26ec0a697bf9fc5
[ "Apache-2.0" ]
null
null
null
""" This is where the magic happens! This file has all definitions for data prep which char_lstm.py and use_model.py can use. This file is not supposed to be run by itself, but you can import it to make use of everything defined below. """ import random import string from collections import Counter from math import ce...
35.109091
96
0.712325
5121d8dafd524aa954aef1a7ae16b4293f5efe4f
154,654
py
Python
venv/Lib/site-packages/js2py/py_node_modules/underscore.py
raveendezoysa/American-Sign-Language-to-Text-Based-Translator
0e0d3bea9912c87c51f00728742dc67cd85b7e66
[ "MIT" ]
null
null
null
venv/Lib/site-packages/js2py/py_node_modules/underscore.py
raveendezoysa/American-Sign-Language-to-Text-Based-Translator
0e0d3bea9912c87c51f00728742dc67cd85b7e66
[ "MIT" ]
null
null
null
venv/Lib/site-packages/js2py/py_node_modules/underscore.py
raveendezoysa/American-Sign-Language-to-Text-Based-Translator
0e0d3bea9912c87c51f00728742dc67cd85b7e66
[ "MIT" ]
1
2020-09-06T23:12:05.000Z
2020-09-06T23:12:05.000Z
from js2py.pyjs import * # setting scope var = Scope( JS_BUILTINS ) set_global_object(var) # Code follows: var.registers(['getFromGlobals', 'underscore', '_typeof']) @Js def PyJsHoisted_getFromGlobals_(name, this, arguments, var=var): var = Scope({'name':name, 'this':this, 'arguments':arguments}, var) var.regi...
69.726781
719
0.515894
ca231e396d5dcf7f4a341ca00b224b0c37d33bef
2,019
py
Python
aiorobinhood/exceptions.py
omikader/aiorobinhood
132487133186058049d893a849660508dd0fa09e
[ "MIT" ]
9
2020-08-05T23:40:16.000Z
2021-08-18T10:30:15.000Z
aiorobinhood/exceptions.py
omikader/aiorobinhood
132487133186058049d893a849660508dd0fa09e
[ "MIT" ]
3
2020-08-26T15:36:31.000Z
2020-08-26T17:02:33.000Z
aiorobinhood/exceptions.py
omikader/aiorobinhood
132487133186058049d893a849660508dd0fa09e
[ "MIT" ]
1
2020-08-15T00:26:07.000Z
2020-08-15T00:26:07.000Z
from typing import Any, Dict, Optional from yarl import URL class AIORobinhoodError(Exception): """Base class for all aiorobinhood errors.""" pass class ClientError(AIORobinhoodError): """Base class for all :class:`~.RobinhoodClient` errors. """ pass class ClientUninitializedError(ClientError):...
27.283784
85
0.62952
b55703b7cad9d9dc0c52f574fd9d22236315e848
807
py
Python
src/casymda/blocks/round_robin_gateway.py
Fladdimir/casymda
6cf599bed2229c4aff9bca31350604b38ef76138
[ "MIT" ]
19
2020-04-18T14:47:37.000Z
2022-03-26T14:18:21.000Z
src/casymda/blocks/round_robin_gateway.py
Fladdimir/casymda
6cf599bed2229c4aff9bca31350604b38ef76138
[ "MIT" ]
4
2020-03-17T21:01:58.000Z
2021-09-24T21:07:25.000Z
src/casymda/blocks/round_robin_gateway.py
Fladdimir/casymda
6cf599bed2229c4aff9bca31350604b38ef76138
[ "MIT" ]
4
2020-05-09T16:31:57.000Z
2022-01-23T09:11:19.000Z
"""gateway""" from casymda.blocks.block_components import VisualizableBlock from casymda.blocks.entity import Entity class RoundRobinGateway(VisualizableBlock): """gateway which cyclically chooses next successor for incoming entities""" def __init__(self, env, name, xy=None, ways=None): super().__ini...
29.888889
79
0.670384
f9e408994519f3ad3ec653f48f0705a34e618a02
894
py
Python
wrappers/arlexecute/visibility/operations.py
ska-telescope/algorithm-reference-library
1b2c8d6079249202864abf8c60cdea40f0f123cb
[ "Apache-2.0" ]
22
2016-12-14T11:20:07.000Z
2021-08-13T15:23:41.000Z
wrappers/arlexecute/visibility/operations.py
ska-telescope/algorithm-reference-library
1b2c8d6079249202864abf8c60cdea40f0f123cb
[ "Apache-2.0" ]
30
2017-06-27T09:15:38.000Z
2020-09-11T18:16:37.000Z
wrappers/arlexecute/visibility/operations.py
SKA-ScienceDataProcessor/algorithm-reference-library
1b2c8d6079249202864abf8c60cdea40f0f123cb
[ "Apache-2.0" ]
20
2017-07-02T03:45:49.000Z
2019-12-11T17:19:01.000Z
""" Visibility operations """ from processing_components.visibility.operations import append_visibility from processing_components.visibility.operations import sort_visibility from processing_components.visibility.operations import concatenate_visibility from processing_components.visibility.operations import sum_visi...
63.857143
88
0.914989
91bfab7dc0d041f6fd3b51aca8f8e9bc7f9abcf7
1,320
py
Python
magicbus/test/test_tasks.py
szymonlipinski/magicbus
e494b25a829d8911a5f62e5f2cf7ac526ff244cd
[ "BSD-3-Clause" ]
null
null
null
magicbus/test/test_tasks.py
szymonlipinski/magicbus
e494b25a829d8911a5f62e5f2cf7ac526ff244cd
[ "BSD-3-Clause" ]
null
null
null
magicbus/test/test_tasks.py
szymonlipinski/magicbus
e494b25a829d8911a5f62e5f2cf7ac526ff244cd
[ "BSD-3-Clause" ]
null
null
null
from magicbus.plugins import tasks from magicbus.test import WebAdapter, WebService, WebHandler from magicbus.process import ProcessBus class TestTasks(object): def test_thread_manager(self): bus = ProcessBus() class Handler(WebHandler): def do_GET(self): if self.pa...
28.085106
64
0.547727
da8e010e8e4f094a0da4b1e00567afd33907787c
743
py
Python
nto_calc/nto_creator.py
npanitz/Automation-Tool-for-QM-MM-calculations-and-Image-Processing
9985bc8b043dec8ce301b6e97e9b3df344b092a2
[ "ImageMagick" ]
null
null
null
nto_calc/nto_creator.py
npanitz/Automation-Tool-for-QM-MM-calculations-and-Image-Processing
9985bc8b043dec8ce301b6e97e9b3df344b092a2
[ "ImageMagick" ]
null
null
null
nto_calc/nto_creator.py
npanitz/Automation-Tool-for-QM-MM-calculations-and-Image-Processing
9985bc8b043dec8ce301b6e97e9b3df344b092a2
[ "ImageMagick" ]
null
null
null
#!/usr/bin/python import sys # This python script will create a file system for calculating NTO's nto_first_file = "nto_1.com" num_nto_files = 60 list_of_nto_files = [nto_first_file] orig_nto = open(nto_first_file, 'r') lines_in_nto_file = orig_nto.readlines() orig_nto.close() for i in range(num_nto_files - 1): ...
20.081081
68
0.690444
8103d82d2faf80bf65c77926fab5f32b708e8f83
1,181
py
Python
geo.py
beepscore/malaria
c7361a7b2040d28c20b17b98f20aae1585ffdb20
[ "MIT" ]
null
null
null
geo.py
beepscore/malaria
c7361a7b2040d28c20b17b98f20aae1585ffdb20
[ "MIT" ]
null
null
null
geo.py
beepscore/malaria
c7361a7b2040d28c20b17b98f20aae1585ffdb20
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # In Anaconda navigator I needed to install geopandas and then update it to fix fiona / gdal error # https://stackoverflow.com/questions/42749254/error-in-importing-geopandas#43762549 # https://github.com/GenericMappingTools/gmt-python/issues/104 import geopandas as gpd def get_map_df(): "...
25.673913
98
0.710415
10eb4e568662e57c5b330fec5114c115e7f71741
1,171
py
Python
tests/integration/runners/manage.py
mattrobenolt/salt
e01a4c2d26adc705d8056970777a6313ad10291b
[ "Apache-2.0" ]
1
2016-09-16T17:12:11.000Z
2016-09-16T17:12:11.000Z
tests/integration/runners/manage.py
mika/salt
8430482c7177356964c894d161830c94d09f1cab
[ "Apache-2.0" ]
null
null
null
tests/integration/runners/manage.py
mika/salt
8430482c7177356964c894d161830c94d09f1cab
[ "Apache-2.0" ]
null
null
null
''' Tests for the salt-run command ''' # Import python libs import sys # Import Salt Modules from saltunittest import TestLoader, TextTestRunner import integration from integration import TestDaemon class ManageTest(integration.ShellCase): ''' Test the manage runner ''' def test_up(self): '''...
26.613636
55
0.622545
94902187471b1f4dd81572da4b48eb9cb289a41d
6,212
py
Python
noxfile.py
vam-google/python-bigquery
e792bfa854b9a03683953f69fa7a78ff8a12999a
[ "Apache-2.0" ]
null
null
null
noxfile.py
vam-google/python-bigquery
e792bfa854b9a03683953f69fa7a78ff8a12999a
[ "Apache-2.0" ]
null
null
null
noxfile.py
vam-google/python-bigquery
e792bfa854b9a03683953f69fa7a78ff8a12999a
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
31.693878
82
0.646974
ad6dd9a6fb42d4fa21a8f4a034eb5d988c350f50
1,881
py
Python
ResNet/utils/concat_datasets.py
ryanmclark/ece_285_final_project_v2
71c1243fc2df15873c9a9bf1f482c0d4974bc83d
[ "MIT" ]
null
null
null
ResNet/utils/concat_datasets.py
ryanmclark/ece_285_final_project_v2
71c1243fc2df15873c9a9bf1f482c0d4974bc83d
[ "MIT" ]
null
null
null
ResNet/utils/concat_datasets.py
ryanmclark/ece_285_final_project_v2
71c1243fc2df15873c9a9bf1f482c0d4974bc83d
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Dec 5 15:08:55 2018 @author: ryanclark Header: This file concats the torch dataset objects for the train, test, and validate datasets into a single dataset object. This is to allow K-Folds cross validation and random batch pulling for the CNNs. The fu...
28.5
91
0.753323
efa6f03cc2c8075c603b024be0bf5a0e7d3330e8
4,861
py
Python
sympy/solvers/tests/test_polysys.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
2
2019-02-05T19:20:24.000Z
2019-04-23T13:24:38.000Z
sympy/solvers/tests/test_polysys.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
9
2021-03-19T03:06:53.000Z
2022-03-12T00:37:04.000Z
sympy/solvers/tests/test_polysys.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
1
2022-02-22T23:53:22.000Z
2022-02-22T23:53:22.000Z
"""Tests for solvers of systems of polynomial equations. """ from sympy import (flatten, I, Integer, Poly, QQ, Rational, S, sqrt, solve, symbols) from sympy.abc import x, y, z from sympy.polys import PolynomialError from sympy.solvers.polysys import (solve_poly_system, solve_triangulated, solve_biquadratic, So...
35.742647
99
0.523966
6b0b11d902ecce57bc6f7a19c26472ec0c13e038
3,225
py
Python
weather_entities.py
chiraggandhi123/fulfillment-weather-python
76ac64f8e5b02e68dd1a5537b284de1af7e6ec3e
[ "Apache-2.0" ]
77
2018-04-26T07:53:45.000Z
2021-08-11T11:49:05.000Z
weather_entities.py
chiraggandhi123/fulfillment-weather-python
76ac64f8e5b02e68dd1a5537b284de1af7e6ec3e
[ "Apache-2.0" ]
8
2018-04-30T14:46:58.000Z
2019-03-28T13:31:33.000Z
weather_entities.py
chiraggandhi123/fulfillment-weather-python
76ac64f8e5b02e68dd1a5537b284de1af7e6ec3e
[ "Apache-2.0" ]
177
2017-10-11T06:23:07.000Z
2018-04-17T09:53:24.000Z
# -*- coding:utf8 -*- # !/usr/bin/env python # Copyright 2017 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...
17.527174
81
0.582636
e5ea44b3e5e1386c2f8418709a34c709cf0f4c03
661
py
Python
notifications/forms.py
sh4rpy/mail_notifications
9a2ace898222ade0b8de80dea30f726f83b02061
[ "BSD-3-Clause" ]
null
null
null
notifications/forms.py
sh4rpy/mail_notifications
9a2ace898222ade0b8de80dea30f726f83b02061
[ "BSD-3-Clause" ]
null
null
null
notifications/forms.py
sh4rpy/mail_notifications
9a2ace898222ade0b8de80dea30f726f83b02061
[ "BSD-3-Clause" ]
null
null
null
from django import forms from django.utils import timezone from .models import User, Notification class NotificationForm(forms.ModelForm): participants = forms.ModelMultipleChoiceField(queryset=User.objects.all(), widget=forms.CheckboxSelectMultiple, required=Tru...
31.47619
115
0.633888
c48ffcc78c67fae53b5d01efb32e19db916e43af
2,173
py
Python
data-prep/scripts/landslide_risk_raster/landslide_risk_raster_styling.py
developmentseed/cccmc-sustainable-rubber-pub
7ad633b521a1d44dfe4c6e61c5f6d3284a878ef4
[ "MIT" ]
null
null
null
data-prep/scripts/landslide_risk_raster/landslide_risk_raster_styling.py
developmentseed/cccmc-sustainable-rubber-pub
7ad633b521a1d44dfe4c6e61c5f6d3284a878ef4
[ "MIT" ]
null
null
null
data-prep/scripts/landslide_risk_raster/landslide_risk_raster_styling.py
developmentseed/cccmc-sustainable-rubber-pub
7ad633b521a1d44dfe4c6e61c5f6d3284a878ef4
[ "MIT" ]
null
null
null
""" Landslide risk raster styling Author: @developmentseed Use: python landslide_risk_raster_styling.py --help """ from os import path as op import click import rasterio import numpy as np from rasterio.io import MemoryFile from rio_cogeo import cog_translate, cog_profiles @click.command(short_help="Landslide ri...
28.973333
74
0.520939
1b21331a7fc6c26ffc14e702aa71fa381d704bf1
4,447
py
Python
examples/strandtest.py
conradstorz/rpi-ws281x-python
3e9252540cfe0867cb86303956adeee1afe7dc8e
[ "BSD-2-Clause" ]
null
null
null
examples/strandtest.py
conradstorz/rpi-ws281x-python
3e9252540cfe0867cb86303956adeee1afe7dc8e
[ "BSD-2-Clause" ]
null
null
null
examples/strandtest.py
conradstorz/rpi-ws281x-python
3e9252540cfe0867cb86303956adeee1afe7dc8e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # NeoPixel library strandtest example # Author: Tony DiCola (tony@tonydicola.com) # # Direct port of the Arduino NeoPixel library strandtest example. Showcases # various animations on a strip of NeoPixels. import time from rpi_ws281x import PixelStrip, Color import argparse # LED strip configu...
36.45082
105
0.61772
9f86983946103014a3476c09051a6caa1c646be8
1,161
py
Python
.history/my_classes/FunctionParameters/default_values_20210702201709.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FunctionParameters/default_values_20210702201709.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FunctionParameters/default_values_20210702201709.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
"""[Default values] What happens at run time... When modules are loaded: All the code is executed immediately. Module Code a = 10 the interger object 10 is created and a references it. def func(a): the function object is created, and func references it. print(a) ...
29.769231
195
0.660637
8e471e4e322f666165b498bc9afabd1331d17414
1,335
py
Python
main.py
ZacharyPH/PrimesList
f40c0d05b9180afbc473788239277942edaba167
[ "MIT" ]
null
null
null
main.py
ZacharyPH/PrimesList
f40c0d05b9180afbc473788239277942edaba167
[ "MIT" ]
null
null
null
main.py
ZacharyPH/PrimesList
f40c0d05b9180afbc473788239277942edaba167
[ "MIT" ]
null
null
null
from PrimesList import PrimesList # p now stores the all primes between 0 and 100 print("Primes between 0 and 100:") p = PrimesList((0, 100)) print(p, "\n") # > [ 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97] # p now stores the first through the fifth primes print...
44.5
121
0.675655
4069ea10f9ea0ca274c401a9eb2ef24016050b54
1,149
py
Python
eth/precompiles/ecmul.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
5
2018-09-28T20:01:42.000Z
2022-02-22T19:54:46.000Z
eth/precompiles/ecmul.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
null
null
null
eth/precompiles/ecmul.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
1
2019-01-29T21:09:31.000Z
2019-01-29T21:09:31.000Z
from py_ecc import ( optimized_bn128 as bn128, ) from eth_utils import ( ValidationError, ) from eth import constants from eth.exceptions import ( VMError, ) from eth.utils.bn128 import ( validate_point, ) from eth.utils.numeric import ( big_endian_to_int, int_to_big_endian, ) from eth.utils....
20.157895
75
0.684073
922ef1aeeffbcf32881096f76417be2c7b0be190
10,352
py
Python
doc/crawler/src/task/constelattion.py
tanyjan/km
58a3d01b7afd3aff46d9d594430f3f928f9c817c
[ "Apache-2.0" ]
1
2017-11-07T09:06:29.000Z
2017-11-07T09:06:29.000Z
doc/crawler/src/task/constelattion.py
tanyjan/km
58a3d01b7afd3aff46d9d594430f3f928f9c817c
[ "Apache-2.0" ]
null
null
null
doc/crawler/src/task/constelattion.py
tanyjan/km
58a3d01b7afd3aff46d9d594430f3f928f9c817c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import config import sys import time from lxml import etree from mysql import MySql from http import HttpClient import re import MySQLdb #{"host": hosts[1], "url": "", "xpath": {"today_fortune": "", "tomorrow_fortune": "", "week_fortune":"", "month_fortune": "", "year_fortune": "", "love":"", "...
45.80531
329
0.582689
37d57ec3a45725e4b56c3fef266ede06d3781f28
10,435
py
Python
src/data_shaper.py
posl/kuramoto-msr2022
b0301e1ddfdc66e6139fd2697d3354fd917652fa
[ "MIT" ]
null
null
null
src/data_shaper.py
posl/kuramoto-msr2022
b0301e1ddfdc66e6139fd2697d3354fd917652fa
[ "MIT" ]
1
2022-01-24T05:28:33.000Z
2022-01-24T05:28:33.000Z
src/data_shaper.py
posl/kuramoto-msr2022
b0301e1ddfdc66e6139fd2697d3354fd917652fa
[ "MIT" ]
null
null
null
from re import T import my_log import os import glob from tqdm import tqdm from datetime import datetime as dt import ast import csv import sys import math csv.field_size_limit(sys.maxsize) def main(): wd = os.getcwd() repos = glob.glob(f"{wd}/out/out_for_issue/*") # ファイル操作オブジェクト in_f = my_log.mylog(f...
48.310185
142
0.461715
a6d691d50352e6bf1bf76003e0bb5fe6e9757140
3,031
py
Python
ODIN_II/regression_test/parse_result/conf/hooks.py
syed-ahmed/vtr-verilog-to-routing
64d15e2ddda5860645220ec44e6baeadabc1b4c3
[ "MIT" ]
32
2018-01-10T11:47:44.000Z
2022-03-18T15:17:36.000Z
ODIN_II/regression_test/parse_result/conf/hooks.py
syed-ahmed/vtr-verilog-to-routing
64d15e2ddda5860645220ec44e6baeadabc1b4c3
[ "MIT" ]
179
2018-08-22T22:48:59.000Z
2021-10-10T10:00:56.000Z
ODIN_II/regression_test/parse_result/conf/hooks.py
syed-ahmed/vtr-verilog-to-routing
64d15e2ddda5860645220ec44e6baeadabc1b4c3
[ "MIT" ]
25
2019-02-10T16:55:40.000Z
2021-08-29T05:28:47.000Z
import os import pwd import re import sys from collections import OrderedDict import json PRE_HOOKS = [ # nothing ] POST_HOOKS = ["drop_entries_on_failure", "patch_logs", "inverse_result_from_expectation"] def do_something_on_the_raw_log(line: str): """ this is an example preprocessing hook. """ ...
27.807339
134
0.543385
39cc3c574a71635f8653d4e2441f28125f51b51e
588
py
Python
stubs/m5stack_flowui-v1_4_0-beta/flowlib/units/_joystick.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/m5stack_flowui-v1_4_0-beta/flowlib/units/_joystick.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/m5stack_flowui-v1_4_0-beta/flowlib/units/_joystick.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
""" Module: 'flowlib.units._joystick' on M5 FlowUI v1.4.0-beta """ # MCU: (sysname='esp32', nodename='esp32', release='1.11.0', version='v1.11-284-g5d8e1c867 on 2019-08-30', machine='ESP32 module with ESP32') # Stubber: 1.3.1 - updated from typing import Any class Joystick: """""" InvertX = None InvertY ...
17.818182
141
0.598639
aa2b75de1caf16b838c59dad00ccd492c68daf81
1,255
py
Python
swigbullet/python/examples/bulletdemo/opengl/sdl.py
ousttrue/swigbullet
02bd714ee1b9908f3abdd939a98a1512c444eac5
[ "MIT" ]
1
2015-07-19T13:07:38.000Z
2015-07-19T13:07:38.000Z
swigbullet/python/examples/bulletdemo/opengl/sdl.py
ousttrue/swigbullet
02bd714ee1b9908f3abdd939a98a1512c444eac5
[ "MIT" ]
null
null
null
swigbullet/python/examples/bulletdemo/opengl/sdl.py
ousttrue/swigbullet
02bd714ee1b9908f3abdd939a98a1512c444eac5
[ "MIT" ]
null
null
null
import sys import pygame from pygame.locals import * import swigbullet as bullet import bulletdemo.opengl.gldebugdrawer from . import glapplication class DemoApplication(glapplication.GLApplication): def specialKeyboard(self, key, x, y): pass def swapBuffers(self): pass def updateModifi...
23.679245
64
0.631873
0c0efde28e8cb2afe91204982d9d6019db823007
515
py
Python
python/739_daily_temperatures.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
17
2016-03-01T22:40:53.000Z
2021-04-19T02:15:03.000Z
python/739_daily_temperatures.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
null
null
null
python/739_daily_temperatures.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
3
2019-03-07T03:48:43.000Z
2020-04-05T01:11:36.000Z
class Solution: def dailyTemperatures(self, T: List[int]) -> List[int]: mono_stack = [] answer = [0] * len(T) for index, number in enumerate(T): while mono_stack: top_index, top_number = mono_stack[-1] if top_number < number: ...
25.75
59
0.48932
d2a4be8b5a7f0d9b06862baecb85efc5531c545e
7,990
py
Python
exam_gen/util/user_setup.py
rohit507/exam_gen
b6e96955e1762fe8063282917fd69df420142cbb
[ "Apache-2.0" ]
null
null
null
exam_gen/util/user_setup.py
rohit507/exam_gen
b6e96955e1762fe8063282917fd69df420142cbb
[ "Apache-2.0" ]
null
null
null
exam_gen/util/user_setup.py
rohit507/exam_gen
b6e96955e1762fe8063282917fd69df420142cbb
[ "Apache-2.0" ]
null
null
null
from copy import copy, deepcopy from pprint import pformat, pprint from textwrap import dedent, indent from collections import Iterable import makefun import inspect import textwrap import attr import attr.validators as valid import exam_gen.util.logging as logging log = logging.new(__name__, level="WARNING") setu...
32.348178
80
0.597372
15d4b8cecbf06477dd0fc27ac937976fe1ca4dc3
3,192
py
Python
tutel/jit_kernels/gating.py
G-arj/tutel
9023a273407538b07f978dcde2bfa3e08455f30f
[ "MIT" ]
1
2022-02-23T11:17:00.000Z
2022-02-23T11:17:00.000Z
tutel/jit_kernels/gating.py
G-arj/tutel
9023a273407538b07f978dcde2bfa3e08455f30f
[ "MIT" ]
null
null
null
tutel/jit_kernels/gating.py
G-arj/tutel
9023a273407538b07f978dcde2bfa3e08455f30f
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import torch import logging from ..impls.jit_compiler import JitCompiler disable_fast_cumsum = int(os.environ.get('FAST_CUMSUM', '1')) == 0 cumsum_kernels = dict() def torch_cumsum_sub_one(mask1): locations1 = torch.cumsum(mask1, d...
38
130
0.566103
baaf62f419150b0b0fd74b15416dd2fff075ce47
13,229
py
Python
volumentations/augmentations/functionals.py
alxndrkalinin/volumentations
dad22ee1d8ab4f4d2647ec5fa94a8093165fe9a5
[ "MIT" ]
76
2020-08-04T06:07:47.000Z
2022-03-30T04:48:35.000Z
volumentations/augmentations/functionals.py
alxndrkalinin/volumentations
dad22ee1d8ab4f4d2647ec5fa94a8093165fe9a5
[ "MIT" ]
6
2020-12-08T16:59:27.000Z
2022-02-28T18:22:25.000Z
volumentations/augmentations/functionals.py
alxndrkalinin/volumentations
dad22ee1d8ab4f4d2647ec5fa94a8093165fe9a5
[ "MIT" ]
16
2020-11-18T00:35:36.000Z
2022-03-12T21:35:51.000Z
import numpy as np import skimage.transform as skt import scipy.ndimage.interpolation as sci from scipy.ndimage import zoom import cv2 from scipy.ndimage.filters import gaussian_filter from scipy.ndimage import map_coordinates #import SimpleITK as sitk from warnings import warn """ vol: [H, W, D(, C)] x, y, z <--> H,...
32.826303
180
0.627183
c1861ae152cd9f49f05e74b1f3dc4fb7b3c242b4
53,651
py
Python
pandas/tests/io/json/test_pandas.py
Batalex/pandas
f2bcb9f0060d030085cdbaeeb638664c6f73e636
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/io/json/test_pandas.py
Batalex/pandas
f2bcb9f0060d030085cdbaeeb638664c6f73e636
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/io/json/test_pandas.py
Batalex/pandas
f2bcb9f0060d030085cdbaeeb638664c6f73e636
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable-msg=W0612,E1101 from collections import OrderedDict from datetime import timedelta import json import os import numpy as np import pytest from pandas.compat import StringIO, is_platform_32bit, lrange, range import pandas.util._test_decorators as td import pandas as pd from p...
41.174981
88
0.548266
cb6e856c6fa60eebd7dfeabfd615b0070ff49855
1,430
py
Python
libpysal/io/iohandlers/tests/test_mat.py
Kanahiro/dbf-df-translator
6603ca1ac306203bf8c95e6545685c509324a438
[ "MIT" ]
null
null
null
libpysal/io/iohandlers/tests/test_mat.py
Kanahiro/dbf-df-translator
6603ca1ac306203bf8c95e6545685c509324a438
[ "MIT" ]
null
null
null
libpysal/io/iohandlers/tests/test_mat.py
Kanahiro/dbf-df-translator
6603ca1ac306203bf8c95e6545685c509324a438
[ "MIT" ]
null
null
null
import unittest from ..mat import MatIO from .... import examples as pysal_examples from ...fileio import FileIO as psopen import tempfile import os import warnings class test_MatIO(unittest.TestCase): def setUp(self): self.test_file = test_file = pysal_examples.get_path("spat-sym-us.mat") self.ob...
28.039216
79
0.608392
d3e965b5cdb403017ab64a139c6fa2554da2f3d6
7,899
py
Python
bot.py
FrostSTeeL/covidbot-public
ae5dbdefe3989303f155d730cd43b05b18430fca
[ "MIT" ]
null
null
null
bot.py
FrostSTeeL/covidbot-public
ae5dbdefe3989303f155d730cd43b05b18430fca
[ "MIT" ]
null
null
null
bot.py
FrostSTeeL/covidbot-public
ae5dbdefe3989303f155d730cd43b05b18430fca
[ "MIT" ]
null
null
null
import datetime import threading import time import pandas as pd import requests import schedule from bs4 import BeautifulSoup, CData from telegram.ext import CommandHandler, Filters, MessageHandler, Updater token = 'Token' update_interval = 30 data_url = 'https://covid19.saglik.gov.tr/TR-66935/genel-koronavirus-tabl...
39.693467
313
0.578934
88ee99393a6bfe43b2ebdf1425898ada8af21161
68,058
py
Python
python/ray/scripts/scripts.py
wybryan/ray
6ee85a4f32785e9f97f274c5e4678826ac6e5a84
[ "Apache-2.0" ]
3
2021-06-24T17:00:18.000Z
2021-09-20T15:49:11.000Z
python/ray/scripts/scripts.py
wybryan/ray
6ee85a4f32785e9f97f274c5e4678826ac6e5a84
[ "Apache-2.0" ]
125
2018-01-31T06:57:41.000Z
2022-03-26T07:07:14.000Z
python/ray/scripts/scripts.py
suquark/ray
2489b176346d093c28c73898ffe9654c4053c6cf
[ "Apache-2.0" ]
null
null
null
from typing import Optional, Set import click import copy from datetime import datetime import json import logging import os import subprocess import sys import time import urllib import urllib.parse import yaml from socket import socket import ray import psutil import ray._private.services as services import ray.ray...
34.617497
79
0.630448
7c8128d8b321549bb8546df29cc735a330cda312
8,796
py
Python
customSDK/servicefabric/models/load_metric_information.py
mrdakj/service-fabric-cli
3ab1503b9cb6559bbfbdfbe2ce23a95a1b9709ca
[ "MIT" ]
null
null
null
customSDK/servicefabric/models/load_metric_information.py
mrdakj/service-fabric-cli
3ab1503b9cb6559bbfbdfbe2ce23a95a1b9709ca
[ "MIT" ]
null
null
null
customSDK/servicefabric/models/load_metric_information.py
mrdakj/service-fabric-cli
3ab1503b9cb6559bbfbdfbe2ce23a95a1b9709ca
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
57.868421
106
0.71271
d91a4969a2ddc5766cf18663ef589e3aab633ee6
9,162
py
Python
pytorch3d/renderer/blending.py
fabibo3/pytorch3d
36b7656753ae759aed2eb7ffb432b6eca4d42fe2
[ "BSD-3-Clause" ]
null
null
null
pytorch3d/renderer/blending.py
fabibo3/pytorch3d
36b7656753ae759aed2eb7ffb432b6eca4d42fe2
[ "BSD-3-Clause" ]
null
null
null
pytorch3d/renderer/blending.py
fabibo3/pytorch3d
36b7656753ae759aed2eb7ffb432b6eca4d42fe2
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. from typing import NamedTuple, Sequence, Union import torch from pytorch3d import _C # Example functions for ...
40.361233
92
0.662737
faaba4c706245d0ce9c60f18d220c77f2873c745
2,818
py
Python
tests/unit/api/test_user_mgmt.py
CiscoSecurity/tr-05-api-module
ce0f8d583b2fce3aadcc5a5c174a5b2b23e14d72
[ "MIT" ]
10
2019-07-16T15:11:05.000Z
2022-02-07T19:58:55.000Z
tests/unit/api/test_user_mgmt.py
CiscoSecurity/tr-05-api-module
ce0f8d583b2fce3aadcc5a5c174a5b2b23e14d72
[ "MIT" ]
26
2019-07-18T09:31:12.000Z
2021-11-19T09:52:50.000Z
tests/unit/api/test_user_mgmt.py
CiscoSecurity/tr-05-api-module
ce0f8d583b2fce3aadcc5a5c174a5b2b23e14d72
[ "MIT" ]
13
2019-07-15T12:31:35.000Z
2021-02-23T16:57:38.000Z
from threatresponse.api.user_mgmt import UserMgmtAPI from .assertions import * test_user_id = "00000000-0000-0000-0000-000000000000" def test_users_get_succeeds(): request = invoke( UserMgmtAPI, lambda api: api.users.get(user_id=test_user_id) ) request.perform.assert_called_once_with( ...
24.719298
73
0.608588
61e44e7c3416b09df84e1f11192f4936c16ea7fc
37,861
py
Python
study_tool/card_database.py
cubeman99/russian-study-tool
b073df4694f1ad064a780088cdcb1436e1bde7e9
[ "MIT" ]
null
null
null
study_tool/card_database.py
cubeman99/russian-study-tool
b073df4694f1ad064a780088cdcb1436e1bde7e9
[ "MIT" ]
null
null
null
study_tool/card_database.py
cubeman99/russian-study-tool
b073df4694f1ad064a780088cdcb1436e1bde7e9
[ "MIT" ]
null
null
null
from datetime import datetime import os import random import re import threading import time import json import yaml from cmg.event import Event from cmg.utilities import ReadWriteLock from study_tool.card import Card from study_tool.card import SourceLocation from study_tool.card_set import CardSet from study_tool.car...
42.208473
96
0.548084
b808b0e9317aa17c55e2499f49907b4d1635222b
6,745
py
Python
tests/frontend/test_circuitspecs_gaussianunitary.py
ricardoprins/strawberryfields
739ad44950624434375a24693a060e8a5e74c951
[ "Apache-2.0" ]
null
null
null
tests/frontend/test_circuitspecs_gaussianunitary.py
ricardoprins/strawberryfields
739ad44950624434375a24693a060e8a5e74c951
[ "Apache-2.0" ]
null
null
null
tests/frontend/test_circuitspecs_gaussianunitary.py
ricardoprins/strawberryfields
739ad44950624434375a24693a060e8a5e74c951
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Xanadu Quantum Technologies 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...
38.323864
101
0.634544
5d5852c1b430caacae5297740252814d449e064e
394
py
Python
python/database/flask_database.py
OSAMAMOHAMED1234/E-Commerce_Blueprint
eca5d0c2eb22a0e6a30bfd2499e85775b43ef919
[ "MIT" ]
1
2019-05-04T11:52:49.000Z
2019-05-04T11:52:49.000Z
python/database/flask_database.py
osama-mohamed/E-Commerce_Blueprint
eca5d0c2eb22a0e6a30bfd2499e85775b43ef919
[ "MIT" ]
null
null
null
python/database/flask_database.py
osama-mohamed/E-Commerce_Blueprint
eca5d0c2eb22a0e6a30bfd2499e85775b43ef919
[ "MIT" ]
null
null
null
# some imports from flask import Flask, Blueprint from flask_mysqldb import MySQL # application configuration app = Flask(__name__) app.config['MYSQL_HOST'] = 'localhost' app.config['MYSQL_USER'] = 'root' # app.config['MYSQL_PASSWORD'] = '123456' app.config['MYSQL_DB'] = 'buy_sell' app.config['MYSQL_CURSORCLASS'] = '...
26.266667
46
0.748731
2bbdc97340166319c478d5fcdd986e067fb1ea9b
659
py
Python
sponge-jython/examples/script/py/rules_heartbeat2.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
9
2017-12-16T21:48:57.000Z
2022-01-06T12:22:24.000Z
sponge-jython/examples/script/py/rules_heartbeat2.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
3
2020-12-18T11:56:46.000Z
2022-03-31T18:37:10.000Z
sponge-jython/examples/script/py/rules_heartbeat2.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
2
2019-12-29T16:08:32.000Z
2020-06-15T14:05:34.000Z
""" Sponge Knowledge Base Heartbeat 2 """ from java.util.concurrent.atomic import AtomicBoolean def onInit(): sponge.setVariable("soundTheAlarm", AtomicBoolean(False)) # Sounds the alarm when heartbeat event stops occurring at most every 2 seconds. class HeartbeatRule(Rule): def onConfigure(self)...
29.954545
100
0.694992
dd062179f5ecbe5c9bdf1512141d2faf9e32eb7b
782
py
Python
206neutrinos_2018/parser.py
ltabis/epitech-projects
e38b3f00a4ac44c969d5e4880cd65084dc2c870a
[ "MIT" ]
null
null
null
206neutrinos_2018/parser.py
ltabis/epitech-projects
e38b3f00a4ac44c969d5e4880cd65084dc2c870a
[ "MIT" ]
null
null
null
206neutrinos_2018/parser.py
ltabis/epitech-projects
e38b3f00a4ac44c969d5e4880cd65084dc2c870a
[ "MIT" ]
1
2021-01-07T17:41:14.000Z
2021-01-07T17:41:14.000Z
#!/usr/bin/env python3 import sys import calc _arg_number_ = 5 def parsing(): if len(sys.argv) == 2 and sys.argv[1] == "-h": display_help() exit(0) elif len(sys.argv) != _arg_number_: exit(84) try_number(sys.argv[1]) try_number(sys.argv[2]) try_number(sys.argv[3]) try_...
21.135135
85
0.560102
7be91acc8e1a90182a938ecafae37b06b6ce94b2
519
py
Python
src/helow/reporter/migrations/0008_auto_20200508_0130.py
BuildForSDG/team-079
817fd17f566be07c4b225c769ba6576462f080b8
[ "MIT" ]
null
null
null
src/helow/reporter/migrations/0008_auto_20200508_0130.py
BuildForSDG/team-079
817fd17f566be07c4b225c769ba6576462f080b8
[ "MIT" ]
null
null
null
src/helow/reporter/migrations/0008_auto_20200508_0130.py
BuildForSDG/team-079
817fd17f566be07c4b225c769ba6576462f080b8
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-08 01:30 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('reporter', '0007_auto_20200508_0123'), ] operations = [ migrations.AlterField( model_name='inci...
25.95
137
0.662813
451cd238f85c8837af58e0be22182b38badd7911
1,963
py
Python
setup.py
hyabe/onnx-chainer
339ff390957d9dd29843add015533290fdd051c0
[ "MIT" ]
null
null
null
setup.py
hyabe/onnx-chainer
339ff390957d9dd29843add015533290fdd051c0
[ "MIT" ]
null
null
null
setup.py
hyabe/onnx-chainer
339ff390957d9dd29843add015533290fdd051c0
[ "MIT" ]
null
null
null
from setuptools import setup requirements = { 'install': [ 'chainer>=5.0.0', 'onnx>=1.4.0,<1.5', ], 'stylecheck': [ 'autopep8', 'hacking', ], 'test': [ 'pytest', 'chainercv>=0.11.0', ], 'test-cpu': [ '-r test', 'onnxruntime==0...
24.848101
78
0.57514
239a3dc05d66b1d2abb6cfdb93d73956be403363
2,014
py
Python
ietf/utils/textupload.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
25
2022-03-05T08:26:52.000Z
2022-03-30T15:45:42.000Z
ietf/utils/textupload.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
219
2022-03-04T17:29:12.000Z
2022-03-31T21:16:14.000Z
ietf/utils/textupload.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
22
2022-03-04T15:34:34.000Z
2022-03-28T13:30:59.000Z
# Copyright The IETF Trust 2012-2020, All Rights Reserved # -*- coding: utf-8 -*- import re from django.conf import settings from django.core.exceptions import ValidationError import debug # pyflakes:ignore def get_cleaned_text_file_content(uploaded_file): """Read uploaded file, try ...
35.333333
134
0.658391
59a0b6d4ae7865b5895411b5350d07899f5ad200
539
py
Python
520B.py
LiviaAniely/Codeforce_Questions
b1d3be8a7c048a4b1f347ad3e24455af9ad88805
[ "MIT" ]
null
null
null
520B.py
LiviaAniely/Codeforce_Questions
b1d3be8a7c048a4b1f347ad3e24455af9ad88805
[ "MIT" ]
null
null
null
520B.py
LiviaAniely/Codeforce_Questions
b1d3be8a7c048a4b1f347ad3e24455af9ad88805
[ "MIT" ]
null
null
null
n , m = map(int,input().split()) visitado = [False for i in range(100000)] import queue def bfs(x,fim): visitado[x] = True q = queue.Queue() q.put((x*2,x - 1,1)) while not visitado[fim] == True: node = q.get() for i in node[:2]: if visitado[i] == False: ...
22.458333
56
0.424861
6292adf21689c503e6bf4cdcb010c19160d1b5bc
1,364
py
Python
obsolete/reports/pipeline_chipseq/trackers/BioProspector.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
49
2015-04-13T16:49:25.000Z
2022-03-29T10:29:14.000Z
obsolete/reports/pipeline_chipseq/trackers/BioProspector.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
252
2015-04-08T13:23:34.000Z
2019-03-18T21:51:29.000Z
obsolete/reports/pipeline_chipseq/trackers/BioProspector.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
22
2015-05-21T00:37:52.000Z
2019-09-25T05:04:27.000Z
from ChipseqReport import * import glob class BioProspectorMotifs(ChipseqTracker): pattern = "(.*)_bioprospector$" def __call__(self, track, slice=None): resultsdir = os.path.join(EXPORTDIR, "bioprospector") if not os.path.exists(resultsdir): return [] data = odict() ...
32.47619
110
0.531525
a9b24f2bbe6bdedcd3518d1c1d0dcdf3f0b9d95e
58,893
py
Python
sympy/core/power.py
rwst/sympy
2e46739f27dd5d5f25b1bcbbf3072cbb41dca358
[ "BSD-3-Clause" ]
null
null
null
sympy/core/power.py
rwst/sympy
2e46739f27dd5d5f25b1bcbbf3072cbb41dca358
[ "BSD-3-Clause" ]
null
null
null
sympy/core/power.py
rwst/sympy
2e46739f27dd5d5f25b1bcbbf3072cbb41dca358
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, division from math import log as _log from .sympify import _sympify from .cache import cacheit from .singleton import S from .expr import Expr from .evalf import PrecisionExhausted from .function import (_coeff_isneg, expand_complex, expand_multinomial, expand_mul) from .log...
37.156467
91
0.454944
f6df5f7f1b9503cd7d9112ad6e6149aac5d721f8
3,485
py
Python
lib/fw_config.py
hep-gc/cloud-scheduler-2
180d9dc4f8751cf8c8254518e46f83f118187e84
[ "Apache-2.0" ]
3
2020-03-03T03:25:36.000Z
2021-12-03T15:31:39.000Z
lib/fw_config.py
hep-gc/cloud-scheduler-2
180d9dc4f8751cf8c8254518e46f83f118187e84
[ "Apache-2.0" ]
341
2017-06-08T17:27:59.000Z
2022-01-28T19:37:57.000Z
lib/fw_config.py
hep-gc/cloud-scheduler-2
180d9dc4f8751cf8c8254518e46f83f118187e84
[ "Apache-2.0" ]
3
2018-04-25T16:13:20.000Z
2020-04-15T20:03:46.000Z
#!/usr/bin/env python3 from subprocess import Popen, PIPE import os import socket # Change to firewall only def configure_fw(config, logger=None, other_dns=[]): local_dir = '/var/local/cloudscheduler/etc/condor/config.d' def configure_fw_logger(logger, level, msg): if logger: if level == '...
39.157303
187
0.558106
b7f92caba6f1910224f08c29e24be81bb4df74ac
4,926
py
Python
code/Fig3_steady_state.py
cremerlab/ribosomal_allocation
a48828e00906c18bc3c49d109b3874c531098ce1
[ "MIT" ]
null
null
null
code/Fig3_steady_state.py
cremerlab/ribosomal_allocation
a48828e00906c18bc3c49d109b3874c531098ce1
[ "MIT" ]
null
null
null
code/Fig3_steady_state.py
cremerlab/ribosomal_allocation
a48828e00906c18bc3c49d109b3874c531098ce1
[ "MIT" ]
null
null
null
#%% import numpy as np import matplotlib.pyplot as plt import growth.model import growth.viz import seaborn as sns colors, _ = growth.viz.matplotlib_style() const = growth.model.load_constants() # Define the parameter ranges nu_max = np.array([0, 0.462, 0.925, 1.39, 1.85, 2.48, 3.11, 3.74, 4.37, 5]) nu_max *= (4....
46.037383
113
0.681689
99bfab5603221a3ed455e738c2fd807b72a3b079
16,626
py
Python
fos/lib/pyglet/event.py
ibrahemesam/Fos
f2f284a2c7bdc24dafafebb8aa3141ebf225e451
[ "BSD-3-Clause" ]
null
null
null
fos/lib/pyglet/event.py
ibrahemesam/Fos
f2f284a2c7bdc24dafafebb8aa3141ebf225e451
[ "BSD-3-Clause" ]
null
null
null
fos/lib/pyglet/event.py
ibrahemesam/Fos
f2f284a2c7bdc24dafafebb8aa3141ebf225e451
[ "BSD-3-Clause" ]
1
2021-07-11T00:16:46.000Z
2021-07-11T00:16:46.000Z
# ---------------------------------------------------------------------------- # fos.lib.pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Re...
36.30131
84
0.62721
de56712399df446baf73707494cb6ec8e7566b25
5,189
py
Python
PaddleNLP/machine_translation/transformer/utils/input_field.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
5
2021-09-28T13:28:01.000Z
2021-12-21T07:25:44.000Z
PaddleNLP/machine_translation/transformer/utils/input_field.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
null
null
null
PaddleNLP/machine_translation/transformer/utils/input_field.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
3
2019-10-31T07:18:49.000Z
2020-01-13T03:18:39.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
28.355191
77
0.608981
1900c19dbc8c297bc22fe030ad1b7d110cc42301
14,215
py
Python
scripts/main_08_binary_classification_00.py
AshivDhondea/ENSC813_Project
3606abff4b9e42282b5f7a6971f0554704bb037d
[ "MIT" ]
2
2020-05-01T17:00:37.000Z
2020-05-14T09:03:16.000Z
scripts/main_08_binary_classification_00.py
AshivDhondea/ENSC813_Project
3606abff4b9e42282b5f7a6971f0554704bb037d
[ "MIT" ]
null
null
null
scripts/main_08_binary_classification_00.py
AshivDhondea/ENSC813_Project
3606abff4b9e42282b5f7a6971f0554704bb037d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Apr 12 17:38:41 2020 Binary classification Ensembling the classifiers: Simple CNN (Model 1) @author: Ashiv Hans Dhondea """ # images to be resized to (image_dim) x (image_dim) image_dim = 200; name_brand_1 = 'Lexus'; name_brand_2 = 'Mercedes-Benz' # --------...
42.687688
152
0.677383
ed019985305d3ec182ba9289f1163320341fba69
15,002
py
Python
caer/transforms/color.py
MalikMAlna/caer
96c429ab41ea1c81a7ada8ad961196e649ccea42
[ "MIT" ]
null
null
null
caer/transforms/color.py
MalikMAlna/caer
96c429ab41ea1c81a7ada8ad961196e649ccea42
[ "MIT" ]
null
null
null
caer/transforms/color.py
MalikMAlna/caer
96c429ab41ea1c81a7ada8ad961196e649ccea42
[ "MIT" ]
null
null
null
# _____ ______ _____ # / ____/ /\ | ____ | __ \ # | | / \ | |__ | |__) | Caer - Modern Computer Vision # | | / /\ \ | __| | _ / Languages: Python, C, C++ # | |___ / ____ \ | |____ | | \ \ http://github.com/jasmcaus/caer # \_____\/_/ \_ \______ |_| \_\ # Licensed ...
32.262366
185
0.590455
909a2aa35b363d93324784064453a7a66382d7db
5,091
py
Python
library/test/UnicornHat_Emulator.py
YA-androidapp/unicorn-hat
319b334f80da6f617ef25fa75edbdf8924f4925f
[ "MIT" ]
2
2017-08-29T17:15:52.000Z
2018-11-21T16:39:09.000Z
library/test/UnicornHat_Emulator.py
YA-androidapp/unicorn-hat
319b334f80da6f617ef25fa75edbdf8924f4925f
[ "MIT" ]
2
2018-03-26T10:51:29.000Z
2021-01-04T20:45:32.000Z
library/test/UnicornHat_Emulator.py
YA-androidapp/unicorn-hat
319b334f80da6f617ef25fa75edbdf8924f4925f
[ "MIT" ]
1
2018-11-22T17:47:06.000Z
2018-11-22T17:47:06.000Z
#!/usr/bin/env python import Queue import signal import socket import threading import time from sys import exit, version_info try: from Tkinter import Canvas, Frame, Tk except ImportError: if version_info[0] < 3: exit("This library requires python-tk\nInstall with: sudo apt-get install python-tk") ...
26.515625
146
0.562365
fc9e0a57044299e62c8404eaa388cee20228ca86
9,560
py
Python
Python/novel_download/sql_connect.py
linghtiin/test
4718dfbe33768fa6e623e27933199cbb21d440ae
[ "Apache-2.0" ]
null
null
null
Python/novel_download/sql_connect.py
linghtiin/test
4718dfbe33768fa6e623e27933199cbb21d440ae
[ "Apache-2.0" ]
null
null
null
Python/novel_download/sql_connect.py
linghtiin/test
4718dfbe33768fa6e623e27933199cbb21d440ae
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri May 3 13:28:01 2019 待办: 实现更新index、info函数 @author: 10127 """ from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, UniqueConstraint from sqlalchemy import Integer, Text, DateTime, Enum, Boolean from sqlalchemy.orm import s...
32.627986
108
0.455021
3e2d6f23e5e63f00cd33cc2f9560bc84ba8ab624
1,486
py
Python
HLTrigger/HLTanalyzers/python/HLTBitAnalyser_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
HLTrigger/HLTanalyzers/python/HLTBitAnalyser_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
HLTrigger/HLTanalyzers/python/HLTBitAnalyser_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms hltbitanalysis = cms.EDAnalyzer("HLTBitAnalyzer", ### Trigger objects l1GctHFBitCounts = cms.InputTag("hltGctDigis"), l1GctHFRingSums = cms.InputTag("hltGctDigis"), l1GtObjectMapRecord = cms.InputTag("hltL1GtObjectMap::...
41.277778
98
0.507402
98a31d67cd8dd76650d789fdc912a95026e7c2ce
8,578
py
Python
test/functional/p2p_invalid_messages.py
TriCron/shirecoin
50ab7e5b7dc32350e4bcbe33ad728b3926212e5a
[ "MIT" ]
null
null
null
test/functional/p2p_invalid_messages.py
TriCron/shirecoin
50ab7e5b7dc32350e4bcbe33ad728b3926212e5a
[ "MIT" ]
null
null
null
test/functional/p2p_invalid_messages.py
TriCron/shirecoin
50ab7e5b7dc32350e4bcbe33ad728b3926212e5a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2019 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 node responses to invalid network messages.""" import asyncio import struct import sys from test_...
38.294643
133
0.62602
d457bec64236bb6da03188e3bc11e93c104bd145
772
py
Python
criminals/migrations/0005_auto_20210219_1617.py
Three-Dev-Musketeers/Mumbai_Police
293fbc1d81db459c23649c9c6b1eef8c38da1939
[ "MIT" ]
5
2021-02-19T20:37:35.000Z
2021-12-19T06:41:50.000Z
criminals/migrations/0005_auto_20210219_1617.py
Divesh2201/Mumbai_Police
dfabf8494de2c790178541ee20d37d3002ca12af
[ "MIT" ]
1
2021-10-04T17:37:51.000Z
2021-10-05T10:50:36.000Z
criminals/migrations/0005_auto_20210219_1617.py
Divesh2201/Mumbai_Police
dfabf8494de2c790178541ee20d37d3002ca12af
[ "MIT" ]
4
2021-03-05T05:44:20.000Z
2021-04-25T17:23:16.000Z
# Generated by Django 3.1.6 on 2021-02-19 10:47 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('criminals', '0004_auto_20210219_1614'), ] operations = [ migrations.AlterField( model_name='crimin...
30.88
163
0.625648
9f351210093652493854833e64bf843a7091de0b
771
py
Python
base/middleware.py
mhhabib/Django-custom-registration
97c30d25e1efc08e515dcad1b02f084eb1996894
[ "MIT" ]
null
null
null
base/middleware.py
mhhabib/Django-custom-registration
97c30d25e1efc08e515dcad1b02f084eb1996894
[ "MIT" ]
null
null
null
base/middleware.py
mhhabib/Django-custom-registration
97c30d25e1efc08e515dcad1b02f084eb1996894
[ "MIT" ]
null
null
null
from django.contrib.auth import logout import datetime from settings import SESSION_IDLE_TIMEOUT class SessionIdleTimeout(object): def __init__(self, get_response): self.get_response = get_response def __call__(self, request): if request.user.is_authenticated: current_datetime = d...
35.045455
75
0.652399
3246234a0d6021e7293de7f22513135f37c79881
6,307
py
Python
torch_optimizer/adamp.py
kamo-naoyuki/pytorch-optimizer
ce54a95fac348182c7f0ef2b2caa44895b5881f0
[ "Apache-2.0" ]
1
2021-01-23T02:24:00.000Z
2021-01-23T02:24:00.000Z
torch_optimizer/adamp.py
kamo-naoyuki/pytorch-optimizer
ce54a95fac348182c7f0ef2b2caa44895b5881f0
[ "Apache-2.0" ]
null
null
null
torch_optimizer/adamp.py
kamo-naoyuki/pytorch-optimizer
ce54a95fac348182c7f0ef2b2caa44895b5881f0
[ "Apache-2.0" ]
null
null
null
import math import torch from torch.optim.optimizer import Optimizer from .types import Betas2, OptFloat, OptLossClosure, Params __all__ = ('AdamP',) class AdamP(Optimizer): r"""Implements AdamP algorithm. It has been proposed in `Slowing Down the Weight Norm Increase in Momentum-based Optimizers`__ ...
32.015228
79
0.512446
47e4aca1d1d5cfff38f5b04f90c6e66eca3c93a9
4,345
py
Python
contrib/seeds/generate-seeds.py
anonymouszar/vestx
466a8e2fd4c1b544e72051115908f3384fedbbe3
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
anonymouszar/vestx
466a8e2fd4c1b544e72051115908f3384fedbbe3
[ "MIT" ]
1
2019-09-27T08:26:37.000Z
2019-09-27T08:26:37.000Z
contrib/seeds/generate-seeds.py
anonymouszar/vestx
466a8e2fd4c1b544e72051115908f3384fedbbe3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate list of seed nodes for chainparams.cpp. This script expects two text files in the dir...
31.035714
99
0.582509
f8f6e95fe35c3876af8cd57a0ce12877b4279133
6,933
py
Python
nets/data/exercise_80x80.py
theRealSuperMario/lmdis-rep
2373877eb75b26e5fec5a3a143eff2f7f7c07c41
[ "Apache-2.0" ]
null
null
null
nets/data/exercise_80x80.py
theRealSuperMario/lmdis-rep
2373877eb75b26e5fec5a3a143eff2f7f7c07c41
[ "Apache-2.0" ]
null
null
null
nets/data/exercise_80x80.py
theRealSuperMario/lmdis-rep
2373877eb75b26e5fec5a3a143eff2f7f7c07c41
[ "Apache-2.0" ]
null
null
null
import os import cv2 import numpy as np import json import time import threading import random from multiprocessing.dummy import Pool from multiprocessing import cpu_count import scipy.io as sio import pandas as pd class Net: def __init__(self, subset_name="train", options=None): self._debug = False ...
32.397196
116
0.586903
9ed9ab23b96430c85a8453b921a3d6c1f0308f83
2,625
py
Python
fluiddb/model/test/test_factory.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
3
2021-05-10T14:41:30.000Z
2021-12-16T05:53:30.000Z
fluiddb/model/test/test_factory.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
null
null
null
fluiddb/model/test/test_factory.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
2
2018-01-24T09:03:21.000Z
2021-06-25T08:34:54.000Z
from fluiddb.data.system import createSystemData from fluiddb.model.factory import APIFactory from fluiddb.model.namespace import NamespaceAPI from fluiddb.model.object import ObjectAPI from fluiddb.model.permission import PermissionAPI, PermissionCheckerAPI from fluiddb.model.recentactivity import RecentActivityAPI fr...
38.043478
79
0.688762
9747434d82eabec1dc39dcb8b1a01d7570a08f2d
703
py
Python
mytest1/conftest.py
AlexDyukov/pytest_example
5e24855646b4afb23dabfca15549825fe8182005
[ "MIT" ]
null
null
null
mytest1/conftest.py
AlexDyukov/pytest_example
5e24855646b4afb23dabfca15549825fe8182005
[ "MIT" ]
1
2021-01-02T17:46:41.000Z
2021-01-02T17:46:41.000Z
mytest1/conftest.py
AlexDyukov/pytest_example
5e24855646b4afb23dabfca15549825fe8182005
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from lib import psql from lib import rmq @pytest.fixture(scope='session') def mydb1(): p = psql.create_pool( url = _get_psql_url(), conn_limit = _get_psql_conn_limit() ) yield p p.closeall() @pytest.fixture(scope='session') def rmq_root(...
17.575
66
0.637269
be0d78a85523b31587adefda8a503bf68a9723d7
305
py
Python
api/db/models/auth.py
johnseekins/api-v3
8a5ba61b08529fef7977b2cce7da14c5bfe84d42
[ "MIT" ]
11
2020-09-14T07:30:06.000Z
2022-03-09T02:18:07.000Z
api/db/models/auth.py
johnseekins/api-v3
8a5ba61b08529fef7977b2cce7da14c5bfe84d42
[ "MIT" ]
2
2020-09-28T16:31:36.000Z
2021-09-23T20:36:07.000Z
api/db/models/auth.py
johnseekins/api-v3
8a5ba61b08529fef7977b2cce7da14c5bfe84d42
[ "MIT" ]
7
2020-09-25T15:40:08.000Z
2022-02-09T15:10:14.000Z
from .. import Base from sqlalchemy import Column, String class Profile(Base): __tablename__ = "profiles_profile" id = Column(String, primary_key=True, index=True) api_key = Column(String, index=True) api_tier = Column(String) # lots of other fields but we just need these for API
23.461538
57
0.714754
62ff1533b8c97ef65034abb12f4b6ba94bb35b8e
2,239
py
Python
setup.py
phlummox-patches/knitty
d7a5256ba9dfa4cc146681cb202343937214c0f6
[ "MIT" ]
null
null
null
setup.py
phlummox-patches/knitty
d7a5256ba9dfa4cc146681cb202343937214c0f6
[ "MIT" ]
null
null
null
setup.py
phlummox-patches/knitty
d7a5256ba9dfa4cc146681cb202343937214c0f6
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from os import path import io import versioneer here = path.abspath(path.dirname(__file__)) with io.open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='knitty', version=versioneer.get_version(), cmdclass=vers...
34.984375
171
0.648504
474ea4156bd24ad738d15290daf58ad806c6e3a1
360
py
Python
bluebottle/quotes/serializers.py
maykinmedia/bluebottle
355d4729662b5e9a03398efb4fe882e0f8cfa28d
[ "BSD-3-Clause" ]
null
null
null
bluebottle/quotes/serializers.py
maykinmedia/bluebottle
355d4729662b5e9a03398efb4fe882e0f8cfa28d
[ "BSD-3-Clause" ]
null
null
null
bluebottle/quotes/serializers.py
maykinmedia/bluebottle
355d4729662b5e9a03398efb4fe882e0f8cfa28d
[ "BSD-3-Clause" ]
null
null
null
from bluebottle.bb_accounts.serializers import UserPreviewSerializer from fluent_contents.rendering import render_placeholder from rest_framework import serializers from .models import Quote class QuoteSerializer(serializers.ModelSerializer): user = UserPreviewSerializer() class Meta: model = Quote ...
27.692308
68
0.772222
060ee30a252da987dee8d1d16e35f843c1df5fc2
455
py
Python
tools/pot/openvino/tools/pot/utils/timestamp.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
2,406
2020-04-22T15:47:54.000Z
2022-03-31T10:27:37.000Z
tools/pot/openvino/tools/pot/utils/timestamp.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
4,948
2020-04-22T15:12:39.000Z
2022-03-31T18:45:42.000Z
tools/pot/openvino/tools/pot/utils/timestamp.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
991
2020-04-23T18:21:09.000Z
2022-03-31T18:40:57.000Z
# Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import datetime def get_timestamp(): return datetime.datetime.strftime( datetime.datetime.now(), '%Y-%m-%d_%H-%M-%S') def get_timestamp_precise(): return datetime.datetime.strftime( datetime.datetime.now(), '%...
22.75
56
0.668132
0ac4975650679cfd6471d05cebb0f44d1f3b3c78
8,928
py
Python
pypureclient/flasharray/FA_2_3/models/volume.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_3/models/volume.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_3/models/volume.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
42.312796
461
0.610887
c99e2251442e23b65b572a37d51351b858006dc4
1,899
py
Python
superium.py/superium.py
Beriff/superium.py
ceae06ac8e5ef0923fa078dceeb5cad1328bad40
[ "MIT" ]
null
null
null
superium.py/superium.py
Beriff/superium.py
ceae06ac8e5ef0923fa078dceeb5cad1328bad40
[ "MIT" ]
null
null
null
superium.py/superium.py
Beriff/superium.py
ceae06ac8e5ef0923fa078dceeb5cad1328bad40
[ "MIT" ]
null
null
null
import ast import requests class api: def assetSearch(type_=False, page=False, query=False, limit=False): url = "https://api.superium.net/asset/catalog?" if type_: url = url + f"type={type_}&" if page: url = url + f"page={page}&" if qu...
27.521739
78
0.540811
8a130e2001bf163519dfe861f7c5b8e4d249c3b1
4,181
py
Python
old/sdiv.py
rahlk/axe
b614301e63b889a1e5fd07a822d3329bd6c1de86
[ "Unlicense" ]
null
null
null
old/sdiv.py
rahlk/axe
b614301e63b889a1e5fd07a822d3329bd6c1de86
[ "Unlicense" ]
null
null
null
old/sdiv.py
rahlk/axe
b614301e63b889a1e5fd07a822d3329bd6c1de86
[ "Unlicense" ]
null
null
null
""" sdiv: standard-division of numerics . Copyright (c) 2014, Tim Menzies, tim.menzies@gmail.com All rights reserved. _____ _______ ,/_ ``-._ / \ ,|: `'-..__ ___| |_ ,|:_ ``'''-----''''`_::~-...
31.674242
56
0.402296
46d0e297069a576d8da6fbfcf7de6dacec26218f
1,078
py
Python
artman/tasks/packman_tasks.py
landrito/artman
c7bc509ef07afe5b46eda3de407305eaa62cbb15
[ "Apache-2.0" ]
null
null
null
artman/tasks/packman_tasks.py
landrito/artman
c7bc509ef07afe5b46eda3de407305eaa62cbb15
[ "Apache-2.0" ]
null
null
null
artman/tasks/packman_tasks.py
landrito/artman
c7bc509ef07afe5b46eda3de407305eaa62cbb15
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
35.933333
76
0.749536
87c3952be54d20fac4b77b905a33c2d582ffa77d
1,473
py
Python
examples/record_audio.py
fredyeah/streamer
079b8cb5d6002df50f13aa184ece7a4a3b357da4
[ "MIT" ]
5
2021-05-20T00:59:41.000Z
2021-12-05T18:25:57.000Z
examples/record_audio.py
fredyeah/streamer
079b8cb5d6002df50f13aa184ece7a4a3b357da4
[ "MIT" ]
null
null
null
examples/record_audio.py
fredyeah/streamer
079b8cb5d6002df50f13aa184ece7a4a3b357da4
[ "MIT" ]
1
2021-05-30T12:43:02.000Z
2021-05-30T12:43:02.000Z
import sys, os sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) from py_modular.time.transport import GlobalTransport from py_modular.sound.oscillators import Tri, Random from py_modular.effects.mixer import Atten from py_modular.effects.dsp import MultiChannelDelay from py_modular.time.ev...
36.825
105
0.783435
50b584775d3bb200a04f9da6d316b0f9f9a9ee89
235
py
Python
eocdb/core/file_helper.py
bcdev/ocdb-server
027078f2b022a06b3a417d76d273514a72f8cac7
[ "MIT" ]
null
null
null
eocdb/core/file_helper.py
bcdev/ocdb-server
027078f2b022a06b3a417d76d273514a72f8cac7
[ "MIT" ]
1
2019-06-21T09:43:01.000Z
2019-06-21T09:43:01.000Z
eocdb/core/file_helper.py
bcdev/ocdb-server
027078f2b022a06b3a417d76d273514a72f8cac7
[ "MIT" ]
null
null
null
from pathlib import Path class FileHelper(): @staticmethod def create_relative_path(archive_root, full_path): root_path = Path(full_path) rel_path = root_path.relative_to(archive_root) return rel_path
23.5
54
0.714894
ca9d9240ae0ad59a5c71da581e89502ae8d6c66c
907
py
Python
lesson2/mindstorms.py
voyageth/udacity-Programming_Foundations_with_Python
b3ca826427b4d3fa905a4f1de54f988a7dd6db70
[ "Apache-2.0" ]
null
null
null
lesson2/mindstorms.py
voyageth/udacity-Programming_Foundations_with_Python
b3ca826427b4d3fa905a4f1de54f988a7dd6db70
[ "Apache-2.0" ]
null
null
null
lesson2/mindstorms.py
voyageth/udacity-Programming_Foundations_with_Python
b3ca826427b4d3fa905a4f1de54f988a7dd6db70
[ "Apache-2.0" ]
null
null
null
import turtle def draw_square(brad): brad.forward(100) brad.right(90) brad.forward(100) brad.right(90) brad.forward(100) brad.right(90) brad.forward(100) brad.right(90) def draw_circle(): angie = turtle.Turtle() angie.shape("arrow") angie.color("blue") angie.circle(10...
16.490909
28
0.614112