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
5d846c4f5fe50040e453b4319c358d9c4d712cf8
3,075
py
Python
lipnet/core/decoders.py
mulmang/KLipNet
a35cdb990158ec8b05a4e98aa920b92e75914b00
[ "MIT" ]
null
null
null
lipnet/core/decoders.py
mulmang/KLipNet
a35cdb990158ec8b05a4e98aa920b92e75914b00
[ "MIT" ]
9
2020-05-25T11:28:20.000Z
2022-03-12T00:27:53.000Z
lipnet/core/decoders.py
mulmang/KLipNet
a35cdb990158ec8b05a4e98aa920b92e75914b00
[ "MIT" ]
1
2020-05-25T11:07:06.000Z
2020-05-25T11:07:06.000Z
# -*- coding: utf-8 -*- from keras import backend as K import numpy as np def _decode(y_pred, input_length, greedy=True, beam_width=100, top_paths=1): """Decodes the output of a softmax. Can use either greedy search (also known as best path) or a constrained dictionary search. # Arguments y_pr...
43.928571
94
0.640976
89a6bac49051043ed775e2f06ba19583cdfdc884
6,431
py
Python
ShootingML.py
nicholastoddsmith/ShootingML
8873b55b85a725301222b43b30df13fc54cb4dfd
[ "BSD-3-Clause" ]
null
null
null
ShootingML.py
nicholastoddsmith/ShootingML
8873b55b85a725301222b43b30df13fc54cb4dfd
[ "BSD-3-Clause" ]
null
null
null
ShootingML.py
nicholastoddsmith/ShootingML
8873b55b85a725301222b43b30df13fc54cb4dfd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Author: Nicholas T. Smith Date: September 1st 2020 Desc: An implementation of the shooting regressor described here: https://arxiv.org/pdf/2009.06172.pdf """ from joblib import Parallel, parallel_backend, delayed import numpy as np import pandas ...
33.494792
114
0.508008
621d522c36a87f78af1f509dc1d6ea2d77ac43c6
10,010
py
Python
pipeline/scripts/post_processing/make_genelist_gt.py
gturco/find_cns
63e08d17d9c81e250ef2637216fbf947cc295823
[ "MIT" ]
4
2016-03-21T19:19:24.000Z
2019-10-23T09:20:13.000Z
pipeline/scripts/post_processing/make_genelist_gt.py
hengbingao/find_cns
63e08d17d9c81e250ef2637216fbf947cc295823
[ "MIT" ]
10
2016-03-21T16:55:29.000Z
2022-03-22T07:26:03.000Z
pipeline/scripts/post_processing/make_genelist_gt.py
hengbingao/find_cns
63e08d17d9c81e250ef2637216fbf947cc295823
[ "MIT" ]
5
2016-03-02T16:20:05.000Z
2021-07-28T02:31:23.000Z
""" ('name', 'chr', other_org_name + '_orthologs', other_org_name + '_orthologous_cns', other_org_name + '_NON_orthologous_cns_count', 'other_' + other_org_name + 'pairs', 'dups', 'strand', 'cds_locations', 'labels', 'link') """ import collections import operator import sys sys.path.append...
36.937269
119
0.61029
8c65bd1782711e6110365aa28e71b811f51f52d6
9,976
py
Python
main/settings.py
dasmith2/davebase
940b0d375d25da9621502a4e52d1cf04716f81fe
[ "MIT" ]
null
null
null
main/settings.py
dasmith2/davebase
940b0d375d25da9621502a4e52d1cf04716f81fe
[ "MIT" ]
null
null
null
main/settings.py
dasmith2/davebase
940b0d375d25da9621502a4e52d1cf04716f81fe
[ "MIT" ]
null
null
null
""" Don't modify this file on specific sites. Use this_site_settings.py for that. This file should stay the same between all the sites. """ import os import re import sys import warnings import django_heroku """ What environment are you in? Just check your settings! """ DEBUG = os.path.exists('main/local_settings.py...
35.628571
105
0.743284
787ae15b9dc04911197b3ca54d5090e13d8c503f
105
py
Python
Train/GA/test_csv.py
polbebe/PinkPanther
c6ba47956b2cae6468ac0cfe56229b5434fec754
[ "MIT" ]
null
null
null
Train/GA/test_csv.py
polbebe/PinkPanther
c6ba47956b2cae6468ac0cfe56229b5434fec754
[ "MIT" ]
null
null
null
Train/GA/test_csv.py
polbebe/PinkPanther
c6ba47956b2cae6468ac0cfe56229b5434fec754
[ "MIT" ]
null
null
null
import pandas as pd df = pd.read_csv('GA_Test_0.0.0.csv') a = df['Best Values'].to_numpy() print(a[0])
15
37
0.666667
ddfe2db451bcd725240a7aefdcf2b34355890aeb
31,873
py
Python
emscripten.py
nhhollander/emscripten
32dfcc9bc2bf92bbb92717a07c15a1418e2c1343
[ "MIT" ]
1
2021-11-16T15:18:32.000Z
2021-11-16T15:18:32.000Z
emscripten.py
tklajnscek/emscripten
a8a0d8e79ed5d4aa640e18ae7497ef4c48e5beaa
[ "MIT" ]
null
null
null
emscripten.py
tklajnscek/emscripten
a8a0d8e79ed5d4aa640e18ae7497ef4c48e5beaa
[ "MIT" ]
null
null
null
# Copyright 2010 The Emscripten Authors. All rights reserved. # Emscripten is available under two separate licenses, the MIT license and the # University of Illinois/NCSA Open Source License. Both these licenses can be # found in the LICENSE file. """A small wrapper script around the core JS compiler. This calls tha...
38.125598
194
0.690396
94e195cd3b5fcf46ab98d37fc66f28b85a2d1c58
49,229
py
Python
gamestonk_terminal/stocks/technical_analysis/ta_controller.py
JakubPluta/GamestonkTerminal
3eb200fbea467d808ab401962e1d62022b7a2338
[ "MIT" ]
1
2022-01-18T00:49:22.000Z
2022-01-18T00:49:22.000Z
gamestonk_terminal/stocks/technical_analysis/ta_controller.py
JakubPluta/GamestonkTerminal
3eb200fbea467d808ab401962e1d62022b7a2338
[ "MIT" ]
1
2022-01-15T01:24:24.000Z
2022-01-15T01:24:24.000Z
gamestonk_terminal/stocks/technical_analysis/ta_controller.py
JakubPluta/GamestonkTerminal
3eb200fbea467d808ab401962e1d62022b7a2338
[ "MIT" ]
1
2021-11-07T20:59:25.000Z
2021-11-07T20:59:25.000Z
"""Technical Analysis Controller Module""" __docformat__ = "numpy" # pylint:disable=too-many-lines,R0904,C0201 import argparse from typing import List from datetime import datetime, timedelta import pandas as pd from prompt_toolkit.completion import NestedCompleter from gamestonk_terminal.rich_config import console f...
35.881195
120
0.548803
97b6a32ebbc18557974316cbc55ba32ea004fa2f
23,897
py
Python
Platform/ApollolakeBoardPkg/Script/StitchIfwi.py
donnayoyo/slimbootloader
017e7012f81423668f0b5c74e0f6b3a7e7634f65
[ "BSD-2-Clause" ]
null
null
null
Platform/ApollolakeBoardPkg/Script/StitchIfwi.py
donnayoyo/slimbootloader
017e7012f81423668f0b5c74e0f6b3a7e7634f65
[ "BSD-2-Clause" ]
null
null
null
Platform/ApollolakeBoardPkg/Script/StitchIfwi.py
donnayoyo/slimbootloader
017e7012f81423668f0b5c74e0f6b3a7e7634f65
[ "BSD-2-Clause" ]
null
null
null
## @ StitchIfwi.py # This is a python stitching script for Slim Bootloader APL build # # Copyright (c) 2019, Intel Corporation. All rights reserved. <BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## import sys import os import re import struct import argparse import zipfile import shutil import glob import shl...
35.508172
185
0.600368
df231a669e2a5b453cb5dd7ece35fddac2345f92
3,573
py
Python
holdem_calc.py
monchewharry/holdem_calc
37db21a3609667a656b8fc0b6f45a8bbc7d67363
[ "MIT" ]
null
null
null
holdem_calc.py
monchewharry/holdem_calc
37db21a3609667a656b8fc0b6f45a8bbc7d67363
[ "MIT" ]
null
null
null
holdem_calc.py
monchewharry/holdem_calc
37db21a3609667a656b8fc0b6f45a8bbc7d67363
[ "MIT" ]
null
null
null
import time import holdem_functions import holdem_argparser def main(): hole_cards, num, exact, board, file_name = holdem_argparser.parse_args() run(hole_cards, num, exact, board, file_name, True) def calculate(board, exact, num, input_file, hole_cards, verbose): args = holdem_argparser.LibArgs(board, ex...
48.283784
80
0.656311
b985db4e406984038fb67ad01dca3e360e6f4494
18,379
py
Python
api/highlight_server/server/views.py
dmivilensky/highlight
869948540734604a096966216fd9062ab6f42059
[ "MIT" ]
4
2020-04-19T13:59:45.000Z
2020-05-22T16:41:00.000Z
api/highlight_server/server/views.py
dmivilensky/highlight
869948540734604a096966216fd9062ab6f42059
[ "MIT" ]
15
2020-04-04T09:26:17.000Z
2022-03-30T06:24:19.000Z
api/highlight_server/server/views.py
dmivilensky/highlight
869948540734604a096966216fd9062ab6f42059
[ "MIT" ]
1
2020-04-04T12:54:56.000Z
2020-04-04T12:54:56.000Z
import json # Create your views here. import os import asyncio import sys from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from bson.objectid import ObjectId # from .forms import UploadFileForm import docx import time import datetime from .logger import Logger from .forms imp...
27.309064
243
0.595952
18ff0321f89a98425d835cf8247715fb17d894e1
661
py
Python
scripts/opcode_header_gen.py
jevinskie/pypcode-emu
49d62090df9b25a7c4e35eee3532c3763f4e4286
[ "MIT" ]
13
2022-02-27T03:35:24.000Z
2022-03-21T10:39:16.000Z
scripts/opcode_header_gen.py
jevinskie/pypcode-emu
49d62090df9b25a7c4e35eee3532c3763f4e4286
[ "MIT" ]
null
null
null
scripts/opcode_header_gen.py
jevinskie/pypcode-emu
49d62090df9b25a7c4e35eee3532c3763f4e4286
[ "MIT" ]
1
2022-03-21T01:24:00.000Z
2022-03-21T01:24:00.000Z
#!/usr/bin/env python3 from bidict import bidict from pypcode import OpCode p = lambda *args, **kwargs: print(*args, **kwargs) opcodes = {} for _, opc in OpCode.__members__.items(): opcodes[opc.name] = opc.value opcodes = bidict(sorted(opcodes.items(), key=lambda x: x[1])) p("#pragma once") p() p("#include <cst...
20.030303
61
0.596067
59e4eabb270cbf99f9e5356c3788796538e3302a
5,613
py
Python
lib/matplotlib/backends/backend_mixed.py
KelvinLi/matplotlib
c3f31a0dc6c4eea4e0513febf651eae467f9878b
[ "MIT", "BSD-3-Clause" ]
null
null
null
lib/matplotlib/backends/backend_mixed.py
KelvinLi/matplotlib
c3f31a0dc6c4eea4e0513febf651eae467f9878b
[ "MIT", "BSD-3-Clause" ]
null
null
null
lib/matplotlib/backends/backend_mixed.py
KelvinLi/matplotlib
c3f31a0dc6c4eea4e0513febf651eae467f9878b
[ "MIT", "BSD-3-Clause" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) import six from matplotlib._image import frombuffer from matplotlib.backends.backend_agg import RendererAgg from matplotlib.tight_bbox import process_figure_for_rasterizing __all__ = [str('MixedModeRenderer')...
38.979167
77
0.637983
3846e5d1c3364e0aeae61b8a6d5ee7c45558da3e
61
py
Python
01_challenge.py
FreshTaker/PythonChallenge
1cc8137dcb5d1877c1871c55be43435a949c4c5c
[ "MIT" ]
null
null
null
01_challenge.py
FreshTaker/PythonChallenge
1cc8137dcb5d1877c1871c55be43435a949c4c5c
[ "MIT" ]
null
null
null
01_challenge.py
FreshTaker/PythonChallenge
1cc8137dcb5d1877c1871c55be43435a949c4c5c
[ "MIT" ]
null
null
null
# This is for the first python challenge a = 2**38 print(a)
12.2
40
0.688525
d33f5f18c7137d8011947fba6ee9bce27a4884f0
11,501
py
Python
train_model.py
frinklai/code_of_auth
d2e203bcdb612c611a2e0cf32fb0ed9a3b6e058a
[ "Apache-2.0" ]
2
2019-05-21T15:06:39.000Z
2019-10-31T06:19:11.000Z
train_model.py
frinklai/code_of_auth
d2e203bcdb612c611a2e0cf32fb0ed9a3b6e058a
[ "Apache-2.0" ]
null
null
null
train_model.py
frinklai/code_of_auth
d2e203bcdb612c611a2e0cf32fb0ed9a3b6e058a
[ "Apache-2.0" ]
1
2019-06-27T12:33:17.000Z
2019-06-27T12:33:17.000Z
import os import sys import random import math import re import time import numpy as np import cv2 import matplotlib import matplotlib.pyplot as plt import tensorflow as tf from mrcnn.config import Config #import utils from mrcnn import model as modellib,utils from mrcnn import visualize import yaml from mrcnn.model im...
37.220065
115
0.579776
7e1cebbcb2652f91c0efad5c41bbbadcc9c06b5f
841
py
Python
hayrack/tests/smoke/server.py
ProjectMeniscus/hayrack
586cf22ef39d60c529aae50d18af529c87d7ce08
[ "Apache-2.0" ]
null
null
null
hayrack/tests/smoke/server.py
ProjectMeniscus/hayrack
586cf22ef39d60c529aae50d18af529c87d7ce08
[ "Apache-2.0" ]
null
null
null
hayrack/tests/smoke/server.py
ProjectMeniscus/hayrack
586cf22ef39d60c529aae50d18af529c87d7ce08
[ "Apache-2.0" ]
1
2020-11-17T19:07:03.000Z
2020-11-17T19:07:03.000Z
from specter import Spec, incomplete class Server(Spec): """ Smoke tests around server-side IO. """ class Connection(Spec): @incomplete def can_start_an_io_loop(self): pass @incomplete def can_stop_the_io_loop(self): pass @incomplete d...
20.512195
52
0.577883
a0b8e495d9d16005e51614030e451fc9a68288ef
1,220
py
Python
airflow/contrib/operators/databricks_operator.py
IGIT-CN/airflow
a6e5bcd59198afe5716813e84ebc4c59eade532c
[ "Apache-2.0" ]
8
2017-04-20T16:15:44.000Z
2020-10-11T13:44:10.000Z
airflow/contrib/operators/databricks_operator.py
IGIT-CN/airflow
a6e5bcd59198afe5716813e84ebc4c59eade532c
[ "Apache-2.0" ]
219
2017-03-15T18:40:16.000Z
2022-02-28T22:52:43.000Z
airflow/contrib/operators/databricks_operator.py
IGIT-CN/airflow
a6e5bcd59198afe5716813e84ebc4c59eade532c
[ "Apache-2.0" ]
4
2020-07-17T14:02:28.000Z
2022-02-23T04:29:58.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...
39.354839
97
0.777869
b0b32fd50da38882933b6126f4d5e7b0e3174b2d
5,643
py
Python
setup.py
tperol/stable-baselines
a139bb77866f094388b4f7ce096a6ad3695c9b7a
[ "MIT" ]
1
2022-03-23T11:39:35.000Z
2022-03-23T11:39:35.000Z
setup.py
tperol/stable-baselines
a139bb77866f094388b4f7ce096a6ad3695c9b7a
[ "MIT" ]
null
null
null
setup.py
tperol/stable-baselines
a139bb77866f094388b4f7ce096a6ad3695c9b7a
[ "MIT" ]
1
2019-02-20T10:29:47.000Z
2019-02-20T10:29:47.000Z
import sys import subprocess from setuptools import setup, find_packages from distutils.version import LooseVersion if sys.version_info.major != 3: print('This Python is only compatible with Python 3, but you are running ' 'Python {}. The installation will likely fail.'.format(sys.version_info.major)) #...
38.650685
835
0.707071
49422a2446736e811957b08d9e2c90a30d556418
440
py
Python
10 Days of Statistics/Normal Distribution II.py
adi-797/10-Days-of-Statistics-Hackerrank
f603db45ad1485fdcac5488557f51a793d950b54
[ "MIT" ]
2
2018-08-29T13:51:11.000Z
2018-08-31T17:06:38.000Z
10 Days of Statistics/Normal Distribution II.py
adi-797/10-Days-of-Statistics-Hackerrank
f603db45ad1485fdcac5488557f51a793d950b54
[ "MIT" ]
null
null
null
10 Days of Statistics/Normal Distribution II.py
adi-797/10-Days-of-Statistics-Hackerrank
f603db45ad1485fdcac5488557f51a793d950b54
[ "MIT" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUT. import math def normal(x, mu, sigma): return 0.500 * ( 1 + math.erf( (x - mu) / ( sigma * math.sqrt(2) ) ) ) mu = 70.000 sigma = 10.000 x = 80.000 y = 60.000 pB = normal(100, mu, sigma) - normal(x, mu, sigma) print "%.3f" % (pB*100) pB = n...
20
74
0.593182
9e31611584fc9b5fb10bf1d9486f28df96f7a81a
94
py
Python
engine/algorithm/__init__.py
jackaduma/py-recommender-framework
9c47ae23ccfeccbc2146f9091bf9fa6cb69dc90b
[ "Apache-2.0" ]
1
2022-03-21T01:44:59.000Z
2022-03-21T01:44:59.000Z
engine/algorithm/__init__.py
jackaduma/py-recommender-framework
9c47ae23ccfeccbc2146f9091bf9fa6cb69dc90b
[ "Apache-2.0" ]
null
null
null
engine/algorithm/__init__.py
jackaduma/py-recommender-framework
9c47ae23ccfeccbc2146f9091bf9fa6cb69dc90b
[ "Apache-2.0" ]
null
null
null
#!python2.7 # -*- coding: utf-8 -*- """ Created by kun on 2016/10/10. """ __author__ = 'kun'
11.75
29
0.56383
103c941ba3aa25092bad7fb68938786a64917154
1,069
py
Python
examples/wine_comparison.py
johncollins/metric-learn
01746ec3ce9f7039900cd50be48ef6fa0d3ed1b9
[ "BSD-2-Clause" ]
4
2015-02-02T21:49:27.000Z
2018-07-05T04:16:50.000Z
examples/wine_comparison.py
johncollins/metric-learn
01746ec3ce9f7039900cd50be48ef6fa0d3ed1b9
[ "BSD-2-Clause" ]
null
null
null
examples/wine_comparison.py
johncollins/metric-learn
01746ec3ce9f7039900cd50be48ef6fa0d3ed1b9
[ "BSD-2-Clause" ]
null
null
null
import numpy as np import os # Read the csv file wherein the class is the first column and transform to data # Everything is numeric so we can just use a numpy array right off the bat data = np.genfromtxt(os.path.join('data', 'wine', 'wine.csv'), skip_header=True, delimiter=',') y, X = data[:,0], data[:,1:] #X = (X - ...
39.592593
95
0.757717
b61bc9d6a3ed6cf502502ba27d870ec23fe72b6d
3,366
py
Python
examples/realtime/plot_compute_rt_decoder.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
2
2015-09-27T20:33:49.000Z
2020-04-22T19:10:56.000Z
examples/realtime/plot_compute_rt_decoder.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
null
null
null
examples/realtime/plot_compute_rt_decoder.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
1
2019-10-23T06:11:28.000Z
2019-10-23T06:11:28.000Z
""" ======================= Decoding real-time data ======================= Supervised machine learning applied to MEG data in sensor space. Here the classifier is updated every 5 trials and the decoding accuracy is plotted """ # Authors: Mainak Jas <mainak@neuro.hut.fi> # # License: BSD (3-clause) print(__doc__) im...
30.053571
76
0.643791
705e200b7ad2f2a774dfaead53397d5731a15b66
258
py
Python
PYTHON/Numpy/sum_and_prod.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Numpy/sum_and_prod.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Numpy/sum_and_prod.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import numpy s = list(map(int, input().split())) N, M = s[0], s[1] arr = [] for _ in range(0, N): temp = list(map(int, input().split())) arr.append(temp) n = numpy.array(arr) print(numpy.prod(numpy.sum(n, axis=0)))
19.846154
42
0.612403
eb6a7bf2f7e7fda56860deafa2cfd3bc963d4fdb
775
py
Python
app/forms/email_form.py
petechd/eq-questionnaire-runner
1c5b182a7f8bc878cfdd767ae080410fa679abd6
[ "MIT" ]
null
null
null
app/forms/email_form.py
petechd/eq-questionnaire-runner
1c5b182a7f8bc878cfdd767ae080410fa679abd6
[ "MIT" ]
null
null
null
app/forms/email_form.py
petechd/eq-questionnaire-runner
1c5b182a7f8bc878cfdd767ae080410fa679abd6
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField from wtforms.validators import Email, InputRequired from app.forms import error_messages from app.forms.questionnaire_form import map_subfield_errors from app.forms.validators import EmailTLDCheck class EmailForm(FlaskForm): email = StringField( ...
29.807692
66
0.682581
1df049df745a1071105d62c028f5f0953532e42e
2,059
py
Python
src/array_processing.py
leckman/exocode
a88754b889687a268fb140282de1ce8e1b7c8992
[ "MIT-0" ]
1
2015-08-12T15:52:39.000Z
2015-08-12T15:52:39.000Z
src/array_processing.py
leckman/exocode
a88754b889687a268fb140282de1ce8e1b7c8992
[ "MIT-0" ]
null
null
null
src/array_processing.py
leckman/exocode
a88754b889687a268fb140282de1ce8e1b7c8992
[ "MIT-0" ]
null
null
null
''' Copyright (c) 2015, Laura Eckman 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, publish, distribute, ...
33.754098
77
0.674599
e2a1119c5151d2099344b96304d6be45c6c27d96
3,715
py
Python
Past_experiments/E-6.py
abogdanova/FedMed
72f238c31b6714c664e1b0e40204f9528f764182
[ "MIT" ]
5
2019-07-23T14:49:46.000Z
2022-03-30T13:54:22.000Z
Past_experiments/E-6.py
abogdanova/FedMed
72f238c31b6714c664e1b0e40204f9528f764182
[ "MIT" ]
null
null
null
Past_experiments/E-6.py
abogdanova/FedMed
72f238c31b6714c664e1b0e40204f9528f764182
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import collections import numpy as np from six.moves import range import tensorflow as tf import datetime from tensorflow_federated import python as tff from tensorflow.python.keras.optimizer_v2 import gradient_descent from tensorflow.keras import layer...
33.468468
113
0.696904
4904a09a7bf6ef27551495c5b280857cdb49c0f8
668
py
Python
random-scripts/gcc2llvm/func.py
h4sh5/bcddb
11c65d4927e23c4a7df5a75c46a48966d1e428fd
[ "BSD-3-Clause" ]
null
null
null
random-scripts/gcc2llvm/func.py
h4sh5/bcddb
11c65d4927e23c4a7df5a75c46a48966d1e428fd
[ "BSD-3-Clause" ]
null
null
null
random-scripts/gcc2llvm/func.py
h4sh5/bcddb
11c65d4927e23c4a7df5a75c46a48966d1e428fd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 class BasicBlock: # each basic block has its name, and line number def __init__(self, name: str, startLine:int, code:str): # as in lines inside source code self.startLine = startLine self.endLine = endLine self.lines = endLine - startLine self.code = code self.name = name clas...
21.548387
63
0.715569
9fa0355a9d9da4dc395e952c64db3cbfe7e24307
1,483
py
Python
tests/test.py
Sappharad/aacgain
afeaf0173f3b3b37af1f5db4418089a2786a4bb6
[ "Unlicense" ]
13
2019-08-07T09:39:12.000Z
2022-02-24T12:56:49.000Z
tests/test.py
Sappharad/aacgain
afeaf0173f3b3b37af1f5db4418089a2786a4bb6
[ "Unlicense" ]
1
2019-07-23T01:23:27.000Z
2019-07-23T01:23:27.000Z
tests/test.py
Sappharad/aacgain
afeaf0173f3b3b37af1f5db4418089a2786a4bb6
[ "Unlicense" ]
3
2019-07-22T22:29:31.000Z
2020-09-02T05:42:58.000Z
#!/usr/bin/env python import subprocess import sys import os.path import re # Gain intentionally lowered by 4dB, resulting in a ~5dB positive ReplayGain adjustment MATCHER = re.compile('Recommended "Album" dB change for all files: ([0-9.]+)') def main(): if len(sys.argv) < 2: raise Exception("Give path ...
32.23913
87
0.681052
08b99c78a7b001c90b36b27c2368d4d069100071
5,746
py
Python
airflow/security/kerberos.py
IGIT-CN/airflow
a6e5bcd59198afe5716813e84ebc4c59eade532c
[ "Apache-2.0" ]
8
2017-04-20T16:15:44.000Z
2020-10-11T13:44:10.000Z
airflow/security/kerberos.py
IGIT-CN/airflow
a6e5bcd59198afe5716813e84ebc4c59eade532c
[ "Apache-2.0" ]
219
2017-03-15T18:40:16.000Z
2022-02-28T22:52:43.000Z
airflow/security/kerberos.py
IGIT-CN/airflow
a6e5bcd59198afe5716813e84ebc4c59eade532c
[ "Apache-2.0" ]
3
2016-07-14T21:51:10.000Z
2020-10-12T13:26:36.000Z
#!/usr/bin/env python # 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 # "Li...
36.138365
109
0.659241
440549b35e0f45932ba8a5f7f4932196c1a7a2b5
4,606
py
Python
custom/_legacy/pact/reports/admin_dot_reports.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2017-02-10T03:14:51.000Z
2017-02-10T03:14:51.000Z
custom/_legacy/pact/reports/admin_dot_reports.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
null
null
null
custom/_legacy/pact/reports/admin_dot_reports.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime, timedelta import logging import uuid from couchdbkit import ResourceNotFound from corehq.apps.reports.datatables import DataTablesHeader, DataTablesColumn from corehq.apps.reports.generic import GenericTabularReport from corehq.apps.reports.standard import CustomProjectReport from pact.mo...
41.872727
160
0.616804
856af5f317666e51525ab4bea9c4923f6775d853
3,007
py
Python
setup.py
Devocean8-Official/checkov
8ce61421fa838a97981ab3bd0ae2a12e541666b2
[ "Apache-2.0" ]
null
null
null
setup.py
Devocean8-Official/checkov
8ce61421fa838a97981ab3bd0ae2a12e541666b2
[ "Apache-2.0" ]
null
null
null
setup.py
Devocean8-Official/checkov
8ce61421fa838a97981ab3bd0ae2a12e541666b2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import logging import os from importlib import util from os import path import setuptools from setuptools import setup # read the contents of your README file this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, "README.md"), encoding="utf-8") as f: long_...
28.102804
88
0.57998
5337daa324b43c8a4793dd8cdde7f3943c28d5e7
1,125
py
Python
budgetportal/tests/test_posts_pages.py
TomaszKolek/datamanager
d46dbab00e30a14fc26eb9368c32dcdbbda7309d
[ "MIT" ]
null
null
null
budgetportal/tests/test_posts_pages.py
TomaszKolek/datamanager
d46dbab00e30a14fc26eb9368c32dcdbbda7309d
[ "MIT" ]
null
null
null
budgetportal/tests/test_posts_pages.py
TomaszKolek/datamanager
d46dbab00e30a14fc26eb9368c32dcdbbda7309d
[ "MIT" ]
null
null
null
from django.test import Client, TestCase from budgetportal.models import PostIndexPage, PostPage class PostIndexPageTestCase(TestCase): fixtures = ["test-posts-pages"] def setUp(self): self.post_index_page = PostIndexPage.objects.get(id=6) self.post_page = PostPage.objects.get(id=7) def ...
35.15625
66
0.706667
17af8425e2fbcb7a599190ab40cf8146e3cd079b
54
py
Python
idseq_pipeline/__main__.py
cdebourcy/idseq-pipeline
0f3d58ab36896bb01ab3929d8386c0e2774765f4
[ "MIT" ]
null
null
null
idseq_pipeline/__main__.py
cdebourcy/idseq-pipeline
0f3d58ab36896bb01ab3929d8386c0e2774765f4
[ "MIT" ]
159
2018-01-11T01:54:12.000Z
2021-01-13T23:11:48.000Z
idseq_pipeline/__main__.py
cdebourcy/idseq-pipeline
0f3d58ab36896bb01ab3929d8386c0e2774765f4
[ "MIT" ]
2
2019-04-17T18:10:36.000Z
2020-03-11T08:30:54.000Z
import cli if __name__ == "__main__": cli.main()
10.8
26
0.62963
849e11839d628fbc47bffaf49f0811e91f19b391
4,739
py
Python
baseball_scraper/utils.py
spilchen/pybaseball
494f4ea6c4bd7717543e77d596da5246ac442842
[ "MIT" ]
20
2019-08-07T07:25:29.000Z
2021-10-02T18:11:09.000Z
baseball_scraper/utils.py
spilchen/pybaseball
494f4ea6c4bd7717543e77d596da5246ac442842
[ "MIT" ]
1
2021-02-19T16:45:33.000Z
2021-02-19T16:45:33.000Z
baseball_scraper/utils.py
spilchen/pybaseball
494f4ea6c4bd7717543e77d596da5246ac442842
[ "MIT" ]
7
2020-05-22T13:25:05.000Z
2022-01-06T04:21:54.000Z
import pandas as pd import requests import datetime import io import zipfile # dictionary containing team abbreviations and their first year in existance first_season_map = {'ALT': 1884, 'ANA': 1997, 'ARI': 1998, 'ATH': 1871, 'ATL': 1966, 'BAL': 1872, 'BLA': 1901, 'BLN': 1892, ...
46.460784
236
0.571007
5c28e424bd51775e83fb685f5a853d8ecf493d93
7,810
py
Python
utils/duplicated_prodtypes.py
Jakuje/content
881c2140a49b79db37c8798568d507478d7ddb4b
[ "BSD-3-Clause" ]
3
2015-08-08T06:54:03.000Z
2019-03-25T02:37:54.000Z
utils/duplicated_prodtypes.py
Jakuje/content
881c2140a49b79db37c8798568d507478d7ddb4b
[ "BSD-3-Clause" ]
1
2020-10-14T17:31:39.000Z
2020-10-14T17:31:39.000Z
utils/duplicated_prodtypes.py
Jakuje/content
881c2140a49b79db37c8798568d507478d7ddb4b
[ "BSD-3-Clause" ]
1
2020-10-12T19:15:34.000Z
2020-10-12T19:15:34.000Z
import sys import os import argparse import subprocess import jinja2 import yaml import ssg def _create_profile_cache(ssg_root): profile_cache = {} product_list = ['debian9', 'debian10', 'fedora', 'ol7', 'opensuse', 'rhel6', 'rhel7', 'sle12', 'ubuntu1604', 'ubuntu1804', ...
30.038462
182
0.600256
db6a1caf239669562ff70a87d0a6afad43f52971
1,467
py
Python
EE475/Ch7P3.py
PhoeniXuzoo/NU-Projects
a217ad46e6876ceffb3dec1d6e52f775674b2e8b
[ "MIT" ]
null
null
null
EE475/Ch7P3.py
PhoeniXuzoo/NU-Projects
a217ad46e6876ceffb3dec1d6e52f775674b2e8b
[ "MIT" ]
null
null
null
EE475/Ch7P3.py
PhoeniXuzoo/NU-Projects
a217ad46e6876ceffb3dec1d6e52f775674b2e8b
[ "MIT" ]
null
null
null
import autograd.numpy as np import matplotlib.pyplot as plt from autograd import grad from autograd.misc.flatten import flatten_func def readData(csvname): data = np.loadtxt(csvname, delimiter=',') x = data[:-1, :] y = data[-1:, :] return x, y def model(x, w): a = w[0] + np.dot(x.T, w[1:]) re...
23.66129
71
0.59441
3f38f2b9faa53485b6d0e2dbe6716bdc2c625a37
2,179
py
Python
how-to-guides/data-versioning/scripts/Compare_model_training_runs_on_dataset_versions.py
neptune-ai/examples
e64cfaadb028e2187063fc43768dfee44074729b
[ "MIT" ]
15
2021-06-11T16:35:15.000Z
2022-03-29T15:53:59.000Z
how-to-guides/data-versioning/scripts/Compare_model_training_runs_on_dataset_versions.py
neptune-ai/examples
e64cfaadb028e2187063fc43768dfee44074729b
[ "MIT" ]
12
2021-04-26T13:07:50.000Z
2021-11-15T10:50:03.000Z
how-to-guides/data-versioning/scripts/Compare_model_training_runs_on_dataset_versions.py
neptune-ai/examples
e64cfaadb028e2187063fc43768dfee44074729b
[ "MIT" ]
10
2021-05-07T16:28:18.000Z
2022-02-28T21:47:11.000Z
import neptune.new as neptune import pandas as pd from sklearn.ensemble import RandomForestClassifier TRAIN_DATASET_PATH = '../datasets/tables/train.csv' TEST_DATASET_PATH = '../datasets/tables/test.csv' PARAMS = {'n_estimators': 7, 'max_depth': 2, 'max_features': 2, } def train_model(...
26.901235
81
0.725103
ecad00c99bfae4c655a5b4d241a56c17547ac8fe
14,471
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/topology/isisl3pseudoifaceattpoint2config_37681cb7f2d7b1eb6c812c1b9f243542.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
uhd_restpy/testplatform/sessions/ixnetwork/topology/isisl3pseudoifaceattpoint2config_37681cb7f2d7b1eb6c812c1b9f243542.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
uhd_restpy/testplatform/sessions/ixnetwork/topology/isisl3pseudoifaceattpoint2config_37681cb7f2d7b1eb6c812c1b9f243542.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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,...
44.526154
214
0.653514
f50ca7a4a0da485deb3d9249fe4d1a1634f9bdfd
106
py
Python
backend/src/stores/__init__.py
fjacob21/mididecweb
b65f28eb6fdeafa265796b6190a4264a5eac54ce
[ "MIT" ]
null
null
null
backend/src/stores/__init__.py
fjacob21/mididecweb
b65f28eb6fdeafa265796b6190a4264a5eac54ce
[ "MIT" ]
88
2016-11-12T14:54:38.000Z
2018-08-02T00:25:07.000Z
backend/src/stores/__init__.py
mididecouverte/mididecweb
b65f28eb6fdeafa265796b6190a4264a5eac54ce
[ "MIT" ]
null
null
null
from .memory import MemoryStore from .sqlite import SqliteStore __all__ = [MemoryStore, SqliteStore]
21.2
37
0.783019
a69e689131515ab416d31797bd64af2e81e9be3c
126
py
Python
blackmamba/lib/pyflakes/__main__.py
oz90210/blackmamba
65c82c8e99028d6fbb57098ce82d0a394df215a0
[ "MIT" ]
345
2015-01-01T01:27:51.000Z
2022-02-12T14:46:53.000Z
blackmamba/lib/pyflakes/__main__.py
oz90210/blackmamba
65c82c8e99028d6fbb57098ce82d0a394df215a0
[ "MIT" ]
39
2017-08-20T15:10:36.000Z
2020-03-31T18:45:57.000Z
blackmamba/lib/pyflakes/__main__.py
oz90210/blackmamba
65c82c8e99028d6fbb57098ce82d0a394df215a0
[ "MIT" ]
96
2015-01-05T01:51:29.000Z
2019-06-07T12:10:22.000Z
from pyflakes.api import main # python -m pyflakes (with Python >= 2.7) if __name__ == '__main__': main(prog='pyflakes')
21
41
0.68254
36653527fd7370d1588e272de5760ce4138281a9
523
py
Python
src/main.py
johnhoman/kubeflow-defaulting
e831982363f7724acacd72d64ae49f550922c684
[ "Apache-2.0" ]
null
null
null
src/main.py
johnhoman/kubeflow-defaulting
e831982363f7724acacd72d64ae49f550922c684
[ "Apache-2.0" ]
null
null
null
src/main.py
johnhoman/kubeflow-defaulting
e831982363f7724acacd72d64ae49f550922c684
[ "Apache-2.0" ]
null
null
null
import fastapi from pydantic import BaseModel from prometheus_fastapi_instrumentator import Instrumentator from src import spark, profile app = fastapi.FastAPI() app.include_router(spark.router, prefix="/spark") app.include_router(profile.router, prefix="/profile") # something in this is throwing warnings Instrume...
21.791667
62
0.787763
686d8583d4a9d143d45ee7d9934b562ae874e762
1,802
py
Python
src/util/filter.py
chrisnig/long-term-workload
6a56182115f3f736e7c141abf868f2370e2bb8d7
[ "MIT" ]
null
null
null
src/util/filter.py
chrisnig/long-term-workload
6a56182115f3f736e7c141abf868f2370e2bb8d7
[ "MIT" ]
null
null
null
src/util/filter.py
chrisnig/long-term-workload
6a56182115f3f736e7c141abf868f2370e2bb8d7
[ "MIT" ]
null
null
null
# TupleFilter class inspired by Nick (https://stackoverflow.com/users/2480947) # https://stackoverflow.com/a/44321960 # Permission was given by the original author to use this code under the MIT license. from collections import defaultdict class TupleFilter: def __init__(self, data: dict) -> None: self.d...
36.77551
90
0.655383
c479ef61f2e3001fdbe75a0b26a943bffa686427
14,845
py
Python
src/python/models/resnet.py
joennlae/halutmatmul
69340d3386298401d421b0e67dcb0649534b0c12
[ "MIT" ]
null
null
null
src/python/models/resnet.py
joennlae/halutmatmul
69340d3386298401d421b0e67dcb0649534b0c12
[ "MIT" ]
null
null
null
src/python/models/resnet.py
joennlae/halutmatmul
69340d3386298401d421b0e67dcb0649534b0c12
[ "MIT" ]
null
null
null
""" Modified from https://raw.githubusercontent.com/pytorch/vision/main/torchvision/models/resnet.py BSD 3-Clause License Copyright (c) Soumith Chintala 2016, All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are me...
36.74505
101
0.581812
12ff8c49e0f56e34719f7ff100927974d154835b
8,287
py
Python
custom_components/fritzbox_tools/config_flow.py
PetePete/ha-fritzbox-tools
ed7e97b053b1d52b7343d139b2b2ac7a4040605c
[ "MIT" ]
null
null
null
custom_components/fritzbox_tools/config_flow.py
PetePete/ha-fritzbox-tools
ed7e97b053b1d52b7343d139b2b2ac7a4040605c
[ "MIT" ]
null
null
null
custom_components/fritzbox_tools/config_flow.py
PetePete/ha-fritzbox-tools
ed7e97b053b1d52b7343d139b2b2ac7a4040605c
[ "MIT" ]
null
null
null
"""Config flow to configure the FRITZ!Box Tools integration.""" import logging import voluptuous as vol from homeassistant import config_entries from .const import ( DOMAIN, CONF_PROFILE_ON, CONF_PROFILE_OFF, CONF_USE_DEFLECTIONS, CONF_USE_DEVICES, CONF_USE_WIFI, CONF_USE_PORT, DEFAULT_...
34.966245
94
0.602389
eec6e89d69f48c3ead4557c8a444638b35c0786e
5,123
py
Python
buildroot-2017.08/support/testing/tests/fs/test_iso9660.py
xregist/v3s-linux-sdk
a2b013e3959662d65650a13fc23ec1cd503865eb
[ "Apache-2.0" ]
4
2020-04-28T02:12:34.000Z
2021-02-23T01:57:39.000Z
buildroot-2017.08/support/testing/tests/fs/test_iso9660.py
xregist/v3s-linux-sdk
a2b013e3959662d65650a13fc23ec1cd503865eb
[ "Apache-2.0" ]
null
null
null
buildroot-2017.08/support/testing/tests/fs/test_iso9660.py
xregist/v3s-linux-sdk
a2b013e3959662d65650a13fc23ec1cd503865eb
[ "Apache-2.0" ]
5
2018-05-16T16:36:08.000Z
2020-11-04T05:51:11.000Z
import os import infra.basetest BASIC_CONFIG = \ """ BR2_x86_pentium4=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-i386-pentium4-full-2015.05-496-g85945aa.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_G...
31.429448
130
0.726918
393b9c325ffa8852f7b598ecd5c0605b30cc814f
1,354
py
Python
test_client.py
antoinecarme/pytorch2sql
1705ba92917dd848e9d0c08a0054f4b93b6aa3e5
[ "BSD-3-Clause" ]
4
2021-01-21T11:12:37.000Z
2022-02-21T03:08:41.000Z
test_client.py
antoinecarme/pytorch2sql
1705ba92917dd848e9d0c08a0054f4b93b6aa3e5
[ "BSD-3-Clause" ]
null
null
null
test_client.py
antoinecarme/pytorch2sql
1705ba92917dd848e9d0c08a0054f4b93b6aa3e5
[ "BSD-3-Clause" ]
1
2021-09-19T15:05:37.000Z
2021-09-19T15:05:37.000Z
import pickle, json, requests, base64 from sklearn import datasets import torch from torch import nn import torch.nn.functional as F import skorch from skorch import NeuralNetClassifier torch.manual_seed(1960) torch.set_default_tensor_type('torch.DoubleTensor') def create_model(): hidden_units = 15 n...
20.208955
77
0.686115
ca92f31d7be368c5973f2797b58025180993380f
3,657
py
Python
tests/builtins/test_divmod.py
SouravJohar/voc
82d1d03dff8619dc04cddd0e7fdfeb712f82363a
[ "BSD-3-Clause" ]
1
2018-10-04T21:46:37.000Z
2018-10-04T21:46:37.000Z
tests/builtins/test_divmod.py
SouravJohar/voc
82d1d03dff8619dc04cddd0e7fdfeb712f82363a
[ "BSD-3-Clause" ]
null
null
null
tests/builtins/test_divmod.py
SouravJohar/voc
82d1d03dff8619dc04cddd0e7fdfeb712f82363a
[ "BSD-3-Clause" ]
1
2020-06-16T17:07:25.000Z
2020-06-16T17:07:25.000Z
from .. utils import TranspileTestCase, BuiltinFunctionTestCase, BuiltinTwoargFunctionTestCase class DivmodTests(TranspileTestCase): pass class BuiltinDivmodFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["divmod"] not_implemented = [ 'test_bool', 'test_bytearray...
25.047945
94
0.608149
f278f93197f99e9dbc6e68588a959e243e99143e
893
py
Python
code/Images/gif.py
0ptik41/Tools
bd5270735c96a0d99db12e6dd83cca1531746082
[ "MIT" ]
1
2021-03-21T15:01:41.000Z
2021-03-21T15:01:41.000Z
code/Images/gif.py
0ptik41/Tools
bd5270735c96a0d99db12e6dd83cca1531746082
[ "MIT" ]
null
null
null
code/Images/gif.py
0ptik41/Tools
bd5270735c96a0d99db12e6dd83cca1531746082
[ "MIT" ]
null
null
null
import os, sys, ppm # convert folder of images to gif, 1st str is input video, 2nd is out gif fmt vid2gif = 'ffmpeg -i %s -vf "fps=10,scale=%d:-1:flags=lanczos,'\ 'split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 1 %s' # convert video to images, 1st str is input video, 2nd is output im fmt vid2img = 'mkdir...
40.590909
77
0.657335
f413f2977968fe29ccadd932404c2c3a1bc1e588
13,854
py
Python
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_generated/aio/operations/_service_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_generated/aio/operations/_service_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_generated/aio/operations/_service_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.311111
146
0.673452
37b5088388a5b6f788277ef9294395a594a0b22f
4,577
py
Python
src/python/WMCore/WMConnectionBase.py
tslazarova/WMCore
a09e2aefe700fb9b0d12b9f7089b21bde5a5bd62
[ "Apache-2.0" ]
1
2015-02-05T13:43:46.000Z
2015-02-05T13:43:46.000Z
src/python/WMCore/WMConnectionBase.py
tslazarova/WMCore
a09e2aefe700fb9b0d12b9f7089b21bde5a5bd62
[ "Apache-2.0" ]
1
2016-10-13T14:57:35.000Z
2016-10-13T14:57:35.000Z
src/python/WMCore/WMConnectionBase.py
juztas/WMCore
f7e830a573d50fb1d7240797f18d809f994b934d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ _WMBSBase_ Generic methods used by all of the WMBS classes. """ import threading import copy from WMCore.Database.Transaction import Transaction from WMCore.DAOFactory import DAOFactory try: from contextlib import contextmanager except (ImportError, NameError): pass class WMCon...
27.908537
84
0.613939
fec32cf87bfacb40d1410b932548f5179aeb1af3
12,598
py
Python
EstadisticasFinales.py
Dmedina11/MigrateDB
cd860d1edeb63ba40f38c1f7e42a80630bd9e460
[ "BSD-3-Clause" ]
null
null
null
EstadisticasFinales.py
Dmedina11/MigrateDB
cd860d1edeb63ba40f38c1f7e42a80630bd9e460
[ "BSD-3-Clause" ]
null
null
null
EstadisticasFinales.py
Dmedina11/MigrateDB
cd860d1edeb63ba40f38c1f7e42a80630bd9e460
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # NewInsertTables,py, script que permite la insercion de datos a las tablas que presentan alguna relacion entre ellas # en la base de datos, estas son usuarios, equipos, macs y usuariosequipos, comienza con el llenado de la tabla usuario # para luego continuar con los equipos y las macs, en general ...
46.14652
321
0.760914
671ef4ad4844c6e8d1fbb6d729d8bd1d792795fa
1,318
py
Python
dataset/dataset.py
enricomeloni/covid-tools
6920b8cfa0eb89bdb7e0ba96ecc74831185c44a7
[ "MIT" ]
1
2020-10-06T16:03:01.000Z
2020-10-06T16:03:01.000Z
dataset/dataset.py
enricomeloni/covid-tools
6920b8cfa0eb89bdb7e0ba96ecc74831185c44a7
[ "MIT" ]
3
2022-02-13T20:21:56.000Z
2022-02-27T10:19:23.000Z
dataset/dataset.py
sailab-code/learning-sidarthe
6920b8cfa0eb89bdb7e0ba96ecc74831185c44a7
[ "MIT" ]
null
null
null
import numpy as np from dataset.config import get_region_params class Dataset: def __init__(self, dataset_params): self.region = dataset_params["region"] self.train_size = dataset_params["train_size"] self.val_len = dataset_params["val_len"] self.x, self.y = None, None se...
25.843137
77
0.628225
c467603ad0e59299792040f178b532dd9ba0a380
666
py
Python
Django/CarService/manage.py
tobecrazy/RaspberryMaterial
d1bdb900881350b69f0a70ec97d19e8e048b00b1
[ "Apache-2.0" ]
null
null
null
Django/CarService/manage.py
tobecrazy/RaspberryMaterial
d1bdb900881350b69f0a70ec97d19e8e048b00b1
[ "Apache-2.0" ]
null
null
null
Django/CarService/manage.py
tobecrazy/RaspberryMaterial
d1bdb900881350b69f0a70ec97d19e8e048b00b1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'CarService.settings') try: from django.core.management import execute_from_command_line except I...
28.956522
74
0.68018
03501f3188d9af9ef763b2e0c1a117ac3d9a1a1c
4,737
py
Python
cunumeric/linalg/cholesky.py
bryevdv/cunumeric
7965ceb96d3252371c22cf32d38ac91c4db77a38
[ "Apache-2.0" ]
null
null
null
cunumeric/linalg/cholesky.py
bryevdv/cunumeric
7965ceb96d3252371c22cf32d38ac91c4db77a38
[ "Apache-2.0" ]
null
null
null
cunumeric/linalg/cholesky.py
bryevdv/cunumeric
7965ceb96d3252371c22cf32d38ac91c4db77a38
[ "Apache-2.0" ]
null
null
null
# Copyright 2021-2022 NVIDIA Corporation # # 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 ...
28.709091
77
0.6654
ae8ef24b7e587ed25742ed4ae0e99839098cf5ab
99
py
Python
tests/roots/test-linkcheck/conf.py
m-chaturvedi/sphinx
46897c2acf1f2056dff479ec705e2899d86118c6
[ "BSD-2-Clause" ]
8
2021-01-29T23:28:16.000Z
2021-06-04T07:12:32.000Z
tests/roots/test-linkcheck/conf.py
JoeyCluett/sphinx
ff5031c96e90027510ad2d0251972e12da46402c
[ "BSD-2-Clause" ]
12
2019-01-09T15:43:57.000Z
2020-01-21T10:46:30.000Z
tests/roots/test-linkcheck/conf.py
JoeyCluett/sphinx
ff5031c96e90027510ad2d0251972e12da46402c
[ "BSD-2-Clause" ]
10
2019-02-04T11:49:35.000Z
2020-03-21T13:32:20.000Z
master_doc = 'links' source_suffix = '.txt' exclude_patterns = ['_build'] linkcheck_anchors = True
19.8
29
0.747475
fc0a93e909edb4cd003c849e40a289a0c2e467d0
13,648
py
Python
toExcel.py
nelliesnoodles/StatsClass
8c9f650d177b4d4a25876bd0e542576c95da647d
[ "MIT" ]
null
null
null
toExcel.py
nelliesnoodles/StatsClass
8c9f650d177b4d4a25876bd0e542576c95da647d
[ "MIT" ]
null
null
null
toExcel.py
nelliesnoodles/StatsClass
8c9f650d177b4d4a25876bd0e542576c95da647d
[ "MIT" ]
null
null
null
from sys import exit import textwrap import xlsxwriter import os class ToExcel(object): def __init__(self): self.row_label = None self.row_length = None self.row_data = [] self.column_length = None self.column_data = None self.file_name = None se...
37.086957
148
0.472011
42894a0cedcceca4e0c5a8611aeb752d5dc32398
2,384
py
Python
src/structurizr/view/sequence_number.py
xolynrac/examen_final_4c
dfa19b44fee6a17b7efc5630f1c8580aabc549e9
[ "Apache-2.0" ]
47
2020-04-26T20:00:03.000Z
2022-02-19T14:32:04.000Z
src/structurizr/view/sequence_number.py
xolynrac/examen_final_4c
dfa19b44fee6a17b7efc5630f1c8580aabc549e9
[ "Apache-2.0" ]
84
2020-05-25T14:49:21.000Z
2022-01-26T01:55:04.000Z
src/structurizr/view/sequence_number.py
xolynrac/examen_final_4c
dfa19b44fee6a17b7efc5630f1c8580aabc549e9
[ "Apache-2.0" ]
14
2020-07-01T11:03:25.000Z
2022-01-11T06:37:31.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
33.577465
83
0.661913
6582baf2572cd2867e861e789b2af282c4b023d9
2,342
py
Python
covermi/genename_bed.py
eawilson/CoverMi
99d2608f272ce2182e2d57036532e21b3ccf2525
[ "MIT" ]
null
null
null
covermi/genename_bed.py
eawilson/CoverMi
99d2608f272ce2182e2d57036532e21b3ccf2525
[ "MIT" ]
null
null
null
covermi/genename_bed.py
eawilson/CoverMi
99d2608f272ce2182e2d57036532e21b3ccf2525
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pdb import sys import argparse import os import csv from covermi import Panel, gff3, Gr, Entry def genename_bed(panel, output=None): """ Args: panel (str): Path of panel to be edited. output (str): Path to write renamed bed file to. If not provided...
29.64557
98
0.555508
97e2628e921a9f5dfc4c098d06bf9d02d625aead
11,849
py
Python
lib/twisted/python/zipstream.py
Kagami/kisa
2597f67e519b8d66fec2684ff5a7726436bb029b
[ "CC0-1.0" ]
7
2015-04-28T13:26:11.000Z
2020-02-09T17:01:04.000Z
lib/twisted/python/zipstream.py
Kagami/kisa
2597f67e519b8d66fec2684ff5a7726436bb029b
[ "CC0-1.0" ]
null
null
null
lib/twisted/python/zipstream.py
Kagami/kisa
2597f67e519b8d66fec2684ff5a7726436bb029b
[ "CC0-1.0" ]
3
2015-03-10T20:56:17.000Z
2021-08-21T02:44:24.000Z
# -*- test-case-name: twisted.python.test.test_zipstream -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ An incremental approach to unzipping files. This allows you to unzip a little bit of a file at a time, which means you can report progress as a file unzips. """ import warnings imp...
30.53866
79
0.58199
15d6ec0b85c17ca5799ce98ebe7901daa49a5b7d
2,619
py
Python
prefect/aircraftlib/position.py
andersy005/brouillons-quotidien
468ebcc3327f96a6eb3a9a26460790c4f34fdc85
[ "MIT" ]
null
null
null
prefect/aircraftlib/position.py
andersy005/brouillons-quotidien
468ebcc3327f96a6eb3a9a26460790c4f34fdc85
[ "MIT" ]
null
null
null
prefect/aircraftlib/position.py
andersy005/brouillons-quotidien
468ebcc3327f96a6eb3a9a26460790c4f34fdc85
[ "MIT" ]
null
null
null
import math from typing import Generator, Tuple # Semi-axes of WGS-84 geoidal reference WGS84_a = 6378137.0 # Major semiaxis [m] WGS84_b = 6356752.3 # Minor semiaxis [m] class Position: def __init__(self, lat: float, long: float): self.lat = lat self.long = long def validate(self) -> None:...
29.426966
81
0.648339
b7a437f7c12af3e3f47395769ad89d7fd6c8bcd4
5,249
py
Python
corankco/consensus.py
pierreandrieu/corankco
769b18ef349de3a0305f878724f6e6ae41f9f38f
[ "MIT" ]
null
null
null
corankco/consensus.py
pierreandrieu/corankco
769b18ef349de3a0305f878724f6e6ae41f9f38f
[ "MIT" ]
null
null
null
corankco/consensus.py
pierreandrieu/corankco
769b18ef349de3a0305f878724f6e6ae41f9f38f
[ "MIT" ]
null
null
null
from typing import List, Set, Dict, Iterable from corankco.kemeny_computation import KemenyComputingFactory from corankco.dataset import Dataset from corankco.scoringscheme import ScoringScheme from enum import Enum, unique @unique class ConsensusFeature(Enum): AssociatedDataset = "dataset:" AssociatedScoring...
40.068702
115
0.648695
fff2138c8baefebccd2fa486fbbc20c3dce7525e
990
py
Python
tests/test_indexing.py
awesome-archive/ipwb
11b45da85696107871ea5f66b152336179604db7
[ "MIT" ]
null
null
null
tests/test_indexing.py
awesome-archive/ipwb
11b45da85696107871ea5f66b152336179604db7
[ "MIT" ]
null
null
null
tests/test_indexing.py
awesome-archive/ipwb
11b45da85696107871ea5f66b152336179604db7
[ "MIT" ]
null
null
null
# Number of entries in CDXJ == number of response records in WARC import pytest import testUtil as ipwbTest import os from ipwb import indexer @pytest.mark.ipwbIndexerRecordCount def test_cdxj_warc_responseRecordCount(): newWARCPath = ipwbTest.createUniqueWARC() # use ipwb indexer to push cdxjList = ind...
31.935484
67
0.740404
4f7cded1eac3b933b4994d3b29443c2f0204df6b
5,944
py
Python
nornir/core/__init__.py
ubaumann/nornir
dfa7b3afa615003df57cc269261df646b528ef26
[ "Apache-2.0" ]
63
2018-04-05T02:46:24.000Z
2018-05-15T13:16:15.000Z
nornir/core/__init__.py
ubaumann/nornir
dfa7b3afa615003df57cc269261df646b528ef26
[ "Apache-2.0" ]
65
2016-12-17T11:55:43.000Z
2018-03-28T09:41:11.000Z
nornir/core/__init__.py
ubaumann/nornir
dfa7b3afa615003df57cc269261df646b528ef26
[ "Apache-2.0" ]
7
2018-04-03T08:18:54.000Z
2018-05-15T13:11:47.000Z
import logging import logging.config from typing import List, Optional, TYPE_CHECKING from nornir.core.configuration import Config from nornir.core.inventory import Inventory from nornir.core.plugins.runners import RunnerPlugin from nornir.core.processor import Processor, Processors from nornir.core.state import Globa...
34.16092
99
0.617429
08bed9df716bc65c6037c846c3e80a9c4afca3c5
691
py
Python
activity 3/activity3.py
long2691/activities
f78041b4e0c02f1c6fea598d9dfc67796bc99009
[ "MIT" ]
null
null
null
activity 3/activity3.py
long2691/activities
f78041b4e0c02f1c6fea598d9dfc67796bc99009
[ "MIT" ]
null
null
null
activity 3/activity3.py
long2691/activities
f78041b4e0c02f1c6fea598d9dfc67796bc99009
[ "MIT" ]
null
null
null
#dictionary can contain multiple pair of information dict1 = {"name" : "long", "age": ['27'], "hobbies": ["games","food","drinking"], "wakeuptimes": {"key": [8.00,6,30,7.00]}} print(dict1["name"]) print(dict1["hobbies"]) print(dict1["wakeuptimes"]["key"][3]) #drews solution drew = { "name":"drew", "age": "8...
27.64
122
0.581766
eba4b1061de5ed006ce8584f038497e5c7d52624
1,057
py
Python
ex4_sd3.py
jlaw8504/lp3thw
e3e5c559a0d851547acda6387eb5ff9034549e48
[ "BSD-3-Clause" ]
null
null
null
ex4_sd3.py
jlaw8504/lp3thw
e3e5c559a0d851547acda6387eb5ff9034549e48
[ "BSD-3-Clause" ]
null
null
null
ex4_sd3.py
jlaw8504/lp3thw
e3e5c559a0d851547acda6387eb5ff9034549e48
[ "BSD-3-Clause" ]
null
null
null
# create variable cars to contain integer 100 cars = 100 # create variable space_in_a_car to contain float 4.0 space_in_a_car = 4.0 # create variable drivers to contain int 30 drivers = 30 # create variable passengers to contain int 90 passengers = 90 # subtract drivers from cars to set int variable cars_not_driven car...
37.75
64
0.783349
f73b51db43b0ca9bcac7c235f6d853779c88c6b8
885
py
Python
resources/lib/common.py
torstehu/Transmission-XBMC
10f319deb0d9e5839e62f86c8c6ed5a9175d26fc
[ "MIT" ]
22
2015-02-04T19:58:02.000Z
2021-07-29T05:25:08.000Z
resources/lib/common.py
torstehu/Transmission-XBMC
10f319deb0d9e5839e62f86c8c6ed5a9175d26fc
[ "MIT" ]
14
2015-01-07T00:08:28.000Z
2019-10-24T00:27:48.000Z
resources/lib/common.py
torstehu/Transmission-XBMC
10f319deb0d9e5839e62f86c8c6ed5a9175d26fc
[ "MIT" ]
15
2015-02-26T15:01:04.000Z
2020-12-02T09:14:44.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2013 Artem Glebov import sys import transmissionrpc __settings__ = sys.modules[ "__main__" ].__settings__ def get_settings(): params = { 'address': __settings__.getSetting('rpc_host'), 'port': __settings__.getSetting('rpc_port'), 'user': __settings_...
28.548387
79
0.670056
bb69a8f53c2f30b70b6b72603b32b2fcf11b6e32
7,992
py
Python
symphony/bdk/gen/agent_api/attachments_api.py
symphony-elias/symphony-bdk-python
0d1cd94a9982e3687ea52c49acdb5f942ecd9bec
[ "Apache-2.0" ]
17
2018-09-06T09:58:18.000Z
2021-07-13T12:54:20.000Z
symphony/bdk/gen/agent_api/attachments_api.py
symphony-elias/symphony-bdk-python
0d1cd94a9982e3687ea52c49acdb5f942ecd9bec
[ "Apache-2.0" ]
59
2018-11-21T15:17:57.000Z
2021-08-03T10:00:43.000Z
symphony/bdk/gen/agent_api/attachments_api.py
symphony-elias/symphony-bdk-python
0d1cd94a9982e3687ea52c49acdb5f942ecd9bec
[ "Apache-2.0" ]
37
2018-09-01T03:07:48.000Z
2021-07-06T10:21:50.000Z
""" Agent API This document refers to Symphony API calls to send and receive messages and content. They need the on-premise Agent installed to perform decryption/encryption of content. - sessionToken and keyManagerToken can be obtained by calling the authenticationAPI on the symphony back end and the key mana...
40.984615
1,241
0.52515
2172fc3b89cc2f9d9e21223b5637b6c8d17503b8
3,833
py
Python
vnpy/trader/constant.py
MelLu/vnpy
ed3320d7c580fe3961b7b40bf71181b503615218
[ "MIT" ]
1
2021-11-24T09:19:57.000Z
2021-11-24T09:19:57.000Z
vnpy/trader/constant.py
MelLu/vnpy
ed3320d7c580fe3961b7b40bf71181b503615218
[ "MIT" ]
null
null
null
vnpy/trader/constant.py
MelLu/vnpy
ed3320d7c580fe3961b7b40bf71181b503615218
[ "MIT" ]
null
null
null
""" General constant string used in VN Trader. """ from enum import Enum class Color(Enum): """ Kline color """ RED = 'Red' BLUE = 'Blue' EQUAL = 'Equal' class Direction(Enum): """ Direction of order/trade/position. """ LONG = "多" SHORT = "空" NET = "净" class Offset(Enum): ...
21.533708
68
0.565093
bcf8e14c75df8edf85bd60b995c4d246fb05c1ff
2,968
py
Python
job_spider.py
lemae/job-spider
b09c0e1de3f4ac696c8754c8008ec5fb0a9df554
[ "MIT" ]
null
null
null
job_spider.py
lemae/job-spider
b09c0e1de3f4ac696c8754c8008ec5fb0a9df554
[ "MIT" ]
null
null
null
job_spider.py
lemae/job-spider
b09c0e1de3f4ac696c8754c8008ec5fb0a9df554
[ "MIT" ]
null
null
null
import jobui class JobSpider: def __init__(self): print("\n欢迎使用JobSpider,所有职位信息来自职友集!") def __del__(self): pass def run(self): # 实现主要逻辑 while True: choice = self.get_choice() if choice == 'query': # 查询职位信息 se...
32.977778
116
0.446092
89530a24581ecf0424bda167c582de8587ed90f1
2,089
py
Python
GUI/dist/Fun/fun1.py
1259975740/Word2Paper
2886d9a6ef7a3eb8b5ba99e4a8d69983d716b2e9
[ "BSD-3-Clause" ]
8
2020-06-21T00:41:25.000Z
2022-03-13T14:22:23.000Z
GUI/dist/Fun/fun1.py
1259975740/Word2Paper
2886d9a6ef7a3eb8b5ba99e4a8d69983d716b2e9
[ "BSD-3-Clause" ]
1
2022-03-13T14:22:12.000Z
2022-03-13T14:22:12.000Z
GUI/dist/Fun/fun1.py
1259975740/Word2Paper
2886d9a6ef7a3eb8b5ba99e4a8d69983d716b2e9
[ "BSD-3-Clause" ]
1
2022-03-10T08:00:08.000Z
2022-03-10T08:00:08.000Z
# coding: utf-8 from PIL import Image, ImageFont import numpy as np from handright import Template, handwrite from multiprocessing import Pool import time from Fun.fun2 import * from tkinter import messagebox as mBox def trans(input_path,output_path,font_path,line_spacing,font_size, fill,left_margin,top_marg...
36.017241
95
0.638583
af6d6809ba63d0246b06cf3e4afea457a7f03b8a
2,303
py
Python
sos_trades_core/tools/controllers/base_controller.py
os-climate/sostrades-core
bcaa9b5e393ffbd0963e75a9315b27caf8b0abd9
[ "Apache-2.0" ]
8
2022-01-10T14:44:28.000Z
2022-03-31T08:57:14.000Z
sos_trades_core/tools/controllers/base_controller.py
os-climate/sostrades-core
bcaa9b5e393ffbd0963e75a9315b27caf8b0abd9
[ "Apache-2.0" ]
null
null
null
sos_trades_core/tools/controllers/base_controller.py
os-climate/sostrades-core
bcaa9b5e393ffbd0963e75a9315b27caf8b0abd9
[ "Apache-2.0" ]
1
2022-02-21T14:51:45.000Z
2022-02-21T14:51:45.000Z
''' Copyright 2022 Airbus SAS 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 dis...
30.706667
119
0.656535
eb9059f34c361c348e38923ec6d7cab2e4087ad1
4,454
py
Python
maskrcnn_benchmark/engine/inference.py
FluteXu/ms-project
108b1346a32dd5aea2078fc20852029342e2365f
[ "MIT" ]
null
null
null
maskrcnn_benchmark/engine/inference.py
FluteXu/ms-project
108b1346a32dd5aea2078fc20852029342e2365f
[ "MIT" ]
null
null
null
maskrcnn_benchmark/engine/inference.py
FluteXu/ms-project
108b1346a32dd5aea2078fc20852029342e2365f
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import logging import time import os import torch from tqdm import tqdm from maskrcnn_benchmark.data.datasets.evaluation import evaluate from ..utils.comm import is_main_process, get_world_size from ..utils.comm import all_gather from ..utils.com...
33.742424
96
0.638752
a1d2f49b72937bbb87ac8848de57c6f75c322650
1,835
py
Python
ensemble/tools/screen.py
licit-lab/ensemble
7a78ef0d69610d4fcfc5e008f931ade15e35acbf
[ "Linux-OpenIB" ]
null
null
null
ensemble/tools/screen.py
licit-lab/ensemble
7a78ef0d69610d4fcfc5e008f931ade15e35acbf
[ "Linux-OpenIB" ]
null
null
null
ensemble/tools/screen.py
licit-lab/ensemble
7a78ef0d69610d4fcfc5e008f931ade15e35acbf
[ "Linux-OpenIB" ]
null
null
null
""" Module to log on screen ==================================== """ # ============================================================================ # STANDARD IMPORTS # ============================================================================ import click from functools import partial from click.termui import s...
29.126984
78
0.523706
2e802dad3f72c7ae0443739912ceceff20a03507
22,418
py
Python
bloscpack/file_io.py
sachk/bloscpack
c37b02eee0c66f7cfa11a2d0f3e1beb6d43064df
[ "MIT" ]
87
2015-01-30T21:16:25.000Z
2022-03-02T18:52:32.000Z
bloscpack/file_io.py
sachk/bloscpack
c37b02eee0c66f7cfa11a2d0f3e1beb6d43064df
[ "MIT" ]
91
2015-02-22T17:54:17.000Z
2022-01-27T14:23:15.000Z
bloscpack/file_io.py
sachk/bloscpack
c37b02eee0c66f7cfa11a2d0f3e1beb6d43064df
[ "MIT" ]
20
2015-02-21T15:07:39.000Z
2022-03-02T18:52:34.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim :set ft=py: from __future__ import division import itertools import os.path as path import blosc import six from six.moves import xrange from deprecated import deprecated from .args import (calculate_nchunks, _check_metadata_arguments, ...
32.302594
101
0.629583
f9a63c62d4d2f648d1bcf11b278a8685089ee853
3,175
py
Python
tests/api_test.py
stivenramireza/images-downloader
dd6141c8815e692fa0aa61d9c84eda51e393b42f
[ "MIT" ]
null
null
null
tests/api_test.py
stivenramireza/images-downloader
dd6141c8815e692fa0aa61d9c84eda51e393b42f
[ "MIT" ]
null
null
null
tests/api_test.py
stivenramireza/images-downloader
dd6141c8815e692fa0aa61d9c84eda51e393b42f
[ "MIT" ]
null
null
null
from fastapi.testclient import TestClient from src.secrets import BASIC_AUTH_HEADER from src.api import app client = TestClient(app) images = [ { "image_id": 100, "resource": "https://pikwizard.com/photos/71c820cabadce0681a690d1f8c037732-m.jpg" }, { "image_id": 100, "res...
27.136752
89
0.528189
b5cb7c3acf9f5e96512be199d8bd3d2c81485f85
3,591
py
Python
src/main/nspawn/support/header.py
Andrei-Pozolotin/nspawn
9dd3926f1d1a3a0648f6ec14199cbf4069af1c98
[ "Apache-2.0" ]
15
2019-10-10T17:35:48.000Z
2022-01-29T10:41:01.000Z
src/main/nspawn/support/header.py
Andrei-Pozolotin/nspawn
9dd3926f1d1a3a0648f6ec14199cbf4069af1c98
[ "Apache-2.0" ]
null
null
null
src/main/nspawn/support/header.py
Andrei-Pozolotin/nspawn
9dd3926f1d1a3a0648f6ec14199cbf4069af1c98
[ "Apache-2.0" ]
2
2019-10-10T17:36:43.000Z
2020-06-20T15:28:33.000Z
""" HTTP transport headers """ import os import enum from typing import Mapping from datetime import datetime, timezone from nspawn.support.parser import parse_unquote from nspawn.wrapper.sudo import SUDO from builtins import dict from urllib.parse import urlparse @enum.unique class Header(enum.Enum): "http con...
29.925
102
0.703982
3b7bd929fde82bc58a7f96b11eb610f748369cb8
16,078
py
Python
log_mito/model_226.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito/model_226.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito/model_226.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', 'BaxA']) M...
87.857923
710
0.803458
f719907ff48a40bf779cf6020839f0d298c921ad
7,308
py
Python
wavedata/tools/core/voxel_grid_2d.py
amuamushu/wavedata
1745c646ff3a76b38a81c439a0edd900c986c9f7
[ "MIT" ]
null
null
null
wavedata/tools/core/voxel_grid_2d.py
amuamushu/wavedata
1745c646ff3a76b38a81c439a0edd900c986c9f7
[ "MIT" ]
null
null
null
wavedata/tools/core/voxel_grid_2d.py
amuamushu/wavedata
1745c646ff3a76b38a81c439a0edd900c986c9f7
[ "MIT" ]
null
null
null
import numpy as np from wavedata.wavedata.tools.core import geometry_utils class VoxelGrid2D(object): """ Voxel grids represent occupancy info. The voxelize_2d method projects a point cloud onto a plane, while saving height and point density information for each voxel. """ # Class Constants ...
39.080214
87
0.601122
cb3a5ebd7d62487cd81270c7a6567b8511e868b5
1,122
py
Python
tests/test_helpers.py
DevL/PyBy
de2c41c5b6e26d9e196910d31b39e0f79dbea239
[ "MIT" ]
null
null
null
tests/test_helpers.py
DevL/PyBy
de2c41c5b6e26d9e196910d31b39e0f79dbea239
[ "MIT" ]
null
null
null
tests/test_helpers.py
DevL/PyBy
de2c41c5b6e26d9e196910d31b39e0f79dbea239
[ "MIT" ]
null
null
null
from pyby import EnumerableDict, EnumerableList, Enumerator def assert_enumerable_dict(actual, expected): __tracebackhide__ = True assert isinstance(actual, EnumerableDict) assert actual == expected def assert_enumerable_list(actual, expected): __tracebackhide__ = True assert isinstance(actual, ...
20.4
65
0.599822
cdff2a1db155ccfc0fbe359f812455ce12ecc6af
1,330
py
Python
algotrading/data/features/wave_features.py
shadowCow/algoTrading
14f86cabd2f0a7e6321103de68d994e4ab93acf6
[ "MIT" ]
null
null
null
algotrading/data/features/wave_features.py
shadowCow/algoTrading
14f86cabd2f0a7e6321103de68d994e4ab93acf6
[ "MIT" ]
1
2018-06-11T18:49:40.000Z
2018-06-11T18:49:40.000Z
algotrading/data/features/wave_features.py
shadowCow/algoTrading
14f86cabd2f0a7e6321103de68d994e4ab93acf6
[ "MIT" ]
null
null
null
from algotrading.data.features.feature_helpers import AbstractFeature from algotrading.data.price_data_schema import price_data_schema as schema class PivotHigh(AbstractFeature): def __init__(self, left_length, right_length): self.left_length = left_length self.right_length = right_length super().__ini...
31.666667
74
0.722556
fba786f7ce2cf96240695629c1651656cc43e823
3,494
py
Python
triangulate.py
jmplonka/Importer3D
aeac51e7d09204bda76370d453fe3002029179fd
[ "RSA-MD" ]
22
2017-12-05T00:24:58.000Z
2022-03-24T00:01:27.000Z
triangulate.py
jmplonka/Importer3D
aeac51e7d09204bda76370d453fe3002029179fd
[ "RSA-MD" ]
8
2019-05-03T04:38:49.000Z
2022-03-29T11:34:21.000Z
triangulate.py
jmplonka/Importer3D
aeac51e7d09204bda76370d453fe3002029179fd
[ "RSA-MD" ]
8
2019-03-13T06:26:18.000Z
2022-03-24T00:27:45.000Z
from itertools import chain from math import fabs import numpy as np # Ported from https://github.com/bjorkegeek/polytri def loopedPairs(iterable): ''' list(loopedPairs([1,2,3])) => [(1, 2), (2, 3), (3, 1)] ''' iterable = iter(iterable) first = last = next(iterable) for x in iterable: yiel...
28.639344
85
0.585575
af6219294419ccec6c5524ffc66d07c1d07f3988
3,983
py
Python
01_profiling/cpu_profiling/julia1.py
siddheshmhatre/high_performance_python
4c308dddb400fcd4c4ab7c4d59dc56eb5dd58d1d
[ "RSA-MD" ]
698
2015-01-06T14:10:26.000Z
2022-03-29T03:05:09.000Z
01_profiling/cpu_profiling/julia1.py
siddheshmhatre/high_performance_python
4c308dddb400fcd4c4ab7c4d59dc56eb5dd58d1d
[ "RSA-MD" ]
6
2015-01-12T18:03:24.000Z
2021-06-02T13:05:20.000Z
01_profiling/cpu_profiling/julia1.py
siddheshmhatre/high_performance_python
4c308dddb400fcd4c4ab7c4d59dc56eb5dd58d1d
[ "RSA-MD" ]
260
2015-01-16T13:58:57.000Z
2022-03-28T16:49:34.000Z
"""Julia set generator with optional Pillow-based image drawing""" import time from PIL import Image import array # area of complex space to investigate x1, x2, y1, y2 = -1.8, 1.8, -1.8, 1.8 c_real, c_imag = -0.62772, -.42193 def show_greyscale(output_raw, width, height, max_iterations): """Convert list to array...
35.5625
109
0.65177
2a7c306e99581eaf8a43e0d00fc71e2d7cd093d3
9,803
py
Python
proj07/proj07.py
hanumsan20/vsa-project
0d4302e34daf1d97b9348522708b03491c74997e
[ "MIT" ]
null
null
null
proj07/proj07.py
hanumsan20/vsa-project
0d4302e34daf1d97b9348522708b03491c74997e
[ "MIT" ]
null
null
null
proj07/proj07.py
hanumsan20/vsa-project
0d4302e34daf1d97b9348522708b03491c74997e
[ "MIT" ]
null
null
null
# Name: Santosh and Kyle # Date: # proj07: Word Game import random import string VOWELS = 'aeiou' CONSONANTS = 'bcdfghjklmnpqrstvwxyz' HAND_SIZE = 7 SCRABBLE_LETTER_VALUES = { 'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1, 'o': 1, 'p': 3, ...
27.306407
151
0.590738
60270ad51a331c2755c28ae53e4f65239a751852
9,375
py
Python
BigGAN-PyTorch/NN_query_testCode_forBiggan.py
chenqiguo/GAN_replication
18e71914164f0d735354afb0134ce00570080ecd
[ "OLDAP-2.3" ]
2
2021-11-11T00:18:28.000Z
2021-12-28T01:10:25.000Z
BigGAN-PyTorch/NN_query_testCode_forBiggan.py
chenqiguo/GAN_replication
18e71914164f0d735354afb0134ce00570080ecd
[ "OLDAP-2.3" ]
null
null
null
BigGAN-PyTorch/NN_query_testCode_forBiggan.py
chenqiguo/GAN_replication
18e71914164f0d735354afb0134ce00570080ecd
[ "OLDAP-2.3" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Sep 3 00:53:21 2020 @author: guo.1648 """ # This code is for biggan. # my testing code: # Try the NN with the generated images as query, the original dataset as training set, # to see if the NN can find original images that we found similar to the ge...
40.409483
268
0.737707
6fb56acea27a37042c5d2563a92252d54b94b8bc
1,617
py
Python
Python/udacity_data_structures_and_algorithms/linked_list.py
J0shu4B0y/Practice
ea6af3773520f12afcf72f25952a80614d0c13ef
[ "MIT" ]
1
2021-07-18T08:40:05.000Z
2021-07-18T08:40:05.000Z
Python/udacity_data_structures_and_algorithms/linked_list.py
J0shu4B0y/Practice
ea6af3773520f12afcf72f25952a80614d0c13ef
[ "MIT" ]
3
2020-02-21T13:43:44.000Z
2020-02-21T13:54:57.000Z
Python/udacity_data_structures_and_algorithms/linked_list.py
J0shu4B0y/Practice-Python
ea6af3773520f12afcf72f25952a80614d0c13ef
[ "MIT" ]
2
2019-07-19T10:09:08.000Z
2020-09-20T08:07:36.000Z
""" Add a couple methods to our LinkedList class, and use that to implement a Stack. You have 4 functions below to fill in: insert_first, delete_first, push, and pop. Think about this while you're implementing: why is it easier to add an "insert_first" function than just use "append"? """ class Element: def __ini...
21.56
45
0.63389
de0c10d94790b7a693185f261c42696f2d2e94a0
1,533
py
Python
tests/integration_test/conftest.py
cooomma/mayday-ticketing-bot
77377c19d9741e30416951e5d2364bbb66d762ad
[ "MIT" ]
4
2019-08-17T05:21:37.000Z
2019-08-30T03:24:32.000Z
tests/integration_test/conftest.py
cooomma/mayday-ticketing-bot
77377c19d9741e30416951e5d2364bbb66d762ad
[ "MIT" ]
1
2021-04-30T20:45:10.000Z
2021-04-30T20:45:10.000Z
tests/integration_test/conftest.py
cooomma/mayday-ticketing-bot
77377c19d9741e30416951e5d2364bbb66d762ad
[ "MIT" ]
3
2019-03-03T16:40:25.000Z
2019-08-17T08:01:19.000Z
import pytest import time from mayday import engine, metadata from mayday.db.tables.tickets import TicketsModel from mayday.db.tables.users import UsersModel from mayday.db.tables.events import EventsModel TICKET_1 = dict( category=1, date=505, price_id=2, quantity=1, section='C1', row='', ...
22.880597
65
0.68167
5d6630c2ebda6395b33169fa22e13941e6856832
419
py
Python
ls10/demo2.py
cklwblove/python-100-days-source-code
5d66c7708047f0d7bac0ce05d21834bbbfa6ccf1
[ "MIT" ]
null
null
null
ls10/demo2.py
cklwblove/python-100-days-source-code
5d66c7708047f0d7bac0ce05d21834bbbfa6ccf1
[ "MIT" ]
null
null
null
ls10/demo2.py
cklwblove/python-100-days-source-code
5d66c7708047f0d7bac0ce05d21834bbbfa6ccf1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 读取文件 通过 with 关键字指定文件对象的上下文环境并在离开上下文环境时自动释放文件资源 """ def main(): try: with open('./致橡树.txt', 'r', encoding='utf-8') as f: print(f.read()) except FileNotFoundError: print('无法打开指定的文件!') except LookupError: print('指定了未知的编码!') ex...
19.045455
60
0.548926
25ac0357c3463eebefe0e39a61947f6ea9570830
2,561
py
Python
core_scripts/data_io/customize_sampler.py
Nijta/project-NN-Pytorch-scripts
06a50ab072613fb60b8b8e1cea85c4aa8e75549d
[ "BSD-3-Clause" ]
150
2020-06-04T00:02:50.000Z
2022-03-30T03:32:56.000Z
core_scripts/data_io/customize_sampler.py
Nijta/project-NN-Pytorch-scripts
06a50ab072613fb60b8b8e1cea85c4aa8e75549d
[ "BSD-3-Clause" ]
15
2020-06-17T04:08:33.000Z
2022-03-01T03:42:25.000Z
core_scripts/data_io/customize_sampler.py
Nijta/project-NN-Pytorch-scripts
06a50ab072613fb60b8b8e1cea85c4aa8e75549d
[ "BSD-3-Clause" ]
23
2020-06-16T03:28:35.000Z
2022-03-15T03:46:13.000Z
#!/usr/bin/env python """ customized sampler 1. Block shuffler based on sequence length Like BinnedLengthSampler in https://github.com/fatchord/WaveRNN e.g., data length [1, 2, 3, 4, 5, 6] -> [3,1,2, 6,5,4] if block size =3 """ from __future__ import absolute_import import os import sys import numpy as np imp...
31.231707
75
0.631394
47217c8ee26ec38c16a804003bfc80f183610788
6,631
py
Python
.vscode/extensions/ms-python.python-2020.7.96456/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py
jaeyholic/portfolio-v2
f9cfdd250e0fbde9e91e36d46826700a7c08df62
[ "MIT" ]
null
null
null
.vscode/extensions/ms-python.python-2020.7.96456/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py
jaeyholic/portfolio-v2
f9cfdd250e0fbde9e91e36d46826700a7c08df62
[ "MIT" ]
2
2021-03-11T04:07:09.000Z
2022-02-27T09:28:21.000Z
.vscode/extensions/ms-python.python-2020.7.96456/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py
Andersonlima1/allflix0
9403c0a2995bf9930daa795b12aafc527fcf895b
[ "MIT" ]
null
null
null
import sys from _pydevd_bundle.pydevd_constants import (STATE_RUN, PYTHON_SUSPEND, IS_JYTHON, USE_CUSTOM_SYS_CURRENT_FRAMES, USE_CUSTOM_SYS_CURRENT_FRAMES_MAP, SUPPORT_GEVENT, ForkSafeLock) from _pydev_bundle import pydev_log # IFDEF CYTHON # pydev_log.debug("Using Cython speedups") # ELSE from _pydevd_bundl...
38.552326
121
0.613331
d32311d272e8fde636c82c3e292450672820125d
443
py
Python
management/pycom_functions/data_formatting/format_data_raw_handle_data.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
2
2021-04-03T13:19:32.000Z
2022-01-03T00:38:55.000Z
management/pycom_functions/data_formatting/format_data_raw_handle_data.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
management/pycom_functions/data_formatting/format_data_raw_handle_data.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
def format_data(header_ts, data): data_string = "Begin:{}\n".format(convert_to_epoch(header_ts)) data_string += "Variables:{" for variable in VARIABLE_NAMES: data_string += str(variable) + ", " data_string += "time }\n" data_string += "Data:" for value_pair in data: ts_packed = u...
36.916667
66
0.650113
23da0d2a60f007eb603460e95c219a430f70315d
1,054
py
Python
blog/migrations/0001_initial.py
GhasemMatoo/Mysite_Restaurants
f44e0b0374016850cc47f212db0d5693d6de2ee6
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
GhasemMatoo/Mysite_Restaurants
f44e0b0374016850cc47f212db0d5693d6de2ee6
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
GhasemMatoo/Mysite_Restaurants
f44e0b0374016850cc47f212db0d5693d6de2ee6
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-10 14:32 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='post', fields=[ ('id', models.BigAutoField(...
37.642857
117
0.611954
14fc4d845b9646b8347cc29cb5fa7083ae3d72d0
1,865
py
Python
tests/cases/lexicon/tests.py
murphyke/avocado
62824bb2673d4cac81a15fee45fad60a8fe7622b
[ "BSD-2-Clause" ]
null
null
null
tests/cases/lexicon/tests.py
murphyke/avocado
62824bb2673d4cac81a15fee45fad60a8fe7622b
[ "BSD-2-Clause" ]
null
null
null
tests/cases/lexicon/tests.py
murphyke/avocado
62824bb2673d4cac81a15fee45fad60a8fe7622b
[ "BSD-2-Clause" ]
null
null
null
from django.test import TestCase from avocado.models import DataField, DataConcept, DataConceptField, DataView from ...models import Month, Date class LexiconTestCase(TestCase): fixtures = ['month_data.json'] def test_datafield(self): f = DataField(app_name='tests', model_name='month', field_name='id...
43.372093
186
0.602681
358d24347a18da371839ee0bb67cb74a8c77f520
629
py
Python
application/web/errors.py
satan1a/poopak
9862f09edc22c030db520e317020b54a36e070ac
[ "curl" ]
91
2019-01-17T13:35:49.000Z
2022-03-30T21:16:37.000Z
application/web/errors.py
satan1a/poopak
9862f09edc22c030db520e317020b54a36e070ac
[ "curl" ]
13
2019-01-13T14:35:51.000Z
2021-04-26T05:13:42.000Z
application/web/errors.py
satan1a/poopak
9862f09edc22c030db520e317020b54a36e070ac
[ "curl" ]
33
2019-01-17T13:37:22.000Z
2022-03-25T09:35:54.000Z
from flask_wtf.csrf import CSRFError from . import app from flask import render_template from .search.forms import SearchForm @app.errorhandler(CSRFError) def handle_csrf_error(e): search_form = SearchForm() return render_template('error.html', title="Session expired", code="401", description="Form session ex...
34.944444
117
0.705882
2639f9bae84f1d2e2becc6da00c8ff4d62813094
6,565
py
Python
pykusto/_src/item_fetcher.py
Azure/pykusto
87aec7fc750a95217368299339757c1208867c8f
[ "MIT" ]
22
2019-07-30T11:43:12.000Z
2021-12-27T23:51:40.000Z
pykusto/_src/item_fetcher.py
Azure/pykusto
87aec7fc750a95217368299339757c1208867c8f
[ "MIT" ]
96
2019-07-30T11:55:40.000Z
2021-11-08T09:06:53.000Z
pykusto/_src/item_fetcher.py
Azure/pykusto
87aec7fc750a95217368299339757c1208867c8f
[ "MIT" ]
4
2020-12-27T11:29:28.000Z
2022-01-07T05:42:36.000Z
from abc import ABCMeta, abstractmethod from concurrent.futures import Future, ThreadPoolExecutor, TimeoutError from itertools import chain from threading import Lock from typing import Union, Dict, Any, Iterable, Callable, Generator, Optional from .logger import _logger # Using a thread pool even though we only need...
41.289308
178
0.659711
b58c5d92f411dd5c62ff56879b5db57a9dd821d6
1,682
py
Python
foxylib/tools/collections/traversile/tests/test_traversile_tool.py
foxytrixy-com/foxylib
94b8c5b9f8b12423393c68f7d9f910258840ed18
[ "BSD-3-Clause" ]
null
null
null
foxylib/tools/collections/traversile/tests/test_traversile_tool.py
foxytrixy-com/foxylib
94b8c5b9f8b12423393c68f7d9f910258840ed18
[ "BSD-3-Clause" ]
3
2019-12-12T05:17:44.000Z
2022-03-11T23:40:50.000Z
foxylib/tools/collections/traversile/tests/test_traversile_tool.py
foxytrixy-com/foxylib
94b8c5b9f8b12423393c68f7d9f910258840ed18
[ "BSD-3-Clause" ]
2
2019-10-16T17:39:34.000Z
2020-02-10T06:32:08.000Z
import logging from unittest import TestCase from foxylib.tools.collections.traversile.traversile_tool import TraversileTool from foxylib.tools.log.foxylib_logger import FoxylibLogger class TestDictTraverseTool(TestCase): @classmethod def setUpClass(cls): FoxylibLogger.attach_stderr2loggers(logging.D...
33.64
79
0.563615
94128a8a7f2c25bc073ee6f9077152b37db340fa
848
py
Python
tests/060_server/063_search.py
sveetch/video-registry
fa0f0415f7a259500f803c1b4681bb9f2df61aa5
[ "MIT" ]
null
null
null
tests/060_server/063_search.py
sveetch/video-registry
fa0f0415f7a259500f803c1b4681bb9f2df61aa5
[ "MIT" ]
null
null
null
tests/060_server/063_search.py
sveetch/video-registry
fa0f0415f7a259500f803c1b4681bb9f2df61aa5
[ "MIT" ]
null
null
null
import pytest import cherrypy from cherrypy.test import helper from video_registry.serve import RegistryApplication, RegistryServer, Settings @pytest.mark.usefixtures("server_settings_class") class SearchViewTest(helper.CPWebCase): helper.CPWebCase.interactive = False @staticmethod def setup_server(): ...
27.354839
78
0.675708
b8e7c1c1a397d0d0862c18c9ba82c9c9cfd925a5
15,112
py
Python
src/python/grapl-model-plugin-deployer/grapl_model_plugin_deployer.py
ebcarty/grapl
ae3e8c724bb21b9441b7dedeecb21858ca5d37e5
[ "Apache-2.0" ]
null
null
null
src/python/grapl-model-plugin-deployer/grapl_model_plugin_deployer.py
ebcarty/grapl
ae3e8c724bb21b9441b7dedeecb21858ca5d37e5
[ "Apache-2.0" ]
null
null
null
src/python/grapl-model-plugin-deployer/grapl_model_plugin_deployer.py
ebcarty/grapl
ae3e8c724bb21b9441b7dedeecb21858ca5d37e5
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import base64 import concurrent.futures import inspect import json import os import sys import traceback from http import HTTPStatus from pathlib import Path from typing import ( TYPE_CHECKING, Any, Callable, Dict, List, Mapping, Optional, Type, Ty...
31.549061
130
0.656697
21f22b0dd8f984946504f51fc8cde0ceee8efc3f
4,597
py
Python
tools/visualize_detection_results.py
Singingkettle/SAF-FCOS
5d00b83d659552940025923460d02bb2db7d29e8
[ "BSD-2-Clause" ]
10
2021-08-31T01:39:40.000Z
2022-03-27T13:13:14.000Z
tools/visualize_detection_results.py
Singingkettle/SAF-FCOS
5d00b83d659552940025923460d02bb2db7d29e8
[ "BSD-2-Clause" ]
1
2021-10-10T05:36:35.000Z
2021-12-11T05:56:26.000Z
tools/visualize_detection_results.py
Singingkettle/SAF-FCOS
5d00b83d659552940025923460d02bb2db7d29e8
[ "BSD-2-Clause" ]
3
2021-09-05T09:14:35.000Z
2021-10-21T03:15:59.000Z
import json import os import sys from collections import defaultdict from concurrent import futures import cv2 import matplotlib import numpy as np # Use a non-interactive backend matplotlib.use('Agg') import matplotlib.pyplot as plt # Print iterations progress (thanks StackOverflow) def print_progress(iteration, ...
35.914063
155
0.607353
9159fa06f76ee1d6c89f064691c245fb23eefab9
14,577
py
Python
src/infi/instruct/buffer/macros.py
jasonjorge/infi.asi
78a4c34a421102f99b959a659cf7303804627d9b
[ "BSD-3-Clause" ]
2
2015-01-12T21:16:06.000Z
2019-12-12T05:59:56.000Z
src/infi/instruct/buffer/macros.py
jasonjorge/infi.asi
78a4c34a421102f99b959a659cf7303804627d9b
[ "BSD-3-Clause" ]
4
2015-02-24T09:18:00.000Z
2021-06-16T12:55:19.000Z
src/infi/instruct/buffer/macros.py
jasonjorge/infi.asi
78a4c34a421102f99b959a659cf7303804627d9b
[ "BSD-3-Clause" ]
4
2015-01-07T12:37:54.000Z
2018-02-08T15:07:17.000Z
from functools import partial from infi.instruct.utils.kwargs import keep_kwargs_partial from infi.instruct.utils.safe_repr import safe_repr from .reference import (Reference, ContextGetAttrReference, FuncCallReference, LengthFuncCallReference, TotalSizeReference, AfterFieldReference, FieldOrAt...
40.831933
137
0.581052
777447038d579d87bd14473a68f763e22350b126
4,095
py
Python
tests/miners/test_batch_hard_miner.py
kvzhao/pytorch-metric-learning
9c8a94bd1a906317d5834f26d8a94e59d578b825
[ "MIT" ]
2
2020-08-11T03:42:15.000Z
2022-01-11T07:25:30.000Z
tests/miners/test_batch_hard_miner.py
FadouaKhm/pytorch-metric-learning
9eb792bcfc1616b599e6ee457514e3cb3a7235dd
[ "MIT" ]
null
null
null
tests/miners/test_batch_hard_miner.py
FadouaKhm/pytorch-metric-learning
9eb792bcfc1616b599e6ee457514e3cb3a7235dd
[ "MIT" ]
1
2021-03-15T04:24:52.000Z
2021-03-15T04:24:52.000Z
import unittest import torch from pytorch_metric_learning.miners import BatchHardMiner from pytorch_metric_learning.utils import common_functions as c_f import numpy as np class TestBatchHardMiner(unittest.TestCase): @classmethod def setUpClass(self): self.dist_miner = BatchHardMiner(use_sim...
58.5
142
0.685714
38dfe9996c11710628270e6afabc425d009abf2e
6,532
py
Python
no-intro.py
RetroArcher/dats
9e7d715e90f92de21709da18253a9941eb21dc8b
[ "MIT" ]
2
2021-08-24T13:48:32.000Z
2021-10-19T19:56:51.000Z
no-intro.py
RetroArcher/dats
9e7d715e90f92de21709da18253a9941eb21dc8b
[ "MIT" ]
11
2021-08-21T15:58:16.000Z
2022-03-03T23:48:36.000Z
no-intro.py
RetroArcher/dats
9e7d715e90f92de21709da18253a9941eb21dc8b
[ "MIT" ]
3
2021-11-01T20:06:12.000Z
2022-02-20T18:54:04.000Z
from PIL import Image from colormath.color_conversions import convert_color from colormath.color_diff import delta_e_cie1976 from colormath.color_objects import LabColor, sRGBColor from selenium import webdriver from selenium.webdriver.support.ui import Select from selenium.common.exceptions import NoSuchElementExcepti...
37.325714
129
0.604409