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
c898c29a1cf172956d81a65ad722c9ec6eac547b
448
py
Python
app/helpers/data.py
jordiyapz/indostock-vizz
276de41b6aceeac12bd74e1702e56ed117a157d0
[ "MIT" ]
null
null
null
app/helpers/data.py
jordiyapz/indostock-vizz
276de41b6aceeac12bd74e1702e56ed117a157d0
[ "MIT" ]
null
null
null
app/helpers/data.py
jordiyapz/indostock-vizz
276de41b6aceeac12bd74e1702e56ed117a157d0
[ "MIT" ]
null
null
null
import zipfile import gdown from app.helpers.path import PATH def download_data(file_id): print('Downloading data...') download_filename = PATH.DATA/'indonesia-stock.zip' try: gdown.download(id=file_id, output=str(download_filename), resume=True) except Exception as ex: print(ex) ...
23.578947
78
0.689732
c898caaff0f1e772cadc4b1bf72023440c8365db
7,316
py
Python
src/python/pants/task/target_restriction_mixins.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/task/target_restriction_mixins.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/task/target_restriction_mixins.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.base.deprecated import resolve_conflicting_options from pants.subsystem.subsystem import Subsystem from pants.task.goal_options_mixin import GoalOptionsMixin, GoalOptionsRegistr...
41.805714
100
0.701613
c898e7c2b36eaae58584f64d635880ed54067181
642
py
Python
src/forecastga/models/tbats1.py
richardfergie/ForecastGA
ce4ddc778d0be68f504e1bfc300be6b2fe870cb7
[ "MIT" ]
30
2021-01-02T16:14:55.000Z
2022-02-11T23:17:18.000Z
src/forecastga/models/tbats1.py
richardfergie/ForecastGA
ce4ddc778d0be68f504e1bfc300be6b2fe870cb7
[ "MIT" ]
2
2021-01-11T16:56:23.000Z
2021-02-04T00:37:56.000Z
src/forecastga/models/tbats1.py
richardfergie/ForecastGA
ce4ddc778d0be68f504e1bfc300be6b2fe870cb7
[ "MIT" ]
8
2021-01-10T19:04:22.000Z
2021-11-14T18:47:22.000Z
#! /usr/bin/env python # coding: utf-8 # """ForecastGA: TBATS1 Model (Trend, Seasonal-one, and Box Cox)""" from tbats import TBATS from forecastga.models.base import BaseModel class TBATS1_Model(BaseModel): """TBATS1 Model Class""" def __init__(self, config): super().__init__(config) def trai...
22.137931
65
0.626168
c898f82964e889ca5ee44638ecd850d490d48463
129
py
Python
apps/base/apps.py
goobes/box
42e136d98b2a25ffd8717b3c8c9d97654cc15e54
[ "MIT" ]
null
null
null
apps/base/apps.py
goobes/box
42e136d98b2a25ffd8717b3c8c9d97654cc15e54
[ "MIT" ]
21
2018-02-21T06:53:36.000Z
2022-03-11T23:14:47.000Z
apps/base/apps.py
goobes/box
42e136d98b2a25ffd8717b3c8c9d97654cc15e54
[ "MIT" ]
1
2018-03-01T11:01:20.000Z
2018-03-01T11:01:20.000Z
from django.apps import AppConfig class BaseConfig(AppConfig): name = 'base' verbose_name = "Goobe's Subscription Box"
18.428571
45
0.728682
c898f87fb979a30c78425465f8f0b484071fa57b
1,870
gyp
Python
content/content_common_mojo_bindings.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
content/content_common_mojo_bindings.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
content/content_common_mojo_bindings.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. { 'targets': [ { # GN version: //content/common:mojo_bindings 'target_name': 'content_common_mojo_bindings_mojom', 'type': 'none', ...
33.392857
80
0.600535
c8990d0944144d1c1816dc86dab73f8a0e95c2a0
73,289
py
Python
salt/fileserver/gitfs.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/fileserver/gitfs.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/fileserver/gitfs.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Git Fileserver Backend With this backend, branches and tags in a remote git repository are exposed to salt as different environments. To enable, add ``git`` to the :conf_master:`fileserver_backend` option in the Master config file. .. code-block:: yaml fileserver_backend: - git...
35.663747
84
0.550833
c8990f1a0fa24abcee350fec18cca3a3ec365597
4,686
py
Python
experiments/ashvin/icml2020/hand/soft/clip_relocate4.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/soft/clip_relocate4.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/soft/clip_relocate4.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment, process_args import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies im...
30.428571
77
0.558045
c899142b3a88f19c561f5d81ad6cd52d207c24ec
813
py
Python
oa/const.py
lastcc/OAHelper
2d58ac56b8e223aeefd5371d3eaf9ea8ac485735
[ "MIT" ]
null
null
null
oa/const.py
lastcc/OAHelper
2d58ac56b8e223aeefd5371d3eaf9ea8ac485735
[ "MIT" ]
null
null
null
oa/const.py
lastcc/OAHelper
2d58ac56b8e223aeefd5371d3eaf9ea8ac485735
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #web default_encoding='utf-8' '''order''' valid_order_length=16 #order query fields FIELD_BUYER = 'Ebayuserid' FIELD_PAYPAL = 'PaypalTransactionId' FIELD_TRACKING = 'TraceID' FIELD_EMAIL = 'Email' FIELD_ORDER = 'Id' FIELD_RECEIVER = 'Receivename' '''refund action''' #ref...
15.941176
37
0.715867
c899775309003d1bfc4ae0234bca6e28a2864122
4,330
py
Python
diversity/MMO/basinhopping/python-lib/meshcreation.py
alexander-hagg/phdexperiments
6506c8f2a438c67ca7c808df8715711fde73dfce
[ "MIT" ]
null
null
null
diversity/MMO/basinhopping/python-lib/meshcreation.py
alexander-hagg/phdexperiments
6506c8f2a438c67ca7c808df8715711fde73dfce
[ "MIT" ]
null
null
null
diversity/MMO/basinhopping/python-lib/meshcreation.py
alexander-hagg/phdexperiments
6506c8f2a438c67ca7c808df8715711fde73dfce
[ "MIT" ]
null
null
null
""" meshcreation.py Functions for easy mesh creation. Roughly ordered in terms of process order: pslg class, refine, convert to triangle, convert to fenics. """ import sys sys.path.insert(0, '/home/ryi/projects_py/conformal_maps') from dolfin import * import matplotlib.pyplot as plt import numpy as np import squarero...
34.094488
136
0.623788
c899bc304dd3a255107fa257ef79fedfc658fd82
13,415
py
Python
porcupine/plugins/filemanager.py
Akuli/editor
cf98c538e75a07d825f9066e25a3752fdf7c3c29
[ "MIT" ]
null
null
null
porcupine/plugins/filemanager.py
Akuli/editor
cf98c538e75a07d825f9066e25a3752fdf7c3c29
[ "MIT" ]
null
null
null
porcupine/plugins/filemanager.py
Akuli/editor
cf98c538e75a07d825f9066e25a3752fdf7c3c29
[ "MIT" ]
null
null
null
"""File manager operations (delete, rename etc) when right-clicking directory tree.""" from __future__ import annotations import dataclasses import enum import logging import shutil import subprocess import sys import tkinter from functools import partial from pathlib import Path from tkinter import messagebox, ttk fr...
32.247596
99
0.650391
c899dd8482adc76fb936cda23508e719a0e089a7
4,210
py
Python
tests/python/pants_test/source/test_filespec.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/source/test_filespec.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
tests/python/pants_test/source/test_filespec.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from typing import Tuple from pants.engine.fs import PathGlobs, Snapshot from pants.source.filespec import matches_filespec from pants.testutil.test_base import TestBase class FilespecT...
36.293103
99
0.663895
c899fbcf3294b79a99cbbc4a864c04d22b190739
9,625
py
Python
configs/mvxnet/hybrid/dv_mvx-fpn_second_dbsamp_secfpn_hybrid_2x8_80e_kitti-3d-3class_actr_dpe_cat_fade_lr3.py
rasd3/mmdet3d_actr
d1c86d54f498fca166e957d249b109645ea13627
[ "Apache-2.0" ]
null
null
null
configs/mvxnet/hybrid/dv_mvx-fpn_second_dbsamp_secfpn_hybrid_2x8_80e_kitti-3d-3class_actr_dpe_cat_fade_lr3.py
rasd3/mmdet3d_actr
d1c86d54f498fca166e957d249b109645ea13627
[ "Apache-2.0" ]
null
null
null
configs/mvxnet/hybrid/dv_mvx-fpn_second_dbsamp_secfpn_hybrid_2x8_80e_kitti-3d-3class_actr_dpe_cat_fade_lr3.py
rasd3/mmdet3d_actr
d1c86d54f498fca166e957d249b109645ea13627
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../../_base_/schedules/cosine.py', '../../_base_/default_runtime.py' ] # model settings voxel_size = [0.05, 0.05, 0.1] point_cloud_range = [0, -40, -3, 70.4, 40, 1] model = dict( type='DynamicMVXFasterRCNN', img_backbone=dict( type='ResNet', depth=50, num_stages=4, ...
33.304498
193
0.577247
c89a3fa451e111b1c82340b8941d0e3558c0bcda
25,330
py
Python
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_03_31/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/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_03_31/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_03_31/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 ...
44.75265
234
0.695263
c89a5992e15fc4e55f80a6cbfb450b166822b6c1
22,924
py
Python
examples/vtrace/train.py
aypan17/cule
115a2572e21dcb69807368710a7a4a4fa6dd9b36
[ "BSD-3-Clause" ]
null
null
null
examples/vtrace/train.py
aypan17/cule
115a2572e21dcb69807368710a7a4a4fa6dd9b36
[ "BSD-3-Clause" ]
null
null
null
examples/vtrace/train.py
aypan17/cule
115a2572e21dcb69807368710a7a4a4fa6dd9b36
[ "BSD-3-Clause" ]
null
null
null
import csv import json import math import time import torch import torch.cuda.nvtx as nvtx import numpy as np import torch.nn.functional as F import torch.optim as optim from tqdm import tqdm from utils.initializers import args_initialize, env_initialize, log_initialize, model_initialize from utils.proxy import proxy...
54.711217
183
0.620092
c89a63f942083fc96f2c5fe876ad6affcbc49f7a
12,209
py
Python
cinder/volume/drivers/huawei/huawei_conf.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/huawei/huawei_conf.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/huawei/huawei_conf.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Huawei Technologies Co., Ltd. # 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 # # ...
37.336391
78
0.589811
c89a69ed0d8c923fefdd159c3e74cbe867231b83
1,008
py
Python
tofnet/utils/__init__.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
null
null
null
tofnet/utils/__init__.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
8
2021-02-02T23:07:37.000Z
2022-03-12T00:51:26.000Z
tofnet/utils/__init__.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
2
2020-10-01T08:23:24.000Z
2020-11-09T22:01:47.000Z
""" .. currentmodule::tofnet.utils This module contains the utilities for different part of the code that didn't fit in another more clearly defined sub-module: * :mod:`config`: handles the config object based on the config file as well as the loading of functions from different modules *...
56
114
0.714286
c89a70bd92a7e36f0db72a2eb0ce3f46703a514a
8,154
py
Python
nanonisTCP/Signals.py
New-Horizons-SPM/nanonisTCP
e810877fce41c4dc3d9ba2b18cbe619ff04c640a
[ "MIT" ]
null
null
null
nanonisTCP/Signals.py
New-Horizons-SPM/nanonisTCP
e810877fce41c4dc3d9ba2b18cbe619ff04c640a
[ "MIT" ]
null
null
null
nanonisTCP/Signals.py
New-Horizons-SPM/nanonisTCP
e810877fce41c4dc3d9ba2b18cbe619ff04c640a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon May 30 12:33:59 2022 @author: Julian Ceddia """ class Signals: """ Nanonis Signals Module """ def __init__(self,NanonisTCP): self.NanonisTCP = NanonisTCP def NamesGet(self): """ Returns the signals names list of the 128 signal...
35.920705
80
0.595659
c89ab9cf66aa056a20f35adf014d1490aeee2b9a
3,305
py
Python
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_03_01_preview/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_03_01_preview/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_03_01_preview/aio/_configuration.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 ...
48.602941
130
0.7059
c89ac4a90d3064943f9976b0ee0eb4e3f6cab396
48,843
py
Python
xija/component/heat.py
sot/xija
bcad02d5032ea302427dc6ae8d41e09f5553464d
[ "BSD-3-Clause" ]
2
2016-01-05T19:20:43.000Z
2021-06-04T08:23:08.000Z
xija/component/heat.py
sot/xija
bcad02d5032ea302427dc6ae8d41e09f5553464d
[ "BSD-3-Clause" ]
61
2015-02-24T02:27:11.000Z
2022-03-23T13:52:15.000Z
xija/component/heat.py
sot/xija
bcad02d5032ea302427dc6ae8d41e09f5553464d
[ "BSD-3-Clause" ]
1
2016-01-04T21:08:17.000Z
2016-01-04T21:08:17.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import print_function import re from itertools import count import glob import os from pathlib import Path from numba import jit import numpy as np import scipy.interpolate import astropy.units as u from astropy.io import fits try: i...
36.395678
98
0.575681
c89afa3e8348c4579dca8b61e4ccac9747807b7e
318
py
Python
spacex_api/users/apps.py
SantiR38/trello-api
a3bbbf6ab07169511819d0d6c1eee11d5f474542
[ "MIT" ]
null
null
null
spacex_api/users/apps.py
SantiR38/trello-api
a3bbbf6ab07169511819d0d6c1eee11d5f474542
[ "MIT" ]
null
null
null
spacex_api/users/apps.py
SantiR38/trello-api
a3bbbf6ab07169511819d0d6c1eee11d5f474542
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class UsersConfig(AppConfig): name = "spacex_api.users" verbose_name = _("Users") def ready(self): try: import spacex_api.users.signals # noqa F401 except ImportError: pass
22.714286
56
0.660377
c89b1be11d886d26fd510aabe45f2325b406f824
2,687
py
Python
src/spaceone/inventory/connector/collector_connector.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/connector/collector_connector.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/connector/collector_connector.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import logging from google.protobuf.json_format import MessageToDict from spaceone.core import pygrpc from spaceone.core.connector import BaseConnector from spaceone.core.utils import parse_endpoint from spaceone.inventory.error import * _LOGGER = logging.getLogger(__name__) class Collector...
33.5875
104
0.599553
c89b2039a252e49287f18dfeeaff5d52f565048e
5,312
py
Python
ciphers/rsa_cipher.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
ciphers/rsa_cipher.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
ciphers/rsa_cipher.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
33.620253
210
0.670369
c89b33d5a2a70fd26ec666205facde871c02a07f
3,770
py
Python
sysinv/cgts-client/cgts-client/cgtsclient/v1/certificate_shell.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
sysinv/cgts-client/cgts-client/cgtsclient/v1/certificate_shell.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
sysinv/cgts-client/cgts-client/cgtsclient/v1/certificate_shell.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2018 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # # vim: tabstop=4 shiftwidth=4 softtabstop=4 # All Rights Reserved. # import os from cgtsclient.common import utils from cgtsclient import exc def _print_certificate_show(certificate): fields = ['uuid'...
34.272727
79
0.611406
c89b51890d35a432e0c471741b1513bd085ef1a3
5,940
py
Python
src/tentohako/agent/uct.py
Koukyosyumei/TenToHako
4007033c2401aa491f6c79e0a670812cd8aa8054
[ "MIT" ]
null
null
null
src/tentohako/agent/uct.py
Koukyosyumei/TenToHako
4007033c2401aa491f6c79e0a670812cd8aa8054
[ "MIT" ]
null
null
null
src/tentohako/agent/uct.py
Koukyosyumei/TenToHako
4007033c2401aa491f6c79e0a670812cd8aa8054
[ "MIT" ]
null
null
null
import copy import math import random import time from ..game import Node from .base import BaseAgent class UCTNode(Node): def __init__( self, parentNode, board, action, activePlayer, id_to_scores, cpuct=0.3 ): """Node class for UCT Args: parentNode: previous node of this...
33.184358
82
0.526599
c89baee22bb9e1ebe7b39bd59d769a5f366a1573
4,878
py
Python
contrib/.venv/lib/python3.8/site-packages/fastecdsa/tests/test_brainpool_ecdh.py
jtatman/katersltc-client
7ea88bfa32e9bdce9bf8d434a8909a07b65412f7
[ "MIT" ]
219
2016-05-01T14:19:09.000Z
2022-03-29T00:58:42.000Z
contrib/.venv/lib/python3.8/site-packages/fastecdsa/tests/test_brainpool_ecdh.py
jtatman/katersltc-client
7ea88bfa32e9bdce9bf8d434a8909a07b65412f7
[ "MIT" ]
80
2016-04-05T10:35:13.000Z
2022-03-15T19:05:45.000Z
contrib/.venv/lib/python3.8/site-packages/fastecdsa/tests/test_brainpool_ecdh.py
jtatman/katersltc-client
7ea88bfa32e9bdce9bf8d434a8909a07b65412f7
[ "MIT" ]
74
2016-08-19T06:35:03.000Z
2022-03-20T04:29:58.000Z
from unittest import TestCase from ..curve import brainpoolP256r1, brainpoolP384r1, brainpoolP512r1 class TestBrainpoolECDH(TestCase): def test_256bit(self): # https://tools.ietf.org/html/rfc7027#appendix-A.1 dA = 0x81DB1EE100150FF2EA338D708271BE38300CB54241D79950F77B063039804F1D qA = dA ...
40.65
98
0.676302
c89bb9975a39d488eba4a7486f119db9cb262a80
4,139
py
Python
nova/tests/functional/api_sample_tests/test_agents.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/api_sample_tests/test_agents.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/api_sample_tests/test_agents.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-03-01T17:04:57.000Z
2020-03-01T17:04:57.000Z
# Copyright 2012 Nebula, Inc. # Copyright 2013 IBM Corp. # # 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...
39.419048
78
0.610534
c89c3394a074329d49cda6c4a98075acbb0c48ba
3,448
py
Python
sakura/input.py
leannmak/sakura
22e3ceec7adebd01ba9056d1686182bdbe586eae
[ "MIT" ]
null
null
null
sakura/input.py
leannmak/sakura
22e3ceec7adebd01ba9056d1686182bdbe586eae
[ "MIT" ]
null
null
null
sakura/input.py
leannmak/sakura
22e3ceec7adebd01ba9056d1686182bdbe586eae
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # Leann Mak, leannmak@139.com, (c) 2018. # This is the input module of sakura package. # import re import json from copy import deepcopy from IPy import IP as ip_from_ipy class dictionary(object): """ Restrict input to a dictionary """ ...
31.633028
80
0.545534
c89c5a405900b0375d3c31add290c621670a935c
8,663
py
Python
projects/DensePose/tests/test_cse_annotations_accumulator.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
projects/DensePose/tests/test_cse_annotations_accumulator.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
projects/DensePose/tests/test_cse_annotations_accumulator.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import unittest import torch from detectron.structures import Boxes, BoxMode, Instances from densepose.modeling.losses.embed_utils import CseAnnotationsAccumulator from densepose.structures import DensePoseDataRelative, DensePoseList class Test...
35.946058
100
0.459194
c89c6b927b042542bfd7454d05f7e1c8b73d4fa5
2,119
py
Python
src/python/grpcio_csds/setup.py
tomerv/grpc
27662173e750107a4520d5d6972544d67a6a0203
[ "Apache-2.0" ]
36,552
2015-02-26T17:30:13.000Z
2022-03-31T22:41:33.000Z
src/python/grpcio_csds/setup.py
stanley-cheung/grpc
7d6000082a0e79a5307d04454a572a924a4d940d
[ "BSD-3-Clause" ]
23,536
2015-02-26T17:50:56.000Z
2022-03-31T23:39:42.000Z
src/python/grpcio_csds/setup.py
stanley-cheung/grpc
7d6000082a0e79a5307d04454a572a924a4d940d
[ "BSD-3-Clause" ]
11,050
2015-02-26T17:22:10.000Z
2022-03-31T10:12:35.000Z
# Copyright 2021 The gRPC 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 writ...
34.177419
78
0.670127
c89c79c6b54b9aa5df27fe3f0542f77336ecb384
14,595
py
Python
neutron/plugins/ml2/db.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ml2/db.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ml2/db.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 OpenStack Foundation # 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 ...
38.92
79
0.657554
c89c7a12211bf1887c5373948c17c04f2a873369
12,366
py
Python
metadata-ingestion/tests/integration/looker/test_looker.py
cuong-pham/datahub
cb4eb001758f55622add0f4dc3650cf483609cba
[ "Apache-2.0" ]
289
2022-03-16T00:30:15.000Z
2022-03-31T23:16:21.000Z
metadata-ingestion/tests/integration/looker/test_looker.py
cuong-pham/datahub
cb4eb001758f55622add0f4dc3650cf483609cba
[ "Apache-2.0" ]
155
2022-03-15T19:43:07.000Z
2022-03-31T20:33:41.000Z
metadata-ingestion/tests/integration/looker/test_looker.py
cuong-pham/datahub
cb4eb001758f55622add0f4dc3650cf483609cba
[ "Apache-2.0" ]
46
2022-03-15T19:08:32.000Z
2022-03-31T17:56:26.000Z
import time from datetime import datetime from unittest import mock from freezegun import freeze_time from looker_sdk.sdk.api31.models import ( Dashboard, DashboardElement, LookmlModelExplore, LookmlModelExploreField, LookmlModelExploreFieldset, LookmlModelExploreJoins, Query, ) from datah...
35.739884
223
0.518519
c89c8710de34bf36a788b8c7691742aa7f7f45b2
5,289
py
Python
tests/api_tests/admin_backend/test_news.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
tests/api_tests/admin_backend/test_news.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
tests/api_tests/admin_backend/test_news.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
import time from api_tests.admin_backend import AdminBackendTestCase from utils.tools import parse_backend_datetime class NewsTestCase(AdminBackendTestCase): def search_news_in_list(self, news_list:list, news_id:int): for news in news_list: if news_id == news['news_id']: return...
43.352459
125
0.717338
c89c8d538029f1763163bc8a3a079cd83ce4cbb3
292
py
Python
feincms/module/extensions/translations.py
songshansitulv/feincms
47dfad9a50dcc3498814b70494a09006ef9d8780
[ "BSD-3-Clause" ]
17
2015-03-11T09:57:21.000Z
2019-09-03T11:11:45.000Z
feincms/module/extensions/translations.py
songshansitulv/feincms
47dfad9a50dcc3498814b70494a09006ef9d8780
[ "BSD-3-Clause" ]
1
2019-04-09T09:28:54.000Z
2019-04-09T09:31:43.000Z
feincms/module/extensions/translations.py
songshansitulv/feincms
47dfad9a50dcc3498814b70494a09006ef9d8780
[ "BSD-3-Clause" ]
3
2015-07-07T06:33:11.000Z
2020-01-29T15:45:49.000Z
# flake8: noqa from __future__ import absolute_import, unicode_literals import warnings from feincms.extensions.translations import * warnings.warn( "Import %(name)s from feincms.extensions.%(name)s" % {"name": __name__.split(".")[-1]}, DeprecationWarning, stacklevel=2, )
20.857143
56
0.719178
c89cba720ec1dda9dbe13e2c37d6fc0cfbc252bb
8,265
py
Python
dmrg_helpers/view/xy_data.py
iglpdc/dmrg_helpers
df27ff06395c0a4779c2d2723d57524da55cc14a
[ "MIT" ]
1
2019-09-26T13:06:04.000Z
2019-09-26T13:06:04.000Z
dmrg_helpers/view/xy_data.py
iglpdc/dmrg_helpers
df27ff06395c0a4779c2d2723d57524da55cc14a
[ "MIT" ]
null
null
null
dmrg_helpers/view/xy_data.py
iglpdc/dmrg_helpers
df27ff06395c0a4779c2d2723d57524da55cc14a
[ "MIT" ]
null
null
null
'''A class to store estimators once retrieved from the database. ''' import numpy as np import pickle import os from itertools import izip from dmrg_helpers.core.dmrg_exceptions import DMRGException from dmrg_helpers.core.dmrg_logging import logger class XYData(object): """An auxiliary class to hold the numerical ...
35.170213
80
0.616939
c89ce75b635609c47dc2ae50458d285cd7c01e84
2,618
py
Python
tests/playlists.py
caohong/m3u8
ad80b61bb09fe847261e2f16e48b53af5d792efd
[ "MIT" ]
1
2015-12-04T03:19:57.000Z
2015-12-04T03:19:57.000Z
tests/playlists.py
caohong/m3u8
ad80b61bb09fe847261e2f16e48b53af5d792efd
[ "MIT" ]
null
null
null
tests/playlists.py
caohong/m3u8
ad80b61bb09fe847261e2f16e48b53af5d792efd
[ "MIT" ]
1
2020-07-13T03:34:09.000Z
2020-07-13T03:34:09.000Z
from os.path import dirname, abspath, join TEST_HOST = 'http://localhost:8112' SIMPLE_PLAYLIST = ''' #EXTM3U #EXT-X-TARGETDURATION:5220 #EXTINF:5220, http://media.example.com/entire.ts #EXT-X-ENDLIST ''' SIMPLE_PLAYLIST_FILENAME = abspath(join(dirname(__file__), 'playlists/simple-playlist.m3u8')) SIMPLE_PLAYLIST_UR...
24.698113
97
0.745989
c89cf1b959e0da04b4ff8a491bdcf876a71354b8
2,461
py
Python
train_models/utils/vgg.py
Testing4AI/DeepJudge
5f3a43cd30f7cd858cfbf6d2f78c53155aec4b6d
[ "MIT" ]
12
2022-01-11T08:17:16.000Z
2022-03-31T12:58:57.000Z
train_models/utils/vgg.py
Testing4AI/DeepJudge
5f3a43cd30f7cd858cfbf6d2f78c53155aec4b6d
[ "MIT" ]
null
null
null
train_models/utils/vgg.py
Testing4AI/DeepJudge
5f3a43cd30f7cd858cfbf6d2f78c53155aec4b6d
[ "MIT" ]
null
null
null
from tensorflow.keras import layers, Sequential, Model, Input cfg = { 'A': [64, 'M', 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'B': [64, 64, 'M', 128, 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'D': [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 'M', 512, 512, 512, 'M', 512, 512, 5...
30.7625
112
0.591629
c89d40b5d2e0dc0b2fa6f47d9c5afb8ae9bd54d8
2,022
py
Python
nrf802154_sniffer/__init__.py
NordicPlayground/nRF-802.15.4-sniffer
2b76efe20d4bc1938803a90c60ea29db59bc1069
[ "BSD-3-Clause" ]
18
2018-10-16T18:23:19.000Z
2019-03-24T14:25:38.000Z
nrf802154_sniffer/__init__.py
NordicPlayground/nRF-802.15.4-sniffer
2b76efe20d4bc1938803a90c60ea29db59bc1069
[ "BSD-3-Clause" ]
22
2018-10-10T13:39:22.000Z
2019-03-29T07:47:15.000Z
nrf802154_sniffer/__init__.py
NordicPlayground/nRF-802.15.4-sniffer
2b76efe20d4bc1938803a90c60ea29db59bc1069
[ "BSD-3-Clause" ]
9
2018-10-10T13:28:45.000Z
2019-03-25T09:36:36.000Z
# Copyright (c) 2019, Nordic Semiconductor ASA # 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 copyright notice, this # list of condi...
53.210526
82
0.782888
c89d47829b9fbf5360f51e4c86f58072519baf12
6,705
py
Python
tests/app/service/test_api_key_endpoints.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
tests/app/service/test_api_key_endpoints.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
tests/app/service/test_api_key_endpoints.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
import json from flask import url_for from app.dao.api_key_dao import expire_api_key from app.models import KEY_TYPE_NORMAL, ApiKey from tests import create_authorization_header from tests.app.db import create_api_key, create_service, create_user def test_api_key_should_create_new_api_key_for_service(notify_api, sa...
50.413534
110
0.627293
c89d5526b011dad122e45a786b936027630d7fb9
8,390
py
Python
sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_private_link_resource_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_private_link_resource_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_private_link_resource_operations.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 ...
45.597826
213
0.679619
c89d97596528d7136f77a7791d561b45666dda60
422
py
Python
fonty/lib/uninstall/uninstall_osx.py
jamesssooi/font-cli
c98227606ad5c6ebeab01f70d754db29b8406f44
[ "Apache-2.0" ]
12
2018-05-02T05:59:31.000Z
2022-03-15T13:03:26.000Z
fonty/lib/uninstall/uninstall_osx.py
jamesssooi/font-cli
c98227606ad5c6ebeab01f70d754db29b8406f44
[ "Apache-2.0" ]
null
null
null
fonty/lib/uninstall/uninstall_osx.py
jamesssooi/font-cli
c98227606ad5c6ebeab01f70d754db29b8406f44
[ "Apache-2.0" ]
2
2018-05-02T05:59:40.000Z
2020-04-19T13:18:09.000Z
'''uninstall_osx.py: Uninstall fonts on macOS''' from typing import List from send2trash import send2trash from fonty.models.font import InstalledFont def uninstall_osx(fonts: List[InstalledFont]) -> List[InstalledFont]: '''Uninstall fonts on a macOS system''' uninstalled_fonts = [] for font in fonts: ...
32.461538
69
0.744076
c89dd359b8eaf3aa9b33eaa25a7769a2ed1d9868
338
py
Python
venv/Lib/site-packages/nbdime/merging/__init__.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/__init__.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
null
null
null
venv/Lib/site-packages/nbdime/merging/__init__.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 .generic import decide_merge from .decisions import apply_decisions from .notebooks import merge_notebooks __all__ = ["decide_merge", "merge_notebooks", "...
26
64
0.801775
c89e1ee03e0cd6877d9a647cc4f55867151d2888
96
py
Python
testmaster/dummyprograms/error.py
S-P-A-N-N-E-R-S/Testmaster
e0804b30a6f77c136eca890e692ea54195a31bb9
[ "BSD-3-Clause" ]
null
null
null
testmaster/dummyprograms/error.py
S-P-A-N-N-E-R-S/Testmaster
e0804b30a6f77c136eca890e692ea54195a31bb9
[ "BSD-3-Clause" ]
null
null
null
testmaster/dummyprograms/error.py
S-P-A-N-N-E-R-S/Testmaster
e0804b30a6f77c136eca890e692ea54195a31bb9
[ "BSD-3-Clause" ]
null
null
null
from decimal import DivisionByZero try: 1/0 except DivisionByZero: raise DivisionByZero
16
34
0.78125
c89e2a9ec6210bd73c2816ab237f319a86e24bbc
638
py
Python
bilby/core/utils/conversion.py
deepchatterjeeligo/bilby
6532c63d0d970ad33478ae0b1c28d4c570b74047
[ "MIT" ]
null
null
null
bilby/core/utils/conversion.py
deepchatterjeeligo/bilby
6532c63d0d970ad33478ae0b1c28d4c570b74047
[ "MIT" ]
null
null
null
bilby/core/utils/conversion.py
deepchatterjeeligo/bilby
6532c63d0d970ad33478ae0b1c28d4c570b74047
[ "MIT" ]
null
null
null
import numpy as np def ra_dec_to_theta_phi(ra, dec, gmst): """ Convert from RA and DEC to polar coordinates on celestial sphere Parameters ========== ra: float right ascension in radians dec: float declination in radians gmst: float Greenwich mean sidereal time of arri...
20.580645
72
0.617555
c89e5950e77e18eba1267cc9782f542728c1164d
2,564
py
Python
Lib/widgets.py
ProjectZeroDays/Pyto
d5d77f3541f329bbb28142d18606b22f115b7df6
[ "MIT" ]
2
2020-08-25T13:55:00.000Z
2020-08-25T16:36:03.000Z
Lib/widgets.py
ProjectZeroDays/Pyto
d5d77f3541f329bbb28142d18606b22f115b7df6
[ "MIT" ]
null
null
null
Lib/widgets.py
ProjectZeroDays/Pyto
d5d77f3541f329bbb28142d18606b22f115b7df6
[ "MIT" ]
null
null
null
""" Home Screen Widgets This module is used to present custom UIs on home screen widgets. """ import pyto_ui as ui import os import datetime from pyto import __Class__ from UIKit import UIDevice from typing import Union __PyWidget__ = __Class__("PyWidget") __widget_id__ = None __widget__ = __PyWidget__.alloc().init...
26.163265
123
0.675117
c89e611106cacb4b92f4cf6179ac4066d96c6493
14,957
py
Python
agent/pruning_agent.py
WilsonWangTHU/neural_graph_evolution
9142b7f1c32c476aa44c83da38d3f0bacc276d73
[ "MIT" ]
33
2019-06-06T13:59:51.000Z
2022-03-07T10:36:42.000Z
agent/pruning_agent.py
WilsonWangTHU/neural_graph_evolution
9142b7f1c32c476aa44c83da38d3f0bacc276d73
[ "MIT" ]
8
2019-07-09T16:58:28.000Z
2022-02-10T00:27:39.000Z
agent/pruning_agent.py
WilsonWangTHU/neural_graph_evolution
9142b7f1c32c476aa44c83da38d3f0bacc276d73
[ "MIT" ]
12
2019-06-07T10:43:12.000Z
2022-03-09T13:47:01.000Z
# ------------------------------------------------------------------------------ # @brief: # The optimization agent is responsible for doing the updates. # @author: # modified from the code of kvfran, modified by Tingwu Wang # -----------------------------------------------------------------------------...
38.253197
86
0.592097
c89e6cbb84539f65b3553bf53d6f3e65ba13fd2a
6,955
py
Python
ironic_inspector/common/swift.py
NaohiroTamura/ironic-inspector
7b7fba72de46806ce84d6d4758a2343b52b0c96d
[ "Apache-2.0" ]
null
null
null
ironic_inspector/common/swift.py
NaohiroTamura/ironic-inspector
7b7fba72de46806ce84d6d4758a2343b52b0c96d
[ "Apache-2.0" ]
null
null
null
ironic_inspector/common/swift.py
NaohiroTamura/ironic-inspector
7b7fba72de46806ce84d6d4758a2343b52b0c96d
[ "Apache-2.0" ]
null
null
null
# 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 # distributed under the...
37.594595
79
0.616679
c89e709555da225bde3b6efcc1f5105ad2e2b9e9
24,472
py
Python
nicos/devices/generic/axis.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/devices/generic/axis.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/devices/generic/axis.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...
42.56
80
0.556473
c89e79fee9262daf979952c510ea7631143c757c
536
py
Python
ucb_cs61A/homework/hw09/tests/small.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
null
null
null
ucb_cs61A/homework/hw09/tests/small.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2017-07-31T08:15:26.000Z
2017-07-31T08:15:26.000Z
ucb_cs61A/homework/hw09/tests/small.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2019-10-06T16:52:31.000Z
2019-10-06T16:52:31.000Z
test = { 'name': 'small', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" sqlite> select name from size_of_dogs where size="toy" or size="mini"; abraham eisenhower fillmore grover herbert """, 'hidden'...
18.482759
80
0.397388
c89e83956322cb87a4cf41c6b7172f03d941b429
3,282
py
Python
tensorflow/examples/how_tos/reading_data/convert_to_records.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/examples/how_tos/reading_data/convert_to_records.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/examples/how_tos/reading_data/convert_to_records.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2015 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...
32.176471
80
0.657831
c89e8e20f584f3f8b92a419f8f36d5e8fb7006a4
2,257
py
Python
oscar/lib/python2.7/site-packages/factory/faker.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/factory/faker.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/factory/faker.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright: See the LICENSE file. """Additional declarations for "faker" attributes. Usage: class MyFactory(factory.Factory): class Meta: model = MyProfile first_name = factory.Faker('name') """ from __future__ import absolute_import from ...
26.552941
67
0.623837
c89e900e014cddef3ff0cd14ec8ef7bd41034ac8
14,759
py
Python
applications/welcome/languages/my-mm.py
ngsimon/web2py
93297fed8a3a916b45d17f5c4d5d2b80aaf92788
[ "BSD-3-Clause" ]
1,573
2015-01-01T07:19:06.000Z
2022-03-30T09:06:06.000Z
applications/welcome/languages/my-mm.py
ngsimon/web2py
93297fed8a3a916b45d17f5c4d5d2b80aaf92788
[ "BSD-3-Clause" ]
1,691
2015-01-03T11:03:23.000Z
2022-03-30T07:27:28.000Z
applications/welcome/languages/my-mm.py
ngsimon/web2py
93297fed8a3a916b45d17f5c4d5d2b80aaf92788
[ "BSD-3-Clause" ]
895
2015-01-03T19:56:15.000Z
2022-03-18T18:30:57.000Z
# -*- coding: utf-8 -*- { '!langcode!': 'my-mm', '!langname!': 'မြန်မာ', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN', '%s %%{row} del...
55.277154
281
0.614066
c89ec4175d48c1ce0e6b7307018afa2b4de83011
29,955
py
Python
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_dvr_neutron_agent.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_dvr_neutron_agent.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_dvr_neutron_agent.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# Copyright 2014, Hewlett-Packard Development Company, L.P. # 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-...
42.489362
79
0.604073
c89ed55465d6f21041cb30667531f80727c4f47b
394
py
Python
src/spaceone/inventory/connector/__init__.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/connector/__init__.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/connector/__init__.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
from spaceone.inventory.connector.identity_connector import IdentityConnector from spaceone.inventory.connector.plugin_connector import PluginConnector from spaceone.inventory.connector.secret_connector import SecretConnector from spaceone.inventory.connector.collector_connector import CollectorPluginConnector from spa...
65.666667
85
0.911168
c89edd93a93f7a08498a86ca4a4db85bb79309cd
8,469
py
Python
Information_Gathering/HeaderInspector/header_inspector.py
CyberThulhu22/Python-Pentest-TTPs
483547400555cbd1ff502cb2860cba155a394f34
[ "MIT" ]
2
2022-02-14T18:54:01.000Z
2022-02-23T03:53:13.000Z
Information_Gathering/HeaderInspector/header_inspector.py
CyberThulhu22/Python-Pentest-TTPs
483547400555cbd1ff502cb2860cba155a394f34
[ "MIT" ]
null
null
null
Information_Gathering/HeaderInspector/header_inspector.py
CyberThulhu22/Python-Pentest-TTPs
483547400555cbd1ff502cb2860cba155a394f34
[ "MIT" ]
1
2022-01-05T04:19:05.000Z
2022-01-05T04:19:05.000Z
#!/usr/bin/env python3 -tt #-*- coding: utf-8 -*- """ NAME: header_inspector.py VERSION: 1.0 AUTHOR: Jesse Leverett (CyberThulhu) STATUS: Building Initial code framework DESCRIPTION: TO-DO: Update as Required [ ] Implement Threading for Multiple URLs COPYRIGHT © 2021 Jesse Leverett """ # Imports import re imp...
40.137441
108
0.633959
c89f16ced8762d99844677d867e106e7cca86ede
601
py
Python
supriya/ugens/Drand.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/Drand.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/Drand.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import CalculationRate from supriya.ugens.DUGen import DUGen class Drand(DUGen): """ A demand-rate random sequence generator. :: >>> sequence = (1, 2, 3) >>> drand = supriya.ugens.Drand.new( ... repeats=1, ... sequence=sequence, ...
20.033333
88
0.585691
c89f4255bc06ea4d9ce3eb36eba034fa25596173
39,570
py
Python
test/test_secscan.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
test/test_secscan.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
test/test_secscan.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
import json import time import unittest from app import app, storage, notification_queue, url_scheme_and_hostname from data import model from data.database import Image, IMAGE_NOT_SCANNED_ENGINE_VERSION from endpoints.v2 import v2_bp from initdb import setup_database_for_testing, finished_database_for_testing from not...
43.435785
106
0.650164
c89f883d4b09f4fe5b1091ffacfe1b93f72c7bd6
207
py
Python
tests/test_calculations.py
godzilla-but-nicer/cellularautomata
16c1d31403a26131f1e18f5d72b96a316082e596
[ "MIT" ]
null
null
null
tests/test_calculations.py
godzilla-but-nicer/cellularautomata
16c1d31403a26131f1e18f5d72b96a316082e596
[ "MIT" ]
null
null
null
tests/test_calculations.py
godzilla-but-nicer/cellularautomata
16c1d31403a26131f1e18f5d72b96a316082e596
[ "MIT" ]
null
null
null
import numpy as np from casim.calculations import word_entropy def test_word_entropy(): test_arr = np.array([1, 0, 0, 1, 1, 0, 1, 0]) assert np.round(word_entropy(test_arr, 3), decimals=1) == 2.5
23
65
0.68599
c89f91d5b0ba658179d1287a9fbc2da9cc6701b7
34,914
py
Python
tensor2tensor/rl/trainer_model_based.py
2877992943/tensor2tensor
84cab42173724689ebddf853351a5aae704035a5
[ "Apache-2.0" ]
null
null
null
tensor2tensor/rl/trainer_model_based.py
2877992943/tensor2tensor
84cab42173724689ebddf853351a5aae704035a5
[ "Apache-2.0" ]
null
null
null
tensor2tensor/rl/trainer_model_based.py
2877992943/tensor2tensor
84cab42173724689ebddf853351a5aae704035a5
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Tensor2Tensor 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...
34.162427
80
0.724093
c89fe5a4f7039c43ed3f98cd20c532baa00e92dd
1,217
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/ssd1327_gamma.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/ssd1327_gamma.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/ssd1327_gamma.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board import displayio import adafruit_ssd1327 displayio.release_displays() # Use for I2C i2c = board.I2C() display_bus = displayio.I2CDisplay(i2c, device_address=0x3D) # Use for SPI # spi = board.SPI() ...
23.862745
80
0.74281
c89ff0594cee756156dc22b0f9d44f20bf924866
55
py
Python
common/components/__init__.py
Junzki/joblet.common
de2ac90c069c2c2451a255f3e8a463f5f244acf2
[ "BSD-3-Clause" ]
1
2021-12-07T02:41:16.000Z
2021-12-07T02:41:16.000Z
common/components/__init__.py
Junzki/joblet.common
de2ac90c069c2c2451a255f3e8a463f5f244acf2
[ "BSD-3-Clause" ]
null
null
null
common/components/__init__.py
Junzki/joblet.common
de2ac90c069c2c2451a255f3e8a463f5f244acf2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- from .base import LazyComponent
18.333333
31
0.672727
c8a041b86bca9ba315b6c3bf86ddc9a63a4c0877
3,402
py
Python
render_main_bsm.py
gizatt/blender_server
fc20b7ee53b3c8d8d141653128dada965a15a127
[ "MIT" ]
26
2019-03-11T21:09:56.000Z
2022-02-28T10:16:07.000Z
render_main_bsm.py
gizatt/blender_server
fc20b7ee53b3c8d8d141653128dada965a15a127
[ "MIT" ]
8
2019-03-11T21:53:59.000Z
2021-09-28T20:49:04.000Z
render_main_bsm.py
gizatt/blender_server
fc20b7ee53b3c8d8d141653128dada965a15a127
[ "MIT" ]
3
2019-10-09T23:31:34.000Z
2020-08-05T02:27:01.000Z
import bpy import numpy as np import os import random import sys import blender_scripts.blender_scene_management as bsm if __name__ == '__main__': bsm.initialize_scene() metal26_path = "./data/test_pbr_mats/Metal09/Metal09" bsm.register_material("metal26", material_type="CC0_tex...
35.072165
87
0.487654
c8a07935574b251aa59848fcf30321bcc365a979
2,594
py
Python
databuddy/databuddy_for_flask/__init__.py
SuryaSankar/databuddy
f65fb3c560bd93e0656003a41c7f65916f24bb8f
[ "MIT" ]
null
null
null
databuddy/databuddy_for_flask/__init__.py
SuryaSankar/databuddy
f65fb3c560bd93e0656003a41c7f65916f24bb8f
[ "MIT" ]
null
null
null
databuddy/databuddy_for_flask/__init__.py
SuryaSankar/databuddy
f65fb3c560bd93e0656003a41c7f65916f24bb8f
[ "MIT" ]
null
null
null
from flask import Blueprint, request, url_for, render_template import json from toolspy import set_query_params from .template_filters import register_template_filters from .data_sources import ( prepare_data_sources, construct_sqla_db_uri, sqla_db_info, sqla_query_builder, sqla_base) from .query_response_contr...
31.634146
75
0.656515
c8a0e8f4eba851fba82c84e46304686b04330504
205
py
Python
think-python/code/right_justify.py
baldoinov/think-python-2e-exercises
5a5cd6e94f44e14dc567c35ebf3dd9160cf6b01b
[ "MIT" ]
null
null
null
think-python/code/right_justify.py
baldoinov/think-python-2e-exercises
5a5cd6e94f44e14dc567c35ebf3dd9160cf6b01b
[ "MIT" ]
null
null
null
think-python/code/right_justify.py
baldoinov/think-python-2e-exercises
5a5cd6e94f44e14dc567c35ebf3dd9160cf6b01b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Vitor Baldoino Think Python, 2ed. Chapter 3. """ def right_justify(s): num_char = len(s) missing_chars = 70 - num_char print(' ' * missing_chars + s)
17.083333
34
0.595122
c8a0f15e21cb78c604926a2ee79e894f5e943075
1,269
py
Python
get_min_qos_prov.py
schubb2003/element
14d79297b2dd6908e0c84ba533d507acd44fe054
[ "MIT" ]
null
null
null
get_min_qos_prov.py
schubb2003/element
14d79297b2dd6908e0c84ba533d507acd44fe054
[ "MIT" ]
null
null
null
get_min_qos_prov.py
schubb2003/element
14d79297b2dd6908e0c84ba533d507acd44fe054
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ # Author: Scott Chubb scott.chubb@netapp.com # Written for Python 3.6 and above # No warranty is offered, use at your own risk. While these scripts have been # tested in lab situations, all use cases cannot be accounted for. """ import json from modules.choose_inputs import get_inputs_default...
28.2
78
0.695035
c8a0fbd35dae1c10e5b047408f71dc03eb28dea5
3,104
py
Python
deploy_ml/settings.py
KamarulAdha/DRF-ML
2036ac6b3b3eb593d28ab89c948bf4ad2a4aa6dd
[ "MIT" ]
null
null
null
deploy_ml/settings.py
KamarulAdha/DRF-ML
2036ac6b3b3eb593d28ab89c948bf4ad2a4aa6dd
[ "MIT" ]
null
null
null
deploy_ml/settings.py
KamarulAdha/DRF-ML
2036ac6b3b3eb593d28ab89c948bf4ad2a4aa6dd
[ "MIT" ]
null
null
null
""" Django settings for deploy_ml project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathl...
25.235772
91
0.693943
c8a0fd8ad33474acdcf4605342153892d00e12b3
17,131
py
Python
cogs/utils/mojang.py
HypixelBot/bot
672e17c5bbd37b0e7e54581b679051b7e59575d2
[ "MIT" ]
10
2020-06-06T13:57:46.000Z
2021-11-08T09:27:42.000Z
cogs/utils/mojang.py
HypixelBot/Bot
672e17c5bbd37b0e7e54581b679051b7e59575d2
[ "MIT" ]
7
2020-06-06T14:04:05.000Z
2020-07-05T04:05:37.000Z
cogs/utils/mojang.py
HypixelBot/bot
672e17c5bbd37b0e7e54581b679051b7e59575d2
[ "MIT" ]
14
2020-06-09T17:12:52.000Z
2021-07-21T23:24:30.000Z
import json import random import struct import datetime import dns.resolver import socket from six import string_types class Connection: def __init__(self): self.sent = bytearray() self.received = bytearray() def read(self, length): result = self.received[:length] self.receiv...
33.007707
122
0.571303
c8a13cfff0620b28d0a0d7d28f010af1103deea2
9,798
py
Python
CHIP-Network-Model/sim_end_to_end_count_based_estimates.py
IdeasLabUT/WSDM-2022-Challenge
f4d0aa8dc3491c8ab77b86e376f37d04720389e3
[ "BSD-3-Clause" ]
2
2022-01-22T21:53:36.000Z
2022-01-25T08:05:21.000Z
CHIP-Network-Model/sim_end_to_end_count_based_estimates.py
IdeasLabUT/WSDM-2022-Challenge
f4d0aa8dc3491c8ab77b86e376f37d04720389e3
[ "BSD-3-Clause" ]
null
null
null
CHIP-Network-Model/sim_end_to_end_count_based_estimates.py
IdeasLabUT/WSDM-2022-Challenge
f4d0aa8dc3491c8ab77b86e376f37d04720389e3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ "CHIP end-to-end parameter Estimation" Empirically analyzing the end-to-end consistency of the CHIP parameter estimators. @author: Makan Arastuie """ import os import copy import pickle import numpy as np from os.path import join import matplotlib.pyplot as plt from joblib import Parallel...
38.124514
120
0.635232
c8a141ada5a2dce4031ee7ca176d641f384629c7
7,160
py
Python
python_backend/models/bpnet/api.py
reonho/capstone21
3c3fd09dbfa727bc69949024b0e5a74308c98fa3
[ "MIT" ]
null
null
null
python_backend/models/bpnet/api.py
reonho/capstone21
3c3fd09dbfa727bc69949024b0e5a74308c98fa3
[ "MIT" ]
1
2021-10-21T02:48:48.000Z
2021-10-21T02:48:48.000Z
python_backend/models/bpnet/api.py
reonho/capstone21
3c3fd09dbfa727bc69949024b0e5a74308c98fa3
[ "MIT" ]
6
2021-08-30T02:51:32.000Z
2022-01-06T04:11:12.000Z
from app import app from flask import request, send_file, make_response from flask_cors import CORS, cross_origin from utils.utils import create_directories, check_request, plot_keypoints, replace_in_markdown from models.bpnet.bpnetutils import evaluate_bpnet import json import os import pandas as pd CORS(app) from ....
34.095238
180
0.593436
c8a15212c36178cd63578a53282933f5abf726b6
971
py
Python
instructors/lessons/regular_expressions/examples/regex3.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
46
2017-09-27T20:19:36.000Z
2020-12-08T10:07:19.000Z
instructors/lessons/regular_expressions/examples/regex3.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
6
2018-01-09T08:07:37.000Z
2020-09-07T12:25:13.000Z
instructors/lessons/regular_expressions/examples/regex3.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
18
2017-10-10T02:06:51.000Z
2019-12-01T10:18:13.000Z
""" Surprised with the result? Lets do even more grouping. How do we extract the information we want?? Grouping! https://docs.python.org/2/howto/regex.html#grouping """ import re test_string_1 = "This is a test string." regex_extraction_str = r'(.*)((t)((e)((s)(t))))(.*)' pg = re.compile(regex_extraction_str) # ...
26.972222
93
0.741504
c8a1579e1d69767fb5258bb5c8d01fd306845539
6,673
py
Python
services/recommend_posts/cosine_recommender.py
CPSSD/rabble
88ad5f4cfd49c00037ffdd0f0b5d463dcbf299c9
[ "MIT" ]
3
2020-03-17T23:18:39.000Z
2021-03-06T02:56:46.000Z
services/recommend_posts/cosine_recommender.py
CPSSD/rabble
88ad5f4cfd49c00037ffdd0f0b5d463dcbf299c9
[ "MIT" ]
3
2020-03-21T08:47:34.000Z
2020-05-11T21:56:56.000Z
services/recommend_posts/cosine_recommender.py
CPSSD/rabble
88ad5f4cfd49c00037ffdd0f0b5d463dcbf299c9
[ "MIT" ]
1
2020-03-17T14:13:54.000Z
2020-03-17T14:13:54.000Z
from math import log from collections import defaultdict from heapq import heappush, heappushpop from services.proto import database_pb2 from utils.recommenders import RecommendersUtil from utils.articles import get_article class CosineRecommender: ''' Calculate similarity based on TF-IDF cosine-based simila...
37.488764
106
0.605275
c8a1649735c70c01802fabb0842c83d99a2af3b0
25,417
py
Python
sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_attached_data_networks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_attached_data_networks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_attached_data_networks_operations.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 ...
50.834
315
0.702837
c8a169830757f4368bebb7ccf7603dc77ee112bb
1,509
py
Python
real_robots/__init__.py
ayushshivani/real_robots
40e0dd97d7d37fb8bc917894ddb856d47fce04fc
[ "MIT" ]
null
null
null
real_robots/__init__.py
ayushshivani/real_robots
40e0dd97d7d37fb8bc917894ddb856d47fce04fc
[ "MIT" ]
null
null
null
real_robots/__init__.py
ayushshivani/real_robots
40e0dd97d7d37fb8bc917894ddb856d47fce04fc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for real-robots.""" __author__ = """S.P. Mohanty""" __email__ = 'mohanty@aicrowd.com' __version__ = '0.1.4' import os from gym.envs.registration import register from .evaluate import evaluate register(id='REALRobot-v0', entry_point='real_robots.envs:REALRobotEnv', )...
29.019231
85
0.640822
c8a185fa5b8767dd958dd6a237ca368739a75ab3
865
py
Python
aula3/exercicio/exercicio3.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
aula3/exercicio/exercicio3.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
aula3/exercicio/exercicio3.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
#--- Exercicio 3 - Input, Estrutura de decisão e operações matemáticas #--- Crie um programa que leia os dados de um funcionário #--- Funcionário: Nome Completo, CPF, Número do registro, Cargo e Salário #--- Exiba os dados de salário liquido, descontando os tributos #--- Deve ser calculado o valor do INSS - #--- INSS ...
57.666667
73
0.610405
c8a18ca6a26803f53f3f6db40b89cf3f8d3f2357
1,703
py
Python
Python/calc_acc.py
octo-willy/Sargassum-Sensing
1fca7dcabf2bddc0c931de196f7f287adb626b75
[ "MIT" ]
null
null
null
Python/calc_acc.py
octo-willy/Sargassum-Sensing
1fca7dcabf2bddc0c931de196f7f287adb626b75
[ "MIT" ]
null
null
null
Python/calc_acc.py
octo-willy/Sargassum-Sensing
1fca7dcabf2bddc0c931de196f7f287adb626b75
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np def calc_acc(y_test,y_pred): con_mat = pd.crosstab(pd.Series(y_test,name='Observed'),pd.Series(y_pred,name='DTC')) missing = np.setdiff1d(con_mat.columns,con_mat.index) if len(missing)>0: new_mat = con_mat.reset_index() ...
35.479167
120
0.621257
c8a190adcc3ec65c0a24a5c4bf3c38a47a1ce6ae
634
py
Python
flatsat/comms/user_segment/server/tools/testing/scoresrvr.py
cromulencellc/hackasat-final-2021
d01a1b5d7947b3e41ae2da3ec63d5f43278a5eac
[ "MIT" ]
4
2022-02-25T05:45:27.000Z
2022-03-10T01:05:27.000Z
flatsat/comms/user_segment/server/tools/testing/scoresrvr.py
cromulencellc/hackasat-final-2021
d01a1b5d7947b3e41ae2da3ec63d5f43278a5eac
[ "MIT" ]
null
null
null
flatsat/comms/user_segment/server/tools/testing/scoresrvr.py
cromulencellc/hackasat-final-2021
d01a1b5d7947b3e41ae2da3ec63d5f43278a5eac
[ "MIT" ]
2
2022-03-02T02:14:16.000Z
2022-03-05T07:36:18.000Z
#!/usr/bin/env python3 import socket import time import random SCORE_IP = "localhost" SCORE_PORT = 4001 print(f"UDP target IP: {SCORE_IP}") print(f"UDP target port: {SCORE_PORT}") #for idx in range(0,,1): sock = socket.socket(socket.AF_INET, # Internet socket.SOCK_DGRAM) # UDP while True: ...
20.451613
54
0.635647
c8a1bba29206be24bd0a85e02597098d7a4e351f
18,378
py
Python
code/YOLO101_1Resolusi_160x120_TrainCDV2.py
mlcv-lab/mr3dcapsnet
d0b37ca085073257b0c485210ec92a5c6e7d9bb6
[ "Apache-2.0" ]
null
null
null
code/YOLO101_1Resolusi_160x120_TrainCDV2.py
mlcv-lab/mr3dcapsnet
d0b37ca085073257b0c485210ec92a5c6e7d9bb6
[ "Apache-2.0" ]
null
null
null
code/YOLO101_1Resolusi_160x120_TrainCDV2.py
mlcv-lab/mr3dcapsnet
d0b37ca085073257b0c485210ec92a5c6e7d9bb6
[ "Apache-2.0" ]
1
2021-02-21T16:07:39.000Z
2021-02-21T16:07:39.000Z
# -*- coding: utf-8 -*- """ Created on Fri Jul 14 13:24:34 2017 @author: user """ #from keras.preprocessing.image import ImageDataGenerator #from keras.models import Sequential #from keras.layers.core import Dense, Dropout, Activation, Flatten, SpatialDropout3D, Merge #from keras.layers.convolutional import...
35.342308
213
0.557732
c8a1dcd3560ae9d99e57306d3e1a7f24cb9999c9
2,961
py
Python
tests/manual/service_watcher_test.py
joergeschmann/counselor
455ba2a07d25c5ac946f9b3dab0678eec7d46c40
[ "MIT" ]
null
null
null
tests/manual/service_watcher_test.py
joergeschmann/counselor
455ba2a07d25c5ac946f9b3dab0678eec7d46c40
[ "MIT" ]
null
null
null
tests/manual/service_watcher_test.py
joergeschmann/counselor
455ba2a07d25c5ac946f9b3dab0678eec7d46c40
[ "MIT" ]
null
null
null
import logging import unittest from datetime import timedelta from threading import Event from counselor.client import ConsulClient from counselor.endpoint.entity import ServiceDefinition from counselor.endpoint.http_endpoint import EndpointConfig from counselor.service_watcher import ServiceUpdateListener, ServiceWat...
37.0125
109
0.714286
c8a1ffddad46433c2bc04cf13504abcff00e2dac
5,917
py
Python
src/gafaelfawr/token_cache.py
lsst-sqre/gafaelfawr
5d965e9d7901987ef041fd341637d75407b55227
[ "MIT" ]
null
null
null
src/gafaelfawr/token_cache.py
lsst-sqre/gafaelfawr
5d965e9d7901987ef041fd341637d75407b55227
[ "MIT" ]
155
2020-05-29T17:21:13.000Z
2022-03-28T19:55:52.000Z
src/gafaelfawr/token_cache.py
lsst-sqre/gafaelfawr
5d965e9d7901987ef041fd341637d75407b55227
[ "MIT" ]
3
2021-04-26T18:02:58.000Z
2022-02-03T01:29:13.000Z
"""Cache for internal and notebook tokens.""" from __future__ import annotations from typing import TYPE_CHECKING from cachetools import LRUCache from gafaelfawr.constants import TOKEN_CACHE_SIZE from gafaelfawr.util import current_datetime if TYPE_CHECKING: from typing import List, Optional, Tuple from g...
34.005747
78
0.629204
c8a200c69d1c7b06d5f5afd81ef8088b22e12535
3,740
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_watch_event.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_watch_event.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_watch_event.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1Wat...
26.524823
124
0.557219
c8a207605be9246bb1f351095779916191e8f4e6
5,270
py
Python
access_control/models/role_resource_permission_create.py
hedleyroos/core-management-layer
2a25bf5fb44fd511b8b2626ec09a4bc05098334c
[ "BSD-3-Clause" ]
null
null
null
access_control/models/role_resource_permission_create.py
hedleyroos/core-management-layer
2a25bf5fb44fd511b8b2626ec09a4bc05098334c
[ "BSD-3-Clause" ]
90
2018-01-23T10:30:01.000Z
2019-01-31T10:53:42.000Z
access_control/models/role_resource_permission_create.py
hedleyroos/core-management-layer
2a25bf5fb44fd511b8b2626ec09a4bc05098334c
[ "BSD-3-Clause" ]
1
2021-08-17T14:16:23.000Z
2021-08-17T14:16:23.000Z
# coding: utf-8 """ Access Control API # The Access Control API ## Overview The Access Control API is an API exposed to other core components. It uses an API Key in an HTTP header to perform authentication and authorisation. Most of the API calls facilitates CRUD of the entities defined in the Access Contro...
31.369048
449
0.614042
c8a2788962ed4ad8969563df30a04a9b7c7534c7
4,221
py
Python
easydata/validator.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
1
2018-03-16T09:56:23.000Z
2018-03-16T09:56:23.000Z
easydata/validator.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
null
null
null
easydata/validator.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
null
null
null
from easydata.func.function_session import set_form_session_for_custom_field,\ clear_form_session_for_custom_field, save_value_session_for_custom_field from django.utils.translation import ugettext as _ def save_cleaned_data(cleaned_data, session): for key,value in cleaned_data.items(): save_value_sess...
38.027027
110
0.638711
c8a27a41156651e5bb3cb1f56bedd15a1555ea4f
1,347
py
Python
q18.py
jsdnhk/recursion-exercise
87c4320adcc6ef5545b7f56614ca0a2171d811ab
[ "MIT" ]
null
null
null
q18.py
jsdnhk/recursion-exercise
87c4320adcc6ef5545b7f56614ca0a2171d811ab
[ "MIT" ]
null
null
null
q18.py
jsdnhk/recursion-exercise
87c4320adcc6ef5545b7f56614ca0a2171d811ab
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ def moveDisks(n, fromTower, toTower, auxTower): if n == 1: Move disk 1 from the fromTower to the toTower else: moveDisks(n - 1, fromTower, auxTower, toTower) Move disk n from the fromTower to the toTower moveDisks(n - 1, auxTower, toTower, fromTower) """ count = 0 def main(): ...
32.853659
110
0.637713
c8a29e68ba511101d0b52d8d69258cfbe8b622c1
22
py
Python
btd6_memory_info/generated/UnityEngine/AddressableAssets/ResourceProviders/ContentCatalogProvider/InternalOp/internal_op.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/AddressableAssets/ResourceProviders/ContentCatalogProvider/InternalOp/internal_op.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/AddressableAssets/ResourceProviders/ContentCatalogProvider/InternalOp/internal_op.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class InternalOp: pass
22
22
0.863636
c8a2a804360abdefc3b1b218a15f50b0d55b3d35
19
py
Python
Code/__init__.py
camvives/TPI
186f495fcb735b835185ae38a5e1ded294b0dd2f
[ "MIT" ]
null
null
null
Code/__init__.py
camvives/TPI
186f495fcb735b835185ae38a5e1ded294b0dd2f
[ "MIT" ]
null
null
null
Code/__init__.py
camvives/TPI
186f495fcb735b835185ae38a5e1ded294b0dd2f
[ "MIT" ]
null
null
null
import presentation
19
19
0.947368
c8a2af9653f2654b82ae5504febdef9b21c05eaf
4,482
py
Python
deeppavlov/models/preprocessors/assemble_embeddings_matrix.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
3
2020-04-16T04:25:10.000Z
2021-05-07T23:04:43.000Z
deeppavlov/models/preprocessors/assemble_embeddings_matrix.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
12
2020-01-28T22:14:04.000Z
2022-02-10T00:10:17.000Z
deeppavlov/models/preprocessors/assemble_embeddings_matrix.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
1
2019-03-17T13:47:44.000Z
2019-03-17T13:47:44.000Z
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
47.680851
116
0.649487
c8a2c780f16371a6308be34e880f7ad7b91bb3bf
18,192
py
Python
ribohmm/_cmds/ribohmm_main.py
djf604/RiboHMM
56bd10a198fdf7e191ce0b3362150b1969deaa03
[ "Apache-2.0" ]
null
null
null
ribohmm/_cmds/ribohmm_main.py
djf604/RiboHMM
56bd10a198fdf7e191ce0b3362150b1969deaa03
[ "Apache-2.0" ]
null
null
null
ribohmm/_cmds/ribohmm_main.py
djf604/RiboHMM
56bd10a198fdf7e191ce0b3362150b1969deaa03
[ "Apache-2.0" ]
1
2021-03-08T09:36:01.000Z
2021-03-08T09:36:01.000Z
import os import json import argparse import logging import time import pysam from ribohmm.contrib.bam_to_tbi import convert_riboseq, convert_rnaseq, convert_bams_to_bed from ribohmm.core.learn_model import select_transcripts, learn_model_parameters from ribohmm.core.infer_CDS import infer_CDS from ribohmm.core.seq i...
50.957983
119
0.606475
c8a2cd4424083d9c5b2b9b5bfef382f0acdc2885
790
py
Python
289-game-of-life/289-game-of-life.py
Nitin-Diwakar/75DaysCodingChallenge-TechMaestro
69a355edd6f3a331b9c303ab622b1fbf49b4744a
[ "MIT" ]
null
null
null
289-game-of-life/289-game-of-life.py
Nitin-Diwakar/75DaysCodingChallenge-TechMaestro
69a355edd6f3a331b9c303ab622b1fbf49b4744a
[ "MIT" ]
null
null
null
289-game-of-life/289-game-of-life.py
Nitin-Diwakar/75DaysCodingChallenge-TechMaestro
69a355edd6f3a331b9c303ab622b1fbf49b4744a
[ "MIT" ]
null
null
null
class Solution: def gameOfLife(self, board: List[List[int]]) -> None: """ Do not return anything, modify board in-place instead. """ def count(x, y): res = 0 for r in range(x-1, x+2): for c in range(y-1, y+2): if (r != x or ...
37.619048
113
0.427848
c8a2d7207832fc1dcbab9e5fd98df2aa741f9acf
378
py
Python
examples/ping_client_thrift.py
albertyw/thriftrw-python
22f6ab645f5af48cae2fee0dc1431dfacb971348
[ "MIT" ]
40
2016-02-18T18:01:23.000Z
2022-03-31T10:34:33.000Z
examples/ping_client_thrift.py
albertyw/thriftrw-python
22f6ab645f5af48cae2fee0dc1431dfacb971348
[ "MIT" ]
56
2016-02-10T16:51:07.000Z
2020-02-07T05:28:49.000Z
examples/ping_client_thrift.py
albertyw/thriftrw-python
22f6ab645f5af48cae2fee0dc1431dfacb971348
[ "MIT" ]
12
2016-03-29T17:29:28.000Z
2021-10-30T14:36:39.000Z
from __future__ import absolute_import from __future__ import print_function from thrift.transport.THttpClient import THttpClient from thrift.protocol.TBinaryProtocol import TBinaryProtocolAccelerated from ping import Ping trans = THttpClient('http://localhost:8888/thrift') proto = TBinaryProtocolAccelerated(trans)...
25.2
70
0.833333
c8a2e547e50a7451b6677250949d63d1f91fd4f3
538
py
Python
Testing/publications/brochures/__init__.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
Testing/publications/brochures/__init__.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
Testing/publications/brochures/__init__.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
# -*- coding: UTF-8 -*- # ----------------------------------------------------------------------------- # # P A G E B O T # # Copyright (c) 2016+ Buro Petr van Blokland + Claudia Mens # www.pagebot.io # Licensed under MIT conditions # # Supporting DrawBot, www.drawbot.com # Supporting Flat, xxyx...
25.619048
79
0.47026
c8a2e60cef21d4e661807284349347d541739686
2,592
py
Python
toontown/hood/BossbotHQAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/hood/BossbotHQAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/hood/BossbotHQAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from toontown.building import DistributedBBElevatorAI from toontown.building import FADoorCodes from toontown.building.DistributedBoardingPartyAI import DistributedBoardingPartyAI from toontown.coghq import DistributedCogKartAI from toontown.hood import CogHQAI from toontown.suit import DistributedBossbotBossAI from to...
39.876923
94
0.679784
c8a2f362489baf65870672f55fc7da9caff9f8be
17,543
py
Python
qcodes/tests/dataset/test_data_set_cache.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
null
null
null
qcodes/tests/dataset/test_data_set_cache.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
230
2020-08-17T06:08:33.000Z
2022-03-29T12:06:58.000Z
qcodes/tests/dataset/test_data_set_cache.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
null
null
null
from typing import Dict import hypothesis.strategies as hst import numpy as np import pytest from hypothesis import given, settings from qcodes.dataset.measurements import Measurement from qcodes.instrument.parameter import expand_setpoints_helper @pytest.mark.parametrize("bg_writing", [True, False]) @pytest.mark.p...
49.696884
138
0.636151
c8a373f2f634204f306e12b6a0444870473321c7
3,065
py
Python
irida_uploader_cl/core/logger.py
duanjunhyq/irida_uploader_cl
d0e5d404c5b5b10c3411ded71a20f5ab062aabba
[ "MIT" ]
null
null
null
irida_uploader_cl/core/logger.py
duanjunhyq/irida_uploader_cl
d0e5d404c5b5b10c3411ded71a20f5ab062aabba
[ "MIT" ]
null
null
null
irida_uploader_cl/core/logger.py
duanjunhyq/irida_uploader_cl
d0e5d404c5b5b10c3411ded71a20f5ab062aabba
[ "MIT" ]
null
null
null
from appdirs import user_log_dir import os import logging.handlers # Normal base logging directory name log_directory_name = "irida_uploader" # When running tests, the Makefile creates an environment variable IRIDA_UPLOADER_TEST to 'True' # If it exists then we are running a test and should be logging to the test log...
33.681319
114
0.753018
c8a3e0c1b7396f8f1461140e5b14b4dd9c2c89aa
4,874
py
Python
scf/test/test_dhf.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
scf/test/test_dhf.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
scf/test/test_dhf.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
# # Author: Qiming Sun <osirpt.sun@gmail.com> # import numpy import unittest from pyscf import gto from pyscf import scf from pyscf import lib mol = gto.M( verbose = 5, output = '/dev/null', atom = ''' O 0 0 0 H 0 -0.757 0.587 H 0 0.757 0.587''', ...
31.856209
84
0.529545
c8a3eaf7ae2e4629cf45b4a5ae154860a23ad799
986
py
Python
ddns_server/dicts.py
TheTimmoth/dyndns-server
bae8c6fabbffd05de86c4a24a8b50c1fa399768b
[ "MIT" ]
null
null
null
ddns_server/dicts.py
TheTimmoth/dyndns-server
bae8c6fabbffd05de86c4a24a8b50c1fa399768b
[ "MIT" ]
null
null
null
ddns_server/dicts.py
TheTimmoth/dyndns-server
bae8c6fabbffd05de86c4a24a8b50c1fa399768b
[ "MIT" ]
null
null
null
# dicts.py # JSON Dict # Author: Tim Schlottmann from collections import UserDict from json import dumps from json import loads from json import JSONDecodeError from typing import Dict from typing import Union class JsonDict(UserDict): def __init__(self, initialdata: Union[dict, str] = {}, ...
24.04878
69
0.640974
c8a3eccb9a030f4d30f91d8ec66be98fb5f6c526
7,561
py
Python
pydmps/dmp.py
phranq0/ros_dmp
75317a79c74e3da33c27d660a7ab1489edbfa7a6
[ "Apache-2.0" ]
null
null
null
pydmps/dmp.py
phranq0/ros_dmp
75317a79c74e3da33c27d660a7ab1489edbfa7a6
[ "Apache-2.0" ]
null
null
null
pydmps/dmp.py
phranq0/ros_dmp
75317a79c74e3da33c27d660a7ab1489edbfa7a6
[ "Apache-2.0" ]
null
null
null
''' Copyright (C) 2013 Travis DeWolf This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope t...
35.167442
91
0.58405
c8a408f53c9d2564a8956c4fa057cb63e5a4b360
17,539
py
Python
tools/run_tests/xds_k8s_test_driver/framework/infrastructure/gcp/compute.py
tomerv/grpc
27662173e750107a4520d5d6972544d67a6a0203
[ "Apache-2.0" ]
36,552
2015-02-26T17:30:13.000Z
2022-03-31T22:41:33.000Z
tools/run_tests/xds_k8s_test_driver/framework/infrastructure/gcp/compute.py
stanley-cheung/grpc
7d6000082a0e79a5307d04454a572a924a4d940d
[ "BSD-3-Clause" ]
23,536
2015-02-26T17:50:56.000Z
2022-03-31T23:39:42.000Z
tools/run_tests/xds_k8s_test_driver/framework/infrastructure/gcp/compute.py
stanley-cheung/grpc
7d6000082a0e79a5307d04454a572a924a4d940d
[ "BSD-3-Clause" ]
11,050
2015-02-26T17:22:10.000Z
2022-03-31T10:12:35.000Z
# Copyright 2020 gRPC 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 writing...
39.680995
110
0.573066
c8a42fe781601d570f8f64369e915ed03878ce4a
923
py
Python
setup.py
dcorredor20/water_demand_forecasting
7c9a0b22496b62f1be8ed2819bf1a1b04bb977f2
[ "MIT" ]
null
null
null
setup.py
dcorredor20/water_demand_forecasting
7c9a0b22496b62f1be8ed2819bf1a1b04bb977f2
[ "MIT" ]
null
null
null
setup.py
dcorredor20/water_demand_forecasting
7c9a0b22496b62f1be8ed2819bf1a1b04bb977f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup packages = \ ['water_demand_forecasting'] package_data = \ {'': ['*']} install_requires = \ ['click>=7.1.2,<8.0.0', 'lint>=1.2.1,<2.0.0', 'matplotlib=3.1.3', 'numpy>=1.19.5,<2.0.0', 'pandas>=0.24.0', 'pyyaml>=5.3.1,<6.0.0', 'sklearn>=0.0,<0.1'] entry_points...
21.465116
58
0.612134
c8a43b6253c4fce187a26467595dd85ec3d40e67
6,604
py
Python
microsoftgraph/mail.py
maxwellherron5/microsoftgraph-python
ccab7daa336c67dec716eb00b45d37258d082bb3
[ "MIT" ]
null
null
null
microsoftgraph/mail.py
maxwellherron5/microsoftgraph-python
ccab7daa336c67dec716eb00b45d37258d082bb3
[ "MIT" ]
null
null
null
microsoftgraph/mail.py
maxwellherron5/microsoftgraph-python
ccab7daa336c67dec716eb00b45d37258d082bb3
[ "MIT" ]
null
null
null
import base64 import mimetypes from microsoftgraph.decorators import token_required from microsoftgraph.response import Response class Mail(object): def __init__(self, client) -> None: """Use the Outlook mail REST API https://docs.microsoft.com/en-us/graph/api/resources/mail-api-overview?view=gr...
40.515337
126
0.616899
c8a4799632fa7fc00c9aa8f88828e9e32195085e
1,932
py
Python
test/EventsTest.py
chamathshashika/projects-python-wrappers
33e9f6bccba16a581b115c582033a93d43bb159c
[ "MIT" ]
null
null
null
test/EventsTest.py
chamathshashika/projects-python-wrappers
33e9f6bccba16a581b115c582033a93d43bb159c
[ "MIT" ]
null
null
null
test/EventsTest.py
chamathshashika/projects-python-wrappers
33e9f6bccba16a581b115c582033a93d43bb159c
[ "MIT" ]
null
null
null
#$Id$ from projects.service.ZohoProjects import ZohoProjects from projects.model.Event import Event from projects.model.Participant import Participant from projects.exception.ProjectsException import ProjectsException authtoken = '{auth_token}' zoho_portals = ZohoProjects(authtoken) try: portal_id = zoho_portal...
25.76
81
0.69824
c8a483516f1d594f320aa40cf13c100bb5889900
615,554
py
Python
nova/tests/unit/compute/test_compute_mgr.py
xin3liang/nova
5b79ec8670619ece92ac8bb43d84d2412778a182
[ "Apache-2.0" ]
1
2020-08-14T02:20:59.000Z
2020-08-14T02:20:59.000Z
nova/tests/unit/compute/test_compute_mgr.py
BelieveInFuture/nova
e077c6d8f79250a75e091dc25b6688d2ddebe08f
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/compute/test_compute_mgr.py
BelieveInFuture/nova
e077c6d8f79250a75e091dc25b6688d2ddebe08f
[ "Apache-2.0" ]
null
null
null
# 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...
50.245204
79
0.639284