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
9e0773f2bba59d20cb88d182b4da0af7136e480c
2,294
py
Python
docs/conf.py
Kravcu/cyclonedx-python-lib
d4007bd5986173eb2645eebcdd2c6405150f1456
[ "Apache-2.0" ]
15
2021-09-08T19:01:48.000Z
2022-02-15T17:42:02.000Z
docs/conf.py
Kravcu/cyclonedx-python-lib
d4007bd5986173eb2645eebcdd2c6405150f1456
[ "Apache-2.0" ]
124
2021-09-14T16:54:02.000Z
2022-03-24T15:23:46.000Z
docs/conf.py
Kravcu/cyclonedx-python-lib
d4007bd5986173eb2645eebcdd2c6405150f1456
[ "Apache-2.0" ]
10
2021-09-24T11:35:14.000Z
2022-01-28T01:56:06.000Z
# encoding: utf-8 # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
35.292308
78
0.6966
9e0792ebd316edb2b3bbb57de20531e8f7fd771d
5,130
py
Python
pydemic/fitting/exponential_growth.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
3
2020-05-10T23:52:41.000Z
2021-08-31T14:38:24.000Z
pydemic/fitting/exponential_growth.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-09-27T03:26:51.000Z
2022-03-30T12:18:08.000Z
pydemic/fitting/exponential_growth.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-10-01T04:07:39.000Z
2020-10-01T04:07:39.000Z
from typing import Sequence import statsmodels.api as sm import numpy as np import pandas as pd from ..types import ValueStd from ..utils import trim_zeros from .. import formulas def growth_factor(ys: Sequence) -> ValueStd: """ Infer the growth factor from series of data points ys. The growth factor "...
29.653179
83
0.610916
9e07aa0ebbd5b1eaf1c6fd42333882dee14f02b7
18,371
py
Python
HDF4_H5_NETCDF/source2.7/Cython/Compiler/Scanning.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
5
2018-07-02T19:10:39.000Z
2021-09-27T04:05:10.000Z
HDF4_H5_NETCDF/source2.7/Cython/Compiler/Scanning.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
3
2018-06-10T06:28:06.000Z
2021-09-24T13:54:19.000Z
HDF4_H5_NETCDF/source2.7/Cython/Compiler/Scanning.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-09-23T13:43:07.000Z
2021-09-23T13:43:07.000Z
# cython: infer_types=True, language_level=3, py2_import=True, auto_pickle=False # # Cython Scanner # from __future__ import absolute_import import cython cython.declare(make_lexicon=object, lexicon=object, print_function=object, error=object, warning=object, os=object, platform=object...
33.708257
113
0.598225
9e07b470bf3b79a2cdd670f16b2fe315eb9ce070
403,564
py
Python
docassemble_base/docassemble/base/parse.py
jell0720/docassemble
972b9c26fe32cb007aac6c26e7bbbe777f1d2278
[ "MIT" ]
null
null
null
docassemble_base/docassemble/base/parse.py
jell0720/docassemble
972b9c26fe32cb007aac6c26e7bbbe777f1d2278
[ "MIT" ]
null
null
null
docassemble_base/docassemble/base/parse.py
jell0720/docassemble
972b9c26fe32cb007aac6c26e7bbbe777f1d2278
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import mimetypes import traceback import re from io import open from six import string_types, text_type, PY2, PY3 from jinja2.runtime import StrictUndefined, UndefinedError from jinja2.exceptions import TemplateError from jinja2.environment import Environment from jinja2.environment import Templ...
62.84086
630
0.542281
9e07ba391dc0c788239213cde8d0cc54e40e5ab3
1,790
py
Python
google-cloud-sdk/lib/surface/kms/keyrings/set_iam_policy.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/kms/keyrings/set_iam_policy.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/kms/keyrings/set_iam_policy.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
36.530612
79
0.767039
9e07e2ad967deaf42bee6e7ba8a0ca8b45a12526
4,809
py
Python
cinder/tests/unit/test_coordination.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/test_coordination.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/test_coordination.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Intel # 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.866197
78
0.678727
9e07f29b9a0d8bfc4af1c8bd4855d2ebf78f0b18
1,890
py
Python
pos_frequency_pipeline.py
SophyaPerepelkina/2021-2-level-ctlr
97ef258a74fe48c5e2151a1cecdefccc61601f07
[ "MIT" ]
null
null
null
pos_frequency_pipeline.py
SophyaPerepelkina/2021-2-level-ctlr
97ef258a74fe48c5e2151a1cecdefccc61601f07
[ "MIT" ]
null
null
null
pos_frequency_pipeline.py
SophyaPerepelkina/2021-2-level-ctlr
97ef258a74fe48c5e2151a1cecdefccc61601f07
[ "MIT" ]
null
null
null
""" Implementation of POSFrequencyPipeline for score ten only. """ import json import re from constants import ASSETS_PATH from core_utils.article import ArtifactType from core_utils.visualizer import visualize from pipeline import CorpusManager, validate_dataset class EmptyFileError(Exception): """ Custom ...
28.208955
86
0.601058
9e07f626ef265cba134ae91aa42784206ec4f09d
3,469
py
Python
FEBDAQMULTx2/data_analysis/4_mppc_breakdown_and_gain_analysis/v2_compare_two_breakdown_vs_channel.py
kaikai581/t2k-mppc-daq
6b4f7bf04d885e952d9fd653df8f9ca1dd31089e
[ "MIT" ]
null
null
null
FEBDAQMULTx2/data_analysis/4_mppc_breakdown_and_gain_analysis/v2_compare_two_breakdown_vs_channel.py
kaikai581/t2k-mppc-daq
6b4f7bf04d885e952d9fd653df8f9ca1dd31089e
[ "MIT" ]
null
null
null
FEBDAQMULTx2/data_analysis/4_mppc_breakdown_and_gain_analysis/v2_compare_two_breakdown_vs_channel.py
kaikai581/t2k-mppc-daq
6b4f7bf04d885e952d9fd653df8f9ca1dd31089e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os, sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../utilities')) import argparse import common_tools import matplotlib.pyplot as plt import pandas as pd def plot_figure(mark_feb=False): fig, ax = plt.subplots() for df, meas_id in zip(dfs, meas_ids): ax....
43.3625
152
0.630729
9e0809eee81d5a8aaab222f46f83a36891ceeac4
2,802
py
Python
doc/scripts/build_specobj_rst.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
107
2018-08-06T07:07:20.000Z
2022-02-28T14:33:42.000Z
doc/scripts/build_specobj_rst.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
889
2018-07-26T12:14:33.000Z
2022-03-18T22:49:42.000Z
doc/scripts/build_specobj_rst.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
74
2018-09-25T17:03:07.000Z
2022-03-10T23:59:24.000Z
""" Dynamically build the rst documentation for the specobj and spec2dobj objects """ import os import time import numpy from pkg_resources import resource_filename from pypeit.utils import to_string, string_table from pypeit import specobj from pypeit import spec2dobj from pypeit import coadd1d from IPython import ...
34.170732
98
0.538901
9e080b18bf7de0a0ad73f203d58ba0bf708d10dd
37,681
py
Python
src/fractalshades/perturbation.py
GBillotey/Fractal-shades
99c690cb1114ab7edcbfd9836af585fed2b133e8
[ "MIT" ]
3
2021-03-06T18:32:51.000Z
2021-07-07T01:35:21.000Z
src/fractalshades/perturbation.py
GBillotey/Fractal-shades
99c690cb1114ab7edcbfd9836af585fed2b133e8
[ "MIT" ]
null
null
null
src/fractalshades/perturbation.py
GBillotey/Fractal-shades
99c690cb1114ab7edcbfd9836af585fed2b133e8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import os import pickle import copy import mpmath import random import fractalshades as fs import fractalshades.numpy_utils.xrange as fsx import fractalshades.numpy_utils.numba_xr # as fsxn import fractalshades.settings as fssettings import fractalshades.utils as fsutils impo...
41.682522
99
0.557655
9e0825930ec36770cfd6a5911b74cb4d2cc8d5ff
6,537
py
Python
1_code/free_play/data.py
jaimiles23/Multiplication_Medley
1072dea1a5be0b339211ff39db6a89a90aca64c1
[ "MIT" ]
null
null
null
1_code/free_play/data.py
jaimiles23/Multiplication_Medley
1072dea1a5be0b339211ff39db6a89a90aca64c1
[ "MIT" ]
null
null
null
1_code/free_play/data.py
jaimiles23/Multiplication_Medley
1072dea1a5be0b339211ff39db6a89a90aca64c1
[ "MIT" ]
null
null
null
"""/** * @author [Jai Miles] * @email [jaimiles23@gmail.com] * @create date 2020-05-07 23:09:05 * @modify date 2020-05-13 17:06:48 * @desc [ Data module for free play mode. Contains - Slots that can be provided in free play mode And messages for: - Auxiliary clauses - Times table range. ...
15.490521
79
0.588037
9e082fd2b9356c70352e0027f8f898b8abe3f4c1
210,834
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_12_01_preview/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_12_01_preview/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_12_01_preview/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
41.251027
152
0.663944
9e087c1f0a310fe563644ce31d73869a883df7c9
2,628
py
Python
pbase_old/logger.py
Impavidity/pinfrastructure
b5577fe1e140e0b360aec2834349ba87647eb000
[ "MIT" ]
10
2017-12-04T03:50:50.000Z
2020-09-25T07:24:32.000Z
pbase_old/logger.py
Impavidity/pinfrastructure
b5577fe1e140e0b360aec2834349ba87647eb000
[ "MIT" ]
8
2018-07-14T09:45:38.000Z
2018-09-17T20:56:52.000Z
pbase_old/logger.py
Impavidity/pinfrastructure
b5577fe1e140e0b360aec2834349ba87647eb000
[ "MIT" ]
1
2017-11-24T18:31:53.000Z
2017-11-24T18:31:53.000Z
# Code referenced from https://gist.github.com/gyglim/1f8dfb1b5c82627ae3efcfbbadb9f514 import tensorflow as tf import scipy.misc import numpy as np import os try: from StringIO import StringIO # Python 2.7 except ImportError: from io import BytesIO # Python 3.x class Logger(object): def __init...
36
90
0.579528
9e0893e9f2c61c287e1f68fce297634d16139311
2,879
py
Python
_CNDB/_OMP/Wireless_Interface_uses_Antenna.py
CNDB/CNDB
2e3a41111f604cf2f4f22a7c9370bb3f753e3e88
[ "BSD-3-Clause" ]
null
null
null
_CNDB/_OMP/Wireless_Interface_uses_Antenna.py
CNDB/CNDB
2e3a41111f604cf2f4f22a7c9370bb3f753e3e88
[ "BSD-3-Clause" ]
null
null
null
_CNDB/_OMP/Wireless_Interface_uses_Antenna.py
CNDB/CNDB
2e3a41111f604cf2f4f22a7c9370bb3f753e3e88
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2012-2014 Mag. Christian Tanzer All rights reserved # Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at # #*** <License> ************************************************************# # This module is part of the package CNDB.OMP. # # This module is licensed under the t...
30.62766
85
0.609934
9e08c428f18a1c853d189ed8192cdf5fe38cb1f7
22,831
py
Python
lib/utils/KeypointEvaluator.py
leijue222/TransPose
a0ed0adcd70a0f57425cbe4ef2bd06c4bfaa5f45
[ "MIT" ]
null
null
null
lib/utils/KeypointEvaluator.py
leijue222/TransPose
a0ed0adcd70a0f57425cbe4ef2bd06c4bfaa5f45
[ "MIT" ]
null
null
null
lib/utils/KeypointEvaluator.py
leijue222/TransPose
a0ed0adcd70a0f57425cbe4ef2bd06c4bfaa5f45
[ "MIT" ]
1
2021-12-16T07:50:40.000Z
2021-12-16T07:50:40.000Z
import glob import os import pickle import json import shutil class KeypointEvaluator() : def __init__(self) : self.__start_points = [1,2,6,10] self.__cluter_mode = ClusterMode(self.__start_points) # 默认模式 def __load_index2humans(self, index_file_path) : with open(index_fi...
41.96875
151
0.634707
9e08cc29f10eaee311764a7f3cfb231ebd59e661
9,398
py
Python
hw4/cs285/envs/ant/ant.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
91
2020-06-13T16:26:42.000Z
2022-03-31T02:49:30.000Z
hw4/cs285/envs/ant/ant.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
8
2020-09-26T01:29:18.000Z
2022-02-10T02:07:53.000Z
hw4/cs285/envs/ant/ant.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
16
2020-08-04T01:17:45.000Z
2022-02-24T04:51:41.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.807407
155
0.563631
9e08f966d25c7d1bb8aead72f41cb3e9a97196e5
3,141
py
Python
twitoff/app.py
Full-Data-Alchemist/twitt-off
8e7016dcd6a3341e0812a53b0abe226a953f4a8b
[ "MIT" ]
null
null
null
twitoff/app.py
Full-Data-Alchemist/twitt-off
8e7016dcd6a3341e0812a53b0abe226a953f4a8b
[ "MIT" ]
null
null
null
twitoff/app.py
Full-Data-Alchemist/twitt-off
8e7016dcd6a3341e0812a53b0abe226a953f4a8b
[ "MIT" ]
null
null
null
""" Main app/routing file for twitoff """ from os import getenv from flask import Flask, render_template, request from .models import DB, User from .twitter import add_or_update_user, update_all_users from .prediction import predict_user from dotenv import load_dotenv # creates application def create_app(): """ ...
34.9
81
0.526584
9e08fb4e7c851070009a5ba83bffb3226a2fbc41
3,155
py
Python
flute/settings/base.py
msampaio/FlautaSolo
407253513712462e3521c06bcc35a9b95da0fe19
[ "BSD-3-Clause" ]
null
null
null
flute/settings/base.py
msampaio/FlautaSolo
407253513712462e3521c06bcc35a9b95da0fe19
[ "BSD-3-Clause" ]
4
2019-03-18T20:11:30.000Z
2019-03-18T20:11:59.000Z
flute/settings/base.py
msampaio/FlautaSolo
407253513712462e3521c06bcc35a9b95da0fe19
[ "BSD-3-Clause" ]
null
null
null
from os.path import abspath, basename, dirname, join, normpath from sys import path DJANGO_ROOT = dirname(dirname(abspath(__file__))) SITE_ROOT = dirname(DJANGO_ROOT) SITE_NAME = basename(DJANGO_ROOT) path.append(DJANGO_ROOT) DEBUG = False TEMPLATE_DEBUG = DEBUG ADMINS = ( ('Pedro Kroger', 'kroger@pedrokroger.n...
24.083969
73
0.687797
9e09013e5c3e3c1e169536df0eeae040088ea633
6,590
py
Python
asposewordscloud/models/section_link_collection_response.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/section_link_collection_response.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/section_link_collection_response.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="section_link_collection_response.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaini...
36.010929
94
0.595144
9e0904c20ff6e29c124fed45d3c8d13b9a003d25
5,370
py
Python
Tools/Scripts/webkitpy/inspector/main.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/inspector/main.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/inspector/main.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2011 Google Inc. All rights reserved. # Copyright (C) 2014 Apple 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: # # 1. Redistributions of source code must retain the above c...
39.485294
126
0.651583
9e092c276316bb670246bcfae0ea196edf770cea
2,895
gyp
Python
components/components_resources.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
components/components_resources.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
components/components_resources.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'about_credits_file': '<(SHARED_INTERMEDIATE_DIR)/about_credits.html', 'about_credits_file_bro': '<(SHARED_INTERMEDIATE_DIR)/about...
30.797872
77
0.529879
9e095a8a67ae8a5f0e60a75c5eeeb5a3036e83d0
2,311
py
Python
tests/api/test_job.py
SubhashishQPIT/strawberryfields
dae6ae8b1b3eb188fc2c874bd6c943bebf697ab9
[ "Apache-2.0" ]
646
2018-03-26T15:12:35.000Z
2022-03-21T18:52:42.000Z
tests/api/test_job.py
SubhashishQPIT/strawberryfields
dae6ae8b1b3eb188fc2c874bd6c943bebf697ab9
[ "Apache-2.0" ]
666
2018-03-27T20:21:27.000Z
2022-03-25T18:35:33.000Z
tests/api/test_job.py
SubhashishQPIT/strawberryfields
dae6ae8b1b3eb188fc2c874bd6c943bebf697ab9
[ "Apache-2.0" ]
182
2018-04-11T17:09:39.000Z
2022-03-29T15:38:43.000Z
# Copyright 2020 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
39.169492
98
0.711813
9e09655c97e7745ba77a48c4d846fa13a1fbca5d
1,178
py
Python
tensorbay/cli/log.py
Machearn/tensorbay-python-sdk
0171385365f1d7317ac5c5dc11d6affccadddbee
[ "MIT" ]
null
null
null
tensorbay/cli/log.py
Machearn/tensorbay-python-sdk
0171385365f1d7317ac5c5dc11d6affccadddbee
[ "MIT" ]
null
null
null
tensorbay/cli/log.py
Machearn/tensorbay-python-sdk
0171385365f1d7317ac5c5dc11d6affccadddbee
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # """Implementation of gas log.""" from datetime import datetime from typing import Dict, Optional import click from ..client.struct import Commit from .tbrn import TBRN from .utility import get_dataset_client, get_gas, shorten _FULL_LO...
21.418182
87
0.682513
9e097f7c23b0b9d91c5a47cfddb9f2699df75ab8
1,223
py
Python
test/test_phone_number_validate_request.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
3
2018-06-23T21:37:21.000Z
2020-04-20T23:07:36.000Z
test/test_phone_number_validate_request.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
1
2019-02-04T17:03:35.000Z
2019-03-02T20:16:52.000Z
test/test_phone_number_validate_request.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
2
2019-03-21T15:54:15.000Z
2020-05-27T17:30:43.000Z
# coding: utf-8 """ validateapi The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API. # noqa: E501 OpenAPI spec version: v1 Ge...
29.829268
240
0.753884
9e09af5fe1025ac828f41e48ea14bb4acc5969ce
224
py
Python
pni_customization/pni_customization/doctype/update_shift_request/test_update_shift_request.py
DaizyModi/pni_customization
577946e91c8fe956ca64c089327ce18174002ec4
[ "MIT" ]
null
null
null
pni_customization/pni_customization/doctype/update_shift_request/test_update_shift_request.py
DaizyModi/pni_customization
577946e91c8fe956ca64c089327ce18174002ec4
[ "MIT" ]
null
null
null
pni_customization/pni_customization/doctype/update_shift_request/test_update_shift_request.py
DaizyModi/pni_customization
577946e91c8fe956ca64c089327ce18174002ec4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Jigar Tarpara and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestUpdateShiftRequest(unittest.TestCase): pass
20.363636
52
0.772321
9e09dc6f5b5250604456c83eb65d4385256cb63c
433
py
Python
tests/test_html_tags/test_footer_tag.py
bharadwajyarlagadda/korona
ee4662b6a29907495e31ed2581dc5484bb03eadc
[ "MIT" ]
2
2016-10-11T03:57:30.000Z
2018-01-19T20:13:47.000Z
tests/test_html_tags/test_footer_tag.py
iskodirajga/korona
ee4662b6a29907495e31ed2581dc5484bb03eadc
[ "MIT" ]
16
2016-08-19T04:08:45.000Z
2016-09-27T03:26:39.000Z
tests/test_html_tags/test_footer_tag.py
iskodirajga/korona
ee4662b6a29907495e31ed2581dc5484bb03eadc
[ "MIT" ]
1
2016-10-11T03:57:33.000Z
2016-10-11T03:57:33.000Z
# -*- coding: utf-8 -*- from ..fixtures import parametrize from korona.html.tags import Footer from korona.templates.html.tags import footer @parametrize('attributes', [ ({'text': 'abcd'}) ]) def test_construct_footer_tag(attributes): """Test for validating whether the footer tag is constructed correctly or...
24.055556
77
0.704388
9e09e4a95040d8f74c342e5ceffee53f0e91822b
1,969
py
Python
tests/common/test_op/ascend/triplet_loss_grad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/ascend/triplet_loss_grad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/ascend/triplet_loss_grad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 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 agre...
42.804348
157
0.715084
9e0a2b543a04c8092a3c16c5a801802930d2d432
6,409
py
Python
fastmvsnet/networks.py
molspace/FastMVS_experiments
b897015d77600687ca2addf99bb6a6f0de524e5f
[ "MIT" ]
173
2020-03-29T17:34:51.000Z
2022-03-03T06:59:21.000Z
fastmvsnet/networks.py
molspace/FastMVS_experiments
b897015d77600687ca2addf99bb6a6f0de524e5f
[ "MIT" ]
25
2020-04-17T02:17:06.000Z
2022-03-30T05:15:31.000Z
fastmvsnet/networks.py
molspace/FastMVS_experiments
b897015d77600687ca2addf99bb6a6f0de524e5f
[ "MIT" ]
33
2020-03-31T01:38:55.000Z
2022-01-31T17:22:06.000Z
import torch import torch.nn as nn import torch.nn.functional as F from fastmvsnet.nn.conv import * import numpy as np class ImageConv(nn.Module): def __init__(self, base_channels, in_channels=3): super(ImageConv, self).__init__() self.base_channels = base_channels self.out_channels = 8 *...
37.923077
104
0.634888
9e0a61876a1d277f552bc891ac470097c6a065cd
7,642
py
Python
python_modules/libraries/dagster-k8s/dagster_k8s_tests/unit_tests/test_utils.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-k8s/dagster_k8s_tests/unit_tests/test_utils.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-k8s/dagster_k8s_tests/unit_tests/test_utils.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
from dagster_k8s import utils from dagster import check from dagster.core.events import DagsterEvent from dagster.core.execution.plan.objects import StepSuccessData def test_filter_dagster_events_from_pod_logs(): sameple_output = """ 2020-07-17 11:31:58 - dagster - DEBUG - foo - new_run - STEP_START - Start...
89.905882
751
0.668804
9e0a8f3b860c341151c58318056263395b5a24d1
389
py
Python
nepfdb/wsgi.py
lcbiplove/nepfdb
56e48bb0dcae34d409b7d75d210d2938e763a953
[ "MIT" ]
null
null
null
nepfdb/wsgi.py
lcbiplove/nepfdb
56e48bb0dcae34d409b7d75d210d2938e763a953
[ "MIT" ]
null
null
null
nepfdb/wsgi.py
lcbiplove/nepfdb
56e48bb0dcae34d409b7d75d210d2938e763a953
[ "MIT" ]
null
null
null
""" WSGI config for nepfdb project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
22.882353
78
0.784062
9e0abbda2de4db86aeb1b2aab6fc92aa92d1a7df
1,482
py
Python
profiles_api/serializers.py
androidbeing/profiles-rest-api
ab986383a684db506d56a77529d3013a2b26a78b
[ "MIT" ]
null
null
null
profiles_api/serializers.py
androidbeing/profiles-rest-api
ab986383a684db506d56a77529d3013a2b26a78b
[ "MIT" ]
null
null
null
profiles_api/serializers.py
androidbeing/profiles-rest-api
ab986383a684db506d56a77529d3013a2b26a78b
[ "MIT" ]
null
null
null
from rest_framework import serializers from profiles_api import models class HelloSerializer(serializers.Serializer): """Serializers a name field for testing our APIView""" name = serializers.CharField(max_length=10) class UserProfileSerializer(serializers.ModelSerializer): """Serializes a UserProfile...
29.058824
68
0.630229
9e0abcae004f2bd90a388f455d3b97856292328f
13,796
py
Python
cardpay/model/refund_response_refund_data.py
cardpay/python-sdk-v3
35e7c42ca3e9a1ea6222fe2150f92ede64c70248
[ "MIT" ]
6
2019-07-16T06:27:25.000Z
2021-03-04T14:24:05.000Z
cardpay/model/refund_response_refund_data.py
cardpay/python-sdk-v3
35e7c42ca3e9a1ea6222fe2150f92ede64c70248
[ "MIT" ]
5
2019-11-18T09:07:51.000Z
2021-02-12T13:59:55.000Z
cardpay/model/refund_response_refund_data.py
cardpay/python-sdk-v3
35e7c42ca3e9a1ea6222fe2150f92ede64c70248
[ "MIT" ]
5
2019-07-18T13:42:15.000Z
2021-11-18T12:40:32.000Z
# coding: utf-8 """ CardPay REST API Welcome to the CardPay REST API. The CardPay API uses HTTP verbs and a [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) resources endpoint structure (see more info about REST). Request and response payloads are formatted as JSON. Merchant uses API to c...
30.932735
546
0.594738
9e0ac622cf888a7439e8c3fd3e65c45e9b248250
3,566
py
Python
fnat_testset/testcase/testcategory_1/testgroup_3.py
lizhouw-netscout/fnat
684958773379a9205857f1932de443ed0c4334a0
[ "Apache-2.0" ]
null
null
null
fnat_testset/testcase/testcategory_1/testgroup_3.py
lizhouw-netscout/fnat
684958773379a9205857f1932de443ed0c4334a0
[ "Apache-2.0" ]
null
null
null
fnat_testset/testcase/testcategory_1/testgroup_3.py
lizhouw-netscout/fnat
684958773379a9205857f1932de443ed0c4334a0
[ "Apache-2.0" ]
null
null
null
from fnat_dev import FnatDevice from switch import Switch import time import sys import os from gateway import Gateway from dhcp import DHCP from dns import DNS from nistnet import Nistnet from demo import UITest import serial import pymongo from pymongo import MongoClient from selenium import webdriver from wifi impor...
30.478632
121
0.691531
9e0ad8f7c7c91b965c277570688fe44c8cf0aa4a
4,790
py
Python
getl/manager.py
husqvarnagroup/GETL
37251abf12bac2efed1fe463b09a288d85969141
[ "MIT" ]
8
2020-06-10T09:00:17.000Z
2021-06-07T18:02:19.000Z
getl/manager.py
husqvarnagroup/GETL
37251abf12bac2efed1fe463b09a288d85969141
[ "MIT" ]
5
2020-07-03T10:39:25.000Z
2021-08-30T14:52:47.000Z
getl/manager.py
husqvarnagroup/GETL
37251abf12bac2efed1fe463b09a288d85969141
[ "MIT" ]
1
2020-05-28T07:53:48.000Z
2020-05-28T07:53:48.000Z
"""Manager class that executes lift definitions.""" from collections import OrderedDict from importlib import import_module from types import FunctionType, ModuleType from typing import Dict, Iterator, Tuple, Union from pyspark.sql import DataFrame, SparkSession from getl.block import BlockConfig, FileRegistryLog, Li...
40.252101
111
0.623382
9e0adf24741494b6c3b3a04b82674383993fdd68
23,321
py
Python
appengine/third_party_local/depot_tools/git_common.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
10
2016-06-15T06:27:53.000Z
2019-08-29T05:44:28.000Z
appengine/third_party_local/depot_tools/git_common.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/third_party_local/depot_tools/git_common.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
19
2016-03-25T08:12:35.000Z
2022-02-14T06:05:26.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Monkeypatch IMapIterator so that Ctrl-C can kill everything properly. # Derived from https://gist.github.com/aljungberg/626518 import multiprocessing.pool ...
28.440244
80
0.666567
9e0ae2d76c8985b71f0880e625bdea9371eb0a90
8,571
py
Python
nicos_mlz/spheres/devices/doppler.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/spheres/devices/doppler.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
4
2019-11-08T10:18:16.000Z
2021-01-13T13:07:29.000Z
nicos_mlz/spheres/devices/doppler.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
38.093333
80
0.595263
9e0af1e361020911cf363c951971b93bbc49c423
2,089
py
Python
make_train_list.py
svngoku/transilien
ecd6b9a0b7f0ecacdbe5eeb27e3b7cafb8f11a72
[ "MIT" ]
4
2019-10-07T15:24:26.000Z
2021-12-31T07:37:41.000Z
make_train_list.py
svngoku/transilien
ecd6b9a0b7f0ecacdbe5eeb27e3b7cafb8f11a72
[ "MIT" ]
1
2021-10-02T08:05:31.000Z
2021-12-17T09:59:44.000Z
make_train_list.py
svngoku/transilien
ecd6b9a0b7f0ecacdbe5eeb27e3b7cafb8f11a72
[ "MIT" ]
1
2020-09-02T20:12:42.000Z
2020-09-02T20:12:42.000Z
"""Generate a list of trains and export to JSON""" import json import click import database import settings def get_nominal_hour(train_num): """Get the nominal hour for a train num (most frequent)""" res = database.get().query(""" SELECT count(*) as count, substr(date, 12, 5) as hour FROM r...
30.275362
91
0.561034
9e0b07fba257b46045dc3704c480fc05ed4f23e3
13,601
py
Python
hooks/charmhelpers/contrib/openstack/amulet/deployment.py
projectcalico/charm-neutron-api
ddaf4f2f2f0484d929a5e3a2615ac823249dcf93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
hooks/charmhelpers/contrib/openstack/amulet/deployment.py
projectcalico/charm-neutron-api
ddaf4f2f2f0484d929a5e3a2615ac823249dcf93
[ "ECL-2.0", "Apache-2.0" ]
1
2022-03-16T16:44:58.000Z
2022-03-16T16:44:58.000Z
tests/charmhelpers/contrib/openstack/amulet/deployment.py
isabella232/charm-neutron-api
ddaf4f2f2f0484d929a5e3a2615ac823249dcf93
[ "ECL-2.0", "Apache-2.0" ]
2
2017-11-02T13:20:15.000Z
2022-03-16T16:08:38.000Z
# Copyright 2014-2015 Canonical Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
39.309249
79
0.56187
9e0b3203f33c9112b6e84e14cfe69a3041d31ff8
726
py
Python
data/__init__.py
drkostas/SemiSeg-Contrastive
af6b133400368911ef77f401b7673894fe6aa05c
[ "Apache-2.0" ]
null
null
null
data/__init__.py
drkostas/SemiSeg-Contrastive
af6b133400368911ef77f401b7673894fe6aa05c
[ "Apache-2.0" ]
null
null
null
data/__init__.py
drkostas/SemiSeg-Contrastive
af6b133400368911ef77f401b7673894fe6aa05c
[ "Apache-2.0" ]
null
null
null
import json from data.cityscapes_loader import cityscapesLoader from data.minifrance_loader import minifranceLoader from data.voc_dataset import VOCDataSet def get_loader(name): """get_loader :param name: """ return { "cityscapes": cityscapesLoader, "minifrance_lbl": minifranceLoader, ...
22.6875
51
0.632231
9e0b38785f42750dd7b982e0c8d839a178312ded
40,098
py
Python
autoscale/server_control/server_control.py
usaar33/ec2_autoscale
e1646869057c1d01d031b2a19bb62db5c31817aa
[ "MIT" ]
null
null
null
autoscale/server_control/server_control.py
usaar33/ec2_autoscale
e1646869057c1d01d031b2a19bb62db5c31817aa
[ "MIT" ]
null
null
null
autoscale/server_control/server_control.py
usaar33/ec2_autoscale
e1646869057c1d01d031b2a19bb62db5c31817aa
[ "MIT" ]
null
null
null
''' Low-level object to bring up and tear down servers Abstraction note: Instance objects are expected to conform to boto standard Note that this method is not intended to be auto-scaler specific; it is a generic server booting system. ''' import __builtin__ from datetime import datetime as dtime import errno import ...
41.899687
142
0.628236
9e0b4a216150a3d2a124ae267d1afb2fdad4cce6
4,759
py
Python
nlisim/modules/mcp1.py
jbeezley/simulation-hello-world
b4e1258de9c7601af1701041fa39f8f6c5e5a61e
[ "Apache-2.0" ]
4
2021-05-21T15:46:15.000Z
2022-03-01T02:58:32.000Z
nlisim/modules/mcp1.py
jbeezley/simulation-hello-world
b4e1258de9c7601af1701041fa39f8f6c5e5a61e
[ "Apache-2.0" ]
10
2020-11-10T23:20:37.000Z
2022-03-12T01:34:47.000Z
nlisim/modules/mcp1.py
jbeezley/simulation-hello-world
b4e1258de9c7601af1701041fa39f8f6c5e5a61e
[ "Apache-2.0" ]
2
2020-12-16T14:24:26.000Z
2021-01-08T15:56:20.000Z
from typing import Any, Dict import attr import numpy as np from nlisim.coordinates import Voxel from nlisim.diffusion import apply_diffusion from nlisim.grid import RectangularGrid from nlisim.module import ModuleModel, ModuleState from nlisim.modules.molecules import MoleculesState from nlisim.state import State fr...
37.179688
96
0.657911
9e0b675c468acceb9252341f6d3e4b500b9d579f
349
py
Python
pillbox/pillbox_support/validator.py
xasync/pillbox
49f3ed08aff63ea458a9d80a19846339e02447f8
[ "Apache-2.0" ]
null
null
null
pillbox/pillbox_support/validator.py
xasync/pillbox
49f3ed08aff63ea458a9d80a19846339e02447f8
[ "Apache-2.0" ]
null
null
null
pillbox/pillbox_support/validator.py
xasync/pillbox
49f3ed08aff63ea458a9d80a19846339e02447f8
[ "Apache-2.0" ]
null
null
null
import re def email(text): """ Check if text is match the email format :param text: The Input Email :return: Ture Or False """ try: string = str(text).strip() if len(string) <= 0: return False return re.match(r'^.+@(\w+\.)+[a-zA-Z]+$', text) is not None ...
20.529412
68
0.527221
9e0b7386d1be9c7dab3606dc1f4cb399d03f8c6e
8,582
py
Python
indico/modules/attachments/forms.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
1
2021-12-27T17:51:27.000Z
2021-12-27T17:51:27.000Z
indico/modules/attachments/forms.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
indico/modules/attachments/forms.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from wtforms.fields import BooleanField, TextAreaField, URLField from wtforms.fields.simple import HiddenF...
53.304348
120
0.618038
9e0b81aa98d0d4f821921e790db2c4445bf86cdb
2,848
py
Python
src/sardana/pool/pooltriggergate.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
src/sardana/pool/pooltriggergate.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
src/sardana/pool/pooltriggergate.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 ############################################################################## ## # This file is part of Sardana ## # http://www.tango-controls.org/static/sardana/latest/doc/html/index.html ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redi...
35.6
80
0.60323
9e0ba756f5d5b1b37b6236fbdeb9b4d257ed7c84
2,403
py
Python
tests/test_alle_county.py
danielahuang/city-scrapers
711d1995f59100793e771068a6f5d9149e773412
[ "MIT" ]
null
null
null
tests/test_alle_county.py
danielahuang/city-scrapers
711d1995f59100793e771068a6f5d9149e773412
[ "MIT" ]
null
null
null
tests/test_alle_county.py
danielahuang/city-scrapers
711d1995f59100793e771068a6f5d9149e773412
[ "MIT" ]
null
null
null
import datetime import json import os import pytest from freezegun import freeze_time from city_scrapers.spiders.alle_county import AlleCountySpider freezer = freeze_time('2018-11-27') freezer.start() spider = AlleCountySpider() with open(os.path.join(os.path.dirname(__file__), 'files', 'alle_county.json'), 'r') as ...
23.558824
90
0.603412
9e0bd133e5ecc55dc6e6dee09243c3465c7318f2
65,684
py
Python
sample_mods/bfb/bfb_abs_cons7momdt_nmpc_simplified.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
2
2019-09-26T20:56:06.000Z
2019-11-18T21:03:27.000Z
sample_mods/bfb/bfb_abs_cons7momdt_nmpc_simplified.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
6
2018-03-19T20:36:49.000Z
2018-04-13T15:27:29.000Z
sample_mods/bfb/bfb_abs_cons7momdt_nmpc_simplified.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
5
2018-10-04T18:51:02.000Z
2020-07-02T15:31:35.000Z
from __future__ import division from pyomo.core.base import Constraint, sqrt, exp, Expression, log from nmpc_mhe.aux.cpoinsc import collptsgen from nmpc_mhe.aux.lagrange_f import lgr, lgry, lgrdot, lgrydot """ Version note implemented momentum balance and diffusive terms for the bubble region (gas) have pressure give...
36.309563
423
0.485004
9e0be2e4ed4e613404a26c60f6784c37576c8816
52,861
py
Python
GearBot/Cogs/Moderation.py
mrkirby153/GearBot
a61d936c12e906c7bcfaa840a585ee25ffc06138
[ "MIT" ]
null
null
null
GearBot/Cogs/Moderation.py
mrkirby153/GearBot
a61d936c12e906c7bcfaa840a585ee25ffc06138
[ "MIT" ]
null
null
null
GearBot/Cogs/Moderation.py
mrkirby153/GearBot
a61d936c12e906c7bcfaa840a585ee25ffc06138
[ "MIT" ]
null
null
null
import asyncio import datetime import time from typing import Optional import discord from discord import Object, Emoji, Forbidden, NotFound from discord.ext import commands from discord.ext.commands import BadArgument, Greedy, MemberConverter, RoleConverter from Bot import TheRealGearBot from Cogs.BaseCog import Bas...
53.939796
215
0.5858
9e0bf1282945b2147ef1c59c708fa9f92eb1f5e9
983
py
Python
initialize.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
null
null
null
initialize.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
null
null
null
initialize.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
null
null
null
import pybitflyer from lib import message, repository, stdout from lib.config import Bitflyer from lib.exception import ConfigException def config_test(): sql = "select * from entry" repository.read_sql(database=DATABASE, sql=sql) api = pybitflyer.API( api_key=Bitflyer.Api.value.KEY.value, ...
22.340909
63
0.695829
9e0c02c1591481f8d72cc3aaf15a7de1bf248f0c
2,432
py
Python
sdk/eventgrid/azure-eventgrid/samples/publish_samples/publish_with_shared_access_signature_sample.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/eventgrid/azure-eventgrid/samples/publish_samples/publish_with_shared_access_signature_sample.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/eventgrid/azure-eventgrid/samples/publish_samples/publish_with_shared_access_signature_sample.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """ FILE:...
39.868852
106
0.674342
9e0c10cfa9ede1b788a611ac5dcac9b5a1e5db15
6,693
py
Python
python/src/opendp/meas.py
sarus-tech/opendp
e4b1714fdadd72fe488647be83f6bfc7d1d20064
[ "MIT" ]
null
null
null
python/src/opendp/meas.py
sarus-tech/opendp
e4b1714fdadd72fe488647be83f6bfc7d1d20064
[ "MIT" ]
null
null
null
python/src/opendp/meas.py
sarus-tech/opendp
e4b1714fdadd72fe488647be83f6bfc7d1d20064
[ "MIT" ]
null
null
null
# Auto-generated. Do not edit. from opendp._convert import * from opendp._lib import * from opendp.mod import * from opendp.typing import * def make_base_laplace( scale, D: RuntimeTypeDescriptor = "AllDomain<T>" ) -> Measurement: """Make a Measurement that adds noise from the laplace(`scale`) distribution...
39.370588
124
0.714328
9e0c487cf4049ba837ee54b66a9c60e02fc81414
694
py
Python
tests/unit/mmap_file_test.py
vsinitsyn/ixy.py
0d10685fa9f77797eb55244205bffe357ddaeb36
[ "MIT" ]
29
2018-10-18T07:37:52.000Z
2021-11-22T14:08:11.000Z
tests/unit/mmap_file_test.py
vsinitsyn/ixy.py
0d10685fa9f77797eb55244205bffe357ddaeb36
[ "MIT" ]
null
null
null
tests/unit/mmap_file_test.py
vsinitsyn/ixy.py
0d10685fa9f77797eb55244205bffe357ddaeb36
[ "MIT" ]
4
2019-09-29T04:37:05.000Z
2021-06-11T10:10:42.000Z
import mmap def test_write_to_mmap_file(tmpdir): # GIVEN tmp_file = tmpdir.join('mmap_file.txt') tmp_file.write('This is the content') fd = tmp_file.open(mode='r+b') # WHEN mm = mmap.mmap(fd.fileno(), 0, access=mmap.ACCESS_WRITE) mm[:5] = b'That ' # THAN assert tmp_file.read() ==...
23.133333
72
0.636888
9e0c753f33166df481b90796216d35c71bc9f791
58,838
py
Python
ThirdParty/Twisted/twisted/conch/ssh/transport.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
1
2021-10-13T01:57:14.000Z
2021-10-13T01:57:14.000Z
ThirdParty/Twisted/twisted/conch/ssh/transport.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
ThirdParty/Twisted/twisted/conch/ssh/transport.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
5
2015-10-09T04:12:29.000Z
2021-12-15T16:57:11.000Z
# -*- test-case-name: twisted.conch.test.test_transport -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ The lowest level SSH protocol. This handles the key negotiation, the encryption and the compression. The transport layer is described in RFC 4253. Maintainer: Paul Swartz """ # ba...
36.364648
79
0.614671
9e0c79ad71c0eca6d6c0aec1d0e162818c5b2e60
2,953
py
Python
SpeechGenerator.py
rahulmalu1998/SpeechCmdRecognition
273ca1f9f7ea1c27db942092bccaf97dde6eac30
[ "MIT" ]
null
null
null
SpeechGenerator.py
rahulmalu1998/SpeechCmdRecognition
273ca1f9f7ea1c27db942092bccaf97dde6eac30
[ "MIT" ]
null
null
null
SpeechGenerator.py
rahulmalu1998/SpeechCmdRecognition
273ca1f9f7ea1c27db942092bccaf97dde6eac30
[ "MIT" ]
null
null
null
""" A generator for reading and serving audio files https://stanford.edu/~shervine/blog/keras-how-to-generate-data-on-the-fly.html Remember to use multiprocessing: # Train model on dataset model.fit_generator(generator=training_generator, validation_data=validation_generator, u...
31.084211
79
0.598713
9e0cddfdfe9e3dea9cffadae2e94ae27155767f3
3,969
py
Python
tests/tree/reg_text_tests.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
26
2016-06-04T20:48:09.000Z
2021-07-28T18:13:30.000Z
tests/tree/reg_text_tests.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
146
2016-04-06T19:07:54.000Z
2022-01-02T20:09:53.000Z
tests/tree/reg_text_tests.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 pytest from regparser.tree import reg_text def test_find_next_section_start(): text = "\n\nSomething\n§ 205.3 thing\n\n§ 205.4 Something\n§ 203.19" assert reg_text.find_next_section_start(text, 203) == 45 assert reg_text.find_next_se...
42.677419
79
0.625598
9e0cf9f1c793a4b6128f92a50157378f22a54ebb
536
py
Python
froide/account/widgets.py
ashmpace/question-mtl
5ce1289cd6db0e629aa138d2dee235d9a4c4546b
[ "MIT" ]
null
null
null
froide/account/widgets.py
ashmpace/question-mtl
5ce1289cd6db0e629aa138d2dee235d9a4c4546b
[ "MIT" ]
3
2020-02-11T21:43:56.000Z
2021-11-15T17:47:06.000Z
froide/account/widgets.py
ashmpace/question-mtl
5ce1289cd6db0e629aa138d2dee235d9a4c4546b
[ "MIT" ]
null
null
null
from django import forms class ConfirmationWidget(forms.TextInput): template_name = 'account/widgets/confirmation.html' def __init__(self, phrase): self.phrase = phrase super(ConfirmationWidget, self).__init__() def get_context(self, *args): context = super(ConfirmationWidget, se...
31.529412
68
0.658582
9e0cfff4b7cebac80e65e79b03c697105c8156f9
5,755
py
Python
tests/test_weights.py
SenhuWong/PySPOD
d37b415a6376b6a13d84ce6b25125bcaa64bdbb8
[ "MIT" ]
1
2022-03-11T14:41:07.000Z
2022-03-11T14:41:07.000Z
tests/test_weights.py
SenhuWong/PySPOD
d37b415a6376b6a13d84ce6b25125bcaa64bdbb8
[ "MIT" ]
null
null
null
tests/test_weights.py
SenhuWong/PySPOD
d37b415a6376b6a13d84ce6b25125bcaa64bdbb8
[ "MIT" ]
null
null
null
import os import sys import shutil import subprocess import numpy as np # Current, parent and file paths CWD = os.getcwd() CF = os.path.realpath(__file__) CFD = os.path.dirname(CF) # Import library specific modules sys.path.append(os.path.join(CFD,"../")) sys.path.append(os.path.join(CFD,"../pyspod")) from pyspod.sp...
40.244755
105
0.678019
9e0d1b56c4aaa0773503eb4b155500f7366543e2
34,699
py
Python
simpl/config.py
checkmate/simpl
60ed3336a931cd6a7a7246e60f26165d9dc7c99c
[ "Apache-2.0" ]
6
2015-03-17T16:06:01.000Z
2016-05-09T10:48:56.000Z
simpl/config.py
checkmate/simpl
60ed3336a931cd6a7a7246e60f26165d9dc7c99c
[ "Apache-2.0" ]
69
2015-03-18T16:23:01.000Z
2016-03-16T18:43:23.000Z
simpl/config.py
checkmate/simpl
60ed3336a931cd6a7a7246e60f26165d9dc7c99c
[ "Apache-2.0" ]
10
2015-03-12T16:57:02.000Z
2015-11-19T19:00:05.000Z
# Copyright (c) 2011-2015 Rackspace US, Inc. # All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
35.407143
79
0.572264
9e0d2698dbd98e3314b6520dad3254578d3b5d20
277
py
Python
terrascript/ansiblevault/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/ansiblevault/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/ansiblevault/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/ansiblevault/__init__.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class ansiblevault(terrascript.Provider): pass
18.466667
79
0.779783
9e0d2cbc11fd6211d3c701677fca08b741d8f5ff
9,619
py
Python
files/Utilities/AutoDMG.app/Contents/Resources/IEDLog.py
samdoran/ansible-role-macos-server
a401b8d10914fd6208e681b971204184e6fab7e2
[ "MIT" ]
null
null
null
files/Utilities/AutoDMG.app/Contents/Resources/IEDLog.py
samdoran/ansible-role-macos-server
a401b8d10914fd6208e681b971204184e6fab7e2
[ "MIT" ]
null
null
null
files/Utilities/AutoDMG.app/Contents/Resources/IEDLog.py
samdoran/ansible-role-macos-server
a401b8d10914fd6208e681b971204184e6fab7e2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # IEDLog.py # AutoDMG # # Created by Per Olofsson on 2013-10-25. # Copyright 2013-2014 Per Olofsson, University of Gothenburg. All rights reserved. # from Foundation import * from AppKit import * from objc import IBAction, IBOutlet from IEDLogLine import * import inspect import syslog i...
31.12945
114
0.624285
9e0d390ab778f6f39c69d2be6250b8ee5f7fb232
6,064
py
Python
python_modules/libraries/dagster-airflow/dagster_airflow/cli.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-airflow/dagster_airflow/cli.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-airflow/dagster_airflow/cli.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import os from datetime import datetime, timedelta import click import yaml from dagster import check from dagster.cli.load_handle import recon_repo_for_cli_args from dagster.utils import load_yaml_from_glob_list from dagster.utils.backcompat import canonicalize_backcompat_args from dagster.utils.indenting_printer im...
34.850575
99
0.677276
9e0d56c684a71598bfd1a265b0a7e4f32cd11236
5,236
py
Python
archive/nexus-api-v2/Database/Web/Imports.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/Web/Imports.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/Web/Imports.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
1
2022-01-03T05:33:15.000Z
2022-01-03T05:33:15.000Z
#!/usr/bin/env python3 # -*- Coding: UTF-8 -*- # # -*- System: Linux -*- # # -*- Usage: *.py -*- # # Owner: Jacob B. Sanders # Source: code.cloud-technology.io # License: BSD 2-Clause License """ [...] """ # ============================================================================= # Standard Library #...
23.375
113
0.502483
9e0d585dd502c94cc236494cd6ffd5357fedc9d9
7,151
py
Python
qcodes/instrument_drivers/stahl/stahl.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
null
null
null
qcodes/instrument_drivers/stahl/stahl.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
230
2020-08-17T06:08:33.000Z
2022-03-29T12:06:58.000Z
qcodes/instrument_drivers/stahl/stahl.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
null
null
null
""" This is a driver for the Stahl power supplies """ from typing import Dict, Optional, Any, Callable, Iterable import re import numpy as np import logging from collections import OrderedDict from functools import partial from pyvisa.resources.serial import SerialInstrument from qcodes import VisaInstrument, Instru...
28.264822
84
0.544399
9e0d6aab93e2192fc646d66cebc310446850273f
3,819
py
Python
inclearn/lib/loops/loops.py
yaoyao-liu/POD-AANets
01f10e8d66dfd78d9e6bd6dfcf8c95b10577045c
[ "MIT" ]
5
2022-02-20T12:32:22.000Z
2022-02-22T08:15:09.000Z
inclearn/lib/loops/loops.py
yaoyao-liu/POD-AANets
01f10e8d66dfd78d9e6bd6dfcf8c95b10577045c
[ "MIT" ]
null
null
null
inclearn/lib/loops/loops.py
yaoyao-liu/POD-AANets
01f10e8d66dfd78d9e6bd6dfcf8c95b10577045c
[ "MIT" ]
null
null
null
import collections import logging import torch from torch import nn from inclearn.lib.network import hook from tqdm import tqdm logger = logging.getLogger(__name__) def single_loop( train_loader, val_loader, devices, network, n_epochs, optimizer, train_function, eval_function, t...
29.835938
95
0.592302
9e0d840d2710f72abac8219edb64f979ad26a8b1
6,625
py
Python
AAE/train.py
Ali-Sahili/Background-Subtraction-Unsupervised-Learning
445b2cf8736a4a28cff2b074a32afe8fe6986d53
[ "MIT" ]
5
2021-05-17T06:52:28.000Z
2022-02-20T15:35:51.000Z
AAE/train.py
WN1695173791/Background-Subtraction-Unsupervised-Learning
445b2cf8736a4a28cff2b074a32afe8fe6986d53
[ "MIT" ]
null
null
null
AAE/train.py
WN1695173791/Background-Subtraction-Unsupervised-Learning
445b2cf8736a4a28cff2b074a32afe8fe6986d53
[ "MIT" ]
1
2021-05-17T06:52:33.000Z
2021-05-17T06:52:33.000Z
import torch from torch import nn import torch.optim as optim from torch.autograd import Variable import pytorch_ssim import torchvision.utils as vutils import numpy as np from AAE.models import * from Param import * from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True # Train procedure for one epoc...
25.480769
166
0.592
9e0d998f1f5f0392109d89a913f1c8d79c86327f
8,207
py
Python
sasmodels/models/cylinder.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
sasmodels/models/cylinder.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
sasmodels/models/cylinder.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
# cylinder model # Note: model title and parameter table are inserted automatically r""" For information about polarised and magnetic scattering, see the :ref:`magnetism` documentation. Definition ---------- The output of the 2D scattering intensity function for oriented cylinders is given by (Guinier, 1955) .. mat...
35.995614
111
0.620812
9e0dc18855cd4812b7cdc2e43ebdab232e707b5c
2,949
py
Python
python/day6.py
davidlowryduda/AoC18
cb1a5abb6fae8a00e805b3c76125e2db8d452cff
[ "MIT" ]
null
null
null
python/day6.py
davidlowryduda/AoC18
cb1a5abb6fae8a00e805b3c76125e2db8d452cff
[ "MIT" ]
null
null
null
python/day6.py
davidlowryduda/AoC18
cb1a5abb6fae8a00e805b3c76125e2db8d452cff
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """ Solve day 6 """ from collections import defaultdict from utils import input_lines def digest_line(line, name): """ Interprets a line of input to a point-tuple. """ x, _, y = line.partition(",") x = int(x.strip()) y = int(y.strip()) return (x, y, name) def bo...
25.205128
81
0.57138
9e0df5044b52ed94732f336c76f4d26f27e2c26f
1,607
py
Python
examples/santa.py
msabramo/diesel
a1ed7ed0358d0fec8592e23aafc3b7ec167ab649
[ "BSD-3-Clause" ]
224
2015-01-03T06:33:05.000Z
2021-11-22T03:19:02.000Z
examples/santa.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
12
2015-01-01T03:35:15.000Z
2021-05-22T23:37:28.000Z
examples/santa.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
37
2015-01-04T01:47:55.000Z
2022-03-03T02:04:15.000Z
import random from diesel import Application, Loop, fire, wait, sleep deer_group = [] elf_group = [] def santa(): while True: deer_ready, elves_ready = len(deer_group) == 9, len(elf_group) == 3 if deer_ready: work_with_group('deer', deer_group, 'deliver toys') if elves_ready: ...
28.192982
79
0.567517
9e0e22a811ab330aa266dbeaffd2cabcc2cb9504
882
py
Python
setup.py
cyrildever/py-utls
8b1315604398254683a9eaf3aac142593cc15a2f
[ "MIT" ]
1
2022-02-18T11:01:04.000Z
2022-02-18T11:01:04.000Z
setup.py
cyrildever/py-utls
8b1315604398254683a9eaf3aac142593cc15a2f
[ "MIT" ]
null
null
null
setup.py
cyrildever/py-utls
8b1315604398254683a9eaf3aac142593cc15a2f
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="py-utls", version="0.1.2", author="Cyril Dever", author_mail="cdever@pep-s.com", description="Utilities for Python", long_description=long_description, long_descr...
26.727273
70
0.611111
9e0e463a5ca2fbe86fe5748007fc7232f0a15e0b
44,844
py
Python
salt/client/ssh/__init__.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/client/ssh/__init__.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/client/ssh/__init__.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Create ssh executor system ''' # Import python libs from __future__ import absolute_import, print_function import copy import getpass import json import logging import multiprocessing import subprocess import hashlib import tarfile import os import re import sys import time import yaml impor...
35.932692
361
0.522589
9e0e5a5e96466957900ab5e812f6928d87fb75e7
95
py
Python
app/resources/root/resources/root.py
admiralobvious/falcon-boilerplate
eb076ff9e1d6fb1e537b18f86d2228afbf123e19
[ "MIT" ]
34
2016-10-26T17:19:23.000Z
2020-04-30T09:12:34.000Z
app/resources/root/resources/root.py
admiralobvious/falcon-boilerplate
eb076ff9e1d6fb1e537b18f86d2228afbf123e19
[ "MIT" ]
2
2019-04-09T11:50:38.000Z
2019-07-05T03:31:57.000Z
app/resources/root/resources/root.py
admiralobvious/falcon-boilerplate
eb076ff9e1d6fb1e537b18f86d2228afbf123e19
[ "MIT" ]
12
2017-01-14T09:40:24.000Z
2020-04-16T07:40:56.000Z
class Root: def on_get(self, req, resp): resp.media = {"message": "Hello, World!"}
23.75
49
0.578947
9e0e5dc12c103c1c1d40d236fc510110bef6723d
18,581
py
Python
pygsti/extras/devices/devcore.py
maij/pyGSTi
70e83e05fa689f53550feb3914c4fac40ca4a943
[ "Apache-2.0" ]
73
2016-01-28T05:02:05.000Z
2022-03-30T07:46:33.000Z
pygsti/extras/devices/devcore.py
00mjk/pyGSTi
4f8bf5337b01b7afcb7b0580b717b5d1fe281be4
[ "Apache-2.0" ]
113
2016-02-25T15:32:18.000Z
2022-03-31T13:18:13.000Z
pygsti/extras/devices/devcore.py
00mjk/pyGSTi
4f8bf5337b01b7afcb7b0580b717b5d1fe281be4
[ "Apache-2.0" ]
41
2016-03-15T19:32:07.000Z
2022-02-16T10:22:05.000Z
""" Functions for interfacing pyGSTi with external devices, including IBM Q and Rigetti """ #*************************************************************************************************** # Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS). # Under the terms of Contract DE-NA0...
42.714943
120
0.632797
9e0e901aa5aac0af718f939bf63c30b1cbe62071
4,486
py
Python
test_data/imports_dir1/i1_sub/i4.py
kamahen/pykythe
d54fd05096af5eb47efb863f613f12d5d80c6c41
[ "Apache-2.0" ]
14
2018-01-07T01:53:15.000Z
2021-09-22T00:57:29.000Z
test_data/imports_dir1/i1_sub/i4.py
kamahen/pykythe
d54fd05096af5eb47efb863f613f12d5d80c6c41
[ "Apache-2.0" ]
39
2018-01-07T20:54:25.000Z
2021-03-21T23:48:17.000Z
test_data/imports_dir1/i1_sub/i4.py
kamahen/pykythe
d54fd05096af5eb47efb863f613f12d5d80c6c41
[ "Apache-2.0" ]
3
2018-12-31T14:37:14.000Z
2020-07-04T10:53:02.000Z
# TODO: why does this get the following error: DO NOT SUBMIT # Invalid/nonexistant module '.tmp.pykythe_test.SUBST.home.peter.src.pykythe' # TODO: DELETE the following when they're in another test file #- { @i5 ref/imports vname("${ROOT_FQN}.test_data.imports_dir1.i5", _, _, "", python) } #- { @#1"." ref...
65.014493
154
0.623049
9e0eb9d8099245c39644c8fced49719b9c4e7956
774
py
Python
m2-modified/ims/common/agentless-system-crawler/crawler/config_parser.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
108
2015-07-21T10:40:36.000Z
2021-07-01T06:54:51.000Z
m2-modified/ims/common/agentless-system-crawler/crawler/config_parser.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
320
2015-07-21T01:33:20.000Z
2020-07-21T15:57:02.000Z
m2-modified/ims/common/agentless-system-crawler/crawler/config_parser.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
61
2015-07-20T18:26:37.000Z
2021-03-17T01:18:54.000Z
import logging from configobj import ConfigObj from validate import Validator from utils import misc CONFIG_SPEC_PATH = 'config_spec_and_defaults.conf' _config = None logger = logging.getLogger('crawlutils') def parse_crawler_config(config_path='crawler.conf'): global _config # 1. get configs _confi...
20.368421
73
0.71447
9e0ecacee75fbd9bf27a9577659cc86a48b2cef0
1,495
py
Python
data/operator/bbox/rasterized/utility/image.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
data/operator/bbox/rasterized/utility/image.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
data/operator/bbox/rasterized/utility/image.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
def get_image_bounding_box(image_size): from data.operator.bbox.rasterized.xywh2xyxy import bbox_xywh2xyxy return bbox_xywh2xyxy((0, 0, image_size[0], image_size[1])) def bounding_box_is_intersect_with_image(bounding_box, image_size): image_bounding_box = get_image_bounding_box(image_size) from data.o...
46.71875
81
0.833445
9e0eda3a9b7ee8366252ef95976288e17a854e2e
469
py
Python
en_itn/punctuate_and_capitalize.py
Open-Speech-EkStep/punctuation-ITN
d4b8340786a836d44b510ff981667a37cac4b65e
[ "MIT" ]
2
2022-01-17T09:13:42.000Z
2022-01-18T23:33:42.000Z
en_itn/punctuate_and_capitalize.py
Open-Speech-EkStep/punctuation-ITN
d4b8340786a836d44b510ff981667a37cac4b65e
[ "MIT" ]
null
null
null
en_itn/punctuate_and_capitalize.py
Open-Speech-EkStep/punctuation-ITN
d4b8340786a836d44b510ff981667a37cac4b65e
[ "MIT" ]
2
2022-02-07T14:10:30.000Z
2022-02-09T07:28:19.000Z
from nemo.collections.nlp.models import PunctuationCapitalizationModel def add_punctuation_and_capitalization(sent, model): return model.add_punctuation_capitalization([sent])[0] if __name__ == "__main__": model = PunctuationCapitalizationModel.restore_from( "path/to/punctuation_en_bert.nemo") ...
31.266667
87
0.769723
9e0eeae654926248d67b8ec56f80e65790c721c8
2,377
py
Python
bin/db_backups_cleaner.py
LoganCook/reporting-unified
9d2c7e083c5c400e9120bb8552348e41406a1bc1
[ "Apache-2.0" ]
null
null
null
bin/db_backups_cleaner.py
LoganCook/reporting-unified
9d2c7e083c5c400e9120bb8552348e41406a1bc1
[ "Apache-2.0" ]
null
null
null
bin/db_backups_cleaner.py
LoganCook/reporting-unified
9d2c7e083c5c400e9120bb8552348e41406a1bc1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """python script to manage database backups in AWS""" import re import time import logging from aws import prepare_client def _reconstruct_backup_fn(db_name, backup_date): """Reconstruct key name of a database backup based on db name and date""" return '%s_%s.sql.xz' % (db_name, bac...
30.87013
100
0.57846
9e0eec1493f7de0ff8d5e899fb0c0e8d0716f647
814
py
Python
setup.py
ifsheldon/pytin
fba9e35e0ffd591610f2204c61b5c25012b30bb2
[ "MIT" ]
40
2021-07-10T01:17:04.000Z
2022-03-24T04:10:27.000Z
setup.py
ifsheldon/tin
fba9e35e0ffd591610f2204c61b5c25012b30bb2
[ "MIT" ]
8
2021-12-30T19:27:09.000Z
2022-03-21T12:44:54.000Z
setup.py
ifsheldon/tin
fba9e35e0ffd591610f2204c61b5c25012b30bb2
[ "MIT" ]
3
2021-07-10T15:53:24.000Z
2022-02-10T03:14:38.000Z
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="stannum", version="0.4.0", author="Feng Liang", author_email="feng.liang@kaust.edu.sa", description="PyTorch wrapper for Taichi data-oriented class", long_description...
30.148148
69
0.652334
9e0ef315f617e3da45ebb065df07508ebee3fe99
18,825
py
Python
models/transformer.py
moyutianque/mdetr
55d3a40c84b5ec15f7ac76c0f2cc4fe0bec1b994
[ "Apache-2.0" ]
null
null
null
models/transformer.py
moyutianque/mdetr
55d3a40c84b5ec15f7ac76c0f2cc4fe0bec1b994
[ "Apache-2.0" ]
null
null
null
models/transformer.py
moyutianque/mdetr
55d3a40c84b5ec15f7ac76c0f2cc4fe0bec1b994
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Aishwarya Kamath & Nicolas Carion. Licensed under the Apache License 2.0. All Rights Reserved # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ DETR Transformer class. Copy-paste from torch.nn.Transformer with modifications: * positional encodings are passed in MHattention ...
36.624514
119
0.622151
9e0f1980815d20e81c8940944a7eda540726b1ae
2,186
py
Python
builder/mypy_boto3_builder/writers/utils.py
jbpratt78/mypy_boto3
c1cfc39aa5643ca149dd6a4b16124826fcc28fa0
[ "MIT" ]
null
null
null
builder/mypy_boto3_builder/writers/utils.py
jbpratt78/mypy_boto3
c1cfc39aa5643ca149dd6a4b16124826fcc28fa0
[ "MIT" ]
null
null
null
builder/mypy_boto3_builder/writers/utils.py
jbpratt78/mypy_boto3
c1cfc39aa5643ca149dd6a4b16124826fcc28fa0
[ "MIT" ]
null
null
null
""" Jinja2 renderer and black formatter. """ from pathlib import Path from typing import Optional import black from mypy_boto3_builder.constants import TEMPLATES_PATH, LINE_LENGTH from mypy_boto3_builder.service_name import ServiceName from mypy_boto3_builder.structures.package import Package from mypy_boto3_builder....
29.540541
84
0.691217
9e0f1fdff64c746179e725e47cd5cc0fad7e6b89
719
py
Python
xos/synchronizers/syndicate/syndicatelib_config/config-jude.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/syndicate/syndicatelib_config/config-jude.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
5
2020-06-05T17:47:15.000Z
2021-09-23T23:21:27.000Z
xos/synchronizers/syndicate/syndicatelib_config/config-jude.py
pan2za/xos
c2a4da2ccaa12360b2718be303b247866aefdfe6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # configuration for syndicatelib SYNDICATE_SMI_URL="http://localhost:8080" SYNDICATE_OPENID_TRUSTROOT="http://localhost:8081" SYNDICATE_OPENCLOUD_USER="judecn@gmail.com" SYNDICATE_OPENCLOUD_PASSWORD="nya" SYNDICATE_PYTHONPATH="/home/jude/Desktop/research/git/syndicate/build/out/python" SYNDIC...
32.681818
130
0.858136
9e0f410a97cffc2f823361eefc920a46c267493c
11,634
py
Python
src/biome/text/_helpers.py
ignacioct/biome-text
e4eab5fd4ea9115bd600f61e97429977053da2a5
[ "Apache-2.0" ]
null
null
null
src/biome/text/_helpers.py
ignacioct/biome-text
e4eab5fd4ea9115bd600f61e97429977053da2a5
[ "Apache-2.0" ]
null
null
null
src/biome/text/_helpers.py
ignacioct/biome-text
e4eab5fd4ea9115bd600f61e97429977053da2a5
[ "Apache-2.0" ]
null
null
null
import copy import json import logging import math import os from typing import Any from typing import Dict from typing import List from typing import Optional from typing import cast from allennlp.common import Params from allennlp.common.checks import ConfigurationError from allennlp.common.util import prepare_envir...
33.431034
113
0.631167
9e0f4a4774d750c10bb6a55a685f243509ca9292
1,000
py
Python
strings_test.py
cromero/fidi
3eb939dd7e1400a8ac9076a75e85fec99fc6e025
[ "BSD-3-Clause" ]
2
2017-05-11T17:19:49.000Z
2018-06-11T12:46:07.000Z
strings_test.py
romerocesar/fidi
65f6d76c91dc232ac29d82e4d3f8279045382bc0
[ "BSD-3-Clause" ]
null
null
null
strings_test.py
romerocesar/fidi
65f6d76c91dc232ac29d82e4d3f8279045382bc0
[ "BSD-3-Clause" ]
null
null
null
import strings import pytest def test_one_away(): # add char first='pale' second='ple' assert strings.one_away(first, second) # replace one char second = 'bale' assert strings.one_away(first, second) # remove a char second = 'pales' assert strings.one_away(first, second) # ...
22.727273
57
0.649
9e0f785c45eb96ba0c82332547a8ba6bbf9bac17
4,958
py
Python
datasets/mmdet_tusimple/mmdet/datasets/utils.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
13
2021-10-15T15:14:45.000Z
2022-03-09T00:22:55.000Z
datasets/mmdet_tusimple/mmdet/datasets/utils.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
4
2021-10-17T09:04:20.000Z
2022-03-25T06:43:00.000Z
datasets/mmdet_tusimple/mmdet/datasets/utils.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
2
2021-11-17T11:31:35.000Z
2021-11-29T06:50:35.000Z
import copy import warnings def replace_LaneImageToTensor(pipelines): """Replace the ImageToTensor transform in a data pipeline to DefaultFormatBundle, which is normally useful in batch inference. Args: pipelines (list[dict]): Data pipeline configs. Returns: list: The new pipeline lis...
40.975207
77
0.504236
9e0f861118bbade5bc939a7fa50c103379c39fef
392
py
Python
fibonacci.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
fibonacci.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
fibonacci.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
def fibonacci ( n ): ''' fibonacci: Generates the fibonacci series n: ''' # Guard against incorrect input if n < 0 or (not isinstance(n, int)): return "Error: n is either negative or not an integer" if n == 0: return 0 elif n == 1: return 1 else: ...
21.777778
63
0.545918
9e0fb587c23b6352edd7156876483c10ff746ea2
134
py
Python
backend/app/app/schemas/email.py
JulioJair/catalog-fastapi
d8853c65f3a2b7bd0ecf9d494ee239beb0a0bab8
[ "MIT" ]
1
2021-06-28T16:04:32.000Z
2021-06-28T16:04:32.000Z
backend/app/app/schemas/email.py
JulioJair/catalog-fastapi
d8853c65f3a2b7bd0ecf9d494ee239beb0a0bab8
[ "MIT" ]
1
2021-06-29T13:28:29.000Z
2021-06-29T13:28:29.000Z
backend/app/app/schemas/email.py
JulioJair/catalog-fastapi
d8853c65f3a2b7bd0ecf9d494ee239beb0a0bab8
[ "MIT" ]
null
null
null
from pydantic import BaseModel, Field, EmailStr from typing import Optional, List class Email(BaseModel): email: List[EmailStr]
19.142857
47
0.776119
9e0ff615e673c1fd4c6d531e4625e1ce34aca2aa
17,021
py
Python
plastering/inferencers/scrabble/char2ir.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
29
2018-09-19T01:16:27.000Z
2022-03-29T14:35:36.000Z
plastering/inferencers/scrabble/char2ir.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
14
2019-04-12T18:37:36.000Z
2022-02-10T00:27:55.000Z
plastering/inferencers/scrabble/char2ir.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
14
2019-03-05T23:44:11.000Z
2022-03-18T07:29:31.000Z
import os from uuid import uuid4 from operator import itemgetter from pathlib import Path from collections import OrderedDict import pycrfsuite from bson.binary import Binary as BsonBinary import arrow import numpy as np import pandas as pd from sklearn.preprocessing import LabelBinarizer, MultiLabelBinarizer from skl...
40.429929
84
0.559779
9e10043af79b253adaccf16a9912b98f8cdbf754
443
py
Python
data/process_rate_of_conv.py
cgrudz/lorenz_96_sde
d2b6492ebd9970e03c6abb1bf492b7b69eee6a5c
[ "MIT" ]
null
null
null
data/process_rate_of_conv.py
cgrudz/lorenz_96_sde
d2b6492ebd9970e03c6abb1bf492b7b69eee6a5c
[ "MIT" ]
null
null
null
data/process_rate_of_conv.py
cgrudz/lorenz_96_sde
d2b6492ebd9970e03c6abb1bf492b7b69eee6a5c
[ "MIT" ]
1
2021-03-31T07:17:31.000Z
2021-03-31T07:17:31.000Z
import pickle import glob import numpy as np import ipdb mode = ['strong', 'weak'] fnames = sorted(glob.glob('./rate_of_convergence/' + mode[0] + '*')) table = np.zeros([3, 5, 2]) ipdb.set_trace() for i in range(5): for j in range(3): f = open(fnames[3*i + j], 'rb') tmp = pickle.load(f) ...
19.26087
68
0.58465
9e1034af1ada163132a1a938cca816705c1023cb
10,285
py
Python
tests/test_coordinates.py
ahartikainen/pyinfraformat
98a0f1b20163c60289d2788f5d702768be4727dc
[ "Apache-2.0" ]
2
2018-11-13T08:01:29.000Z
2018-11-13T08:56:09.000Z
tests/test_coordinates.py
ahartikainen/pyinfraformat
98a0f1b20163c60289d2788f5d702768be4727dc
[ "Apache-2.0" ]
39
2018-10-22T06:32:12.000Z
2022-01-22T14:03:27.000Z
tests/test_coordinates.py
ahartikainen/pyinfraformat
98a0f1b20163c60289d2788f5d702768be4727dc
[ "Apache-2.0" ]
null
null
null
import os from copy import deepcopy from glob import glob from uuid import uuid4 import numpy as np import pytest from pyinfraformat import Holes, from_infraformat from pyinfraformat.core.coord_utils import ( check_hole_in_country, coord_string_fix, flip_xy, height_systems_diff, proj_espoo, pr...
34.056291
88
0.621293
9e103c9186334a67086cb7618cdbd1f642b07530
2,977
py
Python
sciwing/app/ner_demo.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
null
null
null
sciwing/app/ner_demo.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
null
null
null
sciwing/app/ner_demo.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
null
null
null
import streamlit as st import requests from spacy import displacy import itertools from sciwing.tokenizers.word_tokenizer import WordTokenizer st.sidebar.title("SciWING Demo") st.sidebar.markdown("---") st.title("Citation String Parsing - Neural Parscit") st.markdown( "Neural Parscit is a citation parsing module...
36.753086
232
0.724219
9e105aaf868da137241ae6d41f5cd8ac9cb4284b
26,714
py
Python
tests/unit/benchmark/scenarios/networking/test_vnf_generic.py
rbbratta/yardstick
7d1ffcd8eb41e9e4a09ed469b00ae4cbf2715529
[ "Apache-2.0" ]
null
null
null
tests/unit/benchmark/scenarios/networking/test_vnf_generic.py
rbbratta/yardstick
7d1ffcd8eb41e9e4a09ed469b00ae4cbf2715529
[ "Apache-2.0" ]
null
null
null
tests/unit/benchmark/scenarios/networking/test_vnf_generic.py
rbbratta/yardstick
7d1ffcd8eb41e9e4a09ed469b00ae4cbf2715529
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2016-2017 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 a...
45.664957
92
0.539829
9e1060c2c35ef8a16e1f5319c49979d20a643417
1,714
py
Python
google-cloud-sdk/lib/surface/ml/versions/set_default.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/ml/versions/set_default.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/ml/versions/set_default.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
36.468085
80
0.751459
9e10850350474f165a24ed37f6827c38fa466118
2,032
py
Python
fathom/deepq/emulator.py
rdadolf/fathom
1dc013d055e59fb09c886ae3a667084119deac5c
[ "Apache-2.0" ]
77
2016-09-28T01:34:38.000Z
2022-03-22T10:43:12.000Z
fathom/deepq/emulator.py
rdadolf/fathom
1dc013d055e59fb09c886ae3a667084119deac5c
[ "Apache-2.0" ]
21
2016-10-05T21:30:03.000Z
2019-11-01T10:26:40.000Z
fathom/deepq/emulator.py
rdadolf/fathom
1dc013d055e59fb09c886ae3a667084119deac5c
[ "Apache-2.0" ]
25
2016-09-28T01:50:47.000Z
2020-03-06T07:27:11.000Z
# NOTE: Tejas Kulkarni's implementation import sys import time import os.path import numpy as np from ale_python_interface import ALEInterface import cv2 ROM_PATH = 'fathom/deepq/roms/' class emulator(object): def __init__(self, rom_name, vis,frameskip=1,windowname='preview'): self.ale = ALEInterface() sel...
32.253968
100
0.706201
9e1088d4bc7c901cffa94eaa594e67c564f4924e
44
py
Python
Tests/Runnable3/r_builtinlist_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
5
2019-05-26T20:48:36.000Z
2021-07-09T01:38:38.000Z
Tests/Runnable3/r_builtinlist_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
null
null
null
Tests/Runnable3/r_builtinlist_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
1
2022-02-10T07:14:58.000Z
2022-02-10T07:14:58.000Z
from r_builtinlist import f x = f() print x
11
27
0.727273
9e109c38ca4c1e4eaf7648e7467a7f92b99fde60
340
py
Python
python/math/0939_minimum_area_rectangle.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/math/0939_minimum_area_rectangle.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/math/0939_minimum_area_rectangle.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
class Solution(object): def minAreaRect(self, points): """ :type points: List[List[int]] :rtype: int """ def test_min_area_rect(): s = Solution() assert 4 == s.minAreaRect([[1, 1], [1, 3], [3, 1], [3, 3], [2, 2]]) assert 2 == s.minAreaRect([[1, 1], [1, 3], [3, 1], [3, 3...
26.153846
79
0.476471
9e11045297c9319e211b7633d25805c853f97403
1,696
py
Python
test/awsTest.py
stacy0416/afs2-datasource
25d498fc56eb142f2e97ea2d274d534245a4c301
[ "Apache-2.0" ]
4
2019-07-19T05:40:37.000Z
2021-03-31T05:49:30.000Z
test/awsTest.py
stacy0416/afs2-datasource
25d498fc56eb142f2e97ea2d274d534245a4c301
[ "Apache-2.0" ]
1
2019-08-13T18:27:40.000Z
2019-08-13T18:27:40.000Z
test/awsTest.py
stacy0416/afs2-datasource
25d498fc56eb142f2e97ea2d274d534245a4c301
[ "Apache-2.0" ]
null
null
null
import os from afs2datasource import DBManager, constant # --------- config --------- # db_type = constant.DB_TYPE['AWS'] access_key = '' secret_key = '' bucket_name = '' # bucket name source = '' # 要上傳的檔案(local) folder_name = '' # 上傳上去的folder name # 會上傳 source 到azure blob container裡面 # 一個在 / # 一個在 /folder_name 下面 ...
27.354839
123
0.710495
9e11103426777fd76b31bfb90df1c33229107421
510
py
Python
libra_client/lbrtypes/account_config/constants/account.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
libra_client/lbrtypes/account_config/constants/account.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
libra_client/lbrtypes/account_config/constants/account.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
1
2022-01-05T06:49:42.000Z
2022-01-05T06:49:42.000Z
from libra_client.move_core_types.language_storage import ModuleId, StructTag, CORE_CODE_ADDRESS ACCOUNT_MODULE_NAME = "DiemAccount" # Account ACCOUNT_MODULE_IDENTIFIER = "DiemAccount" #/ The ModuleId for the Account module. ACCOUNT_MODULE = ModuleId(CORE_CODE_ADDRESS, ACCOUNT_MODULE_IDENTIFIER) # Payment Events SE...
25.5
96
0.829412
9e1137c3fb48ab210476c3b362cc323b27af81d6
35,988
py
Python
venv/Lib/site-packages/nbdime/merging/generic.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
2
2021-02-16T16:17:07.000Z
2021-11-08T20:27:13.000Z
venv/Lib/site-packages/nbdime/merging/generic.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
null
null
null
venv/Lib/site-packages/nbdime/merging/generic.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
4
2020-11-14T17:05:36.000Z
2020-11-16T18:44:54.000Z
# coding: utf-8 # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. from __future__ import unicode_literals from six import string_types from collections import defaultdict import nbdime.log from .decisions import MergeDecisionBuilder from .chunks import make_merge_c...
41.556582
132
0.611621
9e118e40ab81afb21c98665c8672205e1faffd42
8,687
py
Python
tests/test_koruna.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
2
2021-03-26T18:19:57.000Z
2021-07-27T01:15:50.000Z
tests/test_koruna.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
tests/test_koruna.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # # copyright: 2020-2022, Frederico Martins # author: Frederico Martins <http://github.com/fscm> # license: SPDX-License-Identifier: MIT """Tests for the Koruna currency representation(s).""" from decimal import Context from pytest import raises from multicurrency import Currency from multicur...
37.934498
84
0.571889
9e11990cc022b9c2bf40ff8d0b46c3da0ec95987
3,171
py
Python
upit/data/unpaired.py
drscotthawley/UPIT
b61e3acb171c613552ef79307a72457b99ad103d
[ "Apache-2.0" ]
85
2020-08-18T18:13:09.000Z
2022-03-11T10:21:20.000Z
upit/data/unpaired.py
drscotthawley/UPIT
b61e3acb171c613552ef79307a72457b99ad103d
[ "Apache-2.0" ]
26
2020-08-19T01:34:06.000Z
2022-03-22T08:26:12.000Z
upit/data/unpaired.py
drscotthawley/UPIT
b61e3acb171c613552ef79307a72457b99ad103d
[ "Apache-2.0" ]
19
2020-08-19T01:30:37.000Z
2021-09-29T01:22:53.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/02_data.unpaired.ipynb (unless otherwise specified). __all__ = ['RandPair', 'TensorImage_', 'ToTensor_', 'CustomNormalize', 'get_dls'] # Cell from fastai.vision.all import * from fastai.basics import * from typing import List from fastai.vision.gan import * # Cell clas...
39.148148
151
0.673289
9e11eb16e434945c0b1e6b763e12351d421ac0a5
142
py
Python
iris_sdk/models/maps/available_npa_nxx_list.py
NumberAI/python-bandwidth-iris
0e05f79d68b244812afb97e00fd65b3f46d00aa3
[ "MIT" ]
2
2020-04-13T13:47:59.000Z
2022-02-23T20:32:41.000Z
iris_sdk/models/maps/available_npa_nxx_list.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2020-09-18T20:59:24.000Z
2021-08-25T16:51:42.000Z
iris_sdk/models/maps/available_npa_nxx_list.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2018-12-12T14:39:50.000Z
2020-11-17T21:42:29.000Z
#!/usr/bin/env python from iris_sdk.models.maps.base_map import BaseMap class AvailableNpaNxxListMap(BaseMap): available_npa_nxx = None
20.285714
49
0.795775