hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
125
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
4
247
max_forks_repo_name
stringlengths
4
125
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
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
047b922e0222aa34f6c78018cdd19f790e7e76f5
3,263
py
Python
Optimizer.py
FGDBTKD/Linguistically-Regularized-LSTM-for-Sentiment-Classification
29c1ebd4b59574bb5e66590893c5da55c47ca6b5
[ "MIT" ]
14
2018-08-16T02:40:42.000Z
2021-08-03T11:52:28.000Z
Optimizer.py
FGDBTKD/Linguistically-Regularized-LSTM-for-Sentiment-Classification
29c1ebd4b59574bb5e66590893c5da55c47ca6b5
[ "MIT" ]
3
2018-09-01T08:55:18.000Z
2020-04-17T02:03:00.000Z
Optimizer.py
FGDBTKD/Linguistically-Regularized-LSTM-for-Sentiment-Classification
29c1ebd4b59574bb5e66590893c5da55c47ca6b5
[ "MIT" ]
8
2018-09-01T03:33:05.000Z
2021-01-27T06:04:27.000Z
import numpy as np import logging OptimizerList = {'SGD': SGD, 'ADAGRAD': ADAGRAD, 'ADADELTA': ADADELTA}
42.934211
97
0.583206
import numpy as np import logging class ADADELTA(object): def __init__(self, params, lr=1, lr_word_vector=0.1, lr_decay=0.95, epsilon=1e-6): logging.info('Optimizer ADADELTA lr %f lr_decay %f epsilon %f' % (lr, lr_decay, epsilon)) self.lr = lr self.lr_word_vector = lr_word_vector se...
2,929
0
228
22f548c42a9ed87746e00171ecdba0d38c74fe62
702
py
Python
huemans/utils/__init__.py
mikkogozalo/huemans
7ce3807ac9abbdefd618001a768872f9509fe3d5
[ "MIT" ]
1
2017-12-19T15:03:58.000Z
2017-12-19T15:03:58.000Z
huemans/utils/__init__.py
mikkogozalo/huemans
7ce3807ac9abbdefd618001a768872f9509fe3d5
[ "MIT" ]
null
null
null
huemans/utils/__init__.py
mikkogozalo/huemans
7ce3807ac9abbdefd618001a768872f9509fe3d5
[ "MIT" ]
null
null
null
from collections import MutableMapping
21.9375
53
0.638177
from collections import MutableMapping class State(MutableMapping, dict): _dirty_keys = [] def __getitem__(self, item): return dict.__getitem__(self, item) def __setitem__(self, key, value): self._dirty_keys.append(key) dict.__setitem__(self, key, value) def __delitem__(sel...
375
265
23
88acba4e7609f52d44bc071b4f9a53e54c8c5aae
1,225
py
Python
watson-conversation-python-slackbot/bot/driver.py
relyt0925/kube-samples
48254c80826808bbb4193a6956c7de0e1a707008
[ "Apache-2.0" ]
null
null
null
watson-conversation-python-slackbot/bot/driver.py
relyt0925/kube-samples
48254c80826808bbb4193a6956c7de0e1a707008
[ "Apache-2.0" ]
null
null
null
watson-conversation-python-slackbot/bot/driver.py
relyt0925/kube-samples
48254c80826808bbb4193a6956c7de0e1a707008
[ "Apache-2.0" ]
null
null
null
import ConfigParser import datetime import threading import time from slackclient import SlackClient from responses import bot Config = ConfigParser.ConfigParser() Config.read("credentials.ini") token = Config.get('Slack_Creds', 'token') print "token: " + token sc = SlackClient(token) robot = bot(sc, token) print "...
26.630435
79
0.613061
import ConfigParser import datetime import threading import time from slackclient import SlackClient from responses import bot Config = ConfigParser.ConfigParser() Config.read("credentials.ini") token = Config.get('Slack_Creds', 'token') print "token: " + token sc = SlackClient(token) robot = bot(sc, token) print "...
0
0
0
d9e27346691061707fec955b28eeb371d35a4d2d
15,523
py
Python
pynetbox/core/response.py
louis-oui/pynetbox
4d2c7496ec0560e193f648fca67aae1b6c85bce2
[ "Apache-2.0" ]
null
null
null
pynetbox/core/response.py
louis-oui/pynetbox
4d2c7496ec0560e193f648fca67aae1b6c85bce2
[ "Apache-2.0" ]
null
null
null
pynetbox/core/response.py
louis-oui/pynetbox
4d2c7496ec0560e193f648fca67aae1b6c85bce2
[ "Apache-2.0" ]
null
null
null
""" (c) 2017 DigitalOcean 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 distribut...
32.339583
78
0.52419
""" (c) 2017 DigitalOcean 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 distribut...
3,126
0
378
d71a55c60a56a2572e4916c5e4250c6b4970c260
1,056
py
Python
user.py
k-koech/password_locker
4755fe10f04e4453e95d328d2752c269bbd448e6
[ "MIT" ]
null
null
null
user.py
k-koech/password_locker
4755fe10f04e4453e95d328d2752c269bbd448e6
[ "MIT" ]
null
null
null
user.py
k-koech/password_locker
4755fe10f04e4453e95d328d2752c269bbd448e6
[ "MIT" ]
1
2021-09-04T08:30:08.000Z
2021-09-04T08:30:08.000Z
class User: """ Class that generates new instances of Users. """ user_list = [] # Empty user list def save_user(self): ''' This method saves User objects into user_list ''' User.user_list.append(self) @classmethod def user_exist(cls,username,p...
21.55102
69
0.5625
class User: """ Class that generates new instances of Users. """ def __init__(self,username,password): self.username = username self.password = password user_list = [] # Empty user list def save_user(self): ''' This method saves User objects i...
83
0
30
aa45a19c41356a15e780119763c8e777f62bcc6a
1,161
py
Python
Information search/IS - 2. Indexing/docreader.py
Shemplo/Study-courses
d719cfbddf9358b0f3505e747586d0cc575dd832
[ "Apache-2.0" ]
1
2019-03-27T18:42:12.000Z
2019-03-27T18:42:12.000Z
Information search/IS - 2. Indexing/docreader.py
Shemplo/Study-courses
d719cfbddf9358b0f3505e747586d0cc575dd832
[ "Apache-2.0" ]
3
2018-10-19T07:04:03.000Z
2021-12-14T21:15:10.000Z
Information search/IS - 2. Indexing/docreader.py
Shemplo/Study-courses
d719cfbddf9358b0f3505e747586d0cc575dd832
[ "Apache-2.0" ]
3
2019-03-21T05:16:21.000Z
2021-12-21T11:54:30.000Z
#!/usr/bin/env python import argparse import document_pb2 import struct import gzip import sys if __name__ == '__main__': reader = DocumentStreamReader(parse_command_line().files) for doc in reader: print "%s\t%d bytes" % (doc.url, len(doc.text))
28.317073
89
0.577089
#!/usr/bin/env python import argparse import document_pb2 import struct import gzip import sys class DocumentStreamReader: def __init__(self, paths): self.paths = paths def open_single(self, path): return gzip.open(path, 'rb') if path.endswith('.gz') else open(path, 'rb') def __iter__(se...
762
6
126
b81bcbbebeafe80edcb9b654a8607f21f50b6e6c
13,581
py
Python
frameworks/helloworld/tests/test_secrets.py
akshitjain/dcos-commons_edited
371675b07971afc1604800b0fa6b6ce11ae3a705
[ "Apache-2.0" ]
null
null
null
frameworks/helloworld/tests/test_secrets.py
akshitjain/dcos-commons_edited
371675b07971afc1604800b0fa6b6ce11ae3a705
[ "Apache-2.0" ]
null
null
null
frameworks/helloworld/tests/test_secrets.py
akshitjain/dcos-commons_edited
371675b07971afc1604800b0fa6b6ce11ae3a705
[ "Apache-2.0" ]
null
null
null
import pytest from shakedown import * import sdk_cmd as cmd import sdk_install as install import sdk_plan as plan import sdk_tasks as tasks import sdk_marathon as marathon import time import json from tests.config import ( PACKAGE_NAME ) NUM_HELLO = 2 NUM_WORLD = 3 secret_content_default = "hello-world-secret-d...
35.928571
113
0.71519
import pytest from shakedown import * import sdk_cmd as cmd import sdk_install as install import sdk_plan as plan import sdk_tasks as tasks import sdk_marathon as marathon import time import json from tests.config import ( PACKAGE_NAME ) NUM_HELLO = 2 NUM_WORLD = 3 secret_content_default = "hello-world-secret-d...
11,627
0
248
78fae72f384b91868f4f205ab3c67b076ca00abb
1,481
py
Python
pre_commit_hooks/convert_beginning_helper.py
toddnguyen47/pre-commit-hooks
ce500b759db3627ac88598dd183bcac473b4f1bb
[ "MIT" ]
null
null
null
pre_commit_hooks/convert_beginning_helper.py
toddnguyen47/pre-commit-hooks
ce500b759db3627ac88598dd183bcac473b4f1bb
[ "MIT" ]
null
null
null
pre_commit_hooks/convert_beginning_helper.py
toddnguyen47/pre-commit-hooks
ce500b759db3627ac88598dd183bcac473b4f1bb
[ "MIT" ]
null
null
null
"""Helper functions for converting beginning whitesspace characters""" import argparse from collections import deque from typing import Callable, List def add_tab_size_option(parser: argparse.ArgumentParser) -> argparse.ArgumentParser: """Add the `--tab-size` option""" parser.add_argument( "--tab-siz...
28.480769
101
0.678596
"""Helper functions for converting beginning whitesspace characters""" import argparse from collections import deque from typing import Callable, List def add_tab_size_option(parser: argparse.ArgumentParser) -> argparse.ArgumentParser: """Add the `--tab-size` option""" parser.add_argument( "--tab-siz...
0
0
0
203e3d9089902e24a0a0a006d3ce997493ff8bc6
16,783
py
Python
src/buildstream/_protos/build/bazel/remote/asset/v1/remote_asset_pb2_grpc.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
src/buildstream/_protos/build/bazel/remote/asset/v1/remote_asset_pb2_grpc.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
src/buildstream/_protos/build/bazel/remote/asset/v1/remote_asset_pb2_grpc.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from buildstream._protos.build.bazel.remote.asset.v1 import remote_asset_pb2 as build_dot_bazel_dot_remote_dot_asset_dot_v1_dot_remote__asset__pb2 class FetchS...
50.857576
148
0.718227
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from buildstream._protos.build.bazel.remote.asset.v1 import remote_asset_pb2 as build_dot_bazel_dot_remote_dot_asset_dot_v1_dot_remote__asset__pb2 class FetchS...
5,058
0
150
be531dde26d46e2c0939b8834da01888321fbd6d
2,847
py
Python
chia/instrumentation/message.py
cabrust/chia
3eaf815b261dc8a85d64fd698e0079515ec0dde9
[ "BSD-3-Clause" ]
null
null
null
chia/instrumentation/message.py
cabrust/chia
3eaf815b261dc8a85d64fd698e0079515ec0dde9
[ "BSD-3-Clause" ]
2
2021-10-06T13:19:09.000Z
2021-10-20T17:32:36.000Z
chia/instrumentation/message.py
cabrust/chia
3eaf815b261dc8a85d64fd698e0079515ec0dde9
[ "BSD-3-Clause" ]
null
null
null
import logging import time import typing class ShutdownMessage(Message): """This message tells the observers that they should save their data."""
29.968421
99
0.582016
import logging import time import typing class Message: def __init__(self, sender: str): self.sender = sender self.timestamp: float = time.time() def _format_timestamp(self) -> str: return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(self.timestamp)) def __str__(self): ...
2,207
22
461
54c92cb6f666cfd61232245deafe4d692362e0d7
4,278
py
Python
src/fully-connected-network/gradient-descent/model.py
aligholamee/UD730
936ef8ae4a0a285de6b19919f351a956c72e4cc8
[ "MIT" ]
2
2018-02-07T21:31:09.000Z
2018-02-08T06:34:38.000Z
src/fully-connected-network/gradient-descent/model.py
aligholamee/UD730
936ef8ae4a0a285de6b19919f351a956c72e4cc8
[ "MIT" ]
null
null
null
src/fully-connected-network/gradient-descent/model.py
aligholamee/UD730
936ef8ae4a0a285de6b19919f351a956c72e4cc8
[ "MIT" ]
2
2020-04-07T06:39:26.000Z
2021-02-03T09:59:38.000Z
# ======================================== # [] File Name : model.py # # [] Creation Date : January 2018 # # [] Created By : Ali Gholami (aligholami7596@gmail.com) # ======================================== """ Training and Validation on notMNIST Dataset Fully connected network implementation with tensorflow "...
31.455882
109
0.683263
# ======================================== # [] File Name : model.py # # [] Creation Date : January 2018 # # [] Created By : Ali Gholami (aligholami7596@gmail.com) # ======================================== """ Training and Validation on notMNIST Dataset Fully connected network implementation with tensorflow "...
0
0
0
cfc0994fa0ab433301f0722a11cc7d4dc07ffd9f
876
py
Python
utils/validators.py
rilder-almeida/soulchef_bot
0f2f20961c91334cbfcf80429fcac782d39da5db
[ "MIT" ]
null
null
null
utils/validators.py
rilder-almeida/soulchef_bot
0f2f20961c91334cbfcf80429fcac782d39da5db
[ "MIT" ]
null
null
null
utils/validators.py
rilder-almeida/soulchef_bot
0f2f20961c91334cbfcf80429fcac782d39da5db
[ "MIT" ]
null
null
null
import re
23.675676
150
0.429224
import re def cpf_valid(cpf: str) -> bool: cpf = cpf.replace('.', '').replace('-', '').replace(' ', '') if len(cpf) != 11 or len(set(cpf)) == 1: return False for NUM in range(9, 11): c = [int(n) for n in cpf[:NUM]] n = list(range(NUM + 1, 1, -1)) s = sum(map(lambda i: c[...
794
0
69
7ff7531e0abdb0ef22687c2a2b673f88b060ca02
2,388
py
Python
grove/tests/circuit_primitives/test_swap.py
mkeshita/grove
dc6bf6ec63e8c435fe52b1e00f707d5ce4cdb9b3
[ "Apache-2.0" ]
229
2017-01-10T03:11:54.000Z
2018-11-26T10:57:49.000Z
grove/tests/circuit_primitives/test_swap.py
mkeshita/grove
dc6bf6ec63e8c435fe52b1e00f707d5ce4cdb9b3
[ "Apache-2.0" ]
123
2017-01-10T21:06:51.000Z
2018-11-27T19:38:22.000Z
grove/tests/circuit_primitives/test_swap.py
mkeshita/grove
dc6bf6ec63e8c435fe52b1e00f707d5ce4cdb9b3
[ "Apache-2.0" ]
95
2017-01-10T03:03:45.000Z
2018-11-28T00:42:28.000Z
""" Tests on the swap test in the circuit_primitives module """ import numpy as np import pytest from unittest.mock import patch from pyquil import Program from pyquil.gates import CSWAP, H from grove.circuit_primitives.swap import (swap_circuit_generator, run_swap_test, ...
30.615385
72
0.595059
""" Tests on the swap test in the circuit_primitives module """ import numpy as np import pytest from unittest.mock import patch from pyquil import Program from pyquil.gates import CSWAP, H from grove.circuit_primitives.swap import (swap_circuit_generator, run_swap_test, ...
0
0
0
5382b7f814bf0d8ce5cb66f429170d006417a64d
7,291
py
Python
neural_style_transfer.py
CarlFredriksson/neural_style_transfer
1dd640c78a9fc5f25a4c4f5fd474cc54992ee3b5
[ "MIT" ]
null
null
null
neural_style_transfer.py
CarlFredriksson/neural_style_transfer
1dd640c78a9fc5f25a4c4f5fd474cc54992ee3b5
[ "MIT" ]
null
null
null
neural_style_transfer.py
CarlFredriksson/neural_style_transfer
1dd640c78a9fc5f25a4c4f5fd474cc54992ee3b5
[ "MIT" ]
null
null
null
import os import cv2 import numpy as np import tensorflow as tf from tensorflow.keras import backend as K from tensorflow.keras.applications import VGG19 from tensorflow.keras.layers import MaxPooling2D #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # Settings #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
37.973958
127
0.642436
import os import cv2 import numpy as np import tensorflow as tf from tensorflow.keras import backend as K from tensorflow.keras.applications import VGG19 from tensorflow.keras.layers import MaxPooling2D #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# # Settings #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
0
0
0
004b00f5d71ab4c3568ca60038dc9509d5e81656
9,891
py
Python
train_nerf.py
AnimatedRNG/nerf-jax
c940bcfbb986623691aff7a4e28bf8273ea70147
[ "Apache-2.0" ]
5
2020-10-22T07:27:15.000Z
2022-02-25T02:54:39.000Z
train_nerf.py
AnimatedRNG/nerf-jax
c940bcfbb986623691aff7a4e28bf8273ea70147
[ "Apache-2.0" ]
11
2021-01-27T01:52:38.000Z
2021-02-03T06:35:34.000Z
train_nerf.py
AnimatedRNG/nerf-jax
c940bcfbb986623691aff7a4e28bf8273ea70147
[ "Apache-2.0" ]
2
2020-12-15T14:44:07.000Z
2021-01-27T03:39:01.000Z
#!/usr/bin/env python3 import argparse import functools from pathlib import Path from datetime import datetime from collections import namedtuple import numpy as np import yaml from box import Box import jax from jax import jit, vmap, pmap, grad, value_and_grad import jax.numpy as jnp from jax.tree_util import regist...
32.323529
88
0.632696
#!/usr/bin/env python3 import argparse import functools from pathlib import Path from datetime import datetime from collections import namedtuple import numpy as np import yaml from box import Box import jax from jax import jit, vmap, pmap, grad, value_and_grad import jax.numpy as jnp from jax.tree_util import regist...
8,826
0
115
2dcc1dfe862513682983900b78ea51d0e14b216f
477
py
Python
insta/forms.py
Ruweydha/Insta-clone
dc0c08b8daa941bffeee751f8e6f77e1ae41f7c0
[ "Unlicense" ]
null
null
null
insta/forms.py
Ruweydha/Insta-clone
dc0c08b8daa941bffeee751f8e6f77e1ae41f7c0
[ "Unlicense" ]
null
null
null
insta/forms.py
Ruweydha/Insta-clone
dc0c08b8daa941bffeee751f8e6f77e1ae41f7c0
[ "Unlicense" ]
null
null
null
from pyexpat import model from django import forms from .models import Profile, Images, Comments
26.5
55
0.660377
from pyexpat import model from django import forms from .models import Profile, Images, Comments class UpdateProfileForm(forms.ModelForm): class Meta: model = Profile exclude = ['user', 'pub_date'] class ImagesForm(forms.ModelForm): class Meta: model = Images exclude = ['pr...
0
308
73
0fbd0c29ffc03075b101be02d82f3c616c84a5ed
152
py
Python
Udemy/GeekUniversity/secao_4/ex16_converso_polegada_p_centimetro.py
SandboxGTASA/Python-1
bbb5f8bdf7d5110528e457b2a9ebdb2d67e40805
[ "MIT" ]
null
null
null
Udemy/GeekUniversity/secao_4/ex16_converso_polegada_p_centimetro.py
SandboxGTASA/Python-1
bbb5f8bdf7d5110528e457b2a9ebdb2d67e40805
[ "MIT" ]
null
null
null
Udemy/GeekUniversity/secao_4/ex16_converso_polegada_p_centimetro.py
SandboxGTASA/Python-1
bbb5f8bdf7d5110528e457b2a9ebdb2d67e40805
[ "MIT" ]
null
null
null
# Convertendo polegadas em centimetros polegadas = float(input('Entre com o tamanho em polegadas: ')) centimetros = polegadas * 2.54 print(centimetros)
30.4
62
0.776316
# Convertendo polegadas em centimetros polegadas = float(input('Entre com o tamanho em polegadas: ')) centimetros = polegadas * 2.54 print(centimetros)
0
0
0
248d3ffb18d87c23c825d18f3cf219a8e26cd866
179
py
Python
payjp/util.py
payjp/payjp-python
994b16addd8327781eb936eca60d1abe7f7c7819
[ "MIT" ]
15
2015-09-13T14:40:48.000Z
2021-04-29T15:21:13.000Z
payjp/util.py
payjp/payjp-python
994b16addd8327781eb936eca60d1abe7f7c7819
[ "MIT" ]
9
2015-09-07T07:57:20.000Z
2020-12-14T07:11:59.000Z
payjp/util.py
payjp/payjp-python
994b16addd8327781eb936eca60d1abe7f7c7819
[ "MIT" ]
10
2015-09-07T07:56:09.000Z
2020-05-22T12:43:21.000Z
# coding: utf-8 import sys
17.9
64
0.620112
# coding: utf-8 import sys def utf8(value): if sys.version_info < (3, 0) and isinstance(value, unicode): return value.encode('utf-8') else: return value
128
0
23
6bb791e549adf13891b287887a7403545ed07d97
17,713
py
Python
examples/pretraining/swav/main_swav.py
caglasozen/wilds
db2ff095304891244962509459ee48e2fc5fd5e6
[ "MIT" ]
null
null
null
examples/pretraining/swav/main_swav.py
caglasozen/wilds
db2ff095304891244962509459ee48e2fc5fd5e6
[ "MIT" ]
null
null
null
examples/pretraining/swav/main_swav.py
caglasozen/wilds
db2ff095304891244962509459ee48e2fc5fd5e6
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # # This file has been modified from the original repository's version in the following ways: # 1. The model loading logic u...
40.533181
164
0.614351
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # # This file has been modified from the original repository's version in the following ways: # 1. The model loading logic u...
9,880
0
68
0ed6edb1cfba4fa32c570eb33da74bbda6c23148
10,300
py
Python
bokeh-app/mainold.py
nyc-public-schools/bokeh
bad0334b43ad9df295efa980d7c2a2f704888732
[ "BSD-3-Clause" ]
null
null
null
bokeh-app/mainold.py
nyc-public-schools/bokeh
bad0334b43ad9df295efa980d7c2a2f704888732
[ "BSD-3-Clause" ]
null
null
null
bokeh-app/mainold.py
nyc-public-schools/bokeh
bad0334b43ad9df295efa980d7c2a2f704888732
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[7]: import pandas as pd import numpy as np from os.path import dirname, join from bokeh.io import show, output_notebook,output_file, show, save, curdoc, output_notebook, export_png from bokeh.plotting import figure, output_file, show,save from bokeh.models.widgets import P...
31.987578
224
0.618155
#!/usr/bin/env python # coding: utf-8 # In[7]: import pandas as pd import numpy as np from os.path import dirname, join from bokeh.io import show, output_notebook,output_file, show, save, curdoc, output_notebook, export_png from bokeh.plotting import figure, output_file, show,save from bokeh.models.widgets import P...
7,652
0
144
35b186f995d1aac5ce56c24edf771e8630572c33
2,183
py
Python
tools/deploy/ops/BBoxTransform.py
qingswu/Detectron2-CenterNet
40b80d1a6aa85c7352d5088f44225d64c242cf83
[ "Apache-2.0" ]
5
2020-07-01T07:55:45.000Z
2022-03-05T04:03:09.000Z
tools/deploy/ops/BBoxTransform.py
qingswu/Detectron2-CenterNet
40b80d1a6aa85c7352d5088f44225d64c242cf83
[ "Apache-2.0" ]
2
2020-12-08T12:40:43.000Z
2021-09-08T02:15:21.000Z
tools/deploy/ops/BBoxTransform.py
qingswu/Detectron2-CenterNet
40b80d1a6aa85c7352d5088f44225d64c242cf83
[ "Apache-2.0" ]
2
2021-01-17T14:51:09.000Z
2021-03-23T02:07:35.000Z
import torch import torch.nn from detectron2.export.tensorrt import TensorRTModel from detectron2.utils.logger import setup_logger from ops import export_onnx, get_inputs, SimpleTracer if __name__ == '__main__': logger = setup_logger() logger.info("example: BBoxTransform") m = BBoxTransform() data...
31.185714
106
0.619789
import torch import torch.nn from detectron2.export.tensorrt import TensorRTModel from detectron2.utils.logger import setup_logger from ops import export_onnx, get_inputs, SimpleTracer class BBoxTransform(SimpleTracer): def __init__(self): super(BBoxTransform, self).__init__() self.cuda() ...
866
13
131
5b755f777f1ac2efb82d36a71ca1cacf64bd869b
446
py
Python
setup.py
dsvensson/subsevenzip-python
078c3876e5fd1ffd84e57ae992a142d247a5832f
[ "0BSD" ]
3
2015-01-05T14:09:25.000Z
2018-03-21T19:33:15.000Z
setup.py
dsvensson/subsevenzip-python
078c3876e5fd1ffd84e57ae992a142d247a5832f
[ "0BSD" ]
null
null
null
setup.py
dsvensson/subsevenzip-python
078c3876e5fd1ffd84e57ae992a142d247a5832f
[ "0BSD" ]
null
null
null
from setuptools import setup, find_packages setup( name="subsevenzip", version="0.1", description="7-Zip decompressor", author="Daniel Svensson", author_email="dsvensson@gmail.com", license="ISC", packages=find_packages(), test_suite="nose.collector", setup_requires=[ "cover...
21.238095
53
0.605381
from setuptools import setup, find_packages setup( name="subsevenzip", version="0.1", description="7-Zip decompressor", author="Daniel Svensson", author_email="dsvensson@gmail.com", license="ISC", packages=find_packages(), test_suite="nose.collector", setup_requires=[ "cover...
0
0
0
d4c5e81f71bbec9487f5339b12bc91e1a50a3d76
11,459
py
Python
grr/endtoend_tests/base.py
mikecb/grr
52fdd977729af2a09a147301c55b8b7f1eccfa67
[ "Apache-2.0" ]
null
null
null
grr/endtoend_tests/base.py
mikecb/grr
52fdd977729af2a09a147301c55b8b7f1eccfa67
[ "Apache-2.0" ]
null
null
null
grr/endtoend_tests/base.py
mikecb/grr
52fdd977729af2a09a147301c55b8b7f1eccfa67
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Base module for end to end tests that run flows on clients.""" import re import time import traceback import unittest from grr.lib import aff4 from grr.lib import client_index from grr.lib import config_lib from grr.lib import data_store from grr.lib import flow_utils from grr.lib import r...
31.480769
80
0.68444
#!/usr/bin/env python """Base module for end to end tests that run flows on clients.""" import re import time import traceback import unittest from grr.lib import aff4 from grr.lib import client_index from grr.lib import config_lib from grr.lib import data_store from grr.lib import flow_utils from grr.lib import r...
4,382
510
536
5d38c82f8b5b5aab3e6e5cd285d57442d2cff181
13,803
py
Python
src/gluonts/model/predictor.py
Xiaoxiong-Liu/gluon-ts
097c492769258dd70b7f223f826b17b0051ceee9
[ "Apache-2.0" ]
2,648
2019-06-03T17:18:27.000Z
2022-03-31T08:29:22.000Z
src/gluonts/model/predictor.py
Xiaoxiong-Liu/gluon-ts
097c492769258dd70b7f223f826b17b0051ceee9
[ "Apache-2.0" ]
1,220
2019-06-04T09:00:14.000Z
2022-03-31T10:45:43.000Z
src/gluonts/model/predictor.py
Xiaoxiong-Liu/gluon-ts
097c492769258dd70b7f223f826b17b0051ceee9
[ "Apache-2.0" ]
595
2019-06-04T01:04:31.000Z
2022-03-30T10:40:26.000Z
# Copyright 2018 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://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
32.942721
102
0.606897
# Copyright 2018 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://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
7,521
54
522
ab2c952692c66b0a5c9210538c5e5f17b73574c5
14,213
py
Python
c7n/actions/securityhub.py
edonkor1/cloud-custodian
6f54735acd071b6fc6a0cca851d36e1a1fa46aa0
[ "Apache-2.0" ]
null
null
null
c7n/actions/securityhub.py
edonkor1/cloud-custodian
6f54735acd071b6fc6a0cca851d36e1a1fa46aa0
[ "Apache-2.0" ]
null
null
null
c7n/actions/securityhub.py
edonkor1/cloud-custodian
6f54735acd071b6fc6a0cca851d36e1a1fa46aa0
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
36.821244
110
0.576585
# Copyright 2018 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
8,282
111
181
c072119317e8f50050b11b6d6e6ffec573282f73
640
py
Python
daemon/core/gui/graph/tags.py
b00ga/core
e0842197e389f3f14c73dc5db6cc26f78e665f62
[ "BSD-2-Clause" ]
null
null
null
daemon/core/gui/graph/tags.py
b00ga/core
e0842197e389f3f14c73dc5db6cc26f78e665f62
[ "BSD-2-Clause" ]
null
null
null
daemon/core/gui/graph/tags.py
b00ga/core
e0842197e389f3f14c73dc5db6cc26f78e665f62
[ "BSD-2-Clause" ]
null
null
null
ANNOTATION = "annotation" GRIDLINE = "gridline" SHAPE = "shape" SHAPE_TEXT = "shapetext" EDGE = "edge" LINK_LABEL = "linklabel" WIRELESS_EDGE = "wireless" ANTENNA = "antenna" NODE_LABEL = "nodename" NODE = "node" WALLPAPER = "wallpaper" SELECTION = "selectednodes" MARKER = "marker" ORGANIZE_TAGS = [ WALLPAPER, ...
15.609756
27
0.640625
ANNOTATION = "annotation" GRIDLINE = "gridline" SHAPE = "shape" SHAPE_TEXT = "shapetext" EDGE = "edge" LINK_LABEL = "linklabel" WIRELESS_EDGE = "wireless" ANTENNA = "antenna" NODE_LABEL = "nodename" NODE = "node" WALLPAPER = "wallpaper" SELECTION = "selectednodes" MARKER = "marker" ORGANIZE_TAGS = [ WALLPAPER, ...
0
0
0
24804bfc195e51973e66a3f559e01d09536750e9
17,099
py
Python
custom_components/sun2/sensor.py
Nag94/HomeAssistantConfig
d5f806e05be8d92bf487c58322d20cd9b08c6b98
[ "Unlicense" ]
97
2019-06-19T19:06:53.000Z
2022-03-30T06:58:06.000Z
custom_components/sun2/sensor.py
Nag94/HomeAssistantConfig
d5f806e05be8d92bf487c58322d20cd9b08c6b98
[ "Unlicense" ]
42
2019-06-19T20:20:45.000Z
2022-03-31T13:02:35.000Z
custom_components/sun2/sensor.py
Nag94/HomeAssistantConfig
d5f806e05be8d92bf487c58322d20cd9b08c6b98
[ "Unlicense" ]
20
2020-04-18T19:28:47.000Z
2022-03-06T18:23:09.000Z
"""Sun2 Sensor.""" from datetime import datetime, time, timedelta import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ( CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE, CONF_MONITORED_CONDITIONS, CONF_TIME_ZONE, DEVI...
33.926587
87
0.62606
"""Sun2 Sensor.""" from datetime import datetime, time, timedelta import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ( CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE, CONF_MONITORED_CONDITIONS, CONF_TIME_ZONE, DEVI...
8,004
0
603
a1eadad05f7982e2c83e9588ec9bbf91d80cb087
780
py
Python
backend/applications/models/abstract/allable.py
simonfong6/applications
dea9e324f33b3647ab8e1fcf01f67b37e20e37a9
[ "MIT" ]
null
null
null
backend/applications/models/abstract/allable.py
simonfong6/applications
dea9e324f33b3647ab8e1fcf01f67b37e20e37a9
[ "MIT" ]
null
null
null
backend/applications/models/abstract/allable.py
simonfong6/applications
dea9e324f33b3647ab8e1fcf01f67b37e20e37a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Allable """ from applications.database.table import Table from .base import Base from .buildable import Buildable from .jsonable import Jsonable if __name__ == '__main__': from argparse import ArgumentParser parser = ArgumentParser() parser.add_argument('-a', '--arg1', ...
17.727273
50
0.580769
#!/usr/bin/env python3 """ Allable """ from applications.database.table import Table from .base import Base from .buildable import Buildable from .jsonable import Jsonable class Allable( Buildable, Jsonable ): @classmethod def all(cls, json=False): items = cls.table.get_all() objs =...
182
68
46
a554c06e0f65bba35d7853d913b3a09e1943fe3a
8,166
py
Python
tests/test_views.py
gradel/aldryn-forms
a53e751078e810436504a175101f3216649d21cd
[ "BSD-3-Clause" ]
24
2019-03-31T17:27:37.000Z
2021-12-14T22:38:10.000Z
tests/test_views.py
gradel/aldryn-forms
a53e751078e810436504a175101f3216649d21cd
[ "BSD-3-Clause" ]
126
2015-01-21T19:39:42.000Z
2019-01-09T06:50:45.000Z
tests/test_views.py
gradel/aldryn-forms
a53e751078e810436504a175101f3216649d21cd
[ "BSD-3-Clause" ]
44
2015-08-25T08:19:45.000Z
2019-01-03T12:34:18.000Z
import sys from distutils.version import LooseVersion from unittest import skipIf, skipUnless from django import VERSION as DJANGO_VERSION from django.urls import clear_url_caches import cms from cms.api import add_plugin, create_page from cms.appresolver import clear_app_resolvers from cms.test_utils.testcases impor...
28.354167
104
0.563189
import sys from distutils.version import LooseVersion from unittest import skipIf, skipUnless from django import VERSION as DJANGO_VERSION from django.urls import clear_url_caches import cms from cms.api import add_plugin, create_page from cms.appresolver import clear_app_resolvers from cms.test_utils.testcases impor...
3,649
4,017
23
4988e3e2f37fae2c39d045aac6365b9829ae00a4
478
py
Python
deepl/main.py
bitplus/deepl-cli
da7c76f1ea20977275d009552c1c02f756cbf32b
[ "MIT" ]
56
2020-10-30T15:05:32.000Z
2022-03-27T21:16:58.000Z
deepl/main.py
bitplus/deepl-cli
da7c76f1ea20977275d009552c1c02f756cbf32b
[ "MIT" ]
38
2020-07-13T06:22:35.000Z
2022-03-31T20:16:28.000Z
deepl/main.py
bitplus/deepl-cli
da7c76f1ea20977275d009552c1c02f756cbf32b
[ "MIT" ]
10
2020-07-28T18:40:22.000Z
2022-03-17T11:07:17.000Z
#!/usr/bin/env python3 import sys from . import deepl if __name__ == '__main__': try: main() except KeyboardInterrupt: pass
20.782609
64
0.604603
#!/usr/bin/env python3 import sys from . import deepl def main() -> None: t = deepl.DeepLCLI() t.chk_cmdargs() t.fr_lang, t.to_lang = sys.argv[1].split(':') script = sys.stdin.read() print('Translating...', end='', file=sys.stderr, flush=True) result = t.translate(script) print('\033[1K\0...
303
0
23
9447782acc0cd1ca418445929d22ee41dc741757
3,101
py
Python
babyrobot/src/speech_features/src/speech_feature_server.py
babyrobot-eu/core-modules
7e8c006c40153fb649208c9a78fc71aa70243f69
[ "MIT" ]
1
2019-02-07T15:32:06.000Z
2019-02-07T15:32:06.000Z
babyrobot/src/speech_features/src/speech_feature_server.py
babyrobot-eu/core-modules
7e8c006c40153fb649208c9a78fc71aa70243f69
[ "MIT" ]
9
2020-01-28T22:09:41.000Z
2022-03-11T23:39:17.000Z
babyrobot/src/speech_features/src/speech_feature_server.py
babyrobot-eu/core-modules
7e8c006c40153fb649208c9a78fc71aa70243f69
[ "MIT" ]
null
null
null
#!/usr/bin/env python import csv import os import rospy import uuid from babyrobot.lib import utils as br_utils from babyrobot.speech_features import config as sf_config from babyrobot_msgs.msg import SpeechFeatures, Feature from babyrobot_msgs.srv import SpeechFeatureExtraction from babyrobot_msgs.srv import SpeechFe...
32.302083
76
0.656885
#!/usr/bin/env python import csv import os import rospy import uuid from babyrobot.lib import utils as br_utils from babyrobot.speech_features import config as sf_config from babyrobot_msgs.msg import SpeechFeatures, Feature from babyrobot_msgs.srv import SpeechFeatureExtraction from babyrobot_msgs.srv import SpeechFe...
0
0
0
0193adfbe712d27ed14b6903b2a69b42e44904be
473
py
Python
2015/task_2/first.py
romanthekat/advent_of_code
d9005d9824ab7aadd6bc93fd88421f6fdc95520e
[ "Apache-2.0" ]
null
null
null
2015/task_2/first.py
romanthekat/advent_of_code
d9005d9824ab7aadd6bc93fd88421f6fdc95520e
[ "Apache-2.0" ]
5
2016-07-03T19:07:55.000Z
2019-12-10T19:24:25.000Z
2015/task_2/first.py
EvilKhaosKat/advent_of_code
d9005d9824ab7aadd6bc93fd88421f6fdc95520e
[ "Apache-2.0" ]
null
null
null
total = 0 with open("input.txt") as f: total = sum(calculate_paper(gift) for gift in f.readlines()) print(total)
19.708333
66
0.575053
def get_smallest_area(l, w, h): sizes = [l, w, h] sizes.remove(max(sizes)) return sizes[0] * sizes[1] def calculate_paper(gift): l, w, h = map(int, gift.split("x")) return get_surface_area(h, l, w) + get_smallest_area(l, w, h) def get_surface_area(l, w, h): return 2 * l * w...
269
0
73
f7a2819ac7ec77e96ae6a88ef722bf74ac99b857
17,937
py
Python
avro_json_serializer/test/test_avro_json_serializer.py
rushton/python-avro-json-serializer
52549a0d5958b08b0fca3e419eaefc3e0c6ec99c
[ "Apache-2.0" ]
126
2015-02-26T20:20:04.000Z
2022-03-25T19:36:22.000Z
avro_json_serializer/test/test_avro_json_serializer.py
rushton/python-avro-json-serializer
52549a0d5958b08b0fca3e419eaefc3e0c6ec99c
[ "Apache-2.0" ]
15
2016-06-01T17:26:58.000Z
2022-03-17T20:40:37.000Z
avro_json_serializer/test/test_avro_json_serializer.py
rushton/python-avro-json-serializer
52549a0d5958b08b0fca3e419eaefc3e0c6ec99c
[ "Apache-2.0" ]
39
2015-01-20T22:12:05.000Z
2022-02-18T03:23:41.000Z
# -*- coding: utf-8 -*- # (c) [2014] LinkedIn Corp. 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 app...
34.560694
233
0.53543
# -*- coding: utf-8 -*- # (c) [2014] LinkedIn Corp. 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 app...
11,461
5,541
126
37d5a92d4d65aceb39da6abee706d1d900f41616
74
py
Python
src/vve_cli/__init__.py
buckw6eat/vve_cli
0efd238818ac7f620c4707542aa815110777c69a
[ "MIT" ]
null
null
null
src/vve_cli/__init__.py
buckw6eat/vve_cli
0efd238818ac7f620c4707542aa815110777c69a
[ "MIT" ]
null
null
null
src/vve_cli/__init__.py
buckw6eat/vve_cli
0efd238818ac7f620c4707542aa815110777c69a
[ "MIT" ]
null
null
null
from vve_cli.main import run __version__ = "0.0.1" __all__ = ["run"]
14.8
29
0.648649
from vve_cli.main import run __version__ = "0.0.1" __all__ = ["run"]
0
0
0
3ec7091ec5c1783e0cf99f2f40d55b372d54f92b
134
py
Python
graph_db/driver/null/__init__.py
josegomezr/graph_db
1ef286c9afdd4fd18559cccee9456dbc72ba7a8d
[ "Apache-2.0" ]
4
2015-11-19T01:22:19.000Z
2020-09-05T03:03:24.000Z
graph_db/driver/null/__init__.py
josegomezr/graph_db
1ef286c9afdd4fd18559cccee9456dbc72ba7a8d
[ "Apache-2.0" ]
1
2016-03-10T01:11:03.000Z
2016-03-10T01:11:03.000Z
graph_db/driver/null/__init__.py
josegomezr/graph_db
1ef286c9afdd4fd18559cccee9456dbc72ba7a8d
[ "Apache-2.0" ]
1
2016-03-08T00:03:18.000Z
2016-03-08T00:03:18.000Z
from . import driver from ... import exceptions def Factory(settings): """@todo docstring""" return driver.DBDriver(settings)
22.333333
36
0.708955
from . import driver from ... import exceptions def Factory(settings): """@todo docstring""" return driver.DBDriver(settings)
0
0
0
0ac7b5a001174a156fb9a33cfe506c862fca047e
18,781
py
Python
cpp_faster_fifo/cpp_lib/googletest/googletest-1.10.0/googletest/test/gtest_xml_output_unittest.py
leikinman/faster-fifo
a8d472247640de592c3b332cc0e3068be50f083b
[ "MIT" ]
72
2020-04-09T01:43:31.000Z
2022-03-24T17:08:31.000Z
cpp_faster_fifo/cpp_lib/googletest/googletest-1.10.0/googletest/test/gtest_xml_output_unittest.py
leikinman/faster-fifo
a8d472247640de592c3b332cc0e3068be50f083b
[ "MIT" ]
26
2020-04-09T02:33:14.000Z
2022-03-31T11:41:21.000Z
cpp_faster_fifo/cpp_lib/googletest/googletest-1.10.0/googletest/test/gtest_xml_output_unittest.py
leikinman/faster-fifo
a8d472247640de592c3b332cc0e3068be50f083b
[ "MIT" ]
13
2020-04-08T04:10:45.000Z
2022-02-08T07:10:38.000Z
#!/usr/bin/env python # # Copyright 2006, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list...
48.15641
225
0.694159
#!/usr/bin/env python # # Copyright 2006, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list...
0
0
0
b9e3aa32da7570f3bf7048bb5bf62a38902e8fb3
7,796
py
Python
3_MNIST/4_5_fc_layers_relu_lrdeclay.py
ray-g/TensorFlow-Examples
9f0360f0d7f30ffc36e34ea42606da3300e26df2
[ "MIT" ]
null
null
null
3_MNIST/4_5_fc_layers_relu_lrdeclay.py
ray-g/TensorFlow-Examples
9f0360f0d7f30ffc36e34ea42606da3300e26df2
[ "MIT" ]
null
null
null
3_MNIST/4_5_fc_layers_relu_lrdeclay.py
ray-g/TensorFlow-Examples
9f0360f0d7f30ffc36e34ea42606da3300e26df2
[ "MIT" ]
null
null
null
import os import inspect import shutil import math import tensorflow as tf import numpy as np from tensorflow.examples.tutorials.mnist import input_data as mnist_data tf.set_random_seed(0) # Calculate LOG_DIR according to current file CUR_FILE = inspect.getfile(inspect.currentframe()) LOG_DIR = os.path.jo...
40.604167
155
0.557081
import os import inspect import shutil import math import tensorflow as tf import numpy as np from tensorflow.examples.tutorials.mnist import input_data as mnist_data tf.set_random_seed(0) # Calculate LOG_DIR according to current file CUR_FILE = inspect.getfile(inspect.currentframe()) LOG_DIR = os.path.jo...
1,104
0
71
0a194f9bd131b7ce2b90308f5d00bdcf14b64528
147
py
Python
textract-pipeline/node_modules/aws-cdk/lib/init-templates/app/python/app.template.py
musa-b/amazon-textract-serverless-large-scale-document-processing
eb628684bc661c9a1fdde4d9d5032b5b3632eece
[ "Apache-2.0" ]
null
null
null
textract-pipeline/node_modules/aws-cdk/lib/init-templates/app/python/app.template.py
musa-b/amazon-textract-serverless-large-scale-document-processing
eb628684bc661c9a1fdde4d9d5032b5b3632eece
[ "Apache-2.0" ]
null
null
null
textract-pipeline/node_modules/aws-cdk/lib/init-templates/app/python/app.template.py
musa-b/amazon-textract-serverless-large-scale-document-processing
eb628684bc661c9a1fdde4d9d5032b5b3632eece
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from aws_cdk import cdk from %name%.%name%_stack import PyStack app = cdk.App() PyStack(app, "%name%-cdk-1") app.run()
12.25
39
0.680272
#!/usr/bin/env python3 from aws_cdk import cdk from %name%.%name%_stack import PyStack app = cdk.App() PyStack(app, "%name%-cdk-1") app.run()
0
0
0
33dfded66f6f6ed12c10687161b04860c3c771dc
372
py
Python
oembed/tests/tests/__init__.py
EightMedia/djangoembed
ee325f7375c48405f9c3e7e2c0fa7f5a08fafd48
[ "MIT" ]
8
2015-02-06T19:18:49.000Z
2021-01-01T05:46:02.000Z
oembed/tests/tests/__init__.py
ericholscher/djangoembed
8d6c3edcde782285076445577c4a2ad1c96a0350
[ "MIT" ]
null
null
null
oembed/tests/tests/__init__.py
ericholscher/djangoembed
8d6c3edcde782285076445577c4a2ad1c96a0350
[ "MIT" ]
5
2015-03-15T11:41:26.000Z
2018-03-08T09:45:26.000Z
from oembed.tests.tests.consumer import * from oembed.tests.tests.models import * from oembed.tests.tests.parsers import * from oembed.tests.tests.providers import * from oembed.tests.tests.resources import * from oembed.tests.tests.sites import * from oembed.tests.tests.templatetags import * from oembed.tests.tests.ut...
37.2
45
0.806452
from oembed.tests.tests.consumer import * from oembed.tests.tests.models import * from oembed.tests.tests.parsers import * from oembed.tests.tests.providers import * from oembed.tests.tests.resources import * from oembed.tests.tests.sites import * from oembed.tests.tests.templatetags import * from oembed.tests.tests.ut...
0
0
0
97e99c470df1390f7aea25ce8ca02429083c1569
2,097
py
Python
my_app/io/cts_parser.py
gedoensmanagement/Transkribus_spell_checker
1413f1de137e786a4f078e6806b2e856120e78ea
[ "MIT" ]
null
null
null
my_app/io/cts_parser.py
gedoensmanagement/Transkribus_spell_checker
1413f1de137e786a4f078e6806b2e856120e78ea
[ "MIT" ]
null
null
null
my_app/io/cts_parser.py
gedoensmanagement/Transkribus_spell_checker
1413f1de137e786a4f078e6806b2e856120e78ea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ A collection of functions that can extract additional data fields from the work and passage fields of a Cts object. Which additional fields are possible depends on the namespace. The "parse_cts" function recognizes the namespace and decides which function to use for the extraction. ...
29.535211
85
0.570815
# -*- coding: utf-8 -*- """ A collection of functions that can extract additional data fields from the work and passage fields of a Cts object. Which additional fields are possible depends on the namespace. The "parse_cts" function recognizes the namespace and decides which function to use for the extraction. ...
190
0
54
f12ba53f4df48091653b5508515d7229865bd54b
3,647
py
Python
handlers/drive_handler.py
google/b-con
365ba51cef6fbdd05ceb410ce6fad3e542a65cf4
[ "Apache-2.0" ]
4
2020-08-27T07:00:09.000Z
2021-10-21T00:43:36.000Z
handlers/drive_handler.py
google/b-con
365ba51cef6fbdd05ceb410ce6fad3e542a65cf4
[ "Apache-2.0" ]
null
null
null
handlers/drive_handler.py
google/b-con
365ba51cef6fbdd05ceb410ce6fad3e542a65cf4
[ "Apache-2.0" ]
2
2020-09-15T04:17:28.000Z
2020-09-15T04:23:27.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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.439655
97
0.717302
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
0
0
0
117de2060310920f81abc8439d94be701d21ee15
335
py
Python
Testes/type_set.py
Renanrbsc/PadawanPython
6dc06a502d59127d0f180847e19b40c581baddd0
[ "MIT" ]
null
null
null
Testes/type_set.py
Renanrbsc/PadawanPython
6dc06a502d59127d0f180847e19b40c581baddd0
[ "MIT" ]
null
null
null
Testes/type_set.py
Renanrbsc/PadawanPython
6dc06a502d59127d0f180847e19b40c581baddd0
[ "MIT" ]
null
null
null
import random # Efetua 1000 testes: for _ in range(1000): # Gera um conjunto de 10 números inteiros entre 0 e 9: a = set(random.randint(0, 9) for __ in range(10)) # Verifica se o conjunto é igual à sua respectiva lista sortida: if list(a) != sorted(a): # Se for diferente, exibe o conjunto: ...
25.769231
68
0.644776
import random # Efetua 1000 testes: for _ in range(1000): # Gera um conjunto de 10 números inteiros entre 0 e 9: a = set(random.randint(0, 9) for __ in range(10)) # Verifica se o conjunto é igual à sua respectiva lista sortida: if list(a) != sorted(a): # Se for diferente, exibe o conjunto: ...
0
0
0
173b1c09a24ba29b73e806482460e8a77d27c133
4,051
py
Python
alipay/aop/api/domain/AlipayOverseasTaxNeworderStatusSyncModel.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/AlipayOverseasTaxNeworderStatusSyncModel.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/AlipayOverseasTaxNeworderStatusSyncModel.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 *
30.923664
87
0.602567
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOverseasTaxNeworderStatusSyncModel(object): def __init__(self): self._doc_id = None self._extend_param = None self._status = None self._status_change_time = ...
3,140
773
23
dd0d1e45a6b03586912ed2af58c3ca9521a86418
618
py
Python
migrations/versions/4b01613bfbed_.py
J4LP/J4OAuth
ca757958f1e7069f08e0dae3becd70b90507c871
[ "MIT" ]
1
2015-12-15T03:17:15.000Z
2015-12-15T03:17:15.000Z
migrations/versions/4b01613bfbed_.py
J4LP/J4OAuth
ca757958f1e7069f08e0dae3becd70b90507c871
[ "MIT" ]
null
null
null
migrations/versions/4b01613bfbed_.py
J4LP/J4OAuth
ca757958f1e7069f08e0dae3becd70b90507c871
[ "MIT" ]
1
2015-12-15T03:17:19.000Z
2015-12-15T03:17:19.000Z
"""empty message Revision ID: 4b01613bfbed Revises: 406cccb640c3 Create Date: 2014-02-07 00:29:22.150808 """ # revision identifiers, used by Alembic. revision = '4b01613bfbed' down_revision = '406cccb640c3' from alembic import op import sqlalchemy as sa
22.888889
88
0.697411
"""empty message Revision ID: 4b01613bfbed Revises: 406cccb640c3 Create Date: 2014-02-07 00:29:22.150808 """ # revision identifiers, used by Alembic. revision = '4b01613bfbed' down_revision = '406cccb640c3' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
312
0
46
963b388fd46ae6be2ff0ea7cc00541ff85694744
529
py
Python
django_auth2/tasks.py
Nick1994209/django-auth2
b8678f06ade985d2b5b0606e6e49bd9d2a49931a
[ "MIT" ]
null
null
null
django_auth2/tasks.py
Nick1994209/django-auth2
b8678f06ade985d2b5b0606e6e49bd9d2a49931a
[ "MIT" ]
null
null
null
django_auth2/tasks.py
Nick1994209/django-auth2
b8678f06ade985d2b5b0606e6e49bd9d2a49931a
[ "MIT" ]
null
null
null
from __future__ import absolute_import # for python 2.7 from django.conf import settings from django.core.mail import send_mail as django_send_mail try: from celery.task import task except ImportError: task = func_add_delay @task
24.045455
78
0.720227
from __future__ import absolute_import # for python 2.7 from django.conf import settings from django.core.mail import send_mail as django_send_mail try: from celery.task import task except ImportError: def func_add_delay(func): def wrapper(*args, **kwargs): return func(*args, **kwargs) ...
237
0
48
c603a2f92a55764ce391c8c6d64d7603bd21bea4
2,938
py
Python
main/summary.py
tucan9389/MobileHumanPose
94183778c8384a2412729fec179e66ca2cd15b60
[ "MIT" ]
137
2021-04-13T14:33:32.000Z
2022-03-24T22:28:15.000Z
main/summary.py
tucan9389/MobileHumanPose
94183778c8384a2412729fec179e66ca2cd15b60
[ "MIT" ]
27
2021-05-16T08:52:03.000Z
2022-03-30T11:49:38.000Z
main/summary.py
tucan9389/MobileHumanPose
94183778c8384a2412729fec179e66ca2cd15b60
[ "MIT" ]
13
2021-04-13T17:18:28.000Z
2022-03-22T12:49:03.000Z
import torch import argparse import os import os.path as osp import torch.backends.cudnn as cudnn from torchsummary import summary from torch.nn.parallel.data_parallel import DataParallel from config import cfg from model import get_pose_net from thop import profile from thop import clever_format from ptflops import ge...
41.971429
233
0.642954
import torch import argparse import os import os.path as osp import torch.backends.cudnn as cudnn from torchsummary import summary from torch.nn.parallel.data_parallel import DataParallel from config import cfg from model import get_pose_net from thop import profile from thop import clever_format from ptflops import ge...
792
0
23
eadd411cee7bade1921682585bda0bf351b1063a
3,302
py
Python
fastflix/models/encode.py
benedicteb/FastFlix
45208b7c74a21758cb528c949422effcd0c01f44
[ "MIT" ]
null
null
null
fastflix/models/encode.py
benedicteb/FastFlix
45208b7c74a21758cb528c949422effcd0c01f44
[ "MIT" ]
null
null
null
fastflix/models/encode.py
benedicteb/FastFlix
45208b7c74a21758cb528c949422effcd0c01f44
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from dataclasses import dataclass, field from pathlib import Path from typing import List, Union from fastflix.models.base import BaseDataClass @dataclass @dataclass @dataclass @dataclass @dataclass @dataclass @dataclass @dataclass @dataclass @dataclass @dataclass @datac...
22.161074
56
0.633253
# -*- coding: utf-8 -*- from dataclasses import dataclass, field from pathlib import Path from typing import List, Union from fastflix.models.base import BaseDataClass @dataclass class AudioTrack(BaseDataClass): index: int outdex: int codec: str = "" downmix: int = 0 title: str = "" language:...
0
2,678
286
8929dca934368386b0442cdca9cb8e9309b1777f
17,130
py
Python
scripts/featureGenerator.py
dcompgriff/cs839_Entity_Extractor
a117256061cc75850c1da1ce837a2992c15db0fb
[ "MIT" ]
null
null
null
scripts/featureGenerator.py
dcompgriff/cs839_Entity_Extractor
a117256061cc75850c1da1ce837a2992c15db0fb
[ "MIT" ]
null
null
null
scripts/featureGenerator.py
dcompgriff/cs839_Entity_Extractor
a117256061cc75850c1da1ce837a2992c15db0fb
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import argparse import glob import os import time import re from multiprocessing import Pool ''' **************************************************************** GLOBAL VARIABLES **************************************************************** ''' MAX_ENTITY_LENGTH = 20 MAX_ENTI...
39.837209
167
0.588266
import numpy as np import pandas as pd import argparse import glob import os import time import re from multiprocessing import Pool ''' **************************************************************** GLOBAL VARIABLES **************************************************************** ''' MAX_ENTITY_LENGTH = 20 MAX_ENTI...
12,510
0
549
27ea8f89b590262da723db9961dd54d30a7fc92d
9,134
py
Python
zodiacy/corpus.py
greenify/zodiacy
faf46a10b9b70869cb4caca02027921f1418cfcf
[ "MIT" ]
1
2015-10-16T10:24:53.000Z
2015-10-16T10:24:53.000Z
zodiacy/corpus.py
greenify/zodiacy
faf46a10b9b70869cb4caca02027921f1418cfcf
[ "MIT" ]
null
null
null
zodiacy/corpus.py
greenify/zodiacy
faf46a10b9b70869cb4caca02027921f1418cfcf
[ "MIT" ]
null
null
null
import collections import logging from math import sqrt from wordnik import swagger, WordApi from .utils import weighted_choice """corpus.py: Generates horoscopes based provided corpuses""" __author__ = "Project Zodiacy" __copyright__ = "Copyright 2015, Project Zodiacy" logger = logging.getLogger('root') class Cor...
38.868085
115
0.600285
import collections import logging from math import sqrt from wordnik import swagger, WordApi from .utils import weighted_choice """corpus.py: Generates horoscopes based provided corpuses""" __author__ = "Project Zodiacy" __copyright__ = "Copyright 2015, Project Zodiacy" logger = logging.getLogger('root') class Cor...
721
0
54
f49d473cc0d800aa406361c6dce4b00757bccf54
2,906
py
Python
remedy/remedy.py
4n6ir/remedy-delete-default-vpcs
ce1250140c7f3c967646c9be5ef09dde88c191b0
[ "Apache-2.0" ]
null
null
null
remedy/remedy.py
4n6ir/remedy-delete-default-vpcs
ce1250140c7f3c967646c9be5ef09dde88c191b0
[ "Apache-2.0" ]
null
null
null
remedy/remedy.py
4n6ir/remedy-delete-default-vpcs
ce1250140c7f3c967646c9be5ef09dde88c191b0
[ "Apache-2.0" ]
null
null
null
import boto3 import json import logging import os logger = logging.getLogger() logger.setLevel(logging.INFO)
44.707692
93
0.399862
import boto3 import json import logging import os logger = logging.getLogger() logger.setLevel(logging.INFO) def handler(event, context): client = boto3.client('ec2') regions = client.describe_regions() for region in regions['Regions']: ec2_client = boto3.client('ec2', region_name=region...
2,773
0
23
39869b293ee78812692ef8612d361826ac2281dd
5,815
py
Python
papers/BLS/BLSBasic/BLS.py
mindspore-ai/contrib
85dccac7a2ba6e962092ecd51aefd962d7f2aeac
[ "Apache-2.0" ]
2
2021-11-10T06:16:55.000Z
2022-02-22T11:30:04.000Z
papers/BLS/BLSBasic/BLS.py
mindspore-ai/contrib
85dccac7a2ba6e962092ecd51aefd962d7f2aeac
[ "Apache-2.0" ]
null
null
null
papers/BLS/BLSBasic/BLS.py
mindspore-ai/contrib
85dccac7a2ba6e962092ecd51aefd962d7f2aeac
[ "Apache-2.0" ]
1
2022-03-22T06:03:15.000Z
2022-03-22T06:03:15.000Z
import numpy import numpy as np from mindspore import Tensor, dtype from mindspore.train.serialization import export, save_checkpoint import mindspore.dataset as ds import mindspore.context as context import mindspore.ops as ops import mindspore.nn as N import mindspore.numpy as mnp
44.389313
115
0.692863
import numpy import numpy as np from mindspore import Tensor, dtype from mindspore.train.serialization import export, save_checkpoint import mindspore.dataset as ds import mindspore.context as context import mindspore.ops as ops import mindspore.nn as N import mindspore.numpy as mnp class BLSBasicTrain(N.Cell): d...
5,270
7
427
ced8f7377ff6afeb026e4db4b64351647f6b9de4
8,333
py
Python
tests/zquantum/core/wip/circuits/_gates_test.py
bartubisgin/z-quantum-core
b61aef12cc86f0a8234229b9b26b21cde950d6f1
[ "Apache-2.0" ]
null
null
null
tests/zquantum/core/wip/circuits/_gates_test.py
bartubisgin/z-quantum-core
b61aef12cc86f0a8234229b9b26b21cde950d6f1
[ "Apache-2.0" ]
null
null
null
tests/zquantum/core/wip/circuits/_gates_test.py
bartubisgin/z-quantum-core
b61aef12cc86f0a8234229b9b26b21cde950d6f1
[ "Apache-2.0" ]
1
2022-03-19T02:23:53.000Z
2022-03-19T02:23:53.000Z
"""Test cases for _gates module.""" from unittest.mock import Mock import pytest import sympy from zquantum.core.wip.circuits import _builtin_gates from zquantum.core.wip.circuits._gates import GateOperation, MatrixFactoryGate GATES_REPRESENTATIVES = [ _builtin_gates.X, _builtin_gates.Y, _builtin_gates.Z,...
37.200893
88
0.677667
"""Test cases for _gates module.""" from unittest.mock import Mock import pytest import sympy from zquantum.core.wip.circuits import _builtin_gates from zquantum.core.wip.circuits._gates import GateOperation, MatrixFactoryGate GATES_REPRESENTATIVES = [ _builtin_gates.X, _builtin_gates.Y, _builtin_gates.Z,...
6,372
678
354
5a4509ded52d8b17265869fdb30826814374cffa
2,138
py
Python
8-puzzle-game/manhattan.py
itepifanio/jogo-dos-8-numeros
692b84f9b48fef5d8da9afba67adb1a1f9c13b28
[ "MIT" ]
null
null
null
8-puzzle-game/manhattan.py
itepifanio/jogo-dos-8-numeros
692b84f9b48fef5d8da9afba67adb1a1f9c13b28
[ "MIT" ]
null
null
null
8-puzzle-game/manhattan.py
itepifanio/jogo-dos-8-numeros
692b84f9b48fef5d8da9afba67adb1a1f9c13b28
[ "MIT" ]
null
null
null
from game.game import Game from heapq import heappush, heappop import time import itertools import time if __name__ == '__main__': algorithm = Manhanttan() algorithm.run()
30.542857
89
0.563143
from game.game import Game from heapq import heappush, heappop import time import itertools import time class Manhanttan(Game): def heuristic(self, a): result = 0 node = list(itertools.chain(*a)) for current, target in enumerate(node): currentRow = int(current/3) c...
1,870
2
80
8747cd2d839a44ad5113082afaedeed9aa0cc8f8
9,839
py
Python
benchmark_utils.py
neyudin/AcceleratedGNMethodEquations
b5606f98221d72ff3e9ebb8ce0709981db08cefd
[ "BSD-3-Clause" ]
null
null
null
benchmark_utils.py
neyudin/AcceleratedGNMethodEquations
b5606f98221d72ff3e9ebb8ce0709981db08cefd
[ "BSD-3-Clause" ]
null
null
null
benchmark_utils.py
neyudin/AcceleratedGNMethodEquations
b5606f98221d72ff3e9ebb8ce0709981db08cefd
[ "BSD-3-Clause" ]
null
null
null
from optimizers import * import gc import time def experiment_runner(args, x_0_dict): """ Runner routine which performs the whole experiment set. Parameters ---------- args : populated namespace object from ArgumentParser The system of equations evaluated at point x. x_0_dict : dict ...
53.472826
195
0.476979
from optimizers import * import gc import time def experiment_runner(args, x_0_dict): """ Runner routine which performs the whole experiment set. Parameters ---------- args : populated namespace object from ArgumentParser The system of equations evaluated at point x. x_0_dict : dict ...
0
0
0
3f735b40adc91055ec645c76cf232232a3b35167
344
py
Python
testing/mpy_dummy/utime.py
dpm76/Microvacbot
b89c7e7e0e1e7b21d946d2f6a312c217c08badd6
[ "MIT" ]
1
2020-04-02T14:32:53.000Z
2020-04-02T14:32:53.000Z
testing/mpy_dummy/utime.py
dpm76/Microvacbot
b89c7e7e0e1e7b21d946d2f6a312c217c08badd6
[ "MIT" ]
null
null
null
testing/mpy_dummy/utime.py
dpm76/Microvacbot
b89c7e7e0e1e7b21d946d2f6a312c217c08badd6
[ "MIT" ]
null
null
null
import time
11.096774
35
0.517442
import time def sleep(s): time.sleep(s) def sleep_ms(ms): time.sleep(ms/1e3) def sleep_us(us): time.sleep(us/1e6) def ticks_us(): time.time() * 1e6 def ticks_ms(): time.time() * 1e3 def ticks_diff(timeEnd, timeStart): r...
153
0
154
51311d98800bb3f9984f334fadd5802ed4789387
509
py
Python
docs/components_page/components/button/usage.py
glsdown/dash-bootstrap-components
0ebea4f7de43975f6e3a2958359c4480ae1d4927
[ "Apache-2.0" ]
776
2019-02-07T19:36:59.000Z
2022-03-31T05:53:04.000Z
docs/components_page/components/button/usage.py
glsdown/dash-bootstrap-components
0ebea4f7de43975f6e3a2958359c4480ae1d4927
[ "Apache-2.0" ]
350
2019-02-05T10:42:19.000Z
2022-03-31T19:23:35.000Z
docs/components_page/components/button/usage.py
glsdown/dash-bootstrap-components
0ebea4f7de43975f6e3a2958359c4480ae1d4927
[ "Apache-2.0" ]
219
2019-02-10T13:46:25.000Z
2022-03-23T17:03:39.000Z
import dash_bootstrap_components as dbc from dash import Input, Output, html button = html.Div( [ dbc.Button( "Click me", id="example-button", className="me-2", n_clicks=0 ), html.Span(id="example-output", style={"verticalAlign": "middle"}), ] ) @app.callback( Output("...
23.136364
79
0.607073
import dash_bootstrap_components as dbc from dash import Input, Output, html button = html.Div( [ dbc.Button( "Click me", id="example-button", className="me-2", n_clicks=0 ), html.Span(id="example-output", style={"verticalAlign": "middle"}), ] ) @app.callback( Output("...
97
0
22
2946bf995e423ab9f90fecaffdfbde0077702bb0
284
py
Python
blackdog/forms.py
UncleGoogle/dafipost
5e19d6a69dde9b7e5267bbdba680906bdb5e56eb
[ "MIT" ]
null
null
null
blackdog/forms.py
UncleGoogle/dafipost
5e19d6a69dde9b7e5267bbdba680906bdb5e56eb
[ "MIT" ]
1
2021-02-08T01:44:32.000Z
2021-02-08T01:44:32.000Z
blackdog/forms.py
UncleGoogle/dafipost
5e19d6a69dde9b7e5267bbdba680906bdb5e56eb
[ "MIT" ]
null
null
null
from django import forms from .models import Bark
20.285714
78
0.623239
from django import forms from .models import Bark class BarkForm(forms.ModelForm): class Meta: model = Bark fields = ['content'] def clean_views(self): """Every new form or updated form is submitted we reset the counter""" return 0
0
205
23
4fef830c6935b201ebe3270607f09b48471f7f26
4,094
py
Python
python/functions/calculateInterest.py
Z88897050/emulateSamples
57a519422e0e15aadc301470ac6a8397848d93c3
[ "Apache-2.0" ]
null
null
null
python/functions/calculateInterest.py
Z88897050/emulateSamples
57a519422e0e15aadc301470ac6a8397848d93c3
[ "Apache-2.0" ]
1
2021-09-21T14:38:33.000Z
2021-09-21T14:38:33.000Z
python/functions/calculateInterest.py
Z88897050/emulateSamples
57a519422e0e15aadc301470ac6a8397848d93c3
[ "Apache-2.0" ]
1
2019-05-17T11:31:47.000Z
2019-05-17T11:31:47.000Z
# 等额本金和等额本息贷款计算 import math area = float(input('请输入房屋面积(m^2): ')) unit_price = float(input('请输入单价(元): ')) year_interest = float(input('请输入贷款利率(%): ')) # ''' # 等额本金的每月还款情况文件,格式如下: # 1月,5700.79(元) # 2月,5691.69(元) # 3月,5682.59(元) # 4月,5673.5(元) # ...... # # ''' # # # # 读取文件内容,即每个月的还款数据 # def get_average_capital(): # ...
27.662162
118
0.610405
# 等额本金和等额本息贷款计算 import math area = float(input('请输入房屋面积(m^2): ')) unit_price = float(input('请输入单价(元): ')) year_interest = float(input('请输入贷款利率(%): ')) # ''' # 等额本金的每月还款情况文件,格式如下: # 1月,5700.79(元) # 2月,5691.69(元) # 3月,5682.59(元) # 4月,5673.5(元) # ...... # # ''' # # # # 读取文件内容,即每个月的还款数据 # def get_average_capital(): # ...
789
0
68
10f7ff6712dc6b5dcc4a16b9b8b4446dac1019fe
4,949
py
Python
cmsplugin_blog_categories/migrations/0001_initial.py
bitmazk/cmsplugin-blog-categories
05e2fa3d50a8501f3f3f9cab784269838079cc37
[ "MIT" ]
null
null
null
cmsplugin_blog_categories/migrations/0001_initial.py
bitmazk/cmsplugin-blog-categories
05e2fa3d50a8501f3f3f9cab784269838079cc37
[ "MIT" ]
3
2020-02-11T22:01:45.000Z
2021-06-10T17:38:13.000Z
cmsplugin_blog_categories/migrations/0001_initial.py
bitmazk/cmsplugin-blog-categories
05e2fa3d50a8501f3f3f9cab784269838079cc37
[ "MIT" ]
null
null
null
# flake8: noqa # -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models
53.793478
137
0.62255
# flake8: noqa # -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Category' db.create_table('cmsplugin_blog_categories_category', ( ...
2,250
2,530
23
715bfc9c37739cc5dc1ee47ee653d0ae23d340ef
5,326
py
Python
src/analyze/track/analyze_race.py
kishorekolli/deep_racer_guru
0a0a56103f395f958e8177ee0bd5ae1481f93d98
[ "MIT" ]
9
2020-07-31T03:04:24.000Z
2021-11-02T13:44:11.000Z
src/analyze/track/analyze_race.py
kishorekolli/deep_racer_guru
0a0a56103f395f958e8177ee0bd5ae1481f93d98
[ "MIT" ]
137
2020-08-04T08:04:11.000Z
2021-11-10T10:35:58.000Z
src/analyze/track/analyze_race.py
kishorekolli/deep_racer_guru
0a0a56103f395f958e8177ee0bd5ae1481f93d98
[ "MIT" ]
11
2020-06-24T23:38:38.000Z
2021-11-02T14:42:31.000Z
# # DeepRacer Guru # # Version 3.0 onwards # # Copyright (c) 2021 dmh23 # import threading import time import src.utils.geometry as geometry import tkinter as tk from src.analyze.track.track_analyzer import TrackAnalyzer from src.episode.episode import Episode from src.graphics.track_graphics import TrackGraphics f...
37.507042
111
0.665039
# # DeepRacer Guru # # Version 3.0 onwards # # Copyright (c) 2021 dmh23 # import threading import time import src.utils.geometry as geometry import tkinter as tk from src.analyze.track.track_analyzer import TrackAnalyzer from src.episode.episode import Episode from src.graphics.track_graphics import TrackGraphics f...
4,356
493
23
f0e86e901437c0295d3035b8e8488571c49c3943
1,821
py
Python
algospot/lec11/[cutz]gamecover.py
cutz-j/AlgorithmStudy
de0f81220e29bd5e109d174800f507b12a3bee36
[ "MIT" ]
3
2019-11-26T14:31:01.000Z
2020-01-10T18:19:46.000Z
algospot/lec11/[cutz]gamecover.py
cutz-j/AlgorithmStudy
de0f81220e29bd5e109d174800f507b12a3bee36
[ "MIT" ]
null
null
null
algospot/lec11/[cutz]gamecover.py
cutz-j/AlgorithmStudy
de0f81220e29bd5e109d174800f507b12a3bee36
[ "MIT" ]
null
null
null
import sys cover = [[[0, 0], [1, 0], [0, 1]], [[0, 0], [0, 1], [1, 1]], [[0, 0], [1, 0], [1, 1]], [[0, 0], [1, 0], [1, -1]]] #rl = lambda: sys.stdin.readline() rl = input C = int(rl()) for _ in range(C): H, W = map(int, rl().split()) block_list = [] whit...
21.939759
62
0.409665
import sys cover = [[[0, 0], [1, 0], [0, 1]], [[0, 0], [0, 1], [1, 1]], [[0, 0], [1, 0], [1, 1]], [[0, 0], [1, 0], [1, -1]]] def set_block(board, y, x, cover_type, delta): # delta 1 --> cover // -1 --> clear ok = True for i in range(3): new_x = x + cover[cover_type]...
1,026
0
46
64c67a4ed2acbb4051af77291436c1f297af4078
1,167
py
Python
cmsplugin_soundcloud/cms_plugins.py
misli/cmsplugin-soundcloud
d50e6fd1fd95916eb5a396fd9a437483d96626b3
[ "BSD-3-Clause" ]
null
null
null
cmsplugin_soundcloud/cms_plugins.py
misli/cmsplugin-soundcloud
d50e6fd1fd95916eb5a396fd9a437483d96626b3
[ "BSD-3-Clause" ]
1
2021-05-13T15:23:09.000Z
2021-06-29T09:25:36.000Z
cmsplugin_soundcloud/cms_plugins.py
misli/cmsplugin-soundcloud
d50e6fd1fd95916eb5a396fd9a437483d96626b3
[ "BSD-3-Clause" ]
1
2017-06-01T15:46:46.000Z
2017-06-01T15:46:46.000Z
from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from .models import SoundCloud, COLORS from django.conf import settings from django.utils.translation import ugettext as _ from django.utils.safestring import mark_safe # use CMSPLUGIN_SOUNDCLOUD_PARAMS to override PARAMS PARAMS = geta...
30.710526
78
0.709512
from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from .models import SoundCloud, COLORS from django.conf import settings from django.utils.translation import ugettext as _ from django.utils.safestring import mark_safe # use CMSPLUGIN_SOUNDCLOUD_PARAMS to override PARAMS PARAMS = geta...
153
498
23
43cbe788101c59dea633374ac2936b60b77131a3
408
py
Python
1/find_inimum_in_rotated_sorted_array.py
IronCore864/leetcode
a62a4cdde9814ae48997176debcaad537f7ad01f
[ "Apache-2.0" ]
4
2018-03-07T02:56:03.000Z
2021-06-15T05:43:31.000Z
1/find_inimum_in_rotated_sorted_array.py
IronCore864/leetcode
a62a4cdde9814ae48997176debcaad537f7ad01f
[ "Apache-2.0" ]
null
null
null
1/find_inimum_in_rotated_sorted_array.py
IronCore864/leetcode
a62a4cdde9814ae48997176debcaad537f7ad01f
[ "Apache-2.0" ]
1
2021-09-02T12:05:15.000Z
2021-09-02T12:05:15.000Z
s = Solution() print s.findMin([4, 5, 5, 6, 7, 0, 1, 2, 2, 2])
20.4
47
0.360294
class Solution(object): def findMin(self, nums): """ :type nums: List[int] :rtype: int """ i = 0 j = len(nums) - 1 while i < j: m = i + (j - i) / 2 if nums[m] > nums[j]: i = m + 1 else: j = m ...
0
321
22
e965a8d33c910c1887e79ac768c1271d3fda827c
3,711
py
Python
qiling/qiling/os/posix/syscall/fcntl.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:01.000Z
2021-06-04T14:27:15.000Z
qiling/qiling/os/posix/syscall/fcntl.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
null
null
null
qiling/qiling/os/posix/syscall/fcntl.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:09.000Z
2021-06-04T14:27:21.000Z
#!/usr/bin/env python3 # # Cross Platform and Multi Architecture Advanced Binary Emulation Framework # from qiling.const import * from qiling.os.linux.thread import * from qiling.const import * from qiling.os.posix.filestruct import * from qiling.os.filestruct import * from qiling.os.posix.const_mapping import * from...
27.488889
118
0.61924
#!/usr/bin/env python3 # # Cross Platform and Multi Architecture Advanced Binary Emulation Framework # from qiling.const import * from qiling.os.linux.thread import * from qiling.const import * from qiling.os.posix.filestruct import * from qiling.os.filestruct import * from qiling.os.posix.const_mapping import * from...
3,245
0
115
4e431cabe02f617dd38da093c80ad9c5404af08a
2,904
py
Python
test/unit/mysql_rep_admin/add_miss_slaves.py
mjpernot/mysql-rep-admin
08b8f5daf28bc3e462bd72968842f2c44161c084
[ "MIT" ]
null
null
null
test/unit/mysql_rep_admin/add_miss_slaves.py
mjpernot/mysql-rep-admin
08b8f5daf28bc3e462bd72968842f2c44161c084
[ "MIT" ]
null
null
null
test/unit/mysql_rep_admin/add_miss_slaves.py
mjpernot/mysql-rep-admin
08b8f5daf28bc3e462bd72968842f2c44161c084
[ "MIT" ]
null
null
null
#!/usr/bin/python # Classification (U) """Program: add_miss_slaves.py Description: Unit testing of add_miss_slaves in mysql_rep_admin.py. Usage: test/unit/mysql_rep_admin/add_miss_slaves.py Arguments: """ # Libraries and Global Variables # Standard import sys import os if sys.version_info ...
20.892086
75
0.539945
#!/usr/bin/python # Classification (U) """Program: add_miss_slaves.py Description: Unit testing of add_miss_slaves in mysql_rep_admin.py. Usage: test/unit/mysql_rep_admin/add_miss_slaves.py Arguments: """ # Libraries and Global Variables # Standard import sys import os if sys.version_info ...
0
0
0
99017e06c8585e5388a22a35b7a3f448afce5ddd
9,116
py
Python
SUnCNN_DC2.py
BehnoodRasti/SUnCNN
f19245cd7fc0e142bfc66c9a809444d22ed7da36
[ "Apache-2.0" ]
3
2021-11-17T09:34:15.000Z
2022-03-26T11:51:48.000Z
SUnCNN_DC2.py
BehnoodRasti/SUnCNN
f19245cd7fc0e142bfc66c9a809444d22ed7da36
[ "Apache-2.0" ]
null
null
null
SUnCNN_DC2.py
BehnoodRasti/SUnCNN
f19245cd7fc0e142bfc66c9a809444d22ed7da36
[ "Apache-2.0" ]
2
2022-02-24T12:41:02.000Z
2022-03-30T12:26:21.000Z
# -*- coding: utf-8 -*- """ Created on Fri Dec 4 17:53:50 2020 @author: behnood """ from __future__ import print_function import matplotlib.pyplot as plt #%matplotlib inline import os #os.environ['CUDA_VISIBLE_DEVICES'] = '3' import numpy as np from models import * import torch import torch.opti...
41.625571
213
0.554739
# -*- coding: utf-8 -*- """ Created on Fri Dec 4 17:53:50 2020 @author: behnood """ from __future__ import print_function import matplotlib.pyplot as plt #%matplotlib inline import os #os.environ['CUDA_VISIBLE_DEVICES'] = '3' import numpy as np from models import * import torch import torch.opti...
4,026
6
142
75b9590a65adb6b1e657e5a4109bd8c90e601615
379
py
Python
Curso de Python/numeros_primos.py
Cazcode/Curso_python
cbaaedacec8801da2d62da4c3aadce052f04bd64
[ "MIT" ]
null
null
null
Curso de Python/numeros_primos.py
Cazcode/Curso_python
cbaaedacec8801da2d62da4c3aadce052f04bd64
[ "MIT" ]
null
null
null
Curso de Python/numeros_primos.py
Cazcode/Curso_python
cbaaedacec8801da2d62da4c3aadce052f04bd64
[ "MIT" ]
null
null
null
if __name__ == '__main__': run()
18.047619
46
0.522427
def es_primo(number): if number < 2 or number % 2 == 0: return False for i in range(3, number): if number % i == 0: return False return True def run(): number = int(input('Ingrese un número: ')) if es_primo(number): print('Es Primo') else: ...
296
0
45
813f1d0c8d016d91369c44e1d9a6e6b88e01a527
23,140
py
Python
fdc/fdc.py
alexandreday/Fast_Density_Clustering
91e7ee0ccf2b297b40747823302a21cd70d59dc9
[ "BSD-3-Clause" ]
7
2019-11-02T02:07:17.000Z
2022-01-25T10:50:09.000Z
fdc/fdc.py
alexandreday/Fast_Density_Clustering
91e7ee0ccf2b297b40747823302a21cd70d59dc9
[ "BSD-3-Clause" ]
1
2021-09-21T16:47:37.000Z
2022-01-30T00:58:11.000Z
fdc/fdc.py
alexandreday/Fast_Density_Clustering
91e7ee0ccf2b297b40747823302a21cd70d59dc9
[ "BSD-3-Clause" ]
7
2017-12-05T03:18:08.000Z
2021-12-20T19:10:49.000Z
''' Created : Jan 16, 2017 Last major update : June 29, 2017 @author: Alexandre Day Purpose: Fast density clustering ''' import numpy as np import time from numpy.random import random import sys, os from .density_estimation import KDE import pickle from collections import OrderedDict as OD from sklearn....
34.485842
158
0.591357
''' Created : Jan 16, 2017 Last major update : June 29, 2017 @author: Alexandre Day Purpose: Fast density clustering ''' import numpy as np import time from numpy.random import random import sys, os from .density_estimation import KDE import pickle from collections import OrderedDict as OD from sklearn....
4,753
0
255
8af9843b14b841e700e5b71b89c9be14eff3deb2
539
py
Python
aztk_cli/spark/endpoints/job/get_app.py
Geims83/aztk
8f8e7b268bdbf82c3ae4ecdcd907077bd6fe69b6
[ "MIT" ]
161
2017-10-04T08:58:27.000Z
2022-01-03T13:01:04.000Z
aztk_cli/spark/endpoints/job/get_app.py
Geims83/aztk
8f8e7b268bdbf82c3ae4ecdcd907077bd6fe69b6
[ "MIT" ]
400
2017-09-29T21:52:08.000Z
2021-01-08T02:48:56.000Z
aztk_cli/spark/endpoints/job/get_app.py
isabella232/aztk
6e04372d19661ead6744387edab7beda16e3d928
[ "MIT" ]
74
2017-10-13T04:41:26.000Z
2021-12-20T15:56:42.000Z
import argparse import typing import aztk.spark from aztk_cli import config, utils
31.705882
104
0.762523
import argparse import typing import aztk.spark from aztk_cli import config, utils def setup_parser(parser: argparse.ArgumentParser): parser.add_argument("--id", dest="job_id", required=True, help="The unique id of your AZTK job") parser.add_argument("--name", dest="app_name", required=True, help="The unique...
407
0
46
f3302cd3e06d5ffb2be99f117180800962602ad7
1,021
py
Python
src/start_stop_timer.py
MarioMey/OBS-Studio-Python-Scripting-Cheatsheet-obspython-Examples-of-API
7f1f2a00c2731c558f6b9fd75edb697fc0719a7c
[ "MIT" ]
4
2021-03-23T05:25:24.000Z
2021-12-29T16:46:01.000Z
src/start_stop_timer.py
MarioMey/OBS-Studio-Python-Scripting-Cheatsheet-obspython-Examples-of-API
7f1f2a00c2731c558f6b9fd75edb697fc0719a7c
[ "MIT" ]
null
null
null
src/start_stop_timer.py
MarioMey/OBS-Studio-Python-Scripting-Cheatsheet-obspython-Examples-of-API
7f1f2a00c2731c558f6b9fd75edb697fc0719a7c
[ "MIT" ]
null
null
null
import obspython as obs from random import choices FLAG = True INTERVAL = 100 eg = Example() # class created ,obs part starts
22.688889
76
0.624878
import obspython as obs from random import choices FLAG = True INTERVAL = 100 class Example: def __init__(self): self.lock = True def random_numbers(self): print(choices(range(1,10),k=3)) def ticker(self): """ how fast update.One callback at time with lock""" ...
510
265
100
e825db0cd14e732018d8765c992065e614f82878
1,048
py
Python
checkout_sdk/disputes/disputes.py
riaz-bordie-cko/checkout-sdk-python
d9bc073306c1a98544c326be693ed722576ea895
[ "MIT" ]
null
null
null
checkout_sdk/disputes/disputes.py
riaz-bordie-cko/checkout-sdk-python
d9bc073306c1a98544c326be693ed722576ea895
[ "MIT" ]
null
null
null
checkout_sdk/disputes/disputes.py
riaz-bordie-cko/checkout-sdk-python
d9bc073306c1a98544c326be693ed722576ea895
[ "MIT" ]
null
null
null
from datetime import datetime
28.324324
53
0.78626
from datetime import datetime class DisputesQueryFilter: limit: int skip: int from_: datetime to: datetime id: str statuses: str payment_id: str payment_reference: str payment_arn: str this_channel_only: bool # Only available for CS2 entity_ids: str sub_entity_ids: str...
0
970
46
6f8866f4896b6cf29e177021809a4addfceb41c6
3,582
py
Python
esp32/sensor_identifikation/ntc.py
phofmeier/wifi_temp_sensor
93ebc466b6913842cac6eb9385272c79651d2479
[ "MIT" ]
null
null
null
esp32/sensor_identifikation/ntc.py
phofmeier/wifi_temp_sensor
93ebc466b6913842cac6eb9385272c79651d2479
[ "MIT" ]
null
null
null
esp32/sensor_identifikation/ntc.py
phofmeier/wifi_temp_sensor
93ebc466b6913842cac6eb9385272c79651d2479
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import casadi as cas # define functions # Check if Sensor is a NTC and find out the Resistance R_measured = [103e3, 120e3, 70e3, 15.2e3] T_measured_C = [25, 20, 33, 74] R_N = 103e3 T_N = 298.15 U_ges = 3.3 T_range_C = [0, 200] # Kelvin from Temp T_range = [i + 2...
27.343511
255
0.650475
import numpy as np import matplotlib.pyplot as plt import casadi as cas # define functions def R_ntc(R_N, B, T, T_N): return R_N * np.exp(B*(1/T-1/T_N)) def U_meas(U_ges, R_1, R_2): return U_ges/(R_1+R_2) * R_2 def Temp(U_meas, R_1, U_ges, B, R_N, T_N): R_NTC = U_meas * R_1 / (U_ges - U_meas) T_kelv...
327
0
91
11b074486878ba17beb24bb3f56ff683fc015de8
2,698
py
Python
tools/diff_filter.py
caizhanjin/deepseg
5e91a387683ad73075b51b49da8957d8f4bb6b7f
[ "Apache-2.0" ]
null
null
null
tools/diff_filter.py
caizhanjin/deepseg
5e91a387683ad73075b51b49da8957d8f4bb6b7f
[ "Apache-2.0" ]
null
null
null
tools/diff_filter.py
caizhanjin/deepseg
5e91a387683ad73075b51b49da8957d8f4bb6b7f
[ "Apache-2.0" ]
null
null
null
import os import re if __name__ == "__main__": filters = [SingleChineseFilter()] diff_file = "C:\\Users\\allen.luo\\Desktop\\diff_filter\\test.diff.txt" differ = DiffFilter(diff_file) differ.filter(filters)
32.506024
92
0.490734
import os import re class Filter(object): def accept(self, line): raise NotImplementedError() class SingleChineseFilter(Filter): def __init__(self): self.pattern = re.compile("[\u4e00-\u9fa5]+") self.key_words = ['号', '层', '幢', '与', '栋', '旁', '室', '楼'] def accept(self, line): ...
2,265
17
204
644df2770b74634974010bc59eadeb47c1623f79
2,967
py
Python
tests/onegov/agency/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/agency/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/agency/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.agency.app import AgencyApp from onegov.agency.initial_content import create_new_organisation from onegov.user import User from os import path from pytest import fixture from sqlalchemy.orm.session import close_all_sessions from tests.shared import Client from tests.shared.utils import create_app from trans...
26.491071
76
0.601618
from onegov.agency.app import AgencyApp from onegov.agency.initial_content import create_new_organisation from onegov.user import User from os import path from pytest import fixture from sqlalchemy.orm.session import close_all_sessions from tests.shared import Client from tests.shared.utils import create_app from trans...
2,325
0
133
8b67b98d8ea2d3b839bcd5bef3e02df81aed5aca
1,142
py
Python
instances/apps.py
glzjin/webvirtcloud
ecaf11e02aeb57654257ed502d3da6fd8405f21b
[ "Apache-2.0" ]
null
null
null
instances/apps.py
glzjin/webvirtcloud
ecaf11e02aeb57654257ed502d3da6fd8405f21b
[ "Apache-2.0" ]
null
null
null
instances/apps.py
glzjin/webvirtcloud
ecaf11e02aeb57654257ed502d3da6fd8405f21b
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig from django.db.models.signals import post_migrate def migrate_can_clone_instances(sender, **kwargs): ''' Migrate can clone instances user attribute to permission ''' from django.conf import settings from django.contrib.auth.models import User, Permission from ...
35.6875
109
0.683888
from django.apps import AppConfig from django.db.models.signals import post_migrate def migrate_can_clone_instances(sender, **kwargs): ''' Migrate can clone instances user attribute to permission ''' from django.conf import settings from django.contrib.auth.models import User, Permission from ...
66
93
23
db9b52b59816ce2444968110f44841a8d37eb201
9,759
py
Python
tests/opc/test_rel.py
revvsales/python-docx-1
5b3ff2b828cc30f1567cb1682a8cb399143732d7
[ "MIT" ]
3,031
2015-01-02T11:11:24.000Z
2022-03-30T00:57:17.000Z
tests/opc/test_rel.py
revvsales/python-docx-1
5b3ff2b828cc30f1567cb1682a8cb399143732d7
[ "MIT" ]
934
2015-01-06T20:53:56.000Z
2022-03-28T10:08:03.000Z
tests/opc/test_rel.py
revvsales/python-docx-1
5b3ff2b828cc30f1567cb1682a8cb399143732d7
[ "MIT" ]
901
2015-01-07T18:22:07.000Z
2022-03-31T18:38:51.000Z
# encoding: utf-8 """ Unit test suite for the docx.opc.rel module """ from __future__ import ( absolute_import, division, print_function, unicode_literals ) import pytest from docx.opc.oxml import CT_Relationships from docx.opc.packuri import PackURI from docx.opc.part import Part from docx.opc.rel import _Rela...
34.242105
77
0.630905
# encoding: utf-8 """ Unit test suite for the docx.opc.rel module """ from __future__ import ( absolute_import, division, print_function, unicode_literals ) import pytest from docx.opc.oxml import CT_Relationships from docx.opc.packuri import PackURI from docx.opc.part import Part from docx.opc.rel import _Rela...
6,314
2,957
46
5d363713f0c567c72f60e40b049c1d6047d88f04
4,873
py
Python
python/plugins/broker/mqtt/tests/test_params.py
ulen2000/sinetstream
efbd1688be0754c38b0ea88f0f253f91b44689be
[ "Apache-2.0" ]
1
2020-03-24T15:29:23.000Z
2020-03-24T15:29:23.000Z
python/plugins/broker/mqtt/tests/test_params.py
ulen2000/sinetstream
efbd1688be0754c38b0ea88f0f253f91b44689be
[ "Apache-2.0" ]
null
null
null
python/plugins/broker/mqtt/tests/test_params.py
ulen2000/sinetstream
efbd1688be0754c38b0ea88f0f253f91b44689be
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python3.6 # vim: expandtab shiftwidth=4 # Copyright (C) 2020 National Institute of Informatics # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright own...
26.058824
77
0.682742
#!/usr/local/bin/python3.6 # vim: expandtab shiftwidth=4 # Copyright (C) 2020 National Institute of Informatics # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright own...
713
0
286
3d601cf4bfe04df1b7cde903f2017afd1f54a428
407
py
Python
test/backup_setup.py
jinyiabc/china_stock_lib
d580b9f2a3f20ca9f87c7a4d42aeedccfa450f4f
[ "MIT" ]
null
null
null
test/backup_setup.py
jinyiabc/china_stock_lib
d580b9f2a3f20ca9f87c7a4d42aeedccfa450f4f
[ "MIT" ]
null
null
null
test/backup_setup.py
jinyiabc/china_stock_lib
d580b9f2a3f20ca9f87c7a4d42aeedccfa450f4f
[ "MIT" ]
2
2021-12-30T23:53:55.000Z
2022-02-01T18:10:42.000Z
# from distutils.core import setup # setup(name='helper', # version='0.1.1', # py_modules=['upload_github'], # data_files=[('config', ['mysql.cfg'])], # ) # from setuptools import setup # # setup( # name='mypackage', # version='0.0.1', # packages=['mypackage'], # install_requir...
22.611111
47
0.538084
# from distutils.core import setup # setup(name='helper', # version='0.1.1', # py_modules=['upload_github'], # data_files=[('config', ['mysql.cfg'])], # ) # from setuptools import setup # # setup( # name='mypackage', # version='0.0.1', # packages=['mypackage'], # install_requir...
0
0
0
79225c470cde861cd7490495560ca1243733a6b2
4,223
py
Python
tests/unit_tests/test_units/test_core.py
radical-project/radical.dreamer
74bb2a9a705fc90b0dc773963f2bfd48af6e1b84
[ "MIT" ]
4
2021-04-30T04:25:12.000Z
2021-12-16T19:53:37.000Z
tests/unit_tests/test_units/test_core.py
radical-project/radical.dreamer
74bb2a9a705fc90b0dc773963f2bfd48af6e1b84
[ "MIT" ]
1
2021-04-20T22:08:24.000Z
2021-04-20T22:08:24.000Z
tests/unit_tests/test_units/test_core.py
radical-project/radical.dreamer
74bb2a9a705fc90b0dc773963f2bfd48af6e1b84
[ "MIT" ]
1
2021-01-10T20:09:19.000Z
2021-01-10T20:09:19.000Z
__copyright__ = 'Copyright 2021, The RADICAL-Cybertools Team' __license__ = 'MIT' import glob import radical.utils as ru from radical.dreamer.units import Core, Task, CORE_STATE from unittest import TestCase TEST_CASES_PATH = 'tests/unit_tests/test_units/test_cases/core.*.json'
35.487395
76
0.600047
__copyright__ = 'Copyright 2021, The RADICAL-Cybertools Team' __license__ = 'MIT' import glob import radical.utils as ru from radical.dreamer.units import Core, Task, CORE_STATE from unittest import TestCase TEST_CASES_PATH = 'tests/unit_tests/test_units/test_cases/core.*.json' class CoreTestClass(TestCase): ...
3,778
134
23
bcf1f57f33b1cf0327c51d531ce1989a4096bd93
24,349
py
Python
LivSim Processing/event.py
kbui1993/LivSim-Codes
5317fa6ea773d5967871dfb67dec1a0118ec2f5e
[ "MIT" ]
2
2018-05-07T03:31:54.000Z
2019-07-02T18:30:41.000Z
LivSim Processing/event.py
kbui1993/LivSim-Codes
5317fa6ea773d5967871dfb67dec1a0118ec2f5e
[ "MIT" ]
null
null
null
LivSim Processing/event.py
kbui1993/LivSim-Codes
5317fa6ea773d5967871dfb67dec1a0118ec2f5e
[ "MIT" ]
1
2019-01-19T19:56:43.000Z
2019-01-19T19:56:43.000Z
import entity, allocate import numpy as nump import datetime from copy import deepcopy ndsa = 58 #######################################################################Event Processes#################################################################################### def Arrival(arrivalinfo, Sim, Stat, OPTN): """ ...
51.153361
213
0.611278
import entity, allocate import numpy as nump import datetime from copy import deepcopy ndsa = 58 #######################################################################Event Processes#################################################################################### def Arrival(arrivalinfo, Sim, Stat, OPTN): """ ...
0
0
0
89b6a5aacdae170197bc3ceae867aa296d074173
594
py
Python
Algorithms/Searching & Sorting/Counting Sort/counting_sort.py
sol4ik/interview-techdev-guide
2f1c755df3f34125850a2d6322edc24dc097c1fb
[ "MIT" ]
null
null
null
Algorithms/Searching & Sorting/Counting Sort/counting_sort.py
sol4ik/interview-techdev-guide
2f1c755df3f34125850a2d6322edc24dc097c1fb
[ "MIT" ]
null
null
null
Algorithms/Searching & Sorting/Counting Sort/counting_sort.py
sol4ik/interview-techdev-guide
2f1c755df3f34125850a2d6322edc24dc097c1fb
[ "MIT" ]
null
null
null
def countSort(array): """ Counting Sort algorithm implementation on Python. :param array: array that need to be sorted :return: resulting sorted array """ output = [0 for i in range(256)] count = [0 for i in range(256)] result = ["" for element in array] for i in array: resul...
29.7
53
0.574074
def countSort(array): """ Counting Sort algorithm implementation on Python. :param array: array that need to be sorted :return: resulting sorted array """ output = [0 for i in range(256)] count = [0 for i in range(256)] result = ["" for element in array] for i in array: resul...
0
0
0
159c632f19d51c0cb382b2c9ba57cbb71f415051
96
py
Python
samtranslator/public/models.py
eugeniosu/serverless-application-model
d93e15232a1921fa51667389d83aeabbf1ff72d3
[ "Apache-2.0" ]
6
2019-03-29T02:56:59.000Z
2021-03-28T22:07:02.000Z
samtranslator/public/models.py
eugeniosu/serverless-application-model
d93e15232a1921fa51667389d83aeabbf1ff72d3
[ "Apache-2.0" ]
18
2019-10-09T23:27:48.000Z
2021-06-25T15:18:24.000Z
samtranslator/public/models.py
Mattlk13/serverless-application-model
27b5934de46c42d47ba1484d5432310cac694b25
[ "Apache-2.0" ]
15
2019-05-27T01:04:30.000Z
2021-10-01T05:54:45.000Z
# flake8: noqa from samtranslator.model.function_policies import FunctionPolicies, PolicyTypes
24
79
0.854167
# flake8: noqa from samtranslator.model.function_policies import FunctionPolicies, PolicyTypes
0
0
0
43c0f69870ce566bd19cef135e12fb3a3b95c79c
32,952
py
Python
src/shared_gui.py
NicholasPSnow/99-CapstoneProject-201920
ca3baa3b3c53ae6c5af70cd93b3af450a1da41ad
[ "MIT" ]
null
null
null
src/shared_gui.py
NicholasPSnow/99-CapstoneProject-201920
ca3baa3b3c53ae6c5af70cd93b3af450a1da41ad
[ "MIT" ]
null
null
null
src/shared_gui.py
NicholasPSnow/99-CapstoneProject-201920
ca3baa3b3c53ae6c5af70cd93b3af450a1da41ad
[ "MIT" ]
null
null
null
""" Capstone Project. Code to run on a LAPTOP (NOT the robot). Constructs and returns Frame objects for the basics: -- teleoperation -- arm movement -- stopping the robot program This code is SHARED by all team members. It contains both: -- High-level, general-purpose methods for a Snatch3r EV3 robot...
41.711392
160
0.689306
""" Capstone Project. Code to run on a LAPTOP (NOT the robot). Constructs and returns Frame objects for the basics: -- teleoperation -- arm movement -- stopping the robot program This code is SHARED by all team members. It contains both: -- High-level, general-purpose methods for a Snatch3r EV3 robot...
3,703
0
452
1825f4b23a74762f04636ac05fc56fa9252aa0dc
1,765
py
Python
segmentation_models/encoders/__init__.py
jmerkow/segmentation_models.pytorch
d33fb5ea4a66da1ed0006eaca4dbfa88aa986925
[ "MIT" ]
null
null
null
segmentation_models/encoders/__init__.py
jmerkow/segmentation_models.pytorch
d33fb5ea4a66da1ed0006eaca4dbfa88aa986925
[ "MIT" ]
null
null
null
segmentation_models/encoders/__init__.py
jmerkow/segmentation_models.pytorch
d33fb5ea4a66da1ed0006eaca4dbfa88aa986925
[ "MIT" ]
2
2019-07-25T16:52:29.000Z
2019-08-19T17:44:46.000Z
import functools import torch.utils.model_zoo as model_zoo from ._preprocessing import preprocess_input from .densenet import densenet_encoders from .dpn import dpn_encoders from .efficientnet import efficientnet_encoders from .inceptionresnetv2 import inception_encoders from .resnet import resnet_encoders from .sene...
32.685185
116
0.782436
import functools import torch.utils.model_zoo as model_zoo from ._preprocessing import preprocess_input from .densenet import densenet_encoders from .dpn import dpn_encoders from .efficientnet import efficientnet_encoders from .inceptionresnetv2 import inception_encoders from .resnet import resnet_encoders from .sene...
994
0
69
eebfc13ced21d7e77e7aebf9405251558b6a72e0
284
py
Python
exercicios/vestibular.py
IgoPereiraBarros/maratona-data-science-brasil
cc07476579134a2764f00d229d415657555dcdd1
[ "MIT" ]
null
null
null
exercicios/vestibular.py
IgoPereiraBarros/maratona-data-science-brasil
cc07476579134a2764f00d229d415657555dcdd1
[ "MIT" ]
null
null
null
exercicios/vestibular.py
IgoPereiraBarros/maratona-data-science-brasil
cc07476579134a2764f00d229d415657555dcdd1
[ "MIT" ]
null
null
null
N = int(input()) gabarito_prova = input().split() gabarito_aluno = input().split() list_aluno = [] list_prova = [] count = 0 for i in range(gabarito_aluno): for j in range(gabarito_prova): if gabarito_aluno[i] == gabarito_prova[j]: count += 1 print(count)
17.75
50
0.637324
N = int(input()) gabarito_prova = input().split() gabarito_aluno = input().split() list_aluno = [] list_prova = [] count = 0 for i in range(gabarito_aluno): for j in range(gabarito_prova): if gabarito_aluno[i] == gabarito_prova[j]: count += 1 print(count)
0
0
0
616305a77276e725923fc24a8acb3ff30c156348
194
py
Python
apps/contact/urls.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
32
2017-02-22T13:38:38.000Z
2022-03-31T23:29:54.000Z
apps/contact/urls.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
694
2017-02-15T23:09:52.000Z
2022-03-31T23:16:07.000Z
apps/contact/urls.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
35
2017-09-02T21:13:09.000Z
2022-02-21T11:30:30.000Z
from django.conf.urls import url from apps.contact import views urlpatterns = [ url(r"^$", views.index, name="contact_index"), url(r"^submit/", views.contact_submit, name="submit"), ]
21.555556
58
0.690722
from django.conf.urls import url from apps.contact import views urlpatterns = [ url(r"^$", views.index, name="contact_index"), url(r"^submit/", views.contact_submit, name="submit"), ]
0
0
0
60b9f934da6221160ed9c0661e0ab963f52e38f1
2,993
py
Python
src/plugins/nonebot_plugin_picsearcher/iqdb.py
ltyec/Kiba
1c7db0939151aaa46ef865638b8b347ceebb71a1
[ "MIT" ]
null
null
null
src/plugins/nonebot_plugin_picsearcher/iqdb.py
ltyec/Kiba
1c7db0939151aaa46ef865638b8b347ceebb71a1
[ "MIT" ]
null
null
null
src/plugins/nonebot_plugin_picsearcher/iqdb.py
ltyec/Kiba
1c7db0939151aaa46ef865638b8b347ceebb71a1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import asyncio from typing import List, Tuple import io from urllib.parse import urljoin from lxml.html import fromstring import aiohttp from nonebot.adapters.cqhttp import MessageSegment from .formdata import FormData headers = { 'Accept': 'text/html,application/xhtml+xml,application/xml...
37.4125
141
0.625459
# -*- coding: utf-8 -*- import asyncio from typing import List, Tuple import io from urllib.parse import urljoin from lxml.html import fromstring import aiohttp from nonebot.adapters.cqhttp import MessageSegment from .formdata import FormData headers = { 'Accept': 'text/html,application/xhtml+xml,application/xml...
704
0
23
4cecb8040d2df98220d60255b7529141552cd38a
2,703
py
Python
explorer/api/inner_api.py
AthenaExplorer/xm_s_explorer_v2
203f7b5d129552f5b7c977c4247d2060956f8add
[ "MIT" ]
null
null
null
explorer/api/inner_api.py
AthenaExplorer/xm_s_explorer_v2
203f7b5d129552f5b7c977c4247d2060956f8add
[ "MIT" ]
null
null
null
explorer/api/inner_api.py
AthenaExplorer/xm_s_explorer_v2
203f7b5d129552f5b7c977c4247d2060956f8add
[ "MIT" ]
1
2022-03-02T19:20:52.000Z
2022-03-02T19:20:52.000Z
import datetime from flask import request from explorer.services.message import MessageService from explorer.services.miner import MinerService from explorer.services.wallets import WalletsService from explorer.services.blocks import BlocksService from base.utils.fil import datetime_to_height from base.response import ...
25.027778
92
0.699593
import datetime from flask import request from explorer.services.message import MessageService from explorer.services.miner import MinerService from explorer.services.wallets import WalletsService from explorer.services.blocks import BlocksService from base.utils.fil import datetime_to_height from base.response import ...
0
0
0
d2832ef568cd65320be37ac0297b38c2de6deae9
3,743
py
Python
starter_code/student_utils.py
ykhiari/Patient-Selection-for-Diabetes-Drug-Testing
ce8e698bff4cbf5a9319607404edada539c5c099
[ "MIT" ]
null
null
null
starter_code/student_utils.py
ykhiari/Patient-Selection-for-Diabetes-Drug-Testing
ce8e698bff4cbf5a9319607404edada539c5c099
[ "MIT" ]
null
null
null
starter_code/student_utils.py
ykhiari/Patient-Selection-for-Diabetes-Drug-Testing
ce8e698bff4cbf5a9319607404edada539c5c099
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import os import tensorflow as tf from functools import partial ####### STUDENTS FILL THIS OUT ###### #Question 3 def reduce_dimension_ndc(df, ndc_code_df): ''' df: pandas dataframe, input dataset ndc_df: pandas dataframe, drug code dataset used for mapping in generic...
36.339806
111
0.678333
import pandas as pd import numpy as np import os import tensorflow as tf from functools import partial ####### STUDENTS FILL THIS OUT ###### #Question 3 def reduce_dimension_ndc(df, ndc_code_df): ''' df: pandas dataframe, input dataset ndc_df: pandas dataframe, drug code dataset used for mapping in generic...
65
0
22
455bb28e06d1af0c76eed9c4216798bb512e32a8
1,115
py
Python
snake.py
junio-firmino/snake_game
fd78695406a55d057c2db54a126f46d552e77865
[ "MIT" ]
null
null
null
snake.py
junio-firmino/snake_game
fd78695406a55d057c2db54a126f46d552e77865
[ "MIT" ]
null
null
null
snake.py
junio-firmino/snake_game
fd78695406a55d057c2db54a126f46d552e77865
[ "MIT" ]
null
null
null
from turtle import Screen import time from food import Food from snake_shape import Snake from snake_scoreboard import Scoreboard screen = Screen() screen.setup(width=600, height=600) screen.bgcolor('black') screen.title('My snake game for desktop.') screen.tracer(0) snake = Snake() food = Food() scoreb...
25.340909
139
0.650224
from turtle import Screen import time from food import Food from snake_shape import Snake from snake_scoreboard import Scoreboard screen = Screen() screen.setup(width=600, height=600) screen.bgcolor('black') screen.title('My snake game for desktop.') screen.tracer(0) snake = Snake() food = Food() scoreb...
0
0
0
ce7497caf65ff408828c9a4485a76cb9d8da0b6f
720
py
Python
tests/test_callouts.py
michalporeba/callouts
44d3e8bdbb1bc012a1a354f438f48b1d9a372c66
[ "MIT" ]
null
null
null
tests/test_callouts.py
michalporeba/callouts
44d3e8bdbb1bc012a1a354f438f48b1d9a372c66
[ "MIT" ]
null
null
null
tests/test_callouts.py
michalporeba/callouts
44d3e8bdbb1bc012a1a354f438f48b1d9a372c66
[ "MIT" ]
null
null
null
from .sample.aplugin import APlugin from .sample.apluginimpl import * from .sample.bplugin import BPlugin from .sample.bpluginimpl import *
27.692308
64
0.726389
from .sample.aplugin import APlugin from .sample.apluginimpl import * from .sample.bplugin import BPlugin from .sample.bpluginimpl import * def test_query_first_in_a(): assert 'a second' == APlugin.get_name() def test_query_first_in_b(): assert 'b first' == BPlugin.get_name() def test_return_default_value_i...
415
0
165
8db4e0a2b4356561beec71bf632f2ecd064965c3
5,060
py
Python
tests/test_nelson_siegel_svensson.py
luphord/nelson_siegel_svensson
e2437a9bf924d6cd54181de018ed8af8214a6055
[ "MIT" ]
55
2019-02-13T21:23:43.000Z
2022-03-19T13:15:35.000Z
tests/test_nelson_siegel_svensson.py
musacan1300/nelson_siegel_svensson
b5c652f5f6d134457571467055fa12cd7df57213
[ "MIT" ]
10
2019-04-06T12:46:33.000Z
2022-03-30T13:00:27.000Z
tests/test_nelson_siegel_svensson.py
musacan1300/nelson_siegel_svensson
b5c652f5f6d134457571467055fa12cd7df57213
[ "MIT" ]
33
2019-05-20T22:42:22.000Z
2022-02-03T12:20:26.000Z
# -*- coding: utf-8 -*- import unittest import os import json from dataclasses import asdict import numpy as np import click from click.testing import CliRunner from nelson_siegel_svensson import cli, NelsonSiegelCurve, \ NelsonSiegelSvenssonCurve class TestNelson_siegel_svensson(unittest.TestCase): '''Tes...
43.62069
79
0.538933
# -*- coding: utf-8 -*- import unittest import os import json from dataclasses import asdict import numpy as np import click from click.testing import CliRunner from nelson_siegel_svensson import cli, NelsonSiegelCurve, \ NelsonSiegelSvenssonCurve class TestNelson_siegel_svensson(unittest.TestCase): '''Tes...
389
0
27
05b83b0f032b96f78decc11085191dfb8bd3a7f2
2,114
py
Python
Data Management Tools/reproject_shp.py
MBoustani/Geothon
07a499d4ac0bb767677cd59b301022ad2ab16136
[ "Apache-2.0" ]
60
2015-01-12T08:36:19.000Z
2021-12-20T11:06:25.000Z
Data Management Tools/reproject_shp.py
MBoustani/Geothon
07a499d4ac0bb767677cd59b301022ad2ab16136
[ "Apache-2.0" ]
null
null
null
Data Management Tools/reproject_shp.py
MBoustani/Geothon
07a499d4ac0bb767677cd59b301022ad2ab16136
[ "Apache-2.0" ]
20
2015-02-20T03:05:17.000Z
2021-12-27T16:18:45.000Z
#!/usr/bin/env python ''' Project: Geothon (https://github.com/MBoustani/Geothon) File: Vector/reproject_shp.py Description: This code reprojects Shapefile. Author: Maziyar Boustani (github.com/MBoustani) ''' import os try: import ogr except ImportError: from osgeo import ogr try: ...
27.102564
100
0.784295
#!/usr/bin/env python ''' Project: Geothon (https://github.com/MBoustani/Geothon) File: Vector/reproject_shp.py Description: This code reprojects Shapefile. Author: Maziyar Boustani (github.com/MBoustani) ''' import os try: import ogr except ImportError: from osgeo import ogr try: ...
0
0
0
7f9859507d041ae77a30f1cf80437265e112aec8
23,500
py
Python
environmentalSoundClassification/audioProcessingUtil.py
amogh3892/Environmental-sound-recognition-using-combination-of-spectrogram-and-acoustic-features
448efaa2e1954e0f74602dc5c5aba95ba69ecfcd
[ "Apache-2.0" ]
21
2017-06-21T01:28:04.000Z
2022-03-24T03:23:01.000Z
environmentalSoundClassification/audioProcessingUtil.py
amogh3892/Environmental-sound-recognition-using-combination-of-spectrogram-and-acoustic-features
448efaa2e1954e0f74602dc5c5aba95ba69ecfcd
[ "Apache-2.0" ]
1
2018-03-20T20:02:45.000Z
2018-03-20T20:02:45.000Z
environmentalSoundClassification/audioProcessingUtil.py
amogh3892/Environmental-sound-recognition-using-combination-of-spectrogram-and-acoustic-features
448efaa2e1954e0f74602dc5c5aba95ba69ecfcd
[ "Apache-2.0" ]
3
2019-06-25T17:41:11.000Z
2021-05-06T01:04:26.000Z
import numpy as np import librosa from scipy import interpolate import pywt from matplotlib.image import imsave from scipy.signal import butter, lfilter, freqz from matplotlib import pyplot as plt from imageProcessingUtil import ImageProcessing import SimpleITK as sitk
30.961792
180
0.567787
import numpy as np import librosa from scipy import interpolate import pywt from matplotlib.image import imsave from scipy.signal import butter, lfilter, freqz from matplotlib import pyplot as plt from imageProcessingUtil import ImageProcessing import SimpleITK as sitk class AudioProcessing(object): ...
4,622
18,571
24
13e23dc0a6662a0f1c60b6e0b4542b80784914e5
275
py
Python
proj02/proj02_01.py
scienceman44/SAVY
5a9781a9d08288c40f883602dc3b6bab4d6c63c1
[ "MIT" ]
null
null
null
proj02/proj02_01.py
scienceman44/SAVY
5a9781a9d08288c40f883602dc3b6bab4d6c63c1
[ "MIT" ]
null
null
null
proj02/proj02_01.py
scienceman44/SAVY
5a9781a9d08288c40f883602dc3b6bab4d6c63c1
[ "MIT" ]
null
null
null
# Name: # Date: result = 0 loop_control = True while loop_control == True: b = int(raw_input('Enter a number to add, or 0 to indicate you are finished:')) if b == 0: loop_control = False result = result + b print 'your result is:' print result
18.333333
83
0.621818
# Name: # Date: result = 0 loop_control = True while loop_control == True: b = int(raw_input('Enter a number to add, or 0 to indicate you are finished:')) if b == 0: loop_control = False result = result + b print 'your result is:' print result
0
0
0
04b3ca56fafcb17962d19c797e31c3700c6e41b8
9,753
py
Python
generate_qumulo_cloudformation_template_test.py
Qumulo/Cloud-Deployment-Samples
a1ed1850b80ec14ea7520c5829421209efce8382
[ "MIT" ]
4
2019-12-25T22:09:37.000Z
2022-02-07T19:46:03.000Z
generate_qumulo_cloudformation_template_test.py
Qumulo/Cloud-Deployment-Samples
a1ed1850b80ec14ea7520c5829421209efce8382
[ "MIT" ]
1
2020-07-10T22:24:53.000Z
2020-07-10T22:24:53.000Z
generate_qumulo_cloudformation_template_test.py
Qumulo/cloud-samples
a1ed1850b80ec14ea7520c5829421209efce8382
[ "MIT" ]
3
2020-07-10T22:05:14.000Z
2022-02-07T19:46:04.000Z
import os import json import unittest from troposphere import ec2, Template from generate_qumulo_cloudformation_template import * if __name__ == '__main__': unittest.main()
34.708185
86
0.58177
import os import json import unittest from troposphere import ec2, Template from generate_qumulo_cloudformation_template import * class ChassisSpecTest(unittest.TestCase): def test_init(self) -> None: spec = ChassisSpec( volume_count=20, pairing_ratio=4, working_spec={...
8,703
124
739
86d20c2cd0960aaa6593f882e80973ad808bffa1
23,886
py
Python
sdk/python/pulumi_azure_native/notificationhubs/v20160301/notification_hub.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/notificationhubs/v20160301/notification_hub.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/notificationhubs/v20160301/notification_hub.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
46.111969
590
0.668174
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
6,082
17,299
45
ff0414b799e8f6504673a326a43404552c0e74fc
12,480
py
Python
sts_auth/stsauth.py
cshamrick/stsauth
f30cc37ed1d5e18cb47a250bf4c67a5d6332478e
[ "MIT" ]
20
2018-05-21T21:21:47.000Z
2022-02-09T04:11:06.000Z
sts_auth/stsauth.py
cshamrick/stsauth
f30cc37ed1d5e18cb47a250bf4c67a5d6332478e
[ "MIT" ]
15
2018-07-04T02:57:14.000Z
2021-08-09T18:03:12.000Z
sts_auth/stsauth.py
cshamrick/stsauth
f30cc37ed1d5e18cb47a250bf4c67a5d6332478e
[ "MIT" ]
6
2018-09-04T05:07:09.000Z
2021-06-30T19:49:21.000Z
import os import re import sys from datetime import datetime from typing import Optional, Mapping from urllib.parse import urlparse, urlunparse import boto3 # type: ignore[import] import click # type: ignore[import] import requests from requests_ntlm import HttpNtlmAuth # type: ignore[import] from bs4 import Beauti...
43.034483
110
0.634936
import os import re import sys from datetime import datetime from typing import Optional, Mapping from urllib.parse import urlparse, urlunparse import boto3 # type: ignore[import] import click # type: ignore[import] import requests from requests_ntlm import HttpNtlmAuth # type: ignore[import] from bs4 import Beauti...
8,351
0
162
f8b6c498aceb5c6cd20a8bd5c69808fe4c7a6870
561
py
Python
src/unittest/python/rds_utils_tests.py
ImmobilienScout24/rds_log_dog
f8df42b78f24856358db15b20675f0a155a02f19
[ "MIT" ]
1
2018-01-11T18:36:28.000Z
2018-01-11T18:36:28.000Z
src/unittest/python/rds_utils_tests.py
ImmobilienScout24/rds_log_dog
f8df42b78f24856358db15b20675f0a155a02f19
[ "MIT" ]
2
2017-01-05T15:45:47.000Z
2018-04-16T11:12:01.000Z
src/unittest/python/rds_utils_tests.py
ImmobilienScout24/rds_log_dog
f8df42b78f24856358db15b20675f0a155a02f19
[ "MIT" ]
5
2017-01-05T15:39:02.000Z
2018-04-16T10:37:44.000Z
from __future__ import print_function, absolute_import, division import unittest2 as unittest from mock import patch from rds_log_dog.rds_utils import get_size
33
65
0.741533
from __future__ import print_function, absolute_import, division import unittest2 as unittest from mock import patch from rds_log_dog.rds_utils import get_size class Test(unittest.TestCase): @patch('rds_log_dog.rds_utils.describe_logfiles_of_instance') def test_get_size(self, describe_logfiles_of_instance)...
273
102
23
e7671c5cc516f190fa1376f587270c007db5334e
2,747
py
Python
cytopy/tests/test_project.py
JANHMS/CytoPy
8537d707fa25645b55b4ec1e25fff9f19847fb1b
[ "MIT" ]
41
2020-04-08T11:01:28.000Z
2022-03-11T17:17:18.000Z
cytopy/tests/test_project.py
JANHMS/CytoPy
8537d707fa25645b55b4ec1e25fff9f19847fb1b
[ "MIT" ]
27
2020-04-07T14:59:24.000Z
2022-03-01T20:43:34.000Z
cytopy/tests/test_project.py
JANHMS/CytoPy
8537d707fa25645b55b4ec1e25fff9f19847fb1b
[ "MIT" ]
8
2020-04-28T15:16:24.000Z
2022-03-02T19:02:14.000Z
from cytopy.data.project import Project from cytopy.data.errors import * from cytopy.tests import assets import pytest import os @pytest.fixture()
34.772152
104
0.697124
from cytopy.data.project import Project from cytopy.data.errors import * from cytopy.tests import assets import pytest import os @pytest.fixture() def create_project(): os.mkdir(f"{os.getcwd()}/test_data2") p = Project(project_id="test", data_directory=f"{os.getcwd()}/test_data2") p.save() yield p ...
2,384
0
206