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
79b6ede05d07a38f1ab5a14703b893aa92f63f92
8,852
py
Python
python/cuml/preprocessing/model_selection.py
teju85/cuml
91ddc9eb557d7dc948e8394755890ee4a3102efd
[ "Apache-2.0" ]
1
2021-04-06T14:24:25.000Z
2021-04-06T14:24:25.000Z
python/cuml/preprocessing/model_selection.py
teju85/cuml
91ddc9eb557d7dc948e8394755890ee4a3102efd
[ "Apache-2.0" ]
1
2020-03-05T02:25:50.000Z
2020-03-05T02:25:50.000Z
python/cuml/preprocessing/model_selection.py
teju85/cuml
91ddc9eb557d7dc948e8394755890ee4a3102efd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
35.266932
79
0.600881
79b71f20e185e4b90017e0b6439d56c584d114df
1,580
py
Python
superpower/scripts/collect-images.py
yanntoque/community-playground
a2cea3550bccbb18f6eabf5f785ec3f0a460ba70
[ "Apache-2.0" ]
45
2019-05-02T13:07:10.000Z
2022-02-21T22:32:18.000Z
superpower/scripts/collect-images.py
yanntoque/community-playground
a2cea3550bccbb18f6eabf5f785ec3f0a460ba70
[ "Apache-2.0" ]
29
2019-04-29T11:05:16.000Z
2022-02-21T22:11:19.000Z
superpower/scripts/collect-images.py
yanntoque/community-playground
a2cea3550bccbb18f6eabf5f785ec3f0a460ba70
[ "Apache-2.0" ]
20
2019-07-26T23:37:56.000Z
2022-03-04T07:48:39.000Z
import asyncio import os import os.path import aiohttp from progress.bar import ChargingBar import simplejson as json import slugify import uvloop THUMBNAIL_NOT_FOUND = 'http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available' async def main(): """ Collect characters images from Marvel Do not s...
30.384615
87
0.558861
79b71f9317709cdec8eee5653e145f99234f189e
1,973
py
Python
examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
40.265306
112
0.754181
79b71fa1ea08c0dc9671205665a40f8ac094ae11
1,406
py
Python
train.py
wesselb/neuralprocesses
d5461e210e1e8176a3027dc485714b6903070654
[ "MIT" ]
10
2021-01-20T17:56:56.000Z
2022-03-04T10:54:08.000Z
train.py
wesselb/neuralprocesses
d5461e210e1e8176a3027dc485714b6903070654
[ "MIT" ]
1
2022-03-29T17:24:45.000Z
2022-03-31T16:23:30.000Z
train.py
wesselb/neuralprocesses
d5461e210e1e8176a3027dc485714b6903070654
[ "MIT" ]
1
2022-03-29T15:57:09.000Z
2022-03-29T15:57:09.000Z
import lab.torch as B import numpy as np import torch import stheno from neuralprocesses.data import GPGenerator from neuralprocesses.gnp import GNP if torch.cuda.is_available(): device = "cuda" else: device = "cpu" gen = GPGenerator(kernel=stheno.EQ().stretch(0.25) + 0.05 ** 2 * stheno.Delta()) model = GNP...
29.291667
87
0.596728
79b7239e90f6bfa1440e62653ab85d81292bc1a0
739
py
Python
mmcls/models/heads/__init__.py
ChaseMonsterAway/mmclassification
85d26b8eb2fc799599c42ca33831c40707311bd7
[ "Apache-2.0" ]
null
null
null
mmcls/models/heads/__init__.py
ChaseMonsterAway/mmclassification
85d26b8eb2fc799599c42ca33831c40707311bd7
[ "Apache-2.0" ]
null
null
null
mmcls/models/heads/__init__.py
ChaseMonsterAway/mmclassification
85d26b8eb2fc799599c42ca33831c40707311bd7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. from .cls_head import ClsHead from .linear_head import LinearClsHead from .multi_label_head import MultiLabelClsHead from .multi_label_linear_head import MultiLabelLinearClsHead from .stacked_head import StackedLinearClsHead from .vision_transformer_head import VisionTran...
41.055556
87
0.847091
79b72daaba338bebf80d1cab68ff662d2e931f12
1,808
py
Python
tests/importer/test_importer.py
Tony1928/hylang
8aeaace7cd719ab1d00b48808cbd53c67c944cb3
[ "MIT" ]
4
2017-08-09T01:31:56.000Z
2022-01-17T01:11:23.000Z
tests/importer/test_importer.py
woodrush/hy
d9a5acbcc93114031c70fd7ea497e4e59c868e25
[ "MIT" ]
null
null
null
tests/importer/test_importer.py
woodrush/hy
d9a5acbcc93114031c70fd7ea497e4e59c868e25
[ "MIT" ]
null
null
null
# Copyright 2017 the authors. # This file is part of Hy, which is free software licensed under the Expat # license. See the LICENSE. from hy.importer import (import_file_to_module, import_buffer_to_ast, MetaLoader, get_bytecode_path) from hy.errors import HyTypeError import os import ast impor...
26.985075
74
0.65708
79b74933faf8c0103e3c193ad3b6cdc123373315
973
py
Python
dfs/wordsearch.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
dfs/wordsearch.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
dfs/wordsearch.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Solution: def exist(self, board, word): if not board: return False for i in range(len(board)): for j in range(len(board[0])): if self.dfs(board, i, j, word): return True return False # check whether can find word, start a...
42.304348
86
0.53443
79b74b2dea3e203acab01e934e7ea9a8a47321e2
52,748
py
Python
tracopt/versioncontrol/svn/svn_fs.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
tracopt/versioncontrol/svn/svn_fs.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
tracopt/versioncontrol/svn/svn_fs.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2005-2020 Edgewall Software # Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de> # Copyright (C) 2005-2007 Christian Boos <cboos@edgewall.org> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of thi...
38.19551
80
0.55659
79b74f5b88848fe503b4e64b3a73317f2e9a446e
13,164
py
Python
opencga-client/src/main/python/pyOpenCGA/pyopencga/commons.py
dapregi/opencga
9aaee47952ac9e68f831b138945c7939199ab92d
[ "Apache-2.0" ]
null
null
null
opencga-client/src/main/python/pyOpenCGA/pyopencga/commons.py
dapregi/opencga
9aaee47952ac9e68f831b138945c7939199ab92d
[ "Apache-2.0" ]
null
null
null
opencga-client/src/main/python/pyOpenCGA/pyopencga/commons.py
dapregi/opencga
9aaee47952ac9e68f831b138945c7939199ab92d
[ "Apache-2.0" ]
null
null
null
import itertools import threading from time import sleep import requests from pyopencga.exceptions import OpenCgaInvalidToken, OpenCgaAuthorisationError try: from Queue import Queue except ImportError: from queue import Queue _CALL_BATCH_SIZE = 2000 _NUM_THREADS_DEFAULT = 4 class RESTResponse: def __in...
37.827586
106
0.576041
79b7692d9d2e3bd36dd28401f128726443dcd816
893
py
Python
components/server/tests/external/database/test_reports.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
33
2016-01-20T07:35:48.000Z
2022-03-14T09:20:51.000Z
components/server/tests/external/database/test_reports.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
2,410
2016-01-22T18:13:01.000Z
2022-03-31T16:57:34.000Z
components/server/tests/external/database/test_reports.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
21
2016-01-16T11:49:23.000Z
2022-01-14T21:53:22.000Z
"""Test the reports collection.""" import unittest from unittest.mock import Mock from external.database.reports import metrics_of_subject from ...fixtures import METRIC_ID, METRIC_ID2, SUBJECT_ID class MetricsForSubjectTest(unittest.TestCase): """Unittest for getting all metrics belonging to a single subject....
31.892857
82
0.680851
79b77df457a235d0aca083213a82c65be95ea5b4
18,423
py
Python
kafka_utils/kafka_consumer_manager/util.py
yemyatthein/kafka-utils
243cab3031f8af41ab4a8cfdce391f5377eba1c4
[ "Apache-2.0" ]
302
2016-05-18T02:05:04.000Z
2022-03-28T21:36:28.000Z
kafka_utils/kafka_consumer_manager/util.py
yemyatthein/kafka-utils
243cab3031f8af41ab4a8cfdce391f5377eba1c4
[ "Apache-2.0" ]
135
2016-05-17T23:15:16.000Z
2021-11-04T13:35:51.000Z
kafka_utils/kafka_consumer_manager/util.py
yemyatthein/kafka-utils
243cab3031f8af41ab4a8cfdce391f5377eba1c4
[ "Apache-2.0" ]
133
2016-05-18T10:23:05.000Z
2022-01-29T17:24:17.000Z
# -*- coding: utf-8 -*- # Copyright 2016 Yelp 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 ...
39.963124
151
0.659882
79b7a158e9e64070d0da5aa3ae23c64526a6a551
5,400
bzl
Python
coral/model_benchmark_cases.bzl
hjonnala/libcoral
3b1e06417cd239172912f87448b864226953762c
[ "Apache-2.0" ]
38
2020-10-27T12:46:12.000Z
2022-03-26T13:15:44.000Z
coral/model_benchmark_cases.bzl
hjonnala/libcoral
3b1e06417cd239172912f87448b864226953762c
[ "Apache-2.0" ]
19
2020-11-12T02:37:53.000Z
2022-03-24T14:28:07.000Z
coral/model_benchmark_cases.bzl
hjonnala/libcoral
3b1e06417cd239172912f87448b864226953762c
[ "Apache-2.0" ]
17
2020-11-21T16:35:46.000Z
2022-03-26T07:46:21.000Z
"""Model benchmark case list.""" MODEL_BENCHMARK_CASES = [ { "benchmark_name": "BM_MobileNetV1", "model_path": "mobilenet_v1_1.0_224_quant", }, { "benchmark_name": "BM_MobileNetV1_25", "model_path": "mobilenet_v1_0.25_128_quant", }, { "benchmark_name": "BM_Mo...
30.508475
79
0.635
79b7ae49897700852511d2f199f2bcb719eefd35
647
py
Python
run_buffer_jehm.py
jjgarciac/ANN-Calibration
4541541b4b5d78badfdb495e0cec75ee8005d212
[ "MIT" ]
null
null
null
run_buffer_jehm.py
jjgarciac/ANN-Calibration
4541541b4b5d78badfdb495e0cec75ee8005d212
[ "MIT" ]
null
null
null
run_buffer_jehm.py
jjgarciac/ANN-Calibration
4541541b4b5d78badfdb495e0cec75ee8005d212
[ "MIT" ]
null
null
null
import os datasets = [ 'iris', 'heart', 'arrhythmia', #'abalone', 'wine', 'segment', #'sensorless_drive', ] model = ['jehm', ] mix = ['none', 'random'] for i_mix in mix: for i_d in datasets: print('Current Met...
28.130435
85
0.451314
79b7be3572088884c8e9155df405d37efb1aa853
774
py
Python
fedml_api/model/mobile/torch_lenet.py
Little0o0/FedML
720015c90fcfec88d465a81b1e8fb45676dce9fb
[ "Apache-2.0" ]
1
2022-03-23T06:35:31.000Z
2022-03-23T06:35:31.000Z
fedml_api/model/mobile/torch_lenet.py
Little0o0/FedML
720015c90fcfec88d465a81b1e8fb45676dce9fb
[ "Apache-2.0" ]
null
null
null
fedml_api/model/mobile/torch_lenet.py
Little0o0/FedML
720015c90fcfec88d465a81b1e8fb45676dce9fb
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn class LeNet(nn.Module): def __init__(self): super(LeNet, self).__init__() self.fc2 = nn.Linear(500, 10) self.fc1 = nn.Linear(800, 500) self.dp = nn.Dropout(p=0.5) self.conv2 = nn.Conv2d(20, 50, (5, 5)) self.conv1 = nn.Conv2d(1, 20,...
25.8
55
0.490956
79b7c2c61494915e3e6048782f2fdbaf8d8fc93d
7,937
py
Python
regolith/helpers/l_progressreporthelper.py
MichaelTrumbull/regolith
881f543cfa7bbf80b38ed2b357209c5bc009a6af
[ "CC0-1.0" ]
null
null
null
regolith/helpers/l_progressreporthelper.py
MichaelTrumbull/regolith
881f543cfa7bbf80b38ed2b357209c5bc009a6af
[ "CC0-1.0" ]
null
null
null
regolith/helpers/l_progressreporthelper.py
MichaelTrumbull/regolith
881f543cfa7bbf80b38ed2b357209c5bc009a6af
[ "CC0-1.0" ]
null
null
null
"""Helper for listing a summary of finished prums and progress on open prums. Projecta are small bite-sized project quanta that typically will result in one manuscript. """ from gooey import GooeyParser import datetime import dateutil.parser as date_parser from regolith.helpers.basehelper import SoutHelperBase ...
43.60989
140
0.511906
79b85e6ee3ed178a93f02d74898e96f8116d7761
3,137
py
Python
models/femnist/cnn.py
mingxuts/multi-center-fed-learning
9262ddaefb79b14ea44b61ffce200b82d31b0af1
[ "BSD-2-Clause" ]
4
2021-09-03T02:44:14.000Z
2022-03-04T03:28:09.000Z
models/femnist/cnn.py
mingxuts/multi-center-fed-learning
9262ddaefb79b14ea44b61ffce200b82d31b0af1
[ "BSD-2-Clause" ]
null
null
null
models/femnist/cnn.py
mingxuts/multi-center-fed-learning
9262ddaefb79b14ea44b61ffce200b82d31b0af1
[ "BSD-2-Clause" ]
2
2021-10-10T11:57:53.000Z
2022-02-15T20:27:10.000Z
import tensorflow as tf from model import Model import numpy as np IMAGE_SIZE = 28 def get_convolution_extractor_shape(filter_list): with tf.Graph().as_default(): """Model function for CNN.""" features = tf.placeholder( tf.float32, shape=[None, IMAGE_SIZE * IMAGE_SIZE], name='feature...
38.256098
84
0.619382
79b8673935a83ba303d3cd50c222d53372e24048
19,690
py
Python
test/ds/test_local.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
null
null
null
test/ds/test_local.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
null
null
null
test/ds/test_local.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
1
2019-02-14T13:49:37.000Z
2019-02-14T13:49:37.000Z
import os import os.path import tempfile import unittest import unittest.mock import datetime import shutil from cate.core.ds import DATA_STORE_REGISTRY, DataAccessError from cate.core.types import PolygonLike, TimeRangeLike, VarNamesLike from cate.ds.local import LocalDataStore, LocalDataSource from cate.ds.esa_cci_od...
49.722222
114
0.578873
79b8c9b102f27c315dff3f9e4191095ef5de9ea3
41,761
py
Python
tests/manage/mcg/test_bucket_policy.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/manage/mcg/test_bucket_policy.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/manage/mcg/test_bucket_policy.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
import logging import pytest import botocore.exceptions as boto3exception import json import uuid from ocs_ci.framework import config from ocs_ci.ocs.exceptions import ( NoBucketPolicyResponse, InvalidStatusCode, UnexpectedBehaviour, ) from ocs_ci.framework.testlib import MCGTest, tier1, tier2, tier3, ski...
40.742439
109
0.61852
79b90ecfec335499a4748527de36378f7112976c
14,243
py
Python
conans/client/profile_loader.py
gmeeker/conan
2e4863180612b7df4f0be536d81aff735222ce2a
[ "MIT" ]
null
null
null
conans/client/profile_loader.py
gmeeker/conan
2e4863180612b7df4f0be536d81aff735222ce2a
[ "MIT" ]
null
null
null
conans/client/profile_loader.py
gmeeker/conan
2e4863180612b7df4f0be536d81aff735222ce2a
[ "MIT" ]
null
null
null
import os import platform from collections import OrderedDict, defaultdict from jinja2 import Environment, FileSystemLoader from conan.tools.env.environment import ProfileEnvironment from conans.errors import ConanException, ConanV2Exception from conans.model.conf import ConfDefinition from conans.model.env_info impo...
38.598916
98
0.648108
79b93afa115bd2bd1150ae0396307b79bfe4a58a
26,607
py
Python
referencesrv/parser/crf.py
golnazads/reference_service
3cdd60d1113de099d3b355c1076badeec15f767d
[ "MIT" ]
1
2021-04-28T21:14:30.000Z
2021-04-28T21:14:30.000Z
referencesrv/parser/crf.py
golnazads/reference_service
3cdd60d1113de099d3b355c1076badeec15f767d
[ "MIT" ]
5
2020-12-22T19:07:08.000Z
2022-02-28T15:38:53.000Z
referencesrv/parser/crf.py
golnazads/reference_service
3cdd60d1113de099d3b355c1076badeec15f767d
[ "MIT" ]
8
2019-08-29T21:22:33.000Z
2021-11-10T18:06:47.000Z
""" This module contains classes to train/test/classify conditional random field machine learning method """ import os import traceback import numpy as np import re import nltk import time from pystruct.models import ChainCRF from pystruct.learners import FrankWolfeSSVM from flask import current_app try: import...
39.301329
216
0.588454
79b94378a970615a42d268ff427d9ca5aa687a60
250
py
Python
ece/arduino/shutdown_serial.py
shauryachawla/misc
e50eb7c8979f9b3f7ecc43464cf7ccc91bf4d0bb
[ "MIT" ]
null
null
null
ece/arduino/shutdown_serial.py
shauryachawla/misc
e50eb7c8979f9b3f7ecc43464cf7ccc91bf4d0bb
[ "MIT" ]
null
null
null
ece/arduino/shutdown_serial.py
shauryachawla/misc
e50eb7c8979f9b3f7ecc43464cf7ccc91bf4d0bb
[ "MIT" ]
1
2019-10-07T08:22:09.000Z
2019-10-07T08:22:09.000Z
#!/usr/bin/env python2 import serial, os, time ser = serial.Serial('/dev/ttyACM0', 9600) while True: i = ser.read(); if (i=='1'): print "Shutting down..." time.sleep(3) os.system("shutdown -h now") exit()
16.666667
41
0.54
79b9604a26d130e74e447060c6569d8e846711d7
5,621
py
Python
examples/perovskites_opt/evaluator.py
aspuru-guzik-group/gemini
441d0f6c8842d15d4f917423ab440c5d78433199
[ "MIT" ]
8
2021-04-04T15:23:05.000Z
2022-02-20T06:33:57.000Z
examples/perovskites_opt/evaluator.py
aspuru-guzik-group/gemini
441d0f6c8842d15d4f917423ab440c5d78433199
[ "MIT" ]
null
null
null
examples/perovskites_opt/evaluator.py
aspuru-guzik-group/gemini
441d0f6c8842d15d4f917423ab440c5d78433199
[ "MIT" ]
5
2021-04-04T15:23:27.000Z
2022-01-25T07:55:43.000Z
#!/usr/bin/env python import pickle import numpy as np #================================================================== ''' Goal: minimize the bandgap ''' #================================================================== organics = [ 'acetamidinium', 'ammonium', 'azetidinium', 'butylammonium', 'dimethylamm...
31.055249
123
0.657001
79b97c011837f8f5ae5c099cf013653dc904dce1
2,311
py
Python
python/app/thirdparty/oneforall/modules/collect.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
351
2020-02-26T05:23:26.000Z
2022-03-26T12:39:19.000Z
python/app/thirdparty/oneforall/modules/collect.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
15
2020-03-26T07:31:49.000Z
2022-03-09T02:12:17.000Z
python/app/thirdparty/oneforall/modules/collect.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
99
2020-02-28T07:30:46.000Z
2022-03-16T16:41:09.000Z
import threading import importlib from app.thirdparty.oneforall.config.log import logger from app.thirdparty.oneforall.config import settings class Collect(object): def __init__(self, domain): self.domain = domain self.modules = [] self.collect_funcs = [] def get_mod(self): "...
32.549296
92
0.580701
79b9a4b38cb212678cbcb1b62c4ce2962c3e04fc
1,041
py
Python
interface/__init__.py
phucty/mtab_dev
1334b65f77454b7188e1a80d42c5cbc123799edd
[ "MIT" ]
null
null
null
interface/__init__.py
phucty/mtab_dev
1334b65f77454b7188e1a80d42c5cbc123799edd
[ "MIT" ]
null
null
null
interface/__init__.py
phucty/mtab_dev
1334b65f77454b7188e1a80d42c5cbc123799edd
[ "MIT" ]
null
null
null
import mistune from flask import Flask from pygments import highlight from pygments.formatters import html from pygments.lexers import get_lexer_by_name from api import m_f import http.client http.client._MAXLINE = 655360 m_f.init(is_log=True) app = Flask(__name__) # pagination = Pagination(app) app.config["SECRET...
22.630435
74
0.741595
79b9b43fc2cce46ad4393871dfe15b7b322d09fe
5,936
py
Python
savu/core/transport_setup.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/core/transport_setup.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/core/transport_setup.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# Copyright 2015 Diamond Light Source Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
36.417178
78
0.616071
79ba0bff18e0a2ea2a6e5634cd5706c18a230fb5
2,158
py
Python
ctree/dotgen.py
ucb-sejits/ctree
30e5992578c3eba71e49beb1cb47f4e62895c09e
[ "BSD-2-Clause" ]
16
2015-01-11T21:10:26.000Z
2021-09-28T11:39:56.000Z
ctree/dotgen.py
ucb-sejits/ctree
30e5992578c3eba71e49beb1cb47f4e62895c09e
[ "BSD-2-Clause" ]
12
2015-01-01T01:55:49.000Z
2019-06-23T16:41:12.000Z
ctree/dotgen.py
mbdriscoll/ctree
e15538ecdf3aaa3bb2f210701d29334fd5e4ec40
[ "BSD-2-Clause" ]
4
2015-07-23T20:48:36.000Z
2021-08-02T12:17:37.000Z
import ast from ctree.visitors import NodeVisitor from ctree.util import enumerate_flatten def label_for_py_ast_nodes(self): from ctree.py.dotgen import PyDotLabeller return PyDotLabeller().visit(self) def to_dot_outer_for_py_ast_nodes(self): return "digraph mytree {\n%s}" % self._to_dot() def to_dot_...
29.972222
81
0.632994
79ba13d3788e3e08273607dec6caecf00cb2656b
11,816
py
Python
google/appengine/ext/datastore_admin/main.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/ext/datastore_admin/main.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/ext/datastore_admin/main.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google 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 o...
32.731302
80
0.699983
79ba1fc2d24dc66b68cb3d9e284d676e5af028b5
1,822
py
Python
Lib/site-packages/matplotlib/backends/backend_gtk3cairo.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
5
2017-11-15T10:33:42.000Z
2021-11-16T02:21:31.000Z
matplotlib/backends/backend_gtk3cairo.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2017-10-28T03:30:26.000Z
2017-10-28T03:31:00.000Z
matplotlib/backends/backend_gtk3cairo.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
6
2017-11-30T00:34:20.000Z
2021-05-20T02:58:02.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) import six from . import backend_cairo, backend_gtk3 from .backend_cairo import cairo, HAS_CAIRO_CFFI from .backend_gtk3 import _BackendGTK3 from matplotlib.backend_bases import cursors from matplotlib.figure ...
30.881356
84
0.67124
79ba279c05f7675c999c8a80132b1acd14a1f1b7
2,625
py
Python
colin-api/src/colin_api/resources/__init__.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
1
2019-11-07T20:32:59.000Z
2019-11-07T20:32:59.000Z
colin-api/src/colin_api/resources/__init__.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
null
null
null
colin-api/src/colin_api/resources/__init__.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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 agr...
34.539474
95
0.729524
79ba4b9ca42c0c7d5cb35502ea3c03d53965ab88
7,436
py
Python
quantitative_investment/apps.py
WangDaLei/Nicholas
c073f862df4688b7e04968e10cd58014f3509a60
[ "MIT" ]
null
null
null
quantitative_investment/apps.py
WangDaLei/Nicholas
c073f862df4688b7e04968e10cd58014f3509a60
[ "MIT" ]
4
2020-02-11T23:22:08.000Z
2022-03-02T14:56:03.000Z
quantitative_investment/apps.py
WangDaLei/Nicholas
c073f862df4688b7e04968e10cd58014f3509a60
[ "MIT" ]
1
2021-02-26T11:23:33.000Z
2021-02-26T11:23:33.000Z
from stock.models import\ StockInfo,\ TradeRecord,\ StockBonusHistory,\ StockAllotmentHistory class Stock: """Stock base class.""" def __init__(self, code): self.code = code def get_all_trade_date(self, order=0): """ Get stock's list dates. order: default...
33.048889
76
0.545992
79ba567cba79aced478149b315eaed5861026e2f
4,475
py
Python
find_port.py
kjcole/usb-ser-mon
621e8ae1062fd2abc0faf9fc69b7dbea3fceca24
[ "MIT" ]
null
null
null
find_port.py
kjcole/usb-ser-mon
621e8ae1062fd2abc0faf9fc69b7dbea3fceca24
[ "MIT" ]
null
null
null
find_port.py
kjcole/usb-ser-mon
621e8ae1062fd2abc0faf9fc69b7dbea3fceca24
[ "MIT" ]
null
null
null
#!/usr/bin/python3 -u # -*- coding: utf-8 -*- # Source: Dave Hylands USB monitor at # https://github.com/dhylands/usb-ser-mon/blob/master/find_port.py """Program which detects USB serial ports. This program will search for a USB serial port using a search criteria. In its simplest form, you can use the -l (--list) o...
28.503185
76
0.61743
79ba67e54d77180aa362e16198b0b57d22930a27
2,288
py
Python
matomat/services/auth.py
omgwtflaserguns/matomatpy
4f61d658cfe57ac13b9566311aeaeebf3ad53e21
[ "MIT" ]
null
null
null
matomat/services/auth.py
omgwtflaserguns/matomatpy
4f61d658cfe57ac13b9566311aeaeebf3ad53e21
[ "MIT" ]
8
2016-04-13T08:40:55.000Z
2016-04-13T09:17:20.000Z
matomat/services/auth.py
omgwtflaserguns/matomatpy
4f61d658cfe57ac13b9566311aeaeebf3ad53e21
[ "MIT" ]
null
null
null
from matomat.models.menu import MenuKey, MenuEntry class Authorization(object): def __init__(self, db, log): self.db = db self.currentUser = None self.log = log def login(self, username, password): """Try to login the given username and password combination, returns wether l...
32.685714
107
0.644668
79ba6df48be61de1557517423235e290f34685f4
2,347
py
Python
run/browsers_test.py
bocoup/wptdashboard
35563fcc31fd09a360f8e9197e0a060a1e8e5bd4
[ "BSD-3-Clause" ]
1
2018-01-21T10:34:54.000Z
2018-01-21T10:34:54.000Z
run/browsers_test.py
bocoup/wptdashboard
35563fcc31fd09a360f8e9197e0a060a1e8e5bd4
[ "BSD-3-Clause" ]
3
2021-02-08T21:03:05.000Z
2021-06-02T03:39:32.000Z
run/browsers_test.py
mattl/xvfb
f75d147818747fa10cac671fae4c9a91ee91b3f1
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The WPT Dashboard Project. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import os import re import unittest VALID_PLATFORM_ID_REGEX = r"^[a-z0-9\-\.]+$" REQUIRED_PLATFORM_FIELDS = { 'currently_run': (True, ...
35.029851
76
0.602045
79ba96fd2b7cdf394a34dbf15658e285fe6f499e
4,480
py
Python
swe/airflow/tools/operators/extract_database.py
swe-eng-br/swe-airflow-tools
87958a38e80c40ee9cc953747ba6290990b99c92
[ "Apache-2.0" ]
null
null
null
swe/airflow/tools/operators/extract_database.py
swe-eng-br/swe-airflow-tools
87958a38e80c40ee9cc953747ba6290990b99c92
[ "Apache-2.0" ]
null
null
null
swe/airflow/tools/operators/extract_database.py
swe-eng-br/swe-airflow-tools
87958a38e80c40ee9cc953747ba6290990b99c92
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import logging from airflow.hooks.dbapi_hook import DbApiHook from airflow.hooks.postgres_hook import PostgresHook from airflow.models import BaseOperator, XCOM_RETURN_KEY from airflow.utils.decorators import apply_defaults from airflow.exceptions import AirflowException from ..stor...
31.77305
101
0.595089
79babbca397db765a3cc2856d5de1e0e14d529d8
2,870
py
Python
samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-shellutil-oper/gn-read-xr-shellutil-oper-10-ydk.py
rodrigmgg/ydk-py-samples
ebea5ab56d8e37e0523d37f0aa5529766528eea2
[ "Apache-2.0" ]
null
null
null
samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-shellutil-oper/gn-read-xr-shellutil-oper-10-ydk.py
rodrigmgg/ydk-py-samples
ebea5ab56d8e37e0523d37f0aa5529766528eea2
[ "Apache-2.0" ]
null
null
null
samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-shellutil-oper/gn-read-xr-shellutil-oper-10-ydk.py
rodrigmgg/ydk-py-samples
ebea5ab56d8e37e0523d37f0aa5529766528eea2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2016 Cisco Systems, 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 applicab...
31.888889
75
0.66899
79bacfd85371a4d2130a05416bc58c1a16293613
8,189
py
Python
joj/horse/models/user.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
6
2020-12-28T07:05:52.000Z
2022-01-16T04:44:02.000Z
joj/horse/models/user.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
56
2021-02-02T02:21:52.000Z
2022-03-13T02:39:05.000Z
joj/horse/models/user.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
3
2021-01-28T17:52:58.000Z
2021-12-17T17:42:42.000Z
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple from pydantic import EmailStr, root_validator from sqlalchemy.sql.expression import Select, or_ from sqlmodel import Field, Relationship from joj.horse.models.base import BaseORMModel from joj.horse.models.user_oauth_account import UserOAuthAccount fr...
38.810427
103
0.645012
79bae9d37379b31a284884c1a6c29a3aba42bec0
590
py
Python
scripts/examples/tools/reshacker.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
21
2019-10-24T04:59:52.000Z
2021-05-11T12:47:17.000Z
scripts/examples/tools/reshacker.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
null
null
null
scripts/examples/tools/reshacker.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
9
2019-10-26T16:56:08.000Z
2021-03-15T14:10:21.000Z
# Tool Imports from bph.tools.windows.resourcehacker import BphResourceHacker as ResourceHacker # Core Imports from bph.core.server.template import BphTemplateServer as TemplateServer from bph.core.session import BphSession as Session from bph.core.sample import BphLabFile as LabFile session = Session(project_name='b...
28.095238
80
0.837288
79baf9a715b92c31b094e4c8a50744c01d4fddc6
38,712
py
Python
tests/app/questionnaire/test_rules.py
ajmaddaford/eq-questionnaire-runner
474d16c9a85cdda58419dec68e38537e244210ec
[ "MIT" ]
null
null
null
tests/app/questionnaire/test_rules.py
ajmaddaford/eq-questionnaire-runner
474d16c9a85cdda58419dec68e38537e244210ec
[ "MIT" ]
null
null
null
tests/app/questionnaire/test_rules.py
ajmaddaford/eq-questionnaire-runner
474d16c9a85cdda58419dec68e38537e244210ec
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines from unittest.mock import Mock, patch from app.data_models.answer_store import Answer, AnswerStore from app.data_models.list_store import ListStore from app.questionnaire.location import Location from app.questionnaire.questionnaire_schema import QuestionnaireSchema from app.questionna...
33.928133
88
0.545516
79bafc77ca9d65e596faff87126a22be1594fb33
8,021
py
Python
sgp4/model.py
glangford/python-sgp4
fdc031157e0e46dea65c78103dece1ef64573d08
[ "MIT" ]
null
null
null
sgp4/model.py
glangford/python-sgp4
fdc031157e0e46dea65c78103dece1ef64573d08
[ "MIT" ]
null
null
null
sgp4/model.py
glangford/python-sgp4
fdc031157e0e46dea65c78103dece1ef64573d08
[ "MIT" ]
null
null
null
"""The Satellite class.""" from sgp4.earth_gravity import wgs72old, wgs72, wgs84 from sgp4.ext import days2mdhms, jday from sgp4.functions import jday as jday2 from sgp4.io import twoline2rv from sgp4.propagation import sgp4, sgp4init WGS72OLD = 0 WGS72 = 1 WGS84 = 2 gravity_constants = wgs72old, wgs72, wgs84 # inde...
37.306977
79
0.59606
79bb44386fd2d131d1b843ecc6d1e0f78b717272
2,934
py
Python
test/test_dag_array_input_alias.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
2
2020-01-30T23:28:59.000Z
2020-05-06T16:43:47.000Z
test/test_dag_array_input_alias.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
1
2020-10-02T18:00:25.000Z
2020-10-02T18:00:25.000Z
test/test_dag_array_input_alias.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ pollination-server Pollination Server OpenAPI Definition # noqa: E501 The version of the OpenAPI document: 0.16.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import...
31.212766
97
0.481936
79bb6c2863a32c00612a4384e808e2ae68aa4d5e
231
py
Python
app/main/errors.py
alphonce-otieno-odhiambo/LIFE-CHANGING
3751be2ac6fcb4da62e1ce852e8e5453a3689dd3
[ "MIT" ]
null
null
null
app/main/errors.py
alphonce-otieno-odhiambo/LIFE-CHANGING
3751be2ac6fcb4da62e1ce852e8e5453a3689dd3
[ "MIT" ]
null
null
null
app/main/errors.py
alphonce-otieno-odhiambo/LIFE-CHANGING
3751be2ac6fcb4da62e1ce852e8e5453a3689dd3
[ "MIT" ]
null
null
null
# from flask import render_template # from . import main # @main.app_errorhandler(404) # def four_Ow_four(error): # ''' # Function to render the 404 error page # ''' # return render_template('fourOwfour.html'),404
23.1
51
0.675325
79bb720f1ea1b519e629cb3c6cafb5bb306e5273
15,430
py
Python
tests/bambou_adapter_test_params.py
nuagenetworks/nuage-metroae-conf
727e218144cf38541f1968242633d6a06969f2f5
[ "Apache-2.0" ]
3
2020-04-22T19:39:08.000Z
2021-06-16T16:03:29.000Z
tests/bambou_adapter_test_params.py
nuagenetworks/nuage-metroae-conf
727e218144cf38541f1968242633d6a06969f2f5
[ "Apache-2.0" ]
8
2020-04-27T14:48:16.000Z
2021-09-09T15:37:16.000Z
tests/bambou_adapter_test_params.py
nuagenetworks/nuage-metroae-conf
727e218144cf38541f1968242633d6a06969f2f5
[ "Apache-2.0" ]
1
2021-10-13T20:30:39.000Z
2021-10-13T20:30:39.000Z
BAMBOU_MOCK_URL = "https://localhost:8443" BAMBOU_REAL_URL = "https://localhost:8080" ROOT_SPEC_TEST = {"attributes": [{"name": "name", "type": "string"}], "children": [{"rest_name": "enterprise", "relationship": "root"}], "model": {"entity_name": ...
46.899696
78
0.316008
79bb7acf13837bafc96e6a386ef8093fa06a3027
9,401
py
Python
gslib/commands/help.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
null
null
null
gslib/commands/help.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
null
null
null
gslib/commands/help.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
1
2022-01-28T15:28:54.000Z
2022-01-28T15:28:54.000Z
# -*- coding: utf-8 -*- # Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
37.907258
100
0.65259
79bb91dbfa3a84337e4199d97d1a0c570e9feabf
13,857
py
Python
discovery-provider/integration_tests/tasks/test_update_trending.py
RahulBansal123/audius-protocol
963ecfe898efd52713602cff5fd1a012aaf3c9d3
[ "Apache-2.0" ]
null
null
null
discovery-provider/integration_tests/tasks/test_update_trending.py
RahulBansal123/audius-protocol
963ecfe898efd52713602cff5fd1a012aaf3c9d3
[ "Apache-2.0" ]
null
null
null
discovery-provider/integration_tests/tasks/test_update_trending.py
RahulBansal123/audius-protocol
963ecfe898efd52713602cff5fd1a012aaf3c9d3
[ "Apache-2.0" ]
null
null
null
import logging from datetime import datetime, timedelta from integration_tests.utils import populate_mock_db from src.models import AggregateIntervalPlay, TrackTrendingScore, TrendingParam from src.tasks.index_aggregate_plays import _update_aggregate_plays from src.trending_strategies.ML51L_trending_tracks_strategy im...
36.180157
94
0.474922
79bb97ef442545da2f342fa922060ab67d9f5c47
2,300
py
Python
resources/drive.py
MujyKun/IreneAPI
6f2105c64991753b8e4520f6b624a2cf5fbc9519
[ "MIT" ]
1
2021-12-20T23:22:02.000Z
2021-12-20T23:22:02.000Z
resources/drive.py
MujyKun/IreneAPI
6f2105c64991753b8e4520f6b624a2cf5fbc9519
[ "MIT" ]
null
null
null
resources/drive.py
MujyKun/IreneAPI
6f2105c64991753b8e4520f6b624a2cf5fbc9519
[ "MIT" ]
null
null
null
from __future__ import print_function import pickle import os.path import io # noinspection PyPackageRequirements from googleapiclient.http import MediaIoBaseDownload # noinspection PyPackageRequirements from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow # noinspection Py...
31.506849
73
0.661739
79bb9a6988f55aeb4d69cc8c9a5530ac501564ba
8,915
py
Python
yolact/layers/functions/detection.py
subhacom/argos
e1b4057e470c517aabca6b6e0a0efb44871fed82
[ "Unlicense" ]
1
2021-05-18T01:07:16.000Z
2021-05-18T01:07:16.000Z
yolact/layers/functions/detection.py
subhacom/argos
e1b4057e470c517aabca6b6e0a0efb44871fed82
[ "Unlicense" ]
null
null
null
yolact/layers/functions/detection.py
subhacom/argos
e1b4057e470c517aabca6b6e0a0efb44871fed82
[ "Unlicense" ]
null
null
null
import torch import torch.nn.functional as F from yolact.layers.box_utils import decode, jaccard, index2d from yolact.utils import timer from yolact.data import cfg, mask_type import numpy as np class Detect(object): """At test time, Detect is the final layer of SSD. Decode location preds, apply non-maximu...
38.930131
121
0.622546
79bbb4da821c4c9f7b5228628e2ca4555ce9ae49
3,696
py
Python
src/8/implementing_a_data_model_or_type_system/example.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
14
2017-05-20T04:06:46.000Z
2022-01-23T06:48:45.000Z
src/8/implementing_a_data_model_or_type_system/example.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
1
2021-06-10T20:17:55.000Z
2021-06-10T20:17:55.000Z
src/8/implementing_a_data_model_or_type_system/example.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
15
2017-03-29T17:57:33.000Z
2021-08-24T02:20:08.000Z
# Base class. Uses a descriptor to set a value class Descriptor: def __init__(self, name=None, **opts): self.name = name self.__dict__.update(opts) def __set__(self, instance, value): instance.__dict__[self.name] = value # Descriptor for enforcing types class Typed(Descriptor): exp...
26.782609
66
0.593885
79bbb4fa6d46a8eaacd39e32001887b61e55e673
2,883
py
Python
test/tsne/tsne_caption_3d_scatter_test.py
lantuzi/Joint-Text-and-Image-Representation
906d490f2795fdd1dd76abb70d658b49bf68f8bd
[ "MIT" ]
null
null
null
test/tsne/tsne_caption_3d_scatter_test.py
lantuzi/Joint-Text-and-Image-Representation
906d490f2795fdd1dd76abb70d658b49bf68f8bd
[ "MIT" ]
null
null
null
test/tsne/tsne_caption_3d_scatter_test.py
lantuzi/Joint-Text-and-Image-Representation
906d490f2795fdd1dd76abb70d658b49bf68f8bd
[ "MIT" ]
null
null
null
##################################################################################### # MIT License # # # # Copyright (C) 2019 Charly Lamothe, Guillaume Ollier, Bal...
58.836735
87
0.516129
79bbbf61513c9d39e7e9018fadb334966c4f6bfb
1,116
py
Python
pytealutils/string.py
gmcgoldr/pyteal-utils
3716ff74312d5136df89456e3db711037edccdcb
[ "MIT" ]
1
2021-12-06T21:58:47.000Z
2021-12-06T21:58:47.000Z
pytealutils/string.py
gmcgoldr/pyteal-utils
3716ff74312d5136df89456e3db711037edccdcb
[ "MIT" ]
null
null
null
pytealutils/string.py
gmcgoldr/pyteal-utils
3716ff74312d5136df89456e3db711037edccdcb
[ "MIT" ]
null
null
null
from pyteal import * from .math import ilog10 ascii_offset = Int(48) # Magic number to convert between ascii chars and integers @Subroutine(TealType.uint64) def ascii_to_int(arg: TealType.uint64): return arg - ascii_offset @Subroutine(TealType.bytes) def int_to_ascii(arg: TealType.uint64): # return arg +...
22.77551
82
0.625448
79bbe84648b217a594fe03319268ca91f58b73d2
4,486
py
Python
login.py
kevbaker/CLI-PKCE
586e32885b82fed80de355613708ed76c6762567
[ "MIT" ]
null
null
null
login.py
kevbaker/CLI-PKCE
586e32885b82fed80de355613708ed76c6762567
[ "MIT" ]
null
null
null
login.py
kevbaker/CLI-PKCE
586e32885b82fed80de355613708ed76c6762567
[ "MIT" ]
null
null
null
import base64 import hashlib import json import os import pathlib import requests import secrets import threading import urllib import webbrowser from time import sleep from werkzeug.serving import make_server import dotenv from flask import Flask, request # Load Settings from dotenv env_path = pathlib.Path('.') / ...
28.75641
102
0.71177
79bc2ef9d3b9921b098c9ee29a01226b5611a39c
1,158
py
Python
grokking-algorithms/dijkstra.py
AmrMKayid/KayAlgo
df6e2b5b0f74174d5c0950520f0c47b04212dfaa
[ "MIT" ]
1
2019-02-11T13:29:32.000Z
2019-02-11T13:29:32.000Z
grokking-algorithms/dijkstra.py
AmrMKayid/KayAlgo
df6e2b5b0f74174d5c0950520f0c47b04212dfaa
[ "MIT" ]
1
2019-02-11T15:26:36.000Z
2019-02-11T15:26:36.000Z
grokking-algorithms/dijkstra.py
AmrMKayid/KayAlgo
df6e2b5b0f74174d5c0950520f0c47b04212dfaa
[ "MIT" ]
null
null
null
from pprint import pprint graph = {} graph['start'] = {'A': 6, 'B': 2} graph['A'] = {'finish': 1} graph['B'] = {'A': 3, 'finish': 5} graph['finish'] = {} infinity = float('inf') costs = {} costs['A'] = 6 costs['B'] = 2 costs['finish'] = infinity parents = {} parents['A'] = 'start' parents['B'] = 'start' parents['fi...
21.444444
56
0.637306
79bc3c490e465dfa8fdfa9e198787f279f37fa7c
638
py
Python
wrapweb/__init__.py
mesonbuild/wrapweb
c616627d7448fcadd601e838bedf1d717474cb1c
[ "Apache-2.0" ]
22
2015-05-30T12:40:58.000Z
2020-01-02T10:46:11.000Z
wrapweb/__init__.py
mesonbuild/wrapweb
c616627d7448fcadd601e838bedf1d717474cb1c
[ "Apache-2.0" ]
102
2015-05-30T17:12:02.000Z
2020-01-25T11:20:35.000Z
wrapweb/__init__.py
mesonbuild/wrapweb
c616627d7448fcadd601e838bedf1d717474cb1c
[ "Apache-2.0" ]
8
2018-02-27T14:59:24.000Z
2020-01-24T18:13:16.000Z
# Copyright 2015 The Meson development team # # 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 ...
35.444444
74
0.760188
79bc5f31d088efed53c8fa916fb5bed2f72cb612
4,405
py
Python
producten/migrations/0003_auto__del_unique_samengesteldproduct_naam__chg_field_simpelproduct_laa.py
fahrrad/klepro
3257a30a6a20bdcaf51256f31d80126047fd1c63
[ "Apache-2.0" ]
null
null
null
producten/migrations/0003_auto__del_unique_samengesteldproduct_naam__chg_field_simpelproduct_laa.py
fahrrad/klepro
3257a30a6a20bdcaf51256f31d80126047fd1c63
[ "Apache-2.0" ]
null
null
null
producten/migrations/0003_auto__del_unique_samengesteldproduct_naam__chg_field_simpelproduct_laa.py
fahrrad/klepro
3257a30a6a20bdcaf51256f31d80126047fd1c63
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Removing unique constraint on 'SimpelProduct', fields ['naam'] db.delet...
57.207792
200
0.615891
79bc870f7398df1e1957686759231244c20ced55
902
py
Python
tests/measure_tests/similarity_measure_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
23
2015-01-21T01:39:11.000Z
2019-08-27T09:43:39.000Z
tests/measure_tests/similarity_measure_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
1
2015-01-18T08:52:30.000Z
2015-01-18T08:52:30.000Z
tests/measure_tests/similarity_measure_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
6
2015-03-23T16:58:18.000Z
2019-03-12T06:31:56.000Z
# coding=utf-8 from unittest import TestCase from similarityPy.measure.string_data.edit_distance import SimilarityMeasure from tests import test_logger __author__ = 'cenk' class SimilarityMeasureTest(TestCase): def test_algorithm(self): test_logger.debug("SimilarityMeasureTest - test_algorithm Starts"...
31.103448
76
0.686253
79bc9b7953b704957aae333ad64c2ac4a2d087f9
6,313
py
Python
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/operations/_sql_pool_operations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/operations/_sql_pool_operations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/operations/_sql_pool_operations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
45.417266
202
0.663235
79bcc0d7f66f60475e7f1885a46ff7c83ff8a123
1,039
py
Python
Google Kickstart/2020/Round E/a.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
Google Kickstart/2020/Round E/a.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
Google Kickstart/2020/Round E/a.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
""" Problem link: Solution By Keshav Mishra """ from sys import stdin,stdout def input(): return stdin.readline().strip() # def print(s): stdout.write(str(s)+'\n') from collections import Counter # Constants YES = 'YES' NO = 'NO' yes = 'yes' no = 'no' true = 'true' false = 'false' def solve(t): n = int(inp...
19.980769
48
0.505294
79bcd0a0d0696bd710cc3bfeea142f332bbd26fb
5,805
py
Python
alipay/aop/api/domain/AlipayCommerceTransportCarrentalServiceSubmitModel.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/domain/AlipayCommerceTransportCarrentalServiceSubmitModel.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/domain/AlipayCommerceTransportCarrentalServiceSubmitModel.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.constant.ParamConstants import * from alipay.aop.api.domain.ExtraInfo import ExtraInfo from alipay.aop.api.domain.CarRentalMerchantInfo import CarRentalMerchantInfo from alipay.aop.api.domain.CarRentalStoreInfo import CarRentalStoreInfo cl...
34.96988
89
0.619294
79bcdeb37a384134398d6d42e730f10d8bdfb4fc
8,716
py
Python
hw01/log_analyzer/log_analyzer.py
dmryutov/otus-python-0319
c825166ff16a2e26f3d99e375b13c9e2e8ada49b
[ "MIT" ]
null
null
null
hw01/log_analyzer/log_analyzer.py
dmryutov/otus-python-0319
c825166ff16a2e26f3d99e375b13c9e2e8ada49b
[ "MIT" ]
null
null
null
hw01/log_analyzer/log_analyzer.py
dmryutov/otus-python-0319
c825166ff16a2e26f3d99e375b13c9e2e8ada49b
[ "MIT" ]
null
null
null
import argparse from collections import defaultdict, namedtuple from datetime import datetime import gzip import json import logging from operator import itemgetter import pathlib import re from statistics import median DEFAULT_CONFIG_PATH = './config.json' """Default configuration file path""" DEFAULT_CONFIG = { ...
25.710914
97
0.625516
79bcdf1354139cd69f9c266cf6e10a96a5d115ad
386
py
Python
terrascript/resource/archive.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/archive.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/archive.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/archive.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:11:52 UTC) # # For imports without namespace, e.g. # # >>> import terrascript.resource.archive # # instead of # # >>> import terrascript.resource.hashicorp.archive # # This is only available for 'official' and 'partner'...
25.733333
73
0.748705
79bcf2993651121cd23cd39bd920a53eef5f43a2
700
py
Python
scripts/losses.py
MosesBomera/CloudCoverDetectionChallenge
da1e35586fd30cc795efe6baca1f297400e5ce99
[ "MIT" ]
null
null
null
scripts/losses.py
MosesBomera/CloudCoverDetectionChallenge
da1e35586fd30cc795efe6baca1f297400e5ce99
[ "MIT" ]
null
null
null
scripts/losses.py
MosesBomera/CloudCoverDetectionChallenge
da1e35586fd30cc795efe6baca1f297400e5ce99
[ "MIT" ]
null
null
null
import numpy as np def intersection_over_union(pred, true): """ Calculates intersection and union for a batch of images. Args: pred (torch.Tensor): a tensor of predictions true (torc.Tensor): a tensor of labels Returns: intersection (int): total intersection of pixels ...
30.434783
60
0.675714
79bd05ae66aea0505ba93ea93a6d9b4cc1d9c2c7
24,560
py
Python
tensorlayer/utils.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
tensorlayer/utils.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
tensorlayer/utils.py
OliverZijia/tensorlayer2
01113b53e84a3bbb298b9c35ebd53254e487350f
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python # -*- coding: utf-8 -*- import os import random import subprocess import sys import time from collections import Counter from sys import exit as _exit from sys import platform as _platform import numpy as np import tensorflow as tf from sklearn.metrics import accuracy_score, confusion_matrix, f1_sc...
37.726575
306
0.606433
79bd190c20cf808f51b93c210210b8261900c089
1,578
py
Python
env/lib/python2.7/site-packages/lib3to2/fixes/fix_annotations.py
Eric-Muthemba/qontroverse
1f12d0e3bbdee628a88bac77dc53426ded220755
[ "MIT" ]
3
2021-03-29T19:21:08.000Z
2021-12-31T09:30:11.000Z
VisionAPI/lib/python3.8/site-packages/lib3to2/fixes/fix_annotations.py
aniruddhakj/AnswerScriptEvaluation
7b039b84355ecda1d55dc037ccfc4a4d661ad5e3
[ "BSD-3-Clause" ]
1
2021-06-02T01:45:42.000Z
2021-06-02T01:45:42.000Z
env/lib/python2.7/site-packages/lib3to2/fixes/fix_annotations.py
Eric-Muthemba/qontroverse
1f12d0e3bbdee628a88bac77dc53426ded220755
[ "MIT" ]
2
2019-01-22T01:05:22.000Z
2019-09-27T12:32:22.000Z
""" Fixer to remove function annotations """ from lib2to3 import fixer_base from lib2to3.pgen2 import token from lib2to3.fixer_util import syms warning_text = "Removing function annotations completely." def param_without_annotations(node): return node.children[0] class FixAnnotations(fixer_base.BaseFix): w...
32.204082
93
0.607098
79bd3e177a064d6eeb93c2e19df8ad3b54c67586
158
py
Python
tests/test_main.py
falkben/steam2sqlite
58a007e56d90173d9e2547a79e23049310d00b85
[ "MIT" ]
2
2022-03-24T18:04:20.000Z
2022-03-24T18:04:50.000Z
tests/test_main.py
falkben/steam-to-sqlite
d64161dac5233b4bfc74854772d3d98b02e15d0a
[ "MIT" ]
34
2021-11-28T20:58:30.000Z
2022-03-29T01:57:17.000Z
tests/test_main.py
falkben/steam2sqlite
58a007e56d90173d9e2547a79e23049310d00b85
[ "MIT" ]
null
null
null
from steam2sqlite import main def test_main(): """runs the script for a brief time""" result = main.main(("--limit", "0.1")) assert result == 0
19.75
42
0.620253
79bd4a3b3ab6b486392aa96bb837494dbdf315b3
1,492
py
Python
stdplugins/invite.py
dqanshi/alluka
f1ac5b227f4e12a4363c6e06b8acc0fd5aac6f1c
[ "Apache-2.0" ]
1
2020-08-02T11:14:29.000Z
2020-08-02T11:14:29.000Z
stdplugins/invite.py
dqanshi/alluka
f1ac5b227f4e12a4363c6e06b8acc0fd5aac6f1c
[ "Apache-2.0" ]
1
2021-02-08T20:41:43.000Z
2021-02-08T20:41:43.000Z
stdplugins/invite.py
dqanshi/alluka
f1ac5b227f4e12a4363c6e06b8acc0fd5aac6f1c
[ "Apache-2.0" ]
1
2020-05-31T07:19:52.000Z
2020-05-31T07:19:52.000Z
""" Syntax: .invite<username> for all users Customized by @meanii Please Don't remove credit name """ from telethon import functions from uniborg.util import admin_cmd from telethon import events @borg.on(admin_cmd(pattern="invite ?(.*)")) @borg.on(events.NewMessage(pattern=r"\.invite ?(.*)",incoming=True)) async...
32.434783
80
0.547587
79bd73faaf1301a2fc4999b64f88d30542577980
2,736
py
Python
tensorflow/contrib/learn/__init__.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/learn/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/learn/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2016 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...
25.570093
93
0.773392
79bd82f78a1f8ca303bc66ae53a7b21bfef24425
140
py
Python
abc/220/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/220/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/220/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
A, B, C = map(int, input().split()) cnt = 0 tmp = C while C <= B: if A <= C <= B: print(C) exit() C += tmp print(-1)
15.555556
35
0.421429
79bd856d4eb5f095d3afaecf46a08a2c40fe75d2
18,080
py
Python
src/streamlink/session.py
zel4ever/streamlink
0e48e2f01a370fa83cabc27b067b6f72cd1b8d9d
[ "BSD-2-Clause" ]
1
2019-11-25T01:37:21.000Z
2019-11-25T01:37:21.000Z
src/streamlink/session.py
zel4ever/streamlink
0e48e2f01a370fa83cabc27b067b6f72cd1b8d9d
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/session.py
zel4ever/streamlink
0e48e2f01a370fa83cabc27b067b6f72cd1b8d9d
[ "BSD-2-Clause" ]
null
null
null
import imp import logging import pkgutil import sys import traceback import requests from streamlink.logger import StreamlinkLogger, Logger from streamlink.utils import update_scheme, memoize from streamlink.utils.l10n import Localization from . import plugins, __version__ from .compat import is_win32 from .exception...
36.305221
104
0.52854
79bda998bcff1bb884c0d368724328a4a43f89a8
28,410
py
Python
generated/python/proto-google-cloud-dlp-v2beta1/google/cloud/proto/privacy/dlp/v2beta1/storage_pb2.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
18
2016-12-08T20:47:57.000Z
2022-01-29T19:36:04.000Z
generated/python/proto-google-cloud-dlp-v2beta1/google/cloud/proto/privacy/dlp/v2beta1/storage_pb2.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
252
2016-09-21T20:51:36.000Z
2021-03-25T23:02:36.000Z
generated/python/proto-google-cloud-dlp-v2beta1/google/cloud/proto/privacy/dlp/v2beta1/storage_pb2.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
37
2016-09-19T21:13:16.000Z
2022-01-29T19:36:07.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/proto/privacy/dlp/v2beta1/storage.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from goog...
36.848249
2,320
0.755297
79bdaf3f8204a876bfa6d521515df8770d9d4569
74,440
py
Python
mypy/nodes.py
cocoatomo/mypy
f8c3550b9405bf419aa1e0d6f7eb56dc10565a89
[ "PSF-2.0" ]
null
null
null
mypy/nodes.py
cocoatomo/mypy
f8c3550b9405bf419aa1e0d6f7eb56dc10565a89
[ "PSF-2.0" ]
null
null
null
mypy/nodes.py
cocoatomo/mypy
f8c3550b9405bf419aa1e0d6f7eb56dc10565a89
[ "PSF-2.0" ]
null
null
null
"""Abstract syntax tree node classes (i.e. parse tree).""" import os from abc import abstractmethod from typing import ( Any, TypeVar, List, Tuple, cast, Set, Dict, Union, Optional ) from mypy.lex import Token import mypy.strconv from mypy.visitor import NodeVisitor from mypy.util import dump_tagged, short_type ...
32.634809
98
0.612547
79bdb48f592f1a20c31cf62c16ecc94a2e7988fb
2,310
py
Python
tests/test_commands_xargs.py
mikeboers/aque
4215fd01ab2a0fd88aeac7f2d69b4c888caa7aa1
[ "BSD-3-Clause" ]
1
2019-05-01T15:26:54.000Z
2019-05-01T15:26:54.000Z
tests/test_commands_xargs.py
mikeboers/aque
4215fd01ab2a0fd88aeac7f2d69b4c888caa7aa1
[ "BSD-3-Clause" ]
null
null
null
tests/test_commands_xargs.py
mikeboers/aque
4215fd01ab2a0fd88aeac7f2d69b4c888caa7aa1
[ "BSD-3-Clause" ]
null
null
null
from . import * class TestXargsCommand(BrokerTestCase): def test_basic_usage(self): path = os.path.join(self.sandbox, 'one.txt') out = self_check_output(['xargs', '-v', 'bash', '-c', 'echo $AQUE_TID >> "%s"' % path], stdin='1\n') tids = [int(x) for x in out.strip().split()] self....
45.294118
122
0.561905
79bdc5d1aea4bc33e658b068b530023fb036d573
304
py
Python
tests/network/test_fees.py
mc-gulu-forked/bitsv
2f89cc1ad0f950231ff925b9aea06a3047a5a941
[ "MIT" ]
1
2019-08-31T14:14:23.000Z
2019-08-31T14:14:23.000Z
tests/network/test_fees.py
mc-gulu-forked/bitsv
2f89cc1ad0f950231ff925b9aea06a3047a5a941
[ "MIT" ]
1
2020-01-10T13:16:36.000Z
2020-01-10T13:16:36.000Z
tests/network/test_fees.py
mc-gulu-forked/bitsv
2f89cc1ad0f950231ff925b9aea06a3047a5a941
[ "MIT" ]
null
null
null
import pytest from bitsv.network.fees import get_fee def test_get_fee(): assert get_fee(speed='fast') >= get_fee(speed='medium') assert get_fee(speed='medium') >= get_fee(speed='slow') def test_get_fee_invalid_speed(): with pytest.raises(ValueError): get_fee(speed='super fast')
21.714286
59
0.710526
79bdd199d13d6d5ec464aac0d11bc9d3fdd2a112
2,628
py
Python
loaner/web_app/backend/api/messages/bootstrap_messages.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
loaner/web_app/backend/api/messages/bootstrap_messages.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
loaner/web_app/backend/api/messages/bootstrap_messages.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.12987
74
0.759132
79bde251aa5b5026215f40b9ff8edd2097b94684
2,431
py
Python
sdks/python/appcenter_sdk/models/AppResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/AppResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/AppResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class AppResponse(ob...
26.714286
80
0.552448
79be1ac856a1958ec91be06bb00c367f7d6b200a
6,334
py
Python
tests/commands/test_results/test_result_put.py
guillaumebert/neoload-cli
7db878f79440849494dbe9f8c59571c05edeb7af
[ "BSD-2-Clause" ]
9
2020-06-01T14:28:37.000Z
2022-03-06T23:21:09.000Z
tests/commands/test_results/test_result_put.py
guillaumebert/neoload-cli
7db878f79440849494dbe9f8c59571c05edeb7af
[ "BSD-2-Clause" ]
97
2019-12-06T23:52:19.000Z
2022-02-11T14:22:07.000Z
tests/commands/test_results/test_result_put.py
guillaumebert/neoload-cli
7db878f79440849494dbe9f8c59571c05edeb7af
[ "BSD-2-Clause" ]
23
2020-03-24T18:38:58.000Z
2022-03-04T16:09:23.000Z
import re import pytest from click.testing import CliRunner from commands.test_results import cli as results from commands.status import cli as status from commands.logout import cli as logout from tests.helpers.test_utils import * @pytest.mark.results @pytest.mark.usefixtures("neoload_login") # it's like @Before o...
54.136752
143
0.619672
79be4ea5d4257a37e74628736491151afd8dc873
369
py
Python
binary-search/0035-search-insert-position(1、先特判,再二分).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-01-10T17:03:21.000Z
2021-01-10T17:03:21.000Z
binary-search/0035-search-insert-position(1、先特判,再二分).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
null
null
null
binary-search/0035-search-insert-position(1、先特判,再二分).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-07-25T07:53:14.000Z
2021-07-25T07:53:14.000Z
from typing import List class Solution: def searchInsert(self, nums: List[int], target: int) -> int: size = len(nums) left = 0 right = size while left < right: mid = (left + right) >> 1 if nums[mid] < target: left = mid + 1 else: ...
21.705882
64
0.466125
79be513ee8bf626a7aeadaf0e7be7811fca18374
763
py
Python
setup.py
ch5i/mediagrabber
5851df88f49f721fc249fb8864b3bdb4cc8b1c1f
[ "MIT" ]
1
2017-06-05T16:04:47.000Z
2017-06-05T16:04:47.000Z
setup.py
ch5i/MediaGrabber
5851df88f49f721fc249fb8864b3bdb4cc8b1c1f
[ "MIT" ]
2
2019-01-13T20:39:49.000Z
2019-01-25T23:11:39.000Z
setup.py
ch5i/mediagrabber
5851df88f49f721fc249fb8864b3bdb4cc8b1c1f
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup ( name='MediaGrabber', version='0.1', packages=find_packages(), description='A tool to automatically collect media files into a structure based on create date', # Declare your packages' dependencies here, for eg: install_requires=[], dependency_li...
30.52
99
0.719528
79be56a5e0c27d1ea2d2f5266e52d6a6ef9c6592
1,709
py
Python
app/core/migrations/0001_initial.py
Guaaaan/recipe-app-api
e60d06acdb2942f624432bd14fadb0d1195cc8d8
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
Guaaaan/recipe-app-api
e60d06acdb2942f624432bd14fadb0d1195cc8d8
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
Guaaaan/recipe-app-api
e60d06acdb2942f624432bd14fadb0d1195cc8d8
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2021-07-16 13:35 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
50.264706
266
0.63897
79be6eb4315f3c160e62d77a0bba974bcecba39f
6,785
py
Python
btk/utils.py
b-biswas/BlendingToolKit
2e85da4df99a84bcdff1d85ed66eb8589eb72499
[ "MIT" ]
16
2018-12-08T07:51:49.000Z
2022-03-27T16:52:00.000Z
btk/utils.py
b-biswas/BlendingToolKit
2e85da4df99a84bcdff1d85ed66eb8589eb72499
[ "MIT" ]
252
2018-10-29T20:23:40.000Z
2022-03-28T20:45:37.000Z
btk/utils.py
b-biswas/BlendingToolKit
2e85da4df99a84bcdff1d85ed66eb8589eb72499
[ "MIT" ]
8
2019-01-02T07:40:59.000Z
2021-01-21T03:10:04.000Z
"""Contains utility functions, including functions for loading saved results.""" import os import numpy as np from astropy.table import Table BLEND_RESULT_KEYS = ("blend_images", "isolated_images", "blend_list") def load_blend_results(path, survey): """Load results exported from a DrawBlendsGenerator. Args...
35.338542
97
0.623876
79bed3a4c818396e2a35b1d02f3f3d0770a1f5b4
1,863
py
Python
omeganlp/data/processor/__init__.py
yuiant/omeganlp
4258958b6d84a664d6fca0ca32a927a725b392c4
[ "MIT" ]
9
2022-02-12T07:17:52.000Z
2022-02-14T04:46:21.000Z
omeganlp/data/processor/__init__.py
yuiant/omeganlp
4258958b6d84a664d6fca0ca32a927a725b392c4
[ "MIT" ]
null
null
null
omeganlp/data/processor/__init__.py
yuiant/omeganlp
4258958b6d84a664d6fca0ca32a927a725b392c4
[ "MIT" ]
2
2022-02-13T16:14:49.000Z
2022-02-14T04:46:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from abc import ABCMeta, abstractmethod from typing import Any import torch class BaseDataProcessor(metaclass=ABCMeta): @abstractmethod def processing(self, example: Any, is_train: bool = False): """ example --> features Process...
25.175676
78
0.626946
79bed3b1662d8ffbbe10dfba15a9db8d8122faef
6,908
py
Python
format_pipfile/cli.py
demosdemon/format-pipfile
f95162c49d8fc13153080ddb11ac5a5dcd4d2e7c
[ "MIT" ]
null
null
null
format_pipfile/cli.py
demosdemon/format-pipfile
f95162c49d8fc13153080ddb11ac5a5dcd4d2e7c
[ "MIT" ]
10
2019-02-19T20:40:10.000Z
2021-06-01T23:21:56.000Z
format_pipfile/cli.py
demosdemon/format-pipfile
f95162c49d8fc13153080ddb11ac5a5dcd4d2e7c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This script performs two tasks: * It updates the ``requirements.txt`` file with the packages found in the ``Pipfile``. * It reformats the ``Pipfile`` to my opinionated standards. """ from __future__ import absolute_import import difflib import os from itertools import filterfalse, starm...
27.19685
87
0.643312
79bedb3ad3adfe58f001861a70c2fa87f8e8f15e
18,408
py
Python
solarmach/__init__.py
jgieseler/solarmach
bebc6107d4f073a60018b2d20e4b2c7817e3dcc6
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2022-03-16T03:00:48.000Z
2022-03-16T03:00:48.000Z
solarmach/__init__.py
jgieseler/solarmach
bebc6107d4f073a60018b2d20e4b2c7817e3dcc6
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2022-03-14T16:23:49.000Z
2022-03-17T12:05:26.000Z
solarmach/__init__.py
jgieseler/solarmach
bebc6107d4f073a60018b2d20e4b2c7817e3dcc6
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from pkg_resources import get_distribution, DistributionNotFound try: __version__ = get_distribution(__name__).version except DistributionNotFound: pass # package is not installed import math from copy import deepcopy import astropy.units as u ...
43.724466
146
0.588657
79bee760b97de87cb20cc011ab75cf21574939ee
2,202
py
Python
phr/ciudadano/migrations/0046_ciudadanodatossis.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0046_ciudadanodatossis.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0046_ciudadanodatossis.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-08 14:32 from __future__ import unicode_literals import uuid import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ciudadano', '0045_ciudadano_ultima_actualizacio...
47.869565
112
0.608084
79beeb1297c4b241ef475dc2be5c0701a6902d5b
182
py
Python
start_bot.py
emilyhunt/lsw-slackbot
1069aee5046b30075db52e1735c33d0ca84d71c4
[ "BSD-3-Clause" ]
null
null
null
start_bot.py
emilyhunt/lsw-slackbot
1069aee5046b30075db52e1735c33d0ca84d71c4
[ "BSD-3-Clause" ]
null
null
null
start_bot.py
emilyhunt/lsw-slackbot
1069aee5046b30075db52e1735c33d0ca84d71c4
[ "BSD-3-Clause" ]
null
null
null
# This silly script exists because you can't call a within-module file to start a program, you gotta import it # first with python =( import lsw_slackbot lsw_slackbot.client_loop()
30.333333
110
0.785714
79befe1f6da2c8916bdd7191e5771f99895e57ba
1,310
py
Python
01-Lesson-Plans/04-Pandas/3/Activities/03-Stu_Partner_Interviews/Solved/highest_product_of_two/Solved/brute_force.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-04-13T07:14:34.000Z
2021-04-13T07:14:34.000Z
01-Lesson-Plans/04-Pandas/3/Activities/03-Stu_Partner_Interviews/Solved/highest_product_of_two/Solved/brute_force.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
2
2021-06-02T03:14:19.000Z
2022-02-11T23:21:24.000Z
01-Lesson-Plans/04-Pandas/3/Activities/03-Stu_Partner_Interviews/Solved/highest_product_of_two/Solved/brute_force.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-05-07T13:26:50.000Z
2021-05-07T13:26:50.000Z
def max_product_of_two(list_param): # Initialize max_product variable max_product = 0 # Loop through the numbers in the list for num_one in list_param: # Print the num_one print(num_one) # Loop through the numbers in the list again for num_two in list_param: ...
33.589744
118
0.636641
79bf0495ceb8e8bffcd02d3a138a66598b357a8d
11,184
py
Python
pygfunction/examples/fluid_temperature.py
wouterpeere/pygfunction
6ac885b8b8a9532ed4aa2a748a0561a55ee515c2
[ "BSD-3-Clause" ]
null
null
null
pygfunction/examples/fluid_temperature.py
wouterpeere/pygfunction
6ac885b8b8a9532ed4aa2a748a0561a55ee515c2
[ "BSD-3-Clause" ]
null
null
null
pygfunction/examples/fluid_temperature.py
wouterpeere/pygfunction
6ac885b8b8a9532ed4aa2a748a0561a55ee515c2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Example of simulation of a geothermal system and comparison between single and double U-tube pipe configurations. The g-function of a single borehole is calculated for boundary condition of uniform borehole wall temperature along the borehole. Then, the borehole wall tempera...
37.28
79
0.529417
79bf05e891022bb978a36e80dcb55692e70485a2
1,554
py
Python
marqeta/response_models/jit_funding.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/jit_funding.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/jit_funding.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models.jit_funding_paymentcard_funding_source import JitFundingPaymentcardFundingSource from marqeta.response_models.jit_funding_programgateway_funding_source import JitFundingProgramgatewayFundingSource from marqeta.response_models.jit_funding_program_funding_s...
39.846154
115
0.781853
79bf05f81ce5056911e7e368882dd329f591f740
23,189
py
Python
utest/namespace/test_namespace.py
chandrapola/RIDE
08e01b98026b618359e47689cb5e65a0a67795f5
[ "ECL-2.0", "Apache-2.0" ]
84
2016-09-21T10:57:22.000Z
2021-11-30T21:25:36.000Z
utest/namespace/test_namespace.py
chandrapola/RIDE
08e01b98026b618359e47689cb5e65a0a67795f5
[ "ECL-2.0", "Apache-2.0" ]
124
2017-12-11T21:23:06.000Z
2022-02-18T19:11:02.000Z
utest/namespace/test_namespace.py
chandrapola/RIDE
08e01b98026b618359e47689cb5e65a0a67795f5
[ "ECL-2.0", "Apache-2.0" ]
38
2017-07-20T02:51:56.000Z
2021-07-09T04:54:44.000Z
import sys import unittest from nose.tools import assert_true, assert_false, assert_is_not_none, \ assert_equal, assert_is_none from robotide.robotapi import ( TestCaseFile, Resource, VariableTable, TestDataDirectory) from robotide.context import IS_WINDOWS from robotide.namespace.namespace import _VariableSta...
41.781982
125
0.680581
79bf486a470ac7638756dd1a01088c710b3d06ab
2,861
py
Python
bot/cogs/antimalware.py
Savant-Dev/bot
cfc5720925b6bbc40c45507f8579145a0014a6eb
[ "MIT" ]
null
null
null
bot/cogs/antimalware.py
Savant-Dev/bot
cfc5720925b6bbc40c45507f8579145a0014a6eb
[ "MIT" ]
null
null
null
bot/cogs/antimalware.py
Savant-Dev/bot
cfc5720925b6bbc40c45507f8579145a0014a6eb
[ "MIT" ]
null
null
null
import logging from os.path import splitext from discord import Embed, Message, NotFound from discord.ext.commands import Cog from bot.bot import Bot from bot.constants import AntiMalware as AntiMalwareConfig, Channels, STAFF_ROLES, URLs log = logging.getLogger(__name__) class AntiMalware(Cog): """Delete messa...
42.073529
120
0.646977
79bf78798ad35234cc8e7b64fbe3a1ba2cc9f8f0
1,067
py
Python
ruly/__init__.py
zlatsic/ruly
6660ed2d276bace542ddf9e69efd47eb23c3df16
[ "MIT" ]
1
2021-02-05T18:37:27.000Z
2021-02-05T18:37:27.000Z
ruly/__init__.py
zlatsic/ruly
6660ed2d276bace542ddf9e69efd47eb23c3df16
[ "MIT" ]
null
null
null
ruly/__init__.py
zlatsic/ruly
6660ed2d276bace542ddf9e69efd47eb23c3df16
[ "MIT" ]
null
null
null
from ruly.common import (Rule, Operator, Expression, Condition, Evaluation, get_rule_depending_variables) from ruly.conditions import (Equals, Greater, ...
30.485714
55
0.419869
79bfff056a9576b97a78d6902fb5da7019f66222
10,766
py
Python
IPython/core/profileapp.py
damianavila/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
2
2020-11-30T14:04:30.000Z
2021-11-08T11:29:05.000Z
IPython/core/profileapp.py
RuSHi2381/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/core/profileapp.py
RuSHi2381/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
1
2020-11-19T05:18:41.000Z
2020-11-19T05:18:41.000Z
# encoding: utf-8 """ An application for managing IPython profiles. To be invoked as the `ipython profile` subcommand. Authors: * Min RK """ #----------------------------------------------------------------------------- # Copyright (C) 2008 The IPython Development Team # # Distributed under the terms of the BSD...
34.286624
94
0.614806
79c006390f125bb01e8503b26d39743d9ff15b2a
5,147
py
Python
multipack/datastructures.py
je-l/multi-pack
15c23f68736e9771edfe927f8769b396d4ebc39d
[ "MIT" ]
null
null
null
multipack/datastructures.py
je-l/multi-pack
15c23f68736e9771edfe927f8769b396d4ebc39d
[ "MIT" ]
null
null
null
multipack/datastructures.py
je-l/multi-pack
15c23f68736e9771edfe927f8769b396d4ebc39d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Data structures.""" class LinkedList: """Linked list implementation.""" def __init__(self): self.first = None self.current = None def add_last(self, key, value): """Add new node to the last position of this linked list.""" ...
26.807292
79
0.544978
79c0084361372c627870535d567d533408c8bdeb
3,611
py
Python
t/exact_test_sampler_client.py
warmchang/umash
d56c343ce9bdf7d1eea59ab73898005bdf92888a
[ "MIT" ]
108
2020-08-24T00:34:20.000Z
2022-03-13T08:43:22.000Z
t/exact_test_sampler_client.py
warmchang/umash
d56c343ce9bdf7d1eea59ab73898005bdf92888a
[ "MIT" ]
26
2020-08-25T06:08:05.000Z
2022-02-26T16:37:04.000Z
t/exact_test_sampler_client.py
warmchang/umash
d56c343ce9bdf7d1eea59ab73898005bdf92888a
[ "MIT" ]
7
2020-08-25T05:52:12.000Z
2022-03-05T02:31:38.000Z
"""This module is responsible for reading the `.sampler_servers.ini` configuration file, and establishing gRPC connections to each endpoint listed in that file. If that file is empty, we also read `sampler_servers.ini.dist`. Each entry has the form [upstream_name] hostname = hostname # defaults to upstream_name port...
32.827273
86
0.65522
79c04d7abd5b577f7173d05ccf45b0e26936f826
6,638
py
Python
qcodes/tests/parameter/test_parameter_context_manager.py
ctschnur/Qcodes
623e39aa3774da8b7aa062734a85f4e1f79a635b
[ "MIT" ]
1
2020-10-19T08:09:04.000Z
2020-10-19T08:09:04.000Z
qcodes/tests/parameter/test_parameter_context_manager.py
ctschnur/Qcodes
623e39aa3774da8b7aa062734a85f4e1f79a635b
[ "MIT" ]
206
2020-10-01T06:33:56.000Z
2022-03-29T16:08:08.000Z
qcodes/tests/parameter/test_parameter_context_manager.py
Akshita07/Qcodes
f75e4786e268f415935aa4658d92526279c7a102
[ "MIT" ]
null
null
null
from unittest import TestCase from qcodes.tests.instrument_mocks import DummyInstrument from qcodes.instrument.parameter import Parameter import qcodes.utils.validators as vals class TestSetContextManager(TestCase): def setUp(self): self.instrument = DummyInstrument('dummy_holder') self.instrum...
37.715909
83
0.623983
79c05ae044fdc42fe684c45e7031e64de5f7b2c6
2,757
py
Python
omh_nbi/handlers/onu_mib_sync.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
omh_nbi/handlers/onu_mib_sync.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
omh_nbi/handlers/onu_mib_sync.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Broadband Forum # # 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...
40.544118
114
0.704389
79c07d533d2072a4ec44e1c02ff6bdb36bf9007a
653
py
Python
lib/connect/api/auth/__init__.py
hdknr/connect
fb99dc3069dc165d6771fb19e2415b45ee421353
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
lib/connect/api/auth/__init__.py
hdknr/connect
fb99dc3069dc165d6771fb19e2415b45ee421353
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
lib/connect/api/auth/__init__.py
hdknr/connect
fb99dc3069dc165d6771fb19e2415b45ee421353
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from tastypie.authentication import Authentication class ConnectAuth(Authentication): def __init__( self, scopes=[], resource=None, *args, **kwargs): super(ConnectAuth, self).__init__(*args, **kwargs) self.scopes = scopes #: required sco...
31.095238
80
0.584992
79c0a20d44981a5da543da9399ac1acffe66a551
1,352
py
Python
app/workspace_management_api/stub_source_delete.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
1
2021-05-04T08:46:19.000Z
2021-05-04T08:46:19.000Z
app/workspace_management_api/stub_source_delete.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
null
null
null
app/workspace_management_api/stub_source_delete.py
PSE-TECO-2020-TEAM1/e2e-ml_model-management
7f01a008648e25a29c639a5e16124b2e399eb821
[ "MIT" ]
1
2022-01-28T21:21:32.000Z
2022-01-28T21:21:32.000Z
from app.workspace_management_api.sample_model import DataPoint, DataPointsPerSensor, SampleFromWorkspace, Timeframe from typing import List from app.workspace_management_api.data_source import ExternalDataSource from bson.objectid import ObjectId import random class WorkspaceDataSource(ExternalDataSource): @stat...
38.628571
125
0.721154
79c0fa1b47aff7bcf84bcc2d884b1d87a02f3e83
89,022
py
Python
ThirdParty/Twisted/twisted/words/protocols/msn.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
1
2021-10-13T01:57:14.000Z
2021-10-13T01:57:14.000Z
ThirdParty/Twisted/twisted/words/protocols/msn.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
ThirdParty/Twisted/twisted/words/protocols/msn.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
5
2015-10-09T04:12:29.000Z
2021-12-15T16:57:11.000Z
# -*- test-case-name: twisted.words.test -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ MSNP8 Protocol (client only) - semi-experimental This module provides support for clients using the MSN Protocol (MSNP8). There are basically 3 servers involved in any MSN session: I{Dispatch serv...
35.895968
136
0.601582
79c12b51b1bd94b867feca994744b6988b9cf6d1
2,167
py
Python
tests/utils_test.py
dreamhost/python-cloudfiles
c51cc46634f1b35eccc23dde7e77ef24e2964a43
[ "X11" ]
8
2015-01-27T22:28:26.000Z
2016-02-12T20:03:26.000Z
tests/utils_test.py
dreamhost/python-cloudfiles
c51cc46634f1b35eccc23dde7e77ef24e2964a43
[ "X11" ]
null
null
null
tests/utils_test.py
dreamhost/python-cloudfiles
c51cc46634f1b35eccc23dde7e77ef24e2964a43
[ "X11" ]
2
2015-03-29T14:58:55.000Z
2019-12-01T22:43:59.000Z
import unittest from misc import printdoc from cloudfiles.utils import unicode_quote, parse_url @printdoc def test_parse_url(): """ Validate that the parse_url() function properly returns the hostname, port number, path (if any), and ssl boolean. Attempts several different URL permutation...
31.405797
78
0.514075
79c1315bc3d9520bc2ae0e583505056d6b57db08
1,793
py
Python
policy/serializers.py
agnihotri7/demo-api
ffccd7e7a21b99cb8282045b4c3343ff5888c527
[ "RSA-MD" ]
null
null
null
policy/serializers.py
agnihotri7/demo-api
ffccd7e7a21b99cb8282045b4c3343ff5888c527
[ "RSA-MD" ]
null
null
null
policy/serializers.py
agnihotri7/demo-api
ffccd7e7a21b99cb8282045b4c3343ff5888c527
[ "RSA-MD" ]
null
null
null
""" """ from django.contrib.auth import get_user_model from django.utils.translation import gettext_lazy as _ from rest_framework import serializers # from rest_framework.authtoken.models import Token from rest_framework.reverse import reverse from policy.models import Quote, Policy, UserPolicyHistory Customer = get...
24.902778
86
0.645287
79c13432eed09907eaf583242fe640555a4d79bb
2,852
py
Python
tests/test_main.py
slow-start-fans/slow-start-rewatch
7cf0fc9434084b3b9fa23497b08b4c9e6c512250
[ "MIT" ]
1
2020-05-31T02:41:48.000Z
2020-05-31T02:41:48.000Z
tests/test_main.py
slow-start-fans/slow-start-rewatch
7cf0fc9434084b3b9fa23497b08b4c9e6c512250
[ "MIT" ]
33
2020-05-27T01:17:42.000Z
2021-03-01T16:09:33.000Z
tests/test_main.py
slow-start-fans/slow-start-rewatch
7cf0fc9434084b3b9fa23497b08b4c9e6c512250
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging from unittest.mock import patch from click.testing import CliRunner from slow_start_rewatch.__main__ import main from slow_start_rewatch.exceptions import Abort, SlowStartRewatchException @patch("slow_start_rewatch.__main__.App") def test_run_successfully(mock_app): """Te...
31
79
0.724755