hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
c48d9b9b2d55aa3083a0ad90f19c76032b967b27
11,902
py
Python
LipidFinder/LFDataFrame.py
s-andrews/LipidFinder
c91d6caa8008e0a67188914e48f30913deff888d
[ "MIT" ]
null
null
null
LipidFinder/LFDataFrame.py
s-andrews/LipidFinder
c91d6caa8008e0a67188914e48f30913deff888d
[ "MIT" ]
null
null
null
LipidFinder/LFDataFrame.py
s-andrews/LipidFinder
c91d6caa8008e0a67188914e48f30913deff888d
[ "MIT" ]
null
null
null
# Copyright (c) 2019 J. Alvarez-Jarreta and C.J. Brasher # # This file is part of the LipidFinder software tool and governed by the # 'MIT License'. Please see the LICENSE file that should have been # included as part of this software. """Represent a DataFrame to be processed with LipidFinder's workflow.""" import glo...
50.008403
80
0.584272
1,407
11,902
4.917555
0.267235
0.005781
0.00925
0.006504
0.156959
0.126174
0.117792
0.088308
0.088308
0.074722
0
0.007907
0.330533
11,902
237
81
50.219409
0.860442
0.508066
0
0.065934
0
0
0.058304
0
0
0
0
0
0
1
0.043956
false
0
0.043956
0
0.120879
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c48f04379334e4d1150bc95e2f72b0aa259025e8
4,836
py
Python
tensorflow/python/ops/fused_embedding_ops.py
lixy9474/DeepRec-1
dbfdf98af68505201a4f647348cce56ecbb652b2
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/fused_embedding_ops.py
lixy9474/DeepRec-1
dbfdf98af68505201a4f647348cce56ecbb652b2
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/fused_embedding_ops.py
lixy9474/DeepRec-1
dbfdf98af68505201a4f647348cce56ecbb652b2
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.framework import ops from tensorflow.python.ops import variables from tensorflow.python.ops import array_ops from tensorflow.python.framework import sparse_tensor from tensorflow.python.o...
49.346939
99
0.709884
613
4,836
5.223491
0.203915
0.100562
0.068707
0.057464
0.466583
0.393192
0.326671
0.281074
0.209557
0.209557
0
0.005274
0.215881
4,836
97
100
49.85567
0.839135
0.130066
0
0.050633
0
0
0.084108
0.019776
0
0
0
0
0
1
0.037975
false
0
0.177215
0
0.253165
0.012658
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c48f102d83062572178277d6397d5fa6395d6e36
705
py
Python
docs/source/conf.py
deeplook/ipycanvas
c42a5540c55534f919da0fd462cef4593ac7d755
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
deeplook/ipycanvas
c42a5540c55534f919da0fd462cef4593ac7d755
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
deeplook/ipycanvas
c42a5540c55534f919da0fd462cef4593ac7d755
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import sphinx_rtd_theme extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.napoleon', # 'sphinx.ext.intersphinx', # 'sphinx.ext.autosummary', # 'sphinx.ext.viewcode', # 'jupyter_sphinx.embed_widgets', ] templates_path = ['_templates'] master_doc = 'index' source_suffix ...
21.363636
58
0.721986
84
705
5.77381
0.666667
0.092784
0.086598
0
0
0
0
0
0
0
0
0.001667
0.148936
705
32
59
22.03125
0.806667
0.300709
0
0
0
0
0.257732
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4900758f320c35b4e8aaebac80f973e8645fdc4
483
py
Python
clinnotes/reminders/forms.py
mattnickerson993/clinnotes2
bc44e516a5042e22de8c6618425966bd58919eff
[ "MIT" ]
null
null
null
clinnotes/reminders/forms.py
mattnickerson993/clinnotes2
bc44e516a5042e22de8c6618425966bd58919eff
[ "MIT" ]
null
null
null
clinnotes/reminders/forms.py
mattnickerson993/clinnotes2
bc44e516a5042e22de8c6618425966bd58919eff
[ "MIT" ]
null
null
null
from django import forms from .models import Reminder from clinnotes.users.models import EpisodeOfCare class ReminderForm(forms.ModelForm): class Meta: model = Reminder fields = ['category', 'title', 'details', 'episode_of_care'] def __init__(self, *args, **kwargs): user = kwargs.pop...
34.5
94
0.693582
55
483
5.872727
0.6
0.074303
0.080495
0
0
0
0
0
0
0
0
0
0.184265
483
14
94
34.5
0.819797
0
0
0
0
0
0.11157
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c491762e38ab524f8ee85b6bd6fa42008e8b092d
3,583
py
Python
AlgorithmB.py
tejaDhulipala/SnowflakeGen
effabafb790a1a407c5c27cf249806a4775127e4
[ "MIT" ]
null
null
null
AlgorithmB.py
tejaDhulipala/SnowflakeGen
effabafb790a1a407c5c27cf249806a4775127e4
[ "MIT" ]
null
null
null
AlgorithmB.py
tejaDhulipala/SnowflakeGen
effabafb790a1a407c5c27cf249806a4775127e4
[ "MIT" ]
null
null
null
import pygame as pg from shapely.geometry import Point, Polygon from time import perf_counter # Vars A = [(100, 600), (700, 600), (400, 80)] triangles = [[(100, 600), (700, 600), (400, 80)]] SQRT_3 = 3 ** (1 / 2) WHITE = (255, 255, 255) # Graphics part pg.init() screen = pg.display.set_mode((800, 800)) ...
32.87156
86
0.487301
556
3,583
3.098921
0.188849
0.027858
0.032501
0.037145
0.493326
0.493326
0.473593
0.473593
0.473593
0.473593
0
0.099167
0.33017
3,583
108
87
33.175926
0.61875
0.017583
0
0.454545
0
0
0
0
0
0
0
0
0
1
0.034091
false
0
0.034091
0
0.113636
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c492c9c90d1fe8546ec965192035975153cc63a2
39,839
py
Python
validator/testcases/javascript/actions.py
AutomatedTester/amo-validator
a063002497395ce04085a3940713b4467f12e9fd
[ "BSD-3-Clause" ]
null
null
null
validator/testcases/javascript/actions.py
AutomatedTester/amo-validator
a063002497395ce04085a3940713b4467f12e9fd
[ "BSD-3-Clause" ]
null
null
null
validator/testcases/javascript/actions.py
AutomatedTester/amo-validator
a063002497395ce04085a3940713b4467f12e9fd
[ "BSD-3-Clause" ]
null
null
null
from copy import deepcopy from functools import partial import sys import types # Global import of predefinedentities will cause an import loop import instanceactions from validator.constants import (BUGZILLA_BUG, DESCRIPTION_TYPES, FENNEC_GUID, FIREFOX_GUID, MAX_STR_SIZE, MDN_DOC) fro...
37.407512
79
0.588192
4,406
39,839
5.190649
0.15547
0.021425
0.023874
0.018583
0.183341
0.123218
0.080717
0.072409
0.064714
0.05693
0
0.00338
0.30932
39,839
1,064
80
37.442669
0.827773
0.166345
0
0.192034
0
0
0.159272
0.01974
0
0
0
0.00188
0
1
0.049787
false
0.007112
0.019915
0
0.176387
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c493107b1fd8b943176b6566abf9ca29701a3c9c
4,789
py
Python
cresi/net/augmentations/functional.py
ankshah131/cresi
99328e065910c45a626e761cd308670e4a60f058
[ "Apache-2.0" ]
117
2019-08-29T08:43:55.000Z
2022-03-24T20:56:23.000Z
cresi/net/augmentations/functional.py
ankshah131/cresi
99328e065910c45a626e761cd308670e4a60f058
[ "Apache-2.0" ]
9
2019-11-23T10:55:13.000Z
2021-06-22T12:26:21.000Z
cresi/net/augmentations/functional.py
ankshah131/cresi
99328e065910c45a626e761cd308670e4a60f058
[ "Apache-2.0" ]
33
2019-08-08T16:56:37.000Z
2022-02-24T20:52:44.000Z
import cv2 cv2.setNumThreads(0) cv2.ocl.setUseOpenCL(False) import numpy as np import math from functools import wraps def clip(img, dtype, maxval): return np.clip(img, 0, maxval).astype(dtype) def clipped(func): """ wrapper to clip results of transform to image dtype value range """ ...
28.005848
102
0.595114
696
4,789
4.005747
0.24569
0.025825
0.025825
0.017217
0.197633
0.120517
0.102583
0.102583
0.102583
0.102583
0
0.044595
0.26018
4,789
170
103
28.170588
0.742309
0.061808
0
0.109091
0
0
0.032524
0.020269
0
0
0
0
0
1
0.181818
false
0
0.036364
0.063636
0.409091
0.036364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c493ccaae899498f57b59dd3ded561a78518f5a9
417
py
Python
regtestsWin_customBuildPy.py
greenwoodms/TRANSFORM-Library
dc152d4f0298d3f18385f2ea33645d87d7812915
[ "Apache-2.0" ]
29
2018-04-24T17:06:19.000Z
2021-11-21T05:17:28.000Z
regtestsWin_customBuildPy.py
greenwoodms/TRANSFORM-Library
dc152d4f0298d3f18385f2ea33645d87d7812915
[ "Apache-2.0" ]
13
2018-04-05T08:34:27.000Z
2021-10-04T14:24:41.000Z
regtestsWin_customBuildPy.py
greenwoodms/TRANSFORM-Library
dc152d4f0298d3f18385f2ea33645d87d7812915
[ "Apache-2.0" ]
17
2018-08-06T22:18:01.000Z
2022-01-29T21:38:17.000Z
# -*- coding: utf-8 -*- """ Created on Mon Aug 14 09:49:13 2017 @author: vmg """ import os import buildingspy.development.regressiontest as r rt = r.Tester(check_html=False)#,tool="dymola") LibPath = os.path.join("TRANSFORM") ResPath = LibPath rt.showGUI(True) rt.setLibraryRoot(LibPath, ResPath) rt.setNumberOfThread...
23.166667
82
0.748201
59
417
5.237288
0.79661
0.038835
0
0
0
0
0
0
0
0
0
0.037234
0.098321
417
17
83
24.529412
0.784574
0.402878
0
0
0
0
0.037657
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c49410af0e45267e29dfed5b9b7fc2e415dd48a2
2,039
py
Python
src/deoxys/model/activations.py
huynhngoc/deoxys
b2e9936b723807e129fda36d8d6131ca00db558f
[ "MIT" ]
1
2021-12-28T15:48:45.000Z
2021-12-28T15:48:45.000Z
src/deoxys/model/activations.py
huynhngoc/deoxys
b2e9936b723807e129fda36d8d6131ca00db558f
[ "MIT" ]
2
2020-06-26T11:03:53.000Z
2020-06-26T11:05:09.000Z
src/deoxys/model/activations.py
huynhngoc/deoxys
b2e9936b723807e129fda36d8d6131ca00db558f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = "Ngoc Huynh Bao" __email__ = "ngoc.huynh.bao@nmbu.no" from ..keras.layers import Activation from ..keras.activations import deserialize from ..utils import Singleton class Activations(metaclass=Singleton): """ A singleton that contains all the registered customized acti...
26.141026
77
0.647376
226
2,039
5.725664
0.345133
0.069552
0.053323
0.040185
0.068006
0
0
0
0
0
0
0.000668
0.265817
2,039
77
78
26.480519
0.863727
0.270721
0
0.055556
0
0
0.168338
0.035817
0
0
0
0
0
1
0.194444
false
0
0.083333
0.027778
0.361111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4950cd78452abf9ab6be8b01808431c4aeef93d
2,618
py
Python
raspisump/reading.py
seanm/raspi-sump
65456b5e0d1e93bb2574a46527f410a08f9f51ba
[ "MIT" ]
79
2015-03-11T12:13:35.000Z
2022-03-30T04:35:09.000Z
raspisump/reading.py
seanm/raspi-sump
65456b5e0d1e93bb2574a46527f410a08f9f51ba
[ "MIT" ]
72
2015-02-20T02:26:25.000Z
2022-02-19T01:22:36.000Z
raspisump/reading.py
seanm/raspi-sump
65456b5e0d1e93bb2574a46527f410a08f9f51ba
[ "MIT" ]
36
2015-01-11T12:11:43.000Z
2022-01-07T01:35:30.000Z
""" Module to take a water_level reading.""" # Raspi-sump, a sump pump monitoring system. # Al Audet # http://www.linuxnorth.org/raspi-sump/ # # All configuration changes should be done in raspisump.conf # MIT License -- http://www.linuxnorth.org/raspi-sump/license.html try: import ConfigParser as configparser #...
29.088889
79
0.688312
330
2,618
5.278788
0.330303
0.051665
0.061998
0.02411
0.150402
0.123995
0.053961
0.053961
0.053961
0
0
0.006582
0.187548
2,618
89
80
29.41573
0.812412
0.188694
0
0.210526
0
0
0.198082
0.016307
0
0
0
0
0
1
0.052632
false
0.035088
0.087719
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c49a318a7b8ef2bfca67b0d3b643cbd37094de2d
2,830
py
Python
pipelines/pancreas_pipeline.py
marvinquiet/RefConstruction_supervisedCelltyping
7bdd02a0486c175785ec24461dc6356c4d172091
[ "MIT" ]
null
null
null
pipelines/pancreas_pipeline.py
marvinquiet/RefConstruction_supervisedCelltyping
7bdd02a0486c175785ec24461dc6356c4d172091
[ "MIT" ]
null
null
null
pipelines/pancreas_pipeline.py
marvinquiet/RefConstruction_supervisedCelltyping
7bdd02a0486c175785ec24461dc6356c4d172091
[ "MIT" ]
null
null
null
''' Configuration generation for running Pancreas datasets ''' import os, argparse from pipelines import method_utils, dataloading_utils from preprocess.process_train_test_data import * if __name__ == "__main__": data_dir = "~/gpu/data" ## parse arguments import argparse parser = argparse.ArgumentPa...
41.617647
109
0.677032
360
2,830
5.030556
0.325
0.039757
0.075097
0.052457
0.187742
0.11651
0
0
0
0
0
0.002217
0.20318
2,830
67
110
42.238806
0.800887
0.049823
0
0
0
0
0.242708
0.022438
0
0
0
0
0
1
0
false
0
0.08
0
0.08
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c49b19da4180160b333ba71b17f93e31d23578f0
436
py
Python
MachineLearning/StandardScaler/standardization.py
yexianyi/AI_Practice
80499ab3a06ac055641aa069fe1e37864c9e41c4
[ "Apache-2.0" ]
null
null
null
MachineLearning/StandardScaler/standardization.py
yexianyi/AI_Practice
80499ab3a06ac055641aa069fe1e37864c9e41c4
[ "Apache-2.0" ]
null
null
null
MachineLearning/StandardScaler/standardization.py
yexianyi/AI_Practice
80499ab3a06ac055641aa069fe1e37864c9e41c4
[ "Apache-2.0" ]
null
null
null
import pandas as pd from sklearn.preprocessing import StandardScaler def stand_demo(): data = pd.read_csv("dating.txt") print(data) transfer = StandardScaler() data = transfer.fit_transform(data[['milage', 'Liters', 'Consumtime']]) print("Standardization result: \n", data) print("Mean of each ...
25.647059
75
0.692661
55
436
5.381818
0.618182
0.060811
0.081081
0.087838
0.141892
0
0
0
0
0
0
0
0.176606
436
16
76
27.25
0.824513
0
0
0
0
0
0.247706
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.333333
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c49d07ec16361493f21d1cdf3590979db22f9935
383
py
Python
hackerrank-python/xml-1-find-the-score.py
fmelihh/competitive-programming-solutions
c15c2f7d90153f35f9bd9ffcea20ac921564eacf
[ "MIT" ]
2
2021-09-06T22:13:12.000Z
2021-11-22T08:50:04.000Z
hackerrank-python/xml-1-find-the-score.py
fmelihh/competitive-programming-solutions
c15c2f7d90153f35f9bd9ffcea20ac921564eacf
[ "MIT" ]
null
null
null
hackerrank-python/xml-1-find-the-score.py
fmelihh/competitive-programming-solutions
c15c2f7d90153f35f9bd9ffcea20ac921564eacf
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/xml-1-find-the-score/problem import sys import xml.etree.ElementTree as etree def get_attr_number(node): return etree.tostring(node).count(b'=') if __name__ == '__main__': sys.stdin.readline() xml = sys.stdin.read() tree = etree.ElementTree(etree.fromstring(xm...
23.9375
68
0.710183
54
383
4.814815
0.666667
0.123077
0.1
0
0
0
0
0
0
0
0
0.003049
0.143603
383
15
69
25.533333
0.789634
0.172324
0
0
0
0
0.028662
0
0
0
0
0
0
1
0.1
false
0
0.2
0.1
0.4
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c49f689d742bf5ec9d22f74b83fe32c9c62c281f
4,458
py
Python
scrapy_autounit/middleware.py
ogiaquino/scrapy-autounit
97f00d2d62c1ad49bbac462018907abe6a20e4cd
[ "BSD-3-Clause" ]
null
null
null
scrapy_autounit/middleware.py
ogiaquino/scrapy-autounit
97f00d2d62c1ad49bbac462018907abe6a20e4cd
[ "BSD-3-Clause" ]
null
null
null
scrapy_autounit/middleware.py
ogiaquino/scrapy-autounit
97f00d2d62c1ad49bbac462018907abe6a20e4cd
[ "BSD-3-Clause" ]
null
null
null
import os import six import copy import pickle import random import logging from scrapy.http import Request from scrapy.exceptions import NotConfigured from scrapy.commands.genspider import sanitize_module_name from scrapy.spiders import CrawlSpider from .utils import ( add_sample, response_to_dict, get_o...
31.617021
77
0.593091
484
4,458
5.157025
0.274793
0.030849
0.036058
0.014423
0.081731
0.041667
0.025641
0.025641
0.025641
0.025641
0
0.005222
0.312696
4,458
140
78
31.842857
0.809399
0
0
0.066667
0
0
0.132571
0.013459
0
0
0
0
0
1
0.041667
false
0
0.091667
0.008333
0.175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4a06bb562106e2918ecce48527f9b40a6d8d42c
2,735
py
Python
python_examples/create_tags/utils.py
kirank0220/api-examples
9d6c51eeb2d4e38d95b0b7d88fd30fe96ef28d20
[ "MIT" ]
1
2021-12-20T16:49:00.000Z
2021-12-20T16:49:00.000Z
python_examples/create_tags/utils.py
kirank0220/api-examples
9d6c51eeb2d4e38d95b0b7d88fd30fe96ef28d20
[ "MIT" ]
2
2020-11-20T04:51:16.000Z
2021-06-16T17:02:35.000Z
python_examples/create_tags/utils.py
kirank0220/api-examples
9d6c51eeb2d4e38d95b0b7d88fd30fe96ef28d20
[ "MIT" ]
1
2020-11-20T04:46:17.000Z
2020-11-20T04:46:17.000Z
######################################################################### # _________ ___. ______________________ ___ # \_ ___ \___.__.\_ |__ ___________ / _____/\______ \ \/ / # / \ \< | | | __ \_/ __ \_ __ \/ \ ___ | _/\ / # \ \___\___ | | \_\...
35.064103
114
0.527971
266
2,735
4.87218
0.308271
0.046296
0.041667
0.041667
0.236883
0.162809
0.162809
0.162809
0.07716
0
0
0.001668
0.34223
2,735
77
115
35.519481
0.718733
0.153565
0
0.113208
0
0
0.11704
0
0
0
0
0
0
1
0.056604
false
0
0.207547
0.018868
0.320755
0.075472
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4a0e5d601dd26ad6e285ee33bc0cea8cb5b622e
1,956
py
Python
aoc_wim/aoc2019/q19.py
wimglenn/advent-of-code-wim
6308c3fa5d29b318680419f877fd5b8ac1359b5d
[ "WTFPL" ]
20
2019-10-15T07:33:13.000Z
2022-01-19T13:40:36.000Z
aoc_wim/aoc2019/q19.py
wimglenn/advent-of-code-wim
6308c3fa5d29b318680419f877fd5b8ac1359b5d
[ "WTFPL" ]
5
2019-02-01T23:31:27.000Z
2021-12-03T06:55:58.000Z
aoc_wim/aoc2019/q19.py
wimglenn/advent-of-code-wim
6308c3fa5d29b318680419f877fd5b8ac1359b5d
[ "WTFPL" ]
8
2019-12-03T15:41:23.000Z
2021-12-06T17:13:57.000Z
""" --- Day 19: Tractor Beam --- https://adventofcode.com/2019/day/19 """ from aocd import data from aoc_wim.aoc2019 import IntComputer from aoc_wim.zgrid import ZGrid from aoc_wim.search import Bisect import functools @functools.lru_cache(maxsize=100**2) def beam(z): comp = IntComputer(data, inputs=[int(z.imag),...
24.759494
67
0.552147
289
1,956
3.629758
0.342561
0.038132
0.038132
0.053384
0.120114
0.090562
0.068637
0.068637
0.068637
0
0
0.04065
0.308282
1,956
78
68
25.076923
0.734664
0.033231
0
0.098361
0
0
0.071694
0
0
0
0
0
0.016393
1
0.065574
false
0
0.081967
0
0.213115
0.131148
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4a2a593c0a2d8ff337685d877ea3ffe9f0a0f35
2,689
py
Python
UPGen/utils.py
HenryLiangzy/COMP9517_Group
83be7304bee47d52781ea71f06838cd148dbd0bd
[ "Apache-2.0" ]
21
2020-04-24T01:14:30.000Z
2021-11-26T09:44:00.000Z
UPGen/utils.py
HenryLiangzy/COMP9517_Group
83be7304bee47d52781ea71f06838cd148dbd0bd
[ "Apache-2.0" ]
null
null
null
UPGen/utils.py
HenryLiangzy/COMP9517_Group
83be7304bee47d52781ea71f06838cd148dbd0bd
[ "Apache-2.0" ]
2
2020-05-18T11:43:17.000Z
2020-06-19T13:13:14.000Z
""" Helper functions and utilities """ from datetime import datetime as dt from mrcnn import visualize import numpy as np import os import cv2 TIMESTAMP_FORMAT = "%d/%m/%Y %H:%M:%S" class Logger(object): """ Log events and information to a file """ def __init__(self, savePath): self.savePa...
25.855769
115
0.579026
378
2,689
3.994709
0.304233
0.055629
0.058278
0.05298
0.408609
0.408609
0.408609
0.394702
0.35894
0.35894
0
0.022774
0.281517
2,689
104
116
25.855769
0.758799
0.104872
0
0.366667
0
0
0.033377
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.333333
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4a3253a85318d51afd9e6db7f79225a1972648a
630
py
Python
src/django_otp/conf.py
jaap3/django-otp
d7980bf516018319158570cc75353c905375a3ab
[ "BSD-2-Clause" ]
318
2019-08-27T15:57:05.000Z
2022-03-30T08:38:29.000Z
src/django_otp/conf.py
jaap3/django-otp
d7980bf516018319158570cc75353c905375a3ab
[ "BSD-2-Clause" ]
77
2019-09-17T11:48:38.000Z
2022-03-13T17:26:56.000Z
src/django_otp/conf.py
jaap3/django-otp
d7980bf516018319158570cc75353c905375a3ab
[ "BSD-2-Clause" ]
76
2019-08-30T20:29:40.000Z
2022-03-30T09:14:36.000Z
import django.conf class Settings: """ This is a simple class to take the place of the global settings object. An instance will contain all of our settings as attributes, with default values if they are not specified by the configuration. """ defaults = { 'OTP_LOGIN_URL': django.conf.s...
27.391304
80
0.668254
82
630
5
0.609756
0.097561
0.131707
0.112195
0.170732
0.170732
0
0
0
0
0
0
0.253968
630
22
81
28.636364
0.87234
0.315873
0
0
0
0
0.103194
0.071253
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4a3547cec59bda0f54c29fe3708b9bf82715b42
544
py
Python
Moderation/purge.py
DevFlock/Multis
8332edddcbb957ad8fc47766d102295da8aef591
[ "MIT" ]
3
2020-12-27T20:32:14.000Z
2021-09-02T08:59:34.000Z
Moderation/purge.py
DevFlock/Multis
8332edddcbb957ad8fc47766d102295da8aef591
[ "MIT" ]
1
2021-05-09T21:44:42.000Z
2022-03-01T22:36:53.000Z
Moderation/purge.py
DevFlock/Multis
8332edddcbb957ad8fc47766d102295da8aef591
[ "MIT" ]
1
2021-05-10T22:55:41.000Z
2021-05-10T22:55:41.000Z
import asyncio import discord from discord.ext import commands from discord.ext.commands.core import has_permissions class cog(commands.Cog): def __init__(self, client): self.client = client @commands.command(aliases=["clear"]) @has_permissions(ban_members=True) async def purge(self, ctx, cou...
24.727273
62
0.693015
72
544
5.125
0.541667
0.059621
0.075881
0
0
0
0
0
0
0
0
0.004566
0.194853
544
21
63
25.904762
0.8379
0
0
0
0
0
0.055147
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4a3dde4993c9a95e8e97065cdef59f7fea5aa64
3,988
py
Python
tests/store/test_fetch_purchases_to_ship.py
yuzi-ziyu/alphasea-agent
a8ff803fd7dedd50c757630aa83b79fb624c0414
[ "CC0-1.0" ]
1
2022-01-27T14:29:39.000Z
2022-01-27T14:29:39.000Z
tests/store/test_fetch_purchases_to_ship.py
yuzi-ziyu/alphasea-agent
a8ff803fd7dedd50c757630aa83b79fb624c0414
[ "CC0-1.0" ]
null
null
null
tests/store/test_fetch_purchases_to_ship.py
yuzi-ziyu/alphasea-agent
a8ff803fd7dedd50c757630aa83b79fb624c0414
[ "CC0-1.0" ]
null
null
null
from unittest import TestCase from ..helpers import ( create_web3, create_contract, get_future_execution_start_at_timestamp, proceed_time, get_prediction_time_shift, get_purchase_time_shift, get_shipping_time_shift, get_publication_time_shift, get_tournament_id, get_chain_id, ...
31.904
84
0.654965
450
3,988
5.344444
0.16
0.157173
0.179626
0.10395
0.558004
0.533472
0.503119
0.46237
0.46237
0.439085
0
0.012303
0.266299
3,988
124
85
32.16129
0.809638
0.008776
0
0.365385
0
0
0.019762
0
0
0
0
0
0.038462
1
0.048077
false
0
0.028846
0
0.086538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4a4559c8dad0a9248c5e83d6827ea4d86bb7ecb
579
py
Python
tests/test_add_option_backtrace.py
ponponon/loguru
d38ced7539b888e9e9db7495f49f4499b3ee77e1
[ "MIT" ]
11,391
2018-12-08T17:44:13.000Z
2022-03-31T17:55:24.000Z
tests/test_add_option_backtrace.py
ponponon/loguru
d38ced7539b888e9e9db7495f49f4499b3ee77e1
[ "MIT" ]
610
2018-12-08T18:03:03.000Z
2022-03-31T22:28:14.000Z
tests/test_add_option_backtrace.py
ponponon/loguru
d38ced7539b888e9e9db7495f49f4499b3ee77e1
[ "MIT" ]
601
2018-12-08T17:46:42.000Z
2022-03-30T04:23:56.000Z
from loguru import logger # See "test_catch_exceptions.py" for extended testing def test_backtrace(writer): logger.add(writer, format="{message}", backtrace=True) try: 1 / 0 except Exception: logger.exception("") result_with = writer.read().strip() logger.remove() writer.clea...
23.16
75
0.651123
67
579
5.522388
0.522388
0.048649
0.081081
0.113514
0.421622
0.421622
0.221622
0.221622
0
0
0
0.00883
0.217617
579
24
76
24.125
0.807947
0.088083
0
0.470588
0
0
0.034221
0
0
0
0
0
0.058824
1
0.058824
false
0
0.058824
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4a933bda29b080bd1aab7e22c3ee0df61cffb17
3,510
py
Python
tests/test_mqtt_async.py
mpi-sws-rse/antevents-python
5b9226813583141986014fc83f6f74342a5f271e
[ "Apache-2.0" ]
7
2016-09-27T00:21:46.000Z
2017-03-18T20:04:29.000Z
tests/test_mqtt_async.py
mpi-sws-rse/antevents-python
5b9226813583141986014fc83f6f74342a5f271e
[ "Apache-2.0" ]
null
null
null
tests/test_mqtt_async.py
mpi-sws-rse/antevents-python
5b9226813583141986014fc83f6f74342a5f271e
[ "Apache-2.0" ]
2
2017-03-16T21:47:43.000Z
2020-10-20T22:58:03.000Z
# Copyright 2017 by MPI-SWS and Data-Ken Research. # Licensed under the Apache 2.0 License. """Test async version of mqtt libraries. Depends on hbmqtt (https://github.com/beerfactory/hbmqtt) """ import unittest import sys import asyncio import string from random import choice, seed from antevents.base import Schedule...
30
88
0.665242
458
3,510
4.917031
0.360262
0.035968
0.031972
0.022647
0.28952
0.28952
0.28952
0.23357
0.23357
0.23357
0
0.020045
0.232479
3,510
116
89
30.258621
0.815887
0.112251
0
0.321839
0
0
0.070622
0.013544
0
0
0
0
0.045977
1
0.091954
false
0.011494
0.16092
0.022989
0.287356
0.022989
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4ac27bb61de371ddbaa59cbf8dcb19f1eb8972f
7,407
py
Python
edit/main.py
team-alpha-kr/Partner-pyWeb
da88f10b4c511616219a701a794fa0a5ef33f01b
[ "Apache-2.0" ]
null
null
null
edit/main.py
team-alpha-kr/Partner-pyWeb
da88f10b4c511616219a701a794fa0a5ef33f01b
[ "Apache-2.0" ]
null
null
null
edit/main.py
team-alpha-kr/Partner-pyWeb
da88f10b4c511616219a701a794fa0a5ef33f01b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- import os from flask import Flask, request, render_template, request, redirect, url_for, jsonify from flask_discord import DiscordOAuth2Session, requires_authorization from discord import Webhook, RequestsWebhookAdapter webhook = Webhook.partial(814742019489660939, "rvSBVHtGPflSASjeGEEKdZxC5Z_w1U...
37.984615
212
0.699743
1,010
7,407
5.041584
0.210891
0.036724
0.041241
0.054988
0.588767
0.552042
0.540652
0.509623
0.493126
0.473881
0
0.037895
0.137843
7,407
195
213
37.984615
0.757908
0.080599
0
0.556213
0
0.029586
0.344955
0.107254
0
0
0
0
0
1
0.08284
false
0
0.023669
0.029586
0.319527
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4adaa3c0b3bb1d07161a72f61bcbc0a5a83b810
1,946
py
Python
args_parser.py
vmartinv/capital_gains_calculator
bb322ca4bc3ab1ab7db702848d3cb5d0b5677fff
[ "MIT" ]
null
null
null
args_parser.py
vmartinv/capital_gains_calculator
bb322ca4bc3ab1ab7db702848d3cb5d0b5677fff
[ "MIT" ]
23
2022-02-07T05:29:52.000Z
2022-03-30T05:29:29.000Z
args_parser.py
vmartinv/capital_gains_calculator
bb322ca4bc3ab1ab7db702848d3cb5d0b5677fff
[ "MIT" ]
null
null
null
import argparse import datetime def get_last_elapsed_tax_year() -> int: now = datetime.datetime.now() if now.date() >= datetime.date(now.year, 4, 6): return now.year - 1 else: return now.year - 2 def create_parser() -> argparse.ArgumentParser: # Schwab transactions # Montly GBP/U...
29.044776
90
0.631552
222
1,946
5.36036
0.396396
0.045378
0.085714
0.052941
0.035294
0
0
0
0
0
0
0.006978
0.263618
1,946
66
91
29.484848
0.823447
0.08222
0
0.298246
0
0
0.275688
0.01516
0
0
0
0
0
1
0.035088
false
0
0.035088
0
0.122807
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4aef217e9c718184f0d3ad8cf65a1b19d71e9bd
12,799
py
Python
livy/cli/submit.py
tzing/python-livy
0f2b0bf7832ae8fc65399506da294f4e8e019626
[ "MIT" ]
1
2022-01-27T03:04:29.000Z
2022-01-27T03:04:29.000Z
livy/cli/submit.py
tzing/python-livy
0f2b0bf7832ae8fc65399506da294f4e8e019626
[ "MIT" ]
null
null
null
livy/cli/submit.py
tzing/python-livy
0f2b0bf7832ae8fc65399506da294f4e8e019626
[ "MIT" ]
null
null
null
"""Submit a batch task to livy server.""" import argparse import datetime import importlib import json import logging import re import typing import livy import livy.cli.config import livy.cli.logging logger = logging.getLogger(__name__) class PreSubmitArguments(argparse.Namespace): """Typed :py:class:`~argpars...
27.823913
88
0.612313
1,586
12,799
4.815889
0.198613
0.037444
0.028934
0.013747
0.200052
0.143231
0.119141
0.08785
0.08785
0.070437
0
0.004383
0.269084
12,799
459
89
27.884532
0.812079
0.05016
0
0.219444
0
0
0.236657
0
0
0
0
0
0
1
0.019444
false
0
0.033333
0.002778
0.163889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4affc4f83188559537e4d8ac9659aa6dc764f0f
1,283
py
Python
setup.py
nickyfoto/premoji
c8da5f713fe90175923e47212905b7dd39825f92
[ "MIT" ]
null
null
null
setup.py
nickyfoto/premoji
c8da5f713fe90175923e47212905b7dd39825f92
[ "MIT" ]
null
null
null
setup.py
nickyfoto/premoji
c8da5f713fe90175923e47212905b7dd39825f92
[ "MIT" ]
null
null
null
"""Minimal setup file for learn project.""" import pathlib from setuptools import setup, find_packages # The directory containing this file HERE = pathlib.Path(__file__).parent # The text of the README file README = (HERE / "README.md").read_text() setup( name = 'premoji', version = '0.1.4', descriptio...
32.897436
150
0.639127
153
1,283
5.248366
0.679739
0.022416
0
0
0
0
0
0
0
0
0
0.012158
0.230709
1,283
38
151
33.763158
0.801418
0.206547
0
0
0
0.033333
0.377976
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4b069d181b9ce2a2a43be231c32efdbc6f68ff6
2,453
py
Python
train.py
amansoni/sequential-decision-problem-algorithms
73276dc954a8507f67f84d260b2923703b8add10
[ "MIT" ]
null
null
null
train.py
amansoni/sequential-decision-problem-algorithms
73276dc954a8507f67f84d260b2923703b8add10
[ "MIT" ]
null
null
null
train.py
amansoni/sequential-decision-problem-algorithms
73276dc954a8507f67f84d260b2923703b8add10
[ "MIT" ]
null
null
null
import argparse import os import sys parser = argparse.ArgumentParser(description="Run commands") parser.add_argument('-w', '--num-workers', default=1, type=int, help="Number of workers") parser.add_argument('-r', '--remotes', default=None, help='The address of pre-existing VNC ...
35.550725
109
0.591928
328
2,453
4.280488
0.365854
0.05698
0.035613
0.060541
0.082621
0.082621
0.048433
0.048433
0
0
0
0.016367
0.227884
2,453
68
110
36.073529
0.724921
0.023645
0
0
0
0.019231
0.240702
0.031759
0
0
0
0
0.019231
1
0.057692
false
0
0.057692
0
0.153846
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4b0a273d439a49bd4401c9381668556a506e643
8,116
py
Python
MoleculeACE/benchmark/evaluation/results.py
molML/MoleculeACE
e831d2371a9b89f4853a03d5c04cc4bf59f64ee0
[ "MIT" ]
9
2022-03-26T17:36:03.000Z
2022-03-29T19:50:26.000Z
MoleculeACE/benchmark/evaluation/results.py
molML/MoleculeACE
e831d2371a9b89f4853a03d5c04cc4bf59f64ee0
[ "MIT" ]
null
null
null
MoleculeACE/benchmark/evaluation/results.py
molML/MoleculeACE
e831d2371a9b89f4853a03d5c04cc4bf59f64ee0
[ "MIT" ]
null
null
null
""" Class that holds the results: used for evaluating model performance on activity cliff compounds Derek van Tilborg, Eindhoven University of Technology, March 2022 """ import os import numpy as np from MoleculeACE.benchmark.utils.const import Algorithms from .metrics import calc_rmse, calc_q2f3 class Results: ...
48.891566
120
0.638369
980
8,116
5.059184
0.134694
0.177894
0.07261
0.07624
0.651876
0.601856
0.548003
0.46551
0.451593
0.428197
0
0.008124
0.28721
8,116
165
121
49.187879
0.84892
0.215007
0
0.247619
0
0
0.131774
0.088065
0
0
0
0
0
1
0.057143
false
0
0.038095
0.009524
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4b163c2e1d8ffe2281a2938faf90b326b80b931
34,527
py
Python
src/hangar/repository.py
jjmachan/hangar-py
c1cfa2f8f997d7d0f114e015aea333829e029451
[ "Apache-2.0" ]
null
null
null
src/hangar/repository.py
jjmachan/hangar-py
c1cfa2f8f997d7d0f114e015aea333829e029451
[ "Apache-2.0" ]
null
null
null
src/hangar/repository.py
jjmachan/hangar-py
c1cfa2f8f997d7d0f114e015aea333829e029451
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import weakref import warnings from typing import Union, Optional, List from .merger import select_merge_algorithm from .constants import DIR_HANGAR from .remotes import Remotes from .context import Environments from .diagnostics import ecosystem, integrity from .records import heads, parsing,...
41.300239
95
0.610363
4,128
34,527
5.007267
0.178779
0.017271
0.016255
0.018142
0.204935
0.154523
0.128012
0.100145
0.0776
0.065119
0
0.003571
0.318649
34,527
835
96
41.349701
0.875069
0.560692
0
0.277344
0
0
0.048671
0.00344
0
0
0
0
0
1
0.097656
false
0
0.050781
0
0.242188
0.027344
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4b26e3d04e87e26583a1a633be309fd89f11d9a
3,047
py
Python
tests/base.py
the-dotify-project/dotify
f4bbed4f847cdfd073886c384a2d881456a1f7d9
[ "MIT" ]
3
2021-05-18T12:04:46.000Z
2021-12-16T14:35:15.000Z
tests/base.py
the-dotify-project/dotify
f4bbed4f847cdfd073886c384a2d881456a1f7d9
[ "MIT" ]
38
2021-05-13T21:24:20.000Z
2022-03-14T19:22:27.000Z
tests/base.py
the-dotify-project/dotify
f4bbed4f847cdfd073886c384a2d881456a1f7d9
[ "MIT" ]
null
null
null
from pathlib import Path from re import sub from shutil import rmtree from unittest import TestCase from dotify import Dotify, models class BaseNameResolverMixin(object): @classmethod def get_download_basename(cls, obj): if isinstance(obj, models.Track): return cls.get_download_basename_t...
33.119565
83
0.643912
366
3,047
5.166667
0.245902
0.084611
0.080381
0.052882
0.279217
0.07615
0.07615
0.07615
0.07615
0.07615
0
0.004331
0.242205
3,047
91
84
33.483516
0.814638
0
0
0.151515
0
0
0.032819
0
0
0
0
0
0.060606
1
0.166667
false
0
0.075758
0.030303
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4b756acdec987e0a8f79a384a24813dcb1b56b5
3,758
py
Python
learning_journal/tests.py
hcodydibble/pyramid-learning-journal
eb7a59526885a420b6818fcb888497c21674cf76
[ "MIT" ]
null
null
null
learning_journal/tests.py
hcodydibble/pyramid-learning-journal
eb7a59526885a420b6818fcb888497c21674cf76
[ "MIT" ]
3
2019-12-26T16:39:40.000Z
2021-06-01T21:57:09.000Z
learning_journal/tests.py
hcodydibble/pyramid-learning-journal
eb7a59526885a420b6818fcb888497c21674cf76
[ "MIT" ]
null
null
null
"""Functions that test server functions.""" import pytest from pyramid.httpexceptions import HTTPBadRequest, HTTPNotFound from datetime import datetime from learning_journal.models import Entry def test_list_view_returns_list_of_entries_in_dict(dummy_request): """Test for the list_view function.""" from learn...
35.121495
77
0.735498
502
3,758
5.23506
0.183267
0.136986
0.073059
0.082192
0.587139
0.499239
0.442542
0.407534
0.347412
0.252664
0
0.001921
0.168973
3,758
106
78
35.45283
0.839577
0.141299
0
0.416667
0
0
0.062539
0
0
0
0
0
0.166667
1
0.152778
false
0
0.180556
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4b79caceb9a36abb81dbce0bc005d6ef54fc982
977
py
Python
hvad/exceptions.py
Kunpors/dr.pors-
e1b9727c96add31af9c2a1a4b27a058b506748a6
[ "BSD-3-Clause" ]
1
2020-05-24T16:10:16.000Z
2020-05-24T16:10:16.000Z
hvad/exceptions.py
Kunpors/dr.pors-
e1b9727c96add31af9c2a1a4b27a058b506748a6
[ "BSD-3-Clause" ]
null
null
null
hvad/exceptions.py
Kunpors/dr.pors-
e1b9727c96add31af9c2a1a4b27a058b506748a6
[ "BSD-3-Clause" ]
3
2019-10-12T15:14:31.000Z
2021-12-13T13:25:12.000Z
""" Hvad-specific exceptions Part of hvad public API. """ __all__ = ('WrongManager', ) class WrongManager(Exception): """ Raised when attempting to introspect translated fields from shared models without going through hvad. The most likely cause for this being accessing translated fields from ...
33.689655
78
0.633572
111
977
5.378378
0.603604
0.053601
0.067002
0.060302
0
0
0
0
0
0
0
0
0.284545
977
28
79
34.892857
0.854077
0.257932
0
0
0
0
0.39823
0.09587
0
0
0
0
0
1
0.117647
false
0
0
0.058824
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4b8e8abe6cf564f4eafc19481868c1a741b23e4
4,858
py
Python
examples/ERP/classify_P300_bi.py
gcattan/pyRiemann-qiskit
a53f2f891f4d8726b97ed8f0baaf89f86b5ea731
[ "BSD-3-Clause" ]
7
2022-01-10T19:19:59.000Z
2022-02-21T20:13:24.000Z
examples/ERP/classify_P300_bi.py
gcattan/pyRiemann-qiskit
a53f2f891f4d8726b97ed8f0baaf89f86b5ea731
[ "BSD-3-Clause" ]
28
2021-09-27T11:53:29.000Z
2022-03-29T08:39:55.000Z
examples/ERP/classify_P300_bi.py
gcattan/pyRiemann-qiskit
a53f2f891f4d8726b97ed8f0baaf89f86b5ea731
[ "BSD-3-Clause" ]
2
2021-09-25T17:04:23.000Z
2022-02-07T16:34:20.000Z
""" ==================================================================== Classification of P300 datasets from MOABB ==================================================================== It demonstrates the QuantumClassifierWithDefaultRiemannianPipeline(). This pipeline uses Riemannian Geometry, Tangent Space and a quan...
32.604027
79
0.675793
574
4,858
5.660279
0.425087
0.01385
0.017544
0.012311
0.04309
0.018467
0.018467
0.018467
0
0
0
0.011916
0.153561
4,858
148
80
32.824324
0.77821
0.463359
0
0.083333
0
0
0.095386
0
0
0
0
0
0
1
0
false
0
0.180556
0
0.180556
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4bbfc60d6e8dc47bfaa0bd4199a1ffa222feb43
281
py
Python
copy-the-content-of-one-array-into-another-in-the-reverse-order.py
kRituraj/python-programming
8671e976ac31f4dfa81960c5f601187ef60e23f5
[ "MIT" ]
null
null
null
copy-the-content-of-one-array-into-another-in-the-reverse-order.py
kRituraj/python-programming
8671e976ac31f4dfa81960c5f601187ef60e23f5
[ "MIT" ]
null
null
null
copy-the-content-of-one-array-into-another-in-the-reverse-order.py
kRituraj/python-programming
8671e976ac31f4dfa81960c5f601187ef60e23f5
[ "MIT" ]
1
2021-05-16T14:38:47.000Z
2021-05-16T14:38:47.000Z
from array import * MyArray = [None] * 20 MyArray1 = [None] * 20 i = 0 while(i < 20): MyArray[i] = i + 1 i = i + 1 j = 0 i = 19 while(j < 20): MyArray1[j] = MyArray[i] j = j + 1 i = i - 1 i = 0 while(i < 20): print(MyArray1[i],end = " ") i = i + 1
12.217391
32
0.466192
50
281
2.62
0.3
0.061069
0.091603
0.122137
0.152672
0
0
0
0
0
0
0.127072
0.355872
281
23
33
12.217391
0.596685
0
0
0.352941
0
0
0.003546
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4bc61d832484a34ae928af094d25db9bd925929
6,262
py
Python
Findclone/aiofindclone.py
vypivshiy/Findclone_api
97ec5f33929b5cd3bdf670d829596749c3797dbc
[ "MIT" ]
5
2020-11-16T11:41:05.000Z
2021-09-09T22:54:37.000Z
Findclone/aiofindclone.py
vypivshiy/Findclone_api
97ec5f33929b5cd3bdf670d829596749c3797dbc
[ "MIT" ]
2
2021-05-02T21:34:47.000Z
2021-08-21T23:30:44.000Z
Findclone/aiofindclone.py
vypivshiy/Findclone_api
97ec5f33929b5cd3bdf670d829596749c3797dbc
[ "MIT" ]
2
2021-04-27T01:14:15.000Z
2021-09-30T06:44:40.000Z
from aiohttp import ClientSession, FormData from Findclone import __version__ from .models import Account, Profiles, Histories, get_builder from .utils import random_string, paint_boxes from .exceptions import a_error_handler, FindcloneError from io import BufferedReader, BytesIO class FindcloneAsync: """async f...
40.928105
115
0.569946
676
6,262
5.08432
0.214497
0.055281
0.030259
0.046552
0.370672
0.267384
0.229561
0.157405
0.122782
0.043061
0
0.003829
0.332641
6,262
152
116
41.197368
0.818617
0.033855
0
0.225806
0
0
0.101405
0.01405
0
0
0
0
0
1
0.032258
false
0.043011
0.064516
0.010753
0.225806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4bdeaaafb20d5a42c4e3425ac5c7f0f3346483c
3,764
py
Python
src/program/consumers.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/program/consumers.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/program/consumers.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
from channels.generic.websocket import JsonWebsocketConsumer from camps.models import Camp from .models import ( Event, EventInstance, Favorite, EventLocation, EventType, EventTrack, Speaker ) class ScheduleConsumer(JsonWebsocketConsumer): groups = ['schedule_users'] def receive(...
32.730435
76
0.4822
332
3,764
5.231928
0.259036
0.055268
0.048359
0.048935
0.212435
0.182499
0.15947
0.116292
0.116292
0.116292
0
0
0.43491
3,764
114
77
33.017544
0.816643
0.007705
0
0.154639
0
0
0.056255
0
0
0
0
0
0
1
0.020619
false
0.020619
0.030928
0
0.082474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4beaf1419ac6190fbeaa0573def91c010634c7c
9,985
py
Python
rrs/tools/rrs_maintainer_history.py
WindRiver-OpenSourceLabs/layerindex-web
a7820077b0a2c7ad36c934e7c1e11f19fb336081
[ "MIT" ]
null
null
null
rrs/tools/rrs_maintainer_history.py
WindRiver-OpenSourceLabs/layerindex-web
a7820077b0a2c7ad36c934e7c1e11f19fb336081
[ "MIT" ]
null
null
null
rrs/tools/rrs_maintainer_history.py
WindRiver-OpenSourceLabs/layerindex-web
a7820077b0a2c7ad36c934e7c1e11f19fb336081
[ "MIT" ]
1
2017-09-27T17:09:29.000Z
2017-09-27T17:09:29.000Z
#!/usr/bin/env python3 # Standalone script which rebuilds the history of maintainership # # Copyright (C) 2015 Intel Corporation # Author: Anibal Limon <anibal.limon@linux.intel.com> # # Licensed under the MIT license, see COPYING.MIT for details import sys import os.path import optparse import logging sys.path.inse...
42.489362
141
0.591688
1,076
9,985
5.381041
0.247212
0.029016
0.010363
0.014508
0.240242
0.199655
0.165458
0.153713
0.153713
0.129879
0
0.002463
0.308763
9,985
234
142
42.67094
0.836424
0.049675
0
0.25731
0
0
0.141806
0.009201
0
0
0
0.004274
0
1
0.023392
false
0.005848
0.087719
0
0.134503
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4bf8ee657abc953898db54f30fd5e418bfece30
16,297
py
Python
snakemake/persistence.py
scholer/snakemake
99de496322f4813fea590ee50607be8042f176d5
[ "MIT" ]
null
null
null
snakemake/persistence.py
scholer/snakemake
99de496322f4813fea590ee50607be8042f176d5
[ "MIT" ]
null
null
null
snakemake/persistence.py
scholer/snakemake
99de496322f4813fea590ee50607be8042f176d5
[ "MIT" ]
null
null
null
__author__ = "Johannes Köster" __copyright__ = "Copyright 2015-2019, Johannes Köster" __email__ = "koester@jimmy.harvard.edu" __license__ = "MIT" import os import shutil import signal import marshal import pickle import json import time from base64 import urlsafe_b64encode, b64encode from functools import lru_cache, p...
34.165618
108
0.57753
2,006
16,297
4.499003
0.157527
0.026593
0.021053
0.02482
0.325762
0.247202
0.191357
0.133961
0.107258
0.098393
0
0.007166
0.323556
16,297
476
109
34.237395
0.811502
0.054059
0
0.168421
0
0
0.052467
0.001625
0
0
0
0
0.010526
1
0.147368
false
0.002632
0.036842
0.052632
0.302632
0.002632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4bfcafbe1935fac111f0c9a05300ded2101080b
1,418
py
Python
Pasture_Growth_Modelling/initialisation_support/dryland_ibasal.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
Pasture_Growth_Modelling/initialisation_support/dryland_ibasal.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
Pasture_Growth_Modelling/initialisation_support/dryland_ibasal.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
""" Author: Matt Hanson Created: 23/11/2020 11:06 AM """ import ksl_env # add basgra nz functions ksl_env.add_basgra_nz_path() from supporting_functions.plotting import plot_multiple_results from check_basgra_python.support_for_tests import establish_org_input, get_lincoln_broadfield, get_woodward_weather, _clean_h...
33.761905
131
0.722849
208
1,418
4.548077
0.4375
0.151163
0.067653
0.031712
0.162791
0.07611
0.07611
0
0
0
0
0.023198
0.148801
1,418
41
132
34.585366
0.760563
0.074753
0
0
0
0
0.081601
0
0
0
0
0
0
1
0.038462
false
0
0.192308
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4c366fd382e30c8721cf1d840c44a8f46e40d4d
822
py
Python
mkt/stats/helpers.py
Joergen/zamboni
20a0e22b75cf986aceeb8c4d8c25abb948d97096
[ "BSD-3-Clause" ]
null
null
null
mkt/stats/helpers.py
Joergen/zamboni
20a0e22b75cf986aceeb8c4d8c25abb948d97096
[ "BSD-3-Clause" ]
null
null
null
mkt/stats/helpers.py
Joergen/zamboni
20a0e22b75cf986aceeb8c4d8c25abb948d97096
[ "BSD-3-Clause" ]
1
2021-03-13T00:33:12.000Z
2021-03-13T00:33:12.000Z
from django.utils.http import urlquote from jingo import register import jinja2 from access import acl @register.function @jinja2.contextfunction def check_contrib_stats_perms(context, addon): request = context['request'] if addon.has_author(request.amo_user) or acl.action_allowed(request, 'RevenueS...
23.485714
75
0.717762
110
822
5.263636
0.536364
0.082902
0.075993
0.127807
0.138169
0
0
0
0
0
0
0.004525
0.193431
822
34
76
24.176471
0.868778
0.178832
0
0.238095
0
0
0.050691
0
0
0
0
0
0
1
0.142857
false
0
0.190476
0.047619
0.47619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4c60b936c323211b4cb0582eec9c25e08a076db
8,765
py
Python
tools/evaluate_2D.py
ZJULiHongxin/two-hand-pose-est
e531faacd9cdddcb716b614b832038d079b9663f
[ "MIT" ]
null
null
null
tools/evaluate_2D.py
ZJULiHongxin/two-hand-pose-est
e531faacd9cdddcb716b614b832038d079b9663f
[ "MIT" ]
null
null
null
tools/evaluate_2D.py
ZJULiHongxin/two-hand-pose-est
e531faacd9cdddcb716b614b832038d079b9663f
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import platform import numpy as np import time import os import torch import torch.backends.cudnn as cudnn import _init_paths from config import cfg from config import update_config from utils...
35.48583
153
0.595893
1,162
8,765
4.300344
0.270224
0.019812
0.023814
0.012808
0.148689
0.104463
0.097258
0.060636
0.046028
0.031619
0
0.029654
0.280548
8,765
247
154
35.48583
0.762766
0.160639
0
0.080745
0
0
0.116988
0.004373
0
0
0
0
0.006211
1
0.012422
false
0
0.136646
0
0.15528
0.068323
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4c6cbab6dda38ae0a7e7c3ca88f87ebfef34635
4,323
py
Python
skyportal/model_util.py
jadalilleboe/skyportal
501b7a09e239f03213499df297620c6a8a214cd9
[ "BSD-3-Clause" ]
1
2022-01-14T10:32:04.000Z
2022-01-14T10:32:04.000Z
skyportal/model_util.py
jadalilleboe/skyportal
501b7a09e239f03213499df297620c6a8a214cd9
[ "BSD-3-Clause" ]
null
null
null
skyportal/model_util.py
jadalilleboe/skyportal
501b7a09e239f03213499df297620c6a8a214cd9
[ "BSD-3-Clause" ]
1
2021-11-28T21:00:02.000Z
2021-11-28T21:00:02.000Z
from social_tornado.models import TornadoStorage from skyportal.models import DBSession, ACL, Role, User, Token, Group from skyportal.enum_types import LISTENER_CLASSES, sqla_enum_types from baselayer.app.env import load_env all_acl_ids = [ 'Become user', 'Comment', 'Annotate', 'Manage users', 'Man...
27.188679
88
0.630118
553
4,323
4.764919
0.227848
0.062619
0.045541
0.028463
0.124099
0.065655
0.065655
0
0
0
0
0.000306
0.242887
4,323
158
89
27.360759
0.804766
0.076105
0
0.31405
0
0
0.146925
0.005544
0
0
0
0
0
1
0.066116
false
0
0.033058
0
0.123967
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4c7ad4c67500251c669c2383f921ba86cff8d33
1,568
py
Python
image-classification/evaluate_classification.py
rush2406/vipriors-challenges-toolkit
ff2d6b944ff4aebb0d3ec9bb9fb8d8459850ccb6
[ "BSD-3-Clause" ]
56
2020-03-12T19:33:56.000Z
2022-03-10T14:44:43.000Z
image-classification/evaluate_classification.py
rush2406/vipriors-challenges-toolkit
ff2d6b944ff4aebb0d3ec9bb9fb8d8459850ccb6
[ "BSD-3-Clause" ]
42
2020-04-12T10:13:24.000Z
2021-10-11T11:27:24.000Z
image-classification/evaluate_classification.py
rush2406/vipriors-challenges-toolkit
ff2d6b944ff4aebb0d3ec9bb9fb8d8459850ccb6
[ "BSD-3-Clause" ]
20
2020-04-01T11:00:37.000Z
2022-03-04T00:25:42.000Z
""" Use this script to evaluate your model. It stores metrics in the file `scores.txt`. Input: predictions (str): filepath. Should be a file that matches the submission format; groundtruths (str): filepath. Should be an annotation file. Usage: evaluate_classification.py <groundtruths> <predictions> ...
27.034483
81
0.64477
223
1,568
4.327354
0.390135
0.046632
0.046632
0.039378
0.033161
0
0
0
0
0
0
0.013389
0.237883
1,568
58
82
27.034483
0.794142
0.209184
0
0
0
0
0.072182
0
0
0
0
0
0
1
0.027778
false
0
0.111111
0
0.138889
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4cf02c8517026bb6fefdd3d522f1e274f5ebb1b
3,777
py
Python
__init__.py
j0rd1smit/obsidian-albert-plugin
9f17949bba638bd10e534fc50e89ca0bb63e0bb0
[ "MIT" ]
1
2021-10-29T20:05:23.000Z
2021-10-29T20:05:23.000Z
__init__.py
j0rd1smit/obsidian-albert-plugin
9f17949bba638bd10e534fc50e89ca0bb63e0bb0
[ "MIT" ]
2
2022-02-11T22:06:06.000Z
2022-02-12T09:14:43.000Z
__init__.py
j0rd1smit/obsidian-albert-plugin
9f17949bba638bd10e534fc50e89ca0bb63e0bb0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """A simple plugin that makes it possible to search your Obsidian vault. This extension makes it possible to search your Obsidian vault. For more information please visit https://github.com/j0rd1smit/obsidian-albert-plugin. Synopsis: ob <query>""" from albert import * import os from time imp...
25.18
150
0.62457
490
3,777
4.471429
0.25102
0.05477
0.038339
0.038339
0.242812
0.195345
0.162483
0.162483
0.12597
0.095847
0
0.005708
0.257877
3,777
149
151
25.348993
0.775954
0.070426
0
0.149533
0
0
0.109589
0.043379
0
0
0
0
0
1
0.065421
false
0
0.056075
0.009346
0.17757
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4d337e94d586f1aff49cce9e64e842f4e6c17d0
1,128
py
Python
JuHPLC/views.py
FZJ-INM5/JuHPLC
efaf9b8f5d7f0c9a8ad687d0f143e161f523db7c
[ "Unlicense" ]
1
2018-09-24T06:59:11.000Z
2018-09-24T06:59:11.000Z
JuHPLC/views.py
FZJ-INM5/JuHPLC
efaf9b8f5d7f0c9a8ad687d0f143e161f523db7c
[ "Unlicense" ]
1
2021-02-05T22:23:57.000Z
2021-02-05T22:23:57.000Z
JuHPLC/views.py
FZJ-INM5/JuHPLC
efaf9b8f5d7f0c9a8ad687d0f143e161f523db7c
[ "Unlicense" ]
null
null
null
from JuHPLC.Views.NewChromatogram import * from JuHPLC.SerialCommunication.MicroControllerManager import MicroControllerManager # Create your views here. def index(request): chromatograms = Chromatogram.objects.all().order_by("-Datetime") for i in chromatograms: i.data = HplcData.objects.filter(Chrom...
37.6
117
0.58422
87
1,128
7.551724
0.413793
0.030441
0.097412
0.118721
0.724505
0.596651
0.596651
0.596651
0.596651
0.596651
0
0.002608
0.320035
1,128
29
118
38.896552
0.853977
0.02039
0
0.666667
0
0
0.068966
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4d49dd9a5d7b29748f177746f4735919de54df6
3,829
py
Python
sequana/datatools.py
vladsaveliev/sequana
f6ee7fa7fb47ec179ceedf24684ba861a244656d
[ "BSD-3-Clause" ]
null
null
null
sequana/datatools.py
vladsaveliev/sequana
f6ee7fa7fb47ec179ceedf24684ba861a244656d
[ "BSD-3-Clause" ]
null
null
null
sequana/datatools.py
vladsaveliev/sequana
f6ee7fa7fb47ec179ceedf24684ba861a244656d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Sequana software # # Copyright (c) 2016 - Sequana Development Team # # File author(s): # Thomas Cokelaer <thomas.cokelaer@pasteur.fr> # Dimitri Desvillechabrol <dimitri.desvillechabrol@pasteur.fr>, # <d.desvillechabrol@gmail.com> # # Distributed un...
35.453704
103
0.604074
449
3,829
5.066815
0.334076
0.024176
0.019341
0.033407
0.232088
0.118681
0.118681
0.118681
0.118681
0.118681
0
0.003627
0.279969
3,829
107
104
35.785047
0.821545
0.388874
0
0.4375
0
0
0.124013
0
0
0
0
0
0
1
0.041667
false
0.041667
0.083333
0
0.25
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4d91f431add3c50639d5dcc111d7ed136e9e222
1,096
py
Python
tests/pytorch_pfn_extras_tests/training_tests/extensions_tests/test_print_report_notebook.py
yasuyuky/pytorch-pfn-extras
febea6ded644d3b7a099ac557f06567a04b3b838
[ "MIT" ]
243
2020-05-12T01:15:46.000Z
2022-03-21T22:07:57.000Z
tests/pytorch_pfn_extras_tests/training_tests/extensions_tests/test_print_report_notebook.py
yasuyuky/pytorch-pfn-extras
febea6ded644d3b7a099ac557f06567a04b3b838
[ "MIT" ]
495
2020-05-12T06:45:12.000Z
2022-03-31T07:14:02.000Z
tests/pytorch_pfn_extras_tests/training_tests/extensions_tests/test_print_report_notebook.py
yasuyuky/pytorch-pfn-extras
febea6ded644d3b7a099ac557f06567a04b3b838
[ "MIT" ]
37
2020-05-12T02:16:07.000Z
2021-08-11T06:00:16.000Z
import io import pytest import pytorch_pfn_extras as ppe from pytorch_pfn_extras.training.extensions import _ipython_module_available from pytorch_pfn_extras.training.extensions.log_report import _pandas_available @pytest.mark.skipif( not _ipython_module_available or not _pandas_available, reason="print rep...
29.621622
79
0.702555
137
1,096
5.262774
0.481752
0.099861
0.072122
0.055479
0.105409
0.105409
0
0
0
0
0
0.002323
0.214416
1,096
36
80
30.444444
0.835075
0.055657
0
0
0
0
0.07655
0
0
0
0
0
0
1
0.038462
false
0.038462
0.230769
0
0.269231
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4d94b82e516bfce1860e1958db385ce1c937172
2,012
py
Python
examples/python/00-list-devices.py
vishal-prgmr/tiscamera
0960b3d0fc87e784e63d12aab6badccde566813d
[ "Apache-2.0" ]
null
null
null
examples/python/00-list-devices.py
vishal-prgmr/tiscamera
0960b3d0fc87e784e63d12aab6badccde566813d
[ "Apache-2.0" ]
null
null
null
examples/python/00-list-devices.py
vishal-prgmr/tiscamera
0960b3d0fc87e784e63d12aab6badccde566813d
[ "Apache-2.0" ]
1
2019-07-15T07:51:04.000Z
2019-07-15T07:51:04.000Z
#!/usr/bin/env python3 # Copyright 2017 The Imaging Source Europe GmbH # # 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 a...
31.4375
80
0.656064
258
2,012
5.011628
0.550388
0.046404
0.024749
0.034029
0.040217
0
0
0
0
0
0
0.018868
0.262425
2,012
63
81
31.936508
0.852426
0.576044
0
0
0
0
0.07037
0
0
0
0
0
0
1
0.055556
false
0
0.166667
0
0.222222
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4d963d3c3b56154e5edbed53e3b10e518fd66e7
2,260
py
Python
regression/sgd.py
sahitpj/MachineLearning
2ce5a337ec432daff64a216df6847ef834bcb8d7
[ "MIT" ]
2
2019-01-23T15:51:29.000Z
2019-02-01T16:50:33.000Z
regression/sgd.py
sahitpj/MachineLearning
2ce5a337ec432daff64a216df6847ef834bcb8d7
[ "MIT" ]
null
null
null
regression/sgd.py
sahitpj/MachineLearning
2ce5a337ec432daff64a216df6847ef834bcb8d7
[ "MIT" ]
null
null
null
from .linear_torch import TorchGradientDescentAutogradRegression import torch, math, random class stochasticGradientDescent(TorchGradientDescentAutogradRegression): def __init__(self, X, Y, alpha, **kwargs): super(stochasticGradientDescent, self).__init__(X, Y, alpha, **kwargs) try: h ...
33.235294
96
0.581858
272
2,260
4.727941
0.305147
0.054432
0.024883
0.040435
0.124417
0.101089
0.043546
0
0
0
0
0.008275
0.304867
2,260
68
97
33.235294
0.810312
0.036283
0
0.163934
0
0
0.022508
0
0
0
0
0
0
1
0.114754
false
0
0.032787
0
0.262295
0.081967
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4dc19d5ba016b2467c209f8659fe6f4ccf38d21
1,719
py
Python
imapper/pose/confidence.py
amonszpart/iMapper
f8a1f7972548fc3759fdb67bcd186aaf7ac3ce49
[ "Apache-2.0" ]
18
2019-11-29T14:51:30.000Z
2022-03-26T17:04:04.000Z
imapper/pose/confidence.py
amonszpart/iMapper
f8a1f7972548fc3759fdb67bcd186aaf7ac3ce49
[ "Apache-2.0" ]
null
null
null
imapper/pose/confidence.py
amonszpart/iMapper
f8a1f7972548fc3759fdb67bcd186aaf7ac3ce49
[ "Apache-2.0" ]
2
2019-08-02T14:59:23.000Z
2019-10-27T14:23:27.000Z
import numpy as np def get_conf_thresholded(conf, thresh_log_conf, dtype_np): """Normalizes a confidence score to (0..1). Args: conf (float): Unnormalized confidence. dtype_np (type): Desired return type. Returns: confidence (np.float32): Norma...
27.725806
75
0.578243
231
1,719
4.060606
0.324675
0.119403
0.08209
0.041578
0.114072
0.089552
0.089552
0.089552
0.089552
0
0
0.04534
0.307155
1,719
61
76
28.180328
0.742233
0.33217
0
0
0
0
0
0
0
0
0
0
0.04
1
0.08
false
0
0.04
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4dc5f0661f1b298f41b5c9d7c600c79ade6c896
3,028
py
Python
notes/lessons/lesson_1/dog_breed.py
jpenna/course-v3
492823b8a5981306bb2f78951b24786ea8d70b83
[ "Apache-2.0" ]
null
null
null
notes/lessons/lesson_1/dog_breed.py
jpenna/course-v3
492823b8a5981306bb2f78951b24786ea8d70b83
[ "Apache-2.0" ]
null
null
null
notes/lessons/lesson_1/dog_breed.py
jpenna/course-v3
492823b8a5981306bb2f78951b24786ea8d70b83
[ "Apache-2.0" ]
null
null
null
from fastai.vision import * from fastai.metrics import error_rate # First model using pet images ########################### ####### Get dataset ####### ########################### # Batch size bs = 64 # help(untar_data) # print(URLs.PETS) # URLs.PETS = https://s3.amazonaws.com/fast-ai-imageclas/oxford-iiit-pet #...
22.264706
87
0.634412
405
3,028
4.609877
0.422222
0.021425
0.029459
0.042849
0.242635
0.162292
0.088913
0.071773
0.071773
0.071773
0
0.021236
0.129128
3,028
135
88
22.42963
0.686765
0.30218
0
0.207547
0
0
0.040621
0
0
0
0
0
0
1
0
false
0
0.037736
0
0.037736
0.037736
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4df8a6e7325fdd395e4ab3a661e80f967f7ad2e
10,343
py
Python
Day 1/Demos/ili934xnew.py
thingslu/IoT-Bootcamp
f349af47e0edf716656232b4dbec57d4838263bb
[ "MIT" ]
null
null
null
Day 1/Demos/ili934xnew.py
thingslu/IoT-Bootcamp
f349af47e0edf716656232b4dbec57d4838263bb
[ "MIT" ]
null
null
null
Day 1/Demos/ili934xnew.py
thingslu/IoT-Bootcamp
f349af47e0edf716656232b4dbec57d4838263bb
[ "MIT" ]
null
null
null
""" Copyright (c) 2017 Jeffrey N. Magee https://github.com/jeffmer/micropython-ili9341 Jan 6, 2018 MIT License https://github.com/jeffmer/micropython-ili9341/blob/master/LICENSE """ # This is an adapted version of the ILI934X driver as below. # It works with multiple fonts and also works with the esp32 H/W SPI implem...
34.708054
100
0.552258
1,436
10,343
3.843315
0.231894
0.021743
0.011415
0.014495
0.223048
0.186628
0.154195
0.139156
0.128646
0.128646
0
0.053362
0.316929
10,343
298
101
34.708054
0.727813
0.137774
0
0.219512
0
0.00813
0.033837
0.013535
0
0
0.013084
0
0
1
0.089431
false
0
0.020325
0.004065
0.150407
0.004065
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4dfc7b426b8d7320aaf8852d42369736bd0a993
7,391
py
Python
code/workflow/run_hpc_het.py
vtphan/HeteroplasmyWorkflow
cb5229b5331ac0c2ccc7b3b75c30cc81a377779e
[ "MIT" ]
1
2019-09-03T06:30:40.000Z
2019-09-03T06:30:40.000Z
code/workflow/run_hpc_het.py
vtphan/HeteroplasmyWorkflow
cb5229b5331ac0c2ccc7b3b75c30cc81a377779e
[ "MIT" ]
null
null
null
code/workflow/run_hpc_het.py
vtphan/HeteroplasmyWorkflow
cb5229b5331ac0c2ccc7b3b75c30cc81a377779e
[ "MIT" ]
null
null
null
import subprocess import os import sys import datetime import random from configparser import ConfigParser from datetime import datetime import s03_heteroplasmy_likelihood, s04_sort_candidates, s05_select_sites, s06_location_conservation import multiprocessing def check_exist(cmd, thing): try: subprocess.c...
33.748858
216
0.576647
855
7,391
4.726316
0.20117
0.025241
0.034645
0.003959
0.247464
0.199456
0.175204
0.152438
0.152438
0.108884
0
0.014549
0.228115
7,391
218
217
33.90367
0.693777
0.077121
0
0.2
0
0.006667
0.19614
0.015027
0
0
0
0
0
1
0.026667
false
0
0.06
0
0.086667
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4e1556612a7d26fd5a293cb1615148692fb9547
3,700
py
Python
airflow/providers/siasg/dw/transfers/relatorio_para_mongo.py
CarlosAdp/airflow-providers-siasg
9230e8b883797f70610a0ec11def4cb04ba4a4c2
[ "MIT" ]
1
2021-12-15T14:57:44.000Z
2021-12-15T14:57:44.000Z
airflow/providers/siasg/dw/transfers/relatorio_para_mongo.py
CarlosAdp/airflow-providers-siasg
9230e8b883797f70610a0ec11def4cb04ba4a4c2
[ "MIT" ]
null
null
null
airflow/providers/siasg/dw/transfers/relatorio_para_mongo.py
CarlosAdp/airflow-providers-siasg
9230e8b883797f70610a0ec11def4cb04ba4a4c2
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Any, List import json import tempfile from airflow.models.baseoperator import BaseOperator from airflow.providers.mongo.hooks.mongo import MongoHook import pandas from airflow.providers.siasg.dw.hooks.dw import DWSIASGHook class DWSIASGRelatorioParaMongoOperator(Base...
32.173913
78
0.638378
431
3,700
5.294664
0.292343
0.055215
0.042945
0.011394
0.075372
0.044698
0
0
0
0
0
0.001126
0.27973
3,700
114
79
32.45614
0.855159
0.196216
0
0.026667
0
0
0.090846
0
0
0
0
0
0
1
0.026667
false
0
0.106667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4e242f124dafd4c1bd85becaad0bedaf0cf455b
5,422
py
Python
utils/extractor.py
nwoodward/twarc
4c7ff253ffdfd46a493ca1fcd75e6446667ae832
[ "MIT" ]
20
2019-12-31T17:30:16.000Z
2022-03-20T20:14:16.000Z
utils/extractor.py
nwoodward/twarc
4c7ff253ffdfd46a493ca1fcd75e6446667ae832
[ "MIT" ]
2
2020-04-17T16:22:55.000Z
2020-06-20T16:05:03.000Z
utils/extractor.py
nwoodward/twarc
4c7ff253ffdfd46a493ca1fcd75e6446667ae832
[ "MIT" ]
6
2019-01-16T17:51:31.000Z
2021-08-21T20:29:13.000Z
#!/usr/bin/env python3 from datetime import datetime import json import os import re import argparse import csv import copy import sys import gzip strptime = datetime.strptime class attriObject: """Class object for attribute parser.""" def __init__(self, string): self.value = re.split(":", string) ...
39.576642
214
0.563445
633
5,422
4.755134
0.311216
0.0299
0.045183
0.010631
0.05515
0.049169
0.029236
0.029236
0.029236
0.029236
0
0.004113
0.32737
5,422
136
215
39.867647
0.821223
0.049613
0
0.102804
0
0.009346
0.185077
0.004481
0
0
0
0
0
1
0.046729
false
0
0.084112
0
0.158879
0.046729
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4e35d0568d412ee0973197494e60b17e7aa1939
2,143
py
Python
scripts/bsvDeps.py
mhrtmnn/BSVTools
a42b84de5f7a6bc501467a24d3b35e85f670e50c
[ "MIT" ]
7
2021-02-02T01:33:26.000Z
2022-02-19T18:20:57.000Z
scripts/bsvDeps.py
mhrtmnn/BSVTools
a42b84de5f7a6bc501467a24d3b35e85f670e50c
[ "MIT" ]
11
2021-01-07T11:32:05.000Z
2022-01-13T11:21:03.000Z
scripts/bsvDeps.py
mhrtmnn/BSVTools
a42b84de5f7a6bc501467a24d3b35e85f670e50c
[ "MIT" ]
10
2020-11-12T21:00:54.000Z
2021-12-07T22:03:46.000Z
#!/usr/bin/python3 import sys import glob import os import re def main(): directory = sys.argv[1] builddir = sys.argv[2] extra_module = "" if(len(sys.argv) > 3): extra_module = sys.argv[3] projectModules = {} for filename in glob.glob(os.path.join(directory, '*.bsv')): m = re.m...
31.057971
134
0.508166
238
2,143
4.521008
0.357143
0.089219
0.097584
0.061338
0.135688
0.111524
0
0
0
0
0
0.005844
0.361176
2,143
69
135
31.057971
0.780131
0.081661
0
0.107143
0
0
0.053999
0
0.017857
0
0
0
0
1
0.017857
false
0
0.107143
0
0.125
0.053571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4e39bd0b50f48ac5a5b147ee2436c04ced95c90
23,756
py
Python
neuralmonkey/decoders/beam_search_decoder.py
kasnerz/neuralmonkey
3552c79a32d24017440e17a0545f33014b66bb12
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/decoders/beam_search_decoder.py
kasnerz/neuralmonkey
3552c79a32d24017440e17a0545f33014b66bb12
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/decoders/beam_search_decoder.py
kasnerz/neuralmonkey
3552c79a32d24017440e17a0545f33014b66bb12
[ "BSD-3-Clause" ]
null
null
null
"""Beam search decoder. This module implements the beam search algorithm for autoregressive decoders. As any autoregressive decoder, this decoder works dynamically, which means it uses the ``tf.while_loop`` function conditioned on both maximum output length and list of finished hypotheses. The beam search decoder us...
40.332767
79
0.641985
2,894
23,756
5.086731
0.164478
0.037294
0.014673
0.012227
0.202839
0.13783
0.107126
0.064262
0.045921
0.040894
0
0.004833
0.285823
23,756
588
80
40.401361
0.862843
0.428902
0
0.089796
0
0
0.030293
0.003554
0
0
0
0.003401
0
1
0.061224
false
0
0.036735
0.020408
0.179592
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4e3f0031795840237e6c42c72c6980d42b2396d
926
py
Python
setup.py
CBDRH/cdeid
bd3d94f98a61d876b5630ab80a655fd9ce46730c
[ "Apache-2.0" ]
null
null
null
setup.py
CBDRH/cdeid
bd3d94f98a61d876b5630ab80a655fd9ce46730c
[ "Apache-2.0" ]
null
null
null
setup.py
CBDRH/cdeid
bd3d94f98a61d876b5630ab80a655fd9ce46730c
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages with open('README.md', "r") as f: readme = f.read() with open('LICENSE') as f: license_content = f.read() setup( name='cdeid', version='0.1.2', author='Leibo Liu', author_email='liuleibo@gmail.com', description='A Customized De-identification fr...
27.235294
61
0.610151
111
926
5
0.648649
0.010811
0
0
0
0
0
0
0
0
0
0.025035
0.223542
926
33
62
28.060606
0.746871
0
0
0.066667
0
0
0.396328
0
0
0
0
0
0
1
0
false
0
0.033333
0
0.033333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4e5659911ab0a62801300dec90e8ce55a3d300b
5,821
py
Python
pylib/bbl_ingest.py
rafelafrance/sightings-database
cc4bea9d2754234c6a09732988aceeb929957e99
[ "MIT" ]
4
2018-10-19T15:04:21.000Z
2021-07-26T12:07:01.000Z
pylib/bbl_ingest.py
rafelafrance/sightings-database
cc4bea9d2754234c6a09732988aceeb929957e99
[ "MIT" ]
1
2018-10-23T21:00:21.000Z
2018-10-24T15:06:58.000Z
pylib/bbl_ingest.py
rafelafrance/sightings-database
cc4bea9d2754234c6a09732988aceeb929957e99
[ "MIT" ]
2
2018-08-08T17:08:57.000Z
2019-04-04T15:13:55.000Z
"""Ingest USGS Bird Banding Laboratory data.""" from pathlib import Path import pandas as pd from . import db, util DATASET_ID = 'bbl' RAW_DIR = Path('data') / 'raw' / DATASET_ID BANDING = RAW_DIR / 'Banding' ENCOUNTERS = RAW_DIR / 'Encounters' RECAPTURES = RAW_DIR / 'Recaptures' SPECIES = RAW_DIR / 'species.html' ...
29.39899
77
0.641986
849
5,821
4.097762
0.215548
0.046278
0.051739
0.022133
0.339753
0.26933
0.195458
0.136533
0.121874
0.101753
0
0.008009
0.206322
5,821
197
78
29.548223
0.745022
0.071637
0
0.141667
0
0
0.218236
0.012145
0
0
0
0
0
1
0.075
false
0
0.025
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4e58b861bb09eed1abcd83a5bccb57c68b95882
5,212
py
Python
pyhdtoolkit/utils/cmdline.py
fsoubelet/PyhDToolk
aef9d5f1fac2d4c4307d50ba5c53f6a5eb635a66
[ "MIT" ]
5
2020-05-28T09:16:01.000Z
2021-12-27T18:59:15.000Z
pyhdtoolkit/utils/cmdline.py
fsoubelet/PyhDToolk
aef9d5f1fac2d4c4307d50ba5c53f6a5eb635a66
[ "MIT" ]
71
2020-02-20T20:32:43.000Z
2022-03-24T17:04:28.000Z
pyhdtoolkit/utils/cmdline.py
fsoubelet/PyhDToolk
aef9d5f1fac2d4c4307d50ba5c53f6a5eb635a66
[ "MIT" ]
2
2021-09-28T16:01:06.000Z
2022-03-16T19:04:23.000Z
""" Module utils.cmdline -------------------- Created on 2019.11.06 :author: Felix Soubelet (felix.soubelet@cern.ch) Utility script to help run commands and access the commandline. """ import errno import os import signal import subprocess from typing import Mapping, Optional, Tuple from loguru import logger from...
41.365079
110
0.620875
664
5,212
4.846386
0.38253
0.007458
0.014916
0.010566
0.125544
0.082039
0.050963
0.034804
0.034804
0.034804
0
0.005479
0.299693
5,212
125
111
41.696
0.876164
0.571182
0
0.22449
0
0
0.208173
0
0
0
0
0
0
1
0.061224
false
0
0.142857
0
0.367347
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4e813434f242369956777c090c26e6a052fa049
457
py
Python
etsy_convos/convos/migrations/0005_convothread_last_message_at.py
jessehon/etsy-convos
34631f49ec745fa11611af6122a7522adc16d241
[ "BSD-3-Clause" ]
2
2018-12-17T15:47:43.000Z
2020-02-29T19:47:30.000Z
etsy_convos/convos/migrations/0005_convothread_last_message_at.py
jessehon/etsy-convos
34631f49ec745fa11611af6122a7522adc16d241
[ "BSD-3-Clause" ]
2
2017-07-12T02:45:33.000Z
2017-11-02T00:37:59.000Z
etsy_convos/convos/migrations/0005_convothread_last_message_at.py
jessehon/etsy-convos
34631f49ec745fa11611af6122a7522adc16d241
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('convos', '0004_auto_20150511_0945'), ] operations = [ migrations.AddField( model_name='convothread', ...
22.85
94
0.630197
46
457
6
0.73913
0.057971
0.108696
0.123188
0
0
0
0
0
0
0
0.049853
0.253829
457
19
95
24.052632
0.759531
0.045952
0
0
0
0
0.16129
0.052995
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4ea2eeeaf4f202bab8eda79b95fc4612a9dbdac
404
py
Python
ApkInstall/Case/TV/DeviceConnect.py
LiuTianen/PackManage
4b067954cc223baa14569a6f1517954b9cdb968f
[ "MIT" ]
null
null
null
ApkInstall/Case/TV/DeviceConnect.py
LiuTianen/PackManage
4b067954cc223baa14569a6f1517954b9cdb968f
[ "MIT" ]
null
null
null
ApkInstall/Case/TV/DeviceConnect.py
LiuTianen/PackManage
4b067954cc223baa14569a6f1517954b9cdb968f
[ "MIT" ]
null
null
null
# coding=utf-8 from Base.DevicesList import devicesList as dl from Base.Common import Common class DevicesConnect: def deviceConnect(self): commands = [] data = dl().get_Tv_IP() for IP in data: cmd = "adb connect %s" %(IP) commands.append(cmd) Common().loop...
22.444444
46
0.626238
47
404
5.148936
0.680851
0.066116
0
0
0
0
0
0
0
0
0
0.003367
0.264851
404
17
47
23.764706
0.811448
0.029703
0
0
0
0
0.05641
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4ef333c1b8a1206f386a828b321c850713abce0
3,692
py
Python
angr/storage/memory_mixins/hex_dumper_mixin.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
6,132
2015-08-06T23:24:47.000Z
2022-03-31T21:49:34.000Z
angr/storage/memory_mixins/hex_dumper_mixin.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
2,272
2015-08-10T08:40:07.000Z
2022-03-31T23:46:44.000Z
angr/storage/memory_mixins/hex_dumper_mixin.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
1,155
2015-08-06T23:37:39.000Z
2022-03-31T05:54:11.000Z
import string from ...errors import SimValueError from . import MemoryMixin class HexDumperMixin(MemoryMixin): def hex_dump(self, start, size, word_size=4, words_per_row=4, endianness="Iend_BE", symbolic_char='?', unprintable_char='.', solve=False, extra_constraints=None, inspe...
46.734177
106
0.577194
450
3,692
4.582222
0.32
0.054316
0.016004
0.020369
0.104753
0.060136
0.034918
0.034918
0.034918
0
0
0.003791
0.356988
3,692
78
107
47.333333
0.864785
0.354009
0
0.061224
0
0
0.012097
0
0
0
0
0
0
1
0.020408
false
0.020408
0.061224
0
0.122449
0.061224
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4ef979dcf699104f97d1724f4ddb27a38c7154c
4,782
py
Python
src/greplin/scales/formats.py
frenzymadness/scales
0aced26eb050ceb98ee9d5d6cdca8db448666986
[ "Apache-2.0" ]
273
2015-01-01T19:04:25.000Z
2022-02-13T18:16:28.000Z
src/greplin/scales/formats.py
frenzymadness/scales
0aced26eb050ceb98ee9d5d6cdca8db448666986
[ "Apache-2.0" ]
14
2015-02-03T09:18:57.000Z
2021-12-18T11:04:15.000Z
src/greplin/scales/formats.py
frenzymadness/scales
0aced26eb050ceb98ee9d5d6cdca8db448666986
[ "Apache-2.0" ]
35
2015-01-20T20:04:30.000Z
2020-12-30T20:43:04.000Z
# Copyright 2011 The scales 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 or agreed to in w...
30.075472
115
0.648055
636
4,782
4.845912
0.383648
0.046398
0.01817
0.010383
0.118105
0.10318
0.10318
0.10318
0.10318
0.059053
0
0.013842
0.199289
4,782
158
116
30.265823
0.791068
0.215809
0
0.125
0
0.017857
0.192214
0.024601
0.008929
0
0
0
0.008929
1
0.053571
false
0
0.053571
0
0.151786
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4f08226a69d6d813d6c2054e9344810e8a63453
5,911
py
Python
src/weight_graph.py
kavdi/data-structures
cc0be35afa279b92178b1cbaf43a033176cac095
[ "MIT" ]
null
null
null
src/weight_graph.py
kavdi/data-structures
cc0be35afa279b92178b1cbaf43a033176cac095
[ "MIT" ]
null
null
null
src/weight_graph.py
kavdi/data-structures
cc0be35afa279b92178b1cbaf43a033176cac095
[ "MIT" ]
1
2017-11-21T23:39:44.000Z
2017-11-21T23:39:44.000Z
"""Implement a weighted graph.""" class Graph(object): """Structure for values in a weighted graph.""" def __init__(self): """Create a graph with no values.""" self.graph = {} def nodes(self): """Get all nodes in the graph to display in list form.""" return list(self.grap...
32.657459
79
0.552022
783
5,911
4.10728
0.15198
0.083955
0.058147
0.030473
0.366294
0.322139
0.297264
0.273632
0.273632
0.273632
0
0.007839
0.352563
5,911
180
80
32.838889
0.832506
0.174251
0
0.226891
0
0
0.060651
0
0
0
0
0
0
1
0.12605
false
0
0
0
0.226891
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4f2f8270cc6cb9ae4cc9517cbe1d9549b6020f2
3,818
py
Python
Kerning/Steal Kerning Groups from Font.py
justanotherfoundry/Glyphs-Scripts
f28aeab0224ae19ace4a86cf363e7990985199b7
[ "Apache-2.0" ]
283
2015-01-07T12:35:35.000Z
2022-03-29T06:10:44.000Z
Kerning/Steal Kerning Groups from Font.py
justanotherfoundry/Glyphs-Scripts
f28aeab0224ae19ace4a86cf363e7990985199b7
[ "Apache-2.0" ]
203
2015-01-26T18:43:08.000Z
2022-03-04T01:47:58.000Z
Kerning/Steal Kerning Groups from Font.py
justanotherfoundry/Glyphs-Scripts
f28aeab0224ae19ace4a86cf363e7990985199b7
[ "Apache-2.0" ]
96
2015-01-19T20:58:03.000Z
2022-03-29T06:10:56.000Z
#MenuTitle: Steal Kerning Groups from Font """Copy kerning groups from one font to another.""" from __future__ import print_function import vanilla class GroupsCopy(object): """GUI for copying kerning groups from one font to another""" def __init__(self): self.w = vanilla.FloatingWindow((400, 70), "Steal kerning ...
36.018868
146
0.674175
464
3,818
5.467672
0.286638
0.039417
0.017737
0.025621
0.328735
0.249113
0.237288
0.178163
0.162397
0.129287
0
0.021838
0.196438
3,818
105
147
36.361905
0.805085
0.069408
0
0.142857
0
0
0.05397
0
0
0
0
0
0
1
0.071429
false
0.014286
0.042857
0
0.157143
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4f326034d179b78b8dc04c9d2ea83b5265251c0
12,584
py
Python
eggs/mercurial-2.2.3-py2.7-linux-x86_64-ucs4.egg/hgext/extdiff.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
eggs/mercurial-2.2.3-py2.7-linux-x86_64-ucs4.egg/hgext/extdiff.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
eggs/mercurial-2.2.3-py2.7-linux-x86_64-ucs4.egg/hgext/extdiff.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
1
2020-07-25T21:10:26.000Z
2020-07-25T21:10:26.000Z
# extdiff.py - external diff program support for mercurial # # Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. '''command to allow external programs to compare revisions The ex...
38.133333
79
0.603703
1,647
12,584
4.56527
0.263509
0.00798
0.008778
0.004256
0.121825
0.101875
0.098683
0.09097
0.082458
0.082458
0
0.016345
0.295057
12,584
329
80
38.24924
0.831248
0.365464
0
0.097938
0
0
0.141493
0.006877
0
0
0
0
0
1
0.036082
false
0.005155
0.020619
0.005155
0.097938
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4f3b9174179bea9c3e2586b2b624604e84c4eda
2,352
py
Python
scripts/idapython/idapy_detect_exitats.py
felkal/fuzzware
905d9df84dd36bcc3805986064fb7ee4426792a7
[ "Apache-2.0" ]
106
2022-01-19T21:33:21.000Z
2022-03-25T12:03:07.000Z
scripts/idapython/idapy_detect_exitats.py
felkal/fuzzware
905d9df84dd36bcc3805986064fb7ee4426792a7
[ "Apache-2.0" ]
1
2022-03-29T11:43:40.000Z
2022-03-29T11:43:40.000Z
scripts/idapython/idapy_detect_exitats.py
felkal/fuzzware
905d9df84dd36bcc3805986064fb7ee4426792a7
[ "Apache-2.0" ]
22
2022-01-20T02:05:17.000Z
2022-03-30T11:48:59.000Z
import idaapi from idaapi import * inifinite_loops = [ b"\x00\xbf\xfd\xe7", # loop: nop; b loop b"\xfe\xe7", # loop: b loop ] whitelist = [ "Reset_Handler", "main" ] def detect_noret_funcs(): exit_locs_name_pairs = [] for func_addr in Functions(): if get_func_flags(func_addr) & idaapi...
35.104478
104
0.581633
297
2,352
4.353535
0.292929
0.074246
0.065739
0.039443
0.249807
0.227378
0.078886
0.078886
0.078886
0.078886
0
0.015691
0.295493
2,352
66
105
35.636364
0.764635
0.080782
0
0.078431
0
0
0.113225
0.010209
0
0
0
0
0
1
0.078431
false
0
0.039216
0
0.156863
0.137255
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4f49778e071131f827e01660acacad3ade6d9e2
3,235
py
Python
jaqs/util/dtutil.py
WestXu/JAQS
3c9389afab518f188b8628af72297d750c07dfb1
[ "Apache-2.0" ]
602
2017-11-21T00:39:40.000Z
2022-03-16T06:13:08.000Z
jaqs/util/dtutil.py
WestXu/JAQS
3c9389afab518f188b8628af72297d750c07dfb1
[ "Apache-2.0" ]
63
2017-12-08T08:21:16.000Z
2020-03-07T13:57:35.000Z
jaqs/util/dtutil.py
WestXu/JAQS
3c9389afab518f188b8628af72297d750c07dfb1
[ "Apache-2.0" ]
365
2017-11-21T01:38:36.000Z
2022-03-30T15:55:30.000Z
# encoding: utf-8 import datetime import numpy as np import pandas as pd def get_next_period_day(current, period, n=1, extra_offset=0): """ Get the n'th day in next period from current day. Parameters ---------- current : int Current date in format "%Y%m%d". period : str Inter...
24.884615
93
0.562597
430
3,235
4.12093
0.297674
0.028217
0.03386
0.049661
0.077878
0.023702
0.023702
0
0
0
0
0.031349
0.319629
3,235
129
94
25.077519
0.773739
0.260896
0
0.169014
0
0
0.036048
0
0
0
0
0
0
1
0.112676
false
0
0.042254
0.028169
0.267606
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4f823b53a35ff0fc520cfeb34cd4f27b3264abb
2,877
py
Python
accenv/lib/python3.4/site-packages/IPython/html/notebook/handlers.py
adamshamsudeen/clubdin-dj
eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a
[ "MIT" ]
null
null
null
accenv/lib/python3.4/site-packages/IPython/html/notebook/handlers.py
adamshamsudeen/clubdin-dj
eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a
[ "MIT" ]
null
null
null
accenv/lib/python3.4/site-packages/IPython/html/notebook/handlers.py
adamshamsudeen/clubdin-dj
eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a
[ "MIT" ]
null
null
null
"""Tornado handlers for the live notebook view. Authors: * Brian Granger """ #----------------------------------------------------------------------------- # Copyright (C) 2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed...
31.271739
88
0.534237
273
2,877
5.40293
0.344322
0.122034
0.047458
0.089492
0.271864
0.20339
0.20339
0.170847
0.069153
0.069153
0
0.004593
0.167536
2,877
91
89
31.615385
0.611273
0.323949
0
0.173913
0
0
0.072283
0.033281
0
0
0
0
0
1
0.086957
false
0
0.086957
0
0.282609
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4fb08b069b3dd12f5ffa2176644b9d7ad76a516
4,376
py
Python
src/comparing_scoring_seasons.py
davgav123/Mining_NBA
e302246c26d373d4b5e0defed07d70a5d09242d9
[ "MIT" ]
null
null
null
src/comparing_scoring_seasons.py
davgav123/Mining_NBA
e302246c26d373d4b5e0defed07d70a5d09242d9
[ "MIT" ]
null
null
null
src/comparing_scoring_seasons.py
davgav123/Mining_NBA
e302246c26d373d4b5e0defed07d70a5d09242d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- from pathlib import Path import pandas as pd from numpy import around if __name__ == "__main__": # Harden's PPG is from 2018-19 season # Bryant's PPG is from 2005-06 season # Jordan's PPG is from 1986-87 season per_game_df = pd.read_csv(Path('../data/com...
46.553191
121
0.64511
655
4,376
3.993893
0.152672
0.082951
0.034404
0.011468
0.544725
0.428517
0.395642
0.301606
0.248853
0.167431
0
0.067825
0.184644
4,376
94
122
46.553191
0.665359
0.10649
0
0.116667
0
0.05
0.314587
0.076528
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0.183333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4fb53e938362d1e973ac1420b0eecef8f5d6f2b
5,939
py
Python
modules/citymap.py
sebastianbernasek/dataincubator
de29e86c917f107650d03d3331109cb992a6881c
[ "FTL", "CC-BY-4.0" ]
null
null
null
modules/citymap.py
sebastianbernasek/dataincubator
de29e86c917f107650d03d3331109cb992a6881c
[ "FTL", "CC-BY-4.0" ]
null
null
null
modules/citymap.py
sebastianbernasek/dataincubator
de29e86c917f107650d03d3331109cb992a6881c
[ "FTL", "CC-BY-4.0" ]
null
null
null
from os.path import join import numpy as np import geopandas as gpd import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec from matplotlib.colors import Normalize from matplotlib.colorbar import ColorbarBase from matplotlib.dates import YearLocator, DateFormatter from matplotlib.animation import FuncA...
30.45641
92
0.59606
757
5,939
4.579921
0.264201
0.048457
0.019037
0.021633
0.164984
0.164984
0.044419
0.021921
0.021921
0.021921
0
0.013482
0.275636
5,939
194
93
30.613402
0.792422
0.065162
0
0.0625
0
0
0.01996
0
0
0
0
0
0
1
0.140625
false
0
0.070313
0.03125
0.265625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4fc6e0b4754b18344ed93b377dbe36255831144
1,637
py
Python
env/Lib/site-packages/Algorithmia/acl.py
Vivek-Kamboj/Sargam
0f3ca5c70ddb722dd40a45373abd0e9b3939064e
[ "MIT" ]
142
2015-09-07T02:40:36.000Z
2022-02-09T03:38:56.000Z
env/Lib/site-packages/Algorithmia/acl.py
Vivek-Kamboj/Sargam
0f3ca5c70ddb722dd40a45373abd0e9b3939064e
[ "MIT" ]
39
2015-11-04T22:26:42.000Z
2021-10-14T19:18:45.000Z
env/Lib/site-packages/Algorithmia/acl.py
Vivek-Kamboj/Sargam
0f3ca5c70ddb722dd40a45373abd0e9b3939064e
[ "MIT" ]
48
2015-09-05T13:06:46.000Z
2022-01-24T08:48:22.000Z
class Acl(object): def __init__(self, read_acl): self.read_acl = read_acl @staticmethod def from_acl_response(acl_response): '''Takes JSON response from API and converts to ACL object''' if 'read' in acl_response: read_acl = AclType.from_acl_response(acl_response['read']...
31.480769
88
0.61515
207
1,637
4.603865
0.251208
0.12277
0.04617
0.056663
0.104932
0.069255
0
0
0
0
0
0.002536
0.277337
1,637
51
89
32.098039
0.803043
0.04887
0
0.119048
0
0
0.094778
0.022566
0
0
0
0
0
1
0.142857
false
0
0
0.02381
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4fd54fcbdcdf92be66e00442b256526af744c5c
1,799
py
Python
nlp/name_extractor.py
Karthik-Venkatesh/ATOM
d369d8436b71b3af0f5810200c0927d0097f4330
[ "Apache-2.0" ]
1
2022-02-23T14:54:12.000Z
2022-02-23T14:54:12.000Z
nlp/name_extractor.py
Karthik-Venkatesh/atom
d369d8436b71b3af0f5810200c0927d0097f4330
[ "Apache-2.0" ]
21
2018-12-27T04:47:17.000Z
2019-01-16T06:00:53.000Z
nlp/name_extractor.py
Karthik-Venkatesh/ATOM
d369d8436b71b3af0f5810200c0927d0097f4330
[ "Apache-2.0" ]
null
null
null
# # name_extractor.py # ATOM # # Created by Karthik V. # Updated copyright on 16/1/19 5:54 PM. # # Copyright © 2019 Karthik Venkatesh. All rights reserved. # # Reference # Question link: https://stackoverflow.com/questions/20290870/improving-the-extraction-of-human-names-with-nltk # Answer link: https://stackover...
27.676923
111
0.581434
202
1,799
5.059406
0.485149
0.058708
0.046967
0.048924
0
0
0
0
0
0
0
0.031837
0.319066
1,799
64
112
28.109375
0.801633
0.178432
0
0.121951
0
0
0.046448
0.01776
0
0
0
0
0
1
0.073171
false
0
0.04878
0
0.195122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c4ffd1431af57438c9e464015a0b8f4bd42bff19
20,283
py
Python
tests/unit/api/test_api.py
Mattlk13/datadogpy
80c8711359e45b2091c230f726da201616d5e4c9
[ "BSD-3-Clause" ]
null
null
null
tests/unit/api/test_api.py
Mattlk13/datadogpy
80c8711359e45b2091c230f726da201616d5e4c9
[ "BSD-3-Clause" ]
null
null
null
tests/unit/api/test_api.py
Mattlk13/datadogpy
80c8711359e45b2091c230f726da201616d5e4c9
[ "BSD-3-Clause" ]
null
null
null
# stdlib from copy import deepcopy from functools import wraps import os import tempfile from time import time # 3p import mock # datadog from datadog import initialize, api, util from datadog.api import ( Distribution, Metric, ServiceCheck ) from datadog.api.exceptions import ApiError, ApiNotInitialized ...
35.521891
117
0.598087
2,267
20,283
5.116453
0.137627
0.024312
0.038796
0.017588
0.623416
0.57824
0.548323
0.531425
0.518321
0.487628
0
0.012835
0.281664
20,283
570
118
35.584211
0.783253
0.116304
0
0.495957
0
0
0.125899
0.020321
0
0
0
0
0.180593
1
0.070081
false
0
0.037736
0
0.118598
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f201ebc36fc057f334b79aad55bb830784413968
1,420
py
Python
keras_train.py
jmeisele/mlflow_demo
4414e9251fda0ab8c59e8bc776d04ef1f9fede10
[ "MIT" ]
null
null
null
keras_train.py
jmeisele/mlflow_demo
4414e9251fda0ab8c59e8bc776d04ef1f9fede10
[ "MIT" ]
null
null
null
keras_train.py
jmeisele/mlflow_demo
4414e9251fda0ab8c59e8bc776d04ef1f9fede10
[ "MIT" ]
null
null
null
""" Author: Jason Eisele Email: jeisele@shipt.com Date: August 1, 2020 """ import argparse import keras import tensorflow as tf import cloudpickle parser = argparse.ArgumentParser( description='Train a Keras feed-forward network for MNIST classification') parser.add_argument('--batch-size', '-b', type=int, default=1...
34.634146
79
0.738028
210
1,420
4.838095
0.452381
0.05315
0.100394
0.050197
0
0
0
0
0
0
0
0.025964
0.10493
1,420
40
80
35.5
0.773407
0.046479
0
0
0
0
0.135215
0.023031
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f203d39ef60e2f5a44270e70b2db9a749876f722
5,788
py
Python
4USCityEmotion/get_flickr_photos.py
HCH2CHO/EmotionMap
bc572b4182637dcdd65e9a13c92f2fa0d9a3d680
[ "MIT" ]
3
2021-07-15T15:58:52.000Z
2021-07-16T13:22:47.000Z
4USCityEmotion/get_flickr_photos.py
HCH2CHO/EmotionMap
bc572b4182637dcdd65e9a13c92f2fa0d9a3d680
[ "MIT" ]
null
null
null
4USCityEmotion/get_flickr_photos.py
HCH2CHO/EmotionMap
bc572b4182637dcdd65e9a13c92f2fa0d9a3d680
[ "MIT" ]
4
2017-08-04T12:41:06.000Z
2019-01-31T14:55:10.000Z
# coding:utf-8 # version:python3.5.1 # author:kyh import flickrapi import datetime import psycopg2 import time # flickr照片类 class flickr_photo(object): def __init__(self, photo_id, photo_city, photo_url): self.id = photo_id self.city = photo_city self.url = photo_url # 将照片插入数据库 de...
35.292683
118
0.604008
716
5,788
4.682961
0.226257
0.082314
0.058455
0.083507
0.427975
0.360871
0.352222
0.316135
0.248136
0.205488
0
0.018058
0.291983
5,788
163
119
35.509202
0.800146
0.049931
0
0.336066
0
0
0.119065
0.0042
0
0
0
0
0
1
0.07377
false
0.008197
0.032787
0
0.180328
0.04918
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f20509812fdd5299a74f5fce1649f221aa576b8e
1,165
py
Python
test/test_main.py
bluesheeptoken/PyGolf
421117d1fa1c197b475112e5655fbf7693d475a2
[ "MIT" ]
7
2020-04-25T19:54:01.000Z
2022-03-10T21:54:51.000Z
test/test_main.py
bluesheeptoken/PyGolf
421117d1fa1c197b475112e5655fbf7693d475a2
[ "MIT" ]
1
2020-04-28T08:13:12.000Z
2020-04-28T08:19:00.000Z
test/test_main.py
bluesheeptoken/PyGolf
421117d1fa1c197b475112e5655fbf7693d475a2
[ "MIT" ]
1
2020-04-25T20:35:57.000Z
2020-04-25T20:35:57.000Z
import argparse import tempfile import unittest from pygolf.__main__ import get_arguments_warning, read_input_code, shorten class TestMain(unittest.TestCase): def test_reduce(self): self.assertEqual(shorten("print( 1 + 2 )"), "print(1+2)") self.assertEqual(shorten("not valid code"), None) de...
33.285714
80
0.661803
146
1,165
4.993151
0.30137
0.17284
0.071331
0.098765
0.325103
0.294925
0.294925
0.115226
0
0
0
0.005562
0.228326
1,165
34
81
34.264706
0.805339
0
0
0.259259
0
0
0.092704
0
0
0
0
0
0.185185
1
0.111111
false
0
0.148148
0
0.296296
0.185185
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f205b580166717e0b19f49119e8357e063a3858d
545
py
Python
Session_01/koch.py
UP-RS-ESP/GEW-DAP05-2018
04ca0327b4a4ea5b6869e3e985672639651771e8
[ "MIT" ]
2
2018-11-16T12:44:33.000Z
2021-12-20T06:34:22.000Z
Session_01/koch.py
UP-RS-ESP/GEW-DAP05-2018
04ca0327b4a4ea5b6869e3e985672639651771e8
[ "MIT" ]
null
null
null
Session_01/koch.py
UP-RS-ESP/GEW-DAP05-2018
04ca0327b4a4ea5b6869e3e985672639651771e8
[ "MIT" ]
null
null
null
import sys import numpy as np from matplotlib import pyplot as pl def koch(x0, y0, rho, phi, order): global xr, yr x1, y1 = x0 + rho * np.cos(phi), y0 + rho * np.sin(phi) if order: x, y = x0, y0 for angle in [0, np.pi/3, 5*np.pi/3, 0]: x, y = koch(x, y, rho / 3.0, phi + angle, ...
20.185185
64
0.519266
105
545
2.685714
0.447619
0.021277
0.035461
0
0
0
0
0
0
0
0
0.07513
0.291743
545
26
65
20.961538
0.65544
0
0
0
0
0
0.014679
0
0
0
0
0
0
1
0.045455
false
0
0.136364
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f206882462f0a5905d5255d1814f64fdc9855a48
2,995
py
Python
core/views.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
core/views.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
core/views.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Core views to provide custom operations """ import uuid from datetime import datetime from django.http import HttpResponseRedirect from threepio import logger from atmosphere import settings from django_cyverse_auth.decorators import atmo_login_required from django_cyverse_auth.models imp...
39.933333
89
0.642738
330
2,995
5.718182
0.327273
0.133545
0.069952
0.08903
0.264971
0.172761
0.172761
0.120827
0
0
0
0.002736
0.26778
2,995
74
90
40.472973
0.857729
0.086811
0
0.155172
0
0
0.163543
0
0
0
0
0
0
1
0.017241
false
0
0.137931
0
0.224138
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f207285596d5e7ef8253ffc7d5fe5e11b93828ce
1,714
py
Python
indico/util/serializer.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
1
2018-11-12T21:29:26.000Z
2018-11-12T21:29:26.000Z
indico/util/serializer.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
9
2020-09-08T09:25:57.000Z
2022-01-13T02:59:05.000Z
indico/util/serializer.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
3
2020-07-20T09:09:44.000Z
2020-10-19T00:29:49.000Z
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from enum import Enum from indico.core.errors import IndicoError from indico.core.logger import Logger ...
35.708333
92
0.524504
198
1,714
4.39899
0.409091
0.064294
0.051665
0.043628
0
0
0
0
0
0
0
0.007576
0.383897
1,714
47
93
36.468085
0.817235
0.148775
0
0
0
0
0.032391
0
0
0
0
0
0
1
0.028571
false
0
0.085714
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f20a036a9143b93d4e11c864b212d417d5d17645
22,382
py
Python
jsonsubschema/old/_jsonschema.py
lukeenterprise/json-subschema
f273d62ed1517f5a83a57abf148232ed927a771a
[ "Apache-2.0" ]
1
2019-08-01T15:28:26.000Z
2019-08-01T15:28:26.000Z
jsonsubschema/old/_jsonschema.py
lukeenterprise/json-subschema
f273d62ed1517f5a83a57abf148232ed927a771a
[ "Apache-2.0" ]
null
null
null
jsonsubschema/old/_jsonschema.py
lukeenterprise/json-subschema
f273d62ed1517f5a83a57abf148232ed927a771a
[ "Apache-2.0" ]
null
null
null
''' Created on June 24, 2019 @author: Andrew Habib ''' import copy import json import sys import math import numbers import intervals as I from abc import ABC, abstractmethod from greenery.lego import parse from intervals import inf as infinity import config import _constants from canoncalization import canoncalize_...
33.556222
148
0.524752
2,276
22,382
4.97188
0.125659
0.019176
0.018381
0.036762
0.495051
0.424001
0.389802
0.360551
0.311241
0.297101
0
0.017541
0.373425
22,382
667
149
33.556222
0.789361
0.166786
0
0.452214
0
0
0.054206
0
0
0
0
0.001499
0
1
0.142191
false
0.032634
0.032634
0.011655
0.412587
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f20ad7ae21fec4c62f9a2ffdfad7aa4815cb96a9
1,909
py
Python
launch/test_motion.launch.py
RoboJackets/robocup-software
ae2920b8b98213e625d0565dd67005e7a8595fac
[ "Apache-2.0" ]
200
2015-01-26T01:45:34.000Z
2022-03-19T13:05:31.000Z
launch/test_motion.launch.py
RoboJackets/robocup-software
ae2920b8b98213e625d0565dd67005e7a8595fac
[ "Apache-2.0" ]
1,254
2015-01-03T01:57:35.000Z
2022-03-16T06:32:21.000Z
launch/test_motion.launch.py
RoboJackets/robocup-software
ae2920b8b98213e625d0565dd67005e7a8595fac
[ "Apache-2.0" ]
206
2015-01-21T02:03:18.000Z
2022-02-01T17:57:46.000Z
import os from pathlib import Path from ament_index_python.packages import get_package_share_directory from launch import LaunchDescription from launch.actions import IncludeLaunchDescription, SetEnvironmentVariable, Shutdown from launch.launch_description_sources import PythonLaunchDescriptionSource from launch_ros.a...
36.711538
85
0.677842
186
1,909
6.612903
0.317204
0.043902
0.052846
0.081301
0.271545
0.149594
0
0
0
0
0
0.000692
0.243059
1,909
51
86
37.431373
0.850519
0
0
0.205128
0
0
0.12572
0.055003
0
0
0
0
0
1
0.025641
false
0
0.179487
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f20b33fbb1accee4936549d7e876ab92878ab6ba
1,856
py
Python
demo.py
nikp29/eDensiometer
e85a861c2faefb1911cf7b9cf10ee180afe85f13
[ "FSFAP" ]
2
2020-03-23T20:08:21.000Z
2021-06-06T21:15:40.000Z
demo.py
nikp29/eDensiometer
e85a861c2faefb1911cf7b9cf10ee180afe85f13
[ "FSFAP" ]
1
2022-02-12T03:46:54.000Z
2022-02-12T03:46:54.000Z
demo.py
nikp29/eDensiometer
e85a861c2faefb1911cf7b9cf10ee180afe85f13
[ "FSFAP" ]
null
null
null
# A Rapid Proof of Concept for the eDensiometer # Copyright 2018, Nikhil Patel. All Rights Reserved. Created with contributions from Billy Pierce. # Imports from PIL import Image from pprint import pprint import numpy as np import time as time_ def millis(): # from https://stackoverflow.com/questions/5998245/get-curr...
30.933333
124
0.696659
274
1,856
4.609489
0.364964
0.079177
0.077593
0.026128
0.086302
0.0673
0.042755
0.042755
0
0
0
0.046845
0.171875
1,856
60
125
30.933333
0.774886
0.277478
0
0
0
0
0.051997
0
0
0
0
0
0
1
0.028571
false
0
0.114286
0.028571
0.171429
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f20c450c0dce05186c845a952d08081cb7846ab5
1,833
py
Python
chart/script/provenance_ycsb_thruput.py
RUAN0007/nusthesis
932367195171da2d1c82870cc5b96c0e760b4ca8
[ "MIT" ]
null
null
null
chart/script/provenance_ycsb_thruput.py
RUAN0007/nusthesis
932367195171da2d1c82870cc5b96c0e760b4ca8
[ "MIT" ]
null
null
null
chart/script/provenance_ycsb_thruput.py
RUAN0007/nusthesis
932367195171da2d1c82870cc5b96c0e760b4ca8
[ "MIT" ]
null
null
null
import sys import os import matplotlib.pyplot as plt from matplotlib.pyplot import figure import matplotlib as mpl import config def main(): if 1 < len(sys.argv) : diagram_path = sys.argv[1] else: diagram_path = "" curDir = os.path.dirname(os.path.realpath(__file__)) data_path = o...
30.55
135
0.651391
250
1,833
4.528
0.424
0.04417
0.030035
0
0
0
0
0
0
0
0
0.01768
0.228587
1,833
60
136
30.55
0.782885
0.07856
0
0.04878
0
0
0.054167
0
0
0
0
0
0
1
0.02439
false
0
0.146341
0
0.170732
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f20d43c8664dcca2ef65c9dd2e88a696d94a4ea3
3,157
py
Python
core/handlers/filters_chat.py
Smashulica/nebula8
010df165e3cc61e0154d20310fa972482ec0e7be
[ "Apache-2.0" ]
null
null
null
core/handlers/filters_chat.py
Smashulica/nebula8
010df165e3cc61e0154d20310fa972482ec0e7be
[ "Apache-2.0" ]
null
null
null
core/handlers/filters_chat.py
Smashulica/nebula8
010df165e3cc61e0154d20310fa972482ec0e7be
[ "Apache-2.0" ]
null
null
null
from core.utilities.functions import delete_message from core.utilities.message import message from core.database.repository.group import GroupRepository """ This function allows you to terminate the type of file that contains a message on telegram and filter it """ def init(update, context): apk = 'application/vnd...
44.464789
105
0.631929
404
3,157
4.856436
0.227723
0.089704
0.099388
0.14526
0.486748
0.463812
0.278287
0.278287
0.278287
0.278287
0
0.004637
0.248654
3,157
71
106
44.464789
0.822513
0.033259
0
0.12069
0
0
0.282209
0.057601
0
0
0
0
0
1
0.017241
false
0
0.051724
0
0.068966
0.12069
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f20eb1617a65a8d8e7031e114930d28913b16142
4,287
py
Python
mipsplusplus/parser.py
alexsocha/mipsplusplus
ee7f87605682fe0b219f754069bf11da80c0312a
[ "MIT" ]
1
2021-01-04T09:35:50.000Z
2021-01-04T09:35:50.000Z
mipsplusplus/parser.py
alexsocha/mipsplusplus
ee7f87605682fe0b219f754069bf11da80c0312a
[ "MIT" ]
null
null
null
mipsplusplus/parser.py
alexsocha/mipsplusplus
ee7f87605682fe0b219f754069bf11da80c0312a
[ "MIT" ]
null
null
null
from mipsplusplus import utils from mipsplusplus import operations OPERATOR_ORDERING = [ ['addressof', 'not', 'neg'], ['*', '/', '%'], ['+', '-'], ['<<', '>>', '<<<', '>>>'], ['<', '>', '<=', '>='], ['==', '!='], ['and', 'or', 'xor', 'nor'], ['as'] ] EXPR_OPERATORS = set([op for ops in OPERATOR_ORDERI...
32.233083
106
0.585258
462
4,287
5.411255
0.238095
0.0748
0.0288
0.024
0.1192
0.096
0.0528
0.0528
0
0
0
0.013099
0.269886
4,287
132
107
32.477273
0.785623
0.072545
0
0.227273
0
0.009091
0.020156
0
0
0
0
0
0
1
0.036364
false
0
0.018182
0
0.072727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f21153cc2731f7ee87405f5ca13164bed51c9656
713
py
Python
api/migrations/versions/e956985ff509_.py
SnSation/Pokemart
c91dcd155ae3abe343781b3d26211d2463d41ff3
[ "MIT" ]
null
null
null
api/migrations/versions/e956985ff509_.py
SnSation/Pokemart
c91dcd155ae3abe343781b3d26211d2463d41ff3
[ "MIT" ]
null
null
null
api/migrations/versions/e956985ff509_.py
SnSation/Pokemart
c91dcd155ae3abe343781b3d26211d2463d41ff3
[ "MIT" ]
null
null
null
"""empty message Revision ID: e956985ff509 Revises: 4b471bbc0004 Create Date: 2020-12-02 22:47:08.536332 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e956985ff509' down_revision = '4b471bbc0004' branch_labels = None depends_on = None def upgrade(): # ...
24.586207
123
0.71108
86
713
5.813953
0.627907
0.054
0.084
0.092
0.176
0.176
0.176
0.176
0
0
0
0.095318
0.16129
713
28
124
25.464286
0.740803
0.413745
0
0
0
0
0.204724
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2125363bb0906c29b0070780b0f856daaf2354c
926
py
Python
tests/features/steps/ahk_steps.py
epth/ahk
3a09830b10bf93d6dabda5f055665024570ff6c8
[ "MIT" ]
1
2021-02-16T14:16:58.000Z
2021-02-16T14:16:58.000Z
tests/features/steps/ahk_steps.py
epth/ahk
3a09830b10bf93d6dabda5f055665024570ff6c8
[ "MIT" ]
null
null
null
tests/features/steps/ahk_steps.py
epth/ahk
3a09830b10bf93d6dabda5f055665024570ff6c8
[ "MIT" ]
null
null
null
from behave.matchers import RegexMatcher from ahk import AHK from behave_classy import step_impl_base Base = step_impl_base() class AHKSteps(AHK, Base): @Base.given(u'the mouse position is ({xpos:d}, {ypos:d})') def given_mouse_move(self, xpos, ypos): self.mouse_move(x=xpos, y=ypos) @Base.when(u...
29.870968
86
0.596112
133
926
4.06015
0.383459
0.044444
0.044444
0.037037
0.048148
0
0
0
0
0
0
0.001466
0.263499
926
31
87
29.870968
0.790323
0
0
0
0
0
0.175836
0
0
0
0
0
0.08
1
0.12
false
0
0.12
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2160ab0d4f01e332dfeaf82b6dd74a2d6cbaae5
1,703
py
Python
snakewm/apps/games/pong/bat.py
sigmaister/snakeware_os
4a821c2a0dc7762c4ab35053286f5e23125386d0
[ "MIT" ]
1,621
2020-05-29T06:49:27.000Z
2022-03-15T08:20:08.000Z
snakewm/apps/games/pong/bat.py
sigmaister/snakeware_os
4a821c2a0dc7762c4ab35053286f5e23125386d0
[ "MIT" ]
119
2020-05-29T17:10:45.000Z
2021-12-19T23:43:17.000Z
snakewm/apps/games/pong/bat.py
sigmaister/snakeware_os
4a821c2a0dc7762c4ab35053286f5e23125386d0
[ "MIT" ]
125
2020-05-29T07:43:22.000Z
2022-03-18T22:13:08.000Z
import pygame from pygame.locals import * class ControlScheme: def __init__(self): self.up = K_UP self.down = K_DOWN class Bat: def __init__(self, start_pos, control_scheme, court_size): self.control_scheme = control_scheme self.move_up = False self.move_down = False ...
28.383333
88
0.570757
229
1,703
4.074236
0.218341
0.094319
0.111468
0.060021
0.405145
0.405145
0.341908
0.341908
0.341908
0.341908
0
0.028278
0.314739
1,703
59
89
28.864407
0.771208
0
0
0.238095
0
0
0.00411
0
0
0
0
0
0
1
0.119048
false
0
0.047619
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f21845fdd846667effc17afb28dfd50fe6d29229
3,527
py
Python
mimic/model/rackspace_image_store.py
ksheedlo/mimic
c84b6a0d336e8a37a685b5d71537aec5e44d9a8f
[ "Apache-2.0" ]
141
2015-01-07T19:28:31.000Z
2022-02-11T06:04:13.000Z
mimic/model/rackspace_image_store.py
ksheedlo/mimic
c84b6a0d336e8a37a685b5d71537aec5e44d9a8f
[ "Apache-2.0" ]
575
2015-01-04T20:23:08.000Z
2019-10-04T08:20:04.000Z
mimic/model/rackspace_image_store.py
ksheedlo/mimic
c84b6a0d336e8a37a685b5d71537aec5e44d9a8f
[ "Apache-2.0" ]
63
2015-01-09T20:39:41.000Z
2020-07-06T14:20:56.000Z
""" An image store representing Rackspace specific images """ from __future__ import absolute_import, division, unicode_literals import attr from six import iteritems from mimic.model.rackspace_images import (RackspaceWindowsImage, RackspaceCentOSPVImage, RackspaceCentOSPVHMIma...
48.986111
99
0.588602
276
3,527
7.289855
0.336957
0.035785
0.038767
0.022863
0.516899
0.493042
0.458251
0.458251
0.458251
0.458251
0
0.000885
0.359229
3,527
71
100
49.676056
0.889381
0.076552
0
0.040816
0
0
0.021512
0.01044
0
0
0
0
0
1
0.061224
false
0
0.102041
0
0.244898
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f219b4c368dddd54cf8c1f93b4bad8299a4df851
17,181
py
Python
sfepy/terms/terms_navier_stokes.py
vondrejc/sfepy
8e427af699c4b2858eb096510057abb3ae7e28e8
[ "BSD-3-Clause" ]
null
null
null
sfepy/terms/terms_navier_stokes.py
vondrejc/sfepy
8e427af699c4b2858eb096510057abb3ae7e28e8
[ "BSD-3-Clause" ]
null
null
null
sfepy/terms/terms_navier_stokes.py
vondrejc/sfepy
8e427af699c4b2858eb096510057abb3ae7e28e8
[ "BSD-3-Clause" ]
2
2019-01-14T03:12:34.000Z
2021-05-25T11:44:50.000Z
import numpy as nm from sfepy.linalg import dot_sequences from sfepy.terms.terms import Term, terms class DivGradTerm(Term): r""" Diffusion term. :Definition: .. math:: \int_{\Omega} \nu\ \nabla \ul{v} : \nabla \ul{u} \mbox{ , } \int_{\Omega} \nu\ \nabla \ul{u} : \nabla \ul{w} \\ ...
28.635
79
0.521623
2,176
17,181
3.959559
0.086857
0.031685
0.020891
0.027855
0.692549
0.635678
0.559308
0.51033
0.447772
0.424907
0
0.012851
0.320645
17,181
599
80
28.682805
0.725326
0.25825
0
0.452381
0
0
0.094172
0
0
0
0
0
0
1
0.07483
false
0
0.013605
0
0.353742
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f21a701d87cd77a1cae7afc78f9f781cba559ff4
2,713
py
Python
src/cli/examples/oss-fuzz-target.py
gdhuper/onefuzz
6aca32ed9c8318aa81887eeaacff03c406c0e98c
[ "MIT" ]
1
2020-10-27T08:05:57.000Z
2020-10-27T08:05:57.000Z
src/cli/examples/oss-fuzz-target.py
gdhuper/onefuzz
6aca32ed9c8318aa81887eeaacff03c406c0e98c
[ "MIT" ]
1
2021-02-15T00:38:32.000Z
2021-02-15T00:38:32.000Z
src/cli/examples/oss-fuzz-target.py
gdhuper/onefuzz
6aca32ed9c8318aa81887eeaacff03c406c0e98c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import logging import os import sys import tempfile from subprocess import PIPE, CalledProcessError, check_call # nosec from typing import List, Optional from onefuzztypes.models import NotificationConfig from onefuzzty...
29.48913
87
0.557317
281
2,713
5.309609
0.441281
0.006702
0.02815
0.029491
0
0
0
0
0
0
0
0.002201
0.330262
2,713
91
88
29.813187
0.818932
0.071508
0
0.044118
0
0
0.089129
0.011191
0
0
0
0
0
1
0.058824
false
0
0.147059
0.014706
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f21e91816629e68e43e8282cecfca50b522c0148
5,718
py
Python
hystrix/command.py
grofers/hystrix-py
9876b39980bc8dcb334fcb0ee8c15d6949112203
[ "Apache-2.0" ]
93
2015-01-29T10:10:49.000Z
2021-12-05T08:45:04.000Z
hystrix/command.py
grofers/hystrix-py
9876b39980bc8dcb334fcb0ee8c15d6949112203
[ "Apache-2.0" ]
1
2018-01-30T00:32:37.000Z
2018-01-30T00:32:37.000Z
hystrix/command.py
grofers/hystrix-py
9876b39980bc8dcb334fcb0ee8c15d6949112203
[ "Apache-2.0" ]
20
2015-09-18T02:04:24.000Z
2020-03-25T10:31:07.000Z
""" Used to wrap code that will execute potentially risky functionality (typically meaning a service call over the network) with fault and latency tolerance, statistics and performance metrics capture, circuit breaker and bulkhead functionality. """ from __future__ import absolute_import import logging import six fro...
38.635135
79
0.64603
631
5,718
5.683043
0.209192
0.029002
0.029002
0.03179
0.385109
0.385109
0.375906
0.375906
0.359175
0.297546
0
0
0.268451
5,718
147
80
38.897959
0.857279
0.142882
0
0.387755
0
0
0.111908
0.005534
0
0
0
0.006803
0
1
0.091837
false
0
0.061224
0
0.306122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f21f243b3b146cb9c4185deea25898637e21bb4c
12,079
py
Python
glue/viewers/table/qt/data_viewer.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
550
2015-01-08T13:51:06.000Z
2022-03-31T11:54:47.000Z
glue/viewers/table/qt/data_viewer.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
1,362
2015-01-03T19:15:52.000Z
2022-03-30T13:23:11.000Z
glue/viewers/table/qt/data_viewer.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
142
2015-01-08T13:08:00.000Z
2022-03-18T13:25:57.000Z
import os from functools import lru_cache import numpy as np from qtpy.QtCore import Qt from qtpy import QtCore, QtGui, QtWidgets from matplotlib.colors import ColorConverter from glue.utils.qt import get_qapp from glue.config import viewer_tool from glue.core import BaseData, Data from glue.utils.qt import load_ui ...
35.215743
92
0.637304
1,444
12,079
5.157202
0.251385
0.021485
0.016114
0.008057
0.139251
0.066067
0.055593
0.039748
0.034779
0.029542
0
0.004003
0.276182
12,079
342
93
35.318713
0.847764
0.090902
0
0.155102
0
0
0.044116
0
0
0
0
0
0
1
0.122449
false
0
0.085714
0.016327
0.367347
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f21fb8769d6f7f12c55b09713729ab92490aa213
1,781
py
Python
azure-servicefabric/azure/servicefabric/models/restore_partition_description.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-servicefabric/azure/servicefabric/models/restore_partition_description.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-servicefabric/azure/servicefabric/models/restore_partition_description.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-10-16T13:08:23.000Z
2018-10-16T13:08:23.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 ...
37.893617
87
0.638967
192
1,781
5.78125
0.489583
0.05045
0.040541
0.034234
0
0
0
0
0
0
0
0.000687
0.182482
1,781
46
88
38.717391
0.761676
0.546322
0
0
0
0
0.270053
0.032086
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2222e7a4067aa3e2de0115ba3b31e143ef1fc7b
5,438
py
Python
psq/queue.py
Tomesco/bookshelf-demo-project
9d422f3aa04edbb3312d3e177caf699653ed6a73
[ "Apache-2.0" ]
210
2015-07-29T16:50:01.000Z
2022-03-02T15:24:52.000Z
psq/queue.py
Tomesco/bookshelf-demo-project
9d422f3aa04edbb3312d3e177caf699653ed6a73
[ "Apache-2.0" ]
60
2015-12-03T23:15:57.000Z
2021-01-21T09:25:42.000Z
psq/queue.py
Tomesco/bookshelf-demo-project
9d422f3aa04edbb3312d3e177caf699653ed6a73
[ "Apache-2.0" ]
47
2015-12-21T06:09:36.000Z
2021-09-04T13:20:21.000Z
# Copyright 2015 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.417722
79
0.658698
641
5,438
5.407176
0.313573
0.033756
0.032891
0.024235
0.186382
0.156088
0.06809
0.065205
0.065205
0
0
0.002502
0.264987
5,438
157
80
34.636943
0.864648
0.229312
0
0.164948
0
0
0.036555
0
0
0
0
0
0
1
0.113402
false
0.030928
0.103093
0
0.298969
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f22234640a48085e7e67ec5bc155d8fda74563b6
2,453
py
Python
mac/google-cloud-sdk/lib/surface/access_context_manager/levels/update.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
mac/google-cloud-sdk/lib/surface/access_context_manager/levels/update.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
4
2020-07-21T12:51:46.000Z
2022-01-22T10:29:25.000Z
mac/google-cloud-sdk/lib/surface/access_context_manager/levels/update.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
1
2020-07-25T18:17:57.000Z
2020-07-25T18:17:57.000Z
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC. 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 requir...
32.706667
76
0.772523
292
2,453
6.35274
0.44863
0.032345
0.056065
0.053369
0.163342
0.163342
0.105121
0.105121
0
0
0
0.00759
0.140644
2,453
74
77
33.148649
0.872391
0.277212
0
0.166667
0
0
0.023455
0
0
0
0
0
0
1
0.119048
false
0
0.166667
0
0.452381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2235aff62f649f7be3dedbcbc6809a427c1c2ca
775
py
Python
convert.py
lordcodingsound/autodj
dc43c8a8bd07006d02a5a7d5d2ae74d2eb9bf685
[ "MIT" ]
null
null
null
convert.py
lordcodingsound/autodj
dc43c8a8bd07006d02a5a7d5d2ae74d2eb9bf685
[ "MIT" ]
null
null
null
convert.py
lordcodingsound/autodj
dc43c8a8bd07006d02a5a7d5d2ae74d2eb9bf685
[ "MIT" ]
null
null
null
import wave import struct import subprocess import os import opusenc import base64 import zlib import sys tmp = sys.argv[1] + ".wav" subprocess.Popen(["ffmpeg", "-i", sys.argv[1], "-ar", "48000", "-ac", "2", "-y", tmp], stdout=subprocess.PIPE, stderr=subprocess.PIPE).wait() f = open(sys.argv[2], "wb") e ...
20.394737
142
0.616774
123
775
3.853659
0.495935
0.044304
0.033755
0.063291
0.177215
0.177215
0.177215
0.177215
0.177215
0.177215
0
0.057325
0.189677
775
37
143
20.945946
0.697452
0
0
0.193548
0
0
0.047425
0
0
0
0
0
0
1
0
false
0
0.258065
0
0.258065
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f224a1293fdc148ee28c3d5f42f88c489aa0c477
10,961
py
Python
packages/pegasus-api/src/Pegasus/api/replica_catalog.py
spxiwh/pegasus
ebe3e205ae34c1721c540465712da557979c7437
[ "Apache-2.0" ]
null
null
null
packages/pegasus-api/src/Pegasus/api/replica_catalog.py
spxiwh/pegasus
ebe3e205ae34c1721c540465712da557979c7437
[ "Apache-2.0" ]
null
null
null
packages/pegasus-api/src/Pegasus/api/replica_catalog.py
spxiwh/pegasus
ebe3e205ae34c1721c540465712da557979c7437
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict from pathlib import Path from typing import Dict, Optional, Set, Union from ._utils import _chained from .errors import DuplicateError from .mixins import MetadataMixin from .writable import Writable, _filter_out_nones PEGASUS_VERSION = "5.0" __all__ = ["File", "ReplicaCatalog"] ...
35.244373
186
0.560624
1,293
10,961
4.649652
0.198763
0.012808
0.02495
0.017465
0.275615
0.238357
0.206088
0.195775
0.195775
0.195775
0
0.00695
0.330536
10,961
310
187
35.358065
0.812347
0.427881
0
0.307692
0
0
0.07049
0
0
0
0
0
0
1
0.108974
false
0
0.044872
0.057692
0.275641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0