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
6220351241754dac13227e913d1aff5ac098bc97
9,769
py
Python
src/hyperka/ea_apps/util.py
StarLooo/HyperKA
fac6c5ae1727e1a20c9f84f627e68ad4e17ad2f1
[ "MIT" ]
null
null
null
src/hyperka/ea_apps/util.py
StarLooo/HyperKA
fac6c5ae1727e1a20c9f84f627e68ad4e17ad2f1
[ "MIT" ]
null
null
null
src/hyperka/ea_apps/util.py
StarLooo/HyperKA
fac6c5ae1727e1a20c9f84f627e68ad4e17ad2f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import scipy.sparse as sp import time import math import torch import torch.nn as nn def try_gpu(i=0): """如果存在,则返回gpu(i),否则返回cpu()。""" if torch.cuda.device_count() >= i + 1: return torch.device(f'cuda:{i}') return torch.device('cpu') def try_all_gpus():...
38.309804
120
0.652779
6220693a9aecbffda1afc0bb2058398ff472a770
18,708
py
Python
dnacentersdk/api/v1_2_10/non_fabric_wireless.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/api/v1_2_10/non_fabric_wireless.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/api/v1_2_10/non_fabric_wireless.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Non-Fabric Wireless API wrapper. Copyright (c) 2019-2020 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, in...
38.813278
78
0.573338
6220b83f8ea51b113340fc0798bc2cb505618a8e
7,296
py
Python
stanalysis/analysis.py
fengwanwan/st_analysis
24ef6326efce7ddb1d7cfe9497a6733e48da8331
[ "MIT" ]
4
2017-03-15T15:32:12.000Z
2020-12-09T08:03:14.000Z
stanalysis/analysis.py
Coke-Zhang/st_analysis
9ec446c0f1bff8e485f2016206b43dcdcf543119
[ "MIT" ]
1
2021-05-06T16:57:21.000Z
2021-05-06T16:58:38.000Z
stanalysis/analysis.py
Coke-Zhang/st_analysis
9ec446c0f1bff8e485f2016206b43dcdcf543119
[ "MIT" ]
4
2018-03-19T12:02:41.000Z
2019-12-13T08:41:07.000Z
""" Different functions for analysis of ST datasets """ from stanalysis.normalization import RimportLibrary from matplotlib.colors import LinearSegmentedColormap from matplotlib import colors as mpcolors from collections import Counter import multiprocessing import rpy2.robjects.packages as rpackages import rpy2.robjec...
40.988764
95
0.628564
6220dea3cde05567c53b452fe7c6d0ebf7753ce5
1,997
py
Python
pisces/io/mseed.py
samuelchodur/pisces
1545db9d8cb2f56ac77dc786909cbfcdd9e0bba4
[ "MIT" ]
12
2015-04-17T01:57:45.000Z
2020-05-22T22:54:47.000Z
pisces/io/mseed.py
samuelchodur/pisces
1545db9d8cb2f56ac77dc786909cbfcdd9e0bba4
[ "MIT" ]
26
2015-03-17T14:10:53.000Z
2019-06-13T13:08:30.000Z
pisces/io/mseed.py
samuelchodur/pisces
1545db9d8cb2f56ac77dc786909cbfcdd9e0bba4
[ "MIT" ]
9
2015-11-07T04:49:53.000Z
2019-04-07T05:13:45.000Z
def mseedhdr2tables(stats, wfdisc=None, site=None, sitechan=None, affiliation=None): """ Scrapes an ObsPy Stats header instance into various database table rows. If table classes are provided, filled class instances are returned, otherwise dicts are returned. Parameters ---------- stats :...
25.935065
85
0.57336
6220e1e155da2cfa124c21b4cfaa9719ce6568f7
7,477
py
Python
aurora/bag_transfer/test/test_rights.py
DLynch-Technology/aurora
92f4b61ae0cdaf6f7c5a35bbdfb68e5ee91f8c96
[ "MIT" ]
null
null
null
aurora/bag_transfer/test/test_rights.py
DLynch-Technology/aurora
92f4b61ae0cdaf6f7c5a35bbdfb68e5ee91f8c96
[ "MIT" ]
null
null
null
aurora/bag_transfer/test/test_rights.py
DLynch-Technology/aurora
92f4b61ae0cdaf6f7c5a35bbdfb68e5ee91f8c96
[ "MIT" ]
null
null
null
import random from django.test import TestCase, Client from django.conf import settings from django.urls import reverse from bag_transfer.test import helpers, setup from bag_transfer.rights.models import RightsStatement from bag_transfer.lib.bag_checker import bagChecker class RightsTestCase(TestCase): def setU...
39.560847
88
0.632339
6220e23f3aa44d59dd5b6938c16b82a8f8aecaa6
433
py
Python
src/cmp/cool_lang/ast/function_call_node.py
codestrange/cool-compiler-2020
30508965d75a1a1d1362d0b51bef8da3978fd0c2
[ "MIT" ]
3
2020-01-14T04:47:32.000Z
2020-09-10T17:57:20.000Z
src/cmp/cool_lang/ast/function_call_node.py
codestrange/cool-compiler-2020
30508965d75a1a1d1362d0b51bef8da3978fd0c2
[ "MIT" ]
5
2020-01-14T06:06:35.000Z
2020-02-19T01:01:33.000Z
src/cmp/cool_lang/ast/function_call_node.py
codestrange/cool-compiler-2020
30508965d75a1a1d1362d0b51bef8da3978fd0c2
[ "MIT" ]
3
2020-01-14T04:58:24.000Z
2020-01-14T16:23:41.000Z
from typing import List from .expresion_node import ExpressionNode class FunctionCallNode(ExpressionNode): def __init__(self, obj: ExpressionNode, idx: str, args: List[ExpressionNode], typex: str, line: int, column: int): super(FunctionCallNode, self).__init__(line, column) self.obj: ExpressionNod...
36.083333
118
0.69746
62213a32f7d6e3af24125276dea70501044d88cb
5,059
py
Python
backend/api/python_http_client/kfp_server_api/models/api_pipeline_runtime.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
backend/api/python_http_client/kfp_server_api/models/api_pipeline_runtime.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
backend/api/python_http_client/kfp_server_api/models/api_pipeline_runtime.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# coding: utf-8 """ Kubeflow Pipelines API This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import s...
33.503311
153
0.638268
6221577aa0ae4e1b9b18be5b682e68b37072e3d3
5,975
py
Python
bench/results.py
MESAProductSolutions/katcp-python-rta
54cbf1c9530035b1eff6fe2b04b4c307aaac4d1d
[ "BSD-3-Clause" ]
null
null
null
bench/results.py
MESAProductSolutions/katcp-python-rta
54cbf1c9530035b1eff6fe2b04b4c307aaac4d1d
[ "BSD-3-Clause" ]
null
null
null
bench/results.py
MESAProductSolutions/katcp-python-rta
54cbf1c9530035b1eff6fe2b04b4c307aaac4d1d
[ "BSD-3-Clause" ]
null
null
null
import math import json class Result(object): def __init__(self, scenario, interpreter, lib, result): self.scenario = scenario self.interpreter = interpreter self.lib = lib self.result = result results = [Result('scenario1', 'cpython 2.6.5', 'katcp', [(2875, 1), (...
112.735849
795
0.595481
622158c1db94c8d1b8b9d984e8f4b95a5ce7bc51
1,291
py
Python
binary_search.py
trishahanlon/algorithms-review
4e08938526020204d0a7f47982b46c05b0973636
[ "Apache-2.0" ]
null
null
null
binary_search.py
trishahanlon/algorithms-review
4e08938526020204d0a7f47982b46c05b0973636
[ "Apache-2.0" ]
null
null
null
binary_search.py
trishahanlon/algorithms-review
4e08938526020204d0a7f47982b46c05b0973636
[ "Apache-2.0" ]
null
null
null
def binary_search(target, nums): """See if target appears in nums""" # We think of floor_index and ceiling_index as "walls" around # the possible positions of our target so by -1 below we mean # to start our wall "to the left" of the 0th index # (we *don't* mean "the last index") floor_index = -...
35.861111
68
0.635167
622170b62821d1ec602654986e6e66321891d7e0
960
py
Python
photoshop/api/save_options/tag.py
loonghao/photoshop_python_api
f6796134845fb2b41d023b2085e678aeef822692
[ "MIT" ]
17
2019-03-01T12:09:37.000Z
2020-04-09T14:14:59.000Z
photoshop/api/save_options/tag.py
loonghao/photoshop_python_api
f6796134845fb2b41d023b2085e678aeef822692
[ "MIT" ]
7
2019-04-28T15:20:27.000Z
2020-04-07T19:14:47.000Z
photoshop/api/save_options/tag.py
loonghao/photoshop_python_api
f6796134845fb2b41d023b2085e678aeef822692
[ "MIT" ]
3
2020-02-28T14:27:11.000Z
2020-04-01T16:12:40.000Z
# Import local modules from photoshop.api._core import Photoshop from photoshop.api.enumerations import TargaBitsPerPixels class TargaSaveOptions(Photoshop): """Options for saving a document in TGA (Targa) format.""" object_name = "TargaSaveOptions" def __int__(self): super().__init__() @pr...
25.263158
85
0.694792
62219198195873df8f44d0f0023c6bf42c42b505
1,011
py
Python
pyminknow/tests/test_manager.py
cfblaeb/pyminknow
6d74add834822893dd91bac6b2518ba6a3810f1e
[ "MIT" ]
6
2020-04-23T13:45:39.000Z
2022-01-23T08:00:10.000Z
pyminknow/tests/test_manager.py
cfblaeb/pyminknow
6d74add834822893dd91bac6b2518ba6a3810f1e
[ "MIT" ]
1
2022-02-23T08:49:40.000Z
2022-02-23T08:49:40.000Z
pyminknow/tests/test_manager.py
cfblaeb/pyminknow
6d74add834822893dd91bac6b2518ba6a3810f1e
[ "MIT" ]
2
2021-02-24T02:37:51.000Z
2022-02-15T10:31:25.000Z
import unittest import pyminknow.config import minknow_api.manager class TestProtocolService(unittest.TestCase): """Test protocol service""" def setUp(self) -> None: """Initialise server""" # Don't use SSL certificates self.client = minknow_api.manager.Manager(use_tls=False) d...
31.59375
103
0.710188
622197da468b0a2998618be2d4950eb8ca397a8d
13,080
py
Python
azure/multiapi/storage/v2017_07_29/common/_deserialization.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
3
2019-02-21T20:46:26.000Z
2021-06-22T15:35:52.000Z
azure/multiapi/storage/v2017_07_29/common/_deserialization.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
11
2017-10-05T18:20:40.000Z
2020-10-10T09:20:19.000Z
azure/multiapi/storage/v2017_07_29/common/_deserialization.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
15
2017-10-02T18:48:20.000Z
2022-03-03T14:03:49.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from dateu...
36.232687
133
0.661162
6221d633fcd1759a4d0f249b316da897e1c29b3b
14,408
py
Python
tests/test_ec2/test_spot_fleet.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2018-01-29T14:50:38.000Z
2018-05-12T10:45:31.000Z
tests/test_ec2/test_spot_fleet.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2021-03-31T20:15:51.000Z
2021-12-13T20:50:52.000Z
tests/test_ec2/test_spot_fleet.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
12
2017-09-06T22:11:15.000Z
2021-05-28T17:22:31.000Z
from __future__ import unicode_literals import boto3 import sure # noqa from moto import mock_ec2 def get_subnet_id(conn): vpc = conn.create_vpc(CidrBlock="10.0.0.0/16")['Vpc'] subnet = conn.create_subnet( VpcId=vpc['VpcId'], CidrBlock='10.0.0.0/16', AvailabilityZone='us-east-1a')['Subnet'] sub...
37.134021
115
0.683579
6221e8881d3879ca2fee6b1f8900acca98da1cd3
1,402
py
Python
google/cloud/pubsublite/internal/wire/client_cache.py
LaudateCorpus1/python-pubsublite
f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd
[ "Apache-2.0" ]
15
2020-11-10T15:36:52.000Z
2022-03-06T15:00:25.000Z
google/cloud/pubsublite/internal/wire/client_cache.py
LaudateCorpus1/python-pubsublite
f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd
[ "Apache-2.0" ]
110
2020-11-11T18:14:31.000Z
2022-03-30T22:42:17.000Z
google/cloud/pubsublite/internal/wire/client_cache.py
LaudateCorpus1/python-pubsublite
f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd
[ "Apache-2.0" ]
6
2020-11-13T19:24:27.000Z
2022-01-29T08:13:14.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.604651
77
0.699001
6222046303c498e5ed9f987a56576283822937bb
730
py
Python
setup.py
jmackereth/pybolo
159a57043b40468fbc433d2d6a02cdf50a41b64a
[ "MIT" ]
null
null
null
setup.py
jmackereth/pybolo
159a57043b40468fbc433d2d6a02cdf50a41b64a
[ "MIT" ]
3
2020-04-07T09:11:07.000Z
2020-04-07T09:21:12.000Z
setup.py
jmackereth/pybolo
159a57043b40468fbc433d2d6a02cdf50a41b64a
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="pybolo-jmackereth", # Replace with your own username version="0.0.1", author="Example Author", author_email="tedmackereth@gmail.com", description="A simple python interface for Luca Casagr...
31.73913
89
0.684932
622206fa9057a3920ab460e9cbce5052b8dac681
14,174
py
Python
networks/convlstm_networks/results/convlstm_results/reconstruct/reconstruct_predictions_from_full_ims_fixed_label.py
DiMorten/FCN_ConvLSTM_Crop_Recognition_Generalized
2749c90fab6c3854c380f6bca945dd4e99c17239
[ "Apache-2.0" ]
null
null
null
networks/convlstm_networks/results/convlstm_results/reconstruct/reconstruct_predictions_from_full_ims_fixed_label.py
DiMorten/FCN_ConvLSTM_Crop_Recognition_Generalized
2749c90fab6c3854c380f6bca945dd4e99c17239
[ "Apache-2.0" ]
null
null
null
networks/convlstm_networks/results/convlstm_results/reconstruct/reconstruct_predictions_from_full_ims_fixed_label.py
DiMorten/FCN_ConvLSTM_Crop_Recognition_Generalized
2749c90fab6c3854c380f6bca945dd4e99c17239
[ "Apache-2.0" ]
null
null
null
import numpy as np import cv2 import glob import argparse import pdb import sys #sys.path.append('../../../../../train_src/analysis/') import pathlib from PredictionsLoader import PredictionsLoaderNPY, PredictionsLoaderModel from utils import seq_add_padding, add_padding import pdb sys.path.append('../../../train_src...
32.213636
132
0.742698
62222228dd5dbbd1a9b8baca401a308e9087bee1
7,561
py
Python
salt/modules/pkg_resource.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
1
2020-06-16T05:47:58.000Z
2020-06-16T05:47:58.000Z
salt/modules/pkg_resource.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/modules/pkg_resource.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Resources needed by pkg providers ''' # Import python libs import fnmatch import logging import pprint # Import third party libs import yaml # Import salt libs import salt.utils from salt._compat import string_types log = logging.getLogger(__name__) __SUFFIX_NOT_NEEDED = ('x86_64', 'noar...
28.532075
99
0.593837
62224e91e035d0bb95958489e971ca7255aa8b09
22,646
py
Python
behavior_tree_learning/behavior_tree.py
matiov/learn-BTs-with-GP
4df54f47c5e03c83eff6ee4375b3cc30d74a8308
[ "Apache-2.0" ]
10
2021-03-18T20:00:10.000Z
2022-03-14T10:07:54.000Z
behavior_tree_learning/behavior_tree.py
matiov/learn_BTs_with_GP
4df54f47c5e03c83eff6ee4375b3cc30d74a8308
[ "Apache-2.0" ]
null
null
null
behavior_tree_learning/behavior_tree.py
matiov/learn_BTs_with_GP
4df54f47c5e03c83eff6ee4375b3cc30d74a8308
[ "Apache-2.0" ]
5
2021-05-15T06:06:33.000Z
2022-03-04T09:51:54.000Z
#!/usr/bin/env python3 # pylint: disable=global-at-module-level, global-statement, global-variable-undefined """ Class for handling string representations of behavior trees """ import random import yaml """ Below are lists of the possible node types """ global FALLBACK_NODES """ A list of all types of fallback nodes u...
34.521341
121
0.558377
6222a342a780dcb7f5b4df63992d4bd045f36e39
1,457
py
Python
allennlp/models/__init__.py
danyaljj/allennlp
5846855d363df8f84d0a12bc6867ac66f539c2a3
[ "Apache-2.0" ]
21
2019-03-11T13:39:05.000Z
2021-11-02T11:43:32.000Z
allennlp/models/__init__.py
danyaljj/allennlp
5846855d363df8f84d0a12bc6867ac66f539c2a3
[ "Apache-2.0" ]
8
2020-01-28T22:40:24.000Z
2021-08-25T15:30:18.000Z
allennlp/models/__init__.py
danyaljj/allennlp
5846855d363df8f84d0a12bc6867ac66f539c2a3
[ "Apache-2.0" ]
4
2019-11-04T07:21:49.000Z
2022-03-01T14:59:14.000Z
""" These submodules contain the classes for AllenNLP models, all of which are subclasses of :class:`~allennlp.models.model.Model`. """ from allennlp.models.model import Model from allennlp.models.archival import archive_model, load_archive, Archive from allennlp.models.biattentive_classification_network import Biatte...
63.347826
114
0.896362
6222b82ed22f73392c70849dd83a311a7b04fab0
19,096
py
Python
kats/tests/utils/test_decomposition.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
kats/tests/utils/test_decomposition.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
kats/tests/utils/test_decomposition.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from datetime import datetime, timedelta from unittest import TestCase import numpy as np import pandas as pd from kats.con...
34.656987
87
0.542731
6222bf5e6710cde72d0eb381cf704cced06fb1cd
11,030
py
Python
torch_rl/memory/sequential.py
JimmyMVP/plain_rl
4780f05fffb62533a339197b49de487cdc9d9954
[ "MIT" ]
10
2018-03-18T21:27:59.000Z
2020-08-13T20:15:05.000Z
torch_rl/memory/sequential.py
JimmyMVP/plain_rl
4780f05fffb62533a339197b49de487cdc9d9954
[ "MIT" ]
1
2018-03-19T09:51:04.000Z
2018-03-19T10:11:02.000Z
torch_rl/memory/sequential.py
JimmyMVP/plain_rl
4780f05fffb62533a339197b49de487cdc9d9954
[ "MIT" ]
3
2018-03-10T09:17:10.000Z
2019-12-17T20:19:56.000Z
from torch_rl.memory.core import * class SequentialMemory(Memory): def __init__(self, limit, **kwargs): super(SequentialMemory, self).__init__(**kwargs) self.limit = limit # Do not use deque to implement the memory. This data structure may seem convenient but # it is way too slow ...
46.150628
108
0.623572
62231ddb96b9e6821f592b0f298674db20b4ed49
1,924
py
Python
src/zsl_jwt/auth/module.py
AtteqCom/zsl_jwt
e1a81b756805b8d4d1ce371a562bc4c003d88df9
[ "BSD-2-Clause" ]
null
null
null
src/zsl_jwt/auth/module.py
AtteqCom/zsl_jwt
e1a81b756805b8d4d1ce371a562bc4c003d88df9
[ "BSD-2-Clause" ]
null
null
null
src/zsl_jwt/auth/module.py
AtteqCom/zsl_jwt
e1a81b756805b8d4d1ce371a562bc4c003d88df9
[ "BSD-2-Clause" ]
null
null
null
""" :mod:`zsl_jwt.auth.module` -------------------------- This ZSL module reads the auth configuration and provides :class:`zsl_jwt.auth.configuration.AuthConfiguration` and an instance of :class:`zsl_jwt.auth.service.AuthenticationService`. """ from __future__ import absolute_import from __future__ import division f...
30.539683
81
0.731289
622329cd794de14c9e13bde884d0f081b106cd02
5,263
py
Python
toontown/quest/QuestMapGlobals.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/quest/QuestMapGlobals.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/quest/QuestMapGlobals.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from pandac.PandaModules import Point3 CogInfoPosTable = {'toontown_central_2100_english': Point3(-0.3, 0, -0.2), 'toontown_central_2200_english': Point3(0.2, 0, -0.2), 'toontown_central_2300_english': Point3(0.35, 0, -0.2), 'minnies_melody_land_4100_english': Point3(0.45, 0, -0.2), 'minnies_melody_land_4200_englis...
71.121622
121
0.733992
62233205d80be68de31301d0f47f244a5898592d
1,671
py
Python
Scripts/split_csv.py
joaohenggeler/software-vulnerability-collection-scripts
4719f8c279ebd6b879b7d8bce2a2789cd28c6929
[ "Apache-2.0" ]
null
null
null
Scripts/split_csv.py
joaohenggeler/software-vulnerability-collection-scripts
4719f8c279ebd6b879b7d8bce2a2789cd28c6929
[ "Apache-2.0" ]
null
null
null
Scripts/split_csv.py
joaohenggeler/software-vulnerability-collection-scripts
4719f8c279ebd6b879b7d8bce2a2789cd28c6929
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ This script splits a CSV file into multiple ones. """ from argparse import ArgumentParser from math import ceil import pandas as pd # type: ignore from modules.common import log, replace_in_filename ########################################################################################...
35.553191
145
0.714542
622333b4a0bc47d338e8c58e6701eaaa353ecf52
616
py
Python
examples/PythonAPI/ipPools.py
iamjarvs/apstraGo
68cc8f1c8b325abd00adc61d93eba0fc3b1f2bb5
[ "MIT" ]
4
2021-02-02T17:57:37.000Z
2021-06-26T23:09:59.000Z
examples/PythonAPI/ipPools.py
iamjarvs/apstraGo
68cc8f1c8b325abd00adc61d93eba0fc3b1f2bb5
[ "MIT" ]
null
null
null
examples/PythonAPI/ipPools.py
iamjarvs/apstraGo
68cc8f1c8b325abd00adc61d93eba0fc3b1f2bb5
[ "MIT" ]
2
2021-02-02T19:47:40.000Z
2021-02-03T18:47:42.000Z
from apstraGo.apstraClass import apstra def main(): """This funtion perfoms a login & creates, shows and deletes an IP pool """ con = apstra() #Login and get API token con.login(password='admin', username='admin', port=443, address='192.168.1.81') #Print API Token print(con.apiTo...
22.814815
83
0.659091
62235403ff805f2fcb814199beb1a3ae651953fa
1,927
py
Python
xos/core/xoslib/methods/sshkeys.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/core/xoslib/methods/sshkeys.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/core/xoslib/methods/sshkeys.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.reverse import reverse from rest_framework import serializers from rest_framework import generics from rest_framework.views import APIView from core.models import * from django.forms import widgets from djang...
34.410714
77
0.653347
62236a9089c8bd91efda5429f41818cf003c40db
62,997
py
Python
nova/exception.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/exception.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/exception.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
29.355545
79
0.691446
62238e7256ad2018f5d8c65da4537931064f1ebc
4,327
py
Python
tests/test_keyring.py
umr-ds/pyserval
073363ee56754f122d5b09544f242d54a17165e3
[ "MIT" ]
1
2017-08-29T19:37:31.000Z
2017-08-29T19:37:31.000Z
tests/test_keyring.py
umr-ds/pyserval
073363ee56754f122d5b09544f242d54a17165e3
[ "MIT" ]
16
2017-11-29T16:41:35.000Z
2019-09-30T13:44:10.000Z
tests/test_keyring.py
umr-ds/pyserval
073363ee56754f122d5b09544f242d54a17165e3
[ "MIT" ]
1
2017-08-20T21:51:52.000Z
2017-08-20T21:51:52.000Z
"""Tests for pyserval.keyring""" import random from hypothesis import given from hypothesis.strategies import text, characters, sampled_from, integers, booleans from pyserval.keyring import ServalIdentity from tests.custom_strategies import unicode_printable names = ( text(characters(blacklist_categories=("Cc", ...
27.737179
84
0.68477
6223a3ffd73c8bfde61e4ee863686b145f289cf7
1,063
py
Python
setup.py
blue-yonder/urlquote
e66846e1bcca2f2c7b6891821eb0a0111bf3ffe9
[ "MIT" ]
16
2018-08-14T21:17:00.000Z
2022-01-21T02:39:47.000Z
setup.py
blue-yonder/urlquote
e66846e1bcca2f2c7b6891821eb0a0111bf3ffe9
[ "MIT" ]
1
2021-10-09T22:19:35.000Z
2021-10-10T12:59:17.000Z
setup.py
blue-yonder/urlquote
e66846e1bcca2f2c7b6891821eb0a0111bf3ffe9
[ "MIT" ]
4
2018-11-21T16:31:46.000Z
2021-08-21T11:06:52.000Z
from setuptools import setup def build_native(spec): # build rust library build = spec.add_external_build( cmd=['cargo', 'build', '--release'], path='.' ) spec.add_cffi_module( module_path='urlquote._native', dylib=lambda: build.find_dylib('urlquote', in_path='target/re...
27.25641
80
0.642521
62240b85405262950015f89d164125da1d177850
8,208
py
Python
awsf/aws_decode_run_json.py
HubBucket-Team/tibanna
ef90a0217243071791d50e35fbdfe67ceef5a219
[ "MIT" ]
1
2019-05-01T03:44:01.000Z
2019-05-01T03:44:01.000Z
awsf/aws_decode_run_json.py
VonRosenchild/tibanna
ef90a0217243071791d50e35fbdfe67ceef5a219
[ "MIT" ]
null
null
null
awsf/aws_decode_run_json.py
VonRosenchild/tibanna
ef90a0217243071791d50e35fbdfe67ceef5a219
[ "MIT" ]
1
2019-05-01T03:44:02.000Z
2019-05-01T03:44:02.000Z
#!/usr/bin/python import json import sys downloadlist_filename = "download_command_list.txt" input_yml_filename = "inputs.yml" env_filename = "env_command_list.txt" INPUT_DIR = "/data1/input" def main(): # read json file with open(sys.argv[1], 'r') as json_file: Dict = json.load(json_file) Di...
46.902857
120
0.517544
62241ac3d18ffd08ab06953281edd1badd27b753
402
py
Python
MFAEngine/config/wsgi.py
justicevR/mfa_authentication_factor_v0.1
b7302904c3eaa00801ca4d78fb47797b16427ad4
[ "MIT" ]
null
null
null
MFAEngine/config/wsgi.py
justicevR/mfa_authentication_factor_v0.1
b7302904c3eaa00801ca4d78fb47797b16427ad4
[ "MIT" ]
null
null
null
MFAEngine/config/wsgi.py
justicevR/mfa_authentication_factor_v0.1
b7302904c3eaa00801ca4d78fb47797b16427ad4
[ "MIT" ]
null
null
null
""" WSGI config for MFAServer project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
23.647059
78
0.788557
62241bdcfc3b670d3119e0423272eb93aa6d359c
8,404
py
Python
tests/test_main.py
fkantelberg/vault-recovery
274e0cec98dcec223829e233a96767c715236acd
[ "MIT" ]
null
null
null
tests/test_main.py
fkantelberg/vault-recovery
274e0cec98dcec223829e233a96767c715236acd
[ "MIT" ]
null
null
null
tests/test_main.py
fkantelberg/vault-recovery
274e0cec98dcec223829e233a96767c715236acd
[ "MIT" ]
null
null
null
import json import os from tempfile import NamedTemporaryFile, TemporaryDirectory from unittest.mock import MagicMock, patch import pytest from vault import Vault from vault import __main__ as main from vault import utils from . import example @pytest.fixture def vault(): return Vault(verbose=True) @pytest.f...
32.700389
87
0.650405
6224394c10956c0b4713dd810f3d7ecfa71b17ac
889
py
Python
scripts/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
scripts/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
scripts/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2020 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
40.409091
80
0.592801
622444024a2886992b0da32ebbaed1e459567b29
9,050
py
Python
kitchen/dashboard/graphs.py
tobami/kitchen
a87f55b559649c84d1f57bde480a94e35edf425b
[ "Apache-2.0" ]
1
2020-02-10T14:42:05.000Z
2020-02-10T14:42:05.000Z
kitchen/dashboard/graphs.py
tobami/kitchen
a87f55b559649c84d1f57bde480a94e35edf425b
[ "Apache-2.0" ]
null
null
null
kitchen/dashboard/graphs.py
tobami/kitchen
a87f55b559649c84d1f57bde480a94e35edf425b
[ "Apache-2.0" ]
null
null
null
"""Facility to render node graphs using pydot""" import os import subprocess import tempfile import threading import pydot from logbook import Logger from kitchen.settings import STATIC_ROOT, REPO, COLORS from kitchen.backends.lchef import get_role_groups log = Logger(__name__) def _build_links(nodes): """Retu...
32.909091
79
0.542652
62244e40f143b5e4cf56858afed5e2bc61cd2ad2
5,786
py
Python
auth/registry_jwt_auth.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
1
2020-10-16T19:30:41.000Z
2020-10-16T19:30:41.000Z
auth/registry_jwt_auth.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
15
2020-06-18T15:32:06.000Z
2022-03-03T23:06:24.000Z
auth/registry_jwt_auth.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
import logging from functools import wraps from jsonschema import validate, ValidationError from flask import request, url_for from flask_principal import identity_changed, Identity from app import app, get_app_url, instance_keys from auth.auth_context import set_authenticated_context from auth.auth_context_type imp...
34.236686
98
0.618389
622460281f36504f27f85cecb909491e9388814e
1,405
py
Python
Part3/scripts/reports.py
ProgZone/it-cert-automation-project
e81a89cf2cb12154302cea102405ab31b50a3f11
[ "Apache-2.0" ]
14
2020-04-14T18:24:59.000Z
2022-03-21T17:35:40.000Z
Part3/scripts/reports.py
ProgZone/it-cert-automation-project
e81a89cf2cb12154302cea102405ab31b50a3f11
[ "Apache-2.0" ]
1
2020-09-30T20:23:13.000Z
2020-09-30T20:23:13.000Z
Part3/scripts/reports.py
ProgZone/it-cert-automation-project
e81a89cf2cb12154302cea102405ab31b50a3f11
[ "Apache-2.0" ]
16
2020-04-20T13:43:40.000Z
2022-03-13T10:07:06.000Z
#!/usr/bin/env python3 # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
41.323529
81
0.730249
6224894a23b656cd358b2802702574caf498ec6c
925
py
Python
Util/ID_Setup.py
xzhang-wr/DAnTE_V2
8b433973aa5ab47ef237d8dfaca6232a6d9f526b
[ "Apache-2.0" ]
null
null
null
Util/ID_Setup.py
xzhang-wr/DAnTE_V2
8b433973aa5ab47ef237d8dfaca6232a6d9f526b
[ "Apache-2.0" ]
null
null
null
Util/ID_Setup.py
xzhang-wr/DAnTE_V2
8b433973aa5ab47ef237d8dfaca6232a6d9f526b
[ "Apache-2.0" ]
null
null
null
#!usr/bin/env python __author__ = "Xiaoguang Zhang" __email__ = "xzhang@westwoodrobotics.net" __copyright__ = "Copyright 2020 Westwood Robotics" __date__ = "Jan 8, 2020" __version__ = "0.1.0" __status__ = "Beta" # ----------------------------- # Simple code to set ID for BEAR from pybear import Manager bear = Manage...
33.035714
93
0.676757
62249e0fb1e9f3dac0b72a8a953b9a7522a11ebe
11,044
py
Python
tests/components/august/mocks.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
tests/components/august/mocks.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
6
2021-02-08T20:54:31.000Z
2022-03-12T00:50:43.000Z
tests/components/august/mocks.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""Mocks for the august component.""" import json import os import time from asynctest import mock from asynctest.mock import CoroutineMock, MagicMock, PropertyMock from august.activity import ( ACTIVITY_ACTIONS_DOOR_OPERATION, ACTIVITY_ACTIONS_DOORBELL_DING, ACTIVITY_ACTIONS_DOORBELL_MOTION, ACTIVITY_...
33.568389
88
0.706537
6224d016bc08edf55555506d5591fa94c39d25f2
9,839
py
Python
cadnano/views/pathview/tools/modstool.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2022-03-27T14:37:32.000Z
2022-03-27T14:37:32.000Z
cadnano/views/pathview/tools/modstool.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
null
null
null
cadnano/views/pathview/tools/modstool.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2021-01-22T02:29:38.000Z
2021-01-22T02:29:38.000Z
"""Summary """ from PyQt5.QtWidgets import QDialogButtonBox, QDialog, QPushButton from cadnano.extras.sequencemods import mods from cadnano.gui.dialogs.ui_mods import Ui_ModsDialog from .abstractpathtool import AbstractPathTool def _fromUtf8(s): """Summary Args: s (TYPE): Description Returns: ...
29.370149
88
0.584917
6225019f1a397ddda063628989dd99dd5914a371
5,088
py
Python
infra/services/lkgr_finder/status_generator.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
infra/services/lkgr_finder/status_generator.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
16
2020-09-07T11:55:09.000Z
2022-03-02T05:47:58.000Z
infra/services/lkgr_finder/status_generator.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Status generators to have easy views of lkgr_finder's internals.""" import textwrap import urllib from infra.services.lkgr_finder.lkgr_lib import S...
33.038961
82
0.626179
6225106e4089bb15b9eb3430e86735f0d01e9d87
1,229
py
Python
talks-articles/reference/algorithms/kadane.py
abhishekkr/tutorials_as_code
f355dc62a5025b710ac6d4a6ac2f9610265fad54
[ "MIT" ]
37
2015-02-01T23:16:39.000Z
2021-12-22T16:50:48.000Z
talks-articles/reference/algorithms/kadane.py
abhishekkr/tutorials_as_code
f355dc62a5025b710ac6d4a6ac2f9610265fad54
[ "MIT" ]
1
2017-03-02T04:55:48.000Z
2018-01-14T10:51:11.000Z
talks-articles/reference/algorithms/kadane.py
abhishekkr/tutorials_as_code
f355dc62a5025b710ac6d4a6ac2f9610265fad54
[ "MIT" ]
15
2015-03-02T08:09:01.000Z
2021-06-10T03:25:41.000Z
#!/usr/bin/env python """ To find sub-array with a property from an array https://en.wikipedia.org/wiki/Maximum_subarray_problem#Kadane's_algorithm """ def max_kadane(a, b_array): new_sum = a + sum(b_array) if a > new_sum: return [a] return b_array + [a] def check_sum_kadane(max_current, max_gl...
33.216216
84
0.699756
622535246551e60dd80f89562980a95b530206a2
5,098
py
Python
db-explore.py
groboclown/music-uploader
d73ad811324027f2d1d4292eaa599709f3600b56
[ "MIT" ]
null
null
null
db-explore.py
groboclown/music-uploader
d73ad811324027f2d1d4292eaa599709f3600b56
[ "MIT" ]
null
null
null
db-explore.py
groboclown/music-uploader
d73ad811324027f2d1d4292eaa599709f3600b56
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os import sys from convertmusic.db import get_history from convertmusic.cmd import ( Cmd, std_main, OUTPUT ) class CmdInfo(Cmd): def __init__(self): self.name = 'info' self.desc = 'Information about a single media file.' self.help = ''' Usage: info (source...
32.062893
91
0.551785
62255fb45bcd5440391231d6cfff33afaaed7e0d
1,095
py
Python
mi/dataset/driver/adcpt_acfgm/dcl/pd0/test/test_adcpt_acfgm_dcl_pd0_recovered_driver.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/driver/adcpt_acfgm/dcl/pd0/test/test_adcpt_acfgm_dcl_pd0_recovered_driver.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/driver/adcpt_acfgm/dcl/pd0/test/test_adcpt_acfgm_dcl_pd0_recovered_driver.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python __author__ = 'Jeff Roy' from mi.core.log import get_logger log = get_logger() from mi.idk.config import Config import unittest import os from mi.dataset.driver.adcpt_acfgm.dcl.pd0.adcpt_acfgm_dcl_pd0_recovered_driver import parse from mi.dataset.dataset_driver import ParticleDataHandler cla...
26.071429
99
0.668493
622561f1460005a68882c7694421e127bfac5e43
6,541
py
Python
visage/detect_features.py
dyln/visage
6004b71e344cc4ad8bf61cfa429b9650a384de05
[ "MIT" ]
null
null
null
visage/detect_features.py
dyln/visage
6004b71e344cc4ad8bf61cfa429b9650a384de05
[ "MIT" ]
null
null
null
visage/detect_features.py
dyln/visage
6004b71e344cc4ad8bf61cfa429b9650a384de05
[ "MIT" ]
null
null
null
""" Created on Mon Mar 20 12:28:21 2017 @author: Hriddhi Dey This module contains the DetectLandmark class. """ import os.path import sys from urllib import urlretrieve import cv2 import dlib import numpy PREDICTOR_PATH = "shape_predictor_68_face_landmarks.dat" CASC_PATH = "haarcascade_frontalface_default.xml" cla...
35.743169
126
0.581715
62257bc385c0f878359f6b06479e6bba62ad09fb
2,154
py
Python
test/BribeNet/bribery/temporal/test_influentialBriber.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
test/BribeNet/bribery/temporal/test_influentialBriber.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
test/BribeNet/bribery/temporal/test_influentialBriber.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
from BribeNet.bribery.temporal.influentialNodeBriber import InfluentialNodeBriber from BribeNet.graph.temporal.noCustomerActionGraph import NoCustomerActionGraph from test.BribeNet.bribery.temporal.briberTestCase import BriberTestCase from unittest.mock import MagicMock class TestInfluentialBriber(BriberTestCase): ...
40.641509
81
0.697772
62259d392a50315f257f06d6cccbffc86b1f7014
7,331
py
Python
src/libnbnotify/plugins/facenotify.py
webnull/nbnotify
54f7d0db0656053680466537aeba35f348147830
[ "Python-2.0", "OLDAP-2.7" ]
1
2015-12-03T06:41:23.000Z
2015-12-03T06:41:23.000Z
src/libnbnotify/plugins/facenotify.py
webnull/nbnotify
54f7d0db0656053680466537aeba35f348147830
[ "Python-2.0", "OLDAP-2.7" ]
2
2019-03-02T08:02:34.000Z
2019-03-02T08:02:47.000Z
src/libnbnotify/plugins/facenotify.py
webnull/nbnotify
54f7d0db0656053680466537aeba35f348147830
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
#-*- coding: utf-8 -*- import libnbnotify import BeautifulSoup import hashlib import os import httplib import urllib import urlparse import re import json #import time PluginInfo = {'Requirements' : { 'OS' : 'All'}, 'API': 2, 'Authors': 'webnull', 'domain': '', 'type': 'extension', 'isPlugin': False, 'Description': 'F...
41.891429
174
0.484381
6225bfa79247a76905cf5d3a0fa6691a52508394
2,740
py
Python
hash_table/hash_table.py
supreeth-c/coding-interview-questions
a3ee947c6507a6e49267416e322c81e62e37359a
[ "MIT" ]
null
null
null
hash_table/hash_table.py
supreeth-c/coding-interview-questions
a3ee947c6507a6e49267416e322c81e62e37359a
[ "MIT" ]
null
null
null
hash_table/hash_table.py
supreeth-c/coding-interview-questions
a3ee947c6507a6e49267416e322c81e62e37359a
[ "MIT" ]
null
null
null
""" Hash tables are a type of data structure in which the address or the index value of the data element is generated from a hash function. That makes accessing the data faster as the index value behaves as a key for the data value. In other words Hash table stores key-value pairs but the key is generated through a ha...
30.10989
194
0.674088
6225f0f56ede2c9c54d63717d10f0b902006ff73
1,894
py
Python
twitoff/twitter.py
damerei/Twitoff
d3e4e7d250959c8f0aff1efe2e4e0ee13091defd
[ "MIT" ]
null
null
null
twitoff/twitter.py
damerei/Twitoff
d3e4e7d250959c8f0aff1efe2e4e0ee13091defd
[ "MIT" ]
4
2021-03-19T01:33:00.000Z
2022-01-13T01:20:32.000Z
twitoff/twitter.py
damerei/Twitoff
d3e4e7d250959c8f0aff1efe2e4e0ee13091defd
[ "MIT" ]
null
null
null
"""Retrieve tweets, embeddings, and persist in database""" #!/usr/bin/env python3 import tweepy from decouple import config from .models import DB, Tweet, User TWITTER_AUTH = tweepy.OAuthHandler(config('TWITTER_CONSUMER_KEY'), config('TWITTER_CONSUMER_SECRET')) TWITTER_AUTH.set.acce...
39.458333
81
0.635692
622600f2cff765b454e55caf49f133839f3217e6
1,906
py
Python
tests/transformation_tests/functions_tests/tonalfunctions_tests/test_tonality_permutation_function.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
1
2021-05-06T19:45:54.000Z
2021-05-06T19:45:54.000Z
tests/transformation_tests/functions_tests/tonalfunctions_tests/test_tonality_permutation_function.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
tests/transformation_tests/functions_tests/tonalfunctions_tests/test_tonality_permutation_function.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
import logging import sys import unittest from transformation.functions.tonalfunctions.tonality_permutation_function import TonalityPermutationFunction from tonalmodel.diatonic_tone import DiatonicTone from tonalmodel.diatonic_tone_cache import DiatonicToneCache from tonalmodel.modality import ModalityType from tonal...
38.897959
109
0.712487
622627513f33227800caafd4c4a66edd27969316
15,260
py
Python
convexified-gnn/learner/cx_graph_filter_torch.py
saarcohen30/convexified-gnn
29c9cced043fc494fe7eb4296d264ef6d0e6b570
[ "MIT" ]
2
2021-08-29T10:06:01.000Z
2022-03-21T02:59:00.000Z
convexified-gnn/learner/cx_graph_filter_torch.py
saarcohen30/convexified-gnn
29c9cced043fc494fe7eb4296d264ef6d0e6b570
[ "MIT" ]
null
null
null
convexified-gnn/learner/cx_graph_filter_torch.py
saarcohen30/convexified-gnn
29c9cced043fc494fe7eb4296d264ef6d0e6b570
[ "MIT" ]
null
null
null
""" This code implements a single convexified graph (convolutional) filter, which corresponds to a single layer of a Convexified GNN (Cx-GNN). It is largely inspired by the following paper: [Zhang et al., 2017] Yuchen Zhang, Percy Liang, and Martin J Wainwright. Convexified convolutional neural networks. I...
40.37037
135
0.584731
622652b0818c6312840a03ba0953526e16e7c2eb
815
py
Python
python/nano/src/bigdl/nano/pytorch/utils.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/pytorch/utils.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/pytorch/utils.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL 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 ...
37.045455
74
0.774233
62265f9bc17bf964c196ecdb9234c592982ef260
4,602
py
Python
py_trees/utilities.py
fjulian/py_trees
63fffdfb581f390546c375f13d064b10fdace786
[ "BSD-3-Clause" ]
null
null
null
py_trees/utilities.py
fjulian/py_trees
63fffdfb581f390546c375f13d064b10fdace786
[ "BSD-3-Clause" ]
null
null
null
py_trees/utilities.py
fjulian/py_trees
63fffdfb581f390546c375f13d064b10fdace786
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # License: BSD # https://raw.githubusercontent.com/splintered-reality/py_trees/devel/LICENSE # ############################################################################## # Documentation ############################################################################## """ Assorted utility fun...
29.5
80
0.544111
6226b6ff9a9521a191433c04909a5ac2457a8206
1,425
py
Python
data_access/qso_data.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
2
2017-03-21T14:18:35.000Z
2020-03-30T20:51:33.000Z
data_access/qso_data.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
null
null
null
data_access/qso_data.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
null
null
null
""" Helper classes for encapsulating QSO metadata and spectrum data. """ import astropy.table as table class QSORecord: def __init__(self, index, spec_obj_id, z, ra, dec, plate, mjd, fiber_id, extinction_g): self.index = index self.specObjID = spec_obj_id self.z = z self.ra = ra ...
30.978261
104
0.596491
6226bf00fc8fc2412001908d4d5bdfa8f8e06f8e
1,446
py
Python
setup.py
dieterich-lab/riboseq-utils
42fabc77a7d51c8a24a4346928585fc0ff1584d8
[ "MIT" ]
null
null
null
setup.py
dieterich-lab/riboseq-utils
42fabc77a7d51c8a24a4346928585fc0ff1584d8
[ "MIT" ]
10
2017-02-28T14:30:20.000Z
2019-06-07T13:11:01.000Z
setup.py
dieterich-lab/riboseq-utils
42fabc77a7d51c8a24a4346928585fc0ff1584d8
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages console_scripts = [ 'extract-metagene-profiles=riboutils.extract_metagene_profiles:main', 'estimate-metagene-profile-bayes-factors=riboutils.estimate_metagene_profile_bayes_factors:main', 'select-periodic-offsets=riboutils.select_periodic_offsets:main', 'boot...
30.125
101
0.596819
6227179963c9006a5ee690b45bd95d3a0fcb6e5a
1,557
py
Python
text_data/core/__init__.py
maxblee/text_data
006068f1662a7ef230237ecc88a3493438297e6b
[ "MIT" ]
null
null
null
text_data/core/__init__.py
maxblee/text_data
006068f1662a7ef230237ecc88a3493438297e6b
[ "MIT" ]
null
null
null
text_data/core/__init__.py
maxblee/text_data
006068f1662a7ef230237ecc88a3493438297e6b
[ "MIT" ]
null
null
null
"""Core utilities for text_data. This is mostly where the Rust backend is stored. """ import functools import html from typing import Any, Callable from text_data_rs import PositionalIndex, ngrams_from_documents # noqa: F401 def requires_display_extra(func: Callable[..., Any]) -> Callable[..., Any]: """This en...
34.6
105
0.67887
62271c069c28ecc5c63b7a8fb7c671f0faffc607
7,358
py
Python
tests/python/pants_test/backend/jvm/tasks/test_jar_create.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/jvm/tasks/test_jar_create.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/jvm/tasks/test_jar_create.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
1
2019-06-10T17:24:34.000Z
2019-06-10T17:24:34.000Z
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os from conte...
44.325301
102
0.683881
622772d634ebfc57e5a3fb5b8f7bf37fae2f8dc7
3,195
py
Python
alipay/aop/api/request/AlipayMultimediaResourceMasstokenGetRequest.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/AlipayMultimediaResourceMasstokenGetRequest.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/AlipayMultimediaResourceMasstokenGetRequest.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 * class AlipayMultimediaResourceMasstokenGetRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model self._version =...
24.960938
142
0.637246
6227b03194c822da9f6acb366cbb406a4686b0e8
6,443
py
Python
ofa/imagenet_codebase/utils/pytorch_modules.py
twice154/ofa-pytorch
cc3b4e129c7e92f7a16eb669db24aac120be1431
[ "Apache-2.0" ]
9
2021-07-27T06:20:37.000Z
2022-03-02T11:47:14.000Z
ofa/imagenet_codebase/utils/pytorch_modules.py
twice154/ofa-pytorch
cc3b4e129c7e92f7a16eb669db24aac120be1431
[ "Apache-2.0" ]
2
2021-07-27T06:21:24.000Z
2021-09-22T19:23:07.000Z
ofa/imagenet_codebase/utils/pytorch_modules.py
twice154/ofa-pytorch
cc3b4e129c7e92f7a16eb669db24aac120be1431
[ "Apache-2.0" ]
4
2021-07-27T06:20:29.000Z
2022-03-08T09:55:47.000Z
# Once for All: Train One Network and Specialize it for Efficient Deployment # Han Cai, Chuang Gan, Tianzhe Wang, Zhekai Zhang, Song Han # International Conference on Learning Representations (ICLR), 2020. from collections import OrderedDict import torch import torch.nn as nn import torch.nn.functional as F def mak...
32.215
94
0.62921
6227c7e448f344b388222bd4e019181db13efdb4
12,795
py
Python
hyperbox/models/base_model.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
1
2022-01-17T00:34:14.000Z
2022-01-17T00:34:14.000Z
hyperbox/models/base_model.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
hyperbox/models/base_model.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
from typing import Any, List, Optional, Union, Tuple import os import json import random import hydra import json import torch import numpy as np from omegaconf import DictConfig from pytorch_lightning import LightningModule from torchmetrics.classification.accuracy import Accuracy from hyperbox.utils.logger import ...
41.274194
112
0.606565
6227ece0d7eed3b36f2df063077d0f75202d1fcf
979
py
Python
src/hub/dataload/sources/umls/umls_dump.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
10
2017-07-24T11:45:27.000Z
2022-02-14T13:42:36.000Z
src/hub/dataload/sources/umls/umls_dump.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
92
2017-06-22T16:49:20.000Z
2022-03-24T20:50:01.000Z
src/hub/dataload/sources/umls/umls_dump.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
11
2017-06-12T18:31:35.000Z
2022-01-31T02:56:52.000Z
import os import os.path import sys import time import biothings, config biothings.config_for_app(config) from config import DATA_ARCHIVE_ROOT from biothings.hub.dataload.dumper import ManualDumper from biothings.utils.common import unzipall class UMLSDumper(ManualDumper): SRC_NAME = "umls" SRC_ROOT_FOLDER...
30.59375
126
0.707865
6228132a33854df15db8cbca2c6b2078a69bae3d
184
py
Python
settings.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
settings.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
settings.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
# settings.py from os.path import join, dirname from dotenv import load_dotenv load_dotenv(find_dotenv()) #TWILIO_AUTH_TOKEN = os.environ.get("TWILIO_AUTH_TOKEN") #TWILIO_ACCOUNT_SID
23
56
0.815217
62281852e34253d316b019048bf3e29eeec61137
695
py
Python
recommender/server/settings/celery_conf.py
abhishekpathak/recommendation-system
b91961f2baa2ab70626aaadad2f90f609c92a449
[ "MIT" ]
null
null
null
recommender/server/settings/celery_conf.py
abhishekpathak/recommendation-system
b91961f2baa2ab70626aaadad2f90f609c92a449
[ "MIT" ]
null
null
null
recommender/server/settings/celery_conf.py
abhishekpathak/recommendation-system
b91961f2baa2ab70626aaadad2f90f609c92a449
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from celery import Celery from server import config """ Celery configuration module. """ def make_celery(app): """ Flask integration with celery. Taken from http://flask.pocoo.org/docs/0.12/patterns/celery/ """ celery = Celery(app.import_name, backend=config.CELERY_RESULT_BA...
23.965517
74
0.646043
6228364917338c2b4c0ba62a315738015948ba36
10,999
py
Python
cdinfo/src/plugin.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
cdinfo/src/plugin.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
cdinfo/src/plugin.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
from enigma import eServiceReference, eConsoleAppContainer from Components.MediaPlayer import PlayList import xml.dom.minidom from Plugins.Plugin import PluginDescriptor from Components.ActionMap import ActionMap from Components.Label import Label from Components.Button import Button from Screens.Screen import Screen f...
43.133333
237
0.726793
62283f35c5b1e008f21252e91ba61f46ecf0096f
5,941
py
Python
neural_sp/trainers/reporter.py
Cescfangs/neural_sp
2c12d25d2078d3dacdb80c5c367c2e90feba7b6c
[ "Apache-2.0" ]
null
null
null
neural_sp/trainers/reporter.py
Cescfangs/neural_sp
2c12d25d2078d3dacdb80c5c367c2e90feba7b6c
[ "Apache-2.0" ]
null
null
null
neural_sp/trainers/reporter.py
Cescfangs/neural_sp
2c12d25d2078d3dacdb80c5c367c2e90feba7b6c
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2018 Kyoto University (Hirofumi Inaguma) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Reporter during training.""" from tensorboardX import SummaryWriter import os import numpy as np from matplotlib import pyplot as plt import logging impo...
35.57485
110
0.530214
622854cb588691e66d42e6b02925ebd0206796ef
11,606
py
Python
neutron/plugins/ml2/drivers/type_vlan.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ml2/drivers/type_vlan.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ml2/drivers/type_vlan.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
44.984496
79
0.568241
6228679de814bd241041af939d5d159fb600c723
360
py
Python
setup.py
dragoscirjan/folium-py
b92060eef6e3c425107caeca6ccb4c41103c7114
[ "Apache-2.0" ]
null
null
null
setup.py
dragoscirjan/folium-py
b92060eef6e3c425107caeca6ccb4c41103c7114
[ "Apache-2.0" ]
null
null
null
setup.py
dragoscirjan/folium-py
b92060eef6e3c425107caeca6ccb4c41103c7114
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup(name='Folium', version='0.0.1', description='Folium Services Interfaces', author='Dragos Cirjan', author_email='dragos.cirjan@gmail.com', url='https://github.com/dragoscirjan/folium-py', packages=['folium', 'folium.crud',...
27.692308
72
0.652778
62288cf0575d6e457568d51598a41883f7175e5a
5,072
py
Python
solutions/rank-1/scripts/04_predict_lgb_meter_new.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
48
2020-03-18T11:34:49.000Z
2022-03-31T18:30:00.000Z
solutions/rank-1/scripts/04_predict_lgb_meter_new.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
40
2020-03-24T18:17:51.000Z
2022-03-12T00:30:30.000Z
solutions/rank-1/scripts/04_predict_lgb_meter_new.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
24
2020-04-18T02:52:47.000Z
2022-01-22T19:13:16.000Z
import argparse import glob import numpy as np import pandas as pd import lightgbm as lgb from ashrae.utils import ( MODEL_PATH, OUTPUT_PATH, Logger, timer, rmsle, load_data, ) parser = argparse.ArgumentParser(description="") parser.add_argument("--normalize_target", action="store_true", help="If True ...
33.813333
102
0.598778
6228bbca1321dcc3faec6c317f35fac73bf8c94c
6,331
py
Python
src/dsutils/dummy_data.py
brendanhasz/dsutils
e780e904f7bf0ec5e14aa7ddb337f01f29779143
[ "MIT" ]
1
2019-09-14T16:59:34.000Z
2019-09-14T16:59:34.000Z
src/dsutils/dummy_data.py
brendanhasz/dsutils
e780e904f7bf0ec5e14aa7ddb337f01f29779143
[ "MIT" ]
null
null
null
src/dsutils/dummy_data.py
brendanhasz/dsutils
e780e904f7bf0ec5e14aa7ddb337f01f29779143
[ "MIT" ]
7
2020-01-19T14:40:08.000Z
2022-01-14T12:50:30.000Z
"""Dummy data * :func:`.permutation_importance` * :func:`.permutation_importance_cv` """ import numpy as np import pandas as pd def make_categorical_regression(n_samples=100, n_features=10, n_informative=10, n_categor...
35.368715
68
0.586321
6228ebbc1dd318d89db9333a04498ca7932caa5f
1,742
py
Python
api/models.py
d2verb/firmflaws
2ac5dd9fcde46a24b70cdd402af371e2b2f93445
[ "Beerware" ]
null
null
null
api/models.py
d2verb/firmflaws
2ac5dd9fcde46a24b70cdd402af371e2b2f93445
[ "Beerware" ]
null
null
null
api/models.py
d2verb/firmflaws
2ac5dd9fcde46a24b70cdd402af371e2b2f93445
[ "Beerware" ]
null
null
null
from __future__ import unicode_literals from django.db import models class BrandModel(models.Model): name = models.CharField(unique=True, max_length=255) class FirmwareModel(models.Model): brand = models.ForeignKey(BrandModel, related_name="firmwares", on_delete=models.CASCADE) hash = models.CharField(...
37.06383
93
0.707807
6228f8fb3f11f9e458d7e9437738800091e927b6
453
py
Python
app/core/management/commands/delete_old_events.py
Misiaty-Mat/Event-schedule
15ab5ec3d49b1f16e43a8d90709df5d143401c7a
[ "MIT" ]
null
null
null
app/core/management/commands/delete_old_events.py
Misiaty-Mat/Event-schedule
15ab5ec3d49b1f16e43a8d90709df5d143401c7a
[ "MIT" ]
null
null
null
app/core/management/commands/delete_old_events.py
Misiaty-Mat/Event-schedule
15ab5ec3d49b1f16e43a8d90709df5d143401c7a
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from core.models import Event from datetime import datetime, timedelta class Command(BaseCommand): """Auto delete rows in Event database that is 30 days after the deadline""" def handle(self, *args, **kwargs): Event.objects.filter(event_date__l...
34.846154
88
0.719647
62292c8f6f9658c8e37099584f3f9033800f742d
33,508
py
Python
scielomanager/journalmanager/migrations/0015_fix_nulls_in_init_vol.py
patymori/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
8
2015-07-07T03:09:16.000Z
2019-03-16T04:46:32.000Z
scielomanager/journalmanager/migrations/0015_fix_nulls_in_init_vol.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
245
2015-01-14T13:29:58.000Z
2022-01-13T00:48:44.000Z
scielomanager/journalmanager/migrations/0015_fix_nulls_in_init_vol.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
5
2016-02-19T15:47:08.000Z
2019-03-16T04:46:20.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): "Write your forwards methods here." # Note: Don't use "from appname.models imp...
88.880637
256
0.571983
62292d031965647ffb16f8ac8ddd941122490b49
19,853
py
Python
framework/Models/ExternalModel.py
greenwoodms06/raven
f8e789c3c58356cdeab53c057b940d3ee96cd0d6
[ "Apache-2.0" ]
null
null
null
framework/Models/ExternalModel.py
greenwoodms06/raven
f8e789c3c58356cdeab53c057b940d3ee96cd0d6
[ "Apache-2.0" ]
null
null
null
framework/Models/ExternalModel.py
greenwoodms06/raven
f8e789c3c58356cdeab53c057b940d3ee96cd0d6
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Battelle Energy Alliance, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
54.99446
223
0.684834
62294cd1d36b0797fbaee8a379e64b5399241f60
4,824
py
Python
Spectral Clustering/code_material_python/helper.py
AmineKheldouni/Graphs-Machine-Learning
1b34ef38516d46e8ca61b1a8093e6c8fb76fe031
[ "MIT" ]
1
2019-02-17T12:40:53.000Z
2019-02-17T12:40:53.000Z
Spectral Clustering/code_material_python/helper.py
AmineKheldouni/Graphs-Machine-Learning
1b34ef38516d46e8ca61b1a8093e6c8fb76fe031
[ "MIT" ]
null
null
null
Spectral Clustering/code_material_python/helper.py
AmineKheldouni/Graphs-Machine-Learning
1b34ef38516d46e8ca61b1a8093e6c8fb76fe031
[ "MIT" ]
null
null
null
# Prim's maximal spanning tree algorithm # Prim's alg idea: # start at any node, find closest neighbor and mark edges # for all remaining nodes, find closest to previous cluster, mark edge # continue until no nodes remain # # INPUTS: graph defined by adjacency matrix, nxn # OUTPUTS: matrix specifying maximum spannin...
36.270677
84
0.692164
622961dc4bd0b97377aec6dc6cf5c32e6cdfa2e7
7,501
py
Python
hwtGraph/elk/containers/constants.py
Nic30/hwtGraph
d11535d61ee8c1357720e502ac254c9dbf6dab7d
[ "MIT" ]
6
2018-06-20T21:28:51.000Z
2022-03-16T18:06:39.000Z
hwtGraph/elk/containers/constants.py
Nic30/hwtGraph
d11535d61ee8c1357720e502ac254c9dbf6dab7d
[ "MIT" ]
2
2021-01-05T09:13:52.000Z
2021-03-15T22:17:07.000Z
hwtGraph/elk/containers/constants.py
Nic30/hwtGraph
d11535d61ee8c1357720e502ac254c9dbf6dab7d
[ "MIT" ]
null
null
null
from enum import Enum class NodeType(Enum): # a normal node is created from a node of the original graph. NORMAL = 0 # a dummy node created to split a long edge. LONG_EDGE = 1 # a node representing an external port. EXTERNAL_PORT = 2 # a dummy node created to cope with ports at the norther...
30.616327
104
0.676177
62296e862cca49b997388c7132c67e2d3be08d41
6,250
py
Python
soaplib/core/test/wsdl/test_default_wsdl.py
divaliu1408/overfit
083dcfaa758391092933e19544462cd831e73ef0
[ "Apache-2.0" ]
null
null
null
soaplib/core/test/wsdl/test_default_wsdl.py
divaliu1408/overfit
083dcfaa758391092933e19544462cd831e73ef0
[ "Apache-2.0" ]
null
null
null
soaplib/core/test/wsdl/test_default_wsdl.py
divaliu1408/overfit
083dcfaa758391092933e19544462cd831e73ef0
[ "Apache-2.0" ]
null
null
null
# # soaplib - Copyright (C) Soaplib contributors. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This li...
28.935185
76
0.6464
6229a8cd9ffc6b6129f0018c0c37d2cfa28cca63
5,357
py
Python
pyroute/overlayArea.py
ftrimble/route-grower
d4343ecc9b13a3e1701c8460c8a1792d08b74567
[ "Apache-2.0" ]
null
null
null
pyroute/overlayArea.py
ftrimble/route-grower
d4343ecc9b13a3e1701c8460c8a1792d08b74567
[ "Apache-2.0" ]
null
null
null
pyroute/overlayArea.py
ftrimble/route-grower
d4343ecc9b13a3e1701c8460c8a1792d08b74567
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python #----------------------------------------------------------------------------- # Graphics library for drawing pyroute GUI menus # # Usage: # (library code for pyroute GUI) # # Features: # Start by initialising a 'rectangle' that covers a certain bit of screen # Then you can # * Dra...
34.121019
99
0.529774
6229de5f845424c59aef8a7c71b5373fab566f54
5,022
py
Python
src/oscar/apps/catalogue/reviews/views.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/catalogue/reviews/views.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/catalogue/reviews/views.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.contrib import messages from django.shortcuts import get_object_or_404, redirect from django.utils.translation import ugettext_lazy as _ from django.views.generic import CreateView, DetailView, ListView, View from oscar.apps.catalogue.reviews.signals import review_add...
38.630769
85
0.65671
622a2405ae7634498e174ecd03d1258132ad5dbc
7,578
py
Python
musicbot/permissions.py
Jimgersnap/DJ-Roomba-legacy
3c4ded6635213c7497bfb432a6c7adafe0532c1b
[ "MIT" ]
2
2019-07-16T04:42:56.000Z
2020-06-02T05:36:57.000Z
musicbot/permissions.py
Jimgersnap/DJ-Roomba-legacy
3c4ded6635213c7497bfb432a6c7adafe0532c1b
[ "MIT" ]
null
null
null
musicbot/permissions.py
Jimgersnap/DJ-Roomba-legacy
3c4ded6635213c7497bfb432a6c7adafe0532c1b
[ "MIT" ]
null
null
null
import shutil import logging import traceback import configparser import discord log = logging.getLogger(__name__) class PermissionsDefaults: perms_file = 'config/permissions.ini' CommandWhiteList = set() CommandBlackList = set() IgnoreNonVoice = set() GrantToRoles = set() UserList = set() ...
36.085714
120
0.668118
622a5d1dbc26e16da26d7d7f85e66a1678c3d0f1
916
py
Python
retrobiocat_web/app/biocatdb/functions/papers/papers_table.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
9
2020-12-01T16:33:02.000Z
2022-01-19T20:02:42.000Z
retrobiocat_web/app/biocatdb/functions/papers/papers_table.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
4
2020-10-02T14:38:32.000Z
2021-08-02T09:23:58.000Z
retrobiocat_web/app/biocatdb/functions/papers/papers_table.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
6
2021-01-14T07:48:36.000Z
2022-03-20T17:34:27.000Z
from retrobiocat_web.mongo.models.user_models import User PAPERS_TABLE_FIELDS = ['id', 'short_citation', 'title', 'doi', 'status', 'tags', 'owner'] def process_papers_dict(papers_data, show_owner=True): owners_dict = {} for i, data in enumerate(papers_data): papers_data[i]['_id'] = str(papers_data[i]...
36.64
89
0.574236
622a67457fd0871173d21337114b59e0e68ad82b
89
py
Python
goodscf/apps.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
3
2018-10-16T09:36:12.000Z
2019-04-15T03:12:49.000Z
goodscf/apps.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
goodscf/apps.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class GoodscfConfig(AppConfig): name = 'goodscf'
14.833333
33
0.752809
622a778cb7710abadf83a911f7b0db5f2b8ba4da
1,806
py
Python
prometheus/setup.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
prometheus/setup.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
prometheus/setup.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from setuptools import setup from codecs import open # To use a consistent encoding from os import path HERE = path.abspath(path.dirname(__file__)) # Get version info ABOUT = {} with open(path.join(HERE, "datad...
28.21875
80
0.681617
622a9420245b2bb195cfd5b8933bc1defea07bc4
11,442
py
Python
jsonwidget/commands.py
robla/jsonwidget-python
a397ce3873e6aed357d294a88749412b2d732ebb
[ "BSD-3-Clause" ]
7
2018-04-03T15:19:36.000Z
2021-03-11T14:19:51.000Z
jsonwidget/commands.py
robla/jsonwidget-python
a397ce3873e6aed357d294a88749412b2d732ebb
[ "BSD-3-Clause" ]
null
null
null
jsonwidget/commands.py
robla/jsonwidget-python
a397ce3873e6aed357d294a88749412b2d732ebb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python -tt # jsonedit - urwid-based JSON editor # # Copyright (c) 2010, Rob Lanphier # All rights reserved. # Licensed under 3-clause BSD license. See LICENSE.txt for details. import optparse import os import sys import jsonwidget from jsonwidget.jsonnode import JsonNodeError from jsontypes import schemaf...
32.505682
103
0.623143
622ad812b718764ffeddb0fa776c7e3055a35ccf
6,478
py
Python
tempest/api/identity/admin/test_tenant_negative.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
tempest/api/identity/admin/test_tenant_negative.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
tempest/api/identity/admin/test_tenant_negative.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Huawei Technologies Co.,LTD. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
44.068027
78
0.681846
622b609c1a54751db7082df843f12865d250df79
142
py
Python
lewis_emulators/rkndio/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
2
2020-10-20T16:49:13.000Z
2021-02-19T10:41:44.000Z
lewis_emulators/rkndio/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
9
2019-03-22T15:35:15.000Z
2021-07-28T11:05:43.000Z
lewis_emulators/rkndio/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
1
2020-10-21T17:02:44.000Z
2020-10-21T17:02:44.000Z
from .device import SimulatedRkndio from ..lewis_versions import LEWIS_LATEST framework_version = LEWIS_LATEST __all__ = ['SimulatedRkndio']
23.666667
41
0.830986
622b6582b5e7e39e37b2e0e129ee9bd205c1693c
15,251
py
Python
metpy/interpolate/grid.py
ahuang11/MetPy
6116ceca6c48fda7e4ead254d2a83ebf86391e7a
[ "BSD-3-Clause" ]
1
2020-08-20T21:06:07.000Z
2020-08-20T21:06:07.000Z
metpy/interpolate/grid.py
e-dennis/MetPy
6529608d956039d4791a17a7bdb1a2c0bf97cd75
[ "BSD-3-Clause" ]
null
null
null
metpy/interpolate/grid.py
e-dennis/MetPy
6529608d956039d4791a17a7bdb1a2c0bf97cd75
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Tools and calculations for interpolating specifically to a grid.""" from __future__ import division import numpy as np # Change when Python 2.7 no longer supported import metpy...
36.225653
95
0.658449
622b77c87db248929275ebfe5bfba984eaf1cff7
2,446
py
Python
venv/Lib/site-packages/pyrogram/raw/types/stats/message_stats.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/stats/message_stats.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/stats/message_stats.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31.766234
103
0.630826
622ba43c79a743ee0ec65ee922eb31341ec25955
222
py
Python
modules/dbnd-airflow/src/dbnd_airflow/__init__.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd-airflow/src/dbnd_airflow/__init__.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd-airflow/src/dbnd_airflow/__init__.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
from dbnd_airflow.tracking.dbnd_dag_tracking import track_dag, track_task from dbnd_airflow.tracking.execute_tracking import track_operator __all__ = ["track_dag", "track_task", "track_operator"] __version__ = "0.61.0"
27.75
73
0.815315
622bdd331a1af5514b9c7482e53cb2d560331d10
3,749
py
Python
ocd_backend/transformers/__init__.py
fletcher91/open-raadsinformatie
a1626453e43ffb6c2aef17587f611ad622a8d9a9
[ "CC-BY-4.0" ]
1
2021-03-16T19:17:30.000Z
2021-03-16T19:17:30.000Z
ocd_backend/transformers/__init__.py
fletcher91/open-raadsinformatie
a1626453e43ffb6c2aef17587f611ad622a8d9a9
[ "CC-BY-4.0" ]
null
null
null
ocd_backend/transformers/__init__.py
fletcher91/open-raadsinformatie
a1626453e43ffb6c2aef17587f611ad622a8d9a9
[ "CC-BY-4.0" ]
null
null
null
import json from hashlib import sha1 from lxml import etree from ocd_backend import celery_app from ocd_backend import settings from ocd_backend.exceptions import NoDeserializerAvailable from ocd_backend.mixins import OCDBackendTaskFailureMixin from ocd_backend.utils import json_encoder from ocd_backend.utils.misc imp...
41.655556
78
0.647373
622be85feaea5ba4da1e1e51b3d398a3ae6d2daf
14,145
py
Python
recipes/mobvoihotwords/run_eval.py
wangwei2009/speechbrain
ebbac4561a9c9101786e0ab0b1105017eb655fc8
[ "Apache-2.0" ]
null
null
null
recipes/mobvoihotwords/run_eval.py
wangwei2009/speechbrain
ebbac4561a9c9101786e0ab0b1105017eb655fc8
[ "Apache-2.0" ]
null
null
null
recipes/mobvoihotwords/run_eval.py
wangwei2009/speechbrain
ebbac4561a9c9101786e0ab0b1105017eb655fc8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 """Recipe for training a classifier using the mobvoihotwords Dataset. To run this recipe, use the following command: > python train.py {hyperparameter_file} Using your own hyperparameter file or one of the following: hyperparams/xvect.yaml (xvector system) """ import os import sys import torch...
35.540201
97
0.615977
622c036bad6e09b068442fe0623afe3627137fcd
15,811
py
Python
hooks/swift_storage_hooks.py
sombrafam/charm-swift-storage
821c61a4bdee43f199c933d040930d7c49929091
[ "ECL-2.0", "Apache-2.0" ]
15
2016-04-22T10:00:09.000Z
2020-05-06T16:27:01.000Z
hooks/swift_storage_hooks.py
sombrafam/charm-swift-storage
821c61a4bdee43f199c933d040930d7c49929091
[ "ECL-2.0", "Apache-2.0" ]
2
2018-01-29T01:13:56.000Z
2018-03-22T01:49:10.000Z
hooks/swift_storage_hooks.py
sombrafam/charm-swift-storage
821c61a4bdee43f199c933d040930d7c49929091
[ "ECL-2.0", "Apache-2.0" ]
12
2016-03-23T20:32:57.000Z
2020-11-18T13:52:40.000Z
#!/usr/bin/python3 # # Copyright 2016 Canonical 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 ag...
31.496016
79
0.666498
622c0e3ef92df5cefcbc1c45a88d3412159fc536
1,112
py
Python
toontown/ai/DistributedSofieListenerMgr.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2022-01-06T23:51:18.000Z
2022-01-06T23:51:18.000Z
toontown/ai/DistributedSofieListenerMgr.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/ai/DistributedSofieListenerMgr.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.directnotify import DirectNotifyGlobal from direct.distributed import DistributedObject from direct.interval.IntervalGlobal import * from otp.speedchat import SpeedChatGlobals class DistributedSofieListenerMgr(DistributedObject.DistributedObject): notify = DirectNotifyGlobal.directNotify.newCategory('D...
39.714286
87
0.761691
622c35ce22e5df0f11cbafddb6e63288bc19cd55
1,303
py
Python
stests/generators/wg_201/args.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
4
2020-03-10T15:28:17.000Z
2021-10-02T11:41:17.000Z
stests/generators/wg_201/args.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
1
2020-03-25T11:31:44.000Z
2020-03-25T11:31:44.000Z
stests/generators/wg_201/args.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
9
2020-02-25T18:43:42.000Z
2021-08-10T17:08:42.000Z
import argparse import dataclasses from stests.core.utils import args_validator from stests.generators.utils import constants from stests.generators.utils.args import get_argparser @dataclasses.dataclass class Arguments: """Custom generator arguments passed along chain of execution. """ # Amount to...
24.584906
79
0.690714
622c60766ac27bedb8ee7624595062794f474763
41,141
py
Python
micromanager_gui/main_window.py
QI2lab/napari-micromanager
59de2e0041547376e32cf863e50f6cb434d964df
[ "BSD-3-Clause" ]
null
null
null
micromanager_gui/main_window.py
QI2lab/napari-micromanager
59de2e0041547376e32cf863e50f6cb434d964df
[ "BSD-3-Clause" ]
null
null
null
micromanager_gui/main_window.py
QI2lab/napari-micromanager
59de2e0041547376e32cf863e50f6cb434d964df
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations import json import re from pathlib import Path from typing import TYPE_CHECKING import napari import numpy as np from pymmcore_plus import CMMCorePlus, RemoteMMCore, DeviceType from qtpy import QtWidgets as QtW from qtpy import uic from qtpy.QtCore import QSize, QTimer from qtpy.QtG...
40.098441
153
0.653752
622c64081c18aed341783fa7d960e1df5682648d
1,155
py
Python
Leetcode-Solutions/Arrays/268. missinng number.py
sakshi13-m/StudentCodeSnippets
25e4f0322b51cad540b6481737976a2f6c4c0382
[ "MIT" ]
1
2020-09-30T21:46:28.000Z
2020-09-30T21:46:28.000Z
Leetcode-Solutions/Arrays/268. missinng number.py
sakshi13-m/StudentCodeSnippets
25e4f0322b51cad540b6481737976a2f6c4c0382
[ "MIT" ]
2
2020-10-04T08:01:15.000Z
2020-10-15T12:21:39.000Z
Leetcode-Solutions/Arrays/268. missinng number.py
sakshi13-m/StudentCodeSnippets
25e4f0322b51cad540b6481737976a2f6c4c0382
[ "MIT" ]
6
2020-09-30T20:53:24.000Z
2020-10-09T11:54:35.000Z
# Easy # https://leetcode.com/problems/missing-number/ class Solution: def missingNumber(self, nums: List[int]) -> int: # Time: O(n log n) using sorting # Space: O(1) # nums.sort() # for i in range(len(nums)): # if nums[i] != i: # return i ...
31.216216
60
0.469264
622c7eb0319606a52308a018dae7a28557dc0089
3,624
py
Python
datacube_stats/statistics/incremental.py
opendatacube/datacube-stats
14054f8820ddf2b79691996af8ac7d41e200fe49
[ "Apache-2.0" ]
10
2018-11-25T13:31:10.000Z
2021-04-13T13:08:45.000Z
datacube_stats/statistics/incremental.py
GeoscienceAustralia/datacube-stats
14054f8820ddf2b79691996af8ac7d41e200fe49
[ "Apache-2.0" ]
67
2018-02-26T05:53:35.000Z
2018-11-14T06:20:48.000Z
datacube_stats/statistics/incremental.py
opendatacube/datacube-stats
14054f8820ddf2b79691996af8ac7d41e200fe49
[ "Apache-2.0" ]
4
2019-08-26T00:57:34.000Z
2020-09-17T22:39:40.000Z
import numpy as np import xarray from datacube.storage.masking import create_mask_value from datacube_stats.incremental_stats import (mk_incremental_sum, mk_incremental_or, compose_proc, broadcast_proc) from datacube_stats.utils import mk_masker, first_var from .core impo...
33.869159
108
0.575607
622c803cb2670e42c6ae048def6b3d4a9adcb256
3,166
py
Python
tests/test_activations.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
tests/test_activations.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
tests/test_activations.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import unittest os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import tensorflow as tf import tensorlayer as tl from tests.utils import CustomTestCase class Test_Leaky_ReLUs(CustomTestCase): @classmethod def setUpClass(cls): cls.alpha = 0.2 ...
25.95082
115
0.55338
622c8a3a08783d1b8b5b4408fbea01021bafb741
18,998
py
Python
pywikibot/specialbots/_upload.py
ankitdobhal/pywikibot
d6328a486296c0e8452b9f5334d5467a2c77ec07
[ "MIT" ]
null
null
null
pywikibot/specialbots/_upload.py
ankitdobhal/pywikibot
d6328a486296c0e8452b9f5334d5467a2c77ec07
[ "MIT" ]
6
2021-02-27T03:35:42.000Z
2021-03-07T22:17:40.000Z
pywikibot/specialbots/_upload.py
ModelTemplate/WarframeWikiBot
7685057f65d95551ccdb7e958aac3bb58ee8b5b3
[ "MIT" ]
null
null
null
#!/usr/bin/python """Special bot library containing UploadRobot. Do not import classes directly from here but from specialbots. """ # # (C) Pywikibot team, 2003-2020 # # Distributed under the terms of the MIT license. # import os import requests import tempfile from contextlib import suppress from pathlib import Path...
41.571116
79
0.550216
622d087fb707db41c07cb407af4fc5489c73e85c
40,903
py
Python
src/cops_and_robots/fusion/variational_bayes.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
3
2016-01-19T17:54:51.000Z
2019-10-21T12:09:03.000Z
src/cops_and_robots/fusion/variational_bayes.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
null
null
null
src/cops_and_robots/fusion/variational_bayes.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
5
2015-02-19T02:53:24.000Z
2019-03-05T20:29:12.000Z
#!/usr/bin/env python from __future__ import division """Variational Bayes model to fuse DESCRIPTION """ __author__ = "Nick Sweet" __copyright__ = "Copyright 2015, Cohrint" __credits__ = ["Nick Sweet", "Nisar Ahmed"] __license__ = "GPL" __version__ = "1.0.0" __maintainer__ = "Nick Sweet" __email__ = "nick.sweet@color...
39.48166
162
0.514339
622d0a93d5a59f71874909eef9f3939282099d32
15,811
py
Python
dmlc-core/tracker/dmlc_tracker/tracker.py
kli-nlpr/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
159
2016-08-23T22:13:26.000Z
2021-10-24T01:31:35.000Z
dmlc-core/tracker/dmlc_tracker/tracker.py
mrgloom/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
10
2016-08-23T05:59:07.000Z
2018-05-24T02:31:41.000Z
dmlc-core/tracker/dmlc_tracker/tracker.py
mrgloom/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
77
2016-08-21T00:35:00.000Z
2021-06-01T05:03:34.000Z
""" Tracker script for DMLC Implements the tracker control protocol - start dmlc jobs - start ps scheduler and rabit tracker - help nodes to establish links with each other Tianqi Chen """ # pylint: disable=invalid-name, missing-docstring, too-many-arguments, too-many-locals # pylint: disable=too-many-branches, too...
33.286316
94
0.544241
622d2a93b383758dcf7223fda728c6e932a43c2d
660
py
Python
setup.py
sms23uwf/Scholacity_Parser
15d0293c5120599fa90c8a090e011ad292977529
[ "MIT" ]
null
null
null
setup.py
sms23uwf/Scholacity_Parser
15d0293c5120599fa90c8a090e011ad292977529
[ "MIT" ]
null
null
null
setup.py
sms23uwf/Scholacity_Parser
15d0293c5120599fa90c8a090e011ad292977529
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="parser-package-sms23uwf", version="0.0.1", author="Steven M. Satterfield", author_email="steve1@scholacity.org", description="an algorithm to parse a course catalog", long_descript...
28.695652
57
0.65303