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
3810854abb9f42d881ddb13fc9a58b82e7e101a0
1,325
py
Python
catalog/tests/test_models.py
Rildlanster/django_local_library
eddf8f8c36b996bc2fcef11193632848174d8ab0
[ "Apache-2.0" ]
null
null
null
catalog/tests/test_models.py
Rildlanster/django_local_library
eddf8f8c36b996bc2fcef11193632848174d8ab0
[ "Apache-2.0" ]
null
null
null
catalog/tests/test_models.py
Rildlanster/django_local_library
eddf8f8c36b996bc2fcef11193632848174d8ab0
[ "Apache-2.0" ]
null
null
null
from django.test import TestCase from catalog.models import Author class AuthorModelTest(TestCase): @classmethod def setUpTestData(cls): #Set up non-modified objects used by all test methods Author.objects.create(first_name='Big', last_name='Bob') def test_first_name_label(self): ...
38.970588
79
0.713208
38109e1eae0c00df3b9de9519b7400b871e94ea4
2,790
py
Python
test_projects/MouseUpInterface/main.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
test_projects/MouseUpInterface/main.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
test_projects/MouseUpInterface/main.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
"""Test project for MouseUpInterface class. Command examples: $ python test_projects/MouseUpInterface/main.py """ import sys sys.path.append('./') import os from types import ModuleType from typing_extensions import TypedDict import apysc as ap from apysc._file import file_util this_module: Mod...
25.363636
67
0.646953
3810a69e4f28898b225d2c0f2a349159f0134d11
2,463
py
Python
database/mention2dbid.py
duanbiao-nlp/DESC_MOL-DDIE
add555a7136e4be13f369320fd694a9aae11eb4f
[ "MIT" ]
14
2020-11-03T13:53:23.000Z
2022-03-23T07:26:50.000Z
database/mention2dbid.py
duanbiao-nlp/DESC_MOL-DDIE
add555a7136e4be13f369320fd694a9aae11eb4f
[ "MIT" ]
1
2022-02-09T09:56:39.000Z
2022-02-09T09:56:39.000Z
database/mention2dbid.py
duanbiao-nlp/DESC_MOL-DDIE
add555a7136e4be13f369320fd694a9aae11eb4f
[ "MIT" ]
4
2020-11-04T04:31:05.000Z
2021-11-05T07:49:27.000Z
import sys import pickle from lxml import etree from multiprocessing import Pool # Convert corpus mention to drugbank id def relaxed_match(mention, dict_, key='all'): matched = {} # key: drugbank_id, value: matching rate for k, v in dict_.items(): if key == 'all': if mention.lower() in k....
27.366667
76
0.653268
3810cbab8220d111e4031d96b11c0276284e5e8d
8,418
py
Python
src/wpipe/core.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
4
2022-01-04T18:24:56.000Z
2022-01-27T08:23:37.000Z
src/wpipe/core.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
null
null
null
src/wpipe/core.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
null
null
null
#!/usr/bin/env python """ Contains the core import statements and developing tools of Wpipe Please note that this module is private. All functions and objects are available in the main ``wpipe`` namespace - use that instead. """ import importlib import os import sys import types import datetime import time import subp...
29.128028
112
0.607508
3810d7d882f5c64a82f58b55a69494c12733b594
689
py
Python
tests/test_provider_jeremmfr_lvslb.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
tests/test_provider_jeremmfr_lvslb.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
tests/test_provider_jeremmfr_lvslb.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# tests/test_provider_jeremmfr_lvslb.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:21:22 UTC) def test_provider_import(): import terrascript.provider.jeremmfr.lvslb def test_resource_import(): from terrascript.resource.jeremmfr.lvslb import lvslb_ipvs # TODO: Shortcut imports without n...
27.56
80
0.741655
3810f8933eb2ca0008d99cf748a480efad4b3400
3,488
py
Python
zlogging/_compat.py
JarryShaw/zlogging
f5c2bec37bc68d295cd4d9557b13d96f20a21b71
[ "BSD-3-Clause" ]
null
null
null
zlogging/_compat.py
JarryShaw/zlogging
f5c2bec37bc68d295cd4d9557b13d96f20a21b71
[ "BSD-3-Clause" ]
3
2021-03-01T17:03:05.000Z
2021-07-19T17:11:34.000Z
zlogging/_compat.py
JarryShaw/zlogging
f5c2bec37bc68d295cd4d9557b13d96f20a21b71
[ "BSD-3-Clause" ]
1
2020-05-22T15:16:44.000Z
2020-05-22T15:16:44.000Z
# -*- coding: utf-8 -*- # pylint: disable=ungrouped-imports """Resolve compatibility issues.""" import sys from typing import TYPE_CHECKING from typing_extensions import DefaultDict __all__ = [ 'enum', 'GenericMeta', 'cached_property', ] if TYPE_CHECKING: from typing import Any, Callable, Optional, ...
36.333333
107
0.550745
3810fbc0cd973a18fdd96091a3a4822a0d1cd322
34
py
Python
btd6_memory_info/generated/Assets/Scripts/Simulation/Towers/Behaviors/Attack/Behaviors/TargetInFrontOfAirUnit/target_in_front_of_air_unit.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Simulation/Towers/Behaviors/Attack/Behaviors/TargetInFrontOfAirUnit/target_in_front_of_air_unit.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Simulation/Towers/Behaviors/Attack/Behaviors/TargetInFrontOfAirUnit/target_in_front_of_air_unit.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class TargetInFrontOfAirUnit: pass
34
34
0.911765
3811012101390fc8e46dd0c1f66bdd8d9da7cedd
29,456
py
Python
d2lbook/build.py
aivivn/d2l-book
16033d9e2a93d83630bb4b8696d272989e88e313
[ "Apache-2.0" ]
1
2020-11-19T08:21:31.000Z
2020-11-19T08:21:31.000Z
d2lbook/build.py
aivivn/d2l-book
16033d9e2a93d83630bb4b8696d272989e88e313
[ "Apache-2.0" ]
null
null
null
d2lbook/build.py
aivivn/d2l-book
16033d9e2a93d83630bb4b8696d272989e88e313
[ "Apache-2.0" ]
5
2020-01-05T09:09:48.000Z
2020-07-01T14:59:40.000Z
import os import sys import notedown import nbformat import nbconvert import pkg_resources import logging import shutil import time import datetime import argparse import re import regex import subprocess import hashlib from d2lbook.utils import * from d2lbook.sphinx import prepare_sphinx_env from d2lbook.config import...
37.005025
116
0.528076
381102206f6a151bc8220e39a1759acfb7b59352
14,158
py
Python
tensorflow_probability/python/distributions/von_mises_fisher_test.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/von_mises_fisher_test.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/von_mises_fisher_test.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
46.117264
95
0.672553
38110371bf97dc8fd00cb3d6a31ea28ccecb4219
26,211
py
Python
tests/__init__.py
joffilyfe/document-store-migracao
b5125b7aedec56f0e8787900bdfd124aaf65e3e3
[ "BSD-2-Clause" ]
null
null
null
tests/__init__.py
joffilyfe/document-store-migracao
b5125b7aedec56f0e8787900bdfd124aaf65e3e3
[ "BSD-2-Clause" ]
14
2019-03-13T12:19:12.000Z
2019-03-19T17:37:08.000Z
tests/__init__.py
joffilyfe/document-store-migracao
b5125b7aedec56f0e8787900bdfd124aaf65e3e3
[ "BSD-2-Clause" ]
3
2019-03-12T18:55:55.000Z
2019-03-20T18:38:02.000Z
import os SAMPLES_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "samples") TEMP_TEST_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "temp") SAMPLES_JOURNAL = { "v64": [{"_": "spm@insp3.insp.mx"}], "v490": [{"_": "Cuernavaca"}], "created_at": "1999-06-08", "v941": [...
49.925714
4,072
0.497234
381127e50a6f048beef1ea7916e4447813ef387a
2,924
py
Python
src/python/pants/backend/project_info/tasks/dependencies.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/project_info/tasks/dependencies.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/project_info/tasks/dependencies.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 from twitter.common.collections import OrderedSet from pants.backend.jvm.targets.jar_lib...
43.641791
94
0.716484
38113aa94212bb090f0e5968acf1bb18605d8d2f
27,197
py
Python
Keras_tensorflow_nightly/source2.7/tensorflow/core/grappler/costs/op_performance_data_pb2.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2019-06-27T12:09:44.000Z
2019-06-27T12:09:44.000Z
Keras_tensorflow_nightly/source2.7/tensorflow/core/grappler/costs/op_performance_data_pb2.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Keras_tensorflow_nightly/source2.7/tensorflow/core/grappler/costs/op_performance_data_pb2.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow/core/grappler/costs/op_performance_data.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from ...
45.556114
2,641
0.76707
38113ebd36761e8762c210db652c8d2a734c88f1
15,397
py
Python
sonnet/src/conformance/checkpoint_test.py
chentingpc/sonnet
adae0b2e1700037bab289437f778ec4192b9881e
[ "Apache-2.0" ]
1
2021-05-03T20:22:20.000Z
2021-05-03T20:22:20.000Z
sonnet/src/conformance/checkpoint_test.py
chentingpc/sonnet
adae0b2e1700037bab289437f778ec4192b9881e
[ "Apache-2.0" ]
null
null
null
sonnet/src/conformance/checkpoint_test.py
chentingpc/sonnet
adae0b2e1700037bab289437f778ec4192b9881e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
38.783375
80
0.705722
38113f0003c82abea38cb21200a683414a143fef
4,082
py
Python
src/sardana/pool/poolexternal.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
src/sardana/pool/poolexternal.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
src/sardana/pool/poolexternal.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
32.656
78
0.61122
38115a5505f568cff4c49d0e6d5f7861c2a9aa20
3,083
py
Python
wanderbits/line_parser.py
Who8MyLunch/WanderBits
058685971f5ab2083c9fdd7bd2eba960c2ae5992
[ "MIT" ]
null
null
null
wanderbits/line_parser.py
Who8MyLunch/WanderBits
058685971f5ab2083c9fdd7bd2eba960c2ae5992
[ "MIT" ]
1
2018-01-13T20:53:38.000Z
2018-01-13T20:53:38.000Z
wanderbits/line_parser.py
Who8MyLunch/WanderBits
058685971f5ab2083c9fdd7bd2eba960c2ae5992
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import division, print_function, unicode_literals """ Parser class for WanderBits, a text-based adventure game. """ import errors class Parser(object): """ Parser class for WanderBits, a text-based adventure game. """ def __init__(self, actions, punctuation=None, ...
29.084906
78
0.582549
3811635d6b1d48c14864bd1138ef551f7d463074
443
py
Python
gardener/logging.py
mangelino/gardener
bf6f2b6cd7d5732516a6f42df4729fbc262e8372
[ "MIT" ]
1
2018-06-13T18:36:23.000Z
2018-06-13T18:36:23.000Z
gardener/logging.py
mangelino/gardener
bf6f2b6cd7d5732516a6f42df4729fbc262e8372
[ "MIT" ]
null
null
null
gardener/logging.py
mangelino/gardener
bf6f2b6cd7d5732516a6f42df4729fbc262e8372
[ "MIT" ]
null
null
null
class Icons: Sparkle = u"\u2728" Recycle = u"\U0001F4CC" Error = u"\u26D4" Check = u"\u2705" def log(msg, icon=""): print(icon + " " + msg) def logInfo(msg): log(msg) def logSuccess(msg): log(msg, Icons.Check) def logError(msg): log(msg, Icons.Error) def logCreate(msg): log...
13.424242
28
0.595937
38116a8fbb1e6518772a4aadfa52b5ec67a75f8e
8,508
py
Python
code/generation-model/dynamic_selection/transformer_layers.py
Merterm/-Modeling-Intensification-for-SLG
800fff3d3c7bacc86c1db8382f7c2e68d2f0c074
[ "MIT" ]
5
2022-03-14T15:52:09.000Z
2022-03-30T11:42:47.000Z
code/generation-model/dynamic_selection/transformer_layers.py
Merterm/Modeling-Intensification-for-SLG
800fff3d3c7bacc86c1db8382f7c2e68d2f0c074
[ "MIT" ]
null
null
null
code/generation-model/dynamic_selection/transformer_layers.py
Merterm/Modeling-Intensification-for-SLG
800fff3d3c7bacc86c1db8382f7c2e68d2f0c074
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import math import torch import torch.nn as nn from torch import Tensor import numpy as np import torch.nn.functional as F from constants import TARGET_PAD # pylint: disable=arguments-differ class MultiHeadedAttention(nn.Module): def __init__(self, num_heads: int, size: int, dropout: flo...
32.597701
105
0.582746
38117123fd29d83e9ec77d2122cb0052f6f0dddb
119
py
Python
retention_data_pipeline/apps.py
peteseibel/retention-data-pipeline
9839d2b900f77722fffb762772697e422e7ec8fb
[ "Apache-2.0" ]
1
2020-12-09T17:19:47.000Z
2020-12-09T17:19:47.000Z
retention_data_pipeline/apps.py
peteseibel/retention-data-pipeline
9839d2b900f77722fffb762772697e422e7ec8fb
[ "Apache-2.0" ]
null
null
null
retention_data_pipeline/apps.py
peteseibel/retention-data-pipeline
9839d2b900f77722fffb762772697e422e7ec8fb
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class RetentionDataPipelineConfig(AppConfig): name = "retention_data_pipeline"
19.833333
45
0.815126
381181adab7d0ec166bb0fc49063aab1d7d280fd
3,722
py
Python
nova/tests/unit/api/openstack/compute/test_image_size.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/unit/api/openstack/compute/test_image_size.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_image_size.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright 2013 Rackspace Hosting # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
30.016129
78
0.604782
381197f56e3b9bdfe16478f317c0d1cc760880c3
28,080
py
Python
yggdrasil/communication/FileComm.py
Xyzic/yggdrasil
44369514ffdf01960bfcce418c172dc6dc564051
[ "BSD-3-Clause" ]
null
null
null
yggdrasil/communication/FileComm.py
Xyzic/yggdrasil
44369514ffdf01960bfcce418c172dc6dc564051
[ "BSD-3-Clause" ]
null
null
null
yggdrasil/communication/FileComm.py
Xyzic/yggdrasil
44369514ffdf01960bfcce418c172dc6dc564051
[ "BSD-3-Clause" ]
null
null
null
import os import copy import tempfile from yggdrasil import platform, tools from yggdrasil.serialize.SerializeBase import SerializeBase from yggdrasil.communication import CommBase class FileComm(CommBase.CommBase): r"""Class for handling I/O from/to a file on disk. >>> x = FileComm('test_send', address='tes...
38.04878
86
0.562215
3811aa47af7c3a7a15a12c2091266a142ff8386f
1,215
py
Python
math/bestTImeToBuyAndSellStockIV.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
math/bestTImeToBuyAndSellStockIV.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
math/bestTImeToBuyAndSellStockIV.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Solution: def maxProfit(self, k, prices): n = len(prices) if n < 2: return 0 if k >= n / 2: return sum(i - j for i, j in zip(prices[1:], prices[:-1]) if i - j > 0) globalMax = [[0] * n for _ in range(k + 1)] for i in range(1, ...
39.193548
120
0.420576
381235969957d7bf4d7ff4ec06689f99ed039ec3
1,286
py
Python
arrays/Applications/High-Score-Game/Scoreboard.py
atultherajput/playwithpython
7980a750a18b75728a96d42fe9d216a7a79334b6
[ "MIT" ]
null
null
null
arrays/Applications/High-Score-Game/Scoreboard.py
atultherajput/playwithpython
7980a750a18b75728a96d42fe9d216a7a79334b6
[ "MIT" ]
null
null
null
arrays/Applications/High-Score-Game/Scoreboard.py
atultherajput/playwithpython
7980a750a18b75728a96d42fe9d216a7a79334b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 class Scoreboard: """Fixed-length sequence of high scores in nondecreasing order""" def __init__(self, capacity=10): """Initialize scoreboard with given maximum capacity All entries are initially None. """ self._board = [None] * capacity #reserve space for future scores self._n...
34.756757
92
0.664852
38125e85a04bd0096a6ed7eb619a18ad9718d5c1
151,796
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
43.947887
1,705
0.661664
3812942fade30542c41a33996abdcf0d1bc59c49
975
py
Python
test/test_scenario_run_start_containers.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
test/test_scenario_run_start_containers.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
test/test_scenario_run_start_containers.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
""" Cosmo Tech Plaform API Cosmo Tech Platform API # noqa: E501 The version of the OpenAPI document: 0.0.11-SNAPSHOT Contact: platform@cosmotech.com Generated by: https://openapi-generator.tech """ import sys import unittest import cosmotech_api from cosmotech_api.model.scenario_run_container ...
25
88
0.737436
3812bcc4b2fca2974ab1cdaef53955aae787cf0d
29,166
py
Python
future/dmrgscf/dmrgci.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
future/dmrgscf/dmrgci.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
future/dmrgscf/dmrgci.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # # Author: Sandeep Sharma <sanshar@gmail.com> # Sheng Guo <shengg@princeton.edu> # Qiming Sun <osirpt.sun@gmail.com> # ''' DMRG solver for CASCI and CASSCF. ''' import ctypes import os import sys import struct import time import tempfile from subprocess import check_call, check_...
37.392308
157
0.572345
3812e97fddebe9d9464e241ecdaf5c5b95580665
14,362
py
Python
webservices/schemas.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
null
null
null
webservices/schemas.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
null
null
null
webservices/schemas.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
1
2020-03-04T00:21:16.000Z
2020-03-04T00:21:16.000Z
import re import functools import marshmallow as ma from marshmallow_sqlalchemy import ModelSchema from marshmallow_pagination import schemas as paging_schemas from webservices import utils from webservices.spec import spec from webservices.common import models from webservices import __API_VERSION__ from webservices...
29.920833
112
0.714594
3812ecdca9eae745a7198e0a368ceb14604d482b
135
py
Python
supervisord-monitor/py_job_test.py
bigdataplot/devops-examples
add1a0894f921d3b21d8002f71d07fec78533363
[ "MIT" ]
null
null
null
supervisord-monitor/py_job_test.py
bigdataplot/devops-examples
add1a0894f921d3b21d8002f71d07fec78533363
[ "MIT" ]
null
null
null
supervisord-monitor/py_job_test.py
bigdataplot/devops-examples
add1a0894f921d3b21d8002f71d07fec78533363
[ "MIT" ]
null
null
null
import time count = 0 while True: count = count + 1 print(str(count) + ". This prints once every 10 secs.") time.sleep(10)
19.285714
59
0.62963
3812f0c729b8982609fd0a1042644ec15983d31b
869
py
Python
api/preprints/permissions.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
1
2015-10-02T18:35:53.000Z
2015-10-02T18:35:53.000Z
api/preprints/permissions.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
4
2016-05-13T14:24:16.000Z
2017-03-30T15:28:31.000Z
api/preprints/permissions.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from rest_framework import permissions from rest_framework import exceptions from api.base.utils import get_user_auth from website.models import PreprintService from website.util import permissions as osf_permissions class PreprintPublishedOrAdmin(permissions.BasePermission): def has_obj...
39.5
103
0.731876
3812fc01443c2e200134e55c28e7337ae5394d21
163
py
Python
xschem/bandgap_core_mod/verification/config.py
yrrapt/caravel_amsat_txrx_ic
53bef4537447a623f93772092daeac67c4cb3d45
[ "Apache-2.0" ]
15
2020-12-13T12:33:15.000Z
2022-02-17T18:09:25.000Z
xschem/bandgap_core/verification/config.py
yrrapt/caravel_amsat_txrx_ic
53bef4537447a623f93772092daeac67c4cb3d45
[ "Apache-2.0" ]
null
null
null
xschem/bandgap_core/verification/config.py
yrrapt/caravel_amsat_txrx_ic
53bef4537447a623f93772092daeac67c4cb3d45
[ "Apache-2.0" ]
6
2021-01-02T05:52:21.000Z
2022-03-28T06:55:07.000Z
PVT: corners : ['tt', 'sf', 'ff', 'ss', 'fs', 'll', 'hh', 'hl', 'lh'] temperatures : [-40, 27, 125] vdd : [1.62, 1.8, 1.98]
18.111111
76
0.355828
381304c2233a96c37a33e35955298c144b8e2d09
1,451
py
Python
marqeta/response_models/android_push_token_request_address.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/android_push_token_request_address.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/android_push_token_request_address.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models import datetime_object import json import re class AndroidPushTokenRequestAddress(object): def __init__(self, json_response): self.json_response = json_response def __str__(self): return json.dumps(self.json_response, default=se...
21.984848
126
0.671261
38130b0597763dd67506b90dd7f13ab85341632d
22,229
py
Python
generator.py
DSIP-UPatras/DSP_Chapter
fc80baa67d0e12fc31471c939fb2e4767ba7a726
[ "MIT" ]
9
2019-05-05T12:21:38.000Z
2021-09-10T12:48:35.000Z
generator.py
DSIP-UPatras/DSP_Chapter
fc80baa67d0e12fc31471c939fb2e4767ba7a726
[ "MIT" ]
null
null
null
generator.py
DSIP-UPatras/DSP_Chapter
fc80baa67d0e12fc31471c939fb2e4767ba7a726
[ "MIT" ]
6
2018-10-18T20:35:29.000Z
2022-02-14T23:36:55.000Z
# Based on https://stanford.edu/~shervine/blog/keras-how-to-generate-data-on-the-fly.html import numpy as np import keras import scipy.io, scipy.signal import os, time import matplotlib.pyplot as plt import seaborn as sns import data_augmentation as da from keras.preprocessing.sequence import pad_sequences # import pr...
41.164815
199
0.565837
38131c4330ba8dd1ca0f73e3d40b92c6d332388f
3,595
py
Python
app.py
sarastik/coin-counter
101517ab2f178d874f8c287a6a7267f515154d5e
[ "MIT" ]
null
null
null
app.py
sarastik/coin-counter
101517ab2f178d874f8c287a6a7267f515154d5e
[ "MIT" ]
null
null
null
app.py
sarastik/coin-counter
101517ab2f178d874f8c287a6a7267f515154d5e
[ "MIT" ]
null
null
null
from coinbase.wallet.client import Client from flask import Flask, render_template from api_keys import * import requests import json app = Flask(__name__) client = Client(API_KEY, API_SECRET) EXCHANGES_TO_DISPLAY = ["BTC", "ETH", "LTC", "VTC", "BCH", "XMR", "XRP"] EXCHANGE_TO = "USD" BITTREX_MARKETS_ENDPOINT = "http...
37.061856
102
0.661196
38132bf067e69ba3ad7d41896ba3517a76cd354c
1,933
py
Python
scripts/phase1b_constants.py
pep8speaks/fhr-benchmark-1
531d518844de20ca70bd90522c573ead7aa459ce
[ "BSD-3-Clause" ]
1
2020-11-24T09:56:12.000Z
2020-11-24T09:56:12.000Z
scripts/phase1b_constants.py
pep8speaks/fhr-benchmark-1
531d518844de20ca70bd90522c573ead7aa459ce
[ "BSD-3-Clause" ]
null
null
null
scripts/phase1b_constants.py
pep8speaks/fhr-benchmark-1
531d518844de20ca70bd90522c573ead7aa459ce
[ "BSD-3-Clause" ]
null
null
null
""" Constants and functions for FHR benchmark depletion This script contains the values for constants used to set up the FHR benchmark depletion. """ import numpy as np import openmc ############################################################################### # Constants ########...
48.325
79
0.474909
38135867532e0978d0ec4424c7032a9e83d78bc2
21,956
py
Python
chroma_core/services/rpc.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
1
2021-02-08T16:59:14.000Z
2021-02-08T16:59:14.000Z
chroma_core/services/rpc.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
chroma_core/services/rpc.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
# Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. """RPC facility for use in ChromaService services. The outward facing parts of this module are the `ServiceRpc` class and the RpcWaiter.initialize/shutdown methods. Co...
34.685624
119
0.590909
381358c33b1d99b0259559fb2265e51a784ac12c
5,528
py
Python
components/ibm-components/ffdl/train/src/train.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/ibm-components/ffdl/train/src/train.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/ibm-components/ffdl/train/src/train.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
37.605442
132
0.642728
38137b91439295943787ff5dc39de6af827e1362
24,021
py
Python
sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_generated/v7_3/models/_models.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_generated/v7_3/models/_models.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_generated/v7_3/models/_models.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 ...
35.90583
129
0.629824
3813a2874dba7111a37acc3fa7c770c7e6307019
32,695
py
Python
salt/modules/keystone.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
2
2017-09-17T21:10:35.000Z
2019-08-26T03:00:12.000Z
salt/modules/keystone.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/modules/keystone.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
# -*- coding: utf-8 -*- ''' Module for handling openstack keystone calls. :optdepends: - keystoneclient Python adapter :configuration: This module is not usable until the following are specified either in a pillar or in the minion's config file:: keystone.user: admin keystone.password: verybadp...
32.180118
146
0.605261
3813c478e261b381c120fdcef083a905e2e78603
8,475
py
Python
artemis/experiments/test_experiment_record_view_and_ui.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
artemis/experiments/test_experiment_record_view_and_ui.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
artemis/experiments/test_experiment_record_view_and_ui.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
2
2019-10-16T21:21:59.000Z
2022-03-07T22:18:44.000Z
import pytest from artemis.experiments.decorators import ExperimentFunction, experiment_function from artemis.experiments.experiment_record import ExperimentRecord from artemis.experiments.experiment_record import save_figure_in_record from artemis.experiments.experiment_record_view import get_oneline_result_string, p...
33.9
144
0.68472
3813d195980fcdd88419df41b42ba66a638dfac3
876
py
Python
users/views.py
joeleung00/webportal
ce900c4ea4a3d149910262ac00eefea3a01c70ee
[ "MIT" ]
null
null
null
users/views.py
joeleung00/webportal
ce900c4ea4a3d149910262ac00eefea3a01c70ee
[ "MIT" ]
null
null
null
users/views.py
joeleung00/webportal
ce900c4ea4a3d149910262ac00eefea3a01c70ee
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib import messages from .forms import UserRegisterForm from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from .models import Profile # This function handle the user creation event def register(request): ...
33.692308
73
0.699772
3814128abf915279eb0492cf85fca9d6a4f19ffa
532
py
Python
src/exploratory_data_analysis.py
justinchanjinle/data-science-verification-exercise
52e383a0a64c6db8b17601c007ed187a5ce69ea0
[ "MIT" ]
null
null
null
src/exploratory_data_analysis.py
justinchanjinle/data-science-verification-exercise
52e383a0a64c6db8b17601c007ed187a5ce69ea0
[ "MIT" ]
null
null
null
src/exploratory_data_analysis.py
justinchanjinle/data-science-verification-exercise
52e383a0a64c6db8b17601c007ed187a5ce69ea0
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt from utils.enumerations import FolderNames from utils.helpers import get_parent_dir, get_abs_dir, join_dir def view_column_hist(data_table: pd.DataFrame, column: str) -> None: """Plots and saves the column's histogram""" data_table.hist(column=column) ...
31.294118
117
0.753759
38141a2fa21f7af187d5c9a40db7207b997cb681
5,182
py
Python
lib/pyfrc/mains/cli_sim.py
auscompgeek/pyfrc
d8e76a9284690f71ea7fab7d2aa9022cb6eec27d
[ "MIT" ]
1
2017-12-15T20:55:33.000Z
2017-12-15T20:55:33.000Z
lib/pyfrc/mains/cli_sim.py
auscompgeek/pyfrc
d8e76a9284690f71ea7fab7d2aa9022cb6eec27d
[ "MIT" ]
null
null
null
lib/pyfrc/mains/cli_sim.py
auscompgeek/pyfrc
d8e76a9284690f71ea7fab7d2aa9022cb6eec27d
[ "MIT" ]
null
null
null
import inspect import json import logging from os.path import abspath, dirname, exists, join, isabs import hal_impl.functions from ..test_support import pyfrc_fake_hooks logger = logging.getLogger('pyfrc.sim') _field_root = abspath(join(dirname(__file__), '..', 'sim', 'field')) _field_defaults = { '2017': { ...
34.092105
92
0.575453
3814377d55eaecdc07ad72ce42dea585887cbd07
7,912
py
Python
bridgekeeper/rest_framework.py
edly-io/bridgekeeper
ac2e57bb7716001e6816fc761315944311f8ea82
[ "MIT" ]
null
null
null
bridgekeeper/rest_framework.py
edly-io/bridgekeeper
ac2e57bb7716001e6816fc761315944311f8ea82
[ "MIT" ]
null
null
null
bridgekeeper/rest_framework.py
edly-io/bridgekeeper
ac2e57bb7716001e6816fc761315944311f8ea82
[ "MIT" ]
3
2021-03-19T10:01:06.000Z
2021-04-08T08:08:48.000Z
from __future__ import print_function, absolute_import from logging import getLogger import sys from bridgekeeper import perms from django.core.exceptions import ImproperlyConfigured from django.db.models import Model, QuerySet from rest_framework.filters import BaseFilterBackend from rest_framework.permissions impor...
41.642105
79
0.628665
38145cd83d7a61f652504f132f0aaf132d4a0312
2,951
py
Python
alipay/aop/api/domain/CateringServiceInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/CateringServiceInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/CateringServiceInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class CateringServiceInfo(object): def __init__(self): self._service_sub_type = None self._shop_id = None self._store_address = None self._store_id = None self._...
29.217822
83
0.595391
3814722d6c665d2418d6ba09d2c199fee3551148
13,615
py
Python
usecases/cdi_replica_exchange/replica_exchange_mode_1.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
usecases/cdi_replica_exchange/replica_exchange_mode_1.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
usecases/cdi_replica_exchange/replica_exchange_mode_1.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Ole Weider <ole.weidner@rutgers.edu>" __copyright__ = "Copyright 2014, http://radical.rutgers.edu" __license__ = "MIT" __use_case_name__ = "CDI Replica Exchange: 'mode 1'." import os import sys import json import math import random import pprint import optparse fr...
29.792123
240
0.657584
38147e2fe63089fc160d44f54ead6b1bf7e824a2
4,568
py
Python
solum/classfile/methods.py
sadimusi/Solum
74082c1bb94e3df9c4ed778443a08639e3fedced
[ "MIT" ]
2
2015-01-09T08:53:07.000Z
2015-03-10T03:41:21.000Z
solum/classfile/methods.py
sadimusi/Solum
74082c1bb94e3df9c4ed778443a08639e3fedced
[ "MIT" ]
null
null
null
solum/classfile/methods.py
sadimusi/Solum
74082c1bb94e3df9c4ed778443a08639e3fedced
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- """ Copyright (c) 2010-2011 Tyler Kennedy <tk@tkte.ch> 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 limitatio...
25.954545
77
0.607925
381489be3c11e5960ebe35d461453046942811dc
1,035
py
Python
test/utils/check_containment.py
lechat/multiconf
c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3
[ "BSD-3-Clause" ]
null
null
null
test/utils/check_containment.py
lechat/multiconf
c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3
[ "BSD-3-Clause" ]
null
null
null
test/utils/check_containment.py
lechat/multiconf
c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012 Lars Hupfeldt Nielsen, Hupfeldt IT # All rights reserved. This work is under a BSD license, see LICENSE.TXT. from multiconf.repeatable import Repeatable from multiconf import ConfigItem, ConfigBuilder def check_containment(start_item, level=0, prefix=" "): for key, item in start_item.iterit...
51.75
154
0.643478
3814cbf6d281e2857819d8655afa10f282f748b2
7,690
py
Python
gammapy/makers/safe.py
kabartay/gammapy
015206d2418b1d254f1c9d3ea819ab0c5ece99e9
[ "BSD-3-Clause" ]
1
2021-02-02T21:35:27.000Z
2021-02-02T21:35:27.000Z
gammapy/makers/safe.py
kabartay/gammapy
015206d2418b1d254f1c9d3ea819ab0c5ece99e9
[ "BSD-3-Clause" ]
null
null
null
gammapy/makers/safe.py
kabartay/gammapy
015206d2418b1d254f1c9d3ea819ab0c5ece99e9
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import logging import numpy as np from astropy.coordinates import Angle from regions import PointSkyRegion from gammapy.irf import EDispKernelMap, EffectiveAreaTable from gammapy.maps import Map from .core import Maker __all__ = ["SafeMaskMaker"] log = ...
33.434783
89
0.626008
3814e07ff7ae1a322ab95a442e268e2056f04f23
828
py
Python
leo/plugins/examples/override_commands.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/examples/override_commands.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/examples/override_commands.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
#@+leo-ver=5-thin #@+node:edream.110203113231.919: * @file examples/override_commands.py """Override the Equal Sized Pane command""" #@@language python #@@tabwidth -4 import leo.core.leoGlobals as g __version__ = "1.2" #@+others #@+node:ekr.20111104210837.9691: ** init def init(): '''Return True if the plugin has l...
30.666667
70
0.675121
381511950b886a06fa5af272e3982cae8447473b
4,950
py
Python
apex_rostest/apex_launchtest/apex_launchtest/asserts/assert_sequential_output.py
ivanpauno/launch
ac97baccef9402eca40c817fce6d4303a9a4168f
[ "Apache-2.0" ]
null
null
null
apex_rostest/apex_launchtest/apex_launchtest/asserts/assert_sequential_output.py
ivanpauno/launch
ac97baccef9402eca40c817fce6d4303a9a4168f
[ "Apache-2.0" ]
null
null
null
apex_rostest/apex_launchtest/apex_launchtest/asserts/assert_sequential_output.py
ivanpauno/launch
ac97baccef9402eca40c817fce6d4303a9a4168f
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Apex.AI, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
37.218045
99
0.662626
38151d504ba957b6698239ff1a62508d320f0eef
4,611
py
Python
api/ver2/models/candidates.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
1
2019-02-22T19:34:32.000Z
2019-02-22T19:34:32.000Z
api/ver2/models/candidates.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
null
null
null
api/ver2/models/candidates.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
1
2019-02-07T22:12:25.000Z
2019-02-07T22:12:25.000Z
from .skeleton import Skeleton from .users import User from .offices import Office from .parties import Party from api.strings import id_key, status_400, status_404 from api.ver1.offices.strings import office_key from api.ver1.parties.strings import party_key from api.ver1.ballot.strings import candidate_key from api.v...
36.023438
80
0.578833
381526e37399dad15e824a1305ff3d396cd8eefa
3,476
py
Python
salo/cli.py
isabella232/salo
8586096a2c2cc1b55ab554157ed1fe1cbce08827
[ "Apache-2.0" ]
32
2022-01-14T02:28:52.000Z
2022-03-27T16:17:43.000Z
salo/cli.py
isabella232/salo
8586096a2c2cc1b55ab554157ed1fe1cbce08827
[ "Apache-2.0" ]
1
2022-02-28T04:14:47.000Z
2022-02-28T04:14:47.000Z
salo/cli.py
isabella232/salo
8586096a2c2cc1b55ab554157ed1fe1cbce08827
[ "Apache-2.0" ]
2
2022-03-25T14:59:27.000Z
2022-03-27T16:53:43.000Z
#!/usr/bin/env python3 # Copyrigh 2021 Splunk, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
29.965517
97
0.61565
38153d826bd3efa7714074dc178069c3f9bc11a9
214
py
Python
test/python/LIM2Metrics/py3/base/common/Python060/Python060.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
20
2015-06-16T17:39:10.000Z
2022-03-20T22:39:40.000Z
test/python/LIM2Metrics/py3/base/common/Python060/Python060.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
29
2015-12-29T19:07:22.000Z
2022-03-22T10:39:02.000Z
test/python/LIM2Metrics/py3/base/common/Python060/Python060.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
12
2015-08-28T01:22:18.000Z
2021-09-25T08:17:31.000Z
from tkinter import * root = Tk() root.title('Canvas') canvas = Canvas(root, width =400, height=400) xy = 10, 105, 100, 200 canvas.create_arc(xy, start=0, extent=270, fill='gray60') canvas.pack() root.mainloop()
19.454545
57
0.696262
3815635944df75115eb5675d73f8eb5814b64b9b
19,932
py
Python
cli/test/test_parser.py
qwofford/popper
af9b3d31412192c86bf88bf02e8ad8e6dc5bbfda
[ "MIT" ]
null
null
null
cli/test/test_parser.py
qwofford/popper
af9b3d31412192c86bf88bf02e8ad8e6dc5bbfda
[ "MIT" ]
null
null
null
cli/test/test_parser.py
qwofford/popper
af9b3d31412192c86bf88bf02e8ad8e6dc5bbfda
[ "MIT" ]
null
null
null
import unittest import os import shutil from popper.parser import Workflow from popper.cli import log class TestParser(unittest.TestCase): def setUp(self): os.makedirs('/tmp/test_folder') os.chdir('/tmp/test_folder') log.setLevel('CRITICAL') def tearDown(self): os.chdir('/tm...
24.852868
76
0.372667
38156c142aa53c51d022ad28a7989814d11e68ca
6,569
py
Python
baselines/tf_cnn_test.py
fywalter/TorchSeg
729eb22d8c5d607466055552fd82e0819d5f29e2
[ "MIT" ]
null
null
null
baselines/tf_cnn_test.py
fywalter/TorchSeg
729eb22d8c5d607466055552fd82e0819d5f29e2
[ "MIT" ]
null
null
null
baselines/tf_cnn_test.py
fywalter/TorchSeg
729eb22d8c5d607466055552fd82e0819d5f29e2
[ "MIT" ]
2
2020-07-31T14:40:49.000Z
2020-07-31T17:52:30.000Z
import gzip import os import sys import urllib import matplotlib.image as mpimg from PIL import Image import tensorflow.python.platform import tensorflow as tf import sklearn.metrics import numpy import numpy as np import cv2 from tqdm import tqdm NUM_CHANNELS = 3 # RGB images PIXEL_DEPTH = 255 NUM_LABELS = 2 TEST_...
37.323864
112
0.578475
3815abd5d5956119d0feaa1d6a36740c11b4ce45
728
py
Python
day07/test.py
mpirnat/adventofcode
f63ce466b91d5be2687be95fd4ab0b442f1ea5c8
[ "MIT" ]
12
2015-12-02T05:56:36.000Z
2017-11-29T18:58:47.000Z
day07/test.py
mpirnat/adventofcode
f63ce466b91d5be2687be95fd4ab0b442f1ea5c8
[ "MIT" ]
1
2015-12-06T03:36:18.000Z
2015-12-06T20:52:29.000Z
day07/test.py
mpirnat/adventofcode
f63ce466b91d5be2687be95fd4ab0b442f1ea5c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python import unittest from day07 import WiringKit class TestPart1(unittest.TestCase): commands = [ '123 -> x', '456 -> y', 'x AND y -> d', 'x OR y -> e', 'x LSHIFT 2 -> f', 'y RSHIFT 2 -> g', 'NOT x -> h', 'NOT y -> i', ] ex...
19.157895
57
0.468407
3815ac2ef9dd0e22ec203f503bc4ca2dc2c5c080
13,721
py
Python
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_nodes_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_nodes_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_nodes_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
43.697452
251
0.68632
3815d8e63312817cfd074654bc907ad1fdce91be
6,321
py
Python
src/morphforge/morphology/visitor/visitorbaseclasses.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/morphforge/morphology/visitor/visitorbaseclasses.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/morphforge/morphology/visitor/visitorbaseclasses.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
34.730769
187
0.672837
3815e879a3592671ef1af2695bb0bfba10578b8e
42,140
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_12_01/operations/_agent_pools_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_12_01/operations/_agent_pools_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_12_01/operations/_agent_pools_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
43.668394
263
0.671951
3815f3a1adaf2c13e7752a03f863abfc582a628f
1,945
py
Python
test_expand.py
wasade/reimagined-fiesta
023664e0c146b769f302a1142b1fa44c0e27af2d
[ "BSD-3-Clause" ]
1
2017-07-24T15:45:50.000Z
2017-07-24T15:45:50.000Z
test_expand.py
wasade/reimagined-fiesta
023664e0c146b769f302a1142b1fa44c0e27af2d
[ "BSD-3-Clause" ]
null
null
null
test_expand.py
wasade/reimagined-fiesta
023664e0c146b769f302a1142b1fa44c0e27af2d
[ "BSD-3-Clause" ]
1
2018-06-12T23:12:32.000Z
2018-06-12T23:12:32.000Z
from unittest import TestCase, main import biom import numpy as np from expand import (get_inv_otu_map, next_index, index_to_order, perform_expansion) class ExpandTests(TestCase): def test_get_inv_otu_map(self): otu_map = [['foo', '1', '2'], ['bar', 'x']] exp = {'1': 'foo', '...
29.923077
77
0.509512
38160c7930e95580e2ab25837f3f3396e27ba0c6
1,920
py
Python
flexxamples/howtos/jquery.py
xiaoprime/flexx
1ce4cb8848d94b46fb84e300e56b65f754b13a98
[ "BSD-2-Clause" ]
null
null
null
flexxamples/howtos/jquery.py
xiaoprime/flexx
1ce4cb8848d94b46fb84e300e56b65f754b13a98
[ "BSD-2-Clause" ]
null
null
null
flexxamples/howtos/jquery.py
xiaoprime/flexx
1ce4cb8848d94b46fb84e300e56b65f754b13a98
[ "BSD-2-Clause" ]
null
null
null
# doc-export: Example """ Example to demonstrate a jQuery widget. This demonstrates how Flexx can interact wih other JS frameworks. """ from pscript import RawJS from flexx import flx from flexx import event # Associate assets needed by this app. flx.assets.associate_asset(__name__, "http://code.jquery.com/jquery-1....
28.235294
85
0.64375
38161185459944880cd7179ad8f0520eab0aa83a
5,235
py
Python
tb-marketplace/tb-dep-manager/common/ha-nat-gateway.py
eeaton/tb-gcp
a6a4640e8e9cf1c593e319af9deaea3661c39810
[ "Apache-2.0" ]
null
null
null
tb-marketplace/tb-dep-manager/common/ha-nat-gateway.py
eeaton/tb-gcp
a6a4640e8e9cf1c593e319af9deaea3661c39810
[ "Apache-2.0" ]
null
null
null
tb-marketplace/tb-dep-manager/common/ha-nat-gateway.py
eeaton/tb-gcp
a6a4640e8e9cf1c593e319af9deaea3661c39810
[ "Apache-2.0" ]
1
2021-08-31T15:13:34.000Z
2021-08-31T15:13:34.000Z
# Copyright 2017 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
35.612245
114
0.647564
38162174df4747ba503697274c6b07cd2b6dcb0e
655
py
Python
examples/example_config.py
jwenjian/naz
905ce81703e5bb0068915d48e72fc9dca8cda4ab
[ "MIT" ]
null
null
null
examples/example_config.py
jwenjian/naz
905ce81703e5bb0068915d48e72fc9dca8cda4ab
[ "MIT" ]
null
null
null
examples/example_config.py
jwenjian/naz
905ce81703e5bb0068915d48e72fc9dca8cda4ab
[ "MIT" ]
null
null
null
import naz from examples.example_klasses import ExampleRedisQueue, MySeqGen, MyRateLimiter # run as: # naz-cli --client examples.example_config.client client = naz.Client( smsc_host="127.0.0.1", smsc_port=2775, system_id="smppclient1", password="password", outboundqueue=ExampleRedisQueue(), e...
29.772727
92
0.717557
381624a92b0c4775d469b43548d014dbe04529a7
9,775
py
Python
tests/floorplan/test_floorplan.py
hohe/siliconcompiler
497f272c87c8f247dcd29db76c8d6ed0c0939e50
[ "Apache-2.0" ]
1
2022-03-10T03:56:49.000Z
2022-03-10T03:56:49.000Z
tests/floorplan/test_floorplan.py
hohe/siliconcompiler
497f272c87c8f247dcd29db76c8d6ed0c0939e50
[ "Apache-2.0" ]
null
null
null
tests/floorplan/test_floorplan.py
hohe/siliconcompiler
497f272c87c8f247dcd29db76c8d6ed0c0939e50
[ "Apache-2.0" ]
null
null
null
import pytest import os import re from siliconcompiler.core import Chip from siliconcompiler.floorplan import Floorplan def _fp(datadir): c = Chip(loglevel='INFO') c.set('design', 'test', clobber=True) c.load_target('freepdk45_demo') stackup = '10M' lib = 'ram' c.add('asic', 'macrolib', lib) ...
37.1673
185
0.59509
38164401cfed4155abfd552e7abd19d0ce469640
364
py
Python
tests/pystrings/test_tower_builder.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/pystrings/test_tower_builder.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/pystrings/test_tower_builder.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import unittest from pystrings.tower_builder import tower_builder class TowerBuilderTests(unittest.TestCase): def test_1(self): self.assertEqual(tower_builder(1), ['*', ]) def test_2(self): self.assertEqual(tower_builder(2), [' * ', '***']) def test_3(self): self.assertEqual(tow...
24.266667
71
0.612637
38165481e1aebbbcbc1ad63bf3309540c9afb400
10,489
py
Python
appengine/chromium_rietveld/codereview/decorators.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/chromium_rietveld/codereview/decorators.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/chromium_rietveld/codereview/decorators.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2013 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.61859
80
0.683287
38166d0d8246e80ae86e5a3520f190e38aef1d8f
1,220
py
Python
tensorflow/contrib/tensor_forest/python/ops/tensor_forest_ops.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/tensor_forest/python/ops/tensor_forest_ops.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/tensor_forest/python/ops/tensor_forest_ops.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42.068966
80
0.746721
38168d7b2377a751f2d602457857aa8b51e467f5
11,002
py
Python
utils/profile.py
Khoale1096/stupidNMT
894536c16dc7ff958aa5571828a89ecabfcb72d7
[ "BSD-3-Clause" ]
81
2019-06-03T18:04:22.000Z
2022-02-04T14:20:49.000Z
utils/profile.py
Khoale1096/stupidNMT
894536c16dc7ff958aa5571828a89ecabfcb72d7
[ "BSD-3-Clause" ]
7
2019-08-02T06:41:20.000Z
2020-07-31T18:31:48.000Z
utils/profile.py
Khoale1096/stupidNMT
894536c16dc7ff958aa5571828a89ecabfcb72d7
[ "BSD-3-Clause" ]
5
2020-05-06T06:04:40.000Z
2020-12-29T14:09:31.000Z
''' Memory profiling utilities ''' import gc import inspect import linecache import os.path import sys import time import threading import traceback as tb from collections import namedtuple from functools import lru_cache, partial import torch def mem_stat(stats=('allocated', 'cached'), device_ids=None): ''' Ret...
37.043771
100
0.571623
38169448bdfc3b0d2c6d3e3c1de5e85c84686c50
1,777
py
Python
DataStructures-Python/5.Sorting_and_Searching/5.3.SequentialSearch.py
madhurilalitha/Python-Projects
d41d87cdba07d71a2e935debbd0f58c143462e5e
[ "MIT" ]
null
null
null
DataStructures-Python/5.Sorting_and_Searching/5.3.SequentialSearch.py
madhurilalitha/Python-Projects
d41d87cdba07d71a2e935debbd0f58c143462e5e
[ "MIT" ]
null
null
null
DataStructures-Python/5.Sorting_and_Searching/5.3.SequentialSearch.py
madhurilalitha/Python-Projects
d41d87cdba07d71a2e935debbd0f58c143462e5e
[ "MIT" ]
null
null
null
''' Sequential Search implementation in python Logic - The function uses 'pos' object as index and Flag "found" to notify whether the element is found Using while loop, the logic traverses through out the list visiting each element If the element is found, it exists the while loop else it visits till the end of the lis...
25.385714
103
0.678109
3816a49b3c1ac705954474541e87f66dbc3de65e
7,738
py
Python
advance/cv-master/advance/aML/Workshop_socialMediaPreprocessing.py
GavinK-ai/cv
6dd11b2100c40aca281508c3821c807ef0ee227d
[ "MIT" ]
1
2021-11-15T06:16:44.000Z
2021-11-15T06:16:44.000Z
advance/cv-master/advance/aML/Workshop_socialMediaPreprocessing.py
JKai96/cv
6dd11b2100c40aca281508c3821c807ef0ee227d
[ "MIT" ]
null
null
null
advance/cv-master/advance/aML/Workshop_socialMediaPreprocessing.py
JKai96/cv
6dd11b2100c40aca281508c3821c807ef0ee227d
[ "MIT" ]
null
null
null
#Sample Code to Do Text Pre Processing # Walk Through all required Libraries in advance - """ Presented By: Mehdi Zadeh Resume Pages: https://www.linkedin.com/in/mehdihabibzadeh/ ßEmail: Zadeh1980mehdi@gmail.com """ numberOfInput=100 fileName='cleansocialMediaTexts.csv' socialMediaRawText="./SampleSocialMediaText.csv"...
35.658986
338
0.613078
3816d173272ed5fca7ad2129cc648df82a22b68a
2,944
py
Python
performance/driver/classes/tasks/http.py
mesosphere/dcos-perf-test-driver
8fba87cb6c6f64690c0b5bef5c7d9f2aa0fba06b
[ "Apache-2.0" ]
2
2018-02-27T18:21:21.000Z
2018-03-16T12:12:12.000Z
performance/driver/classes/tasks/http.py
mesosphere/dcos-perf-test-driver
8fba87cb6c6f64690c0b5bef5c7d9f2aa0fba06b
[ "Apache-2.0" ]
1
2018-06-25T07:14:41.000Z
2018-06-25T07:14:41.000Z
performance/driver/classes/tasks/http.py
mesosphere/dcos-perf-test-driver
8fba87cb6c6f64690c0b5bef5c7d9f2aa0fba06b
[ "Apache-2.0" ]
1
2020-06-25T10:37:21.000Z
2020-06-25T10:37:21.000Z
import requests import json import os import requests from performance.driver.core.classes import Task from performance.driver.core.events import ParameterUpdateEvent # Disable SSL warnings requests.packages.urllib3.disable_warnings() class Request(Task): """ Perform an arbitrary HTTP request as a single-shot t...
28.862745
79
0.618546
3816d547fc1916d0145b110fcc778198b7c8bc09
10,834
py
Python
src/berkeleydb/dbobj.py
eggplants/pybsddb-mirror
692635036ffa70e2562da94ea0a447d15ae57025
[ "BSD-3-Clause" ]
null
null
null
src/berkeleydb/dbobj.py
eggplants/pybsddb-mirror
692635036ffa70e2562da94ea0a447d15ae57025
[ "BSD-3-Clause" ]
null
null
null
src/berkeleydb/dbobj.py
eggplants/pybsddb-mirror
692635036ffa70e2562da94ea0a447d15ae57025
[ "BSD-3-Clause" ]
null
null
null
#------------------------------------------------------------------------- # This file contains real Python object wrappers for DB and DBEnv # C "objects" that can be usefully subclassed. The previous SWIG # based interface allowed this thanks to SWIG's shadow classes. # -- Gregory P. Smith #--------------------...
42.992063
76
0.630423
3816f56b6e70f52a08ea5daa3f85f8601c5e24c6
1,113
py
Python
src/clusto/drivers/base/clustodriver.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
5
2015-07-19T08:28:01.000Z
2021-07-08T14:49:27.000Z
src/clusto/drivers/base/clustodriver.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
null
null
null
src/clusto/drivers/base/clustodriver.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
5
2015-01-06T07:57:07.000Z
2021-11-10T18:01:33.000Z
TYPELIST = {} DRIVERLIST = {} RESERVEDATTRS = {} class ClustoDriver(type): """ Metaclass for all clusto drivers """ def __init__(cls, name, bases, dct): if not hasattr(cls, '_driver_name'): raise DriverException("Driver %s missing _driver_name attribute" ...
30.916667
78
0.522911
3816fcfe8d0b055f64134e7525f33ceca804cab0
3,280
py
Python
bugzoo/cli/controllers/tool.py
pdreiter/BugZoo
e164ee67ff8bd3addfcc87b5e38ff1774992196b
[ "MIT" ]
53
2017-12-02T03:22:06.000Z
2022-03-10T22:20:52.000Z
bugzoo/cli/controllers/tool.py
pdreiter/BugZoo
e164ee67ff8bd3addfcc87b5e38ff1774992196b
[ "MIT" ]
145
2017-11-29T23:23:06.000Z
2020-09-17T22:17:44.000Z
bugzoo/cli/controllers/tool.py
pdreiter/BugZoo
e164ee67ff8bd3addfcc87b5e38ff1774992196b
[ "MIT" ]
8
2018-06-26T17:58:49.000Z
2021-09-07T14:03:41.000Z
import operator import cement from ... import exceptions class ToolController(cement.Controller): class Meta: label = 'tool' description = 'install and remove tools' stacked_on = 'base' stacked_type = 'nested' output_handler = 'tabulate' extensions = ['tabulate'] ...
32.8
117
0.546037
381710bc04dd1283ea95480317fe2b878c450ee5
7,670
py
Python
modules/dbnd/test_dbnd/sql_tracker_common/test_sql_extraction.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd/test_dbnd/sql_tracker_common/test_sql_extraction.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd/test_dbnd/sql_tracker_common/test_sql_extraction.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
import pytest import sqlparse from dbnd._core.constants import DbndTargetOperationType from dbnd._core.sql_tracker_common.sql_extract import Column, SqlQueryExtractor def parse_first_query(sqlquery): return sqlparse.parse(sqlquery)[0] @pytest.mark.parametrize( "sqlquery, expected", [ ( ...
29.5
141
0.406649
381716622101b58bac0a89be00ec03812f9439b6
3,582
py
Python
glow/flow.py
TheoNguyen611/glowIP
6629b1f62f7d12a57c17194baec7ce85f99753c7
[ "MIT" ]
10
2020-03-08T03:59:52.000Z
2021-11-17T02:55:59.000Z
glow/flow.py
TheoNguyen611/glowIP
6629b1f62f7d12a57c17194baec7ce85f99753c7
[ "MIT" ]
3
2019-10-20T04:05:24.000Z
2021-06-04T01:39:53.000Z
glow/flow.py
TheoNguyen611/glowIP
6629b1f62f7d12a57c17194baec7ce85f99753c7
[ "MIT" ]
11
2019-08-22T01:31:07.000Z
2022-02-06T15:20:18.000Z
import torch import torch.nn as nn import numpy as np from .actnorm import ActNorm from .invertible_conv import InvertibleConvolution from .coupling import CouplingLayer # device if torch.cuda.is_available(): device = "cuda" else: device = "cpu" class Flow(nn.Module): def __init__(self, channels, coupli...
45.341772
100
0.61837
381739114bd6e5c00f60f8d9a3ab397df4e78ec8
20,601
py
Python
seleniumbase/translate/russian.py
filipe-guerra/SeleniumBase
b75b1ced779a4dbb10d9265b70bef8184bcea251
[ "MIT" ]
1
2020-08-28T08:53:46.000Z
2020-08-28T08:53:46.000Z
seleniumbase/translate/russian.py
BarryYBL/SeleniumBase
e3cb810331183fa003cea8af81057e4136dfd660
[ "MIT" ]
null
null
null
seleniumbase/translate/russian.py
BarryYBL/SeleniumBase
e3cb810331183fa003cea8af81057e4136dfd660
[ "MIT" ]
null
null
null
# Russian / Русский - Translations - Python 3 Only! from seleniumbase import BaseCase from seleniumbase import MasterQA class ТестНаСелен(BaseCase): # noqa def __init__(self, *args, **kwargs): super(ТестНаСелен, self).__init__(*args, **kwargs) self._language = "Russian" def открыть(self, *a...
37.52459
79
0.651667
381740cf2cdcc1eee55a2e42f5a59a135e3c2f2e
2,601
py
Python
sdk/appconfiguration/azure-appconfiguration/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appconfiguration/azure-appconfiguration/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appconfiguration/azure-appconfiguration/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
#!/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. # --------------------------------------------------------------...
32.924051
110
0.619762
3817619a214c65077dac8590d93efc69049521f8
5,534
py
Python
aiohttp_client_cache/backends/dynamodb.py
akursar/aiohttp-client-cache
8bddc511c46fb5dfe06e7638a963d8a262adecc7
[ "MIT" ]
null
null
null
aiohttp_client_cache/backends/dynamodb.py
akursar/aiohttp-client-cache
8bddc511c46fb5dfe06e7638a963d8a262adecc7
[ "MIT" ]
null
null
null
aiohttp_client_cache/backends/dynamodb.py
akursar/aiohttp-client-cache
8bddc511c46fb5dfe06e7638a963d8a262adecc7
[ "MIT" ]
null
null
null
import pickle from typing import Dict, Iterable import boto3 from boto3.resources.base import ServiceResource from botocore.exceptions import ClientError from aiohttp_client_cache.backends import BaseCache, CacheBackend, ResponseOrKey from aiohttp_client_cache.forge_utils import extend_signature class DynamoDBBacke...
37.14094
113
0.6236
38176b682a607398ab5883afab29ad3180748194
1,217
py
Python
tests/test_sim_params.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
5
2019-10-15T15:56:35.000Z
2021-02-04T10:11:31.000Z
tests/test_sim_params.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
121
2020-01-06T14:32:30.000Z
2021-09-23T11:26:11.000Z
tests/test_sim_params.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2019-10-21T08:36:05.000Z
2021-03-26T10:37:17.000Z
import smooth.framework.simulation_parameters as sim_params import pytest def test_params(): # test constructor params = sim_params.SimulationParameters({}) assert hasattr(params, "start_date") assert hasattr(params, "n_intervals") assert hasattr(params, "interval_time") assert hasattr(params...
30.425
80
0.662284
381790022704a10f811b50df47cc10fe6a81e73b
2,891
py
Python
tests/integration/modules/pw_user.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/pw_user.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/pw_user.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` :copyright: © 2013 by the SaltStack Team, see AUTHORS for more details :license: Apache 2.0, see LICENSE for more details. tests.integration.modules.pw_user ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ''' # Import python l...
32.483146
82
0.596679
3817a33d567d7852628a4082b96c3d90f26c7c43
2,697
py
Python
build/scripts-2.7/katcp-exampleserver.py
MESAProductSolutions/katcp-python-rta
54cbf1c9530035b1eff6fe2b04b4c307aaac4d1d
[ "BSD-3-Clause" ]
null
null
null
build/scripts-2.7/katcp-exampleserver.py
MESAProductSolutions/katcp-python-rta
54cbf1c9530035b1eff6fe2b04b4c307aaac4d1d
[ "BSD-3-Clause" ]
null
null
null
build/scripts-2.7/katcp-exampleserver.py
MESAProductSolutions/katcp-python-rta
54cbf1c9530035b1eff6fe2b04b4c307aaac4d1d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python """KATCP server example. copyright (c) 2008 SKA/KAT. All Rights Reserved. @author Robert Crida <robert.crida@ska.ac.za> @date 2008-10-10 """ import logging import sys import Queue from optparse import OptionParser import katcp from katcp.kattypes import request, return_reply, Float, Int...
29
108
0.581387
3817c4d2e5764bfa9534d4de589df7eb2db08974
1,363
py
Python
test/cut/test_cut_set.py
popcornell/lhotse
f70255699d05af794d61fdef12413e9f98e6c3a9
[ "Apache-2.0" ]
null
null
null
test/cut/test_cut_set.py
popcornell/lhotse
f70255699d05af794d61fdef12413e9f98e6c3a9
[ "Apache-2.0" ]
null
null
null
test/cut/test_cut_set.py
popcornell/lhotse
f70255699d05af794d61fdef12413e9f98e6c3a9
[ "Apache-2.0" ]
1
2021-04-16T21:13:37.000Z
2021-04-16T21:13:37.000Z
from tempfile import NamedTemporaryFile import pytest from lhotse.cut import CutSet, Cut, MixedCut, MixTrack @pytest.fixture def cut_set_with_mixed_cut(cut1, cut2): mixed_cut = MixedCut(id='mixed-cut-id', tracks=[ MixTrack(cut=cut1), MixTrack(cut=cut2, offset=1.0, snr=10) ]) return CutSe...
30.977273
74
0.741012
3817dbe30af8ffcaea8387aae8b65f1f4865a4de
10,997
py
Python
imodels/experimental/bartpy/data.py
csinva/interpretability-implementations-demos
0223114225d0e077007b1ad49f63b64f3ff5ee15
[ "MIT" ]
102
2019-07-16T13:45:35.000Z
2020-09-14T19:12:49.000Z
imodels/experimental/bartpy/data.py
csinva/interpretability-workshop
db201be7723179a1f5ab20b242419a604edc9186
[ "MIT" ]
2
2020-01-03T20:47:14.000Z
2020-01-03T21:17:39.000Z
imodels/experimental/bartpy/data.py
csinva/interpretability-workshop
db201be7723179a1f5ab20b242419a604edc9186
[ "MIT" ]
8
2019-08-09T08:40:34.000Z
2020-09-06T17:51:10.000Z
from operator import gt, le from typing import Any, List, Optional, Union import numpy as np import pandas as pd from .errors import NoSplittableVariableException from .splitcondition import SplitCondition def is_not_constant(series: np.ndarray) -> bool: """ Quickly identify whether a series contains more t...
30.977465
122
0.593707
3818031dd07f981eaca5374024749c2ea6c87f13
3,209
py
Python
src/battlefy_toolkit/resolvers/DiscordIdResolver.py
IPLSplatoon/Battlefy-Toolkit
43c59cd9ca52f1df168e9c4b7f79cc9353b1b3d8
[ "MIT" ]
2
2021-03-23T23:32:03.000Z
2021-03-24T00:01:25.000Z
src/battlefy_toolkit/resolvers/DiscordIdResolver.py
IPLSplatoon/Battlefy-Toolkit
43c59cd9ca52f1df168e9c4b7f79cc9353b1b3d8
[ "MIT" ]
null
null
null
src/battlefy_toolkit/resolvers/DiscordIdResolver.py
IPLSplatoon/Battlefy-Toolkit
43c59cd9ca52f1df168e9c4b7f79cc9353b1b3d8
[ "MIT" ]
1
2021-09-24T01:36:11.000Z
2021-09-24T01:36:11.000Z
import json import time import requests from typing import Optional class DiscordInformation: def __init__(self, response: dict): """ Constructor for DiscordInformation :param response: Dictionary of the response from Discord. """ self.id = response["id"] self.usern...
35.655556
105
0.625428
3818395cd66605a7c715fc836b1b3664fee36352
7,428
py
Python
gis4wrf/plugin/options.py
XavierCLL/gis4wrf
686b167d656f5f1835858f1b94de4423091f957c
[ "MIT" ]
111
2018-06-13T15:34:52.000Z
2022-03-23T04:59:53.000Z
gis4wrf/plugin/options.py
XavierCLL/gis4wrf
686b167d656f5f1835858f1b94de4423091f957c
[ "MIT" ]
190
2018-06-14T15:08:37.000Z
2022-03-02T14:02:54.000Z
gis4wrf/plugin/options.py
XavierCLL/gis4wrf
686b167d656f5f1835858f1b94de4423091f957c
[ "MIT" ]
29
2018-06-13T15:35:05.000Z
2022-01-27T03:18:18.000Z
# GIS4WRF (https://doi.org/10.5281/zenodo.1288569) # Copyright (c) 2018 D. Meyer and M. Riechert. Licensed under MIT. from typing import Optional, List import os import platform import multiprocessing from qgis.core import QgsSettings from gis4wrf.core import find_mpiexec from gis4wrf.core.util import export from gi...
31.341772
116
0.646877
38186ddab131c39437a002ff58042368ed39cab1
1,400
py
Python
ufora/core/math/UniqueHashGenerator.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
ufora/core/math/UniqueHashGenerator.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
ufora/core/math/UniqueHashGenerator.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
# Copyright 2015 Ufora Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
29.787234
89
0.672857
381873b4f9a72a50053013a6b9c0d4e3f2a26226
14,360
py
Python
examples/trials/ga_squad/attention.py
narumiruna/nni
09ce78302ca9f48ecb446e1129f28f70ee35dc4a
[ "MIT" ]
1
2018-09-12T06:32:56.000Z
2018-09-12T06:32:56.000Z
examples/trials/ga_squad/attention.py
0Deer0/nni
b4e9f0878d3f74742ae3acd783ddff303b4732cb
[ "MIT" ]
null
null
null
examples/trials/ga_squad/attention.py
0Deer0/nni
b4e9f0878d3f74742ae3acd783ddff303b4732cb
[ "MIT" ]
1
2019-01-04T00:32:14.000Z
2019-01-04T00:32:14.000Z
# 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 # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
36.915167
100
0.60376
38190505cca6d3f384f19fcbbd2c5de07fc9d42f
2,269
py
Python
draco/tests/test_run.py
cmudig/draco2
8af2e6878b4f18c1b26b5c0a2d61b4b28c4facd8
[ "MIT" ]
22
2020-11-17T18:46:59.000Z
2022-02-22T23:15:45.000Z
draco/tests/test_run.py
cmudig/draco2
8af2e6878b4f18c1b26b5c0a2d61b4b28c4facd8
[ "MIT" ]
65
2020-12-02T21:51:48.000Z
2022-03-24T20:23:11.000Z
draco/tests/test_run.py
cmudig/draco2
8af2e6878b4f18c1b26b5c0a2d61b4b28c4facd8
[ "MIT" ]
5
2020-11-20T05:36:28.000Z
2022-01-11T21:12:49.000Z
from unittest import TestCase from draco import run_clingo def test_run_all_models(): models = list(run_clingo("{a;b;c}.")) assert len(models) == 2 ** 3 def test_run_clingo_fact(): run_clingo("fact(a,42).") def test_run_clingo_no_opt(): model = next(run_clingo("fact(a,42).")) assert model.co...
22.465347
72
0.498017
38192b27850b667a5b63832d9290d5c850f40a38
13,600
py
Python
openapi_client/configuration.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/configuration.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/configuration.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
# coding: utf-8 """ MBTA MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api # noqa: E501 The version of the OpenAPI document: 3.0 Contact: developer@mbta.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import logging imp...
34.343434
97
0.58375
381932223766bd4bf6577401307ae216a174bbee
1,068
py
Python
tests/parallel_test.py
ki-prf-ujep/signal-pipes
79dbf8eb3525f83c9e9562d3c1a92b9b618121eb
[ "Apache-2.0" ]
2
2019-11-18T01:13:17.000Z
2021-03-17T19:13:00.000Z
tests/parallel_test.py
ki-prf-ujep/signal-pipes
79dbf8eb3525f83c9e9562d3c1a92b9b618121eb
[ "Apache-2.0" ]
1
2021-03-17T16:56:12.000Z
2021-03-17T16:56:12.000Z
tests/parallel_test.py
ki-prf-ujep/signal-pipes
79dbf8eb3525f83c9e9562d3c1a92b9b618121eb
[ "Apache-2.0" ]
2
2019-06-12T22:34:19.000Z
2021-03-25T14:20:39.000Z
from concurrent.futures import ProcessPoolExecutor as Executor #from mpi4py.futures import MPIPoolExecutor as Executor from sigpipes.sigfilter import Hilbert from sigpipes.psigoperator import AsFuture, Barrier, ProcessTracker, FutureTracker from sigpipes.sigoperator import Identity, RangeNormalization, Tee, Csv, Prin...
48.545455
165
0.67603
3819589c12d87e0b208abf272c67529484829de4
4,922
py
Python
train/tasks/segmented/modules/Lovasz_Softmax.py
TiagoCortinhal/TITAN-NET
3ddf29061edd8977c76d5ee5bbb542f6511f5928
[ "MIT" ]
11
2021-06-29T10:53:56.000Z
2022-03-25T07:33:20.000Z
train/tasks/segmented/modules/Lovasz_Softmax.py
TiagoCortinhal/TITAN-NET
3ddf29061edd8977c76d5ee5bbb542f6511f5928
[ "MIT" ]
null
null
null
train/tasks/segmented/modules/Lovasz_Softmax.py
TiagoCortinhal/TITAN-NET
3ddf29061edd8977c76d5ee5bbb542f6511f5928
[ "MIT" ]
1
2021-07-21T08:23:29.000Z
2021-07-21T08:23:29.000Z
""" MIT License Copyright (c) 2018 Maxim Berman Copyright (c) 2020 Tiago Cortinhal, George Tzelepis and Eren Erdal Aksoy 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, inc...
33.482993
118
0.643031
38198dac3163e8088f8de68f3ef5d8280e06ca8d
4,553
py
Python
package.py
leomauro/pyramids
4f7a8e97e13a5ee0b037dc528e5ba72f31ac36e5
[ "MIT" ]
9
2015-09-04T22:33:40.000Z
2019-04-11T14:05:11.000Z
package.py
leomauro/pyramids
4f7a8e97e13a5ee0b037dc528e5ba72f31ac36e5
[ "MIT" ]
2
2015-09-04T22:31:44.000Z
2017-07-29T04:11:53.000Z
package.py
hosford42/pyramids
4f7a8e97e13a5ee0b037dc528e5ba72f31ac36e5
[ "MIT" ]
3
2015-10-14T12:41:26.000Z
2022-01-08T19:43:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Prepares the package for registration with PyPI.""" import glob import os import unittest import zipfile import build_readme # TODO: This is the only line in this script that depends on the specific # module/package that is being packaged for PyPI. Figure out ...
33.725926
95
0.640896
3819d909ae2cbe3baadfffb3e3faa6ec4b19d431
7,051
py
Python
ipcheckadvanced/extension/command.py
Turgon37/IpCheck
d9fecd14c0c3539d15f0fd34b23799c3ebbcb50e
[ "MIT" ]
3
2018-12-28T10:57:00.000Z
2020-01-28T13:23:13.000Z
ipcheckadvanced/extension/command.py
Turgon37/IpCheck
d9fecd14c0c3539d15f0fd34b23799c3ebbcb50e
[ "MIT" ]
2
2018-05-10T17:57:36.000Z
2019-09-07T09:20:07.000Z
ipcheckadvanced/extension/command.py
Turgon37/IpCheck
d9fecd14c0c3539d15f0fd34b23799c3ebbcb50e
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- # This file is a part of ipcheck # # Copyright (c) 2015 Pierre GINDRAUD # # 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 limita...
38.320652
83
0.610552
381a02e78889b8942ce65afce8727ed5dae43aa7
7,800
py
Python
saltcloud/clouds/botocore_aws.py
ageron/salt-cloud
2f71d170e5e6bff8aafa8459227073400e875602
[ "Apache-2.0" ]
2
2019-03-30T02:12:57.000Z
2021-03-08T18:59:52.000Z
saltcloud/clouds/botocore_aws.py
ageron/salt-cloud
2f71d170e5e6bff8aafa8459227073400e875602
[ "Apache-2.0" ]
null
null
null
saltcloud/clouds/botocore_aws.py
ageron/salt-cloud
2f71d170e5e6bff8aafa8459227073400e875602
[ "Apache-2.0" ]
null
null
null
''' The AWS Cloud Module ==================== The AWS cloud module is used to interact with the Amazon Web Services system. To use the AWS cloud module, using the old cloud providers configuration syntax, the following configuration parameters need to be set in the main cloud configuration file: .. code-block:: yaml...
30.952381
79
0.65141
381a16a4189ed152ef10a0cf6f3d7c50afdfdd92
10,742
py
Python
2. Introduction to Python/Project/All_steps/calculates_results_stats.py
fstigler/AI-Programming-with-Python---Udacity---Nanodegree-
5264435ee57b41df6995a890731d6bcb64b09284
[ "MIT" ]
2
2021-08-04T08:59:43.000Z
2021-11-24T11:28:47.000Z
2. Introduction to Python/Project/All_steps/calculates_results_stats.py
fstigler/AI-Programming-with-Python---Udacity---Nanodegree-
5264435ee57b41df6995a890731d6bcb64b09284
[ "MIT" ]
2
2021-11-11T08:11:24.000Z
2022-03-21T14:05:38.000Z
2. Introduction to Python/Project/All_steps/calculates_results_stats.py
fstigler/AI_Programming_with_Python_Udacity_Nanodegree-
5264435ee57b41df6995a890731d6bcb64b09284
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # */AIPND-revision/intropyproject-classify-pet-images/calculates_results_stats_hints.py # # PROGRAMMER: # DATE CREATED: # REVISED DATE: # PURPOSE: This is a *hin...
55.087179
124
0.631819
381a2ec37b3988cc087802676e6d1a2d766f6005
787
py
Python
users/migrations/0003_loginsession.py
edgarceron/agent_console
a75501957722a349c7276e4d199425897f351bc0
[ "BSD-3-Clause" ]
null
null
null
users/migrations/0003_loginsession.py
edgarceron/agent_console
a75501957722a349c7276e4d199425897f351bc0
[ "BSD-3-Clause" ]
3
2021-03-30T13:46:24.000Z
2021-09-22T19:18:18.000Z
users/migrations/0003_loginsession.py
edgarceron/agent_console
a75501957722a349c7276e4d199425897f351bc0
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.4 on 2020-05-29 15:48 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('profiles', '0002_profile_active'), ('users', '0002_auto_20200411_1009'), ] operations = [ migration...
31.48
129
0.606099
381a70fdf0a2ffaaf31b17ccd0b4e3eaf9340069
25
py
Python
btd6_memory_info/generated/Assets/Scripts/Models/Towers/Behaviors/Abilities/Behaviors/DamageUpModel/damage_up_model.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Models/Towers/Behaviors/Abilities/Behaviors/DamageUpModel/damage_up_model.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Models/Towers/Behaviors/Abilities/Behaviors/DamageUpModel/damage_up_model.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class DamageUpModel: pass
25
25
0.88
381a8c2efda233d63265890bf58042391e3d3cd4
14,134
py
Python
markov_memepipe.py
lilymaryam/UC_Davis_iGEM
a3f8e6803cdd1e2424b3fe01364a93f08d41803d
[ "MIT" ]
null
null
null
markov_memepipe.py
lilymaryam/UC_Davis_iGEM
a3f8e6803cdd1e2424b3fe01364a93f08d41803d
[ "MIT" ]
null
null
null
markov_memepipe.py
lilymaryam/UC_Davis_iGEM
a3f8e6803cdd1e2424b3fe01364a93f08d41803d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os import sys import motiflib import argparse import math import statistics import memepipelib # setup parser = argparse.ArgumentParser( description='Will test MEME parameters on fasta files of promoters.') parser.add_argument('--jasparfile', required=True, type=str, metavar='<str>', help='...
35.423559
179
0.707231
381a9463fae821972576fc11c85eef0710204715
1,101
py
Python
imdb/api.py
lithammer/imdb-api
fe7b2ebca30ec62b2dd608aba911c04bdc84ba76
[ "MIT" ]
1
2020-01-08T16:19:03.000Z
2020-01-08T16:19:03.000Z
imdb/api.py
lithammer/imdb-api
fe7b2ebca30ec62b2dd608aba911c04bdc84ba76
[ "MIT" ]
3
2019-12-21T10:19:44.000Z
2021-01-07T22:13:14.000Z
imdb/api.py
lithammer/imdb-api
fe7b2ebca30ec62b2dd608aba911c04bdc84ba76
[ "MIT" ]
2
2020-01-08T16:19:11.000Z
2022-03-22T02:09:41.000Z
from bs4 import BeautifulSoup from flask import Response, render_template, abort, jsonify import requests from imdb import app from imdb.decorators import cached, support_jsonp from imdb.parser import IMDb @app.errorhandler(404) def page_not_found(error): return render_template('errors/404.html'), 404 @app.rou...
23.425532
75
0.68574
381a9a1fcd558d75850fc587537c1ea5fca2430d
1,020
py
Python
sites/demo/urls.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
1
2015-11-07T12:37:50.000Z
2015-11-07T12:37:50.000Z
sites/demo/urls.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
sites/demo/urls.py
makielab/django-oscar
0a325cd0f04a4278201872b2e163868b72b6fabe
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, include from django.conf import settings from django.contrib import admin from django.conf.urls.static import static from stores.app import application as stores_app from stores.dashboard.app import application as dashboard_app from apps.app import application from datacash.app i...
29.142857
61
0.734314