hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
7cd7090a5fd5c70d3b7355b87412addc028795b9
3,539
py
Python
bindings/python/ensmallen/datasets/string/trichinellaspiralis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/trichinellaspiralis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/trichinellaspiralis.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Trichinella spiralis. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protein a...
32.768519
223
0.676745
8c217c4b4ca7d564cfb3d1430a6726998a9e8e0d
7,607
py
Python
textattack/commands/train_model/train_args_helpers.py
ashwani-bhat/TextAttack
9f5c0794b95779f11bf2a120642db00da2bc4928
[ "MIT" ]
null
null
null
textattack/commands/train_model/train_args_helpers.py
ashwani-bhat/TextAttack
9f5c0794b95779f11bf2a120642db00da2bc4928
[ "MIT" ]
null
null
null
textattack/commands/train_model/train_args_helpers.py
ashwani-bhat/TextAttack
9f5c0794b95779f11bf2a120642db00da2bc4928
[ "MIT" ]
null
null
null
import os import textattack from textattack.commands.attack.attack_args import ATTACK_RECIPE_NAMES from textattack.commands.augment import AUGMENTATION_RECIPE_NAMES logger = textattack.shared.logger def prepare_dataset_for_training(nlp_dataset): """Changes an `nlp` dataset into the proper format for tokenizatio...
38.811224
117
0.652951
abe12f27f2c3cd8ec5b4e9d8dbee7cb648677b97
4,042
py
Python
sdk/tests/batch/config/config_test.py
Omrisnyk/turing
f2ea45af2f49114aff304be2585ba6095fb8d3bd
[ "Apache-2.0" ]
null
null
null
sdk/tests/batch/config/config_test.py
Omrisnyk/turing
f2ea45af2f49114aff304be2585ba6095fb8d3bd
[ "Apache-2.0" ]
null
null
null
sdk/tests/batch/config/config_test.py
Omrisnyk/turing
f2ea45af2f49114aff304be2585ba6095fb8d3bd
[ "Apache-2.0" ]
null
null
null
import pytest import turing.batch.config.source import turing.batch.config.sink import turing.generated.models @pytest.mark.parametrize( "source,predictions,result_config,sink,expected_fn", [ pytest.param( turing.batch.config.source.BigQueryDataset( table="project.table.dataset...
39.627451
101
0.58758
051a4b82378deb02b0391128639cee9154596f18
2,725
py
Python
bin/vmcheckerpaths.py
ironmissy/vmchecker
b5c241c959e8f297d632a6364f8d341c89e79a61
[ "MIT" ]
1
2016-05-09T13:23:57.000Z
2016-05-09T13:23:57.000Z
bin/vmcheckerpaths.py
ironmissy/vmchecker
b5c241c959e8f297d632a6364f8d341c89e79a61
[ "MIT" ]
null
null
null
bin/vmcheckerpaths.py
ironmissy/vmchecker
b5c241c959e8f297d632a6364f8d341c89e79a61
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """All paths related to vmchecker.""" import os _STORER_CONFIG_FILE = 'vmchecker_storer.ini' _TESTER_CONFIG_FILE = 'vmchecker_tester.ini' GRADE_FILENAME = 'results/job_results' root = None repository = None def set_root(root_): """Sets vmchecker root path""" global root root =...
24.115044
68
0.691009
5d5ddff564398de4b31c14e02f4cef8256a36630
1,945
py
Python
tensorflow/examples/learn/boston.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
65
2016-09-26T01:30:40.000Z
2021-08-11T17:00:41.000Z
tensorflow/examples/learn/boston.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
5
2017-02-21T08:37:52.000Z
2017-03-29T05:46:05.000Z
tensorflow/examples/learn/boston.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
10
2017-03-28T06:16:10.000Z
2020-08-25T09:03:44.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 appl...
33.534483
75
0.753213
6f17906c054c61b6f31b3bc5074169b77b23dc2f
1,067
py
Python
observing/gather_test.py
AdamAbate-6/boatos
e31d62bdbebcb0c062793a2ebf119fe33e2b5eed
[ "MIT" ]
null
null
null
observing/gather_test.py
AdamAbate-6/boatos
e31d62bdbebcb0c062793a2ebf119fe33e2b5eed
[ "MIT" ]
null
null
null
observing/gather_test.py
AdamAbate-6/boatos
e31d62bdbebcb0c062793a2ebf119fe33e2b5eed
[ "MIT" ]
null
null
null
# Simple demo of the FXOS8700 accelerometer and magnetometer. # Will print the acceleration and magnetometer values every second. import time import board import busio import adafruit_fxos8700 import csv import threading class DataGathererTest(threading.Thread): def __init__(self, delay): # Initialize I2C...
36.793103
100
0.657919
8428231843b6e3a59895f51bf0c918a395d47577
1,682
py
Python
morse.py
Sondosissa18/se-q3-morse-code
2f5689a1beeb6c4dba3217b20831f73122398b21
[ "MIT" ]
null
null
null
morse.py
Sondosissa18/se-q3-morse-code
2f5689a1beeb6c4dba3217b20831f73122398b21
[ "MIT" ]
null
null
null
morse.py
Sondosissa18/se-q3-morse-code
2f5689a1beeb6c4dba3217b20831f73122398b21
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Morse Code Decoder "Dot" – is 1 time unit long. "Dash" – is 3 time units long. Pause between dots and dashes in a character – is 1 time unit long. Pause between characters inside a word – is 3 time units long. Pause between words – is 7 time units long. """ __author__...
32.980392
179
0.675386
eba210539f9c956c63aadab68e41dee6dfb8c777
934
py
Python
main.py
gidoBOSSftw5731/mini-obd2
ecdb8aa3a0f6de6af8d6ec6d6b653d9bb05bc756
[ "Apache-2.0" ]
null
null
null
main.py
gidoBOSSftw5731/mini-obd2
ecdb8aa3a0f6de6af8d6ec6d6b653d9bb05bc756
[ "Apache-2.0" ]
null
null
null
main.py
gidoBOSSftw5731/mini-obd2
ecdb8aa3a0f6de6af8d6ec6d6b653d9bb05bc756
[ "Apache-2.0" ]
null
null
null
import time import datetime from adafruit_ht16k33 import segments import board import busio import obd import re #setup connection to bt obd crap obd.logger.setLevel(obd.logging.DEBUG) ports = obd.scan_serial() if len(ports) == 0: time.sleep(1) raise Exception("no bt things!") #guess we found a serial thing now #op...
17.961538
63
0.694861
042e6de53c4d8b8f911345354c808d459f56ef56
6,610
py
Python
ethereum/hybrid_casper/casper_initiating_transactions.py
IIIIllllIIIIllllIIIIllllIIIIllllIIIIll/pyethereum
d962694be03686a8e5c1d7459ae272b70a5c9f77
[ "MIT" ]
1
2019-01-18T03:20:01.000Z
2019-01-18T03:20:01.000Z
ethereum/hybrid_casper/casper_initiating_transactions.py
IIIIllllIIIIllllIIIIllllIIIIllllIIIIll/pyethereum
d962694be03686a8e5c1d7459ae272b70a5c9f77
[ "MIT" ]
8
2020-06-05T21:36:23.000Z
2022-02-12T12:24:00.000Z
ethereum/hybrid_casper/casper_initiating_transactions.py
IIIIllllIIIIllllIIIIllllIIIIllllIIIIll/pyethereum
d962694be03686a8e5c1d7459ae272b70a5c9f77
[ "MIT" ]
null
null
null
import pkg_resources from vyper import compiler from ethereum.transactions import Transaction from ethereum.abi import ContractTranslator import rlp from ethereum.utils import decode_hex gasprice = 25 * 10**9 viper_rlp_decoder_tx = decode_hex("0xf90237808506fc23ac00830330888080b902246102128061000e60003961022056600060...
143.695652
2,323
0.901059
f91288364d645c2ef64b4edf1a7742d645400bb9
19,149
py
Python
build/env/lib/python2.7/site-packages/windmill-1.6-py2.7.egg/windmill/server/forwardmanager.py
bopopescu/myhue
5f566970a5a1fa5af9f01832c9e9808c47634bc7
[ "Apache-2.0" ]
61
2015-03-16T18:36:06.000Z
2021-12-02T10:08:17.000Z
windmill/server/forwardmanager.py
admc/windmill
4304ee7258eb0c2814f215d8ce90abf02b1f737f
[ "Apache-2.0" ]
8
2015-03-10T10:01:26.000Z
2020-05-18T10:51:24.000Z
windmill/server/forwardmanager.py
admc/windmill
4304ee7258eb0c2814f215d8ce90abf02b1f737f
[ "Apache-2.0" ]
14
2015-01-29T16:28:33.000Z
2021-09-04T11:19:48.000Z
# Copyright (c) 2009 Canonical Ltd. # Copyright (c) 2009 Mikeal Rogers <mikeal.rogers@gmail.com> # Copyright (c) 2009 Domen Kozar <domen@dev.si> # # 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 t...
45.376777
106
0.523578
5825fd58cb45f6d30664a3f64f8e345e61843a94
414
py
Python
shipWithinDays.py
hazardinho/LeetcodeSolutions
3f7fee882c1cdc83ecf7c9fd05d2a7f1afb130e6
[ "MIT" ]
1
2020-05-21T09:29:48.000Z
2020-05-21T09:29:48.000Z
shipWithinDays.py
Ich1goSan/LeetcodeSolutions
3f7fee882c1cdc83ecf7c9fd05d2a7f1afb130e6
[ "MIT" ]
null
null
null
shipWithinDays.py
Ich1goSan/LeetcodeSolutions
3f7fee882c1cdc83ecf7c9fd05d2a7f1afb130e6
[ "MIT" ]
null
null
null
def shipWithinDays(self, weights: List[int], D: int) -> int: l = max(weights) r = sum(weights) while l < r: mid = (l + r) // 2 if self.days(weights, mid) >= D: l = mid + 1 else: r = mid return l def days(self, weights, k): s = 0 d = 0 for i i...
18.818182
60
0.413043
b3358d99832937d60e9de8568bb44b010c5add8f
105,931
py
Python
Lib/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html # For details: https://github.com/PyCQA/astroid/blob/main/LICENSE # Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt """ This module contains the classes for "scoped" node, i.e. which are opening a new local ...
33.919629
102
0.585277
6f1c74b6803d4ecf7f1e25eacad0215661193023
3,119
py
Python
certbot-dns-sakuracloud/certbot_dns_sakuracloud/dns_sakuracloud.py
tsrivishnu/certbot
81f02e5578819220e0b4e15a9ceca9b77fff436e
[ "Apache-2.0" ]
1
2020-04-18T03:12:14.000Z
2020-04-18T03:12:14.000Z
certbot-dns-sakuracloud/certbot_dns_sakuracloud/dns_sakuracloud.py
tsrivishnu/certbot
81f02e5578819220e0b4e15a9ceca9b77fff436e
[ "Apache-2.0" ]
null
null
null
certbot-dns-sakuracloud/certbot_dns_sakuracloud/dns_sakuracloud.py
tsrivishnu/certbot
81f02e5578819220e0b4e15a9ceca9b77fff436e
[ "Apache-2.0" ]
3
2019-03-21T23:21:38.000Z
2020-06-23T20:56:56.000Z
"""DNS Authenticator for Sakura Cloud DNS.""" import logging import zope.interface from lexicon.providers import sakuracloud from certbot import interfaces from certbot.plugins import dns_common from certbot.plugins import dns_common_lexicon logger = logging.getLogger(__name__) APIKEY_URL = "https://secure.sakura.a...
35.443182
100
0.66688
92850dbe84600464c60a0a1067ed32bdb4a5b129
8,817
py
Python
sockeye/translate.py
Izecson/sockeye-1.16.6
f84044d4a64b2bcf744ccd4f94b16f8133d1f383
[ "Apache-2.0" ]
null
null
null
sockeye/translate.py
Izecson/sockeye-1.16.6
f84044d4a64b2bcf744ccd4f94b16f8133d1f383
[ "Apache-2.0" ]
null
null
null
sockeye/translate.py
Izecson/sockeye-1.16.6
f84044d4a64b2bcf744ccd4f94b16f8133d1f383
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License # is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
44.085
133
0.623908
9d9ec0f5398fcf58bb758fad3f7d5ea76f3e3575
3,097
py
Python
extras/test/arduino_format_test.py
MalcolmSlaney/audio-to-tactile
8c1fa37509aa53307f24dc7d54e99f730a8bcc1f
[ "Apache-2.0" ]
64
2019-05-03T17:33:07.000Z
2022-03-30T17:19:05.000Z
extras/test/arduino_format_test.py
MalcolmSlaney/audio-to-tactile
8c1fa37509aa53307f24dc7d54e99f730a8bcc1f
[ "Apache-2.0" ]
null
null
null
extras/test/arduino_format_test.py
MalcolmSlaney/audio-to-tactile
8c1fa37509aa53307f24dc7d54e99f730a8bcc1f
[ "Apache-2.0" ]
10
2019-05-17T15:03:34.000Z
2022-01-29T08:52:03.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.869048
79
0.694866
5cda78ebb9326feb67b4ce18fdfc61a624995d10
1,701
py
Python
awsrun/utils/curry.py
veb61/eec-289-ucd
fabd9c01c5e9dfaf869fe22e537fe08aafd4e622
[ "MIT" ]
null
null
null
awsrun/utils/curry.py
veb61/eec-289-ucd
fabd9c01c5e9dfaf869fe22e537fe08aafd4e622
[ "MIT" ]
null
null
null
awsrun/utils/curry.py
veb61/eec-289-ucd
fabd9c01c5e9dfaf869fe22e537fe08aafd4e622
[ "MIT" ]
1
2021-10-07T23:10:33.000Z
2021-10-07T23:10:33.000Z
from __future__ import annotations from typing import Callable, Generic, TypeVar, Union ReturnType = TypeVar("ReturnType") def curry(num_args: int) -> Callable[[Callable[..., ReturnType]], Partial[ReturnType]]: def decorator(fn: Callable[..., ReturnType]): return Partial(num_args, fn) return decorat...
32.711538
92
0.604938
4bb493dfbdce8aadd53c9b5199998cd56e4ab909
97
py
Python
pacote-download/pythonProject/exercicios_python_guanabara/teste.py
oliveirajonathas/python_estudos
28921672d7e5d0866030c45b077a28998905f752
[ "MIT" ]
null
null
null
pacote-download/pythonProject/exercicios_python_guanabara/teste.py
oliveirajonathas/python_estudos
28921672d7e5d0866030c45b077a28998905f752
[ "MIT" ]
null
null
null
pacote-download/pythonProject/exercicios_python_guanabara/teste.py
oliveirajonathas/python_estudos
28921672d7e5d0866030c45b077a28998905f752
[ "MIT" ]
null
null
null
tupla = (1, 5, 7, 3) print(sorted(tupla)) print(tupla.index(5)) val = list(range(1,5)) print(val)
19.4
22
0.649485
dbdadcbadfd6a1d07d6846d7dfe2d93d6dfaef49
1,416
py
Python
tests/conftest.py
tgrx/whalekiller
3ba6a297ae47ca853c438fa0dd950e7eff954f6f
[ "MIT" ]
1
2021-11-09T18:05:11.000Z
2021-11-09T18:05:11.000Z
tests/conftest.py
tgrx/whalekiller
3ba6a297ae47ca853c438fa0dd950e7eff954f6f
[ "MIT" ]
6
2021-02-18T21:47:25.000Z
2021-02-23T04:45:28.000Z
tests/conftest.py
tgrx/whalekiller
3ba6a297ae47ca853c438fa0dd950e7eff954f6f
[ "MIT" ]
null
null
null
import asyncio import pytest from framework.config import settings from framework.dirs import DIR_TESTS_ASSETS from main.actions import reset_cloud from main.actions import setup_cloud from main.schemas import CloudConfigSchema @pytest.yield_fixture(scope="session") def event_loop(): loop = asyncio.get_event_lo...
22.47619
66
0.757768
b0c0b00296c0e533d7093cb76f16ce98cb1be8c5
3,289
py
Python
test_junkie/reporter/xml_reporter.py
Rdvp1514/test_junkie
9246a33abc9ac8d6584781dcbe95e1093507aa8f
[ "MIT" ]
72
2018-10-25T18:32:42.000Z
2022-02-02T03:03:09.000Z
test_junkie/reporter/xml_reporter.py
Rdvp1514/test_junkie
9246a33abc9ac8d6584781dcbe95e1093507aa8f
[ "MIT" ]
41
2018-12-13T22:30:35.000Z
2021-11-04T09:08:49.000Z
test_junkie/reporter/xml_reporter.py
Rdvp1514/test_junkie
9246a33abc9ac8d6584781dcbe95e1093507aa8f
[ "MIT" ]
10
2019-04-05T10:51:11.000Z
2021-12-06T15:18:56.000Z
import traceback from test_junkie.constants import TestCategory from test_junkie.debugger import LogJunkie class XmlReporter: @staticmethod def create_xml_report(write_file, suites): def __update_tag_stats(tag, status): tag.set("tests", str(int(suite.get("tests")) + 1)) if ...
45.054795
118
0.461843
4d38059908fcefcdeb6c1a2f9a2ca8c56e993c6b
5,431
py
Python
src/utils/logger.py
Neptune1201/ASIM
9f3fefa40ef6a84f531f3fd48f34ecce8080650a
[ "Apache-2.0" ]
3
2021-10-04T03:29:39.000Z
2022-02-04T17:45:28.000Z
src/utils/logger.py
Neptune1201/ASIM
9f3fefa40ef6a84f531f3fd48f34ecce8080650a
[ "Apache-2.0" ]
1
2021-10-05T12:45:38.000Z
2021-10-05T12:45:38.000Z
src/utils/logger.py
Neptune1201/ASIM
9f3fefa40ef6a84f531f3fd48f34ecce8080650a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright (C) 2019 Alibaba Group Holding Limited # # 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 app...
37.19863
119
0.598048
f82df9c2be0bba5a28598f3574c16491485dc2a0
2,003
py
Python
src/masonite/tests/TestCommand.py
cercos/masonite
f7f220efa7fae833683e9f07ce13c3795a87d3b8
[ "MIT" ]
1,816
2018-02-14T01:59:51.000Z
2022-03-31T17:09:20.000Z
src/masonite/tests/TestCommand.py
cercos/masonite
f7f220efa7fae833683e9f07ce13c3795a87d3b8
[ "MIT" ]
340
2018-02-11T00:27:26.000Z
2022-03-21T12:00:24.000Z
src/masonite/tests/TestCommand.py
cercos/masonite
f7f220efa7fae833683e9f07ce13c3795a87d3b8
[ "MIT" ]
144
2018-03-18T00:08:16.000Z
2022-02-26T01:51:58.000Z
from cleo import CommandTester class TestCommand: """This class allows us to test craft commands and asserts command outputs.""" def __init__(self, application): self.application = application def run(self, command, arguments_str=""): command = self.application.make("commands").command_a...
33.949153
90
0.651523
3e5eb03afe903a53f3019873fe316f3f2f1da469
1,073
py
Python
setup.py
foolscap/pocket
77a9c82574feb05cce5a93641936793ffb28cc93
[ "BSD-3-Clause" ]
1
2015-05-26T09:27:31.000Z
2015-05-26T09:27:31.000Z
setup.py
foolscap/pocket
77a9c82574feb05cce5a93641936793ffb28cc93
[ "BSD-3-Clause" ]
null
null
null
setup.py
foolscap/pocket
77a9c82574feb05cce5a93641936793ffb28cc93
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup setup( name = "pocket", # pip install pocket description = "api wrapper for getpocket.com", #long_description=open('README.md', 'rt').read(), # version # third part for minor release # second when api changes # first when it becomes stable someday version =...
25.547619
78
0.667288
04b75304988c1e9e1d00577601c092d5d208480a
5,260
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/operations/_usages_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/operations/_usages_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/operations/_usages_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.576271
134
0.649049
29b7bd8da188f29cd2235f51cec163d04917d8d9
634
py
Python
examples/show_sample_data.py
dstansby/arboretum
697598d600312ae527a1fb3f08021307feeeb571
[ "MIT" ]
3
2021-12-29T16:48:00.000Z
2022-03-31T09:19:55.000Z
examples/show_sample_data.py
dstansby/arboretum
697598d600312ae527a1fb3f08021307feeeb571
[ "MIT" ]
25
2021-11-30T11:29:06.000Z
2022-03-31T13:07:13.000Z
examples/show_sample_data.py
dstansby/arboretum
697598d600312ae527a1fb3f08021307feeeb571
[ "MIT" ]
4
2021-12-21T00:51:26.000Z
2022-03-09T15:55:45.000Z
""" Load and show sample data ========================= This example: - loads some sample data - adds the data to a napari viewer - loads the arboretum plugin - opens the napari viewer """ import napari from napari_arboretum import load_sample_data track, segmentation = load_sample_data() viewer = napari.Viewer() vi...
23.481481
74
0.728707
940d5f01c21e94ce013693ff5c93a1e1f15a2b2b
3,174
py
Python
pitcher/people/forms.py
Mantongash/pitcher
6b1d7d8c19f39ad0f25c505d01ce15190fbe5e4b
[ "Unlicense" ]
null
null
null
pitcher/people/forms.py
Mantongash/pitcher
6b1d7d8c19f39ad0f25c505d01ce15190fbe5e4b
[ "Unlicense" ]
7
2020-06-05T20:27:21.000Z
2022-01-13T02:03:41.000Z
pitcher/people/forms.py
Mantongash/pitcher
6b1d7d8c19f39ad0f25c505d01ce15190fbe5e4b
[ "Unlicense" ]
null
null
null
from flask_wtf import FlaskForm from flask_login import current_user from wtforms import StringField, PasswordField, SubmitField, BooleanField, FileField from wtforms.validators import DataRequired, Email, EqualTo, ValidationError, Length from flask_wtf.file import FileAllowed from pitcher.models import User class Re...
40.692308
84
0.66005
6c4601ddaddcbdee53882e0541f0dd367517aa9e
58,648
py
Python
Lib/test/test_xmlrpc.py
ErikBjare/cpython
b68431fadb3150134ac6ccbf501cdfeaf4c75678
[ "0BSD" ]
2
2022-03-27T14:52:48.000Z
2022-03-27T17:35:22.000Z
Lib/test/test_xmlrpc.py
dalakatt/cpython
2f49b97cc5426087b46515254b9a97a22ee8c807
[ "0BSD" ]
8
2022-01-07T11:31:11.000Z
2022-03-04T00:07:16.000Z
Lib/test/test_xmlrpc.py
dalakatt/cpython
2f49b97cc5426087b46515254b9a97a22ee8c807
[ "0BSD" ]
1
2022-03-27T18:34:54.000Z
2022-03-27T18:34:54.000Z
import base64 import datetime import decimal import sys import time import unittest from unittest import mock import xmlrpc.client as xmlrpclib import xmlrpc.server import http.client import http, http.server import socket import threading import re import io import contextlib from test import support from test.support...
38.686016
87
0.618265
f6b5b720842385a7b51cb3a835edbdd142a0c9c2
545
py
Python
server/manage.py
ewen/s3-nginx-blog-post
91ff11eacb832a78affd4859be6d566716bb29d9
[ "MIT" ]
4
2019-05-23T10:20:55.000Z
2021-10-02T08:17:55.000Z
server/manage.py
ewen/s3-nginx-blog-post
91ff11eacb832a78affd4859be6d566716bb29d9
[ "MIT" ]
1
2018-03-09T23:26:14.000Z
2018-03-12T07:49:41.000Z
server/manage.py
ewen/s3-nginx-blog-post
91ff11eacb832a78affd4859be6d566716bb29d9
[ "MIT" ]
1
2019-10-24T19:48:51.000Z
2019-10-24T19:48:51.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "s3_nginx_test.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django...
34.0625
77
0.689908
bd7ebb6385380fdbb8018291417d0843da668628
278
py
Python
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/08.01-Functions.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/08.01-Functions.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/08.01-Functions.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
def greet(): print("Hello") print("How do you do?") def greet2(name): print("hello", name) print("How do you do?") def add_numbers(n1, n2): result = n1 + n2 return result greet() greet() greet() # greet2("Jack") rs = add_numbers(6.7, 5.4) print(rs)
13.238095
27
0.589928
0394a9836014dd7af06e635a94d975818820bdd7
24,479
py
Python
ferenda/facet.py
redhog/ferenda
6935e26fdc63adc68b8e852292456b8d9155b1f7
[ "BSD-2-Clause" ]
18
2015-03-12T17:42:44.000Z
2021-12-27T10:32:22.000Z
ferenda/facet.py
redhog/ferenda
6935e26fdc63adc68b8e852292456b8d9155b1f7
[ "BSD-2-Clause" ]
13
2016-01-27T10:19:07.000Z
2021-12-13T20:24:36.000Z
ferenda/facet.py
redhog/ferenda
6935e26fdc63adc68b8e852292456b8d9155b1f7
[ "BSD-2-Clause" ]
6
2016-11-28T15:41:29.000Z
2022-01-08T11:16:48.000Z
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, unicode_literals, print_function) from builtins import * from datetime import date, datetime from rdflib import URIRef, Namespace from rdflib.namespace import RDF, RDFS, DC, SKOS, FOAF, DCTERMS SCHEMA = Namespace("http:...
45.247689
137
0.536296
383e21e7b51acc53c483ed3ff1c5303935ea2bf7
9,632
py
Python
nni/retiarii/nn/pytorch/component.py
Davidxswang/nni
270a36264515f1576071f07e741fccd5333434ff
[ "MIT" ]
1
2020-12-14T08:27:04.000Z
2020-12-14T08:27:04.000Z
nni/retiarii/nn/pytorch/component.py
Davidxswang/nni
270a36264515f1576071f07e741fccd5333434ff
[ "MIT" ]
12
2021-08-21T08:43:09.000Z
2022-02-22T07:51:53.000Z
nni/retiarii/nn/pytorch/component.py
Davidxswang/nni
270a36264515f1576071f07e741fccd5333434ff
[ "MIT" ]
1
2021-07-01T07:04:28.000Z
2021-07-01T07:04:28.000Z
import copy from collections import OrderedDict from typing import Callable, List, Union, Tuple, Optional import torch import torch.nn as nn from .api import LayerChoice, InputChoice from .nn import ModuleList from .nasbench101 import NasBench101Cell, NasBench101Mutator from .utils import generate_new_label, get_fix...
42.808889
132
0.637978
cb91181e424805d84ec5e09fd8264efb5889899c
3,459
py
Python
frappe/custom/doctype/custom_field/custom_field.py
rohitwaghchaure/frappe
9414bec421496eab66ea96ff8199d388bfca019c
[ "MIT" ]
2
2021-08-28T06:08:17.000Z
2021-09-06T10:41:43.000Z
frappe/custom/doctype/custom_field/custom_field.py
rohitwaghchaure/frappe
9414bec421496eab66ea96ff8199d388bfca019c
[ "MIT" ]
null
null
null
frappe/custom/doctype/custom_field/custom_field.py
rohitwaghchaure/frappe
9414bec421496eab66ea96ff8199d388bfca019c
[ "MIT" ]
1
2018-03-21T16:13:12.000Z
2018-03-21T16:13:12.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe import json from frappe.utils import cstr from frappe import _ from frappe.model.document import Document class CustomField(Document): def autoname(self): self.s...
32.632075
116
0.716103
587e5c56288ed24a71d62f73ebe89a7d326cde96
1,520
py
Python
hmkit/autoapi/properties/value/position.py
highmobility/hmkit-python
2ac06ed021b57014f5290eaece19a9399d52df48
[ "MIT" ]
1
2021-08-01T20:35:57.000Z
2021-08-01T20:35:57.000Z
hmkit/autoapi/properties/value/position.py
highmobility/hmkit-python
2ac06ed021b57014f5290eaece19a9399d52df48
[ "MIT" ]
null
null
null
hmkit/autoapi/properties/value/position.py
highmobility/hmkit-python
2ac06ed021b57014f5290eaece19a9399d52df48
[ "MIT" ]
null
null
null
""" The MIT License Copyright (c) 2014- High-Mobility GmbH (https://high-mobility.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights...
31.020408
77
0.745395
d3849f0d902e5734e919993f62231ca496ec8415
2,565
py
Python
setup.py
minrk/tornado
a4279d24a9cd7dacfa3f9aa410a5272ed26ba8bb
[ "CC-BY-3.0", "Apache-2.0" ]
null
null
null
setup.py
minrk/tornado
a4279d24a9cd7dacfa3f9aa410a5272ed26ba8bb
[ "CC-BY-3.0", "Apache-2.0" ]
null
null
null
setup.py
minrk/tornado
a4279d24a9cd7dacfa3f9aa410a5272ed26ba8bb
[ "CC-BY-3.0", "Apache-2.0" ]
1
2017-07-26T10:34:41.000Z
2017-07-26T10:34:41.000Z
#!/usr/bin/env python # # Copyright 2009 Facebook # # 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.136986
125
0.655361
9b434b3d9c64e62bbc1d689f1247e9321ecfd2b7
6,330
py
Python
flask_jwt_extended/tokens.py
Freshwood/flask-jwt-extended
5485fce359cfe0f9713364b577d2aa4b521c5ea8
[ "MIT" ]
null
null
null
flask_jwt_extended/tokens.py
Freshwood/flask-jwt-extended
5485fce359cfe0f9713364b577d2aa4b521c5ea8
[ "MIT" ]
null
null
null
flask_jwt_extended/tokens.py
Freshwood/flask-jwt-extended
5485fce359cfe0f9713364b577d2aa4b521c5ea8
[ "MIT" ]
null
null
null
import datetime import uuid from calendar import timegm import jwt from werkzeug.security import safe_str_cmp from flask_jwt_extended.exceptions import JWTDecodeError, CSRFError def _create_csrf_token(): return str(uuid.uuid4()) def _encode_jwt(additional_token_data, expires_delta, secret, algorithm, ...
39.074074
87
0.663981
d7238bb1945d00b86cec29999ad9796cc5ac2fbb
1,288
py
Python
jigs/trio_mapper/source/sync_openmm.py
gitter-badger/wepy-1
9bc619aeae178ad5d10f658fae2abfd2c7aeb18a
[ "MIT" ]
35
2017-08-22T15:39:06.000Z
2022-03-20T15:17:52.000Z
jigs/trio_mapper/source/sync_openmm.py
gitter-badger/wepy-1
9bc619aeae178ad5d10f658fae2abfd2c7aeb18a
[ "MIT" ]
33
2017-10-02T22:04:45.000Z
2022-03-02T22:19:08.000Z
jigs/trio_mapper/source/sync_openmm.py
stxinsite/wepy
352d4c1316b20e839aae8824eedd66f0f2d0b456
[ "MIT" ]
17
2018-07-14T15:33:30.000Z
2022-01-18T16:30:55.000Z
from openmm_systems.test_systems import ( LennardJonesPair, LysozymeImplicit, ) import simtk.openmm.app as omma import simtk.openmm as omm import simtk.unit as unit from wepy.runners.openmm import gen_sim_state import time def create_sim(): test_sys = LysozymeImplicit() integrator = omm.LangevinInt...
19.815385
79
0.631211
9d720f0379c37b62132070891659e9d63863d5bf
786
py
Python
predict.py
AR-Elbers/Heroku-Demo
81af0c05bd0fac88df2d7fd58917d42accb29d47
[ "MIT" ]
null
null
null
predict.py
AR-Elbers/Heroku-Demo
81af0c05bd0fac88df2d7fd58917d42accb29d47
[ "MIT" ]
null
null
null
predict.py
AR-Elbers/Heroku-Demo
81af0c05bd0fac88df2d7fd58917d42accb29d47
[ "MIT" ]
null
null
null
from flask_restful import Api, Resource, reqparse import numpy as np from sklearn.externals import joblib # Load prebuilt model IRIS_MODEL = joblib.load('iris.smd') # Create predict method class Predict(Resource): @staticmethod def post(): parser = reqparse.RequestParser() parser.add_argument('...
34.173913
60
0.678117
9311916fe59869938397de6da4b455270ae79347
1,046
py
Python
src/cli_client.py
Jonnyneill/talking-clock
e95020ecc2f13058ac09294f1425b1ee840ac25e
[ "MIT" ]
null
null
null
src/cli_client.py
Jonnyneill/talking-clock
e95020ecc2f13058ac09294f1425b1ee840ac25e
[ "MIT" ]
null
null
null
src/cli_client.py
Jonnyneill/talking-clock
e95020ecc2f13058ac09294f1425b1ee840ac25e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import re import sys from datetime import datetime from clock import talk def main(): """ Convert numeric time to human time and write the result to std out """ parser = argparse.ArgumentParser(description="Convert a numeric time to words") parser.add_argume...
27.526316
119
0.656788
95905bef888b0d487fdacfebaf40de1a8237dbea
2,006
py
Python
services/workshop/crapi/mechanic/models.py
nonamesec/crAPI
5863ffad52bb93248587ad1999a693220f236501
[ "Apache-2.0", "0BSD" ]
null
null
null
services/workshop/crapi/mechanic/models.py
nonamesec/crAPI
5863ffad52bb93248587ad1999a693220f236501
[ "Apache-2.0", "0BSD" ]
null
null
null
services/workshop/crapi/mechanic/models.py
nonamesec/crAPI
5863ffad52bb93248587ad1999a693220f236501
[ "Apache-2.0", "0BSD" ]
null
null
null
# Copyright 2020 Traceable, 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 w...
29.5
96
0.721336
dfd84d3d31936e66bdbac8335c6eccd13beb949f
8,646
py
Python
octavia/api/v1/controllers/l7policy.py
BeaconFramework/Distributor
c9f8737063263ca69365679c8b76331766d63191
[ "Apache-2.0" ]
1
2019-01-11T06:20:25.000Z
2019-01-11T06:20:25.000Z
octavia/api/v1/controllers/l7policy.py
BeaconFramework/Distributor
c9f8737063263ca69365679c8b76331766d63191
[ "Apache-2.0" ]
null
null
null
octavia/api/v1/controllers/l7policy.py
BeaconFramework/Distributor
c9f8737063263ca69365679c8b76331766d63191
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Blue Box, an IBM Company # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
46.235294
78
0.644344
8ad10722bb7e89fa9c4da5971c99d44493a47f65
730
py
Python
adv/alex.py
Zeiin/dl
bce5e239dc751baa9266aa5adbe7c8d078d8a9ac
[ "Apache-2.0" ]
null
null
null
adv/alex.py
Zeiin/dl
bce5e239dc751baa9266aa5adbe7c8d078d8a9ac
[ "Apache-2.0" ]
null
null
null
adv/alex.py
Zeiin/dl
bce5e239dc751baa9266aa5adbe7c8d078d8a9ac
[ "Apache-2.0" ]
null
null
null
from core.advbase import * from slot.a import * from slot.d import * def module(): return Alex class Alex(Adv): comment = 'not consider bk boost of her s2' a1 = ('s',0.35,'hp100') a3 = ('sp',0.05) conf = {} conf['slots.a'] = Twinfold_Bonds()+The_Plaguebringer() conf['slots.poison.a'] = co...
23.548387
58
0.571233
cb4b7cbd5bd134f807594c2194e24c8fe6207294
686
py
Python
src/zope/session/__init__.py
zopefoundation/zope.session
22afb6348ba3c375ff7ddd56c105f1a7a1ea4439
[ "ZPL-2.1" ]
null
null
null
src/zope/session/__init__.py
zopefoundation/zope.session
22afb6348ba3c375ff7ddd56c105f1a7a1ea4439
[ "ZPL-2.1" ]
13
2015-06-02T17:10:25.000Z
2021-02-20T12:14:56.000Z
src/zope/session/__init__.py
zopefoundation/zope.session
22afb6348ba3c375ff7ddd56c105f1a7a1ea4439
[ "ZPL-2.1" ]
2
2015-04-03T09:42:26.000Z
2015-05-28T16:37:14.000Z
############################################################################## # # Copyright (c) 2004 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
42.875
78
0.590379
4f4ce2d19a1fc7b4023308e606e639c9c5a65a63
20,549
py
Python
flux_mito/model_62.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_mito/model_62.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_mito/model_62.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', '...
95.134259
798
0.804127
e3871e59d5e356ed2bdbcdfc6d4d6e2ba4c939b2
91
py
Python
satwik.py
lamination123/fossotober
b81e6a7932b2cf5f8e8848d075982377bd95cbed
[ "MIT" ]
null
null
null
satwik.py
lamination123/fossotober
b81e6a7932b2cf5f8e8848d075982377bd95cbed
[ "MIT" ]
null
null
null
satwik.py
lamination123/fossotober
b81e6a7932b2cf5f8e8848d075982377bd95cbed
[ "MIT" ]
null
null
null
print("satwik") print("roll no: AM.EN.U4CSE19356") print("batch:s1-cse-d") print("bigbash")
22.75
34
0.703297
d6a40baae4f1cce4a8ac30995872ef829b1d306f
50,494
py
Python
menpo/shape/pointcloud.py
eosulliv/menpo
4c589a9c3ba103b98e6eb53bb12cbd692ccd4a9e
[ "BSD-3-Clause" ]
null
null
null
menpo/shape/pointcloud.py
eosulliv/menpo
4c589a9c3ba103b98e6eb53bb12cbd692ccd4a9e
[ "BSD-3-Clause" ]
null
null
null
menpo/shape/pointcloud.py
eosulliv/menpo
4c589a9c3ba103b98e6eb53bb12cbd692ccd4a9e
[ "BSD-3-Clause" ]
null
null
null
import numbers import warnings from warnings import warn import numpy as np try: import collections.abc as collections_abc except ImportError: import collections as collections_abc from scipy.sparse import csr_matrix from scipy.spatial.distance import cdist from menpo.transform import WithDims from menpo.vis...
36.118741
88
0.575455
b9602045e75f1071a0863f078b81897c2c3784bb
1,481
py
Python
py_yr/weatherdata/forecast/tabular/time/time.py
Matmonsen/py-yr
2e729959ae9fe334686971c6f62ccb0bf2d8b9a4
[ "MIT" ]
null
null
null
py_yr/weatherdata/forecast/tabular/time/time.py
Matmonsen/py-yr
2e729959ae9fe334686971c6f62ccb0bf2d8b9a4
[ "MIT" ]
null
null
null
py_yr/weatherdata/forecast/tabular/time/time.py
Matmonsen/py-yr
2e729959ae9fe334686971c6f62ccb0bf2d8b9a4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from py_yr import utilities from .symbol import Symbol from .precipitation import Precipitation from .winddirection import WindDirection from .windspeed import WindSpeed from .temperature import Temperature from .pressure import Pressure class Time(object): def __init__(self, time): ...
40.027027
114
0.584065
314b81f2d6eb22cd7745fa83cf8cfe3b841ec879
1,536
py
Python
actions/acoslib/action.py
StackStorm-Exchange/acos
485ab159eb98e7b376a804c651336a5912342065
[ "Apache-2.0" ]
2
2017-07-11T10:43:59.000Z
2017-09-13T03:03:37.000Z
actions/acoslib/action.py
StackStorm-Exchange/acos
485ab159eb98e7b376a804c651336a5912342065
[ "Apache-2.0" ]
11
2017-05-09T11:54:25.000Z
2022-02-24T23:36:04.000Z
actions/acoslib/action.py
StackStorm-Exchange/acos
485ab159eb98e7b376a804c651336a5912342065
[ "Apache-2.0" ]
3
2017-05-07T13:17:58.000Z
2021-01-28T17:33:47.000Z
import acos_client as acos import logging from st2common.runners.base_action import Action class BaseAction(Action): DEFAULT_AXAPI_VERSION_STR = 'v3.0' DEFAULT_AXAPI_VERSION = acos.AXAPI_30 # These are the parameters for acos pack, not used by the ACOS Client PARAMS_FOR_PACK = ['appliance', 'action'...
32.680851
98
0.597656
5e7e44732433edeb14bddd6577762f2dd9707d92
6,902
py
Python
infoblox_netmri/api/remote/models/issue_detail_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/issue_detail_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/issue_detail_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability class IssueDetailRemote(RemoteModel): """ The issues NetMRI has identified on the network. This includes the common issue fields described below, but not fields specific to each issue type. | ``Data...
30.139738
151
0.572008
2c1bb29d57213e2713840d2d14c37a7f5f7a505f
3,856
py
Python
bfs.py
maheshreddykukunooru/Sokoban-Game
a009e00a905d29490b731c8773bf75cfcc95d48e
[ "MIT" ]
2
2020-09-22T12:56:18.000Z
2021-07-02T22:55:18.000Z
bfs.py
maheshreddykukunooru/Sokoban-Game
a009e00a905d29490b731c8773bf75cfcc95d48e
[ "MIT" ]
1
2019-04-22T14:30:54.000Z
2019-07-27T12:05:17.000Z
bfs.py
maheshreddykukunooru/Sokoban-Game
a009e00a905d29490b731c8773bf75cfcc95d48e
[ "MIT" ]
2
2019-08-02T21:05:12.000Z
2020-11-06T00:10:10.000Z
import collections import copy board=[] maxLength=0 boxRobot=[] wallsStorageSpaces=[] possibleMoves = {'U':[-1,0], 'R':[0,1],'D':[1,0],'L':[0,-1]} maxRowLength = 0 lines=0 print "Enter the board configuration:\n\n" while(1): line =raw_input() if line!="": lines+=1 board.append(line) if len(line)>maxRowLengt...
25.202614
94
0.670384
ad1961f60d43f14250f3dedd15c38ca72c750a09
1,610
py
Python
nsd1812/devops/day03/runpb.py
MrWangwf/nsd2019
5e859b4b1926dc098d236be3720779c50d0a55fc
[ "Apache-2.0" ]
1
2019-09-19T04:53:22.000Z
2019-09-19T04:53:22.000Z
nsd1812/devops/day03/runpb.py
MrWangwf/nsd2019
5e859b4b1926dc098d236be3720779c50d0a55fc
[ "Apache-2.0" ]
null
null
null
nsd1812/devops/day03/runpb.py
MrWangwf/nsd2019
5e859b4b1926dc098d236be3720779c50d0a55fc
[ "Apache-2.0" ]
1
2021-12-28T04:26:02.000Z
2021-12-28T04:26:02.000Z
from collections import namedtuple from ansible.parsing.dataloader import DataLoader from ansible.vars.manager import VariableManager from ansible.inventory.manager import InventoryManager from ansible.executor.playbook_executor import PlaybookExecutor Options = namedtuple( 'Options', [ 'connection', ...
23.333333
74
0.638509
c5b9f297faf43b0e9d6fecde5fe39d9e9a16461e
913
py
Python
migrations/versions/28fe85a5334d_third_migration.py
Roychela/pitch-it
126a412ecc5dadc5421491c405a7e056042758b5
[ "MIT" ]
null
null
null
migrations/versions/28fe85a5334d_third_migration.py
Roychela/pitch-it
126a412ecc5dadc5421491c405a7e056042758b5
[ "MIT" ]
null
null
null
migrations/versions/28fe85a5334d_third_migration.py
Roychela/pitch-it
126a412ecc5dadc5421491c405a7e056042758b5
[ "MIT" ]
null
null
null
"""Third Migration Revision ID: 28fe85a5334d Revises: fc3137677338 Create Date: 2019-07-01 01:02:13.601778 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '28fe85a5334d' down_revision = 'fc3137677338' branch_labels = None depends_on = None def upgrade(): ...
25.361111
65
0.674699
8b98e85a07e047a8626ec3ae12f274f23bed4544
843
py
Python
httprunner/exception.py
QiChangYin/MultipleInterfaceManager
0732cbd2dc9065aa4947ab3243136450874579a4
[ "MIT" ]
null
null
null
httprunner/exception.py
QiChangYin/MultipleInterfaceManager
0732cbd2dc9065aa4947ab3243136450874579a4
[ "MIT" ]
null
null
null
httprunner/exception.py
QiChangYin/MultipleInterfaceManager
0732cbd2dc9065aa4947ab3243136450874579a4
[ "MIT" ]
1
2019-07-04T12:46:20.000Z
2019-07-04T12:46:20.000Z
# encoding: utf-8 import json try: FileNotFoundError = FileNotFoundError except NameError: FileNotFoundError = IOError try: JSONDecodeError = json.decoder.JSONDecodeError except AttributeError: JSONDecodeError = ValueError class MyBaseError(BaseException): pass class FileFormat...
16.86
51
0.720047
4b0ac1649154a5c04f3eb3eb689fc6c41fe32bd9
1,068
py
Python
ganjoor/spiders/ferdowsi/pooran.py
amirmasoud/ganjoor-crawler
a86fe379955ce854765086ab7ba0a78513d052bd
[ "MIT" ]
null
null
null
ganjoor/spiders/ferdowsi/pooran.py
amirmasoud/ganjoor-crawler
a86fe379955ce854765086ab7ba0a78513d052bd
[ "MIT" ]
null
null
null
ganjoor/spiders/ferdowsi/pooran.py
amirmasoud/ganjoor-crawler
a86fe379955ce854765086ab7ba0a78513d052bd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy class FerdosiShahnameSpider(scrapy.Spider): name = "pooran" allowed_domains = ["ganjoor.net"] start_urls = ["https://ganjoor.net/ferdousi/shahname/pooran/sh1/"] order = 1 def parse(self, response): sh = dict() sh["type"] = "masnavi" sh...
38.142857
92
0.557116
38e116f98f6a6a91828e8d25cbb0d5ceda02a516
238
py
Python
python/testData/inspections/PyCompatibilityInspection/importElement.py
GGGGGHT/intellij-community
b03adc3af56fe8b9409a5ca2c96cf98aa76a50c3
[ "Apache-2.0" ]
null
null
null
python/testData/inspections/PyCompatibilityInspection/importElement.py
GGGGGHT/intellij-community
b03adc3af56fe8b9409a5ca2c96cf98aa76a50c3
[ "Apache-2.0" ]
null
null
null
python/testData/inspections/PyCompatibilityInspection/importElement.py
GGGGGHT/intellij-community
b03adc3af56fe8b9409a5ca2c96cf98aa76a50c3
[ "Apache-2.0" ]
1
2020-10-15T05:56:42.000Z
2020-10-15T05:56:42.000Z
import <warning descr="Python versions 3.5, 3.6, 3.7, 3.8, 3.9 do not have module Bastion">Bastion</warning> from <warning descr="Python versions 2.6, 2.7 do not have module asyncio">asyncio</warning> import Queue from io import StringIO
59.5
108
0.752101
0553dfb13301cd00015f97eb827b79731ed3ccbf
5,016
py
Python
robot/sdk/AliSpeech.py
cclauss/wukong-robot
34fd54385d0c619703b23ccb8a88128ac0de3491
[ "MIT" ]
1
2019-02-21T12:47:22.000Z
2019-02-21T12:47:22.000Z
robot/sdk/AliSpeech.py
cclauss/wukong-robot
34fd54385d0c619703b23ccb8a88128ac0de3491
[ "MIT" ]
null
null
null
robot/sdk/AliSpeech.py
cclauss/wukong-robot
34fd54385d0c619703b23ccb8a88128ac0de3491
[ "MIT" ]
1
2021-03-12T01:56:25.000Z
2021-03-12T01:56:25.000Z
# -*- coding: UTF-8 -*- import http.client import urllib.parse import json from robot import utils from robot import logging import wave logger = logging.getLogger(__name__) def processGETRequest(appKey, token, voice, text, format, sampleRate) : host = 'nls-gateway.cn-shanghai.aliyuncs.com' url = 'https://' ...
35.076923
120
0.643341
6c90f68df28a21c3ad693fdacc563023d2b4fdaf
359
py
Python
finitewave/cpuwave2D/stimulation/stim_voltage_coord_2d.py
ArsOkenov/Finitewave
14274d74be824a395b47a5c53ba18188798ab70d
[ "MIT" ]
null
null
null
finitewave/cpuwave2D/stimulation/stim_voltage_coord_2d.py
ArsOkenov/Finitewave
14274d74be824a395b47a5c53ba18188798ab70d
[ "MIT" ]
null
null
null
finitewave/cpuwave2D/stimulation/stim_voltage_coord_2d.py
ArsOkenov/Finitewave
14274d74be824a395b47a5c53ba18188798ab70d
[ "MIT" ]
null
null
null
import numpy as np from finitewave.core.stimulation import Stim class StimVoltageCoord2D(Stim): def __init__(self, time, voltage, x1, x2, y1, y2): Stim.__init__(self, time, voltage=voltage) x = np.arange(x1, x2) y = np.arange(y1, y2) xx, yy = np.meshgrid(x, y) self.coords ...
27.615385
58
0.62117
be648000ea1bfec896c7228159170e16aa8338ee
8,042
py
Python
youtube_dl/extractor/letv.py
zoogaezee/youtubeDL
01de1a9d506ff51bff4100e11275557226fa8b9a
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/letv.py
zoogaezee/youtubeDL
01de1a9d506ff51bff4100e11275557226fa8b9a
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/letv.py
zoogaezee/youtubeDL
01de1a9d506ff51bff4100e11275557226fa8b9a
[ "Unlicense" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import datetime import re import time from .common import InfoExtractor from ..compat import ( compat_urllib_parse, compat_ord, ) from ..utils import ( determine_ext, ExtractorError, parse_iso8601, sanitized_Request, int_or_none, ...
33.231405
97
0.541781
8b9b52f9da47ba8ef26ddd0fff6817009ea2b00d
7,311
py
Python
autobahn/wamp/test/test_wamp_cryptosign.py
artynet/autobahn-python
7d4e8121d7949142de2b4c4e12fe92d5f8be2d36
[ "MIT" ]
1,670
2015-10-12T15:46:22.000Z
2022-03-30T22:12:53.000Z
autobahn/wamp/test/test_wamp_cryptosign.py
artynet/autobahn-python
7d4e8121d7949142de2b4c4e12fe92d5f8be2d36
[ "MIT" ]
852
2015-10-16T22:11:03.000Z
2022-03-27T07:57:01.000Z
autobahn/wamp/test/test_wamp_cryptosign.py
artynet/autobahn-python
7d4e8121d7949142de2b4c4e12fe92d5f8be2d36
[ "MIT" ]
790
2015-10-15T08:46:12.000Z
2022-03-30T12:22:13.000Z
############################################################################### # # The MIT License (MIT) # # Copyright (c) Crossbar.io Technologies GmbH # # 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 ...
39.733696
215
0.701135
4f6deeb61740a243c9e6856c1df3a5c14c664037
1,049
py
Python
readthedocs/doc_builder/constants.py
agarwalrounak/readthedocs.org
4911600c230809bd6fb3585d1903121db2928ad6
[ "MIT" ]
10
2019-05-21T03:00:40.000Z
2022-03-12T11:24:39.000Z
readthedocs/doc_builder/constants.py
agarwalrounak/readthedocs.org
4911600c230809bd6fb3585d1903121db2928ad6
[ "MIT" ]
12
2019-12-05T04:47:01.000Z
2022-01-09T00:56:58.000Z
readthedocs/doc_builder/constants.py
agarwalrounak/readthedocs.org
4911600c230809bd6fb3585d1903121db2928ad6
[ "MIT" ]
5
2019-07-08T23:45:10.000Z
2021-02-26T07:29:49.000Z
# -*- coding: utf-8 -*- """Doc build constants.""" import logging import os import re from django.conf import settings log = logging.getLogger(__name__) MKDOCS_TEMPLATE_DIR = os.path.join( settings.SITE_ROOT, 'readthedocs', 'templates', 'mkdocs', ) PDF_RE = re.compile('Output written on (.*?)') ...
22.319149
74
0.720686
65d125adeccea2d0ff8d39d8340be3e28b3bff80
1,268
py
Python
release/scripts/templates_py/gizmo_simple.py
noorbeast/blender
9dc69b3848b46f4fbf3daa3360a3b975f4e1565f
[ "Naumen", "Condor-1.1", "MS-PL" ]
365
2015-02-10T15:10:55.000Z
2022-03-03T15:50:51.000Z
release/scripts/templates_py/gizmo_simple.py
noorbeast/blender
9dc69b3848b46f4fbf3daa3360a3b975f4e1565f
[ "Naumen", "Condor-1.1", "MS-PL" ]
45
2015-01-09T15:34:20.000Z
2021-10-05T14:44:23.000Z
release/scripts/templates_py/gizmo_simple.py
noorbeast/blender
9dc69b3848b46f4fbf3daa3360a3b975f4e1565f
[ "Naumen", "Condor-1.1", "MS-PL" ]
172
2015-01-25T15:16:53.000Z
2022-01-31T08:25:36.000Z
# Example of a group that edits a single property # using the predefined gizmo arrow. # # Usage: Select a light in the 3D view and drag the arrow at it's rear # to change it's energy value. # import bpy from bpy.types import ( GizmoGroup, ) class MyLightWidgetGroup(GizmoGroup): bl_idname = "OBJECT_GGT_light_t...
26.416667
82
0.643533
e7127f6814c7ee9326b2233d8a84cf10f4bd314c
567
py
Python
scripts/experiments/data-processing/sns_settings.py
aoli-al/JQF-1
48d449c52314f17b499f24c81e3512a5b3161d0e
[ "BSD-2-Clause" ]
null
null
null
scripts/experiments/data-processing/sns_settings.py
aoli-al/JQF-1
48d449c52314f17b499f24c81e3512a5b3161d0e
[ "BSD-2-Clause" ]
null
null
null
scripts/experiments/data-processing/sns_settings.py
aoli-al/JQF-1
48d449c52314f17b499f24c81e3512a5b3161d0e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import seaborn as sns import matplotlib.pyplot as plt sns.set_style("whitegrid", {'axes.grid' : True}) sns.set_context("paper", font_scale=1.5) plt.rcParams.update({'axes.edgecolor': 'black', 'axes.linewidth': 2, 'axes.grid': True, 'grid.linestyle': ...
35.4375
84
0.659612
22e39622f7f33e1e852353bb2bfa6693e897de2b
5,579
py
Python
simulaqron/run/run.py
qfizik/SimulaQron
aadba8bb2cb31edd9fdeb2a95af844b6bd4326a9
[ "BSD-3-Clause" ]
25
2017-11-20T08:50:12.000Z
2018-07-31T19:02:19.000Z
simulaqron/run/run.py
qfizik/SimulaQron
aadba8bb2cb31edd9fdeb2a95af844b6bd4326a9
[ "BSD-3-Clause" ]
23
2017-11-21T21:47:28.000Z
2018-10-03T08:28:41.000Z
simulaqron/run/run.py
qfizik/SimulaQron
aadba8bb2cb31edd9fdeb2a95af844b6bd4326a9
[ "BSD-3-Clause" ]
13
2017-11-20T08:50:14.000Z
2018-09-01T21:44:00.000Z
import logging import os from concurrent.futures import ProcessPoolExecutor as Pool from importlib import reload from time import sleep from netqasm.logging.glob import get_netqasm_logger from netqasm.logging.output import (reset_struct_loggers, save_all_struct_loggers) from netqasm...
33.407186
117
0.673777
6fca2143dfe12d62a52c79cded836b8ffa7a4f83
26,723
py
Python
keystone/contrib/federation/utils.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/contrib/federation/utils.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/contrib/federation/utils.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
33.998728
79
0.539198
776b2537f4a8f2fb3dae86f6ac8c531eacddea54
5,075
py
Python
io_scene_halo/file_tag/import_tag.py
SamDamDing/Halo-Asset-Blender-Development-Toolset
f81aba257c73b6cbce7805d1c7e424dba77fd761
[ "Unlicense" ]
3
2020-05-04T15:58:24.000Z
2020-08-04T00:17:33.000Z
io_scene_halo/file_tag/import_tag.py
SamDamDing/Halo-Asset-Blender-Development-Toolset
f81aba257c73b6cbce7805d1c7e424dba77fd761
[ "Unlicense" ]
18
2020-05-24T07:07:55.000Z
2020-08-24T20:34:14.000Z
io_scene_halo/file_tag/import_tag.py
SamDamDing/Halo-Asset-Blender-Development-Toolset
f81aba257c73b6cbce7805d1c7e424dba77fd761
[ "Unlicense" ]
1
2020-08-13T06:33:51.000Z
2020-08-13T06:33:51.000Z
# ##### BEGIN MIT LICENSE BLOCK ##### # # MIT License # # Copyright (c) 2022 Steven Garcia # # 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 ...
42.291667
125
0.763547
61a9be4a808b180b25222cdc80214ff3897191cb
4,729
py
Python
src/backend/common/queries/tests/mobile_client_query_test.py
770352/the-blue-alliance
af70d2e9f8fc3642fe939e928d0729db3a9b4cca
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
src/backend/common/queries/tests/mobile_client_query_test.py
770352/the-blue-alliance
af70d2e9f8fc3642fe939e928d0729db3a9b4cca
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
src/backend/common/queries/tests/mobile_client_query_test.py
ZachOrr/the-blue-alliance
b9a2e6e07374fb12c70f8fae1948bfe90e34adfe
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
from typing import Callable, List, Optional import pytest from google.appengine.ext import ndb from backend.common.consts.client_type import ClientType from backend.common.models.account import Account from backend.common.models.mobile_client import MobileClient from backend.common.queries.mobile_client_query import ...
35.825758
129
0.635229
34089daa94f4862ae13b7effcfff88a72692ea5c
104,315
py
Python
minio/api.py
cbows/minio-py
cfd711d0594b5885d5cdd6da94527a69b3d5b646
[ "Apache-2.0" ]
null
null
null
minio/api.py
cbows/minio-py
cfd711d0594b5885d5cdd6da94527a69b3d5b646
[ "Apache-2.0" ]
null
null
null
minio/api.py
cbows/minio-py
cfd711d0594b5885d5cdd6da94527a69b3d5b646
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # MinIO Python Library for Amazon S3 Compatible Cloud Storage, (C) # 2015, 2016, 2017 MinIO, 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.ap...
36.321379
79
0.55088
7d0f2eae4ff3614d4d3284ac51a58fb9dc37e3a1
125
py
Python
djangoserver/src/companies/admin.py
Higgins723/web-homework
f10d33fd6c5dface9350f95dab8ba2dcc7c9660f
[ "MIT" ]
null
null
null
djangoserver/src/companies/admin.py
Higgins723/web-homework
f10d33fd6c5dface9350f95dab8ba2dcc7c9660f
[ "MIT" ]
null
null
null
djangoserver/src/companies/admin.py
Higgins723/web-homework
f10d33fd6c5dface9350f95dab8ba2dcc7c9660f
[ "MIT" ]
1
2022-01-19T06:55:41.000Z
2022-01-19T06:55:41.000Z
from django.contrib import admin from .models import Companies # Register your models here. admin.site.register(Companies)
17.857143
32
0.808
d819a766df10675ab1a886a3bea0c2f0ac9ee236
571
py
Python
shadrus/article/migrations/0005_comments_comments_from.py
Timurdov/bionicprojectpython
4bec61e43b35733d2281928771088b8df420e4ea
[ "Apache-2.0" ]
null
null
null
shadrus/article/migrations/0005_comments_comments_from.py
Timurdov/bionicprojectpython
4bec61e43b35733d2281928771088b8df420e4ea
[ "Apache-2.0" ]
null
null
null
shadrus/article/migrations/0005_comments_comments_from.py
Timurdov/bionicprojectpython
4bec61e43b35733d2281928771088b8df420e4ea
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('article', '0004_auto_20150217_1539'), ...
24.826087
76
0.654991
afe03611890cb1ef091505d42b0ff8b51507f342
8,142
py
Python
hojehatransportes/hat/feeds.py
jpgneves/hojehatransportes
00913462d997d6c1aabfa3b8292072c9f928939a
[ "MIT" ]
null
null
null
hojehatransportes/hat/feeds.py
jpgneves/hojehatransportes
00913462d997d6c1aabfa3b8292072c9f928939a
[ "MIT" ]
1
2015-12-14T06:40:15.000Z
2015-12-14T06:40:15.000Z
hojehatransportes/hat/feeds.py
jpgneves/hojehatransportes
00913462d997d6c1aabfa3b8292072c9f928939a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.utils import feedgenerator, tzinfo from django.utils.encoding import force_unicode, iri_to_uri, smart_unicode from django.template import loader, TemplateDoesNotExist, RequestContext from django.conf import settings from django.contrib.sites.models import Site, RequestSite from djan...
39.524272
147
0.633997
c4b236bb7a8d9b3bab0b1123b6f212e3fb0e7d10
5,118
py
Python
pytorch/main.py
dberga/deep_utils
3ad59cb225a58021e1abbdc8a5b867023e2bcd9d
[ "Apache-2.0" ]
null
null
null
pytorch/main.py
dberga/deep_utils
3ad59cb225a58021e1abbdc8a5b867023e2bcd9d
[ "Apache-2.0" ]
null
null
null
pytorch/main.py
dberga/deep_utils
3ad59cb225a58021e1abbdc8a5b867023e2bcd9d
[ "Apache-2.0" ]
null
null
null
#wget https://s3.amazonaws.com/content.udacity-data.com/nd089/flower_data.tar.gz #tar -xvf flower_data.tar.gz flowers #code adapted from https://github.com/Muhammad-MujtabaSaeed/102-Flowers-Classification/blob/master/102_Flowers_classification.ipynb import torch from torch import nn, optim from torch.optim import ...
35.541667
155
0.617624
e3f7e7e2e1279a68fb92616082db7c9ba04241b4
562
py
Python
lowfat/utils.py
elena-kolomeets/lowfat
f7647f5cd12519f722e41808157a96cc3e37b6ce
[ "BSD-3-Clause" ]
6
2017-02-23T16:44:36.000Z
2019-03-18T11:39:03.000Z
lowfat/utils.py
elena-kolomeets/lowfat
f7647f5cd12519f722e41808157a96cc3e37b6ce
[ "BSD-3-Clause" ]
286
2017-02-07T15:00:41.000Z
2022-03-08T12:56:09.000Z
lowfat/utils.py
elena-kolomeets/lowfat
f7647f5cd12519f722e41808157a96cc3e37b6ce
[ "BSD-3-Clause" ]
2
2018-06-19T12:38:08.000Z
2020-11-23T12:15:08.000Z
""" This module contains small utility classes and functions which do not clearly belong to one part of the project. """ import enum class ChoicesEnum(enum.Enum): """ Abstract Enum class to represent values in a Django CharField choices. """ @classmethod def choices(cls): """ Get ...
26.761905
112
0.658363
fbf6855d0b32768ac43601a056347d6f67bce3aa
1,888
py
Python
ipyx/__init__.py
davidbrochart/ipyx
bb8a8dbdeb3443d9a76949b92fe03e98802ddcfe
[ "BSD-3-Clause" ]
3
2021-05-23T05:16:44.000Z
2021-08-25T05:19:50.000Z
ipyx/__init__.py
davidbrochart/ipyx
bb8a8dbdeb3443d9a76949b92fe03e98802ddcfe
[ "BSD-3-Clause" ]
6
2021-05-23T09:52:08.000Z
2021-12-19T20:18:18.000Z
ipyx/__init__.py
davidbrochart/ipyx
bb8a8dbdeb3443d9a76949b92fe03e98802ddcfe
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Copyright (c) David Brochart. # Distributed under the terms of the Modified BSD License. from .x import X # noqa from .f import F # noqa from ._version import __version__, version_info # noqa def _jupyter_labextension_paths(): """Called by Jupyter Lab Server to detect ...
33.714286
88
0.663665
a2476a62ce82b865eff5d0b8d8d1da02baaf8c93
1,997
py
Python
Internet-technology/project2/http_protocol/response.py
xuwhao/neu-cs-master
6c6f3290c56170bf66353c8501092dd6401676b8
[ "MIT" ]
1
2021-11-21T08:42:02.000Z
2021-11-21T08:42:02.000Z
Internet-technology/project2/http_protocol/response.py
xuwhao/neu-cs-master
6c6f3290c56170bf66353c8501092dd6401676b8
[ "MIT" ]
null
null
null
Internet-technology/project2/http_protocol/response.py
xuwhao/neu-cs-master
6c6f3290c56170bf66353c8501092dd6401676b8
[ "MIT" ]
null
null
null
""" HTTP response. """ import logging from status_codes import HTTP_STATUS_CODES Log = logging.getLogger('StaticHttpServer.response') class HttpResponse(object): def __init__(self, protocol, status_code, range=None): assert status_code in HTTP_STATUS_CODES, 'Unknown status code.' self.protocol...
28.528571
91
0.601903
3d90cf6b9f4896e58e73893137623034b81204d6
4,421
py
Python
scripts/twitter_streaming.py
aws-samples/finding-missing-persons-using-social-media-and-amazon-rekognition
1225a51ddf7e2eb8c4316a9fca3d5ec24e9c61a0
[ "MIT-0" ]
52
2017-11-27T18:51:25.000Z
2022-01-02T13:49:21.000Z
scripts/twitter_streaming.py
aws-samples/finding-missing-persons-using-social-media-and-amazon-rekognition
1225a51ddf7e2eb8c4316a9fca3d5ec24e9c61a0
[ "MIT-0" ]
1
2020-11-30T20:03:36.000Z
2020-11-30T20:03:36.000Z
scripts/twitter_streaming.py
aws-samples/finding-missing-persons-using-social-media-and-amazon-rekognition
1225a51ddf7e2eb8c4316a9fca3d5ec24e9c61a0
[ "MIT-0" ]
31
2017-11-27T19:28:39.000Z
2021-12-12T12:18:39.000Z
import json import boto3 import requests from textblob import TextBlob from ConfigParser import SafeConfigParser from twitter import Twitter, OAuth, TwitterHTTPError, TwitterStream # Read the Config File to get the twitter keys and tokens config = SafeConfigParser() config.read('twitter-rekognition.config') # Create ...
44.21
88
0.533816
958ff706fc6e966657c2efe597083e032af3528d
1,275
py
Python
cohesity_management_sdk/models/tenant_id_data.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/tenant_id_data.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/tenant_id_data.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. class TenantIdData(object): """Implementation of the 'TenantIdData' model. Specifies id of a tenant. Attributes: tenant_id (string): Specifies the unique id of the tenant. """ # Create a mapping from Model property names to API pr...
24.056604
81
0.61098
020b186e6509773da609d05764751a4a7af166bb
707
py
Python
MoinMoin/datastruct/__init__.py
RealTimeWeb/wikisite
66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5
[ "Apache-2.0" ]
1
2016-04-01T04:02:28.000Z
2016-04-01T04:02:28.000Z
Documentation/ManualSource/wikicmd/MoinMoin/datastruct/__init__.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
3
2020-06-26T21:21:32.000Z
2020-06-26T21:21:36.000Z
Documentation/ManualSource/wikicmd/MoinMoin/datastruct/__init__.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
2
2017-01-25T20:06:44.000Z
2021-03-25T18:39:55.000Z
# -*- coding: iso-8859-1 -*- """ MoinMoin - datastruct (groups and dicts) support. @copyright: 2009 MoinMoin:DmitrijsMilajevs @license: GPL, see COPYING for details """ from MoinMoin.datastruct.backends.wiki_dicts import WikiDicts from MoinMoin.datastruct.backends.config_dicts import ConfigDicts from MoinMoin.datastr...
35.35
73
0.847242
b69437b04f6cd8dbb7c24ddfab215e1a60689ed0
6,772
py
Python
python/craftassist/voxel_models/detection-transformer/datasets/coco.py
boldsort/craftassist
8058d115a250e30deb60d969b7b1a5fefd6e974c
[ "MIT" ]
626
2019-07-18T18:40:44.000Z
2022-03-29T17:34:43.000Z
python/craftassist/voxel_models/detection-transformer/datasets/coco.py
boldsort/craftassist
8058d115a250e30deb60d969b7b1a5fefd6e974c
[ "MIT" ]
42
2019-07-27T11:04:15.000Z
2021-02-23T03:15:14.000Z
python/craftassist/voxel_models/detection-transformer/datasets/coco.py
boldsort/craftassist
8058d115a250e30deb60d969b7b1a5fefd6e974c
[ "MIT" ]
89
2019-07-19T15:07:39.000Z
2022-02-15T18:44:24.000Z
import copy import os import torch import torch.utils.data import torchvision import transforms as T from pycocotools import mask as coco_mask class FilterAndRemapCocoCategories(object): def __init__(self, categories, remap=True): self.categories = categories self.remap = remap def __call__...
32.873786
97
0.597165
ebbf1e7c40b3e1ddd280f6c2040d853a8a38a786
1,023
py
Python
state_machines/lasers/laser_states.py
drewc747/room-density-tracker
29afc7291276abeb3dcbd25410e3cf69a7ef3f96
[ "MIT" ]
null
null
null
state_machines/lasers/laser_states.py
drewc747/room-density-tracker
29afc7291276abeb3dcbd25410e3cf69a7ef3f96
[ "MIT" ]
null
null
null
state_machines/lasers/laser_states.py
drewc747/room-density-tracker
29afc7291276abeb3dcbd25410e3cf69a7ef3f96
[ "MIT" ]
null
null
null
# laser_states.py import sys sys.path.insert(1, '../') from state import State # Start of laser states ''' The state which indicated that a laser package is in dual laser mode ''' class DualState(State): ''' Fuction to return state based on input event ''' def on_event(self, event): if event...
20.46
70
0.59042
4cb24cadffc9b78656273d003057453de758f210
1,478
py
Python
marble/components/monitor.py
mcgibbon/marble
801abdf65e112203d2b3c8983b0f73b0a4c821da
[ "BSD-3-Clause" ]
3
2019-07-08T16:33:44.000Z
2019-09-03T18:34:25.000Z
marble/components/monitor.py
mcgibbon/marble
801abdf65e112203d2b3c8983b0f73b0a4c821da
[ "BSD-3-Clause" ]
null
null
null
marble/components/monitor.py
mcgibbon/marble
801abdf65e112203d2b3c8983b0f73b0a4c821da
[ "BSD-3-Clause" ]
null
null
null
import sympl as sp import numpy as np from marble.state import AliasDict class NotAColumnException(Exception): pass class ColumnStore(sp.Monitor): """ Stores single-column values as numpy arrays to later retrieve a timeseries. """ def __init__(self, *args, **kwargs): super(ColumnStore, ...
32.130435
81
0.577131
1a4b8c9b5179e3a976a417c6a77ba392025b46d9
11,645
py
Python
train_fr.py
cutz-j/SAROD
0da4497bee80cf84d2173e5386f8feaecf3900e8
[ "MIT" ]
1
2021-10-14T23:40:11.000Z
2021-10-14T23:40:11.000Z
train_fr.py
cutz-j/SAROD
0da4497bee80cf84d2173e5386f8feaecf3900e8
[ "MIT" ]
1
2021-01-09T08:00:30.000Z
2021-01-09T08:00:30.000Z
train_fr.py
cutz-j/SAROD
0da4497bee80cf84d2173e5386f8feaecf3900e8
[ "MIT" ]
3
2021-01-07T11:27:46.000Z
2021-01-31T04:03:07.000Z
# import easydict from multiprocessing import Process import yaml from pathlib import Path import argparse import torch import tqdm import numpy as np import copy # torch import torchvision from torchvision.models.detection import FasterRCNN from torchvision.models.detection.rpn import AnchorGenerator from torchvision...
41.294326
149
0.708974
5e03728270dbe7ab8f2e4c2cc4f127986f8b9302
76,854
py
Python
thonny/plugins/micropython/__init__.py
aroberge/thonny
919769139c9cbfdfa2b78f6a6f0a3d9ecee56e28
[ "MIT" ]
null
null
null
thonny/plugins/micropython/__init__.py
aroberge/thonny
919769139c9cbfdfa2b78f6a6f0a3d9ecee56e28
[ "MIT" ]
null
null
null
thonny/plugins/micropython/__init__.py
aroberge/thonny
919769139c9cbfdfa2b78f6a6f0a3d9ecee56e28
[ "MIT" ]
null
null
null
import ast import logging import io import os import platform import queue import re import subprocess import sys import textwrap import threading import time import tokenize import traceback import webbrowser from queue import Queue from textwrap import dedent from time import sleep from tkinter import ttk from thonny...
34.325145
258
0.540622
420f40513344156574542f0b4d74a0cd09db5092
5,513
py
Python
qiskit/tools/parallel.py
filemaster/qiskit-terra
8672c407a5a0e34405315f82d5ad5847916e857e
[ "Apache-2.0" ]
null
null
null
qiskit/tools/parallel.py
filemaster/qiskit-terra
8672c407a5a0e34405315f82d5ad5847916e857e
[ "Apache-2.0" ]
null
null
null
qiskit/tools/parallel.py
filemaster/qiskit-terra
8672c407a5a0e34405315f82d5ad5847916e857e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. # This file is part of QuTiP: Quantum Toolbox in Python. # # Copyright (c) 2011 and later, Paul D. Nation and Robert J. Jo...
39.949275
90
0.667876
2353340f1c6d63bf5580b78b2ed612614636e559
10,962
py
Python
vmware-ose-osis-verifier/openapi_client/models/osis_user.py
csgtree/object-storage-extension-samples
397f3033ddd4aa1bb1e2079a9e77309a78cc0b0d
[ "Apache-2.0" ]
6
2020-09-11T02:52:42.000Z
2021-04-19T11:20:42.000Z
vmware-ose-osis-verifier/openapi_client/models/osis_user.py
csgtree/object-storage-extension-samples
397f3033ddd4aa1bb1e2079a9e77309a78cc0b0d
[ "Apache-2.0" ]
5
2020-12-21T20:14:59.000Z
2022-03-21T14:35:43.000Z
vmware-ose-osis-verifier/openapi_client/models/osis_user.py
csgtree/object-storage-extension-samples
397f3033ddd4aa1bb1e2079a9e77309a78cc0b0d
[ "Apache-2.0" ]
4
2021-07-20T09:07:52.000Z
2022-03-21T14:33:44.000Z
# coding: utf-8 """ Object Storage Interoperability Services API This is VMware Cloud Director Object Storage Interoperability Services API. Once storage platform vendor implements REST APIs complying with this specification, Object Storage Extension can integrate with the platform without coding effort. # n...
30.45
258
0.597154
49a568226422513d93febf59c2b07aa6fcd06178
10,788
py
Python
test/models/test_utils.py
talesa/botorch
ab04dd39a2d4c7734e41c5f26eb2dbba5b0e1771
[ "MIT" ]
null
null
null
test/models/test_utils.py
talesa/botorch
ab04dd39a2d4c7734e41c5f26eb2dbba5b0e1771
[ "MIT" ]
null
null
null
test/models/test_utils.py
talesa/botorch
ab04dd39a2d4c7734e41c5f26eb2dbba5b0e1771
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import warnings import torch from botorch import settings from botorch.exceptions import InputDataError, InputDataWa...
46.102564
87
0.607898
6f050ee781da363ad4233d5ce5091e7cc797f9c6
49
py
Python
src/chained/__init__.py
Anubhav722/Users-Online-Status-Channels-
68857d5cb6ab3514502183fe1058ffe7a8479472
[ "MIT" ]
null
null
null
src/chained/__init__.py
Anubhav722/Users-Online-Status-Channels-
68857d5cb6ab3514502183fe1058ffe7a8479472
[ "MIT" ]
null
null
null
src/chained/__init__.py
Anubhav722/Users-Online-Status-Channels-
68857d5cb6ab3514502183fe1058ffe7a8479472
[ "MIT" ]
null
null
null
default_app_config = 'chained.apps.ChainedConfig'
49
49
0.857143
860c040642523dbb5d725c8d36977027b0ffeedc
9,094
py
Python
query/inference/country_info_template_fd.py
amitmaharana/bilingual-qald
8ea35425f02a8f7f48df3ec89d4d2ee3903d16c3
[ "Apache-2.0" ]
null
null
null
query/inference/country_info_template_fd.py
amitmaharana/bilingual-qald
8ea35425f02a8f7f48df3ec89d4d2ee3903d16c3
[ "Apache-2.0" ]
null
null
null
query/inference/country_info_template_fd.py
amitmaharana/bilingual-qald
8ea35425f02a8f7f48df3ec89d4d2ee3903d16c3
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- """ rule based query generation ------------ country """ from refo import Star, Any from inference.basic_inference import W, Rule, KeywordRule from inference.basic_inference import SPARQL_PREFIX, SPARQL_ASK_TEM, SPARQL_COUNT_TEM, SPARQL_SELECT_TEM,SPARQL_SELECT_TEM_FD from inference.basic_infere...
46.397959
476
0.553002
d960770f87cbb724ea1dff425b1536e10e26d203
12,265
py
Python
research/cv/arcface/infer/sdk/main_sdk_jpg.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/arcface/infer/sdk/main_sdk_jpg.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/arcface/infer/sdk/main_sdk_jpg.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# coding=utf-8 """ Copyright (c) 2021. Huawei Technologies Co., Ltd. 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 requ...
37.393293
118
0.619976
244429d49fb5dd1707b5b43919de98efd5261127
1,475
py
Python
task_set/optimizers/zero.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
task_set/optimizers/zero.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
task_set/optimizers/zero.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
33.522727
79
0.754576
3dc9240d93e780290fe5315380713daf197d45b3
1,501
py
Python
ballerinaByExample/vendor/pygments/pygments/styles/xcode.py
ayeshLK/ballerina-release
d3edd2f60f315412068f4cf4280317814b1b83e4
[ "Apache-2.0" ]
182
2017-03-05T07:43:13.000Z
2022-03-15T13:09:07.000Z
ballerinaByExample/vendor/pygments/pygments/styles/xcode.py
ayeshLK/ballerina-release
d3edd2f60f315412068f4cf4280317814b1b83e4
[ "Apache-2.0" ]
342
2015-01-09T10:58:37.000Z
2022-03-31T22:20:14.000Z
ballerinaByExample/vendor/pygments/pygments/styles/xcode.py
ayeshLK/ballerina-release
d3edd2f60f315412068f4cf4280317814b1b83e4
[ "Apache-2.0" ]
113
2018-03-07T02:07:58.000Z
2019-09-10T13:50:04.000Z
# -*- coding: utf-8 -*- """ pygments.styles.xcode ~~~~~~~~~~~~~~~~~~~~~ Style similar to the `Xcode` default theme. :copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.style import Style from pygments.token import Keyword, N...
28.865385
86
0.484344
116ffea4a28e09678f3c1cd0790173560182906e
346
py
Python
utils/prefix.py
FiireWiinter/Invite-Management
da81a0145fe4db93c988eb3b01260023e8a69e11
[ "MIT" ]
1
2020-12-23T04:49:17.000Z
2020-12-23T04:49:17.000Z
utils/prefix.py
FiireWiinter/Invite-Managment
da81a0145fe4db93c988eb3b01260023e8a69e11
[ "MIT" ]
null
null
null
utils/prefix.py
FiireWiinter/Invite-Managment
da81a0145fe4db93c988eb3b01260023e8a69e11
[ "MIT" ]
null
null
null
from discord import DMChannel async def prefix(ctx): if isinstance(ctx.channel, DMChannel): return 'im!' else: async with ctx.bot.pool.acquire() as db: prefix_ = await db.fetchval( "SELECT prefix FROM guilds WHERE ID=$1", ctx.guild.id ) ...
24.714286
56
0.552023
4a997d07e759e47d012fece1697a3721829fc758
1,542
py
Python
custom_api/helpers.py
aitor-garcia-p/NCRFpp
3e83fc6c462941eff65b8b42bfe6630277b92d6b
[ "Apache-2.0" ]
null
null
null
custom_api/helpers.py
aitor-garcia-p/NCRFpp
3e83fc6c462941eff65b8b42bfe6630277b92d6b
[ "Apache-2.0" ]
null
null
null
custom_api/helpers.py
aitor-garcia-p/NCRFpp
3e83fc6c462941eff65b8b42bfe6630277b92d6b
[ "Apache-2.0" ]
null
null
null
from typing import List, Tuple, Dict from custom_api.feature_generators import FeatureGenerator FAKE_LABEL = 'O' def compute_features(tokens: List[str], feature_generators: List[FeatureGenerator], separator: str = '\t', labels: List[str] = None, lowercase_tokens=True) \ -> List[str]: ...
37.609756
132
0.669261
16602945119f5e4da1de4ca3fcf137259dc279d7
1,673
py
Python
neodroidagent/utilities/exploration/sampling/random_process/self_avoiding.py
gitter-badger/agent
3f53eaa7ebdee3ab423c7b58785d584fe1a6ae11
[ "Apache-2.0" ]
8
2017-09-13T08:28:44.000Z
2022-01-21T15:59:19.000Z
neodroidagent/utilities/exploration/sampling/random_process/self_avoiding.py
gitter-badger/agent
3f53eaa7ebdee3ab423c7b58785d584fe1a6ae11
[ "Apache-2.0" ]
4
2019-03-22T13:49:16.000Z
2019-03-25T13:49:39.000Z
neodroidagent/utilities/exploration/sampling/random_process/self_avoiding.py
gitter-badger/agent
3f53eaa7ebdee3ab423c7b58785d584fe1a6ae11
[ "Apache-2.0" ]
3
2017-09-13T08:31:38.000Z
2021-11-09T11:22:27.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from .random_process import RandomProcess __author__ = "Christian Heider Nielsen" import random import numpy __all__ = ["SelfAvoiding"] class SelfAvoiding(RandomProcess): def __init__(self, num_of_options=4, n=10): self.num_of_options = num_of_options ...
24.970149
63
0.468619
c535300a68c8b92a93393b2de81fea8a4efa76e7
8,322
py
Python
torchvision/models/quantization/googlenet.py
abhi-glitchhg/vision
12bb88738a5b6b96767c4165282f644495780a80
[ "BSD-3-Clause" ]
1
2022-02-14T09:16:02.000Z
2022-02-14T09:16:02.000Z
torchvision/models/quantization/googlenet.py
abhi-glitchhg/vision
12bb88738a5b6b96767c4165282f644495780a80
[ "BSD-3-Clause" ]
null
null
null
torchvision/models/quantization/googlenet.py
abhi-glitchhg/vision
12bb88738a5b6b96767c4165282f644495780a80
[ "BSD-3-Clause" ]
null
null
null
import warnings from functools import partial from typing import Any, Optional, Union import torch import torch.nn as nn from torch import Tensor from torch.nn import functional as F from ...transforms._presets import ImageClassification from .._api import WeightsEnum, Weights from .._meta import _IMAGENET_CATEGORIES...
37.656109
151
0.653329
5cc2d143591133ecedfee29745674ad8cbd4eb88
410
py
Python
src/wrf/projutils.py
khallock/wrf-python
9c5825c101722e7eddece2ca13cc8e9d9f96a21e
[ "Apache-2.0" ]
1
2018-10-30T18:06:26.000Z
2018-10-30T18:06:26.000Z
src/wrf/projutils.py
mostamndi/wrf-python
3806bcdd01b31fa67da980eafefa0d1245faf6a6
[ "Apache-2.0" ]
null
null
null
src/wrf/projutils.py
mostamndi/wrf-python
3806bcdd01b31fa67da980eafefa0d1245faf6a6
[ "Apache-2.0" ]
null
null
null
from __future__ import (absolute_import, division, print_function) from .py3compat import viewitems def dict_keys_to_upper(d): """Return a dictionary with the keys changed to uppercase. Args: d (:obj:`dict`): A dictionary. Returns: :obj:`dict`: A dictionary with...
22.777778
66
0.62439
27eb8bb22a0998ad1d96e8dd520af2a025cb26ef
2,059
py
Python
src/argument.py
kibernetika-ai/Image-Denoising-with-Deep-CNNs
c081b85fee0fb72e74b0bf4beae90f0bb8bb0a6a
[ "MIT" ]
null
null
null
src/argument.py
kibernetika-ai/Image-Denoising-with-Deep-CNNs
c081b85fee0fb72e74b0bf4beae90f0bb8bb0a6a
[ "MIT" ]
null
null
null
src/argument.py
kibernetika-ai/Image-Denoising-with-Deep-CNNs
c081b85fee0fb72e74b0bf4beae90f0bb8bb0a6a
[ "MIT" ]
null
null
null
import argparse def parse(): ''' Add arguments. ''' parser = argparse.ArgumentParser( description='Bird-Species-Classification-Using-Transfer-Learning') parser.add_argument('--root_dir', type=str, default='../dataset/BSDS300/images', help='root directory of dataset...
35.5
94
0.587178
549ac5afdaffc57f304728c233209a9da1313919
3,690
py
Python
forexcast.py
IntrospectData/forexcast
4d9be7a6944441c51035b4bcc5438cd6bb132a8c
[ "MIT" ]
1
2021-01-29T18:28:16.000Z
2021-01-29T18:28:16.000Z
forexcast.py
IntrospectData/forexcast
4d9be7a6944441c51035b4bcc5438cd6bb132a8c
[ "MIT" ]
null
null
null
forexcast.py
IntrospectData/forexcast
4d9be7a6944441c51035b4bcc5438cd6bb132a8c
[ "MIT" ]
1
2020-01-28T22:55:01.000Z
2020-01-28T22:55:01.000Z
import datetime import json import os import click import requests import pandas as pd import plotly.offline as ply from fbprophet import Prophet from fbprophet.plot import plot_plotly default_config = { "apikey": "-", "quote_currency": "USD", } APIKEY = '' QUOTE_CURRENCY = '' HOME = os.getenv("HOME") def ...
36.176471
155
0.598645
59f69dd4e424e3bf3e1bd4b93fb683f7cc9470da
1,278
py
Python
external/eospy/examples/push_transaction.py
unification-com/haiku-node-prototype
ea77aa90f6b3f08d004be1c24e6b8d62e83bc66b
[ "MIT" ]
3
2018-06-15T18:02:05.000Z
2018-07-06T02:32:18.000Z
external/eospy/examples/push_transaction.py
unification-com/haiku-node-prototype
ea77aa90f6b3f08d004be1c24e6b8d62e83bc66b
[ "MIT" ]
4
2018-08-17T06:51:34.000Z
2018-08-17T08:39:24.000Z
external/eospy/examples/push_transaction.py
unification-com/haiku-node-prototype
ea77aa90f6b3f08d004be1c24e6b8d62e83bc66b
[ "MIT" ]
null
null
null
import eospy.cleos ce = eospy.cleos.Cleos(url='http://api.pennstation.eosnewyork.io:7001') payload = [ { 'args': { "from": "eosio", # sender "to": "silvercondor", # receiver "quantity": '1.0000 EOS', # In EOS "memo": "EOS to the mo...
32.769231
84
0.554773
4cf8a4c6c0689169a903294348c50af44db59200
11,060
py
Python
benchmarks/benchmark_overlap_blocker.py
kvpradap/py_entitymatching
4ff803df1a03cf4d77ef935357355e6de5dd9438
[ "BSD-3-Clause" ]
165
2016-08-28T14:30:01.000Z
2022-03-29T17:24:03.000Z
benchmarks/benchmark_overlap_blocker.py
mvahit/py_entitymatching
6724081d7d95c547e5a51625b4a8207c6c1737f8
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
70
2016-11-22T00:35:22.000Z
2022-03-11T22:26:26.000Z
benchmarks/benchmark_overlap_blocker.py
mvahit/py_entitymatching
6724081d7d95c547e5a51625b4a8207c6c1737f8
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
53
2016-09-22T02:07:34.000Z
2022-03-19T18:57:06.000Z
# Write the benchmarking functions here. # See "Writing benchmarks" in the asv docs for more information. import os import sys import py_entitymatching as mg p = mg.get_install_path() datasets_path = os.sep.join([p, 'datasets', 'example_datasets']) ob = mg.OverlapBlocker() c...
40.661765
93
0.563472
536639490d3e6ce59889b6f81b8c0f2125acadbf
6,307
py
Python
.ipynb_checkpoints/train_misc-checkpoint.py
minhtannguyen/ffjord
f3418249eaa4647f4339aea8d814cf2ce33be141
[ "MIT" ]
1
2020-12-20T09:43:20.000Z
2020-12-20T09:43:20.000Z
.ipynb_checkpoints/train_misc-checkpoint.py
minhtannguyen/ffjord
f3418249eaa4647f4339aea8d814cf2ce33be141
[ "MIT" ]
null
null
null
.ipynb_checkpoints/train_misc-checkpoint.py
minhtannguyen/ffjord
f3418249eaa4647f4339aea8d814cf2ce33be141
[ "MIT" ]
null
null
null
import six import math import lib.layers.wrappers.cnf_regularization as reg_lib import lib.spectral_norm as spectral_norm import lib.layers as layers from lib.layers.odefunc import divergence_bf, divergence_approx def standard_normal_logprob(z): logZ = -0.5 * math.log(2 * math.pi) return logZ - z.pow(2) / 2 ...
31.378109
117
0.666244
59040cd0d8cf5a97b8faef99fad389e6a41a1a36
7,166
py
Python
internal/notes/builtin-SAVE/packages/abinit/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
1
2019-01-17T20:07:19.000Z
2019-01-17T20:07:19.000Z
internal/notes/builtin-SAVE/packages/abinit/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
null
null
null
internal/notes/builtin-SAVE/packages/abinit/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
2
2019-08-06T18:13:57.000Z
2021-11-05T18:19:49.000Z
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
39.373626
79
0.63285
de476dc272caf4f210b2909fd0ef298cccb3c3e3
1,622
py
Python
python/raspberrypi/examples/get_acceleration/get_acceleration.py
cdjq/DFRobot_LIS331HH
a9903b1c043e5f2f2c7a9acf413a496cc1d6189e
[ "MIT" ]
null
null
null
python/raspberrypi/examples/get_acceleration/get_acceleration.py
cdjq/DFRobot_LIS331HH
a9903b1c043e5f2f2c7a9acf413a496cc1d6189e
[ "MIT" ]
null
null
null
python/raspberrypi/examples/get_acceleration/get_acceleration.py
cdjq/DFRobot_LIS331HH
a9903b1c043e5f2f2c7a9acf413a496cc1d6189e
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ @file get_acceleration.py @brief Get the acceleration in x, y, z directions @copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com) @licence The MIT License (MIT) @author [fengli](li.feng@dfrobot.com) @version V1.0 @date 2021-01-16 @get from https://www.df...
24.953846
77
0.639334