hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
e8ce58ef52f9a1197d12b1fa09abbb5af5307079
2,388
py
Python
test/dlc_tests/ecs/pytorch/inference/test_ecs_pytorch_inference.py
laurenyu/deep-learning-containers
0714377fcb075a3bce06b444787beb34cc13c9fc
[ "Apache-2.0" ]
null
null
null
test/dlc_tests/ecs/pytorch/inference/test_ecs_pytorch_inference.py
laurenyu/deep-learning-containers
0714377fcb075a3bce06b444787beb34cc13c9fc
[ "Apache-2.0" ]
null
null
null
test/dlc_tests/ecs/pytorch/inference/test_ecs_pytorch_inference.py
laurenyu/deep-learning-containers
0714377fcb075a3bce06b444787beb34cc13c9fc
[ "Apache-2.0" ]
null
null
null
import pytest import test.test_utils.ecs as ecs_utils import test.test_utils.ec2 as ec2_utils from test.test_utils import request_pytorch_inference_densenet from test.test_utils import ECS_AML2_CPU_USWEST2, ECS_AML2_GPU_USWEST2 @pytest.mark.model("densenet") @pytest.mark.parametrize("ecs_instance_type", ["c5.4xlarge...
48.734694
109
0.786432
e8ce61e2a727c52c683fc9027e14ddf6172505fb
12,921
py
Python
halotools/mock_observables/pair_counters/test_pair_counters/test_positional_marked_npairs_xy_z.py
nehapjoshi/halotools
ad9e183ee7471f7876201ce83fdc36a76e653902
[ "BSD-3-Clause" ]
null
null
null
halotools/mock_observables/pair_counters/test_pair_counters/test_positional_marked_npairs_xy_z.py
nehapjoshi/halotools
ad9e183ee7471f7876201ce83fdc36a76e653902
[ "BSD-3-Clause" ]
null
null
null
halotools/mock_observables/pair_counters/test_pair_counters/test_positional_marked_npairs_xy_z.py
nehapjoshi/halotools
ad9e183ee7471f7876201ce83fdc36a76e653902
[ "BSD-3-Clause" ]
null
null
null
""" """ from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np import pytest from ..positional_marked_npairs_xy_z import positional_marked_npairs_xy_z from ..npairs_xy_z import npairs_xy_z from ...tests.cf_helpers import ( generate_3d_regular_mesh, generate_locu...
28.21179
99
0.632691
e8ce7f4b81eca3f4ee2d0ff7eedfdfa038fab2ec
4,522
py
Python
frameit/models/context_model.py
biggorilla-gh/frameit
9cae56b4089fff6c955f8b86c699aa402a1390ac
[ "Apache-2.0" ]
3
2018-12-29T01:10:37.000Z
2020-06-12T09:45:11.000Z
frameit/models/context_model.py
biggorilla-gh/frameit
9cae56b4089fff6c955f8b86c699aa402a1390ac
[ "Apache-2.0" ]
null
null
null
frameit/models/context_model.py
biggorilla-gh/frameit
9cae56b4089fff6c955f8b86c699aa402a1390ac
[ "Apache-2.0" ]
null
null
null
import json import numpy as np from random import shuffle from frameit.models import CoreModel from frameit.models.model_utils import to_categorical from frameit.models.model_utils import build_attr_cnn_model, EMBEDDING_DIM from frameit.models.model_utils import dict_to_keras_model from frameit.models.model_utils impo...
36.764228
85
0.579832
e8ce8e5e20ca10aa4ad78c89d90afaa266c89cdc
2,067
py
Python
component/io/gwb_io.py
ingdanielguerrero/gwb
162f7e1a885945814c584a188e78d571a32a9d80
[ "MIT" ]
null
null
null
component/io/gwb_io.py
ingdanielguerrero/gwb
162f7e1a885945814c584a188e78d571a32a9d80
[ "MIT" ]
null
null
null
component/io/gwb_io.py
ingdanielguerrero/gwb
162f7e1a885945814c584a188e78d571a32a9d80
[ "MIT" ]
null
null
null
import json from component import parameter as cp class GWBIo(): """ Mother class of all the other io. The process will be launched thanks to this object parameters """ def __init__(self, process = 'gwb', byte_list = [], params_list=[], bin_map=None): # to make sure that each tile...
26.844156
86
0.551524
e8ce9456627c1116d73a2a7ae3e886b711c5169f
2,511
py
Python
sdk/resources/azure-mgmt-msi/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-msi/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-msi/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
33.932432
91
0.603345
e8cea26e60503723f4d7aa15757342f17f631f04
48,418
py
Python
tests/h/views/activity_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
tests/h/views/activity_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
tests/h/views/activity_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime from unittest import mock import pytest from pyramid import httpexceptions from webob.multidict import MultiDict from h.activity.query import ActivityResults from h.views import activity from h.models import Organization from h.services....
34.683381
99
0.665352
e8cea8f54ec4c1c763661e3659ba47d96436f917
3,280
py
Python
src/decoder_state_autoencoder.py
ATTPC/VAE-event-classification
aae331d44bffffec2ca8a6cdef71208899db0052
[ "MIT" ]
null
null
null
src/decoder_state_autoencoder.py
ATTPC/VAE-event-classification
aae331d44bffffec2ca8a6cdef71208899db0052
[ "MIT" ]
2
2018-12-20T20:10:52.000Z
2019-02-04T17:44:01.000Z
src/decoder_state_autoencoder.py
ATTPC/VAE-event-classification
aae331d44bffffec2ca8a6cdef71208899db0052
[ "MIT" ]
null
null
null
import numpy as np from keras.utils import Sequence from keras.models import Model, Sequential from keras.layers import Dense, Input, Concatenate, Dropout from keras import optimizers from keras import regularizers from keras import constraints batch_size = 50 latent_dim = 3 epochs = 1 latent_repr = False if latent_r...
28.034188
108
0.712805
e8cec452dd805789af956093e0e533eb21add7b4
4,210
py
Python
docs/ipython_console_highlighting.py
manahl/mdf
4b2c78084467791ad883c0b4c53832ad70fc96ef
[ "MIT" ]
100
2015-06-14T23:38:41.000Z
2019-10-28T03:23:28.000Z
docs/ipython_console_highlighting.py
ahlmss/mdf
4b2c78084467791ad883c0b4c53832ad70fc96ef
[ "MIT" ]
6
2016-12-28T11:22:12.000Z
2018-12-02T23:01:08.000Z
docs/ipython_console_highlighting.py
manahl/mdf
4b2c78084467791ad883c0b4c53832ad70fc96ef
[ "MIT" ]
40
2015-07-21T17:13:56.000Z
2019-07-29T21:26:49.000Z
""" Borrowed from IPython source. reST directive for syntax-highlighting ipython interactive sessions. XXX - See what improvements can be made based on the new (as of Sept 2009) 'pycon' lexer for the python console. At the very least it will give better highlighted tracebacks. """ #---------------------------------...
35.677966
87
0.530879
e8cf01722d58c4112b09257ec1d31dc7177a72b6
20,967
py
Python
calculators/calculators.py
PeanutbutterWarrior/Ultimate-Calculator
db8db2b946269cd0a74eba1530aef5525ce9acff
[ "MIT" ]
null
null
null
calculators/calculators.py
PeanutbutterWarrior/Ultimate-Calculator
db8db2b946269cd0a74eba1530aef5525ce9acff
[ "MIT" ]
null
null
null
calculators/calculators.py
PeanutbutterWarrior/Ultimate-Calculator
db8db2b946269cd0a74eba1530aef5525ce9acff
[ "MIT" ]
null
null
null
import math import random from modules.tools import repeat_input from modules import colors from modules.errors import Exit def basic_calc(): """ This is the basic arithmetic calculator that handles simply arithmetic equations and outputs the result """ history = [] print("Use '--help' for help") ...
36.275087
118
0.546382
e8cf4e89ffb343ed7976e7d391e9ef6210700951
32
py
Python
btd6_memory_info/generated/Assets/Main/GenericAnimatedScene/generic_animated_scene.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Main/GenericAnimatedScene/generic_animated_scene.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Main/GenericAnimatedScene/generic_animated_scene.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class GenericAnimatedScene: pass
32
32
0.90625
e8cf515d984cd647f9a3f1eda1497213f714a032
32,123
py
Python
Diagnostic/lad_config_all.py
jamvar/azure-linux-extensions
66610daae2ef09f7920d9c4aa2e99a3035fe76a6
[ "Apache-2.0" ]
null
null
null
Diagnostic/lad_config_all.py
jamvar/azure-linux-extensions
66610daae2ef09f7920d9c4aa2e99a3035fe76a6
[ "Apache-2.0" ]
null
null
null
Diagnostic/lad_config_all.py
jamvar/azure-linux-extensions
66610daae2ef09f7920d9c4aa2e99a3035fe76a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Azure Linux extension # # Linux Azure Diagnostic Extension (Current version is specified in manifest.xml) # Copyright (c) Microsoft Corporation # All rights reserved. # MIT License # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # ...
58.725777
185
0.672166
e8cf5317a9c58169d5dca3060513f125b1ca6fa8
4,093
py
Python
Backend/bot_binance/src/botconfig.py
GabsGear/binance-trader-bot
f4841a271d6ab0334dec8bf974b95ff4efd876bc
[ "MIT" ]
3
2018-12-12T13:03:18.000Z
2018-12-21T20:57:50.000Z
Backend/bot_binance/src/botconfig.py
GabsGear/binance-trader-bot
f4841a271d6ab0334dec8bf974b95ff4efd876bc
[ "MIT" ]
null
null
null
Backend/bot_binance/src/botconfig.py
GabsGear/binance-trader-bot
f4841a271d6ab0334dec8bf974b95ff4efd876bc
[ "MIT" ]
null
null
null
# coding=utf-8 # pylint: disable=W0612 import MySQLdb as mysql import os import datetime import pytz import helpers class Db: def getConn(self): try: db = mysql.connect(" try do it") cursor = db.cursor() return db, cursor except: print ('Erro, getCO...
33.276423
166
0.458588
e8cf688f5602b89fb2b38adcd6a46f92e4a0470e
2,535
py
Python
synapse/tools/superhash.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/tools/superhash.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
4
2017-10-03T21:50:40.000Z
2017-11-20T15:49:38.000Z
synapse/tools/superhash.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ synapse - superhash.py Created on 4/26/17. Generate the hashsets and guid (superhash) for a file. """ # Stdlib import os import sys import json import logging import argparse # Custom Code import synapse.lib.output as s_output import synapse.lib.hashset as s_hashset l...
29.823529
105
0.589744
e8cf708a1157bcfcda296faf19828fb593ff606a
449
py
Python
datawinners/search/submission_index_helper.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/search/submission_index_helper.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/search/submission_index_helper.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
from datawinners.search.index_utils import get_elasticsearch_handle class SubmissionIndexUpdateHandler(): def __init__(self, index, doc_type): self.index = index self.doc_type = doc_type def update_field_in_submission_index(self, document_id, fields_mapping, refresh_index=True): es = ...
40.818182
102
0.76392
e8cfb69217479c37bab8109da8ca3b70d0724c37
14,855
py
Python
backend/home_thermostat/home_thermostat/tests/test_thermostat.py
petrus-v/home-thermostat
297027d162dd78b7ed0366bcf757185eda691ce2
[ "Unlicense" ]
null
null
null
backend/home_thermostat/home_thermostat/tests/test_thermostat.py
petrus-v/home-thermostat
297027d162dd78b7ed0366bcf757185eda691ce2
[ "Unlicense" ]
null
null
null
backend/home_thermostat/home_thermostat/tests/test_thermostat.py
petrus-v/home-thermostat
297027d162dd78b7ed0366bcf757185eda691ce2
[ "Unlicense" ]
null
null
null
from datetime import datetime, time, timedelta from decimal import Decimal as D import pytest from home_thermostat.home_thermostat.common import ThermostatMode as Mode @pytest.fixture(autouse=True) def thermostat_mode(rollback_registry): rollback_registry.System.Parameter.set("mode", Mode.thermostat.value) @py...
34.707944
109
0.678761
e8cff1c15cc72599954056028add119dbbde823a
7,590
py
Python
sdk/python/pulumi_cloudamqp/get_instance.py
pulumi/pulumi-cloudamqp
1d411fb0076c257b51a6b133aaedb9292efa2373
[ "ECL-2.0", "Apache-2.0" ]
2
2020-09-23T11:53:33.000Z
2021-12-01T20:56:35.000Z
sdk/python/pulumi_cloudamqp/get_instance.py
pulumi/pulumi-cloudamqp
1d411fb0076c257b51a6b133aaedb9292efa2373
[ "ECL-2.0", "Apache-2.0" ]
53
2019-12-09T20:12:27.000Z
2022-03-31T15:21:00.000Z
sdk/python/pulumi_cloudamqp/get_instance.py
pulumi/pulumi-cloudamqp
1d411fb0076c257b51a6b133aaedb9292efa2373
[ "ECL-2.0", "Apache-2.0" ]
1
2019-12-11T09:29:16.000Z
2019-12-11T09:29:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
35.971564
209
0.634519
e8d00c1b5bbcc76aaa0def9b878c37004bedeb7a
438
py
Python
problems/724_find-pivot-index.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
problems/724_find-pivot-index.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
170
2021-05-11T14:03:05.000Z
2021-11-30T14:22:52.000Z
problems/724_find-pivot-index.py
ryuji0123/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
# n = nums.length # time = O(n) # space = O(n) # done time = 15m from itertools import accumulate class Solution: def pivotIndex(self, nums: List[int]) -> int: cum_sum = list(accumulate(nums)) if cum_sum[-1] == cum_sum[0]: return 0 nums_sum = cum_sum[-1] for i in ran...
20.857143
52
0.534247
e8d015e2e104e2254c9790e431e4598fc7c2abe9
21,447
py
Python
tests/utils/kutil.py
AzureCloudMonk/mysql-operator
210631cd058587e513109cbc009ef3d69b535dae
[ "Apache-2.0" ]
1
2022-02-11T22:13:57.000Z
2022-02-11T22:13:57.000Z
tests/utils/kutil.py
AzureCloudMonk/mysql-operator
210631cd058587e513109cbc009ef3d69b535dae
[ "Apache-2.0" ]
null
null
null
tests/utils/kutil.py
AzureCloudMonk/mysql-operator
210631cd058587e513109cbc009ef3d69b535dae
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, 2022, Oracle and/or its affiliates. # # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # # Kubernetes (kubectl) utilities # Use kubectl instead of the API so we go through the same code path as an end-user import os import subprocess impor...
27.817121
167
0.555462
e8d0374b406bc10a2d150b4a10a836e4b99aa220
4,399
py
Python
blueking/component/client.py
casainurbania/exam3
25f814cd0cc4b839fb9a12039af04837b61961dd
[ "Apache-2.0" ]
null
null
null
blueking/component/client.py
casainurbania/exam3
25f814cd0cc4b839fb9a12039af04837b61961dd
[ "Apache-2.0" ]
null
null
null
blueking/component/client.py
casainurbania/exam3
25f814cd0cc4b839fb9a12039af04837b61961dd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Component API Client """ import requests import json import time import random import logging import urlparse from . import conf from . import collections from .utils import get_signature # shutdown urllib3's warning try: requests.packages.urllib3.disable_warnings() except: pass l...
34.912698
109
0.654467
e8d04a92ca4ab0892d1e5b0073fc490524cd00e3
9,583
py
Python
abb_python/src/ABB_reach.py
karim174/brain-computer-interface-and-vision-based-autonomous-agent-for-shared-control-over-robotic-arm
d099cad43bfb98261c2571991f4e163d444b62b4
[ "MIT" ]
2
2019-02-28T01:47:23.000Z
2021-04-10T14:37:46.000Z
abb_python/src/ABB_reach.py
karim174/brain-computer-interface-and-vision-based-autonomous-agent-for-shared-control-over-robotic-arm
d099cad43bfb98261c2571991f4e163d444b62b4
[ "MIT" ]
null
null
null
abb_python/src/ABB_reach.py
karim174/brain-computer-interface-and-vision-based-autonomous-agent-for-shared-control-over-robotic-arm
d099cad43bfb98261c2571991f4e163d444b62b4
[ "MIT" ]
null
null
null
from gym import utils import rospy from gym import spaces #from openai_ros.robot_envs import fetch_env import ABB_rob_env from gym.envs.registration import register import numpy as np from sensor_msgs.msg import JointState from abb_catkin.srv import EePose, EePoseRequest, EeRpy, EeRpyRequest, EeTraj, EeTrajRequest, Jo...
37.87747
130
0.602421
e8d0553a43ef5c2c61e4d0c3d07da69a5ac34cd5
2,614
py
Python
doc/conf.py
goroyabu/anlpy2
8f7ab1f794694b467a6aad90b7666bb701620d4f
[ "MIT" ]
null
null
null
doc/conf.py
goroyabu/anlpy2
8f7ab1f794694b467a6aad90b7666bb701620d4f
[ "MIT" ]
null
null
null
doc/conf.py
goroyabu/anlpy2
8f7ab1f794694b467a6aad90b7666bb701620d4f
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
34.394737
79
0.661056
e8d074f2cdbdd5a380cee57cf8de51856997a183
1,718
py
Python
pytest-embedded-serial-esp/tests/test_esp.py
hmalpani/pytest-embedded
da0d5a67d086bcf93d39b30412bf8843c7bbf1a6
[ "MIT" ]
null
null
null
pytest-embedded-serial-esp/tests/test_esp.py
hmalpani/pytest-embedded
da0d5a67d086bcf93d39b30412bf8843c7bbf1a6
[ "MIT" ]
null
null
null
pytest-embedded-serial-esp/tests/test_esp.py
hmalpani/pytest-embedded
da0d5a67d086bcf93d39b30412bf8843c7bbf1a6
[ "MIT" ]
null
null
null
import re def test_detect_port(testdir): testdir.makepyfile( """ def test_detect_port(dut): assert dut[0].serial.target == 'esp32s2' assert dut[1].serial.target == 'esp32' """ ) result = testdir.runpytest( '-s', '--count', 2, '--embedded...
29.62069
117
0.604773
e8d0a3b1d18aa0ff1cb35db912b2fd71d256a679
11,737
py
Python
tests/v1/test_errors.py
jwplayer/jwplayer-py
2f478550414145e9d36b1cdf901dcf5360f8fe2b
[ "MIT" ]
37
2016-09-14T20:34:42.000Z
2022-02-15T06:47:21.000Z
tests/v1/test_errors.py
jwplayer/jwplayer-py
2f478550414145e9d36b1cdf901dcf5360f8fe2b
[ "MIT" ]
24
2016-11-16T21:36:13.000Z
2022-02-18T14:37:35.000Z
tests/v1/test_errors.py
jwplayer/jwplayer-py
2f478550414145e9d36b1cdf901dcf5360f8fe2b
[ "MIT" ]
45
2016-10-13T08:41:35.000Z
2022-03-06T02:31:23.000Z
# -*- coding: utf-8 -*- import re import json import responses import pytest import jwplatform.v1 SUPPORTED_ERROR_CASES = [ { 'http_status': 400, 'response': { 'status': 'error', 'code': 'UnknownError', 'title': 'An Unknown Error occurred', 'messa...
28.696822
84
0.520661
e8d0f704b2870376e02716484c10137a78a6c3cd
5,223
py
Python
scripts/perf/md_perf.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2017-07-31T23:13:58.000Z
2017-07-31T23:13:58.000Z
scripts/perf/md_perf.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
scripts/perf/md_perf.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (t...
39.568182
139
0.682366
e8d1030a27820de6b26ada4cc764480f10a3db81
7,735
py
Python
powerapi/report/power_report.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
null
null
null
powerapi/report/power_report.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
null
null
null
powerapi/report/power_report.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2021, INRIA # Copyright (c) 2021, University of Lille # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, t...
40.925926
125
0.650162
e8d12a17da33b03c1c9f727b99fdd8f3e4e35f64
932
py
Python
src/command_modules/azure-cli-cognitiveservices/azure/cli/command_modules/cognitiveservices/_client_factory.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-cognitiveservices/azure/cli/command_modules/cognitiveservices/_client_factory.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-cognitiveservices/azure/cli/command_modules/cognitiveservices/_client_factory.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
46.6
94
0.677039
e8d12ac4d44d0bbc70a2128b0a1da4c287136ef5
1,790
py
Python
bitpop_specific/extensions/bittorrent_surf/app/lib/falcon-api/python/falcon_api/falcon.py
leiferikb/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-11-15T15:17:43.000Z
2021-11-15T15:17:43.000Z
bitpop_specific/extensions/bittorrent_surf/app/lib/falcon-api/python/falcon_api/falcon.py
houseoflifeproperty/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
bitpop_specific/extensions/bittorrent_surf/app/lib/falcon-api/python/falcon_api/falcon.py
houseoflifeproperty/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:02.000Z
2020-11-04T07:24:02.000Z
from tornado.options import options from tornado import gen import urllib import bencode if options.debug: import pdb import tornado.httpclient httpclient = tornado.httpclient.AsyncHTTPClient(force_instance=True, max_clients=5) class Torrent(object): def webseed_link(self): url = '%s/talon/seed/%s/c...
38.913043
92
0.546927
e8d134be659fe0af786e6700a73d569671c3209e
906
py
Python
examples/contour_tracing_eg.py
SpongeBobBang/OCT-Segmentation-by-Logic
c7dad3f1f64ad86d84d94291bbd14cc1e9b4aca3
[ "MIT" ]
2
2019-07-23T05:49:15.000Z
2019-11-05T21:39:10.000Z
examples/contour_tracing_eg.py
StefanHeng/OCT-Segmentation-by-Logic
c7dad3f1f64ad86d84d94291bbd14cc1e9b4aca3
[ "MIT" ]
null
null
null
examples/contour_tracing_eg.py
StefanHeng/OCT-Segmentation-by-Logic
c7dad3f1f64ad86d84d94291bbd14cc1e9b4aca3
[ "MIT" ]
null
null
null
from sklearn.cluster import KMeans import matplotlib.pyplot as plt from skimage import measure import numpy as np import imageio pic = imageio.imread('D:/UMD/Career/Research Assistant/Segmentation by Logic/Code/img_sample/Headshot.jpg') # pic = imageio.imread('img_sample/Headshot.jpg') h, w = pic.shape[:2] im_small_lon...
37.75
107
0.708609
e8d138ce605715ba24e8f18c36998c92fd219984
18
py
Python
btd6_memory_info/generated/UnityEngine/Camera/camera.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/Camera/camera.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/Camera/camera.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class Camera: pass
18
18
0.833333
e8d14ac84ca0845df8703ce013294b85901f1ad0
10,307
py
Python
python/SmoothParticleNets/convsp.py
bango123/SmoothParticleNets
b0e571ba15d14653ade3f0b5db6a764bc3a24e8d
[ "MIT" ]
null
null
null
python/SmoothParticleNets/convsp.py
bango123/SmoothParticleNets
b0e571ba15d14653ade3f0b5db6a764bc3a24e8d
[ "MIT" ]
null
null
null
python/SmoothParticleNets/convsp.py
bango123/SmoothParticleNets
b0e571ba15d14653ade3f0b5db6a764bc3a24e8d
[ "MIT" ]
null
null
null
import numbers import numpy as np import torch import torch.autograd import _ext import _extc import error_checking as ec from kernels import KERNELS, KERNEL_NAMES class ConvSP(torch.nn.Module): """ The Smooth Particle Convolution layer. Performs convolutions on particle sets. Each particle has a location ...
46.219731
149
0.585621
e8d14ff7bb3a6e176a5139f0e510cdcc49026fd3
5,311
py
Python
tests/TestPhrases.py
zanachka/parsedatetime
96a1ed0c0be7dfd6a4404c0c98dc6380f2a16916
[ "Apache-2.0" ]
463
2015-01-05T11:10:50.000Z
2022-03-20T03:48:29.000Z
tests/TestPhrases.py
zanachka/parsedatetime
96a1ed0c0be7dfd6a4404c0c98dc6380f2a16916
[ "Apache-2.0" ]
196
2015-01-04T15:31:06.000Z
2022-03-24T16:57:53.000Z
tests/TestPhrases.py
zanachka/parsedatetime
96a1ed0c0be7dfd6a4404c0c98dc6380f2a16916
[ "Apache-2.0" ]
96
2015-01-19T14:38:49.000Z
2021-12-17T14:20:21.000Z
# -*- coding: utf-8 -*- """ Test parsing of strings that are phrases """ import sys import time import datetime import unittest import parsedatetime as pdt from parsedatetime.context import pdtContext from . import utils class test(unittest.TestCase): @utils.assertEqualWithComparator def assertExpectedResult...
34.940789
139
0.593674
e8d174ef41028a9298d5f08e4b1ee8fb78b94511
99
py
Python
sebastian/__init__.py
aisipos/sebastian
4e460c3aeab332b45c74fe78e65e76ec87d5cfa8
[ "MIT" ]
47
2015-01-07T16:25:27.000Z
2022-03-07T07:21:27.000Z
sebastian/__init__.py
EQ4/sebastian
4e460c3aeab332b45c74fe78e65e76ec87d5cfa8
[ "MIT" ]
16
2015-02-02T15:40:10.000Z
2016-02-01T13:03:45.000Z
sebastian/__init__.py
EQ4/sebastian
4e460c3aeab332b45c74fe78e65e76ec87d5cfa8
[ "MIT" ]
10
2015-02-02T19:48:57.000Z
2021-03-19T17:45:17.000Z
import logging logger = logging.getLogger("sebastian") logger.addHandler(logging.StreamHandler())
19.8
42
0.808081
e8d1788547afcabcd852bf10c10a68d3860a6dac
355
py
Python
thermoapp/reports/apps.py
p1gm1/MaintenaceAid
272bb385c08ec0553f3e6e81bc29c7ab8d315dd3
[ "MIT" ]
null
null
null
thermoapp/reports/apps.py
p1gm1/MaintenaceAid
272bb385c08ec0553f3e6e81bc29c7ab8d315dd3
[ "MIT" ]
null
null
null
thermoapp/reports/apps.py
p1gm1/MaintenaceAid
272bb385c08ec0553f3e6e81bc29c7ab8d315dd3
[ "MIT" ]
null
null
null
#Django from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class ReportsConfig(AppConfig): """Report app config""" name = "thermoapp.reports" verbose_name = _("Reports") def ready(self): try: import reports.users.signals # noqa F401 e...
25.357143
55
0.656338
e8d17eb12235bfd9af94a10eb44c9bf5f3dfba72
2,011
py
Python
python/ais_sdk/moderation_text.py
huaweicloudsdk/ais-sdk
623dd366dc3b26ef2eb949a8284f5b0a55e5b0e6
[ "Apache-2.0" ]
48
2018-03-13T06:21:46.000Z
2021-06-23T02:32:14.000Z
python/ais_sdk/moderation_text.py
huaweicloudsdk/ais-sdk
623dd366dc3b26ef2eb949a8284f5b0a55e5b0e6
[ "Apache-2.0" ]
29
2019-03-27T08:52:38.000Z
2021-12-14T21:15:11.000Z
python/ais_sdk/moderation_text.py
huaweicloudsdk/ais-sdk
623dd366dc3b26ef2eb949a8284f5b0a55e5b0e6
[ "Apache-2.0" ]
38
2018-03-22T01:06:51.000Z
2020-12-30T12:42:42.000Z
# -*- coding:utf-8 -*- import sys import json import ais_sdk.ais as ais import ais_sdk.utils as utils import ais_sdk.signer as signer # # access moderation text enhance,posy data by token # def moderation_text(token, text, type='content', categories=["ad", "politics", "porn", "abuse", "contraband"...
31.920635
106
0.633516
e8d19923ec800f504e8070290492e8efe3c707ce
4,145
py
Python
tests/test_ingest.py
CBroz1/workflow-array-ephys
b0ef7f7bb3d16eb00783ed8fb5b02b43ebbc3e4c
[ "MIT" ]
null
null
null
tests/test_ingest.py
CBroz1/workflow-array-ephys
b0ef7f7bb3d16eb00783ed8fb5b02b43ebbc3e4c
[ "MIT" ]
null
null
null
tests/test_ingest.py
CBroz1/workflow-array-ephys
b0ef7f7bb3d16eb00783ed8fb5b02b43ebbc3e4c
[ "MIT" ]
null
null
null
import sys import pathlib from . import (dj_config, pipeline, test_data, subjects_csv, ingest_subjects, sessions_csv, ingest_sessions, testdata_paths, kilosort_paramset, ephys_recordings, clustering_tasks, clustering, curations) # Set all to pass linter warn...
40.242718
84
0.660314
e8d1a9735a5e41bdbf443d94161fa4d02e76e42b
398
py
Python
09_event_based_programming/asyncioLock.py
837477/Python_Parallel
7590ff38e6a2b1dbec139e9571b6564b5bbf276f
[ "MIT" ]
67
2017-08-27T18:00:46.000Z
2022-03-01T11:54:16.000Z
09_event_based_programming/asyncioLock.py
837477/python_parallel_programming_study
2294f4a3de9e9f5b16b6772a3a8d96c37eb63c0f
[ "MIT" ]
8
2018-10-18T17:15:45.000Z
2021-12-24T01:58:05.000Z
09_event_based_programming/asyncioLock.py
837477/python_parallel_programming_study
2294f4a3de9e9f5b16b6772a3a8d96c37eb63c0f
[ "MIT" ]
49
2017-08-18T12:53:30.000Z
2022-02-06T09:40:50.000Z
import asyncio import time async def myWorker(lock): # with await lock: print("myWorker has attained lock, modifying variable") time.sleep(2) print("myWorker has release the lock") async def main(loop): lock = asyncio.Lock() await asyncio.wait([myWorker(lock), myWorker(lock)]), loop = asyncio.get_e...
22.111111
57
0.718593
e8d1aca14153c801cf43bfd5fce7310f24490d41
911
py
Python
utils/misc/re.py
DeepWTO/deepwto-draft
c61dc02e4ce3e72e8423c712ddc5483f851443f5
[ "Apache-2.0" ]
34
2019-02-04T14:57:08.000Z
2022-02-07T13:32:35.000Z
utils/misc/re.py
syyunn/DeepWTO
0e9f206ec2ce24b1afdf895bc81509dd84235b82
[ "Apache-2.0" ]
3
2020-03-02T05:06:24.000Z
2020-03-06T08:39:18.000Z
utils/misc/re.py
DeepWTO/deepwto-draft
c61dc02e4ce3e72e8423c712ddc5483f851443f5
[ "Apache-2.0" ]
4
2020-02-17T04:17:12.000Z
2022-02-07T14:27:01.000Z
""" Test ground of regex """ import unittest import re regex_panel = re.compile(r'^[0-9]{1,3}(R|RW)\.pdf$') regex_appellate = re.compile(r'^[0-9]{1,3}ABR\.pdf$') regex = r'^({}\.(pdf|PDF))|(84R-01.pdf)$'.format(10) regex_arg = re.compile(regex) regex_eng = re.compile(r'^(.*)(\/q\/|\/Q\/)(.*)$') class TestRE(unitt...
36.44
126
0.671789
e8d1af6524a7dc826d6ca399812ba2513b99809f
2,972
py
Python
tests/test_utils_changes.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
1
2020-04-15T16:10:27.000Z
2020-04-15T16:10:27.000Z
tests/test_utils_changes.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
null
null
null
tests/test_utils_changes.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
null
null
null
import pytest from datacube.utils.changes import ( contains, classify_changes, allow_any, allow_removal, allow_addition, allow_extension, allow_truncation, MISSING, ) def test_changes_contains(): assert contains("bob", "BOB") is True assert contains("bob", "BOB", case_sensitive...
43.072464
92
0.623149
e8d1c6143e9a4b3e99c2152c9615c070cd8276bf
471
py
Python
setup.py
glyph/posix_spawn
da023d18fdd5e86b8391f7a9ea804ad3e259142d
[ "MIT" ]
3
2016-06-13T20:29:42.000Z
2020-12-13T09:26:32.000Z
setup.py
glyph/posix_spawn
da023d18fdd5e86b8391f7a9ea804ad3e259142d
[ "MIT" ]
4
2015-09-15T23:58:02.000Z
2019-08-03T22:09:59.000Z
setup.py
glyph/posix_spawn
da023d18fdd5e86b8391f7a9ea804ad3e259142d
[ "MIT" ]
5
2015-08-14T15:13:40.000Z
2019-05-18T10:37:57.000Z
from setuptools import find_packages, setup setup( name="posix_spawn", version="0.1", description="CFFI bindings to posix_spawn.", license="MIT", setup_requires=["cffi>=1.0.0"], cffi_modules=["src/_cffi_src/_build.py:maker"], packages=find_packages(where="src"), package_dir={"": "src"...
20.478261
51
0.630573
e8d1d6121814d150f1a494c522f5a3c0a0980276
5,985
py
Python
yaksh/templatetags/test_custom_filters.py
tyochans/online_test
4eb754c2e71922819de7390d1b4993a21763de3e
[ "Python-2.0" ]
1
2022-03-21T11:14:17.000Z
2022-03-21T11:14:17.000Z
yaksh/templatetags/test_custom_filters.py
tyochans/online_test
4eb754c2e71922819de7390d1b4993a21763de3e
[ "Python-2.0" ]
null
null
null
yaksh/templatetags/test_custom_filters.py
tyochans/online_test
4eb754c2e71922819de7390d1b4993a21763de3e
[ "Python-2.0" ]
null
null
null
import unittest from datetime import datetime, timedelta from django.utils import timezone import pytz # local imports from yaksh.models import (User, Profile, Question, Quiz, QuestionPaper, AnswerPaper, Course, ArrangeTestCase, TestCaseOrder ) from yaksh.templateta...
40.439189
78
0.575439
e8d23562157fe210f0d085e6d17eca76c5499320
16,557
py
Python
pywt/tests/test_swt.py
micha2718l/pywt
48e600641172e31e9fac734d218e58bec9f253ef
[ "MIT" ]
null
null
null
pywt/tests/test_swt.py
micha2718l/pywt
48e600641172e31e9fac734d218e58bec9f253ef
[ "MIT" ]
null
null
null
pywt/tests/test_swt.py
micha2718l/pywt
48e600641172e31e9fac734d218e58bec9f253ef
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import division, print_function, absolute_import import warnings from copy import deepcopy from itertools import combinations import numpy as np from numpy.testing import (run_module_suite, dec, assert_allclose, assert_, assert_equal, assert_raises, ass...
38.326389
77
0.63224
e8d241ec9eebd5d1841e602522282906185ad7f4
3,233
py
Python
nova/console/rpcapi.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/console/rpcapi.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/console/rpcapi.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012, Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # ...
34.031579
79
0.661924
e8d24350a07f561f9e25dfa0a5354cb6377a1537
5,018
py
Python
core/log_determinant_ray.py
shenzebang/DMTRPO
3beb528c5b5aebe35dfa873788c5be3f5977f53f
[ "MIT" ]
1
2019-11-17T11:05:26.000Z
2019-11-17T11:05:26.000Z
core/log_determinant_ray.py
shenzebang/DMTRPO
3beb528c5b5aebe35dfa873788c5be3f5977f53f
[ "MIT" ]
null
null
null
core/log_determinant_ray.py
shenzebang/DMTRPO
3beb528c5b5aebe35dfa873788c5be3f5977f53f
[ "MIT" ]
null
null
null
import numpy as np import ray import torch from torch.distributions.kl import kl_divergence from core.models import detach_distribution @ray.remote(num_gpus=.25) def _compute_log_determinant(pid, policy_net, states, num_trace, cheby_degree, l_min, eigen_amp, matrix_dim, device='cpu', damping=1e-2): # print("ray.g...
37.729323
156
0.630331
e8d2583772db28bf1312006d1cfe6e47cdefaba8
2,444
py
Python
utils.py
Kyubyong/tacotron_asr
fdc0d9a3ff56405e90e2cb6ff8d540e735b01b7d
[ "Apache-2.0" ]
180
2017-06-12T03:45:12.000Z
2021-04-24T16:25:46.000Z
utils.py
afcarl/tacotron_asr
fdc0d9a3ff56405e90e2cb6ff8d540e735b01b7d
[ "Apache-2.0" ]
9
2017-06-12T09:51:42.000Z
2018-10-28T15:53:44.000Z
utils.py
afcarl/tacotron_asr
fdc0d9a3ff56405e90e2cb6ff8d540e735b01b7d
[ "Apache-2.0" ]
41
2017-06-12T10:06:33.000Z
2020-04-09T11:43:35.000Z
# -*- coding: utf-8 -*- #/usr/bin/python2 ''' By kyubyong park. kbpark.linguist@gmail.com. https://www.github.com/kyubyong/tacotron_asr ''' from __future__ import print_function import codecs import copy import re import librosa from hyperparams import Hyperparams as hp import numpy as np import tensorflow as tf d...
27.772727
85
0.610475
e8d2a93df7738841ce6feec57d23f5f0d8649de4
17,697
py
Python
sdk/tables/azure-data-tables/tests/test_table_async.py
azclibot/azure-sdk-for-python
390e17ce71f874f067b4ef8e8038ee96b23e943b
[ "MIT" ]
1
2021-09-07T18:35:49.000Z
2021-09-07T18:35:49.000Z
sdk/tables/azure-data-tables/tests/test_table_async.py
azclibot/azure-sdk-for-python
390e17ce71f874f067b4ef8e8038ee96b23e943b
[ "MIT" ]
null
null
null
sdk/tables/azure-data-tables/tests/test_table_async.py
azclibot/azure-sdk-for-python
390e17ce71f874f067b4ef8e8038ee96b23e943b
[ "MIT" ]
null
null
null
import locale import os import sys from datetime import datetime, timedelta import pytest from devtools_testutils import AzureTestCase from azure.core.credentials import AzureSasCredential from azure.core.exceptions import ResourceNotFoundError, ResourceExistsError from azure.data.tables import ( AccessPolicy, ...
39.239468
134
0.662768
e8d2ada4fb93a36051483ca567e9307e03bf2af2
285
py
Python
pylint_functions.py
psyonara/pylint-diff
a60a0cda91c88d8ed75f49dc1d95caed95a082a6
[ "MIT" ]
null
null
null
pylint_functions.py
psyonara/pylint-diff
a60a0cda91c88d8ed75f49dc1d95caed95a082a6
[ "MIT" ]
null
null
null
pylint_functions.py
psyonara/pylint-diff
a60a0cda91c88d8ed75f49dc1d95caed95a082a6
[ "MIT" ]
null
null
null
from pylint.lint import Run def get_pylint_score(filename): """ Gets the pylint score for a file. :param filename: Name of the file :return: Pylint score """ result = Run([filename, "--reports=n"], do_exit=False) return result.linter.stats["global_note"]
23.75
58
0.666667
e8d2b369ea4ef9ea44b516a8fef83845b6f53d99
1,547
py
Python
nvflare/fuel/hci/server/audit.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
155
2021-08-05T18:05:09.000Z
2022-03-27T15:32:56.000Z
nvflare/fuel/hci/server/audit.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
216
2021-12-01T06:07:12.000Z
2022-03-30T23:34:02.000Z
nvflare/fuel/hci/server/audit.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
44
2021-11-24T16:03:29.000Z
2022-03-24T23:28:39.000Z
# Copyright (c) 2021-2022, NVIDIA CORPORATION. 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 ...
33.630435
104
0.717518
e8d2b5ebdb09e7c543fc1420a7ee739d1a98d33a
12,780
py
Python
src/pynwb/misc.py
tjd2002/pynwb
426109b85c2e683d96f2126286fb3369013abb8b
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/pynwb/misc.py
tjd2002/pynwb
426109b85c2e683d96f2126286fb3369013abb8b
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/pynwb/misc.py
tjd2002/pynwb
426109b85c2e683d96f2126286fb3369013abb8b
[ "BSD-3-Clause-LBNL" ]
null
null
null
import numpy as np from collections import Iterable from .form.utils import docval, getargs, popargs, call_docval_func from . import register_class, CORE_NAMESPACE from .base import TimeSeries, _default_conversion, _default_resolution from .core import NWBContainer, NWBDataInterface, ElementIdentifiers, VectorData, V...
53.029046
114
0.609077
e8d2bc64a372abe1a042280bd936292bd833151e
14,406
py
Python
catalog/tests/test_views.py
jeromecc/django_local_library
0c92fe3e64f11d2d4c62fbdab6c458c1726c2b9d
[ "CC0-1.0" ]
null
null
null
catalog/tests/test_views.py
jeromecc/django_local_library
0c92fe3e64f11d2d4c62fbdab6c458c1726c2b9d
[ "CC0-1.0" ]
null
null
null
catalog/tests/test_views.py
jeromecc/django_local_library
0c92fe3e64f11d2d4c62fbdab6c458c1726c2b9d
[ "CC0-1.0" ]
null
null
null
from django.test import TestCase from django.urls import reverse from catalog.models import Author class AuthorListViewTest(TestCase): @classmethod def setUpTestData(cls): # Create 13 authors for pagination tests number_of_authors = 13 for author_id in range(number_of_authors): ...
45.01875
153
0.654866
e8d2c0990ce5c57a538c891653965a121cd344a8
794
py
Python
tda_mvc/model/tda.py
jjjkkkjjj/cldvis-txtmodifier
647c57cdba325d54229b3300f7d0b18baa7b0b74
[ "MIT" ]
3
2021-07-08T04:58:00.000Z
2022-03-06T11:19:08.000Z
tda_mvc/model/tda.py
jjjkkkjjj/cldvis-txtmodifier
647c57cdba325d54229b3300f7d0b18baa7b0b74
[ "MIT" ]
22
2020-11-09T15:36:23.000Z
2021-05-02T07:38:43.000Z
tda_mvc/model/tda.py
jjjkkkjjj/cldvis-txtmodifier
647c57cdba325d54229b3300f7d0b18baa7b0b74
[ "MIT" ]
null
null
null
import pickle class TDA(object): """ This object is for .tda """ def __init__(self, model): from .model import Model model: Model self.rectangle_percent_pts = model.rectangle.percent_points self.quadrangle_percent_pts = model.quadrangle.percent_points self.predi...
28.357143
75
0.633501
e8d2d834654a17c3ee6f89e8880720fc3467b90c
904
py
Python
examples/client/rpc.py
Jie-Yuan/1_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
14
2019-06-25T13:46:32.000Z
2020-10-27T02:04:59.000Z
examples/client/rpc.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
null
null
null
examples/client/rpc.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
7
2019-06-25T13:26:16.000Z
2020-10-27T02:05:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Project : tql-Python. # @File : rpc # @Time : 2020-02-04 15:47 # @Author : yuanjie # @Email : yuanjie@xiaomi.com # @Software : PyCharm # @Description : 客户端、服务端 https://github.com/Cloudox/PythonRPCStudy import os from xmlrpc.server...
23.789474
67
0.637168
e8d2e2384300a356ec195a8119c540f72ab16233
7,938
py
Python
PedSimulation/gui/ui/mainwindow_main.py
HDL951236874/PedSimulation
153882289477c93306c38f9e3a41f9cfeb53f261
[ "Apache-2.0" ]
1
2018-08-15T17:42:58.000Z
2018-08-15T17:42:58.000Z
PedSimulation/gui/ui/mainwindow_main.py
HDL951236874/PedSimulation
153882289477c93306c38f9e3a41f9cfeb53f261
[ "Apache-2.0" ]
null
null
null
PedSimulation/gui/ui/mainwindow_main.py
HDL951236874/PedSimulation
153882289477c93306c38f9e3a41f9cfeb53f261
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainwindow_main.ui' # # Created by: PyQt5 UI code generator 5.5.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow_Main(QtWidgets.QMainWindow): def setupUi(self, Ma...
45.884393
79
0.585286
e8d2e36e429bd28b80597afcbdb5637c3c7fe79b
14,224
py
Python
detectron_/evaluation/lvis_evaluation.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
detectron_/evaluation/lvis_evaluation.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
detectron_/evaluation/lvis_evaluation.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import copy import itertools import json import logging import os import pickle from collections import OrderedDict import torch import detectron.utils.comm as comm from detectron.config import CfgNode from detectron.data import MetadataCatalog from detectron.structur...
39.62117
150
0.617056
e8d3091e5cdf6830adfe2342539ca2879c056063
8,582
py
Python
test/test_eval.py
fossabot/haystack
785b257fd33f7d092c4414415c5a2552db81fe51
[ "Apache-2.0" ]
1
2021-08-04T09:06:43.000Z
2021-08-04T09:06:43.000Z
test/test_eval.py
fossabot/haystack
785b257fd33f7d092c4414415c5a2552db81fe51
[ "Apache-2.0" ]
null
null
null
test/test_eval.py
fossabot/haystack
785b257fd33f7d092c4414415c5a2552db81fe51
[ "Apache-2.0" ]
1
2021-04-23T14:59:37.000Z
2021-04-23T14:59:37.000Z
import pytest from haystack.document_store.base import BaseDocumentStore from haystack.preprocessor.preprocessor import PreProcessor from haystack.finder import Finder from haystack.eval import EvalReader, EvalRetriever from haystack import Pipeline @pytest.mark.parametrize("batch_size", [None, 20]) @pytest.mark.ela...
38.3125
120
0.714402
e8d32c6e8fb4ab4cc9a7bceaa014848f665040fd
3,692
py
Python
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2017_10_01/aio/operations/_ea_subscription_rollback_to_legacy_pricing_model_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2017_10_01/aio/operations/_ea_subscription_rollback_to_legacy_pricing_model_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2017_10_01/aio/operations/_ea_subscription_rollback_to_legacy_pricing_model_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
43.435294
136
0.703954
e8d3681e0698aed17d2f7e6012398d1d409ba698
2,286
py
Python
sgml/utils.py
notatallshaw/Grail-0.6
2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43
[ "CNRI-Jython" ]
null
null
null
sgml/utils.py
notatallshaw/Grail-0.6
2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43
[ "CNRI-Jython" ]
null
null
null
sgml/utils.py
notatallshaw/Grail-0.6
2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43
[ "CNRI-Jython" ]
null
null
null
"""Attribute handling and value conversion functions. This module is safe for 'from sgml.utils import *'. """ __version__ = '$Revision: 1.4 $' import string _string = string del string def extract_attribute(key, dict, default=None, conv=None, delete=1): """Extracts an attribute from a dictionary. KEY is ...
24.847826
70
0.63692
e8d3712837c17f847ef3b299dd206ac031087d39
5,013
py
Python
src/pykeen/models/unimodal/rgcn.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
src/pykeen/models/unimodal/rgcn.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
src/pykeen/models/unimodal/rgcn.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Implementation of the R-GCN model.""" from typing import Any, Mapping, Optional import torch from class_resolver import Hint, HintOrType from torch import nn from ..nbase import ERModel, EmbeddingSpecificationHint from ...nn.emb import EmbeddingSpecification, RGCNRepresentations from ...n...
40.427419
145
0.674247
e8d37f0840ddc84c1a02d34b4b6b9262e7c56f71
1,761
py
Python
tests/dualtor/conftest.py
pra-moh/sonic-mgmt
26285708eab7428c2b6250be03483d63f94cfb5c
[ "Apache-2.0" ]
null
null
null
tests/dualtor/conftest.py
pra-moh/sonic-mgmt
26285708eab7428c2b6250be03483d63f94cfb5c
[ "Apache-2.0" ]
18
2019-01-31T06:54:39.000Z
2020-04-01T03:50:14.000Z
tests/dualtor/conftest.py
wangxin/sonic-mgmt
18dce2d5ccf93b629b9e463ba183f3a13e22b07a
[ "Apache-2.0" ]
1
2020-10-27T13:15:51.000Z
2020-10-27T13:15:51.000Z
import pytest import logging import time from tests.common.dualtor.dual_tor_utils import get_crm_nexthop_counter, lower_tor_host # lgtm[py/unused-import] from tests.common.helpers.assertions import pytest_assert as py_assert from tests.common.fixtures.ptfhost_utils import run_garp_service CRM_POLL_INTERVAL = 1 CRM_D...
30.894737
112
0.738785
e8d39345e5cd347d49db0246abe515ad7389bb3d
22,243
py
Python
tests/python/pants_test/scm/test_git.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/scm/test_git.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/scm/test_git.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import os import unittest from contextlib import contextmanager from textwrap import dede...
40.368421
106
0.653689
e8d3b88d153e19b99ca6836e6e39dce7b33e8659
1,425
py
Python
google-cloud-sdk/lib/surface/service_registry/endpoints/__init__.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/service_registry/endpoints/__init__.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/service_registry/endpoints/__init__.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
29.6875
83
0.684912
e8d3c14d550c1d583e7f5bac383a6400fd3c5244
3,402
py
Python
test/IECoreScene/FontTest.py
lucienfostier/cortex
b9916ee4c0392e41934df0e6d4e4b696c0e857ab
[ "BSD-3-Clause" ]
1
2018-09-02T13:05:18.000Z
2018-09-02T13:05:18.000Z
test/IECoreScene/FontTest.py
lucienfostier/cortex
b9916ee4c0392e41934df0e6d4e4b696c0e857ab
[ "BSD-3-Clause" ]
1
2018-11-07T19:40:15.000Z
2018-11-07T19:40:15.000Z
test/IECoreScene/FontTest.py
noizfactory/cortex
c2b5bd154d9d7919a0c498f865c5e40a7687e1ce
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2008-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redis...
33.683168
111
0.677837
e8d3c9e1db5cf5d4aed7347a8f24a1cd8d5a928c
16,045
py
Python
punic/xcode.py
jeremy-w/punic
8a487f67853b2781db5a230fc353671341c9ce8e
[ "MIT" ]
null
null
null
punic/xcode.py
jeremy-w/punic
8a487f67853b2781db5a230fc353671341c9ce8e
[ "MIT" ]
null
null
null
punic/xcode.py
jeremy-w/punic
8a487f67853b2781db5a230fc353671341c9ce8e
[ "MIT" ]
1
2020-05-01T21:07:30.000Z
2020-05-01T21:07:30.000Z
from __future__ import division, absolute_import, print_function __all__ = ['Xcode', 'XcodeProject', 'uuids_from_binary', 'XcodeBuildProduct', 'XcodeBuildArguments'] import re import affirm from pathlib2 import Path from memoize import mproperty import six import logging from .runner import * from .semantic_version ...
36.300905
170
0.588221
e8d3f31efc24efe6343ff78b53b20beb1fb0766e
2,965
py
Python
asciigen.py
BhasherBEL/ASCII-Picture-Generator
390cc688f681c5da1e998ae34cedc9f55fd60b48
[ "MIT" ]
1
2020-10-23T18:34:06.000Z
2020-10-23T18:34:06.000Z
asciigen.py
BhasherBEL/ASCII-Picture-Generator
390cc688f681c5da1e998ae34cedc9f55fd60b48
[ "MIT" ]
null
null
null
asciigen.py
BhasherBEL/ASCII-Picture-Generator
390cc688f681c5da1e998ae34cedc9f55fd60b48
[ "MIT" ]
null
null
null
from PIL import Image, ImageDraw, ImageOps import numpy as np import random import sys from typing import List def module_help(): """ Display usage of module """ print(f'Usage: {__file__} <from_path> [to_path=out.txt] [size=200x200] [mode=simple|complex]') def char_score(char: str) -> int: ...
28.786408
105
0.552782
e8d45269fa618beabc668db7a55acd57094064a4
28,032
py
Python
pygls/protocol.py
otreblan/pygls
eb6498d24af2b0f6c017041cbca4466544f490a7
[ "Apache-2.0" ]
null
null
null
pygls/protocol.py
otreblan/pygls
eb6498d24af2b0f6c017041cbca4466544f490a7
[ "Apache-2.0" ]
null
null
null
pygls/protocol.py
otreblan/pygls
eb6498d24af2b0f6c017041cbca4466544f490a7
[ "Apache-2.0" ]
null
null
null
############################################################################ # Copyright(c) Open Law Library. All rights reserved. # # See ThirdPartyNotices.txt in the project root for additional notices. # # # # Licensed u...
38.505495
117
0.604488
e8d45339e773b27f5581569d13a6fc9340f2b903
27
py
Python
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/GameEvents/StoreEventPanel/store_event_panel.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/GameEvents/StoreEventPanel/store_event_panel.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/GameEvents/StoreEventPanel/store_event_panel.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class StoreEventPanel: pass
27
27
0.888889
e8d4657835af3831130ec3024481da1f8cf2f0ff
360
py
Python
RLV/torch_rlv/models/test.py
simonr98/Reinforcement-Learning-with-Videos
e40cec6b8d817276375e940696b290fc4e1e8bc7
[ "MIT" ]
null
null
null
RLV/torch_rlv/models/test.py
simonr98/Reinforcement-Learning-with-Videos
e40cec6b8d817276375e940696b290fc4e1e8bc7
[ "MIT" ]
null
null
null
RLV/torch_rlv/models/test.py
simonr98/Reinforcement-Learning-with-Videos
e40cec6b8d817276375e940696b290fc4e1e8bc7
[ "MIT" ]
null
null
null
import cv2 import seaborn as sns import matplotlib.pyplot as plt sns.set(color_codes=True) # Read the image image = cv2.imread('Figure_1.png') #--imread() helps in loading an image into jupyter including its pixel values # as opencv loads in BGR format by default, we want to show it in RGB. #plt.imshow(cv2.cvtColor...
27.692308
112
0.758333
e8d4797b72bcfa2eecf5787b7d0409054da28bba
946
py
Python
asn1editor/wxPython/Labels.py
AssaelDan/asn1editor
8f4917ffe8c5fb8a4925c28239268583cbb6e742
[ "MIT" ]
5
2021-02-09T08:57:37.000Z
2022-03-05T09:23:39.000Z
asn1editor/wxPython/Labels.py
AssaelDan/asn1editor
8f4917ffe8c5fb8a4925c28239268583cbb6e742
[ "MIT" ]
24
2020-08-03T09:57:03.000Z
2022-03-25T10:23:31.000Z
asn1editor/wxPython/Labels.py
AssaelDan/asn1editor
8f4917ffe8c5fb8a4925c28239268583cbb6e742
[ "MIT" ]
2
2020-12-22T21:15:59.000Z
2021-12-22T15:26:55.000Z
from asn1editor.view.AbstractViewFactory import TypeInfo from asn1editor.wxPython import ViewSelect class Labels: def __init__(self, view_select: ViewSelect.ViewSelect): self.__view_select = view_select def get_label(self, type_info: TypeInfo, suffix: str = '') -> str: label = type_info.name ...
37.84
93
0.65222
e8d49b3df084a8f98a36085da438f3c89fb79212
1,430
py
Python
nicos_mlz/refsans/setups/elements/height.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/refsans/setups/elements/height.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/refsans/setups/elements/height.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'Sample surface position measurement' group = 'optional' # includes = ['gonio'] instrument_values = configdata('instrument.values') tango_url = instrument_values['tango_url'] % setupname code_base = instrument_values['code_base'] + 'tristate.TriState' devices = dict( height = device(code_base, ...
27.5
77
0.568531
e8d49b558f8151dfc5501894d7f09f0a1d0101f3
7,959
py
Python
openbb_terminal/stocks/comparison_analysis/yahoo_finance_view.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
openbb_terminal/stocks/comparison_analysis/yahoo_finance_view.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
openbb_terminal/stocks/comparison_analysis/yahoo_finance_view.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
""" Comparison Analysis Yahoo Finance View """ __docformat__ = "numpy" import logging import os from datetime import datetime, timedelta from typing import List, Optional import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from pandas.plotting import register_matplotlib_conver...
31.709163
119
0.666667
e8d4e11374cdaca36730e70c38cb68abb1c03c4a
31,675
py
Python
Cogs/Debugging.py
ArijitTheDev/CorpBot.py
cd2e7ced54630334a85b0235a8b02ed827e03581
[ "MIT" ]
null
null
null
Cogs/Debugging.py
ArijitTheDev/CorpBot.py
cd2e7ced54630334a85b0235a8b02ed827e03581
[ "MIT" ]
null
null
null
Cogs/Debugging.py
ArijitTheDev/CorpBot.py
cd2e7ced54630334a85b0235a8b02ed827e03581
[ "MIT" ]
null
null
null
import asyncio, discord, os, textwrap, time from datetime import datetime from operator import itemgetter from discord.ext import commands from Cogs import Utils, DisplayName, Message, ReadableTime def setup(bot): # Add the bot and deps settings = bot.get_cog("Settings") bot.add_cog(Debugging(bot, ...
42.746289
189
0.665351
e8d4e4ee29ea7dae829a01aec4e0fc720ac1c336
19
py
Python
btd6_memory_info/generated/Assets/Scripts/Unity/Towers/Weapons/weapons.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/Towers/Weapons/weapons.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/Towers/Weapons/weapons.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class Weapons: pass
19
19
0.842105
e8d4f23c2c6c5e4cd2f10bf600867a85e2958589
4,512
py
Python
package/tests/test_filename_extractor.py
IngaAl/Ansible-Shell
73113c6317c96b1d5e4109e44b3029dccc828919
[ "Apache-2.0" ]
1
2016-12-29T14:14:39.000Z
2016-12-29T14:14:39.000Z
package/tests/test_filename_extractor.py
IngaAl/Ansible-Shell
73113c6317c96b1d5e4109e44b3029dccc828919
[ "Apache-2.0" ]
85
2016-12-21T12:58:14.000Z
2022-03-29T21:53:30.000Z
package/tests/test_filename_extractor.py
IngaAl/Ansible-Shell
73113c6317c96b1d5e4109e44b3029dccc828919
[ "Apache-2.0" ]
4
2016-12-09T22:41:13.000Z
2022-02-02T12:09:16.000Z
from unittest import TestCase from mock import Mock from cloudshell.cm.ansible.domain.filename_extractor import FilenameExtractor class TestFilenameExtractor(TestCase): def setUp(self): self.filename_extractor = FilenameExtractor() self.response = Mock() def test_filename_from_header_RFC_c...
46.040816
129
0.699246
e8d528b5f3fdbac864b54da492bf28baa3714871
4,488
py
Python
API/src/main/resources/Lib/robot/running/arguments/javaargumentcoercer.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/running/arguments/javaargumentcoercer.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/running/arguments/javaargumentcoercer.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license # # 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 b...
30.739726
79
0.653298
e8d53aabbaaf3af99e44ace9236238f437df280b
125
py
Python
resume/urls.py
ryanleonbutler/rbo
f51d19c5fd056ebdfba1416a9377b225eb1015e6
[ "Apache-2.0" ]
null
null
null
resume/urls.py
ryanleonbutler/rbo
f51d19c5fd056ebdfba1416a9377b225eb1015e6
[ "Apache-2.0" ]
8
2021-04-28T21:02:47.000Z
2022-03-25T20:35:57.000Z
resume/urls.py
ryanleonbutler/rbo
f51d19c5fd056ebdfba1416a9377b225eb1015e6
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path("", views.resume_index, name="resume_index"), ]
13.888889
54
0.696
e8d572085df594b0b6dec0bc2f482489254a85f0
2,171
py
Python
core/hit.py
cloose/ray-tracer-challenge
5e9dd56fb67c5cba47172986a963fc22a8cbcaa2
[ "MIT" ]
null
null
null
core/hit.py
cloose/ray-tracer-challenge
5e9dd56fb67c5cba47172986a963fc22a8cbcaa2
[ "MIT" ]
null
null
null
core/hit.py
cloose/ray-tracer-challenge
5e9dd56fb67c5cba47172986a963fc22a8cbcaa2
[ "MIT" ]
null
null
null
from math import sqrt from .tuples import negate, dot, add, subtract, multiply, reflect class Hit: EPSILON = 0.00001 def __init__(self, intersection, ray, intersections=None): if intersections is None: intersections = [intersection] self.t = intersection.t self.object = i...
31.014286
79
0.536619
e8d579c9196dc6b04e344fb83eb0418d3f7ef098
3,514
py
Python
setup.py
protoget/espnet
06eefa20849e21e31b1bad3db22033171691a3f4
[ "Apache-2.0" ]
4
2020-10-28T00:34:21.000Z
2021-08-02T05:43:59.000Z
setup.py
JaejinCho/espnet_spkidtts
a52bdebb08558b63df23564d6e67dfcba8a41d78
[ "Apache-2.0" ]
null
null
null
setup.py
JaejinCho/espnet_spkidtts
a52bdebb08558b63df23564d6e67dfcba8a41d78
[ "Apache-2.0" ]
1
2021-12-25T06:39:16.000Z
2021-12-25T06:39:16.000Z
#!/usr/bin/env python3 from distutils.version import LooseVersion import os import pip from setuptools import find_packages from setuptools import setup import sys if LooseVersion(sys.version) < LooseVersion('3.6'): raise RuntimeError( 'ESPnet requires Python>=3.6, ' 'but your Python is {}'.format...
33.788462
82
0.576551
e8d57a09452a1e239258b6dfd6baa23f1da0b9a7
418
py
Python
earlier-2020/python_mod_tutorials/py_thread/test2.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:09:33.000Z
2018-06-18T12:09:33.000Z
earlier-2020/python_mod_tutorials/py_thread/test2.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
null
null
null
earlier-2020/python_mod_tutorials/py_thread/test2.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:13:21.000Z
2018-06-18T12:13:21.000Z
#coding:utf-8 import _thread import time # 为线程定义一个函数 def print_time( threadName, delay): count = 0 while count < 5: time.sleep(delay) count += 1 print ("%s: %s" % ( threadName, time.ctime(time.time()) )) # 创建两个线程 try: _thread.start_new_thread( print_time, ("Thread-1", 2, ) ) _thread.star...
19.904762
64
0.631579
e8d57f5ff08712e96544d79bc12480b14848cc29
679
py
Python
GPSVI/test/testGPSVI.py
AlchemicalChest/gaussian-process-svi
56111e9a125cdd322473685b1b7ef875d584653e
[ "MIT" ]
null
null
null
GPSVI/test/testGPSVI.py
AlchemicalChest/gaussian-process-svi
56111e9a125cdd322473685b1b7ef875d584653e
[ "MIT" ]
null
null
null
GPSVI/test/testGPSVI.py
AlchemicalChest/gaussian-process-svi
56111e9a125cdd322473685b1b7ef875d584653e
[ "MIT" ]
1
2017-02-08T03:45:25.000Z
2017-02-08T03:45:25.000Z
""" Created on Sat Apr 11 20:24:26 2015 @author: Ziang """ import numpy as np from sklearn import datasets from GPSVI.core.GPClassifier import GPClassifier np.random.seed(0) data_tr = datasets.fetch_20newsgroups_vectorized(subset='train') data_te = datasets.fetch_20newsgroups_vectorized(subset='test') print(data_tr...
28.291667
68
0.71134
e8d581dbadcd4bb1b5a4623044181272abe33792
22,076
py
Python
src/util/render/nmr_renderer.py
Humoon/human_dynamics
3acaf3b479c1a1bdb11e50c64cab9abd441663ba
[ "BSD-2-Clause" ]
null
null
null
src/util/render/nmr_renderer.py
Humoon/human_dynamics
3acaf3b479c1a1bdb11e50c64cab9abd441663ba
[ "BSD-2-Clause" ]
null
null
null
src/util/render/nmr_renderer.py
Humoon/human_dynamics
3acaf3b479c1a1bdb11e50c64cab9abd441663ba
[ "BSD-2-Clause" ]
null
null
null
""" Renders mesh using pytorch-NMR for visualization. Directly renders with the same (weird) orthographic proj of HMR (no perspective). """ from __future__ import absolute_import from __future__ import division from __future__ import print_function # import neural_renderer as nr import numpy as np import torch from to...
32.608567
80
0.547744
e8d582a02018b1791b51e5d0f779520928f5273d
819
py
Python
tests/misc.py
dreamhost/python-cloudfiles
c51cc46634f1b35eccc23dde7e77ef24e2964a43
[ "X11" ]
8
2015-01-27T22:28:26.000Z
2016-02-12T20:03:26.000Z
tests/misc.py
dreamhost/python-cloudfiles
c51cc46634f1b35eccc23dde7e77ef24e2964a43
[ "X11" ]
null
null
null
tests/misc.py
dreamhost/python-cloudfiles
c51cc46634f1b35eccc23dde7e77ef24e2964a43
[ "X11" ]
2
2017-12-03T20:09:11.000Z
2021-01-27T11:30:06.000Z
from sys import stdout def printdoc(f): if f.__doc__: stdout.write('\n') testname = "[ %s ]" % f.__name__ testname = testname.center(74) + '\n' stdout.write(testname) stdout.write(' ' + (74 * "~") + '\n') words = list() for l in f.__doc__.splitlines(): ...
22.75
52
0.459096
e8d5901869a3255e822ccd0f0030bee521c85875
4,564
py
Python
qsiprep/niworkflows/utils/misc.py
MPIB/qsiprep
76c306305538a1d439838683c923f114e0cf3e89
[ "BSD-3-Clause" ]
null
null
null
qsiprep/niworkflows/utils/misc.py
MPIB/qsiprep
76c306305538a1d439838683c923f114e0cf3e89
[ "BSD-3-Clause" ]
null
null
null
qsiprep/niworkflows/utils/misc.py
MPIB/qsiprep
76c306305538a1d439838683c923f114e0cf3e89
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Miscellaneous utilities """ __all__ = ['fix_multi_T1w_source_name', 'add_suffix', 'read_crashfile', 'splitext', '_copy_any'] def fix_multi_T1...
28.886076
75
0.587642
e8d5cc730ad0f710f32aeb7444f3cc4cb88a56a2
7,006
py
Python
MainWinUI.py
aaronFritz2302/ZoomAuto
41af90dc35104bfea970b6b61694e105a625535c
[ "MIT" ]
null
null
null
MainWinUI.py
aaronFritz2302/ZoomAuto
41af90dc35104bfea970b6b61694e105a625535c
[ "MIT" ]
null
null
null
MainWinUI.py
aaronFritz2302/ZoomAuto
41af90dc35104bfea970b6b61694e105a625535c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ZoomAutoUI.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import...
40.97076
87
0.654725
e8d5d503ec51ad0e7d441f949e96052feee21b4d
3,638
py
Python
l5kit/tests/dataset/dataset_test.py
WannaFIy/l5kit
ee9aeda74f6681779f09cd946781964f5bcf62e1
[ "Apache-2.0" ]
1
2020-10-07T12:16:57.000Z
2020-10-07T12:16:57.000Z
l5kit/tests/dataset/dataset_test.py
WannaFIy/l5kit
ee9aeda74f6681779f09cd946781964f5bcf62e1
[ "Apache-2.0" ]
null
null
null
l5kit/tests/dataset/dataset_test.py
WannaFIy/l5kit
ee9aeda74f6681779f09cd946781964f5bcf62e1
[ "Apache-2.0" ]
1
2020-10-07T12:19:57.000Z
2020-10-07T12:19:57.000Z
from typing import Callable import numpy as np import pytest from torch.utils.data import DataLoader, Dataset, Subset from l5kit.data import ChunkedDataset, LocalDataManager from l5kit.dataset import AgentDataset, EgoDataset from l5kit.rasterization import RenderContext, StubRasterizer, build_rasterizer def check_s...
45.475
118
0.724574
e8d5d6dc4a6d563781c6553bc81b37917397a337
1,389
py
Python
python/tree/1038_binary_search_tree_to_greater_sum_tree.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/tree/1038_binary_search_tree_to_greater_sum_tree.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/tree/1038_binary_search_tree_to_greater_sum_tree.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def bstToGst(self, root): """ :type root: TreeNode :rtype: TreeNode """ stack = [] ...
22.047619
48
0.521958
e8d5fef8ec7193925bdce8eb5bf6895279924bd6
5,180
py
Python
taskwarrior_syncall/notion_side.py
bergercookie/taskwarrior_syncall
0c34023375d0551048c973587d536342fb9d4e2d
[ "MIT" ]
17
2021-12-16T06:17:34.000Z
2022-03-30T21:14:07.000Z
taskwarrior_syncall/notion_side.py
bergercookie/taskwarrior_syncall
0c34023375d0551048c973587d536342fb9d4e2d
[ "MIT" ]
3
2021-12-14T23:36:01.000Z
2022-03-30T21:18:38.000Z
taskwarrior_syncall/notion_side.py
bergercookie/taskwarrior_syncall
0c34023375d0551048c973587d536342fb9d4e2d
[ "MIT" ]
1
2022-02-14T14:29:13.000Z
2022-02-14T14:29:13.000Z
from typing import Dict, Optional, Sequence, cast from bubop import logger from notion_client import Client from taskwarrior_syncall.notion_todo_block import NotionTodoBlock from taskwarrior_syncall.sync_side import SyncSide from taskwarrior_syncall.types import NotionID, NotionPageContents, NotionTodoBlockItem cla...
36.223776
94
0.651544
e8d66162b9436e8e1d0d75ff351567d0a17fac47
1,359
py
Python
systems/playout/pb_system_5_3_s60.py
Julian-Theis/AVATAR
24fcd6eaa26f413be528a160d865d5d7e49a780b
[ "MIT" ]
7
2020-12-22T12:09:14.000Z
2022-03-29T12:50:35.000Z
systems/playout/pb_system_5_3_s60.py
ProminentLab/AVATAR
a20c767d8739a52f538927b4ec3d528952263d5a
[ "MIT" ]
10
2020-11-13T17:45:59.000Z
2022-02-10T00:50:38.000Z
systems/playout/pb_system_5_3_s60.py
ProminentLab/AVATAR
a20c767d8739a52f538927b4ec3d528952263d5a
[ "MIT" ]
2
2020-03-26T22:27:27.000Z
2020-07-07T22:36:41.000Z
from util.playout import standard_playout import os from conf.settings import DATA_PATH WORK_PATH = os.path.abspath(os.getcwd()) if __name__ == "__main__": if DATA_PATH is None: pn = os.path.join(WORK_PATH, "data", "systems", "pb_system_5_3.pnml") f_pop = os.path.join(WORK_PATH, "data", "variants"...
56.625
129
0.705666
e8d696cdc673dbf8fd1041991772cf965d38864e
6,116
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/_storage_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/_storage_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/_storage_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.394958
221
0.731033
e8d6a04f9ffc46d20be181e596fe67e3ed49f8b8
1,537
py
Python
src/gps_reader_pkg/scraper_module.py
AndrewWood94/WalkingSpeedPaper
9a0f65569ff17ca342788ddc9916334c7fc10fca
[ "MIT" ]
null
null
null
src/gps_reader_pkg/scraper_module.py
AndrewWood94/WalkingSpeedPaper
9a0f65569ff17ca342788ddc9916334c7fc10fca
[ "MIT" ]
null
null
null
src/gps_reader_pkg/scraper_module.py
AndrewWood94/WalkingSpeedPaper
9a0f65569ff17ca342788ddc9916334c7fc10fca
[ "MIT" ]
null
null
null
import scrapy from xml.etree import ElementTree import requests def _includes_timestamps(response): """ Check if file includes timestamps to calculate walking speeds :param response: :return: """ file = requests.get(response).text root = ElementTree.fromstring(file) if root.tag[0] == ...
25.616667
84
0.611581
e8d6a62d040b09909a37aaf1b2c97e5db30831e3
8,186
py
Python
tests/test_psviewer.py
in-the-ocean/progshot
c2129a3a086849801fab0be96103a614457a245b
[ "Apache-2.0" ]
null
null
null
tests/test_psviewer.py
in-the-ocean/progshot
c2129a3a086849801fab0be96103a614457a245b
[ "Apache-2.0" ]
null
null
null
tests/test_psviewer.py
in-the-ocean/progshot
c2129a3a086849801fab0be96103a614457a245b
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/gaogaotiantian/progshot/blob/master/NOTICE.txt from .cli_tmpl import CLITmpl import os class TestPSVIewerBasic(CLITmpl): @classmethod def setUpClass(cls): cls.test_dir = os.path.dirname(...
26.406452
109
0.520523
e8d6f6146b950958290d412d80b5c9282b3975f2
1,802
py
Python
tools/python/assertible.py
dhis2/dhis2-api-specification
bdef355508ec150be4bf0b4346b8b0d6a8e665b5
[ "BSD-3-Clause" ]
5
2019-08-30T09:56:27.000Z
2021-02-22T11:08:34.000Z
tools/python/assertible.py
dhis2/dhis2-api-specification
bdef355508ec150be4bf0b4346b8b0d6a8e665b5
[ "BSD-3-Clause" ]
null
null
null
tools/python/assertible.py
dhis2/dhis2-api-specification
bdef355508ec150be4bf0b4346b8b0d6a8e665b5
[ "BSD-3-Clause" ]
6
2018-10-12T07:50:11.000Z
2020-10-18T05:39:49.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Apr 18 15:34:25 2018 @author: philld """ import requests import json import copy from dhis2api.explorer import specsorter # specfile="schema_out.json" # outfile="schema_out.json" specfile="../../docs/spec/src/metadata_paths_openapi.json" outfile=".....
22.525
92
0.486681
e8d7316660f611530e0251ae46e2e90eaa60c9cd
5,593
py
Python
piChain/blocktree.py
themoodymann/piChain
4de9e8da3994901371713b68bc05295fe6676571
[ "MIT" ]
8
2018-02-22T08:52:26.000Z
2022-02-01T01:28:29.000Z
piChain/blocktree.py
themoodymann/piChain
4de9e8da3994901371713b68bc05295fe6676571
[ "MIT" ]
3
2018-03-07T18:13:53.000Z
2019-12-03T23:42:42.000Z
piChain/blocktree.py
florianmorath/piChain
df498021cb7c2df26a7980fb85b795f4a0105faf
[ "MIT" ]
7
2018-02-26T12:28:34.000Z
2021-01-01T11:33:59.000Z
"""This module implements the Blocktree class which represents a tree of blocks. It keeps track of special blocks like the last committed block and the head block of the tree. It provides operations like adding blocks, checking for the validity of a new block and checking if a block is an ancestor of another one.""" ...
36.555556
120
0.601109
e8d73a249891407039f8c268613040bd7e8371f3
2,285
py
Python
tests/configs/pc-simple-timing.py
pnkfb9/gem5_priority
fbf766277df78a470758cf7d798d12fb1e7c51c4
[ "BSD-3-Clause" ]
12
2017-03-11T03:42:59.000Z
2022-03-29T02:24:32.000Z
tests/configs/pc-simple-timing.py
pnkfb9/gem5_priority
fbf766277df78a470758cf7d798d12fb1e7c51c4
[ "BSD-3-Clause" ]
null
null
null
tests/configs/pc-simple-timing.py
pnkfb9/gem5_priority
fbf766277df78a470758cf7d798d12fb1e7c51c4
[ "BSD-3-Clause" ]
3
2019-03-06T06:54:26.000Z
2021-06-10T13:29:58.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 ...
51.931818
76
0.785558
e8d7645d46fbce699d6599d19a2ea4cc0e58b881
11,295
py
Python
txdav/common/datastore/upgrade/sql/test/test_upgrade_with_data.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
txdav/common/datastore/upgrade/sql/test/test_upgrade_with_data.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
txdav/common/datastore/upgrade/sql/test/test_upgrade_with_data.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
## # Copyright (c) 2010-2015 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
32.930029
124
0.635502
e8d76c38718d84dbe3709b306158d67594beae95
8,579
py
Python
Grace/features/close_software.py
quickcodes/Grace_Personal_Assistant_-Neural_Networks-
28ffbe40136eb9c01759b1836e1830ba5c2b66f4
[ "MIT" ]
null
null
null
Grace/features/close_software.py
quickcodes/Grace_Personal_Assistant_-Neural_Networks-
28ffbe40136eb9c01759b1836e1830ba5c2b66f4
[ "MIT" ]
null
null
null
Grace/features/close_software.py
quickcodes/Grace_Personal_Assistant_-Neural_Networks-
28ffbe40136eb9c01759b1836e1830ba5c2b66f4
[ "MIT" ]
null
null
null
import keyboard, subprocess, webbrowser, os import sys, pyperclip # read and get text from clipboard from nltk.tokenize import sent_tokenize # ----------------------------------------------------------------------------------------------------------- import asyncio # Multiprocessing # ---------------------------...
32.496212
121
0.483157
e8d8070b42a4efea528e0ad94a2826da91652c1a
8,872
py
Python
tests/schemas/test_identifier_schema.py
inveniosoftware/marshmallow-utils
25ffb5ba37b363010e63b6e965a8e99572e28180
[ "MIT" ]
null
null
null
tests/schemas/test_identifier_schema.py
inveniosoftware/marshmallow-utils
25ffb5ba37b363010e63b6e965a8e99572e28180
[ "MIT" ]
20
2020-09-11T07:30:08.000Z
2022-02-16T23:53:32.000Z
tests/schemas/test_identifier_schema.py
inveniosoftware/marshmallow-utils
25ffb5ba37b363010e63b6e965a8e99572e28180
[ "MIT" ]
14
2020-09-11T06:29:55.000Z
2022-01-27T07:34:40.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CERN. # # Marshmallow-Utils is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Tests for marshmallow Identifiers schema.""" import idutils import pytest from marshmallow import Validation...
32.144928
99
0.624324
e8d811447b03d3253852c2b378283faf74010f0a
910
py
Python
setup.py
tokibito/django-edamame
5d2bea6b9f804963678e8492a1d9a9e3e1dd3c48
[ "MIT" ]
4
2015-05-18T13:49:05.000Z
2015-05-18T14:45:27.000Z
setup.py
tokibito/django-edamame
5d2bea6b9f804963678e8492a1d9a9e3e1dd3c48
[ "MIT" ]
null
null
null
setup.py
tokibito/django-edamame
5d2bea6b9f804963678e8492a1d9a9e3e1dd3c48
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages current_dir = os.path.dirname(os.path.abspath(__file__)) def read(filename): fullpath = os.path.join(current_dir, filename) try: with open(fullpath) as f: return f.read() except Exception: return "" setup( name='djang...
26.764706
56
0.626374
e8d82a4fe7abdea666322d939a85681d0883c316
15,581
py
Python
sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_containers_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_containers_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/operations/_containers_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.339674
231
0.693216
e8d8615c637b91ae7766b905b39f12c5c78801b6
713
py
Python
contracts/ontology/LibUtils/BuildUtils.py
markvelous/asdex
09122ee74761a00a08c86f675d755e3b27b02e9f
[ "MIT" ]
null
null
null
contracts/ontology/LibUtils/BuildUtils.py
markvelous/asdex
09122ee74761a00a08c86f675d755e3b27b02e9f
[ "MIT" ]
6
2021-03-25T23:51:13.000Z
2022-03-12T00:34:39.000Z
contracts/ontology/LibUtils/BuildUtils.py
markvelous/asdex
09122ee74761a00a08c86f675d755e3b27b02e9f
[ "MIT" ]
1
2021-06-06T05:08:13.000Z
2021-06-06T05:08:13.000Z
import os import sys rootPath = os.path.join(os.path.join(os.path.abspath(__file__), os.pardir), os.pardir) def GetContractsFolderPath(): return os.path.abspath(os.path.join(rootPath, "contracts")) def GetBuildFolderPath(): return os.path.abspath(os.path.join(GetContractsFolderPath(), "build")) def GetTestF...
32.409091
88
0.751753
e8d8948165de91396349227e440299d7df509803
6,648
py
Python
src/summary.py
aschneuw/road-segmentation-unet
5411dea1a4618a13ac10f991d8b56b40dadccb87
[ "MIT" ]
20
2018-12-18T06:46:04.000Z
2022-02-20T16:04:46.000Z
src/summary.py
aschneuw/road-segmentation-unet
5411dea1a4618a13ac10f991d8b56b40dadccb87
[ "MIT" ]
6
2018-03-30T13:12:05.000Z
2018-03-30T13:12:16.000Z
src/summary.py
aschneuw/road-segmentation-unet
5411dea1a4618a13ac10f991d8b56b40dadccb87
[ "MIT" ]
14
2018-06-19T13:33:41.000Z
2021-12-22T13:58:38.000Z
import tensorflow as tf import images from constants import IMG_PATCH_SIZE class Summary: """Handle tensorflow summaries.""" def __init__(self, options, session, summary_path): self._options = options self._session = session self._summary_writer = tf.summary.FileWriter(summary_path, ...
44.918919
116
0.691937
e8d8f1e3dd4dfb6074d8028ffdc26949329da450
5,818
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2019_08_01/operations/_certificate_registration_provider_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2019_08_01/operations/_certificate_registration_provider_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2019_08_01/operations/_certificate_registration_provider_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
41.262411
133
0.674287