hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
1c4674db514b2fd6be335133809c409cc899a512
6,171
py
Python
gpgrouper/containers.py
malovannaya-lab/gpgrouper
45cb948bfa9ed256e450ad8f257ec24324f786ca
[ "BSD-3-Clause" ]
5
2018-08-10T17:10:08.000Z
2020-05-21T08:09:45.000Z
gpgrouper/containers.py
malovannaya-lab/gpgrouper
45cb948bfa9ed256e450ad8f257ec24324f786ca
[ "BSD-3-Clause" ]
null
null
null
gpgrouper/containers.py
malovannaya-lab/gpgrouper
45cb948bfa9ed256e450ad8f257ec24324f786ca
[ "BSD-3-Clause" ]
null
null
null
"""Container for each experiment, has a dataframe and metadata""" import os import re from datetime import datetime import traceback import pandas as pd from . import _version class UserData: def __init__(self, recno=None, datafile=None, runno=1, searchno=1, no_taxa_redistrib=0, addedby='', in...
36.087719
133
0.577702
import os import re from datetime import datetime import traceback import pandas as pd from . import _version class UserData: def __init__(self, recno=None, datafile=None, runno=1, searchno=1, no_taxa_redistrib=0, addedby='', indir = '.', outdir='.', rawfiledir='.', labeltype=...
true
true
1c4675f61a8598c7f8758a842b5965aa6ce62daf
1,319
py
Python
Python Programs/The-Imvisible-Man/opcv.py
Chibi-Shem/Hacktoberfest2020-Expert
324843464aec039e130e85a16e74b76d310f1497
[ "MIT" ]
77
2020-10-01T10:06:59.000Z
2021-11-08T08:57:18.000Z
Python Programs/The-Imvisible-Man/opcv.py
Chibi-Shem/Hacktoberfest2020-Expert
324843464aec039e130e85a16e74b76d310f1497
[ "MIT" ]
46
2020-09-27T04:55:36.000Z
2021-05-14T18:49:06.000Z
Python Programs/The-Imvisible-Man/opcv.py
Chibi-Shem/Hacktoberfest2020-Expert
324843464aec039e130e85a16e74b76d310f1497
[ "MIT" ]
327
2020-09-26T17:06:03.000Z
2021-10-09T06:04:39.000Z
import numpy as np import cv2 import time cap = cv2.VideoCapture(0) time.sleep(2) background=0 #capture the background for i in range(30): ret,background = cap.read() while(cap.isOpened()): ret , img = cap.read() if not ret: break hsv = cv2.cvtColor(img , cv2.COLOR_BGR2HSV) lower_red ...
26.918367
88
0.634572
import numpy as np import cv2 import time cap = cv2.VideoCapture(0) time.sleep(2) background=0 for i in range(30): ret,background = cap.read() while(cap.isOpened()): ret , img = cap.read() if not ret: break hsv = cv2.cvtColor(img , cv2.COLOR_BGR2HSV) lower_red = np.array([0,120,70]) ...
true
true
1c4676525bfb0f4f935ed4c6103fd5be72db5498
9,215
py
Python
salt/modules/s3.py
herlo/salt
10ffb8315559c0cfbc10b4adc26cd62ebc462851
[ "Apache-2.0" ]
null
null
null
salt/modules/s3.py
herlo/salt
10ffb8315559c0cfbc10b4adc26cd62ebc462851
[ "Apache-2.0" ]
null
null
null
salt/modules/s3.py
herlo/salt
10ffb8315559c0cfbc10b4adc26cd62ebc462851
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Connection module for Amazon S3 :configuration: This module accepts explicit s3 credentials but can also utilize IAM roles assigned to the instance trough Instance Profiles. Dynamic credentials are then automatically obtained from AWS API and no further configuration is necessar...
30.819398
87
0.58166
from __future__ import absolute_import import logging import salt.utils import salt.utils.s3 log = logging.getLogger(__name__) def __virtual__(): return True def delete(bucket, path=None, action=None, key=None, keyid=None, service_url=None, verify_ssl=None, kms_keyid=None, location=None, ...
true
true
1c4676e95a1de5936f6b8382b6bdae4774211922
3,598
py
Python
yt_dlp/extractor/joj.py
YuanHsing/yt-dlp
38d86f4d45cf2b764f79141c602356fbb426a4b6
[ "Unlicense" ]
1
2021-12-13T14:12:47.000Z
2021-12-13T14:12:47.000Z
yt_dlp/extractor/joj.py
YuanHsing/yt-dlp
38d86f4d45cf2b764f79141c602356fbb426a4b6
[ "Unlicense" ]
null
null
null
yt_dlp/extractor/joj.py
YuanHsing/yt-dlp
38d86f4d45cf2b764f79141c602356fbb426a4b6
[ "Unlicense" ]
null
null
null
import re from .common import InfoExtractor from ..compat import compat_str from ..utils import ( format_field, int_or_none, js_to_json, try_get, ) class JojIE(InfoExtractor): _VALID_URL = r'''(?x) (?: joj:| https?://media\.joj\....
33.626168
105
0.472763
import re from .common import InfoExtractor from ..compat import compat_str from ..utils import ( format_field, int_or_none, js_to_json, try_get, ) class JojIE(InfoExtractor): _VALID_URL = r'''(?x) (?: joj:| https?://media\.joj\....
true
true
1c46778f48f486ad8a9dd24ae5c1193ee12576be
246
py
Python
manage.py
fndomariano/prototipo-rbc
72b48a2cdc5d5072d09b20cb7311df50ea5161bb
[ "MIT" ]
null
null
null
manage.py
fndomariano/prototipo-rbc
72b48a2cdc5d5072d09b20cb7311df50ea5161bb
[ "MIT" ]
6
2021-03-19T01:32:29.000Z
2021-09-22T18:50:40.000Z
manage.py
fndomariano/prototype-cbr
72b48a2cdc5d5072d09b20cb7311df50ea5161bb
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tcc.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.363636
67
0.768293
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tcc.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
true
true
1c467887b365f7e063283d64aeac5d205b2dbc04
905
py
Python
services/python/app/lib/modules/detections/keybase.py
seanmcfeely/eventsentry
afa4f7c3797a5b3cd96511064f58eb375ca73848
[ "Apache-2.0" ]
4
2018-08-17T16:51:46.000Z
2020-05-05T21:27:18.000Z
services/python/app/lib/modules/detections/keybase.py
seanmcfeely/eventsentry
afa4f7c3797a5b3cd96511064f58eb375ca73848
[ "Apache-2.0" ]
6
2018-08-06T20:40:22.000Z
2019-01-17T15:04:31.000Z
services/python/app/lib/modules/detections/keybase.py
seanmcfeely/eventsentry
afa4f7c3797a5b3cd96511064f58eb375ca73848
[ "Apache-2.0" ]
4
2018-08-06T14:59:09.000Z
2019-08-30T18:03:45.000Z
from lib.modules.DetectionModule import * class Module(DetectionModule): def __init__(self, name, event_json): super().__init__(name=name, event_json=event_json) def run(self): self.logger.debug('Running the {} detection module'.format(self.name)) # Loop over each sandboxed sample in...
37.708333
116
0.609945
from lib.modules.DetectionModule import * class Module(DetectionModule): def __init__(self, name, event_json): super().__init__(name=name, event_json=event_json) def run(self): self.logger.debug('Running the {} detection module'.format(self.name)) for sample in self.event_js...
true
true
1c46789dc107becd64aab237d7fbcb37ef2c7d33
3,658
py
Python
assets/pinyin-python-server/server.py
admpub/AreaCity-JsSpider-StatsGov
c677db485d33a479ffb2bb28da8fc377a56d9ec9
[ "MIT" ]
3,332
2018-11-28T07:11:37.000Z
2022-03-31T18:54:17.000Z
assets/pinyin-python-server/server.py
xlehehe/AreaCity-JsSpider-StatsGov
c36f95ed88bc24469a10fca7959d0350117e57dc
[ "MIT" ]
21
2019-03-26T06:54:26.000Z
2022-02-12T05:03:36.000Z
assets/pinyin-python-server/server.py
xlehehe/AreaCity-JsSpider-StatsGov
c36f95ed88bc24469a10fca7959d0350117e57dc
[ "MIT" ]
663
2018-11-28T10:32:56.000Z
2022-03-29T15:00:00.000Z
# -*- coding:utf-8 -*- """ GitHub: https://github.com/xiangyuecn/AreaCity-JsSpider-StatsGov/assets/pinyin-python-server 使用的HanLP (https://github.com/hankcs/HanLP) 语言处理库 【1】安装Miniconda conda版本随意 【2】安装pyhanlp https://github.com/hankcs/pyhanlp/wiki/Windows 测试发现python3.7.1 windows下ssl有问题无法安装,conda切换成python 3.6.4测试安装正常 安...
30.483333
92
0.52269
import sys if sys.version_info.major < 3: print("Require python3 environment!") exit(1) from pyhanlp import * import traceback import time import json import urllib from http.server import HTTPServer, BaseHTTPRequestHandler class HttpHandler(BaseHTTPRequestHandler): def _response(self, path, args)...
true
true
1c467a246f902e6c48bf43554502bd3ba0323cb2
7,868
py
Python
supervisor/bootstrap.py
pssc/supervisor
2f09ee05c52e255fbdd8b795451d39b24278ef35
[ "Apache-2.0" ]
24
2020-03-08T21:13:00.000Z
2020-03-11T06:18:43.000Z
supervisor/bootstrap.py
pssc/supervisor
2f09ee05c52e255fbdd8b795451d39b24278ef35
[ "Apache-2.0" ]
null
null
null
supervisor/bootstrap.py
pssc/supervisor
2f09ee05c52e255fbdd8b795451d39b24278ef35
[ "Apache-2.0" ]
null
null
null
"""Bootstrap Supervisor.""" import logging import os from pathlib import Path import shutil import signal from colorlog import ColoredFormatter from .addons import AddonManager from .api import RestAPI from .arch import CpuArch from .auth import Auth from .audio import Audio from .const import SOCKET_DOCKER, UpdateCh...
31.098814
88
0.680859
import logging import os from pathlib import Path import shutil import signal from colorlog import ColoredFormatter from .addons import AddonManager from .api import RestAPI from .arch import CpuArch from .auth import Auth from .audio import Audio from .const import SOCKET_DOCKER, UpdateChannels from .core import Cor...
true
true
1c467a33edb77eed8083f7b4d9221ac4d6a5fbee
6,264
py
Python
marshmallow_oneofschema/one_of_schema.py
misterflop/marshmallow-oneofschema
64f836d7c332b515e3e4c956683366fa11d17966
[ "MIT" ]
null
null
null
marshmallow_oneofschema/one_of_schema.py
misterflop/marshmallow-oneofschema
64f836d7c332b515e3e4c956683366fa11d17966
[ "MIT" ]
null
null
null
marshmallow_oneofschema/one_of_schema.py
misterflop/marshmallow-oneofschema
64f836d7c332b515e3e4c956683366fa11d17966
[ "MIT" ]
null
null
null
from marshmallow import Schema, ValidationError class OneOfSchema(Schema): """ This is a special kind of schema that actually multiplexes other schemas based on object type. When serializing values, it uses get_obj_type() method to get object type name. Then it uses `type_schemas` name-to-Schema mappi...
36.208092
88
0.566252
from marshmallow import Schema, ValidationError class OneOfSchema(Schema): type_field = "type" type_field_remove = True type_schemas = [] def get_obj_type(self, obj): return obj.__class__.__name__ def dump(self, obj, *, many=None, **kwargs): errors = {} result_data = [] ...
true
true
1c467bde363eec1247fd8544df7541fa713b274f
197
py
Python
code/example1.py
ThomasHuke/knowPython
0a9d3c224b36416b7eaa9d664e145bc0f2a63df2
[ "MIT" ]
4
2017-06-20T10:42:45.000Z
2017-10-24T09:19:27.000Z
code/example1.py
ThomasHuke/knowPython
0a9d3c224b36416b7eaa9d664e145bc0f2a63df2
[ "MIT" ]
null
null
null
code/example1.py
ThomasHuke/knowPython
0a9d3c224b36416b7eaa9d664e145bc0f2a63df2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- def file(): for x, y in [[1, 3], [1, 4]]: print('x , y ', x, y) file() # x , y 1 3 # x , y 1 4 print([x + x for x in range(1, 12)])
14.071429
36
0.436548
def file(): for x, y in [[1, 3], [1, 4]]: print('x , y ', x, y) file() print([x + x for x in range(1, 12)])
true
true
1c467e126304bcb3bd6860b417e50dc19d57f51d
12,032
py
Python
dpmModule/jobs/cannonshooter.py
Jeongwoo-KGI/maplestory_dpm_calc
c474419146e377a05a724e9975a047649b7effa7
[ "MIT" ]
2
2020-12-18T17:02:21.000Z
2021-02-01T04:16:33.000Z
dpmModule/jobs/cannonshooter.py
Jeongwoo-KGI/maplestory_dpm_calc
c474419146e377a05a724e9975a047649b7effa7
[ "MIT" ]
null
null
null
dpmModule/jobs/cannonshooter.py
Jeongwoo-KGI/maplestory_dpm_calc
c474419146e377a05a724e9975a047649b7effa7
[ "MIT" ]
null
null
null
from ..kernel import core from ..character import characterKernel as ck from ..status.ability import Ability_tool from ..execution.rules import RuleSet, ConditionRule from . import globalSkill from .jobbranch import pirates from .jobclass import adventurer from . import jobutils from math import ceil from typing import...
31.170984
85
0.499668
from ..kernel import core from ..character import characterKernel as ck from ..status.ability import Ability_tool from ..execution.rules import RuleSet, ConditionRule from . import globalSkill from .jobbranch import pirates from .jobclass import adventurer from . import jobutils from math import ceil from typing import...
true
true
1c4680a5dd30a51494fef98f8426f5bccd4e47a7
1,264
py
Python
frontend/tool/a.py
yinzhangyue/PDF_tool
ff1c689478e0d40370724ad88da78ef8bd0bf3d1
[ "MIT" ]
3
2021-12-07T06:19:12.000Z
2022-03-30T13:45:34.000Z
frontend/tool/a.py
yinzhangyue/PDF_tool
ff1c689478e0d40370724ad88da78ef8bd0bf3d1
[ "MIT" ]
null
null
null
frontend/tool/a.py
yinzhangyue/PDF_tool
ff1c689478e0d40370724ad88da78ef8bd0bf3d1
[ "MIT" ]
2
2022-02-27T16:15:05.000Z
2022-03-19T07:35:38.000Z
# -*- coding: utf-8 -*- import numpy as np import cv2.cv2 as cv2 from numpy import float32 if __name__ == "__main__": # Read image img = cv2.imread("./c73.png") a = np.array([[ 1458.4429931640625, 145.316650390625, 1554.5313720703125, 176.924560546875, 1 ]], dtype=float...
28.727273
78
0.492089
import numpy as np import cv2.cv2 as cv2 from numpy import float32 if __name__ == "__main__": img = cv2.imread("./c73.png") a = np.array([[ 1458.4429931640625, 145.316650390625, 1554.5313720703125, 176.924560546875, 1 ]], dtype=float32) b = np.array([[ 173...
true
true
1c4680c58421b1abc945fead1a676d7387f98adb
3,191
py
Python
tests/test_roi_pooling.py
scilicet64/keras-spp
23da20561fe92c585208af9bf3e0ef8f51bc5dcc
[ "MIT" ]
null
null
null
tests/test_roi_pooling.py
scilicet64/keras-spp
23da20561fe92c585208af9bf3e0ef8f51bc5dcc
[ "MIT" ]
null
null
null
tests/test_roi_pooling.py
scilicet64/keras-spp
23da20561fe92c585208af9bf3e0ef8f51bc5dcc
[ "MIT" ]
null
null
null
import keras.backend as K import numpy as np from keras.layers import Input from keras.models import Model from spp.RoiPooling import RoiPooling dim_ordering = K.image_data_format() assert dim_ordering in {'channels_last','channels_first'}, 'dim_ordering must be in {channels_last,channels_first}' pooling_regions = [...
40.392405
115
0.596365
import keras.backend as K import numpy as np from keras.layers import Input from keras.models import Model from spp.RoiPooling import RoiPooling dim_ordering = K.image_data_format() assert dim_ordering in {'channels_last','channels_first'}, 'dim_ordering must be in {channels_last,channels_first}' pooling_regions = [...
true
true
1c46810f9df9a321d810630eb9522ae322eae9a2
2,102
py
Python
tests/testproject/testapp/models.py
allenling/django-easy-fixtures
cf6e0abff83565e5bf106e388922a31feb288ee9
[ "MIT" ]
2
2016-09-19T12:53:44.000Z
2016-09-25T05:14:15.000Z
tests/testproject/testapp/models.py
allenling/django-easy-fixture
cf6e0abff83565e5bf106e388922a31feb288ee9
[ "MIT" ]
null
null
null
tests/testproject/testapp/models.py
allenling/django-easy-fixture
cf6e0abff83565e5bf106e388922a31feb288ee9
[ "MIT" ]
null
null
null
from django.db import models class TestAbstractModel(models.Model): postive_integer = models.PositiveIntegerField() postive_small_integer = models.PositiveSmallIntegerField() file_path_field = models.FilePathField() float_field = models.FloatField() ip = models.GenericIPAddressField() slug_fie...
33.903226
122
0.744053
from django.db import models class TestAbstractModel(models.Model): postive_integer = models.PositiveIntegerField() postive_small_integer = models.PositiveSmallIntegerField() file_path_field = models.FilePathField() float_field = models.FloatField() ip = models.GenericIPAddressField() slug_fie...
true
true
1c4681245bdc3eedb5787d6a299414db6b6e6a58
4,237
py
Python
ch05/timsort.py
laszlokiraly/LearningAlgorithms
032a3cc409546619cf41220821d081cde54bbcce
[ "MIT" ]
74
2021-05-06T22:03:18.000Z
2022-03-25T04:37:51.000Z
ch05/timsort.py
laszlokiraly/LearningAlgorithms
032a3cc409546619cf41220821d081cde54bbcce
[ "MIT" ]
null
null
null
ch05/timsort.py
laszlokiraly/LearningAlgorithms
032a3cc409546619cf41220821d081cde54bbcce
[ "MIT" ]
19
2021-07-16T11:42:00.000Z
2022-03-22T00:25:49.000Z
""" Simplistic non-optimized, native Python implementation showing the mechanics of TimSort. This code is designed to show how TimSort uses Insertion Sort and Merge Sort as its constituent building blocks. It is not the actual sorting algorithm, because of extra complexities that optimize this base algorithm even furt...
32.098485
93
0.621194
import timeit from algs.table import DataTable def merge(A, lo, mid, hi, aux): aux[lo:hi+1] = A[lo:hi+1] left = lo right = mid + 1 for i in range(lo, hi+1): if left > mid: A[i] = aux[right] right += 1 elif right > hi: A[i] = aux[left] lef...
true
true
1c4681db212aeac98d706be2f3405b80e5366d54
8,460
py
Python
examples/create_freight_shipment.py
shivam1111/python-fedex
597a6c1afa233a62dd03667c515372227ae16431
[ "BSD-3-Clause" ]
null
null
null
examples/create_freight_shipment.py
shivam1111/python-fedex
597a6c1afa233a62dd03667c515372227ae16431
[ "BSD-3-Clause" ]
null
null
null
examples/create_freight_shipment.py
shivam1111/python-fedex
597a6c1afa233a62dd03667c515372227ae16431
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ This example shows how to create shipments. The variables populated below represents the minimum required values. You will need to fill all of these, or risk seeing a SchemaValidationError exception thrown. Near the bottom of the module, you'll see some different ways to handle the label data...
47.52809
157
0.827305
""" This example shows how to create shipments. The variables populated below represents the minimum required values. You will need to fill all of these, or risk seeing a SchemaValidationError exception thrown. Near the bottom of the module, you'll see some different ways to handle the label data that is returned wit...
false
true
1c46821305f403db023274e47c9b4a630caf9c77
4,807
py
Python
src/azure-cli/azure/cli/command_modules/search/tests/latest/test_shared_private_link_resource.py
ZengTaoxu/azure-cli
6be96de450da5ac9f07aafb22dd69880bea04792
[ "MIT" ]
4
2022-01-25T07:33:15.000Z
2022-03-24T05:15:13.000Z
src/azure-cli/azure/cli/command_modules/search/tests/latest/test_shared_private_link_resource.py
ZengTaoxu/azure-cli
6be96de450da5ac9f07aafb22dd69880bea04792
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/search/tests/latest/test_shared_private_link_resource.py
ZengTaoxu/azure-cli
6be96de450da5ac9f07aafb22dd69880bea04792
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
66.763889
308
0.68317
from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer, StorageAccountPreparer import unittest class AzureSearchServicesTests(ScenarioTest): @ResourceGroupPreparer(name_prefix='azure_search_cli_test') @StorageAccountPreparer(name_prefix='satest', kind='StorageV2') def test_shared_private_...
true
true
1c4682ad9a9b67315be210907787728e1c713657
61,319
py
Python
tests/integration_tests/core_tests.py
akashkj/superset
8a157d8446780e4e71550405cbedde8a4d64d92a
[ "Apache-2.0" ]
1
2022-01-23T17:08:13.000Z
2022-01-23T17:08:13.000Z
tests/integration_tests/core_tests.py
akashkj/superset
8a157d8446780e4e71550405cbedde8a4d64d92a
[ "Apache-2.0" ]
19
2022-01-29T03:16:22.000Z
2022-03-25T23:50:16.000Z
tests/integration_tests/core_tests.py
akashkj/superset
8a157d8446780e4e71550405cbedde8a4d64d92a
[ "Apache-2.0" ]
1
2022-02-02T19:59:50.000Z
2022-02-02T19:59:50.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...
38.228803
103
0.606566
import csv import datetime import doctest import html import io import json import logging from typing import Dict, List from urllib.parse import quote import superset.utils.database from tests.integration_tests.fixtures.birth_names_dashboard import ( load_birth_names_dashboard_with_slices, lo...
true
true
1c4683a2b04793b6517763584a3577a7502613a2
620
py
Python
adv/pia.py
mattkw/dl
45bfc28ad9ff827045a3734730deb893a2436c09
[ "Apache-2.0" ]
null
null
null
adv/pia.py
mattkw/dl
45bfc28ad9ff827045a3734730deb893a2436c09
[ "Apache-2.0" ]
null
null
null
adv/pia.py
mattkw/dl
45bfc28ad9ff827045a3734730deb893a2436c09
[ "Apache-2.0" ]
null
null
null
import adv_test from adv import * from module import energy def module(): return Pia class Pia(Adv): def pre(this): if this.condition('energy'): this.init = this.c_init def init(this): this.conf['acl'] = """ `s1, seq=5 and cancel `s3, seq=5 and cancel...
16.756757
45
0.485484
import adv_test from adv import * from module import energy def module(): return Pia class Pia(Adv): def pre(this): if this.condition('energy'): this.init = this.c_init def init(this): this.conf['acl'] = """ `s1, seq=5 and cancel `s3, seq=5 and cancel...
true
true
1c4683a648d2c1ac36ba542e426f889e72d0b473
1,925
py
Python
medexbot/spiders/dosage_form_spider.py
ahmedshahriar/bd-medicine-scraper
ea97d929fc9cdcbdde2602827cdc3d12709e2ca9
[ "Apache-2.0" ]
1
2022-03-17T03:02:49.000Z
2022-03-17T03:02:49.000Z
medexbot/spiders/dosage_form_spider.py
ahmedshahriar/bd-medicine-scraper
ea97d929fc9cdcbdde2602827cdc3d12709e2ca9
[ "Apache-2.0" ]
null
null
null
medexbot/spiders/dosage_form_spider.py
ahmedshahriar/bd-medicine-scraper
ea97d929fc9cdcbdde2602827cdc3d12709e2ca9
[ "Apache-2.0" ]
null
null
null
import re import scrapy from django.utils.text import slugify from medexbot.items import DosageFormItem class DosageFormSpider(scrapy.Spider): name = "dosage" allowed_domains = ['medex.com.bd'] start_urls = ['https://medex.com.bd/dosage-forms'] def parse(self, response, **kwargs): for dosag...
48.125
120
0.628571
import re import scrapy from django.utils.text import slugify from medexbot.items import DosageFormItem class DosageFormSpider(scrapy.Spider): name = "dosage" allowed_domains = ['medex.com.bd'] start_urls = ['https://medex.com.bd/dosage-forms'] def parse(self, response, **kwargs): for dosag...
true
true
1c4684004d467ca7f02daba2bde3f7b30970341c
2,502
py
Python
velkoz_web_packages/objects_base/db_orm_models_base.py
MatthewTe/velkoz-web-data-extraction-library
d6acb8bd86106a6ab754be99488436eb37037e54
[ "MIT" ]
null
null
null
velkoz_web_packages/objects_base/db_orm_models_base.py
MatthewTe/velkoz-web-data-extraction-library
d6acb8bd86106a6ab754be99488436eb37037e54
[ "MIT" ]
2
2021-03-31T20:12:25.000Z
2021-12-13T20:48:22.000Z
velkoz_web_packages/objects_base/db_orm_models_base.py
MatthewTe/velkoz-web-data-extraction-library
d6acb8bd86106a6ab754be99488436eb37037e54
[ "MIT" ]
null
null
null
# Importing the database orm management packages: from sqlalchemy import Column, Integer, String, Text, DateTime, LargeBinary from sqlalchemy.ext.declarative import declarative_base # Creating the declarative base object used to create base database orm models: Base = declarative_base() class BaseWebPageResponseModel...
36.26087
92
0.71303
from sqlalchemy import Column, Integer, String, Text, DateTime, LargeBinary from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class BaseWebPageResponseModel(Base): __tablename__ = "default_web_obj_tbl" date = Column( "date_initialized", DateTime, ...
true
true
1c46857cccde346eb4a78768c8061b11e696ca88
4,379
py
Python
contrib/seeds/generate-seeds.py
behi11/vectorium-plus
fb9c68db8e2450c949d75bff9e737562f125be27
[ "MIT" ]
5
2019-07-09T02:06:22.000Z
2021-08-08T18:48:03.000Z
contrib/seeds/generate-seeds.py
behi11/vectorium-plus
fb9c68db8e2450c949d75bff9e737562f125be27
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
behi11/vectorium-plus
fb9c68db8e2450c949d75bff9e737562f125be27
[ "MIT" ]
6
2019-07-09T02:02:14.000Z
2021-08-06T16:01:01.000Z
#!/usr/bin/python # Copyright (c) 2014 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 directory tha...
31.503597
98
0.582553
from __future__ import print_function, division from base64 import b32decode from binascii import a2b_hex import sys, os import re pchIPv4 = bytearray([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff]) pchOnionCat = bytearray([0xFD,0x87,0xD8,0x7E,0xEB,0x43]) def name_to_ipv6(addr): if len(addr)>6 and addr.endswith...
true
true
1c468609ae8810d5516216a769cb965d04a1942a
3,389
py
Python
contrib/devtools/optimize-pngs.py
xraymemory/manna
b2f118bdce9b6a128ef171798ab3fac483517afa
[ "MIT" ]
null
null
null
contrib/devtools/optimize-pngs.py
xraymemory/manna
b2f118bdce9b6a128ef171798ab3fac483517afa
[ "MIT" ]
null
null
null
contrib/devtools/optimize-pngs.py
xraymemory/manna
b2f118bdce9b6a128ef171798ab3fac483517afa
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2014-2016 The manna Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script every time you change one of the png files. Using pngcrush, it will optimize the png file...
42.898734
193
0.623488
''' Run this script every time you change one of the png files. Using pngcrush, it will optimize the png files, remove various color profiles, remove ancillary chunks (alla) and text chunks (text). #pngcrush -brute -ow -rem gAMA -rem cHRM -rem iCCP -rem sRGB -rem alla -rem text ''' import os import sys import subpr...
false
true
1c46866d970d2c1b41f7f0473196477642241b48
5,200
py
Python
src/python/dxpy/scripts/dx_reads_to_fastq.py
psung/dx-toolkit
f3a430c5e24184215eb4a9883a179edf07bfa08b
[ "Apache-2.0" ]
null
null
null
src/python/dxpy/scripts/dx_reads_to_fastq.py
psung/dx-toolkit
f3a430c5e24184215eb4a9883a179edf07bfa08b
[ "Apache-2.0" ]
null
null
null
src/python/dxpy/scripts/dx_reads_to_fastq.py
psung/dx-toolkit
f3a430c5e24184215eb4a9883a179edf07bfa08b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2013-2014 DNAnexus, Inc. # # This file is part of dx-toolkit (DNAnexus platform client libraries). # # 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 a...
38.518519
194
0.603846
import sys, argparse import dxpy arg_parser = argparse.ArgumentParser(description="Download a reads table into a FASTQ file") arg_parser.add_argument("reads_table", help="ID of the reads GTable object") arg_parser.add_argument("--output", help="Name of the output file", required=True) arg_parser.add_...
true
true
1c468a5f559d58aac8a33d2176a44891f8e19041
88
py
Python
hibiapi/api/tieba/net.py
cleoold/HibiAPI
d997c5a2bf3cdbccc758d7036447e443c6b6f0ff
[ "Apache-2.0" ]
394
2020-12-19T05:51:02.000Z
2022-03-30T07:44:42.000Z
hibiapi/api/tieba/net.py
cleoold/HibiAPI
d997c5a2bf3cdbccc758d7036447e443c6b6f0ff
[ "Apache-2.0" ]
208
2020-12-20T14:47:31.000Z
2022-03-31T11:11:00.000Z
hibiapi/api/tieba/net.py
cleoold/HibiAPI
d997c5a2bf3cdbccc758d7036447e443c6b6f0ff
[ "Apache-2.0" ]
93
2020-12-29T08:19:04.000Z
2022-03-30T06:08:16.000Z
from hibiapi.utils.net import BaseNetClient class NetRequest(BaseNetClient): pass
14.666667
43
0.795455
from hibiapi.utils.net import BaseNetClient class NetRequest(BaseNetClient): pass
true
true
1c468a5f5e92b0751d052266b0d99570a56f5837
2,539
py
Python
Normal_Equation/prep.py
Globe-Eater/Geographic-Duplicate-Detection-
ec467fc41cb456959da87fd913465dc9daa27d80
[ "MIT" ]
null
null
null
Normal_Equation/prep.py
Globe-Eater/Geographic-Duplicate-Detection-
ec467fc41cb456959da87fd913465dc9daa27d80
[ "MIT" ]
null
null
null
Normal_Equation/prep.py
Globe-Eater/Geographic-Duplicate-Detection-
ec467fc41cb456959da87fd913465dc9daa27d80
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd def start(): '''This method is designed to read input in from the user.''' df = pd.read_excel("datasets/unprepared_data/" + input("Please enter the path for the data:")) return df def fill_empty(df): '''fill_empty takes the arugment df (dataframe) This should...
34.310811
98
0.633714
import numpy as np import pandas as pd def start(): df = pd.read_excel("datasets/unprepared_data/" + input("Please enter the path for the data:")) return df def fill_empty(df): df = df.replace(r'^\s*$', np.nan, regex=True) df = df.fillna(value="No Data") return df def check_numbers(lat, long): ...
true
true
1c468cbad038e07db05af79f02c42510983d4d81
5,341
py
Python
sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py
Carlangueitor/pulumi-kubernetes
859ccaaeb8291de49128dbc202fbac1358b2a25a
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py
Carlangueitor/pulumi-kubernetes
859ccaaeb8291de49128dbc202fbac1358b2a25a
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py
Carlangueitor/pulumi-kubernetes
859ccaaeb8291de49128dbc202fbac1358b2a25a
[ "Apache-2.0" ]
null
null
null
# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings from typing import Optional import pulumi import pulumi.runtime from pulumi import Input, ResourceOptions from ... import tables, version ...
42.728
135
0.683767
import warnings from typing import Optional import pulumi import pulumi.runtime from pulumi import Input, ResourceOptions from ... import tables, version class ClusterRole(pulumi.CustomResource): apiVersion: pulumi.Output[str] kind: pulumi.Output[str] aggregation_rule: pulumi.Output[dict] met...
true
true
1c468d4a46a3aba4597155860cda3864d9364bfc
3,145
py
Python
test/functional/mining_getblocktemplate_longpoll.py
denofdevscrypto/Topaz2.0
34ca0e644a6b5d9524a06156568fc11c89dcffed
[ "MIT" ]
null
null
null
test/functional/mining_getblocktemplate_longpoll.py
denofdevscrypto/Topaz2.0
34ca0e644a6b5d9524a06156568fc11c89dcffed
[ "MIT" ]
null
null
null
test/functional/mining_getblocktemplate_longpoll.py
denofdevscrypto/Topaz2.0
34ca0e644a6b5d9524a06156568fc11c89dcffed
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 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 longpolling with getblocktemplate.""" from decimal import Decimal from test_framework.test_frame...
42.5
112
0.686169
from decimal import Decimal from test_framework.test_framework import TOPAZTestFramework from test_framework.util import get_rpc_proxy, random_transaction import threading class LongpollThread(threading.Thread): def __init__(self, node): threading.Thread.__init__(self) templat = nod...
true
true
1c468d8b2783656346e7be58ba7b95f781ed035f
4,896
py
Python
2019_noe_deep_boltzmann_tfv2/deep_boltzmann/networks/noninvertible.py
zierenberg/machine_learning_muca
6fcca12ccda7680ea4cb0e1f10bb53a68b6b0a02
[ "CC0-1.0" ]
null
null
null
2019_noe_deep_boltzmann_tfv2/deep_boltzmann/networks/noninvertible.py
zierenberg/machine_learning_muca
6fcca12ccda7680ea4cb0e1f10bb53a68b6b0a02
[ "CC0-1.0" ]
null
null
null
2019_noe_deep_boltzmann_tfv2/deep_boltzmann/networks/noninvertible.py
zierenberg/machine_learning_muca
6fcca12ccda7680ea4cb0e1f10bb53a68b6b0a02
[ "CC0-1.0" ]
null
null
null
import keras import tensorflow as tf import numpy as np from deep_boltzmann.networks import nonlinear_transform from deep_boltzmann.networks import connect as _connect class NormalTransformer(object): def __init__(self, mu_layers, sigma_layers): self.mu_layers = mu_layers self.sigma_layers = sigm...
39.168
145
0.62643
import keras import tensorflow as tf import numpy as np from deep_boltzmann.networks import nonlinear_transform from deep_boltzmann.networks import connect as _connect class NormalTransformer(object): def __init__(self, mu_layers, sigma_layers): self.mu_layers = mu_layers self.sigma_layers = sigm...
true
true
1c468d98816f3a6edf4390c586235b73703529fd
2,298
py
Python
src/07 - Blurring And Smoothing/01-img_analysis.py
hritik5102/Awesome-Computer-Vision-Guide
005cd96f6d6c7dacdf1b9b5f5bf56cae3d6cea18
[ "MIT" ]
null
null
null
src/07 - Blurring And Smoothing/01-img_analysis.py
hritik5102/Awesome-Computer-Vision-Guide
005cd96f6d6c7dacdf1b9b5f5bf56cae3d6cea18
[ "MIT" ]
null
null
null
src/07 - Blurring And Smoothing/01-img_analysis.py
hritik5102/Awesome-Computer-Vision-Guide
005cd96f6d6c7dacdf1b9b5f5bf56cae3d6cea18
[ "MIT" ]
null
null
null
import cv2 import numpy as np def nothing(x): pass #img = cv2.imread('img.jpeg',-1) cap=cv2.VideoCapture(0) cv2.namedWindow('image') cv2.resizeWindow('image',600,350) #Creating trackbar cv2.createTrackbar('lh','image',0,255,nothing) cv2.createTrackbar('uh','image',0,255,nothing) cv2.createTrackbar('ls','image'...
21.679245
64
0.64839
import cv2 import numpy as np def nothing(x): pass cap=cv2.VideoCapture(0) cv2.namedWindow('image') cv2.resizeWindow('image',600,350) cv2.createTrackbar('lh','image',0,255,nothing) cv2.createTrackbar('uh','image',0,255,nothing) cv2.createTrackbar('ls','image',0,255,nothing) cv2.createTrackbar('us','image',0,...
true
true
1c468dca7335ecf4d19068d904ca06e6efdee798
18,712
py
Python
leanerp/helpdesk/management/commands/get_email.py
seLain/Leaf
f02e15576071429a29f76a06328d024b58a2d69e
[ "Apache-2.0" ]
null
null
null
leanerp/helpdesk/management/commands/get_email.py
seLain/Leaf
f02e15576071429a29f76a06328d024b58a2d69e
[ "Apache-2.0" ]
6
2018-02-20T13:59:07.000Z
2018-03-06T17:35:41.000Z
leanerp/helpdesk/management/commands/get_email.py
seLain/Leaf
f02e15576071429a29f76a06328d024b58a2d69e
[ "Apache-2.0" ]
1
2018-03-06T17:28:07.000Z
2018-03-06T17:28:07.000Z
#!/usr/bin/python """ Jutda Helpdesk - A Django powered ticket tracker for small enterprise. (c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details. scripts/get_email.py - Designed to be run from cron, this script checks the POP and IMAP boxes, or a local mailbox directory, ...
38.502058
125
0.595981
from __future__ import unicode_literals from datetime import timedelta import email import imaplib import mimetypes from os import listdir, unlink from os.path import isfile, join import poplib import re import socket from time import ctime from email_reply_parser import EmailReplyParser from django.core.files.base...
true
true
1c468e275b37e8f12a979296a79fb4db9882c0cd
838
py
Python
lib/colors.py
Saveurian/Cleartext_Scanner
c54828fc6321b8549245f7914b4749b9114df7e0
[ "Unlicense" ]
null
null
null
lib/colors.py
Saveurian/Cleartext_Scanner
c54828fc6321b8549245f7914b4749b9114df7e0
[ "Unlicense" ]
null
null
null
lib/colors.py
Saveurian/Cleartext_Scanner
c54828fc6321b8549245f7914b4749b9114df7e0
[ "Unlicense" ]
null
null
null
class Colors: """ Provides ANSI terminal colors helping the eyes identify potential clear-text passwords. """ NONE = "\033[0m" RED = "\033[31m" GREEN = "\033[32m" LIGHT_GRAY = "\033[37m" LIGHT_BLUE = "\033[34m" YELLOW = "\033[33m" def __init__(self): return # Re...
23.942857
59
0.608592
class Colors: NONE = "\033[0m" RED = "\033[31m" GREEN = "\033[32m" LIGHT_GRAY = "\033[37m" LIGHT_BLUE = "\033[34m" YELLOW = "\033[33m" def __init__(self): return def red(self, text): return self.RED + text + self.NONE def green(self, text): return...
true
true
1c468f73f1203314d42997ed056bf5f884a64d3b
2,065
py
Python
pytorch/poly/polygonize.py
IUResearchApplications/BuildingFootprints
97dc2ba9303bb5fdfd1c357c94b9e1e903a52ebe
[ "MIT" ]
2
2020-05-01T15:41:14.000Z
2020-05-27T20:49:09.000Z
pytorch/poly/polygonize.py
IUResearchApplications/BuildingFootprints
97dc2ba9303bb5fdfd1c357c94b9e1e903a52ebe
[ "MIT" ]
null
null
null
pytorch/poly/polygonize.py
IUResearchApplications/BuildingFootprints
97dc2ba9303bb5fdfd1c357c94b9e1e903a52ebe
[ "MIT" ]
1
2020-05-01T15:41:15.000Z
2020-05-01T15:41:15.000Z
import sys import subprocess import os import ogr import glob from setup import setup_run def call_gdal_polygonize(input_file, output_file): # If the file already exists, delete it first or additional polygons will be saved to the # files if this is ran more than once. if os.path.isfile(output_file): ...
30.820896
94
0.678935
import sys import subprocess import os import ogr import glob from setup import setup_run def call_gdal_polygonize(input_file, output_file): if os.path.isfile(output_file): os.remove(output_file) subprocess.call(['gdal_polygonize.py', input_file, '-b', '1', '-q', '-f','GeoJSON', ...
true
true
1c46914d8a6cc3062ee889cf79e110b85a8762f3
938
py
Python
pycrypt.py
o0void0o/pycrypt
46ea779f2de983a9d6caa974a3b932590af5c156
[ "MIT" ]
null
null
null
pycrypt.py
o0void0o/pycrypt
46ea779f2de983a9d6caa974a3b932590af5c156
[ "MIT" ]
null
null
null
pycrypt.py
o0void0o/pycrypt
46ea779f2de983a9d6caa974a3b932590af5c156
[ "MIT" ]
null
null
null
from Crypto.Random import get_random_bytes from Crypto.Cipher import AES key = get_random_bytes(32) # 32 bytes * 8 = 256 bits (1 byte = 8 bits) print(key) output_file = 'enc/encrypted.bin' file = open("supernoooichFile.adoc", "rb") data = file.read(-1) cipher = AES.new(key, AES.MODE_CFB) # CFB mode ciphered_data ...
24.684211
103
0.744136
from Crypto.Random import get_random_bytes from Crypto.Cipher import AES key = get_random_bytes(32) print(key) output_file = 'enc/encrypted.bin' file = open("supernoooichFile.adoc", "rb") data = file.read(-1) cipher = AES.new(key, AES.MODE_CFB) ciphered_data = cipher.encrypt(data) file_out = open(output_file,...
true
true
1c4691903b60395ec59f186203e784ee1996ad0a
1,966
py
Python
ex35.py
Zinmarlwin711/python-exercises
361cb426a8bc03760906e25b6cb6a4a458260bfc
[ "MIT" ]
null
null
null
ex35.py
Zinmarlwin711/python-exercises
361cb426a8bc03760906e25b6cb6a4a458260bfc
[ "MIT" ]
null
null
null
ex35.py
Zinmarlwin711/python-exercises
361cb426a8bc03760906e25b6cb6a4a458260bfc
[ "MIT" ]
null
null
null
from sys import exit def gold_room(): print("This room is full of gold. How much do you take?") choice = input("> ") if "0" in choice or "1" in choice: how_much = int (choice) else: dead("Man, learn to type a number.") if how_much < 50: print("Nice, you're not greedy, y...
26.931507
65
0.571719
from sys import exit def gold_room(): print("This room is full of gold. How much do you take?") choice = input("> ") if "0" in choice or "1" in choice: how_much = int (choice) else: dead("Man, learn to type a number.") if how_much < 50: print("Nice, you're not greedy, y...
true
true
1c4691faed7347e61b1a3bcb8447db2c3d16ec2e
801
py
Python
DataMining/Stats/coord_bounds.py
CKPalk/SeattleCrime_DM
0bfbf597ef7c4e87a4030e1c03f62b2f4c9f3c5b
[ "MIT" ]
null
null
null
DataMining/Stats/coord_bounds.py
CKPalk/SeattleCrime_DM
0bfbf597ef7c4e87a4030e1c03f62b2f4c9f3c5b
[ "MIT" ]
null
null
null
DataMining/Stats/coord_bounds.py
CKPalk/SeattleCrime_DM
0bfbf597ef7c4e87a4030e1c03f62b2f4c9f3c5b
[ "MIT" ]
null
null
null
''' Work of Cameron Palk ''' import sys import pandas as pd def main( argv ): try: csv_filepath = argv[ 0 ] output_filepath = argv[ 1 ] except IndexError: print( "Error, usage: \"python3 coord_bounds.py <CSV> <output_file>\"" ) return training_data = pd.read_csv( csv_filepath ) training_data[ 'clean_...
23.558824
95
0.66417
import sys import pandas as pd def main( argv ): try: csv_filepath = argv[ 0 ] output_filepath = argv[ 1 ] except IndexError: print( "Error, usage: \"python3 coord_bounds.py <CSV> <output_file>\"" ) return training_data = pd.read_csv( csv_filepath ) training_data[ 'clean_Latitude' ] = training_data[...
true
true
1c4691ff67ef169df40aa3167b4cbb97f94211d2
1,425
py
Python
dufi/gui/boxes/ttkstyles.py
Shura1oplot/dufi
c9c25524020e57d3670c298acca305900b6490e7
[ "MIT" ]
null
null
null
dufi/gui/boxes/ttkstyles.py
Shura1oplot/dufi
c9c25524020e57d3670c298acca305900b6490e7
[ "MIT" ]
null
null
null
dufi/gui/boxes/ttkstyles.py
Shura1oplot/dufi
c9c25524020e57d3670c298acca305900b6490e7
[ "MIT" ]
null
null
null
# [SublimeLinter @python:3] # -*- coding: utf-8 -*- from __future__ import unicode_literals, division, print_function, absolute_import try: from tkinter import ttk from tkinter import font as tk_font except ImportError: import ttk import tkFont as tk_font _ttk_styles = set() _ttk_style_customizers =...
25.909091
86
0.716491
from __future__ import unicode_literals, division, print_function, absolute_import try: from tkinter import ttk from tkinter import font as tk_font except ImportError: import ttk import tkFont as tk_font _ttk_styles = set() _ttk_style_customizers = set() def create_ttk_styles(): for func in ...
true
true
1c4692b085f29de50a0f9046a066367f90b43390
3,641
py
Python
learn/cnn/extractCNNFeaturesOnRegions.py
jccaicedo/localization-agent
d280acf355307b74e68dca9ec80ab293f0d18642
[ "MIT" ]
8
2016-11-20T19:43:45.000Z
2020-12-09T04:58:05.000Z
learn/cnn/extractCNNFeaturesOnRegions.py
jccaicedo/localization-agent
d280acf355307b74e68dca9ec80ab293f0d18642
[ "MIT" ]
45
2015-05-04T20:41:05.000Z
2017-07-17T12:04:13.000Z
learn/cnn/extractCNNFeaturesOnRegions.py
jccaicedo/localization-agent
d280acf355307b74e68dca9ec80ab293f0d18642
[ "MIT" ]
9
2016-11-20T19:43:46.000Z
2020-09-01T21:01:54.000Z
# https://github.com/UCB-ICSI-Vision-Group/decaf-release/wiki/imagenet import os, sys from utils import tic, toc import numpy as np import time ################################## # Parameter checking ################################# if len(sys.argv) < 6: print 'Use: extractCNNFeatures.py bboxes imgsDir modelFile pr...
30.855932
122
0.632519
import os, sys from utils import tic, toc import numpy as np import time
false
true
1c4692d5cb27e6291a7c4ae6d099c67074bc40ee
5,735
py
Python
src/web-application/app.py
hitesh009911/thrain
2535cddb8908772cbac3ba9fed194623aa9334d6
[ "MIT" ]
null
null
null
src/web-application/app.py
hitesh009911/thrain
2535cddb8908772cbac3ba9fed194623aa9334d6
[ "MIT" ]
null
null
null
src/web-application/app.py
hitesh009911/thrain
2535cddb8908772cbac3ba9fed194623aa9334d6
[ "MIT" ]
null
null
null
import os import os.path from flask import Flask, request, redirect, url_for, render_template, session, send_from_directory, send_file from werkzeug.utils import secure_filename import DH import pickle import random UPLOAD_FOLDER = './media/text-files/' UPLOAD_KEY = './media/public-keys/' ALLOWED_EXTENSIONS = set(['tx...
33.735294
109
0.6551
import os import os.path from flask import Flask, request, redirect, url_for, render_template, session, send_from_directory, send_file from werkzeug.utils import secure_filename import DH import pickle import random UPLOAD_FOLDER = './media/text-files/' UPLOAD_KEY = './media/public-keys/' ALLOWED_EXTENSIONS = set(['tx...
true
true
1c4694493a461d612c26de35ae341c0d3a012bea
4,594
py
Python
plasmapy/utils/roman/tests/test_roman.py
KhalilBryant/PlasmaPy
05f7cb60348c7048fb3b8fbaf25985f2fba47fb7
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
1
2020-02-14T16:35:02.000Z
2020-02-14T16:35:02.000Z
plasmapy/utils/roman/tests/test_roman.py
KhalilBryant/PlasmaPy
05f7cb60348c7048fb3b8fbaf25985f2fba47fb7
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plasmapy/utils/roman/tests/test_roman.py
KhalilBryant/PlasmaPy
05f7cb60348c7048fb3b8fbaf25985f2fba47fb7
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
import pytest import numpy as np import plasmapy.utils.roman as roman from plasmapy.utils.pytest_helpers import run_test ints_and_roman_numerals = [ (1, "I"), (2, "II"), (3, "III"), (4, "IV"), (5, "V"), (6, "VI"), (7, "VII"), (8, "VIII"), (9, "IX"), (10, "X"), (11, "XI"), ...
22.300971
86
0.529822
import pytest import numpy as np import plasmapy.utils.roman as roman from plasmapy.utils.pytest_helpers import run_test ints_and_roman_numerals = [ (1, "I"), (2, "II"), (3, "III"), (4, "IV"), (5, "V"), (6, "VI"), (7, "VII"), (8, "VIII"), (9, "IX"), (10, "X"), (11, "XI"), ...
true
true
1c46946534565ded99af86b7fdb56b8971f0ef04
3,778
py
Python
apps/Todo/tests/TodoModelTests.py
Eduardo-RFarias/DjangoReactBackend
b8183ea4b24be5c0aa557ffbc79fc23e0777b8ad
[ "MIT" ]
null
null
null
apps/Todo/tests/TodoModelTests.py
Eduardo-RFarias/DjangoReactBackend
b8183ea4b24be5c0aa557ffbc79fc23e0777b8ad
[ "MIT" ]
null
null
null
apps/Todo/tests/TodoModelTests.py
Eduardo-RFarias/DjangoReactBackend
b8183ea4b24be5c0aa557ffbc79fc23e0777b8ad
[ "MIT" ]
null
null
null
from apps.User.models import User from django.test import RequestFactory from django.utils import timezone from rest_framework import status from ..models import Todo from ..serializers import TodoSerializer from .BaseAuthenticatedTest import BaseAuthenticatedTest name = "Test todo" description = "This is an auto gen...
34.345455
87
0.647697
from apps.User.models import User from django.test import RequestFactory from django.utils import timezone from rest_framework import status from ..models import Todo from ..serializers import TodoSerializer from .BaseAuthenticatedTest import BaseAuthenticatedTest name = "Test todo" description = "This is an auto gen...
true
true
1c469501b5b017b977afe49a3917b281287e2777
1,611
py
Python
src/web/monitorforms/heroku-dyno-status-single/__init__.py
anderson-attilio/runbook
7b68622f75ef09f654046f0394540025f3ee7445
[ "Apache-2.0" ]
155
2015-07-15T14:06:06.000Z
2021-03-31T01:41:44.000Z
src/web/monitorforms/heroku-dyno-status-single/__init__.py
anderson-attilio/runbook
7b68622f75ef09f654046f0394540025f3ee7445
[ "Apache-2.0" ]
78
2015-01-01T05:49:20.000Z
2015-07-12T01:48:44.000Z
src/web/monitorforms/heroku-dyno-status-single/__init__.py
Runbook/runbook
7b68622f75ef09f654046f0394540025f3ee7445
[ "Apache-2.0" ]
36
2015-07-20T22:42:23.000Z
2021-12-05T10:00:44.000Z
###################################################################### # Cloud Routes Web Application # ------------------------------------------------------------------- # Health Check - Forms Class ###################################################################### from wtforms import TextField from wtforms.vali...
38.357143
236
0.590317
true
true
1c469515024b2146bc7f69544490c4e70ded4e10
15,622
py
Python
tests/admin_checks/tests.py
PirosB3/django
9b729ddd8f2040722971ccfb3b12f7d8162633d1
[ "BSD-3-Clause" ]
1
2015-05-16T13:13:06.000Z
2015-05-16T13:13:06.000Z
tests/admin_checks/tests.py
PirosB3/django
9b729ddd8f2040722971ccfb3b12f7d8162633d1
[ "BSD-3-Clause" ]
null
null
null
tests/admin_checks/tests.py
PirosB3/django
9b729ddd8f2040722971ccfb3b12f7d8162633d1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import warnings from django import forms from django.contrib import admin from django.core import checks from django.core.exceptions import ImproperlyConfigured from django.test import TestCase from .models import Song, Book, Album, TwoAlbumFKAndAnE, City, State class SongFo...
31.244
104
0.563692
from __future__ import unicode_literals import warnings from django import forms from django.contrib import admin from django.core import checks from django.core.exceptions import ImproperlyConfigured from django.test import TestCase from .models import Song, Book, Album, TwoAlbumFKAndAnE, City, State class SongFo...
true
true
1c4695708c7b41b299a783d8c3a65e327eb9a2a5
2,240
py
Python
cekit/test/behave_tester.py
stephengaito/cekit
d6d254af6bb6820e5c725680bd77b6c195636cf6
[ "MIT" ]
59
2018-03-01T14:32:17.000Z
2022-03-31T12:18:05.000Z
cekit/test/behave_tester.py
stephengaito/cekit
d6d254af6bb6820e5c725680bd77b6c195636cf6
[ "MIT" ]
446
2018-03-02T08:20:49.000Z
2022-03-20T10:10:42.000Z
cekit/test/behave_tester.py
stephengaito/cekit
d6d254af6bb6820e5c725680bd77b6c195636cf6
[ "MIT" ]
29
2018-03-01T13:27:55.000Z
2022-02-08T08:15:39.000Z
import logging import os from cekit.builder import Command from cekit.generator.base import Generator from cekit.test.collector import BehaveTestCollector from cekit.test.behave_runner import BehaveTestRunner LOGGER = logging.getLogger('cekit') class BehaveTester(Command): """ Tester implementation for the ...
32.941176
110
0.647768
import logging import os from cekit.builder import Command from cekit.generator.base import Generator from cekit.test.collector import BehaveTestCollector from cekit.test.behave_runner import BehaveTestRunner LOGGER = logging.getLogger('cekit') class BehaveTester(Command): def __init__(self, params): s...
true
true
1c4696b02290e4a4e51e7a76e7e5bf7ddffbc1f9
2,567
py
Python
tests/test_io.py
nthndy/BayesianTracker
443f984ce830373e140f744a27179debdf34ae58
[ "MIT" ]
null
null
null
tests/test_io.py
nthndy/BayesianTracker
443f984ce830373e140f744a27179debdf34ae58
[ "MIT" ]
null
null
null
tests/test_io.py
nthndy/BayesianTracker
443f984ce830373e140f744a27179debdf34ae58
[ "MIT" ]
null
null
null
import os from pathlib import Path import numpy as np import pytest from _utils import ( create_test_object, create_test_properties, simple_tracker_example, ) import btrack def test_hdf5_write(tmp_path): """Test writing an HDF5 file with some objects.""" fn = os.path.join(tmp_path, "test.h5") ...
29.848837
81
0.66342
import os from pathlib import Path import numpy as np import pytest from _utils import ( create_test_object, create_test_properties, simple_tracker_example, ) import btrack def test_hdf5_write(tmp_path): fn = os.path.join(tmp_path, "test.h5") objects = [] for i in range(10): obj, _ ...
true
true
1c46971c776696ac88b0afdf08de5e2e9aa0b53e
4,999
py
Python
modules/tools/rosbag/extract_images.py
seeclong/apollo
99c8afb5ebcae2a3c9359a156a957ff03944b27b
[ "Apache-2.0" ]
27
2019-04-06T02:27:14.000Z
2021-11-27T13:47:06.000Z
modules/tools/rosbag/extract_images.py
seeclong/apollo
99c8afb5ebcae2a3c9359a156a957ff03944b27b
[ "Apache-2.0" ]
5
2021-10-06T22:57:52.000Z
2022-02-27T14:04:05.000Z
modules/tools/rosbag/extract_images.py
seeclong/apollo
99c8afb5ebcae2a3c9359a156a957ff03944b27b
[ "Apache-2.0" ]
38
2019-04-15T10:58:37.000Z
2022-01-27T08:52:39.000Z
#!/usr/bin/env python ############################################################################### # Copyright 2018 The Apollo 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 ...
34.475862
79
0.640928
true
true
1c46987bff6123b37edc08ade402cc724f07010b
9,073
py
Python
weechat/python/grep_filter.py
TyranicMoron/dotfiles
277b85c84cc2d0ed542175db218fc6313b3d85c0
[ "MIT" ]
1
2017-04-18T20:05:22.000Z
2017-04-18T20:05:22.000Z
weechat/python/grep_filter.py
TyranicMoron/dotfiles
277b85c84cc2d0ed542175db218fc6313b3d85c0
[ "MIT" ]
2
2015-06-26T10:53:57.000Z
2015-06-26T11:22:56.000Z
weechat/python/grep_filter.py
MatthewCox/dotfiles
277b85c84cc2d0ed542175db218fc6313b3d85c0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2015 by Simmo Saan <simmo.saan@gmail.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any l...
30.548822
183
0.721922
from __future__ import print_function SCRIPT_NAME = "grep_filter" SCRIPT_AUTHOR = "Simmo Saan <simmo.saan@gmail.com>" SCRIPT_VERSION = "0.10" SCRIPT_LICENSE = "GPL3" SCRIPT_DESC = "Filter buffers automatically while searching them" SCRIPT_REPO = "https://github.com/sim642/g...
true
true
1c46996f63d32c290afa2e3cc34a753d12d8719d
3,601
py
Python
tricks/lsh_pp_pretaining.py
yanzhoupan/dlrm_ssm
49ca1e4487ff0e148065c0a133acb078835a9b86
[ "MIT" ]
3
2021-03-16T03:33:44.000Z
2022-03-14T08:48:01.000Z
tricks/lsh_pp_pretaining.py
yanzhoupan/dlrm_ssm
49ca1e4487ff0e148065c0a133acb078835a9b86
[ "MIT" ]
2
2021-03-25T08:19:25.000Z
2021-04-10T16:43:45.000Z
tricks/lsh_pp_pretaining.py
yanzhoupan/dlrm_ssm
49ca1e4487ff0e148065c0a133acb078835a9b86
[ "MIT" ]
1
2021-09-08T21:47:06.000Z
2021-09-08T21:47:06.000Z
# data preprocessing for LSH embedding import numpy as np import torch from min_hash_generator import SparseBitVectorMinHashGenerator from collections import defaultdict # import multiprocessing from tqdm import tqdm import time import random import concurrent.futures import pdb seed = 123 random.seed(seed) np.random....
35.303922
159
0.67759
import numpy as np import torch from min_hash_generator import SparseBitVectorMinHashGenerator from collections import defaultdict from tqdm import tqdm import time import random import concurrent.futures import pdb seed = 123 random.seed(seed) np.random.seed(seed) torch.manual_seed(seed) min_hash_gen = None val_i...
true
true
1c469984e0ce27e7f993f3a5fceabf990b93bb2c
1,686
py
Python
eggs/bx_python-0.7.1_7b95ff194725-py2.7-linux-i686-ucs4.egg/EGG-INFO/scripts/maf_split_by_src.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
eggs/bx_python-0.7.1_7b95ff194725-py2.7-linux-i686-ucs4.egg/EGG-INFO/scripts/maf_split_by_src.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
eggs/bx_python-0.7.1_7b95ff194725-py2.7-linux-i686-ucs4.egg/EGG-INFO/scripts/maf_split_by_src.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
1
2020-07-25T21:03:18.000Z
2020-07-25T21:03:18.000Z
#!/afs/bx.psu.edu/project/pythons/linux-i686-ucs4/bin/python2.7 """ Read a MAF from stdin and break into several mafs based on the source of each block. If the `component` option is provided then only that component will be used to determine the new file for each block, otherwise the src for *all* components will be ...
27.639344
96
0.640569
import sys, string import bx.align.maf from optparse import OptionParser import psyco_full INF="inf" def __main__(): parser = OptionParser() parser.add_option( "-o", "--outprefix", action="store", default="" ) parser.add_option( "-c", "--component", action="store", default=None ) ( options,...
true
true
1c469a53f45b615fde86d33a3918d754e428abba
1,474
py
Python
src/simgnn.py
pulkit1joshi/SimGNN
199b6014482a1dc8719394de4fc17f03c1b7192c
[ "MIT" ]
22
2020-10-09T13:36:57.000Z
2022-02-10T04:07:54.000Z
src/simgnn.py
kartiklucky9n/SimGNN
199b6014482a1dc8719394de4fc17f03c1b7192c
[ "MIT" ]
8
2020-10-10T11:02:39.000Z
2021-12-29T17:45:05.000Z
src/simgnn.py
kartiklucky9n/SimGNN
199b6014482a1dc8719394de4fc17f03c1b7192c
[ "MIT" ]
11
2020-10-11T03:58:36.000Z
2022-03-30T09:54:55.000Z
from tensorflow import keras from tensorflow.keras import layers from keras_gcn import GraphConv from keras.models import Model from keras.layers import Input from custom_layers import Attention, NeuralTensorLayer """ Main model : Node-to-Node interaction not implemented. Functional API : Shared layers are shared_gcn1...
36.85
82
0.705563
from tensorflow import keras from tensorflow.keras import layers from keras_gcn import GraphConv from keras.models import Model from keras.layers import Input from custom_layers import Attention, NeuralTensorLayer def simgnn(parser): inputA = Input(shape=(None,16)) GinputA = Input(shape=(None,None)) inputB ...
true
true
1c469b82d550b35023a31690c11f6d79e68fe635
3,452
py
Python
testing/modules/args.py
marshallmidden/m4
8ff1cb050efdefe6963c6d7f459fd6f3d25eea94
[ "BSD-2-Clause" ]
null
null
null
testing/modules/args.py
marshallmidden/m4
8ff1cb050efdefe6963c6d7f459fd6f3d25eea94
[ "BSD-2-Clause" ]
null
null
null
testing/modules/args.py
marshallmidden/m4
8ff1cb050efdefe6963c6d7f459fd6f3d25eea94
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python3 # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 #----------------------------------------------------------------------------- import argparse import sys #----------------------------------------------------------------------------- # Global option variables follow. #--------------------------...
41.095238
135
0.503476
import argparse import sys def parse_args(values): global args, initiator, target, qla2xxx init = ('i', 'in', 'ini', 'init', 'initi', 'initia', 'initiat', 'initiato', 'initiator', 'initiators') targ = ('t', 'ta', 'tar', 'targ', 'targe', 'target', 'targets') qla2 = ('q', 'ql', 'qla', 'qla2', 'qla...
true
true
1c469ce9ba3bc866b5d62e0d55297ba6728a69f8
275
py
Python
flaskblog/App/models/__init__.py
riverstation/project-all
c56f1879e1303d561e95a3ff3a70f94fb5fa2191
[ "Apache-2.0" ]
null
null
null
flaskblog/App/models/__init__.py
riverstation/project-all
c56f1879e1303d561e95a3ff3a70f94fb5fa2191
[ "Apache-2.0" ]
null
null
null
flaskblog/App/models/__init__.py
riverstation/project-all
c56f1879e1303d561e95a3ff3a70f94fb5fa2191
[ "Apache-2.0" ]
null
null
null
from .user import User from .posts import Posts from App.extensions import db #创建一个关联模型和用户 存储id 多对多的个关系模型中间表 collections = db.Table('collections', db.Column('user_id',db.Integer,db.ForeignKey('user.id')), db.Column('posts_id',db.Integer,db.ForeignKey('posts.id')) )
30.555556
62
0.745455
from .user import User from .posts import Posts from App.extensions import db collections = db.Table('collections', db.Column('user_id',db.Integer,db.ForeignKey('user.id')), db.Column('posts_id',db.Integer,db.ForeignKey('posts.id')) )
true
true
1c469d46abeed2c741846f66801fcc1ae85fbd0c
1,407
py
Python
pyproc/views/message.py
cmin764/pyproc
be69b5a35fbe3818accea472735effec0825f17c
[ "MIT" ]
null
null
null
pyproc/views/message.py
cmin764/pyproc
be69b5a35fbe3818accea472735effec0825f17c
[ "MIT" ]
null
null
null
pyproc/views/message.py
cmin764/pyproc
be69b5a35fbe3818accea472735effec0825f17c
[ "MIT" ]
null
null
null
"""Handle /message page.""" from flask import ( abort, request, ) from pyproc import app, tasks from pyproc.views.base import responsify @app.route("/message", methods=["POST"]) @responsify def message(): """Messaging page available for users/clients submitting tasks.""" # Retrieve JSON parameters ...
25.125
71
0.633262
from flask import ( abort, request, ) from pyproc import app, tasks from pyproc.views.base import responsify @app.route("/message", methods=["POST"]) @responsify def message(): data = request.get_json() or {} data.update(dict(request.values)) msg = data.get("msg") if not msg: r...
true
true
1c469feaecafc257a8d704b752cfef5883265ac6
291
py
Python
random/agent.py
iejMac/TTTArena
056636f064769c3251fb2448e7487b4fa8394733
[ "MIT" ]
3
2021-05-23T23:55:03.000Z
2021-07-09T16:01:10.000Z
random/agent.py
iejMac/TTTArena
056636f064769c3251fb2448e7487b4fa8394733
[ "MIT" ]
null
null
null
random/agent.py
iejMac/TTTArena
056636f064769c3251fb2448e7487b4fa8394733
[ "MIT" ]
2
2021-07-09T11:44:09.000Z
2021-07-11T12:32:58.000Z
from agent import Agent from numpy.random import randint class RandomAgent(Agent): def __init__(self, name): super().__init__(name) def make_action(self, state): movex = randint(0, state.shape[1]) movey = randint(0, state.shape[0]) return (movey, movex)
20.785714
39
0.659794
from agent import Agent from numpy.random import randint class RandomAgent(Agent): def __init__(self, name): super().__init__(name) def make_action(self, state): movex = randint(0, state.shape[1]) movey = randint(0, state.shape[0]) return (movey, movex)
true
true
1c46a09640f355fa068c98b298841bc96a9474b0
1,533
py
Python
count_zeroavg.py
Renata1995/Topic-Distance-and-Coherence
d567d5b3ef71ea5654f214aa3736add7f3ac94bc
[ "Apache-2.0" ]
5
2018-08-25T07:16:31.000Z
2020-11-12T00:36:15.000Z
count_zeroavg.py
Renata1995/Topic-Distance-and-Coherence
d567d5b3ef71ea5654f214aa3736add7f3ac94bc
[ "Apache-2.0" ]
1
2018-09-24T16:17:47.000Z
2018-09-24T16:17:47.000Z
count_zeroavg.py
Renata1995/Topic-Distance-and-Coherence
d567d5b3ef71ea5654f214aa3736add7f3ac94bc
[ "Apache-2.0" ]
4
2018-05-07T07:52:10.000Z
2020-11-12T00:36:18.000Z
import sys import utils.name_convention as name import numpy as np if len(sys.argv) <= 1: corpus_type = "bow" else: if sys.argv[1] == "t": corpus_type = "tfidf" elif sys.argv[1] == "b": corpus_type = "binary" else: corpus_type = "bow" if len(sys.argv) <= 2: topics_count = 3...
27.375
116
0.580561
import sys import utils.name_convention as name import numpy as np if len(sys.argv) <= 1: corpus_type = "bow" else: if sys.argv[1] == "t": corpus_type = "tfidf" elif sys.argv[1] == "b": corpus_type = "binary" else: corpus_type = "bow" if len(sys.argv) <= 2: topics_count = 3...
true
true
1c46a1195f1820aed9bcbc13e7c2b5fa70a3462e
2,788
py
Python
06-About_json/qq_geci.py
jiaxiaochu/Crawler
bb54d515dc217c27574b36124e16fd5b993775bd
[ "MIT" ]
null
null
null
06-About_json/qq_geci.py
jiaxiaochu/Crawler
bb54d515dc217c27574b36124e16fd5b993775bd
[ "MIT" ]
1
2020-08-27T10:25:38.000Z
2020-08-27T10:25:38.000Z
06-About_json/qq_geci.py
jiaxiaochu/Crawler
bb54d515dc217c27574b36124e16fd5b993775bd
[ "MIT" ]
null
null
null
# !/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 # @blog : www.jiazhixiang.xyz # @Author : Jiazhixiang # -*- coding:utf-8 -*- import requests url_song = 'https://c.y.qq.com/soso/fcgi-bin/client_search_cp' for x in range(1, 4): params_song = { 'ct': '24', 'qqmusic_ver': '1298', ...
33.190476
142
0.51901
import requests url_song = 'https://c.y.qq.com/soso/fcgi-bin/client_search_cp' for x in range(1, 4): params_song = { 'ct': '24', 'qqmusic_ver': '1298', 'new_json': '1', 'remoteplace': 'sizer.yqq.song_next', 'searchid': '64405487069162918', 't': '0', 'aggr'...
true
true
1c46a149c4c1484cee731d07530a6c9bf4e29a18
2,633
py
Python
dstream_excel/tracker/files.py
nickderobertis/datastream-excel-downloader-py
3407decdf27da117758ce5ecc538d9f65c6ad5f6
[ "MIT" ]
1
2019-10-14T10:36:18.000Z
2019-10-14T10:36:18.000Z
dstream_excel/tracker/files.py
whoopnip/datastream-excel-downloader-py
3407decdf27da117758ce5ecc538d9f65c6ad5f6
[ "MIT" ]
4
2020-03-24T17:45:15.000Z
2021-06-02T00:20:24.000Z
dstream_excel/tracker/files.py
whoopnip/datastream-excel-downloader-py
3407decdf27da117758ce5ecc538d9f65c6ad5f6
[ "MIT" ]
null
null
null
import ast import os import time from dstream_excel.tracker.timing import TimeTracker class FileProcessTracker: def __init__(self, folder=None, restart=False, file_types=('csv',)): if folder is None: self.folder = os.getcwd() else: self.folder = os.path.abspath(folder) ...
30.976471
111
0.713635
import ast import os import time from dstream_excel.tracker.timing import TimeTracker class FileProcessTracker: def __init__(self, folder=None, restart=False, file_types=('csv',)): if folder is None: self.folder = os.getcwd() else: self.folder = os.path.abspath(folder) ...
true
true
1c46a17bd0d5d84ec22deeb07d1811a1fdd110c1
37,607
py
Python
msgraph-cli-extensions/v1_0/notes_v1_0/azext_notes_v1_0/vendored_sdks/notes/aio/operations/_sites_onenote_sections_parent_section_group_parent_notebook_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/v1_0/notes_v1_0/azext_notes_v1_0/vendored_sdks/notes/aio/operations/_sites_onenote_sections_parent_section_group_parent_notebook_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
22
2022-03-29T22:54:37.000Z
2022-03-29T22:55:27.000Z
msgraph-cli-extensions/v1_0/notes_v1_0/azext_notes_v1_0/vendored_sdks/notes/aio/operations/_sites_onenote_sections_parent_section_group_parent_notebook_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "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 may ...
48.275995
183
0.653416
from typing import Any, AsyncIterable, Callable, Dict, Generic, List, Optional, TypeVar, Union import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from ...
true
true
1c46a26fe64a116c11f1bc95d480deebd0f970c0
5,517
py
Python
docs/source/conf.py
zeromake/restful-model
f2bed56a2aa23ade4a7882296c41222a64dc24f2
[ "MIT" ]
8
2018-08-09T10:03:53.000Z
2020-03-03T11:02:11.000Z
docs/source/conf.py
zeromake/restful-model
f2bed56a2aa23ade4a7882296c41222a64dc24f2
[ "MIT" ]
null
null
null
docs/source/conf.py
zeromake/restful-model
f2bed56a2aa23ade4a7882296c41222a64dc24f2
[ "MIT" ]
2
2019-08-12T20:53:46.000Z
2021-11-04T06:01:23.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
31.169492
79
0.64691
project = 'restful_model' copyright = '2018, zeromake <a390720046@gmail.com>' author = 'zeromake <a390720046@gmail.com>' version = '' release = '' extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.co...
true
true
1c46a40c89f7ba576f27e1b22089cb2513eaa2c5
31,354
py
Python
usaspending_api/spending_explorer/tests/integration/test_spending_explorer.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
null
null
null
usaspending_api/spending_explorer/tests/integration/test_spending_explorer.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
null
null
null
usaspending_api/spending_explorer/tests/integration/test_spending_explorer.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
null
null
null
import copy import json import pytest from datetime import datetime, timezone from model_mommy import mommy from rest_framework import status from usaspending_api.awards.models import FinancialAccountsByAwards from usaspending_api.financial_activities.models import ( FinancialAccountsByProgramActivityObjectClass,...
34.607064
120
0.574919
import copy import json import pytest from datetime import datetime, timezone from model_mommy import mommy from rest_framework import status from usaspending_api.awards.models import FinancialAccountsByAwards from usaspending_api.financial_activities.models import ( FinancialAccountsByProgramActivityObjectClass,...
true
true
1c46a526cd71a1a644839ed9cdd68a4e1e211d57
15,561
py
Python
examples/tsunami/eta_init_force_dry/setrun.py
AsianHam/geoclaw
b5f9ee8cd6e64d107ba8bba1e6d588aa7bf6d417
[ "BSD-3-Clause" ]
51
2015-07-01T13:39:17.000Z
2022-03-07T16:13:17.000Z
examples/tsunami/eta_init_force_dry/setrun.py
AsianHam/geoclaw
b5f9ee8cd6e64d107ba8bba1e6d588aa7bf6d417
[ "BSD-3-Clause" ]
274
2015-02-20T18:25:04.000Z
2022-03-09T23:51:47.000Z
examples/tsunami/eta_init_force_dry/setrun.py
AsianHam/geoclaw
b5f9ee8cd6e64d107ba8bba1e6d588aa7bf6d417
[ "BSD-3-Clause" ]
66
2015-01-10T00:05:00.000Z
2022-02-24T22:05:16.000Z
""" Module to set up run time parameters for Clawpack. The values set in the function setrun are then written out to data files that will be read in by the Fortran code. """ from __future__ import absolute_import from __future__ import print_function import os, sys import numpy as np try: CLAW = os.environ['CL...
30.998008
92
0.620911
from __future__ import absolute_import from __future__ import print_function import os, sys import numpy as np try: CLAW = os.environ['CLAW'] except: raise Exception("*** Must first set CLAW enviornment variable") from clawpack.geoclaw.data import ForceDry from clawpack.amrclaw.data import FlagRegion def...
true
true
1c46a52971174cbf30b7942c93c8d2e79189a054
4,037
py
Python
django_opentracing/tracer.py
dudymas/opentracing-django
3ad67f5c28f7eb36df558dc9e5e171e960afd9cb
[ "BSD-3-Clause" ]
null
null
null
django_opentracing/tracer.py
dudymas/opentracing-django
3ad67f5c28f7eb36df558dc9e5e171e960afd9cb
[ "BSD-3-Clause" ]
null
null
null
django_opentracing/tracer.py
dudymas/opentracing-django
3ad67f5c28f7eb36df558dc9e5e171e960afd9cb
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings import opentracing try: from threading import local except ImportError: from django.utils._threading_local import local _thread_locals = local() django_tracer = None def get_tracer(): return opentracing.tracer def get_current_span(request=None): if request is None: ...
35.104348
101
0.628685
from django.conf import settings import opentracing try: from threading import local except ImportError: from django.utils._threading_local import local _thread_locals = local() django_tracer = None def get_tracer(): return opentracing.tracer def get_current_span(request=None): if request is None: ...
true
true
1c46a5e42c962596d622b69453575d9dba1e629a
291
py
Python
manage.py
cron-ooo/django-influxdb-metrics
7cecc315e12219897d941a6c02eac8ffc182b645
[ "MIT" ]
54
2016-11-25T10:00:23.000Z
2022-03-17T09:27:49.000Z
manage.py
cron-ooo/django-influxdb-metrics
7cecc315e12219897d941a6c02eac8ffc182b645
[ "MIT" ]
27
2016-12-01T17:35:37.000Z
2021-03-30T16:37:49.000Z
manage.py
cron-ooo/django-influxdb-metrics
7cecc315e12219897d941a6c02eac8ffc182b645
[ "MIT" ]
23
2016-11-22T09:26:28.000Z
2022-03-14T11:34:33.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'influxdb_metrics.tests.settings') from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
24.25
64
0.71134
import os import sys if __name__ == "__main__": os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'influxdb_metrics.tests.settings') from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
true
true
1c46a757bacabb1d955e01d6573c009ce4f99f02
1,247
py
Python
airflow/utils/types.py
shashijangra/airflow-1
c3e340584bf1892c4f73aa9e7495b5823dab0c40
[ "Apache-2.0" ]
2
2021-07-30T17:25:56.000Z
2021-08-03T13:51:09.000Z
airflow/utils/types.py
shashijangra/airflow-1
c3e340584bf1892c4f73aa9e7495b5823dab0c40
[ "Apache-2.0" ]
14
2019-12-03T02:54:42.000Z
2020-02-27T16:08:10.000Z
airflow/utils/types.py
shashijangra/airflow-1
c3e340584bf1892c4f73aa9e7495b5823dab0c40
[ "Apache-2.0" ]
1
2021-07-02T04:23:18.000Z
2021-07-02T04:23:18.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...
34.638889
67
0.709703
import enum class DagRunType(enum.Enum): BACKFILL_JOB = "backfill" SCHEDULED = "scheduled" MANUAL = "manual" @staticmethod def from_run_id(run_id: str) -> "DagRunType": for run_type in DagRunType: if run_id and run_id.startswith(f"{run_type.value}__"): ...
true
true
1c46a76ba0a8d816e3975d24a0ab719d4db28b66
1,038
py
Python
Download/PythonExercicios/ex028.py
r-luis/Python-CursoemVideo
f978b2f4ab8444ebb746b4c85bd6db6d7775cbb4
[ "MIT" ]
null
null
null
Download/PythonExercicios/ex028.py
r-luis/Python-CursoemVideo
f978b2f4ab8444ebb746b4c85bd6db6d7775cbb4
[ "MIT" ]
null
null
null
Download/PythonExercicios/ex028.py
r-luis/Python-CursoemVideo
f978b2f4ab8444ebb746b4c85bd6db6d7775cbb4
[ "MIT" ]
null
null
null
'''Escreva um programa que faça o computador "pensar" em um número inteiro entre 0 e 5 e peça para o usuário tentar descobrir o número escolhido pelo computador. O programa deverá escrever na tela se o usuário venceu ou perdeu.''' from random import randint from time import sleep comp = randint(0, 5) #Computador pensa ...
43.25
98
0.662813
from random import randint from time import sleep comp = randint(0, 5) cores = {'limpa':'\033[m', 'azul':'\033[34m', 'vermelho':'\033[31m', 'roxo':'\033[1;35m'} print('{}-*{}'.format(cores['azul'], cores['limpa'])*12) txt = '{}JOGO DA ADVINHAÇÃO 1.0v{}'.format(cores['vermelho'], cores['limp...
true
true
1c46a7ad97f59fed8090c80f1a79ff7c63808989
1,479
py
Python
test/tests/16_view-status/hooks.py
airtower-luna/mod_gnutls
b6ce8add210095b2b983f63a818f5d157aff9f89
[ "Apache-2.0" ]
2
2015-04-06T11:28:40.000Z
2021-07-11T12:34:53.000Z
test/tests/16_view-status/hooks.py
airtower-luna/mod_gnutls
b6ce8add210095b2b983f63a818f5d157aff9f89
[ "Apache-2.0" ]
4
2020-09-07T19:27:20.000Z
2021-07-29T19:29:40.000Z
test/tests/16_view-status/hooks.py
airtower-luna/mod_gnutls
b6ce8add210095b2b983f63a818f5d157aff9f89
[ "Apache-2.0" ]
1
2022-01-26T12:17:17.000Z
2022-01-26T12:17:17.000Z
from mgstest import require_match, TestExpectationFailed import re def post_check(conn_log, response_log): """Compare the TLS session information reported by gnutls-cli and the mod_gnutls status listing.""" # Group 1 is the TLS version, group 2 the ciphers. The certificate # type that may be enclosed...
41.083333
79
0.646383
from mgstest import require_match, TestExpectationFailed import re def post_check(conn_log, response_log): re_session = r'\((TLS[\d\.]+).*?\)-(.*)' re_cli = re.compile(r'(?<=^-\sDescription:\s)' + re_session + '$') re_status = re.compile(r'(?<=^Current TLS session:\s)' + re_sess...
true
true
1c46a7d2b1edab1bb3265dfd5cfcfa7042f23663
3,389
py
Python
test/functional/test_framework/coverage.py
bitcoinexodus/bitcoinexodus-source
742661b3dc9abce61c05fa1561b7fd9496629866
[ "MIT" ]
null
null
null
test/functional/test_framework/coverage.py
bitcoinexodus/bitcoinexodus-source
742661b3dc9abce61c05fa1561b7fd9496629866
[ "MIT" ]
null
null
null
test/functional/test_framework/coverage.py
bitcoinexodus/bitcoinexodus-source
742661b3dc9abce61c05fa1561b7fd9496629866
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Utilities for doing coverage analysis on the RPC interface. Provides a way to track which RPC commands...
30.809091
87
0.661552
import os REFERENCE_FILENAME = 'rpc_interface.txt' class AuthServiceProxyWrapper(): def __init__(self, auth_service_proxy_instance, coverage_logfile=None): self.auth_service_proxy_instance = auth_service_proxy_instance self.coverage_logfile = coverage_logfile def __getattr__(self, name...
true
true
1c46a823ab8bfa1ba9d65641cad3d178ad45586f
902
py
Python
psx/_dump_/33/_dump_ida_/overlay_3/set_funcs.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
15
2018-06-28T01:11:25.000Z
2021-09-27T15:57:18.000Z
psx/_dump_/33/_dump_ida_/overlay_3/set_funcs.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-29T04:08:23.000Z
2019-10-17T13:57:22.000Z
psx/_dump_/33/_dump_ida_/overlay_3/set_funcs.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-28T01:11:34.000Z
2020-05-23T09:21:48.000Z
del_items(0x800A1608) SetType(0x800A1608, "void VID_OpenModule__Fv()") del_items(0x800A16C8) SetType(0x800A16C8, "void InitScreens__Fv()") del_items(0x800A17B8) SetType(0x800A17B8, "void MEM_SetupMem__Fv()") del_items(0x800A17E4) SetType(0x800A17E4, "void SetupWorkRam__Fv()") del_items(0x800A1874) SetType(0x800A1874, "...
33.407407
72
0.805987
del_items(0x800A1608) SetType(0x800A1608, "void VID_OpenModule__Fv()") del_items(0x800A16C8) SetType(0x800A16C8, "void InitScreens__Fv()") del_items(0x800A17B8) SetType(0x800A17B8, "void MEM_SetupMem__Fv()") del_items(0x800A17E4) SetType(0x800A17E4, "void SetupWorkRam__Fv()") del_items(0x800A1874) SetType(0x800A1874, "...
true
true
1c46a948950c865d0aa8057ce1992e94cb642566
816
py
Python
ta/tests/__init__.py
levelvc/ta
69aa29f60c691f1628a62e480cfd6bfb3a5c1793
[ "MIT" ]
2
2020-04-13T03:34:01.000Z
2020-06-01T14:41:26.000Z
ta/tests/__init__.py
Glyphack/ta
ff46a2cb64f7446921bb3c47c882105a16f9d4f9
[ "MIT" ]
null
null
null
ta/tests/__init__.py
Glyphack/ta
ff46a2cb64f7446921bb3c47c882105a16f9d4f9
[ "MIT" ]
null
null
null
from ta.tests.momentum import (TestKAMAIndicator, TestRateOfChangeIndicator, TestRSIIndicator, TestStochasticOscillator, TestTSIIndicator, TestUltimateOscillator, TestWilliamsRIndicator) from ta.tests.trend import (TestADXIndic...
58.285714
76
0.629902
from ta.tests.momentum import (TestKAMAIndicator, TestRateOfChangeIndicator, TestRSIIndicator, TestStochasticOscillator, TestTSIIndicator, TestUltimateOscillator, TestWilliamsRIndicator) from ta.tests.trend import (TestADXIndic...
true
true
1c46aa65d6d2fd5ed331e10e2a59dc999d7176c4
2,420
py
Python
experiments/actions/action_utils.py
Tobias-Fischer/dreyeve
a65342d9c503ce3ec932e2229b90aaeebfd82944
[ "MIT" ]
83
2017-05-29T04:16:42.000Z
2022-03-03T08:09:22.000Z
experiments/actions/action_utils.py
ashinmarin/dreyeve
d73979d738e706d90a8aa9d696c6e4dcb19c1134
[ "MIT" ]
26
2017-11-09T23:35:52.000Z
2022-03-11T03:22:57.000Z
experiments/actions/action_utils.py
ashinmarin/dreyeve
d73979d738e706d90a8aa9d696c6e4dcb19c1134
[ "MIT" ]
36
2017-09-23T02:48:41.000Z
2022-03-11T01:34:23.000Z
""" Utilities for improve code readability in `predict_actions_with_SVM.py` """ import itertools import numpy as np import matplotlib.pyplot as plt from os.path import join, exists class DreyeveRun: """ Single run of the DR(eye)VE dataset. """ def __init__(self, dataset_data_root, num_run): ...
33.150685
110
0.645868
import itertools import numpy as np import matplotlib.pyplot as plt from os.path import join, exists class DreyeveRun: def __init__(self, dataset_data_root, num_run): self.num_run = num_run self.file_course = join(dataset_data_root, '{:02d}'.format(self.num_run), 'speed_course_coord.txt') ...
true
true
1c46aabc654962175d4c60a0f2c647f7ad0ed11f
435
py
Python
leetcode/34.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
1
2019-08-28T23:15:25.000Z
2019-08-28T23:15:25.000Z
leetcode/34.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
null
null
null
leetcode/34.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
null
null
null
""" link: https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array problem: 返回 target 在 nums 中的区间,不存在时返回 [-1, -1] solution: 二分 """ class Solution: def searchRange(self, nums: List[int], target: int) -> List[int]: a = bisect.bisect_left(nums, target) b = bisect.bis...
24.166667
94
0.593103
class Solution: def searchRange(self, nums: List[int], target: int) -> List[int]: a = bisect.bisect_left(nums, target) b = bisect.bisect_right(nums, target) if a == b: return [-1, -1] else: return [a, b - 1]
true
true
1c46aad880355143649c5f0dc5f7f6f388eb64a8
3,783
py
Python
pytest_ethereum/plugins.py
jacqueswww/pytest-ethereum
d45b441bd582eb4a17c37debd1dabf061a3e56eb
[ "MIT" ]
null
null
null
pytest_ethereum/plugins.py
jacqueswww/pytest-ethereum
d45b441bd582eb4a17c37debd1dabf061a3e56eb
[ "MIT" ]
null
null
null
pytest_ethereum/plugins.py
jacqueswww/pytest-ethereum
d45b441bd582eb4a17c37debd1dabf061a3e56eb
[ "MIT" ]
null
null
null
import json from pathlib import Path from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple from eth_utils import to_dict, to_hex, to_tuple import pytest from vyper import compiler from web3 import Web3 from ethpm import Package from ethpm.tools import builder as b from ethpm.typing import Manifest f...
28.877863
85
0.680941
import json from pathlib import Path from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple from eth_utils import to_dict, to_hex, to_tuple import pytest from vyper import compiler from web3 import Web3 from ethpm import Package from ethpm.tools import builder as b from ethpm.typing import Manifest f...
true
true
1c46ab3936f9d783c9129bd39881ccdee4abfb5d
25,848
py
Python
tools/efrotools/pybuild.py
nitingupta910/ballistica
7c8c645592ac184e80e409c14c7607f91fcc89df
[ "MIT" ]
317
2020-04-04T00:33:10.000Z
2022-03-28T01:07:09.000Z
tools/efrotools/pybuild.py
Alshahriah/ballistica
326f6677a0118667e93ce9034849622ebef706fa
[ "MIT" ]
315
2020-04-04T22:33:10.000Z
2022-03-31T22:50:02.000Z
tools/efrotools/pybuild.py
Alshahriah/ballistica
326f6677a0118667e93ce9034849622ebef706fa
[ "MIT" ]
97
2020-04-04T01:32:17.000Z
2022-03-16T19:02:59.000Z
# Released under the MIT License. See LICENSE for details. # """Functionality related to building python for ios, android, etc.""" from __future__ import annotations import os from typing import TYPE_CHECKING from efrotools import PYVER, run, readfile, writefile, replace_one if TYPE_CHECKING: from typing import...
41.757674
79
0.548205
from __future__ import annotations import os from typing import TYPE_CHECKING from efrotools import PYVER, run, readfile, writefile, replace_one if TYPE_CHECKING: from typing import Any ENABLE_OPENSSL = True NEWER_PY_TEST = True PY_VER_EXACT_ANDROID = '3.9.7' PY_VER_EXACT_APPLE = '3.9.6' PRUNE_LIB_NAMES =...
true
true
1c46ad650091fd8eb656b4ce0564489819168982
2,955
py
Python
conans/test/unittests/util/local_db_test.py
Wonders11/conan
28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8
[ "MIT" ]
6,205
2015-12-01T13:40:05.000Z
2022-03-31T07:30:25.000Z
conans/test/unittests/util/local_db_test.py
Wonders11/conan
28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8
[ "MIT" ]
8,747
2015-12-01T16:28:48.000Z
2022-03-31T23:34:53.000Z
conans/test/unittests/util/local_db_test.py
Mattlk13/conan
005fc53485557b0a570bb71670f2ca9c66082165
[ "MIT" ]
961
2015-12-01T16:56:43.000Z
2022-03-31T13:50:52.000Z
import os import unittest import uuid import six import pytest from conans.client.store.localdb import LocalDB from conans.test.utils.test_files import temp_folder class LocalStoreTest(unittest.TestCase): def test_localdb(self): tmp_dir = temp_folder() db_file = os.path.join(tmp_dir, "dbfile") ...
38.376623
99
0.671743
import os import unittest import uuid import six import pytest from conans.client.store.localdb import LocalDB from conans.test.utils.test_files import temp_folder class LocalStoreTest(unittest.TestCase): def test_localdb(self): tmp_dir = temp_folder() db_file = os.path.join(tmp_dir, "dbfile") ...
true
true
1c46ae0e3f4a04853fd12feddc7987c8067cadb2
934
py
Python
django_angular_url/templatetags/django_angular_url_tags.py
rafitorres/django-angular-url
c9734f54370f4fb0d2d7bfd2248107ba93126aac
[ "MIT" ]
1
2018-06-17T19:28:24.000Z
2018-06-17T19:28:24.000Z
django_angular_url/templatetags/django_angular_url_tags.py
rafitorres/django-angular-url
c9734f54370f4fb0d2d7bfd2248107ba93126aac
[ "MIT" ]
null
null
null
django_angular_url/templatetags/django_angular_url_tags.py
rafitorres/django-angular-url
c9734f54370f4fb0d2d7bfd2248107ba93126aac
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from django.template import Library from django.core.exceptions import ImproperlyConfigured from django.utils.safestring import mark_safe from django_angular_url.core.urlresolvers import get_urls register = Library() @register.simple_tag(na...
32.206897
72
0.671306
from __future__ import unicode_literals import json from django.template import Library from django.core.exceptions import ImproperlyConfigured from django.utils.safestring import mark_safe from django_angular_url.core.urlresolvers import get_urls register = Library() @register.simple_tag(name='load_djng_urls', ta...
true
true
1c46af2a12398dfe071582314575709997860fcd
5,438
py
Python
Dell/benchmarks/rnnt/implementations/DSS8440x8A100-PCIE-80GB/bind_launch.py
gglin001/training_results_v1.1
58fd4103f0f465bda6eb56a06a74b7bbccbbcf24
[ "Apache-2.0" ]
null
null
null
Dell/benchmarks/rnnt/implementations/DSS8440x8A100-PCIE-80GB/bind_launch.py
gglin001/training_results_v1.1
58fd4103f0f465bda6eb56a06a74b7bbccbbcf24
[ "Apache-2.0" ]
null
null
null
Dell/benchmarks/rnnt/implementations/DSS8440x8A100-PCIE-80GB/bind_launch.py
gglin001/training_results_v1.1
58fd4103f0f465bda6eb56a06a74b7bbccbbcf24
[ "Apache-2.0" ]
null
null
null
import sys import subprocess import os import socket from argparse import ArgumentParser, REMAINDER import torch def parse_args(): """ Helper function parsing the command line options @retval ArgumentParser """ parser = ArgumentParser(description="PyTorch distributed training launch " ...
40.887218
109
0.578338
import sys import subprocess import os import socket from argparse import ArgumentParser, REMAINDER import torch def parse_args(): parser = ArgumentParser(description="PyTorch distributed training launch " "helper utilty that will spawn up " ...
true
true
1c46b0e8e1b0e69a358fe2773d36f1292eb76c39
141
py
Python
escapement/__init__.py
willingc/escapement
a02cc5f4367acf6cbc7f0734744b5093b4b02597
[ "MIT" ]
null
null
null
escapement/__init__.py
willingc/escapement
a02cc5f4367acf6cbc7f0734744b5093b4b02597
[ "MIT" ]
null
null
null
escapement/__init__.py
willingc/escapement
a02cc5f4367acf6cbc7f0734744b5093b4b02597
[ "MIT" ]
null
null
null
"""Top-level package for Escapement.""" __author__ = """Carol Willing""" __email__ = "willingc@willingconsulting.com" __version__ = "0.1.0"
23.5
44
0.716312
__author__ = """Carol Willing""" __email__ = "willingc@willingconsulting.com" __version__ = "0.1.0"
true
true
1c46b17b4df598ba18d2b2ad0e6b4ffe03ea914e
2,378
py
Python
gemd/demo/measurement_example.py
ventura-rivera/gemd-python
078eed39de852f830111b77306c2f35146de8ec3
[ "Apache-2.0" ]
null
null
null
gemd/demo/measurement_example.py
ventura-rivera/gemd-python
078eed39de852f830111b77306c2f35146de8ec3
[ "Apache-2.0" ]
null
null
null
gemd/demo/measurement_example.py
ventura-rivera/gemd-python
078eed39de852f830111b77306c2f35146de8ec3
[ "Apache-2.0" ]
null
null
null
"""Demonstrate attaching measurements to a material.""" import random import string from gemd.entity.attribute.property import Property from gemd.entity.object import MeasurementRun from gemd.entity.value.nominal_real import NominalReal from gemd.entity.value.normal_real import NormalReal from gemd.enumeration import ...
31.706667
82
0.616905
import random import string from gemd.entity.attribute.property import Property from gemd.entity.object import MeasurementRun from gemd.entity.value.nominal_real import NominalReal from gemd.entity.value.normal_real import NormalReal from gemd.enumeration import Origin thickness = 4.0 length = 80.0 width = 10.0...
true
true
1c46b284df73fbe899299978530eccccf17a8af1
3,066
py
Python
vqa_image_preprocess.py
strieb/VisualQuestionAnswering
28f6ae1f2abd839145306a1d4f34ee84271cf3c1
[ "MIT" ]
1
2020-04-23T09:15:33.000Z
2020-04-23T09:15:33.000Z
vqa_image_preprocess.py
strieb/VisualQuestionAnswering
28f6ae1f2abd839145306a1d4f34ee84271cf3c1
[ "MIT" ]
null
null
null
vqa_image_preprocess.py
strieb/VisualQuestionAnswering
28f6ae1f2abd839145306a1d4f34ee84271cf3c1
[ "MIT" ]
null
null
null
import json from collections import Counter import re from VQA.PythonHelperTools.vqaTools.vqa import VQA import random import numpy as np from keras.preprocessing.image import load_img, img_to_array, ImageDataGenerator from matplotlib import pyplot as plt import os import VQAModel from keras.applications.xception impor...
37.851852
109
0.643509
import json from collections import Counter import re from VQA.PythonHelperTools.vqaTools.vqa import VQA import random import numpy as np from keras.preprocessing.image import load_img, img_to_array, ImageDataGenerator from matplotlib import pyplot as plt import os import VQAModel from keras.applications.xception impor...
true
true
1c46b394ee538fa30ae70b23a0b2eab1f2c3432d
554
py
Python
fn_isitPhishing/fn_isitPhishing/lib/isitphishing_util.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
1
2020-08-25T03:43:07.000Z
2020-08-25T03:43:07.000Z
fn_isitPhishing/fn_isitPhishing/lib/isitphishing_util.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
1
2019-07-08T16:57:48.000Z
2019-07-08T16:57:48.000Z
fn_isitPhishing/fn_isitPhishing/lib/isitphishing_util.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
null
null
null
import sys import base64 def get_license_key(name, license): # Compute the base64 license key. This key will be provided to you by Vade Secure, # and has the following format: <CUSTOMER_NAME>:<CUSTOMER_LICENSE>. url_key = u'{0}:{1}'.format(name, license) # It must be Base64-encoded. Handled different...
34.625
86
0.689531
import sys import base64 def get_license_key(name, license): url_key = u'{0}:{1}'.format(name, license) if sys.version_info[0] == 2: auth_token = base64.b64encode(bytes(url_key).encode("utf-8")) else: auth_token = base64.b64encode(bytes(url_key, 'ascii')).decode('ascii') ...
true
true
1c46b5a4c2eb213dddaa023db5903639152bb058
110
py
Python
padaquant/__init__.py
felipm13/PadaQuant
09c13d60dee2a75488e101391ab09e9845a66cb5
[ "MIT" ]
1
2019-06-21T01:13:29.000Z
2019-06-21T01:13:29.000Z
padaquant/__init__.py
felipm13/PadaQuant
09c13d60dee2a75488e101391ab09e9845a66cb5
[ "MIT" ]
null
null
null
padaquant/__init__.py
felipm13/PadaQuant
09c13d60dee2a75488e101391ab09e9845a66cb5
[ "MIT" ]
null
null
null
import sys from padaquant.asset_manager import asset_manager from padaquant.blackscholes import blackscholes
22
49
0.881818
import sys from padaquant.asset_manager import asset_manager from padaquant.blackscholes import blackscholes
true
true
1c46b5bee90335b45c1737463373c781e1e0b924
1,811
py
Python
python/ray/tests/test_scheduling_2.py
daobook/ray
af9f1ef4dc160e0671206556b387f8017f3c3930
[ "Apache-2.0" ]
33
2020-05-27T14:25:24.000Z
2022-03-22T06:11:30.000Z
python/ray/tests/test_scheduling_2.py
daobook/ray
af9f1ef4dc160e0671206556b387f8017f3c3930
[ "Apache-2.0" ]
115
2021-01-19T04:40:50.000Z
2022-03-26T07:09:00.000Z
python/ray/tests/test_scheduling_2.py
daobook/ray
af9f1ef4dc160e0671206556b387f8017f3c3930
[ "Apache-2.0" ]
5
2020-08-06T15:53:07.000Z
2022-02-09T03:31:31.000Z
import numpy as np import platform import pytest import sys import time import ray @pytest.mark.skipif( platform.system() == "Windows", reason="Failing on Windows. Multi node.") def test_load_balancing_under_constrained_memory(ray_start_cluster): # This test ensures that tasks are being assigned to all rayle...
30.694915
77
0.663722
import numpy as np import platform import pytest import sys import time import ray @pytest.mark.skipif( platform.system() == "Windows", reason="Failing on Windows. Multi node.") def test_load_balancing_under_constrained_memory(ray_start_cluster): cluster = ray_start_cluster num_nodes = 3 nu...
true
true
1c46b5cfbdc2bcd213cc2381fa6bb4cc7a0d00c3
323
py
Python
tests/naip/test_stac.py
lossyrob/stactools
68f416de38d91738a62c1b090a9c40cc2e56a9f6
[ "Apache-2.0" ]
1
2022-03-28T19:13:53.000Z
2022-03-28T19:13:53.000Z
tests/naip/test_stac.py
lossyrob/stactools
68f416de38d91738a62c1b090a9c40cc2e56a9f6
[ "Apache-2.0" ]
3
2021-08-12T18:06:50.000Z
2022-03-29T14:20:33.000Z
tests/test_stac.py
stactools-packages/naip
1f13cc86664436a10f7942ab06547f7e3d8b8928
[ "Apache-2.0" ]
null
null
null
import unittest from stactools.naip.stac import create_collection class StacTest(unittest.TestCase): def test_create_collection(self): collection = create_collection(seasons=[2011, 2013, 2015, 2017, 2019]) collection.set_self_href('http://example.com/collection.json') collection.validate...
26.916667
78
0.739938
import unittest from stactools.naip.stac import create_collection class StacTest(unittest.TestCase): def test_create_collection(self): collection = create_collection(seasons=[2011, 2013, 2015, 2017, 2019]) collection.set_self_href('http://example.com/collection.json') collection.validate...
true
true
1c46b5f9d0a2b7779bfbb2eb9b3e116a5cd194b6
493
py
Python
Lib/site-packages/plotly/validators/scattercarpet/_uid.py
tytanya/my-first-blog
2b40adb0816c3546e90ad6ca1e7fb50d924c1536
[ "bzip2-1.0.6" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/scattercarpet/_uid.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2021-03-18T22:27:08.000Z
2022-03-11T23:40:50.000Z
plotly/validators/scattercarpet/_uid.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class UidValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name='uid', parent_name='scattercarpet', **kwargs ): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
29
70
0.614604
import _plotly_utils.basevalidators class UidValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name='uid', parent_name='scattercarpet', **kwargs ): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
true
true
1c46b67a3322491426a8dcefbb023986ece49b17
26,977
py
Python
src/olympia/activity/models.py
elyse0/addons-server
44fa4946b4b82f7003687b590b8c82c10c418e9e
[ "BSD-3-Clause" ]
null
null
null
src/olympia/activity/models.py
elyse0/addons-server
44fa4946b4b82f7003687b590b8c82c10c418e9e
[ "BSD-3-Clause" ]
760
2021-05-17T07:59:30.000Z
2022-03-31T11:14:15.000Z
src/olympia/activity/models.py
championshuttler/addons-server
5d4c1bfbed2fc509ecc1f3f5065955996e057eeb
[ "BSD-3-Clause" ]
null
null
null
import json import string import uuid from collections import defaultdict from copy import copy from datetime import datetime from django.apps import apps from django.conf import settings from django.db import models from django.utils import timezone from django.utils.functional import cached_property from django.uti...
35.87367
88
0.586907
import json import string import uuid from collections import defaultdict from copy import copy from datetime import datetime from django.apps import apps from django.conf import settings from django.db import models from django.utils import timezone from django.utils.functional import cached_property from django.uti...
true
true
1c46b6c6d53ac094d8f4c8e0d1401edb439f6fc3
4,863
py
Python
tests/core/test_virtual_group.py
TileDB-Inc/TileDB-CF-Py
9aab0fe9ba7346a1846c7458a5d08b123dcf90a8
[ "MIT" ]
12
2021-06-07T16:51:32.000Z
2022-03-10T12:48:00.000Z
tests/core/test_virtual_group.py
TileDB-Inc/TileDB-CF-Py
9aab0fe9ba7346a1846c7458a5d08b123dcf90a8
[ "MIT" ]
72
2021-04-28T21:49:41.000Z
2022-02-24T13:58:11.000Z
tests/core/test_virtual_group.py
TileDB-Inc/TileDB-CF-Py
9aab0fe9ba7346a1846c7458a5d08b123dcf90a8
[ "MIT" ]
3
2021-08-11T16:33:37.000Z
2021-12-01T20:31:12.000Z
# Copyright 2021 TileDB Inc. # Licensed under the MIT License. import numpy as np import pytest import tiledb from tiledb.cf import GroupSchema, VirtualGroup _row = tiledb.Dim(name="rows", domain=(1, 4), tile=4, dtype=np.uint64) _col = tiledb.Dim(name="cols", domain=(1, 4), tile=4, dtype=np.uint64) _attr_a = tiledb...
34.006993
88
0.631298
import numpy as np import pytest import tiledb from tiledb.cf import GroupSchema, VirtualGroup _row = tiledb.Dim(name="rows", domain=(1, 4), tile=4, dtype=np.uint64) _col = tiledb.Dim(name="cols", domain=(1, 4), tile=4, dtype=np.uint64) _attr_a = tiledb.Attr(name="a", dtype=np.uint64) _attr_b = tiledb.Attr(name="...
true
true
1c46bab99d58eea58a638a070fe13030e84bce32
14,212
py
Python
tensorflow/contrib/timeseries/examples/lstm.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/timeseries/examples/lstm.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/timeseries/examples/lstm.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
47.373333
88
0.700113
from __future__ import absolute_import from __future__ import division from __future__ import print_function import functools from os import path import tempfile import numpy import tensorflow as tf from tensorflow.contrib.timeseries.python.timeseries import estimators as ts_estimators fr...
true
true
1c46bc0e536a5b58bd77d13f7adfafa098ff3d02
2,906
py
Python
initialExp/classifiers/iscx_naive_bayes.py
bakkerjarr/NetTrafClassificationExploration
66febafcbe4820851784ae72c50a49c28fa91df4
[ "Apache-2.0" ]
null
null
null
initialExp/classifiers/iscx_naive_bayes.py
bakkerjarr/NetTrafClassificationExploration
66febafcbe4820851784ae72c50a49c28fa91df4
[ "Apache-2.0" ]
null
null
null
initialExp/classifiers/iscx_naive_bayes.py
bakkerjarr/NetTrafClassificationExploration
66febafcbe4820851784ae72c50a49c28fa91df4
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Jarrod N. Bakker # # 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 writi...
38.746667
74
0.63627
from numpy import float32 as np_float import numpy.core.multiarray as np_array from sklearn.naive_bayes import GaussianNB import iscx_result_calc as rc __author__ = "Jarrod N. Bakker" class NaiveBayesCls: NAME = "Naive_Bayes" def __init__(self, data, labels, skf): self._data = data ...
true
true
1c46bc96f2ea4fe428bfdde14733d08a8f455696
84,164
py
Python
core/domain/state_domain.py
SamriddhiMishra/oppia
9f239ce13c11e60e64ca7c04726a55755231d530
[ "Apache-2.0" ]
null
null
null
core/domain/state_domain.py
SamriddhiMishra/oppia
9f239ce13c11e60e64ca7c04726a55755231d530
[ "Apache-2.0" ]
null
null
null
core/domain/state_domain.py
SamriddhiMishra/oppia
9f239ce13c11e60e64ca7c04726a55755231d530
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2018 The Oppia 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 requi...
41.256863
80
0.624032
from __future__ import absolute_import from __future__ import unicode_literals import collections import copy import logging from constants import constants from core.domain import customization_args_util from core.domain import html_cleaner from core.domain import interaction_registry from core....
true
true
1c46bcd3d9c7631a1c1fc9bbcad0750ae3adc519
159
py
Python
src/dash_init.py
JavaScriipt/iHashTag
3b6e95fde0e4b7f35e074c0b0733f2b98bc7763a
[ "CC0-1.0" ]
null
null
null
src/dash_init.py
JavaScriipt/iHashTag
3b6e95fde0e4b7f35e074c0b0733f2b98bc7763a
[ "CC0-1.0" ]
null
null
null
src/dash_init.py
JavaScriipt/iHashTag
3b6e95fde0e4b7f35e074c0b0733f2b98bc7763a
[ "CC0-1.0" ]
null
null
null
import os file = open("resultados.txt", "w") file.write("Timestamp, Muy Positivos, Muy Negativos, Neutros, Negativos, Muy Negativos, Average\n") file.close()
26.5
99
0.735849
import os file = open("resultados.txt", "w") file.write("Timestamp, Muy Positivos, Muy Negativos, Neutros, Negativos, Muy Negativos, Average\n") file.close()
true
true
1c46bcdb1d10c9fe63a5f971609c2b06295d9890
1,926
py
Python
setup.py
wj-Mcat/python-wechaty-puppet-official-account
92e762b0345c1faab2563d6da302efa4de273425
[ "Apache-2.0" ]
null
null
null
setup.py
wj-Mcat/python-wechaty-puppet-official-account
92e762b0345c1faab2563d6da302efa4de273425
[ "Apache-2.0" ]
null
null
null
setup.py
wj-Mcat/python-wechaty-puppet-official-account
92e762b0345c1faab2563d6da302efa4de273425
[ "Apache-2.0" ]
null
null
null
""" setup """ import os import semver import setuptools def versioning(version: str) -> str: """ version to specification X.Y.Z -> X.Y.devZ """ sem_ver = semver.parse(version) major = sem_ver['major'] minor = sem_ver['minor'] patch = str(sem_ver['patch']) fin_ver = '%d.%d.%s' % ...
23.204819
76
0.609034
import os import semver import setuptools def versioning(version: str) -> str: sem_ver = semver.parse(version) major = sem_ver['major'] minor = sem_ver['minor'] patch = str(sem_ver['patch']) fin_ver = '%d.%d.%s' % ( major, minor, patch, ) return fin_ver def ge...
true
true
1c46bf0877dd01db082a6f46e72eeec5ee132dde
5,847
py
Python
scripts/inspect_un_data_sets.py
arwhyte/SI664-scripts
99daaac123ebdbfb0fbca59251f711efb9a7d39f
[ "MIT" ]
null
null
null
scripts/inspect_un_data_sets.py
arwhyte/SI664-scripts
99daaac123ebdbfb0fbca59251f711efb9a7d39f
[ "MIT" ]
null
null
null
scripts/inspect_un_data_sets.py
arwhyte/SI664-scripts
99daaac123ebdbfb0fbca59251f711efb9a7d39f
[ "MIT" ]
1
2018-12-08T16:43:45.000Z
2018-12-08T16:43:45.000Z
import logging import os import pandas as pd import sys as sys def main(argv=None): """ Utilize Pandas library to read in both UNSD M49 country and area .csv file (tab delimited) as well as the UNESCO heritage site .csv file (tab delimited). Extract regions, sub-regions, intermediate regions, country and areas, a...
43.962406
94
0.783308
import logging import os import pandas as pd import sys as sys def main(argv=None): if argv is None: argv = sys.argv msg = [ 'Source file read {0}', 'UNSD M49 regions written to file {0}', 'UNSD M49 sub-regions written to file {0}', 'UNSD M49 intermediate regions written to file {0}', 'UNSD M49 countri...
true
true
1c46bf9669398d790db830f2381d8c2ac1675ffc
4,642
py
Python
tests/unit/workflows/java_gradle/test_gradle.py
verdimrc/aws-lambda-builders
67f42dd936fd4f0c517c38acb8b6a170156549ec
[ "Apache-2.0" ]
1
2020-07-21T20:16:12.000Z
2020-07-21T20:16:12.000Z
tests/unit/workflows/java_gradle/test_gradle.py
verdimrc/aws-lambda-builders
67f42dd936fd4f0c517c38acb8b6a170156549ec
[ "Apache-2.0" ]
1
2020-06-26T12:36:39.000Z
2020-06-26T12:36:39.000Z
tests/unit/workflows/java_gradle/test_gradle.py
verdimrc/aws-lambda-builders
67f42dd936fd4f0c517c38acb8b6a170156549ec
[ "Apache-2.0" ]
1
2020-04-02T19:12:39.000Z
2020-04-02T19:12:39.000Z
import subprocess from unittest import TestCase from mock import patch from aws_lambda_builders.binary_path import BinaryPath from aws_lambda_builders.workflows.java_gradle.gradle import ( SubprocessGradle, GradleExecutionError, BuildFileNotFoundError, ) class FakePopen: def __init__(self, out=b"out...
40.719298
119
0.673632
import subprocess from unittest import TestCase from mock import patch from aws_lambda_builders.binary_path import BinaryPath from aws_lambda_builders.workflows.java_gradle.gradle import ( SubprocessGradle, GradleExecutionError, BuildFileNotFoundError, ) class FakePopen: def __init__(self, out=b"out...
true
true
1c46c13896c2f68690261b134a22b45479e29be0
4,599
py
Python
test/connector/exchange/crypto_com/test_crypto_com_order_book_tracker.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
3,027
2019-04-04T18:52:17.000Z
2022-03-30T09:38:34.000Z
test/connector/exchange/crypto_com/test_crypto_com_order_book_tracker.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
4,080
2019-04-04T19:51:11.000Z
2022-03-31T23:45:21.000Z
test/connector/exchange/crypto_com/test_crypto_com_order_book_tracker.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
1,342
2019-04-04T20:50:53.000Z
2022-03-31T15:22:36.000Z
#!/usr/bin/env python from os.path import join, realpath import sys; sys.path.insert(0, realpath(join(__file__, "../../../../../"))) import math import time import asyncio import logging import unittest from typing import Dict, Optional, List from hummingbot.core.event.event_logger import EventLogger from hummingbot.co...
42.583333
122
0.688845
from os.path import join, realpath import sys; sys.path.insert(0, realpath(join(__file__, "../../../../../"))) import math import time import asyncio import logging import unittest from typing import Dict, Optional, List from hummingbot.core.event.event_logger import EventLogger from hummingbot.core.event.events impor...
true
true
1c46c1a3d3a1d1d7895e4b0c6561df3c3c4494fb
4,771
py
Python
library/wait_for_pid.py
dusennn/clickhouse-ansible
e1fb665c2afc095c9a46087bf948b633e7bcd6f6
[ "Apache-2.0" ]
2
2021-09-27T10:16:17.000Z
2021-09-27T10:18:20.000Z
library/wait_for_pid.py
dusennn/clickhouse-ansible
e1fb665c2afc095c9a46087bf948b633e7bcd6f6
[ "Apache-2.0" ]
null
null
null
library/wait_for_pid.py
dusennn/clickhouse-ansible
e1fb665c2afc095c9a46087bf948b633e7bcd6f6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import binascii import datetime import math import re import select import socket import sys import time import os from ansible.module_utils._text import to_native def main(): module = AnsibleModule( argument_spec = dict( pid=dict(default=None, type=...
35.080882
123
0.530916
import binascii import datetime import math import re import select import socket import sys import time import os from ansible.module_utils._text import to_native def main(): module = AnsibleModule( argument_spec = dict( pid=dict(default=None, type='int'), pid_file=dict(default...
true
true
1c46c1ef0648d2c7242778c928e30f3a9eb9d157
2,205
py
Python
test/TEMPFILEPREFIX.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
1
2019-09-18T06:37:02.000Z
2019-09-18T06:37:02.000Z
test/TEMPFILEPREFIX.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
null
null
null
test/TEMPFILEPREFIX.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2001 - 2016 The SCons Foundation # # 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 us...
28.636364
96
0.730612
__revision__ = "test/TEMPFILEPREFIX.py rel_2.5.1:3735:9dc6cee5c168 2016/11/03 14:02:02 bdbaddog" """ Verify that setting the $TEMPFILEPREFIX variable will append to the beginning of the TEMPFILE invocation of a long command line. """ import os import stat import TestSCons test = TestSCons.Te...
false
true
1c46c33547965d1902ac5b6fd51ac5393e78bf60
3,694
py
Python
nengo/utils/tests/test_ensemble.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
nengo/utils/tests/test_ensemble.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
nengo/utils/tests/test_ensemble.py
HugoChateauLaurent/nengo
749893186ee09aa6c621a40da3ffd3878114db9c
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import import numpy as np import mpl_toolkits.mplot3d import pytest import nengo from nengo.dists import Uniform from nengo.utils.ensemble import response_curves, tuning_curves def plot_tuning_curves(plt, eval_points, activities): if eval_points.ndim <= 2: plt.plot(eval_p...
33.581818
79
0.692204
from __future__ import absolute_import import numpy as np import mpl_toolkits.mplot3d import pytest import nengo from nengo.dists import Uniform from nengo.utils.ensemble import response_curves, tuning_curves def plot_tuning_curves(plt, eval_points, activities): if eval_points.ndim <= 2: plt.plot(eval_p...
true
true
1c46c3bd574a713b7791ae587b09e515b813b794
584
py
Python
tock/employees/migrations/0024_auto_20171229_1156.py
mikiec84/tock
15318a45b2b144360e4d7e15db655467a45c2ab9
[ "CC0-1.0" ]
134
2015-02-02T18:42:03.000Z
2022-01-20T04:27:06.000Z
tock/employees/migrations/0024_auto_20171229_1156.py
mikiec84/tock
15318a45b2b144360e4d7e15db655467a45c2ab9
[ "CC0-1.0" ]
1,220
2015-03-19T01:57:30.000Z
2022-03-23T21:52:15.000Z
tock/employees/migrations/0024_auto_20171229_1156.py
mikiec84/tock
15318a45b2b144360e4d7e15db655467a45c2ab9
[ "CC0-1.0" ]
49
2015-03-09T15:44:33.000Z
2022-01-19T02:02:37.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2017-12-29 16:56 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('employees', '0023_userdata_organization'), ] opera...
26.545455
137
0.667808
from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('employees', '0023_userdata_organization'), ] operations = [ migrations.AlterField( model_name='userda...
true
true
1c46c3de0b7231d58a348ef921880f2a3b454ce7
64,803
py
Python
Base Converter/main.py
mrif449/simple-python-projects
1d57b861f2d54568ebab955722f782a351a57f21
[ "MIT" ]
null
null
null
Base Converter/main.py
mrif449/simple-python-projects
1d57b861f2d54568ebab955722f782a351a57f21
[ "MIT" ]
null
null
null
Base Converter/main.py
mrif449/simple-python-projects
1d57b861f2d54568ebab955722f782a351a57f21
[ "MIT" ]
null
null
null
print("Welcome to Base Converter Calculator!!!") print("You can select your calculation mode by entering the serial number, or write 'close' stop calculating.") print() print("Note: You can also close the whole program by pressing Enter after closing calculation menu or manually.") #Options: print("Basic Bases:"...
38.141848
114
0.290496
print("Welcome to Base Converter Calculator!!!") print("You can select your calculation mode by entering the serial number, or write 'close' stop calculating.") print() print("Note: You can also close the whole program by pressing Enter after closing calculation menu or manually.") print("Basic Bases:") print("...
true
true
1c46c40e2bfd9e44bd757c0752d89f57ed80ef32
9,575
py
Python
env/lib/python3.8/site-packages/plotly/graph_objs/scattergl/marker/colorbar/_tickformatstop.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/lib/python3.8/site-packages/plotly/graph_objs/scattergl/marker/colorbar/_tickformatstop.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/lib/python3.8/site-packages/plotly/graph_objs/scattergl/marker/colorbar/_tickformatstop.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scattergl.marker.colorbar" _path_str = "scattergl.marker.colorbar.tickformatstop" _v...
33.714789
85
0.571488
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): _parent_path_str = "scattergl.marker.colorbar" _path_str = "scattergl.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "...
true
true