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
08aa2983a2fed0448ec8e1d3cab014b5bab678c9
1,905
py
Python
setup.py
Russell-Ryan/aXeConfig
ff52e1981b825a075372c682cb6034cfeec58213
[ "MIT" ]
null
null
null
setup.py
Russell-Ryan/aXeConfig
ff52e1981b825a075372c682cb6034cfeec58213
[ "MIT" ]
null
null
null
setup.py
Russell-Ryan/aXeConfig
ff52e1981b825a075372c682cb6034cfeec58213
[ "MIT" ]
1
2019-09-25T14:51:04.000Z
2019-09-25T14:51:04.000Z
from setuptools import setup,find_packages import os import shutil import urllib.request import wget # the data dir datadir=os.path.join('h5axeconfig','data') if not os.path.isdir(datadir): os.mkdir(datadir) rooturl='http://www.stsci.edu/~rryan/pyLINEAR/calibrations/' with urllib.request.urlopen(roo...
34.636364
128
0.629396
08aa30aff835858fafc902a3ba4ff2641a40cc40
11,922
py
Python
models/excord/modeling_auto.py
princeton-nlp/cqa-evaluation
5784d6830b7907b11ae1e3110ccd920187bee533
[ "MIT" ]
18
2022-01-10T14:37:27.000Z
2022-01-29T01:27:28.000Z
models/excord/modeling_auto.py
princeton-nlp/cqa-evaluation
5784d6830b7907b11ae1e3110ccd920187bee533
[ "MIT" ]
1
2022-03-21T01:51:17.000Z
2022-03-21T01:51:17.000Z
models/excord/modeling_auto.py
princeton-nlp/EvalConvQA
c3b6c57ebf8432d2bf5cf2b068d478d94ac14977
[ "MIT" ]
1
2022-01-11T01:59:16.000Z
2022-01-11T01:59:16.000Z
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # 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...
57.043062
142
0.659537
08aa55c6ff42bb593af5f3a31f0f533ed786ebac
3,322
py
Python
run.py
Galaxy-SynBioCAD/rpReport_image
c536c2572da561822078f5ca1cb26a5c9abc8b36
[ "MIT" ]
null
null
null
run.py
Galaxy-SynBioCAD/rpReport_image
c536c2572da561822078f5ca1cb26a5c9abc8b36
[ "MIT" ]
null
null
null
run.py
Galaxy-SynBioCAD/rpReport_image
c536c2572da561822078f5ca1cb26a5c9abc8b36
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Created on March 17 2020 @author: Melchior du Lac @description: rpOptBioDes """ import argparse import tempfile import os import logging import shutil import docker import glob def main(inputfile, input_format, output, pathway_id='rp_pathway'): """Call the d...
34.604167
127
0.558098
08aa5a565636723d8a767c1d8cd16a14ba2bf29a
202
py
Python
dskc/clean/row.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
dskc/clean/row.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
dskc/clean/row.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
def delete_row_column_is_nan(df, column): ''' :param df: pandas dataframe :param column: column name :return: dataframe without nan types ''' df = df.dropna(subset=[column]) return df
18.363636
41
0.683168
08aa64e7a9803e7330c5a0aaab7be87ce7a65fbb
7,901
py
Python
libweasyl/libweasyl/models/helpers.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
111
2016-05-18T04:18:18.000Z
2021-11-03T02:05:19.000Z
libweasyl/libweasyl/models/helpers.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
1,103
2016-05-29T05:17:53.000Z
2022-03-31T18:12:40.000Z
libweasyl/libweasyl/models/helpers.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
47
2016-05-29T20:48:37.000Z
2021-11-12T09:40:40.000Z
import contextlib import json import arrow from sqlalchemy.dialects.postgresql import HSTORE from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.ext.mutable import Mutable, MutableDict from sqlalchemy import types from ..legacy import UNIXTIME_OFFSET from .. import ratings def reverse_dict(d): ret...
28.941392
97
0.590938
08aa6a23f816327a48a2a356c55a57eed09526c1
23,539
py
Python
graphinvent/parameters/defaults.py
gooaah/GraphINVENT
12f56c0c7b97619f9aa4cd0a718b80abe77f482b
[ "MIT" ]
211
2020-08-24T23:52:49.000Z
2022-03-25T02:05:23.000Z
graphinvent/parameters/defaults.py
gooaah/GraphINVENT
12f56c0c7b97619f9aa4cd0a718b80abe77f482b
[ "MIT" ]
9
2021-03-11T07:18:49.000Z
2022-03-22T11:52:34.000Z
graphinvent/parameters/defaults.py
gooaah/GraphINVENT
12f56c0c7b97619f9aa4cd0a718b80abe77f482b
[ "MIT" ]
44
2020-08-25T01:32:23.000Z
2022-03-23T15:50:37.000Z
""" Defines default model parameters, hyperparameters, and settings. Recommended not to modify the default settings here, but rather create an input file with the modified parameters in a new job directory (see README). **Used as an alternative to using argparser, as there are many variables.** """ # load general packa...
53.255656
92
0.532096
08aa86b3de0e970ee001af4deddd8b5fd85145f7
72,515
py
Python
test/unit/common/middleware/test_keystoneauth.py
aerwin3/swift
96c1838a15645639154f1048285d53a891809937
[ "Apache-2.0" ]
null
null
null
test/unit/common/middleware/test_keystoneauth.py
aerwin3/swift
96c1838a15645639154f1048285d53a891809937
[ "Apache-2.0" ]
null
null
null
test/unit/common/middleware/test_keystoneauth.py
aerwin3/swift
96c1838a15645639154f1048285d53a891809937
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 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 law or agreed to ...
47.241042
79
0.582804
08aa8fbfc0aee43b50b958ea625e62fab9d56a2a
9,580
py
Python
src/utils/DataAndGatesPlotter.py
disiji/fc_differentiable
65d6cbb3e0e41862744366c045fa06b6dc2d99a5
[ "MIT" ]
2
2019-11-23T03:14:33.000Z
2022-01-18T20:00:27.000Z
src/utils/DataAndGatesPlotter.py
disiji/fc_differentiable
65d6cbb3e0e41862744366c045fa06b6dc2d99a5
[ "MIT" ]
null
null
null
src/utils/DataAndGatesPlotter.py
disiji/fc_differentiable
65d6cbb3e0e41862744366c045fa06b6dc2d99a5
[ "MIT" ]
2
2019-04-09T00:18:44.000Z
2022-01-01T10:43:25.000Z
import seaborn as sb import utils.utils_load_data as dh from utils.bayes_gate import ModelTree class DataAndGatesPlotter(): ''' Class to handle plotting the data and gates attributes: model: the model whose gates to plot data: the data to plot filtered_data: data filtered along t...
36.425856
90
0.599791
08aab758b93e6b1b21e984d016ca4971469e6d59
308
py
Python
portals/wwits/groups/communication/confirm_page/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/groups/communication/confirm_page/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/groups/communication/confirm_page/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
from dataclasses import dataclass @dataclass class ParmModel: Version: str Env: str Source: str Session: int UserID: str CSRCode: str ConfirmType: str PageRefNo: str WorkOrder: str RC: int ResultMsg: str @dataclass class ConfirmPageModel: Parms: ParmModel
14
33
0.668831
08aafe4e69ee0d514b20446849b5ef02748544f2
292
py
Python
applications/diario_obra/models/util.py
DayvsonWellerson/gotochurchWeb
7e2cb05d208191b04c93f110e6bef7fad3cd9f88
[ "BSD-3-Clause" ]
null
null
null
applications/diario_obra/models/util.py
DayvsonWellerson/gotochurchWeb
7e2cb05d208191b04c93f110e6bef7fad3cd9f88
[ "BSD-3-Clause" ]
null
null
null
applications/diario_obra/models/util.py
DayvsonWellerson/gotochurchWeb
7e2cb05d208191b04c93f110e6bef7fad3cd9f88
[ "BSD-3-Clause" ]
null
null
null
class obj(object): def __init__(self, d): for a, b in d.items(): if isinstance(b, (list, tuple)): setattr(self, a, [obj(x) if isinstance(x, dict) else x for x in b]) else: setattr(self, a, obj(b) if isinstance(b, dict) else b)
41.714286
82
0.520548
08ab04d1acf2af0baf566edd7492e348644d354c
2,843
py
Python
dragonfire/coref.py
Booteille/Dragonfire
17d67c89d46a0f29cee99239109fddfccc5e6ab3
[ "MIT" ]
1
2019-07-11T05:48:43.000Z
2019-07-11T05:48:43.000Z
dragonfire/coref.py
AzureMentor/Dragonfire
a3c034ab672b14329ed465dc39d944a6ec42872f
[ "MIT" ]
2
2022-02-10T06:30:37.000Z
2022-02-10T06:50:22.000Z
dragonfire/coref.py
Allyn69/Dragonfire
4c0e873e0bee3553bf14dfb1dded85e7fa515434
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ .. module:: coref :platform: Unix :synopsis: the top-level submodule of Dragonfire that aims to create corefference based dialogs. .. moduleauthor:: Mehmet Mert Yıldıran <mert.yildiran@bil.omu.edu.tr> """ import itertools # Functions creating iterators for effi...
29.010204
171
0.551178
08ab3319eb82dc98c6dd83dc0a1f90d3e1d38abd
797
py
Python
master/doingmath_code/doingmath_code/chapter7/solutions/length_curve.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/doingmath_code/doingmath_code/chapter7/solutions/length_curve.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/doingmath_code/doingmath_code/chapter7/solutions/length_curve.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
''' length_curve.py Find the length of a curve between two points ''' from sympy import Derivative, Integral, Symbol, sqrt, SympifyError, sympify def find_length(fx, var, a, b): deriv = Derivative(fx, var).doit() length = Integral(sqrt(1+deriv**2), (var, a, b)).doit().evalf() return length if __name__ =...
29.518519
102
0.622334
08ab4b3a5c887bc12fe618757ff9a16846c1114a
10,355
py
Python
lbrynet/extras/cli.py
Leopere/lbry
af43b21ef6a5de5ce1fee21425bea6f8d6bf335f
[ "MIT" ]
null
null
null
lbrynet/extras/cli.py
Leopere/lbry
af43b21ef6a5de5ce1fee21425bea6f8d6bf335f
[ "MIT" ]
null
null
null
lbrynet/extras/cli.py
Leopere/lbry
af43b21ef6a5de5ce1fee21425bea6f8d6bf335f
[ "MIT" ]
null
null
null
import os import sys import pathlib import json import asyncio import argparse import logging import logging.handlers from docopt import docopt import aiohttp from aiohttp.web import GracefulExit from lbrynet import __name__ as lbrynet_name, __version__ as lbrynet_version from lbrynet.extras.daemon.loggly_handler imp...
33.29582
109
0.632738
08ab8d863bde945149045ca08ff25c2c6198937d
1,065
py
Python
alipay/aop/api/response/AlipayOpenSearchBrandserviceBatchqueryResponse.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/AlipayOpenSearchBrandserviceBatchqueryResponse.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/AlipayOpenSearchBrandserviceBatchqueryResponse.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 from alipay.aop.api.domain.BoxExclusiveServiceData import BoxExclusiveServiceData class AlipayOpenSearchBrandserviceBatchqueryResponse(AlipayResponse): def __init__(self): super(Al...
32.272727
119
0.676995
08ab8e20bffba37a55719813acc9c681a1871364
5,629
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/list_container_item.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/list_container_item.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/list_container_item.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "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 ...
47.302521
139
0.667259
08aba5fdf8a1dcc891b9e95c431b2d425f180127
10,005
py
Python
ckan/logic/validators.py
jasonzou/ckan
d7006805cce5a7cc10901d18895f9fee2de04886
[ "BSD-3-Clause" ]
1
2016-02-11T04:51:21.000Z
2016-02-11T04:51:21.000Z
ckan/logic/validators.py
jasonzou/ckan
d7006805cce5a7cc10901d18895f9fee2de04886
[ "BSD-3-Clause" ]
null
null
null
ckan/logic/validators.py
jasonzou/ckan
d7006805cce5a7cc10901d18895f9fee2de04886
[ "BSD-3-Clause" ]
null
null
null
import re import datetime from pylons.i18n import _, ungettext, N_, gettext from ckan.lib.navl.dictization_functions import Invalid, Missing, missing, unflatten from ckan.authz import Authorizer from ckan.logic import check_access, NotAuthorized from ckan.lib.helpers import date_str_to_datetime from ckan.model import (...
31.168224
107
0.641479
08abedebf6e0ee9b5a9e3afe60adfeb6fda01bb1
1,723
py
Python
flask_blog/loggers.py
dmitriyvek/flask-blog
86e94f9a9bdae682061bb26662da9649f6a4e6ab
[ "MIT" ]
null
null
null
flask_blog/loggers.py
dmitriyvek/flask-blog
86e94f9a9bdae682061bb26662da9649f6a4e6ab
[ "MIT" ]
null
null
null
flask_blog/loggers.py
dmitriyvek/flask-blog
86e94f9a9bdae682061bb26662da9649f6a4e6ab
[ "MIT" ]
null
null
null
import os import logging from flask_blog.services import init_logs INFO_LOG_FILE_LOCATION = os.path.join( os.path.dirname(os.path.abspath(__file__)), '../log/app/info.log') ERROR_LOG_FILE_LOCATION = os.path.join( os.path.dirname(os.path.abspath(__file__)), '../log/app/error.log') def get_main_logger(): ...
33.134615
71
0.686013
08ac071d8228e27a3f04d5c1345eb30d6ff1e05c
2,170
py
Python
JDjango/api/propertys.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
3
2020-12-28T05:09:02.000Z
2021-06-23T10:02:03.000Z
JDjango/api/propertys.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
JDjango/api/propertys.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
import json from .. settings import KV_PATH with open(KV_PATH, encoding='utf-8') as f: PROPERTY_CONFIGS = json.load(f) class Propertys: PROPERTY_CONFIGS = PROPERTY_CONFIGS def __init__(self) -> None: pass @classmethod def combine_objs(cls): """整合所有的属性对象""" combine_objs = [] ...
28.933333
67
0.576498
08ac3b82063fe6c26088ebc3543e642224fe5068
691
py
Python
beanstalkt/demo.py
nephics/beanstalkt
d30ccc420ff26125e354d9ac125598e456869b71
[ "Apache-2.0" ]
9
2015-02-11T06:40:59.000Z
2020-04-28T12:54:36.000Z
beanstalkt/demo.py
nephics/beanstalkt
d30ccc420ff26125e354d9ac125598e456869b71
[ "Apache-2.0" ]
null
null
null
beanstalkt/demo.py
nephics/beanstalkt
d30ccc420ff26125e354d9ac125598e456869b71
[ "Apache-2.0" ]
5
2015-04-01T02:28:48.000Z
2021-02-17T00:22:59.000Z
#!/usr/bin/env python # encoding: utf-8 import tornado.ioloop import beanstalkt import tornado.gen client = beanstalkt.Client() @tornado.gen.coroutine def foo(): yield client.connect() yield client.use("beanstalkt-demo") yield client.put(b"A job to work on") yield client.watch("beanstalkt-demo") ...
19.742857
44
0.674385
08ac68065160a2254f1e6563f7fb9e55708f4a1a
1,882
py
Python
util/visualization_BScan.py
SiavashMT/OCT-MPS
1fe8a8c25063ef3cee8b96128f20d040ac613ba7
[ "MIT" ]
18
2018-03-12T01:15:47.000Z
2021-08-09T15:20:56.000Z
util/visualization_BScan.py
SiavashMT/OCT-MPS
1fe8a8c25063ef3cee8b96128f20d040ac613ba7
[ "MIT" ]
5
2019-03-18T05:49:44.000Z
2021-07-02T08:14:05.000Z
util/visualization_BScan.py
SiavashMT/OCT-MPS
1fe8a8c25063ef3cee8b96128f20d040ac613ba7
[ "MIT" ]
7
2019-04-01T02:47:50.000Z
2021-11-15T07:59:57.000Z
import matplotlib matplotlib.use('Qt5Agg') from matplotlib import pyplot as plt from src.python.octmps_output import parse_OCTMPS_output_file font = {'family': 'serif', 'weight': 'normal', 'size': 18} def force_aspect(ax, aspect=1): im = ax.get_images() extent = im[0].get_extent() ax.set_...
33.607143
120
0.652497
08ac8bca7d47e01ddf0899ba76dfbcbbf8efb283
6,345
py
Python
tests/test_resolving_parser.py
mboutet/prance
b9c51e5340d36fda02977dd7cf6b7ceb52e51030
[ "MITNFA" ]
null
null
null
tests/test_resolving_parser.py
mboutet/prance
b9c51e5340d36fda02977dd7cf6b7ceb52e51030
[ "MITNFA" ]
null
null
null
tests/test_resolving_parser.py
mboutet/prance
b9c51e5340d36fda02977dd7cf6b7ceb52e51030
[ "MITNFA" ]
null
null
null
# -*- coding: utf-8 -*- """Test suite for prance.ResolvingParser .""" __author__ = 'Jens Finkhaeuser' __copyright__ = 'Copyright (c) 2016-2018 Jens Finkhaeuser' __license__ = 'MIT +no-false-attribs' __all__ = () import pytest from unittest.mock import patch from prance import ResolvingParser from prance import Valid...
34.672131
135
0.72104
08ac8fb5e75375ba142044cd1c10ac1e5440128c
1,405
py
Python
km/argparser/find_report.py
iric-soft/km
d846d1b7c9cc19fcf263e64fe05080f274610d0c
[ "MIT" ]
9
2017-12-18T23:38:19.000Z
2022-03-18T13:52:56.000Z
km/argparser/find_report.py
iric-soft/km
d846d1b7c9cc19fcf263e64fe05080f274610d0c
[ "MIT" ]
11
2018-07-10T18:37:48.000Z
2022-02-28T09:15:01.000Z
km/argparser/find_report.py
iric-soft/km
d846d1b7c9cc19fcf263e64fe05080f274610d0c
[ "MIT" ]
5
2017-10-27T15:13:31.000Z
2021-02-10T17:53:13.000Z
import sys import argparse from .common import * def get_argparser_find_report(parser): parser._action_groups.pop() required = parser.add_argument_group('required arguments') optional = parser.add_argument_group('optional arguments') optional.add_argument( "-t", dest="target", ...
27.54902
90
0.5879
08ac9cd66db6079f5726fcd836d231a67444b020
3,872
py
Python
ambari-agent/src/main/python/resource_management/libraries/providers/hdfs_directory.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
5
2018-06-03T05:19:40.000Z
2021-04-16T17:10:49.000Z
ambari-agent/src/main/python/resource_management/libraries/providers/hdfs_directory.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
null
null
null
ambari-agent/src/main/python/resource_management/libraries/providers/hdfs_directory.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
6
2019-05-07T13:24:39.000Z
2021-02-15T14:12:37.000Z
#!/usr/bin/env python """ 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");...
35.2
97
0.697314
08ac9dacf2833decb09cedccdd5350f29fb2d3ec
4,317
py
Python
leetcode_python/Binary_Search_Tree/binary-tree-cameras.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Binary_Search_Tree/binary-tree-cameras.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Binary_Search_Tree/binary-tree-cameras.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" 968. Binary Tree Cameras Hard You are given the root of a binary tree. We install cameras on the tree nodes where each camera at a node can monitor its parent, itself, and its immediate children. Return the minimum number of cameras needed to monitor all nodes of the tree. Example 1: Input: root = [0,0,nul...
28.78
165
0.549224
08acc3403ebe8e93ea14cf43310bf26cb07f628a
4,314
py
Python
tbats/tbats/Components.py
series-temporais/tbats
1f2e0b5e769250c8ec0604fd75ef08ebbe251d37
[ "MIT" ]
null
null
null
tbats/tbats/Components.py
series-temporais/tbats
1f2e0b5e769250c8ec0604fd75ef08ebbe251d37
[ "MIT" ]
null
null
null
tbats/tbats/Components.py
series-temporais/tbats
1f2e0b5e769250c8ec0604fd75ef08ebbe251d37
[ "MIT" ]
null
null
null
import numpy as np import copy from ..abstract import ArrayHelper, Components as AbstractComponents class Components(AbstractComponents): """Contains information necessary to determine amount of parameters of the model. See parent class description for details. """ def __init__(self, use_box_cox=Fa...
35.073171
105
0.653917
08acefce047daa5dde6aa09c7abb4ddca9595063
335
py
Python
src/data_classes/__init__.py
DougTrajano/olid-br
d78cfe189703b3af4c6ecc7444e8713b76c8e52f
[ "Apache-2.0" ]
2
2022-01-24T02:22:21.000Z
2022-01-24T02:22:23.000Z
src/data_classes/__init__.py
DougTrajano/olid-br
d78cfe189703b3af4c6ecc7444e8713b76c8e52f
[ "Apache-2.0" ]
1
2022-03-14T03:08:41.000Z
2022-03-14T03:08:41.000Z
src/data_classes/__init__.py
DougTrajano/olid-br
d78cfe189703b3af4c6ecc7444e8713b76c8e52f
[ "Apache-2.0" ]
null
null
null
from .annotation import Annotation from .annotator import Annotator from .label_strategy import LabelStrategy from .metadata import Metadata from .processed_text import ProcessedText from .raw_text import RawText __all__ = [ "Annotation", "Annotator", "LabelStrategy", "Metadata", "ProcessedText", ...
22.333333
41
0.746269
08acf4eaa9ec4b11f727ec4d7c1c39f19dc4f67f
2,442
py
Python
alipay/aop/api/domain/AlipayCommerceTransportOfflinepayVirtualcardBatchqueryModel.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/domain/AlipayCommerceTransportOfflinepayVirtualcardBatchqueryModel.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/domain/AlipayCommerceTransportOfflinepayVirtualcardBatchqueryModel.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.constant.ParamConstants import * class AlipayCommerceTransportOfflinepayVirtualcardBatchqueryModel(object): def __init__(self): self._card_no = None self._card_type = None self._include_deleted = None s...
28.395349
81
0.596233
08ad23ee234c7cd0641267d9aad60daf7678a679
310
py
Python
tofnet/data/__init__.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
null
null
null
tofnet/data/__init__.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
8
2021-02-02T23:07:37.000Z
2022-03-12T00:51:26.000Z
tofnet/data/__init__.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
2
2020-10-01T08:23:24.000Z
2020-11-09T22:01:47.000Z
""" This module handles everything data-related. :mod:`augmentations` and :mod:`preprocess` contain the functions helpful to make a functionning preprocessing pipeline. :mod:`datasets`, :mod:`generators` and :mod:`generator_maker` handle the data streaming, reading from disk whenever necessary """
62
92
0.758065
08ad28d353aa9cb34ead2ca20b3040f94157b6f6
434
py
Python
oscar/lib/python2.7/site-packages/execnet/script/loop_socketserver.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/execnet/script/loop_socketserver.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/execnet/script/loop_socketserver.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
import os import sys import subprocess if __name__ == '__main__': directory = os.path.dirname(os.path.abspath(sys.argv[0])) script = os.path.join(directory, 'socketserver.py') while 1: cmdlist = ["python", script] cmdlist.extend(sys.argv[1:]) text = "starting subcommand:...
27.125
62
0.601382
08ad2e5befe9beab57f5cfbb4752e8b8f6f82193
3,834
py
Python
Build/site_scons/msvs_preprocessed.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Build/site_scons/msvs_preprocessed.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Build/site_scons/msvs_preprocessed.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
"""Provides a Preprocessed action for the Microsoft Visual Studio compilers. """ import os import SCons.Action import SCons.Util import preprocessed_builder # XXX These are internal to SCons and may change in the future...but it's unlikely from SCons.Tool.msvc import CSuffixes, CXXSuffixes, msvc_batch_key # TODO Con...
41.673913
139
0.684142
08ad30ef1c077c6499afe7691e95bc9a5ab4d82b
844
py
Python
hatchet/writers/hdf5_writer.py
TauferLab/llnl-hatchet
c7d12888d71d2b23058facd3025e7dcfa12cbb39
[ "MIT" ]
null
null
null
hatchet/writers/hdf5_writer.py
TauferLab/llnl-hatchet
c7d12888d71d2b23058facd3025e7dcfa12cbb39
[ "MIT" ]
null
null
null
hatchet/writers/hdf5_writer.py
TauferLab/llnl-hatchet
c7d12888d71d2b23058facd3025e7dcfa12cbb39
[ "MIT" ]
null
null
null
# Copyright 2017-2022 Lawrence Livermore National Security, LLC and other # Hatchet Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: MIT import warnings import sys from .dataframe_writer import DataframeWriter class HDF5Writer(DataframeWriter): def __init__(self, file...
31.259259
74
0.671801
08ad3424c8544ee45591a18bc3c8625208a82312
21,154
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_02_01/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_02_01/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_02_01/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# 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 ...
45.297645
232
0.693013
08ad4a33b637352a96e3ddc559bf3742a71234f8
5,911
py
Python
whoville/cloudbreak/models/host_metadata.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/host_metadata.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/host_metadata.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.882075
984
0.572154
08ad4eea1cb478bb2fe14e53d9d28881c2b61f0b
4,152
py
Python
intersight/models/hyperflex_feature_limit_external_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/hyperflex_feature_limit_external_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/hyperflex_feature_limit_external_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class HyperflexFeatureLimitExternalList(object): """ ...
26.961039
98
0.582129
08ad85b6d55df042d346711f6442465cab49a1f7
1,612
py
Python
examples/AdCreativePreviewsEdgePreviewDynamicAdsWithCustomizations.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/AdCreativePreviewsEdgePreviewDynamicAdsWithCustomizations.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/AdCreativePreviewsEdgePreviewDynamicAdsWithCustomizations.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
39.317073
76
0.776675
08ad947ef047efc161c7fc175da965d590aa099f
2,848
py
Python
python_modules/dagster/dagster_tests/core_tests/definitions_tests/decorators_tests/test_config_mapping.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/definitions_tests/decorators_tests/test_config_mapping.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/definitions_tests/decorators_tests/test_config_mapping.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import enum import pytest from dagster import DagsterInvalidConfigError, Enum, Field, config_mapping, graph, op def test_empty_config_mapping(): @op def empty_op(): pass @graph def empty_graph(): empty_op() @config_mapping def empty_config_mapping(_): return {} ...
30.297872
100
0.706812
08ad9528e2d1f7ac0dfb146c3fba79a05668b8bb
31,748
py
Python
libcloudforensics/providers/azure/internal/compute.py
zkck/cloud-forensics-utils
ac1cdf74b595cf57629c23a52e46da98283e552f
[ "Apache-2.0" ]
241
2020-02-08T20:05:54.000Z
2022-03-31T23:51:30.000Z
libcloudforensics/providers/azure/internal/compute.py
Fryyyyy/cloud-forensics-utils
d7fb845bd7df1498d67230520e2c7169c9a929df
[ "Apache-2.0" ]
376
2020-02-05T10:22:54.000Z
2022-03-30T00:09:18.000Z
libcloudforensics/providers/azure/internal/compute.py
Fryyyyy/cloud-forensics-utils
d7fb845bd7df1498d67230520e2c7169c9a929df
[ "Apache-2.0" ]
72
2020-02-06T07:34:30.000Z
2022-03-05T18:02:13.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
37.885442
128
0.644986
08ada2a6256284b6200b18e18c82c679d06c5f5b
8,660
py
Python
datacube_apps/movie_generator.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
1
2020-04-15T16:10:27.000Z
2020-04-15T16:10:27.000Z
datacube_apps/movie_generator.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
null
null
null
datacube_apps/movie_generator.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
null
null
null
""" This app creates time series movies """ import click import fiona import xarray as xr import numpy as np import rasterio import subprocess from glob import glob from dateutil.parser import parse from datetime import datetime, timedelta, time, date from datacube.utils.masking import make_mask from datacube.ui ...
34.501992
120
0.633025
08ae1ea7df3b3b4e319c878e633fe815a7b66500
169
py
Python
hotsos/core/plugins/storage/__init__.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
6
2021-10-01T19:46:14.000Z
2022-03-31T17:05:08.000Z
hotsos/core/plugins/storage/__init__.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
111
2021-10-01T18:18:17.000Z
2022-03-29T12:23:20.000Z
hotsos/core/plugins/storage/__init__.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
10
2021-09-29T14:47:54.000Z
2022-03-18T14:52:16.000Z
from hotsos.core import plugintools class StorageBase(plugintools.PluginPartBase): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
21.125
46
0.710059
08ae2cb6ac1cc1c2a57b14870fe37e920cd85286
1,057
py
Python
src/utils/DataIO.py
Jarvis73/SubKmeans-Python
71c30c5722df9f043e4d90845bbaa30c6017403e
[ "MIT" ]
null
null
null
src/utils/DataIO.py
Jarvis73/SubKmeans-Python
71c30c5722df9f043e4d90845bbaa30c6017403e
[ "MIT" ]
null
null
null
src/utils/DataIO.py
Jarvis73/SubKmeans-Python
71c30c5722df9f043e4d90845bbaa30c6017403e
[ "MIT" ]
null
null
null
import numpy as np from pathlib import Path def writeClusters(f: Path, data: np.ndarray, labels: np.ndarray, separator=";"): with f.open("w") as fid: for dp, label in zip(data, labels): lineData = np.array2string(dp, separator=separator, max_line_width=0x80000000)[1:-1] fid.write(f...
33.03125
96
0.545885
08ae391b9702c0aa819142700a1dfe19c822c9c7
1,248
py
Python
amigrations/adapters/sqlite.py
sergeyglazyrindev/amigrations
24f4e657cd5f73f62e64fcab566a5ed228b26f57
[ "MIT" ]
null
null
null
amigrations/adapters/sqlite.py
sergeyglazyrindev/amigrations
24f4e657cd5f73f62e64fcab566a5ed228b26f57
[ "MIT" ]
null
null
null
amigrations/adapters/sqlite.py
sergeyglazyrindev/amigrations
24f4e657cd5f73f62e64fcab566a5ed228b26f57
[ "MIT" ]
null
null
null
import time import sqlite3 from .base import BaseAdapter class Adapter(BaseAdapter): placeholder = '?' @property def _client(self): uri = self._uri conn = sqlite3.connect(uri.database) conn.isolation_level = None return conn def _ensure_db_has_migration_table(self): ...
29.023256
64
0.637019
08ae5bc311bf226078b1eec98721e1ef23f69103
6,097
py
Python
species/data/filters.py
vandalt/species
527dd900a60c4d691bd490569cd3b2007f9beead
[ "MIT" ]
null
null
null
species/data/filters.py
vandalt/species
527dd900a60c4d691bd490569cd3b2007f9beead
[ "MIT" ]
null
null
null
species/data/filters.py
vandalt/species
527dd900a60c4d691bd490569cd3b2007f9beead
[ "MIT" ]
null
null
null
""" Module for downloading filter data from the website of the SVO Filter Profile Service. """ import os import warnings import urllib.request from typing import Optional, Tuple from astropy.io.votable import parse_single_table import numpy as np from typeguard import typechecked @typechecked def download_filter(...
33.13587
99
0.601279
08aea43be638f7089b02c91d4da72b35bc3681e7
12,100
py
Python
encode_decode/omci_action.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
encode_decode/omci_action.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
encode_decode/omci_action.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Broadband Forum # # 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...
39.413681
124
0.595289
08aea5b4fe6ea601916ab9ffd4ec65b5778501de
1,150
py
Python
uitestcore/page.py
nhsuk/ui-test-core
089a93a3f375993812c3c5946f18985f99b42a6f
[ "MIT" ]
8
2019-09-16T14:31:38.000Z
2022-02-03T21:26:04.000Z
uitestcore/page.py
nhsuk/ui-test-core
089a93a3f375993812c3c5946f18985f99b42a6f
[ "MIT" ]
12
2019-09-13T14:47:26.000Z
2022-01-10T11:24:52.000Z
uitestcore/page.py
nhsuk/ui-test-core
089a93a3f375993812c3c5946f18985f99b42a6f
[ "MIT" ]
4
2019-09-16T14:49:53.000Z
2022-02-02T15:42:01.000Z
import logging from uitestcore.finder import Finder from uitestcore.interactor import Interactor from uitestcore.interrogator import Interrogator from uitestcore.waiter import Waiter class BasePage: """ This is the base page class from which common functionality can be inherited """ def __init__(self...
42.592593
101
0.724348
08aeb84d22fbdeb7c8125ab941dc848893264b4d
3,126
py
Python
src/nox_poetry/poetry.py
staticdev/nox-poetry
09afa0db6557c0607f1a301e4003c824d0fcb629
[ "MIT" ]
null
null
null
src/nox_poetry/poetry.py
staticdev/nox-poetry
09afa0db6557c0607f1a301e4003c824d0fcb629
[ "MIT" ]
null
null
null
src/nox_poetry/poetry.py
staticdev/nox-poetry
09afa0db6557c0607f1a301e4003c824d0fcb629
[ "MIT" ]
null
null
null
"""Poetry interface.""" from enum import Enum from pathlib import Path from typing import List from typing import Optional import tomlkit from nox.sessions import Session class DistributionFormat(Enum): """Type of distribution archive for a Python package.""" WHEEL = "wheel" SDIST = "sdist" class Conf...
27.910714
79
0.573896
08aee096535105e644dac6151a5bcee994131123
13,815
py
Python
sparkquantum/dtqw/profiler.py
alfabr90/sparkquantum
e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a
[ "MIT" ]
2
2020-04-07T18:25:03.000Z
2020-04-07T18:25:21.000Z
sparkquantum/dtqw/profiler.py
alfabr90/sparkquantum
e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a
[ "MIT" ]
null
null
null
sparkquantum/dtqw/profiler.py
alfabr90/sparkquantum
e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a
[ "MIT" ]
null
null
null
from sparkquantum import util from sparkquantum.dtqw.operator import is_operator from sparkquantum.dtqw.state import is_state from sparkquantum.math.distribution import is_distribution from sparkquantum.profiler import Profiler __all__ = ['QuantumWalkProfiler', 'get_profiler'] class QuantumWalkProfiler(Profiler): ...
30.564159
106
0.535143
08aefaa67fecb080e7028f91aa3ff925752a823f
4,187
py
Python
sdk/python/tests/dsl/pipeline_param_tests.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
sdk/python/tests/dsl/pipeline_param_tests.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
sdk/python/tests/dsl/pipeline_param_tests.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2018 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
39.130841
98
0.64342
08af0104fdece898a92e46fd5a78ce3cb8f7c8c1
259
py
Python
examples/tutorial/Hello World/hello_world_debug.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
25
2017-07-14T06:39:37.000Z
2022-03-09T21:39:51.000Z
examples/tutorial/Hello World/hello_world_debug.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
100
2016-12-13T17:30:41.000Z
2021-08-01T20:21:13.000Z
examples/tutorial/Hello World/hello_world_debug.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
28
2016-12-12T17:34:40.000Z
2022-03-16T15:39:39.000Z
import geosoft.gxapi as gxapi import geosoft.gxpy as gxpy def rungx(): gxc = gxpy.gx.gx() gxapi.GXSYS.display_message("GX Python", "Hello {}".format(gxc.gid)) if __name__ == "__main__": gxc = gxpy.gx.GXpy() print('Hello {}'.format(gxc.gid))
23.545455
72
0.656371
08af1344095b9ff8be3ebec879762767cc72b02a
3,852
py
Python
var/spack/repos/builtin/packages/libtree/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/libtree/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/libtree/package.py
joequant/spack
e028ee0d5903045e1cdeb57550cbff61f2ffb2fa
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.build_systems.cmake import CMakePackage class Libtree(MakefilePackage): """ldd as a tree""" homepage...
46.409639
109
0.701973
08af45180fb27b291ace5d28942c4a0fd35ad2fd
11,230
py
Python
rumalchemy/repository.py
nothink/RumAlchemy
4709f430d04b0dac382930b431dc3bd781ae4d20
[ "MIT" ]
null
null
null
rumalchemy/repository.py
nothink/RumAlchemy
4709f430d04b0dac382930b431dc3bd781ae4d20
[ "MIT" ]
null
null
null
rumalchemy/repository.py
nothink/RumAlchemy
4709f430d04b0dac382930b431dc3bd781ae4d20
[ "MIT" ]
1
2020-03-20T06:30:17.000Z
2020-03-20T06:30:17.000Z
import logging from types import NoneType import weakref import sys from sqlalchemy import engine_from_config, MetaData from sqlalchemy.orm import scoped_session, sessionmaker from sqlalchemy.orm.properties import ColumnProperty from rumalchemy import sqlsoup from zope.sqlalchemy import datamanager from sqlalchemy.exc ...
39.12892
81
0.59439
08af5aa515aa2cd1c4eaf4d86ddb95472904e894
5,729
py
Python
core/sawtooth/cli/block.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
1
2019-03-18T13:31:11.000Z
2019-03-18T13:31:11.000Z
core/sawtooth/cli/block.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
core/sawtooth/cli/block.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
34.721212
80
0.568162
08af5e4b3e248c256e75165f44d6a15c703509b5
67
py
Python
stegline_modules/lsbModule.py
lucashowardmiller/stegline
73bc090cfa9d919ed9d8af2f47b5cf8768799c1d
[ "MIT" ]
null
null
null
stegline_modules/lsbModule.py
lucashowardmiller/stegline
73bc090cfa9d919ed9d8af2f47b5cf8768799c1d
[ "MIT" ]
1
2019-01-01T08:11:44.000Z
2019-01-01T08:11:44.000Z
stegline_modules/lsbModule.py
lucashowardmiller/stegline
73bc090cfa9d919ed9d8af2f47b5cf8768799c1d
[ "MIT" ]
null
null
null
# TODO implement def lsb(input_file, output_folder): print()
11.166667
35
0.701493
08af7da1ce8939b95df2b7e286ef5fae0b5b2d49
5,947
py
Python
doc/examples/cookbook/example02.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
doc/examples/cookbook/example02.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
doc/examples/cookbook/example02.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
from __future__ import division, print_function ############################################################################## # # Copyright (c) 2009-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apac...
39.646667
95
0.589036
08af91fb0654774997e41b608ca45719084a962f
3,794
py
Python
pybie2d/boundaries/collection.py
dbstein/pybie2d
1c2d6c05f6dbb4f1ab4476d3824f4dde20f90d58
[ "Apache-2.0" ]
11
2018-10-26T17:34:29.000Z
2020-04-27T21:21:33.000Z
pybie2d/boundaries/collection.py
dbstein/pybie2d
1c2d6c05f6dbb4f1ab4476d3824f4dde20f90d58
[ "Apache-2.0" ]
null
null
null
pybie2d/boundaries/collection.py
dbstein/pybie2d
1c2d6c05f6dbb4f1ab4476d3824f4dde20f90d58
[ "Apache-2.0" ]
null
null
null
import numpy as np import scipy as sp import scipy.spatial from ..point_set import PointSet from .boundary import Boundary class BoundaryCollection(Boundary): """ Boundary Collection Class """ def __init__(self): self.n_boundaries = 0 self.boundaries = [] self.sides = [] ...
34.807339
80
0.579336
08afa57f9bf485336ab1ad870ad0db8d522f771b
3,909
py
Python
test/test_dada_fildb.py
loostrum/psrdada_filterbankdb
efd2b9aa4e77c66758f4e41dfbecac5adac8130d
[ "Apache-2.0" ]
null
null
null
test/test_dada_fildb.py
loostrum/psrdada_filterbankdb
efd2b9aa4e77c66758f4e41dfbecac5adac8130d
[ "Apache-2.0" ]
null
null
null
test/test_dada_fildb.py
loostrum/psrdada_filterbankdb
efd2b9aa4e77c66758f4e41dfbecac5adac8130d
[ "Apache-2.0" ]
null
null
null
import os import unittest import time import multiprocessing as mp import numpy as np from psrdada import Reader, Writer from dada_fildb import dada_fildb from dada_fildb.sigproc import SigprocFile class TestDadaFildb(unittest.TestCase): def setUp(self): """ Set configuration, create filterbank...
30.069231
117
0.523408
08afa80524d21413d431f93d17c42f6c1392caa3
5,483
py
Python
apitestprj/settings.py
joodo/loser-fan
ad6be4fb171ee7a8ca1fa8da572acaf11a1548b9
[ "MIT" ]
null
null
null
apitestprj/settings.py
joodo/loser-fan
ad6be4fb171ee7a8ca1fa8da572acaf11a1548b9
[ "MIT" ]
null
null
null
apitestprj/settings.py
joodo/loser-fan
ad6be4fb171ee7a8ca1fa8da572acaf11a1548b9
[ "MIT" ]
null
null
null
# Django settings for apitestprj project. from password import PASSWORD DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql',...
33.03012
122
0.697246
08afc644eb3e6f5b9db30e877e31a820bb2eb153
780
py
Python
glkh_solver/tests/test_modules.py
crigroup/lkh
6fb139e21c494c733b103156c6ffef2fbc70e898
[ "BSD-3-Clause" ]
4
2020-06-17T22:25:51.000Z
2022-01-27T17:20:21.000Z
glkh_solver/tests/test_modules.py
crigroup/lkh
6fb139e21c494c733b103156c6ffef2fbc70e898
[ "BSD-3-Clause" ]
null
null
null
glkh_solver/tests/test_modules.py
crigroup/lkh
6fb139e21c494c733b103156c6ffef2fbc70e898
[ "BSD-3-Clause" ]
1
2022-03-31T05:04:18.000Z
2022-03-31T05:04:18.000Z
#! /usr/bin/env python from __future__ import print_function import os import unittest import resource_retriever # Tested module import lkh_solver as lkh class Test_glkh_solver(unittest.TestCase): def test_glkh_solver(self): folder = 'package://glkh_solver/gtsplib' path = resource_retriever.get_filename(fol...
30
76
0.717949
08afe59c56662d49dcf65b2ca977a03fc8b6df43
5,188
py
Python
twinotter/quicklook.py
leifdenby/twin-otter
05d66304d03b27cbd0ac8d4add83d3b67518daa3
[ "MIT" ]
1
2021-09-16T16:50:47.000Z
2021-09-16T16:50:47.000Z
twinotter/quicklook.py
leifdenby/twin-otter
05d66304d03b27cbd0ac8d4add83d3b67518daa3
[ "MIT" ]
6
2020-03-02T12:41:27.000Z
2020-09-02T09:15:44.000Z
twinotter/quicklook.py
leifdenby/twin-otter
05d66304d03b27cbd0ac8d4add83d3b67518daa3
[ "MIT" ]
2
2020-06-11T15:20:07.000Z
2021-03-19T10:38:44.000Z
"""Quicklook plots for each segment over a single flight. Use the flight-segments .yaml produced from :mod:`twinotter.plots.interactive_flight_track` Usage:: $ python -m twinotter.quicklook <flight_data_path> <flight_segments_file> """ from pathlib import Path import numpy as np import matplotlib.pyplot as p...
29.816092
84
0.670008
08aff0616e820ae18f7abfb47901aa692e93366e
63,605
py
Python
tencentcloud/autoscaling/v20180419/autoscaling_client.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
null
null
null
tencentcloud/autoscaling/v20180419/autoscaling_client.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
null
null
null
tencentcloud/autoscaling/v20180419/autoscaling_client.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
43.714777
191
0.616178
08aff535de6b3c9339ed58f18790ea378385051a
277
py
Python
scripts/upgrade/upgrade_sardana.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
scripts/upgrade/upgrade_sardana.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
scripts/upgrade/upgrade_sardana.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
#!/usr/bin/env python import sys import time import PyTango from upgrade_utils import * if __name__ == "__main__": try: import PyQt4 import upgradeGUI upgradeGUI.main() except Exception, e: import upgradeCLI upgradeCLI.main()
16.294118
27
0.642599
08affa2633c78e225b2c0c9911d52a69e15007fa
12,066
py
Python
blue_st_examples/example_ble_1.py
tolomeis/BlueSTSDK_Python
caae20c1a7353a141d31113caec2f7a877c5fc8e
[ "BSD-3-Clause" ]
null
null
null
blue_st_examples/example_ble_1.py
tolomeis/BlueSTSDK_Python
caae20c1a7353a141d31113caec2f7a877c5fc8e
[ "BSD-3-Clause" ]
null
null
null
blue_st_examples/example_ble_1.py
tolomeis/BlueSTSDK_Python
caae20c1a7353a141d31113caec2f7a877c5fc8e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ################################################################################ # COPYRIGHT(c) 2018 STMicroelectronics # # # # Redistribution and use in source and binary for...
37.824451
92
0.556688
08b028a02baa8e84f65df081875926073c0d091c
14,728
py
Python
src/github.py
asusdev/py-github
077f5f55912d1aeab1aa56fb34ad8a6249d540ae
[ "MIT" ]
1
2015-11-04T10:33:03.000Z
2015-11-04T10:33:03.000Z
src/github.py
asusdev/py-github
077f5f55912d1aeab1aa56fb34ad8a6249d540ae
[ "MIT" ]
null
null
null
src/github.py
asusdev/py-github
077f5f55912d1aeab1aa56fb34ad8a6249d540ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2005-2008 Dustin Sallings <dustin@spy.net> # # 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 rig...
30.556017
85
0.590168
08b031b5b73b6cfdfe144b26f4245c388d6e4711
3,277
py
Python
addTreeTipInfoFromTable.py
baileyp1/PhylogenomicsPipelines
11c088e7f64df0856b9bb5905f696b7f698513b6
[ "Apache-2.0" ]
null
null
null
addTreeTipInfoFromTable.py
baileyp1/PhylogenomicsPipelines
11c088e7f64df0856b9bb5905f696b7f698513b6
[ "Apache-2.0" ]
null
null
null
addTreeTipInfoFromTable.py
baileyp1/PhylogenomicsPipelines
11c088e7f64df0856b9bb5905f696b7f698513b6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import sys import os import csv import re sampleTableFile = sys.argv[1] treeTipInfoMapfile = sys.argv[2] csvDict = {} with open(sampleTableFile, 'r') as csvfile: csvreader = csv.reader(csvfile, delimiter=',', quotechar='"') # NB - quotechar seems to be O...
38.104651
172
0.712847
08b047db2744fdd3300dcce1f6fcec2f48321984
11,719
py
Python
interpparser/gpo_cfr.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
26
2016-06-04T20:48:09.000Z
2021-07-28T18:13:30.000Z
interpparser/gpo_cfr.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
146
2016-04-06T19:07:54.000Z
2022-01-02T20:09:53.000Z
interpparser/gpo_cfr.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
28
2016-04-09T20:40:48.000Z
2021-05-08T17:52:59.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import itertools import logging import re from interpparser.tree import merge_labels, text_to_labels from regparser.citations import Label, remove_citation_overlaps from regparser.layer.key_terms import KeyTerms from regparser.tree.depth import markers a...
38.297386
79
0.62548
08b08a65759c723cf2ec3cfacecd3d138bcbb6e7
1,217
py
Python
setup.py
candle645/sdsapp
1168bfb7d6d679026f7681adc40c19ba16297297
[ "MIT" ]
null
null
null
setup.py
candle645/sdsapp
1168bfb7d6d679026f7681adc40c19ba16297297
[ "MIT" ]
null
null
null
setup.py
candle645/sdsapp
1168bfb7d6d679026f7681adc40c19ba16297297
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.txt')) as f: README = f.read() with open(os.path.join(here, 'CHANGES.txt')) as f: CHANGES = f.read() requires = [ 'plaster_pastedeploy', 'pyramid', ...
22.537037
64
0.562859
08b0ac775d84b3f811787795c125d90e8215d463
24,862
py
Python
finley/test/python/slip_stress_mesh_old.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
finley/test/python/slip_stress_mesh_old.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
finley/test/python/slip_stress_mesh_old.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unt...
37.841705
109
0.576502
08b0ded8c9de07c7ac4ef81bf01378f57de9c858
5,732
py
Python
influxdb_client/domain/create_cell.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
1
2021-06-06T10:39:47.000Z
2021-06-06T10:39:47.000Z
influxdb_client/domain/create_cell.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
influxdb_client/domain/create_cell.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Crea...
23.395918
124
0.518493
08b0eb0895c8b2c497cb96f1f3384d4eeea9c0c7
23,777
py
Python
tests/test_stats.py
EPAENERGYSTAR/epathermostat
98aaf571fe8e15e1a372567776081fd9dae7e872
[ "MIT" ]
12
2017-03-08T23:17:44.000Z
2021-10-15T15:56:30.000Z
tests/test_stats.py
EPAENERGYSTAR/epathermostat
98aaf571fe8e15e1a372567776081fd9dae7e872
[ "MIT" ]
23
2017-10-24T00:07:37.000Z
2021-07-15T14:42:31.000Z
tests/test_stats.py
EPAENERGYSTAR/epathermostat
98aaf571fe8e15e1a372567776081fd9dae7e872
[ "MIT" ]
11
2017-03-22T22:35:30.000Z
2021-01-01T22:30:14.000Z
from thermostat.stats import combine_output_dataframes from thermostat.stats import compute_summary_statistics from thermostat.stats import summary_statistics_to_csv from .fixtures.thermostats import thermostat_emg_aux_constant_on_outlier from thermostat.multiple import multiple_thermostat_calculate_epa_field_savings_m...
41.423345
96
0.723052
08b14238cf810799007dc76ce82fbcba0eb021f2
6,541
py
Python
exercises/complex-numbers/complex_numbers_test.py
jamesmcm/python
9f1d41da23ff7248e891ee1c8f01d11793e7d3ea
[ "MIT" ]
null
null
null
exercises/complex-numbers/complex_numbers_test.py
jamesmcm/python
9f1d41da23ff7248e891ee1c8f01d11793e7d3ea
[ "MIT" ]
null
null
null
exercises/complex-numbers/complex_numbers_test.py
jamesmcm/python
9f1d41da23ff7248e891ee1c8f01d11793e7d3ea
[ "MIT" ]
null
null
null
import unittest import math from complex_numbers import ComplexNumber class ComplexNumbersTest(unittest.TestCase): def test_real_part_of_a_purely_real_number(self): input_number = ComplexNumber(1, 0) self.assertEqual(input_number.real, 1) def test_real_part_of_a_purely_imaginary_number(sel...
41.66242
78
0.706008
08b15a2c24ee1e445f969b51fb056ef20c0b6b3a
16,428
py
Python
raiden/api/v1/encoding.py
gasparmedina/lumino
01de7e6b1b137055a50c1fed78177e9ab1452e62
[ "MIT" ]
null
null
null
raiden/api/v1/encoding.py
gasparmedina/lumino
01de7e6b1b137055a50c1fed78177e9ab1452e62
[ "MIT" ]
null
null
null
raiden/api/v1/encoding.py
gasparmedina/lumino
01de7e6b1b137055a50c1fed78177e9ab1452e62
[ "MIT" ]
null
null
null
import binascii from eth_utils import ( is_0x_prefixed, is_checksum_address, to_bytes, to_canonical_address, to_checksum_address, to_hex, ) from marshmallow import Schema, SchemaOpts, fields, post_dump, post_load, pre_load from raiden.utils.rns import is_rns_address from webargs import validate...
30.198529
119
0.678537
08b1945b38a056e9095f3f0cb388e5b8841be268
1,612
py
Python
betfund_event_broker/tasks/bet365/upcoming_events.py
betfund/betfund-event-broker
524aec73d9cf66cbeeb0fab67e6816b836c1d98e
[ "MIT" ]
1
2020-09-23T02:36:35.000Z
2020-09-23T02:36:35.000Z
betfund_event_broker/tasks/bet365/upcoming_events.py
betfund/betfund-event-broker
524aec73d9cf66cbeeb0fab67e6816b836c1d98e
[ "MIT" ]
5
2020-04-13T23:55:07.000Z
2020-06-04T15:09:12.000Z
betfund_event_broker/tasks/bet365/upcoming_events.py
betfund/betfund-event-broker
524aec73d9cf66cbeeb0fab67e6816b836c1d98e
[ "MIT" ]
null
null
null
"""Task for handling API Request to UpcomingEvents Endpoint.""" import os from typing import List, Union from betfund_logger import CloudLogger from betfund_event_broker.tasks.bet365 import Bet365Task logger = CloudLogger( log_group="betfund-event-broker", log_stream="bet365-upcoming-events", aws_access_...
26.42623
64
0.57196
08b19bc5402a5d56b8b3ceae51cb734801d0a5dc
2,609
py
Python
test/test_section.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
18
2018-04-19T08:30:48.000Z
2022-02-14T11:00:27.000Z
test/test_section.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
15
2018-04-22T00:52:41.000Z
2021-07-05T10:16:38.000Z
test/test_section.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
6
2018-04-22T00:14:12.000Z
2021-12-06T01:42:07.000Z
#!/usr/bin/env python # Copyright 2018 Jérôme Dumonteil # Copyright (c) 2009-2010 Ars Aperta, Itaapy, Pierlis, Talend. # # 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.apach...
33.883117
77
0.684553
08b1bae47e3d24da96442bfe99fcfc016afd1612
5,903
py
Python
var/spack/repos/builtin/packages/ncurses/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/ncurses/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/ncurses/package.py
joequant/spack
e028ee0d5903045e1cdeb57550cbff61f2ffb2fa
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import glob import os from spack import * class Ncurses(AutotoolsPackage, GNUMirrorPackage): """The ncurses (new cu...
35.560241
114
0.574623
08b1bd758c71f8ad1d84dc76948d83820739807e
47,667
py
Python
test/test_parse_it.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
1
2020-08-13T12:21:56.000Z
2020-08-13T12:21:56.000Z
test/test_parse_it.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
3
2021-06-08T21:06:32.000Z
2022-01-13T02:22:38.000Z
test/test_parse_it.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
1
2020-08-13T12:21:58.000Z
2020-08-13T12:21:58.000Z
# # Copyright 2017 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
59.213665
79
0.540626
08b1d491196635effe9ab3caf9866efa89f7380b
4,659
py
Python
board/filters/black_and_white_filter.py
EliasEriksson/MinesweeperAI
3b881540baceea116eb3023c33bb355e6a67f8ce
[ "MIT" ]
1
2020-04-11T21:29:24.000Z
2020-04-11T21:29:24.000Z
board/filters/black_and_white_filter.py
EliasEriksson/MinesweeperAI
3b881540baceea116eb3023c33bb355e6a67f8ce
[ "MIT" ]
null
null
null
board/filters/black_and_white_filter.py
EliasEriksson/MinesweeperAI
3b881540baceea116eb3023c33bb355e6a67f8ce
[ "MIT" ]
null
null
null
from typing import * from PIL import Image from .errors import UnKnownDifficulty WHITE = 255 BLACK = 0 EASY_WIDTH = 450 EASY_HEIGHT = 360 MEDIUM_WIDTH = 540 MEDIUM_HEIGHT = 420 HARD_WIDTH = 600 HARD_HEIGHT = 500 WIDTHS = (EASY_WIDTH, MEDIUM_WIDTH, HARD_WIDTH) HEIGHTS = (EASY_HEIGHT, MEDIUM_HEIGHT, HARD_HEIGHT) ...
34.511111
114
0.641339
08b1f9717297d29ae3d9d723f0e72ccffc527ef9
1,043
py
Python
runtests.py
kezabelle/django-menuhin
b9c4111eed04e241c29ca8ec95c8a3ffeaac48da
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
runtests.py
kezabelle/django-menuhin
b9c4111eed04e241c29ca8ec95c8a3ffeaac48da
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
runtests.py
kezabelle/django-menuhin
b9c4111eed04e241c29ca8ec95c8a3ffeaac48da
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys from django.conf import settings import django def get_settings(): import test_settings setting_attrs = {} for attr in dir(test_settings): if attr.isupper(): setting_attrs[attr] = getattr(test_settings, attr) retur...
24.255814
75
0.671141
08b21934b79d773e1c79b59d08263c82395b5f00
6,519
py
Python
tensorflow_probability/python/bijectors/blockwise.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/bijectors/blockwise.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/bijectors/blockwise.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
37.039773
79
0.661911
08b223ae517a1a077bfd3dddfc11b156a5b1e208
15,296
py
Python
flexget/plugins/metainfo/trakt_lookup.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/metainfo/trakt_lookup.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/metainfo/trakt_lookup.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, division, absolute_import, print_function from builtins import * # pylint: disable=unused-import, redefined-builtin import logging import functools from flexget import plugin from flexget.event import event from flexget.manager import Session try: ...
40.465608
112
0.593096
08b223d7636b8303009632dbe263ab7fc7a0e3b4
1,153
py
Python
usaspending_api/download/filestreaming/s3_handler.py
animatecitizen/usaspending-api
556511ff51fe80a8be8361daa5876fd684a04efe
[ "CC0-1.0" ]
null
null
null
usaspending_api/download/filestreaming/s3_handler.py
animatecitizen/usaspending-api
556511ff51fe80a8be8361daa5876fd684a04efe
[ "CC0-1.0" ]
null
null
null
usaspending_api/download/filestreaming/s3_handler.py
animatecitizen/usaspending-api
556511ff51fe80a8be8361daa5876fd684a04efe
[ "CC0-1.0" ]
null
null
null
import logging import boto from datetime import datetime from django.conf import settings logger = logging.getLogger(__name__) class S3Handler: """ This class acts a wrapper for S3 URL Signing """ def __init__(self, name=settings.CSV_S3_BUCKET_NAME, region=settings.CSV_AWS_REGION): """ ...
26.204545
102
0.639202
08b234caaf1e6b1911f1d8ec9e9505c6402c740c
2,422
py
Python
tests/data/input.py
mitodl/xbundle
458cea733bb712209de26bd9c333d6d8f9f2bb99
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/data/input.py
mitodl/xbundle
458cea733bb712209de26bd9c333d6d8f9f2bb99
[ "BSD-2-Clause-FreeBSD" ]
47
2015-05-01T20:10:11.000Z
2021-03-31T18:52:28.000Z
tests/data/input.py
mitodl/xbundle
458cea733bb712209de26bd9c333d6d8f9f2bb99
[ "BSD-2-Clause-FreeBSD" ]
5
2015-05-21T11:21:38.000Z
2017-03-20T03:55:42.000Z
""" Test input data. """ from __future__ import unicode_literals EMPTY_COURSE = """<xbundle> <metadata> <policies semester="2013_Spring"> <gradingpolicy>y:2</gradingpolicy> <policy>x:1</policy> </policies> <about> <file filename="overview.html">hello overview</file> </about> </m...
21.81982
73
0.621387
08b26da6e9c979829b557374627b91d892bf73ab
3,891
py
Python
datum/serializer/serializer.py
openAGI/datum
2dfc8c62ed1366fd8544b8b25d730d89dfb57d4e
[ "Apache-2.0" ]
6
2020-05-17T10:03:24.000Z
2021-07-05T18:38:06.000Z
datum/serializer/serializer.py
openAGI/datum
2dfc8c62ed1366fd8544b8b25d730d89dfb57d4e
[ "Apache-2.0" ]
2
2021-07-26T03:22:47.000Z
2022-02-09T23:33:33.000Z
datum/serializer/serializer.py
openAGI/datum
2dfc8c62ed1366fd8544b8b25d730d89dfb57d4e
[ "Apache-2.0" ]
1
2021-06-14T14:49:38.000Z
2021-06-14T14:49:38.000Z
# Copyright 2020 The OpenAGI Datum Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
32.974576
99
0.721151
08b2c78bf4325689192d8aa0f81cbb8560b234b0
30,122
py
Python
evcouplings/visualize/mutations.py
thomashopf/EVcouplings-1
d3e4947d29b62537bd79215ce72b6eea18134850
[ "MIT" ]
1
2020-06-23T16:03:16.000Z
2020-06-23T16:03:16.000Z
evcouplings/visualize/mutations.py
aggreen/EVcouplings
a3780dec6570ebec4facd62e9f968423f68c971d
[ "MIT" ]
null
null
null
evcouplings/visualize/mutations.py
aggreen/EVcouplings
a3780dec6570ebec4facd62e9f968423f68c971d
[ "MIT" ]
2
2021-04-03T14:19:12.000Z
2021-04-05T17:34:32.000Z
""" Visualization of mutation effects Authors: Thomas A. Hopf Anna G. Green (mutation_pymol_script generalization) """ from math import isnan from copy import deepcopy import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt from bokeh import plotting as bp from bokeh.core....
37.465174
90
0.629208
08b30ea221e7a5a94ac4825f70083dabc4a6e7eb
1,122
py
Python
install.py
SHAANBHAYA/PytonDesktopApp
305ca8d6543d6be9d19713d1f5073dda1d75b2dc
[ "MIT" ]
2
2020-09-24T15:44:52.000Z
2020-09-24T17:56:03.000Z
install.py
SHAANBHAYA/PytonDesktopApp
305ca8d6543d6be9d19713d1f5073dda1d75b2dc
[ "MIT" ]
1
2020-09-24T17:53:03.000Z
2020-09-24T18:10:04.000Z
install.py
SHAANBHAYA/PytonDesktopApp
305ca8d6543d6be9d19713d1f5073dda1d75b2dc
[ "MIT" ]
1
2020-09-24T15:45:16.000Z
2020-09-24T15:45:16.000Z
""" Installs dependencies for the project. Supports the windows and osx operating systems. """ from pip._internal.cli import main import sys def install_packages(package_names): """ Installs all the packages in the package_names :param package_names: list of all the packages """ for package in pac...
27.365854
61
0.690731
08b31aab58f3e21ef66b018b755876a025cada3b
7,415
py
Python
samples/Linux/callbackUsingNumPy.py
pixelink-support/PixelinkPythonWrapper
ad7ba24c550825eb12f16e1eaf9c66f35db52a8f
[ "MIT" ]
null
null
null
samples/Linux/callbackUsingNumPy.py
pixelink-support/PixelinkPythonWrapper
ad7ba24c550825eb12f16e1eaf9c66f35db52a8f
[ "MIT" ]
null
null
null
samples/Linux/callbackUsingNumPy.py
pixelink-support/PixelinkPythonWrapper
ad7ba24c550825eb12f16e1eaf9c66f35db52a8f
[ "MIT" ]
null
null
null
""" callbackUsingNumPy.py Demonstrates how to use callbacks with Callback.PREVIEW, using a NumPy image The callback function will modify the preview buffer supplied by the API. """ from pixelinkWrapper import* from ctypes import* import time import threading import numpy as np def get_pixel_format_as_...
46.63522
126
0.667161
08b322ba86a3ec81d48bdfdf7229be4f41782351
225
py
Python
tests/test_cli.py
jannafierst/SIDR
ad2d461dc930b95a42f1a6105b1e802df60b4149
[ "MIT" ]
7
2017-10-23T01:35:06.000Z
2020-12-18T23:21:41.000Z
tests/test_cli.py
jannafierst/SIDR
ad2d461dc930b95a42f1a6105b1e802df60b4149
[ "MIT" ]
2
2018-08-01T11:09:19.000Z
2018-10-15T22:33:30.000Z
tests/test_cli.py
jannafierst/SIDR
ad2d461dc930b95a42f1a6105b1e802df60b4149
[ "MIT" ]
1
2018-08-07T17:06:13.000Z
2018-08-07T17:06:13.000Z
import sidr import pytest import mock from contextlib import closing try: # https://stackoverflow.com/questions/11914472/stringio-in-python3 from StringIO import StringIO except ImportError: from io import StringIO
22.5
72
0.8
08b356c6e559d3d6cffd4396e8eed670bb6cec8d
236
py
Python
plugins/giveaways/__init__.py
Friskytool/command-handler
2c0c7eecc8afe7898650dfc69d1c8816448c2480
[ "MIT" ]
null
null
null
plugins/giveaways/__init__.py
Friskytool/command-handler
2c0c7eecc8afe7898650dfc69d1c8816448c2480
[ "MIT" ]
4
2021-12-10T06:18:12.000Z
2022-03-24T14:43:57.000Z
plugins/giveaways/__init__.py
Friskytool/command-handler
2c0c7eecc8afe7898650dfc69d1c8816448c2480
[ "MIT" ]
null
null
null
from .plugin import Giveaways, setup as plugin_setup from .views import setup as views_setup from .requirements import setup as requirements_setup def setup(bot): plugin_setup(bot) views_setup(bot) requirements_setup(bot)
23.6
53
0.783898
08b38df831b07282473ef25df517b90e6c085b08
237,469
py
Python
devtools/cpplint.py
jwidauer/refill
64947e0a8e15855f4a5ad048f09f8d38715bbe91
[ "MIT" ]
2
2021-06-13T07:28:51.000Z
2021-09-08T11:26:34.000Z
devtools/cpplint.py
jwidauer/refill
64947e0a8e15855f4a5ad048f09f8d38715bbe91
[ "MIT" ]
null
null
null
devtools/cpplint.py
jwidauer/refill
64947e0a8e15855f4a5ad048f09f8d38715bbe91
[ "MIT" ]
3
2021-06-01T13:21:41.000Z
2021-06-01T20:33:20.000Z
#!/usr/bin/env python # # Copyright (c) 2009 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...
38.562683
97
0.652717
08b3b39e13a81bd11f64d3a2a332bb94aa46a485
1,667
py
Python
.eggs/docutils-0.14-py2.7.egg/EGG-INFO/scripts/rst2odt_prepstyles.py
MQQ/git-bigstore
95f1e37fcda7fdce80502593cec31a44c604cf8a
[ "Apache-2.0" ]
null
null
null
.eggs/docutils-0.14-py2.7.egg/EGG-INFO/scripts/rst2odt_prepstyles.py
MQQ/git-bigstore
95f1e37fcda7fdce80502593cec31a44c604cf8a
[ "Apache-2.0" ]
null
null
null
.eggs/docutils-0.14-py2.7.egg/EGG-INFO/scripts/rst2odt_prepstyles.py
MQQ/git-bigstore
95f1e37fcda7fdce80502593cec31a44c604cf8a
[ "Apache-2.0" ]
null
null
null
#!python # $Id: rst2odt_prepstyles.py 5839 2009-01-07 19:09:28Z dkuhlman $ # Author: Dave Kuhlman <dkuhlman@rexx.com> # Copyright: This module has been placed in the public domain. """ Fix a word-processor-generated styles.odt for odtwriter use: Drop page size specifications from styles.xml in STYLE_FILE.odt. """ # ...
24.514706
75
0.644271
08b3cd74418522719a6b64bf5dff040603338b4f
10,771
py
Python
tests/test_cli/test_transfer.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
tests/test_cli/test_transfer.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
tests/test_cli/test_transfer.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2021 Valory AG # Copyright 2018-2020 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
37.141379
88
0.63281
08b3dbe91a694ea865e9cc230144b456b2411965
2,863
py
Python
Basics/E03_Text/E04_TextA2.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
Basics/E03_Text/E04_TextA2.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
Basics/E03_Text/E04_TextA2.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # ----------------------------------------------------------------------------- # # P A G E B O T E X A M P L E S # # Copyright (c) 2016+ Buro Petr van Blokland + Claudia Mens # www.pagebot.io # Licensed under MIT conditions # # ---------------------------...
42.731343
93
0.652812
08b43a9063e2efe176d86f21175c580d2b2023d1
170
py
Python
sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-04-26T21:15:01.000Z
2021-04-26T21:15:01.000Z
sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-01-19T22:41:38.000Z
2021-01-19T22:41:38.000Z
sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ VERSION = "4.4.1"
24.285714
38
0.388235
08b457721935d0e5ab2c1f61be68dc74dacca12f
1,269
py
Python
flask_s3_viewer/aws/session.py
blairdrummond/flask-s3-viewer
e8ce36d4456da49c0b5642da3088d016e780ef83
[ "MIT" ]
null
null
null
flask_s3_viewer/aws/session.py
blairdrummond/flask-s3-viewer
e8ce36d4456da49c0b5642da3088d016e780ef83
[ "MIT" ]
null
null
null
flask_s3_viewer/aws/session.py
blairdrummond/flask-s3-viewer
e8ce36d4456da49c0b5642da3088d016e780ef83
[ "MIT" ]
null
null
null
import boto3 import logging from botocore.errorfactory import ClientError class AWSSession: def __init__( self, *, profile_name=None, region_name=None, secret_key=None, access_key=None, use_ssl=True ): self.runnable = False self.profile_...
27.586957
79
0.534279
08b45e621aaaa703317309d11bb0cc1b1d7cf840
974
py
Python
src/test/tests/session/sessionexpression.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/session/sessionexpression.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/session/sessionexpression.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: sessionexpression.py # # Tests: mesh - 3D unstructured, single domain # plots - Pseudocolor # # Notes: This test case creates a plot of a user-defined expression # ...
36.074074
88
0.517454
08b4632531a9eaccc7d1e0cf6f110f1c54518005
20,456
py
Python
sunpy/timeseries/tests/test_timeseriesmetadata.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
2
2020-07-02T13:01:42.000Z
2020-08-27T20:05:31.000Z
sunpy/timeseries/tests/test_timeseriesmetadata.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
1
2020-05-11T13:38:56.000Z
2020-05-11T13:38:56.000Z
sunpy/timeseries/tests/test_timeseriesmetadata.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
null
null
null
import copy from collections import OrderedDict import pytest from sunpy.time import TimeRange from sunpy.timeseries import TimeSeriesMetaData from sunpy.util import SunpyUserWarning from sunpy.util.metadata import MetaDict # ============================================================================= # Creating Ti...
41.241935
143
0.680827
08b466fe5e449bcb8ed307cce42daaee898b0b6e
7,108
py
Python
DAE_Method/sherbrooke/train_deep_abnormal_traj_detect_model.py
proy3/Abnormal_Trajectory_Classifier
a6b27c6847262e9703a0f3404c85c135415c1d4c
[ "MIT" ]
6
2019-10-29T03:05:14.000Z
2022-03-18T05:14:25.000Z
DAE_Method/sherbrooke/train_deep_abnormal_traj_detect_model.py
proy3/Abnormal_Trajectory_Classifier
a6b27c6847262e9703a0f3404c85c135415c1d4c
[ "MIT" ]
1
2022-03-11T03:49:34.000Z
2022-03-11T03:49:34.000Z
DAE_Method/sherbrooke/train_deep_abnormal_traj_detect_model.py
proy3/Abnormal_Trajectory_Classifier
a6b27c6847262e9703a0f3404c85c135415c1d4c
[ "MIT" ]
1
2021-12-15T09:21:26.000Z
2021-12-15T09:21:26.000Z
""" Train Abnormal trajectory detection with deep autoencoder. """ import warnings warnings.simplefilter(action='ignore', category=FutureWarning) import ae_utilities as aeu import input_data as data import abnormal_data_generation as adg import dataset_defines as dd import numpy as np import os from sklearn.preprocess...
48.027027
119
0.664744
08b46ca125ac665143d7b8dcf46b5e0561337282
448
py
Python
random/letterCount.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
random/letterCount.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
random/letterCount.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
import sys filename = sys.argv[1] inF = open(filename, 'r') outF = open("result.csv", 'w') alphastr = "abcdefghijklmnopqrstuvwxyz" alpha = {} for x in alphastr: alpha[x] = 0 letter = inF.read(1) inF.seek(0) while letter: letter = inF.read(1).lower() if alphastr.find(letter) != -1 and letter != ' ' and...
17.230769
70
0.609375
08b4a2aaae2469a7fedb13d47493c02cf8306a9b
9,600
py
Python
tensorflow/python/kernel_tests/scan_ops_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/python/kernel_tests/scan_ops_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/kernel_tests/scan_ops_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.566434
80
0.650313
08b4aef366eda4dc954cc0d3bbee8732b85587dc
479
py
Python
app/auth/forms.py
ags68/CS4398Project
a9652a3670fdbfd2f482104b77573a2d1f138c69
[ "Unlicense" ]
3
2017-02-27T02:13:52.000Z
2017-03-05T03:54:25.000Z
app/auth/forms.py
ags68/CS4398Project
a9652a3670fdbfd2f482104b77573a2d1f138c69
[ "Unlicense" ]
null
null
null
app/auth/forms.py
ags68/CS4398Project
a9652a3670fdbfd2f482104b77573a2d1f138c69
[ "Unlicense" ]
null
null
null
# app/auth/forms.py from flask_wtf import FlaskForm from wtforms import PasswordField, StringField, SubmitField, ValidationError from wtforms.validators import DataRequired, Email, EqualTo, Length, AnyOf from ..models import Employee class LoginForm(FlaskForm): """ Form for users to login """ id = S...
28.176471
76
0.741127
08b4c1f827cc0e8b4cf8129394f12b6777b956da
943
py
Python
tests/aem_opencloud/test_stack_types.py
shinesolutions/pyaemaws
c5afccfdf73dfcee38a9812a60373b4d3af8b375
[ "Apache-2.0" ]
null
null
null
tests/aem_opencloud/test_stack_types.py
shinesolutions/pyaemaws
c5afccfdf73dfcee38a9812a60373b4d3af8b375
[ "Apache-2.0" ]
null
null
null
tests/aem_opencloud/test_stack_types.py
shinesolutions/pyaemaws
c5afccfdf73dfcee38a9812a60373b4d3af8b375
[ "Apache-2.0" ]
2
2020-06-22T04:35:36.000Z
2020-11-18T11:51:17.000Z
import unittest from pyaemaws.aem_opencloud.stack_types import StackTypes class TestStackTypes(unittest.TestCase): def test_full_set(self): stack_type = StackTypes.FULL_SET self.assertEqual(stack_type.name, 'FULL_SET') self.assertEqual(stack_type.get_name(), 'full-set') self.asser...
34.925926
64
0.71368
08b4d361710df17ff4dd35948c48fd6bf4fec2b6
5,628
py
Python
lmtuners/lightning_modules/lm.py
shoarora/polytune
86f31ba3f41ea47edcfa0442a29a79a2a46deaeb
[ "MIT" ]
2
2020-09-17T10:12:36.000Z
2020-11-22T16:34:08.000Z
lmtuners/lightning_modules/lm.py
shoarora/polytune
86f31ba3f41ea47edcfa0442a29a79a2a46deaeb
[ "MIT" ]
null
null
null
lmtuners/lightning_modules/lm.py
shoarora/polytune
86f31ba3f41ea47edcfa0442a29a79a2a46deaeb
[ "MIT" ]
null
null
null
"""Pytorch lightning module for language modelling.""" import logging import os from argparse import Namespace import pytorch_lightning as pl import torch from pytorch_lamb import Lamb from transformers import get_linear_schedule_with_warmup logger = logging.getLogger(__name__) class LMTrainingModuleConfig(Namespac...
34.527607
78
0.562544