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
f737ee8063f88a4c5b5bd906d18b1b14dc6a3e8d
754
py
Python
var/spack/repos/builtin/packages/ray/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-06-25T15:25:29.000Z
2020-06-25T15:25:29.000Z
var/spack/repos/builtin/packages/ray/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2018-07-06T19:11:46.000Z
2018-07-06T19:12:28.000Z
var/spack/repos/builtin/packages/ray/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-03-06T11:04:37.000Z
2020-03-06T11:04:37.000Z
# Copyright 2013-2020 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 import * class Ray(CMakePackage): """Parallel genome assemblies for parallel DNA sequencing""" homep...
29
95
0.704244
from spack import * class Ray(CMakePackage): homepage = "http://denovoassembler.sourceforge.net/" url = "https://downloads.sourceforge.net/project/denovoassembler/Ray-2.3.1.tar.bz2" version('2.3.1', sha256='3122edcdf97272af3014f959eab9a0f0e5a02c8ffc897d842b06b06ccd748036') depends_on('mpi...
true
true
f737efa8da13d1e6b4006f607a2c3dddab25a27c
3,211
py
Python
haiku/_src/random_test.py
timwillhack/dm-haikuBah2
b76a3db3a39b82c8a1ae5a81a8a0173c23c252e5
[ "Apache-2.0" ]
1,647
2020-02-21T14:24:31.000Z
2022-03-31T04:31:34.000Z
haiku/_src/random_test.py
timwillhack/dm-haikuBah2
b76a3db3a39b82c8a1ae5a81a8a0173c23c252e5
[ "Apache-2.0" ]
169
2020-02-21T14:07:25.000Z
2022-03-31T13:08:28.000Z
haiku/_src/random_test.py
timwillhack/dm-haikuBah2
b76a3db3a39b82c8a1ae5a81a8a0173c23c252e5
[ "Apache-2.0" ]
159
2020-02-21T19:31:02.000Z
2022-03-29T12:41:35.000Z
# Copyright 2019 DeepMind Technologies Limited. 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 ...
30.875
80
0.667393
import functools from absl.testing import absltest from haiku._src import base from haiku._src import random from haiku._src import transform import jax from jax import prng import jax.numpy as jnp import numpy as np class RandomTest(absltest.TestCase): def test_optimize_rng_splitting(self): de...
true
true
f737f07ff5c625d3a4e070ba3882eb7d1922f130
3,366
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/subnet.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure/mgmt/network/v2017_03_01/models/subnet.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure/mgmt/network/v2017_03_01/models/subnet.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.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 ...
44.88
179
0.676173
from .sub_resource import SubResource class Subnet(SubResource): _validation = { 'ip_configurations': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'address_prefix': {'key': 'properties.addressPrefix', 'type': 'str'}, 'network_sec...
true
true
f737f1247fff27cdd82d67d936ffb5270c251013
15,114
py
Python
library/nsxt_segment.py
madhukark/nsx-pacific
eadcebe6fb3521cd4db721329092958e9f02e6cc
[ "BSD-2-Clause" ]
6
2020-03-25T16:49:52.000Z
2020-04-11T16:01:35.000Z
library/nsxt_segment.py
madhukark/nsx-pacific
eadcebe6fb3521cd4db721329092958e9f02e6cc
[ "BSD-2-Clause" ]
3
2020-03-26T19:30:15.000Z
2020-04-16T22:17:24.000Z
library/nsxt_segment.py
madhukark/nsx-pacific
eadcebe6fb3521cd4db721329092958e9f02e6cc
[ "BSD-2-Clause" ]
2
2020-03-25T23:49:30.000Z
2020-03-26T21:52:23.000Z
#!/usr/bin/env python # # Copyright 2018 VMware, Inc. # SPDX-License-Identifier: BSD-2-Clause OR GPL-3.0-only # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FO...
36.331731
79
0.494244
from __future__ import (absolute_import, division, print_function) __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = ''' --- module: nsxt_segment short_description: Create o...
true
true
f737f314cccf47572e801f4154db39b6d16c543e
7,821
py
Python
ctpn/lib/rpn_msr/proposal_layer_tf.py
wengfeicn/ocr
3e00381f39cdd64518b3e14000318140c47516e1
[ "Apache-2.0" ]
null
null
null
ctpn/lib/rpn_msr/proposal_layer_tf.py
wengfeicn/ocr
3e00381f39cdd64518b3e14000318140c47516e1
[ "Apache-2.0" ]
null
null
null
ctpn/lib/rpn_msr/proposal_layer_tf.py
wengfeicn/ocr
3e00381f39cdd64518b3e14000318140c47516e1
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # -------------------------------------------------------- # Faster R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Sean Bell # -------------------------------------------------------- import numpy as np import yaml ...
38.717822
119
0.647871
import numpy as np import yaml from .generate_anchors import generate_anchors from ..fast_rcnn.config import cfg from ..fast_rcnn.bbox_transform import bbox_transform_inv, clip_boxes from ..fast_rcnn.nms_wrapper import nms DEBUG = False """ Outputs object detection proposals by applying estimated boundin...
false
true
f737f38e7b67e1c2e8de4bf96ddfbbd31aae65ed
4,011
py
Python
src/guiltytargets/pipeline.py
Shicheng-Guo/guiltytargets
53832939b17ce2aa6a80aee298b975b778dd1bf6
[ "MIT" ]
10
2018-10-15T14:33:53.000Z
2021-11-02T19:02:19.000Z
src/guiltytargets/pipeline.py
Shicheng-Guo/guiltytargets
53832939b17ce2aa6a80aee298b975b778dd1bf6
[ "MIT" ]
7
2019-02-11T10:37:32.000Z
2022-01-27T09:03:35.000Z
src/guiltytargets/pipeline.py
hfroehlich30975/GuiltyTargets
f0f4b5ed3ba5e8e383b9e2b684814560d6674029
[ "MIT" ]
5
2019-10-11T12:28:51.000Z
2021-08-17T19:51:51.000Z
# -*- coding: utf-8 -*- """Pipeline for GuiltyTargets.""" from typing import List, Tuple import pandas as pd from .constants import gat2vec_config from .gat2vec import Classification, Gat2Vec, gat2vec_paths from .ppi_network_annotation import AttributeNetwork, LabeledNetwork, Network, generate_ppi_network, parse_dg...
28.856115
110
0.715532
from typing import List, Tuple import pandas as pd from .constants import gat2vec_config from .gat2vec import Classification, Gat2Vec, gat2vec_paths from .ppi_network_annotation import AttributeNetwork, LabeledNetwork, Network, generate_ppi_network, parse_dge from .ppi_network_annotation.parsers import parse_gene_...
true
true
f737f3d4131b56174d565a0575f0331decd3591a
20,724
py
Python
orttraining/orttraining/test/python/orttraining_test_checkpoint.py
mszhanyi/onnxruntime
6f85d3e5c81c919022ac4a77e5a051da8518b15d
[ "MIT" ]
669
2018-12-03T22:00:31.000Z
2019-05-06T19:42:49.000Z
orttraining/orttraining/test/python/orttraining_test_checkpoint.py
mszhanyi/onnxruntime
6f85d3e5c81c919022ac4a77e5a051da8518b15d
[ "MIT" ]
440
2018-12-03T21:09:56.000Z
2019-05-06T20:47:23.000Z
orttraining/orttraining/test/python/orttraining_test_checkpoint.py
mszhanyi/onnxruntime
6f85d3e5c81c919022ac4a77e5a051da8518b15d
[ "MIT" ]
140
2018-12-03T21:15:28.000Z
2019-05-06T18:02:36.000Z
#!/usr/bin/env python3 # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import subprocess import os import shutil import sys from checkpoint._test_helpers import makedir from _test_commons import _single_run, _distributed_run checkpoint_dir = os.path.abspath("checkpoint/ch...
45.150327
196
0.84226
import subprocess import os import shutil import sys from checkpoint._test_helpers import makedir from _test_commons import _single_run, _distributed_run checkpoint_dir = os.path.abspath("checkpoint/checkpoint_dir/") makedir(checkpoint_dir) save_checkpoint_file = os.path.joi...
true
true
f737f51af748d81f700990f6c7b3daa8fd8e7ae5
823
py
Python
tests/isolated/import_deps_test.py
Vs0923/Voxel51
d644805922ebfbc729f1211f572d77be7d625887
[ "Apache-2.0" ]
1
2020-10-09T05:16:49.000Z
2020-10-09T05:16:49.000Z
tests/isolated/import_deps_test.py
Vs0923/Voxel51
d644805922ebfbc729f1211f572d77be7d625887
[ "Apache-2.0" ]
null
null
null
tests/isolated/import_deps_test.py
Vs0923/Voxel51
d644805922ebfbc729f1211f572d77be7d625887
[ "Apache-2.0" ]
null
null
null
""" Test that the fiftyone core does not depend on Tensorflow or PyTorch. """ import sys import pytest # raise an ImportError if any of these modules are imported # https://docs.python.org/3/reference/import.html#the-module-cache sys.modules["tensorflow"] = None sys.modules["tensorflow_datasets"] = None sys.modules[...
23.514286
76
0.72661
import sys import pytest sorflow"] = None sys.modules["tensorflow_datasets"] = None sys.modules["torch"] = None sys.modules["torchvision"] = None def test_import_core(): import fiftyone def test_import_tf(): with pytest.raises(ImportError) as exc_info: import fiftyone.utils.tf ass...
true
true
f737f6de296a1844b0529b7b080c7dc35b93148e
2,171
py
Python
sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/_phone_number_administration_service.py
abhahn/azure-sdk-for-python
09521dfb517e0859ec961cae006fb728d787b565
[ "MIT" ]
2
2019-08-23T21:14:00.000Z
2021-09-07T18:32:34.000Z
sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/_phone_number_administration_service.py
rakshith91/azure-sdk-for-python
3c4f2575d31260fa1bda870b04e34c082ac5702b
[ "MIT" ]
null
null
null
sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/_phone_number_administration_service.py
rakshith91/azure-sdk-for-python
3c4f2575d31260fa1bda870b04e34c082ac5702b
[ "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 ...
40.203704
125
0.69415
from typing import Any from azure.core import AsyncPipelineClient from msrest import Deserializer, Serializer from ._configuration import PhoneNumberAdministrationServiceConfiguration from .operations import PhoneNumberAdministrationOperations from .. import models class PhoneNumberAdministrationService(obj...
true
true
f737f6fee7f362944f8abe9a0bba10716e153129
11,177
py
Python
perfkitbenchmarker/static_virtual_machine.py
zmgit/PerfKitBenchmarker
5d496db22c41f6b345ab28375aae4b5f39415ba7
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/static_virtual_machine.py
zmgit/PerfKitBenchmarker
5d496db22c41f6b345ab28375aae4b5f39415ba7
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/static_virtual_machine.py
zmgit/PerfKitBenchmarker
5d496db22c41f6b345ab28375aae4b5f39415ba7
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 PerfKitBenchmarker 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 appli...
35.709265
80
0.685425
import collections import json import logging import threading from perfkitbenchmarker import disk from perfkitbenchmarker import flags from perfkitbenchmarker import linux_virtual_machine from perfkitbenchmarker import os_types from perfkitbenchmarker import resource from perfkitbenchmarker import virt...
true
true
f737f73b87d428e1c8fc898334f98d981f840a28
5,500
py
Python
ros/src/waypoint_updater/waypoint_updater.py
wolf-zchen/CarND-capstone
b6b768bfd01f03a5256c2db4b84f9d7a42149de2
[ "MIT" ]
null
null
null
ros/src/waypoint_updater/waypoint_updater.py
wolf-zchen/CarND-capstone
b6b768bfd01f03a5256c2db4b84f9d7a42149de2
[ "MIT" ]
null
null
null
ros/src/waypoint_updater/waypoint_updater.py
wolf-zchen/CarND-capstone
b6b768bfd01f03a5256c2db4b84f9d7a42149de2
[ "MIT" ]
2
2018-10-15T00:34:10.000Z
2018-10-20T21:44:08.000Z
#!/usr/bin/env python import numpy as np import rospy from std_msgs.msg import Int32 from geometry_msgs.msg import PoseStamped from styx_msgs.msg import Lane, Waypoint from scipy.spatial import KDTree import math ''' This node will publish waypoints from the car's current position to some `x` distance ahead. As ment...
35.483871
132
0.657636
import numpy as np import rospy from std_msgs.msg import Int32 from geometry_msgs.msg import PoseStamped from styx_msgs.msg import Lane, Waypoint from scipy.spatial import KDTree import math LOOKAHEAD_WPS = 30 MAX_DECEL = 1 class WaypointUpdater(object): def __init__(self): rospy.init_node('waypoint_u...
true
true
f737f882db2b290298fbb71d121e895fc21988ce
45,958
py
Python
espnet/nets/pytorch_backend/e2e_vc_transformer.py
undeadyequ/espnet
8c3f85ce695153abcb9cf365180b1d7554ad565e
[ "Apache-2.0" ]
4
2021-06-18T01:57:08.000Z
2021-12-23T05:26:02.000Z
espnet/nets/pytorch_backend/e2e_vc_transformer.py
undeadyequ/espnet
8c3f85ce695153abcb9cf365180b1d7554ad565e
[ "Apache-2.0" ]
null
null
null
espnet/nets/pytorch_backend/e2e_vc_transformer.py
undeadyequ/espnet
8c3f85ce695153abcb9cf365180b1d7554ad565e
[ "Apache-2.0" ]
1
2022-01-07T02:29:05.000Z
2022-01-07T02:29:05.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2020 Nagoya University (Wen-Chin Huang) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Voice Transformer Network (Transformer-VC) related modules.""" import logging import torch import torch.nn.functional as F from espnet.nets.pytorch_backe...
39.687392
88
0.55233
import logging import torch import torch.nn.functional as F from espnet.nets.pytorch_backend.e2e_asr_transformer import subsequent_mask from espnet.nets.pytorch_backend.e2e_tts_tacotron2 import ( Tacotron2Loss as TransformerLoss, ) from espnet.nets.pytorch_backend.nets_utils import make_non_pad_mask from...
true
true
f737f906965a60282d80df86f3042a8d4f691a86
930
py
Python
internal/settings.py
ninichang/cartogram-web
6ec75713945b0b310c7df0d6f7a3fdb0ef3b5a99
[ "MIT" ]
1
2020-06-23T15:03:31.000Z
2020-06-23T15:03:31.000Z
internal/settings.py
ninichang/cartogram-web
6ec75713945b0b310c7df0d6f7a3fdb0ef3b5a99
[ "MIT" ]
null
null
null
internal/settings.py
ninichang/cartogram-web
6ec75713945b0b310c7df0d6f7a3fdb0ef3b5a99
[ "MIT" ]
1
2019-09-15T19:53:39.000Z
2019-09-15T19:53:39.000Z
import os CARTOGRAM_EXE = os.environ['CARTOGRAM_EXE'] CARTOGRAM_DATA_DIR = os.environ['CARTOGRAM_DATA_DIR'] CARTOGRAM_COLOR = os.environ['CARTOGRAM_COLOR'] DEBUG = True if os.environ['CARTOGRAM_DEBUG'].lower() == "true" else False DATABASE_URI = os.environ['CARTOGRAM_DATABASE_URI'] USE_DATABASE = True if os.environ['C...
44.285714
120
0.793548
import os CARTOGRAM_EXE = os.environ['CARTOGRAM_EXE'] CARTOGRAM_DATA_DIR = os.environ['CARTOGRAM_DATA_DIR'] CARTOGRAM_COLOR = os.environ['CARTOGRAM_COLOR'] DEBUG = True if os.environ['CARTOGRAM_DEBUG'].lower() == "true" else False DATABASE_URI = os.environ['CARTOGRAM_DATABASE_URI'] USE_DATABASE = True if os.environ['C...
true
true
f737f968a585b7fd999eaa118151b3a87ca2f4fc
5,025
py
Python
test/functional/feature_messaging.py
jellymlg/Bagicoin
b4b3d832e1ef33466f7daa8766538fe6492581d5
[ "MIT" ]
null
null
null
test/functional/feature_messaging.py
jellymlg/Bagicoin
b4b3d832e1ef33466f7daa8766538fe6492581d5
[ "MIT" ]
null
null
null
test/functional/feature_messaging.py
jellymlg/Bagicoin
b4b3d832e1ef33466f7daa8766538fe6492581d5
[ "MIT" ]
1
2021-07-23T09:30:16.000Z
2021-07-23T09:30:16.000Z
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Copyright (c) 2017-2020 The Raven Core developers # Copyright (c) 2021 The Bagi Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Testing ...
35.638298
133
0.667861
from test_framework.test_framework import BagiTestFramework from test_framework.util import assert_equal, assert_raises_rpc_error, assert_contains, assert_does_not_contain, assert_contains_pair class MessagingTest(BagiTestFramework): def set_test_params(self): self.setup_clean_chain = True ...
true
true
f737fbbf879277da4602328bff9a822f2bc28be9
305
py
Python
myopenpantry/views/__init__.py
MyOpenPantry/flask-backend
e94702bfa04f36c1a6015ae3e9c37dfb7b923279
[ "MIT" ]
null
null
null
myopenpantry/views/__init__.py
MyOpenPantry/flask-backend
e94702bfa04f36c1a6015ae3e9c37dfb7b923279
[ "MIT" ]
4
2021-03-28T19:47:04.000Z
2021-05-04T00:59:46.000Z
myopenpantry/views/__init__.py
MyOpenPantry/flask-backend
e94702bfa04f36c1a6015ae3e9c37dfb7b923279
[ "MIT" ]
null
null
null
from . import ingredients from . import items from . import recipes from . import tags MODULES = ( ingredients, items, recipes, tags, ) def register_blueprints(api): """Initialize application with all modules""" for module in MODULES: api.register_blueprint(module.blp)
16.944444
49
0.685246
from . import ingredients from . import items from . import recipes from . import tags MODULES = ( ingredients, items, recipes, tags, ) def register_blueprints(api): for module in MODULES: api.register_blueprint(module.blp)
true
true
f737fbe220c66c02fa707fbe007d524155850a2d
774
py
Python
twitterbot/admin.py
invinst/CPDB
c2d8ae8888b13d956cc1068742f18d45736d4121
[ "Apache-2.0" ]
16
2016-05-20T09:03:32.000Z
2020-09-13T14:23:06.000Z
twitterbot/admin.py
invinst/CPDB
c2d8ae8888b13d956cc1068742f18d45736d4121
[ "Apache-2.0" ]
2
2016-05-24T01:44:14.000Z
2016-06-17T22:19:45.000Z
twitterbot/admin.py
invinst/CPDB
c2d8ae8888b13d956cc1068742f18d45736d4121
[ "Apache-2.0" ]
2
2016-10-10T16:14:19.000Z
2020-10-26T00:17:02.000Z
from django.contrib import admin from twitterbot.models import ResponseTemplate, TwitterBotError, TwitterBotResponseLog class TwitterBotErrorAdmin(admin.ModelAdmin): list_display = ('stack_trace', 'timestamp') class TwitterBotResponseLogAdmin(admin.ModelAdmin): list_display = ('tweet_url', 'tweet_content',...
40.736842
103
0.764858
from django.contrib import admin from twitterbot.models import ResponseTemplate, TwitterBotError, TwitterBotResponseLog class TwitterBotErrorAdmin(admin.ModelAdmin): list_display = ('stack_trace', 'timestamp') class TwitterBotResponseLogAdmin(admin.ModelAdmin): list_display = ('tweet_url', 'tweet_content',...
true
true
f737fed74e631be874294a3868f569e6c287070e
1,001
py
Python
src/run_experiment.py
UKPLab/thesis2018-tk_mtl_sequence_tagging
c2041097b1f6f895183d14ef06f60632bc30a34f
[ "Apache-2.0" ]
9
2018-06-25T09:59:19.000Z
2022-03-05T07:08:12.000Z
src/run_experiment.py
UKPLab/thesis2018-tk_mtl_sequence_tagging
c2041097b1f6f895183d14ef06f60632bc30a34f
[ "Apache-2.0" ]
7
2020-01-28T22:26:24.000Z
2022-02-09T23:43:33.000Z
src/run_experiment.py
UKPLab/thesis2018-tk_mtl_sequence_tagging
c2041097b1f6f895183d14ef06f60632bc30a34f
[ "Apache-2.0" ]
null
null
null
""" This module allows to run an experiment from a configuration template file. """ import argparse from ConfigGenerator import ConfigGenerator from use_network import train def main(): """ Parse the CLI arguments and then run the experiment with different trials (i.e. hyper-parameter configurations). "...
31.28125
116
0.727273
import argparse from ConfigGenerator import ConfigGenerator from use_network import train def main(): parser = argparse.ArgumentParser(description="Running experiments with the MTL sequence tagging framework.") parser.add_argument("trials", help="The number of trials to perform", type=int) parser.add_ar...
true
true
f738016c55118d481488edeade86e5bba28cdac2
1,835
py
Python
pos_scorer.py
animeshsagar/Part-of-Speech-Tagging
4dc9d60ecdee2f19d42ca489692845c74265f95f
[ "MIT" ]
null
null
null
pos_scorer.py
animeshsagar/Part-of-Speech-Tagging
4dc9d60ecdee2f19d42ca489692845c74265f95f
[ "MIT" ]
null
null
null
pos_scorer.py
animeshsagar/Part-of-Speech-Tagging
4dc9d60ecdee2f19d42ca489692845c74265f95f
[ "MIT" ]
null
null
null
################################### # CS B551 Fall 2018, Assignment #3 # # Scoring code by D. Crandall # # PLEASE DON'T MODIFY THIS FILE. # Edit pos_solver.py instead! # class Score: def __init__(self): self.word_scorecard = {} self.sentence_scorecard = {} self.word_count = 0 self....
38.229167
178
0.578747
entence_scorecard[algo] = self.sentence_scorecard.get(algo, 0) + (correct == len(gt)) def print_scores(self): print("\n==> So far scored %d sentences with %d words." % (self.sentence_count, self.word_count)) print(" Words correct: Sentences correct: ") for i ...
true
true
f73804718aace66c62ba5c416f0a97e0243065d2
8,560
py
Python
fairseq/optim/adam.py
mpsilfve/fairseq
eb228ee74c6bc9803eb7dbd398d8cda16c55ccd2
[ "MIT" ]
115
2021-08-25T14:58:12.000Z
2022-03-21T11:25:36.000Z
fairseq/optim/adam.py
mpsilfve/fairseq
eb228ee74c6bc9803eb7dbd398d8cda16c55ccd2
[ "MIT" ]
10
2021-11-14T12:28:48.000Z
2022-02-28T14:13:40.000Z
fairseq/optim/adam.py
mpsilfve/fairseq
eb228ee74c6bc9803eb7dbd398d8cda16c55ccd2
[ "MIT" ]
11
2021-12-07T02:19:03.000Z
2022-03-16T09:18:27.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import math from collections.abc import Collection from dataclasses import dataclass, field from typing import List import tor...
37.709251
100
0.591472
import logging import math from collections.abc import Collection from dataclasses import dataclass, field from typing import List import torch import torch.distributed as dist import torch.optim from fairseq.dataclass import FairseqDataclass from fairseq.optim import FairseqOptimizer, register_optimizer from fai...
true
true
f7380625318f3007f0f1051fe7b336778f76d919
2,209
py
Python
taxi/api/models.py
rombr/agile-fusion-test-task
eacf3d5e41afdac9b88658e9ddd1e0dc8fef7631
[ "Apache-2.0" ]
null
null
null
taxi/api/models.py
rombr/agile-fusion-test-task
eacf3d5e41afdac9b88658e9ddd1e0dc8fef7631
[ "Apache-2.0" ]
null
null
null
taxi/api/models.py
rombr/agile-fusion-test-task
eacf3d5e41afdac9b88658e9ddd1e0dc8fef7631
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.utils.translation import ugettext_lazy as _ from django.utils.encoding import python_2_unicode_compatible class LocationManager(models.Manager): def nearby(self, latitude, longitude, proximity): """ ...
28.320513
67
0.586238
from __future__ import unicode_literals from django.db import models from django.utils.translation import ugettext_lazy as _ from django.utils.encoding import python_2_unicode_compatible class LocationManager(models.Manager): def nearby(self, latitude, longitude, proximity): gcd = ''' ...
true
true
f738062c2a09f47aab0036d44867597591685f75
1,381
py
Python
cubs_compare_spec1D.py
sdjohnson-astro/redshifting
6073123bf3ea6e48de410d99521e418abc980c99
[ "Unlicense" ]
5
2019-03-19T22:05:37.000Z
2021-08-30T02:00:37.000Z
cubs_compare_spec1D.py
sdjohnson-astro/redshifting
6073123bf3ea6e48de410d99521e418abc980c99
[ "Unlicense" ]
null
null
null
cubs_compare_spec1D.py
sdjohnson-astro/redshifting
6073123bf3ea6e48de410d99521e418abc980c99
[ "Unlicense" ]
3
2019-02-14T17:57:15.000Z
2021-02-02T15:54:06.000Z
#!/usr/bin/env python import glob import argparse from astropy.table import Table import numpy as np # Set up the command line argument parser parser = argparse.ArgumentParser(description='Compare two versions of spec1D files from CUBS IMACS or LDSS3') parser.add_argument('-d1', metavar='directory 1', type=str, help='...
30.021739
109
0.648805
import glob import argparse from astropy.table import Table import numpy as np parser = argparse.ArgumentParser(description='Compare two versions of spec1D files from CUBS IMACS or LDSS3') parser.add_argument('-d1', metavar='directory 1', type=str, help='Parent directory 1', required=True) parser.add_argument('-d2',...
true
true
f738065dd281d12c6fdafbd59d04ee30cb5833ed
2,373
py
Python
2-aiohttp/aiohttp_server/app/crm/views.py
rcmgn/kts-school-backend
8a895043b7f0156ec49554504198b631df41d2cd
[ "MIT" ]
9
2021-02-04T07:00:59.000Z
2022-03-21T06:28:27.000Z
2-aiohttp/aiohttp_server/app/crm/views.py
rcmgn/kts-school-backend
8a895043b7f0156ec49554504198b631df41d2cd
[ "MIT" ]
null
null
null
2-aiohttp/aiohttp_server/app/crm/views.py
rcmgn/kts-school-backend
8a895043b7f0156ec49554504198b631df41d2cd
[ "MIT" ]
4
2021-10-20T18:44:22.000Z
2022-02-16T19:11:49.000Z
import uuid from aiohttp.web_exceptions import HTTPNotFound, HTTPUnauthorized, HTTPForbidden from aiohttp_apispec import docs, request_schema, response_schema, querystring_schema from app.crm.models import User from app.crm.schemes import ListUsersResponseSchema, UserGetRequestSchema, UserGetResponseSchema, \ Use...
43.145455
113
0.701222
import uuid from aiohttp.web_exceptions import HTTPNotFound, HTTPUnauthorized, HTTPForbidden from aiohttp_apispec import docs, request_schema, response_schema, querystring_schema from app.crm.models import User from app.crm.schemes import ListUsersResponseSchema, UserGetRequestSchema, UserGetResponseSchema, \ Use...
true
true
f73806784eead8b15987fa18a6b284b604ec0aaa
2,011
py
Python
empathy.py
agermanidis/Welcome_Programmable_Human
f3d45dec6fb5051e54e1ddc7e7db399ef7559973
[ "MIT" ]
7
2015-06-06T22:35:18.000Z
2016-07-23T10:19:36.000Z
empathy.py
agermanidis/welcome_programmable_human
f3d45dec6fb5051e54e1ddc7e7db399ef7559973
[ "MIT" ]
null
null
null
empathy.py
agermanidis/welcome_programmable_human
f3d45dec6fb5051e54e1ddc7e7db399ef7559973
[ "MIT" ]
null
null
null
from humans import Anastasis import random, time, os, re, tweepy consumer_key = os.environ['TWITTER_CONSUMER_KEY'] consumer_secret = os.environ['TWITTER_CONSUMER_SECRET'] access_token = os.environ['TWITTER_ACCESS_TOKEN'] access_token_secret = os.environ['TWITTER_ACCESS_TOKEN_SECRET'] auth = tweepy.OAuthHandler(consum...
40.22
96
0.691198
from humans import Anastasis import random, time, os, re, tweepy consumer_key = os.environ['TWITTER_CONSUMER_KEY'] consumer_secret = os.environ['TWITTER_CONSUMER_SECRET'] access_token = os.environ['TWITTER_ACCESS_TOKEN'] access_token_secret = os.environ['TWITTER_ACCESS_TOKEN_SECRET'] auth = tweepy.OAuthHandler(consum...
true
true
f73807391c207fd4f758914a17e4dbe3674e409e
9,623
py
Python
py/BOINC/database.py
BTS-CM/BOINC-Field-Mod
185b3f5c5b32bc66e3f4431cb652e9a97ca9b3b5
[ "MIT" ]
null
null
null
py/BOINC/database.py
BTS-CM/BOINC-Field-Mod
185b3f5c5b32bc66e3f4431cb652e9a97ca9b3b5
[ "MIT" ]
5
2017-09-01T01:06:16.000Z
2017-09-02T02:35:36.000Z
py/BOINC/database.py
BTS-CM/BOINC-Field-Mod
185b3f5c5b32bc66e3f4431cb652e9a97ca9b3b5
[ "MIT" ]
null
null
null
## $Id$ ''' Defines database backend library and database table and object relationships. Example usage: import database, db_mid # get platform with id 7; will raise exception if no such platform. p7 = database.Platforms[7] # get platforms with friendly name "commodore 64" p_c64 = database.Platforms.find(user_frie...
30.549206
77
0.427517
ort configxml from util import * from db_base import * ID = '$Id$' class Platform(DatabaseObject): _table = DatabaseTable( table = 'platform', columns = [ 'create_time', 'name', 'user_friendly_name', 'deprecated' ]) class App(DatabaseObj...
true
true
f738076c54343de06772160881674f86dcc1ab06
1,063
py
Python
nodes/roi_revisit_classifier.py
willdickson/puzzleboxes
964792f74d7a5b5fc8cce4fc659ebfe1859a7eff
[ "MIT" ]
null
null
null
nodes/roi_revisit_classifier.py
willdickson/puzzleboxes
964792f74d7a5b5fc8cce4fc659ebfe1859a7eff
[ "MIT" ]
null
null
null
nodes/roi_revisit_classifier.py
willdickson/puzzleboxes
964792f74d7a5b5fc8cce4fc659ebfe1859a7eff
[ "MIT" ]
null
null
null
import math from classifier import Classifier class ROIRevisitClassifier(Classifier): def __init__(self,param): super(ROIRevisitClassifier,self).__init__(param) self.last_state = False def update(self,t,obj_dict): current_object = obj_dict['fly'] if current_object is not None:...
27.25641
74
0.572907
import math from classifier import Classifier class ROIRevisitClassifier(Classifier): def __init__(self,param): super(ROIRevisitClassifier,self).__init__(param) self.last_state = False def update(self,t,obj_dict): current_object = obj_dict['fly'] if current_object is not None:...
true
true
f738078ce493ed33f8eb2d268b57a4e8a6523d95
4,675
py
Python
tests/integration/states/test_pkgrepo.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
1
2022-02-09T06:40:14.000Z
2022-02-09T06:40:14.000Z
tests/integration/states/test_pkgrepo.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
null
null
null
tests/integration/states/test_pkgrepo.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
4
2020-11-04T06:28:05.000Z
2022-02-09T10:54:49.000Z
# -*- coding: utf-8 -*- ''' tests for pkgrepo states ''' # Import Python libs from __future__ import absolute_import # Import Salt Testing libs from tests.support.case import ModuleCase from tests.support.mixins import SaltReturnAssertsMixin from tests.support.unit import skipIf from tests.support.helpers import ( ...
35.687023
103
0.57369
from __future__ import absolute_import from tests.support.case import ModuleCase from tests.support.mixins import SaltReturnAssertsMixin from tests.support.unit import skipIf from tests.support.helpers import ( destructiveTest, requires_system_grains ) import salt.utils import salt.ext.six as six @de...
true
true
f738086fbe7ae79039499e13f5fbfd89064aebe9
1,347
py
Python
Array/Final450/Find_First_Second__Smallest_n_Largest/Find_First_And_Second_Smallest.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Array/Final450/Find_First_Second__Smallest_n_Largest/Find_First_And_Second_Smallest.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Array/Final450/Find_First_Second__Smallest_n_Largest/Find_First_And_Second_Smallest.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
from Utils.Array import input_array """ https://www.geeksforgeeks.org/to-find-smallest-and-second-smallest-element-in-an-array/ Find the smallest and second smallest elements in an array Important part could be handling the corner cases, like handling the duplicates (even if you sort it) Approach 1 : sorting O...
29.282609
102
0.657016
from Utils.Array import input_array def find_first_and_second_smallest(nums) -> (int, int): first_smallest = second_smallest = float("inf") for n in nums: if n < first_smallest: second_smallest = first_smallest first_smallest = n elif n < second_smallest and n != firs...
true
true
f73808be94727f276d3c194e156d48a1d82053a8
798
py
Python
submitit/__init__.py
RudyChin/submitit
51c761f64f2aa9b4d72f78722297370325de8aed
[ "MIT" ]
null
null
null
submitit/__init__.py
RudyChin/submitit
51c761f64f2aa9b4d72f78722297370325de8aed
[ "MIT" ]
null
null
null
submitit/__init__.py
RudyChin/submitit
51c761f64f2aa9b4d72f78722297370325de8aed
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # # allow explicit reimports (mypy) by renaming all imports from . import helpers as helpers from .auto.auto import AutoExecutor as AutoExecut...
38
66
0.807018
from . import helpers as helpers from .auto.auto import AutoExecutor as AutoExecutor from .core.core import Executor as Executor from .core.core import Job as Job from .core.job_environment import JobEnvironment as JobEnvironment from .local.debug import DebugExecutor as DebugExcecutor from .local.debug import D...
true
true
f73808f59ce129ee0b97071847600c1c131487ab
172
py
Python
lib/__init__.py
johnny5550822/gdax-army
65e3719561f4fe125d9d1fc2ca9cd4c8e82a66a5
[ "MIT" ]
1
2018-02-21T03:34:04.000Z
2018-02-21T03:34:04.000Z
lib/__init__.py
johnny5550822/gdax-army
65e3719561f4fe125d9d1fc2ca9cd4c8e82a66a5
[ "MIT" ]
null
null
null
lib/__init__.py
johnny5550822/gdax-army
65e3719561f4fe125d9d1fc2ca9cd4c8e82a66a5
[ "MIT" ]
null
null
null
from Strategier import Strategier from BuyStrategier import BuyStrategier from SellStrategier import SellStrategier from GdaxArmy import GdaxArmy from Trader import Trader
28.666667
41
0.883721
from Strategier import Strategier from BuyStrategier import BuyStrategier from SellStrategier import SellStrategier from GdaxArmy import GdaxArmy from Trader import Trader
true
true
f738096054b08e604bf5d2d8338abf0c81109afd
5,795
py
Python
PermutationImportance/abstract_runner.py
gelijergensen/PermutationImportance
7a09a407e42745c223055e0597c5226ff64b2f3c
[ "MIT" ]
4
2019-02-01T17:49:14.000Z
2020-06-25T15:09:56.000Z
PermutationImportance/abstract_runner.py
gelijergensen/PermutationImportance
7a09a407e42745c223055e0597c5226ff64b2f3c
[ "MIT" ]
42
2018-09-27T19:35:32.000Z
2020-10-09T17:56:57.000Z
PermutationImportance/abstract_runner.py
gelijergensen/PermutationImportance
7a09a407e42745c223055e0597c5226ff64b2f3c
[ "MIT" ]
4
2018-09-27T19:34:33.000Z
2021-02-12T19:41:31.000Z
"""The general algorithm for all of the data-based variable importance methods is the same, regardless of whether the method is Sequential Selection or Permutation Importance or something else. This is represented in the ``abstract_variable_importance`` function. All of the different methods we provide use this func...
47.113821
177
0.734081
import numpy as np import multiprocessing as mp from .data_verification import verify_data, determine_variable_names from .multiprocessing_utils import pool_imap_unordered from .result import ImportanceResult from .scoring_strategies import verify_scoring_strategy from .utils import add_ranks_to_dict, get_data_subset...
true
true
f7380aec78c019b02b31fd16c23be4c37994a3f4
31,019
py
Python
gluon/contrib/redis_scheduler.py
oscarfonts/web2py
a18e0e489fe7a770c62fca510a4299886b0a9bb7
[ "BSD-3-Clause" ]
null
null
null
gluon/contrib/redis_scheduler.py
oscarfonts/web2py
a18e0e489fe7a770c62fca510a4299886b0a9bb7
[ "BSD-3-Clause" ]
null
null
null
gluon/contrib/redis_scheduler.py
oscarfonts/web2py
a18e0e489fe7a770c62fca510a4299886b0a9bb7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ | This file is part of the web2py Web Framework | Created by niphlod@gmail.com | License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) Scheduler with redis backend --------------------------------- """ import os import time import socket import datetime import loggi...
39.264557
87
0.526903
import os import time import socket import datetime import logging from json import loads, dumps from gluon.utils import web2py_uuid from gluon.storage import Storage from gluon.scheduler import * from gluon.scheduler import _decode_dict from gluon.contrib.redis_utils import RWatchError USAGE = """ ## Example For ...
true
true
f7380afeff1caddcba22d0b62ae7280baeb37695
11,159
py
Python
docker/package/manylinux/build_wheel.py
caishenghang/oneflow
db239cc9f98e551823bf6ce2d4395bd5c339b1c5
[ "Apache-2.0" ]
null
null
null
docker/package/manylinux/build_wheel.py
caishenghang/oneflow
db239cc9f98e551823bf6ce2d4395bd5c339b1c5
[ "Apache-2.0" ]
null
null
null
docker/package/manylinux/build_wheel.py
caishenghang/oneflow
db239cc9f98e551823bf6ce2d4395bd5c339b1c5
[ "Apache-2.0" ]
null
null
null
import os import subprocess import tempfile from pathlib import Path def build_arg_env(env_var_name): val = os.getenv(env_var_name) return f"--build-arg {env_var_name}={val}" def build_img(cuda_version, oneflow_src_dir, use_tuna, use_system_proxy, img_tag): cudnn_version = 7 if str(cuda_version).sta...
34.230061
142
0.609284
import os import subprocess import tempfile from pathlib import Path def build_arg_env(env_var_name): val = os.getenv(env_var_name) return f"--build-arg {env_var_name}={val}" def build_img(cuda_version, oneflow_src_dir, use_tuna, use_system_proxy, img_tag): cudnn_version = 7 if str(cuda_version).sta...
true
true
f7380d64839a49d1b3b0921f39e6a084e7dfd4b8
272
py
Python
ats/conftest.py
MahmoudFarid/ats
1f882168cba2f34451cbb9bba1e37ce93ef0c465
[ "MIT" ]
null
null
null
ats/conftest.py
MahmoudFarid/ats
1f882168cba2f34451cbb9bba1e37ce93ef0c465
[ "MIT" ]
1
2020-07-19T11:19:22.000Z
2020-07-19T11:19:22.000Z
ats/conftest.py
MahmoudFarid/ats
1f882168cba2f34451cbb9bba1e37ce93ef0c465
[ "MIT" ]
null
null
null
import pytest from ats.users.models import User from ats.users.tests.factories import UserFactory @pytest.fixture(autouse=True) def media_storage(settings, tmpdir): settings.MEDIA_ROOT = tmpdir.strpath @pytest.fixture def user() -> User: return UserFactory()
18.133333
49
0.768382
import pytest from ats.users.models import User from ats.users.tests.factories import UserFactory @pytest.fixture(autouse=True) def media_storage(settings, tmpdir): settings.MEDIA_ROOT = tmpdir.strpath @pytest.fixture def user() -> User: return UserFactory()
true
true
f73810b5a713532fd33d2666d1759247bd9d52f6
682
py
Python
2021/12/solution2.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
2
2020-12-04T09:45:38.000Z
2020-12-07T14:06:12.000Z
2021/12/solution2.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
2021/12/solution2.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
from collections import defaultdict, deque with open("input.txt") as input_file: lines = input_file.read().splitlines() g = defaultdict(set) for line in lines: n1, n2 = line.split("-") g[n1].add(n2) g[n2].add(n1) def walk(node, path, return_here): if node == "end": yield path fo...
28.416667
87
0.631965
from collections import defaultdict, deque with open("input.txt") as input_file: lines = input_file.read().splitlines() g = defaultdict(set) for line in lines: n1, n2 = line.split("-") g[n1].add(n2) g[n2].add(n1) def walk(node, path, return_here): if node == "end": yield path fo...
true
true
f73811ec3999042be11f430b5182fc83482be01d
28,621
py
Python
fairseq/tasks/online_backtranslation.py
ben15021999/fairseq_rl
89f3c1123052927f67c008f01f3ffa4383f90150
[ "MIT" ]
null
null
null
fairseq/tasks/online_backtranslation.py
ben15021999/fairseq_rl
89f3c1123052927f67c008f01f3ffa4383f90150
[ "MIT" ]
null
null
null
fairseq/tasks/online_backtranslation.py
ben15021999/fairseq_rl
89f3c1123052927f67c008f01f3ffa4383f90150
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import contextlib import json import logging import math import os from argparse import Namespace from collections import OrderedDict, default...
41.904832
118
0.608574
import contextlib import json import logging import math import os from argparse import Namespace from collections import OrderedDict, defaultdict from pathlib import Path from typing import Dict, Sequence, Tuple from argparse import ArgumentError import numpy as np import torch import torch.nn as nn import torch...
true
true
f73812c10b4508b711c1985c5113732da9072f54
2,167
py
Python
actions/deleteCoreV1NamespacedEndpoints.py
blinkops/stackstorm-kubernetes
3b4a15d42f603f3e700efaf534169e2ec361f5d2
[ "Apache-2.0" ]
20
2016-12-24T01:35:41.000Z
2022-03-06T08:32:16.000Z
actions/deleteCoreV1NamespacedEndpoints.py
blinkops/stackstorm-kubernetes
3b4a15d42f603f3e700efaf534169e2ec361f5d2
[ "Apache-2.0" ]
16
2017-05-02T19:38:57.000Z
2021-06-17T08:31:17.000Z
actions/deleteCoreV1NamespacedEndpoints.py
blinkops/stackstorm-kubernetes
3b4a15d42f603f3e700efaf534169e2ec361f5d2
[ "Apache-2.0" ]
18
2017-06-20T00:44:12.000Z
2022-03-30T08:41:42.000Z
import json from lib.k8s import K8sClient class deleteCoreV1NamespacedEndpoints(K8sClient): def run( self, body, name, namespace, gracePeriodSeconds=None, orphanDependents=None, pretty=None, config_override=None): ...
32.343284
187
0.564375
import json from lib.k8s import K8sClient class deleteCoreV1NamespacedEndpoints(K8sClient): def run( self, body, name, namespace, gracePeriodSeconds=None, orphanDependents=None, pretty=None, config_override=None): ...
true
true
f73813ea2908459d53ac6d7a74bd3c5e1d643145
7,550
py
Python
hexfile.py
risapav/ihex_analyzer
7162e3cec87260ed3451e43a63374a26e6a91248
[ "MIT" ]
null
null
null
hexfile.py
risapav/ihex_analyzer
7162e3cec87260ed3451e43a63374a26e6a91248
[ "MIT" ]
null
null
null
hexfile.py
risapav/ihex_analyzer
7162e3cec87260ed3451e43a63374a26e6a91248
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Hexdump Utility =============== A command line hexdump utility. See the module's `Github homepage <https://github.com/risapav/ihex_analyzer>`_ for details. """ # pouzite kniznice import struct import codecs # definovanie konstant ROWTYPE_DATA = 0x00 # Data container ROWTYPE_EOF = 0x01 # E...
34.633028
78
0.540927
import struct import codecs ROWTYPE_DATA = 0x00 ROWTYPE_EOF = 0x01 ROWTYPE_EXT_SEG_ADDR = 0x02 ROWTYPE_START_SEG_ADDR = 0x03 ROWTYPE_EXT_LIN_ADDR = 0x04 ROWTYPE_START_LIN_ADDR = 0x05 class HexFile: def __init__(self, filename): self._filename = filename self....
true
true
f7381597c07096508b011a0a810cce6703d381a9
7,724
py
Python
main.py
TheArcher1958/GrubGuardianBot-XP
8c3381919956a1060632847015ff8dc91f602dab
[ "MIT" ]
null
null
null
main.py
TheArcher1958/GrubGuardianBot-XP
8c3381919956a1060632847015ff8dc91f602dab
[ "MIT" ]
null
null
null
main.py
TheArcher1958/GrubGuardianBot-XP
8c3381919956a1060632847015ff8dc91f602dab
[ "MIT" ]
null
null
null
import tkinter as tk import time import threading global autoXP, manualXP, roundTitle, button from google.cloud import vision import re import pyautogui global autoXPIsOn autoXPIsOn = False def getRoundsToPlay(): pyautogui.screenshot('energyCount.png', region=(x + 286, y + 430, 45, 32)) # Get a s...
36.780952
181
0.631668
import tkinter as tk import time import threading global autoXP, manualXP, roundTitle, button from google.cloud import vision import re import pyautogui global autoXPIsOn autoXPIsOn = False def getRoundsToPlay(): pyautogui.screenshot('energyCount.png', region=(x + 286, y + 430, 45, 32)) pyau...
true
true
f738164b756c30794a64f10575ebfcbdae1fe688
475
py
Python
Task/migrations/0009_task_help_text.py
DudaEugen/JustTesting
7b62c7f5d1d918c3fe82bf00aff4009212427a6f
[ "MIT" ]
null
null
null
Task/migrations/0009_task_help_text.py
DudaEugen/JustTesting
7b62c7f5d1d918c3fe82bf00aff4009212427a6f
[ "MIT" ]
null
null
null
Task/migrations/0009_task_help_text.py
DudaEugen/JustTesting
7b62c7f5d1d918c3fe82bf00aff4009212427a6f
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-08-24 18:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Task', '0008_auto_20210815_1346'), ] operations = [ migrations.AddField( model_name='task', name='help_text', ...
25
143
0.627368
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Task', '0008_auto_20210815_1346'), ] operations = [ migrations.AddField( model_name='task', name='help_text', field=models.TextField(blank=True, defaul...
true
true
f73817ba3a6e49a6cb827c81b51e2247e0afaaca
16,631
py
Python
Src/Tests/test_stdconsole.py
Enerccio/ironpython26-fixed
e302db14f05396a378adb438565a829e66acbf94
[ "MS-PL" ]
1
2020-02-11T06:02:40.000Z
2020-02-11T06:02:40.000Z
Src/Languages/IronPython/Tests/test_stdconsole.py
rudimk/dlr-dotnet
71d11769f99d6ff1516ddbaed091a359eb46c670
[ "MS-PL" ]
null
null
null
Src/Languages/IronPython/Tests/test_stdconsole.py
rudimk/dlr-dotnet
71d11769f99d6ff1516ddbaed091a359eb46c670
[ "MS-PL" ]
1
2018-11-21T04:10:23.000Z
2018-11-21T04:10:23.000Z
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Microsoft Public License. A # copy of the license can be found in the License.html file at the root of this ...
45.564384
146
0.603692
false
true
f7381b2885e3a108c9a106207058fa1c4fe40b04
11,775
py
Python
tests/test_visibility.py
ewaf1/synapse
77661ce81a799a375317dff9e4c8696da528984c
[ "Apache-2.0" ]
2
2020-04-30T18:38:02.000Z
2020-07-08T21:38:28.000Z
tests/test_visibility.py
ewaf1/synapse
77661ce81a799a375317dff9e4c8696da528984c
[ "Apache-2.0" ]
1
2020-02-10T10:03:31.000Z
2020-02-10T10:03:31.000Z
tests/test_visibility.py
ewaf1/synapse
77661ce81a799a375317dff9e4c8696da528984c
[ "Apache-2.0" ]
2
2020-03-03T18:34:52.000Z
2022-03-31T11:06:18.000Z
# -*- coding: utf-8 -*- # Copyright 2018 New Vector Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
34.530792
83
0.592527
import logging from mock import Mock from twisted.internet import defer from twisted.internet.defer import succeed from synapse.api.room_versions import RoomVersions from synapse.events import FrozenEvent from synapse.visibility import filter_events_for_server import tests.unittest from tests.utils im...
true
true
f7381c1f55dfeeeea1f7fd8ac79a706f619f1ec8
2,510
py
Python
product_spider/spiders/molcan_spider.py
Pandaaaa906/product_spider
cc7f865f53fd3ed68f4869be3ba917c8373dfcf2
[ "MIT" ]
null
null
null
product_spider/spiders/molcan_spider.py
Pandaaaa906/product_spider
cc7f865f53fd3ed68f4869be3ba917c8373dfcf2
[ "MIT" ]
null
null
null
product_spider/spiders/molcan_spider.py
Pandaaaa906/product_spider
cc7f865f53fd3ed68f4869be3ba917c8373dfcf2
[ "MIT" ]
null
null
null
import re from string import ascii_uppercase from scrapy import Request from product_spider.items import RawData from product_spider.utils.spider_mixin import BaseSpider class MolcanPrdSpider(BaseSpider): name = 'molcan' base_url = 'http://molcan.com' start_urls = map(lambda x: f"http://molcan.com/prod...
41.147541
109
0.595219
import re from string import ascii_uppercase from scrapy import Request from product_spider.items import RawData from product_spider.utils.spider_mixin import BaseSpider class MolcanPrdSpider(BaseSpider): name = 'molcan' base_url = 'http://molcan.com' start_urls = map(lambda x: f"http://molcan.com/prod...
true
true
f7381d635f3c0ce2d25584e3dfa645a0f5a58cc1
45
py
Python
easyfilemanager/__init__.py
RaphaelNanje/easyfilemanager
29cb6ad90dc28de41478ce7ed768917051f0988a
[ "MIT" ]
null
null
null
easyfilemanager/__init__.py
RaphaelNanje/easyfilemanager
29cb6ad90dc28de41478ce7ed768917051f0988a
[ "MIT" ]
null
null
null
easyfilemanager/__init__.py
RaphaelNanje/easyfilemanager
29cb6ad90dc28de41478ce7ed768917051f0988a
[ "MIT" ]
null
null
null
from easyfilemanager.core import FileManager
22.5
44
0.888889
from easyfilemanager.core import FileManager
true
true
f7381dccc6b45e04f911ab3724229045fc634b1c
1,985
py
Python
.mywaflib/waflib/extras/smart_continue.py
tobiasraabe/crypto
5b40049169cfbf02f4979a55e8abdb77b834b820
[ "BSD-3-Clause" ]
null
null
null
.mywaflib/waflib/extras/smart_continue.py
tobiasraabe/crypto
5b40049169cfbf02f4979a55e8abdb77b834b820
[ "BSD-3-Clause" ]
1
2017-08-31T15:55:24.000Z
2017-08-31T15:55:24.000Z
.mywaflib/waflib/extras/smart_continue.py
tobiasraabe/crypto
5b40049169cfbf02f4979a55e8abdb77b834b820
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # Thomas Nagy, 2011 # Try to cancel the tasks that cannot run with the option -k when an error occurs: # 1 direct file dependencies # 2 tasks listed in the before/after/ext_in/ext_out attributes from waflib import Task, Runner Task.CANCELED = 4 def cancel_next(self, tsk): if not isinstance(t...
24.207317
82
0.739547
from waflib import Task, Runner Task.CANCELED = 4 def cancel_next(self, tsk): if not isinstance(tsk, Task.TaskBase): return if tsk.hasrun >= Task.SKIPPED: return try: canceled_tasks, canceled_nodes = self.canceled_tasks, self.canceled_nodes except AttributeError: canceled_tasks = self.canceled_...
true
true
f7381ddea42a851a9d2e20b157d42216f14461b8
939
py
Python
generated-sources/python/mojang-authentication/test/test_profile_id.py
AsyncMC/Mojang-API-Libs
b01bbd2bce44bfa2b9ed705a128cf4ecda077916
[ "Apache-2.0" ]
null
null
null
generated-sources/python/mojang-authentication/test/test_profile_id.py
AsyncMC/Mojang-API-Libs
b01bbd2bce44bfa2b9ed705a128cf4ecda077916
[ "Apache-2.0" ]
null
null
null
generated-sources/python/mojang-authentication/test/test_profile_id.py
AsyncMC/Mojang-API-Libs
b01bbd2bce44bfa2b9ed705a128cf4ecda077916
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Mojang Authentication API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 2020-06-05 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import uni...
23.475
124
0.713525
from __future__ import absolute_import import unittest import openapi_client from openapi_client.com.github.asyncmc.mojang.authentication.python.model.profile_id import ProfileId from openapi_client.rest import ApiException class TestProfileId(unittest.TestCase): def setUp(self): pass def te...
true
true
f7381de4aebc9051177ffd55accf0b7d97283f70
2,547
py
Python
elementally/tests/test.py
dem1995/elementally
192990ad53580d62e278def6508c466589f38ecd
[ "X11" ]
null
null
null
elementally/tests/test.py
dem1995/elementally
192990ad53580d62e278def6508c466589f38ecd
[ "X11" ]
null
null
null
elementally/tests/test.py
dem1995/elementally
192990ad53580d62e278def6508c466589f38ecd
[ "X11" ]
null
null
null
import elementally as elmy import unittest import itertools pos_array = [1, 2, 3, 4, 5] pos_array_2 = [5, 4, 3, 2, 1] neg_array = [-10, -20, -30, -40, -50] neg_array_2 = [-50, -40, -30, -20, -10] def odd_generator(): i=1 while(True): yield i i+=2 def complex_generator(): i=1 while(True...
39.184615
96
0.669415
import elementally as elmy import unittest import itertools pos_array = [1, 2, 3, 4, 5] pos_array_2 = [5, 4, 3, 2, 1] neg_array = [-10, -20, -30, -40, -50] neg_array_2 = [-50, -40, -30, -20, -10] def odd_generator(): i=1 while(True): yield i i+=2 def complex_generator(): i=1 while(True...
true
true
f7381dee751bc8ce42c7f5d24e881d37f73e6d1c
2,733
py
Python
cli/iotexetl/rpc/iotex_rpc.py
blockchain-etl/iotex-etl
bd350c3190acac35d17532eff383e05d08011e24
[ "MIT" ]
3
2020-07-04T13:53:38.000Z
2020-07-30T15:07:35.000Z
cli/iotexetl/rpc/iotex_rpc.py
blockchain-etl/iotex-etl
bd350c3190acac35d17532eff383e05d08011e24
[ "MIT" ]
13
2020-07-16T06:07:33.000Z
2020-08-20T10:35:10.000Z
cli/iotexetl/rpc/iotex_rpc.py
blockchain-etl/iotex-etl
bd350c3190acac35d17532eff383e05d08011e24
[ "MIT" ]
1
2021-01-20T10:06:20.000Z
2021-01-20T10:06:20.000Z
# The MIT License (MIT) # # Copyright (c) 2020 Evgeny Medvedev, evge.medvedev@gmail.com # # 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...
42.046154
120
0.751921
from urllib.parse import urlparse import grpc from iotexetl.rpc.iotexapi import api_pb2 from iotexetl.rpc.iotexapi import api_pb2_grpc class IotexRpc: def __init__(self, provider_uri, timeout=60): self.timeout = timeout channel = get_channel_from_uri_string(provider_uri) ...
true
true
f7381e74083b6e786a470d6307bbc156fb1bba7f
2,863
py
Python
tests/modules/generate/test_recipe_generator.py
lexatnet/appimage-builder
58b8849a837cab6618c3ca0de3ade5f884fc954a
[ "MIT" ]
null
null
null
tests/modules/generate/test_recipe_generator.py
lexatnet/appimage-builder
58b8849a837cab6618c3ca0de3ade5f884fc954a
[ "MIT" ]
null
null
null
tests/modules/generate/test_recipe_generator.py
lexatnet/appimage-builder
58b8849a837cab6618c3ca0de3ade5f884fc954a
[ "MIT" ]
null
null
null
# Copyright 2021 Alexis Lopez Zubieta # # 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, publi...
39.219178
83
0.585051
import pathlib from unittest import TestCase from appimagebuilder.context import AppInfo from appimagebuilder.modules.generate import BundleInfo from appimagebuilder.recipe.schema import RecipeSchema from tests.modules.generate.fake_path import FakePath from tests.modules.generate.fake_runtime_analyser impo...
true
true
f7381ebe02cd74e34e415cf64782e1b9aab065cc
6,246
py
Python
reid/models/resnet_mldg_smm.py
ZhaoChuyang/dgreid
ee1d7af74b796f2f194307ab023e43ecc3d3d525
[ "MIT" ]
null
null
null
reid/models/resnet_mldg_smm.py
ZhaoChuyang/dgreid
ee1d7af74b796f2f194307ab023e43ecc3d3d525
[ "MIT" ]
null
null
null
reid/models/resnet_mldg_smm.py
ZhaoChuyang/dgreid
ee1d7af74b796f2f194307ab023e43ecc3d3d525
[ "MIT" ]
null
null
null
from __future__ import absolute_import import torch from torch import nn from torch.nn import functional as F from torch.nn import init import torchvision from collections import OrderedDict from ..models.layers.adain import SMMBlock __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', '...
30.028846
88
0.575568
from __future__ import absolute_import import torch from torch import nn from torch.nn import functional as F from torch.nn import init import torchvision from collections import OrderedDict from ..models.layers.adain import SMMBlock __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', '...
true
true
f7381edb24031a7a55a75176563d048bfb71d4fd
1,398
py
Python
google/ads/googleads/v4/enums/types/policy_topic_evidence_destination_mismatch_url_type.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v4/enums/types/policy_topic_evidence_destination_mismatch_url_type.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v4/enums/types/policy_topic_evidence_destination_mismatch_url_type.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
29.744681
74
0.716738
import proto __protobuf__ = proto.module( package="google.ads.googleads.v4.enums", marshal="google.ads.googleads.v4", manifest={"PolicyTopicEvidenceDestinationMismatchUrlTypeEnum",}, ) class PolicyTopicEvidenceDestinationMismatchUrlTypeEnum(proto.Message): class PolicyTopicEviden...
true
true
f7381f3153c6d06a7084c46fc95a921cf0b5ea8f
1,695
py
Python
simulator.py
zhaoyan1117/RoutingProtocols
eeeb99e8a89c3e13a57265296dc64991b756b31b
[ "BSD-3-Clause" ]
3
2019-04-20T06:50:09.000Z
2021-12-14T13:11:17.000Z
simulator.py
zhaoyan1117/RoutingProtocols
eeeb99e8a89c3e13a57265296dc64991b756b31b
[ "BSD-3-Clause" ]
null
null
null
simulator.py
zhaoyan1117/RoutingProtocols
eeeb99e8a89c3e13a57265296dc64991b756b31b
[ "BSD-3-Clause" ]
5
2015-03-13T14:55:56.000Z
2019-07-21T09:48:44.000Z
#!/usr/bin/env python import sys import time _ENABLE_GUI = "--gui" in sys.argv # If you don't want to see log messages on the console, uncomment the # following line. You might want to do this if you are using the GUI # which displays logs itself. _DISABLE_CONSOLE_LOG = True #from sim.basics import Hub as switch #...
30.818182
72
0.776991
import sys import time _ENABLE_GUI = "--gui" in sys.argv # following line. You might want to do this if you are using the GUI # which displays logs itself. _DISABLE_CONSOLE_LOG = True #from sim.basics import Hub as switch #from learning_switch import LearningSwitch as switch from rip_router import RIPRouter as s...
false
true
f7381f56863525771b7576c8adc3d03ab7574454
217
py
Python
testing/freeze/runtests_script.py
tinkerlin/pytest
bed3918cbc800682681a26c163f4cb0868b3a612
[ "MIT" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
testing/freeze/runtests_script.py
tinkerlin/pytest
bed3918cbc800682681a26c163f4cb0868b3a612
[ "MIT" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
testing/freeze/runtests_script.py
tinkerlin/pytest
bed3918cbc800682681a26c163f4cb0868b3a612
[ "MIT" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
# -*- coding: utf-8 -*- """ This is the script that is actually frozen into an executable: simply executes py.test main(). """ if __name__ == "__main__": import sys import pytest sys.exit(pytest.main())
18.083333
78
0.64977
if __name__ == "__main__": import sys import pytest sys.exit(pytest.main())
true
true
f7381fe80deed90bccb110c73f72f098589afc20
7,039
py
Python
isi_sdk_8_2_2/isi_sdk_8_2_2/models/cloud_settings_settings_sleep_timeout_cloud_garbage_collection.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_2/isi_sdk_8_2_2/models/cloud_settings_settings_sleep_timeout_cloud_garbage_collection.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_2/isi_sdk_8_2_2/models/cloud_settings_settings_sleep_timeout_cloud_garbage_collection.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 9 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class CloudSettingsSettingsSleep...
35.371859
144
0.667851
import pprint import re import six class CloudSettingsSettingsSleepTimeoutCloudGarbageCollection(object): swagger_types = { 'recovery_with_tasks': 'float', 'recovery_without_tasks': 'float', 'with_tasks': 'float', 'without_tasks': 'float' } attribute_map = { ...
true
true
f73821c5faf6d5fa14c6927bb627ab1b623d7e67
11,020
py
Python
detection/object_detection/obj_3_mxrcnn/WindowObj3MxrcnnInfer.py
THEFASHIONGEEK/Monk_Gui
7c23cdd3487ae5a5b28b0a3419e4e64022b11e06
[ "Apache-2.0" ]
129
2020-01-30T22:08:05.000Z
2022-03-04T06:33:14.000Z
detection/object_detection/obj_3_mxrcnn/WindowObj3MxrcnnInfer.py
netwrkspider/Monk_Gui
05ce1bbef0199fbd38519220cc71fb6904c59e7c
[ "Apache-2.0" ]
2
2020-04-04T14:57:49.000Z
2020-06-13T14:13:01.000Z
detection/object_detection/obj_3_mxrcnn/WindowObj3MxrcnnInfer.py
netwrkspider/Monk_Gui
05ce1bbef0199fbd38519220cc71fb6904c59e7c
[ "Apache-2.0" ]
46
2020-01-31T00:23:21.000Z
2022-01-31T01:21:51.000Z
import os import sys import json import time from PyQt5 import QtCore, QtWidgets from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import pyqtSignal, pyqtSlot class WindowObj3MxrcnnInfer(QtWidgets.QWidget): backward_3_mxrcnn = QtCore.pyqtSignal(); def __init__(self): super()...
32.411765
121
0.582849
import os import sys import json import time from PyQt5 import QtCore, QtWidgets from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import pyqtSignal, pyqtSlot class WindowObj3MxrcnnInfer(QtWidgets.QWidget): backward_3_mxrcnn = QtCore.pyqtSignal(); def __init__(self): super()...
true
true
f738226cd8cde499f6eebeac5b3f0e6fee2da507
682
py
Python
django-server/climate_commander/jobs/migrations/0010_auto_20160822_1332.py
jrising/climate-commander
123cf5a07b87eb1a3bdb44378ee27712b6563ec3
[ "MIT" ]
null
null
null
django-server/climate_commander/jobs/migrations/0010_auto_20160822_1332.py
jrising/climate-commander
123cf5a07b87eb1a3bdb44378ee27712b6563ec3
[ "MIT" ]
1
2016-08-03T21:49:58.000Z
2016-08-03T21:49:58.000Z
django-server/climate_commander/jobs/migrations/0010_auto_20160822_1332.py
jrising/climate-commander
123cf5a07b87eb1a3bdb44378ee27712b6563ec3
[ "MIT" ]
1
2016-07-13T18:19:56.000Z
2016-07-13T18:19:56.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-08-22 20:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('jobs', '0009_auto_20160822_1211'), ] operations = [ migrations.AddField( ...
25.259259
72
0.601173
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('jobs', '0009_auto_20160822_1211'), ] operations = [ migrations.AddField( model_name='job', name='result_file', ...
true
true
f73822950568899fb701e184dd149897a911720a
2,903
py
Python
example/metrics/i1_data_knowledge_representation_weak.py
MaastrichtU-IDS/fair-testing
9e64be68934dd20d0d2845bd9e17fc4d47f0d226
[ "MIT" ]
4
2022-02-14T12:33:16.000Z
2022-03-28T11:43:44.000Z
example/metrics/i1_data_knowledge_representation_weak.py
MaastrichtU-IDS/fair-testing
9e64be68934dd20d0d2845bd9e17fc4d47f0d226
[ "MIT" ]
null
null
null
example/metrics/i1_data_knowledge_representation_weak.py
MaastrichtU-IDS/fair-testing
9e64be68934dd20d0d2845bd9e17fc4d47f0d226
[ "MIT" ]
1
2022-02-15T05:58:55.000Z
2022-02-15T05:58:55.000Z
import json import requests import yaml from fair_test import FairTest, FairTestEvaluation class MetricTest(FairTest): metric_path = 'i1-data-knowledge-representation-weak' applies_to_principle = 'I1' title = 'Data uses a formal knowledge representation language (weak)' description = """Maturity Indi...
47.590164
186
0.612814
import json import requests import yaml from fair_test import FairTest, FairTestEvaluation class MetricTest(FairTest): metric_path = 'i1-data-knowledge-representation-weak' applies_to_principle = 'I1' title = 'Data uses a formal knowledge representation language (weak)' description = """Maturity Indi...
true
true
f73823d30c95fe8fb6e31fe46c72c32644993be1
2,345
py
Python
tests/configs/realview-simple-timing.py
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
31
2015-11-12T03:12:27.000Z
2020-12-23T12:36:39.000Z
tests/configs/realview-simple-timing.py
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
5
2015-12-04T08:06:47.000Z
2020-08-09T21:49:46.000Z
tests/configs/realview-simple-timing.py
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
21
2015-11-05T08:25:45.000Z
2021-06-19T02:24:50.000Z
# Copyright (c) 2012 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functionality ...
53.295455
76
0.77484
from m5.objects import * from arm_generic import * root = LinuxArmFSSystemUniprocessor(mem_mode='timing', mem_class=DDR3_1600_x64, cpu_class=TimingSimpleCPU).create_root()
true
true
f73825f4e7fb012d4690e3a8e84f61ba23b77749
14,004
py
Python
tests/test_response.py
githubztx/httprunner
625dfab8e95e069df3275ee09dee3004bed60b1b
[ "Apache-2.0" ]
5
2019-05-09T05:55:32.000Z
2019-07-08T10:24:30.000Z
tests/test_response.py
githubztx/httprunner
625dfab8e95e069df3275ee09dee3004bed60b1b
[ "Apache-2.0" ]
1
2019-08-07T12:53:35.000Z
2019-08-07T12:53:35.000Z
tests/test_response.py
githubztx/httprunner
625dfab8e95e069df3275ee09dee3004bed60b1b
[ "Apache-2.0" ]
1
2019-03-12T03:37:07.000Z
2019-03-12T03:37:07.000Z
import requests from httprunner import built_in, exceptions, loader, response from httprunner.compat import basestring, bytes from tests.api_server import HTTPBIN_SERVER from tests.base import ApiServerUnittest class TestResponse(ApiServerUnittest): def setUp(self): self.functions_mapping = loader.load_m...
35.72449
176
0.576407
import requests from httprunner import built_in, exceptions, loader, response from httprunner.compat import basestring, bytes from tests.api_server import HTTPBIN_SERVER from tests.base import ApiServerUnittest class TestResponse(ApiServerUnittest): def setUp(self): self.functions_mapping = loader.load_m...
true
true
f738260086ccd3653bc2367e7b8083819a301d9b
1,807
py
Python
preprocessing/metadata.py
skincare-deep-learning/Skincare-backend
80ed6b7a735291848be9248035231fbd55c93990
[ "Apache-2.0" ]
1
2019-11-27T20:56:27.000Z
2019-11-27T20:56:27.000Z
preprocessing/metadata.py
skincare-deep-learning/Skincare-backend
80ed6b7a735291848be9248035231fbd55c93990
[ "Apache-2.0" ]
10
2021-04-02T19:47:15.000Z
2022-01-13T01:52:53.000Z
preprocessing/metadata.py
skincare-deep-learning/Skincare-backend
80ed6b7a735291848be9248035231fbd55c93990
[ "Apache-2.0" ]
null
null
null
import json import csv import pandas as pd from isic_api import ISICApi from pandas.io.json import json_normalize # Initialize the API; no login is necessary for public data api = ISICApi(username="SkinCare", password="unbdeeplearning") outputFileName = 'imagedata' imageList = api.getJson('image?limit=25000&offset=0&...
30.627119
110
0.672939
import json import csv import pandas as pd from isic_api import ISICApi from pandas.io.json import json_normalize api = ISICApi(username="SkinCare", password="unbdeeplearning") outputFileName = 'imagedata' imageList = api.getJson('image?limit=25000&offset=0&sort=name') print('Fetching metadata for %s images' % len(...
true
true
f73826463a1ba0ab31fdecabea7ca0c19965ab64
815
py
Python
talentpool/urls.py
klevamane/talentpool
f0de0861f90a3063a19183e8355d635c6a24d353
[ "MIT" ]
null
null
null
talentpool/urls.py
klevamane/talentpool
f0de0861f90a3063a19183e8355d635c6a24d353
[ "MIT" ]
null
null
null
talentpool/urls.py
klevamane/talentpool
f0de0861f90a3063a19183e8355d635c6a24d353
[ "MIT" ]
null
null
null
"""talentpool URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
35.434783
77
0.707975
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('api-auth/', include('rest_framework.urls')) ]
true
true
f73826e2d6c836b4cf6eee7deeabee599aa4244b
18,034
py
Python
tests/python/relay/test_op_level1.py
zhanghaohit/incubator-tvm
ee0af843f3c5a3429e888079afb5f30789bd9bee
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
tests/python/relay/test_op_level1.py
zhanghaohit/incubator-tvm
ee0af843f3c5a3429e888079afb5f30789bd9bee
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
tests/python/relay/test_op_level1.py
zhanghaohit/incubator-tvm
ee0af843f3c5a3429e888079afb5f30789bd9bee
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
41.267735
106
0.579184
import numpy as np import pytest import tvm import scipy from tvm import relay from tvm.relay import transform from tvm.relay.testing import ctx_list import topi.testing from tvm.contrib.nvcc import have_fp16 def run_infer_type(expr): mod = relay.Module.from_expr(expr) mod = transform.InferType...
true
true
f738272452b5bd4a133676f40a2cc49598c160de
240
py
Python
experiment_session/admin.py
piotrb5e3/1023alternative-backend
3a3882a906ae17d9d670d600d68063e4a9ea7102
[ "MIT" ]
null
null
null
experiment_session/admin.py
piotrb5e3/1023alternative-backend
3a3882a906ae17d9d670d600d68063e4a9ea7102
[ "MIT" ]
null
null
null
experiment_session/admin.py
piotrb5e3/1023alternative-backend
3a3882a906ae17d9d670d600d68063e4a9ea7102
[ "MIT" ]
null
null
null
from django.contrib import admin from experiment_session.models import ExperimentSession, Combination, Repeat # Register your models here. admin.site.register(ExperimentSession) admin.site.register(Combination) admin.site.register(Repeat)
30
76
0.845833
from django.contrib import admin from experiment_session.models import ExperimentSession, Combination, Repeat admin.site.register(ExperimentSession) admin.site.register(Combination) admin.site.register(Repeat)
true
true
f7382727993ed6544d16711c4ab933c0141beb52
2,382
py
Python
subprojects/nicta/tem/cluster/sge/simulate_worker.py
sirca/bdkd_datastore
2fc4f3d7976d326c0c8ae46d72475aaaa1fdf78d
[ "Apache-2.0" ]
3
2016-03-12T03:09:18.000Z
2017-04-23T12:47:49.000Z
subprojects/nicta/tem/cluster/sge/simulate_worker.py
sirca/bdkd_datastore
2fc4f3d7976d326c0c8ae46d72475aaaa1fdf78d
[ "Apache-2.0" ]
3
2015-12-03T00:32:55.000Z
2016-02-03T23:31:07.000Z
subprojects/nicta/tem/cluster/sge/simulate_worker.py
sirca/bdkd_datastore
2fc4f3d7976d326c0c8ae46d72475aaaa1fdf78d
[ "Apache-2.0" ]
1
2019-04-08T07:43:17.000Z
2019-04-08T07:43:17.000Z
import tree import redis import time import socket import os from simple_queue import redis_queue import logging REDIS_HOST=os.environ["REDIS_HOST"] REDIS_PORT=6379 rq = redis_queue(redis_host = REDIS_HOST, redis_port=REDIS_PORT) # This is the job that simulates a particular forest # NOTE: characteristic contains log...
35.029412
142
0.59194
import tree import redis import time import socket import os from simple_queue import redis_queue import logging REDIS_HOST=os.environ["REDIS_HOST"] REDIS_PORT=6379 rq = redis_queue(redis_host = REDIS_HOST, redis_port=REDIS_PORT) def wait_for_simulations(): while True: if rq.q_len("queue") > 0 : ...
true
true
f7382923ab66def07ab5da7f88d25d20717257cb
3,997
py
Python
venv/Lib/site-packages/folium/plugins/heat_map.py
tarasrumezhak/twitter_map
65a5c64c38620895e49c48656915c79fe5703549
[ "MIT" ]
2
2018-12-16T14:52:49.000Z
2018-12-21T19:47:57.000Z
venv/Lib/site-packages/folium/plugins/heat_map.py
tarasrumezhak/twitter_map
65a5c64c38620895e49c48656915c79fe5703549
[ "MIT" ]
null
null
null
venv/Lib/site-packages/folium/plugins/heat_map.py
tarasrumezhak/twitter_map
65a5c64c38620895e49c48656915c79fe5703549
[ "MIT" ]
1
2019-12-13T11:01:04.000Z
2019-12-13T11:01:04.000Z
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function) import json from branca.element import Figure, JavascriptLink from folium.map import Layer from folium.utilities import _isnan, _iter_tolist, none_max, none_min from jinja2 import Template class HeatMap(Layer): """ ...
36.009009
98
0.549162
from __future__ import (absolute_import, division, print_function) import json from branca.element import Figure, JavascriptLink from folium.map import Layer from folium.utilities import _isnan, _iter_tolist, none_max, none_min from jinja2 import Template class HeatMap(Layer): _template = Template(u""" ...
true
true
f73829b33cb73440f6af7fd6b000866ca52d564b
133
py
Python
Python/1011 - Esfera.py
carloshenrique051994/exerciciosUri
1f73a32b44c79cd7aa47a89f2afb8e9618d27e3b
[ "MIT" ]
null
null
null
Python/1011 - Esfera.py
carloshenrique051994/exerciciosUri
1f73a32b44c79cd7aa47a89f2afb8e9618d27e3b
[ "MIT" ]
null
null
null
Python/1011 - Esfera.py
carloshenrique051994/exerciciosUri
1f73a32b44c79cd7aa47a89f2afb8e9618d27e3b
[ "MIT" ]
null
null
null
from math import pow pi = 3.14159 raio = int(input()) volume = (4.0/3) * pi * (pow(raio, 3)) print('VOLUME = {:.3f}'.format(volume))
22.166667
39
0.609023
from math import pow pi = 3.14159 raio = int(input()) volume = (4.0/3) * pi * (pow(raio, 3)) print('VOLUME = {:.3f}'.format(volume))
true
true
f7382a22071c11bec80e3bfebed4fa144f37bddc
921
py
Python
jivago/serialization/deserialization/typed_list_deserialization_strategy.py
keotl/jivago
892dfb0cae773e36245083c3e56f0f8523145523
[ "MIT" ]
12
2018-03-19T20:57:44.000Z
2020-01-27T14:11:24.000Z
jivago/serialization/deserialization/typed_list_deserialization_strategy.py
keotl/jivago
892dfb0cae773e36245083c3e56f0f8523145523
[ "MIT" ]
73
2018-04-20T22:26:00.000Z
2021-12-01T14:17:37.000Z
jivago/serialization/deserialization/typed_list_deserialization_strategy.py
keotl/jivago
892dfb0cae773e36245083c3e56f0f8523145523
[ "MIT" ]
1
2019-02-28T13:33:45.000Z
2019-02-28T13:33:45.000Z
from typing import Type, List from jivago.inject import typing_meta_helper from jivago.lang.annotations import Override from jivago.lang.stream import Stream from jivago.serialization.deserialization_strategy import DeserializationStrategy, T TYPES_WHICH_DESERIALIZE_TO_LISTS = ('List', 'Iterable', 'Collection') cla...
38.375
108
0.785016
from typing import Type, List from jivago.inject import typing_meta_helper from jivago.lang.annotations import Override from jivago.lang.stream import Stream from jivago.serialization.deserialization_strategy import DeserializationStrategy, T TYPES_WHICH_DESERIALIZE_TO_LISTS = ('List', 'Iterable', 'Collection') cla...
true
true
f7382acf23256bf9b22e413cbbccb484580ff05d
560
py
Python
python/samples/ht16k33.py
ramonbrugman/i2cdriver
6739e5316802e16dfab49abe15f76818c9a37f7c
[ "BSD-3-Clause" ]
132
2019-02-10T19:14:16.000Z
2022-03-10T05:51:25.000Z
python/samples/ht16k33.py
ramonbrugman/i2cdriver
6739e5316802e16dfab49abe15f76818c9a37f7c
[ "BSD-3-Clause" ]
59
2019-02-25T23:24:19.000Z
2022-03-24T15:13:56.000Z
python/samples/ht16k33.py
ramonbrugman/i2cdriver
6739e5316802e16dfab49abe15f76818c9a37f7c
[ "BSD-3-Clause" ]
41
2019-02-25T23:09:59.000Z
2022-02-17T09:36:30.000Z
class HT16K33: def __init__(self, i2, a = 0x70): self.i2 = i2 self.a = a self.command(0x21) # Clock on self.command(0x81) # Display on self.bright(15) self.load([0] * 16) def bright(self, n): assert 0 <= n < 16 self.command(0xe0 + n) ...
24.347826
44
0.501786
class HT16K33: def __init__(self, i2, a = 0x70): self.i2 = i2 self.a = a self.command(0x21) self.command(0x81) self.bright(15) self.load([0] * 16) def bright(self, n): assert 0 <= n < 16 self.command(0xe0 + n) def command(self, b)...
true
true
f7382c606fd7cdc45568f8a9fd6fa00f01b557e7
782
py
Python
scylla/providers/proxy_scraper_provider.py
cities/scylla
db9d7b8f5ca22582ca84028ef4558a64c0d8b137
[ "Apache-2.0" ]
1
2021-05-16T16:21:20.000Z
2021-05-16T16:21:20.000Z
scylla/providers/proxy_scraper_provider.py
cities/scylla
db9d7b8f5ca22582ca84028ef4558a64c0d8b137
[ "Apache-2.0" ]
null
null
null
scylla/providers/proxy_scraper_provider.py
cities/scylla
db9d7b8f5ca22582ca84028ef4558a64c0d8b137
[ "Apache-2.0" ]
null
null
null
import json from pyquery import PyQuery from scylla.database import ProxyIP from .base_provider import BaseProvider class ProxyScraperProvider(BaseProvider): def urls(self) -> [str]: return ['https://raw.githubusercontent.com/sunny9577/proxy-scraper/master/proxies.json'] def parse(self, document: ...
25.225806
96
0.644501
import json from pyquery import PyQuery from scylla.database import ProxyIP from .base_provider import BaseProvider class ProxyScraperProvider(BaseProvider): def urls(self) -> [str]: return ['https://raw.githubusercontent.com/sunny9577/proxy-scraper/master/proxies.json'] def parse(self, document: ...
true
true
f7382e096ecf2c1debe236ad272050332b1b2f93
953
py
Python
fastapi_workshop/cli.py
diogoro/fastapi-workshop
038df4c15b5080f639dd839233dfb6417da35043
[ "Unlicense" ]
null
null
null
fastapi_workshop/cli.py
diogoro/fastapi-workshop
038df4c15b5080f639dd839233dfb6417da35043
[ "Unlicense" ]
null
null
null
fastapi_workshop/cli.py
diogoro/fastapi-workshop
038df4c15b5080f639dd839233dfb6417da35043
[ "Unlicense" ]
null
null
null
import typer import uvicorn from .app import app from .config import settings cli = typer.Typer(name="fastapi_workshop API") @cli.command() def run( port: int = settings.server.port, host: str = settings.server.host, log_level: str = settings.server.log_level, reload: bool = settings.server.reload, ...
22.162791
63
0.628541
import typer import uvicorn from .app import app from .config import settings cli = typer.Typer(name="fastapi_workshop API") @cli.command() def run( port: int = settings.server.port, host: str = settings.server.host, log_level: str = settings.server.log_level, reload: bool = settings.server.reload, ...
true
true
f7382e6c70f01a44d83fc569299113ab6d6ccdeb
2,578
py
Python
setup.py
runtime-jupyter-safety/runtime-jupyter-safety
f62a24b5b4f44fed5111c31441bc6a105441e34c
[ "BSD-3-Clause" ]
96
2020-05-18T18:58:44.000Z
2022-03-19T13:09:07.000Z
setup.py
nbsafety-project/nbsafety
c79d24bad7eec99b1e9e3ca38d005a24c03b6eb4
[ "BSD-3-Clause" ]
56
2020-06-01T06:45:49.000Z
2022-03-27T00:06:52.000Z
setup.py
runtime-jupyter-safety/runtime-jupyter-safety
f62a24b5b4f44fed5111c31441bc6a105441e34c
[ "BSD-3-Clause" ]
4
2020-08-25T18:17:02.000Z
2021-06-02T14:32:12.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from glob import glob from setuptools import setup, find_packages import versioneer pkg_name = 'nbsafety' def read_file(fname): with open(fname, 'r', encoding='utf8') as f: return f.read() history = read_file('HISTORY.rst') requirements = read_file('requir...
31.060241
66
0.619085
from glob import glob from setuptools import setup, find_packages import versioneer pkg_name = 'nbsafety' def read_file(fname): with open(fname, 'r', encoding='utf8') as f: return f.read() history = read_file('HISTORY.rst') requirements = read_file('requirements.txt').strip().split() setup( nam...
true
true
f7383027edb749b51b535be26537130cadd92b70
684
py
Python
setup.py
rumfox/pygifconvt0001
2e36a7eb3cfe52ce9dfa85cf6db5b2c451c67089
[ "MIT-0" ]
null
null
null
setup.py
rumfox/pygifconvt0001
2e36a7eb3cfe52ce9dfa85cf6db5b2c451c67089
[ "MIT-0" ]
null
null
null
setup.py
rumfox/pygifconvt0001
2e36a7eb3cfe52ce9dfa85cf6db5b2c451c67089
[ "MIT-0" ]
null
null
null
from setuptools import setup, find_packages setup( name = 'pygifconvt0001', version = '1.0.6', description = 'Test package for distribution', author = 'rumfox', author_email = 'maebong@gmail.com', url = '', download_url = '', inst...
31.090909
56
0.559942
from setuptools import setup, find_packages setup( name = 'pygifconvt0001', version = '1.0.6', description = 'Test package for distribution', author = 'rumfox', author_email = 'maebong@gmail.com', url = '', download_url = '', inst...
true
true
f73831802258da56cfeeefc068913ffda703076a
54,119
py
Python
tests/BlazingSQLTest/Runner/runTest.py
msadang/blazingsql
5fe3e418dbee4a3961998b0e25ec81100a1a1490
[ "Apache-2.0" ]
null
null
null
tests/BlazingSQLTest/Runner/runTest.py
msadang/blazingsql
5fe3e418dbee4a3961998b0e25ec81100a1a1490
[ "Apache-2.0" ]
null
null
null
tests/BlazingSQLTest/Runner/runTest.py
msadang/blazingsql
5fe3e418dbee4a3961998b0e25ec81100a1a1490
[ "Apache-2.0" ]
null
null
null
# Cast column to f64 before convert it to pandas # This is a hack, use the assert_equal comparator when nulls is # fully supported on cudf.sort_values import json import logging import os import re import time import blazingsql from blazingsql import DataType # import git import numpy as np import pandas as pd from ...
30.819476
114
0.527319
import json import logging import os import re import time import blazingsql from blazingsql import DataType import numpy as np import pandas as pd from BlazingLogging import loggingHandler as lhandler from Configuration import ExecutionMode from Configuration import Settings as Settings from DataBase import cre...
true
true
f7383191c1c509e7cac90e323a122138fc4d0520
1,656
py
Python
QRCode/main.py
liantian-cn/Deprecated-GAE
d163127e1cb2a54c02a50c23fecf02b9de9e4bb8
[ "Unlicense" ]
null
null
null
QRCode/main.py
liantian-cn/Deprecated-GAE
d163127e1cb2a54c02a50c23fecf02b9de9e4bb8
[ "Unlicense" ]
null
null
null
QRCode/main.py
liantian-cn/Deprecated-GAE
d163127e1cb2a54c02a50c23fecf02b9de9e4bb8
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # __author__ = 'Liantian' # __email__ = "liantian.me+code@gmail.com" from io import BytesIO import qrcode from flask import Flask, render_template, send_file, request from qrcode.exceptions import DataOverflowError ecl_map = { 'L': qrcode.constants.ERROR_CORRECT_L, ...
26.285714
78
0.655193
from io import BytesIO import qrcode from flask import Flask, render_template, send_file, request from qrcode.exceptions import DataOverflowError ecl_map = { 'L': qrcode.constants.ERROR_CORRECT_L, 'M': qrcode.constants.ERROR_CORRECT_H, 'Q': qrcode.constants.ERROR_CORRECT_Q, 'H': qrcode.constants....
true
true
f73832705f638951aeb1deb345c42726a5f4f1d1
4,791
py
Python
examples/basic_operations/get_artifact_metadata.py
Insutanto/google-ads-python
f63e318ca39f2ecc6546fba69994456815727578
[ "Apache-2.0" ]
null
null
null
examples/basic_operations/get_artifact_metadata.py
Insutanto/google-ads-python
f63e318ca39f2ecc6546fba69994456815727578
[ "Apache-2.0" ]
null
null
null
examples/basic_operations/get_artifact_metadata.py
Insutanto/google-ads-python
f63e318ca39f2ecc6546fba69994456815727578
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
41.301724
80
0.661449
import argparse import sys import google.ads.google_ads.client _DEFAULT_PAGE_SIZE = 1000 def _is_or_is_not(bool_value): return 'is' if bool_value.value else 'isn\'t' def main(client, artifact_name, page_size): gaf_service = client.get_service('GoogleAdsFieldService', version='v4') # S...
true
true
f738337de7bb54688239fe20bffe674325ba96f6
15,346
py
Python
python_modules/dagster/dagster/core/system_config/objects.py
camvogel/dagster
b4df94bf34906e7f81c973a7fdad5429ae3697ba
[ "Apache-2.0" ]
1
2021-01-31T19:16:29.000Z
2021-01-31T19:16:29.000Z
python_modules/dagster/dagster/core/system_config/objects.py
camvogel/dagster
b4df94bf34906e7f81c973a7fdad5429ae3697ba
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/system_config/objects.py
camvogel/dagster
b4df94bf34906e7f81c973a7fdad5429ae3697ba
[ "Apache-2.0" ]
1
2021-12-08T18:13:19.000Z
2021-12-08T18:13:19.000Z
"""System-provided config objects and constructors.""" from typing import AbstractSet, Any, Dict, List, NamedTuple, Optional, Type, Union, cast from dagster import check from dagster.core.definitions.configurable import ConfigurableDefinition from dagster.core.definitions.executor_definition import ( ExecutorDefin...
38.079404
180
0.637821
from typing import AbstractSet, Any, Dict, List, NamedTuple, Optional, Type, Union, cast from dagster import check from dagster.core.definitions.configurable import ConfigurableDefinition from dagster.core.definitions.executor_definition import ( ExecutorDefinition, execute_in_process_executor, ) from dagster....
true
true
f7383409d60e884774a52ce5ee85d23d3de82415
784
py
Python
examples/example_web_app/example_web_app/routes.py
aalhour/cookiecutter-aiohttp-sqlalchemy
adc495653246d7471a26c66cdbefb25c6302f4fa
[ "MIT" ]
46
2018-09-30T00:05:43.000Z
2022-02-08T05:10:13.000Z
examples/example_web_app/example_web_app/routes.py
aalhour/cookiecutter-aiohttp-sqlalchemy
adc495653246d7471a26c66cdbefb25c6302f4fa
[ "MIT" ]
9
2018-10-02T09:01:15.000Z
2020-05-27T08:17:28.000Z
examples/example_web_app/example_web_app/routes.py
aalhour/cookiecutter-aiohttp-sqlalchemy
adc495653246d7471a26c66cdbefb25c6302f4fa
[ "MIT" ]
7
2018-10-02T05:30:41.000Z
2021-02-17T09:19:06.000Z
""" Routes module. Responsible for providing the means to register the application routes. """ from example_web_app.controllers.health_api import HealthApiController from example_web_app.controllers.example_api import ExampleApiController def setup_routes(app): ### # Register the HelloWorld API handlers ...
23.058824
72
0.700255
from example_web_app.controllers.health_api import HealthApiController from example_web_app.controllers.example_api import ExampleApiController def setup_routes(app): health_api = HealthApiController() example_api = ExampleApiController() app.router.add_get('/api/v1.0/...
true
true
f73834a22c84d04a1dccfb6b1fe202f392ec82a7
5,521
py
Python
Moller-Plesset/MP3.py
andyj10224/psi4numpy
cbef6ddcb32ccfbf773befea6dc4aaae2b428776
[ "BSD-3-Clause" ]
214
2017-03-01T08:04:48.000Z
2022-03-23T08:52:04.000Z
Moller-Plesset/MP3.py
andyj10224/psi4numpy
cbef6ddcb32ccfbf773befea6dc4aaae2b428776
[ "BSD-3-Clause" ]
100
2017-03-03T13:20:20.000Z
2022-03-05T18:20:27.000Z
Moller-Plesset/MP3.py
andyj10224/psi4numpy
cbef6ddcb32ccfbf773befea6dc4aaae2b428776
[ "BSD-3-Clause" ]
150
2017-02-17T19:44:47.000Z
2022-03-22T05:52:43.000Z
""" Reference implementation for the correlation energy of MP3 with an RHF reference. References: - Equations from [Szabo:1996] """ __authors__ = "Daniel G. A. Smith" __credits__ = ["Daniel G. A. Smith", "Dominic A. Sirianni"] __copyright__ = "(c) 2014-2018, The Psi4NumPy Developers" __license__ = "BSD-3-Clau...
36.806667
137
0.641369
__authors__ = "Daniel G. A. Smith" __credits__ = ["Daniel G. A. Smith", "Dominic A. Sirianni"] __copyright__ = "(c) 2014-2018, The Psi4NumPy Developers" __license__ = "BSD-3-Clause" __date__ = "2017-05-23" import time import numpy as np np.set_printoptions(precision=5, linewidth=200, suppress=True) impor...
true
true
f7383531ef1ee1486a551d10b914dcca31357feb
447
py
Python
src/anonymous_permissions/compat.py
saxix/django-anonymoususer-permissions
6b65145c16915f502385de0251fe3541e4b89134
[ "MIT" ]
1
2020-09-06T01:04:00.000Z
2020-09-06T01:04:00.000Z
src/anonymous_permissions/compat.py
saxix/django-anonymoususer-permissions
6b65145c16915f502385de0251fe3541e4b89134
[ "MIT" ]
7
2020-06-02T07:07:28.000Z
2020-09-13T07:29:38.000Z
src/anonymous_permissions/compat.py
saxix/django-anonymoususer-permissions
6b65145c16915f502385de0251fe3541e4b89134
[ "MIT" ]
1
2020-05-25T04:14:53.000Z
2020-05-25T04:14:53.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import django import six DJANGO3 = django.VERSION[0] == 3 DJANGO2 = django.VERSION[0] == 2 # # if DJANGO2 or DJANGO3: # def is_anonymous(user): # return user.is_anonymous # # else: # def is_anonymous(user): # retu...
20.318182
56
0.691275
from __future__ import absolute_import, unicode_literals import django import six DJANGO3 = django.VERSION[0] == 3 DJANGO2 = django.VERSION[0] == 2 if six.PY2: from django.utils.lru_cache import lru_cache else: from functools import lru_cache
true
true
f7383544b957f63a0149ac94251a0aea8fbc4cbc
81
py
Python
obdlive/obd/apps.py
hoke-t/OBDLive
524fb53fad5924b8371d2fce8d7a482bd8112362
[ "MIT" ]
8
2018-12-15T16:41:21.000Z
2021-10-03T21:19:11.000Z
obdlive/obd/apps.py
hoke-t/OBDLive
524fb53fad5924b8371d2fce8d7a482bd8112362
[ "MIT" ]
null
null
null
obdlive/obd/apps.py
hoke-t/OBDLive
524fb53fad5924b8371d2fce8d7a482bd8112362
[ "MIT" ]
1
2020-07-27T18:15:58.000Z
2020-07-27T18:15:58.000Z
from django.apps import AppConfig class ObdConfig(AppConfig): name = 'obd'
13.5
33
0.728395
from django.apps import AppConfig class ObdConfig(AppConfig): name = 'obd'
true
true
f7383592b79628058c7079a34a47b0cfb771440a
20,835
py
Python
bert_ner.py
KoconJan/BERT-NER-CLI
6f1323bf6294bc05ee3ee9a58e5b932a68bb85c0
[ "MIT" ]
2
2019-05-09T17:08:01.000Z
2019-06-05T14:54:00.000Z
bert_ner.py
KoconJan/BERT-NER-CLI
6f1323bf6294bc05ee3ee9a58e5b932a68bb85c0
[ "MIT" ]
null
null
null
bert_ner.py
KoconJan/BERT-NER-CLI
6f1323bf6294bc05ee3ee9a58e5b932a68bb85c0
[ "MIT" ]
null
null
null
#! usr/bin/env python3 # -*- coding:utf-8 -*- """ Copyright 2018 The Google AI Language Team Authors. BASED ON Google_BERT. @Author:zhoukaiyin """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import os from bert import mode...
39.016854
126
0.624958
from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import os from bert import modeling from bert import optimization from bert import tokenization import tensorflow as tf from sklearn.metrics import f1_score,precision_score,recall...
true
true
f73835ce779579d5cebafadd3e4c77418d84f3a6
26,957
py
Python
talent/google/cloud/talent_v4beta1/gapic/application_service_client.py
beittatt/cloud-python
cdb4cc4f3c568ff32acf35c34910d23f2d3800a0
[ "Apache-2.0" ]
2
2021-11-26T07:08:43.000Z
2022-03-07T20:20:04.000Z
talent/google/cloud/talent_v4beta1/gapic/application_service_client.py
beittatt/cloud-python
cdb4cc4f3c568ff32acf35c34910d23f2d3800a0
[ "Apache-2.0" ]
null
null
null
talent/google/cloud/talent_v4beta1/gapic/application_service_client.py
beittatt/cloud-python
cdb4cc4f3c568ff32acf35c34910d23f2d3800a0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
42.054602
160
0.615128
import functools import pkg_resources import warnings from google.oauth2 import service_account import google.api_core.client_options import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method import google.api_core.gapic_v1.routing_header...
true
true
f73836227faf3a570627751dcdcb1c7e15c8cb3a
3,203
py
Python
bluesky/simulators.py
NSLS-II/bluesky
b7d666e65cf4ef556fb46b744c33264c8e3f7507
[ "BSD-3-Clause" ]
43
2015-08-04T20:13:41.000Z
2019-04-12T17:21:36.000Z
bluesky/simulators.py
NSLS-II/bluesky
b7d666e65cf4ef556fb46b744c33264c8e3f7507
[ "BSD-3-Clause" ]
966
2015-07-29T16:43:21.000Z
2019-05-09T21:02:28.000Z
bluesky/simulators.py
NSLS-II/bluesky
b7d666e65cf4ef556fb46b744c33264c8e3f7507
[ "BSD-3-Clause" ]
40
2015-07-29T16:42:41.000Z
2019-02-07T02:30:34.000Z
from warnings import warn from bluesky.utils import maybe_await from bluesky.preprocessors import print_summary_wrapper from bluesky.run_engine import call_in_bluesky_event_loop, in_bluesky_event_loop from .protocols import Checkable def plot_raster_path(plan, x_motor, y_motor, ax=None, probe_size=None, lw=2): ""...
29.657407
110
0.606931
from warnings import warn from bluesky.utils import maybe_await from bluesky.preprocessors import print_summary_wrapper from bluesky.run_engine import call_in_bluesky_event_loop, in_bluesky_event_loop from .protocols import Checkable def plot_raster_path(plan, x_motor, y_motor, ax=None, probe_size=None, lw=2): im...
true
true
f738363b8067f3893d09c7d0533d6c3d56b2176b
12,054
py
Python
old/coro_fifo.py
mkushnir/shrapnel
ec85cefcd85e2a7e613375f4a37a80fa59cab135
[ "MIT" ]
1
2021-04-30T09:22:45.000Z
2021-04-30T09:22:45.000Z
old/coro_fifo.py
mkushnir/shrapnel
ec85cefcd85e2a7e613375f4a37a80fa59cab135
[ "MIT" ]
null
null
null
old/coro_fifo.py
mkushnir/shrapnel
ec85cefcd85e2a7e613375f4a37a80fa59cab135
[ "MIT" ]
null
null
null
# Copyright (c) 2002-2011 IronPort Systems and Cisco Systems # # 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, mo...
31.888889
88
0.539489
import copy import coro class circular_fifo: """circular_fifo This is a circular fifo. It is just a regular FIFO with much better performance than a python list using append() and pop(0). If the FIFO becomes full, then it will automatically double the size to allow more data t...
false
true
f73837a0a17face1e98197f145c27afd20d5eafd
376
py
Python
Day-014/03-write_csv-2.py
arvimal/100DaysofCode-Python
01e59f45b4dc06a3be9e9900456a6bd439752911
[ "MIT" ]
1
2020-06-15T05:59:01.000Z
2020-06-15T05:59:01.000Z
Day-014/03-write_csv-2.py
arvimal/100DaysofCode-Python
01e59f45b4dc06a3be9e9900456a6bd439752911
[ "MIT" ]
null
null
null
Day-014/03-write_csv-2.py
arvimal/100DaysofCode-Python
01e59f45b4dc06a3be9e9900456a6bd439752911
[ "MIT" ]
7
2020-01-24T23:03:58.000Z
2021-05-31T01:00:27.000Z
#!/usr/bin/env python3 # Writing csv files import csv # Write a csv file with three rows and four columns with open("output.csv", "w") as data_file: output_writer = csv.writer(data_file) output_writer.writerow(["Hello, World!", "How", "are", "you?"]) output_writer.writerow(["This", "is", "Sparta", "bit...
25.066667
67
0.646277
import csv with open("output.csv", "w") as data_file: output_writer = csv.writer(data_file) output_writer.writerow(["Hello, World!", "How", "are", "you?"]) output_writer.writerow(["This", "is", "Sparta", "bitch!"]) output_writer.writerow(["1", "2", "3", "4"])
true
true
f73837fee4a6cc4b87eda81b2a7d2ec9b95c0c9c
691
py
Python
2015/day/4/solution.py
iangregson/advent-of-code
e2a2dde30dcaed027a5ba78f9270f8a1976577f1
[ "MIT" ]
null
null
null
2015/day/4/solution.py
iangregson/advent-of-code
e2a2dde30dcaed027a5ba78f9270f8a1976577f1
[ "MIT" ]
null
null
null
2015/day/4/solution.py
iangregson/advent-of-code
e2a2dde30dcaed027a5ba78f9270f8a1976577f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import hashlib dir_path = os.path.dirname(os.path.realpath(__file__)) file = open(dir_path + "/input.txt", "r") input_txt = file.read().strip() # print(input_txt) # input_txt = "abcdef" # input_txt = "pqrstuv" def try_suffix(suffix, starts_with): s = input_txt + str(suffix) ...
17.275
54
0.65123
import os import hashlib dir_path = os.path.dirname(os.path.realpath(__file__)) file = open(dir_path + "/input.txt", "r") input_txt = file.read().strip() def try_suffix(suffix, starts_with): s = input_txt + str(suffix) m = hashlib.md5() m.update(s.encode()) result_hex = m.hexdigest() retu...
true
true
f7383942e2f8f1658c8162d89c34615d99456aa7
497
py
Python
91.py
celioroberto06/cursopythonexercicios
0a3f1b59395720760216b8e98767deb55e26f0d8
[ "MIT" ]
null
null
null
91.py
celioroberto06/cursopythonexercicios
0a3f1b59395720760216b8e98767deb55e26f0d8
[ "MIT" ]
null
null
null
91.py
celioroberto06/cursopythonexercicios
0a3f1b59395720760216b8e98767deb55e26f0d8
[ "MIT" ]
null
null
null
from random import randint from operator import itemgetter rankin = {} jogadores = {'Jogador-1':randint(1, 6), 'Jogador-2':randint(1, 6), 'Jogador-3':randint(1, 6), 'Jogador-4':randint(1, 6)} print('VALORES SORTEADOS') for i, v in jogadores.items(): print(f'{i} tirou {v} no dado') print('='*29) rankin...
35.5
67
0.643863
from random import randint from operator import itemgetter rankin = {} jogadores = {'Jogador-1':randint(1, 6), 'Jogador-2':randint(1, 6), 'Jogador-3':randint(1, 6), 'Jogador-4':randint(1, 6)} print('VALORES SORTEADOS') for i, v in jogadores.items(): print(f'{i} tirou {v} no dado') print('='*29) rankin...
true
true
f73839ebce6f8d749f7e86c9380c3350213d6360
19,983
py
Python
evolved5g/swagger_client/api/location_frontend_api.py
EVOLVED-5G/SDK-CLI
0f289c7b21c14c3e349164d21cc78d9b6af0a237
[ "Apache-2.0" ]
3
2021-10-19T14:37:14.000Z
2021-11-01T10:43:33.000Z
evolved5g/swagger_client/api/location_frontend_api.py
skolome/evolved5g_cli
b202a878befe22b8dda66ee05610408777f4f006
[ "Apache-2.0" ]
14
2021-11-02T10:30:56.000Z
2022-03-10T11:30:59.000Z
evolved5g/swagger_client/api/location_frontend_api.py
skolome/evolved5g_cli
b202a878befe22b8dda66ee05610408777f4f006
[ "Apache-2.0" ]
1
2021-11-16T16:20:31.000Z
2021-11-16T16:20:31.000Z
# coding: utf-8 """ NEF_Emulator No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # ...
38.062857
143
0.61172
from __future__ import absolute_import import re import six from evolved5g.swagger_client.api_client import ApiClient class LocationFrontendApi(object): def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def ...
true
true
f7383a29b87cde534b137d873c7548b15d64f2b6
2,456
py
Python
ma_planning/ma_policy.py
bglick13/multi-agent-emergence-environments
e02d66f0734d95470d15a4508ff369a75fa093a4
[ "MIT" ]
null
null
null
ma_planning/ma_policy.py
bglick13/multi-agent-emergence-environments
e02d66f0734d95470d15a4508ff369a75fa093a4
[ "MIT" ]
null
null
null
ma_planning/ma_policy.py
bglick13/multi-agent-emergence-environments
e02d66f0734d95470d15a4508ff369a75fa093a4
[ "MIT" ]
null
null
null
import numpy as np from collections import deque from typing import Union from torch import nn, FloatTensor, LongTensor from torch.functional import F from torch.optim import Adam from torch.nn import CrossEntropyLoss from mae_envs.envs import DraftState from mcts import SearchNode, SearchProblem class SwarmAgent(...
31.088608
88
0.623371
import numpy as np from collections import deque from typing import Union from torch import nn, FloatTensor, LongTensor from torch.functional import F from torch.optim import Adam from torch.nn import CrossEntropyLoss from mae_envs.envs import DraftState from mcts import SearchNode, SearchProblem class SwarmAgent(...
true
true
f7383ab9b975240de2a393b69ae805fd2259bda7
6,614
py
Python
bench/kc705.py
ombhilare999/litedram
a3aa4907f11f654dc2df58e13903ec99fad69b6f
[ "OLDAP-2.6", "OLDAP-2.3", "OLDAP-2.7" ]
null
null
null
bench/kc705.py
ombhilare999/litedram
a3aa4907f11f654dc2df58e13903ec99fad69b6f
[ "OLDAP-2.6", "OLDAP-2.3", "OLDAP-2.7" ]
null
null
null
bench/kc705.py
ombhilare999/litedram
a3aa4907f11f654dc2df58e13903ec99fad69b6f
[ "OLDAP-2.6", "OLDAP-2.3", "OLDAP-2.7" ]
1
2021-07-02T08:14:00.000Z
2021-07-02T08:14:00.000Z
#!/usr/bin/env python3 # # This file is part of LiteDRAM. # # Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr> # SPDX-License-Identifier: BSD-2-Clause import os import argparse from migen import * from litex_boards.platforms import kc705 from litex.soc.cores.clock import * from litex.soc.interconnec...
42.670968
116
0.55322
import os import argparse from migen import * from litex_boards.platforms import kc705 from litex.soc.cores.clock import * from litex.soc.interconnect.csr import * from litex.soc.integration.soc_core import * from litex.soc.integration.builder import * from litedram.phy import s7ddrphy from litedram.modules...
true
true
f7383ae66d18454a8fbf4d58087004cce133dc5f
2,402
py
Python
azure/mgmt/rdbms/postgresql/models/server_update_parameters.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2020-07-29T14:22:17.000Z
2020-11-06T18:47:40.000Z
azure/mgmt/rdbms/postgresql/models/server_update_parameters.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2016-08-01T07:37:04.000Z
2016-08-01T07:37:04.000Z
azure/mgmt/rdbms/postgresql/models/server_update_parameters.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2020-12-12T21:04:41.000Z
2020-12-12T21:04:41.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 ...
42.140351
132
0.645712
from msrest.serialization import Model class ServerUpdateParameters(Model): _validation = { 'storage_mb': {'minimum': 1024}, } _attribute_map = { 'sku': {'key': 'sku', 'type': 'Sku'}, 'storage_mb': {'key': 'properties.storageMB', 'type': 'long'}, 'administrator...
true
true
f7383b0b95c5a9a952caf5d6a36db6be0a7e3b15
391
py
Python
aether/forum/migrations/0004_auto_20180808_0216.py
katajakasa/aetherguild4
a7e294f0cff11e2508751f1013e6648fdc56bb94
[ "MIT" ]
null
null
null
aether/forum/migrations/0004_auto_20180808_0216.py
katajakasa/aetherguild4
a7e294f0cff11e2508751f1013e6648fdc56bb94
[ "MIT" ]
1
2021-06-10T17:36:11.000Z
2021-06-10T17:36:11.000Z
aether/forum/migrations/0004_auto_20180808_0216.py
katajakasa/aetherguild4
a7e294f0cff11e2508751f1013e6648fdc56bb94
[ "MIT" ]
null
null
null
# Generated by Django 2.0.8 on 2018-08-07 23:16 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('forum', '0003_bbcodeimage'), ] operations = [ migrations.AlterModelOptions( name='bbcodeimage', options={'verbose_name': 'BB...
21.722222
93
0.616368
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('forum', '0003_bbcodeimage'), ] operations = [ migrations.AlterModelOptions( name='bbcodeimage', options={'verbose_name': 'BBCode Image', 'verbose_name_plural': 'BBCode Ima...
true
true
f7383c2941583619db388ad0c0a583e6a4322957
257
py
Python
hubspot/discovery/crm/extensions/cards/discovery.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
117
2020-04-06T08:22:53.000Z
2022-03-18T03:41:29.000Z
hubspot/discovery/crm/extensions/cards/discovery.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
62
2020-04-06T16:21:06.000Z
2022-03-17T16:50:44.000Z
hubspot/discovery/crm/extensions/cards/discovery.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
45
2020-04-06T16:13:52.000Z
2022-03-30T21:33:17.000Z
import hubspot.crm.extensions.cards as api_client from ....discovery_base import DiscoveryBase class Discovery(DiscoveryBase): @property def cards_api(self) -> api_client.CardsApi: return self._configure_api_client(api_client, "CardsApi")
28.555556
65
0.770428
import hubspot.crm.extensions.cards as api_client from ....discovery_base import DiscoveryBase class Discovery(DiscoveryBase): @property def cards_api(self) -> api_client.CardsApi: return self._configure_api_client(api_client, "CardsApi")
true
true
f7383d39681bc7280d96b6ef5734328a92e0b0e1
10,254
py
Python
deploy.py
GeorgianaElena/mybinder.org-deploy
8d0065710281d72e065658ac6d4414e420f4a2db
[ "BSD-3-Clause" ]
null
null
null
deploy.py
GeorgianaElena/mybinder.org-deploy
8d0065710281d72e065658ac6d4414e420f4a2db
[ "BSD-3-Clause" ]
null
null
null
deploy.py
GeorgianaElena/mybinder.org-deploy
8d0065710281d72e065658ac6d4414e420f4a2db
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import argparse import json import os import subprocess import re import sys import yaml # Color codes for colored output! BOLD = subprocess.check_output(['tput', 'bold']).decode() GREEN = subprocess.check_output(['tput', 'setaf', '2']).decode() NC = subprocess.check_output(['tput', 'sgr0']).de...
32.971061
118
0.594597
import argparse import json import os import subprocess import re import sys import yaml BOLD = subprocess.check_output(['tput', 'bold']).decode() GREEN = subprocess.check_output(['tput', 'setaf', '2']).decode() NC = subprocess.check_output(['tput', 'sgr0']).decode() HERE = os.path.dirname(__file__) ABSOLUTE_HERE =...
true
true
f7383d655dc3ee7a0e80315d73457db03fa6c759
991
py
Python
contrail_provisioning/vcenter_plugin/templates/contrail_vcenter_plugin_conf.py
atsgen/contrail-provisioning
dda84a5ed7e17b5cc7148c2505e66ed3e8a86120
[ "Apache-2.0" ]
2
2015-10-29T19:36:26.000Z
2016-04-19T13:24:00.000Z
contrail_provisioning/vcenter_plugin/templates/contrail_vcenter_plugin_conf.py
atsgen/contrail-provisioning
dda84a5ed7e17b5cc7148c2505e66ed3e8a86120
[ "Apache-2.0" ]
1
2017-07-03T09:10:18.000Z
2017-07-03T09:10:18.000Z
contrail_provisioning/vcenter_plugin/templates/contrail_vcenter_plugin_conf.py
atsgen/contrail-provisioning
dda84a5ed7e17b5cc7148c2505e66ed3e8a86120
[ "Apache-2.0" ]
18
2016-01-14T23:10:39.000Z
2021-12-13T06:32:38.000Z
import string template = string.Template("""# # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. # # Vcenter Plugin configuration options # [DEFAULT] # Everything in this section is optional # Vcenter plugin URL vcenter.url=$__contrail_vcenter_url__ #Vcenter credentials vcenter.username=$__contrail_v...
24.775
64
0.848638
import string template = string.Template("""# # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. # # Vcenter Plugin configuration options # [DEFAULT] # Everything in this section is optional # Vcenter plugin URL vcenter.url=$__contrail_vcenter_url__ #Vcenter credentials vcenter.username=$__contrail_v...
true
true
f7383df93065f2ee589ee1cbbe76479144a20e98
1,286
py
Python
server/app/database.py
jalaka/S4DFarm
a5d2af2d9474bb486ac26a6aa889d070f9824e83
[ "MIT" ]
8
2021-07-09T07:38:14.000Z
2022-02-23T01:58:36.000Z
server/app/database.py
jalaka/S4DFarm
a5d2af2d9474bb486ac26a6aa889d070f9824e83
[ "MIT" ]
3
2021-09-16T05:44:00.000Z
2021-10-01T20:09:32.000Z
server/app/database.py
jalaka/S4DFarm
a5d2af2d9474bb486ac26a6aa889d070f9824e83
[ "MIT" ]
3
2021-08-17T20:03:50.000Z
2022-01-18T22:15:12.000Z
""" Module with SQLite helpers, see http://flask.pocoo.org/docs/0.12/patterns/sqlite3/ """ import logging import threading from contextlib import contextmanager from psycopg2 import pool, extras from constants import SCHEMA_PATH, POSTGRES_DSN logger = logging.getLogger(__name__) class DBPool: _lock = threadin...
21.79661
82
0.597978
import logging import threading from contextlib import contextmanager from psycopg2 import pool, extras from constants import SCHEMA_PATH, POSTGRES_DSN logger = logging.getLogger(__name__) class DBPool: _lock = threading.RLock() _value = None @staticmethod def create(): p = pool.ThreadedC...
true
true
f7383e519dffde57f0c83ca7307bfe5f659e6b49
7,621
py
Python
custom_components/hacs/http.py
1DontEx1st/hacs
c138e210a41c47736f9dcbfae309840bd43dad8f
[ "MIT" ]
null
null
null
custom_components/hacs/http.py
1DontEx1st/hacs
c138e210a41c47736f9dcbfae309840bd43dad8f
[ "MIT" ]
null
null
null
custom_components/hacs/http.py
1DontEx1st/hacs
c138e210a41c47736f9dcbfae309840bd43dad8f
[ "MIT" ]
1
2019-12-19T01:53:18.000Z
2019-12-19T01:53:18.000Z
"""Blueprint for HacsWebResponse.""" import os from time import time from homeassistant.components.http import HomeAssistantView from jinja2 import Environment, PackageLoader from aiohttp import web from integrationhelper import Logger from .hacsbase import Hacs WEBRESPONSE = {} def webresponse(cla...
32.021008
122
0.580501
import os from time import time from homeassistant.components.http import HomeAssistantView from jinja2 import Environment, PackageLoader from aiohttp import web from integrationhelper import Logger from .hacsbase import Hacs WEBRESPONSE = {} def webresponse(classname): WEBRESPONSE[classname.en...
true
true
f7383ea1e08d2504b716bf579f508fb6655f4d56
653
py
Python
xos/deployment_auth.py
wathsalav/xos
f6bcaa37a948ee41729236afe7fce0802e002404
[ "Apache-2.0" ]
null
null
null
xos/deployment_auth.py
wathsalav/xos
f6bcaa37a948ee41729236afe7fce0802e002404
[ "Apache-2.0" ]
null
null
null
xos/deployment_auth.py
wathsalav/xos
f6bcaa37a948ee41729236afe7fce0802e002404
[ "Apache-2.0" ]
null
null
null
## # This file contains the auth credentials used to access openstack deployments # we wish to manage. The 'default' credentials will be used for any deployments # not specifed here. # deployment_auth = { # Example # 'deployment_name': { # 'user': 'email@domain.com', # 'pasword': 'password', # 't...
25.115385
79
0.54977
deployment_auth = { 'default': { 'user': 'admin@domain.com', 'password': 'admin', 'tenant': 'admin', 'url': 'http://localhost:5000/v2.0/' }, }
true
true
f7383fa2e6798533cdc12d29892fd91ae9db491d
606
py
Python
hydroserver/hydroserver_core/migrations/0003_auto_20190709_2301.py
kjlippold/his_hydroserver
aaf3939965d12dd5bc74f69d22b653ce548bec0a
[ "MIT" ]
1
2021-01-27T19:19:05.000Z
2021-01-27T19:19:05.000Z
hydroserver/hydroserver_core/migrations/0003_auto_20190709_2301.py
CUAHSI-APPS/his_hydroserver
aaf3939965d12dd5bc74f69d22b653ce548bec0a
[ "MIT" ]
1
2019-09-27T16:20:49.000Z
2019-09-27T16:20:49.000Z
hydroserver/hydroserver_core/migrations/0003_auto_20190709_2301.py
kjlippold/his_hydroserver
aaf3939965d12dd5bc74f69d22b653ce548bec0a
[ "MIT" ]
1
2020-06-08T21:43:38.000Z
2020-06-08T21:43:38.000Z
# Generated by Django 2.1.7 on 2019-07-09 23:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hydroserver_core', '0002_auto_20190709_2226'), ] operations = [ migrations.AlterField( model_name='timeseries', name...
25.25
72
0.60066
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hydroserver_core', '0002_auto_20190709_2226'), ] operations = [ migrations.AlterField( model_name='timeseries', name='begin_date', field=models.DateFie...
true
true
f7383fdb78400cb69f2da212245cc73192d9c633
10,787
py
Python
bamboo/unit_tests/test_unit_load_weights_lenet.py
tnat410/lbann
59d6588d49a0a7be6b5c1583de8adf9bb9157bf0
[ "Apache-2.0" ]
null
null
null
bamboo/unit_tests/test_unit_load_weights_lenet.py
tnat410/lbann
59d6588d49a0a7be6b5c1583de8adf9bb9157bf0
[ "Apache-2.0" ]
null
null
null
bamboo/unit_tests/test_unit_load_weights_lenet.py
tnat410/lbann
59d6588d49a0a7be6b5c1583de8adf9bb9157bf0
[ "Apache-2.0" ]
null
null
null
import os.path import re import sys import math import numpy as np import google.protobuf.text_format import pytest import glob # Local files current_file = os.path.realpath(__file__) current_dir = os.path.dirname(current_file) sys.path.insert(0, os.path.join(os.path.dirname(current_dir), 'common_python')) import tool...
40.400749
160
0.613331
import os.path import re import sys import math import numpy as np import google.protobuf.text_format import pytest import glob current_file = os.path.realpath(__file__) current_dir = os.path.dirname(current_file) sys.path.insert(0, os.path.join(os.path.dirname(current_dir), 'common_python')) import tools num_e...
true
true
f738403f3826be82eb83fbb5317725cc1118f446
46
py
Python
src/project_name/pk2/__init__.py
hlop3z/dexter
5ee7306597f02088c249e37338d8ddc0b1c21fda
[ "MIT" ]
null
null
null
src/project_name/pk2/__init__.py
hlop3z/dexter
5ee7306597f02088c249e37338d8ddc0b1c21fda
[ "MIT" ]
null
null
null
src/project_name/pk2/__init__.py
hlop3z/dexter
5ee7306597f02088c249e37338d8ddc0b1c21fda
[ "MIT" ]
null
null
null
def hello(): print("Hello from Package 2")
23
33
0.652174
def hello(): print("Hello from Package 2")
true
true