hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
3523f7a4e21ce7b43e6d91a635c407f4186ed4cb
4,766
py
Python
anyway/widgets/suburban_widgets/accident_type_vehicle_type_road_comparison_widget.py
volsky/anyway
5d5a2600723392f1a55116a3b5d5b1f28a3ed029
[ "MIT" ]
1
2022-01-19T18:23:03.000Z
2022-01-19T18:23:03.000Z
anyway/widgets/suburban_widgets/accident_type_vehicle_type_road_comparison_widget.py
volsky/anyway
5d5a2600723392f1a55116a3b5d5b1f28a3ed029
[ "MIT" ]
null
null
null
anyway/widgets/suburban_widgets/accident_type_vehicle_type_road_comparison_widget.py
volsky/anyway
5d5a2600723392f1a55116a3b5d5b1f28a3ed029
[ "MIT" ]
null
null
null
import datetime import logging from typing import List, Dict from flask_babel import _ from sqlalchemy import func, distinct, desc from anyway.request_params import RequestParams from anyway.app_and_db import db from anyway.widgets.widget_utils import get_query, run_query from anyway.models import VehicleMa...
40.05042
119
0.638271
ec2309b1674981efc3ac923b77b4cee1c9c1927c
34,578
py
Python
brouillon.py
AlexandreFiche/machine_learning_for_autonomous_driving
e2749e7408cb4c26ed94a69b66c975e641c33838
[ "MIT" ]
1
2020-07-22T09:13:17.000Z
2020-07-22T09:13:17.000Z
brouillon.py
AlexandreFiche/machine_learning_for_autonomous_driving
e2749e7408cb4c26ed94a69b66c975e641c33838
[ "MIT" ]
null
null
null
brouillon.py
AlexandreFiche/machine_learning_for_autonomous_driving
e2749e7408cb4c26ed94a69b66c975e641c33838
[ "MIT" ]
1
2021-04-16T13:05:43.000Z
2021-04-16T13:05:43.000Z
# Brouillon pour stocker des bouts de codes qui peuvent reservir # 15/06 # 1 from nuscenes.utils.geometry_utils import view_points, box_in_image, BoxVisibility anntoken = "bc3180b07f8e4a728f504ded654df56f" ann_record = nusc.get('sample_annotation',anntoken) sample_record = nusc.get('sample', ann_record['sample_toke...
40.775943
246
0.613743
1103f18269dc6a0abe0f072fc23da990635fe60e
191
py
Python
tests/cpydiff/modules_array_subscrstep.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
692
2016-12-19T23:25:35.000Z
2022-03-31T14:20:48.000Z
tests/cpydiff/modules_array_subscrstep.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
509
2017-03-28T19:37:18.000Z
2022-03-31T20:31:43.000Z
tests/cpydiff/modules_array_subscrstep.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
228
2016-12-19T05:03:30.000Z
2022-03-22T18:13:00.000Z
""" categories: Modules,array description: Subscript with step != 1 is not yet implemented cause: Unknown workaround: Unknown """ import array a = array.array('b', (1, 2, 3)) print(a[3:2:2])
19.1
60
0.701571
d3362f2e330b64a3e5c0f80a67a759ce4837fd86
1,365
py
Python
save_images.py
clovadev/qualitative-evaluator
83fc54bfa7b9599135235d9317741362cb937feb
[ "MIT" ]
2
2021-02-22T10:55:29.000Z
2021-02-22T10:55:30.000Z
save_images.py
clovadev/visual-comparator
83fc54bfa7b9599135235d9317741362cb937feb
[ "MIT" ]
null
null
null
save_images.py
clovadev/visual-comparator
83fc54bfa7b9599135235d9317741362cb937feb
[ "MIT" ]
null
null
null
import os from PIL import Image import tqdm import utils # 디렉토리 설정 config = utils.load_config() os.makedirs(config['cluster_dir'], exist_ok=True) # 이미지 경로 가져오기 paths_input_image = utils.get_image_path(config['root'], 'input_image') paths_groundtruth = utils.get_image_path(config['root'], 'groundtruth') paths_conventi...
40.147059
105
0.752381
eec50962d6f1ebb12b0b06e319ec0de50df29635
2,635
py
Python
budget-rnn/src/layers/output_layers.py
tejaskannan/ml-models
ad5acad2c0ce75773062ffcdff088a6fbe5ffc17
[ "Apache-2.0" ]
1
2021-06-28T15:40:41.000Z
2021-06-28T15:40:41.000Z
budget-rnn/src/layers/output_layers.py
tejaskannan/ml-models
ad5acad2c0ce75773062ffcdff088a6fbe5ffc17
[ "Apache-2.0" ]
5
2021-03-04T19:42:15.000Z
2022-02-10T05:46:15.000Z
budget-rnn/src/layers/output_layers.py
tejaskannan/budget-rnn
ad5acad2c0ce75773062ffcdff088a6fbe5ffc17
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from collections import namedtuple from enum import Enum, auto from typing import List from utils.constants import ONE_HALF, SMALL_NUMBER # Tuples to store output types ClassificationOutput = namedtuple('ClassificationOutput', ['logits', 'prediction_probs', 'predictions', 'accuracy']) Regress...
39.328358
119
0.679696
f4ed5456b32e588679506c33c399e106f7179181
5,647
py
Python
model/quantized_cifar10_resnet.py
cornell-zhang/dnn-gating
31666fadf35789b433c79eec8669a3a2df818bd4
[ "BSD-3-Clause" ]
58
2020-03-03T23:51:24.000Z
2022-02-22T14:11:17.000Z
model/quantized_cifar10_resnet.py
cornell-zhang/dnn-gating
31666fadf35789b433c79eec8669a3a2df818bd4
[ "BSD-3-Clause" ]
5
2020-10-29T12:59:31.000Z
2022-03-26T03:56:50.000Z
model/quantized_cifar10_resnet.py
cornell-zhang/dnn-gating
31666fadf35789b433c79eec8669a3a2df818bd4
[ "BSD-3-Clause" ]
11
2020-04-20T09:17:19.000Z
2022-02-21T19:05:02.000Z
''' Properly implemented ResNet-s for CIFAR10 as described in paper [1]. The implementation and structure of this file is hugely influenced by [2] which is implemented for ImageNet and doesn't have option A for identity. Moreover, most of the implementations on the web is copy-paste from torchvision's resnet and has wr...
35.074534
120
0.602267
df93ca6a6ab00cec6d9e2e02bb7354a52f11fb77
4,348
py
Python
homeassistant/components/cloud/account_link.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
homeassistant/components/cloud/account_link.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
79
2020-07-23T07:13:37.000Z
2022-03-22T06:02:37.000Z
homeassistant/components/cloud/account_link.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
6
2018-02-04T03:48:55.000Z
2022-01-24T20:37:04.000Z
"""Account linking via the cloud.""" import asyncio import logging from typing import Any import aiohttp from hass_nabucasa import account_link from homeassistant.const import MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import config_en...
29.181208
87
0.665363
8d28816db7b20937f37f33a546fb79473a6d5c80
2,206
py
Python
src/collectors/ping/ping.py
hermdog/Diamond
0f3eb04327d6d3ed5e53a9967d6c9d2c09714a47
[ "MIT" ]
1,795
2015-01-05T11:14:55.000Z
2022-03-25T12:07:15.000Z
src/collectors/ping/ping.py
hermdog/Diamond
0f3eb04327d6d3ed5e53a9967d6c9d2c09714a47
[ "MIT" ]
671
2015-01-02T05:57:27.000Z
2022-03-29T22:39:05.000Z
src/collectors/ping/ping.py
hermdog/Diamond
0f3eb04327d6d3ed5e53a9967d6c9d2c09714a47
[ "MIT" ]
793
2015-01-03T01:39:02.000Z
2022-02-18T05:12:27.000Z
# coding=utf-8 """ Collect icmp round trip times Only valid for ipv4 hosts currently #### Dependencies * ping #### Configuration Configuration is done by: Create a file named: PingCollector.conf in the collectors_config_path * enabled = true * interval = 60 * target_1 = example.org * target_fw = 192.168.0.1...
26.902439
80
0.575703
bcaebe0db87db248a09700ffcb4ef23ad5effdfc
2,108
py
Python
tests/st/ops/ascend/vector/test_atan2_001.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
tests/st/ops/ascend/vector/test_atan2_001.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
tests/st/ops/ascend/vector/test_atan2_001.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
36.344828
94
0.638994
12dba3d38b62aa957463988bff1d65d17068d6f7
19,177
py
Python
tensorflow_probability/python/distributions/power_spherical.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
3,670
2018-02-14T03:29:40.000Z
2022-03-30T01:19:52.000Z
tensorflow_probability/python/distributions/power_spherical.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,395
2018-02-24T02:28:49.000Z
2022-03-31T16:12:06.000Z
tensorflow_probability/python/distributions/power_spherical.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,135
2018-02-14T01:51:10.000Z
2022-03-28T02:24:11.000Z
# Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
40.802128
97
0.693852
947e14cc79896dc87bbcbaadccb9e1587c7da609
7,756
py
Python
p65/Ophis/Opcodes.py
JixunMoe/ContraNES1TranslationPatch
0cc514e8badd4ac872bff82d3f566fb97fe86685
[ "BSD-3-Clause" ]
1
2020-07-30T08:57:33.000Z
2020-07-30T08:57:33.000Z
p65/Ophis/Opcodes.py
jixunmoe/ContraNES1TranslationPatch
0cc514e8badd4ac872bff82d3f566fb97fe86685
[ "BSD-3-Clause" ]
null
null
null
p65/Ophis/Opcodes.py
jixunmoe/ContraNES1TranslationPatch
0cc514e8badd4ac872bff82d3f566fb97fe86685
[ "BSD-3-Clause" ]
null
null
null
"""6502 and 6510 opcodes Tables for the assembly of 6502 and 6510 instructions, mapping opcodes and addressing modes to binary instructions. Includes the undocumented 6510 ops, as described in the VICE manuals.""" # Copyright 2002 Michael C. Martin. # You may use, modify, and distribute this file under the BSD # ...
73.866667
93
0.552862
17f874878d7bd7d1e93989f60f26a27d6d25ed48
9,754
py
Python
appengine/chromium_bugs/main.py
eunchong/infra
ce3728559112bfb3e8b32137eada517aec6d22f9
[ "BSD-3-Clause" ]
null
null
null
appengine/chromium_bugs/main.py
eunchong/infra
ce3728559112bfb3e8b32137eada517aec6d22f9
[ "BSD-3-Clause" ]
null
null
null
appengine/chromium_bugs/main.py
eunchong/infra
ce3728559112bfb3e8b32137eada517aec6d22f9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
33.064407
79
0.644761
04abe2e4bb08fede9cd522c7eef469cd1914bbed
1,423
py
Python
geonode_mapstore_client/context_processors.py
majid-saeed/geonode-mapstore-client
2580014a52e41089d29c2211ba89c50ed936598a
[ "BSD-2-Clause-FreeBSD" ]
8
2020-12-07T13:55:49.000Z
2022-01-27T15:53:58.000Z
geonode_mapstore_client/context_processors.py
majid-saeed/geonode-mapstore-client
2580014a52e41089d29c2211ba89c50ed936598a
[ "BSD-2-Clause-FreeBSD" ]
256
2019-07-18T12:17:04.000Z
2022-03-31T07:52:44.000Z
geonode_mapstore_client/context_processors.py
majid-saeed/geonode-mapstore-client
2580014a52e41089d29c2211ba89c50ed936598a
[ "BSD-2-Clause-FreeBSD" ]
50
2019-08-23T09:17:18.000Z
2022-03-31T12:19:37.000Z
# -*- coding: utf-8 -*- ######################################################################### # # Copyright 2018, GeoSolutions Sas. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. # ###########################...
44.46875
101
0.62825
8394920fc14279951b1e0c131de0f172ad84b0bb
1,778
py
Python
tests/rules/test_git_two_dashes.py
samzhang111/oops
5823623f94f7c4cdeccea4938c1a0efd4280184e
[ "MIT" ]
null
null
null
tests/rules/test_git_two_dashes.py
samzhang111/oops
5823623f94f7c4cdeccea4938c1a0efd4280184e
[ "MIT" ]
null
null
null
tests/rules/test_git_two_dashes.py
samzhang111/oops
5823623f94f7c4cdeccea4938c1a0efd4280184e
[ "MIT" ]
null
null
null
import pytest from theoops.rules.git_two_dashes import match, get_new_command from tests.utils import Command @pytest.fixture def stderr(meant): return 'error: did you mean `%s` (with two dashes ?)' % meant @pytest.mark.parametrize('command', [ Command(script='git add -patch', stderr=stderr('--patch')), ...
37.041667
73
0.654106
cd6c8f59e710458a675f8d773da12d20a35c7723
1,233
py
Python
cupy/cupy_raw_kernel_addition/cupy_raw_kernel_addition.py
gschramm/python_tutorials
14369b15511fa1affdab78335d1c06c4ff2fb90b
[ "Apache-2.0" ]
null
null
null
cupy/cupy_raw_kernel_addition/cupy_raw_kernel_addition.py
gschramm/python_tutorials
14369b15511fa1affdab78335d1c06c4ff2fb90b
[ "Apache-2.0" ]
null
null
null
cupy/cupy_raw_kernel_addition/cupy_raw_kernel_addition.py
gschramm/python_tutorials
14369b15511fa1affdab78335d1c06c4ff2fb90b
[ "Apache-2.0" ]
null
null
null
# minimal example showing how to use raw (external) CUDA kernels with cupy # # Aim: unerstand how to load and execute a raw kernel based on addition of two arrays import cupy as cp import numpy as np import math from functools import reduce # load a kernel defined in a external file with open('add_kernel.cu','r') as ...
28.674419
98
0.691809
17741225ab8534954046466cdd86cd72387b723c
2,934
py
Python
haystack/nodes/file_classifier/file_type.py
ArzelaAscoIi/haystack
be8f50c9e3de4e264b3f345f5f4b9c9ec518ed08
[ "Apache-2.0" ]
1
2022-03-06T02:13:15.000Z
2022-03-06T02:13:15.000Z
haystack/nodes/file_classifier/file_type.py
ArzelaAscoIi/haystack
be8f50c9e3de4e264b3f345f5f4b9c9ec518ed08
[ "Apache-2.0" ]
null
null
null
haystack/nodes/file_classifier/file_type.py
ArzelaAscoIi/haystack
be8f50c9e3de4e264b3f345f5f4b9c9ec518ed08
[ "Apache-2.0" ]
1
2022-03-23T18:17:02.000Z
2022-03-23T18:17:02.000Z
from multiprocessing.sharedctypes import Value from typing import List, Union from pathlib import Path from haystack.nodes.base import BaseComponent DEFAULT_TYPES = ["txt", "pdf", "md", "docx", "html"] class FileTypeClassifier(BaseComponent): """ Route files in an Indexing Pipeline to corresponding file con...
38.605263
111
0.639059
15b50e7f45fe06d206065cb4ea2bf93a798c04f1
3,470
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_seesaw/keypad.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_seesaw/keypad.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_seesaw/keypad.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2018 Dean Miller for Adafruit Industries # # SPDX-License-Identifier: MIT # pylint: disable=missing-docstring,invalid-name,too-many-public-methods """ `adafruit_seesaw.keypad` ==================================================== """ try: from micropython import const except ImportError:...
28.211382
84
0.655908
80f010c522276bac34639e47726d5a7ef923927f
4,309
py
Python
env/lib/python3.8/site-packages/hdfs/ext/kerberos.py
paulowe/apache-beam-redocumentation
d1b0f345d8e46f9893f56c2bb890edc07be09f2a
[ "MIT" ]
null
null
null
env/lib/python3.8/site-packages/hdfs/ext/kerberos.py
paulowe/apache-beam-redocumentation
d1b0f345d8e46f9893f56c2bb890edc07be09f2a
[ "MIT" ]
null
null
null
env/lib/python3.8/site-packages/hdfs/ext/kerberos.py
paulowe/apache-beam-redocumentation
d1b0f345d8e46f9893f56c2bb890edc07be09f2a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """Support for clusters using Kerberos_ authentication. This extension adds a new :class:`hdfs.client.Client` subclass, :class:`KerberosClient`, which handles authentication appropriately with Kerberized clusters: .. code-block:: python from hdfs.ext.kerberos import Kerbero...
34.472
79
0.736134
513832377978a1091e3bdf1fbeb60c45fe940b88
2,130
py
Python
emo_clf2.py
kayzhou/Guba_emotion
286f1824500c77d8b90c3dc1bb0e120d732a546d
[ "MIT" ]
6
2018-09-04T12:42:22.000Z
2020-12-12T12:12:48.000Z
emo_clf2.py
kayzhou/Guba_emotion
286f1824500c77d8b90c3dc1bb0e120d732a546d
[ "MIT" ]
1
2018-11-14T04:03:44.000Z
2018-11-14T12:01:53.000Z
emo_clf2.py
kayzhou/Guba_emotion
286f1824500c77d8b90c3dc1bb0e120d732a546d
[ "MIT" ]
null
null
null
import json import os from collections import Counter import numpy as np from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import classification_report from sklearn.model_selection import cross_val_score, train_test_split from sklearn.naive_bayes import BernoulliNB from sklearn.svm import SVC fr...
23.406593
93
0.622535
f8dbd050c9b9256b6b4cb4ee13887c28ab95d300
2,000
py
Python
src/lcmap/client/scripts/cl_tool/model.py
lcmap/client-py
fc356d9b2917f8e2d0e73048c9bf86982caa6676
[ "NASA-1.3" ]
null
null
null
src/lcmap/client/scripts/cl_tool/model.py
lcmap/client-py
fc356d9b2917f8e2d0e73048c9bf86982caa6676
[ "NASA-1.3" ]
null
null
null
src/lcmap/client/scripts/cl_tool/model.py
lcmap/client-py
fc356d9b2917f8e2d0e73048c9bf86982caa6676
[ "NASA-1.3" ]
null
null
null
import io import logging import subprocess import sys import click from lcmap.client.scripts.cl_tool import query from lcmap.client.scripts.cl_tool.command import lcmap log = logging.getLogger(__name__) @lcmap.group() @click.pass_obj def model(config): "Execute science models in the LCMAP Science Execution En...
29.411765
75
0.6575
6850bd215f27202b492ba5c6b7965d6debca8ee7
1,294
py
Python
30-substring-with-concatenation-of-all-words/s.py
typd/leetcode-solutions
96a7824be1e3339f679d20abfb3cea3aaf08cd46
[ "MIT" ]
null
null
null
30-substring-with-concatenation-of-all-words/s.py
typd/leetcode-solutions
96a7824be1e3339f679d20abfb3cea3aaf08cd46
[ "MIT" ]
null
null
null
30-substring-with-concatenation-of-all-words/s.py
typd/leetcode-solutions
96a7824be1e3339f679d20abfb3cea3aaf08cd46
[ "MIT" ]
null
null
null
class Solution(object): def findSubstring(self,s,words): r = [] wc = len(words) if wc == 0: return r wl = len(words[0]) sl = len(s) m = {} for w in words: if not w in m: m[w] = 1 else: m[w] = ...
24.415094
53
0.413447
f8097cdd84bf3b05e5fb79e15cb75fa97cb4e77d
4,793
py
Python
mogua/wallet/wallet_user_store.py
vanthoi/mogua-blockchain
1e46ee2ee4fc98b87aede276608b3bd95971f05a
[ "Apache-2.0" ]
16
2021-08-01T14:29:14.000Z
2022-02-09T04:32:05.000Z
mogua/wallet/wallet_user_store.py
vanthoi/mogua-blockchain
1e46ee2ee4fc98b87aede276608b3bd95971f05a
[ "Apache-2.0" ]
18
2021-08-03T22:07:27.000Z
2022-02-03T11:08:42.000Z
mogua/wallet/wallet_user_store.py
vanthoi/mogua-blockchain
1e46ee2ee4fc98b87aede276608b3bd95971f05a
[ "Apache-2.0" ]
5
2021-09-13T10:23:35.000Z
2022-03-15T08:43:19.000Z
from typing import List, Optional import aiosqlite from mogua.util.db_wrapper import DBWrapper from mogua.util.ints import uint32 from mogua.wallet.util.wallet_types import WalletType from mogua.wallet.wallet_info import WalletInfo class WalletUserStore: """ WalletUserStore keeps track of all user created w...
33.055172
105
0.605049
144d6906a79ec7fe56193f50b1f28d3eb97b2e95
2,438
py
Python
tests/sensor_proc_test.py
raunaqbhirangi/reskin_sensor
02b86d26b29ae6abdb5411580291eeac3ae7d272
[ "MIT" ]
31
2021-11-01T13:47:24.000Z
2022-03-29T08:57:59.000Z
tests/sensor_proc_test.py
raunaqbhirangi/reskin_sensor
02b86d26b29ae6abdb5411580291eeac3ae7d272
[ "MIT" ]
3
2021-11-05T15:08:31.000Z
2022-01-20T23:16:37.000Z
tests/sensor_proc_test.py
raunaqbhirangi/reskin_sensor
02b86d26b29ae6abdb5411580291eeac3ae7d272
[ "MIT" ]
8
2021-11-01T13:48:14.000Z
2022-02-25T08:17:56.000Z
import argparse import time from reskin_sensor import ReSkinProcess if __name__ == "__main__": parser = argparse.ArgumentParser( description="Test code to run a ReSkin streaming process in the background. Allows data to be collected without code blocking" ) # fmt: off parser.add_argu...
33.861111
135
0.575062
a3a995e59ac038d6aef01cbdcb86db150b25e3c8
5,424
py
Python
docs/source/conf.py
akx/PhiK
7f1dd3ed08b527a95ecb3e8cb973a02616e71d1d
[ "Apache-2.0" ]
92
2018-12-28T14:03:05.000Z
2022-03-23T16:56:05.000Z
docs/source/conf.py
akx/PhiK
7f1dd3ed08b527a95ecb3e8cb973a02616e71d1d
[ "Apache-2.0" ]
34
2019-06-19T16:17:17.000Z
2022-03-25T08:20:04.000Z
docs/source/conf.py
akx/PhiK
7f1dd3ed08b527a95ecb3e8cb973a02616e71d1d
[ "Apache-2.0" ]
24
2018-12-18T16:41:18.000Z
2022-03-05T11:25:07.000Z
# -*- coding: utf-8 -*- # # PhiK documentation build configuration file for sphinx. # # import os #from unittest.mock import MagicMock import phik # Classes that use non-python modules are not always available in the # RTD environment. By mocking them we can still import these classes # in the code and RTD can subs...
31.352601
98
0.683813
850c986a216092aaba51cc01a3713e13c5066b7c
441
py
Python
chapter2_1.py
LuGuo25/Python
8ea59fb1ab2ac88a765816d77acc676365521940
[ "Apache-2.0" ]
1
2021-05-18T10:53:11.000Z
2021-05-18T10:53:11.000Z
chapter2_1.py
LuGuo25/Python
8ea59fb1ab2ac88a765816d77acc676365521940
[ "Apache-2.0" ]
null
null
null
chapter2_1.py
LuGuo25/Python
8ea59fb1ab2ac88a765816d77acc676365521940
[ "Apache-2.0" ]
null
null
null
s="hello,python" \ "wow"#定义字符串类型变量 \为转义符 print(s) print(s[1:3])#字符串切片 区间左闭右开 同时也说明字符串s的第一个字母对应数字“0” print(s[1-3])#这里的1-3是做减法1-3=-2,即取字符串s的倒数第二个字母 num1=50#整数 num2=3.14#浮点型 num3=1+2j#复数 num4=123e5#科学计数法 print(int(num4))#输出num4,num4的类型为浮点型 n=None#空类型 print(num1!=num2 or num2==num1)#输出判断结果#not优先级大于or和and p="hello world"...
19.173913
53
0.75737
135f40e5568764fa0d9676e3c23a5d0d52391d60
13,419
py
Python
models/single_stream/pretrain_with_mlm.py
codezakh/ALBEF
16aee1da1b7682afcd5a5f1ded74fc8dc199a8cf
[ "BSD-3-Clause" ]
null
null
null
models/single_stream/pretrain_with_mlm.py
codezakh/ALBEF
16aee1da1b7682afcd5a5f1ded74fc8dc199a8cf
[ "BSD-3-Clause" ]
2
2022-02-02T12:55:59.000Z
2022-02-17T14:39:19.000Z
models/single_stream/pretrain_with_mlm.py
codezakh/ALBEF
16aee1da1b7682afcd5a5f1ded74fc8dc199a8cf
[ "BSD-3-Clause" ]
null
null
null
from functools import partial from models.vit import VisionTransformer, interpolate_pos_embed # from models.xbert import BertConfig, BertForMaskedLM from models.xbert import BertConfig, BertModel, BertForMaskedLM from typing import Dict import torch import torch.nn.functional as F from torch import nn import numpy as...
46.272414
122
0.601013
5ffaab595d87f46c07038a477fa0459db4c995f6
3,230
py
Python
fuzzy_toolbox/core.py
jdvelasq/pyfuzzy
4b8c5948f5d05202ec914a60e2bd420133a57e90
[ "MIT" ]
null
null
null
fuzzy_toolbox/core.py
jdvelasq/pyfuzzy
4b8c5948f5d05202ec914a60e2bd420133a57e90
[ "MIT" ]
null
null
null
fuzzy_toolbox/core.py
jdvelasq/pyfuzzy
4b8c5948f5d05202ec914a60e2bd420133a57e90
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np def format_plot(title=None, view_xaxis=True, view_yaxis=False): plt.gca().set_ylim(-0.05, 1.05) plt.gca().spines["bottom"].set_visible(True) plt.gca().spines["left"].set_visible(False) plt.gca().spines["right"].set_visible(False) plt.gca().spine...
26.916667
87
0.603715
806fea77fbd229ab66fcb8986b98387ad03a9872
13,272
py
Python
mgz/model/__init__.py
happyleavesaoc/mgz
e59e6596268b041f1b5e308b30c736f951116358
[ "MIT" ]
null
null
null
mgz/model/__init__.py
happyleavesaoc/mgz
e59e6596268b041f1b5e308b30c736f951116358
[ "MIT" ]
null
null
null
mgz/model/__init__.py
happyleavesaoc/mgz
e59e6596268b041f1b5e308b30c736f951116358
[ "MIT" ]
null
null
null
"""Convert parsed data into object-oriented model.""" import codecs import collections import _hashlib import hashlib from datetime import timedelta, datetime from enum import Enum import dataclasses from mgz import fast from mgz.reference import get_consts, get_dataset from mgz.fast import Action as ActionEnum from...
35.392
130
0.568942
ef1be1c73ffb7384d1935fc37b9a23d945b08f64
3,728
py
Python
pyatv/mrp/protobuf/SetDiscoveryModeMessage_pb2.py
acheronfail/pyatv
9cb96ffcc49938c4b43c92b7b40ddcecae37e732
[ "MIT" ]
null
null
null
pyatv/mrp/protobuf/SetDiscoveryModeMessage_pb2.py
acheronfail/pyatv
9cb96ffcc49938c4b43c92b7b40ddcecae37e732
[ "MIT" ]
null
null
null
pyatv/mrp/protobuf/SetDiscoveryModeMessage_pb2.py
acheronfail/pyatv
9cb96ffcc49938c4b43c92b7b40ddcecae37e732
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: pyatv/mrp/protobuf/SetDiscoveryModeMessage.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection...
40.967033
334
0.804721
ff4265f4c34957c1695e94a6e6a1677cc32248b0
4,401
py
Python
dazhongdianping/shop_spider2.py
mannuan/pyspider_script
f4c988912e1099eacd0322b4e9c3a87eaaaa526f
[ "Apache-2.0" ]
9
2018-08-28T07:53:43.000Z
2019-07-09T07:55:52.000Z
dazhongdianping/shop_spider2.py
mannuan/pyspider_script
f4c988912e1099eacd0322b4e9c3a87eaaaa526f
[ "Apache-2.0" ]
null
null
null
dazhongdianping/shop_spider2.py
mannuan/pyspider_script
f4c988912e1099eacd0322b4e9c3a87eaaaa526f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Created on 2017-12-07 22:55:40 # Project: sdad from pyspider.libs.base_handler import * import json,pymysql,time class Handler(BaseHandler): crawl_config = { "headers" : { 'Content-Type': 'application/json; charset=utf-8', 'User-Ag...
42.728155
218
0.556464
09684fb78a7587290512184e92a535ec3d14af3a
426
py
Python
inventory/templatetags/indirect.py
Eising/viconf
56b80e340a173dcba013e2c4f6568a1407d418a2
[ "MIT" ]
3
2018-07-13T12:50:37.000Z
2018-07-13T22:43:49.000Z
inventory/templatetags/indirect.py
Eising/viconf
56b80e340a173dcba013e2c4f6568a1407d418a2
[ "MIT" ]
null
null
null
inventory/templatetags/indirect.py
Eising/viconf
56b80e340a173dcba013e2c4f6568a1407d418a2
[ "MIT" ]
null
null
null
from django import template from util.validators import ViconfValidators import sys register = template.Library() @register.simple_tag def indirect(variable, key): return variable[key] @register.simple_tag def validatorclass(name): validators = ViconfValidators.VALIDATORS if name == 'none': retur...
20.285714
44
0.706573
072416802835c87642cf434baf400f34318801f4
245
py
Python
cryptocurrency_tracker_plugin/__init__.py
BotDevGroup/cryptocurrency_tracker_plugin
7d2ce68553daebce34d8a72e26915e2a95a84c50
[ "MIT" ]
null
null
null
cryptocurrency_tracker_plugin/__init__.py
BotDevGroup/cryptocurrency_tracker_plugin
7d2ce68553daebce34d8a72e26915e2a95a84c50
[ "MIT" ]
null
null
null
cryptocurrency_tracker_plugin/__init__.py
BotDevGroup/cryptocurrency_tracker_plugin
7d2ce68553daebce34d8a72e26915e2a95a84c50
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = """Ricardo Arturo Cabral Mejia""" __email__ = 'me@ricardocabral.io' __version__ = '0.1.0' from cryptocurrency_tracker_plugin.base import CryptocurrencyTrackerPlugin plugin = CryptocurrencyTrackerPlugin()
22.272727
74
0.763265
fb1c788140d2ec16451dec9cc94ce933756dc5b9
9,692
py
Python
tests/test_runner/test_fp16.py
jinliwei1997/mmcv
f8d46df4a9fa32fb44d2e92a4ca5e7b26ee9cb79
[ "Apache-2.0" ]
3,748
2018-10-12T08:39:46.000Z
2022-03-31T17:22:55.000Z
tests/test_runner/test_fp16.py
jinliwei1997/mmcv
f8d46df4a9fa32fb44d2e92a4ca5e7b26ee9cb79
[ "Apache-2.0" ]
1,637
2018-10-12T06:06:18.000Z
2022-03-31T02:20:53.000Z
tests/test_runner/test_fp16.py
jinliwei1997/mmcv
f8d46df4a9fa32fb44d2e92a4ca5e7b26ee9cb79
[ "Apache-2.0" ]
1,234
2018-10-12T09:28:20.000Z
2022-03-31T15:56:24.000Z
import numpy as np import pytest import torch import torch.nn as nn from mmcv.runner.fp16_utils import auto_fp16, cast_tensor_type, force_fp32 def test_cast_tensor_type(): inputs = torch.FloatTensor([5.]) src_type = torch.float32 dst_type = torch.int32 outputs = cast_tensor_type(inputs, src_type, dst...
32.199336
75
0.652291
8c2ff245c0593cfa9054ce08ec587cbada1a78cd
919
py
Python
Category.py
Auggen21/Optical-Mark-Reader-using-python
95e2efa2fb17ad3e5f3ad3d221f9e3417149b071
[ "MIT" ]
null
null
null
Category.py
Auggen21/Optical-Mark-Reader-using-python
95e2efa2fb17ad3e5f3ad3d221f9e3417149b071
[ "MIT" ]
null
null
null
Category.py
Auggen21/Optical-Mark-Reader-using-python
95e2efa2fb17ad3e5f3ad3d221f9e3417149b071
[ "MIT" ]
1
2020-08-25T18:56:45.000Z
2020-08-25T18:56:45.000Z
import cv2 import numpy as np def category(cat): cate="" orginal=np.uint8(cat) orginal=cv2.resize(orginal,(202,626)) c = ["GEN","OBC1","OBC2","SC","ST","PH"] h,w = orginal.shape crop= orginal[140:h-5,140:w-5] # cv2.imshow('l',crop) h1,w1 = crop.shape th, im_th = cv2.threshold(crop,...
24.837838
86
0.525571
ff7b7df8e5bb3b3ecdf76dea4f84a97fa01dda5d
2,456
py
Python
sdk/python/pulumi_azure_native/kusto/v20190121/list_database_principals.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/kusto/v20190121/list_database_principals.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/kusto/v20190121/list_database_principals.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...
35.085714
151
0.690961
c4a15e5278b7ce630de1eb6de4ae5e71f29a5ce5
2,745
py
Python
scrapy_dynamic_spiders/factories/crawl_spider_factory.py
harootune/scrapy_dynamic_spiders
a443533c17af6ba906e28fc897f7a6e4d19c2ed0
[ "MIT" ]
null
null
null
scrapy_dynamic_spiders/factories/crawl_spider_factory.py
harootune/scrapy_dynamic_spiders
a443533c17af6ba906e28fc897f7a6e4d19c2ed0
[ "MIT" ]
null
null
null
scrapy_dynamic_spiders/factories/crawl_spider_factory.py
harootune/scrapy_dynamic_spiders
a443533c17af6ba906e28fc897f7a6e4d19c2ed0
[ "MIT" ]
1
2020-11-24T15:48:26.000Z
2020-11-24T15:48:26.000Z
# stdlib import copy from typing import List # third party from scrapy.spiders import Rule # local import scrapy_dynamic_spiders.utils.factory_utils as f_utils from scrapy_dynamic_spiders.factories import SpiderClsFactory class CrawlSpiderClsFactory(SpiderClsFactory): """Generates temporary CrawlSpider classes ...
37.60274
114
0.650273
2214026ff78eb85af2bec4b7d01e9d03368ff233
5,818
py
Python
swagger_client/models/budget_notification.py
chbndrhnns/ahoi-client
8bd25f541c05af17c82904fa250272514b7971f2
[ "MIT" ]
null
null
null
swagger_client/models/budget_notification.py
chbndrhnns/ahoi-client
8bd25f541c05af17c82904fa250272514b7971f2
[ "MIT" ]
null
null
null
swagger_client/models/budget_notification.py
chbndrhnns/ahoi-client
8bd25f541c05af17c82904fa250272514b7971f2
[ "MIT" ]
null
null
null
# coding: utf-8 """ [AHOI cookbook](/ahoi/docs/cookbook/index.html) [Data Privacy](/sandboxmanager/#/privacy) [Terms of Service](/sandboxmanager/#/terms) [Imprint](https://sparkassen-hub.com/impressum/) © 2016‐2017 Starfinanz - Ein Unternehmen der Finanz Informatik # noqa: E501 OpenAPI sp...
33.245714
277
0.629598
39f7581810ffad7e25f15dc7d5d25470e8223da5
8,755
py
Python
sdks/python/apache_beam/typehints/native_type_compatibility_test.py
ibzib/beam
f98104a22b69972744a13378e17af5f2361fbb3e
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/typehints/native_type_compatibility_test.py
ibzib/beam
f98104a22b69972744a13378e17af5f2361fbb3e
[ "Apache-2.0" ]
1
2020-09-03T06:16:36.000Z
2020-09-10T07:08:27.000Z
sdks/python/apache_beam/typehints/native_type_compatibility_test.py
ibzib/beam
f98104a22b69972744a13378e17af5f2361fbb3e
[ "Apache-2.0" ]
1
2020-07-25T15:36:45.000Z
2020-07-25T15:36:45.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
39.084821
92
0.673901
a4a93aca43b590bcb1de4a09ea229931056d8ad8
987
py
Python
Python_Assistant/PyAssist-BasicFiles/WxPython.py
GeekyShiva/PyAssist
a8761cfcd8344771e7e1bfab469ed3e49f12adda
[ "MIT" ]
null
null
null
Python_Assistant/PyAssist-BasicFiles/WxPython.py
GeekyShiva/PyAssist
a8761cfcd8344771e7e1bfab469ed3e49f12adda
[ "MIT" ]
null
null
null
Python_Assistant/PyAssist-BasicFiles/WxPython.py
GeekyShiva/PyAssist
a8761cfcd8344771e7e1bfab469ed3e49f12adda
[ "MIT" ]
1
2020-08-17T15:01:43.000Z
2020-08-17T15:01:43.000Z
import wx class MyFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, pos=wx.DefaultPosition, size=wx.Size(450, 100), style=wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX | wx.CLIP_CHILDREN, title="PyAssist") panel = wx.Pa...
31.83871
86
0.601824
f0b1e423146e680526351e0f11d27cbd6867ff8e
4,130
py
Python
src/ColorTheories/classes/Color.py
pgscasado/Color-Theories
58119879cbc6161720ac4f16ae9949fbdbbcf063
[ "MIT" ]
null
null
null
src/ColorTheories/classes/Color.py
pgscasado/Color-Theories
58119879cbc6161720ac4f16ae9949fbdbbcf063
[ "MIT" ]
1
2021-05-04T18:38:22.000Z
2021-05-04T18:38:22.000Z
src/ColorTheories/classes/Color.py
pgscasado/Color-Theories
58119879cbc6161720ac4f16ae9949fbdbbcf063
[ "MIT" ]
1
2021-04-27T23:32:21.000Z
2021-04-27T23:32:21.000Z
import copy import math import operator # Implementação de Color: # - exemplo para criar uma cor independentemente de outra: # Color("nome", red=213, green="123", blue="0", alpha="50") # - exemplo para criar uma cor como resultado de um processo aditivo entre duas cores: # red = Color("red", 255, 0, 0, 255) # gre...
33.306452
132
0.680387
35e847134f56b1cc2104b2e46a2c0853d8504f28
8,513
py
Python
tests/test_kb_construction.py
chaithyagr/torchkbnufft
3592175fe2d1f611fb2cfec4d4150a850c92605f
[ "MIT" ]
null
null
null
tests/test_kb_construction.py
chaithyagr/torchkbnufft
3592175fe2d1f611fb2cfec4d4150a850c92605f
[ "MIT" ]
null
null
null
tests/test_kb_construction.py
chaithyagr/torchkbnufft
3592175fe2d1f611fb2cfec4d4150a850c92605f
[ "MIT" ]
null
null
null
import torch import numpy as np from torchkbnufft import ( AdjKbNufft, AdjMriSenseNufft, KbInterpBack, KbInterpForw, KbNufft, MriSenseNufft, ) def test_kb_matching(testing_tol): norm_tol = testing_tol def check_tables(table1, table2): for ind, table in enumerate(table1): ...
23.845938
83
0.567133
ea649dba52d17f38a322683bd39d41f74856fdab
2,255
py
Python
passacre/multibase.py
massich/passacre_mirror
f2e87f334c56ab9680ab444b1be6e2dd879313d2
[ "CC0-1.0" ]
47
2015-03-06T08:49:50.000Z
2022-01-09T09:10:03.000Z
passacre/multibase.py
massich/passacre_mirror
f2e87f334c56ab9680ab444b1be6e2dd879313d2
[ "CC0-1.0" ]
5
2015-04-21T21:35:44.000Z
2019-09-30T18:43:03.000Z
passacre/multibase.py
massich/passacre_mirror
f2e87f334c56ab9680ab444b1be6e2dd879313d2
[ "CC0-1.0" ]
10
2015-04-03T21:18:46.000Z
2020-02-11T17:15:51.000Z
# Copyright (c) Aaron Gallagher <_@habnab.it> # See COPYING for details. from __future__ import unicode_literals class MultiBase(object): """Represents a base where not every digit has the same possible values. The ``bases`` parameter must be a sequence of strings, where each item in the sequence represe...
34.692308
82
0.600443
394bc942567928d25e5425c694865527bcd45544
668
py
Python
test.py
HugoSilvaSantos/creator-python-client
477c543ac239c68379e0f6e1e8c97c72572afddb
[ "BSD-3-Clause" ]
null
null
null
test.py
HugoSilvaSantos/creator-python-client
477c543ac239c68379e0f6e1e8c97c72572afddb
[ "BSD-3-Clause" ]
null
null
null
test.py
HugoSilvaSantos/creator-python-client
477c543ac239c68379e0f6e1e8c97c72572afddb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Test routine for Creator Python Client . """ import unittest import os import creator_python_client CREATOR_ACCESS_KEY = os.environ['CREATOR_ACCESS_KEY'] CREATOR_ACCESS_SECRET = os.environ['CREATOR_ACCESS_SECRET'] class CreatorTest(unittest.TestCase): """ ...
22.266667
60
0.672156
a025e7226c9f3c3b55853821262fb1859aa06400
5,105
py
Python
experiments/genuary2022/g22_07_sol_lewitt_wall.py
brendanhowell/cursor
81ac2e1e80f0a3ca56208b9498026fca147e7e0b
[ "MIT" ]
3
2021-12-02T08:30:02.000Z
2022-03-06T18:25:15.000Z
experiments/genuary2022/g22_07_sol_lewitt_wall.py
brendanhowell/cursor
81ac2e1e80f0a3ca56208b9498026fca147e7e0b
[ "MIT" ]
41
2020-03-22T13:15:04.000Z
2022-03-17T11:29:47.000Z
experiments/genuary2022/g22_07_sol_lewitt_wall.py
brendanhowell/cursor
81ac2e1e80f0a3ca56208b9498026fca147e7e0b
[ "MIT" ]
2
2020-01-09T16:35:14.000Z
2022-02-28T15:21:08.000Z
from cursor import path from shapely.geometry import MultiLineString from shapely.affinity import rotate from shapely import speedups from math import sqrt def hatchbox(rect, angle, spacing): """ returns a Shapely geometry (MULTILINESTRING, or more rarely, GEOMETRYCOLLECTION) for a simple hatched rectang...
26.868421
70
0.511851
47cd760468122c581fc2f8c46b704397314e6075
7,859
py
Python
pyblock/pd_utils.py
robertodr/pyblock
cf97502df45685575cae251a1c7781e9786d486c
[ "BSD-3-Clause" ]
21
2015-07-07T15:10:30.000Z
2021-12-13T14:25:20.000Z
pyblock/pd_utils.py
robertodr/pyblock
cf97502df45685575cae251a1c7781e9786d486c
[ "BSD-3-Clause" ]
10
2017-11-01T01:37:19.000Z
2022-01-18T08:38:27.000Z
pyblock/pd_utils.py
robertodr/pyblock
cf97502df45685575cae251a1c7781e9786d486c
[ "BSD-3-Clause" ]
9
2015-10-16T14:47:35.000Z
2022-02-10T11:33:22.000Z
'''Pandas-based wrapper around :mod:`pyblock.blocking`.''' # copyright: (c) 2014 James Spencer # license: modified BSD license; see LICENSE for further details. import numpy import pandas as pd import pyblock.blocking def reblock(data, axis=0, weights=None): '''Blocking analysis of correlated data. Parameters -...
37.42381
83
0.663189
7e3f06dae8fd10587dc2080530d66aa19ea3311d
3,861
py
Python
python/tests/test_graph_functions.py
mhendricks96/data-structures-and-algorithms
9c07d284fa8f54a0405a1fc5bda963b6150cc2ef
[ "MIT" ]
null
null
null
python/tests/test_graph_functions.py
mhendricks96/data-structures-and-algorithms
9c07d284fa8f54a0405a1fc5bda963b6150cc2ef
[ "MIT" ]
39
2021-06-08T04:19:00.000Z
2022-03-19T17:58:10.000Z
python/tests/test_graph_functions.py
mhendricks96/data-structures-and-algorithms
9c07d284fa8f54a0405a1fc5bda963b6150cc2ef
[ "MIT" ]
null
null
null
from graphs.graphs import Graph, Edge, Vertex from code_challenges.graph_functions.graph_functions import business_trip import pytest def test_business_trip(): my_graph = Graph() pandora = my_graph.add_node('Pandora') metroville = my_graph.add_node('Metroville') narnia = my_graph.add_node('Narnia') naboo...
36.424528
73
0.766641
e13a76a319fa7860153724445e5793370b72fce3
1,609
py
Python
info.py
CPFelix/pytorch-image-models-
d0c322b2a55d156b0fe5d9030d9599708a349266
[ "Apache-2.0" ]
null
null
null
info.py
CPFelix/pytorch-image-models-
d0c322b2a55d156b0fe5d9030d9599708a349266
[ "Apache-2.0" ]
null
null
null
info.py
CPFelix/pytorch-image-models-
d0c322b2a55d156b0fe5d9030d9599708a349266
[ "Apache-2.0" ]
null
null
null
import timm from pprint import pprint import urllib from PIL import Image from timm.data import resolve_data_config from timm.data.transforms_factory import create_transform import torch # v0.1-rsb-weights # TEST 8 if __name__ == "__main__": # print models model_names = timm.list_models(pretrained=True) # ...
34.978261
108
0.664388
1ef6d247ddb0003c4f526b324caee40322f221ff
26,247
py
Python
electrum_xazab/tests/test_blockchain.py
nunumichael/electrum-xazab
f128c765f451b418a418f9cd8b8e24fd8f66df74
[ "MIT" ]
null
null
null
electrum_xazab/tests/test_blockchain.py
nunumichael/electrum-xazab
f128c765f451b418a418f9cd8b8e24fd8f66df74
[ "MIT" ]
null
null
null
electrum_xazab/tests/test_blockchain.py
nunumichael/electrum-xazab
f128c765f451b418a418f9cd8b8e24fd8f66df74
[ "MIT" ]
2
2021-05-23T23:38:56.000Z
2021-05-24T19:01:07.000Z
import shutil import tempfile import os from electrum_xazab import constants, blockchain from electrum_xazab.simple_config import SimpleConfig from electrum_xazab.blockchain import Blockchain, deserialize_header, hash_header from electrum_xazab.util import bh2u, bfh, make_dir from . import ElectrumTestCase class Te...
62.492857
219
0.730102
b188bf6ac102b56ef29e02656757aa71a4298d07
810
py
Python
crop_images.py
ashok-arjun/Gaussian-Poisson-GANs-For-Image-Blending
878374ae7b11e41c8eebb9cc6281cdda33506c22
[ "MIT" ]
1
2021-03-15T13:44:04.000Z
2021-03-15T13:44:04.000Z
crop_images.py
aiarjun/Gaussian-Poisson-GANs-For-Image-Blending
7eeec778c6b14df32588c320609ac50004add0a6
[ "MIT" ]
1
2022-01-13T03:54:13.000Z
2022-01-13T03:54:13.000Z
crop_images.py
aiarjun/Gaussian-Poisson-GANs-For-Image-Blending
7eeec778c6b14df32588c320609ac50004add0a6
[ "MIT" ]
null
null
null
import glob import os from skimage.io import imread, imsave def crop_images(data_dir, result_dir): if not os.path.isdir(result_dir): os.makedirs(result_dir) print('Cropped images will be saved to {} ...\n'.format(result_dir)) with open('data/bbox.txt') as f: for line in f: name, bbox = line.stri...
31.153846
86
0.64321
498be439632585c12fbf624e5449fa255871d8af
611
py
Python
modules/jokes.py
hasibulkabir/friday-bot
6d7b0441baeb295029570d96b523b2603b92925e
[ "MIT" ]
5
2017-07-15T07:27:47.000Z
2021-01-27T12:29:37.000Z
modules/jokes.py
hasibulkabir/friday-bot
6d7b0441baeb295029570d96b523b2603b92925e
[ "MIT" ]
null
null
null
modules/jokes.py
hasibulkabir/friday-bot
6d7b0441baeb295029570d96b523b2603b92925e
[ "MIT" ]
4
2017-01-27T01:25:18.000Z
2020-10-04T08:03:12.000Z
import requests , random from bs4 import BeautifulSoup as BS def randomJoke(): jokeUrl = "http://www.santabanta.com/jokes/?page=" + str(random.randint(1, 1050)) res = requests.get(jokeUrl) soup = BS(res.text, 'html.parser') result = soup.find_all('span', {'class': 'sms_text'}) return rand...
29.095238
86
0.635025
3e583de73c9370ddbb954bedc9ff2b67308d306e
1,028
py
Python
semseg/augmentations/__init__.py
ManuelFritsche/flow-consistency
90625fe25855aa11c6245ca242ab8d66c41f4726
[ "MIT" ]
4
2020-06-14T00:35:49.000Z
2021-09-02T11:08:47.000Z
semseg/augmentations/__init__.py
ManuelFritsche/FlowConsistency
90625fe25855aa11c6245ca242ab8d66c41f4726
[ "MIT" ]
1
2019-12-05T20:06:14.000Z
2020-01-05T15:06:55.000Z
semseg/augmentations/__init__.py
ManuelFritsche/flow-consistency
90625fe25855aa11c6245ca242ab8d66c41f4726
[ "MIT" ]
2
2019-01-26T03:16:25.000Z
2019-02-25T22:52:34.000Z
import logging from semseg.augmentations.augmentations import * logger = logging.getLogger('semseg') key2aug = {'gamma': AdjustGamma, 'hue': AdjustHue, 'brightness': AdjustBrightness, 'saturation': AdjustSaturation, 'contrast': AdjustContrast, 'rcrop': ...
31.151515
78
0.607004
370c334ec2653852501df7092dbc14a647c31abb
8,937
py
Python
cca.py
petr-bauch/cca
6011c602e1184fff4fc9a9b880cb59a070746929
[ "Apache-2.0" ]
4
2021-03-26T01:43:06.000Z
2022-02-22T13:16:26.000Z
cca.py
petr-bauch/cca
6011c602e1184fff4fc9a9b880cb59a070746929
[ "Apache-2.0" ]
2
2020-10-25T07:44:54.000Z
2021-03-28T08:15:14.000Z
cca.py
petr-bauch/cca
6011c602e1184fff4fc9a9b880cb59a070746929
[ "Apache-2.0" ]
3
2017-02-28T02:57:32.000Z
2022-02-09T07:01:11.000Z
#!/usr/bin/env python3 ''' A driver script for CCA container image Copyright 2021 Codinuum Software Lab <https://codinuum.com> 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...
30.294915
113
0.594047
1c9f4ca5c9d9a2927f4fd03270feb5d92cad4892
19,528
py
Python
mkt/submit/forms.py
chrisdavidmills/zamboni
09e05bad2570663d25408793289c81324d3e952e
[ "BSD-3-Clause" ]
null
null
null
mkt/submit/forms.py
chrisdavidmills/zamboni
09e05bad2570663d25408793289c81324d3e952e
[ "BSD-3-Clause" ]
null
null
null
mkt/submit/forms.py
chrisdavidmills/zamboni
09e05bad2570663d25408793289c81324d3e952e
[ "BSD-3-Clause" ]
1
2021-03-13T00:33:12.000Z
2021-03-13T00:33:12.000Z
import datetime from collections import defaultdict from django import forms import happyforms import waffle from tower import ugettext as _, ugettext_lazy as _lazy import amo from addons.models import Addon, AddonUpsell, BlacklistedSlug, Webapp from amo.utils import slug_validator from apps.users.models import User...
39.450505
79
0.600881
855ff5f83e8cb57104b274efc4b444b9ae4f33b8
12,175
py
Python
mindhome_alpha/erpnext/projects/doctype/task/task.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/projects/doctype/task/task.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/projects/doctype/task/task.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import json import frappe from frappe import _, throw from frappe.desk.form.assign_to import clear, close_all_assignments from frappe.model.mapper imp...
35.495627
158
0.723121
fbb8bff412879c88f8451739a8706f331d1a97d8
4,125
py
Python
lldb/packages/Python/lldbsuite/test/python_api/lldbutil/iter/TestRegistersIterator.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
765
2015-12-03T16:44:59.000Z
2022-03-07T12:41:10.000Z
lldb/packages/Python/lldbsuite/test/python_api/lldbutil/iter/TestRegistersIterator.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
1,815
2015-12-11T23:56:05.000Z
2020-01-10T19:28:43.000Z
lldb/packages/Python/lldbsuite/test/python_api/lldbutil/iter/TestRegistersIterator.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
284
2015-12-03T16:47:25.000Z
2022-03-12T05:39:48.000Z
""" Test the iteration protocol for frame registers. """ from __future__ import print_function import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class RegistersIteratorTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) ...
38.915094
100
0.473697
0d0492bf1357d4e1926042a04ca1eed241de2f18
4,921
py
Python
tests/unit/sagemaker/model/test_neo.py
aws-patlin/sagemaker-python-sdk
18af12beffed82aaf263e9cfec8832f39b6bc63f
[ "Apache-2.0" ]
1
2020-11-20T14:48:24.000Z
2020-11-20T14:48:24.000Z
tests/unit/sagemaker/model/test_neo.py
aws-patlin/sagemaker-python-sdk
18af12beffed82aaf263e9cfec8832f39b6bc63f
[ "Apache-2.0" ]
null
null
null
tests/unit/sagemaker/model/test_neo.py
aws-patlin/sagemaker-python-sdk
18af12beffed82aaf263e9cfec8832f39b6bc63f
[ "Apache-2.0" ]
1
2020-04-30T07:43:57.000Z
2020-04-30T07:43:57.000Z
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
31.343949
95
0.706157
2cd93e6b5a302fac84cac92c1a56617e0a0404d7
10,376
py
Python
spark_jobs/top_seller.py
WillianFuks/PySpark-RecSys
756c8ce420143ac2483d8e6f959df4019a5479ee
[ "MIT" ]
5
2019-01-10T16:06:04.000Z
2020-11-12T01:19:30.000Z
spark_jobs/top_seller.py
dutradda/PySpark-RecSys
756c8ce420143ac2483d8e6f959df4019a5479ee
[ "MIT" ]
null
null
null
spark_jobs/top_seller.py
dutradda/PySpark-RecSys
756c8ce420143ac2483d8e6f959df4019a5479ee
[ "MIT" ]
2
2019-01-10T16:15:03.000Z
2020-11-17T11:37:54.000Z
#MIT License # #Copyright (c) 2017 Willian Fuks # #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge, publi...
36.925267
85
0.575559
edd343cebdeb232ef9b1cfeeec5d6ec9c64139af
1,303
py
Python
Proyecto/start.py
leynier/IA-Sim-Com
f6e99bb1aa4b02d5d558dc76a9bf802c3761e428
[ "MIT" ]
2
2021-11-20T23:35:20.000Z
2021-12-10T17:45:56.000Z
Proyecto/start.py
arnel-sanchez/IA-Sim-Com
22023342f20202b260caa759af9cce71d803663e
[ "MIT" ]
1
2022-02-11T07:26:54.000Z
2022-02-11T07:26:54.000Z
Proyecto/start.py
leynier/IA-Sim-Com
f6e99bb1aa4b02d5d558dc76a9bf802c3761e428
[ "MIT" ]
1
2022-02-11T07:24:50.000Z
2022-02-11T07:24:50.000Z
from pynput import keyboard from os import name, system from time import sleep from sys import exit def main(): print_welcome() keyboard.Listener(key).run() def print_welcome(): clear_console() print("Hola, bienvenido al simulador de Jefe Tecnico de Moto GP") print("Para Iniciar Nueva Simulacion...
21.360656
69
0.651573
a62c7ee9a219eee0e31ce5474969cf413e7db5af
5,147
py
Python
onlinecourse/migrations/0001_initial.py
Givindu98/Givindu-Final-Cloud-App-With-Database
81ebaa0735596ed3197806ff04e7eb679e6cb44a
[ "Apache-2.0" ]
null
null
null
onlinecourse/migrations/0001_initial.py
Givindu98/Givindu-Final-Cloud-App-With-Database
81ebaa0735596ed3197806ff04e7eb679e6cb44a
[ "Apache-2.0" ]
null
null
null
onlinecourse/migrations/0001_initial.py
Givindu98/Givindu-Final-Cloud-App-With-Database
81ebaa0735596ed3197806ff04e7eb679e6cb44a
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.3 on 2021-12-17 06:04 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
47.220183
210
0.58539
2adabc6d5f5f495577e601fa440aebfc6fc082c9
426
py
Python
derivest/__init__.py
njwichrowski/pyDERIVEST
dcca2e98080e1b141674d44af7fd5f1d0f4395f0
[ "BSD-2-Clause" ]
null
null
null
derivest/__init__.py
njwichrowski/pyDERIVEST
dcca2e98080e1b141674d44af7fd5f1d0f4395f0
[ "BSD-2-Clause" ]
null
null
null
derivest/__init__.py
njwichrowski/pyDERIVEST
dcca2e98080e1b141674d44af7fd5f1d0f4395f0
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- __all__ = ["derivest", "directional_diff", "gradest", "hess_diag", "hessian", "jacobianest", "ensemble", "build_kwargs"] from .derivest import derivest from .directional_diff import directional_diff from .gradest import gradest from .hess_diag import hess_diag from .hessian import h...
32.769231
66
0.760563
4473002dc1d1213e1c9b19da8bac47d1812f867d
3,576
py
Python
scrapy/tests/test_utils_defer.py
emschorsch/scrapy
acb7bad1ff4037b4a613ac94e2d3357bf92bdb8f
[ "BSD-3-Clause" ]
1
2016-01-01T14:58:12.000Z
2016-01-01T14:58:12.000Z
scrapy/tests/test_utils_defer.py
emschorsch/scrapy
acb7bad1ff4037b4a613ac94e2d3357bf92bdb8f
[ "BSD-3-Clause" ]
2
2021-12-13T20:51:32.000Z
2022-02-11T03:47:35.000Z
scrapy/tests/test_utils_defer.py
emschorsch/scrapy
acb7bad1ff4037b4a613ac94e2d3357bf92bdb8f
[ "BSD-3-Clause" ]
null
null
null
from twisted.trial import unittest from twisted.internet import reactor, defer from twisted.python.failure import Failure from scrapy.utils.defer import mustbe_deferred, process_chain, \ process_chain_both, process_parallel, iter_errback class MustbeDeferredTest(unittest.TestCase): def test_success_function(...
34.057143
95
0.608501
8489aec84e0d2d0e45728de480daeeeae98a9576
581
py
Python
tests/virtualenvs/pickle_env.py
Hernrup/pipdeptree
7c90d2b76467eda76122b40a1fe736758f346c92
[ "MIT" ]
null
null
null
tests/virtualenvs/pickle_env.py
Hernrup/pipdeptree
7c90d2b76467eda76122b40a1fe736758f346c92
[ "MIT" ]
null
null
null
tests/virtualenvs/pickle_env.py
Hernrup/pipdeptree
7c90d2b76467eda76122b40a1fe736758f346c92
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This is a small tool to create a pickle file for a set of packages for the # purposes of writing tests import pickle import sys try: from pip._internal.utils.misc import get_installed_distributions except ImportError: from pip import get_installed_distributions def main(): defau...
23.24
76
0.722892
155fd7a67f9a9edc0c2bd8f87fae7578bf4259f1
356
py
Python
img_to_video.py
lidongyv/Reppoint-Tracking
81b81e921f6b905e68aba117ffc4fca8ffcfcfd6
[ "MIT" ]
null
null
null
img_to_video.py
lidongyv/Reppoint-Tracking
81b81e921f6b905e68aba117ffc4fca8ffcfcfd6
[ "MIT" ]
null
null
null
img_to_video.py
lidongyv/Reppoint-Tracking
81b81e921f6b905e68aba117ffc4fca8ffcfcfd6
[ "MIT" ]
null
null
null
import ffmpeg import os out_path='/home/ld/RepPoints/final/epoch13 thres0.3/vis/vis/' video_name=os.listdir(out_path) for i in range(len(video_name)): video_path=os.path.join(out_path,video_name[i]) ( ffmpeg .input(os.path.join(video_path,'*.jpg'), pattern_type='glob', framerate=10) .output(os.path.join(out_pat...
29.666667
77
0.730337
3e42af30a532d4ca6224467f86bb8b3b53455f9e
29,859
py
Python
test/functional/wallet_bumpfee.py
SpaceXpanse/xaya
d106801eb4a86f6d7153ea21e7b49807ecf85091
[ "MIT" ]
null
null
null
test/functional/wallet_bumpfee.py
SpaceXpanse/xaya
d106801eb4a86f6d7153ea21e7b49807ecf85091
[ "MIT" ]
null
null
null
test/functional/wallet_bumpfee.py
SpaceXpanse/xaya
d106801eb4a86f6d7153ea21e7b49807ecf85091
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the bumpfee RPC. Verifies that the bumpfee RPC creates replacement transactions successfully when...
48.23748
175
0.712482
9116789f32b578ba52ef0ec55e20145f971d78d2
13,644
py
Python
pysnmp/JUNIPER-JS-NAT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/JUNIPER-JS-NAT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/JUNIPER-JS-NAT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module JUNIPER-JS-NAT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-JS-NAT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:48:41 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, ...
129.942857
2,076
0.76202
bf0e849cee23096ff15ed13e9a02c99fce8b9ef5
20,434
py
Python
train.py
NIST-NEON-DSE/deepTEA
fb0dfc407c6963ff21daf835bbd43e4c4124f22c
[ "Apache-2.0" ]
2
2020-01-17T18:42:06.000Z
2020-07-03T04:57:04.000Z
train.py
NIST-NEON-DSE/deepTEA
fb0dfc407c6963ff21daf835bbd43e4c4124f22c
[ "Apache-2.0" ]
null
null
null
train.py
NIST-NEON-DSE/deepTEA
fb0dfc407c6963ff21daf835bbd43e4c4124f22c
[ "Apache-2.0" ]
null
null
null
import argparse import os import sys import warnings #Import logger. #if __name__ == "__main__": # from comet_ml import Experiment, predictor import keras import keras.preprocessing.image import tensorflow as tf import glob import sys wdir = os.getcwd() #print(dir) sys.path.insert(0, os.path.join(os.path.dirname...
48.307329
187
0.675639
871bede4c9c011418cb4d87c888c72e4ec3fcbf0
1,903
py
Python
lab7/project/main.py
CaramelIceCream/InformationSecurity
c509c40bbb929a7ff05123e486e8f260db327dd2
[ "CC-BY-4.0" ]
null
null
null
lab7/project/main.py
CaramelIceCream/InformationSecurity
c509c40bbb929a7ff05123e486e8f260db327dd2
[ "CC-BY-4.0" ]
null
null
null
lab7/project/main.py
CaramelIceCream/InformationSecurity
c509c40bbb929a7ff05123e486e8f260db327dd2
[ "CC-BY-4.0" ]
null
null
null
# Декодировать сообщение def decode(cr_message, key): message = [] cr_message = cr_message.split() key = key.split() for i in range(0, len(cr_message)): message.append(chr(int(cr_message[i], 16) ^ int(key[i], 16))) return ''.join(message) # Закодировать сообщение def encode(message, key): ...
33.385965
106
0.669995
624e80fc1c9cf63ee33172055c4b6595eb22ccac
5,899
py
Python
dataset.py
cxqj/46-DeblurGANv2
967516534a1d2b833ff9e6558773064fa471353c
[ "BSD-3-Clause" ]
null
null
null
dataset.py
cxqj/46-DeblurGANv2
967516534a1d2b833ff9e6558773064fa471353c
[ "BSD-3-Clause" ]
null
null
null
dataset.py
cxqj/46-DeblurGANv2
967516534a1d2b833ff9e6558773064fa471353c
[ "BSD-3-Clause" ]
null
null
null
import os from copy import deepcopy from functools import partial from glob import glob from hashlib import sha1 from typing import Callable, Iterable, Optional, Tuple import cv2 import numpy as np from glog import logger from joblib import Parallel, cpu_count, delayed from skimage.io import imread from torch.utils.da...
39.858108
203
0.598576
8589e7c85ce275b8a9eebb39b303c738abe26160
206
py
Python
webapp/main/tests.py
joepetrini/bike-counter
e22190d7225ee54e7327efe43861f85c49c0bbd7
[ "MIT" ]
5
2015-01-09T00:54:43.000Z
2021-06-16T20:46:45.000Z
webapp/main/tests.py
joepetrini/bike-counter
e22190d7225ee54e7327efe43861f85c49c0bbd7
[ "MIT" ]
4
2015-06-30T12:04:22.000Z
2017-02-08T00:11:19.000Z
webapp/main/tests.py
joepetrini/bike-counter
e22190d7225ee54e7327efe43861f85c49c0bbd7
[ "MIT" ]
2
2015-01-07T02:46:27.000Z
2015-07-01T19:43:03.000Z
from django.test import TestCase from .models import Value, ValueSet class ValidateSingleDefaultValue(TestCase): def setUp(self): pass def test_single_default(self): pass
18.727273
43
0.68932
b0124490c838bfb3ada5cada52cced29f07bd0b3
3,059
py
Python
VisionTransformersRobustness/VisionTransformersRobustness/TransformerConfigs.py
bergermeister/ViTRobust
f7ffa59978ad0dd49492b11ee05142b058c7078f
[ "BSD-3-Clause" ]
6
2021-05-10T18:00:17.000Z
2022-02-25T11:39:33.000Z
VisionTransformersRobustness/VisionTransformersRobustness/TransformerConfigs.py
bergermeister/ViTRobust
f7ffa59978ad0dd49492b11ee05142b058c7078f
[ "BSD-3-Clause" ]
2
2021-05-10T06:02:19.000Z
2021-05-12T00:22:29.000Z
VisionTransformersRobustness/VisionTransformersRobustness/TransformerConfigs.py
bergermeister/ViTRobust
f7ffa59978ad0dd49492b11ee05142b058c7078f
[ "BSD-3-Clause" ]
3
2021-05-13T10:51:04.000Z
2021-09-03T07:28:41.000Z
#Original code from: https://github.com/jeonsworld/ViT-pytorch/blob/main/models/configs.py import ml_collections def get_testing(): """Returns a minimal configuration for testing.""" config = ml_collections.ConfigDict() config.patches = ml_collections.ConfigDict({'size': (16, 16)}) config.hidd...
33.25
91
0.690749
232ae95c9ceab55fd3915149ed5dd8892c51c6f9
683
py
Python
tictactoe/use_cases/play.py
pitzer42/nano_tcg
c984b253b8a53a707460aac21c10f140d16d902e
[ "MIT" ]
1
2020-09-30T21:03:37.000Z
2020-09-30T21:03:37.000Z
tictactoe/use_cases/play.py
pitzer42/nano_tcg
c984b253b8a53a707460aac21c10f140d16d902e
[ "MIT" ]
null
null
null
tictactoe/use_cases/play.py
pitzer42/nano_tcg
c984b253b8a53a707460aac21c10f140d16d902e
[ "MIT" ]
null
null
null
from gloop.entities.player import Player from tictactoe.adapters.client_channel import TicTacToeClientChannel as Client from tictactoe.entities.match import TicTacToeMatch from tictactoe.repositories.match import TicTacToeMatchRepository class Play: def __init__(self, client: Client, matches: TicTacToeMatchRepos...
35.947368
78
0.756955
5d2ed891ad0518665fb95d0061ce1148c9b19428
816
py
Python
src/yoloannotator/image.py
s1n7ax/partially-annotator
3bc53e3cbdd49dab871bd9fbbf59eabfb90d31c5
[ "MIT" ]
null
null
null
src/yoloannotator/image.py
s1n7ax/partially-annotator
3bc53e3cbdd49dab871bd9fbbf59eabfb90d31c5
[ "MIT" ]
null
null
null
src/yoloannotator/image.py
s1n7ax/partially-annotator
3bc53e3cbdd49dab871bd9fbbf59eabfb90d31c5
[ "MIT" ]
null
null
null
import cv2 class Image: def __init__(self, img_path): self.img_path = img_path self.img = None def get_path(self): return self.img_path def get_size(self): h, w, _ = self.get_image().shape return [w, h] def get_blob(self, blob_width=None, blob_height=None): ...
20.923077
58
0.540441
3ede22ffbf5665671022fa2377fb08701d029bb9
3,938
py
Python
utils/plot_confusion_matrix.py
tinvukhac/learned-spatial-join
d52967fbfd506829bdb92719dc80b042a8119b7d
[ "Apache-2.0" ]
6
2021-12-17T22:19:25.000Z
2022-03-17T23:35:04.000Z
utils/plot_confusion_matrix.py
tinvukhac/sjml-resources
f5805f726ccfa628c2dc20ad42eb8262f80bee94
[ "Apache-2.0" ]
null
null
null
utils/plot_confusion_matrix.py
tinvukhac/sjml-resources
f5805f726ccfa628c2dc20ad42eb8262f80bee94
[ "Apache-2.0" ]
2
2021-01-26T04:17:43.000Z
2021-02-16T16:10:13.000Z
import numpy as np import pandas as pd from sklearn.metrics import confusion_matrix, ConfusionMatrixDisplay import matplotlib.pyplot as plt import itertools from mpl_toolkits.axes_grid1 import ImageGrid def plot_two_matrices(confusion_matrix_values, titles): classes = ['BNLJ', 'PBSM', 'DJ', 'RepJ'] fig = pl...
35.477477
107
0.620366
ffb02e8120ed999cc83374795d167a341db659d3
18,007
py
Python
model.py
dingyunxing/James-code-paradise
688a8e6c8b569bacb6ac9f6754f43a5a3a7eba7a
[ "MIT" ]
null
null
null
model.py
dingyunxing/James-code-paradise
688a8e6c8b569bacb6ac9f6754f43a5a3a7eba7a
[ "MIT" ]
null
null
null
model.py
dingyunxing/James-code-paradise
688a8e6c8b569bacb6ac9f6754f43a5a3a7eba7a
[ "MIT" ]
null
null
null
'''This program aims to build a multiple regression model based on a given CSV file. The whole project implementation by top-down design. It includes the model construction and the prediction. Main functions includes: 1.Open csv file and read it, all variables should be int or float. 2.Define one colu...
34.762548
84
0.605376
9c5c43ab4a24df83bfadd5744e46aafdb6262f0b
10,125
py
Python
hybrid/battery.py
NREL/HOPP
824334df055d897d38c055e8b9197f478bac2cb6
[ "BSD-3-Clause" ]
3
2021-03-10T20:03:42.000Z
2022-03-18T17:10:04.000Z
hybrid/battery.py
NREL/HOPP
824334df055d897d38c055e8b9197f478bac2cb6
[ "BSD-3-Clause" ]
14
2020-12-28T22:32:07.000Z
2022-03-17T15:33:04.000Z
hybrid/battery.py
NREL/HOPP
824334df055d897d38c055e8b9197f478bac2cb6
[ "BSD-3-Clause" ]
8
2021-01-19T02:39:01.000Z
2022-01-31T18:04:39.000Z
from typing import Sequence import PySAM.BatteryStateful as BatteryModel import PySAM.BatteryTools as BatteryTools import PySAM.Singleowner as Singleowner from hybrid.power_source import * class Battery_Outputs: def __init__(self, n_timesteps): """ Class of stateful battery outputs """ ...
41.158537
113
0.645827
ac5016e29213301a21d414af36f73a192e757f39
17,946
py
Python
zerver/tests/test_message_edit_notifications.py
bongjlee/zulip
dc95d6e5ca320a241b569b43ca970196953c73d4
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_message_edit_notifications.py
bongjlee/zulip
dc95d6e5ca320a241b569b43ca970196953c73d4
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_message_edit_notifications.py
bongjlee/zulip
dc95d6e5ca320a241b569b43ca970196953c73d4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from typing import Any, Dict, Mapping, Union import mock from django.utils.timezone import now as timezone_now from zerver.lib.actions import ( get_client, ) from zerver.lib.test_classes import ( ZulipTestCase, ) from zerver.models import ( get_stream_recipient, Subscriptio...
34.914397
96
0.627549
3f83426018116f6ddbe53e4f8528b29b81081dab
203
py
Python
IVTp/2014/SOBOLEV_M_V/task_5_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/SOBOLEV_M_V/task_5_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/SOBOLEV_M_V/task_5_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
import random print("Программа случайным образом отображает название одной из шахматных фигур \n\n"+random.choice(['пешка','слон','конь', 'ладья', 'ферзь','король'])) input ("Нажмите Enter для выхода.")
50.75
152
0.738916
d746a2cf56f6d60212e224e7557f4af3f39f0206
12,324
py
Python
src/tests/biblerAPI_test.py
badbarde/bibler-server
b9a8faf21127e0d2678f4411ce16760b4fe4602f
[ "MIT" ]
null
null
null
src/tests/biblerAPI_test.py
badbarde/bibler-server
b9a8faf21127e0d2678f4411ce16760b4fe4602f
[ "MIT" ]
null
null
null
src/tests/biblerAPI_test.py
badbarde/bibler-server
b9a8faf21127e0d2678f4411ce16760b4fe4602f
[ "MIT" ]
null
null
null
import json import logging import os from datetime import datetime import bibler.biblerAPI as biblerAPI import pandas as pd import pytest from bibler.biblerAPI import Session, bibler from bibler.dataclasses.BorrowingUser import BorrowingUser from dateutil.relativedelta import relativedelta from fastapi.testclient impo...
28.461894
93
0.58739
6764b6347f0a78681fb6ecb4247b0c8499b3b305
398
py
Python
python/perspective/perspective/table/__init__.py
sebinsua/perspective
2c19c5fa0046597e30ec780ae08655767c5253d4
[ "Apache-2.0" ]
null
null
null
python/perspective/perspective/table/__init__.py
sebinsua/perspective
2c19c5fa0046597e30ec780ae08655767c5253d4
[ "Apache-2.0" ]
null
null
null
python/perspective/perspective/table/__init__.py
sebinsua/perspective
2c19c5fa0046597e30ec780ae08655767c5253d4
[ "Apache-2.0" ]
null
null
null
# ***************************************************************************** # # Copyright (c) 2019, the Perspective Authors. # # This file is part of the Perspective library, distributed under the terms of # the Apache License 2.0. The full license can be found in the LICENSE file. # from .table import Table from ...
33.166667
79
0.605528
58ceeccf2986eaf160b3038ba95411836add39cd
2,168
py
Python
MultiUART.py
tonbut/python-multiuart
63e45ee59f7e5e4542689a05104bb2445369e4c5
[ "MIT" ]
10
2018-07-21T19:18:07.000Z
2022-02-04T19:56:01.000Z
MultiUART.py
tonbut/python-multiuart
63e45ee59f7e5e4542689a05104bb2445369e4c5
[ "MIT" ]
null
null
null
MultiUART.py
tonbut/python-multiuart
63e45ee59f7e5e4542689a05104bb2445369e4c5
[ "MIT" ]
null
null
null
import spidev import time class MultiUART: spi=None uart=None def __init__(self,UART,SPIDivider): self.uart=UART spi = spidev.SpiDev() spi.open(0,0) self.spi=spi spi.lsbfirst=False #div64 = ??? 250Mhz/64 = 4000000 spi.max_speed_hz=250000000/SPIDivider self.spi.cshigh=False spi.loop=False #sp...
21.465347
80
0.659133
1f3380c942896c7571bee26f2a41900910f13933
304
py
Python
ninja/__init__.py
duplxey/django-ninja
7e0aed29a401d26942a6c95f6a1559dd3ed83aea
[ "MIT" ]
1
2021-07-10T02:23:15.000Z
2021-07-10T02:23:15.000Z
ninja/__init__.py
duplxey/django-ninja
7e0aed29a401d26942a6c95f6a1559dd3ed83aea
[ "MIT" ]
null
null
null
ninja/__init__.py
duplxey/django-ninja
7e0aed29a401d26942a6c95f6a1559dd3ed83aea
[ "MIT" ]
null
null
null
"""Django Ninja - Fast Django REST framework""" __version__ = "0.10.1" from ninja.main import NinjaAPI from ninja.params import Query, Path, Header, Cookie, Body, Form, File from ninja.router import Router from ninja.schema import Schema from ninja.files import UploadedFile from pydantic import Field
27.636364
70
0.786184
c7ec295458debb2a2925457a1b8a07c86ca6877e
1,200
py
Python
scripts/type_extractor/type_extractor/utils.py
mehrdad-shokri/retdec
a82f16e97b163afe789876e0a819489c5b9b358e
[ "MIT", "Zlib", "BSD-3-Clause" ]
4,816
2017-12-12T18:07:09.000Z
2019-04-17T02:01:04.000Z
scripts/type_extractor/type_extractor/utils.py
mehrdad-shokri/retdec
a82f16e97b163afe789876e0a819489c5b9b358e
[ "MIT", "Zlib", "BSD-3-Clause" ]
514
2017-12-12T18:22:52.000Z
2019-04-16T16:07:11.000Z
scripts/type_extractor/type_extractor/utils.py
mehrdad-shokri/retdec
a82f16e97b163afe789876e0a819489c5b9b358e
[ "MIT", "Zlib", "BSD-3-Clause" ]
579
2017-12-12T18:38:02.000Z
2019-04-11T13:32:53.000Z
"""Utilities.""" import logging import os def get_files_with_suffix_from_all_paths(paths, suffix=''): """For all paths returns path if it's file. Otherwise recursively walks path and returns all files with given suffix. """ for path in paths: for f in get_files_with_suffix_from_path(path, suf...
29.268293
82
0.645833
f8431f9b94f30129fe3782b70aecabc5d806f312
1,550
py
Python
Tuplas.py
vnnstar/Python-Mundo3-CursoEmVideo
cfb51a39f0240857469473a1f21970d3fb4b6076
[ "MIT" ]
null
null
null
Tuplas.py
vnnstar/Python-Mundo3-CursoEmVideo
cfb51a39f0240857469473a1f21970d3fb4b6076
[ "MIT" ]
null
null
null
Tuplas.py
vnnstar/Python-Mundo3-CursoEmVideo
cfb51a39f0240857469473a1f21970d3fb4b6076
[ "MIT" ]
null
null
null
lanche = 'Hambúrguer', 'Suco', 'Pizza', 'Pudim' # tuplas são representadas entre parenteses ('Hambúrguer', 'Suco', 'Pizza', # 'Pudim') porém o python identifica que é uma tupla mesmo sem parenteses print(lanche) print(lanche[1]) # mostra o valor na posição 1 print(lanche[:2]) # vai do inicio até o 1, pois ele ig...
31
78
0.674194
ccf2ddfa5a74a8fb3df5ec92f991a5d23b65a8de
11,223
py
Python
src/pretalx/orga/views/review.py
jjasghar/pretalx
c5041ec4001c5ef66cdb48e718789a086de280a2
[ "Apache-2.0" ]
null
null
null
src/pretalx/orga/views/review.py
jjasghar/pretalx
c5041ec4001c5ef66cdb48e718789a086de280a2
[ "Apache-2.0" ]
null
null
null
src/pretalx/orga/views/review.py
jjasghar/pretalx
c5041ec4001c5ef66cdb48e718789a086de280a2
[ "Apache-2.0" ]
null
null
null
from django.contrib import messages from django.db import transaction from django.db.models import Count, Exists, OuterRef, Q from django.shortcuts import get_object_or_404, redirect from django.utils.functional import cached_property from django.utils.translation import ugettext_lazy as _ from django.views.generic imp...
37.661074
171
0.60973
fe330300a671b90f899e8970ed42c6a51dec40c1
11,486
py
Python
pl_bolts/models/self_supervised/amdim/networks.py
jfrancis71/pytorch-lightning-bolts
8a4cf8f61644c28d6df54ccffe3a52d6f5fce5a6
[ "Apache-2.0" ]
null
null
null
pl_bolts/models/self_supervised/amdim/networks.py
jfrancis71/pytorch-lightning-bolts
8a4cf8f61644c28d6df54ccffe3a52d6f5fce5a6
[ "Apache-2.0" ]
null
null
null
pl_bolts/models/self_supervised/amdim/networks.py
jfrancis71/pytorch-lightning-bolts
8a4cf8f61644c28d6df54ccffe3a52d6f5fce5a6
[ "Apache-2.0" ]
null
null
null
import math import numpy as np import torch import torch.nn.functional as F from torch import nn class AMDIMEncoder(nn.Module): def __init__(self, dummy_batch, num_channels=3, encoder_feature_dim=64, embedding_fx_dim=512, conv_block_depth=3, encoder_size=32, use_bn=False): super().__init...
39.068027
104
0.578705
b872ab723e31a0f4bc1a6c1d6483dedf8658cb78
2,167
py
Python
python/paddle/fluid/dygraph/dygraph_to_static/call_transformer.py
slf12/Paddle
fa43d74a3a16ac696db5dc893c9a7b1c6913dc85
[ "Apache-2.0" ]
1
2020-05-02T00:00:20.000Z
2020-05-02T00:00:20.000Z
python/paddle/fluid/dygraph/dygraph_to_static/call_transformer.py
MaJun-cn/Paddle
0ec3a42e9740a5f5066053bb49a923d538eba24a
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/dygraph/dygraph_to_static/call_transformer.py
MaJun-cn/Paddle
0ec3a42e9740a5f5066053bb49a923d538eba24a
[ "Apache-2.0" ]
4
2020-07-27T13:24:03.000Z
2020-08-06T08:20:32.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
34.951613
91
0.708814
b3304b9e2c1161e4e5489e95f9f2278bde95d7b0
1,630
py
Python
run_all.py
abhishakvarshney/movie_rating_bot
767d78a074b520f42047ddfca35a6591c55f7fc4
[ "Apache-2.0" ]
1
2019-11-12T08:19:35.000Z
2019-11-12T08:19:35.000Z
run_all.py
abhishakvarshney/movie_rating_bot
767d78a074b520f42047ddfca35a6591c55f7fc4
[ "Apache-2.0" ]
null
null
null
run_all.py
abhishakvarshney/movie_rating_bot
767d78a074b520f42047ddfca35a6591c55f7fc4
[ "Apache-2.0" ]
2
2019-11-15T17:52:44.000Z
2019-11-16T09:24:01.000Z
import argparse import logging import rasa.core.run from rasa.core.channels.console import CmdlineInput from rasa.core.agent import Agent from rasa.core.interpreter import RasaNLUInterpreter from rasa.core.tracker_store import MongoTrackerStore from rasa.core.training import interactive from rasa.core.utils import End...
29.636364
73
0.671779
da8e7067e9d0bdb821245fc570af6cf1920ab616
1,002
py
Python
fastapi_workshop/models/customer.py
jbeigbeder/fastapi-workshop
852a8373c325f3177f2a3e5d572c8ded6c7be73e
[ "MIT" ]
null
null
null
fastapi_workshop/models/customer.py
jbeigbeder/fastapi-workshop
852a8373c325f3177f2a3e5d572c8ded6c7be73e
[ "MIT" ]
null
null
null
fastapi_workshop/models/customer.py
jbeigbeder/fastapi-workshop
852a8373c325f3177f2a3e5d572c8ded6c7be73e
[ "MIT" ]
null
null
null
"""database models: customer and order""" from sqlalchemy import Column, Integer, String, Boolean, Date, ForeignKey from sqlalchemy.orm import relationship from ..database import Base class Order(Base): """Order model""" __tablename__ = 'order' id = Column(Integer, primary_key=True, index=True) date...
32.322581
73
0.651697
0a4a2a7e1ea6afd9ddca97513aa1baa8382e22fa
13,725
py
Python
cryptoapis/model/get_transaction_details_by_transaction_id_from_callback_ribsbc.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
cryptoapis/model/get_transaction_details_by_transaction_id_from_callback_ribsbc.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
cryptoapis/model/get_transaction_details_by_transaction_id_from_callback_ribsbc.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
46.525424
484
0.601311
de596b0c3eac2fb63574d187f4b746a78dca812f
1,131
py
Python
gravis3d/generator.py
rajangarhwal/Gravis3D
c1b1a3a712ef6bba82c7cd4c98be4e8ffaac0d29
[ "MIT" ]
1
2020-07-30T05:54:08.000Z
2020-07-30T05:54:08.000Z
gravis3d/generator.py
rajangarhwal/Gravis3D
c1b1a3a712ef6bba82c7cd4c98be4e8ffaac0d29
[ "MIT" ]
null
null
null
gravis3d/generator.py
rajangarhwal/Gravis3D
c1b1a3a712ef6bba82c7cd4c98be4e8ffaac0d29
[ "MIT" ]
null
null
null
from body import Body from numpy.random import normal from vpython import * class Nbodies: """ A class to implement all bodies. """ def __init__(self, N = None): self.N = N or 10 x,y,z = normal(0,1e11,N), normal(0,1e11,N), normal(0,1e11,N) vx,vy,vz = normal(0,1e7,N), normal(0,1e...
33.264706
109
0.519894
4360e6477545e7994163aff91f910bbb1a365112
1,147
py
Python
world.py
ctII/somegame
d49aaed0b23abe99deebe9ad80cb23b05dd5a75d
[ "MIT" ]
null
null
null
world.py
ctII/somegame
d49aaed0b23abe99deebe9ad80cb23b05dd5a75d
[ "MIT" ]
null
null
null
world.py
ctII/somegame
d49aaed0b23abe99deebe9ad80cb23b05dd5a75d
[ "MIT" ]
null
null
null
from terrainBarrier import terrainBarrier #entire terrain system needs to be redone, getTerrainAt is currently just bruteforcing class world: def __init__(self, width, height): self.entities = [] #terrible implementation of terrain self.terrain = [] for i in range(0, width): ...
29.410256
86
0.622493
ac581006440aa53709f1602d86be8e7c0dd67ab7
391
py
Python
vozdocu/wsgi.py
Vido/voxdocu
912f2e012af5280467fb9d83641f206e9d921145
[ "Apache-2.0" ]
7
2020-12-08T17:06:51.000Z
2022-01-11T19:35:10.000Z
vozdocu/wsgi.py
Vido/zecontinha
912f2e012af5280467fb9d83641f206e9d921145
[ "Apache-2.0" ]
2
2020-06-05T19:38:58.000Z
2020-06-13T02:30:31.000Z
vozdocu/wsgi.py
Vido/voxdocu
912f2e012af5280467fb9d83641f206e9d921145
[ "Apache-2.0" ]
6
2020-12-08T19:35:10.000Z
2021-11-19T19:22:33.000Z
""" WSGI config for vozdocu project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
23
78
0.785166
3839998dcd8288346ec307cc88e34ed3a7362e6f
3,644
py
Python
bindings/python/ensmallen/datasets/string/microgenomatesgroupbacteriumrifcsplowo201full4613.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/microgenomatesgroupbacteriumrifcsplowo201full4613.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/microgenomatesgroupbacteriumrifcsplowo201full4613.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Microgenomates group bacterium RIFCSPLOWO2_01_FULL_46_13. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, t...
34.704762
223
0.691273
29f3a39f90d250efacebb9a39a35868843ba4bed
6,171
py
Python
nf_core/bump_version.py
matrulda/tools
b48bce26b7da46cb71e4a8f78b68d9ceac579ca6
[ "MIT" ]
1
2019-08-14T16:20:04.000Z
2019-08-14T16:20:04.000Z
nf_core/bump_version.py
matrulda/tools
b48bce26b7da46cb71e4a8f78b68d9ceac579ca6
[ "MIT" ]
2
2020-02-27T11:17:44.000Z
2020-12-09T05:45:14.000Z
nf_core/bump_version.py
matrulda/tools
b48bce26b7da46cb71e4a8f78b68d9ceac579ca6
[ "MIT" ]
1
2020-12-07T12:32:00.000Z
2020-12-07T12:32:00.000Z
#!/usr/bin/env python """Bumps the version number in all appropriate files for a nf-core pipeline. """ import logging import os import re import rich.console import sys import nf_core.utils log = logging.getLogger(__name__) stderr = rich.console.Console(stderr=True, force_terminal=nf_core.utils.rich_force_colors()) ...
35.0625
130
0.580943
f2a122adac59d6c0436c413e9896b78d0f36e581
3,121
py
Python
notifyore/notifiers/growl.py
ptone/notifyore
43b5aad98f2a5e49f7d2b5ed0bfbf6de0ef3400b
[ "BSD-2-Clause-FreeBSD" ]
3
2015-11-05T08:57:03.000Z
2016-07-17T18:11:06.000Z
notifyore/notifiers/growl.py
ptone/notifyore
43b5aad98f2a5e49f7d2b5ed0bfbf6de0ef3400b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
notifyore/notifiers/growl.py
ptone/notifyore
43b5aad98f2a5e49f7d2b5ed0bfbf6de0ef3400b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import hashlib import os import time import urllib2 import tempfile import Growl from notifyore.notifiers import BaseNotifier from notifyore.utils import get_convore_logo def get_growl_image(url): cache_folder = os.path.join(tempfile.gettempdir(),'profile image cache') if not os.path.exists(cache_folder): ...
33.202128
93
0.576097
dd010e05dc07be04581b3fdcd00e124d1bb8a260
532
py
Python
streams/migrations/0002_auto_20200724_2202.py
danielpomas/church_site
69d33f3908e4e8b0fdbde9ebb8c14f72050f9efe
[ "MIT" ]
null
null
null
streams/migrations/0002_auto_20200724_2202.py
danielpomas/church_site
69d33f3908e4e8b0fdbde9ebb8c14f72050f9efe
[ "MIT" ]
44
2020-05-13T20:15:26.000Z
2022-03-04T02:58:58.000Z
streams/migrations/0002_auto_20200724_2202.py
danielpomas/church_site
69d33f3908e4e8b0fdbde9ebb8c14f72050f9efe
[ "MIT" ]
4
2020-06-05T17:59:52.000Z
2021-02-06T19:09:43.000Z
# Generated by Django 3.0.8 on 2020-07-25 02:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('streams', '0001_initial'), ] operations = [ migrations.AddField( model_name='stream', name='audio_views', ...
22.166667
49
0.567669
74ee55700a984a4f4f449e794eee0ff2e1d67ebe
6,661
py
Python
ddtrace/pin.py
tancnle/dd-trace-py
4313f388383b90ccf2bcbca9d7ef1c400c827ece
[ "BSD-3-Clause" ]
null
null
null
ddtrace/pin.py
tancnle/dd-trace-py
4313f388383b90ccf2bcbca9d7ef1c400c827ece
[ "BSD-3-Clause" ]
null
null
null
ddtrace/pin.py
tancnle/dd-trace-py
4313f388383b90ccf2bcbca9d7ef1c400c827ece
[ "BSD-3-Clause" ]
null
null
null
import ddtrace from .internal.logger import get_logger from .vendor import wrapt log = get_logger(__name__) # To set attributes on wrapt proxy objects use this prefix: # http://wrapt.readthedocs.io/en/latest/wrappers.html _DD_PIN_NAME = '_datadog_pin' _DD_PIN_PROXY_NAME = '_self_' + _DD_PIN_NAME class Pin(object...
36.398907
115
0.61192
3cef4b6d65dda7c1b7cff5ed70ee66301d3182ce
409
py
Python
Desafios/Ex-054.py
LuckyCards/Curso-Python3
b39c7b2645220c71c35012f16c102428053fee25
[ "MIT" ]
1
2021-04-06T16:14:43.000Z
2021-04-06T16:14:43.000Z
Desafios/Ex-054.py
LuckyCards/Curso-Python3
b39c7b2645220c71c35012f16c102428053fee25
[ "MIT" ]
null
null
null
Desafios/Ex-054.py
LuckyCards/Curso-Python3
b39c7b2645220c71c35012f16c102428053fee25
[ "MIT" ]
null
null
null
from datetime import date print(f'\033[33m{"—"*30:^30}\033[m') print(f'\033[36m{"EXERCÍCIO Nº 54":^30}\033[m') print(f'\033[33m{"—"*30:^30}\033[m') maior = 0 menor = 0 for x in range(0, 8): ano = int(input('Digite seu ano de nascimento: ')) if date.today().year - ano > 21: maior += 1 else: m...
31.461538
79
0.606357
2d0c79aa8fe2074f411275650271f6bc0c2de0cc
765
py
Python
exercices/questao06.py
LBarros77/Python
283b383d9d14c8d7b907b80f03f7cdc5dbd1e8af
[ "MIT" ]
null
null
null
exercices/questao06.py
LBarros77/Python
283b383d9d14c8d7b907b80f03f7cdc5dbd1e8af
[ "MIT" ]
null
null
null
exercices/questao06.py
LBarros77/Python
283b383d9d14c8d7b907b80f03f7cdc5dbd1e8af
[ "MIT" ]
null
null
null
def media(x, y, z = 2): return (float(x) + float(y) / z) calender = { 1: "Janeiro", 2: "Fevereiro", 3: "Março", 4: "Abril", 5: "Maio", 6: "Junho", 7: "Julho", 8: "Agosto", 9: "Setembro", 10: "Outubro", 11: "Novembro", 12: "Dezembro", } # temperatura max e min print(...
24.677419
91
0.573856
313b55253d4dfbb73b3125f12ebd15ecae436289
7,702
py
Python
DeepSpeech/bin/import_swb.py
Kutim/Run-Black-Box-Audio
6564f255f574ef63eeb24688773f03517c124259
[ "MIT" ]
null
null
null
DeepSpeech/bin/import_swb.py
Kutim/Run-Black-Box-Audio
6564f255f574ef63eeb24688773f03517c124259
[ "MIT" ]
1
2019-07-21T13:22:28.000Z
2019-07-21T13:22:28.000Z
DeepSpeech/bin/import_swb.py
Kutim/Run-Black-Box-Audio
6564f255f574ef63eeb24688773f03517c124259
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import, division, print_function # Make sure we can import stuff from util/ # This script needs to be run from the root of the DeepSpeech repository import sys import os sys.path.insert(1, os.path.join(sys.path[0], '..')) import fnmatch import pandas import subpro...
40.114583
132
0.655025