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
9068dd91546f900a5c60936212742aac5fb95fd0
577
py
Python
Python/Advanced/Tuples And Sets/Lab/SoftUni Party.py
EduardV777/Softuni-Python-Exercises
79db667028aea7dfecb3dbbd834c752180c50f44
[ "Unlicense" ]
null
null
null
Python/Advanced/Tuples And Sets/Lab/SoftUni Party.py
EduardV777/Softuni-Python-Exercises
79db667028aea7dfecb3dbbd834c752180c50f44
[ "Unlicense" ]
null
null
null
Python/Advanced/Tuples And Sets/Lab/SoftUni Party.py
EduardV777/Softuni-Python-Exercises
79db667028aea7dfecb3dbbd834c752180c50f44
[ "Unlicense" ]
null
null
null
guests=int(input()) reservations=set([]) while guests!=0: reservationCode=input() reservations.add(reservationCode) guests-=1 while True: r=input() if r!="END": reservations.discard(r) else: print(len(reservations)) VIPS=[]; Regulars=[] for e in reservations: ...
22.192308
37
0.514731
63
577
4.714286
0.444444
0.114478
0.040404
0
0
0
0
0
0
0
0
0.00813
0.360485
577
26
38
22.192308
0.796748
0
0
0.166667
0
0
0.00519
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
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
9068dfa377a4e3878aa69220570645e9c12f27ec
404
py
Python
locale/pot/api/plotting/_autosummary/pyvista-Plotter-remove_all_lights-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/plotting/_autosummary/pyvista-Plotter-remove_all_lights-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/plotting/_autosummary/pyvista-Plotter-remove_all_lights-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
# Create a plotter and remove all lights after initialization. # Note how the mesh rendered is completely flat # import pyvista as pv plotter = pv.Plotter() plotter.remove_all_lights() plotter.renderer.lights # Expected: ## [] _ = plotter.add_mesh(pv.Sphere(), show_edges=True) plotter.show() # # Note how this differs f...
25.25
62
0.762376
60
404
5.033333
0.583333
0.059603
0.099338
0
0
0
0
0
0
0
0
0
0.131188
404
15
63
26.933333
0.860399
0.433168
0
0
0
0
0
0
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
906c0d695c5d23512c396e22821fa9b115229101
880
py
Python
einsum.py
odiak/einsum
c7c71f8daefcf33b4743cc8dca588577d03bdde6
[ "MIT" ]
null
null
null
einsum.py
odiak/einsum
c7c71f8daefcf33b4743cc8dca588577d03bdde6
[ "MIT" ]
null
null
null
einsum.py
odiak/einsum
c7c71f8daefcf33b4743cc8dca588577d03bdde6
[ "MIT" ]
null
null
null
from typing import Dict, Tuple import numpy as np def einsum(expr: str, *args: Tuple[np.ndarray, ...], **kwargs) -> np.ndarray: (a, b) = map(str.strip, expr.split("->")) a_ = list( map(lambda s: list(map(str.strip, s.split(","))), map(str.strip, a.split(";"))) ) b_ = list(map(str.strip, b.spli...
29.333333
87
0.494318
126
880
3.333333
0.301587
0.116667
0.104762
0.071429
0.252381
0.252381
0.252381
0.147619
0.147619
0.147619
0
0.005042
0.323864
880
29
88
30.344828
0.70084
0
0
0.222222
0
0
0.038636
0.029545
0
0
0
0
0
1
0.037037
false
0
0.074074
0
0.148148
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
906c820368e4e2bf91a72f86c8e3c46b23314109
4,201
py
Python
aarhus/get_roots.py
mikedelong/aarhus
0c0e94fadd65be8428fe3bd2c92928e1b23fc2a1
[ "Apache-2.0" ]
null
null
null
aarhus/get_roots.py
mikedelong/aarhus
0c0e94fadd65be8428fe3bd2c92928e1b23fc2a1
[ "Apache-2.0" ]
7
2017-01-13T19:04:57.000Z
2017-01-23T14:10:53.000Z
aarhus/get_roots.py
mikedelong/aarhus
0c0e94fadd65be8428fe3bd2c92928e1b23fc2a1
[ "Apache-2.0" ]
null
null
null
import json import logging import os import pickle import sys import time import pyzmail # http://mypy.pythonblogs.com/12_mypy/archive/1253_workaround_for_python_bug_ascii_codec_cant_encode_character_uxa0_in_position_111_ordinal_not_in_range128.html reload(sys) sys.setdefaultencoding("utf8") logging.basicConfig(form...
40.394231
160
0.650321
533
4,201
4.851782
0.270169
0.052204
0.018948
0.029389
0.08778
0.08778
0.08778
0.064579
0.064579
0.064579
0
0.01327
0.246608
4,201
103
161
40.786408
0.803791
0.079029
0
0.04878
0
0
0.130986
0.005695
0
0
0
0
0
1
0.036585
false
0
0.085366
0
0.146341
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
906df45a0cbaf0b269d84eb1b51d8ce436ca4a79
4,621
py
Python
linear_regression.py
wail007/ml_playground
5a8cd1fc57d3ba32a255e665fc3480f58eb9c3c2
[ "Apache-2.0" ]
null
null
null
linear_regression.py
wail007/ml_playground
5a8cd1fc57d3ba32a255e665fc3480f58eb9c3c2
[ "Apache-2.0" ]
null
null
null
linear_regression.py
wail007/ml_playground
5a8cd1fc57d3ba32a255e665fc3480f58eb9c3c2
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt from scipy.stats import multivariate_normal class _LinearModel(object): def __init__(self): self.w = None def fit(self, x, y): pass def predict(self, x): return np.dot(x, self.w) def cost(self, x...
29.062893
119
0.554425
664
4,621
3.683735
0.176205
0.026574
0.022077
0.041701
0.310711
0.243254
0.193377
0.132052
0.119379
0.098937
0
0.015303
0.307076
4,621
158
120
29.246835
0.748595
0.017096
0
0.277778
0
0
0.001985
0
0
0
0
0
0
1
0.175926
false
0.018519
0.037037
0.027778
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
906f41f56725ceef73c59638d0fd312fa10a88f9
6,689
py
Python
vmtkScripts/vmtkmeshboundaryinspector.py
ramtingh/vmtk
4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3
[ "Apache-2.0" ]
null
null
null
vmtkScripts/vmtkmeshboundaryinspector.py
ramtingh/vmtk
4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3
[ "Apache-2.0" ]
null
null
null
vmtkScripts/vmtkmeshboundaryinspector.py
ramtingh/vmtk
4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3
[ "Apache-2.0" ]
1
2019-06-18T23:41:11.000Z
2019-06-18T23:41:11.000Z
#!/usr/bin/env python ## Program: VMTK ## Module: $RCSfile: vmtkmeshboundaryinspector.py,v $ ## Language: Python ## Date: $Date: 2006/05/26 12:35:13 $ ## Version: $Revision: 1.3 $ ## Copyright (c) Luca Antiga, David Steinman. All rights reserved. ## See LICENSE file for details. ## This softwar...
39.579882
132
0.697264
550
6,689
8.441818
0.390909
0.047383
0.027568
0.016153
0.044799
0.033599
0.033599
0
0
0
0
0.01147
0.204963
6,689
168
133
39.815476
0.861602
0.081029
0
0.017391
0
0
0.104163
0.011429
0
0
0
0
0
1
0.017391
false
0
0.052174
0
0.095652
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
906fc90146a02fc91c29a4ca6a8d89955a76d227
1,542
py
Python
setup.py
sriz1/mudslide
78aa8a1bda4080eacd777da7ff6bcbfd9afe129c
[ "MIT" ]
4
2020-09-05T00:17:27.000Z
2022-01-25T19:44:32.000Z
setup.py
sriz1/mudslide
78aa8a1bda4080eacd777da7ff6bcbfd9afe129c
[ "MIT" ]
null
null
null
setup.py
sriz1/mudslide
78aa8a1bda4080eacd777da7ff6bcbfd9afe129c
[ "MIT" ]
6
2020-11-20T15:42:03.000Z
2022-02-10T02:43:29.000Z
from setuptools import setup from distutils.util import convert_path main_ns = {} ver_path = convert_path('mudslide/version.py') with open(ver_path) as ver_file: exec(ver_file.read(), main_ns) def readme(): with open("README.md") as f: return f.read() setup( name='mudslide', packages=['mudsli...
30.84
95
0.624514
165
1,542
5.684848
0.612121
0.01919
0.079957
0.083156
0.070362
0.070362
0
0
0
0
0
0.010144
0.232815
1,542
49
96
31.469388
0.782756
0
0
0
0
0
0.500324
0.070084
0
0
0
0
0
1
0.022222
false
0
0.044444
0
0.088889
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
906fe64b74d7a1e64be5829e3ead36fd43b1f23d
1,361
py
Python
src/sklearn/sklearn_random_forest_test.py
monkeychen/python-tutorial
a24785da6b4d857200b819ad4d960885b1ef7a20
[ "Apache-2.0" ]
null
null
null
src/sklearn/sklearn_random_forest_test.py
monkeychen/python-tutorial
a24785da6b4d857200b819ad4d960885b1ef7a20
[ "Apache-2.0" ]
null
null
null
src/sklearn/sklearn_random_forest_test.py
monkeychen/python-tutorial
a24785da6b4d857200b819ad4d960885b1ef7a20
[ "Apache-2.0" ]
null
null
null
import csv import joblib from sklearn.metrics import accuracy_score data = [] features = [] targets = [] feature_names = [] users = [] with open('satisfaction_feature_names.csv') as name_file: column_name_file = csv.reader(name_file) feature_names = next(column_name_file)[2:394] with open('cza_satisfaction_tr...
27.22
68
0.648788
187
1,361
4.540107
0.358289
0.076561
0.03298
0
0
0
0
0
0
0
0
0.041985
0.229978
1,361
49
69
27.77551
0.76813
0
0
0.047619
0
0
0.072165
0.060383
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.119048
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
9070ee6ae571936274c18044e8321cc9866dd425
2,836
py
Python
tests/utils/_process_nonwin.py
chrahunt/quicken
2dd00a5f024d7b114b211aad8a2618ec8f101956
[ "MIT" ]
3
2019-11-12T17:56:08.000Z
2022-03-12T03:43:10.000Z
tests/utils/_process_nonwin.py
chrahunt/quicken
2dd00a5f024d7b114b211aad8a2618ec8f101956
[ "MIT" ]
47
2018-12-10T04:08:58.000Z
2022-03-20T14:54:36.000Z
tests/utils/_process_nonwin.py
chrahunt/quicken
2dd00a5f024d7b114b211aad8a2618ec8f101956
[ "MIT" ]
1
2019-11-12T17:55:17.000Z
2019-11-12T17:55:17.000Z
"""Utilities for managing child processes within a scope - this ensures tests run cleanly even on failure and also gives us a mechanism to get debug info for our children. """ import logging import os import sys from contextlib import contextmanager from typing import ContextManager, List import psutil import process...
26.504673
80
0.665374
354
2,836
5.186441
0.437853
0.043573
0.022876
0.020697
0.025054
0
0
0
0
0
0
0.000948
0.256347
2,836
106
81
26.754717
0.869606
0.323695
0
0.087719
0
0
0.075832
0.012002
0
0
0
0.009434
0.052632
1
0.087719
false
0.017544
0.122807
0
0.280702
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
9071096add8b5a4db338073c96e92750aa128c1f
2,516
py
Python
data/meneame/parse_meneame.py
segurac/DeepQA
b7f95e6e14ba9469f17a2a43df87f2a69e431eeb
[ "Apache-2.0" ]
null
null
null
data/meneame/parse_meneame.py
segurac/DeepQA
b7f95e6e14ba9469f17a2a43df87f2a69e431eeb
[ "Apache-2.0" ]
null
null
null
data/meneame/parse_meneame.py
segurac/DeepQA
b7f95e6e14ba9469f17a2a43df87f2a69e431eeb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2016 Carlos Segura. 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/LI...
27.955556
79
0.534181
270
2,516
4.888889
0.411111
0.090909
0.048485
0.066667
0.081818
0.045455
0
0
0
0
0
0.010817
0.338633
2,516
89
80
28.269663
0.782452
0.296105
0
0.230769
0
0
0.047945
0.025114
0
0
0
0
0
1
0
false
0
0.057692
0
0.134615
0.038462
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
90740254e2ea619dbf9f847e862986ac065aaf0a
4,087
py
Python
dfstools/tests/test_relationship_tools.py
orekunrin/comp410_summer2020
ab69d578a981ad0262f76baeccb5d16e8d2e182a
[ "Apache-2.0" ]
null
null
null
dfstools/tests/test_relationship_tools.py
orekunrin/comp410_summer2020
ab69d578a981ad0262f76baeccb5d16e8d2e182a
[ "Apache-2.0" ]
null
null
null
dfstools/tests/test_relationship_tools.py
orekunrin/comp410_summer2020
ab69d578a981ad0262f76baeccb5d16e8d2e182a
[ "Apache-2.0" ]
null
null
null
import unittest import pandas as pd import git import os from dfstools import get_dataset_dtypes from dfstools import find_related_cols_by_name from dfstools import find_related_cols_by_content from dfstools import find_parent_child_relationships from dfstools import pecan_cookies_load_data class RelationshipTools(un...
49.841463
111
0.477857
330
4,087
5.651515
0.230303
0.038606
0.028954
0.057909
0.3437
0.220912
0.119571
0
0
0
0
0
0.371911
4,087
81
112
50.45679
0.726529
0.065818
0
0.086207
0
0
0.250525
0
0
0
0
0
0.051724
1
0.034483
false
0
0.155172
0
0.206897
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
9074ea5b2e3ca5610b7441955b3420b7ffce9518
1,446
py
Python
analysis/src/util/_concepts.py
Domiii/code-dbgs
afe4d500273570e0b141ca0384cda3b52a191417
[ "Apache-2.0" ]
95
2020-01-20T08:51:20.000Z
2022-03-31T23:27:28.000Z
analysis/src/util/_concepts.py
Domiii/code-dbgs
afe4d500273570e0b141ca0384cda3b52a191417
[ "Apache-2.0" ]
274
2020-07-11T11:10:10.000Z
2022-03-31T14:03:39.000Z
analysis/src/util/_concepts.py
Domiii/code-dbgs
afe4d500273570e0b141ca0384cda3b52a191417
[ "Apache-2.0" ]
9
2020-07-15T07:04:20.000Z
2022-03-27T17:11:58.000Z
# // ########################################################################### # // Queries # // ########################################################################### # -> get a single cell of a df (use `iloc` with `row` + `col` as arguments) df.iloc[0]['staticContextId'] # -> get one column as a list allFunc...
34.428571
106
0.540111
165
1,446
4.666667
0.557576
0.041558
0.036364
0.051948
0
0
0
0
0
0
0
0.017625
0.09751
1,446
42
107
34.428571
0.572414
0.361687
0
0
0
0
0.207921
0
0
0
0
0
0
1
0
false
0
0
0
0
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
9076fc2a93a37415e1783c15ba456852ac6cdab0
4,549
py
Python
src/onevision/data/augment/image_box_augment.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/data/augment/image_box_augment.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/data/augment/image_box_augment.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ """ from __future__ import annotations import numpy as np import torch from torch import Tensor from onevision.data.augment.base import BaseAugment from onevision.data.augment.utils import apply_transform_op from onevision.data.data_class import ObjectAnnotation fro...
32.726619
94
0.473071
471
4,549
4.382166
0.29087
0.010659
0.010174
0.01938
0.236919
0.236434
0.236434
0.236434
0.236434
0.207364
0
0.028793
0.404485
4,549
138
95
32.963768
0.733112
0.10266
0
0.338028
0
0
0.102008
0.03379
0
0
0
0
0
1
0.056338
false
0.014085
0.112676
0.014085
0.225352
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
9078e83afbdbc37dbf8bc13a26fcecb893de7fcb
6,264
py
Python
WarmUpSTE.py
jrolf/jse-api
72cf6ce9f5fb54564872795f058cb06afe34ca75
[ "MIT" ]
1
2019-09-19T23:20:57.000Z
2019-09-19T23:20:57.000Z
WarmUpSTE.py
jrolf/jse-api
72cf6ce9f5fb54564872795f058cb06afe34ca75
[ "MIT" ]
1
2019-09-19T23:24:38.000Z
2019-09-19T23:24:38.000Z
WarmUpSTE.py
jrolf/jse-api
72cf6ce9f5fb54564872795f058cb06afe34ca75
[ "MIT" ]
1
2019-09-19T20:12:10.000Z
2019-09-19T20:12:10.000Z
import pandas as pd import numpy as np from copy import * from bisect import * from scipy.optimize import curve_fit from sklearn.metrics import * from collections import defaultdict as defd import datetime,pickle from DemandHelper import * import warnings warnings.filterwarnings("ignore") ####################...
25.463415
81
0.543423
810
6,264
4.082716
0.251852
0.02661
0.0127
0.023586
0.169035
0.127306
0.127306
0.077412
0.077412
0.052616
0
0.039171
0.168582
6,264
245
82
25.567347
0.595814
0.114144
0
0
0
0
0.089864
0
0
0
0
0
0
1
0.078125
false
0
0.101563
0.007813
0.242188
0.015625
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
907a8e9bf17e1ccce65533dabf9db7c106ceba56
1,088
py
Python
Section 3/cnn3.py
PacktPublishing/Python-Deep-Learning-for-Beginners-
90f110158cbf0ce02fd4d5d09e3b2034428d9992
[ "MIT" ]
7
2019-02-16T02:52:12.000Z
2021-11-08T13:10:46.000Z
Section 3/cnn3.py
PacktPublishing/Python-Deep-Learning-for-Beginners-
90f110158cbf0ce02fd4d5d09e3b2034428d9992
[ "MIT" ]
null
null
null
Section 3/cnn3.py
PacktPublishing/Python-Deep-Learning-for-Beginners-
90f110158cbf0ce02fd4d5d09e3b2034428d9992
[ "MIT" ]
14
2018-11-18T04:33:38.000Z
2021-08-14T03:29:18.000Z
import keras from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Flatten from keras.layers import Conv2D, MaxPooling2D model = Sequential() model.add(Conv2D(32, kernel_size=(3, 3), activation='relu', input_shape=(128, 128, 1))) model.ad...
31.085714
51
0.669118
152
1,088
4.690789
0.322368
0.134642
0.117812
0.134642
0.516129
0.440393
0.440393
0.440393
0.440393
0.367461
0
0.070718
0.168199
1,088
34
52
32
0.717127
0
0
0.428571
0
0
0.060662
0.022059
0
0
0
0
0
1
0
false
0
0.178571
0
0.178571
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
907cab399c56f59d773c9098dcb9ad23a5c47d44
3,482
py
Python
plugins/General/wxRaven_WebBrowser.py
sLiinuX/wxRaven
a513a029fa1ff2059ee262c524b4b2b45111f1a6
[ "MIT" ]
11
2021-12-20T15:32:17.000Z
2022-03-16T03:54:02.000Z
plugins/General/wxRaven_WebBrowser.py
sLiinuX/wxRaven
a513a029fa1ff2059ee262c524b4b2b45111f1a6
[ "MIT" ]
156
2021-12-31T21:01:31.000Z
2022-03-20T21:57:31.000Z
plugins/General/wxRaven_WebBrowser.py
sLiinuX/wxRaven
a513a029fa1ff2059ee262c524b4b2b45111f1a6
[ "MIT" ]
3
2022-01-21T14:52:43.000Z
2022-02-12T05:32:19.000Z
''' Created on 22 févr. 2022 @author: slinux ''' from .wxRavenGeneralDesign import wxRavenWebBrowser from wxRavenGUI.application.wxcustom.CustomLoading import * from wxRavenGUI.application.wxcustom import * import wx.html2 as webview import sys import logging from wxRavenGUI.application.wxcustom.CustomUserIO import ...
30.017241
269
0.601091
361
3,482
5.66759
0.459834
0.017595
0.036657
0.048387
0.072336
0.072336
0.045943
0.045943
0
0
0
0.006284
0.314474
3,482
116
270
30.017241
0.850859
0.16054
0
0.047619
0
0
0.029657
0
0
0
0
0
0
1
0.095238
false
0.047619
0.166667
0
0.404762
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
907d53bdf5f863a5b666758a3f35cfee8a3a43e9
4,097
py
Python
backend/pollr-eb2/lib/python3.5/site-packages/ebcli/operations/upgradeops.py
saarthak24/Pollr
9fbdd19f48ed873899093c7d034ed4e0d017c19d
[ "MIT" ]
2
2017-11-16T15:02:43.000Z
2017-11-20T17:41:16.000Z
backend/pollr-eb2/lib/python3.5/site-packages/ebcli/operations/upgradeops.py
saarthak24/Pollr
9fbdd19f48ed873899093c7d034ed4e0d017c19d
[ "MIT" ]
10
2020-01-28T22:12:06.000Z
2022-03-11T23:16:53.000Z
backend/pollr-eb2/lib/python3.5/site-packages/ebcli/operations/upgradeops.py
saarthak24/Pollr
9fbdd19f48ed873899093c7d034ed4e0d017c19d
[ "MIT" ]
2
2017-11-16T14:59:03.000Z
2017-11-16T23:52:13.000Z
# Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
35.626087
78
0.661948
460
4,097
5.7
0.3
0.048055
0.030511
0.022883
0.279176
0.279176
0.279176
0.221968
0.180778
0.10984
0
0.002628
0.257017
4,097
115
79
35.626087
0.858739
0.134977
0
0.218391
0
0
0.079298
0.030586
0
0
0
0
0
1
0.045977
false
0
0.068966
0
0.229885
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
907e1b4a54a9e37e87ee07e0eb6f6b12a199f562
2,719
py
Python
src/perimeterator/enumerator/elb.py
vvondra/perimeterator
6f750b5c8e6ff151472911bb45c6f11c0a6cd8ff
[ "MIT" ]
null
null
null
src/perimeterator/enumerator/elb.py
vvondra/perimeterator
6f750b5c8e6ff151472911bb45c6f11c0a6cd8ff
[ "MIT" ]
null
null
null
src/perimeterator/enumerator/elb.py
vvondra/perimeterator
6f750b5c8e6ff151472911bb45c6f11c0a6cd8ff
[ "MIT" ]
null
null
null
''' Perimeterator - Enumerator for AWS ELBs (Public IPs). ''' import logging import boto3 from perimeterator.helper import aws_elb_arn from perimeterator.helper import dns_lookup class Enumerator(object): ''' Perimeterator - Enumerator for AWS ELBs (Public IPs). ''' # Required for Boto and reporting. SE...
37.246575
77
0.543582
290
2,719
5.031034
0.434483
0.03427
0.030843
0.039753
0.113777
0.113777
0.057574
0
0
0
0
0.001179
0.376241
2,719
72
78
37.763889
0.85908
0.283928
0
0.088889
0
0
0.139353
0.012526
0
0
0
0
0
1
0.044444
false
0
0.088889
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
907f3c024ac75afd4ff1f45c65ec5e6e22c38567
1,685
py
Python
binarycheck.py
pnordin/trimeol
2f58db29df9b28f249c1b9fa851f04119158bbd5
[ "MIT" ]
null
null
null
binarycheck.py
pnordin/trimeol
2f58db29df9b28f249c1b9fa851f04119158bbd5
[ "MIT" ]
null
null
null
binarycheck.py
pnordin/trimeol
2f58db29df9b28f249c1b9fa851f04119158bbd5
[ "MIT" ]
null
null
null
"""Module to help guess whether a file is binary or text. Requirements: Python 2.7+ Recommended: Python 3 """ def is_binary_file(fname): """Attempt to guess if 'fname' is a binary file heuristically. This algorithm has many flaws. Use with caution. It assumes that if a part of the file has NUL b...
25.923077
66
0.626113
245
1,685
4.265306
0.42449
0.038278
0.031579
0.02488
0.072727
0.072727
0.072727
0
0
0
0
0.02027
0.297329
1,685
64
67
26.328125
0.862331
0.508012
0
0.074074
0
0
0.015936
0
0
0
0
0
0
1
0.111111
false
0
0
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
9080c3b939a2c1af97171c5d7d2b2932cf209fec
8,329
py
Python
spiketoolkit/validation/quality_metric_classes/snr.py
seankmartin/spiketoolkit
38261d95045b1cd689363579c10ab3aa0a1ab7c0
[ "MIT" ]
null
null
null
spiketoolkit/validation/quality_metric_classes/snr.py
seankmartin/spiketoolkit
38261d95045b1cd689363579c10ab3aa0a1ab7c0
[ "MIT" ]
null
null
null
spiketoolkit/validation/quality_metric_classes/snr.py
seankmartin/spiketoolkit
38261d95045b1cd689363579c10ab3aa0a1ab7c0
[ "MIT" ]
null
null
null
import numpy as np import spikemetrics.metrics as metrics from .utils.thresholdcurator import ThresholdCurator from .quality_metric import QualityMetric import spiketoolkit as st from spikemetrics.utils import Epoch, printProgressBar from collections import OrderedDict from .parameter_dictionaries import get_recording_...
46.792135
231
0.623724
993
8,329
4.902316
0.190332
0.024035
0.034511
0.026294
0.297658
0.226376
0.162079
0.149753
0.115242
0.115242
0
0.008608
0.274703
8,329
178
232
46.792135
0.797219
0.080922
0
0.146154
0
0.007692
0.159405
0.003587
0
0
0
0
0
1
0.046154
false
0
0.061538
0
0.192308
0.015385
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
90825885fb1011eb6a66d72e387d9a860b8e8b3f
19,132
py
Python
stsynphot/tests/test_parser.py
tddesjardins/stsynphot_refactor
d7c6cdd006a2173fe0ee367a3a9f10f72acafe38
[ "MIT", "BSD-3-Clause" ]
5
2017-07-18T20:02:34.000Z
2022-03-10T06:46:22.000Z
stsynphot/tests/test_parser.py
tddesjardins/stsynphot_refactor
d7c6cdd006a2173fe0ee367a3a9f10f72acafe38
[ "MIT", "BSD-3-Clause" ]
103
2016-05-26T03:40:24.000Z
2021-12-29T23:03:13.000Z
stsynphot/tests/test_parser.py
tddesjardins/stsynphot_refactor
d7c6cdd006a2173fe0ee367a3a9f10f72acafe38
[ "MIT", "BSD-3-Clause" ]
9
2016-12-14T12:56:18.000Z
2021-09-11T22:50:01.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Test spparser.py module, which uses spark.py. .. note:: Only testing to see if the parser makes the right kind of objects. Quality of the data is tested in other modules. """ # STDLIB import os # THIRD-PARTY import pytest from astropy impor...
33.447552
79
0.559011
2,210
19,132
4.679638
0.144344
0.066331
0.054148
0.036743
0.608393
0.535583
0.429898
0.393251
0.354477
0.335815
0
0.064
0.268242
19,132
571
80
33.50613
0.674714
0.03664
0
0.513978
0
0.030108
0.243018
0.050738
0
0
0
0
0.043011
1
0.068817
false
0
0.030108
0
0.105376
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
9083f275a59b9bf245934e27e32ceb9469c2cb0d
6,465
py
Python
tests/pheweb/load/command_flags_test.py
stellakeppo/pheweb
10ea317dbe9419fa77f99e6b735fa9a3290ccd5e
[ "MIT" ]
4
2018-11-03T13:58:52.000Z
2020-03-06T09:19:03.000Z
tests/pheweb/load/command_flags_test.py
stellakeppo/pheweb
10ea317dbe9419fa77f99e6b735fa9a3290ccd5e
[ "MIT" ]
92
2018-05-17T18:07:01.000Z
2022-03-29T00:37:30.000Z
tests/pheweb/load/command_flags_test.py
stellakeppo/pheweb
10ea317dbe9419fa77f99e6b735fa9a3290ccd5e
[ "MIT" ]
4
2020-07-01T12:20:55.000Z
2022-01-24T20:09:15.000Z
# -*- coding: utf-8 -*- """ Unit testing for command flags. This tests the various command flags and there helper methods. """ import argparse import typing import uuid import pytest from pheweb.load.command_flags import ( FLAG_CHROMOSOME, add_chromosome_flag, OUTPUT_COLUMN_CHROMOSOME, FLAG_POSITION...
26.174089
88
0.692653
866
6,465
4.797921
0.105081
0.040433
0.016847
0.033694
0.366065
0.26065
0.194946
0.118171
0.070999
0.029122
0
0.002705
0.199536
6,465
246
89
26.280488
0.800193
0.156535
0
0
0
0
0.016333
0.004083
0
0
0
0
0.253968
1
0.119048
false
0
0.039683
0
0.166667
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
9085232046fc5765251336d07c6534499f1401bb
4,388
py
Python
sandbox/error-correct-pass2.py
sadeepdarshana/khmer
bee54c4f579611d970c59367323d31d3545cafa6
[ "CNRI-Python" ]
558
2015-05-22T15:03:21.000Z
2022-03-23T04:49:17.000Z
sandbox/error-correct-pass2.py
sadeepdarshana/khmer
bee54c4f579611d970c59367323d31d3545cafa6
[ "CNRI-Python" ]
1,057
2015-05-14T20:27:04.000Z
2022-03-08T09:29:36.000Z
sandbox/error-correct-pass2.py
sadeepdarshana/khmer
bee54c4f579611d970c59367323d31d3545cafa6
[ "CNRI-Python" ]
193
2015-05-18T10:13:34.000Z
2021-12-10T11:58:01.000Z
#! /usr/bin/env python # This file is part of khmer, https://github.com/dib-lab/khmer/, and is # Copyright (C) 2011-2015, Michigan State University. # Copyright (C) 2015, The Regents of the University of California. # # Redistribution and use in source and binary forms, with or without # modification, are permitted pro...
35.104
78
0.66773
567
4,388
5.088183
0.428571
0.003466
0.029463
0.015945
0.080069
0.04714
0.04714
0.04714
0.04714
0.04714
0
0.007764
0.236782
4,388
124
79
35.387097
0.853688
0.454877
0
0
0
0
0.12138
0
0
0
0
0
0.016949
1
0.033898
false
0
0.118644
0
0.186441
0.050847
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
90861fa0047d98bc9b632e22782ae0a512bc70e6
561
py
Python
hackerrank/medium/Climbing_the_Leaderboard.py
HoussemBousmaha/Competitive-Programming
c4530fc01d8933bdfefec7fb6d31cd648e760334
[ "MIT" ]
6
2022-03-02T23:08:00.000Z
2022-03-07T07:26:48.000Z
hackerrank/medium/Climbing_the_Leaderboard.py
HoussemBousmaha/Competitive-Programming
c4530fc01d8933bdfefec7fb6d31cd648e760334
[ "MIT" ]
null
null
null
hackerrank/medium/Climbing_the_Leaderboard.py
HoussemBousmaha/Competitive-Programming
c4530fc01d8933bdfefec7fb6d31cd648e760334
[ "MIT" ]
null
null
null
def climbingLeaderboard(ranked, player): ranked = sorted(list(set(ranked)), reverse=True) ranks = [] # print(ranked) for i in range(len(player)): bi = 0 bs = len(ranked) - 1 index = 0 while (bi <= bs): mid = (bi+bs) // 2 if (ranked[mid] > player...
20.035714
52
0.43672
63
561
3.888889
0.444444
0.04898
0.097959
0
0
0
0
0
0
0
0
0.025397
0.438503
561
27
53
20.777778
0.752381
0.023173
0
0.105263
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.105263
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
908733eb70f6006bbe7cab4fd64970e3aec01842
8,352
py
Python
src/python/config/parser/test_parsing.py
ncsa/NCSA-Genomics_MGC_GenomeGPS_CromwelWDL
4611896ea1bb50df50120752712e8d4b32a6d023
[ "MIT" ]
null
null
null
src/python/config/parser/test_parsing.py
ncsa/NCSA-Genomics_MGC_GenomeGPS_CromwelWDL
4611896ea1bb50df50120752712e8d4b32a6d023
[ "MIT" ]
null
null
null
src/python/config/parser/test_parsing.py
ncsa/NCSA-Genomics_MGC_GenomeGPS_CromwelWDL
4611896ea1bb50df50120752712e8d4b32a6d023
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import unittest from config.parser.parsing import Parser class TestParser(unittest.TestCase): # Create an instance of the Parser class parser_inst = Parser(job_id="NA") # Turn the project logger off during UnitTesting, so the end user is not confused by error messages # (So...
53.538462
120
0.578544
895
8,352
5.048045
0.201117
0.058433
0.048915
0.065073
0.674635
0.608676
0.590969
0.564409
0.536078
0.536078
0
0.012156
0.320402
8,352
155
121
53.883871
0.783827
0.119013
0
0.398148
0
0
0.188594
0.037199
0
0
0
0
0.12963
1
0.148148
false
0.018519
0.018519
0
0.185185
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
9088061118cf617385915ed728847f4d1b206103
862
py
Python
scripts/aggregate_membership.py
LibrariesHacked/wuthering-hacks
c8e87dda86b05aaf9c23a5606472dc72c0aff603
[ "CC0-1.0", "MIT" ]
5
2016-10-02T13:49:29.000Z
2020-02-12T00:09:14.000Z
scripts/aggregate_membership.py
LibrariesHacked/wuthering-hacks
c8e87dda86b05aaf9c23a5606472dc72c0aff603
[ "CC0-1.0", "MIT" ]
null
null
null
scripts/aggregate_membership.py
LibrariesHacked/wuthering-hacks
c8e87dda86b05aaf9c23a5606472dc72c0aff603
[ "CC0-1.0", "MIT" ]
null
null
null
## Requires Python v3 and pandas (pip install pandas) ## This script takes the newcastle membership csv and attempts ## to reduce the file size as much as possible through aggregation and lookups ## Two lookup files to provide library names and dates are also created. import csv import os import re from datetime impor...
30.785714
100
0.732019
117
862
5.247863
0.57265
0.065147
0.045603
0.068404
0.087948
0
0
0
0
0
0
0.001393
0.167053
862
28
101
30.785714
0.85376
0.296984
0
0
0
0
0.152174
0.068562
0
0
0
0
0
1
0.117647
false
0
0.294118
0
0.470588
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
9088b5572da41984c1697dbaf7d670a85f1c124c
10,535
py
Python
mdl/contracts/contract.py
fafhrd91/mdl
daada030649305df02f65b77ebdf41cf976a870e
[ "Apache-2.0" ]
3
2016-12-28T09:31:27.000Z
2017-01-09T18:38:46.000Z
mdl/contracts/contract.py
fafhrd91/mdl
daada030649305df02f65b77ebdf41cf976a870e
[ "Apache-2.0" ]
1
2019-05-04T18:14:24.000Z
2019-05-04T18:14:24.000Z
mdl/contracts/contract.py
fafhrd91/mdl
daada030649305df02f65b77ebdf41cf976a870e
[ "Apache-2.0" ]
null
null
null
"""Interface contract object""" from __future__ import absolute_import import six import sys import logging from contracts.interface import ContractException, ContractNotRespected from .extension import ID from ..declarations import implementer from ..verify import verifyObject from ..interface import InterfaceClass ...
31.541916
79
0.57608
1,140
10,535
5.098246
0.144737
0.027529
0.013248
0.01755
0.407605
0.344804
0.32691
0.319855
0.303338
0.294563
0
0.001698
0.328999
10,535
333
80
31.636637
0.820484
0.038159
0
0.406639
0
0
0.067644
0
0
0
0
0
0
1
0.099585
false
0
0.037344
0.008299
0.228216
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
908923bb1a1d3dddbedc40a59f1c9790842c688e
3,979
py
Python
hourglass/train.py
ziqi123/AutoParking
bc2c86fe93892c0502cc7cf689d8ec072d2974d1
[ "Apache-2.0" ]
null
null
null
hourglass/train.py
ziqi123/AutoParking
bc2c86fe93892c0502cc7cf689d8ec072d2974d1
[ "Apache-2.0" ]
null
null
null
hourglass/train.py
ziqi123/AutoParking
bc2c86fe93892c0502cc7cf689d8ec072d2974d1
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch import torchvision.transforms as transforms from dataloader.dataloader_hourglass import heatmap_Dataloader import os from network import KFSGNet import torchvision.transforms as transforms os.environ['CUDA_VISIBLE_DEVICES'] = '2' # Device configuration device = torch.device('cuda' if t...
27.631944
133
0.619754
535
3,979
4.442991
0.340187
0.069415
0.00631
0.010097
0.082457
0.026925
0.026925
0
0
0
0
0.04281
0.230963
3,979
143
134
27.825175
0.733987
0.320432
0
0.028986
0
0
0.099773
0.007937
0
0
0
0
0
1
0.014493
false
0
0.101449
0
0.130435
0.043478
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
908ab1d5d4950850ce0d224a0c7fe40fe59aa364
2,406
py
Python
cms/management/commands/subcommands/copy_lang.py
mightyiam/django-cms
09bf76d2f3d81fdaebcfb7e9ed4ecd4769fa8c25
[ "BSD-3-Clause" ]
2
2018-05-17T02:49:49.000Z
2019-08-20T02:07:44.000Z
cms/management/commands/subcommands/copy_lang.py
mightyiam/django-cms
09bf76d2f3d81fdaebcfb7e9ed4ecd4769fa8c25
[ "BSD-3-Clause" ]
2
2019-02-13T07:58:23.000Z
2019-02-13T07:58:27.000Z
cms/management/commands/subcommands/copy_lang.py
mightyiam/django-cms
09bf76d2f3d81fdaebcfb7e9ed4ecd4769fa8c25
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from optparse import make_option from django.conf import settings from django.core.management.base import BaseCommand, CommandError from cms.api import copy_plugins_to_language from cms.models import Title, Page from cms.utils.i18n import get_language_list class CopyLangCommand(BaseCommand)...
37.59375
119
0.588944
301
2,406
4.55814
0.352159
0.06414
0.043732
0.041545
0.12828
0.081633
0
0
0
0
0
0.004316
0.325852
2,406
63
120
38.190476
0.841554
0.029094
0
0.212766
0
0
0.177606
0.009438
0
0
0
0
0.12766
1
0.021277
false
0
0.12766
0
0.212766
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
908cafca02ccd9dbc79045504cbba8cbd1494065
12,221
py
Python
src/onegov/translator_directory/layout.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/layout.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/layout.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from purl import URL from onegov.translator_directory import _ from onegov.core.elements import Block, Link, LinkGroup, Confirm, Intercooler from onegov.core.utils import linkify from onegov.org.layout import DefaultLayout as BaseLayout from onegov.translator_directory.colle...
31.17602
79
0.469274
960
12,221
5.823958
0.177083
0.090503
0.040064
0.044178
0.593275
0.538723
0.489537
0.472545
0.458058
0.458058
0
0.000145
0.43728
12,221
391
80
31.255754
0.812854
0.01432
0
0.616766
0
0
0.078358
0
0
0
0
0
0.002994
1
0.092814
false
0
0.02994
0.047904
0.269461
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
908cc9c6b5ff8ca35a1dc06753afe50c50104b9d
1,169
py
Python
src/dsanalizer/informations.py
perqu/Dataset-Analizer
c12ca74bd4f1e5969f0d90d6115a87ff3afd7f59
[ "MIT" ]
null
null
null
src/dsanalizer/informations.py
perqu/Dataset-Analizer
c12ca74bd4f1e5969f0d90d6115a87ff3afd7f59
[ "MIT" ]
null
null
null
src/dsanalizer/informations.py
perqu/Dataset-Analizer
c12ca74bd4f1e5969f0d90d6115a87ff3afd7f59
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import io def info(df): print("------------DIMENSIONS------------") print("Rows:", df.shape[0]) print("Columns:", df.shape[1]) print("--------------DTYPES--------------") columns = df.columns.tolist() integers = df.select_dtypes("integer").columns.tolist(...
33.4
100
0.544055
140
1,169
4.514286
0.414286
0.102848
0.088608
0
0
0
0
0
0
0
0
0.004362
0.215569
1,169
35
101
33.4
0.684842
0
0
0
0
0
0.2
0.05812
0
0
0
0
0
1
0.032258
false
0
0.096774
0
0.129032
0.258065
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
908ec7d6f30da870417cfcc9194599857d219fff
5,861
py
Python
src/packagedcode/cargo.py
Siddhant-K-code/scancode-toolkit
d1e725d3603a8f96c25f7e3f7595c68999b92a67
[ "Apache-2.0", "CC-BY-4.0" ]
1,511
2015-07-01T15:29:03.000Z
2022-03-30T13:40:05.000Z
src/packagedcode/cargo.py
Siddhant-K-code/scancode-toolkit
d1e725d3603a8f96c25f7e3f7595c68999b92a67
[ "Apache-2.0", "CC-BY-4.0" ]
2,695
2015-07-01T16:01:35.000Z
2022-03-31T19:17:44.000Z
src/packagedcode/cargo.py
Siddhant-K-code/scancode-toolkit
d1e725d3603a8f96c25f7e3f7595c68999b92a67
[ "Apache-2.0", "CC-BY-4.0" ]
540
2015-07-01T15:08:19.000Z
2022-03-31T12:13:11.000Z
# Copyright (c) nexB Inc. and others. All rights reserved. # ScanCode is a trademark of nexB Inc. # SPDX-License-Identifier: Apache-2.0 # See http://www.apache.org/licenses/LICENSE-2.0 for the license text. # See https://github.com/nexB/scancode-toolkit for support or download. # See https://aboutcode.org for more inf...
28.590244
99
0.61696
681
5,861
5.179148
0.270191
0.037426
0.034023
0.025517
0.343068
0.313581
0.269918
0.249504
0.249504
0.249504
0
0.001387
0.26173
5,861
204
100
28.730392
0.813728
0.232384
0
0.20339
0
0
0.078794
0.015431
0
0
0
0
0
1
0.084746
false
0
0.076271
0.008475
0.322034
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
90918aea55bbacc028653f4732ff48d1cf1a76ea
10,268
py
Python
tests/testing/units.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
135
2016-10-21T03:31:49.000Z
2022-03-25T01:22:20.000Z
tests/testing/units.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
35
2017-03-10T17:57:46.000Z
2022-02-18T17:34:16.000Z
tests/testing/units.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
48
2016-12-08T12:03:13.000Z
2022-02-16T09:16:13.000Z
#!/usr/bin/env python2.7 # # Copyright (c) 2016 ARM Limited # All rights reserved # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementa...
34.689189
79
0.602357
1,250
10,268
4.8472
0.2816
0.033009
0.022281
0.027727
0.180393
0.161248
0.126093
0.07592
0.039611
0.039611
0
0.006083
0.295579
10,268
295
80
34.80678
0.831605
0.281847
0
0.145161
0
0
0.12048
0.022495
0
0
0
0
0
1
0.102151
false
0.005376
0.064516
0.032258
0.344086
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
9091ee961b1819c72143e6265ce0d0dcec7d5ad2
19,042
py
Python
mythic-docker/app/routes/routes.py
rmusser01/Mythic
48d3f6b0b1bbb4858e5f43a5c6528644b0751bc9
[ "BSD-3-Clause" ]
934
2020-08-13T15:32:30.000Z
2022-03-31T20:41:21.000Z
mythic-docker/app/routes/routes.py
rmusser01/Mythic
48d3f6b0b1bbb4858e5f43a5c6528644b0751bc9
[ "BSD-3-Clause" ]
88
2020-08-13T18:59:11.000Z
2022-03-31T23:48:18.000Z
mythic-docker/app/routes/routes.py
rmusser01/Mythic
48d3f6b0b1bbb4858e5f43a5c6528644b0751bc9
[ "BSD-3-Clause" ]
161
2020-08-13T17:28:03.000Z
2022-03-19T14:56:34.000Z
from app import ( mythic, links, nginx_port, listen_port, mythic_admin_password, mythic_admin_user, default_operation_name, mythic_db ) import app import asyncpg import redis from peewee_async import Manager from sanic.response import json from sanic import response from ...
41.21645
173
0.589014
2,086
19,042
5.224832
0.189837
0.02202
0.017616
0.021837
0.391779
0.336636
0.28865
0.2069
0.171575
0.152308
0
0.005391
0.308318
19,042
461
174
41.305857
0.822109
0.043798
0
0.3025
0
0.0025
0.148457
0.017598
0
0
0
0
0
1
0.005
false
0.0175
0.0625
0.0025
0.135
0.005
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
90948ab3b394c7cb6e8df8160515b81630f1c311
4,510
py
Python
lib/site_config.py
bruceravel/xraylarch
a8179208872d43bd23453fa0c64680e11bc2b5ed
[ "BSD-3-Clause" ]
null
null
null
lib/site_config.py
bruceravel/xraylarch
a8179208872d43bd23453fa0c64680e11bc2b5ed
[ "BSD-3-Clause" ]
null
null
null
lib/site_config.py
bruceravel/xraylarch
a8179208872d43bd23453fa0c64680e11bc2b5ed
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ site configuration for larch: init_files: list of larch files run (in order) on startup module_path: list of directories to search for larch code history_file: """ from __future__ import print_function import sys import os from os.path import exists, abspath, join from .utils impor...
29.86755
77
0.614634
568
4,510
4.737676
0.304577
0.044965
0.016351
0.013378
0.101821
0.072835
0.072835
0.050539
0.050539
0.050539
0
0.001192
0.255654
4,510
150
78
30.066667
0.800417
0.167627
0
0.13
0
0
0.210299
0.006471
0
0
0
0
0
1
0.06
false
0.01
0.06
0.01
0.13
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
909490610fb0cdfc5860262dba5b4c657bee2b6b
2,898
py
Python
gpath/path_similarity.py
insilichem/gpathfinder
e6c7df14d473857acb007efbae3cc7b4fee1b330
[ "Apache-2.0" ]
5
2020-03-22T20:21:47.000Z
2022-03-08T07:50:25.000Z
gpath/path_similarity.py
insilichem/gpathfinder
e6c7df14d473857acb007efbae3cc7b4fee1b330
[ "Apache-2.0" ]
2
2020-04-09T10:49:26.000Z
2022-03-08T04:37:27.000Z
gpath/path_similarity.py
insilichem/gpathfinder
e6c7df14d473857acb007efbae3cc7b4fee1b330
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############## # GPathFinder: Identification of ligand pathways by a multi-objective # genetic algorithm # # https://github.com/insilichem/gpathfinder # # Copyright 2019 José-Emilio Sánchez Aparicio, Giuseppe Sciortino, # Daniel Villadrich Herrmannsdoerfer, Pablo Orenes C...
36.683544
77
0.689786
383
2,898
5.177546
0.503916
0.030257
0.013111
0.016137
0.044377
0.044377
0
0
0
0
0
0.012849
0.221187
2,898
79
78
36.683544
0.865751
0.676674
0
0.111111
0
0
0.022901
0
0
0
0
0
0
1
0.111111
false
0
0.166667
0
0.5
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
9096de4357058d79ebeafc310708bd4b4560fdc0
1,666
py
Python
Schedule/groupagenda/urls.py
f0rdream/party-time
3b596043627383859042a6e70167e4304bab9a92
[ "MIT" ]
null
null
null
Schedule/groupagenda/urls.py
f0rdream/party-time
3b596043627383859042a6e70167e4304bab9a92
[ "MIT" ]
null
null
null
Schedule/groupagenda/urls.py
f0rdream/party-time
3b596043627383859042a6e70167e4304bab9a92
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from .views import (GroupListAPIView, GroupCreateAPIView, AgendaListAPIView, AgendaDetailAPIView, AgendaCreateAPIView, AgendaPostAPIView, agenda_create, ...
57.448276
120
0.614046
184
1,666
5.375
0.25
0.048534
0.101112
0.070779
0.202224
0.157735
0.144591
0.130435
0.079879
0
0
0.004505
0.20048
1,666
28
121
59.5
0.737988
0.052221
0
0
0
0.038462
0.285533
0.178299
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
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
909914b3df8b80013e491c569d64a1ce700cd6e4
630
py
Python
main_test_dad.py
AdamLohSg/GTA
bf6a745a6e28e365466e76360a15ca10ce61e009
[ "Apache-2.0" ]
8
2022-01-19T20:47:36.000Z
2022-03-20T05:11:04.000Z
main_test_dad.py
AdamLohSg/GTA
bf6a745a6e28e365466e76360a15ca10ce61e009
[ "Apache-2.0" ]
2
2022-02-17T06:14:25.000Z
2022-02-17T08:43:57.000Z
main_test_dad.py
AdamLohSg/GTA
bf6a745a6e28e365466e76360a15ca10ce61e009
[ "Apache-2.0" ]
5
2022-02-15T04:16:27.000Z
2022-03-29T01:21:41.000Z
import torch from models.gta import GraphTemporalEmbedding if __name__ == '__main__': device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') x = torch.randn(32, 96, 122) model = GraphTemporalEmbedding(122, 96, 3) y = model(x) print(y.size()) # model = AdaGraphSage(num_nodes=10, s...
39.375
78
0.647619
93
630
4.225806
0.44086
0.076336
0.091603
0.066158
0.239186
0.16285
0.16285
0
0
0
0
0.064202
0.184127
630
16
79
39.375
0.700389
0.490476
0
0
0
0
0.047923
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.125
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
909b082c85db7f41252c1dd15a6d1058abd2c236
2,330
py
Python
prml/dimreduction/bayesian_pca.py
andresmasegosa/PRML-CoreSets
fb768debb15e3ff6f5b65b7224915a41c1493f3d
[ "MIT" ]
null
null
null
prml/dimreduction/bayesian_pca.py
andresmasegosa/PRML-CoreSets
fb768debb15e3ff6f5b65b7224915a41c1493f3d
[ "MIT" ]
null
null
null
prml/dimreduction/bayesian_pca.py
andresmasegosa/PRML-CoreSets
fb768debb15e3ff6f5b65b7224915a41c1493f3d
[ "MIT" ]
null
null
null
import numpy as np from prml.dimreduction.pca import PCA class BayesianPCA(PCA): def fit(self, X, iter_max=100, initial="random"): """ empirical bayes estimation of pca parameters Parameters ---------- X : (sample_size, n_features) ndarray input data i...
36.40625
101
0.529185
343
2,330
3.542274
0.276968
0.065844
0.034568
0.019753
0.296296
0.271605
0.271605
0.228807
0.184362
0.184362
0
0.018216
0.316738
2,330
63
102
36.984127
0.744975
0.223176
0
0.058824
0
0
0.035907
0
0
0
0
0
0
1
0.088235
false
0
0.058824
0
0.176471
0.029412
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
909b242da63999e1207271fb27d3b19ba2f0e8e9
11,492
py
Python
mne/time_frequency/psd.py
jnvandermeer/mne-python
143a1fbfd2a68a0ce8d700da9299564de0b92334
[ "BSD-3-Clause" ]
null
null
null
mne/time_frequency/psd.py
jnvandermeer/mne-python
143a1fbfd2a68a0ce8d700da9299564de0b92334
[ "BSD-3-Clause" ]
2
2016-02-27T13:43:15.000Z
2018-07-18T19:44:45.000Z
mne/time_frequency/psd.py
jnvandermeer/mne-python
143a1fbfd2a68a0ce8d700da9299564de0b92334
[ "BSD-3-Clause" ]
1
2017-03-05T20:44:07.000Z
2017-03-05T20:44:07.000Z
# Authors : Alexandre Gramfort, alexandre.gramfort@telecom-paristech.fr (2011) # Denis A. Engemann <denis.engemann@gmail.com> # License : BSD 3-clause import numpy as np from ..parallel import parallel_func from ..io.pick import _pick_data_channels from ..utils import logger, verbose, _time_mask from ..fixe...
38.563758
79
0.62661
1,637
11,492
4.242517
0.201588
0.021886
0.038301
0.014975
0.49388
0.464795
0.441037
0.413535
0.388193
0.374082
0
0.009482
0.284198
11,492
297
80
38.693603
0.834792
0.530108
0
0.057471
0
0
0.083457
0
0
0
0
0
0
1
0.068966
false
0
0.103448
0
0.241379
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
909b5fdd491dd149598afad1dcf2d6d1cdc7dcc1
600
py
Python
src/models/layers/feature.py
icycookies/dd_benchmark
5551c0654d3dc30d72b817096d0877a02f28f116
[ "MIT" ]
2
2021-08-01T13:02:41.000Z
2021-08-01T14:39:44.000Z
src/models/layers/feature.py
icycookies/dd_benchmark
5551c0654d3dc30d72b817096d0877a02f28f116
[ "MIT" ]
null
null
null
src/models/layers/feature.py
icycookies/dd_benchmark
5551c0654d3dc30d72b817096d0877a02f28f116
[ "MIT" ]
1
2021-08-01T14:39:45.000Z
2021-08-01T14:39:45.000Z
import torch import torch.nn as nn class MLP(nn.Module): def __init__(self, num_features, hidden_sizes, dropout): super().__init__() self.layers = nn.ModuleList( [nn.Linear(num_features, hidden_sizes[0])] + [nn.Linear(hidden_sizes[i], hidden_sizes[i + 1]) for i in range(len(...
31.578947
99
0.576667
81
600
4.08642
0.407407
0.166163
0.102719
0.132931
0
0
0
0
0
0
0
0.007143
0.3
600
19
100
31.578947
0.780952
0
0
0
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.117647
0
0.352941
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
909b69d30b3ae1f1f238868bd4ff4b5d2afdace9
27,662
py
Python
src/kanone/adapter/tx.py
doncatnip/kanone
1f149f69f4f9dbb49dd29153fd0366cde68c2b85
[ "Unlicense" ]
5
2015-06-14T22:56:10.000Z
2017-05-29T07:59:35.000Z
src/kanone/adapter/tx.py
doncatnip/kanone
1f149f69f4f9dbb49dd29153fd0366cde68c2b85
[ "Unlicense" ]
5
2019-03-19T13:39:26.000Z
2020-11-03T20:01:46.000Z
src/kanone/adapter/tx.py
doncatnip/kanone
1f149f69f4f9dbb49dd29153fd0366cde68c2b85
[ "Unlicense" ]
null
null
null
""" Twisted adapter for Kanone """ from twisted.python.failure import Failure from twisted.internet import defer from ..lib import Invalid from ..util import varargs2kwargs import logging, sys log = logging.getLogger( __name__ ) # hacky and redundant, but it'll do for now .. # TODO: move to proper twisted specific c...
30.431243
132
0.521654
2,568
27,662
5.514408
0.105919
0.033049
0.018078
0.021185
0.477297
0.42038
0.355201
0.319963
0.303086
0.273356
0
0.001022
0.398814
27,662
908
133
30.464758
0.850511
0.01399
0
0.54073
0
0
0.012115
0
0
0
0
0.001101
0
1
0.057584
false
0.009831
0.021067
0.001404
0.126404
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
909c067225e930569a068986504ae450bf7106ff
3,187
py
Python
ferry/crawler/fetch_demand.py
coursetable/ferry
f369b9588557c359af8589f2575a03493d6b08b6
[ "MIT" ]
4
2020-11-12T19:37:06.000Z
2021-12-14T01:38:39.000Z
ferry/crawler/fetch_demand.py
coursetable/ferry
f369b9588557c359af8589f2575a03493d6b08b6
[ "MIT" ]
96
2020-09-08T05:17:17.000Z
2022-03-31T23:12:51.000Z
ferry/crawler/fetch_demand.py
coursetable/ferry
f369b9588557c359af8589f2575a03493d6b08b6
[ "MIT" ]
2
2021-03-03T23:02:40.000Z
2021-06-17T23:33:05.000Z
""" Fetches demand statistics. Modified from Dan Zhao Original article: https://yaledailynews.com/blog/2020/01/10/yales-most-popular-courses/ Github: https://github.com/iamdanzhao/yale-popular-classes README: https://github.com/iamdanzhao/yale-popular-classes/blob/master/data-guide/course_data_guide.md """ import ...
29.509259
94
0.671478
403
3,187
5.116625
0.389578
0.050436
0.036857
0.021823
0.13773
0.13773
0.13773
0.056256
0.056256
0.056256
0
0.012805
0.240351
3,187
107
95
29.785047
0.83891
0.253216
0
0
0
0
0.110538
0.054194
0
0
0
0
0
1
0.021277
false
0.021277
0.191489
0
0.255319
0.06383
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
909e429cd3c93b342a1a4e97e4084847d6b07a78
3,476
py
Python
main.py
tarunsinghal92/indeedscrapperlatest
2c7fd920d115764192bf5f7bf8fd3d30aa6ec2b4
[ "MIT" ]
15
2019-07-31T11:48:28.000Z
2022-02-25T13:55:23.000Z
main.py
tarunsinghal92/indeedscrapperlatest
2c7fd920d115764192bf5f7bf8fd3d30aa6ec2b4
[ "MIT" ]
null
null
null
main.py
tarunsinghal92/indeedscrapperlatest
2c7fd920d115764192bf5f7bf8fd3d30aa6ec2b4
[ "MIT" ]
14
2019-02-20T21:44:39.000Z
2022-02-16T11:35:27.000Z
# import packages import requests import pandas as pd import time from functions import * # limit per sity max_results_per_city = 100 # db of city city_set = ['New+York','Toronto','Las+Vegas'] # job roles job_set = ['business+analyst','data+scientist'] # file num file = 1 # from where to skip SKIPPER = 0 # lo...
29.709402
183
0.467779
381
3,476
4.133858
0.335958
0.062222
0.099048
0.088889
0.096508
0.062222
0.062222
0.041905
0.041905
0
0
0.008973
0.4229
3,476
116
184
29.965517
0.776171
0.18901
0
0
0
0
0.091628
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
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
909f78a9a426fedd3532cae3c362b0e27f684e37
4,973
py
Python
L0_serial.py
RL-WWW/ISST
42b656686fa9660794007a0bc00a7177937410e9
[ "BSD-3-Clause" ]
5
2021-01-24T13:19:45.000Z
2021-04-05T15:49:35.000Z
L0_serial.py
RL-WWW/ISST
42b656686fa9660794007a0bc00a7177937410e9
[ "BSD-3-Clause" ]
null
null
null
L0_serial.py
RL-WWW/ISST
42b656686fa9660794007a0bc00a7177937410e9
[ "BSD-3-Clause" ]
null
null
null
# Import Libraries import numpy as np import cv2 import argparse import time # Import User Libraries import L0_helpers # Image File Path image_r = "images/flowers.jpg" image_w = "out_serial.png" # L0 minimization parameters kappa = 2.0 _lambda = 2e-2 # Verbose output verbose = False def L0_smooth(input_path, outpu...
26.593583
90
0.575508
797
4,973
3.480552
0.2133
0.051911
0.030281
0.019466
0.218818
0.179885
0.157174
0.059841
0.020187
0.020187
0
0.047219
0.233461
4,973
186
91
26.736559
0.680483
0.154434
0
0.137615
0
0
0.132597
0
0
0
0
0
0.009174
1
0.009174
false
0
0.045872
0
0.055046
0.119266
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
909f8409bcfac0d98c71ec79e9110765c9b7b295
2,565
py
Python
data_processing/signal_downsampling.py
HassanHayat08/Interpretable-CNN-for-Big-Five-Personality-Traits-using-Audio-Data
7149e78736611f07a1c7c4adbdf24ae03011e549
[ "MIT" ]
9
2020-09-26T23:52:49.000Z
2021-10-04T00:08:23.000Z
data_processing/signal_downsampling.py
HassanHayat08/Interpretable-CNN-for-Big-Five-Personality-Traits-using-Audio-Data
7149e78736611f07a1c7c4adbdf24ae03011e549
[ "MIT" ]
null
null
null
data_processing/signal_downsampling.py
HassanHayat08/Interpretable-CNN-for-Big-Five-Personality-Traits-using-Audio-Data
7149e78736611f07a1c7c4adbdf24ae03011e549
[ "MIT" ]
2
2021-04-06T13:02:24.000Z
2021-12-06T09:03:24.000Z
### Interpretable cnn for big five personality traits using audio data ### ### This script downsamples 41000 kz signal into 4000 kz signal ### from __future__ import absolute_import, division, print_function import pathlib import random import csv import numpy as np from scipy.io import wavfile import tensorflow as t...
29.482759
121
0.670955
384
2,565
4.273438
0.382813
0.043876
0.021938
0.02925
0.023157
0
0
0
0
0
0
0.023763
0.196101
2,565
86
122
29.825581
0.772066
0.111891
0
0
0
0
0.050605
0.025078
0
0
0
0
0
1
0.033333
false
0
0.15
0
0.216667
0.033333
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
90a2c66069c33df69aa851c8c0f49466dd43d14e
2,127
py
Python
model_search/search/common_test.py
LinqCod/model_search
d90bc39994bc2a5f5028035ac954f796eda03310
[ "Apache-2.0" ]
null
null
null
model_search/search/common_test.py
LinqCod/model_search
d90bc39994bc2a5f5028035ac954f796eda03310
[ "Apache-2.0" ]
null
null
null
model_search/search/common_test.py
LinqCod/model_search
d90bc39994bc2a5f5028035ac954f796eda03310
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.227273
74
0.649741
260
2,127
5.103846
0.473077
0.09043
0.081387
0.024115
0.049736
0
0
0
0
0
0
0.019778
0.239304
2,127
65
75
32.723077
0.800371
0.283968
0
0.075
0
0
0.18617
0.029255
0
0
0
0
0.1
1
0.075
false
0
0.075
0
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
90a3029cbc5a3d0ba677696927ab7f1da401c62e
588
py
Python
model-builder/skrutil/deprecate_util.py
DaYeSquad/worktilerwdemo
03fbc18dcba4881628cf790f2f0cd7e6f9aa130f
[ "MIT" ]
5
2016-05-13T15:23:41.000Z
2019-05-29T08:23:25.000Z
model-builder/skrutil/deprecate_util.py
DaYeSquad/worktilerwdemo
03fbc18dcba4881628cf790f2f0cd7e6f9aa130f
[ "MIT" ]
null
null
null
model-builder/skrutil/deprecate_util.py
DaYeSquad/worktilerwdemo
03fbc18dcba4881628cf790f2f0cd7e6f9aa130f
[ "MIT" ]
2
2016-06-08T08:22:42.000Z
2019-02-25T08:46:54.000Z
import warnings def deprecated(func): """This is a decorator which can be used to mark functions as deprecated. It will result in a warning being emmitted when the function is used.""" def newFunc(*args, **kwargs): warnings.simplefilter('always', DeprecationWarning) warnings.warn("Call...
34.588235
72
0.681973
69
588
5.405797
0.608696
0.053619
0
0
0
0
0
0
0
0
0
0
0.229592
588
16
73
36.75
0.8234
0.238095
0
0
0
0
0.085253
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0
0.454545
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
90a433b0faab6ec973b072f69d11760a7c0bb8ef
3,381
py
Python
oem_storage_file/main.py
OpenEntityMap/oem-storage-file
cce7e3979c413273aaa224799cfe6b86bad7627e
[ "BSD-3-Clause" ]
null
null
null
oem_storage_file/main.py
OpenEntityMap/oem-storage-file
cce7e3979c413273aaa224799cfe6b86bad7627e
[ "BSD-3-Clause" ]
null
null
null
oem_storage_file/main.py
OpenEntityMap/oem-storage-file
cce7e3979c413273aaa224799cfe6b86bad7627e
[ "BSD-3-Clause" ]
null
null
null
from oem_framework.models.core import ModelRegistry from oem_framework.plugin import Plugin from oem_framework.storage import ProviderStorage from oem_storage_file.core.base import BaseFileStorage from oem_storage_file.database import DatabaseFileStorage import appdirs import os class ProviderFileStorage(ProviderSto...
27.266129
89
0.615794
388
3,381
5.177835
0.216495
0.089597
0.063713
0.039821
0.410154
0.372325
0.324042
0.307616
0.269786
0.168243
0
0.003325
0.288376
3,381
123
90
27.487805
0.831671
0.079266
0
0.211268
0
0
0.024588
0
0
0
0
0
0
1
0.140845
false
0
0.098592
0.056338
0.394366
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
90a586abf2c437f6ccd419108bdf5f296a7fed74
5,630
py
Python
tests/model/test_ocrd_page.py
j23d/core
b063737a5cc4701fb507328b5940919848934ef1
[ "Apache-2.0" ]
null
null
null
tests/model/test_ocrd_page.py
j23d/core
b063737a5cc4701fb507328b5940919848934ef1
[ "Apache-2.0" ]
null
null
null
tests/model/test_ocrd_page.py
j23d/core
b063737a5cc4701fb507328b5940919848934ef1
[ "Apache-2.0" ]
null
null
null
from tests.base import TestCase, main, assets from ocrd_models.ocrd_page import ( AlternativeImageType, PcGtsType, PageType, TextRegionType, TextLineType, WordType, GlyphType, parseString, parse, to_xml ) simple_page = """\ <PcGts xmlns="http://schema.primaresearch.org/PAGE/gt...
43.307692
298
0.649556
689
5,630
5.184325
0.32656
0.040314
0.040314
0.033595
0.37318
0.363102
0.326148
0.277716
0.229563
0.200448
0
0.06064
0.206217
5,630
129
299
43.643411
0.738644
0.108881
0
0.021277
0
0.085106
0.40169
0.062789
0
0
0
0
0.138298
1
0.085106
false
0
0.021277
0
0.117021
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
90a811a1c9219aef26a6c2b2f33c1210f92378af
643
py
Python
athena/athena/algorithms/NetworkAnalysis/Components.py
aculich/openmappr
c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba
[ "MIT" ]
19
2018-04-05T23:33:33.000Z
2022-03-24T00:18:20.000Z
athena/athena/algorithms/NetworkAnalysis/Components.py
aculich/openmappr
c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba
[ "MIT" ]
13
2018-01-10T23:31:11.000Z
2018-07-20T12:55:02.000Z
athena/athena/algorithms/NetworkAnalysis/Components.py
aculich/openmappr
c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba
[ "MIT" ]
5
2018-02-12T05:33:19.000Z
2019-09-21T22:43:02.000Z
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*- """ Created on Wed Aug 13 15:35:50 2014 @author: rich """ import networkx as nx # assign component IDs to graph components, id=0 is giant component def componentIDs(network): # networkx algo only works on undirected network if isinstance(network, nx.DiGraph): ...
26.791667
82
0.659409
86
643
4.918605
0.639535
0.042553
0.047281
0
0
0
0
0
0
0
0
0.029821
0.217729
643
24
83
26.791667
0.811133
0.37014
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
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
90aa5dbc6e140871e083e339d177b3478bf2b89d
526
py
Python
ci/test_filename.py
climateamante/linode.docs
9a2d26db11ab439f354bb9027eb62eda7453ff0b
[ "CC-BY-4.0" ]
null
null
null
ci/test_filename.py
climateamante/linode.docs
9a2d26db11ab439f354bb9027eb62eda7453ff0b
[ "CC-BY-4.0" ]
null
null
null
ci/test_filename.py
climateamante/linode.docs
9a2d26db11ab439f354bb9027eb62eda7453ff0b
[ "CC-BY-4.0" ]
null
null
null
import pytest import itertools # Cartesian product of file names and extensions # e.g. README.txt, README.md, CHANGELOG.txt, CHANGELOG.md ... file_extensions = ['txt', 'md'] names = ['README', 'CHANGELOG', 'CONTRIBUTING', 'LICENSE', 'CODE_OF_CONDUCT'] exempt_files = [('.'.join(x)) for x in itertools.product(names, fil...
35.066667
81
0.709125
73
526
4.972603
0.534247
0.082645
0
0
0
0
0
0
0
0
0
0
0.159696
526
14
82
37.571429
0.821267
0.201521
0
0
0
0
0.199041
0
0
0
0
0
0.2
1
0.1
false
0
0.2
0
0.3
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
90aa7fec2a73694bfef5aa1b7617bf2c7fb170fa
1,570
py
Python
test/test_sshtransport.py
stribika/sshlabs
421e62433aab0e21456254a0b2c5feb830d0c77c
[ "Unlicense" ]
76
2015-01-24T19:18:31.000Z
2021-03-11T11:17:14.000Z
test/test_sshtransport.py
stribika/sshlabs
421e62433aab0e21456254a0b2c5feb830d0c77c
[ "Unlicense" ]
8
2015-01-24T18:59:57.000Z
2017-06-07T13:07:34.000Z
test/test_sshtransport.py
stribika/sshlabs
421e62433aab0e21456254a0b2c5feb830d0c77c
[ "Unlicense" ]
21
2015-01-24T18:56:52.000Z
2021-03-10T14:33:14.000Z
import sys import unittest sys.path.append("../main") from sshtransport import * class FakeSocket(object): def __init__(self): self.recv_buffer = b"" self.send_buffer = b"" def recv(self, n): resp = self.recv_buffer[:n] self.recv_buffer = self.recv_buffer[n:] return r...
32.708333
107
0.658599
199
1,570
5.085427
0.246231
0.094862
0.106719
0.094862
0.395257
0.395257
0.337945
0.337945
0.27668
0.27668
0
0.055016
0.212739
1,570
47
108
33.404255
0.763754
0
0
0.210526
0
0.052632
0.171338
0.145223
0
0
0
0
0.157895
1
0.184211
false
0
0.078947
0
0.368421
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
90ab146abe91415bc0bc793fedf75c04fb9406e9
7,357
py
Python
activity-classification/main_scenario_baseline.py
bstollnitz/grad-school-portfolio
484e00cc4857de2eda6848f61a1e6fbf26309d42
[ "MIT" ]
2
2019-10-24T16:40:44.000Z
2020-06-21T03:56:18.000Z
activity-classification/main_scenario_baseline.py
bstollnitz/portfolio
484e00cc4857de2eda6848f61a1e6fbf26309d42
[ "MIT" ]
null
null
null
activity-classification/main_scenario_baseline.py
bstollnitz/portfolio
484e00cc4857de2eda6848f61a1e6fbf26309d42
[ "MIT" ]
null
null
null
import random import time from pathlib import Path from typing import Dict, List, Tuple import numpy as np import torch from torch.utils import data from torch.utils.tensorboard import SummaryWriter import utils_graph import utils_io import utils_nn from feed_forward import FeedForward from hyperparameters import Hyp...
35.887805
85
0.703819
885
7,357
5.572881
0.212429
0.044607
0.035685
0.021087
0.26399
0.202352
0.127332
0.090835
0.090835
0.070154
0
0.011506
0.208509
7,357
205
86
35.887805
0.83548
0.173304
0
0.081301
0
0
0.114866
0.012652
0
0
0
0
0
1
0.04878
false
0
0.121951
0
0.195122
0.04878
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
90ad0d873a774414aef935d258105887a6980e80
3,322
py
Python
flit_core/flit_core/tests/test_common.py
rahul-deepsource/flit
5d5be0a9c6f77a2dbbffd3369ad8ac7813a926bf
[ "BSD-3-Clause" ]
null
null
null
flit_core/flit_core/tests/test_common.py
rahul-deepsource/flit
5d5be0a9c6f77a2dbbffd3369ad8ac7813a926bf
[ "BSD-3-Clause" ]
null
null
null
flit_core/flit_core/tests/test_common.py
rahul-deepsource/flit
5d5be0a9c6f77a2dbbffd3369ad8ac7813a926bf
[ "BSD-3-Clause" ]
1
2021-06-24T10:21:43.000Z
2021-06-24T10:21:43.000Z
import os.path as osp from unittest import TestCase import pytest from flit_core.common import ( Module, get_info_from_module, InvalidVersion, NoVersionError, check_version, normalize_file_permissions, Metadata ) samples_dir = osp.join(osp.dirname(__file__), 'samples') class ModuleTests(TestCase): def te...
35.340426
112
0.599639
364
3,322
5.217033
0.271978
0.068457
0.04634
0.071617
0.347551
0.300158
0.148499
0.148499
0.103212
0.044234
0
0.034956
0.276641
3,322
93
113
35.72043
0.755306
0.006623
0
0.08
0
0
0.157416
0.008493
0
0
0
0
0.226667
1
0.093333
false
0
0.106667
0
0.213333
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
90b5ceb756a46b298c1cfb2d69501dea6821b502
8,354
py
Python
parcels/parcels/examples/example_peninsula.py
pdnooteboom/NA_forams
789b45d8cc14225f31242c9c648f4f36c76d2fc4
[ "MIT" ]
1
2021-04-12T16:07:42.000Z
2021-04-12T16:07:42.000Z
parcels/parcels/examples/example_peninsula.py
pdnooteboom/NA_forams
789b45d8cc14225f31242c9c648f4f36c76d2fc4
[ "MIT" ]
null
null
null
parcels/parcels/examples/example_peninsula.py
pdnooteboom/NA_forams
789b45d8cc14225f31242c9c648f4f36c76d2fc4
[ "MIT" ]
1
2021-04-12T16:07:45.000Z
2021-04-12T16:07:45.000Z
from parcels import FieldSet, ParticleSet, ScipyParticle, JITParticle, Variable from parcels import AdvectionRK4, AdvectionEE, AdvectionRK45 from argparse import ArgumentParser import numpy as np import math # NOQA import pytest from datetime import timedelta as delta ptype = {'scipy': ScipyParticle, 'jit': JITParti...
43.061856
112
0.649988
1,141
8,354
4.703769
0.284838
0.003354
0.017887
0.003726
0.289361
0.260108
0.213527
0.200112
0.185579
0.185579
0
0.025677
0.221451
8,354
193
113
43.284974
0.799508
0.253172
0
0.189655
0
0
0.130968
0
0
0
0
0
0.034483
1
0.051724
false
0
0.077586
0
0.181034
0.034483
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
90b6494c1b5e12c59216a90f809c6005fdb48a7e
333
py
Python
December Month Challenge/4KthfactorN.py
adesh-gadge/LeetCodePractice
4b142c102e64ec93465af7f4193762e8fd2866ec
[ "MIT" ]
null
null
null
December Month Challenge/4KthfactorN.py
adesh-gadge/LeetCodePractice
4b142c102e64ec93465af7f4193762e8fd2866ec
[ "MIT" ]
null
null
null
December Month Challenge/4KthfactorN.py
adesh-gadge/LeetCodePractice
4b142c102e64ec93465af7f4193762e8fd2866ec
[ "MIT" ]
null
null
null
class Solution: def kthFactor(self, n: int, k: int) -> int: s1 = set() s2 = set() for i in range(1,int(n**0.5)+1): if n%i ==0: s1.add(i) s2.add(int(n/i)) l = list(s1|s2) l.sort() if k > len(l): return -1 ...
25.615385
47
0.381381
52
333
2.442308
0.480769
0.062992
0
0
0
0
0
0
0
0
0
0.071823
0.456456
333
13
48
25.615385
0.629834
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.307692
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
90b74a470408ddeb782e48bf20e39ffd4457275e
1,755
py
Python
dipy/utils/tests/test_arrfuncs.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
dipy/utils/tests/test_arrfuncs.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
dipy/utils/tests/test_arrfuncs.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
""" Testing array utilities """ import sys import numpy as np from ..arrfuncs import as_native_array, pinv, eigh from numpy.testing import (assert_array_almost_equal, assert_array_equal) from nose.tools import assert_true, assert_false, assert_equal, assert_raises NATIVE_ORDER = '<' if ...
29.745763
77
0.616524
256
1,755
4.027344
0.234375
0.085354
0.098933
0.128031
0.168768
0.168768
0.112512
0.075655
0.075655
0.075655
0
0.022533
0.266667
1,755
58
78
30.258621
0.778555
0.017664
0
0.139535
0
0
0.01049
0
0
0
0
0
0.325581
1
0.069767
false
0
0.116279
0
0.186047
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
90b7ba0980ae3d667866aa6f68a2acda5b4f0621
1,895
py
Python
src/vtra/plot/rail_network_map.py
GFDRR/vietnam-transport
71f6fc8cb7f1ca7bccb9a29d544869b442e68bfc
[ "MIT" ]
3
2018-07-09T12:15:46.000Z
2020-12-03T07:02:23.000Z
src/vtra/plot/rail_network_map.py
GFDRR/vietnam-transport
71f6fc8cb7f1ca7bccb9a29d544869b442e68bfc
[ "MIT" ]
1
2019-05-09T21:57:20.000Z
2019-05-09T21:57:20.000Z
src/vtra/plot/rail_network_map.py
GFDRR/vietnam-transport
71f6fc8cb7f1ca7bccb9a29d544869b442e68bfc
[ "MIT" ]
2
2018-07-23T12:49:21.000Z
2021-06-03T11:00:44.000Z
"""Rail network map """ import os import sys from collections import OrderedDict import cartopy.crs as ccrs import cartopy.io.shapereader as shpreader import matplotlib.pyplot as plt from vtra.utils import * def main(): config = load_config() output_file = os.path.join(config['paths']['figures'], 'rail-map.p...
28.712121
77
0.604749
239
1,895
4.598326
0.451883
0.050046
0.054595
0.038217
0.175614
0.175614
0.098271
0.098271
0.098271
0.098271
0
0.022064
0.258575
1,895
65
78
29.153846
0.760142
0.017414
0
0.038462
0
0
0.125135
0.024811
0
0
0
0
0
1
0.019231
false
0
0.134615
0
0.153846
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
90b9151bc28db99fb5989633cea86f3faad362ff
4,471
py
Python
pydl/pydlspec2d/tests/test_spec1d.py
jhennawi/pydl
3926aab6fd57c27e13d571156077de41343881c1
[ "BSD-3-Clause" ]
null
null
null
pydl/pydlspec2d/tests/test_spec1d.py
jhennawi/pydl
3926aab6fd57c27e13d571156077de41343881c1
[ "BSD-3-Clause" ]
null
null
null
pydl/pydlspec2d/tests/test_spec1d.py
jhennawi/pydl
3926aab6fd57c27e13d571156077de41343881c1
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- import numpy as np import os from astropy.tests.helper import raises from astropy.utils.data import get_pkg_data_filename from .. import Pydlspec2dException from ..spec1d import (HMF, findspec, spec_append, spec_path, template_metad...
38.543103
79
0.47193
619
4,471
3.332795
0.20517
0.05332
0.066893
0.07174
0.341251
0.276781
0.275812
0.259816
0.247213
0.232186
0
0.101035
0.373518
4,471
115
80
38.878261
0.635487
0.062626
0
0.239583
0
0
0.04771
0.006713
0
0
0
0
0.197917
1
0.083333
false
0
0.0625
0
0.15625
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
90b979db4f0ee9199884997c5ba3cb24bb11e60e
7,800
py
Python
final/good_evaluate.py
wuyuMk7/CSCI8980
9cceffcac7975ee158655f3953e27b502fc383ea
[ "MIT" ]
null
null
null
final/good_evaluate.py
wuyuMk7/CSCI8980
9cceffcac7975ee158655f3953e27b502fc383ea
[ "MIT" ]
null
null
null
final/good_evaluate.py
wuyuMk7/CSCI8980
9cceffcac7975ee158655f3953e27b502fc383ea
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys import os from absl import flags import numpy as np import skimage.io as io import cv2 import matplotlib.pyplot as plt # import tensorflow as tf # from psbody.mesh import Mesh from smpl_webuser.seria...
34.513274
145
0.680385
1,160
7,800
4.324138
0.233621
0.021531
0.014354
0.015949
0.255782
0.195574
0.189195
0.173246
0.128389
0.113636
0
0.04259
0.184231
7,800
225
146
34.666667
0.745717
0.252179
0
0.101449
0
0
0.043606
0.026129
0
0
0
0
0
1
0.036232
false
0
0.166667
0.007246
0.231884
0.043478
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
90ba1f62b3ac0c6dc5b223b48142b7f90d52dc27
4,958
py
Python
textgenrnn/model.py
cosandr/textgenrnn
b2140c1a5704e866ff934fbfad4e14f3c827d439
[ "MIT" ]
null
null
null
textgenrnn/model.py
cosandr/textgenrnn
b2140c1a5704e866ff934fbfad4e14f3c827d439
[ "MIT" ]
null
null
null
textgenrnn/model.py
cosandr/textgenrnn
b2140c1a5704e866ff934fbfad4e14f3c827d439
[ "MIT" ]
null
null
null
from keras.optimizers import RMSprop from keras.layers import Input, Embedding, Dense, LSTM, Bidirectional, GRU from keras.layers import concatenate, Reshape, SpatialDropout1D from keras.models import Model from keras import backend as K from .AttentionWeightedAverage import AttentionWeightedAverage def textgenrnn_mo...
40.308943
103
0.583905
527
4,958
5.275142
0.235294
0.028058
0.028777
0.046043
0.456835
0.428777
0.380576
0.378417
0.378417
0.378417
0
0.007334
0.312424
4,958
122
104
40.639344
0.808155
0.018354
0
0.344444
0
0
0.095269
0.010417
0
0
0
0
0
1
0.033333
false
0
0.088889
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
90c01fddb271dd8ab9c578d5f65f7244cd0b0416
2,824
py
Python
Lab 2/utils/inference_utils.py
davedecoder/aws-deepcomposer-samples
34f94a04436dc3fa0ded8c353e0f3260f1b3305e
[ "MIT-0" ]
6
2021-10-11T12:39:01.000Z
2022-03-27T16:01:41.000Z
notebooks/AWS DeepComposer/reinvent-labs/lab-2/utils/inference_utils.py
jesussantana/AWS-Machine-Learning-Foundations
526eddb486fe8398cafcc30184c4ecce49df5816
[ "MIT" ]
null
null
null
notebooks/AWS DeepComposer/reinvent-labs/lab-2/utils/inference_utils.py
jesussantana/AWS-Machine-Learning-Foundations
526eddb486fe8398cafcc30184c4ecce49df5816
[ "MIT" ]
5
2020-05-16T13:06:52.000Z
2020-11-14T11:56:26.000Z
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # us...
46.295082
127
0.725921
384
2,824
5.132813
0.432292
0.064942
0.050736
0.056317
0.219685
0.174531
0.174531
0.113648
0.113648
0.113648
0
0.009167
0.150142
2,824
61
128
46.295082
0.812083
0.403329
0
0.148148
0
0
0.07563
0.05042
0
0
0
0
0
1
0.148148
false
0
0.111111
0
0.37037
0.037037
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
90c1b22f3826d40d5a8ce3040c417f17a6d33b58
1,247
py
Python
digraph/source/generator.py
addy1997/python-RRT
93983e17f2e6e93ff79c8f04a86ce28718ba2779
[ "MIT" ]
11
2020-05-28T00:55:55.000Z
2022-01-03T10:59:26.000Z
digraph/source/generator.py
addy1997/Internship-HTIC
93983e17f2e6e93ff79c8f04a86ce28718ba2779
[ "MIT" ]
1
2020-10-19T16:20:30.000Z
2021-03-22T19:01:14.000Z
digraph/source/generator.py
addy1997/Internship-HTIC
93983e17f2e6e93ff79c8f04a86ce28718ba2779
[ "MIT" ]
2
2021-07-07T01:09:50.000Z
2022-03-12T23:40:56.000Z
#!/usr/bin/env python # coding: utf-8 # In[2]: from time import time import networkx as nx from source.DiGraph import DiGraph from source.model.Edge import Edge def text_to_dict(filename): in_file = open("filename", "r") lines = in_file.read() in_file.close() open_bracket = lines.index("{") ...
18.893939
51
0.572574
173
1,247
4
0.323699
0.060694
0.039017
0.060694
0.124277
0.072254
0.072254
0.072254
0
0
0
0.002336
0.313553
1,247
65
52
19.184615
0.806075
0.038492
0
0.102564
0
0
0.009236
0
0
0
0
0
0
1
0.128205
false
0
0.102564
0
0.358974
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
90c5a20a145e1728ffe9af8247c9eff4f8b98279
3,476
py
Python
data-structures-and-algorithms/examples/binary_tree_recursive.py
vinnyhoward/til
8bb0055578220c4d83ddd12ac34bbb2fd3ae000e
[ "MIT" ]
null
null
null
data-structures-and-algorithms/examples/binary_tree_recursive.py
vinnyhoward/til
8bb0055578220c4d83ddd12ac34bbb2fd3ae000e
[ "MIT" ]
32
2020-07-16T07:11:35.000Z
2022-02-27T19:01:03.000Z
data-structures-and-algorithms/examples/binary_tree_recursive.py
vinnyhoward/til
8bb0055578220c4d83ddd12ac34bbb2fd3ae000e
[ "MIT" ]
null
null
null
class Node(object): # Similar to Linked List initial set-up def __init__(self, value): # Constructor self.value = value self.left = None self.right = None class BinaryTree(object): def __init__(self, root): self.root = Node(root) def print_tree(self, traversal_type): ...
31.315315
114
0.585155
438
3,476
4.515982
0.150685
0.060667
0.051567
0.046512
0.525278
0.47725
0.32912
0.235592
0.190091
0.190091
0
0.026108
0.272727
3,476
110
115
31.6
0.756329
0.404776
0
0.166667
0
0
0.031722
0
0
0
0
0
0
1
0.125
false
0
0
0
0.3125
0.3125
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
90c62d1dcdf46b749f960d31f0195049399228f2
12,647
py
Python
parlai/mturk/webapp/run_mocks/mock_turk_manager.py
lizekang/ParlAI
9e113105d1690deda0b372f6aeaf933ab58e3a72
[ "BSD-3-Clause" ]
1
2019-04-19T06:39:41.000Z
2019-04-19T06:39:41.000Z
parlai/mturk/webapp/run_mocks/mock_turk_manager.py
lizekang/ParlAI
9e113105d1690deda0b372f6aeaf933ab58e3a72
[ "BSD-3-Clause" ]
null
null
null
parlai/mturk/webapp/run_mocks/mock_turk_manager.py
lizekang/ParlAI
9e113105d1690deda0b372f6aeaf933ab58e3a72
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. im...
39.276398
79
0.633826
1,536
12,647
5.00651
0.227214
0.024967
0.041873
0.010143
0.23446
0.162679
0.128088
0.094668
0.094668
0.042913
0
0.000663
0.284652
12,647
321
80
39.398754
0.849342
0.17348
0
0.122727
0
0
0.119563
0.010825
0
0
0
0
0
1
0.168182
false
0.040909
0.045455
0.013636
0.254545
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
90c6e79ecc4dd80005f6bae2d4343c17f1c96324
6,517
py
Python
scripts/train_model.py
allenai/sledgehammer
03982da9cd0c543a76832a903033c2d97dbfb113
[ "Apache-2.0" ]
47
2020-04-14T18:10:05.000Z
2022-02-16T05:17:03.000Z
scripts/train_model.py
yardenTal1/sledgehammer
842a48023451a81c83cdf29cdd7c601b1114a207
[ "Apache-2.0" ]
1
2020-05-04T19:35:06.000Z
2020-06-08T02:53:53.000Z
scripts/train_model.py
yardenTal1/sledgehammer
842a48023451a81c83cdf29cdd7c601b1114a207
[ "Apache-2.0" ]
9
2020-04-12T17:31:12.000Z
2022-03-19T21:23:59.000Z
#!/usr/bin/env python import sys import os import random import copy import subprocess from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter # PYTHON_DIR="/".join(os.environ['CONDA_EXE'].split("/")[:-2])+'/envs/allennlp_0.8.4/bin/' exit_threshold=0.9 def main(): parser = arg_parser() a...
45.894366
570
0.603038
847
6,517
4.42503
0.265643
0.048026
0.041622
0.014674
0.127801
0.09285
0.067236
0.067236
0.040021
0.040021
0
0.011611
0.246739
6,517
141
571
46.219858
0.751884
0.044499
0
0.105769
0
0.019231
0.281692
0.085907
0.009615
0
0
0.007092
0
1
0.028846
false
0
0.057692
0
0.125
0.009615
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
90c797e8f34b8974fc670dfa1133ddb2a05d7a20
918
py
Python
utils/gather_files.py
letsgo247/KFG
dd055fc8349a9ea95497d04ecc4b52c04e09debc
[ "MIT" ]
null
null
null
utils/gather_files.py
letsgo247/KFG
dd055fc8349a9ea95497d04ecc4b52c04e09debc
[ "MIT" ]
null
null
null
utils/gather_files.py
letsgo247/KFG
dd055fc8349a9ea95497d04ecc4b52c04e09debc
[ "MIT" ]
null
null
null
import os import shutil import time def read_all_file(path): output = os.listdir(path) file_list = [] for i in output: if os.path.isdir(path+"/"+i): file_list.extend(read_all_file(path+"/"+i)) elif os.path.isfile(path+"/"+i): file_list.append(path+"/"+i) ...
27
65
0.604575
144
918
3.645833
0.395833
0.121905
0.062857
0.057143
0.209524
0.209524
0.209524
0.110476
0
0
0
0.004323
0.244009
918
34
66
27
0.752161
0.092593
0
0
0
0
0.114873
0.094317
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.26087
0.086957
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
90c8c7759fc79bbde613e0b6f813d1b176c1ecaf
902
py
Python
1.8.first-promise.py
senpl/course-promises
df4b64a02d0a7ab4bb372c0fae5e92c98830cd44
[ "MIT" ]
3
2017-02-05T03:17:13.000Z
2019-03-11T19:44:34.000Z
1.8.first-promise.py
senpl/course-promises
df4b64a02d0a7ab4bb372c0fae5e92c98830cd44
[ "MIT" ]
null
null
null
1.8.first-promise.py
senpl/course-promises
df4b64a02d0a7ab4bb372c0fae5e92c98830cd44
[ "MIT" ]
7
2016-06-19T02:24:09.000Z
2018-09-11T01:32:02.000Z
import re textinput = widget_inputs["text1"] comments = [] def commentizer(new): if new not in comments: comments.append(new) is_correct = False result = re.match(".*window.*", textinput, flags=re.IGNORECASE) if result: is_correct = True commentizer("You're right, but there's a little more to it...
29.096774
115
0.701774
131
902
4.763359
0.473282
0.086538
0.0625
0.125
0.254808
0.254808
0.254808
0.254808
0.185897
0.185897
0
0.002667
0.168514
902
31
116
29.096774
0.829333
0
0
0.304348
0
0.043478
0.323367
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.086957
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
90cb7a749d3451fbf2614d7b4cc6d0e278b4fb6b
3,724
py
Python
ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_file_upload.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2019-04-16T21:23:15.000Z
2019-04-16T21:23:15.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_file_upload.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
5
2020-02-26T20:10:50.000Z
2021-09-23T23:23:18.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_file_upload.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2018 Cisco and/or its affiliates. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your ...
33.854545
117
0.705961
491
3,724
5.201629
0.393075
0.016445
0.018794
0.034456
0.1065
0.078309
0.031323
0
0
0
0
0.004054
0.205156
3,724
109
118
34.165138
0.858784
0.184748
0
0.144737
0
0
0.4334
0
0
0
0
0
0
1
0.026316
false
0
0.065789
0.013158
0.105263
0.013158
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
90cbba8be9d213494b028b083d0b0f3629b1868d
1,244
py
Python
agent/indy_catalyst_agent/messaging/trustping/routes.py
nairobi222/indy-catalyst
dcbd80524ace7747ecfecd716ff932e9b571d69a
[ "Apache-2.0" ]
2
2019-08-16T11:21:10.000Z
2022-01-03T21:10:59.000Z
agent/indy_catalyst_agent/messaging/trustping/routes.py
nairobi222/indy-catalyst
dcbd80524ace7747ecfecd716ff932e9b571d69a
[ "Apache-2.0" ]
null
null
null
agent/indy_catalyst_agent/messaging/trustping/routes.py
nairobi222/indy-catalyst
dcbd80524ace7747ecfecd716ff932e9b571d69a
[ "Apache-2.0" ]
null
null
null
"""Trust ping admin routes.""" from aiohttp import web from aiohttp_apispec import docs from ..connections.models.connection_record import ConnectionRecord from .messages.ping import Ping from ...storage.error import StorageNotFoundError @docs(tags=["trustping"], summary="Send a trust ping to a connection") async d...
29.619048
84
0.730707
149
1,244
5.946309
0.436242
0.054176
0.022573
0.027088
0.051919
0.051919
0
0
0
0
0
0
0.169614
1,244
41
85
30.341463
0.857696
0.019293
0
0
0
0
0.105904
0.04686
0
0
0
0
0
1
0
false
0
0.238095
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
90d0a5da5e0a56dfea4ae7b895d09b65486f6dc4
1,861
py
Python
folderikon/exceptions.py
demberto/FolderIkon
62088b3e46266a6a53632a1e85bdb3d0a46e8cab
[ "MIT" ]
1
2021-10-30T17:49:28.000Z
2021-10-30T17:49:28.000Z
folderikon/exceptions.py
demberto/FolderIkon
62088b3e46266a6a53632a1e85bdb3d0a46e8cab
[ "MIT" ]
null
null
null
folderikon/exceptions.py
demberto/FolderIkon
62088b3e46266a6a53632a1e85bdb3d0a46e8cab
[ "MIT" ]
null
null
null
"""Exception which are not actually thrown, only their docstrings are used.""" import colorama import sys __all__ = [ "Error", "ParentIsNotAFolderError", "InvalidURLError", "ImageFormatNotSupportedError", "ImageNotSpecifiedError", "FolderIconAlreadyExistsError", "DesktopIniError", "exc...
22.975309
108
0.652875
209
1,861
5.421053
0.421053
0.035305
0.038835
0.045013
0.063548
0.045896
0
0
0
0
0
0.000699
0.231596
1,861
80
109
23.2625
0.791608
0.183235
0
0.148936
0
0.021277
0.197439
0.082884
0
0
0
0
0
1
0.191489
false
0
0.042553
0.06383
0.531915
0.021277
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
90d0ff663bec28d2147cf9908b2baeccc98682a7
1,224
py
Python
quickbooks/objects/companycurrency.py
varunbheemaiah/python-quickbooks
f5459a07619ae220e24099c6e0c8e8db890bb66b
[ "MIT" ]
234
2015-08-25T02:41:33.000Z
2020-03-30T15:30:23.000Z
quickbooks/objects/companycurrency.py
varunbheemaiah/python-quickbooks
f5459a07619ae220e24099c6e0c8e8db890bb66b
[ "MIT" ]
170
2015-09-12T07:02:32.000Z
2020-03-20T13:34:34.000Z
quickbooks/objects/companycurrency.py
varunbheemaiah/python-quickbooks
f5459a07619ae220e24099c6e0c8e8db890bb66b
[ "MIT" ]
142
2015-08-26T07:08:56.000Z
2020-03-20T11:59:52.000Z
from six import python_2_unicode_compatible from .base import QuickbooksManagedObject, QuickbooksTransactionEntity, Ref, CustomField, MetaData @python_2_unicode_compatible class CompanyCurrency(QuickbooksManagedObject, QuickbooksTransactionEntity): """ QBO definition: Applicable only for those companies that ...
28.465116
107
0.688725
138
1,224
5.934783
0.492754
0.029304
0.034188
0.058608
0
0
0
0
0
0
0
0.002172
0.247549
1,224
42
108
29.142857
0.887079
0.298203
0
0
0
0
0.040915
0
0
0
0
0
0
1
0.12
false
0
0.08
0.04
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
90d18046bd7a28075eedb453f3f4d1aabe4f7e65
16,575
py
Python
syft/execution/placeholder.py
juharris/PySyft
dbb70f24cc55a7dca032fb06f1a8662cb15092a9
[ "Apache-2.0" ]
null
null
null
syft/execution/placeholder.py
juharris/PySyft
dbb70f24cc55a7dca032fb06f1a8662cb15092a9
[ "Apache-2.0" ]
null
null
null
syft/execution/placeholder.py
juharris/PySyft
dbb70f24cc55a7dca032fb06f1a8662cb15092a9
[ "Apache-2.0" ]
null
null
null
from itertools import zip_longest import syft from syft.generic.frameworks.hook import hook_args from syft.generic.abstract.tensor import AbstractTensor from syft.workers.abstract import AbstractWorker from syft_proto.execution.v1.placeholder_pb2 import Placeholder as PlaceholderPB class PlaceHolder(AbstractTensor):...
37.247191
98
0.640422
1,805
16,575
5.755679
0.152909
0.027914
0.024256
0.02647
0.454615
0.403889
0.353836
0.315045
0.285494
0.263933
0
0.00067
0.279336
16,575
444
99
37.331081
0.869067
0.22721
0
0.227451
0
0
0.037737
0.003749
0
0
0
0.002252
0
1
0.105882
false
0
0.023529
0.003922
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
90d1a9736c8c20db26fd37eb2b021b1ef2da5b41
21,547
py
Python
creativeflow/blender/render_main.py
idaho777/creativeflow
adf7a9e1cf70005560cfbf8064137fb1236bc574
[ "MIT" ]
53
2019-10-02T17:10:49.000Z
2022-03-04T17:35:26.000Z
creativeflow/blender/render_main.py
idaho777/creativeflow
adf7a9e1cf70005560cfbf8064137fb1236bc574
[ "MIT" ]
1
2021-09-24T01:00:54.000Z
2021-09-24T03:06:43.000Z
creativeflow/blender/render_main.py
idaho777/creativeflow
adf7a9e1cf70005560cfbf8064137fb1236bc574
[ "MIT" ]
6
2019-11-26T11:44:45.000Z
2021-11-11T22:23:50.000Z
""" MAIN STYLING AND RENDERING FILE Requirements: ------------------------------------------------------------------------------ IMPORTANT! This has only been tested with Blender 2.79 API. We have run this on Linux and MacOS. Execution: ------------------------------------------------------------------------------ Th...
49.194064
108
0.58616
2,491
21,547
4.858691
0.178242
0.029001
0.05478
0.023796
0.380402
0.327605
0.285053
0.204991
0.182517
0.135999
0
0.005136
0.277069
21,547
437
109
49.306636
0.771843
0.151901
0
0.226006
0
0
0.319425
0.049783
0
0
0
0
0
1
0
false
0.003096
0.040248
0
0.040248
0.021672
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
90d3d04333f570bee6151ef38e0d8057f563ad15
5,004
py
Python
atlas/foundations_contrib/src/test/archiving/test_artifact_downloader.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
296
2020-03-16T19:55:00.000Z
2022-01-10T19:46:05.000Z
atlas/foundations_contrib/src/test/archiving/test_artifact_downloader.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
57
2020-03-17T11:15:57.000Z
2021-07-10T14:42:27.000Z
atlas/foundations_contrib/src/test/archiving/test_artifact_downloader.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
38
2020-03-17T21:06:05.000Z
2022-02-08T03:19:34.000Z
from foundations_spec import * from unittest.mock import call class TestArtifactDownloader(Spec): mock_archiver = let_mock() make_directory_mock = let_patch_mock('os.makedirs') @let def source_directory(self): return self.faker.uri_path() @let def download_directory(self): ...
42.769231
146
0.689249
575
5,004
5.615652
0.2
0.100031
0.117064
0.039641
0.632394
0.590895
0.534841
0.493342
0.487148
0.398266
0
0
0.207234
5,004
117
147
42.769231
0.813965
0
0
0.255814
0
0
0.179257
0.051559
0
0
0
0
0.093023
1
0.151163
false
0
0.034884
0.034884
0.267442
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
90d3d4041471f93cb0f82d38f927e393e1e21818
34,846
py
Python
lib/python3.5/functional/test/test_functional.py
mklan/NX-Rom-Market
33613d2177b63df9e0568038ffdf1dd91ad334d8
[ "MIT" ]
21
2021-01-10T16:44:55.000Z
2022-03-03T13:15:07.000Z
lib/python3.5/functional/test/test_functional.py
mklan/NX-Rom-Market
33613d2177b63df9e0568038ffdf1dd91ad334d8
[ "MIT" ]
3
2021-01-10T15:38:50.000Z
2021-04-29T09:45:47.000Z
lib/python3.5/functional/test/test_functional.py
mklan/NX-Rom-Market
33613d2177b63df9e0568038ffdf1dd91ad334d8
[ "MIT" ]
1
2021-01-10T15:07:38.000Z
2021-01-10T15:07:38.000Z
# pylint: skip-file import unittest import array from collections import namedtuple from itertools import product from functional.pipeline import Sequence, is_iterable, _wrap, extend from functional.transformations import name from functional import seq, pseq Data = namedtuple("Data", "x y") def pandas_is_installed...
34.229862
88
0.544711
4,886
34,846
3.799427
0.059353
0.065234
0.014867
0.019392
0.667367
0.573906
0.487126
0.425124
0.369748
0.342006
0
0.047486
0.282041
34,846
1,017
89
34.26352
0.69454
0.002841
0
0.321678
0
0
0.023056
0
0
0
0
0
0.385781
1
0.138695
false
0.001166
0.01049
0.006993
0.165501
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
90d42edecd2171b0bdded78b6fa56be73310676a
9,412
py
Python
tests/test_git_commit_one_file.py
mubashshirjamal/code
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
[ "BSD-3-Clause" ]
1,582
2015-01-05T02:41:44.000Z
2022-03-30T20:03:22.000Z
tests/test_git_commit_one_file.py
mubashshirjamal/code
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
[ "BSD-3-Clause" ]
66
2015-01-23T07:58:04.000Z
2021-11-12T02:23:27.000Z
tests/test_git_commit_one_file.py
mubashshirjamal/code
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
[ "BSD-3-Clause" ]
347
2015-01-05T07:47:07.000Z
2021-09-20T21:22:32.000Z
# -*- coding: utf-8 -*- import os from vilya.models.project import CodeDoubanProject from vilya.models import git from tests.base import TestCase from tests.utils import mkdtemp from vilya.libs import gyt from vilya.libs.permdir import get_repo_root class TestGit(TestCase): @property def u(self): ...
42.977169
95
0.595516
1,149
9,412
4.680592
0.140122
0.040164
0.045928
0.06006
0.695984
0.655448
0.614169
0.580327
0.574749
0.565638
0
0.022319
0.271674
9,412
218
96
43.174312
0.762217
0.018168
0
0.542105
0
0
0.20379
0
0
0
0
0.004587
0.173684
1
0.094737
false
0.005263
0.036842
0.015789
0.163158
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
90d5aacb48382d69453f984a43223f2aa79a4272
11,704
py
Python
py/desitarget/train/data_preparation/PredCountsFromQLF_ClassModule.py
echaussidon/desitarget
1206380dac5155b9e7bf238c7cb187bc797d78a3
[ "BSD-3-Clause" ]
13
2016-02-02T00:26:21.000Z
2022-01-14T07:31:59.000Z
py/desitarget/train/data_preparation/PredCountsFromQLF_ClassModule.py
echaussidon/desitarget
1206380dac5155b9e7bf238c7cb187bc797d78a3
[ "BSD-3-Clause" ]
674
2015-09-15T15:02:06.000Z
2022-02-23T18:39:02.000Z
py/desitarget/train/data_preparation/PredCountsFromQLF_ClassModule.py
echaussidon/desitarget
1206380dac5155b9e7bf238c7cb187bc797d78a3
[ "BSD-3-Clause" ]
29
2015-06-09T13:51:48.000Z
2021-06-05T06:03:18.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- import re import numpy as np from scipy.interpolate import interp2d from scipy.interpolate import interp1d class PredCountsFromQLF_Class(): def __init__(self): self.QLF_OK = False self.EFF_OK = False self.QLF_EFF_OK = False # QLF ...
38.5
114
0.605092
1,461
11,704
4.580424
0.093771
0.096234
0.05529
0.021518
0.476987
0.378811
0.308428
0.234011
0.15272
0.15272
0
0.024072
0.272386
11,704
303
115
38.627063
0.761743
0.049299
0
0.111675
0
0
0.006303
0
0
0
0
0
0.040609
1
0.050761
false
0
0.020305
0
0.106599
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
90da83a21ced32c3bda1f81dfc548d05d09d8656
7,303
py
Python
src/rto/optimization/solvers/de.py
vicrsp/rto
e9e0b87533ae6bc5e6ad228bb26172384802f9b7
[ "MIT" ]
null
null
null
src/rto/optimization/solvers/de.py
vicrsp/rto
e9e0b87533ae6bc5e6ad228bb26172384802f9b7
[ "MIT" ]
17
2020-10-24T18:03:54.000Z
2020-11-11T22:25:16.000Z
src/rto/optimization/solvers/de.py
vicrsp/rto
e9e0b87533ae6bc5e6ad228bb26172384802f9b7
[ "MIT" ]
null
null
null
import numpy as np class DifferentialEvolution: def __init__(self, lb, ub, mutation_prob=0.5, pop_size=10, max_generations=100, de_type='rand/1/bin', callback=None): self.lb = np.asarray(lb).reshape(1, -1) self.ub = np.asarray(ub).reshape(1, -1) self.population_size = pop_size self...
37.451282
121
0.546899
928
7,303
4.150862
0.161638
0.083593
0.046729
0.024922
0.190291
0.056075
0.056075
0.056075
0.024403
0.024403
0
0.016564
0.330412
7,303
194
122
37.64433
0.771166
0.069424
0
0.111842
0
0
0.018721
0
0
0
0
0
0
1
0.098684
false
0
0.006579
0.013158
0.210526
0.006579
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
90db629f11aa0043b43ed88cb2e40c8fc351233e
2,122
py
Python
openmdao/matrices/csr_matrix.py
onodip/OpenMDAO
96a99806fb3a547b881d2ad3da2733bca9978567
[ "Apache-2.0" ]
null
null
null
openmdao/matrices/csr_matrix.py
onodip/OpenMDAO
96a99806fb3a547b881d2ad3da2733bca9978567
[ "Apache-2.0" ]
null
null
null
openmdao/matrices/csr_matrix.py
onodip/OpenMDAO
96a99806fb3a547b881d2ad3da2733bca9978567
[ "Apache-2.0" ]
null
null
null
"""Define the CSRmatrix class.""" import numpy as np from scipy.sparse import coo_matrix from six import iteritems from openmdao.matrices.coo_matrix import COOMatrix class CSRMatrix(COOMatrix): """ Sparse matrix in Compressed Row Storage format. """ def _build(self, num_rows, num_cols): """...
34.786885
83
0.60132
274
2,122
4.562044
0.441606
0.032
0.024
0.0336
0.0752
0
0
0
0
0
0
0.004158
0.319981
2,122
60
84
35.366667
0.862093
0.352969
0
0
0
0
0.068396
0
0
0
0
0
0
1
0.04
false
0
0.16
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
90df7ee581fbe2b55cfc18df37ae0baf763d0554
2,453
py
Python
stacks/cognito_stack.py
adamdubey/devops-serverless-app-aws-cdk
3e1ba3f9905c4f8469275e51448fb908b64a736a
[ "MIT" ]
null
null
null
stacks/cognito_stack.py
adamdubey/devops-serverless-app-aws-cdk
3e1ba3f9905c4f8469275e51448fb908b64a736a
[ "MIT" ]
null
null
null
stacks/cognito_stack.py
adamdubey/devops-serverless-app-aws-cdk
3e1ba3f9905c4f8469275e51448fb908b64a736a
[ "MIT" ]
null
null
null
from aws_cdk import ( aws_cognito as cognito, aws_iam as iam, aws_ssm as ssm, core ) class CognitoStack(core.Stack): def __init__(self, scope: core.Construct, id: str, **kwargs) -> None: super().__init__(scope, id, **kwargs) prj_name = self.node.try_get_context("project_name") ...
34.069444
77
0.538932
223
2,453
5.609865
0.345291
0.083133
0.043965
0.043165
0.183054
0.159073
0.052758
0
0
0
0
0.001928
0.365675
2,453
71
78
34.549296
0.802057
0
0
0.064516
0
0
0.104362
0.027721
0
0
0
0
0
1
0.016129
false
0.016129
0.016129
0
0.048387
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
90dfa79ebe79555eaeba7589bba91bb7586ad592
3,570
py
Python
cloudrail/knowledge/rules/aws/context_aware/s3_bucket_policy_vpc_endpoint_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
cloudrail/knowledge/rules/aws/context_aware/s3_bucket_policy_vpc_endpoint_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
cloudrail/knowledge/rules/aws/context_aware/s3_bucket_policy_vpc_endpoint_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
from typing import Dict, List from cloudrail.knowledge.context.aws.iam.policy import S3Policy from cloudrail.knowledge.context.aws.iam.policy_statement import StatementEffect from cloudrail.knowledge.context.aws.s3.s3_bucket import S3Bucket from cloudrail.knowledge.context.aws.ec2.vpc import Vpc from cloudrail.knowled...
51.73913
123
0.671989
437
3,570
5.20595
0.23341
0.051429
0.068571
0.046154
0.253626
0.152967
0.126593
0.02989
0
0
0
0.009701
0.2493
3,570
68
124
52.5
0.839179
0
0
0.054545
0
0
0.083473
0.036975
0
0
0
0
0
1
0.109091
false
0
0.181818
0.054545
0.436364
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
90e1d06ca5448614066727df6e46a00f224d0fe4
36,937
py
Python
run.py
Aisbergg/docker-image-arch-aur-makepkg
26b7fed14838f52560c8fd4ba222c1c3d41ce00d
[ "MIT" ]
7
2017-07-24T15:19:29.000Z
2018-11-18T21:59:13.000Z
run.py
Aisbergg/docker-image-arch-aur-makepkg
26b7fed14838f52560c8fd4ba222c1c3d41ce00d
[ "MIT" ]
1
2018-06-12T10:30:23.000Z
2018-06-12T15:54:01.000Z
run.py
Aisbergg/docker-image-arch-aur-makepkg
26b7fed14838f52560c8fd4ba222c1c3d41ce00d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import argparse import os import sys import re import shutil import tempfile import pwd import grp import tarfile import time import glob import urllib.request from subprocess import Popen, PIPE import aur import pacman local_source_dir = '/makepkg/local_src' build_dir = os.path.abspath('/makepkg/b...
35.861165
166
0.570133
4,219
36,937
4.812278
0.10666
0.012757
0.016549
0.016254
0.392898
0.333301
0.295129
0.26203
0.233315
0.204206
0
0.007272
0.341067
36,937
1,029
167
35.896016
0.826657
0.183556
0
0.287267
0
0.004658
0.106492
0.009226
0
0
0
0
0
1
0.049689
false
0.001553
0.023292
0
0.170807
0.051242
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
90e34a12e8b9e4a3553e847fbec09a27e4f92d6a
12,680
py
Python
test/test_schemagen.py
hd23408/nist-schemagen
258e453d6f3bdc763e48e2c32668c932f7ffcd40
[ "MIT" ]
1
2021-09-01T02:11:03.000Z
2021-09-01T02:11:03.000Z
test/test_schemagen.py
hd23408/nist-schemagen
258e453d6f3bdc763e48e2c32668c932f7ffcd40
[ "MIT" ]
null
null
null
test/test_schemagen.py
hd23408/nist-schemagen
258e453d6f3bdc763e48e2c32668c932f7ffcd40
[ "MIT" ]
null
null
null
"""Test methods for testing the schemagen package (specifically, the SchemaGenerator class). Typical usage example: python -m unittest or, to run a single test: python -m unittest -k test__build_schema """ import unittest import pathlib import logging import copy import os import pandas as pd import numpy a...
38.895706
146
0.711435
1,725
12,680
5.001739
0.169855
0.069541
0.012981
0.019471
0.574409
0.527701
0.453639
0.432429
0.400904
0.375637
0
0.02044
0.182019
12,680
325
147
39.015385
0.811415
0.323975
0
0.253886
0
0
0.092221
0.037634
0
0
0
0
0.15544
1
0.051813
false
0
0.051813
0
0.108808
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
90e637b1e45a7f0c6d8c0bde7e551fe538035277
521
py
Python
sunshinectf2020/speedrun/exploit_05.py
nhtri2003gmail/ctf-write-ups
7e969c47027c39b614e10739ae3a953eed17dfa3
[ "MIT" ]
101
2020-03-09T17:40:47.000Z
2022-03-31T23:26:55.000Z
sunshinectf2020/speedrun/exploit_05.py
nhtri2003gmail/ctf-write-ups
7e969c47027c39b614e10739ae3a953eed17dfa3
[ "MIT" ]
1
2021-11-09T13:39:40.000Z
2021-11-10T19:15:04.000Z
sunshinectf2020/speedrun/exploit_05.py
datajerk/ctf-write-ups
1bc4ecc63a59de7d924c7214b1ce467801792da0
[ "MIT" ]
31
2020-05-27T12:29:50.000Z
2022-03-31T23:23:32.000Z
#!/usr/bin/env python3 from pwn import * binary = context.binary = ELF('./chall_05') if not args.REMOTE: p = process(binary.path) else: p = remote('chal.2020.sunshinectf.org', 30005) p.sendlineafter('Race, life\'s greatest.\n','foobar') p.recvuntil('Yes I\'m going to win: ') _ = p.recvline().strip() main = int(_...
20.038462
53
0.677543
80
521
4.375
0.7
0.111429
0
0
0
0
0
0
0
0
0
0.039823
0.132438
521
25
54
20.84
0.734513
0.040307
0
0
0
0
0.140281
0.0501
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
90e6b33612e9aeabab01c1e1b9a83bc6ae67ea29
1,047
py
Python
coderedcms/wagtail_flexible_forms/edit_handlers.py
mikiec84/coderedcms
d72de2118d777f23d9512dc348691d3d7b46d0e5
[ "BSD-3-Clause" ]
9
2019-01-03T16:57:27.000Z
2020-07-08T07:17:35.000Z
coderedcms/wagtail_flexible_forms/edit_handlers.py
mikiec84/coderedcms
d72de2118d777f23d9512dc348691d3d7b46d0e5
[ "BSD-3-Clause" ]
1
2019-04-30T18:30:15.000Z
2019-04-30T18:30:15.000Z
coderedcms/wagtail_flexible_forms/edit_handlers.py
mikiec84/coderedcms
d72de2118d777f23d9512dc348691d3d7b46d0e5
[ "BSD-3-Clause" ]
4
2019-06-04T21:05:02.000Z
2020-04-20T00:39:52.000Z
from django.template.loader import render_to_string from django.utils.safestring import mark_safe from django.utils.translation import ugettext as _ from wagtail.admin.edit_handlers import EditHandler class FormSubmissionsPanel(EditHandler): template = "wagtailforms/edit_handlers/form_responses_panel.html" ...
33.774194
78
0.669532
117
1,047
5.74359
0.470085
0.089286
0.041667
0
0
0
0
0
0
0
0
0
0.238777
1,047
30
79
34.9
0.843162
0
0
0
0
0
0.107927
0.049666
0
0
0
0
0
1
0.086957
false
0
0.173913
0
0.478261
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
90e6e714df05484ba942b1438ac0306e81a7602d
2,189
py
Python
python/elasticache/cache/helper/vpc.py
chejef/aws-cdk-examples-proserve
ea0b72475e2d28192a9088ac8ee8cb6498f6cb39
[ "MIT-0" ]
6
2021-11-10T21:42:53.000Z
2022-03-17T13:22:07.000Z
python/elasticache/cache/helper/vpc.py
chejef/aws-cdk-examples-proserve
ea0b72475e2d28192a9088ac8ee8cb6498f6cb39
[ "MIT-0" ]
9
2021-11-11T14:33:35.000Z
2022-02-14T15:25:41.000Z
python/elasticache/cache/helper/vpc.py
chejef/aws-cdk-examples-proserve
ea0b72475e2d28192a9088ac8ee8cb6498f6cb39
[ "MIT-0" ]
10
2021-11-13T17:32:06.000Z
2022-01-17T18:13:02.000Z
from aws_cdk import ( core as cdk, aws_elasticache as elasticache, aws_ec2 as ec2, ) from aws_cdk.core import Tags from config import config_util as config def get_vpc(scope: cdk.Construct) -> ec2.Vpc: """ Look up and return the none default vpc. Args: scope: the cdk construct. ...
28.802632
110
0.677935
279
2,189
5.132616
0.265233
0.076816
0.035615
0.031425
0.152933
0.152933
0.047486
0
0
0
0
0.008363
0.235267
2,189
75
111
29.186667
0.847073
0.248058
0
0.051282
0
0
0.186856
0.084407
0
0
0
0
0
1
0.076923
false
0
0.076923
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
90e79b451ed65372d3a6d5c89f828338b8e17cd2
5,101
py
Python
src/pyscaffold/extensions/namespace.py
jayvdb/pyscaffold
c97ab5fd17ace3e1250741434f8728999359c8c2
[ "MIT" ]
2
2019-08-23T12:59:04.000Z
2021-04-14T14:45:36.000Z
.eggs/PyScaffold-3.2.3-py3.7.egg/pyscaffold/extensions/namespace.py
nkapchenko/HW
92f51d1ac4fc009e24350844172a1fb3b111ea27
[ "MIT" ]
19
2020-03-24T18:12:18.000Z
2022-03-29T22:27:59.000Z
.eggs/PyScaffold-3.2.3-py3.7.egg/pyscaffold/extensions/namespace.py
nkapchenko/HW
92f51d1ac4fc009e24350844172a1fb3b111ea27
[ "MIT" ]
1
2020-05-10T06:24:38.000Z
2020-05-10T06:24:38.000Z
# -*- coding: utf-8 -*- """ Extension that adjust project file tree to include a namespace package. This extension adds a **namespace** option to :obj:`~pyscaffold.api.create_project` and provides correct values for the options **root_pkg** and **namespace_pkg** to the following functions in the action list. """ impo...
32.909677
79
0.634581
613
5,101
5.174551
0.313214
0.034678
0.01261
0.030265
0.131778
0.103405
0.103405
0.103405
0.103405
0.103405
0
0.00161
0.269555
5,101
154
80
33.123377
0.849705
0.336601
0
0.044118
0
0
0.200505
0
0
0
0
0
0
1
0.102941
false
0.014706
0.102941
0
0.323529
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
90e88281f8a4c42ecdd83892971dad7b739f5530
2,324
py
Python
tests/solr_tests/tests/test_templatetags.py
speedplane/django-haystack
4ace30aea6aa1b1708f79a5a9df20a00fa0b4d96
[ "BSD-3-Clause" ]
1
2017-10-12T14:25:06.000Z
2017-10-12T14:25:06.000Z
tests/solr_tests/tests/templatetags.py
ericholscher/django-haystack
1fde37afa4921c2121a95a4902f2012bbf837bf1
[ "BSD-3-Clause" ]
1
2016-08-03T18:01:43.000Z
2016-08-03T18:03:00.000Z
tests/solr_tests/tests/templatetags.py
ericholscher/django-haystack
1fde37afa4921c2121a95a4902f2012bbf837bf1
[ "BSD-3-Clause" ]
2
2015-08-11T17:00:42.000Z
2021-01-04T08:39:33.000Z
# encoding: utf-8 from mock import call, patch from django.template import Template, Context from django.test import TestCase from core.models import MockModel @patch("haystack.templatetags.more_like_this.SearchQuerySet") class MoreLikeThisTagTestCase(TestCase): def render(self, template, context): # Wh...
41.5
173
0.645869
300
2,324
4.68
0.243333
0.091168
0.136752
0.032051
0.716524
0.667379
0.596154
0.596154
0.596154
0.596154
0
0.004482
0.231928
2,324
55
174
42.254545
0.782073
0.031411
0
0.378378
0
0.054054
0.22331
0.022687
0
0
0
0
0.162162
1
0.108108
false
0
0.108108
0
0.27027
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
90eb7ca2d6e3944281a7dc60550b6a349ec9b59b
9,232
py
Python
fairseq/tasks/audio_pretraining.py
hwp/fairseq
f5cf2278d10a2aa8ee5759ce924d23aef6f82e6f
[ "MIT" ]
4
2021-09-06T06:40:41.000Z
2022-02-14T09:59:37.000Z
fairseq/tasks/audio_pretraining.py
hwp/fairseq
f5cf2278d10a2aa8ee5759ce924d23aef6f82e6f
[ "MIT" ]
null
null
null
fairseq/tasks/audio_pretraining.py
hwp/fairseq
f5cf2278d10a2aa8ee5759ce924d23aef6f82e6f
[ "MIT" ]
1
2021-07-12T12:34:47.000Z
2021-07-12T12:34:47.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import editdistance import os impo...
36.634921
96
0.604311
1,101
9,232
4.831971
0.230699
0.027068
0.02688
0.014098
0.179135
0.132895
0.087406
0.051128
0.011654
0
0
0.004459
0.295602
9,232
251
97
36.780876
0.813624
0.089471
0
0.108247
0
0
0.135171
0.008305
0
0
0
0
0.005155
1
0.07732
false
0
0.046392
0.015464
0.185567
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
90eb98699fec58dcce70daf5b1617e8fd2c20143
20,440
py
Python
caffe-int8-convert-tool-dev.py
daquexian/caffe-int8-convert-tools
07bbb40e2b39493a0777f2be564114721a99c501
[ "BSD-3-Clause" ]
null
null
null
caffe-int8-convert-tool-dev.py
daquexian/caffe-int8-convert-tools
07bbb40e2b39493a0777f2be564114721a99c501
[ "BSD-3-Clause" ]
null
null
null
caffe-int8-convert-tool-dev.py
daquexian/caffe-int8-convert-tools
07bbb40e2b39493a0777f2be564114721a99c501
[ "BSD-3-Clause" ]
1
2021-04-22T08:55:38.000Z
2021-04-22T08:55:38.000Z
# -*- coding: utf-8 -*- # SenseNets is pleased to support the open source community by making caffe-int8-convert-tool available. # # Copyright (C) 2018 SenseNets Technology Ltd. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the L...
35.241379
201
0.623092
2,590
20,440
4.749035
0.160232
0.018211
0.018537
0.017561
0.34813
0.300488
0.26561
0.240976
0.214228
0.177724
0
0.016023
0.27637
20,440
579
202
35.302245
0.815225
0.24271
0
0.289474
0
0.009868
0.085484
0.006135
0
0
0
0
0
1
0.072368
false
0.003289
0.039474
0
0.144737
0.069079
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
90ee4b4c80b7c7885dba22f095e28a087fcc1818
5,534
py
Python
pytorch_translate/test/test_data.py
dpacgopinath/translate-1
032246359eab512bcc76208d357eac71e6017eca
[ "BSD-3-Clause" ]
null
null
null
pytorch_translate/test/test_data.py
dpacgopinath/translate-1
032246359eab512bcc76208d357eac71e6017eca
[ "BSD-3-Clause" ]
null
null
null
pytorch_translate/test/test_data.py
dpacgopinath/translate-1
032246359eab512bcc76208d357eac71e6017eca
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import unittest import os from pytorch_translate import data from pytorch_translate import dictionary from pytorch_translate.test import utils as test_utils class TestInMemoryNumpyDataset(unittest.TestCase): def setUp(self): self.src_txt, self.trg_txt = test_utils.create_test_text...
39.248227
104
0.568666
624
5,534
4.810897
0.157051
0.041972
0.069287
0.043971
0.615923
0.579947
0.516656
0.466689
0.421386
0.406729
0
0.055961
0.331587
5,534
140
105
39.528571
0.75561
0.013553
0
0.348837
0
0
0
0
0
0
0
0
0.116279
1
0.046512
false
0
0.03876
0
0.093023
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
90ee60eea24c42a26b118fc9be18f7e7dc1fe829
2,877
py
Python
CompareWHDR.py
Z7Gao/InverseRenderingOfIndoorScene
f245d20dcbe05b1de766c2e53af79fd489f58d74
[ "MIT" ]
171
2020-06-28T04:03:23.000Z
2022-03-30T08:50:20.000Z
CompareWHDR.py
Z7Gao/InverseRenderingOfIndoorScene
f245d20dcbe05b1de766c2e53af79fd489f58d74
[ "MIT" ]
9
2020-08-20T08:56:38.000Z
2022-01-19T19:53:51.000Z
CompareWHDR.py
Z7Gao/InverseRenderingOfIndoorScene
f245d20dcbe05b1de766c2e53af79fd489f58d74
[ "MIT" ]
19
2020-06-23T11:49:03.000Z
2022-01-22T01:49:26.000Z
import numpy as np import sys import json import glob import os.path as osp import cv2 def compute_whdr(reflectance, judgements, delta=0.1): points = judgements['intrinsic_points'] comparisons = judgements['intrinsic_comparisons'] id_to_points = {p['id']: p for p in points} rows, cols = reflectance.sha...
30.284211
132
0.601321
401
2,877
4.117207
0.299252
0.012114
0.021199
0.019988
0.115082
0.055724
0.032707
0
0
0
0
0.043643
0.267292
2,877
94
133
30.606383
0.739564
0.088982
0
0.130435
0
0
0.102525
0.043229
0
0
0
0
0
1
0.014493
false
0
0.086957
0
0.130435
0.028986
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
90f0c3ec3d38a98bb3fcc92188fa52c0d41d3751
649
py
Python
UnicodeTraps.py
loamhoof/sublime-plugins-dump
57518b19a96e090670e2592438688c600a5b875a
[ "MIT" ]
null
null
null
UnicodeTraps.py
loamhoof/sublime-plugins-dump
57518b19a96e090670e2592438688c600a5b875a
[ "MIT" ]
null
null
null
UnicodeTraps.py
loamhoof/sublime-plugins-dump
57518b19a96e090670e2592438688c600a5b875a
[ "MIT" ]
null
null
null
import re from sublime import Region import sublime_plugin REPLACEMENTS = { '\u00a0': ' ', # no-break space '\u200b': '', # zero-width space } class UnicodeTrapsListener(sublime_plugin.EventListener): @staticmethod def on_pre_save(view): view.run_command('unicode_traps') class UnicodeTrap...
24.037037
87
0.66718
77
649
5.506494
0.623377
0.091981
0
0
0
0
0
0
0
0
0
0.013333
0.191063
649
26
88
24.961538
0.794286
0.047766
0
0
0
0
0.04878
0
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.411765
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
90f11b4939ee595b17ff6883b04027fa19911aa3
2,743
py
Python
simba/ROI_multiply.py
KonradDanielewski/simba
d7a448222e33dcb9880b65c14b5b676933cc6fd7
[ "MIT" ]
172
2019-12-18T22:19:42.000Z
2022-03-29T01:58:25.000Z
simba/ROI_multiply.py
KonradDanielewski/simba
d7a448222e33dcb9880b65c14b5b676933cc6fd7
[ "MIT" ]
165
2020-01-10T19:05:16.000Z
2022-03-31T16:08:36.000Z
simba/ROI_multiply.py
KonradDanielewski/simba
d7a448222e33dcb9880b65c14b5b676933cc6fd7
[ "MIT" ]
80
2019-12-20T00:01:43.000Z
2022-03-29T16:20:10.000Z
import glob import pandas as pd from configparser import ConfigParser import os from simba.drop_bp_cords import * def multiplyFreeHand(inifile, currVid): _, CurrVidName, ext = get_fn_ext(currVid) config = ConfigParser() configFile = str(inifile) config.read(configFile) projectPath = conf...
55.979592
131
0.647466
276
2,743
6.365942
0.387681
0.031873
0.015367
0.046101
0.14115
0.064883
0.064883
0
0
0
0
0.002383
0.235144
2,743
48
132
57.145833
0.835081
0
0
0
0
0.021739
0.155473
0
0
0
0
0
0
1
0.021739
false
0
0.108696
0
0.130435
0.086957
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
90f1959d5f3a4e728e1f0156fde3bb7e15e63fa1
689
py
Python
src/utils/ccxt/fetch_order_book.py
YasunoriMATSUOKA/crypto-asset-easy-management
5c33fd8612b843ed39f0ec1fd84efa83f3967e42
[ "MIT" ]
null
null
null
src/utils/ccxt/fetch_order_book.py
YasunoriMATSUOKA/crypto-asset-easy-management
5c33fd8612b843ed39f0ec1fd84efa83f3967e42
[ "MIT" ]
2
2020-12-05T09:31:01.000Z
2020-12-05T12:28:33.000Z
src/utils/ccxt/fetch_order_book.py
YasunoriMATSUOKA/crypto-asset-easy-management
5c33fd8612b843ed39f0ec1fd84efa83f3967e42
[ "MIT" ]
null
null
null
from logging import getLogger import traceback from .get_public_exchange import get_public_exchange logger = getLogger("__main__").getChild(__name__) def fetch_order_book(exchange_name, pair): logger.debug("start") logger.debug(exchange_name) logger.debug(pair) exchange = get_public_exchange(exchange...
27.56
52
0.70537
84
689
5.47619
0.392857
0.167391
0.11087
0
0
0
0
0
0
0
0
0
0.198839
689
24
53
28.708333
0.833333
0
0
0
0
0
0.047896
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.238095
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
90f2e833a7f803e0952b3382cebde491d441fdf8
20,080
py
Python
smoke-classifier/detect_fire.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
10
2019-12-19T02:37:33.000Z
2021-12-07T04:47:08.000Z
smoke-classifier/detect_fire.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
5
2019-10-27T23:22:52.000Z
2020-02-13T23:08:15.000Z
smoke-classifier/detect_fire.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
13
2019-09-24T18:53:24.000Z
2021-07-16T05:57:18.000Z
# Copyright 2018 The Fuego 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 wr...
42.008368
165
0.68745
2,210
20,080
6.211765
0.260633
0.013258
0.00947
0.005245
0.172713
0.141608
0.11655
0.101253
0.071897
0.071897
0
0.005998
0.219572
20,080
477
166
42.096436
0.870015
0.319572
0
0.089219
0
0
0.122993
0
0
0
0
0
0.011152
1
0.052045
false
0.003717
0.096654
0
0.211896
0.003717
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
90f4632c21bed176e470218adb359ed714cf422b
8,165
py
Python
torch_agents/cogment_verse_torch_agents/third_party/hive/mlp.py
kharyal/cogment-verse
12bcb855bc742e3ec4ed11c40a1b475e95a32515
[ "Apache-2.0" ]
null
null
null
torch_agents/cogment_verse_torch_agents/third_party/hive/mlp.py
kharyal/cogment-verse
12bcb855bc742e3ec4ed11c40a1b475e95a32515
[ "Apache-2.0" ]
null
null
null
torch_agents/cogment_verse_torch_agents/third_party/hive/mlp.py
kharyal/cogment-verse
12bcb855bc742e3ec4ed11c40a1b475e95a32515
[ "Apache-2.0" ]
null
null
null
import math import numpy as np import torch import torch.nn.functional as F from torch import nn class SimpleMLP(nn.Module): """Simple MLP function approximator for Q-Learning.""" def __init__(self, in_dim, out_dim, hidden_units=256, num_hidden_layers=1): super().__init__() self.input_layer...
32.145669
116
0.54158
968
8,165
4.247934
0.131198
0.080253
0.076605
0.07393
0.611138
0.565661
0.510214
0.445525
0.398346
0.34679
0
0.008792
0.359216
8,165
253
117
32.272727
0.777141
0.020208
0
0.473171
0
0
0.003347
0
0
0
0
0
0
1
0.063415
false
0
0.02439
0
0.146341
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
90f60f7f71e4d156824089d61cc0fca325d7afa6
2,981
py
Python
models/dsd/bicubic.py
VinAIResearch/blur-kernel-space-exploring
619c9b3b33961ef9311399d7cbbf92050a0c6b51
[ "Apache-2.0" ]
93
2021-05-11T08:35:24.000Z
2022-03-30T10:41:14.000Z
models/dsd/bicubic.py
abcdef2000/blur-kernel-space-exploring
56f707c6fa6e3c4a570f7816b0d60cd45441de0e
[ "Apache-2.0" ]
14
2021-05-20T05:05:19.000Z
2022-01-22T22:09:36.000Z
models/dsd/bicubic.py
abcdef2000/blur-kernel-space-exploring
56f707c6fa6e3c4a570f7816b0d60cd45441de0e
[ "Apache-2.0" ]
29
2021-05-13T04:16:56.000Z
2022-03-03T02:07:24.000Z
import torch from torch import nn from torch.nn import functional as F class BicubicDownSample(nn.Module): def bicubic_kernel(self, x, a=-0.50): """ This equation is exactly copied from the website below: https://clouard.users.greyc.fr/Pantheon/experiments/rescaling/index-en.html#bicubic ...
38.714286
113
0.570949
443
2,981
3.726862
0.284424
0.021805
0.026651
0.029073
0.237432
0.219261
0.136887
0.136887
0.055724
0.055724
0
0.045841
0.290171
2,981
76
114
39.223684
0.734405
0.115733
0
0.140351
0
0
0.026549
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.210526
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