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
08588cd65c079b8d53dd0682e77aa04f17c30865
787
py
Python
all_tests.py
prem2017/face-varification
051d6143dc4d33faeb13e19258d61cff977f58a5
[ "MIT" ]
2
2019-12-02T02:07:38.000Z
2020-04-11T08:15:02.000Z
all_tests.py
prem2017/face-varification
051d6143dc4d33faeb13e19258d61cff977f58a5
[ "MIT" ]
null
null
null
all_tests.py
prem2017/face-varification
051d6143dc4d33faeb13e19258d61cff977f58a5
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ ©Prem Prakash Unittest for different module """ import os import pdb import sys import unittest import util import predictor #---------------------------------------------------------------------------- class TestIneferrer(unittest.TestCase): """docstring for TestUtils""" def __ini...
21.861111
77
0.654384
0858ed503e59c8903f3127b9303eca9ce2f2d819
5,784
py
Python
asposewordscloud/models/requests/delete_fields_online_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/requests/delete_fields_online_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/requests/delete_fields_online_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="delete_fields_online_request.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a...
47.801653
255
0.664246
0858f86c64b182abab2c814c6051f808e22ac401
3,408
py
Python
src/wpipe/scheduler/JobData.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
4
2022-01-04T18:24:56.000Z
2022-01-27T08:23:37.000Z
src/wpipe/scheduler/JobData.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
null
null
null
src/wpipe/scheduler/JobData.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
null
null
null
#!/usr/bin/env python """ Contains the scheduler.JobData class definition Please note that this module is private. The scheduler.JobData class is available in the ``wpipe.scheduler`` namespace - use that instead. """ from .. import si __all__ = ['JobData'] # This class makes it so we can pickle and unpickle the inf...
34.08
100
0.643779
0858f936bdac597b4ff6cf6fca6112615f85578d
129
py
Python
modulo 4/test_myRot13.py
antonio343/clase
fda04a606246695aa5d93c8b2b5e2890a16d5973
[ "MIT" ]
null
null
null
modulo 4/test_myRot13.py
antonio343/clase
fda04a606246695aa5d93c8b2b5e2890a16d5973
[ "MIT" ]
null
null
null
modulo 4/test_myRot13.py
antonio343/clase
fda04a606246695aa5d93c8b2b5e2890a16d5973
[ "MIT" ]
null
null
null
import my_rot13 frase=input("Mensaje a encriptar: ") print() print("La frase encriptada es:") my_rot13.print_rot13(frase) print()
21.5
36
0.767442
085927817bd7c0f229e6c8a554bdd96f4afba913
12,639
py
Python
tests/models/test_tagging.py
Zozman/mindmeld
d86cc823c9b36dbafc8fc8f8ea04085ca1ffdeb5
[ "Apache-2.0" ]
1
2022-02-09T13:39:41.000Z
2022-02-09T13:39:41.000Z
tests/models/test_tagging.py
Zozman/mindmeld
d86cc823c9b36dbafc8fc8f8ea04085ca1ffdeb5
[ "Apache-2.0" ]
null
null
null
tests/models/test_tagging.py
Zozman/mindmeld
d86cc823c9b36dbafc8fc8f8ea04085ca1ffdeb5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_tagger ---------------------------------- Tests for `tagger` module. """ # pylint: disable=locally-disabled,redefined-outer-name import pytest from mindmeld.models.taggers import taggers # This index is the start index of when the time section of the full time ...
30.092857
94
0.526466
08592bedf41e6ccc4aa7f89f3755c4f0424cffdf
2,668
py
Python
angalabiri/causes/migrations/0001_initial.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
1
2021-03-25T14:06:23.000Z
2021-03-25T14:06:23.000Z
angalabiri/causes/migrations/0001_initial.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
5
2021-09-08T03:08:46.000Z
2022-03-12T00:56:35.000Z
angalabiri/causes/migrations/0001_initial.py
me-edavids/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-22 01:02 import angalabiri.causes.models import ckeditor_uploader.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import model_utils.fields class Migration(migrations.Migration): ...
52.313725
149
0.642054
08592db1bc4326c1dda2086e4246d0609558bc83
4,396
py
Python
pines/latin_hypercube.py
jpn--/pine
3980a9f0b09dd36b2fed7e52750847637be5f067
[ "MIT" ]
2
2017-08-09T02:42:37.000Z
2020-06-16T14:14:16.000Z
pines/latin_hypercube.py
jpn--/pine
3980a9f0b09dd36b2fed7e52750847637be5f067
[ "MIT" ]
null
null
null
pines/latin_hypercube.py
jpn--/pine
3980a9f0b09dd36b2fed7e52750847637be5f067
[ "MIT" ]
null
null
null
import numpy from scipy.optimize import minimize_scalar from scipy.stats import norm def lhs( n_factors, n_samples, genepool=10000, random_in_cell=True ): """ Parameters ---------- n_factors : int The number of columns to sample n_samples : int The number of Latin hypercube samples (rows) genepool : int ...
25.410405
90
0.701547
085934e1197016a112285e7cd573992c345d9c68
676
py
Python
trac/__init__.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/__init__.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/__init__.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2003-2020 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This software cons...
33.8
67
0.766272
0859451d72860d5680d7dde106d1faf987b97c86
14,111
py
Python
src/statistical_analysis.py
NizarGhandri/GDP
8718fdaab8246c57f40d55754dcc169a7b45e6c4
[ "MIT" ]
null
null
null
src/statistical_analysis.py
NizarGhandri/GDP
8718fdaab8246c57f40d55754dcc169a7b45e6c4
[ "MIT" ]
null
null
null
src/statistical_analysis.py
NizarGhandri/GDP
8718fdaab8246c57f40d55754dcc169a7b45e6c4
[ "MIT" ]
null
null
null
from itertools import chain, combinations from typing import List, Tuple from numpy import linalg from scipy import stats from scipy.stats import chi2 from src.regressions import least_squares, ridge_regression from src.evaluation_metrics import * from src.helpers import * import math import copy def confidence_in...
31.081498
116
0.606902
0859552ded611158557584626bf79c2e93b3661c
6,940
py
Python
tests/bins/run_tests.py
goujou/CompartmentalSystems
4724555c33f11395ddc32738e8dfed7349ee155f
[ "MIT" ]
null
null
null
tests/bins/run_tests.py
goujou/CompartmentalSystems
4724555c33f11395ddc32738e8dfed7349ee155f
[ "MIT" ]
null
null
null
tests/bins/run_tests.py
goujou/CompartmentalSystems
4724555c33f11395ddc32738e8dfed7349ee155f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Notes on writing new test files: -------------------------------- A test file can contain anything, but usually it is similar to a regular input file (defining a test problem), with a mandatory Test class. This class holds all the test_* functions, as well as the from_conf(), which serves to ...
33.52657
79
0.574352
08597d2af40f1e16ae928aabbcaa144c43f3e63e
5,139
py
Python
tests/test_tidyr_chop.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
tests/test_tidyr_chop.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
tests/test_tidyr_chop.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
11
2021-06-18T03:03:14.000Z
2022-02-25T11:48:26.000Z
# tests grabbed from: # https://github.com/tidyverse/tidyr/blob/master/tests/testthat/test-chop.R import pytest from pandas.testing import assert_frame_equal from datar.all import * # chop -------------------------------------------------------------------- def test_chop_multiple_columns(): df = tibble(x=[1,1,2], ...
31.919255
84
0.55322
08597f34a6412ddb6785f114fd9a441d3b832e3f
70,112
py
Python
basicbot_lib.py
asah/meatshields-python-botkit
0ad2fa1fb7806e554f3dd8d5c01b91465f34cf69
[ "MIT" ]
null
null
null
basicbot_lib.py
asah/meatshields-python-botkit
0ad2fa1fb7806e554f3dd8d5c01b91465f34cf69
[ "MIT" ]
null
null
null
basicbot_lib.py
asah/meatshields-python-botkit
0ad2fa1fb7806e554f3dd8d5c01b91465f34cf69
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- compile-command: "/usr/local/bin/python3 sim.py" -*- # # pylint:disable=locally-disabled,fixme,bad-whitespace,missing-docstring,multiple-imports,global-statement,multiple-statements,no-self-use,too-few-public-methods, # # basicbot.py # # TODO list: # - damage, healing ==> these are weightin...
48.520415
162
0.60061
0859bf44fa711e4a849b10f57c8f592940029ebc
7,122
py
Python
model/models.py
JuliousHurtado/Meta-Iteration
8edf09510c9c8c300c8ca42472e7e04bfd790938
[ "MIT" ]
null
null
null
model/models.py
JuliousHurtado/Meta-Iteration
8edf09510c9c8c300c8ca42472e7e04bfd790938
[ "MIT" ]
1
2021-09-08T03:25:12.000Z
2021-09-08T03:25:12.000Z
model/models.py
JuliousHurtado/Meta-Iteration
8edf09510c9c8c300c8ca42472e7e04bfd790938
[ "MIT" ]
null
null
null
import torch from torch import nn import copy def maml_init_(module): nn.init.xavier_uniform_(module.weight.data, gain=1.0) nn.init.constant_(module.bias.data, 0.0) return module class TaskNormalization(nn.Module): def __init__(self, input_dim, output_dim, r = 4): super(TaskNormalization, self...
36.901554
146
0.540578
0859d69f986fb114c1e513a9e935a0a99ab0e90a
34,037
py
Python
prody/dynamics/functions.py
RicardoSerr/ProDy
bdd7bab89d32033d20cd26bb17789f94ee4f7c02
[ "MIT" ]
null
null
null
prody/dynamics/functions.py
RicardoSerr/ProDy
bdd7bab89d32033d20cd26bb17789f94ee4f7c02
[ "MIT" ]
null
null
null
prody/dynamics/functions.py
RicardoSerr/ProDy
bdd7bab89d32033d20cd26bb17789f94ee4f7c02
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """This module defines input and output functions.""" from collections import OrderedDict import datetime import os from os.path import abspath, join, isfile, isdir, split, splitext import numpy as np from prody import LOGGER, SETTINGS, PY3K from prody.atomic import Atomic, AtomSubset from p...
35.790747
112
0.611217
0859e956ffd5a2c905837c5f6e68658d11403ae5
6,791
py
Python
tensorflow/python/framework/device_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/python/framework/device_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/framework/device_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.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...
41.408537
80
0.671771
085a1dafba7f1e38c5857e5b01f1916ec9e0de7a
947
py
Python
synapseclient/dict_object.py
zimingd/synapsePythonClient
6bddd4d9de2f06f6f79d8ce814ac57970d6bebee
[ "Apache-2.0" ]
null
null
null
synapseclient/dict_object.py
zimingd/synapsePythonClient
6bddd4d9de2f06f6f79d8ce814ac57970d6bebee
[ "Apache-2.0" ]
null
null
null
synapseclient/dict_object.py
zimingd/synapsePythonClient
6bddd4d9de2f06f6f79d8ce814ac57970d6bebee
[ "Apache-2.0" ]
null
null
null
## ## Represent user-defined annotations on a synapse entity ## chris.bare@sagebase.org ############################################################ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import s...
26.305556
84
0.653643
085a4581d4a5bd12dc2eaf60b562cd71a3e556b0
8,726
py
Python
empryonic/dotLineageTree.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
1
2021-08-25T03:57:55.000Z
2021-08-25T03:57:55.000Z
empryonic/dotLineageTree.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
1
2019-04-01T13:39:09.000Z
2019-04-01T13:39:09.000Z
empryonic/dotLineageTree.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
1
2018-11-15T13:17:26.000Z
2018-11-15T13:17:26.000Z
#!/usr/bin/python import operator from h5py import h5s, h5d, h5f, h5g import numpy as np def readDataSet( gid, name, dt=np.int32 ): did = h5d.open( gid, name ) space_id = did.get_space() dims = space_id.get_simple_extent_dims() memsp_id = h5s.create_simple( dims ) data = np.zeros(dims, dtype=dt) did.read(m...
43.63
111
0.649095
085a87441d9845c00d712fc1f77e5fddb6387c31
1,153
py
Python
evaluators/wild_evaluator.py
bolianchen/pytorch_depth_from_videos_in_the_wild
6f013154ba9f3a8de944c788a9370980e4c2b7c8
[ "MIT" ]
5
2022-02-25T04:38:16.000Z
2022-03-28T17:38:03.000Z
evaluators/wild_evaluator.py
bolianchen/pytorch_depth_from_videos_in_the_wild
6f013154ba9f3a8de944c788a9370980e4c2b7c8
[ "MIT" ]
5
2022-02-25T07:26:39.000Z
2022-03-02T06:04:32.000Z
evaluators/wild_evaluator.py
bolianchen/pytorch_depth_from_videos_in_the_wild
6f013154ba9f3a8de944c788a9370980e4c2b7c8
[ "MIT" ]
null
null
null
import os import numpy as np import torch from torchvision import transforms from trainers import WildTrainer from options import WildOptions from .base_evaluator import BaseEvaluator class WildEvaluator(BaseEvaluator): def __init__(self, opt): self.opt = opt if not hasattr(self, 'num_pose_frames...
30.342105
105
0.664354
085a8a5bbb83e421cd8c3b4795f1fee2de728b36
883
py
Python
client/verta/verta/_swagger/_public/modeldb/model/ModeldbLogDataset.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
835
2017-02-08T20:14:24.000Z
2020-03-12T17:37:49.000Z
client/verta/verta/_swagger/_public/modeldb/model/ModeldbLogDataset.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
client/verta/verta/_swagger/_public/modeldb/model/ModeldbLogDataset.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
170
2017-02-13T14:49:22.000Z
2020-02-19T17:59:12.000Z
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class ModeldbLogDataset(BaseType): def __init__(self, id=None, dataset=None, overwrite=None): required = { "id": False, "dataset": False, "overwrite": False, } self.id = id self.dataset = datase...
23.864865
62
0.622877
085a952adf4af837a3e6d1ccfe5e585cf2767d92
4,076
py
Python
YOLOv3-complete-pruning/utils/torch_utils.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
YOLOv3-complete-pruning/utils/torch_utils.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
YOLOv3-complete-pruning/utils/torch_utils.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
import os import torch def init_seeds(seed=0): torch.manual_seed(seed) torch.cuda.manual_seed(seed) torch.cuda.manual_seed_all(seed) # Remove randomness (may be slower on Tesla GPUs) # https://pytorch.org/docs/stable/notes/randomness.html if seed == 0: torch.backends.cudnn.deterministic ...
42.020619
119
0.614328
085a97de37cdc00039167d2b32ce0a2eb6c18921
5,612
py
Python
sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_validate_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_validate_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_validate_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 ...
39.801418
133
0.692267
085a9cf0d764226776f9b63e76566a9890386f65
24,908
py
Python
airflow_client/client/configuration.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
airflow_client/client/configuration.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
airflow_client/client/configuration.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
""" Airflow API (Stable) # Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This means t...
53.108742
8,098
0.668661
085aa266ca6cbff600a5e21539d4346f92b32563
2,157
py
Python
pyIsoDep/tests/test_maindepletion.py
MattKrecicki/PYTHON-ISOTOPIC-DEPLETION-PACKAGE
ccad214de8721aa9b499ef70cd39966f18bceb76
[ "MIT" ]
null
null
null
pyIsoDep/tests/test_maindepletion.py
MattKrecicki/PYTHON-ISOTOPIC-DEPLETION-PACKAGE
ccad214de8721aa9b499ef70cd39966f18bceb76
[ "MIT" ]
null
null
null
pyIsoDep/tests/test_maindepletion.py
MattKrecicki/PYTHON-ISOTOPIC-DEPLETION-PACKAGE
ccad214de8721aa9b499ef70cd39966f18bceb76
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """test_maindepletion Tests that a single depletion step is carried out properly. The entire sequence from cross section generation to depletion execution is tested. Results are compared against pre-generated data using a different code. Created on Sun Oct 11 07:30:00 2021 @author: Dan Kotlyar...
35.360656
79
0.59249
085aa3074cbd7b3fdb0da938a2b017f1b174ddbd
3,864
py
Python
mediapipe/calculators/core/concatenate_vector_calculator_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
5
2021-01-01T11:02:41.000Z
2022-03-11T19:44:29.000Z
mediapipe/calculators/core/concatenate_vector_calculator_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
null
null
null
mediapipe/calculators/core/concatenate_vector_calculator_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
1
2021-04-12T05:59:46.000Z
2021-04-12T05:59:46.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mediapipe/calculators/core/concatenate_vector_calculator.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from go...
44.930233
385
0.827122
085ac5127507f8568fec42e1e8ac525255fa4308
409
py
Python
tests/esm_service.py
Ektoplasma/mfe_saw
4ffec27ba379346b52b713be6de800fc2004aec7
[ "0BSD" ]
null
null
null
tests/esm_service.py
Ektoplasma/mfe_saw
4ffec27ba379346b52b713be6de800fc2004aec7
[ "0BSD" ]
null
null
null
tests/esm_service.py
Ektoplasma/mfe_saw
4ffec27ba379346b52b713be6de800fc2004aec7
[ "0BSD" ]
1
2021-09-07T12:34:17.000Z
2021-09-07T12:34:17.000Z
# -*- coding: utf-8 -*- """ mfe_saw utils test """ import pytest import requests try: from mfe_saw.utils import dehexify except ModuleNotFoundError: from .utils.mfe_saw.utils import dehexify BASE_URL = 'https://22.22.22.60' VERIFY = False def get_login(): resp = requests.post(BASE_URL, verify=VERIF...
17.041667
49
0.657702
085acc9c0dfccf7f8c9026e0bcb4fb0a48ab2a5c
32,651
py
Python
cinder/db/sqlalchemy/models.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/db/sqlalchemy/models.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/db/sqlalchemy/models.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Piston Cloud Computing, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (...
36.078453
79
0.65413
085aff26439156e2a6f3dab6311792c03661de0f
1,592
py
Python
axonius_api_client/cli/grp_adapters/grp_cnx/cmd_set_label.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
11
2020-01-31T00:28:26.000Z
2022-03-25T20:27:08.000Z
axonius_api_client/cli/grp_adapters/grp_cnx/cmd_set_label.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
83
2020-01-22T12:52:38.000Z
2022-02-07T16:20:18.000Z
axonius_api_client/cli/grp_adapters/grp_cnx/cmd_set_label.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
16
2019-08-23T17:44:31.000Z
2022-01-06T00:57:34.000Z
# -*- coding: utf-8 -*- """Command line interface for Axonius API Client.""" from ....exceptions import CnxUpdateError from ...context import CONTEXT_SETTINGS, click from ...options import AUTH, NODE_CNX, add_options from .grp_common import EXPORT, ID_CNX, SAVE_AND_FETCH, handle_export OPTIONS = [ *AUTH, EXPOR...
26.533333
69
0.618719
085b0d828ea04b00133f1dee647e1edac6e21772
1,571
py
Python
deal/linter/_extractors/value.py
m4ta1l/deal
2a8e9bf412b8635b00a2b798dd8802375814a1c8
[ "MIT" ]
2
2021-01-11T12:01:24.000Z
2021-02-02T23:42:20.000Z
deal/linter/_extractors/value.py
Zac-HD/deal
2e170e9c200aa248edc3cf173b556d86f158eb9b
[ "MIT" ]
7
2020-09-05T13:54:28.000Z
2020-11-27T05:59:19.000Z
deal/linter/_extractors/value.py
Zac-HD/deal
2e170e9c200aa248edc3cf173b556d86f158eb9b
[ "MIT" ]
null
null
null
# built-in import ast from contextlib import suppress # external import astroid # app from .common import Extractor, infer inner_extractor = Extractor() UNKNOWN = object() def get_value(expr): if isinstance(expr, ast.AST): with suppress(ValueError, SyntaxError): return ast.literal_eval(exp...
26.627119
84
0.643539
085b1cb9df533961d4fe27aeb67f7d8017df4116
3,804
py
Python
whoville/cloudbreak/models/id.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/id.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/id.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Cloudbreak API Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud...
29.952756
984
0.57939
085b242065f688b9cead31f81b5495d6a3be0a5a
26,208
py
Python
two1/sell/util/cli_helpers.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
1
2016-09-10T18:14:33.000Z
2016-09-10T18:14:33.000Z
two1/sell/util/cli_helpers.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
two1/sell/util/cli_helpers.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
1
2020-11-04T05:01:17.000Z
2020-11-04T05:01:17.000Z
""" 21 sell CLI helper methods. Helper methods for interactive CLI commands. """ # python standard imports import os import re import sys import time import json import logging import threading import subprocess from collections import namedtuple # 3rd party imports import yaml import click # two1 imports from two1...
35.131367
116
0.596803
085b498717b9f079a33839981afb42bfebcf269d
1,191
py
Python
notebooks/cuIndicator/viz/ma.py
goosen78/gQuant
cc0bff4ac524ccfbe8097acd647a8b3fad5fe578
[ "Apache-2.0" ]
null
null
null
notebooks/cuIndicator/viz/ma.py
goosen78/gQuant
cc0bff4ac524ccfbe8097acd647a8b3fad5fe578
[ "Apache-2.0" ]
null
null
null
notebooks/cuIndicator/viz/ma.py
goosen78/gQuant
cc0bff4ac524ccfbe8097acd647a8b3fad5fe578
[ "Apache-2.0" ]
null
null
null
import ipywidgets as widgets from bqplot.colorschemes import CATEGORY20 from bqplot import Lines import math import os from gquant.dataframe_flow.task import load_modules load_modules(os.getenv('MODULEPATH')+'/rapids_modules/') from rapids_modules.cuindicator import moving_average as indicator_fun # noqa #F401 def g...
30.538462
84
0.709488
085b50e3a47ca31a528d338cd49bed903711fda2
54,800
py
Python
pkgcore/test/ebuild/test_profiles.py
pombreda/pkgcore
b438fc573af1a031d7ce12adbbf299bab5338451
[ "BSD-3-Clause" ]
null
null
null
pkgcore/test/ebuild/test_profiles.py
pombreda/pkgcore
b438fc573af1a031d7ce12adbbf299bab5338451
[ "BSD-3-Clause" ]
8
2015-03-24T14:21:44.000Z
2015-03-24T14:21:44.000Z
pkgcore/test/ebuild/test_profiles.py
pombreda/pkgcore
b438fc573af1a031d7ce12adbbf299bab5338451
[ "BSD-3-Clause" ]
null
null
null
# Copyright: 2006-2011 Brian Harring <ferringb@gmail.com> # License: GPL2/BSD import binascii import errno from functools import partial import os import shutil import tempfile try: from unittest import mock except ImportError: import mock from mock import patch from snakeoil.osutils import pjoin, ensure_dir...
43.910256
113
0.573376
085b534656811ad00ac421bb60834a1a5801fdb6
2,751
py
Python
deepray/model/build_model.py
fuhailin/DeePray
35310a7ec5f166aa1cc892e46d144f2fb655b566
[ "Apache-2.0" ]
37
2020-06-05T14:03:59.000Z
2021-11-18T06:25:11.000Z
deepray/model/build_model.py
fuhailin/DeePray
35310a7ec5f166aa1cc892e46d144f2fb655b566
[ "Apache-2.0" ]
2
2021-03-12T11:04:21.000Z
2021-09-13T03:57:08.000Z
deepray/model/build_model.py
fuhailin/DeePray
35310a7ec5f166aa1cc892e46d144f2fb655b566
[ "Apache-2.0" ]
6
2020-06-07T08:14:02.000Z
2021-11-18T06:25:25.000Z
# Copyright © 2020-2020 Hailin Fu 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 l...
37.684932
81
0.672846
085b7d0b0dba2d4e2a348ff420931faa6331ae5e
3,265
py
Python
blue_st_sdk/features/feature_mems_sensor_fusion.py
tolomeis/BlueSTSDK_Python
caae20c1a7353a141d31113caec2f7a877c5fc8e
[ "BSD-3-Clause" ]
null
null
null
blue_st_sdk/features/feature_mems_sensor_fusion.py
tolomeis/BlueSTSDK_Python
caae20c1a7353a141d31113caec2f7a877c5fc8e
[ "BSD-3-Clause" ]
null
null
null
blue_st_sdk/features/feature_mems_sensor_fusion.py
tolomeis/BlueSTSDK_Python
caae20c1a7353a141d31113caec2f7a877c5fc8e
[ "BSD-3-Clause" ]
null
null
null
# IMPORT import math from blue_st_sdk.feature import Feature from blue_st_sdk.feature import Sample from blue_st_sdk.feature import ExtractedData from blue_st_sdk.features.field import Field from blue_st_sdk.features.field import FieldType from blue_st_sdk.utils.number_conversion import LittleEndian # CLASSES class...
29.681818
79
0.584992
085b85ea398d9e7e3eb7b2389433597036dd3b2b
3,783
py
Python
q2_longitudinal/tests/test_format.py
sterrettJD/q2-longitudinal
d9edd427c9668c8b95d708fc3c4d2722204c9ce0
[ "BSD-3-Clause" ]
10
2017-09-13T03:16:34.000Z
2022-01-31T06:07:00.000Z
q2_longitudinal/tests/test_format.py
sterrettJD/q2-longitudinal
d9edd427c9668c8b95d708fc3c4d2722204c9ce0
[ "BSD-3-Clause" ]
114
2017-08-10T00:19:09.000Z
2022-03-03T06:48:07.000Z
q2_longitudinal/tests/test_format.py
sterrettJD/q2-longitudinal
d9edd427c9668c8b95d708fc3c4d2722204c9ce0
[ "BSD-3-Clause" ]
16
2017-08-23T21:33:57.000Z
2022-01-28T16:26:44.000Z
# ---------------------------------------------------------------------------- # Copyright (c) 2017-2021, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
36.728155
78
0.600582
085b9adc087b04a3f9ed40a534269b02821b170e
3,087
py
Python
advent_code/day_04.py
southlandp/advent_of_code_2021
3075626741a286eef15c3b9feeb074dcbbe9452f
[ "MIT" ]
null
null
null
advent_code/day_04.py
southlandp/advent_of_code_2021
3075626741a286eef15c3b9feeb074dcbbe9452f
[ "MIT" ]
null
null
null
advent_code/day_04.py
southlandp/advent_of_code_2021
3075626741a286eef15c3b9feeb074dcbbe9452f
[ "MIT" ]
null
null
null
""" .. codeauthor: Peter Southland code for advent of code day 4 Day 4: Giant Squid https://adventofcode.com/2021/day/4 """ import re from advent_code.common import functions DAY = '04' class BingoGame: """ runs bingo game :ivar raw_data: raw puzzle data :ivar numbers: numbers to be called during ...
29.122642
105
0.571105
085bd6d186e1b8357d69df6c73f8a54dd0ab716d
136,330
py
Python
protos/gen/python/protos/public/modeldb/ProjectService_pb2.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
null
null
null
protos/gen/python/protos/public/modeldb/ProjectService_pb2.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
3
2021-05-11T23:56:43.000Z
2022-02-27T11:16:47.000Z
protos/gen/python/protos/public/modeldb/ProjectService_pb2.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
3
2020-11-18T19:36:47.000Z
2021-01-19T19:48:54.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: modeldb/ProjectService.proto from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection a...
40.026424
14,844
0.756796
085bd8a4b4f500bb26c2ba1d149a71d369542a5e
3,211
py
Python
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_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 ...
47.220588
125
0.696356
085c0aed54084a4bd6a478c288a36d3fff236cdd
5,412
py
Python
maltpynt/_astropy_init.py
matteobachetti/MaLTPyNT
6c93d2e23041b6c932810b5a8d727ee1b6dabfed
[ "BSD-3-Clause" ]
8
2015-02-23T13:43:21.000Z
2021-07-17T11:35:24.000Z
hendrics/_astropy_init.py
astrojuan/HENDRICS
79c85b281ca1f0933bfb0ec66ced73eb14ec5f0e
[ "BSD-3-Clause" ]
1
2017-09-14T07:55:07.000Z
2017-09-14T07:55:07.000Z
hendrics/_astropy_init.py
astrojuan/HENDRICS
79c85b281ca1f0933bfb0ec66ced73eb14ec5f0e
[ "BSD-3-Clause" ]
4
2016-03-02T20:36:07.000Z
2018-02-26T13:23:53.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Import astropy-related stuff.""" __all__ = ['__version__', '__githash__', 'test'] # this indicates whether or not we are in the package's setup.py try: _ASTROPY_SETUP_ except NameError: from sys import version_info if version_info[0] >= 3: ...
37.324138
95
0.646341
085c491df9defb78c85a6a1d6556c11cb419df6a
750
py
Python
setup.py
iosurodri/Fancy_aggregations
647019452a074767706893ecdd431a3ee503b554
[ "MIT" ]
1
2021-03-25T11:48:20.000Z
2021-03-25T11:48:20.000Z
setup.py
iosurodri/Fancy_aggregations
647019452a074767706893ecdd431a3ee503b554
[ "MIT" ]
null
null
null
setup.py
iosurodri/Fancy_aggregations
647019452a074767706893ecdd431a3ee503b554
[ "MIT" ]
null
null
null
from setuptools import setup # read the contents of your README file from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf8') as f: long_description = f.read() setup( name='Fancy_aggregations', version='1.3.2', descript...
34.090909
96
0.753333
085c6dd828e6a1861d87e239e523b9fc225351e6
480
py
Python
NBA Project/venv/Scripts/easy_install-script.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
NBA Project/venv/Scripts/easy_install-script.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
NBA Project/venv/Scripts/easy_install-script.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
#!"C:\Users\Owner\github-Repos\Most-Efficient-NBA-Players\NBA Project\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0...
36.923077
94
0.7
085c83247ac6e1e4365eed689338f31e442d003d
2,170
py
Python
dipy/denoise/nlmeans.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
dipy/denoise/nlmeans.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
dipy/denoise/nlmeans.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
from __future__ import division, print_function import numpy as np from dipy.denoise.denspeed import nlmeans_3d def nlmeans(arr, sigma, mask=None, patch_radius=1, block_radius=5, rician=True, num_threads=None): """ Non-local means for denoising 3D and 4D images Parameters ---------- arr ...
34.444444
76
0.529032
085cb1a35fdce2a7cd9b6bffee30838143e1052d
6,136
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_helpers.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_helpers.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_helpers.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. # Licensed under the MIT License. # ------------------------------------ import re import six from azure.core.credentials import AzureKeyCredential from azure.core.pipeline.policies import AzureKeyCredentialPolicy, SansIOHTTPP...
31.628866
97
0.659387
085cc7c38922ff3570d1892857184d7f963208a9
3,500
py
Python
carehare/_heartbeat.py
CJWorkbench/carehare
1dc5859a925e29f684b0c32c75eb20f66f858d01
[ "MIT" ]
4
2021-06-16T12:45:42.000Z
2022-02-18T04:14:27.000Z
carehare/_heartbeat.py
CJWorkbench/carehare
1dc5859a925e29f684b0c32c75eb20f66f858d01
[ "MIT" ]
6
2021-05-14T13:30:08.000Z
2022-02-25T22:10:09.000Z
carehare/_heartbeat.py
CJWorkbench/carehare
1dc5859a925e29f684b0c32c75eb20f66f858d01
[ "MIT" ]
1
2022-01-14T13:42:51.000Z
2022-01-14T13:42:51.000Z
import asyncio import logging from typing import Callable import pamqp.heartbeat logger = logging.getLogger(__name__) _HEARTBEAT_BYTES = pamqp.heartbeat.Heartbeat.marshal() # The docs at https://www.rabbitmq.com/heartbeats.html are _really_ # confusing, because they bring up the term "heartbeat interval" which # is...
32.71028
86
0.664
085cce655418acd068e3699bc84dd31ebbff4e58
8,390
py
Python
google_static_maps_api.py
AlejandroDaneri/Machine-Learning-Properati
5d0f77eaff5ea7ef5a8f0e446c9220592d9b2e1a
[ "MIT" ]
1
2020-12-17T19:21:16.000Z
2020-12-17T19:21:16.000Z
google_static_maps_api.py
AlejandroDaneri/Machine-Learning-Properati
5d0f77eaff5ea7ef5a8f0e446c9220592d9b2e1a
[ "MIT" ]
null
null
null
google_static_maps_api.py
AlejandroDaneri/Machine-Learning-Properati
5d0f77eaff5ea7ef5a8f0e446c9220592d9b2e1a
[ "MIT" ]
1
2019-04-03T22:25:13.000Z
2019-04-03T22:25:13.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from StringIO import StringIO import numpy as np import pandas as pd import requests try: from PIL import Image except ImportError: import Image TILE_SIZE = 256 # Basic Mercator Google Maps tile is 256 x 256 ...
43.025641
119
0.595828
085d0164e1e8cfdafd3f745f13580398610873d1
478
py
Python
apps/charts/translation.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
7
2020-02-20T13:24:40.000Z
2022-01-28T19:36:04.000Z
apps/charts/translation.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
15
2020-04-28T13:09:02.000Z
2021-11-03T15:21:24.000Z
apps/charts/translation.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
4
2020-02-20T13:48:30.000Z
2021-03-19T00:33:34.000Z
from modeltranslation.translator import translator, TranslationOptions from charts.models import ChartDefinition from .models import ReportDataView class ReportDataViewTranslationOptions(TranslationOptions): fields = ('name', 'desc') class ChartDefinitionTranslationOptions(TranslationOptions): fields = ('n...
28.117647
71
0.83682
085d0c1f9f02bb53eab4d89cf239cbcb30d89ac4
11,344
py
Python
tools/compute_softscore.py
soumye/dialog_without_dialog
9f95d6fb457659f9007445d9036b94e639bddd8b
[ "MIT" ]
3
2020-09-08T23:19:51.000Z
2021-07-21T11:12:48.000Z
tools/compute_softscore.py
soumye/dialog_without_dialog
9f95d6fb457659f9007445d9036b94e639bddd8b
[ "MIT" ]
2
2021-01-08T02:08:09.000Z
2021-11-15T23:51:02.000Z
tools/compute_softscore.py
soumye/dialog_without_dialog
9f95d6fb457659f9007445d9036b94e639bddd8b
[ "MIT" ]
2
2020-11-10T15:53:03.000Z
2020-12-11T03:24:00.000Z
from __future__ import print_function import os import sys import json import numpy as np import re import _pickle as cPickle import pdb sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) # import utils def create_dir(path): if not os.path.exists(path): try: os.makedir...
33.964072
96
0.579602
085d24dfe8b6b9cd9d2c556eaee5a770b0f7ec31
478
py
Python
constants.py
ManeeshaPerera/forecast-framework
60a22af4a97aec10c8bbea7f3f833061283382cb
[ "BSD-3-Clause" ]
null
null
null
constants.py
ManeeshaPerera/forecast-framework
60a22af4a97aec10c8bbea7f3f833061283382cb
[ "BSD-3-Clause" ]
null
null
null
constants.py
ManeeshaPerera/forecast-framework
60a22af4a97aec10c8bbea7f3f833061283382cb
[ "BSD-3-Clause" ]
2
2022-03-20T10:30:38.000Z
2022-03-22T06:39:14.000Z
DATA = 'data/' RESULTS = 'results/' # a dictionary including all information relevant to the forecast horizon and resolution HORIZON_INFO = { '1D': { 'resolution': 'H', 'horizon_as_int': 24, 'resolution_as_str': '1H', 'seasonality': 24, 'arima_params': { 'seasona...
23.9
88
0.527197
085d51efa785601ab60bd006927dbf279c82cbea
1,383
py
Python
application.py
renuchauhan625/RazorPyOfficial
e5e3c2cb638b0e402f665aa2e756debd7c456237
[ "Apache-2.0" ]
3
2021-07-11T03:52:50.000Z
2022-01-06T11:30:08.000Z
application.py
renuchauhan625/RazorPyOfficial
e5e3c2cb638b0e402f665aa2e756debd7c456237
[ "Apache-2.0" ]
null
null
null
application.py
renuchauhan625/RazorPyOfficial
e5e3c2cb638b0e402f665aa2e756debd7c456237
[ "Apache-2.0" ]
1
2021-07-18T05:42:40.000Z
2021-07-18T05:42:40.000Z
''' Created on 30-Jan-2021 @author: Abhishek Prajapati ''' from pyexception.RazorException import RazorException from managers.jobs_manager import JobManager from support.razor_display import RazorPyDisplay import sys from configuration import appconf class Application(object): ''' Description: This class...
30.733333
93
0.691251
085d7190df76296d773d8b3c006deefe355a987d
5,106
py
Python
packages/python/pyfora/worker/WorkerPool.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
packages/python/pyfora/worker/WorkerPool.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
packages/python/pyfora/worker/WorkerPool.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
# Copyright 2016 Ufora 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 i...
36.212766
134
0.676851
085d7df977c1d7fc8ad32bb6834bed0819127e26
20,898
py
Python
tensorflow_probability/python/distributions/mixture.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/mixture.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/mixture.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
41.464286
80
0.666667
085d82895d6a3e9eb01662e1465a0d99419bbbda
4,351
py
Python
emissor/representation/container.py
cltl/EMISSOR
68504c859c36b1b65b2c0002d065028b3d5b5d08
[ "MIT" ]
null
null
null
emissor/representation/container.py
cltl/EMISSOR
68504c859c36b1b65b2c0002d065028b3d5b5d08
[ "MIT" ]
15
2021-04-29T09:32:53.000Z
2021-11-11T10:31:21.000Z
emissor/representation/container.py
cltl/EMISSOR
68504c859c36b1b65b2c0002d065028b3d5b5d08
[ "MIT" ]
null
null
null
# TODO This conflicts with marshmallow dataclass serialization # Enable using the current class in type annotations # from __future__ import annotations import numpy as np import uuid from abc import ABC from numpy.typing import ArrayLike from typing import TypeVar, Generic, Iterable, Tuple, Type, Any, List from emis...
28.625
111
0.677086
085d8400ab573c5b69fb937761014bb480cce932
8,940
py
Python
tests/generic_config_updater/test_vlan_interface.py
jsanghra/sonic-mgmt
9f7af402de9e8e16a33c81b31581c9e155e55430
[ "Apache-2.0" ]
null
null
null
tests/generic_config_updater/test_vlan_interface.py
jsanghra/sonic-mgmt
9f7af402de9e8e16a33c81b31581c9e155e55430
[ "Apache-2.0" ]
null
null
null
tests/generic_config_updater/test_vlan_interface.py
jsanghra/sonic-mgmt
9f7af402de9e8e16a33c81b31581c9e155e55430
[ "Apache-2.0" ]
null
null
null
import logging import pytest from tests.generic_config_updater.gu_utils import apply_patch, expect_op_success, expect_op_failure from tests.generic_config_updater.gu_utils import generate_tmpfile, delete_tmpfile from tests.generic_config_updater.gu_utils import create_checkpoint, delete_checkpoint, rollback_or_reload ...
31.928571
115
0.569799
085d9cfa7011bbb51130a8c113a05be04b4ca895
44,197
py
Python
stage/test_kafka_origin_standalone.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
1
2020-04-14T03:01:51.000Z
2020-04-14T03:01:51.000Z
stage/test_kafka_origin_standalone.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
null
null
null
stage/test_kafka_origin_standalone.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
1
2019-09-14T08:30:23.000Z
2019-09-14T08:30:23.000Z
# Copyright 2018 StreamSets 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 writi...
44.197
120
0.733398
085dbb2556486c6ff18248a14ebee651a6b975d2
334
py
Python
Courses/Udacity/CS101/Lesson_3_How_to_Manage_Data/26-Find_Element/supplied/studentMain.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2019-02-13T12:02:26.000Z
2019-02-13T12:02:26.000Z
Courses/Udacity/CS101/Lesson_3_How_to_Manage_Data/26-Find_Element/supplied/studentMain.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2018-08-13T15:58:33.000Z
2018-08-13T15:58:33.000Z
Courses/Udacity/CS101/Lesson_3_How_to_Manage_Data/26-Find_Element/supplied/studentMain.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
2
2017-08-10T20:01:29.000Z
2021-07-01T08:39:13.000Z
# Define a procedure, find_element, # that takes as its inputs a list # and a value of any type, and # returns the index of the first # element in the input list that # matches the value. # If there is no matching element, # return -1. #print find_element([1,2,3],3) #>>> 2 #print find_element(['alpha','beta'],'g...
17.578947
45
0.676647
085dcca0297e3c2fd9934e57a52c55c9bbb29361
5,563
py
Python
remindme/Repository.py
GochoMugo/remindme
6cf2f94ce07ead754f1ee5976a7e7d7cbfa1a2e4
[ "MIT" ]
17
2015-05-02T22:58:07.000Z
2017-04-17T06:33:43.000Z
remindme/Repository.py
GochoMugo/remindme
6cf2f94ce07ead754f1ee5976a7e7d7cbfa1a2e4
[ "MIT" ]
8
2015-02-14T16:22:27.000Z
2016-10-26T13:15:19.000Z
remindme/Repository.py
GochoMugo/remindme
6cf2f94ce07ead754f1ee5976a7e7d7cbfa1a2e4
[ "MIT" ]
2
2016-02-26T10:47:56.000Z
2019-10-09T05:49:51.000Z
''' A Repository is a Repository for storing and retrieving Remindmes. ''' import sqlite3 from .Remindme import Remindme class Repository: '''Repository of Remindmes.''' def __init__(self, db_file, key=None): '''Create a sqlite3 database for remindmes.''' self.__db = None self.__curs...
35.660256
152
0.594463
085ddd6e8901d6f38fe07248902591d9dac7c0f9
1,388
py
Python
game/game_objects/mesh_objects/obstacle_rectangle.py
igor-ribeiiro/Balance
84d610dc391e1e6095c634bb3f6a54ca1c6581ad
[ "MIT" ]
null
null
null
game/game_objects/mesh_objects/obstacle_rectangle.py
igor-ribeiiro/Balance
84d610dc391e1e6095c634bb3f6a54ca1c6581ad
[ "MIT" ]
null
null
null
game/game_objects/mesh_objects/obstacle_rectangle.py
igor-ribeiiro/Balance
84d610dc391e1e6095c634bb3f6a54ca1c6581ad
[ "MIT" ]
1
2018-06-28T23:28:40.000Z
2018-06-28T23:28:40.000Z
from game_engine.basic_objects.basic_rectangle import BasicRectangle from game_engine.components.polygon_collider import PolygonCollider from game_engine.components.particle_system import ParticleSystem from game.game_objects.mesh_objects.particle import Particle class Rectangle(BasicRectangle): def __init__(sel...
43.375
85
0.630403
085deb99b348adb0c3b4d13c6b94ddbd80b9b2c1
1,254
py
Python
test/test_v0_command_args.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
test/test_v0_command_args.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
test/test_v0_command_args.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Esper APIs OpenAPI spec version: 1.0.0 Contact: developer@esper.io --------------------------------------------------------- Copyright 2019 Shoonya Enterprises Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. Yo...
23.660377
72
0.713716
085dee7413f993c6091e186472d625734ef30731
815
py
Python
panda_prospecting/manage.py
helanan/Panda_Prospecting
501b8188bfc135bf0499a0377a30361b48dbfbe0
[ "MIT" ]
null
null
null
panda_prospecting/manage.py
helanan/Panda_Prospecting
501b8188bfc135bf0499a0377a30361b48dbfbe0
[ "MIT" ]
10
2017-06-09T18:47:26.000Z
2019-11-28T15:53:48.000Z
panda_prospecting/manage.py
helanan/Panda_Prospecting
501b8188bfc135bf0499a0377a30361b48dbfbe0
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "panda_prospecting.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure...
35.434783
81
0.646626
085df9232ac6c9e4d2ad5dd303dc738f86414d3b
73
py
Python
pyEpiabm/pyEpiabm/tests/test_func/__init__.py
SABS-R3-Epidemiology/epiabm
8eb83fd2de84104f6f77929e3771095f7b033ddc
[ "BSD-3-Clause" ]
11
2021-12-02T15:24:02.000Z
2022-03-10T14:02:13.000Z
pyEpiabm/pyEpiabm/tests/test_func/__init__.py
SABS-R3-Epidemiology/epiabm
8eb83fd2de84104f6f77929e3771095f7b033ddc
[ "BSD-3-Clause" ]
119
2021-11-24T13:56:48.000Z
2022-03-30T11:52:07.000Z
pyEpiabm/pyEpiabm/tests/test_func/__init__.py
SABS-R3-Epidemiology/epiabm
8eb83fd2de84104f6f77929e3771095f7b033ddc
[ "BSD-3-Clause" ]
3
2022-01-13T03:05:19.000Z
2022-03-11T22:00:17.000Z
# # Functional and Integration test subpackage for the pyEpiabm module #
18.25
68
0.794521
085e0cfab4dfa9fb38c370a02f598544475f420c
5,620
py
Python
Parser-hybrid/nparser/vocabs/multivocab.py
sb-b/BOUN-PARSE
2b529924897d8e2613c4d2193a67796a895da40b
[ "Apache-2.0" ]
12
2020-03-04T17:36:12.000Z
2021-09-26T14:02:49.000Z
Parser-hybrid/nparser/vocabs/multivocab.py
sb-b/BOUN-PARSE
2b529924897d8e2613c4d2193a67796a895da40b
[ "Apache-2.0" ]
1
2020-12-09T08:21:11.000Z
2020-12-09T08:21:11.000Z
Parser-hybrid/nparser/vocabs/multivocab.py
sb-b/BOUN-PARSE
2b529924897d8e2613c4d2193a67796a895da40b
[ "Apache-2.0" ]
3
2020-11-18T09:53:42.000Z
2020-12-17T23:04:59.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2016 Timothy Dozat # # 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 ...
31.931818
118
0.583452
085e1d5932b5a71738cc786a2cc945780227ee62
911
py
Python
thenewboston/utils/validators.py
rajat4665/thenewboston-python
df842c793fe7bfd8731fd8746abf25747c9e569e
[ "MIT" ]
null
null
null
thenewboston/utils/validators.py
rajat4665/thenewboston-python
df842c793fe7bfd8731fd8746abf25747c9e569e
[ "MIT" ]
3
2021-03-30T14:03:41.000Z
2021-09-22T19:30:31.000Z
thenewboston/utils/validators.py
rajat4665/thenewboston-python
df842c793fe7bfd8731fd8746abf25747c9e569e
[ "MIT" ]
null
null
null
import math from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _ from thenewboston.constants.network import SIGNATURE_LENGTH def validate_is_real_number(value): """ Validate value is real number, does not allow Infinity, -Infinity, or NaN """ if ...
22.775
77
0.621295
085e2e2d1183d7a8d8ff16d13fa9c8c5a8d50b76
3,740
py
Python
src/streamlink/plugins/vk.py
zel4ever/streamlink
0e48e2f01a370fa83cabc27b067b6f72cd1b8d9d
[ "BSD-2-Clause" ]
1
2019-11-25T01:37:21.000Z
2019-11-25T01:37:21.000Z
src/streamlink/plugins/vk.py
zel4ever/streamlink
0e48e2f01a370fa83cabc27b067b6f72cd1b8d9d
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/plugins/vk.py
zel4ever/streamlink
0e48e2f01a370fa83cabc27b067b6f72cd1b8d9d
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import logging import re from streamlink.compat import urlparse, unquote from streamlink.plugin import Plugin from streamlink.plugin.api import http, useragents from streamlink.plugin.api.utils import itertags from streamlink.stream import HTTPStream, HLSStream from streamlink.utils import upda...
35.283019
114
0.540909
085e3a87336d315b74376dcd03e73e9815649a3f
9,299
py
Python
tuna/plugins/randomrestarts.py
russellnakamura/thetuna
0e445baf780fb65e1d92fe1344ebdf21bf81573c
[ "MIT" ]
null
null
null
tuna/plugins/randomrestarts.py
russellnakamura/thetuna
0e445baf780fb65e1d92fe1344ebdf21bf81573c
[ "MIT" ]
null
null
null
tuna/plugins/randomrestarts.py
russellnakamura/thetuna
0e445baf780fb65e1d92fe1344ebdf21bf81573c
[ "MIT" ]
null
null
null
# python standard library from collections import OrderedDict # third-party import numpy # this package from tuna.infrastructure import singletons from tuna import GLOBAL_NAME from base_plugin import BasePlugin from tuna.parts.storage.storageadapter import StorageAdapter from tuna.parts.storage.nullstorage import Nu...
40.606987
113
0.644693
085e63c69e1d739bf782b718934705a45adb6c07
5,612
py
Python
tests/token_cache_test.py
lsst-sqre/gafaelfawr
5d965e9d7901987ef041fd341637d75407b55227
[ "MIT" ]
null
null
null
tests/token_cache_test.py
lsst-sqre/gafaelfawr
5d965e9d7901987ef041fd341637d75407b55227
[ "MIT" ]
155
2020-05-29T17:21:13.000Z
2022-03-28T19:55:52.000Z
tests/token_cache_test.py
lsst-sqre/gafaelfawr
5d965e9d7901987ef041fd341637d75407b55227
[ "MIT" ]
3
2021-04-26T18:02:58.000Z
2022-02-03T01:29:13.000Z
"""Tests for the token cache dependency.""" from __future__ import annotations from datetime import timedelta from typing import TYPE_CHECKING import pytest from gafaelfawr.models.token import Token, TokenData, TokenType from gafaelfawr.storage.base import RedisStorage from gafaelfawr.storage.token import TokenRedi...
38.176871
79
0.724341
085e648b238a579fced04f0aba39e15cbee00436
7,401
py
Python
src/cryptoadvance/specter/server.py
bitcoin-eagle/specter-desktop
b6002a4927c6cb3680d889d50f589f0af25d5473
[ "MIT" ]
1
2020-06-05T06:10:40.000Z
2020-06-05T06:10:40.000Z
src/cryptoadvance/specter/server.py
bitcoin-eagle/specter-desktop
b6002a4927c6cb3680d889d50f589f0af25d5473
[ "MIT" ]
87
2020-06-11T20:42:08.000Z
2021-08-02T05:02:30.000Z
src/cryptoadvance/specter/server.py
bitcoin-eagle/specter-desktop
b6002a4927c6cb3680d889d50f589f0af25d5473
[ "MIT" ]
null
null
null
import logging import os import sys import secrets from pathlib import Path from dotenv import load_dotenv from flask import Flask, redirect, request, url_for, jsonify, session from flask_babel import Babel from flask_login import LoginManager, login_user from flask_wtf.csrf import CSRFProtect from cryptoadvance.spect...
33.640909
115
0.664235
085e68b371c8a105c76f34a5b171bab5949ac17d
3,991
py
Python
alipay/aop/api/request/AlipayMerchantWeikeInvoiceNotifyRequest.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/AlipayMerchantWeikeInvoiceNotifyRequest.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/AlipayMerchantWeikeInvoiceNotifyRequest.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.AlipayMerchantWeikeInvoiceNotifyModel import AlipayMerchantWeikeInvoiceNotifyModel class AlipayMerchantWeikeInvoiceNotifyRequest(obj...
27.524138
148
0.646455
085e84f349fea282206fafb5eb187fe2e6df010b
2,711
py
Python
components/gcp/automl/create_dataset_for_tables/component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/gcp/automl/create_dataset_for_tables/component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/gcp/automl/create_dataset_for_tables/component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2019 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
38.728571
168
0.710808
085eab019fbb5572f3d4756ef5dfabd44f05e311
1,565
py
Python
passrotate/providers/zotero.py
simon816/pass-rotate
2c133e736cb27cebf2d903f863722b685f4f76fc
[ "MIT" ]
null
null
null
passrotate/providers/zotero.py
simon816/pass-rotate
2c133e736cb27cebf2d903f863722b685f4f76fc
[ "MIT" ]
null
null
null
passrotate/providers/zotero.py
simon816/pass-rotate
2c133e736cb27cebf2d903f863722b685f4f76fc
[ "MIT" ]
null
null
null
from passrotate.provider import Provider, ProviderOption, register_provider import requests class Zotero(Provider): """ [zotero.org] username=Your Zotero username """ name = "Zotero" domains = [ "zotero.org", "www.zotero.org" ] options = { "username": ProviderOp...
30.096154
78
0.592332
085eb70647d17bdb700e166da0a5ab7360d40ced
18,945
py
Python
statey/registry.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
4
2021-02-16T19:34:38.000Z
2022-01-31T16:44:14.000Z
statey/registry.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
null
null
null
statey/registry.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
null
null
null
import abc import dataclasses as dc from functools import lru_cache from typing import Dict, Any, Optional, Callable, Sequence import pluggy from statey import exc, NS from statey.hooks import hookspec, create_plugin_manager, register_default_plugins from statey.syms import types, utils class Registry(abc.ABC): ...
32.551546
107
0.639905
085ec8e34b7e3f864efee1131beda900a7b9519f
6,246
py
Python
applications/plot_action_robust.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-19T11:46:48.000Z
2021-11-19T11:46:48.000Z
applications/plot_action_robust.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-22T07:48:03.000Z
2021-11-22T07:48:03.000Z
applications/plot_action_robust.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2022-03-26T10:18:01.000Z
2022-03-26T10:18:01.000Z
"""Python Script Template.""" import matplotlib.pyplot as plt import pandas as pd from applications.plotters import AXES, COLORS, LABELS, LINESTYLE, set_figure_params df = pd.read_json("action_robust.json") group = df.groupby(["environment", "kind", "agent", "config", "alpha"]) envs = df.environment.unique() def pl...
29.323944
85
0.68828
085eda3e2193269e83d68d8c93bb12e300dc9adf
1,502
py
Python
virtual/Lib/site-packages/jupyterlab_server/process_app.py
pjloveshiphop/s3_counter
f9855c855028f1c58c687adc3df3c0e56b000f21
[ "MIT" ]
3
2021-04-03T18:20:56.000Z
2021-09-09T17:44:46.000Z
virtual/Lib/site-packages/jupyterlab_server/process_app.py
pjloveshiphop/s3_counter
f9855c855028f1c58c687adc3df3c0e56b000f21
[ "MIT" ]
null
null
null
virtual/Lib/site-packages/jupyterlab_server/process_app.py
pjloveshiphop/s3_counter
f9855c855028f1c58c687adc3df3c0e56b000f21
[ "MIT" ]
3
2021-01-31T16:40:52.000Z
2021-08-29T18:32:34.000Z
# coding: utf-8 """A lab app that runs a sub process for a demo or a test.""" import sys from tornado.ioloop import IOLoop from traitlets import Bool from .server import ServerApp from .handlers import add_handlers, LabConfig from .process import Process from traitlets import Unicode from jupyter_server.extension.a...
28.884615
85
0.674434
085f010b0b2fc5cf6f329d681ec226d9c1c5c83c
3,647
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_08_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_08_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_08_01/_configuration.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 ...
49.283784
125
0.700027
085f3e2bd1f614f378fa23c3ab7221927dbb4353
316
py
Python
pydemic/models/metaclass.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
3
2020-05-10T23:52:41.000Z
2021-08-31T14:38:24.000Z
pydemic/models/metaclass.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-09-27T03:26:51.000Z
2022-03-30T12:18:08.000Z
pydemic/models/metaclass.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-10-01T04:07:39.000Z
2020-10-01T04:07:39.000Z
from abc import ABCMeta from ..mixins import Meta class ModelMeta(ABCMeta): """ Metaclass for model classes. """ meta: "Meta" def __init__(cls, name, bases, ns): meta = ns.pop("Meta", None) super().__init__(name, bases, ns) cls.meta = Meta.from_arguments(cls, meta)
17.555556
49
0.60443
085f5056bbd3f81cefe345e47538207faac49a04
1,702
py
Python
vespene/plugins/variables/pipelines.py
webknjaz/vespene
32e82ce37db33a106c0c58d50762f24a7c90bc2f
[ "Apache-2.0" ]
1
2019-01-26T12:05:45.000Z
2019-01-26T12:05:45.000Z
vespene/plugins/variables/pipelines.py
webknjaz/vespene
32e82ce37db33a106c0c58d50762f24a7c90bc2f
[ "Apache-2.0" ]
92
2019-06-03T18:52:41.000Z
2021-04-12T12:24:31.000Z
vespene/plugins/variables/pipelines.py
webknjaz/vespene
32e82ce37db33a106c0c58d50762f24a7c90bc2f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018, Michael DeHaan LLC # License: Apache License Version 2.0 + Commons Clause # ------------------------------------------------------------------------- # pipelines.py - this logic allows the variables output (see web pipeline docs) in # the build textual output to be used as input variables to futu...
41.512195
113
0.56698
085f61447e741c1ab13b7c044f967b97f1d023dd
4,415
py
Python
todoapp/tests/comment_test.py
compilers-ai/create-django-app
1b3e8b30bd8428f163788428b6c37aecfa406e07
[ "MIT" ]
70
2021-03-03T08:59:42.000Z
2022-01-10T14:02:28.000Z
todoapp/tests/comment_test.py
compilers-ai/create-django-app
1b3e8b30bd8428f163788428b6c37aecfa406e07
[ "MIT" ]
2
2021-03-12T22:29:56.000Z
2021-12-13T05:46:06.000Z
todoapp/tests/comment_test.py
imagineai/create-django-app
e34337bfb7f1719f011344f856a385b21f01062f
[ "MIT" ]
6
2021-03-06T08:28:29.000Z
2021-09-29T13:10:29.000Z
import json import factory from django.core import management from django.test import TestCase from django.urls import reverse from faker import Factory from rest_framework import status from rest_framework.test import APIClient from ..models import Comment from .factories import CommentFactory, TodoFactory from .uti...
41.261682
107
0.680861
085fa7eb1a809d20ac9d19333243099374b62219
8,917
py
Python
pyspeckit/spectrum/speclines/readcol.py
migueldvb/pyspeckit
fa7d875da7c684c8f6aaa3ba206ef3ff2e196652
[ "MIT", "BSD-3-Clause" ]
null
null
null
pyspeckit/spectrum/speclines/readcol.py
migueldvb/pyspeckit
fa7d875da7c684c8f6aaa3ba206ef3ff2e196652
[ "MIT", "BSD-3-Clause" ]
null
null
null
pyspeckit/spectrum/speclines/readcol.py
migueldvb/pyspeckit
fa7d875da7c684c8f6aaa3ba206ef3ff2e196652
[ "MIT", "BSD-3-Clause" ]
null
null
null
""" readcol.py by Adam Ginsburg (keflavich@gmail.com) readcol is meant to emulate IDL's readcol.pro, but is more capable and flexible. It is not a particularly "pythonic" program since it is not modular. For a modular ascii table reader, http://cxc.harvard.edu/contrib/asciitable/ is probably better. This single-func...
36.695473
86
0.596501
085fb667afac8104dedcbd402fd8043a2ac61b44
67,427
py
Python
S2SRL/libbots/metalearner_webqsp.py
DevinJake/MARL
cafbc0411ab70f68652029832cd65127d4be5f94
[ "MIT" ]
9
2020-04-29T00:49:59.000Z
2022-01-15T08:56:28.000Z
S2SRL/libbots/metalearner_webqsp.py
DevinJake/MARL
cafbc0411ab70f68652029832cd65127d4be5f94
[ "MIT" ]
1
2020-07-19T09:04:47.000Z
2020-10-08T12:23:03.000Z
S2SRL/libbots/metalearner_webqsp.py
DevinJake/MARL
cafbc0411ab70f68652029832cd65127d4be5f94
[ "MIT" ]
6
2020-07-19T09:01:05.000Z
2021-11-11T07:58:07.000Z
import torch from torch.nn.utils.convert_parameters import (vector_to_parameters, parameters_to_vector) from . import data, model, utils, retriever_webqsp, reparam_module, adabound import torch.optim as optim import torch.nn.functional as F import random import logging imp...
59.042907
290
0.635784
085fc12d3ebd2de3ad77abc660e9509f64668307
31,985
py
Python
salt/states/mount.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
1
2018-09-19T22:42:54.000Z
2018-09-19T22:42:54.000Z
salt/states/mount.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
null
null
null
salt/states/mount.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
1
2019-07-23T13:42:23.000Z
2019-07-23T13:42:23.000Z
# -*- coding: utf-8 -*- ''' Mounting of filesystems ======================= Mount any type of mountable filesystem with the mounted function: .. code-block:: yaml /mnt/sdb: mount.mounted: - device: /dev/sdb1 - fstype: ext4 - mkmnt: True - opts: - defaults /srv...
41.05905
132
0.488135
085fc1477e6cf99f1e85c7890502efc4afa69377
2,898
py
Python
plugins/blur_thumbnails/blur_thumbnails.py
fernanluis/fernanluis.github.io
eb063d40f2893fb9dd5b22662f343827aa6b157a
[ "MIT" ]
1
2021-02-15T12:19:44.000Z
2021-02-15T12:19:44.000Z
plugins/blur_thumbnails/blur_thumbnails.py
fernanluis/fernanluis.github.io
eb063d40f2893fb9dd5b22662f343827aa6b157a
[ "MIT" ]
null
null
null
plugins/blur_thumbnails/blur_thumbnails.py
fernanluis/fernanluis.github.io
eb063d40f2893fb9dd5b22662f343827aa6b157a
[ "MIT" ]
null
null
null
import os from pathlib import Path from pelican import signals from PIL import Image, ImageFilter # importación de la librería pillow, pero como es un fork mantiene el nombre original y se importa image ImageFilter # Function extracted from https://stackoverflow.com/a/19308592/7690767 def get_filepaths(directory, exte...
45.28125
235
0.717046
085fc2a58c85393b5b4831598054d6270dd89842
12,754
py
Python
scikit_posthocs/_outliers.py
maximtrp/scikit-posthocs
0f7991d30834746af7755d51a8f8f3242e02a52f
[ "MIT" ]
238
2017-12-29T07:57:53.000Z
2022-03-11T20:35:52.000Z
scikit_posthocs/_outliers.py
shenlong95/scikit-posthocs
59299cd21c254f9589074b21ce9fbab8a63f49c7
[ "MIT" ]
51
2017-12-26T23:47:54.000Z
2022-02-14T07:33:46.000Z
scikit_posthocs/_outliers.py
shenlong95/scikit-posthocs
59299cd21c254f9589074b21ce9fbab8a63f49c7
[ "MIT" ]
29
2018-03-13T12:04:53.000Z
2022-02-18T06:54:31.000Z
from typing import Union, List import numpy as np from scipy.stats import t def outliers_iqr( x: Union[List, np.ndarray], ret: str = 'filtered', coef: float = 1.5) -> np.ndarray: """Simple detection of potential outliers based on interquartile range (IQR). Data that lie within the lowe...
34.942466
84
0.54234
08601c5e6fde7a03f86746b4e7fbaca382d10d63
1,014
py
Python
plotly/tests/test_core/test_session/test_session.py
awesome-archive/plotly.py
0af4ef6abd0fe9907268d266304de630f94cda60
[ "MIT" ]
null
null
null
plotly/tests/test_core/test_session/test_session.py
awesome-archive/plotly.py
0af4ef6abd0fe9907268d266304de630f94cda60
[ "MIT" ]
null
null
null
plotly/tests/test_core/test_session/test_session.py
awesome-archive/plotly.py
0af4ef6abd0fe9907268d266304de630f94cda60
[ "MIT" ]
null
null
null
from __future__ import absolute_import from plotly.tests.utils import PlotlyTestCase from plotly.session import update_session_plot_options, SHARING_OPTIONS from plotly.exceptions import PlotlyError class TestSession(PlotlyTestCase): def test_update_session_plot_options_invalid_sharing_argument(self): ...
33.8
77
0.729783
08602bf938fef51883b51f27c75ea195bc01de11
1,859
py
Python
pyop4/opbase/opErrCtl.py
cindy0123/duty-util01
c582a7c5dfc6585e421b1b72b2876741b0839c95
[ "MIT" ]
null
null
null
pyop4/opbase/opErrCtl.py
cindy0123/duty-util01
c582a7c5dfc6585e421b1b72b2876741b0839c95
[ "MIT" ]
null
null
null
pyop4/opbase/opErrCtl.py
cindy0123/duty-util01
c582a7c5dfc6585e421b1b72b2876741b0839c95
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Tue Mar 7 12:58:54 2017 @author: marshals """ import re, os from opmsg import opmsg class opErrCtl(opmsg): def __init__(self, *args, **kwargs): super(opErrCtl, self).__init__(*args, **kwargs) pass def get_log_info(self, log_pa...
28.6
84
0.440022
08606f28c52d2778714e3f15875594997789ec04
3,287
py
Python
Core/View/Dialogs/date_dialog.py
UpBeatMan/Abschlussarbeit
e842df691bbfdf77cd1c41d9de00718166bb4e19
[ "MIT" ]
null
null
null
Core/View/Dialogs/date_dialog.py
UpBeatMan/Abschlussarbeit
e842df691bbfdf77cd1c41d9de00718166bb4e19
[ "MIT" ]
28
2021-06-20T17:39:00.000Z
2021-09-04T15:03:41.000Z
Core/View/Dialogs/date_dialog.py
UpBeatMan/Abschlussarbeit
e842df691bbfdf77cd1c41d9de00718166bb4e19
[ "MIT" ]
null
null
null
# ToolKit module import tkinter as tk # handles date and time values import datetime # calendar input widget from tkcalendar import DateEntry class DateDialog(tk.Toplevel): """DateDialog class opens a popup window""" def __init__(self, parent, controller): """run __init__ section at class instantiat...
34.968085
117
0.60937
08606f3af049a4ae69ceae8cddf0a9381e3aefe3
372
py
Python
demisto_sdk/commands/common/hook_validations/widget.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/hook_validations/widget.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/hook_validations/widget.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
from demisto_sdk.commands.common.hook_validations.content_entity_validator import \ ContentEntityValidator class WidgetValidator(ContentEntityValidator): def is_valid_version(self): """Return if version is valid. uses default method. Returns: True if version is valid, else False. ...
28.615385
83
0.709677
08607cf72a08e4465b79859c6410045d57b3404b
2,050
py
Python
Allura/allura/tests/functional/test_tool_list.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2017-07-31T23:13:58.000Z
2017-07-31T23:13:58.000Z
Allura/allura/tests/functional/test_tool_list.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
Allura/allura/tests/functional/test_tool_list.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "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 (t...
45.555556
76
0.650244
0860ab5d4818697acdbd25ed4c28e1c265813b62
449
py
Python
invenio_communities/version.py
max-moser/invenio-communities
cfdd6a8b36bf6856db4fd55123c832700eb32376
[ "MIT" ]
null
null
null
invenio_communities/version.py
max-moser/invenio-communities
cfdd6a8b36bf6856db4fd55123c832700eb32376
[ "MIT" ]
null
null
null
invenio_communities/version.py
max-moser/invenio-communities
cfdd6a8b36bf6856db4fd55123c832700eb32376
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2016-2021 CERN. # Copyright (C) 2022 Northwestern University. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Version information for Invenio-Comm...
26.411765
72
0.719376
0860d4c0150fbd5846a2f7a217133ae9ac0f5496
2,991
py
Python
modulemd/v2/tests/ModulemdTests/buildopts.py
AarushiSingh09/libmodulemd
707a59858252fe176759f75fe2851212b30f0b87
[ "MIT" ]
1
2019-03-12T05:36:55.000Z
2019-03-12T05:36:55.000Z
modulemd/v2/tests/ModulemdTests/buildopts.py
AarushiSingh09/libmodulemd
707a59858252fe176759f75fe2851212b30f0b87
[ "MIT" ]
null
null
null
modulemd/v2/tests/ModulemdTests/buildopts.py
AarushiSingh09/libmodulemd
707a59858252fe176759f75fe2851212b30f0b87
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # This file is part of libmodulemd # Copyright (C) 2018 Red Hat, Inc. # # Fedora-License-Identifier: MIT # SPDX-2.0-License-Identifier: MIT # SPDX-3.0-License-Identifier: MIT # # This program is free software. # For more information on the license, see COPYING. # For more information on free softwar...
28.759615
74
0.633902
086123fa1ab1baf891d8af7f851900660872dfeb
756
py
Python
algorithms/frog_river_one/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
algorithms/frog_river_one/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
algorithms/frog_river_one/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
def time_frog_jumps(other_side_position: int, leaf_positions: list) -> int: """ Returns the earliest time that a frog can jump to the other side of the river. Uses a Set to store unique values from leaf_positions[]. When the size equals to other_side_position, means the leaves have covered all positio...
34.363636
124
0.695767
08613fa9ac0c6600144923720ab7f546f5ea1740
1,523
py
Python
arjuna/interact/gui/dispatcher/driver/element_commands.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna/interact/gui/dispatcher/driver/element_commands.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna/interact/gui/dispatcher/driver/element_commands.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...
26.258621
74
0.699278
08614b7d88b9d663283f9715da18b75007c41642
6,667
py
Python
fractal_profile.py
martinjaymckee/python-visualize
fab69dcdebbf9cef2537c7cf7fb6245c5305ee51
[ "MIT" ]
null
null
null
fractal_profile.py
martinjaymckee/python-visualize
fab69dcdebbf9cef2537c7cf7fb6245c5305ee51
[ "MIT" ]
null
null
null
fractal_profile.py
martinjaymckee/python-visualize
fab69dcdebbf9cef2537c7cf7fb6245c5305ee51
[ "MIT" ]
null
null
null
import math import random import numpy as np # TODO: IMPROVE SLOPE ESTIMATES IN CYCLIC CASE class FractalProfile: @classmethod def Circular(cls, **kwargs): return FractalProfile(x_lims=(-math.pi, math.pi), cyclic=True, **kwargs) def __init__(self, ref_height=1, offset_height=0, num_peaks=10, le...
37.038889
222
0.565922
08615e7cb07f1a446051ff5686e10fb17f304dac
150
py
Python
LC/434.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/434.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/434.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def countSegments(self, s): """ :type s: str :rtype: int """ return len(s.split())
21.428571
31
0.473333
086189fdaaaccca27d699112d0d150486817a55d
359
py
Python
mlapp/utils/logger.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
33
2021-02-26T10:41:09.000Z
2021-11-07T12:35:32.000Z
mlapp/utils/logger.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
17
2021-03-04T15:37:21.000Z
2021-04-06T12:00:13.000Z
mlapp/utils/logger.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
9
2021-03-03T20:02:41.000Z
2021-10-05T13:03:56.000Z
import sys class Logger: def __init__(self, log, level, job_id): self.log = log self.level = level self.job_id = job_id def write(self, message): for line in message.rstrip().splitlines(): self.log.log(self.level, line.rstrip()) sys.__stdout__.write(messag...
18.894737
51
0.584958
0861a732b1bbfa08a179735f887c5e05ccdf81e5
598
py
Python
sharkdata_core/patterns.py
markusSMHI/sharkdata_py3
129a250e1729cfef10994f0778d1243a05f9cf8a
[ "MIT" ]
null
null
null
sharkdata_core/patterns.py
markusSMHI/sharkdata_py3
129a250e1729cfef10994f0778d1243a05f9cf8a
[ "MIT" ]
null
null
null
sharkdata_core/patterns.py
markusSMHI/sharkdata_py3
129a250e1729cfef10994f0778d1243a05f9cf8a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # Copyright (c) 2013-present SMHI, Swedish Meteorological and Hydrological Institute # License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit). def singleton(cls): """ This is an implementation of the Singleton pattern by using decora...
29.9
86
0.593645
0861b2e6d3de1c55f2fcb69d6f38263311cddac6
30,388
py
Python
endpoints/api/superuser.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
endpoints/api/superuser.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
endpoints/api/superuser.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
""" Superuser API. """ import logging import os import string import socket from datetime import datetime from random import SystemRandom from flask import request, make_response, jsonify import features from app import app, avatar, superusers, authentication, config_provider from auth import scopes from auth.auth_...
32.710441
100
0.597012
0861b41e1d5b19a0ac6dff6f75953c6db0a3f096
28,464
py
Python
python/spark_package/spark_package.py
brkyvz/spark-package-cmd-tool
c0452283b5cdd2acdcd3ec4d3baaa2c964df8741
[ "Apache-2.0" ]
3
2015-02-24T01:05:43.000Z
2016-04-15T23:59:44.000Z
python/spark_package/spark_package.py
brkyvz/spark-package-cmd-tool
c0452283b5cdd2acdcd3ec4d3baaa2c964df8741
[ "Apache-2.0" ]
null
null
null
python/spark_package/spark_package.py
brkyvz/spark-package-cmd-tool
c0452283b5cdd2acdcd3ec4d3baaa2c964df8741
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ This command line tool aims to provide users a clean interface to help them in developing new Spark Packages. Major functionalities provided by this tool: - init Set up an empty project with the standard template - zip Prepares the package for a release by creating a zip archive that includ...
42.803008
102
0.626792
0861c206247fbe90fdf3ebb589f0ac13ee250b9e
10,599
py
Python
onadata/apps/logger/models/xform.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
87
2015-02-10T23:36:28.000Z
2022-01-31T00:51:10.000Z
onadata/apps/logger/models/xform.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
443
2015-04-28T18:50:25.000Z
2022-03-31T03:29:43.000Z
onadata/apps/logger/models/xform.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
122
2015-01-13T16:27:44.000Z
2022-01-24T09:35:56.000Z
# coding: utf-8 import json import os import re from xml.sax import saxutils from django.conf import settings from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from django.core.files.storage import get_storage_class from django.urls import reverse from django.db import m...
35.096026
107
0.652986
0861d3622ffd42f3022318d88649d78612cf725e
654
py
Python
client/verta/verta/_swagger/_public/modeldb/model/ModeldbAddDatasetTags.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
835
2017-02-08T20:14:24.000Z
2020-03-12T17:37:49.000Z
client/verta/verta/_swagger/_public/modeldb/model/ModeldbAddDatasetTags.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
client/verta/verta/_swagger/_public/modeldb/model/ModeldbAddDatasetTags.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
170
2017-02-13T14:49:22.000Z
2020-02-19T17:59:12.000Z
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class ModeldbAddDatasetTags(BaseType): def __init__(self, id=None, tags=None): required = { "id": False, "tags": False, } self.id = id self.tags = tags for k, v in required.items(): if self...
21.8
62
0.597859
086215f90801d1b27e040070188feec0a3f371bd
18,039
py
Python
igep_model_test_wind.py
jieyu97/mvpp
838c2553825b2061f51008b5cbed19526424c2f5
[ "MIT" ]
null
null
null
igep_model_test_wind.py
jieyu97/mvpp
838c2553825b2061f51008b5cbed19526424c2f5
[ "MIT" ]
null
null
null
igep_model_test_wind.py
jieyu97/mvpp
838c2553825b2061f51008b5cbed19526424c2f5
[ "MIT" ]
null
null
null
from tensorflow import keras from tensorflow.keras import layers import numpy as np import tensorflow as tf import tensorflow.keras.backend as K from tensorflow.keras.models import Model from tensorflow.keras.losses import Loss import matplotlib.pyplot as plt import seaborn as sns sns.set() import pandas as pd from ...
41.660508
125
0.562005
08621b50b307ccd530e86b594e10ea0b8bedbcb2
2,633
py
Python
lewis_emulators/tpgx6x/device.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
2
2020-10-20T16:49:13.000Z
2021-02-19T10:41:44.000Z
lewis_emulators/tpgx6x/device.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
9
2019-03-22T15:35:15.000Z
2021-07-28T11:05:43.000Z
lewis_emulators/tpgx6x/device.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
1
2020-10-21T17:02:44.000Z
2020-10-21T17:02:44.000Z
from collections import OrderedDict from lewis.devices import StateMachineDevice from .states import DefaultState class SimulatedTpgx6x(StateMachineDevice): """ Simulated device for both the TPG26x and TPG36x. """ def _initialize_data(self): """ Sets the initial state of the device. ...
22.12605
73
0.564755