hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
2d1cf11d73f6fac19809e537502c739b1f37b06c
9,013
py
Python
yapu/seaborn.py
pestrela/yapu
27acb067b89ef0eeaa3da2234141abf9d811e0ae
[ "MIT" ]
null
null
null
yapu/seaborn.py
pestrela/yapu
27acb067b89ef0eeaa3da2234141abf9d811e0ae
[ "MIT" ]
null
null
null
yapu/seaborn.py
pestrela/yapu
27acb067b89ef0eeaa3da2234141abf9d811e0ae
[ "MIT" ]
null
null
null
from imports.internal import * from .dict import * from .pandas import * ### ### source of these ideas: https://dsaber.com/2016/10/02/a-dramatic-tour-through-pythons-data-visualization-landscape-including-ggplot-and-altair/ ### def figsize_mpl_2_sns(figsize): size = figsize[0] aspect ...
29.55082
177
0.59625
2d1cf1f5503f184adb4f18770c537f4cf4c648ef
13,689
py
Python
scapy/scapy/contrib/cdp.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/contrib/cdp.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/contrib/cdp.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
#! /usr/bin/env python # scapy.contrib.description = Cisco Discovery Protocol # scapy.contrib.status = loads ############################################################################# # # # cdp.py --- Cisco Discovery Protocol (CDP) extensio...
36.310345
97
0.516473
2d1d191849ad09dcec9821dc11e35ba8d095ec39
422
py
Python
demo_complex.py
cknd/talkative_tracebacks
02516555ea4f070d15bc39d4b26b448ba686ff17
[ "MIT" ]
null
null
null
demo_complex.py
cknd/talkative_tracebacks
02516555ea4f070d15bc39d4b26b448ba686ff17
[ "MIT" ]
null
null
null
demo_complex.py
cknd/talkative_tracebacks
02516555ea4f070d15bc39d4b26b448ba686ff17
[ "MIT" ]
null
null
null
if __name__ == '__main__': import stackprinter from tests.source import Hovercraft try: Hovercraft().eels() except: # raise stackprinter.show(style='darkbg2', line_wrap=40, reverse=False, suppressed_pa...
30.142857
81
0.5
2d1d6cf45e008ff1a40ad7c3d66e3043f55d6d0f
1,068
py
Python
client/verta/verta/_swagger/_public/modeldb/model/ModeldbCodeVersion.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
835
2017-02-08T20:14:24.000Z
2020-03-12T17:37:49.000Z
client/verta/verta/_swagger/_public/modeldb/model/ModeldbCodeVersion.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
client/verta/verta/_swagger/_public/modeldb/model/ModeldbCodeVersion.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
170
2017-02-13T14:49:22.000Z
2020-02-19T17:59:12.000Z
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class ModeldbCodeVersion(BaseType): def __init__(self, git_snapshot=None, code_archive=None, date_logged=None): required = { "git_snapshot": False, "code_archive": False, "date_logged": False, } sel...
28.105263
77
0.680712
2d1dbdd2a5db6d415d562a1da8e14a32582bf6a2
1,837
py
Python
autotools/modelparser/excelmodelperfparser.py
LMiceOrg/Modelingtools
f372336d7c356dcf754db755f62165ba6961727a
[ "MIT" ]
1
2016-01-08T10:54:02.000Z
2016-01-08T10:54:02.000Z
autotools/modelparser/excelmodelperfparser.py
LMiceOrg/Modelingtools
f372336d7c356dcf754db755f62165ba6961727a
[ "MIT" ]
null
null
null
autotools/modelparser/excelmodelperfparser.py
LMiceOrg/Modelingtools
f372336d7c356dcf754db755f62165ba6961727a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Excel 格式 模型性能参数解析器   ExcelModelPerfParser Excel:实体模型名称 中文名称 变量名称 变量命名空间 变量中文名称 变量数据类型 粒度 单位 默认值 最小值 最大值 描述 数值 Start Row := 2 """ import excelsheetparser class ExcelModelPerfParser(excelsheetparser.ExcelSheetParser): def ParseExcelSheet(self, model, xl...
32.22807
138
0.588459
2d1e30fe71532b9f11cd98147ce58f8f2e6badf6
2,062
py
Python
src/python/graplctl/graplctl/aws/lib.py
grapl-security/grapl
24caa7fb4424645495d99fb338e2231fc4f66712
[ "Apache-2.0" ]
291
2020-04-24T03:40:06.000Z
2022-03-29T02:47:16.000Z
src/python/graplctl/graplctl/aws/lib.py
silocityit/grapl
3ec918cc4c0ce18fafff0a2917c726fa0fd0f1d0
[ "Apache-2.0" ]
848
2020-04-26T19:23:37.000Z
2022-03-31T16:57:39.000Z
src/python/graplctl/graplctl/aws/lib.py
silocityit/grapl
3ec918cc4c0ce18fafff0a2917c726fa0fd0f1d0
[ "Apache-2.0" ]
43
2020-04-27T20:59:18.000Z
2022-03-29T21:56:09.000Z
from grapl_common.grapl_logger import get_module_grapl_logger from mypy_boto3_dynamodb.service_resource import DynamoDBServiceResource, Table LOGGER = get_module_grapl_logger(log_to_stdout=True) def _wipe_dynamodb_table(table: Table) -> None: """ Based off https://stackoverflow.com/a/61641725 """ # g...
39.653846
149
0.736663
2d1e3d278176b791987c5ae48a3d20145387f4c2
4,910
py
Python
load_data.py
VascoLopes/Text-Classification
7eb04a43ea0ad379be406ecd0e6204a1fcbfddca
[ "MIT" ]
1
2022-03-13T07:29:49.000Z
2022-03-13T07:29:49.000Z
load_data.py
VascoLopes/Text-Classification
7eb04a43ea0ad379be406ecd0e6204a1fcbfddca
[ "MIT" ]
null
null
null
load_data.py
VascoLopes/Text-Classification
7eb04a43ea0ad379be406ecd0e6204a1fcbfddca
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ #https://github.com/prakashpandey9/Text-Classification-Pytorch import os import sys import torch from torch.nn import functional as F import numpy as np import torchtext import spacy from torchtext import data from torchtext import datasets from torchtext import vocab from torchtext.vocab import...
41.260504
214
0.654582
2d1e51c8131e4ed4778da2f48edb0a8bec43bc97
1,483
py
Python
chhotu/orders/migrations/0002_cart.py
roshan007/chhout.web.backend
a952a53d908fb0c648b8b7279130166c2054f502
[ "MIT" ]
null
null
null
chhotu/orders/migrations/0002_cart.py
roshan007/chhout.web.backend
a952a53d908fb0c648b8b7279130166c2054f502
[ "MIT" ]
null
null
null
chhotu/orders/migrations/0002_cart.py
roshan007/chhout.web.backend
a952a53d908fb0c648b8b7279130166c2054f502
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-07-14 15:27 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('products', '0002_auto_20160...
41.194444
144
0.632502
2d1e90e913bc5b30452d8d1ffffa8aeb1e949a80
31,148
py
Python
src/python/pants/backend/python/tasks/setup_py.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
src/python/pants/backend/python/tasks/setup_py.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/tasks/setup_py.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import inspect import itertools import os import shutil import subprocess import textwrap from abc import ABC, abstractmethod from collections import OrderedDict, defaultdict from pex.ins...
44.11898
109
0.633877
2d1e9b387ae1dcbd93013ee7c17a12c788b59f33
4,127
py
Python
auto3dgm/mesh/subsample.py
hkirvesl/auto3dgm
e2132a992616c430f60af4871a62c0167e0917da
[ "MIT" ]
null
null
null
auto3dgm/mesh/subsample.py
hkirvesl/auto3dgm
e2132a992616c430f60af4871a62c0167e0917da
[ "MIT" ]
null
null
null
auto3dgm/mesh/subsample.py
hkirvesl/auto3dgm
e2132a992616c430f60af4871a62c0167e0917da
[ "MIT" ]
null
null
null
""" TODO: Please fix this comment "Subsample (Class with Instance Attributes and Methods, and Static Methods)" "Class summary: Subsamples one or more meshes" "Constructor input: Optional parameters including…Number of points Subsample methodSet of meshes" "Instance attributes: Number of points Subsample method Set of m...
40.460784
104
0.615944
2d1ec5cd778ef1c4aa2334063f93d5cfb163e9e0
7,164
py
Python
env/graph_matching_env.py
JosepLeder/RL-Graph-Matching
5ea6b3beaf2a2f8d3739f64e7172a566d59d5468
[ "MIT" ]
null
null
null
env/graph_matching_env.py
JosepLeder/RL-Graph-Matching
5ea6b3beaf2a2f8d3739f64e7172a566d59d5468
[ "MIT" ]
null
null
null
env/graph_matching_env.py
JosepLeder/RL-Graph-Matching
5ea6b3beaf2a2f8d3739f64e7172a566d59d5468
[ "MIT" ]
null
null
null
import torch as th import numpy as np import networkx as nx from torch import Tensor from networkx.algorithms import isomorphism from utils.utils import topological_reconstruct, plot_graph, plot_digraph class GraphMatchingEnv(object): def __init__(self, args) -> None: self.args = args self.grap...
37.904762
141
0.597292
2d1ee93f1adf94b2500a2d44bd19bd7dbeeacad4
226
py
Python
terrascript/data/at_wat/ucodecov.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/at_wat/ucodecov.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/at_wat/ucodecov.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/at-wat/ucodecov.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:29:37 UTC) import terrascript class ucodecov_settings(terrascript.Data): pass __all__ = [ "ucodecov_settings", ]
17.384615
73
0.747788
2d1efa71800c803d635eac026bc5516ce7ee6a26
337
py
Python
src/shared/parameter/generation_scripts/type_map.py
jonl112/Software
61a028a98d5c0dd5e79bf055b231633290ddbf9f
[ "MIT" ]
null
null
null
src/shared/parameter/generation_scripts/type_map.py
jonl112/Software
61a028a98d5c0dd5e79bf055b231633290ddbf9f
[ "MIT" ]
null
null
null
src/shared/parameter/generation_scripts/type_map.py
jonl112/Software
61a028a98d5c0dd5e79bf055b231633290ddbf9f
[ "MIT" ]
null
null
null
CPP_TYPE_MAP = { "bool": "bool", "int": "int", "uint": "unsigned", "double": "double", "string": "std::string", "enum": "std::string", } PROTO_TYPE_MAP = { "bool": "bool", "int": "int32", "uint": "uint32", "double": "double", "float": "float", "enum": "string", "stri...
17.736842
28
0.480712
2d1f33d22caf733651ae3fe61a5534e3a0cad334
1,612
py
Python
alipay/aop/api/response/AlipayPcreditHuabeiAuthRefundApplyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayPcreditHuabeiAuthRefundApplyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayPcreditHuabeiAuthRefundApplyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayPcreditHuabeiAuthRefundApplyResponse(AlipayResponse): def __init__(self): super(AlipayPcreditHuabeiAuthRefundApplyResponse, self).__init__() self._auth_opt_id =...
28.785714
115
0.674318
2d1f4864056c213074f641743fa82a992bfdc8bc
23,466
py
Python
NavPython/IronPython/Lib/profile.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
76
2015-12-20T16:56:37.000Z
2021-12-13T09:40:48.000Z
NavPython/IronPython/Lib/profile.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
20
2015-04-20T12:09:12.000Z
2022-03-12T01:25:04.000Z
NavPython/IronPython/Lib/profile.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
24
2015-07-22T08:08:54.000Z
2021-12-28T06:56:09.000Z
#! /usr/bin/env python # # Class for profiling python code. rev 1.0 6/2/94 # # Based on prior profile module by Sjoerd Mullender... # which was hacked somewhat by: Guido van Rossum """Class for profiling Python code.""" # Copyright 1994, by InfoSeek Corporation, all rights reserved. # Written by James Roskind # # ...
37.848387
80
0.607645
2d1f5b444cfd4482404f55acf2f5601b1475d74e
5,039
py
Python
scripts/fix_failed_install.py
scottwedge/testrunner
eac59d7737e4c3d75cc705dfb7712bb9de69f482
[ "Apache-2.0" ]
null
null
null
scripts/fix_failed_install.py
scottwedge/testrunner
eac59d7737e4c3d75cc705dfb7712bb9de69f482
[ "Apache-2.0" ]
null
null
null
scripts/fix_failed_install.py
scottwedge/testrunner
eac59d7737e4c3d75cc705dfb7712bb9de69f482
[ "Apache-2.0" ]
null
null
null
from couchbase.bucket import Bucket from couchbase.n1ql import N1QLQuery import paramiko import sys if len(sys.argv) < 4: print("Usage: fix_failed_install.py <poolid> <osusername> <osuserpwd>") sys.exit(1) poolId = sys.argv[1] username = sys.argv[2] password = sys.argv[3] cb = Bucket('couchbase://172.23.105.1...
34.993056
100
0.586624
2d1f5d5f72a23a3af4e7aac823c97c079c1281fc
883
py
Python
udemy/python-beyond-the-basics-object-oriented-programming/my_progress/section_6_exceptions_assignment_4/test.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
udemy/python-beyond-the-basics-object-oriented-programming/my_progress/section_6_exceptions_assignment_4/test.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
udemy/python-beyond-the-basics-object-oriented-programming/my_progress/section_6_exceptions_assignment_4/test.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
3
2018-08-13T23:14:22.000Z
2019-01-11T22:50:07.000Z
""" Usages: ./test.py (reads out the entire config dict) ./test.py thatkey (prints the value associated with this key) ./test.py thiskey thisvalue (sets 'thiskey' and 'thisvalue' in the dict) """ import sys from assignment4 import ConfigDict cd = ConfigDict('revanalysis.config') # if 2 arguments on the c...
30.448276
84
0.673839
2d1f5e24dff8d95e2908eda4737f661067612f14
1,217
py
Python
utils/db.py
Davidbeltran99/maffin
d4a80ff5e2a3623f04e871a8d08a0b12e764cf9d
[ "MIT" ]
1
2019-12-30T04:49:02.000Z
2019-12-30T04:49:02.000Z
utils/db.py
Davidbeltran99/maffin
d4a80ff5e2a3623f04e871a8d08a0b12e764cf9d
[ "MIT" ]
null
null
null
utils/db.py
Davidbeltran99/maffin
d4a80ff5e2a3623f04e871a8d08a0b12e764cf9d
[ "MIT" ]
1
2021-01-09T20:12:04.000Z
2021-01-09T20:12:04.000Z
from motor import motor_asyncio as mongod client = mongod.AsyncIOMotorClient('localhost', 27017) db = client.maffin async def findOne(collection,query): found = await db[collection].find_one(query) return found def client(): return db async def clear(collection): if collection != "heartbeat": raise ValueError #...
25.354167
68
0.746097
2d1f6b4e7668efcfa68a372988ded13fc99df283
10,452
py
Python
electrum/plugins/hw_wallet/plugin.py
Snowgem/electrum-snowgem
00fed4af563930fd3a364694f8c38262059e98dc
[ "MIT" ]
2
2019-09-18T23:26:27.000Z
2019-09-21T16:39:18.000Z
electrum/plugins/hw_wallet/plugin.py
Snowgem/electrum-snowgem
00fed4af563930fd3a364694f8c38262059e98dc
[ "MIT" ]
null
null
null
electrum/plugins/hw_wallet/plugin.py
Snowgem/electrum-snowgem
00fed4af563930fd3a364694f8c38262059e98dc
[ "MIT" ]
8
2018-04-11T01:05:12.000Z
2020-03-24T22:26:30.000Z
#!/usr/bin/env python2 # -*- mode: python -*- # # Electrum - lightweight Bitcoin client # Copyright (C) 200 The Electrum developers # # 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 ...
41.149606
116
0.679679
2d1f6c6c04a32bba8bdc5e63cbba4948b19e5227
1,369
py
Python
setup.py
mikedingjan/django-svg-icons
f09a4bc6f87eee95c480dfafd95c75d2367ee2fd
[ "Apache-2.0" ]
5
2016-08-11T07:48:43.000Z
2018-08-01T18:56:21.000Z
setup.py
mikedingjan/django-svg-icons
f09a4bc6f87eee95c480dfafd95c75d2367ee2fd
[ "Apache-2.0" ]
3
2016-08-09T13:43:44.000Z
2017-11-02T09:03:22.000Z
setup.py
mikedingjan/django-svg-icons
f09a4bc6f87eee95c480dfafd95c75d2367ee2fd
[ "Apache-2.0" ]
2
2017-03-29T07:37:33.000Z
2018-10-25T17:19:51.000Z
import os import sys from setuptools import find_packages, setup PROJECT_DIR = os.path.dirname(__file__) sys.path.append(os.path.join(PROJECT_DIR, 'src')) from svg_icons import get_version # noqa isort:skip setup( name='django-svg-icons', version=get_version().replace(' ', '-'), author="Mike Dingjan",...
31.837209
73
0.621622
2d1fcd076751574de125e7607ebc357e150ba91c
1,875
py
Python
test/factory/test_text_loader_factory.py
sthagen/thombashi-pytablereader
b59859da6fdcc94035933dd253e6e380b04a233b
[ "MIT" ]
81
2017-03-18T02:57:29.000Z
2022-03-26T16:54:59.000Z
test/factory/test_text_loader_factory.py
sthagen/pytablereader
b59859da6fdcc94035933dd253e6e380b04a233b
[ "MIT" ]
4
2017-08-09T14:58:48.000Z
2020-04-17T12:59:29.000Z
test/factory/test_text_loader_factory.py
sthagen/pytablereader
b59859da6fdcc94035933dd253e6e380b04a233b
[ "MIT" ]
11
2017-05-02T16:23:59.000Z
2021-12-10T15:05:39.000Z
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import pytest import pytablereader as ptr class Test_TableTextLoaderFactory: @pytest.mark.parametrize(["value", "expected"], [[None, ValueError]]) def test_exception(self, value, expected): with pytest.raises(expected): ...
33.482143
73
0.6304
2d1fe04606da3354608092e89481c1e84d2db367
6,806
py
Python
src/streamlink/plugins/wwenetwork.py
zel4ever/streamlink
0e48e2f01a370fa83cabc27b067b6f72cd1b8d9d
[ "BSD-2-Clause" ]
1
2021-02-21T21:09:19.000Z
2021-02-21T21:09:19.000Z
src/streamlink/plugins/wwenetwork.py
zel4ever/streamlink
0e48e2f01a370fa83cabc27b067b6f72cd1b8d9d
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/plugins/wwenetwork.py
zel4ever/streamlink
0e48e2f01a370fa83cabc27b067b6f72cd1b8d9d
[ "BSD-2-Clause" ]
1
2020-08-12T08:27:22.000Z
2020-08-12T08:27:22.000Z
from __future__ import print_function import re from pprint import pprint import time from streamlink import PluginError from streamlink.cache import Cache from streamlink.plugin import Plugin, PluginArguments, PluginArgument from streamlink.plugin.api import http from streamlink.plugin.api import useragents from str...
39.569767
127
0.584778
2d20015f8f3f36aa01a8d91d6014e76735fd94ce
6,213
py
Python
examiner/pdf.py
JakobGM/WikiLinks
5743b1d4c3fefa66fcaa4d283436d2a3f0490604
[ "MIT" ]
6
2017-08-12T09:55:06.000Z
2019-09-03T08:05:21.000Z
examiner/pdf.py
JakobGM/WikiLinks
5743b1d4c3fefa66fcaa4d283436d2a3f0490604
[ "MIT" ]
57
2017-08-11T23:05:07.000Z
2022-03-11T23:32:12.000Z
examiner/pdf.py
JakobGM/WikiLinks
5743b1d4c3fefa66fcaa4d283436d2a3f0490604
[ "MIT" ]
1
2017-09-27T15:31:15.000Z
2017-09-27T15:31:15.000Z
import logging import subprocess from os import environ from pathlib import Path from statistics import mean from tempfile import TemporaryDirectory from typing import Optional, Union import pdftotext from tqdm import tqdm OCR_ENABLED = True logger = logging.getLogger() if environ.get('LC_ALL') != 'C' or environ...
32.7
81
0.594238
2d201544733ce99d09a3b5952a51523654207c43
1,900
py
Python
ssl_image_classification/algorithms/pimodel.py
JanMarcelKezmann/Semi-Supervised-Learning-Image-Classification
b32599d1a5f28beefb4f9a744087e1dc47bd9906
[ "MIT" ]
4
2021-04-16T18:56:46.000Z
2021-11-18T07:14:04.000Z
ssl_image_classification/algorithms/pimodel.py
JanMarcelKezmann/Semi-Supervised-Learning-Image-Classification
b32599d1a5f28beefb4f9a744087e1dc47bd9906
[ "MIT" ]
2
2022-02-05T16:55:14.000Z
2022-03-06T11:04:23.000Z
ssl_image_classification/algorithms/pimodel.py
JanMarcelKezmann/Semi-Supervised-Learning-Image-Classification
b32599d1a5f28beefb4f9a744087e1dc47bd9906
[ "MIT" ]
2
2022-02-08T12:43:49.000Z
2022-03-06T10:47:56.000Z
import tensorflow as tf from ..libml.data_augmentations import weak_augment, medium_augment, strong_augment def pi_model(x, u, height, width): """ Applies medium augmentations on inputs x and u returns augmented tensors. Args: x: tensor, labeled batch of images of shape [batch, height, ...
39.583333
103
0.701579
2d201ef8f7fc07063ff3e87a239f657113499ce8
1,834
py
Python
Assignment1/helper_functions.py
Iamlegend-Imani/LamData3
69c593c2a69a6894a3e3d8770737d3f9bd14e468
[ "MIT" ]
null
null
null
Assignment1/helper_functions.py
Iamlegend-Imani/LamData3
69c593c2a69a6894a3e3d8770737d3f9bd14e468
[ "MIT" ]
null
null
null
Assignment1/helper_functions.py
Iamlegend-Imani/LamData3
69c593c2a69a6894a3e3d8770737d3f9bd14e468
[ "MIT" ]
null
null
null
"""LambData - A collection of Data Science helper functions""" import pandas as pd import numpy as np import random from sklearn.model_selection import train_test_split import math import sys sys.setrecursionlimit(5000) lists = [0, 20, None, 100, 50, 30, None, 0, 20, 50] dg = pd.DataFrame(lists) df = pd.DataFrame() ...
31.084746
122
0.685932
2d202e8a4e1455ad6589c1656713423b790ef37a
4,239
py
Python
tests/components/thermostat/test_demo.py
SKarthick5121995/karthickmaduraai
d5498dfb83e9bb57fff16db854ae3e15c1e15425
[ "MIT" ]
null
null
null
tests/components/thermostat/test_demo.py
SKarthick5121995/karthickmaduraai
d5498dfb83e9bb57fff16db854ae3e15c1e15425
[ "MIT" ]
null
null
null
tests/components/thermostat/test_demo.py
SKarthick5121995/karthickmaduraai
d5498dfb83e9bb57fff16db854ae3e15c1e15425
[ "MIT" ]
null
null
null
"""The tests for the demo thermostat.""" import unittest from homeassistant.const import ( TEMP_CELCIUS, ) from homeassistant.components import thermostat from tests.common import get_test_home_assistant ENTITY_NEST = 'thermostat.nest' class TestDemoThermostat(unittest.TestCase): """Test the Heat Control ...
41.558824
77
0.679406
2d2038769e136bc38d45b48cbcf73d1af18913cc
6,811
py
Python
HW1/dbsys-hw1/Catalog/Schema.py
yliu120/dbsystem
d1b008f411929058a34a1dd2c44c9ee2cf899865
[ "Apache-2.0" ]
null
null
null
HW1/dbsys-hw1/Catalog/Schema.py
yliu120/dbsystem
d1b008f411929058a34a1dd2c44c9ee2cf899865
[ "Apache-2.0" ]
null
null
null
HW1/dbsys-hw1/Catalog/Schema.py
yliu120/dbsystem
d1b008f411929058a34a1dd2c44c9ee2cf899865
[ "Apache-2.0" ]
null
null
null
import json, re from collections import namedtuple from struct import Struct class Types: """ Utility functions for database types. The 'types' dictionary defines a mapping from user-facing type primitives to their representation in the Python 'struct' module, and a boolean indicating whether the type requi...
30.819005
92
0.638085
2d20614f5de21fd41e390b10bd930695fcd51fed
10,488
py
Python
AlphaGo/training/supervised_policy_trainer.py
mervynn/RocAlphaGo
7b3ea100e9602088b9ca9f7e5eff9c593e667649
[ "MIT" ]
1
2017-02-08T15:11:59.000Z
2017-02-08T15:11:59.000Z
AlphaGo/training/supervised_policy_trainer.py
mervynn/RocAlphaGo
7b3ea100e9602088b9ca9f7e5eff9c593e667649
[ "MIT" ]
null
null
null
AlphaGo/training/supervised_policy_trainer.py
mervynn/RocAlphaGo
7b3ea100e9602088b9ca9f7e5eff9c593e667649
[ "MIT" ]
null
null
null
import numpy as np import os import h5py as h5 import json from keras.optimizers import SGD from keras.callbacks import ModelCheckpoint, Callback from AlphaGo.models.policy import CNNPolicy def one_hot_action(action, size=19): """Convert an (x,y) action into a size x size array of zeros with a 1 at x,y """ ...
43.882845
220
0.672101
2d2068226dad872bfb5dc0a31c0c8d8cd8babe5f
4,291
py
Python
scripts/map_inverse.py
NinaCalvi/OKBC
e25ad0296137ed354593c74509b077a22f60425e
[ "MIT" ]
6
2020-07-06T14:31:18.000Z
2021-09-13T10:15:14.000Z
scripts/map_inverse.py
NinaCalvi/OKBC
e25ad0296137ed354593c74509b077a22f60425e
[ "MIT" ]
2
2021-09-12T17:49:09.000Z
2021-09-14T15:28:54.000Z
scripts/map_inverse.py
NinaCalvi/OKBC
e25ad0296137ed354593c74509b077a22f60425e
[ "MIT" ]
1
2021-06-07T01:46:44.000Z
2021-06-07T01:46:44.000Z
# This script is used to map the entity and relation names to their ids (as present in the fb15k dataset) import argparse import logging import os import pickle import time import numpy as np import pandas as pd def read_data(path): data = [] with open(path, "r", errors='ignore', encoding='ascii') as infile...
35.758333
105
0.632254
2d20952c330e479a23807f1471717c92c7a88503
1,518
py
Python
python/max_subarray.py
shauryachawla/misc
e50eb7c8979f9b3f7ecc43464cf7ccc91bf4d0bb
[ "MIT" ]
null
null
null
python/max_subarray.py
shauryachawla/misc
e50eb7c8979f9b3f7ecc43464cf7ccc91bf4d0bb
[ "MIT" ]
null
null
null
python/max_subarray.py
shauryachawla/misc
e50eb7c8979f9b3f7ecc43464cf7ccc91bf4d0bb
[ "MIT" ]
1
2019-10-07T08:22:09.000Z
2019-10-07T08:22:09.000Z
def max_cross_subarray(A, low, mid, high): s = ls = A[mid] i = mid-1 max_left = mid while (i >= low): s = s + A[i] if (s > ls): ls = s max_left = i i = i-1 s = rs = A[mid+1] j = mid+2 max_right = mid+1 while (j <= high): s = s + A[j...
29.192308
96
0.532279
2d20adcc98a23c6aebc751ab5f59ebf61be3a24d
6,765
py
Python
torchlib/models/dunet.py
CarlosPena00/pytorch-unet
8365bace23e4b04b9c5b75cd6720807ea8cac5ab
[ "MIT" ]
null
null
null
torchlib/models/dunet.py
CarlosPena00/pytorch-unet
8365bace23e4b04b9c5b75cd6720807ea8cac5ab
[ "MIT" ]
null
null
null
torchlib/models/dunet.py
CarlosPena00/pytorch-unet
8365bace23e4b04b9c5b75cd6720807ea8cac5ab
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.init as init from torch.autograd import Variable import torch.nn.functional as F import math __all__ = ['DUNet', 'dunet'] def dunet(pretrained=False, **kwargs): r"""UNet model architecture """ model = DUNet(**kwargs) if pretrained: pass ...
35.793651
132
0.585809
2d20afb6b64947c5f5a22e7a2a1d1b056d29fd47
64
py
Python
src/__main__.py
cawolfkreo/Caption-Users-Pictures-Bot
18bbf435a870e9abd5fdccad5ef79722847e4379
[ "MIT" ]
null
null
null
src/__main__.py
cawolfkreo/Caption-Users-Pictures-Bot
18bbf435a870e9abd5fdccad5ef79722847e4379
[ "MIT" ]
null
null
null
src/__main__.py
cawolfkreo/Caption-Users-Pictures-Bot
18bbf435a870e9abd5fdccad5ef79722847e4379
[ "MIT" ]
null
null
null
import bot as bot if __name__ == "__main__": bot.startBot()
16
26
0.671875
2d20b69bdcb393afd868e913f6851657499cacc7
8,904
py
Python
google/cloud/compute_v1/services/instance_groups/transports/base.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/instance_groups/transports/base.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/instance_groups/transports/base.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
35.474104
101
0.646451
2d20b810044e43d6206487ba7b1d4f89bc65ad85
6,802
py
Python
robograph/model/gnn.py
learndeep2020/RoboGraph
22e8aa045e5fc5d0928b287cc29c4cb145c5075c
[ "MIT" ]
7
2020-10-23T23:20:33.000Z
2022-01-04T16:16:40.000Z
robograph/model/gnn.py
learndeep2020/RoboGraph
22e8aa045e5fc5d0928b287cc29c4cb145c5075c
[ "MIT" ]
null
null
null
robograph/model/gnn.py
learndeep2020/RoboGraph
22e8aa045e5fc5d0928b287cc29c4cb145c5075c
[ "MIT" ]
3
2021-05-24T16:45:15.000Z
2021-12-15T05:40:15.000Z
import os.path as osp import torch import torch.nn.functional as F from torch.nn import Module, Linear, Dropout from torch.optim import Adam from torch_geometric.nn import global_mean_pool as gap from torch_geometric.nn import global_max_pool as gmp from torch_geometric.nn import GlobalAttention from torch_scatter imp...
31.059361
115
0.555719
2d20ed897c1c00379f11c95593dace6e34041fe4
5,417
py
Python
src/pysigner/playground_signer.py
tallywiesenberg/TellorAlgoSigner
05878deb5626ea05d99a534ef94a84ed5a89adc3
[ "MIT" ]
1
2021-09-02T15:04:16.000Z
2021-09-02T15:04:16.000Z
pysigner/playground_signer.py
oraclown/PySigner
64737c541d40254f95a6f6a53e6f61c8b1f8347b
[ "MIT" ]
12
2021-08-06T13:28:33.000Z
2022-01-25T14:10:18.000Z
pysigner/playground_signer.py
oraclown/PySigner
64737c541d40254f95a6f6a53e6f61c8b1f8347b
[ "MIT" ]
6
2021-07-16T16:41:37.000Z
2022-02-23T15:45:36.000Z
import os import time import requests from dotenv import find_dotenv from dotenv import load_dotenv from web3 import Web3 from web3.middleware import geth_poa_middleware load_dotenv(find_dotenv()) private_key = os.getenv("PRIVATEKEY") node = os.getenv("NODE") myName = "Tellor" w3 = Web3(Web3.HTTPProvider(node)) w3.m...
26.42439
92
0.573934
2d20ee42ccb2389da24a6038839bfb41a5deb8a8
47,709
py
Python
lib_drl/nets/network.py
chang010453/GRP-HAI
60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22
[ "MIT" ]
null
null
null
lib_drl/nets/network.py
chang010453/GRP-HAI
60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22
[ "MIT" ]
null
null
null
lib_drl/nets/network.py
chang010453/GRP-HAI
60f7c7633e33dbdd852f5df3e0a3d1017b6b2a22
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Tensorflow GRP-HAI-based Faster R-CNN detector. # Licensed under The MIT License [see LICENSE for details] # Partially written* by Aleksis Pirinen, rest is based on original code by # Xinlei Chen. # * All parts of GRP-HAI by Aleksis Pirinen # ----------------...
47.948744
115
0.591733
2d21276bb34e9fa051604dc5127454416da55b48
343
py
Python
tests/test_version.py
lnielsen/kpiit
a48c1c2ff807aa63b04b776d010f7e6da9cfc2e0
[ "MIT" ]
null
null
null
tests/test_version.py
lnielsen/kpiit
a48c1c2ff807aa63b04b776d010f7e6da9cfc2e0
[ "MIT" ]
11
2018-07-05T09:44:46.000Z
2019-08-26T08:57:39.000Z
tests/test_version.py
lnielsen/kpiit
a48c1c2ff807aa63b04b776d010f7e6da9cfc2e0
[ "MIT" ]
2
2018-06-25T13:49:32.000Z
2018-09-14T10:01:41.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2018 CERN. # # KPIit is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Simple test of version import.""" def test_version(): """Test version import.""" from kpiit import __version__ ...
22.866667
72
0.688047
2d21450863dbb35ad31cb74aec307f09807d5a33
1,198
py
Python
project/sound_store/migrations/0004_auto_20180202_2334.py
katesmr/SoundGeneration
d4e5892eedea69fcf2f4fbde75069f2002196a52
[ "MIT" ]
null
null
null
project/sound_store/migrations/0004_auto_20180202_2334.py
katesmr/SoundGeneration
d4e5892eedea69fcf2f4fbde75069f2002196a52
[ "MIT" ]
null
null
null
project/sound_store/migrations/0004_auto_20180202_2334.py
katesmr/SoundGeneration
d4e5892eedea69fcf2f4fbde75069f2002196a52
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-02-02 21:34 from django.conf import settings import django.contrib.auth.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), (...
26.043478
110
0.535893
2d215b89b919dd19ea6576b1657817cf8081634d
2,196
py
Python
tests/st/ops/ascend/vector/test_discontinous_mov_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/st/ops/ascend/vector/test_discontinous_mov_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/st/ops/ascend/vector/test_discontinous_mov_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
32.776119
133
0.622951
2d2169c310083f8b90cb64f8015331907129a6b0
20,380
py
Python
tensorflow/python/kernel_tests/map_stage_op_test.py
dongjiewhu/tensorflow
fac9b8830e967bb5dd9adc61f86a9b354c31744d
[ "Apache-2.0" ]
1
2017-06-28T10:56:40.000Z
2017-06-28T10:56:40.000Z
tensorflow/python/kernel_tests/map_stage_op_test.py
LaiPeter/tensorflow
08ed32dbb9e8f67eec9efce3807b5bdb3933eb2f
[ "Apache-2.0" ]
null
null
null
tensorflow/python/kernel_tests/map_stage_op_test.py
LaiPeter/tensorflow
08ed32dbb9e8f67eec9efce3807b5bdb3933eb2f
[ "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 applica...
36.588869
80
0.590383
2d218c91da3884cb5a3cf7ac90a429295a17ae9d
4,302
py
Python
deeppavlov/models/doc_retrieval/pop_ranker.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
1
2019-09-09T20:21:30.000Z
2019-09-09T20:21:30.000Z
deeppavlov/models/doc_retrieval/pop_ranker.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
null
null
null
deeppavlov/models/doc_retrieval/pop_ranker.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
1
2019-03-17T13:47:44.000Z
2019-03-17T13:47:44.000Z
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
41.365385
135
0.685495
2d219ebdc58ac328258188354fd2e9d315c5d903
720
py
Python
venv/Lib/site-packages/tests/test_081_ConnWrongUser.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_081_ConnWrongUser.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_081_ConnWrongUser.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
# # Licensed Materials - Property of IBM # # (c) Copyright IBM Corp. 2007-2008 # import unittest, sys import ibm_db import config from testfunctions import IbmDbTestFunctions class IbmDbTestCase(unittest.TestCase): def test_081_ConnWrongUser(self): obj = IbmDbTestFunctions() obj.assert_expect(self.run_t...
18
66
0.694444
2d21b100f806814fead32c81fdb9fba1281578be
4,758
py
Python
oscar/lib/python2.7/site-packages/IPython/sphinxext/custom_doctests.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/sphinxext/custom_doctests.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/sphinxext/custom_doctests.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
""" Handlers for IPythonDirective's @doctest pseudo-decorator. The Sphinx extension that provides support for embedded IPython code provides a pseudo-decorator @doctest, which treats the input/output block as a doctest, raising a RuntimeError during doc generation if the actual output (after running the input) d...
30.5
78
0.600462
2d21be245c1be19eeff3d504a5efcc4633190f14
26,258
py
Python
tasti.py
Novellogiampiero/RaspSources
57a98b3957426113fa8d1b0b0a75449948af3ca4
[ "Apache-2.0" ]
null
null
null
tasti.py
Novellogiampiero/RaspSources
57a98b3957426113fa8d1b0b0a75449948af3ca4
[ "Apache-2.0" ]
null
null
null
tasti.py
Novellogiampiero/RaspSources
57a98b3957426113fa8d1b0b0a75449948af3ca4
[ "Apache-2.0" ]
null
null
null
''' Created on 15 gen 2018 @author: novello ''' import struct import os import sys import binascii import sys import time import threading import math import collections import logging import binascii import canopen from pydac1 import DAC #from pycan import Can import shlex import subprocess import logging import tim...
32.987437
124
0.550232
2d21e49f14719fab88d5be924b7892682eefc64c
10,877
py
Python
tridesclous/gui/cataloguecontroller.py
rbodo/tridesclous
86f58eb8f076698245786c75e906514c7a914e48
[ "MIT" ]
1
2021-04-13T15:10:13.000Z
2021-04-13T15:10:13.000Z
tridesclous/gui/cataloguecontroller.py
rbodo/tridesclous
86f58eb8f076698245786c75e906514c7a914e48
[ "MIT" ]
null
null
null
tridesclous/gui/cataloguecontroller.py
rbodo/tridesclous
86f58eb8f076698245786c75e906514c7a914e48
[ "MIT" ]
null
null
null
from .myqt import QT import pyqtgraph as pg import numpy as np #import seaborn as sns from ..tools import median_mad, rgba_to_int32 from .. import labelcodes from ..catalogueconstructor import _persistent_metrics from .base import ControllerBase import time class CatalogueController(ControllerBase): ...
30.988604
101
0.626092
2d21fd18c97959e45ef9d0722fc7fbf6b952d4dc
1,336
py
Python
autoio-interfaces/elstruct/reader/_qchem5/__init__.py
lpratalimaffei/autoio
57be6e4882af1841153c19e7353e2531e64ce47f
[ "Apache-2.0" ]
null
null
null
autoio-interfaces/elstruct/reader/_qchem5/__init__.py
lpratalimaffei/autoio
57be6e4882af1841153c19e7353e2531e64ce47f
[ "Apache-2.0" ]
1
2022-02-15T19:35:14.000Z
2022-02-15T19:35:14.000Z
autoio-interfaces/elstruct/reader/_qchem5/__init__.py
lpratalimaffei/autoio
57be6e4882af1841153c19e7353e2531e64ce47f
[ "Apache-2.0" ]
13
2020-06-24T05:21:11.000Z
2021-05-05T19:58:30.000Z
""" QChem5 output reading module """ from elstruct.reader._qchem5.energ import energy from elstruct.reader._qchem5.surface import gradient from elstruct.reader._qchem5.surface import hessian from elstruct.reader._qchem5.surface import harmonic_frequencies from elstruct.reader._qchem5.surface import normal_coordinates ...
34.25641
69
0.804641
2d220136cac70c991b0a4544f3048293df00cb6b
1,405
py
Python
tests/nemo_text_processing/de/test_fraction.py
JMichaelStringer/NeMo
b5b29a69ccb0ec3d8c9ace2f33872ee99858a559
[ "Apache-2.0" ]
1
2021-09-10T10:40:51.000Z
2021-09-10T10:40:51.000Z
tests/nemo_text_processing/de/test_fraction.py
JMichaelStringer/NeMo
b5b29a69ccb0ec3d8c9ace2f33872ee99858a559
[ "Apache-2.0" ]
null
null
null
tests/nemo_text_processing/de/test_fraction.py
JMichaelStringer/NeMo
b5b29a69ccb0ec3d8c9ace2f33872ee99858a559
[ "Apache-2.0" ]
1
2022-01-07T03:39:11.000Z
2022-01-07T03:39:11.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
40.142857
111
0.775801
2d222dd2328cbe6cc7a5d7d63638bc0f59185e4f
116
py
Python
padertorch/train/__init__.py
sibange/padertorch
494692d877f04c66847c2943795b23aea488217d
[ "MIT" ]
62
2019-12-22T08:30:29.000Z
2022-03-22T11:02:59.000Z
padertorch/train/__init__.py
sibange/padertorch
494692d877f04c66847c2943795b23aea488217d
[ "MIT" ]
47
2020-01-06T09:23:47.000Z
2022-01-24T16:55:06.000Z
padertorch/train/__init__.py
sibange/padertorch
494692d877f04c66847c2943795b23aea488217d
[ "MIT" ]
13
2019-12-16T08:12:46.000Z
2021-11-08T14:37:06.000Z
from . import optimizer from . import trigger from . import hooks from . import trainer from . import runtime_tests
19.333333
27
0.784483
2d223985d8cf4c0e842f9c826e1b1f2f576cc048
23,744
py
Python
process_mimic.py
deepak-kaji/mimic-lstm
4900bb6fa3b4828000a18e35c534bb1b3f23dd05
[ "MIT" ]
73
2018-10-29T12:05:18.000Z
2022-02-04T10:37:12.000Z
process_mimic.py
deepak-kaji/mimic-lstm
4900bb6fa3b4828000a18e35c534bb1b3f23dd05
[ "MIT" ]
3
2019-10-05T15:10:03.000Z
2020-07-13T00:44:00.000Z
process_mimic.py
deepak-kaji/mimic-lstm
4900bb6fa3b4828000a18e35c534bb1b3f23dd05
[ "MIT" ]
27
2018-11-05T17:39:00.000Z
2021-12-01T09:12:26.000Z
import pickle import math import re import csv import concurrent.futures import os from functools import reduce from operator import add import pandas as pd import numpy as np ROOT = "./mimic_database/" ## Utilities ## def map_dict(elem, dictionary): if elem in dictionary: return dictionary[elem] e...
50.95279
200
0.536472
2d224838d7c086d0ce0c398941ceec0406876c97
431
py
Python
stochepi/evpytools/auxiliary.py
eeg-lanl/sarscov2-selection
c2087cbaf55de9930736aa6677a57008a2397583
[ "BSD-3-Clause" ]
null
null
null
stochepi/evpytools/auxiliary.py
eeg-lanl/sarscov2-selection
c2087cbaf55de9930736aa6677a57008a2397583
[ "BSD-3-Clause" ]
null
null
null
stochepi/evpytools/auxiliary.py
eeg-lanl/sarscov2-selection
c2087cbaf55de9930736aa6677a57008a2397583
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 def unzip(xs): return [x[0] for x in xs], [x[1] for x in xs] def unique(seq): """preserves the order (unlike list(set(seq)))""" seen = set() seen_add = seen.add return [x for x in seq if not (x in seen or seen_add(x))] def flatten(xss): if len(xss) >...
20.52381
61
0.584687
2d225d56bffb941a80a24285e53b041db2a568fc
18,504
py
Python
Tools/Scripts/webkitpy/layout_tests/views/printing.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/layout_tests/views/printing.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/layout_tests/views/printing.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2010, 2012 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions an...
46.144638
152
0.65775
2d2277ee127281c259c0826669af7e4cdc4368ad
1,054
py
Python
pkgcore/test/resolver/test_plan.py
pombreda/pkgcore
b438fc573af1a031d7ce12adbbf299bab5338451
[ "BSD-3-Clause" ]
1
2021-07-05T13:10:18.000Z
2021-07-05T13:10:18.000Z
pkgcore/test/resolver/test_plan.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
8
2015-03-24T14:21:44.000Z
2015-03-24T14:21:44.000Z
pkgcore/test/resolver/test_plan.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
null
null
null
# Copyright: 2007 Brian Harring <ferringb@gmail.com> # License: GPL2/BSD from snakeoil.currying import post_curry from pkgcore.resolver import plan from pkgcore.test import TestCase from pkgcore.test.misc import FakePkg class TestPkgSorting(TestCase): def check_it(self, sorter, vers, expected, iter_sort_target...
31.939394
73
0.66129
2d2291820b0bc188f69aa0f2b692615a67a12fc7
3,949
py
Python
seamo/support/coordinate.py
amandalynne/Seattle-Mobility-Index
f21d2fa6913ce9474aedc298e9e4a6e7c9390e64
[ "MIT" ]
3
2018-08-20T18:34:03.000Z
2018-10-02T23:41:52.000Z
seamo/support/coordinate.py
amandalynne/Seattle-Mobility-Index
f21d2fa6913ce9474aedc298e9e4a6e7c9390e64
[ "MIT" ]
null
null
null
seamo/support/coordinate.py
amandalynne/Seattle-Mobility-Index
f21d2fa6913ce9474aedc298e9e4a6e7c9390e64
[ "MIT" ]
1
2018-10-02T23:42:24.000Z
2018-10-02T23:42:24.000Z
import init import pandas as pd from math import sin, cos, sqrt, atan2, radians from geocoder import Geocoder import constants as cn import seamo_exceptions as se import data_accessor as daq class Coordinate: """ Coordinate class. """ def __init__(self, lat, lon): """ Initialize Coordin...
31.094488
89
0.599645
2d2292550204ad5247a8738c1448de35d1630726
6,201
py
Python
python/phonenumbers/carrier.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/carrier.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/carrier.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
null
null
null
"""Phone number to carrier mapping functionality >>> import phonenumbers >>> from phonenumbers.carrier import name_for_number >>> ro_number = phonenumbers.parse("+40721234567", "RO") >>> str(name_for_number(ro_number, "en")) 'Vodafone' >>> str(name_for_number(ro_number, "fr")) # fall back to English 'Vodafone' """ #...
43.978723
96
0.71295
2d22b29be4f17b83581064b5f8edf022c983d962
3,952
py
Python
app/tasks.py
indera/olass-server
7e230106f1436ab6e08f90e19435cc20ebdf71ff
[ "MIT" ]
null
null
null
app/tasks.py
indera/olass-server
7e230106f1436ab6e08f90e19435cc20ebdf71ff
[ "MIT" ]
null
null
null
app/tasks.py
indera/olass-server
7e230106f1436ab6e08f90e19435cc20ebdf71ff
[ "MIT" ]
1
2016-06-28T18:30:42.000Z
2016-06-28T18:30:42.000Z
""" Goal: store shortcuts to common tasks @authors: Andrei Sura <sura.andrei@gmail.com> """ import sys from invoke import task from tasks_utils import ask_yes_no, get_db_name, check_db_exists STATUS_PASS = '✔' STATUS_FAIL = '✗' @task def list(ctx): """ Show available tasks """ ctx.run('inv -l') @task...
28.431655
77
0.60754
2d22ba3c4c43d513dc1de9f0e179cdbde3009ef2
1,247
py
Python
tests/grab_xml_processing.py
dimichxp/grab
5fedee3009c18c8a1139b0f82736ebe473021b46
[ "MIT" ]
2,266
2015-01-01T08:47:33.000Z
2022-03-21T05:02:55.000Z
tests/grab_xml_processing.py
dimichxp/grab
5fedee3009c18c8a1139b0f82736ebe473021b46
[ "MIT" ]
221
2015-01-13T01:55:57.000Z
2022-02-25T23:23:35.000Z
tests/grab_xml_processing.py
dimichxp/grab
5fedee3009c18c8a1139b0f82736ebe473021b46
[ "MIT" ]
315
2015-01-23T06:38:55.000Z
2022-03-27T08:33:33.000Z
# coding: utf-8 from tests.util import build_grab from tests.util import BaseGrabTestCase class GrabXMLProcessingTestCase(BaseGrabTestCase): def setUp(self): self.server.reset() def test_xml_with_declaration(self): self.server.response['get.data'] =\ b'<?xml version="1.0" encoding...
34.638889
67
0.608661
2d22f8216818cb2bd0a283d391fdac1de9d4135a
5,576
py
Python
server/jobs/export_grades.py
okpy/ok
50a00190f05363d096478dd8e53aa1a36dd40c4a
[ "BSD-2-Clause" ]
148
2018-07-03T02:08:30.000Z
2022-03-26T04:03:35.000Z
server/jobs/export_grades.py
Cal-CS-61A-Staff/ok
1815772f3abf2c70d7434c6fcd7bda23e3e9a7ca
[ "Apache-2.0" ]
856
2015-01-10T04:27:20.000Z
2018-06-27T14:43:23.000Z
server/jobs/export_grades.py
Cal-CS-61A-Staff/ok
1815772f3abf2c70d7434c6fcd7bda23e3e9a7ca
[ "Apache-2.0" ]
69
2015-01-26T08:06:55.000Z
2018-06-25T12:46:03.000Z
import io import csv import datetime as dt from collections import defaultdict from sqlalchemy import func from server import jobs from server.models import Course, Enrollment, ExternalFile, db, GroupMember, Score from server.utils import encode_id, local_time from server.constants import STUDENT_ROLE TOTAL_KINDS = ...
35.069182
96
0.638989
2d2302a5488faa23f99970cd415f315c2776a40c
3,134
py
Python
rat-sql-gap/sparc_sample_reformat.py
JuruoMP/gap-exp
2d7af8a1da2f0ff8f9d3a2c6e15cc6383c716c05
[ "Apache-2.0" ]
null
null
null
rat-sql-gap/sparc_sample_reformat.py
JuruoMP/gap-exp
2d7af8a1da2f0ff8f9d3a2c6e15cc6383c716c05
[ "Apache-2.0" ]
null
null
null
rat-sql-gap/sparc_sample_reformat.py
JuruoMP/gap-exp
2d7af8a1da2f0ff8f9d3a2c6e15cc6383c716c05
[ "Apache-2.0" ]
null
null
null
import json IS_REORDER = False SEP = '<#>' def format_one_session(session_dict,is_train): isfinal = False return_jsons = [] database_id = session_dict["database_id"] interaction = session_dict["interaction"] for i in range(len(interaction)): query = interaction[i]["query"] if IS...
38.219512
134
0.606254
2d230696ebc2750efe2c8068092aafffe26f7555
353
py
Python
mudpi/extensions/sun/__init__.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
163
2020-02-17T16:34:54.000Z
2022-02-28T23:12:11.000Z
mudpi/extensions/sun/__init__.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
28
2020-05-05T19:42:25.000Z
2021-08-04T18:36:32.000Z
mudpi/extensions/sun/__init__.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
31
2020-02-27T18:30:42.000Z
2022-01-18T21:14:56.000Z
""" Sun Extension Includes interfaces for getting sunrise and sunset. """ from mudpi.extensions import BaseExtension class Extension(BaseExtension): namespace = 'sun' update_interval = 60 def init(self, config): """ Prepare the api connection and sun components """ self.confi...
18.578947
61
0.657224
2d2330291de1ac1b7bad30f85779f37d84900cc3
427
py
Python
apps/cms/migrations/0003_auto_20200128_1721.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
18
2017-06-12T09:58:02.000Z
2021-10-01T11:14:34.000Z
apps/cms/migrations/0003_auto_20200128_1721.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
276
2019-04-26T20:13:01.000Z
2022-03-31T10:26:28.000Z
apps/cms/migrations/0003_auto_20200128_1721.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
7
2018-03-13T23:44:26.000Z
2021-09-15T17:54:55.000Z
# Generated by Django 2.1.2 on 2020-01-28 17:21 from django.db import migrations import wagtail.core.fields class Migration(migrations.Migration): dependencies = [ ('cms', '0002_collectionspage_volumespage'), ] operations = [ migrations.AlterField( model_name='homepage', ...
21.35
64
0.627635
2d234d276138b1448e4af0aac9f74c81535b4ac4
3,540
py
Python
Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/image/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
3
2019-04-01T11:03:04.000Z
2019-12-31T02:17:15.000Z
Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/image/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-04-15T18:46:45.000Z
2021-04-15T18:46:45.000Z
Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/image/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-09-23T13:43:07.000Z
2021-09-23T13:43:07.000Z
"""Imports for Python API. This file is MACHINE GENERATED! Do not edit. Generated by: tensorflow/tools/api/generator/create_python_api.py script. """ from tensorflow.python.ops.gen_image_ops import crop_and_resize from tensorflow.python.ops.gen_image_ops import decode_and_crop_jpeg from tensorflow.python.ops.gen_image...
58.032787
73
0.879944
2d235e02e94c3b6253fb55fbf9286e8e5d5496a7
5,271
py
Python
wltp/invariants.py
JRCSTU/wltp
18650f372044371ed994a161a93473a75e76d2a9
[ "Apache-2.0" ]
11
2017-05-22T18:31:01.000Z
2021-11-08T12:20:07.000Z
wltp/invariants.py
JRCSTU/wltp
18650f372044371ed994a161a93473a75e76d2a9
[ "Apache-2.0" ]
11
2016-08-09T13:37:13.000Z
2020-03-31T20:33:20.000Z
wltp/invariants.py
JRCSTU/wltp
18650f372044371ed994a161a93473a75e76d2a9
[ "Apache-2.0" ]
6
2017-11-30T10:22:32.000Z
2020-12-03T14:04:55.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019-2020 European Commission (JRC); # Licensed under the EUPL (the 'Licence'); # You may not use this work except in compliance with the Licence. # You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl """ definitions & idempotent formulae f...
27.888889
103
0.616771
2d235f43f90b344e345dec1fb906b6dcc37edacf
854
py
Python
backend/server.py
matthewzhaocc/aws-xray-sample-app
b9f2ccda1fc91d5a5cca7b89112130c000abbb2e
[ "MIT" ]
null
null
null
backend/server.py
matthewzhaocc/aws-xray-sample-app
b9f2ccda1fc91d5a5cca7b89112130c000abbb2e
[ "MIT" ]
null
null
null
backend/server.py
matthewzhaocc/aws-xray-sample-app
b9f2ccda1fc91d5a5cca7b89112130c000abbb2e
[ "MIT" ]
null
null
null
"""the web api handler""" # system lib tools import os # the flask web controller import flask # xray middleware and controller from aws_xray_sdk.core import xray_recorder from aws_xray_sdk.ext.flask.middleware import XRayMiddleware # the classic app router app = flask.Flask(__name__) # xray mdlw xray_recorder.conf...
24.4
60
0.749415
2d23824db66b7a6b912e9c55f3f43d0b3ee4e30b
9,748
py
Python
nautobot_chatops/dispatchers/ms_teams.py
tanvimoharir/nautobot-plugin-chatops
8fe984b7918f02eb8015c4c0ae3df889688c7a12
[ "Apache-2.0" ]
null
null
null
nautobot_chatops/dispatchers/ms_teams.py
tanvimoharir/nautobot-plugin-chatops
8fe984b7918f02eb8015c4c0ae3df889688c7a12
[ "Apache-2.0" ]
null
null
null
nautobot_chatops/dispatchers/ms_teams.py
tanvimoharir/nautobot-plugin-chatops
8fe984b7918f02eb8015c4c0ae3df889688c7a12
[ "Apache-2.0" ]
null
null
null
"""Dispatcher impelementation for sending content to Microsoft Teams.""" import os import logging import requests from django.conf import settings from nautobot_chatops.metrics import backend_action_sum from .adaptive_cards import AdaptiveCardsDispatcher logger = logging.getLogger("rq.worker") # Create a metric to ...
42.017241
120
0.581658
2d238bc37c21f643d3632ff9de84a977cb0cbefd
846
py
Python
moving/database_setup.py
pxuanqui/Edge-Assisted-Cart
2edd1f7023ab0b02f5733e2e9204bac4623eeeac
[ "BSD-3-Clause" ]
27
2019-10-28T05:03:18.000Z
2021-06-09T00:16:22.000Z
moving/database_setup.py
pxuanqui/Edge-Assisted-Cart
2edd1f7023ab0b02f5733e2e9204bac4623eeeac
[ "BSD-3-Clause" ]
null
null
null
moving/database_setup.py
pxuanqui/Edge-Assisted-Cart
2edd1f7023ab0b02f5733e2e9204bac4623eeeac
[ "BSD-3-Clause" ]
6
2019-10-28T05:03:24.000Z
2020-11-25T02:54:58.000Z
import sys # for creating the mapper code from sqlalchemy import Column, ForeignKey, Integer, String # for configuration and class code from sqlalchemy.ext.declarative import declarative_base # for creating foreign key relationship between the tables from sqlalchemy.orm import relationship # for configuration from ...
25.636364
61
0.771868
2d2396eb994f5d9dfb85a0f5f38f0af7aa52dbac
11,476
py
Python
vissl/hooks/state_update_hooks.py
stjordanis/vissl
8800989f9bf073693b777c14ea01b585d4b306d6
[ "MIT" ]
2
2022-02-22T22:10:46.000Z
2022-02-23T07:12:05.000Z
vissl/hooks/state_update_hooks.py
stjordanis/vissl
8800989f9bf073693b777c14ea01b585d4b306d6
[ "MIT" ]
2
2021-07-25T15:46:07.000Z
2021-08-11T10:08:53.000Z
vissl/hooks/state_update_hooks.py
stjordanis/vissl
8800989f9bf073693b777c14ea01b585d4b306d6
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import time import torch from classy_vision import tasks from classy_vision.generic.profiler import ( compute_activations, ...
37.381107
137
0.65955
2d23a6400536e034bf8d1a5bd52ee168c01508d7
6,818
py
Python
superset/models/sql_lab.py
mapbased/incubator-superset
756f5b27204f234f66b1fe15d9cdbe977ac83273
[ "Apache-2.0" ]
108
2018-01-22T11:09:59.000Z
2021-01-15T10:53:04.000Z
superset/models/sql_lab.py
rockyCheung/incubator-superset
9423e9a8be1c0fc0bad8fbd2f04fe298d08469bf
[ "Apache-2.0" ]
112
2018-01-25T22:57:21.000Z
2019-08-22T20:08:48.000Z
superset/models/sql_lab.py
rockyCheung/incubator-superset
9423e9a8be1c0fc0bad8fbd2f04fe298d08469bf
[ "Apache-2.0" ]
24
2018-01-19T22:54:39.000Z
2020-11-12T13:04:25.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...
35.14433
76
0.665591
2d23b2c8481d7b33939869ea800ab61a7f085322
232
py
Python
app/main/error.py
Geerocktricks/News_journal
67b337bb7f082b772fbf5f45082e149e269d1023
[ "MIT" ]
1
2021-06-13T13:14:40.000Z
2021-06-13T13:14:40.000Z
app/main/error.py
Geerocktricks/News_journal
67b337bb7f082b772fbf5f45082e149e269d1023
[ "MIT" ]
null
null
null
app/main/error.py
Geerocktricks/News_journal
67b337bb7f082b772fbf5f45082e149e269d1023
[ "MIT" ]
null
null
null
from flask import render_template # from app import app from . import main @main.errorhandler(404) def four_Ow_four(error): ''' Function to render the 404 error page ''' return render_template('fourOwfour.html'),404
23.2
49
0.724138
2d23c2b5fbf4cede360cbc06e02d47abceeb0cc7
2,150
py
Python
test/example.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
9
2017-05-24T09:55:34.000Z
2020-06-22T03:55:51.000Z
test/example.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
97
2016-11-17T16:30:35.000Z
2021-10-09T00:27:56.000Z
test/example.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
3
2017-05-21T19:20:38.000Z
2019-11-04T23:53:59.000Z
# Copyright 2017 SrMouraSilva # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
33.59375
86
0.754419
2d23ccf14fd933f4a2b080603abd6685cfc110d0
361
py
Python
flask_resources/version.py
fenekku/flask-resources
47a6672a771b7c209199a2613ae6da9d96a70a5b
[ "MIT" ]
null
null
null
flask_resources/version.py
fenekku/flask-resources
47a6672a771b7c209199a2613ae6da9d96a70a5b
[ "MIT" ]
null
null
null
flask_resources/version.py
fenekku/flask-resources
47a6672a771b7c209199a2613ae6da9d96a70a5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # Flask-Resources is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Version information for Flask-Resources. This file is imported by ``flask_resources.__init__``, and parsed by ...
24.066667
76
0.706371
2d23d39692458377b92a7c70f79fe0458cf702fe
150
py
Python
slackchatbakery/views/arguments/homepage.py
The-Politico/django-politico-slackchat-2018-midterms-bakery
77b82ce95f510c142254332255adc615833bcffb
[ "MIT" ]
null
null
null
slackchatbakery/views/arguments/homepage.py
The-Politico/django-politico-slackchat-2018-midterms-bakery
77b82ce95f510c142254332255adc615833bcffb
[ "MIT" ]
9
2018-10-19T20:12:23.000Z
2021-06-08T19:30:27.000Z
slackchatbakery/views/arguments/homepage.py
The-Politico/django-politico-slackchat-2018-midterms-bakery
77b82ce95f510c142254332255adc615833bcffb
[ "MIT" ]
null
null
null
from .base import BaseArgument class Homepage(BaseArgument): name = "slackchatbakery-homepage-pin" arg = "pin" path = "stubs/homepage/"
18.75
41
0.693333
2d23f18211c9b649efa5c345110ee8f8d2973c96
352
py
Python
setup.py
gatlinnewhouse/pyhubb
82a95e274061c5d3c2ee556fd47a05a7930220ef
[ "MIT" ]
1
2021-06-14T18:17:15.000Z
2021-06-14T18:17:15.000Z
setup.py
gatlinnewhouse/pyhubb
82a95e274061c5d3c2ee556fd47a05a7930220ef
[ "MIT" ]
1
2021-07-29T17:08:41.000Z
2021-07-29T17:08:41.000Z
setup.py
gatlinnewhouse/pyhubb
82a95e274061c5d3c2ee556fd47a05a7930220ef
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='pyhubb', packages=find_packages(include=['pyhubb']), version='0.1.0', description='Python Library for the Hubb.me API', author='Gatlin Newhouse', license='MIT', install_requires=['requests','json','pickle','collections','os','time','f...
27.076923
83
0.667614
2d23f18423b9f02e37fcca57a71a1aa4ddc2aac7
607
py
Python
sudoku_solver/ui/ui_constants.py
stopwhispering/comprehensible-sudoku-solver
2591293255c549e270debb95bc602efb7d0a94c3
[ "MIT" ]
null
null
null
sudoku_solver/ui/ui_constants.py
stopwhispering/comprehensible-sudoku-solver
2591293255c549e270debb95bc602efb7d0a94c3
[ "MIT" ]
null
null
null
sudoku_solver/ui/ui_constants.py
stopwhispering/comprehensible-sudoku-solver
2591293255c549e270debb95bc602efb7d0a94c3
[ "MIT" ]
null
null
null
from enum import Enum MARGIN = 30 # px around board; enlarge to allow for more buttons CELL_LENGTH = 60 # width of every board cell. WIDTH = HEIGHT = MARGIN * 2 + CELL_LENGTH * 9 # Width and height of the whole board BUTTONS_WIDTH = 650 CANDIDATE_LENGTH = CELL_LENGTH / 3 VALUE_FONT_SIZE = 36 CANDIDATE_FONT_SIZE = 1...
26.391304
84
0.69687
2d2414691b92c9309193a03db3e4a0f5e219ea31
3,478
py
Python
tests/providers/googledrive/test_metadata.py
laurenrevere/waterbutler
4f358d94376997cd9592b18b67d13a7482c7aa2a
[ "Apache-2.0" ]
null
null
null
tests/providers/googledrive/test_metadata.py
laurenrevere/waterbutler
4f358d94376997cd9592b18b67d13a7482c7aa2a
[ "Apache-2.0" ]
null
null
null
tests/providers/googledrive/test_metadata.py
laurenrevere/waterbutler
4f358d94376997cd9592b18b67d13a7482c7aa2a
[ "Apache-2.0" ]
null
null
null
import pytest import os from urllib.parse import quote from waterbutler.providers.googledrive.provider import GoogleDrivePath from waterbutler.providers.googledrive.provider import GoogleDrivePathPart from waterbutler.providers.googledrive.metadata import GoogleDriveRevision from waterbutler.providers.googledrive.met...
36.610526
83
0.712766
2d24149edc00de4956944bfa8acf5536bea3de5d
443
py
Python
config.py
Josephshitandi/News-API
dc5513b7beeab62b96add945cd4139184e0337fc
[ "MIT" ]
null
null
null
config.py
Josephshitandi/News-API
dc5513b7beeab62b96add945cd4139184e0337fc
[ "MIT" ]
null
null
null
config.py
Josephshitandi/News-API
dc5513b7beeab62b96add945cd4139184e0337fc
[ "MIT" ]
null
null
null
import os class Config: NEWS_API_BASE_URL ='http://newsapi.org/v2/everything?q={}&apiKey={}' CATEG_API_BASE_URL = 'https://newsapi.org/v2/top-headlines?country=de&category={}&apiKey={}' NEWS_API_KEY = os.environ.get('NEWS_API_KEY') SECRET_KEY = os.environ.get('SECRET_KEY') class ProdConfig(Config): ...
22.15
96
0.711061
2d24817ad8ee534fdd04e54e84220442462dc001
1,947
py
Python
exchangelib/__init__.py
dmcgee/exchangelib
b2f7006835393132bdf2cfb416ba44f847c8bbf2
[ "BSD-2-Clause" ]
null
null
null
exchangelib/__init__.py
dmcgee/exchangelib
b2f7006835393132bdf2cfb416ba44f847c8bbf2
[ "BSD-2-Clause" ]
null
null
null
exchangelib/__init__.py
dmcgee/exchangelib
b2f7006835393132bdf2cfb416ba44f847c8bbf2
[ "BSD-2-Clause" ]
null
null
null
from __future__ import unicode_literals from .account import Account from .attachments import FileAttachment, ItemAttachment from .autodiscover import discover from .configuration import Configuration from .credentials import DELEGATE, IMPERSONATION, Credentials, OAuth2Credentials from .ewsdatetime import EWSDate, EWS...
40.5625
111
0.749358
2d248a7b2768bc5c0e40cd90397adc389bf02ea0
153
py
Python
mtp_bank_admin/apps/bank_admin/management/commands/create_refund_file.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-bank-admin
b210cfd947ecdc7f50fd77f5023076ad400446b6
[ "MIT" ]
3
2016-01-05T12:21:44.000Z
2016-12-22T15:57:49.000Z
mtp_bank_admin/apps/bank_admin/management/commands/create_refund_file.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-bank-admin
b210cfd947ecdc7f50fd77f5023076ad400446b6
[ "MIT" ]
60
2015-08-13T12:44:38.000Z
2022-02-01T17:36:05.000Z
mtp_bank_admin/apps/bank_admin/management/commands/create_refund_file.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-bank-admin
b210cfd947ecdc7f50fd77f5023076ad400446b6
[ "MIT" ]
2
2018-12-17T03:17:41.000Z
2021-04-11T06:23:54.000Z
from bank_admin.refund import get_refund_file from . import FileGenerationCommand class Command(FileGenerationCommand): function = get_refund_file
21.857143
45
0.836601
2d24d012d2d35c941f39f478e4cdb2ee792ca4d8
5,454
py
Python
savu/plugins/centering/centering360_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
null
null
null
savu/plugins/centering/centering360_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
null
null
null
savu/plugins/centering/centering360_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
null
null
null
from savu.plugins.plugin_tools import PluginTools class Centering360Tools(PluginTools): """A plugin to calculate the centre of rotation """ def define_parameters(self): """ preview: visibility: basic dtype: preview description: A slice list of required...
47.842105
1,129
0.590576
2d2538b416ab5db4fbe2b4dccdcbd50e11045202
258
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/data/alt_format_995.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/alt_format_995.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/data/alt_format_995.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. 995 metadata""" from ..phonemetadata import NumberFormat PHONE_ALT_FORMAT_995 = [NumberFormat(pattern='(\\d{2})(\\d)(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4 \\5', leading_digits_pattern=['[348]'])]
51.6
151
0.627907
2d254c99534c61fccedea355376922623dac7410
2,378
py
Python
action/category_manager.py
tea2code/recipe_manager
042741c81f6c2b5c28fabebb339f4d9a0680fd53
[ "MIT" ]
6
2015-03-10T22:34:45.000Z
2020-11-21T02:29:27.000Z
action/category_manager.py
tea2code/recipe_manager
042741c81f6c2b5c28fabebb339f4d9a0680fd53
[ "MIT" ]
null
null
null
action/category_manager.py
tea2code/recipe_manager
042741c81f6c2b5c28fabebb339f4d9a0680fd53
[ "MIT" ]
1
2020-11-21T02:35:37.000Z
2020-11-21T02:35:37.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from action import base_manager from entity import category from helper import hint from helper import translator class CategoryManager(base_manager.BaseManager): """ Handle category related actions. Member: db -- The database connection. hints -- List of hi...
33.971429
81
0.576955
2d259ec795c9e2688e18e2fe2443fadcdfcc4dab
6,792
py
Python
config/kcc_config.py
YifanQie/Deep_Learning_for_Manufacturing
9ba19e41f69c561b04b8573ab9c52c0969f45bfd
[ "MIT" ]
27
2019-10-31T15:16:13.000Z
2022-03-29T03:56:57.000Z
config/kcc_config.py
YifanQie/Deep_Learning_for_Manufacturing
9ba19e41f69c561b04b8573ab9c52c0969f45bfd
[ "MIT" ]
4
2020-03-25T14:18:04.000Z
2022-02-10T00:34:58.000Z
config/kcc_config.py
YifanQie/Deep_Learning_for_Manufacturing
9ba19e41f69c561b04b8573ab9c52c0969f45bfd
[ "MIT" ]
7
2020-02-23T22:12:37.000Z
2021-12-08T20:14:41.000Z
"""The Process Parameter/KCC configuration file consists of parameters of each KCC of the assembly system. This is required for sampling/active learning strategy. Each KCC is appended as a dictionary in a list of KCCs. Each KCC has the following parameters :param kcc_struct[index]['kcc_id']: Un...
30.321429
256
0.43404
2d259f2ce2d6c01ad8f8cc4bdcb4c90b6ea779c7
5,642
py
Python
features/steps/util.py
AI-App/kedro-docker
0c25522595baf1f2fa06a42fc693f6a094fed9d9
[ "Apache-2.0" ]
6
2022-01-21T07:37:05.000Z
2022-03-31T09:41:29.000Z
features/steps/util.py
AI-App/kedro-docker
0c25522595baf1f2fa06a42fc693f6a094fed9d9
[ "Apache-2.0" ]
7
2022-01-20T10:59:29.000Z
2022-03-30T17:59:12.000Z
features/steps/util.py
AI-App/kedro-docker
0c25522595baf1f2fa06a42fc693f6a094fed9d9
[ "Apache-2.0" ]
1
2022-03-29T09:12:00.000Z
2022-03-29T09:12:00.000Z
"""Common functions for e2e testing.""" import tempfile import urllib import venv from pathlib import Path from threading import Thread from time import sleep, time from typing import Any, Callable, List import docker from kedro.framework.cli.utils import get_pkg_version class WaitForException(Exception): pass ...
26.866667
88
0.657214
2d25a638ffe0f56ce93401fc7de23cd337d0ae92
5,070
py
Python
src/python/tests/appengine/handlers/base_handler_test.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
null
null
null
src/python/tests/appengine/handlers/base_handler_test.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
1
2019-06-07T21:29:28.000Z
2019-06-07T21:29:28.000Z
src/python/tests/appengine/handlers/base_handler_test.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.704225
78
0.716174
2d25c359bda89e9ad25839bfc3e4ebe6ac311c22
1,723
py
Python
plotter/plot_winner_coins.py
willjwon/isye6739-project-summer-2021
05b6621fb09fa55c5351482d145f196b57321351
[ "MIT" ]
null
null
null
plotter/plot_winner_coins.py
willjwon/isye6739-project-summer-2021
05b6621fb09fa55c5351482d145f196b57321351
[ "MIT" ]
null
null
null
plotter/plot_winner_coins.py
willjwon/isye6739-project-summer-2021
05b6621fb09fa55c5351482d145f196b57321351
[ "MIT" ]
null
null
null
from typing import Dict import pickle import pandas as pd import os import matplotlib.pyplot as plt import seaborn as sns def load_simulation_data() -> (Dict, pd.DataFrame): with open(file='../simulation_result/simulation_result.pickle', mode='rb') as file: load_data = pickle.load(file=file) configs ...
30.22807
96
0.679048
2d25c5ec99391e5ebee008993d782b1ff96ecfb6
482
py
Python
alipay/aop/api/response/AlipayOpenMiniInnerversionPackageCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayOpenMiniInnerversionPackageCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayOpenMiniInnerversionPackageCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayOpenMiniInnerversionPackageCreateResponse(AlipayResponse): def __init__(self): super(AlipayOpenMiniInnerversionPackageCreateResponse, self).__init__() def parse_r...
30.125
120
0.798755
2d25ef44d32b5e8ef844cc003c95c54dfe5ae866
1,845
py
Python
experiments/state_distance/iclr2018/cheetah_xpos_results.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/state_distance/iclr2018/cheetah_xpos_results.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/state_distance/iclr2018/cheetah_xpos_results.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
from rlkit.misc.data_processing import Experiment import matplotlib.pyplot as plt import numpy as np from rlkit.misc.visualization_util import sliding_mean mb_trials = Experiment( "/home/vitchyr/git/railrl/data/doodads3/12-30-cheetah-xpos-increase-distance/", criteria={ 'algorithm': 'Model-Based-Dagge...
28.828125
83
0.646612
2d26374d61c277f7c36bdf784ff2efedc8913b4e
9,494
py
Python
whoville/cloudbreak/models/file_system_response.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/file_system_response.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/file_system_response.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Cloudbreak API Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud...
27.518841
984
0.581209
2d2649705cf763d638718acd18e6bfc893c10faa
6,305
py
Python
pygraph/graph.py
KIodine/pygraph
68f0975cfc130fe6bfd8a36dd347efc57acc0799
[ "MIT" ]
null
null
null
pygraph/graph.py
KIodine/pygraph
68f0975cfc130fe6bfd8a36dd347efc57acc0799
[ "MIT" ]
1
2021-03-30T04:03:33.000Z
2021-03-30T08:19:29.000Z
pygraph/graph.py
KIodine/pygraph
68f0975cfc130fe6bfd8a36dd347efc57acc0799
[ "MIT" ]
1
2021-03-30T04:15:08.000Z
2021-03-30T04:15:08.000Z
from typing import ( List, Set, Mapping, Hashable, Callable ) from .minheap import ( MinHeap, ) from .unionfind import UFNode from .exceptions import ( GraphException, ) class Vertex(): def __init__(self, ident: Hashable): # TODO: Add a `uf_node` member and ...
33.010471
89
0.539413
2d2656928035e8ffc7da64efa893be750658bf14
3,896
py
Python
modgrid.py
redouanelg/qgsw-DI
5e8d9129ae9b853e80aa3cc4330539e0152731fc
[ "MIT" ]
3
2020-07-17T07:43:13.000Z
2021-11-30T11:27:00.000Z
modgrid.py
redouanelg/qgsw-DI
5e8d9129ae9b853e80aa3cc4330539e0152731fc
[ "MIT" ]
null
null
null
modgrid.py
redouanelg/qgsw-DI
5e8d9129ae9b853e80aa3cc4330539e0152731fc
[ "MIT" ]
2
2019-11-23T06:16:24.000Z
2021-11-30T11:27:01.000Z
import numpy as numpy from math import cos,sin,pi,isnan class grid(): def __init__(self,SSH,c,snu,lon,lat): ny,nx,=numpy.shape(SSH) mask=numpy.zeros((ny,nx))+2 mask[:2,:]=1 mask[:,:2]=1 mask[-3:,:]=1 mask[:,-3:]=1 dx=numpy.zeros((ny,nx)) dy=numpy.zeros((ny,nx)) #f0=numpy.zeros(...
27.828571
86
0.542094
2d266aa9ca8cdedb896fbf60e336b917c07888aa
92
py
Python
management/pycom_functions/close_network_wlan.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
2
2021-04-03T13:19:32.000Z
2022-01-03T00:38:55.000Z
management/pycom_functions/close_network_wlan.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
management/pycom_functions/close_network_wlan.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
"""Closes WLAN""" def close_network(network): network.disconnect() network.deinit()
18.4
27
0.684783
2d2676cc6a7b3926611d0002e478dc196204175f
14,048
py
Python
troveclient/compat/common.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
46
2015-01-14T12:26:24.000Z
2021-01-05T12:54:03.000Z
troveclient/compat/common.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
3
2015-05-22T19:58:11.000Z
2021-04-30T06:12:21.000Z
troveclient/compat/common.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
34
2015-01-21T12:33:53.000Z
2021-10-13T00:29:35.000Z
# Copyright 2011 OpenStack Foundation # # 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 l...
32.976526
79
0.567269
2d268c8528db6c0fe2a25fe00223777eee3f9683
1,814
py
Python
music/api.py
RossLote/cloudplayer
aec24b6ea2fdae365e62c9dfc7f366ef9cc84d73
[ "MIT" ]
null
null
null
music/api.py
RossLote/cloudplayer
aec24b6ea2fdae365e62c9dfc7f366ef9cc84d73
[ "MIT" ]
null
null
null
music/api.py
RossLote/cloudplayer
aec24b6ea2fdae365e62c9dfc7f366ef9cc84d73
[ "MIT" ]
null
null
null
from . import serializers from django.http import Http404 from rest_framework.generics import ListAPIView, RetrieveAPIView from rest_framework.mixins import ListModelMixin, RetrieveModelMixin from rest_framework.response import Response from rest_framework import viewsets from rest_framework import status from rest_fra...
31.275862
72
0.837927
2d26a8d5b056a6e57e5e1c44c10eda2ecf04358c
787
py
Python
23-Machine-Learning-for-TimeSeries-Data-in-Python/02-Time Series as Inputs to a Model/Engineering spectral features.py
AndreasFerox/DataCamp
41525d7252f574111f4929158da1498ee1e73a84
[ "MIT" ]
1
2021-01-31T20:51:10.000Z
2021-01-31T20:51:10.000Z
23-Machine-Learning-for-TimeSeries-Data-in-Python/02-Time Series as Inputs to a Model/Engineering spectral features.py
AndreasFerox/DataCamp
41525d7252f574111f4929158da1498ee1e73a84
[ "MIT" ]
null
null
null
23-Machine-Learning-for-TimeSeries-Data-in-Python/02-Time Series as Inputs to a Model/Engineering spectral features.py
AndreasFerox/DataCamp
41525d7252f574111f4929158da1498ee1e73a84
[ "MIT" ]
null
null
null
## Engineering spectral features import librosa as lr # Calculate the spectral centroid and bandwidth for the spectrogram bandwidths = lr.feature.spectral_bandwidth(S=spec)[0] centroids = lr.feature.spectral_centroid(S=spec)[0] ________________________________________________________________ from librosa.core import...
34.217391
93
0.797967
2d26b85a51c01638746cf8c331f237d604e4361d
2,416
py
Python
tests/rules/test_result.py
manycoding/arche
5c5ea7707e799e214193ae0ce3ec60e39f533afc
[ "MIT" ]
52
2019-03-18T21:12:59.000Z
2022-01-24T05:49:23.000Z
tests/rules/test_result.py
manycoding/arche
5c5ea7707e799e214193ae0ce3ec60e39f533afc
[ "MIT" ]
173
2019-03-18T15:50:14.000Z
2019-12-09T18:03:07.000Z
tests/rules/test_result.py
manycoding/arche
5c5ea7707e799e214193ae0ce3ec60e39f533afc
[ "MIT" ]
21
2019-03-20T17:14:22.000Z
2022-01-30T18:33:22.000Z
from arche.rules.result import Level, Message, Result, Outcome from conftest import create_named_df, create_result, get_report_from_iframe import pandas as pd import pytest @pytest.mark.parametrize( "source, target", [(("summary", "details", {"err": ["1"]}), ("summary", "details", {"err": ["1"]}))], ) def tes...
27.454545
87
0.533113
2d26dd8cb30355725a0fcc1746fd78096ac04e86
6,131
py
Python
future/notebooks.py
alpinedatalabs/python-alpine-api
2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7
[ "MIT" ]
null
null
null
future/notebooks.py
alpinedatalabs/python-alpine-api
2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7
[ "MIT" ]
8
2017-03-07T01:23:22.000Z
2019-10-24T22:45:46.000Z
future/notebooks.py
alpinedatalabs/python-alpine-api
2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7
[ "MIT" ]
3
2017-03-13T11:15:19.000Z
2019-03-24T21:47:05.000Z
# TODO Not finished yet """Notebooks""" def run_notebook(self, workspace_id, user_id, payload, command_to_execute): # e.g. notebook_url = "http://10.10.0.199:8000/api/v1.0/run_notebook_in_docker" notebook_url = "{0}/v1.0/{1}".format(self.base_url, command_to_execute) url = self._add_token_to_url(notebook...
41.425676
143
0.700701
2d270b3758fc771990ae696df7928af87e48bd81
1,362
py
Python
unifier/apps/core/migrations/0004_auto_20210216_1316.py
sosolidkk/manga-unifier
4cca148affbb197b9284d46ef04c66d42d96c03a
[ "MIT" ]
6
2021-03-25T14:55:36.000Z
2021-05-25T15:12:41.000Z
unifier/apps/core/migrations/0004_auto_20210216_1316.py
sosolidkk/manga-unifier
4cca148affbb197b9284d46ef04c66d42d96c03a
[ "MIT" ]
6
2021-02-19T12:32:26.000Z
2021-03-25T16:54:40.000Z
unifier/apps/core/migrations/0004_auto_20210216_1316.py
sosolidkk/manga-unifier
4cca148affbb197b9284d46ef04c66d42d96c03a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-16 13:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0003_auto_20210216_1230'), ] operations = [ migrations.AlterField( model_name='image', name='path', ...
30.954545
99
0.574156
2d2721240422ac3a0c1ad1be9b754cdab4d82026
1,667
py
Python
production/pygsl-0.9.5/examples/siman.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
null
null
null
production/pygsl-0.9.5/examples/siman.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
null
null
null
production/pygsl-0.9.5/examples/siman.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
1
2018-10-02T06:18:07.000Z
2018-10-02T06:18:07.000Z
#!/usr/bin/env python """ Simulated Annealing The pythonic version of the simple example from the gsl reference document. """ # Author: Pierre Schnizer # Date : December 2003 import pygsl._numobj as numx import pygsl.siman as siman import pygsl.rng as rng # how many points do we try before stepping N_TRIES = 200 ...
23.814286
85
0.578884
2d2753446b2f75df3c905d3d3e143bc1693c08b3
296
py
Python
test/python/LIM2Metrics/py3/base/common/Python043/Python043.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
20
2015-06-16T17:39:10.000Z
2022-03-20T22:39:40.000Z
test/python/LIM2Metrics/py3/base/common/Python043/Python043.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
29
2015-12-29T19:07:22.000Z
2022-03-22T10:39:02.000Z
test/python/LIM2Metrics/py3/base/common/Python043/Python043.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
12
2015-08-28T01:22:18.000Z
2021-09-25T08:17:31.000Z
a = 1 b = 2 c = 3 e = 4 f = 5 g = 6 bo = True bo2 = False sztring = "test" lista = [a,b,c] lista2 = [e,f,g] lista3 = (a,c) exec('l=lista+lista2') print("lista+lista2=",l) exec('t = f*g') print("f*g=",t) exec('z=a+b+g') print("z=", z) exec('z2= a&b^b&c | a&c^c&e') print("z2=", z2)
9.548387
29
0.5
2d275371efd612f256f8aeafa1c2a0ad8ace4dc6
650
py
Python
venv/bin/rst2xml.py
oktayuyar/RobotAppiumProject
29f7a744f6a15e3aba1f5fe8cd8b93f96c96044e
[ "MIT" ]
null
null
null
venv/bin/rst2xml.py
oktayuyar/RobotAppiumProject
29f7a744f6a15e3aba1f5fe8cd8b93f96c96044e
[ "MIT" ]
1
2021-06-02T00:48:18.000Z
2021-06-02T00:48:18.000Z
venv/bin/rst2xml.py
oktayuyar/RobotAppiumProject
29f7a744f6a15e3aba1f5fe8cd8b93f96c96044e
[ "MIT" ]
null
null
null
#!/Users/sahabt/PycharmProjects/RobotAppiumProject/venv/bin/python # $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Docutils XML. """ try: ...
27.083333
70
0.749231
2d275885ef7a073a9106c4811dfbeaf40207edfe
3,479
py
Python
ethereum/opcodes.py
isaiahgenis/Ethereum-Python
295975d393be3b74f7bd7dc89ce45f9d973e225a
[ "MIT" ]
5
2016-09-12T15:26:11.000Z
2018-09-17T20:27:15.000Z
ethereum/opcodes.py
isaiahgenis/Ethereum-Python
295975d393be3b74f7bd7dc89ce45f9d973e225a
[ "MIT" ]
null
null
null
ethereum/opcodes.py
isaiahgenis/Ethereum-Python
295975d393be3b74f7bd7dc89ce45f9d973e225a
[ "MIT" ]
2
2016-09-12T07:04:30.000Z
2017-02-24T20:56:59.000Z
# schema: [opcode, ins, outs, gas] opcodes = { 0x00: ['STOP', 0, 0, 0], 0x01: ['ADD', 2, 1, 3], 0x02: ['MUL', 2, 1, 5], 0x03: ['SUB', 2, 1, 3], 0x04: ['DIV', 2, 1, 5], 0x05: ['SDIV', 2, 1, 5], 0x06: ['MOD', 2, 1, 5], 0x07: ['SMOD', 2, 1, 5], 0x08: ['ADDMOD', 3, 1, 8], 0x09: ['MU...
30.517544
61
0.518252