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
62007c6782003e1426d972fe2f8daf6619b97831
1,020
py
Python
scripts/saved_model_to_weights.py
huylenguyen806/vnasrg
caee2e79d0eb9d1a997f5df8e2ba3ee7f0a1bcae
[ "Apache-2.0" ]
608
2020-10-15T16:11:23.000Z
2022-03-28T21:23:55.000Z
scripts/saved_model_to_weights.py
huylenguyen806/vnasrg
caee2e79d0eb9d1a997f5df8e2ba3ee7f0a1bcae
[ "Apache-2.0" ]
174
2020-10-15T16:14:27.000Z
2022-03-28T11:48:56.000Z
scripts/saved_model_to_weights.py
huylenguyen806/vnasrg
caee2e79d0eb9d1a997f5df8e2ba3ee7f0a1bcae
[ "Apache-2.0" ]
191
2020-10-16T01:24:15.000Z
2022-03-28T10:30:55.000Z
# Copyright 2020 Huy Le Nguyen (@usimarit) # # 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 t...
32.903226
90
0.765686
6200a958ac4194fae64a6a6c737fa5d9bc738223
6,106
py
Python
tests/test_lorentz_math.py
tao-harald/geoopt
d6fea4d44f146877c5a430e9fd6ba0fb7e821b92
[ "Apache-2.0" ]
438
2019-03-05T11:24:03.000Z
2022-03-31T14:46:42.000Z
tests/test_lorentz_math.py
tao-harald/geoopt
d6fea4d44f146877c5a430e9fd6ba0fb7e821b92
[ "Apache-2.0" ]
98
2019-03-07T21:38:24.000Z
2022-03-25T10:48:45.000Z
tests/test_lorentz_math.py
tao-harald/geoopt
d6fea4d44f146877c5a430e9fd6ba0fb7e821b92
[ "Apache-2.0" ]
58
2019-04-13T04:52:16.000Z
2022-03-14T09:26:00.000Z
import torch import random import numpy as np import pytest from geoopt.manifolds import lorentz @pytest.fixture(scope="module", autouse=True, params=range(30, 40)) def seed(request): seed = request.param torch.manual_seed(seed) random.seed(seed) np.random.seed(seed) return seed @pytest.fixture(...
27.137778
82
0.629053
6200e103480c9d7b39df287b676a38db5ee898f8
38,118
py
Python
orttraining/orttraining/test/python/orttraining_test_orttrainer_bert_toy_onnx.py
mslacken/onnxruntime
bd215b79a2aeeb5e0b77feaaed67cc7e3ac98ead
[ "MIT" ]
null
null
null
orttraining/orttraining/test/python/orttraining_test_orttrainer_bert_toy_onnx.py
mslacken/onnxruntime
bd215b79a2aeeb5e0b77feaaed67cc7e3ac98ead
[ "MIT" ]
null
null
null
orttraining/orttraining/test/python/orttraining_test_orttrainer_bert_toy_onnx.py
mslacken/onnxruntime
bd215b79a2aeeb5e0b77feaaed67cc7e3ac98ead
[ "MIT" ]
null
null
null
import copy from functools import partial import inspect import math from numpy.testing import assert_allclose import onnx import os import pytest import torch import onnxruntime from onnxruntime.capi.ort_trainer import IODescription as Legacy_IODescription,\ ModelDescription a...
41.841932
181
0.679443
6200f44754faa46808719ca6a952fbd019eb502c
520
py
Python
py/cidoc_crm_types/properties/p76_has_contact_point.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p76_has_contact_point.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p76_has_contact_point.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass @dataclass class P76HasContactPoint: """ Scope note: This property associates an instance of E39 Actor to an instance of E41 Appellation which a communication service uses to direct communications to this actor, such as an e-mail address, fax number, or postal address. Examples:...
27.368421
216
0.736538
620123ccc18966d88ad13393e404cac3a81c914c
370
py
Python
tests/test_onaBox.py
zijiewu3/mbuild_ONA
f1d3e7e0c6ef48fe817c6cba860d03ecb825e984
[ "MIT" ]
4
2019-11-07T04:02:51.000Z
2021-04-01T12:44:48.000Z
tests/test_onaBox.py
zijiewu3/mbuild_ONA
f1d3e7e0c6ef48fe817c6cba860d03ecb825e984
[ "MIT" ]
4
2019-11-06T20:15:07.000Z
2020-05-18T22:10:25.000Z
tests/test_onaBox.py
zijiewu3/mbuild_ONA
f1d3e7e0c6ef48fe817c6cba860d03ecb825e984
[ "MIT" ]
2
2019-11-12T16:21:25.000Z
2020-05-18T22:20:34.000Z
import mbuild as mb import numpy as np from bases_fixtures import ona_box import pytest def test_boxChains(): testBox = ona_box(['ATG', 'CGTA'], dim=[2, 1, 1]) chains = [c.sequence for c in testBox.children] testBox.save('onabox.gsd') assert set(chains) == set(['ATG', 'CGTA']) def test_writeToLammps...
23.125
53
0.656757
62015f3f41fa5c92c8550adc64f126319e0ed2c5
9,302
py
Python
mmaction/models/backbones/c3d.py
rikichou/mmaction2
a4db04003e7a87e68436e940178ea4c1d1b77ef0
[ "Apache-2.0" ]
null
null
null
mmaction/models/backbones/c3d.py
rikichou/mmaction2
a4db04003e7a87e68436e940178ea4c1d1b77ef0
[ "Apache-2.0" ]
null
null
null
mmaction/models/backbones/c3d.py
rikichou/mmaction2
a4db04003e7a87e68436e940178ea4c1d1b77ef0
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn from mmcv.cnn import ConvModule, constant_init, kaiming_init, normal_init from mmcv.runner import load_checkpoint from mmcv.utils import _BatchNorm from ...utils import get_root_logger from ..builder import BACKBONES @BACKBONES.register_module() class C3D(nn.Module): """C3D backbone. A...
34.451852
79
0.562245
6201c39793686bf27a0025fe74b52bc0eedce9ed
6,309
py
Python
tests/gpu_multi/batchnorm/batchnorm_data_parallelism_test.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
null
null
null
tests/gpu_multi/batchnorm/batchnorm_data_parallelism_test.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
null
null
null
tests/gpu_multi/batchnorm/batchnorm_data_parallelism_test.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import numpy as np import pytest import dace import dace.libraries.nccl as nccl from dace.libraries.standard import Reduce from dace.transformation.interstate import GPUTransformSDFG from dace.transformation.dataflow import RedundantSecondArra...
39.43125
88
0.628943
6201c6f33d06db9865bcb82c72463bf280fda897
1,021
py
Python
spider/pixiv/test/test_image_util.py
youyouzh/u_base
f2f81f837258df6f57cdfc3f3f579049935f5a22
[ "Apache-2.0" ]
4
2020-03-29T15:01:18.000Z
2020-06-22T08:06:00.000Z
spider/pixiv/test/test_image_util.py
youyouzh/python-base
1959812d026faf9d23ff758ca06f1a13a3cce3c4
[ "Apache-2.0" ]
null
null
null
spider/pixiv/test/test_image_util.py
youyouzh/python-base
1959812d026faf9d23ff758ca06f1a13a3cce3c4
[ "Apache-2.0" ]
null
null
null
import os from spider.pixiv.arrange.image_util import * from u_base import u_unittest def test_get_image(): image_path = r'H:\Pictures\动漫插画\初音未来-miku\comic_louli (3366).png' width, height = 1366, 768 image = get_image(image_path) u_unittest.assert_eq(width, image.width) u_unittest.assert_eq(heigh...
28.361111
69
0.74143
6201d70769f89e2c85b27c77132bd0e70b78857e
118
py
Python
pages/admin.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
19
2022-02-16T20:00:08.000Z
2022-03-08T17:38:59.000Z
pages/admin.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
3
2022-02-16T20:59:11.000Z
2022-02-23T20:40:12.000Z
pages/admin.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from pages.models import Pages # Register pages in admin admin.site.register(Pages)
19.666667
32
0.813559
6201dfd3cf4ed90932614a21f8a57c1a16e64dc1
1,087
py
Python
src/datasets/ppi_multiclass_label_mapper.py
elangovana/large-scale-ptm-ppi
cc835df915d12dd20c35f9cea5e40365200a6d3d
[ "MIT" ]
1
2022-02-25T22:06:39.000Z
2022-02-25T22:06:39.000Z
src/datasets/ppi_multiclass_label_mapper.py
elangovana/ppi-aimed
cc835df915d12dd20c35f9cea5e40365200a6d3d
[ "MIT" ]
null
null
null
src/datasets/ppi_multiclass_label_mapper.py
elangovana/ppi-aimed
cc835df915d12dd20c35f9cea5e40365200a6d3d
[ "MIT" ]
null
null
null
from datasets.base_label_mapper import BaseMapperBase class PpiMulticlassLabelMapper(BaseMapperBase): """ Maps string labels to integers for PPI dataset """ def __init__(self): self._raw_labels = ["other", "phosphorylation", "dephosphory...
27.871795
74
0.570377
62023c21c85e53f3493667e327cdcbbcb9869419
2,381
py
Python
tests/test_utils.py
abdelq/pybaselines
043aa7875efe1ca01c3e8e9ae7c57a67274aff06
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
tests/test_utils.py
abdelq/pybaselines
043aa7875efe1ca01c3e8e9ae7c57a67274aff06
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
tests/test_utils.py
abdelq/pybaselines
043aa7875efe1ca01c3e8e9ae7c57a67274aff06
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for pybaselines.utils. @author: Donald Erb Created on March 20, 2021 """ import numpy as np from numpy.testing import assert_array_almost_equal, assert_almost_equal import pytest from pybaselines import utils from .conftest import gaussian @pytest.fixture(scope='module') def _x_d...
29.036585
87
0.680806
62024e7ba05dff8e369577586c825a1b45b91b42
4,588
py
Python
data/scripts/tf_record_writer.py
mit-acl/dc2g
6f739e191c51acd5fb4ecb50609e1c26a10782fd
[ "MIT" ]
11
2019-08-28T04:09:38.000Z
2022-02-27T16:04:06.000Z
data/scripts/tf_record_writer.py
mit-acl/dc2g
6f739e191c51acd5fb4ecb50609e1c26a10782fd
[ "MIT" ]
null
null
null
data/scripts/tf_record_writer.py
mit-acl/dc2g
6f739e191c51acd5fb4ecb50609e1c26a10782fd
[ "MIT" ]
3
2020-07-08T15:11:02.000Z
2020-10-23T07:17:00.000Z
"""Converts DC2G data to TFRecords file format with Example protos.""" import os import sys import tensorflow as tf import matplotlib.pyplot as plt import csv from dc2g.util import get_training_testing_houses, get_object_goal_names dir_path, _ = os.path.split(os.path.dirname(os.path.realpath(__file__))) # dataset =...
49.333333
258
0.627724
620260e960429131d1df9d2a473cc7809e444d0f
973
py
Python
projects/chapter7_try_yourself/7.9.py
rock-gustavo/Python_Crash_Course
8c08c8f83e70d54f85983777dc29f1094f43f421
[ "MIT" ]
null
null
null
projects/chapter7_try_yourself/7.9.py
rock-gustavo/Python_Crash_Course
8c08c8f83e70d54f85983777dc29f1094f43f421
[ "MIT" ]
null
null
null
projects/chapter7_try_yourself/7.9.py
rock-gustavo/Python_Crash_Course
8c08c8f83e70d54f85983777dc29f1094f43f421
[ "MIT" ]
null
null
null
""" 7-9. No Pastrami: Using the list sandwich_orders from Exercise 7-8, make sure the sandwich 'pastrami' appears in the list at least three times. Add code near the beginning of your program to print a message saying the deli has run out of pastrami, and then use a while loop to remove all occurrences of 'pastrami' f...
40.541667
120
0.73073
62027b1321c40996acb906042298878931ff7144
228
py
Python
game/pieces.py
nazaruka/Catan-AI
d7c91c7011ac82ad41d3b80a29c73c23ab7b579e
[ "MIT" ]
9
2019-07-16T15:28:00.000Z
2022-02-08T00:53:39.000Z
game/pieces.py
nazaruka/Catan-AI
d7c91c7011ac82ad41d3b80a29c73c23ab7b579e
[ "MIT" ]
2
2020-01-09T15:27:58.000Z
2020-09-23T18:04:41.000Z
game/pieces.py
nazaruka/Catan-AI
d7c91c7011ac82ad41d3b80a29c73c23ab7b579e
[ "MIT" ]
5
2019-08-07T16:51:38.000Z
2021-05-06T04:01:32.000Z
import enum class Colony(enum.Enum): """the enumeration is also used to specify the points colony type is worth""" Uncolonised = 0 Settlement = 1 City = 2 class Road(enum.Enum): Paved = 1 Unpaved = 2
16.285714
81
0.644737
6202829479edf9214bb1b0e78980db24e0409784
308,151
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_07_01/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
44.319143
4,249
0.662253
6202860d1af3f01a502f158bda896ad63f955932
1,861
py
Python
vr/common/balancer/chained.py
yougov/vr.common
8b0312481185d0c195e33665df1165a8de7ee3e8
[ "MIT" ]
null
null
null
vr/common/balancer/chained.py
yougov/vr.common
8b0312481185d0c195e33665df1165a8de7ee3e8
[ "MIT" ]
4
2017-04-02T13:28:36.000Z
2019-03-01T14:32:54.000Z
vr/common/balancer/chained.py
yougov/vr.common
8b0312481185d0c195e33665df1165a8de7ee3e8
[ "MIT" ]
2
2018-05-08T16:14:21.000Z
2022-03-26T07:43:50.000Z
from . import base def import_class(path): try: module, dot, klass = path.rpartition('.') imported = __import__(module, globals(), locals(), [klass, ], -1) return getattr(imported, klass) except Exception as e: raise ImportError(e) class ChainedBalancer(base.Balancer): ""...
31.016667
73
0.59914
6202923d9dce21f2e00de574db1b1f89ec723c0a
22,956
py
Python
pygsti/modelmembers/povms/__init__.py
maij/pyGSTi
70e83e05fa689f53550feb3914c4fac40ca4a943
[ "Apache-2.0" ]
73
2016-01-28T05:02:05.000Z
2022-03-30T07:46:33.000Z
pygsti/modelmembers/povms/__init__.py
00mjk/pyGSTi
4f8bf5337b01b7afcb7b0580b717b5d1fe281be4
[ "Apache-2.0" ]
113
2016-02-25T15:32:18.000Z
2022-03-31T13:18:13.000Z
pygsti/modelmembers/povms/__init__.py
00mjk/pyGSTi
4f8bf5337b01b7afcb7b0580b717b5d1fe281be4
[ "Apache-2.0" ]
41
2016-03-15T19:32:07.000Z
2022-02-16T10:22:05.000Z
""" Sub-package holding model POVM and POVM effect objects. """ #*************************************************************************************************** # Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS). # Under the terms of Contract DE-NA0003525 with NTESS, the U.S. ...
48.328421
119
0.620709
6202badd7c786d4cc79fe77697db5b053225db5c
19,906
py
Python
tests/test_webhooks.py
akshitarora921/dj-stripe
57bd658b382d085aa04685f71018ecf08ea3c00f
[ "MIT" ]
null
null
null
tests/test_webhooks.py
akshitarora921/dj-stripe
57bd658b382d085aa04685f71018ecf08ea3c00f
[ "MIT" ]
null
null
null
tests/test_webhooks.py
akshitarora921/dj-stripe
57bd658b382d085aa04685f71018ecf08ea3c00f
[ "MIT" ]
null
null
null
""" dj-stripe Webhook Tests. """ import json import warnings from collections import defaultdict from copy import deepcopy from unittest.mock import Mock, PropertyMock, call, patch from django.test import TestCase, override_settings from django.test.client import Client from django.urls import reverse from djstripe i...
37.13806
121
0.689742
6202c32376bd9b873a8b6af1f51c80f906e84e96
2,281
py
Python
scripts/pfam_parser.py
sandragodinhosilva/FAW-snakemake
43afdcbd46935e73ff5fe789b6790a338e78dbe7
[ "MIT" ]
1
2022-02-23T02:24:21.000Z
2022-02-23T02:24:21.000Z
scripts/pfam_parser.py
masun/MeLanGE
1be16665c5ac416680e8e760021a25d7d85a0d67
[ "MIT" ]
1
2022-03-31T10:07:51.000Z
2022-03-31T10:07:51.000Z
scripts/pfam_parser.py
sandragodinhosilva/MeLanGE
43afdcbd46935e73ff5fe789b6790a338e78dbe7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### import argparse import sys parser=argparse.ArgumentParser( description='''Parse pfam file''') __file__ = "pfam_parser.py" __author__ = 'Sandra Godinho Silva (sandragodinhosilva@gmail.com)...
38.016667
139
0.59623
6202dfe0bcd2038d5109442a135af9942df26105
4,569
py
Python
exp1/exp1a.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
null
null
null
exp1/exp1a.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
5
2017-05-22T20:32:07.000Z
2017-06-02T21:06:23.000Z
exp1/exp1a.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
null
null
null
# OLD import numpy as np import tensorflow as tf import h5py from sklearn.preprocessing import OneHotEncoder import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import time # Download data from .mat file into numpy array print('==> Experiment 1a') filepath = 'exp1a_smallDataset_71_7.m...
31.510345
93
0.710878
6202ef2e8a019451f3dc76471c6a757693a74172
3,545
py
Python
test_bands.py
danbradham/bands
c8bdca1bafe223bbc5e0e6cedafaec9ac1fa180b
[ "MIT" ]
1
2020-02-13T23:03:23.000Z
2020-02-13T23:03:23.000Z
test_bands.py
danbradham/bands
c8bdca1bafe223bbc5e0e6cedafaec9ac1fa180b
[ "MIT" ]
null
null
null
test_bands.py
danbradham/bands
c8bdca1bafe223bbc5e0e6cedafaec9ac1fa180b
[ "MIT" ]
null
null
null
from bands import channel class Component(object): started = channel('started') stopped = channel('stopped') def __init__(self, name): self.name = name self.started.connect(self.on_started) self.stopped.connect(self.on_stopped) def on_started(self): return self.name ...
27.061069
78
0.665162
620354fd6f32a5de2533afa27dc17ad7380e2cdb
9,888
py
Python
models/psp_base.py
shiyutang/CAG_UDA
c3eda799e2edbd2dd0b6ab6bd8b12727167c9c91
[ "MIT" ]
126
2019-10-30T00:58:02.000Z
2022-01-26T06:29:10.000Z
models/psp_base.py
shiyutang/CAG_UDA
c3eda799e2edbd2dd0b6ab6bd8b12727167c9c91
[ "MIT" ]
14
2019-11-05T15:10:22.000Z
2022-02-08T09:05:53.000Z
models/psp_base.py
shiyutang/CAG_UDA
c3eda799e2edbd2dd0b6ab6bd8b12727167c9c91
[ "MIT" ]
26
2019-12-02T09:41:11.000Z
2022-01-29T10:46:41.000Z
"""Model class template This module provides a template for users to implement custom models. You can specify '--model template' to use this model. The class name should be consistent with both the filename and its model option. The filename should be <model>_dataset.py The class name should be <Model>Dataset.py It im...
47.538462
179
0.648159
62035b35a6a86c4a3bc806c2fb2f39cde76ee1ce
685
py
Python
marchena/modules/posts/management/commands/update_post_statistics.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
marchena/modules/posts/management/commands/update_post_statistics.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
marchena/modules/posts/management/commands/update_post_statistics.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import unicode_literals from django.core.management.base import BaseCommand from yepes.loading import LazyModel Post = LazyModel('posts', 'Post') PostRecord = LazyModel('posts', 'PostRecord') class Command(BaseCommand): help = 'Collects the statistics of the posts and ca...
27.4
77
0.69927
6203641031e547ce55a0169443103f0397c91229
1,035
py
Python
biosimulators_mpbn/data_model.py
pauleve/Biosimulators_mpbn
b4eb27700c6bfdad0fffe8a193a2258a6af64a2b
[ "MIT" ]
null
null
null
biosimulators_mpbn/data_model.py
pauleve/Biosimulators_mpbn
b4eb27700c6bfdad0fffe8a193a2258a6af64a2b
[ "MIT" ]
null
null
null
biosimulators_mpbn/data_model.py
pauleve/Biosimulators_mpbn
b4eb27700c6bfdad0fffe8a193a2258a6af64a2b
[ "MIT" ]
null
null
null
""" Data model for the mapping between KISAO terms and simulation methods and their arguments :Author: Loïc Paulevé <loic.pauleve@labri.fr> :Date: 2022-01-12 :Copyright: 2022, Loïc Paulevé :License: MIT """ from biosimulators_utils.sedml.data_model import SteadyStateSimulation import collections import biosimulators_...
31.363636
93
0.675362
62037c364bbf3a4ac6e5eaafbbfde68b28b4f118
7,375
py
Python
djangoseo/utils.py
varche1/django-seo
6291381bdc19d3b98a9aa971e205378bcc64a790
[ "BSD-3-Clause" ]
27
2015-05-08T08:29:43.000Z
2021-08-02T01:58:06.000Z
djangoseo/utils.py
varche1/django-seo
6291381bdc19d3b98a9aa971e205378bcc64a790
[ "BSD-3-Clause" ]
28
2015-05-14T06:25:31.000Z
2021-09-22T18:54:56.000Z
djangoseo/utils.py
varche1/django-seo
6291381bdc19d3b98a9aa971e205378bcc64a790
[ "BSD-3-Clause" ]
32
2015-05-08T09:41:01.000Z
2021-09-23T05:55:02.000Z
# -*- coding: utf-8 -*- import logging import re import importlib import django import six from django.contrib.sites.shortcuts import get_current_site from django.utils.functional import lazy from django.utils.safestring import mark_safe from django.utils.module_loading import import_string from django.utils.html impo...
31.788793
115
0.631864
6203b178b88105f54c6890f0d7067d3e221e304d
435
py
Python
datatype_tools/lib/Str.py
edmundpf/datatype_tools
903094fe3aa76cf6714a8f2e53d24afcca244a39
[ "MIT" ]
null
null
null
datatype_tools/lib/Str.py
edmundpf/datatype_tools
903094fe3aa76cf6714a8f2e53d24afcca244a39
[ "MIT" ]
null
null
null
datatype_tools/lib/Str.py
edmundpf/datatype_tools
903094fe3aa76cf6714a8f2e53d24afcca244a39
[ "MIT" ]
null
null
null
from forbiddenfruit import curse from datatype_tools.utils.string_functions import (replace_multiple, format_date, find_nth, b64_encode, b64_decode, get_iso_date) #: String Curses curse(str, 'replace_multiple', replace_multiple) curse(str, 'format_date', format_date) curse(str, 'find_nth', find_nth) curse(str, 'b64_...
29
68
0.77931
6203ba0249e6f5d68437f4acd671b00ee17479f1
9,217
py
Python
salt/modules/modjk.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
1
2016-12-20T20:11:21.000Z
2016-12-20T20:11:21.000Z
salt/modules/modjk.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
salt/modules/modjk.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
''' Control Modjk via the Apache Tomcat "Status" worker (http://tomcat.apache.org/connectors-doc/reference/status.html) Below is an example of the configuration needed for this module. This configuration data can be placed either in :doc:`grains </topics/targeting/grains>` or :doc:`pillar </topics/pillar/index>`. If ...
23.452926
94
0.612672
6203d0ea10489c3564f6a361ce443bd6d0bb699f
566
py
Python
ngsutils/gtf/t/test_query.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
57
2015-03-09T01:26:45.000Z
2022-02-22T07:26:01.000Z
ngsutils/gtf/t/test_query.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-02-03T23:24:46.000Z
2022-03-16T20:08:10.000Z
ngsutils/gtf/t/test_query.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-01-18T16:47:47.000Z
2022-02-22T07:28:09.000Z
#!/usr/bin/env python ''' Tests for gtfutils / query - Slightly redundant with fetch test in test_gtf.py, but that's okay :) ''' import os import unittest import ngsutils.gtf.query from ngsutils.gtf import GTF fname = os.path.join(os.path.dirname(__file__), 'test1.gtf') class GTFQueryTest(unittest.TestCase): ...
23.583333
103
0.70318
6203e332c6563a1617e987692d8d07d2d3c651f2
1,122
py
Python
tests/r7testapp/__init__.py
jvanasco/pyramid_route_7
893aa31cb221714e57ccee6f5e61977fddfd230f
[ "MIT" ]
2
2016-02-20T22:14:16.000Z
2022-02-08T19:25:30.000Z
tests/r7testapp/__init__.py
jvanasco/pyramid_route_7
893aa31cb221714e57ccee6f5e61977fddfd230f
[ "MIT" ]
null
null
null
tests/r7testapp/__init__.py
jvanasco/pyramid_route_7
893aa31cb221714e57ccee6f5e61977fddfd230f
[ "MIT" ]
null
null
null
from pyramid.config import Configurator def main(global_config, **settings): """This function returns a Pyramid WSGI application.""" config = Configurator(settings=settings) config.add_static_view("static", "static", cache_max_age=3600) config.add_route("home", "/") config.include("pyramid_route_...
37.4
83
0.676471
6203e614ada499ac7144ed359a4f4285deab870d
1,799
py
Python
scripts/practice/FB-reRun/MaximumSumof3Non-OverlappingSubarrays.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/practice/FB-reRun/MaximumSumof3Non-OverlappingSubarrays.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/practice/FB-reRun/MaximumSumof3Non-OverlappingSubarrays.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" Maximum Sum of 3 Non-Overlapping Subarrays Given an integer array nums and an integer k, find three non-overlapping subarrays of length k with maximum sum and return them. Return the result as a list of indices representing the starting position of each interval (0-indexed). If there are multiple answers, retu...
29.983333
104
0.611451
6203eb2facfdb99531ffa4acb81146fca5f05ba8
553
py
Python
tests/plugins/loading/plugins/sources/deprecated/deprecated.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/plugins/loading/plugins/sources/deprecated/deprecated.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/plugins/loading/plugins/sources/deprecated/deprecated.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
from buildstream import Source class Deprecated(Source): BST_MIN_VERSION = "2.0" BST_PLUGIN_DEPRECATED = True BST_PLUGIN_DEPRECATION_MESSAGE = "Here is some detail." def configure(self, node): pass def preflight(self): pass def get_unique_key(self): return {} de...
15.8
59
0.618445
6203ee204f9d88ba481107ffd7b597dc91c2e9b8
2,041
py
Python
awswrangler/sts.py
weishao-aws/aws-data-wrangler
5029d197a2ce8c7d80077ee8d5419c956cecf967
[ "Apache-2.0" ]
null
null
null
awswrangler/sts.py
weishao-aws/aws-data-wrangler
5029d197a2ce8c7d80077ee8d5419c956cecf967
[ "Apache-2.0" ]
null
null
null
awswrangler/sts.py
weishao-aws/aws-data-wrangler
5029d197a2ce8c7d80077ee8d5419c956cecf967
[ "Apache-2.0" ]
1
2021-07-06T18:37:00.000Z
2021-07-06T18:37:00.000Z
"""STS module.""" import logging from typing import Optional, cast import boto3 # type: ignore from awswrangler import _utils _logger: logging.Logger = logging.getLogger(__name__) def get_account_id(boto3_session: Optional[boto3.Session] = None) -> str: """Get Account ID. Parameters ---------- b...
25.197531
109
0.656051
620437bf516bb632e9e9c18f2658d395eb53e850
1,039
py
Python
blogpost/urls.py
Haizza1/.blog
f2f21816be28d9ae82e1f35eadcbf2f6d2b381bf
[ "MIT" ]
1
2021-01-11T00:39:53.000Z
2021-01-11T00:39:53.000Z
blogpost/urls.py
Haizza1/.blog
f2f21816be28d9ae82e1f35eadcbf2f6d2b381bf
[ "MIT" ]
null
null
null
blogpost/urls.py
Haizza1/.blog
f2f21816be28d9ae82e1f35eadcbf2f6d2b381bf
[ "MIT" ]
null
null
null
"""blogpost URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
39.961538
77
0.712223
620467ef6ac3639c4a41d6b8aa1df9ee1a02f7c7
2,256
py
Python
kaggledatasets/structured/european_soccer_database.py
kaggledatasets/kaggledatasets
685d16590667443546f7ad2c31dfac8ad6be6ca2
[ "Apache-2.0" ]
48
2019-11-23T17:39:42.000Z
2022-02-11T16:38:12.000Z
kaggledatasets/structured/european_soccer_database.py
kaggledatasets/kaggledatasets
685d16590667443546f7ad2c31dfac8ad6be6ca2
[ "Apache-2.0" ]
5
2019-11-30T14:20:18.000Z
2019-12-10T12:07:54.000Z
kaggledatasets/structured/european_soccer_database.py
kaggledatasets/kaggledatasets
685d16590667443546f7ad2c31dfac8ad6be6ca2
[ "Apache-2.0" ]
6
2019-11-30T15:44:43.000Z
2022-02-11T16:38:14.000Z
# Copyright 2019 Omkar Prabhu # # 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,...
28.923077
90
0.66445
62047e2a3d0987388e421131fe80ad5418ce8a50
11,376
py
Python
services/traction/acapy_client/model/register_ledger_nym_response.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_client/model/register_ledger_nym_response.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_client/model/register_ledger_nym_response.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
""" Aries Cloud Agent No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v0.7.2 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from acapy_cli...
41.97786
124
0.563203
62049e44b04781a57300bf193d69320d7b197297
2,096
py
Python
python/irispy/ldp_gurobi.py
RussTedrake/iris-distro
659b1c9978348c7b8012f89c26308f3b6f5a6a07
[ "BSD-2-Clause" ]
5
2016-02-09T04:47:47.000Z
2021-09-29T02:07:57.000Z
python/irispy/ldp_gurobi.py
RussTedrake/iris-distro
659b1c9978348c7b8012f89c26308f3b6f5a6a07
[ "BSD-2-Clause" ]
null
null
null
python/irispy/ldp_gurobi.py
RussTedrake/iris-distro
659b1c9978348c7b8012f89c26308f3b6f5a6a07
[ "BSD-2-Clause" ]
null
null
null
import gurobipy import numpy as np grb_model = gurobipy.Model("ldp") grb_model.setParam('OutputFlag', False) def ldp(ys): """ Use gurobi to compute the point in the convex hull of the points in [ys] which is closest to the origin. @input ys: an array of size [dimension x number of points] @returns ...
38.109091
293
0.67271
6204aad61f70ae491893d1887f5788d74954d60d
19,274
py
Python
kmip/tests/unit/core/messages/payloads/test_cancel.py
csapuntz/PyKMIP
4b1373b5f2e9e37220b9c3bed21d70f300a2860b
[ "Apache-2.0" ]
null
null
null
kmip/tests/unit/core/messages/payloads/test_cancel.py
csapuntz/PyKMIP
4b1373b5f2e9e37220b9c3bed21d70f300a2860b
[ "Apache-2.0" ]
null
null
null
kmip/tests/unit/core/messages/payloads/test_cancel.py
csapuntz/PyKMIP
4b1373b5f2e9e37220b9c3bed21d70f300a2860b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 The Johns Hopkins University/Applied Physics Laboratory # 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/LICEN...
32.612521
79
0.631888
6204aeb71c4a5f7aead6faaa2488a39189ec926b
3,497
py
Python
telegramBot/apis/detect.py
RaulMurillo/turisteo
c26240c57d1bf184917e160cdeb9b98058ad68b6
[ "Apache-2.0" ]
2
2020-03-07T21:31:47.000Z
2021-09-08T07:17:32.000Z
telegramBot/apis/detect.py
RaulMurillo/turisteo
c26240c57d1bf184917e160cdeb9b98058ad68b6
[ "Apache-2.0" ]
null
null
null
telegramBot/apis/detect.py
RaulMurillo/turisteo
c26240c57d1bf184917e160cdeb9b98058ad68b6
[ "Apache-2.0" ]
1
2020-05-04T07:56:57.000Z
2020-05-04T07:56:57.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # 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...
30.408696
78
0.693737
6204becb69e836ad9b85d0bc6e59d58a7e3ed8cd
1,154
py
Python
krbsite/filedb_router.py
danielchriscarter/part2-django
d4adffa3280431151bb8d1c51f0be2dbffff9dd1
[ "BSD-2-Clause" ]
null
null
null
krbsite/filedb_router.py
danielchriscarter/part2-django
d4adffa3280431151bb8d1c51f0be2dbffff9dd1
[ "BSD-2-Clause" ]
null
null
null
krbsite/filedb_router.py
danielchriscarter/part2-django
d4adffa3280431151bb8d1c51f0be2dbffff9dd1
[ "BSD-2-Clause" ]
null
null
null
from django.conf import settings class FileDBRouter: APP_LABEL = 'files' DATA_DB = settings.DELEG_DATABASE DEFAULT_DB = 'default' def db_for_read(self, model, **hints): """ File access goes to 'data' database, otherwise default """ if model._meta.app_label == self.APP_...
32.055556
101
0.618718
6204d920ca96cedd3a718d3376ef06948623aa41
89,207
py
Python
atlas/prestage/views.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
null
null
null
atlas/prestage/views.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
15
2015-01-06T13:41:52.000Z
2022-03-30T10:37:25.000Z
atlas/prestage/views.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
1
2017-07-20T08:01:24.000Z
2017-07-20T08:01:24.000Z
import json import random from copy import deepcopy from django.db.models import Q from atlas.cric.client import CRICClient from atlas.prodtask.models import ActionStaging, ActionDefault, DatasetStaging, StepAction, TTask, JediTasks, HashTag from datetime import timedelta from atlas.prodtask.ddm_api import DDM from ...
49.204082
182
0.596298
62050a27cfa499febacba2e62f67114b5d5356ca
4,771
py
Python
RemoteIocServer/gateway.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
null
null
null
RemoteIocServer/gateway.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
null
null
null
RemoteIocServer/gateway.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, unicode_literals, division, absolute_import import os import sys import subprocess import textwrap import threading import traceback import six sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))) from RemoteIocServer.utilities import print_an...
39.106557
121
0.629009
620512dcdb0099a79c57f42e8e7e4e8b030672a1
4,009
py
Python
alipay/aop/api/request/AlipayMerchantShopcodeCategoryQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayMerchantShopcodeCategoryQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayMerchantShopcodeCategoryQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayMerchantShopcodeCategoryQueryModel import AlipayMerchantShopcodeCategoryQueryModel class AlipayMerchantShopcodeCategoryQueryRe...
27.648276
148
0.648042
62051d6f9e66c3327f02c8ee80c3969df716c271
2,714
py
Python
tensorbay/opendataset/COVID_CT/loader.py
Hoteryoung/tensorbay-python-sdk
53c34dd529c20ec69b34ddd348b5c8e74f4094d0
[ "MIT" ]
null
null
null
tensorbay/opendataset/COVID_CT/loader.py
Hoteryoung/tensorbay-python-sdk
53c34dd529c20ec69b34ddd348b5c8e74f4094d0
[ "MIT" ]
null
null
null
tensorbay/opendataset/COVID_CT/loader.py
Hoteryoung/tensorbay-python-sdk
53c34dd529c20ec69b34ddd348b5c8e74f4094d0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # # pylint: disable=invalid-name # pylint: disable=missing-module-docstring import os from ...dataset import Data, Dataset from ...label import Classification DATASET_NAME = "COVID_CT" _SEGMENT_TO_PATH = { "test_COVID": ("testCT_COVID...
33.506173
88
0.56927
6205231c7e3c15bcce5513cfcf06ca4ae6c295ea
26,597
py
Python
oscar/lib/python2.7/site-packages/traitlets/config/application.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/traitlets/config/application.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/traitlets/config/application.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 """A base class for a configurable application.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from __future__ import print_function from copy import deepcopy import json import logging import os import re import sys from collec...
37.672805
192
0.586269
620526d5a0b873aabc2f065cc13054ee69a23337
10,201
py
Python
amr_parser/work.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
9
2021-07-12T22:05:47.000Z
2022-02-22T03:10:14.000Z
amr_parser/work.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
4
2021-08-31T08:28:37.000Z
2022-03-28T05:52:14.000Z
amr_parser/work.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
null
null
null
import torch import os from elit.components.amr.amr_parser.data import REL from elit.datasets.parsing.amr import unlinearize, remove_unconnected_components, un_kahn from elit.transform.transformer_tokenizer import TransformerSequenceTokenizer if os.environ.get('USE_TF', None) is None: os.environ["USE_TF"] = 'NO' ...
42.682008
122
0.602098
62056cebba40f32a31d0b037fe12aedf41f9d19b
5,336
py
Python
tests/test_all.py
TheNCuber/mensa
f77781762e930857f472ba14c8358fc68bf1c58f
[ "MIT" ]
3
2021-12-16T21:44:52.000Z
2022-02-25T10:19:21.000Z
tests/test_all.py
TheNCuber/mensa
f77781762e930857f472ba14c8358fc68bf1c58f
[ "MIT" ]
null
null
null
tests/test_all.py
TheNCuber/mensa
f77781762e930857f472ba14c8358fc68bf1c58f
[ "MIT" ]
null
null
null
import sys import os import logging import lxml.etree import defusedxml.lxml import urllib.request include = os.path.relpath(os.path.join(os.path.dirname(__file__), '..')) sys.path.insert(0, include) isPyIdle = "idlelib" in sys.modules endVT = "" if isPyIdle else "\033[0m" yellowVT = "" if isPyIdle else "\033[1;33m" ...
28.843243
88
0.586019
620573240c9532e9332e3d5404f9dade7c4ff1d7
2,160
py
Python
code/Main.py
uorocketry/Cistern
1f6f8c9319b4e9cddf207be95064153f7deebadc
[ "MIT" ]
1
2022-03-25T04:03:54.000Z
2022-03-25T04:03:54.000Z
code/Main.py
uorocketry/Cistern
1f6f8c9319b4e9cddf207be95064153f7deebadc
[ "MIT" ]
1
2019-10-03T01:14:01.000Z
2019-10-03T01:31:07.000Z
code/Main.py
uorocketry/Cistern
1f6f8c9319b4e9cddf207be95064153f7deebadc
[ "MIT" ]
1
2022-03-25T04:03:55.000Z
2022-03-25T04:03:55.000Z
import serial import serial.tools.list_ports import keyboard import time import configparser import threading import queue import spidev from sensors.Thermo_MAX31855 import Thermo from sensors.dataq import dataq import Format spi = spidev.SpiDev() spi.open(0,0) spi.mode = 0 spi.max_speed_hz = 500000...
21.176471
89
0.583333
620573483ca6c3146b6cbd72208c3b2c943e5ce8
1,042
py
Python
src/gedml/core/losses/proxy_based_loss/proxy_loss.py
wangck20/GeDML
1f76ac2094d7b88be7fd4eb6145e5586e547b9ca
[ "MIT" ]
25
2021-09-06T13:26:02.000Z
2022-01-06T13:25:24.000Z
src/gedml/core/losses/proxy_based_loss/proxy_loss.py
wangck20/GeDML
1f76ac2094d7b88be7fd4eb6145e5586e547b9ca
[ "MIT" ]
1
2021-09-09T08:29:29.000Z
2021-09-13T15:05:59.000Z
src/gedml/core/losses/proxy_based_loss/proxy_loss.py
wangck20/GeDML
1f76ac2094d7b88be7fd4eb6145e5586e547b9ca
[ "MIT" ]
2
2021-09-07T08:44:41.000Z
2021-09-09T08:31:55.000Z
import torch from ..base_loss import BaseLoss class ProxyLoss(BaseLoss): """ paper: `No Fuss Distance Metric Learning Using Proxies <https://openaccess.thecvf.com/content_iccv_2017/html/Movshovitz-Attias_No_Fuss_Distance_ICCV_2017_paper.html>`_ """ def __init__( self, gamma, **k...
27.421053
171
0.578695
620584b2e7a74b0e16ec61205e90166443e32022
3,192
py
Python
code/part_b/db5_ninapro/inceptionv3db5_test_partb2.py
DSIP-UPatras/sEMG-based-gesture-recognition-mgeorgoula
a5f8f234aebad671b38296730f46f0b637fadc64
[ "MIT" ]
3
2019-08-22T11:24:09.000Z
2020-06-09T07:16:45.000Z
code/part_b/db5_ninapro/inceptionv3db5_test_partb2.py
DSIP-UPatras/sEMG-based-gesture-recognition-mgeorgoula
a5f8f234aebad671b38296730f46f0b637fadc64
[ "MIT" ]
1
2019-08-24T06:25:24.000Z
2019-08-24T06:25:24.000Z
code/part_b/db5_ninapro/inceptionv3db5_test_partb2.py
DSIP-UPatras/sEMG-based-gesture-recognition-mgeorgoula
a5f8f234aebad671b38296730f46f0b637fadc64
[ "MIT" ]
1
2020-05-25T02:21:35.000Z
2020-05-25T02:21:35.000Z
"""Make prediction and compute confusion matrix for modified input data""" """PART B2 : Input random noise to column of emg data""" import numpy as np import tensorflow as tf import random import os os.environ['PYTHONHASHSEED'] = '0' # The below is necessary for starting Numpy generated random numb...
27.282051
93
0.719612
620587761126be090ddfc68c55978564d3674aba
16,442
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_fingerprint.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/lib/adafruit_fingerprint.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/lib/adafruit_fingerprint.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2017 ladyada for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_fingerprint` ==================================================== This library will let you use an Adafruit Fingerprint sensor on any UART to get, store, retreive and query fingerprints! Great for adding bio-...
35.665944
94
0.604124
6205a8c15f85a4915e3752f0b2b2865dd1fb7212
15,247
py
Python
integration_tests/src/main/python/ast_test.py
NVnavkumar/spark-rapids
ed7de6e27fc82dff06eea3fda9db30dd37635103
[ "Apache-2.0" ]
null
null
null
integration_tests/src/main/python/ast_test.py
NVnavkumar/spark-rapids
ed7de6e27fc82dff06eea3fda9db30dd37635103
[ "Apache-2.0" ]
null
null
null
integration_tests/src/main/python/ast_test.py
NVnavkumar/spark-rapids
ed7de6e27fc82dff06eea3fda9db30dd37635103
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021-2022, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
40.658667
149
0.704926
6205d4f9a7ca4c0467d9f63ac7e670c01bd0ea3a
1,246
py
Python
name/serializers.py
lcbiplove/nepfdb
56e48bb0dcae34d409b7d75d210d2938e763a953
[ "MIT" ]
null
null
null
name/serializers.py
lcbiplove/nepfdb
56e48bb0dcae34d409b7d75d210d2938e763a953
[ "MIT" ]
null
null
null
name/serializers.py
lcbiplove/nepfdb
56e48bb0dcae34d409b7d75d210d2938e763a953
[ "MIT" ]
null
null
null
from rest_framework import serializers from core import models class PersonSerializer(serializers.ModelSerializer): awards = serializers.SerializerMethodField(read_only=True) photos = serializers.SerializerMethodField(read_only=True) class Meta: model = models.Person fields = "__all__" ...
25.958333
62
0.626806
6205d9b19c2057774f4958a666bfe9032cffacc3
6,850
py
Python
xos/services/mcordservice/admin.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/services/mcordservice/admin.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/services/mcordservice/admin.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
from core.admin import ReadOnlyAwareAdmin, SliceInline from core.middleware import get_request from core.models import User from django import forms from django.contrib import admin from services.mcordservice.models import MCORDService, MCORDServiceComponent, MCORD_KIND # The class to provide an admin interface on th...
48.239437
101
0.688467
6205e1b1c9228e8c46e5f6d8df05c17f19236619
2,345
py
Python
py/axonchisel/metrics/io/erout/plugins/ero_geckoboard/base.py
axonchisel/ax_metrics
a2db75c9ef9a9752997ccb112e8db68c1c8584a0
[ "MIT" ]
10
2016-08-26T18:57:28.000Z
2021-09-19T19:21:16.000Z
py/axonchisel/metrics/io/erout/plugins/ero_geckoboard/base.py
axonchisel/ax_metrics
a2db75c9ef9a9752997ccb112e8db68c1c8584a0
[ "MIT" ]
1
2015-01-08T19:54:54.000Z
2015-01-09T01:24:17.000Z
py/axonchisel/metrics/io/erout/plugins/ero_geckoboard/base.py
axonchisel/ax_metrics
a2db75c9ef9a9752997ccb112e8db68c1c8584a0
[ "MIT" ]
3
2015-01-08T23:32:58.000Z
2016-09-23T02:38:26.000Z
""" Ax_Metrics - EROut geckoboard base plugin Superclass for Geckoboard JSON output for various charts for use with http://www.geckoboard.com. ------------------------------------------------------------------------------ Author: Dan Kamins <dos at axonchisel dot net> Copyright (c) 2014 Dan Kamins, AxonChisel.net """...
26.647727
78
0.566738
6205e75ce7e8fb34e42ad368126db353041b9808
877
py
Python
backend/simulation/views.py
kodalli/Covid19-Interactive-Simulation
d078e9c9380fd87e4f242e0b00dbfa50df6acd93
[ "MIT" ]
null
null
null
backend/simulation/views.py
kodalli/Covid19-Interactive-Simulation
d078e9c9380fd87e4f242e0b00dbfa50df6acd93
[ "MIT" ]
null
null
null
backend/simulation/views.py
kodalli/Covid19-Interactive-Simulation
d078e9c9380fd87e4f242e0b00dbfa50df6acd93
[ "MIT" ]
null
null
null
# from django.shortcuts import render # from django.http import JsonResponse from rest_framework.viewsets import ModelViewSet from .models import SimData from .serializers import SimSerializer class SimViewSet(ModelViewSet): queryset = SimData.objects.all() serializer_class = SimSerializer # def index(reque...
31.321429
70
0.655644
6205f58d7af244a724f29ba3354fd962ce8909c5
1,955
py
Python
pytest/functional/hs_core/test_citations.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
pytest/functional/hs_core/test_citations.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
pytest/functional/hs_core/test_citations.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
import pytest from django.test import Client @pytest.mark.django_db def test_citation_create(sample_user, resource_for_citation): """ Citation CRUD """ client = Client(enforce_csrf_checks=False) client.force_login(sample_user) # See metadata_element_pre_update_handler for assignment of POST da...
57.5
114
0.641944
6206131744e44fc26a50a0ad47919bd72ca0d534
1,469
py
Python
oscar/lib/python2.7/site-packages/django/conf/locale/pt_BR/formats.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/conf/locale/pt_BR/formats.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/conf/locale/pt_BR/formats.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # from __future__ import unicode_literals # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = r'j \d\e F \d\e Y' TIME_FO...
39.702703
91
0.564329
62063722d5aeb96486e295d6deda71b22ec8029f
581
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_KN.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_KN.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_KN.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. KN metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_KN = PhoneMetadata(id='KN', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='[39]\\d{2}', possible_length=(3,)),...
64.555556
118
0.757315
620642d549b19fad51d214bada3c2e7c41e0a9f3
6,086
py
Python
sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/aio/operations/_source_control_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/aio/operations/_source_control_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/aio/operations/_source_control_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 ...
46.106061
247
0.665955
6206490d4cdc22ea1a9b8ae4c8265ce836226712
11,063
py
Python
algorithms/arrays/matrix_in_spiral_form/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
algorithms/arrays/matrix_in_spiral_form/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
algorithms/arrays/matrix_in_spiral_form/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
from itertools import cycle from typing import List def make_a_spiral(size: int) -> List[List[int]]: def collision_in_two_steps() -> bool: step_inside_bounds = y + change_y * 2 in range(size) and x + change_x * 2 in range(size) return step_inside_bounds and spiral[y + change_y * 2][x + change_x * ...
41.905303
120
0.668173
6206627011c71cc4ed16c6ce92dc3b0da9209215
6,969
py
Python
pypeit/spectrographs/tng_dolores.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
107
2018-08-06T07:07:20.000Z
2022-02-28T14:33:42.000Z
pypeit/spectrographs/tng_dolores.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
889
2018-07-26T12:14:33.000Z
2022-03-18T22:49:42.000Z
pypeit/spectrographs/tng_dolores.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
74
2018-09-25T17:03:07.000Z
2022-03-10T23:59:24.000Z
""" Module for TNG/Dolores .. include:: ../include/links.rst """ import numpy as np from astropy.time import Time from pypeit import msgs from pypeit import telescopes from pypeit.core import framematch from pypeit.spectrographs import spectrograph from pypeit.images import detector_container class TNGDoloresSpec...
37.069149
97
0.554025
62066dfe4012d446c2a3a91fa44f6e73226a9802
2,070
py
Python
leo/plugins/importers/ini.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/importers/ini.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/importers/ini.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
#@+leo-ver=5-thin #@+node:ekr.20140723122936.18142: * @file importers/ini.py '''The @auto importer for .ini files.''' import re import leo.core.leoGlobals as g import leo.plugins.importers.linescanner as linescanner Importer = linescanner.Importer #@+others #@+node:ekr.20140723122936.18043: ** class Ini_Importer class ...
31.363636
77
0.594686
62067f69681b0c89968456a94de7ada88382ca63
423
py
Python
fact/looping03.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
1
2022-01-14T20:47:47.000Z
2022-01-14T20:47:47.000Z
fact/looping03.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
fact/looping03.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Alta3 Research | RZFeeser For - Looping across range() to generate n UUIDs""" # standard library import # allows us to generate UUIDs import uuid howmany = int(input("How many UUIDs should be generated? ")) print("Generating UUIDs...") # range is required because an int cannot be looped...
24.882353
71
0.716312
620690da1f145b5b2420aa8da8460ba8aab12a29
9,636
py
Python
google-cloud-sdk/platform/gsutil/gslib/commands/notification.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/platform/gsutil/gslib/commands/notification.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/platform/gsutil/gslib/commands/notification.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# -*- coding: utf-8 -*- # Copyright 2013 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 require...
36.638783
113
0.732669
6206969bee2cea8f280ef244dabbbbe2a42cf677
4,260
py
Python
tests/h/presenters/annotation_base_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
tests/h/presenters/annotation_base_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
tests/h/presenters/annotation_base_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime from unittest import mock from h.presenters.annotation_base import AnnotationBasePresenter from h.presenters.annotation_base import utc_iso8601 class TestAnnotationBasePresenter: def test_constructor_args(self): annotation ...
31.094891
86
0.660798
6206b20d9cbeaf105d51220694005733467c6750
552
py
Python
utlis/timecounter.py
soongxin/lint
2ca5c2d53500a585f839bd4a492ba0c5cf20fd91
[ "MIT" ]
null
null
null
utlis/timecounter.py
soongxin/lint
2ca5c2d53500a585f839bd4a492ba0c5cf20fd91
[ "MIT" ]
null
null
null
utlis/timecounter.py
soongxin/lint
2ca5c2d53500a585f839bd4a492ba0c5cf20fd91
[ "MIT" ]
1
2018-06-25T05:05:20.000Z
2018-06-25T05:05:20.000Z
from time import time, clock, perf_counter def timecounter(f): def wrapper(*args, **kwargs): start_time = time() result = f(*args, **kwargs) time_used = time() - start_time print("time用时 %.4f s" % time_used) return result return wrapper def clockCounter(f): def wr...
23
47
0.592391
6207203f19628597b65472d4ff64dede944e37c1
12,568
py
Python
ShapNet/vision.py
inouye-lab/ShapleyExplanationNetworks
cab6644677894f0ac88610d2f9cfca239068f403
[ "MIT" ]
39
2021-03-08T23:22:43.000Z
2022-02-10T06:43:59.000Z
ShapNet/vision.py
inouye-lab/ShapleyExplanationNetworks
cab6644677894f0ac88610d2f9cfca239068f403
[ "MIT" ]
3
2021-03-09T03:15:31.000Z
2021-08-18T11:37:46.000Z
ShapNet/vision.py
inouye-lab/ShapleyExplanationNetworks
cab6644677894f0ac88610d2f9cfca239068f403
[ "MIT" ]
8
2021-04-16T07:37:16.000Z
2022-01-09T10:00:58.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ============================================================================= # Created By : Rui Wang # ============================================================================= """ This module contains the construction of ShapNets as described in the paper with oth...
33.16095
81
0.564609
62072296f2febd1b6910150a53e67ab6a4d189f1
1,584
py
Python
python/phonenumbers/data/region_TN.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
2
2019-03-30T02:12:54.000Z
2021-03-08T18:59:40.000Z
python/phonenumbers/data/region_TN.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/data/region_TN.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
1
2018-11-10T03:47:34.000Z
2018-11-10T03:47:34.000Z
"""Auto-generated file, do not edit by hand. TN metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_TN = PhoneMetadata(id='TN', country_code=216, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[2-57-9]\\d{7}', possible_number_pattern...
88
144
0.766414
620724c947acd02d9657c474a3270ac7ab3c373c
406
py
Python
test_plots/test_plot_w_tooltips.py
silky/mpld3
12151b57d8f245c3538f3c19e34d71caf8e65a59
[ "BSD-3-Clause" ]
1
2019-06-27T11:33:38.000Z
2019-06-27T11:33:38.000Z
test_plots/test_plot_w_tooltips.py
silky/mpld3
12151b57d8f245c3538f3c19e34d71caf8e65a59
[ "BSD-3-Clause" ]
null
null
null
test_plots/test_plot_w_tooltips.py
silky/mpld3
12151b57d8f245c3538f3c19e34d71caf8e65a59
[ "BSD-3-Clause" ]
null
null
null
"""Plot to test line styles""" import matplotlib.pyplot as plt import numpy as np from mpld3 import plugins def main(): fig, ax = plt.subplots() points = ax.plot(range(10), 'o', ms=20) plugins.connect(fig, plugins.PointLabelTooltip(points[0], location="top...
22.555556
72
0.578818
620735401d23a3e553087c728dee1b1b579e9075
2,037
py
Python
email_auth/authentication.py
cdriehuys/django-simple-email-auth
3ea1e227d7faa61692aeefe40b24c6696ea04f75
[ "MIT" ]
1
2020-06-05T23:29:24.000Z
2020-06-05T23:29:24.000Z
email_auth/authentication.py
cdriehuys/django-simple-email-auth
3ea1e227d7faa61692aeefe40b24c6696ea04f75
[ "MIT" ]
40
2019-08-30T23:08:10.000Z
2019-12-08T13:58:19.000Z
email_auth/authentication.py
cdriehuys/django-simple-email-auth
3ea1e227d7faa61692aeefe40b24c6696ea04f75
[ "MIT" ]
null
null
null
import logging from django.contrib.auth import get_user_model from email_auth import models logger = logging.getLogger(__name__) class VerifiedEmailBackend: """ Authentication backend that allows users to authenticate with any email address they have verified ownership of. """ def authenticat...
28.291667
78
0.575356
620766d309cecc732a0fc754075e78cf2096d489
8,639
py
Python
test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.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 ...
46.951087
129
0.71374
62078498c22b21779c694478f46f240cd8d4e096
4,486
py
Python
arjuna/core/types/named_strings.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna/core/types/named_strings.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna/core/types/named_strings.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
# This file is a part of Arjuna # Copyright 2015-2020 Rahul Verma # Website: www.RahulVerma.net # 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...
28.573248
103
0.67811
62079419b86d1dcfdfd6e2eb326b8920e467afd6
7,165
py
Python
twinotter/plots/interactive_flight_track.py
leifdenby/twin-otter
05d66304d03b27cbd0ac8d4add83d3b67518daa3
[ "MIT" ]
1
2021-09-16T16:50:47.000Z
2021-09-16T16:50:47.000Z
twinotter/plots/interactive_flight_track.py
leifdenby/twin-otter
05d66304d03b27cbd0ac8d4add83d3b67518daa3
[ "MIT" ]
6
2020-03-02T12:41:27.000Z
2020-09-02T09:15:44.000Z
twinotter/plots/interactive_flight_track.py
leifdenby/twin-otter
05d66304d03b27cbd0ac8d4add83d3b67518daa3
[ "MIT" ]
2
2020-06-11T15:20:07.000Z
2021-03-19T10:38:44.000Z
"""Interactive flight track plot Plot a variable of interest and the flight track then click on either figure to mark the corresponding points on both figures. .. code-block:: console $ python -m twinotter.plots.interactive_flight_track /path/to/data """ import datetime import tkinter from tkinter import filedi...
31.70354
88
0.642987
62083187fd43f833af750de6edf16910f5bd3de4
12,295
py
Python
grid_search.py
James-chen-ha/python
193d68a2919cdd8324b3982d670eae1c0f145dd1
[ "MIT" ]
null
null
null
grid_search.py
James-chen-ha/python
193d68a2919cdd8324b3982d670eae1c0f145dd1
[ "MIT" ]
null
null
null
grid_search.py
James-chen-ha/python
193d68a2919cdd8324b3982d670eae1c0f145dd1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Mar 17 12:53:56 2020 @author: Lab408 """ #123 #########################KFOLD_Lightgbm####################################### import pandas as pd import numpy as np import matplotlib.pyplot as plt import lightgbm as lgb from sklearn.preprocessing import LabelEncoder from sklea...
40.847176
149
0.659048
62083d0e1070b77b26d2006d7d5544701bd4b9ab
2,332
py
Python
src/flower/grpc_client/message_handler.py
sishtiaq/flower
e8d57941863dcd193d2c0f4989f3ece5136ce027
[ "Apache-2.0" ]
null
null
null
src/flower/grpc_client/message_handler.py
sishtiaq/flower
e8d57941863dcd193d2c0f4989f3ece5136ce027
[ "Apache-2.0" ]
null
null
null
src/flower/grpc_client/message_handler.py
sishtiaq/flower
e8d57941863dcd193d2c0f4989f3ece5136ce027
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Adap GmbH. 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...
40.206897
85
0.741852
620866ac87f93792d3a7e0720bb92e59d1e2ada8
1,612
py
Python
python/akg/ops/math/__init__.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
python/akg/ops/math/__init__.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
python/akg/ops/math/__init__.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 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 agreed to...
31.607843
74
0.799628
62088a723e14b2cd150ee8ae4e6f2cef08832426
107
py
Python
django_urlconverter/__init__.py
paylogic/django-urlconverter
c1f1dd406b64812988e75e1fb9976721ba51a358
[ "MIT" ]
null
null
null
django_urlconverter/__init__.py
paylogic/django-urlconverter
c1f1dd406b64812988e75e1fb9976721ba51a358
[ "MIT" ]
null
null
null
django_urlconverter/__init__.py
paylogic/django-urlconverter
c1f1dd406b64812988e75e1fb9976721ba51a358
[ "MIT" ]
null
null
null
from django_urlconverter.urls import converted_arguments_url __all__ = [converted_arguments_url.__name__]
26.75
60
0.878505
6208a463bad446d743c37471d2c563dff3232df9
14,620
py
Python
kmip/core/messages/payloads/decrypt.py
csapuntz/PyKMIP
4b1373b5f2e9e37220b9c3bed21d70f300a2860b
[ "Apache-2.0" ]
12
2016-09-14T21:59:10.000Z
2020-03-11T07:37:25.000Z
kmip/core/messages/payloads/decrypt.py
csapuntz/PyKMIP
4b1373b5f2e9e37220b9c3bed21d70f300a2860b
[ "Apache-2.0" ]
1
2021-06-25T15:43:48.000Z
2021-06-25T15:43:48.000Z
kmip/core/messages/payloads/decrypt.py
csapuntz/PyKMIP
4b1373b5f2e9e37220b9c3bed21d70f300a2860b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 The Johns Hopkins University/Applied Physics Laboratory # 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/LICEN...
33.921114
78
0.611833
6208b79f66a2d62b102650b69649eaeff18c345f
3,567
py
Python
analysis/lda-analysis.py
RePierre/metis
cc9deae680ff0f39c787af5395e4131f6369d7ee
[ "Apache-2.0" ]
null
null
null
analysis/lda-analysis.py
RePierre/metis
cc9deae680ff0f39c787af5395e4131f6369d7ee
[ "Apache-2.0" ]
8
2017-10-05T11:00:16.000Z
2017-11-13T22:37:30.000Z
analysis/lda-analysis.py
RePierre/metis
cc9deae680ff0f39c787af5395e4131f6369d7ee
[ "Apache-2.0" ]
null
null
null
import json import os import sys import logging from argparse import ArgumentParser from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer from sklearn.decomposition import LatentDirichletAllocation logger = logging.getLogger('metis.lda-analysis') file_log_handler = logging.FileHandler('logfile....
35.316832
85
0.595178
6208c100e5ebd326e0b074d69ccf2e26fbf99225
5,153
py
Python
cadnano/gui/palette.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2022-03-27T14:37:32.000Z
2022-03-27T14:37:32.000Z
cadnano/gui/palette.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
null
null
null
cadnano/gui/palette.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2021-01-22T02:29:38.000Z
2021-01-22T02:29:38.000Z
""" Module for caching `QColor <http://doc.qt.io/qt-5/qcolor.html>`_, `QPen <http://doc.qt.io/qt-5/qpen.html>`_, and `QBrush <http://doc.qt.io/qt-5/qbrush.html>`_ objects. Could be extended to cache `QFont <http://doc.qt.io/qt-5/qfont.html>`_ objects as well. """ from PyQt5.QtGui import QColor, QPen, QBrush from PyQt5...
28.469613
102
0.62779
6208c1333e3fd10ab454f6044519d1cea1019a58
686
py
Python
bruges/filters/kernels.py
hyperiongeo/bruges
6d9a3aae86aaa53107caaa20e9aafa390358b0f8
[ "Apache-2.0" ]
209
2015-07-16T18:23:42.000Z
2022-02-27T02:59:46.000Z
bruges/filters/kernels.py
hyperiongeo/bruges
6d9a3aae86aaa53107caaa20e9aafa390358b0f8
[ "Apache-2.0" ]
74
2015-07-12T16:12:01.000Z
2022-02-22T14:27:26.000Z
bruges/filters/kernels.py
agilescientific/bruges
a94ec307bac5e343680c63b315d43ef8b05ee4a1
[ "Apache-2.0" ]
112
2015-08-07T14:12:11.000Z
2022-02-10T14:12:50.000Z
""" 2D kernels for image processing. :copyright: 2015 Agile Geoscience :license: Apache 2.0 """ import numpy as np def gaussian(size, size_y=None): """ 2D Gaussian Kernel Args: size (int): the kernel size, e.g. 5 for 5x5 (in a 2D arr). Should be odd, rounded up if not. size_y...
21.4375
78
0.600583
6208c5907a84445a1c85d2d90c65bad8ac55a69b
371
py
Python
trello/db/models/value.py
mikerourke/api-parser
b5a825b32d8d9ddea8314319d722ad39e303710d
[ "MIT" ]
1
2021-06-06T08:18:41.000Z
2021-06-06T08:18:41.000Z
trello/db/models/value.py
mikerourke/api-parser
b5a825b32d8d9ddea8314319d722ad39e303710d
[ "MIT" ]
null
null
null
trello/db/models/value.py
mikerourke/api-parser
b5a825b32d8d9ddea8314319d722ad39e303710d
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Boolean, Integer, String, ForeignKey from trello.db.models.base import Base class Value(Base): __tablename__ = 'values' id = Column(Integer, primary_key=True, autoincrement=True) param_id = Column(Integer, ForeignKey('params.id')) entity_id = Column(Integer) value ...
26.5
67
0.727763
6208e828a440c0817fd688e09a52073113dfbd32
388
bzl
Python
third_party/joda_time.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
third_party/joda_time.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
third_party/joda_time.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
load(":import_external.bzl", import_external = "import_external") def dependencies(): import_external( name = "joda_time_joda_time", artifact = "joda-time:joda-time:2.10.10", artifact_sha256 = "dd8e7c92185a678d1b7b933f31209b6203c8ffa91e9880475a1be0346b9617e3", srcjar_sha256 = "c6149...
38.8
93
0.747423
62090d77b865676acaa4a9f586f7ab807f72e0dc
1,629
py
Python
cogs/info.py
xCloudzx/Bonsai-Discord-Bot
65beb6c1e3df3c01364b9dd64374edbb7b531e97
[ "MIT" ]
3
2020-10-13T04:14:58.000Z
2020-10-13T04:51:27.000Z
cogs/info.py
xCloudzx/Bonsai-Discord-Bot
65beb6c1e3df3c01364b9dd64374edbb7b531e97
[ "MIT" ]
null
null
null
cogs/info.py
xCloudzx/Bonsai-Discord-Bot
65beb6c1e3df3c01364b9dd64374edbb7b531e97
[ "MIT" ]
null
null
null
import discord from discord.ext import commands help_embed = discord.Embed(title="Help - Commands", color=65280)\ .add_field(name="Prefix", value="The default prefix is `b!`. You can change this with the prefix command. You can also call commands by mentioning the bot.")\ .add_field(name="Get Started", value="...
46.542857
169
0.710252
62092611df645f8787ddcb1f38c92e62475a4dee
925
py
Python
mapproxy/test/unit/test_file_lock_load.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/test/unit/test_file_lock_load.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/test/unit/test_file_lock_load.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import tempfile import os import shutil import time import threading import multiprocessing from mapproxy.util.lock import FileLock from nose.tools import eq_ lock_dir = tempfile.mkdtemp() lock_file = os.path.join(lock_dir, 'lock.lck') count_file = os.path.join(lock_dir, 'count.txt') open(count_file, 'w').write('0')...
21.511628
66
0.659459
620945ea851f81fb52167edc69d83b686a9b40d3
2,007
py
Python
examples/plotting/lambda_plots.py
suneelbelkhale/wilds
5da38ca8c3a8ca45ee1e7a8549c89bf5cfca981d
[ "MIT" ]
null
null
null
examples/plotting/lambda_plots.py
suneelbelkhale/wilds
5da38ca8c3a8ca45ee1e7a8549c89bf5cfca981d
[ "MIT" ]
null
null
null
examples/plotting/lambda_plots.py
suneelbelkhale/wilds
5da38ca8c3a8ca45ee1e7a8549c89bf5cfca981d
[ "MIT" ]
null
null
null
# for sweeping lambda import argparse import os import numpy as np import pandas parser = argparse.ArgumentParser() parser.add_argument("--data_folders", type=str, nargs='+') parser.add_argument("--csvs_to_load", type=str, nargs='+') parser.add_argument("--keys", type=str, nargs='+') parser.add_argument("--epoch", t...
29.514706
144
0.662182
620947ce5c7dfba1968a8044b1074cbbc97a02c8
7,770
py
Python
dvc/analytics.py
zjj2wry/dvc
c9df567938eefd7b1f5b094c15f04e5ce704aa36
[ "Apache-2.0" ]
null
null
null
dvc/analytics.py
zjj2wry/dvc
c9df567938eefd7b1f5b094c15f04e5ce704aa36
[ "Apache-2.0" ]
null
null
null
dvc/analytics.py
zjj2wry/dvc
c9df567938eefd7b1f5b094c15f04e5ce704aa36
[ "Apache-2.0" ]
null
null
null
"""Collect and send usage analytics""" import os import json import errno import dvc.logger as logger from dvc import VERSION class Analytics(object): """Class for collecting and sending usage analytics. Args: info (dict): optional existing analytics report. """ URL = 'https://analytics.dvc...
30.116279
79
0.611197
62094f2b4bcfd5465aa98efdd509e0219bb8c03c
2,485
py
Python
igraph/test/separators.py
tuandnvn/ecat_learning
fe797a088baec356e08b2e3cd56c7b73dd37c843
[ "MIT" ]
2
2017-03-07T04:01:59.000Z
2017-05-02T17:19:29.000Z
igraph/test/separators.py
tuandnvn/ecat_learning
fe797a088baec356e08b2e3cd56c7b73dd37c843
[ "MIT" ]
null
null
null
igraph/test/separators.py
tuandnvn/ecat_learning
fe797a088baec356e08b2e3cd56c7b73dd37c843
[ "MIT" ]
null
null
null
import unittest from igraph import * def powerset(iterable): items_powers = [(item, 1 << i) for i, item in enumerate(iterable)] for i in range(1 << len(items_powers)): for item, power in items_powers: if i & power: yield item class IsSeparatorTests(unittest.TestCase): ...
36.544118
75
0.639034
6209513df29a1c9af6ebc629c239d9825287e3b7
2,487
py
Python
2019/12/day12.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
2
2020-12-04T09:45:38.000Z
2020-12-07T14:06:12.000Z
2019/12/day12.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
2019/12/day12.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
from dataclasses import dataclass import fileinput import functools import itertools import re PATTERN = re.compile(r'-?\d+') def lcm(x, y): a, b = x, y while a: a, b = b % a, a return x // b * y def sign(n): return -1 if n < 0 else 1 if n > 0 else 0 def vector(line): return Vector(*...
26.457447
103
0.529152
6209a3a0f3ac94b7b4df578b30534e2a41c5d914
6,539
py
Python
server/lib/globus/globus_provider.py
eliasmarkc/girder_wholetale
7e6f117309c97c24756d5663e89d2c213a4a9978
[ "BSD-3-Clause" ]
null
null
null
server/lib/globus/globus_provider.py
eliasmarkc/girder_wholetale
7e6f117309c97c24756d5663e89d2c213a4a9978
[ "BSD-3-Clause" ]
null
null
null
server/lib/globus/globus_provider.py
eliasmarkc/girder_wholetale
7e6f117309c97c24756d5663e89d2c213a4a9978
[ "BSD-3-Clause" ]
null
null
null
import os import re from typing import Tuple from html.parser import HTMLParser from urllib.parse import parse_qs from urllib.request import OpenerDirector, HTTPSHandler from girder.models.item import Item from girder.models.folder import Folder from plugins.wholetale.server.lib.file_map import FileMap from ..import_...
38.464706
95
0.598257
6209b570ae95275f249672fa0146af4d4b0a08e3
3,922
py
Python
TA-zscaler-api/bin/ta_zscaler_api/aob_py3/splunktalib/common/util.py
LetMeR00t/TA-zscaler-api
9a2cee3954bf75a814bb057cf36eb2b2b4c093f6
[ "MIT" ]
4
2022-03-04T11:11:30.000Z
2022-03-07T09:55:07.000Z
TA-zscaler-api/bin/ta_zscaler_api/aob_py3/splunktalib/common/util.py
LetMeR00t/TA-zscaler-api
9a2cee3954bf75a814bb057cf36eb2b2b4c093f6
[ "MIT" ]
43
2021-03-09T08:58:29.000Z
2022-03-18T09:05:12.000Z
TA-zscaler-api/bin/ta_zscaler_api/aob_py3/splunktalib/common/util.py
LetMeR00t/TA-zscaler-api
9a2cee3954bf75a814bb057cf36eb2b2b4c093f6
[ "MIT" ]
2
2022-02-08T22:02:50.000Z
2022-03-27T16:52:26.000Z
# # Copyright 2021 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
26.5
88
0.636665
620a30295e80ca60a1b8d2df12098538174f87cd
3,917
py
Python
deepdoctection/mapper/laylmstruct.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
39
2021-12-14T11:05:25.000Z
2022-03-31T18:50:58.000Z
deepdoctection/mapper/laylmstruct.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
17
2022-01-04T14:32:26.000Z
2022-03-29T14:01:36.000Z
deepdoctection/mapper/laylmstruct.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
4
2022-01-11T16:40:17.000Z
2022-03-30T02:09:55.000Z
# -*- coding: utf-8 -*- # File: laylmstruct.py # Copyright 2021 Dr. Janis Meyer. 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/L...
35.609091
107
0.705387
620a53ab825bdb3cd6e0dc5a5ab93e0b22d3c329
449
py
Python
profiles/migrations/0006_alter_userprofile_id.py
PaulBowden673/Projects-MP-MP4
a4a176457560e6d5087c823f86da0a88f2ad6537
[ "W3C", "PostgreSQL" ]
null
null
null
profiles/migrations/0006_alter_userprofile_id.py
PaulBowden673/Projects-MP-MP4
a4a176457560e6d5087c823f86da0a88f2ad6537
[ "W3C", "PostgreSQL" ]
null
null
null
profiles/migrations/0006_alter_userprofile_id.py
PaulBowden673/Projects-MP-MP4
a4a176457560e6d5087c823f86da0a88f2ad6537
[ "W3C", "PostgreSQL" ]
null
null
null
# Generated by Django 3.2 on 2022-02-08 14:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profiles', '0005_alter_userprofile_id'), ] operations = [ migrations.AlterField( model_name='userprofile', name='id', ...
23.631579
111
0.632517
620a5da176255b812612368fd08debe5f2d0805c
2,997
py
Python
tape_mounts/whpss/src/sanity_check.py
zdvresearch/fast15-paper-addons
8001f658ba819202186bf84892f4718eefd021fe
[ "MIT" ]
null
null
null
tape_mounts/whpss/src/sanity_check.py
zdvresearch/fast15-paper-addons
8001f658ba819202186bf84892f4718eefd021fe
[ "MIT" ]
null
null
null
tape_mounts/whpss/src/sanity_check.py
zdvresearch/fast15-paper-addons
8001f658ba819202186bf84892f4718eefd021fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import gzip import datetime import time import calendar import sets import re import glob class Timer(): def __init__(self, s): self.s = s def __enter__(self): self.start = time.time() def __exit__(self, *args): print ("%s: %fs" % (self.s, (time.ti...
28.542857
182
0.567901
620a7851bd2b90205494b26e86da8c1ccde6f9bd
1,757
py
Python
tool/bone_segementation_use_stacking/segUsingDBSCAN.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
tool/bone_segementation_use_stacking/segUsingDBSCAN.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
tool/bone_segementation_use_stacking/segUsingDBSCAN.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
# coding:utf-8 # 使用DBSCAN分割图像 import os import numpy as np import cv2 from sklearn.cluster import DBSCAN from tool import util from tool import api def getMaxCluster(points, minPoints=5): """使用DBSAN获得最大聚类 @param points 特征点 @param minPoints 每个簇的最少点数 @return 最大簇 """ db = DBSCAN(eps=200, min_s...
22.818182
65
0.63062
620a95f4a889668d0ef2565794e5c0300dbec25b
8,195
py
Python
shakenfist/tests/test_dhcp.py
jackadamson/shakenfist
6eccd78ebde74001fa65aef6994bb3406c4956cb
[ "Apache-2.0" ]
null
null
null
shakenfist/tests/test_dhcp.py
jackadamson/shakenfist
6eccd78ebde74001fa65aef6994bb3406c4956cb
[ "Apache-2.0" ]
null
null
null
shakenfist/tests/test_dhcp.py
jackadamson/shakenfist
6eccd78ebde74001fa65aef6994bb3406c4956cb
[ "Apache-2.0" ]
null
null
null
import jinja2 import mock import os import signal import six import testtools from shakenfist import dhcp from shakenfist import ipmanager TEST_DIR = os.path.dirname(os.path.abspath(__file__)) class FakeNetwork(object): def __init__(self): self.ipmanager = ipmanager.NetBlock('10.0.0.0/8') self...
38.116279
94
0.553264
620a9e8ad066971cfdad817483db560fdfe5c1bf
9,750
py
Python
test/test_mde.py
ConorMcNamara/pyPowerUp
4b14366dbae9372d2af3465749ef180ea3beefc4
[ "MIT" ]
null
null
null
test/test_mde.py
ConorMcNamara/pyPowerUp
4b14366dbae9372d2af3465749ef180ea3beefc4
[ "MIT" ]
null
null
null
test/test_mde.py
ConorMcNamara/pyPowerUp
4b14366dbae9372d2af3465749ef180ea3beefc4
[ "MIT" ]
null
null
null
import pytest from pyPowerUp import mde def test_bcra3f2() -> None: result = mde.mde_bcra3f2(rho2=.10, n=20, J=44, K=5, alpha=0.05) # mdes.bcra3f2(rho2=.10, n=20, J=44, K=5) # # Minimum detectable effect size: # --------------------------------------- # 0.145 95% CI [0.043,0.246] # -----...
41.139241
128
0.558667
620ac4ee971cf31a1fa28043ef2f5e276be1ce06
67,671
py
Python
superset/db_engine_specs.py
mapbased/incubator-superset
756f5b27204f234f66b1fe15d9cdbe977ac83273
[ "Apache-2.0" ]
null
null
null
superset/db_engine_specs.py
mapbased/incubator-superset
756f5b27204f234f66b1fe15d9cdbe977ac83273
[ "Apache-2.0" ]
null
null
null
superset/db_engine_specs.py
mapbased/incubator-superset
756f5b27204f234f66b1fe15d9cdbe977ac83273
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.720736
126
0.598366
620ac6a01249be6ea2afa9ad47504d730f089dff
677
py
Python
tbmodels/io.py
henhans/TBmodels
7424acaea8d91850d80bb48898af875430f25fa0
[ "Apache-2.0" ]
1
2021-01-18T13:55:40.000Z
2021-01-18T13:55:40.000Z
tbmodels/io.py
henhans/TBmodels
7424acaea8d91850d80bb48898af875430f25fa0
[ "Apache-2.0" ]
null
null
null
tbmodels/io.py
henhans/TBmodels
7424acaea8d91850d80bb48898af875430f25fa0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # (c) 2015-2018, ETH Zurich, Institut fuer Theoretische Physik # Author: Dominik Gresch <greschd@gmx.ch> """ Defines functions for saving and loading in HDF5 format. """ import h5py import fsc.hdf5_io from fsc.export import export from . import _legacy_decode __all__ = ['save'] save = fsc.h...
22.566667
90
0.691285
620ad98c3a26461c82c6fc0aaecdb8c77e46b79f
89,197
py
Python
py/dynesty/plotting.py
MJKirk/dynesty
747a6eb9557b1a24b6164887a7d45c0b8fa3eb1f
[ "MIT" ]
null
null
null
py/dynesty/plotting.py
MJKirk/dynesty
747a6eb9557b1a24b6164887a7d45c0b8fa3eb1f
[ "MIT" ]
null
null
null
py/dynesty/plotting.py
MJKirk/dynesty
747a6eb9557b1a24b6164887a7d45c0b8fa3eb1f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ A set of built-in plotting functions to help visualize ``dynesty`` nested sampling :class:`~dynesty.results.Results`. """ from __future__ import (print_function, division) from six.moves import range import logging import types import numpy as np import matplotlib.p...
39.660738
80
0.58826