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
16f050092210b638486f36ba124add5847de3ce7
9,390
py
Python
test/cpython/test_base64.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/cpython/test_base64.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/cpython/test_base64.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
import unittest from test import test_support import base64 class LegacyBase64TestCase(unittest.TestCase): def test_encodestring(self): eq = self.assertEqual eq(base64.encodestring("www.python.org"), "d3d3LnB5dGhvbi5vcmc=\n") eq(base64.encodestring("a"), "YQ==\n") eq(base64.encod...
43.271889
81
0.587859
865
9,390
6.317919
0.139884
0.125892
0.065325
0.032205
0.609515
0.46441
0.262397
0.16505
0.154071
0.069167
0
0.098772
0.245261
9,390
216
82
43.472222
0.672358
0.049521
0
0.245614
0
0
0.284157
0.155169
0
0
0
0
0.105263
1
0.081871
false
0
0.02924
0
0.122807
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16f095ebea3707b39efe449bdb8d248fee8a8b6e
7,154
py
Python
src/Path.py
gabbonj/Workbench
86bbb2e3184e0f2fc5e9ac6dc7cfec86473fb7b9
[ "MIT" ]
2
2020-08-06T12:20:24.000Z
2020-08-06T12:20:43.000Z
src/Path.py
gabbonj/Workbench
86bbb2e3184e0f2fc5e9ac6dc7cfec86473fb7b9
[ "MIT" ]
null
null
null
src/Path.py
gabbonj/Workbench
86bbb2e3184e0f2fc5e9ac6dc7cfec86473fb7b9
[ "MIT" ]
null
null
null
import numpy as np from ctypes import c_void_p from .Shader import Shader from .transforms import * from OpenGL.GL import * class Path: # position=[x1, y1, z1, ..., xn, yn, zn] ; rotation = [[Rx1, Ry1, Rz1], ..., [Rxn, Ryn, Rzn]] def __init__(self, position, rotation=None): self.loadPath(position) ...
46.75817
131
0.643836
756
7,154
5.966931
0.179894
0.063844
0.024828
0.019508
0.5409
0.42474
0.414986
0.345821
0.345821
0.338063
0
0.023588
0.247414
7,154
152
132
47.065789
0.814264
0.042354
0
0.29661
0
0
0.061129
0.039047
0
0
0
0
0.008475
1
0.042373
false
0
0.042373
0
0.101695
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
bc3fd4c771ec63f015857f770191b3f22d0f45f1
1,406
py
Python
icfree/echo_instructor/args.py
brsynth/icfree-ml
7f6c67f26bf60e9cadd59855aebb6bdb5bd64fda
[ "MIT" ]
1
2022-01-13T17:54:12.000Z
2022-01-13T17:54:12.000Z
icfree/echo_instructor/args.py
brsynth/icfree-ml
7f6c67f26bf60e9cadd59855aebb6bdb5bd64fda
[ "MIT" ]
null
null
null
icfree/echo_instructor/args.py
brsynth/icfree-ml
7f6c67f26bf60e9cadd59855aebb6bdb5bd64fda
[ "MIT" ]
null
null
null
from argparse import ( ArgumentParser ) from os import getcwd as os_getcwd DEFAULT_OUTPUT_FOLDER = os_getcwd() DEFAULT_SAMPLE_VOLUME = 10000 def build_args_parser( program, description): parser = ArgumentParser( program, description, ) parser = add_arguments(pars...
20.985075
75
0.600996
158
1,406
5.170886
0.35443
0.077111
0.124847
0.073439
0.178703
0.178703
0.178703
0.178703
0.178703
0.093023
0
0.005128
0.306543
1,406
66
76
21.30303
0.832821
0
0
0.294118
0
0
0.296586
0.034139
0
0
0
0
0
1
0.039216
false
0
0.039216
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc4085bfce6da5fce4ce47af500b1138fc887137
246
py
Python
ex1_01.py
sitdh/59.com-prog
24f536a72b0467ff3ee1615f515ecff9fbf36bb3
[ "MIT" ]
1
2021-04-25T14:46:12.000Z
2021-04-25T14:46:12.000Z
ex1_01.py
sitdh/com-prog
24f536a72b0467ff3ee1615f515ecff9fbf36bb3
[ "MIT" ]
null
null
null
ex1_01.py
sitdh/com-prog
24f536a72b0467ff3ee1615f515ecff9fbf36bb3
[ "MIT" ]
null
null
null
import math x = float(input()) prop_2 = -(x**2) / math.factorial(2) prop_3 = (x**4) / math.factorial(4) prop_4 = -(x**6) / math.factorial(6) cos_x = float(1 + prop_2 + prop_3 + prop_4) print(prop_2) print(prop_3) print(prop_4) print(cos_x)
14.470588
43
0.646341
48
246
3.083333
0.291667
0.101351
0.081081
0
0
0
0
0
0
0
0
0.077295
0.158537
246
16
44
15.375
0.637681
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.4
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
bc41a5fa588f792a592b96d3c6500dbf29045ec5
3,211
py
Python
test/datagateway_api/icat/filters/test_where_filter.py
MRichards99/datagateway-api
2e6133636fed950a16190d2f703f152c73bb5b1b
[ "Apache-2.0" ]
2
2022-02-10T17:47:53.000Z
2022-02-10T19:04:02.000Z
test/datagateway_api/icat/filters/test_where_filter.py
MRichards99/datagateway-api
2e6133636fed950a16190d2f703f152c73bb5b1b
[ "Apache-2.0" ]
183
2020-12-02T11:34:18.000Z
2022-03-29T15:19:23.000Z
test/datagateway_api/icat/filters/test_where_filter.py
MRichards99/datagateway-api
2e6133636fed950a16190d2f703f152c73bb5b1b
[ "Apache-2.0" ]
7
2021-04-13T17:26:05.000Z
2021-11-22T14:24:24.000Z
import pytest from datagateway_api.src.common.exceptions import BadRequestError, FilterError from datagateway_api.src.datagateway_api.filter_order_handler import FilterOrderHandler from datagateway_api.src.datagateway_api.icat.filters import PythonICATWhereFilter class TestICATWhereFilter: @pytest.mark.parametri...
43.391892
87
0.617253
387
3,211
4.927649
0.235142
0.080231
0.047719
0.015732
0.378081
0.315155
0.224961
0.153644
0.153644
0.153644
0
0.016413
0.222049
3,211
73
88
43.986301
0.746998
0.0218
0
0.125
0
0
0.17512
0.007656
0
0
0
0
0.071429
1
0.125
false
0
0.071429
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc43defd49d4ea43585c8d3910e9622ef8bc8d38
1,099
py
Python
scrapy/spider/spider/items.py
huobingli/splider
a62f0553160531a0735b249b0dc49747e9c821f9
[ "MIT" ]
null
null
null
scrapy/spider/spider/items.py
huobingli/splider
a62f0553160531a0735b249b0dc49747e9c821f9
[ "MIT" ]
null
null
null
scrapy/spider/spider/items.py
huobingli/splider
a62f0553160531a0735b249b0dc49747e9c821f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy from scrapy.loader import ItemLoader from scrapy.loader.processors import TakeFirst # class SpiderItem(scrapy.Item): # # define the fields for your...
24.977273
52
0.66424
133
1,099
5.428571
0.503759
0.213296
0.062327
0.049862
0.135734
0.135734
0.135734
0.135734
0.135734
0.135734
0
0.00348
0.215651
1,099
44
53
24.977273
0.834107
0.503185
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.214286
0
1
0
0
0
0
null
1
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
0
1
bc441b2065c8199c0dd4d1448231c084f1b1cfa3
7,160
py
Python
codetools/contexts/multi_context.py
enthought/codetools
20d8bb1eba68145750a1b689655b839078121474
[ "BSD-3-Clause" ]
29
2015-08-10T20:25:00.000Z
2021-11-30T23:34:24.000Z
codetools/contexts/multi_context.py
enthought/codetools
20d8bb1eba68145750a1b689655b839078121474
[ "BSD-3-Clause" ]
40
2015-01-05T15:01:37.000Z
2022-03-11T13:47:06.000Z
codetools/contexts/multi_context.py
enthought/codetools
20d8bb1eba68145750a1b689655b839078121474
[ "BSD-3-Clause" ]
4
2015-04-14T10:06:26.000Z
2021-01-19T16:46:48.000Z
# # (C) Copyright 2013 Enthought, Inc., Austin, TX # All right reserved. # # This file is open source software distributed according to the terms in # LICENSE.txt # """ Context holding multiple subcontexts. """ from __future__ import absolute_import from itertools import chain from collections import MutableMapping ...
30.468085
85
0.557682
757
7,160
5.150594
0.305152
0.034624
0.034881
0.015389
0.11644
0.090023
0.061041
0.025648
0.025648
0.025648
0
0.000841
0.335754
7,160
234
86
30.598291
0.818966
0.276117
0
0.324324
0
0
0.028836
0.005595
0
0
0
0
0
1
0.126126
false
0
0.063063
0.036036
0.351351
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
bc447d214c0f2c389991fd5918f6f13fed4aaf6b
634
py
Python
line_counter/TestCodes/python_test.py
FMoller/coding-auxiliary-tools
21784f01731404f33059f3a8c4e73a104709ffe9
[ "MIT" ]
null
null
null
line_counter/TestCodes/python_test.py
FMoller/coding-auxiliary-tools
21784f01731404f33059f3a8c4e73a104709ffe9
[ "MIT" ]
null
null
null
line_counter/TestCodes/python_test.py
FMoller/coding-auxiliary-tools
21784f01731404f33059f3a8c4e73a104709ffe9
[ "MIT" ]
null
null
null
"""A simple file to test the line_counter performance in python This is a multiline doctest """ __author__ = "Frederico Moeller" __copyright__ = "" __credits__ = ["Frederico Moeller"] __license__ = "MIT" __version__ = "1.0.1" __maintainer__ = "Frederico Moeller" __email__ = "" __status__ = "" #import things import ma...
21.133333
63
0.641956
78
634
4.679487
0.615385
0.131507
0.038356
0.065753
0
0
0
0
0
0
0
0.00641
0.26183
634
29
64
21.862069
0.773504
0.253943
0
0.111111
0
0
0.154684
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.277778
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
bc44b8524b66c7a720d547f156846ae7572f5832
4,602
py
Python
causal_attribution/data.py
VaniW/deconfounded-lexicon-induction
419ecf717f51cfd1741732ca3191b36b565bd1a4
[ "MIT" ]
25
2020-11-03T16:38:51.000Z
2022-03-28T11:53:08.000Z
causal_attribution/data.py
VaniW/deconfounded-lexicon-induction
419ecf717f51cfd1741732ca3191b36b565bd1a4
[ "MIT" ]
1
2019-12-15T08:33:47.000Z
2019-12-16T17:33:15.000Z
causal_attribution/data.py
VaniW/deconfounded-lexicon-induction
419ecf717f51cfd1741732ca3191b36b565bd1a4
[ "MIT" ]
7
2021-05-03T01:01:28.000Z
2022-02-19T04:06:20.000Z
"""Data pipelines.""" from collections import defaultdict, OrderedDict from tqdm import tqdm from torch.utils.data import TensorDataset, DataLoader, RandomSampler, SequentialSampler import torch def get_info(examples, vocab=None, max_seq_len=256): """Gathers info on and creats a featurized example generator for...
35.674419
93
0.612994
596
4,602
4.620805
0.271812
0.025418
0.022876
0.015251
0.081336
0.043573
0.023965
0.023965
0.023965
0
0
0.0085
0.284224
4,602
128
94
35.953125
0.827565
0.240113
0
0.092105
0
0
0.064469
0
0
0
0
0
0.039474
1
0.078947
false
0
0.052632
0.013158
0.197368
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
bc44f25c8ff96beccbbd3fbaa05ae2dcf6790cc6
576
py
Python
fopp/Chapter 12. Functions/get_num_digits.py
H2u-Hwng/EVC
c650fe7356a333011514cf9025dfd97bf71b1de3
[ "MIT" ]
null
null
null
fopp/Chapter 12. Functions/get_num_digits.py
H2u-Hwng/EVC
c650fe7356a333011514cf9025dfd97bf71b1de3
[ "MIT" ]
null
null
null
fopp/Chapter 12. Functions/get_num_digits.py
H2u-Hwng/EVC
c650fe7356a333011514cf9025dfd97bf71b1de3
[ "MIT" ]
null
null
null
# Take number, and convert integer to string # Calculate and return number of digits def get_num_digits(num): # Convert int to str num_str = str(num) # Calculate number of digits digits = len(num_str) return digits # Define main function def main(): # Prompt user for an int...
20.571429
70
0.647569
80
576
4.5625
0.4375
0.087671
0.153425
0
0
0
0
0
0
0
0
0
0.276042
576
27
71
21.333333
0.8753
0.402778
0
0
0
0
0.221557
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.333333
0.111111
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
1
0
0
0
0
0
0
0
1
bc450f5f688b95fda7b269a4ca568c7ecc5143ca
4,992
py
Python
whois/__init__.py
mzpqnxow/whois-1
b5623ed25cfa58d9457d30dae640e69b9e530b23
[ "MIT" ]
null
null
null
whois/__init__.py
mzpqnxow/whois-1
b5623ed25cfa58d9457d30dae640e69b9e530b23
[ "MIT" ]
null
null
null
whois/__init__.py
mzpqnxow/whois-1
b5623ed25cfa58d9457d30dae640e69b9e530b23
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals from __future__ import division from future import standard_library standard_library.install_aliases() from builtins import * import re import sys import os import subprocess imp...
42.305085
1,227
0.55629
927
4,992
2.9137
0.211435
0.035542
0.048871
0.059237
0.197705
0.183636
0.178082
0.155498
0.138467
0.138467
0
0.109804
0.182692
4,992
117
1,228
42.666667
0.552206
0.252404
0
0.132353
0
0.014706
0.358366
0.337107
0
0
0
0
0
1
0.029412
false
0.014706
0.191176
0
0.264706
0.044118
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bc45c15aebfb0da618b90f3884eb8a545e0f2823
3,255
py
Python
app/dialog/avatar_picture_dialog.py
tirinox/alphavatarbot
5adac8c9c4534206eaf6c146f6e194ed5951d055
[ "MIT" ]
1
2021-03-18T15:35:15.000Z
2021-03-18T15:35:15.000Z
app/dialog/avatar_picture_dialog.py
tirinox/alphavatarbot
5adac8c9c4534206eaf6c146f6e194ed5951d055
[ "MIT" ]
null
null
null
app/dialog/avatar_picture_dialog.py
tirinox/alphavatarbot
5adac8c9c4534206eaf6c146f6e194ed5951d055
[ "MIT" ]
1
2021-03-18T15:35:51.000Z
2021-03-18T15:35:51.000Z
import asyncio from contextlib import AsyncExitStack from aiogram.dispatcher.filters.state import StatesGroup, State from aiogram.dispatcher.storage import FSMContextProxy from aiogram.types import Message, PhotoSize, ReplyKeyboardRemove, ContentTypes from aiogram.utils.helper import HelperMode from dialog.avatar_ima...
39.695122
119
0.677112
404
3,255
5.200495
0.324257
0.023322
0.042837
0.036173
0.254641
0.150405
0.097097
0.039981
0
0
0
0.006093
0.243625
3,255
81
120
40.185185
0.847279
0.046083
0
0.070175
0
0
0.00839
0.00839
0
0
0
0.012346
0
1
0.035088
false
0
0.192982
0.017544
0.350877
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
1
0
0
0
0
0
0
0
0
0
0
1
bc498b7d39a14ae7cd3ad1e6341af40bb6279e72
5,144
py
Python
image_store_processing.py
olubiyiontheweb/digid_websearch_flask
181107eaa60faff9429b754236406eed56e3c1ec
[ "MIT" ]
1
2021-12-15T18:56:05.000Z
2021-12-15T18:56:05.000Z
image_store_processing.py
olubiyiontheweb/similar_image_websearch
ddb79a3e627c1143ff7f64e6d82f0d8b9dcd8047
[ "MIT" ]
null
null
null
image_store_processing.py
olubiyiontheweb/similar_image_websearch
ddb79a3e627c1143ff7f64e6d82f0d8b9dcd8047
[ "MIT" ]
null
null
null
from skimage.metrics import structural_similarity as ssim from glob import glob from PIL import Image import numpy as np import ntpath import dhash import cv2 from database_structure import database_migrations IMAGE_FOLDER = "./image_store" ALLOWED_EXTENSIONS = ['png', 'jpg', 'jpeg'] image_store_hash = dict() db_ops ...
36.742857
79
0.631221
661
5,144
4.633888
0.189107
0.081619
0.06856
0.045707
0.444989
0.420503
0.329742
0.284688
0.25857
0.25857
0
0.006452
0.276827
5,144
139
80
37.007194
0.816935
0.107309
0
0.313131
0
0
0.077982
0
0
0
0
0.007194
0
1
0.10101
false
0
0.080808
0
0.262626
0.151515
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
bc49a143fb9688648101a0602142d480263709b3
8,823
py
Python
cogs/jpserv.py
elthorito/Rai
a6f05567a0d4ed98a09676e507c478a27630bf1c
[ "MIT" ]
null
null
null
cogs/jpserv.py
elthorito/Rai
a6f05567a0d4ed98a09676e507c478a27630bf1c
[ "MIT" ]
null
null
null
cogs/jpserv.py
elthorito/Rai
a6f05567a0d4ed98a09676e507c478a27630bf1c
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import os import json from datetime import date, datetime, timedelta from .utils import helper_functions as hf from copy import deepcopy dir_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))).replace('\\', '/') class Jpserv(commands.Cog): """Module...
45.715026
120
0.572821
1,142
8,823
4.37303
0.232925
0.030437
0.040849
0.023428
0.330597
0.284742
0.203244
0.160993
0.12495
0.108931
0
0.062438
0.315652
8,823
192
121
45.953125
0.764657
0.051796
0
0.314465
0
0.018868
0.242631
0
0
0
0
0
0
1
0.012579
false
0
0.044025
0
0.138365
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
bc4baf04ed5a5ebda75a1b19ad254a0f725f6190
2,027
py
Python
nehebn2.py
psifertex/nehebn2
8b62a88a9d06624dbb62b8b74cc0566172fba970
[ "MIT" ]
null
null
null
nehebn2.py
psifertex/nehebn2
8b62a88a9d06624dbb62b8b74cc0566172fba970
[ "MIT" ]
null
null
null
nehebn2.py
psifertex/nehebn2
8b62a88a9d06624dbb62b8b74cc0566172fba970
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from components import ProgramState import binaryninja as binja import argparse import os.path import curses # TODO...impliment live-refreashing the settings.json during run (add the keybinding and check for it here in the global input loop) # TODO...support multi-key presses? Not sure if this ...
28.957143
138
0.644795
253
2,027
5.098814
0.561265
0.027907
0.027907
0.021705
0
0
0
0
0
0
0
0.01225
0.23483
2,027
69
139
29.376812
0.819471
0.207203
0
0.12
0
0
0.080675
0
0
0
0
0.014493
0
1
0.02
false
0
0.1
0
0.12
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
1
0
0
0
0
0
0
0
0
0
0
1
bc4d5b7bde1ce5d45b97c67684a8f6c61429eb5b
5,144
py
Python
keras/layers/pooling/base_pooling3d.py
itsraina/keras
5e9376b5b94b6fb445dd52dbfafbc4e95bff5e35
[ "Apache-2.0" ]
null
null
null
keras/layers/pooling/base_pooling3d.py
itsraina/keras
5e9376b5b94b6fb445dd52dbfafbc4e95bff5e35
[ "Apache-2.0" ]
null
null
null
keras/layers/pooling/base_pooling3d.py
itsraina/keras
5e9376b5b94b6fb445dd52dbfafbc4e95bff5e35
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.823529
80
0.623639
662
5,144
4.670695
0.297583
0.045278
0.023286
0.020699
0.189198
0.179819
0.060802
0.060802
0.04075
0.04075
0
0.017943
0.274106
5,144
135
81
38.103704
0.810123
0.383554
0
0.101266
0
0
0.040642
0
0
0
0
0.007407
0
1
0.050633
false
0
0.063291
0
0.177215
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
bc4d689703a555cde99de572dc764b14b5f45f70
726
py
Python
main.py
lucastan96/video2bitmap
8a54f33af92b5088d29322abf936a6ce2ecc0ac4
[ "MIT" ]
1
2020-12-30T00:57:38.000Z
2020-12-30T00:57:38.000Z
main.py
lucastan96/video2bitmap
8a54f33af92b5088d29322abf936a6ce2ecc0ac4
[ "MIT" ]
null
null
null
main.py
lucastan96/video2bitmap
8a54f33af92b5088d29322abf936a6ce2ecc0ac4
[ "MIT" ]
null
null
null
import moviepy.editor as mpy import moviepy.video.fx.all as vfx import subprocess as sp # Crop and resize video clip = mpy.VideoFileClip("smoke.mp4") (w, h) = clip.size cropped_clip = vfx.crop(clip, width=(h/128)*64, height=h, x1=w/4*3-100, y1=0).resize((64, 128)) cropped_clip.write_videofile('smoke-cropped.mp4') # C...
34.571429
95
0.688705
130
726
3.807692
0.569231
0.052525
0.060606
0
0
0
0
0
0
0
0
0.053398
0.14876
726
21
96
34.571429
0.747573
0.170799
0
0
0
0.071429
0.198997
0.088629
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc4dbd4536189e5c83cb95261570c971ee7df77f
336
py
Python
ghostwriter/rolodex/apps.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
601
2019-07-30T17:06:37.000Z
2022-03-31T00:55:31.000Z
ghostwriter/rolodex/apps.py
chrismaddalena/Ghostwriter
5a938358450cd0e69a42883b1b18e067644744a8
[ "BSD-3-Clause" ]
150
2019-08-01T07:20:22.000Z
2022-03-29T19:18:02.000Z
ghostwriter/rolodex/apps.py
chrismaddalena/Ghostwriter
5a938358450cd0e69a42883b1b18e067644744a8
[ "BSD-3-Clause" ]
126
2019-07-30T17:42:49.000Z
2022-03-21T20:43:35.000Z
"""This contains the configuration of the Rolodex application.""" # Django Imports from django.apps import AppConfig class RolodexConfig(AppConfig): name = "ghostwriter.rolodex" def ready(self): try: import ghostwriter.rolodex.signals # noqa F401 isort:skip except ImportError: ...
22.4
70
0.672619
36
336
6.277778
0.805556
0.159292
0
0
0
0
0
0
0
0
0
0.011952
0.252976
336
14
71
24
0.888446
0.285714
0
0
0
0
0.081545
0
0
0
0
0
0
1
0.125
false
0.125
0.375
0
0.75
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
1
1
0
1
0
0
3
bc4f1db83b181105ad1b030028d4a99321957de7
560
py
Python
boards/migrations/0024_boardpreferences_moderators.py
oscarsiles/jotlet
361f7ad0d32ea96d012020a67493931482207036
[ "BSD-3-Clause" ]
null
null
null
boards/migrations/0024_boardpreferences_moderators.py
oscarsiles/jotlet
361f7ad0d32ea96d012020a67493931482207036
[ "BSD-3-Clause" ]
2
2022-03-21T22:22:33.000Z
2022-03-28T22:18:33.000Z
boards/migrations/0024_boardpreferences_moderators.py
oscarsiles/jotlet
361f7ad0d32ea96d012020a67493931482207036
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-01 14:42 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('boards', '0023_alter_image_type'), ] operations ...
26.666667
115
0.673214
62
560
5.903226
0.709677
0.054645
0.087432
0.114754
0
0
0
0
0
0
0
0.043779
0.225
560
20
116
28
0.799539
0.080357
0
0
1
0
0.134503
0.040936
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bc4f5018d00b3586d20735c150c38e4b306f48f3
325
py
Python
models/minimize_model.py
MichalBusta/OpenCitiesAIC
2358118a782edde27a588d6adaf79941cbd90de6
[ "MIT" ]
7
2020-03-23T21:43:32.000Z
2021-03-30T09:11:45.000Z
models/minimize_model.py
MichalBusta/OpenCitiesAIC
2358118a782edde27a588d6adaf79941cbd90de6
[ "MIT" ]
4
2020-05-09T01:13:24.000Z
2022-01-13T02:24:14.000Z
models/minimize_model.py
MichalBusta/OpenCitiesAIC
2358118a782edde27a588d6adaf79941cbd90de6
[ "MIT" ]
4
2020-04-17T15:06:36.000Z
2021-03-30T09:11:47.000Z
''' Created on Mar 22, 2020 @author: Michal.Busta at gmail.com ''' #get rid of the optimizer state ... import torch MODEL_PATH = '/models/model-b2-2.pth' state = torch.load(MODEL_PATH, map_location=lambda storage, loc: storage) state_out = { "state_dict": state["state_dict"], } torch.save(state_out, 'model-b2-2....
20.3125
73
0.707692
52
325
4.288462
0.653846
0.080717
0.071749
0.098655
0
0
0
0
0
0
0
0.035587
0.135385
325
16
74
20.3125
0.758007
0.289231
0
0
0
0
0.251121
0.098655
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
bc4fb0ed6bbdc4f3f5e43225548f14915b084779
1,125
py
Python
setup.py
thomas-kloeber/braumeister
1045df0ad95eb6a4b9b16bb91ece64b09ff1b1f7
[ "MIT" ]
6
2018-02-09T15:03:12.000Z
2021-02-18T07:21:34.000Z
setup.py
thomas-kloeber/braumeister
1045df0ad95eb6a4b9b16bb91ece64b09ff1b1f7
[ "MIT" ]
17
2018-03-20T09:28:32.000Z
2022-01-27T08:48:41.000Z
setup.py
thomas-kloeber/braumeister
1045df0ad95eb6a4b9b16bb91ece64b09ff1b1f7
[ "MIT" ]
7
2018-02-09T15:06:11.000Z
2020-03-02T10:23:10.000Z
import os import re from setuptools import setup version = re.search( '^__version__\s*=\s*"(.*)"', open('braumeister/braumeister.py').read(), re.M ).group(1) def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="braumeister", packages=["braumeiste...
26.162791
73
0.639111
123
1,125
5.707317
0.674797
0.125356
0
0
0
0
0
0
0
0
0
0.008879
0.199111
1,125
42
74
26.785714
0.770255
0
0
0
0
0
0.427556
0.092444
0
0
0
0
0
1
0.027778
false
0
0.083333
0.027778
0.138889
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
bc500a982cb78bb46e6aa705ee116eae36444405
3,493
py
Python
modules/inference.py
rubelchowdhury20/wuton-with-densepose
5485f1f311724d8f8b887d669a8b55c73849eb98
[ "MIT" ]
12
2020-11-13T01:51:24.000Z
2022-03-17T03:14:27.000Z
modules/inference.py
rubelchowdhury20/wuton-with-densepose
5485f1f311724d8f8b887d669a8b55c73849eb98
[ "MIT" ]
1
2021-10-12T06:10:22.000Z
2021-10-12T06:10:22.000Z
modules/inference.py
rubelchowdhury20/wuton-with-densepose
5485f1f311724d8f8b887d669a8b55c73849eb98
[ "MIT" ]
2
2021-01-10T17:51:34.000Z
2022-03-02T10:53:11.000Z
# standard library imports import os # third party imports import numpy as np from PIL import Image import torch.nn as nn from torchvision import transforms # local imports import config from . import utils from . import geometric_transformer class GeoTransformationInfer(nn.Module): def __init__(self, output_di...
41.094118
178
0.742056
543
3,493
4.480663
0.187845
0.160296
0.155364
0.098644
0.427045
0.328812
0.235101
0.203042
0.203042
0.203042
0
0.081303
0.130261
3,493
84
179
41.583333
0.719552
0.057544
0
0
0
0
0.018259
0.006695
0
0
0
0
0
1
0.045455
false
0
0.121212
0
0.181818
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
bc50340e05b5a45da8fec5c4d61ac3cccc89e3f0
6,577
py
Python
imggen/fonts.py
p-lambda/unlabeled_outputs
18cda9e922591ec99d70caaa173abbb049ef274b
[ "MIT" ]
4
2021-07-02T03:08:29.000Z
2022-03-12T07:13:13.000Z
imggen/fonts.py
p-lambda/unlabeled_outputs
18cda9e922591ec99d70caaa173abbb049ef274b
[ "MIT" ]
1
2021-12-25T21:24:23.000Z
2021-12-25T21:24:23.000Z
imggen/fonts.py
p-lambda/unlabeled_outputs
18cda9e922591ec99d70caaa173abbb049ef274b
[ "MIT" ]
1
2021-12-26T07:33:45.000Z
2021-12-26T07:33:45.000Z
from pathlib import Path import h5py import numpy as np from torchvision.datasets.vision import VisionDataset from PIL import Image import requests import zipfile from tqdm import tqdm def download_file_from_google_drive(id, destination): URL = "https://docs.google.com/uc?export=download" session = requests...
35.939891
149
0.614414
846
6,577
4.556738
0.217494
0.032685
0.06537
0.044099
0.366018
0.250843
0.22153
0.214267
0.214267
0.214267
0
0.012468
0.292687
6,577
182
150
36.137363
0.816208
0.112513
0
0.178862
0
0
0.033491
0.009293
0
0
0
0
0
1
0.073171
false
0
0.065041
0.00813
0.219512
0.01626
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
bc511f5404ed81ec6c064f4f97b303375361769d
774
py
Python
leetcode/47.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
1
2019-08-28T23:15:25.000Z
2019-08-28T23:15:25.000Z
leetcode/47.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
null
null
null
leetcode/47.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
null
null
null
""" link: https://leetcode.com/problems/permutations-ii problem: 求全排列,nums中存在重复数 solution: 同46,加上排序即可 """ class Solution: def permuteUnique(self, nums: List[int]) -> List[List[int]]: if len(nums) == 1: return [nums] new_nums = nums.copy() new_nums.sort() ...
28.666667
73
0.529716
106
774
3.698113
0.367925
0.285714
0.122449
0.112245
0.201531
0.163265
0.163265
0.163265
0.163265
0.163265
0
0.023166
0.330749
774
26
74
29.769231
0.733591
0.127907
0
0.125
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.25
0
0
0
0
null
1
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
0
1
bc535e8c70a7ae7d8c05a67decf44c291034483f
2,406
py
Python
adminmgr/media/code/A3/task3/T1_ocefXVJ.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
9
2019-11-08T02:05:27.000Z
2021-12-13T12:06:35.000Z
adminmgr/media/code/A3/task3/T1_ocefXVJ.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
6
2019-11-27T03:23:16.000Z
2021-06-10T19:15:13.000Z
adminmgr/media/code/A3/task3/T1_ocefXVJ.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
4
2019-11-26T17:04:27.000Z
2021-12-13T11:57:03.000Z
import findspark findspark.init() from pyspark import SparkConf,SparkContext from pyspark.streaming import StreamingContext from pyspark.sql import Row,SQLContext import sys import requests def tmp(x): y = (x.split(';')[7]).split(',') return (y) def forf(x): for i in x: yield (i,1) def topprint(time,rdd): re...
24.804124
86
0.741895
362
2,406
4.91989
0.287293
0.031443
0.035935
0.058956
0.554183
0.548568
0.548568
0.548568
0.504211
0.504211
0
0.024357
0.095594
2,406
96
87
25.0625
0.794118
0.078969
0
0
0
0
0.036145
0
0
0
0
0
0
1
0.075
false
0
0.15
0
0.25
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc53c586e44516a506fdeff0f180d92c8730dd5b
908
py
Python
courses/migrations/0003_alter_content_options_alter_module_options_and_more.py
antonnifo/E-Soma
93d49b27dedbff58d19f8245a79693762fc819d5
[ "MIT" ]
1
2022-02-09T06:28:04.000Z
2022-02-09T06:28:04.000Z
courses/migrations/0003_alter_content_options_alter_module_options_and_more.py
antonnifo/E-Soma
93d49b27dedbff58d19f8245a79693762fc819d5
[ "MIT" ]
null
null
null
courses/migrations/0003_alter_content_options_alter_module_options_and_more.py
antonnifo/E-Soma
93d49b27dedbff58d19f8245a79693762fc819d5
[ "MIT" ]
1
2022-02-09T06:29:11.000Z
2022-02-09T06:29:11.000Z
# Generated by Django 4.0.1 on 2022-01-20 13:10 import courses.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('courses', '0002_video_text_image_file_content'), ] operations = [ migrations.AlterModelOptions( name='content', ...
25.942857
67
0.562775
83
908
6.048193
0.518072
0.077689
0.123506
0.119522
0.294821
0.294821
0.294821
0.294821
0.294821
0.294821
0
0.033816
0.316079
908
34
68
26.705882
0.774557
0.049559
0
0.571429
1
0
0.119628
0.039489
0
0
0
0
0
1
0
false
0
0.071429
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bc5478846dead2384e17349d8f75968c543992de
407
py
Python
pkg/maths/maths.py
prateekdegaons1991/experiment-loadtest
b53c70fac5b2f7d37df77844b26f79741c74c1b6
[ "Apache-2.0" ]
8
2020-04-17T06:34:30.000Z
2021-12-18T10:54:50.000Z
pkg/maths/maths.py
oumkale/test-python
1f3d3e42ffbe1bf5ed9df8a0c6038e50129b2c4d
[ "Apache-2.0" ]
15
2020-04-18T06:01:53.000Z
2022-02-15T08:56:25.000Z
pkg/maths/maths.py
oumkale/test-python
1f3d3e42ffbe1bf5ed9df8a0c6038e50129b2c4d
[ "Apache-2.0" ]
12
2020-04-17T05:14:27.000Z
2022-03-29T19:24:20.000Z
#Atoi stands for ASCII to Integer Conversion def atoi(string): res = 0 # Iterate through all characters of # input and update result for i in range(len(string)): res = res * 10 + (ord(string[i]) - ord('0')) return res #Adjustment contains rule of three for calculating an integer given an...
27.133333
109
0.673219
60
407
4.566667
0.666667
0.065693
0
0
0
0
0
0
0
0
0
0.022654
0.240786
407
14
110
29.071429
0.864078
0.515971
0
0
0
0
0.005181
0
0
0
0
0
0
1
0.285714
false
0
0
0.142857
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
bc562cc6c9b35189e9adc0f9ba37a99ec2138c03
3,672
py
Python
google_compute_engine/config_manager.py
redoxdrh/GCP-Flask
34af307df541edca4eee58b1d8be64888550a674
[ "Apache-2.0" ]
2
2017-05-04T08:05:29.000Z
2019-02-08T21:36:11.000Z
google_compute_engine/config_manager.py
redoxdrh/GCP-Flask
34af307df541edca4eee58b1d8be64888550a674
[ "Apache-2.0" ]
null
null
null
google_compute_engine/config_manager.py
redoxdrh/GCP-Flask
34af307df541edca4eee58b1d8be64888550a674
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.381818
78
0.699891
532
3,672
4.744361
0.302632
0.083201
0.046355
0.029715
0.257924
0.203249
0.190571
0.16046
0.16046
0.16046
0
0.003106
0.210784
3,672
109
79
33.688073
0.86784
0.491285
0
0
0
0
0.038915
0.033608
0
0
0
0
0
1
0.153846
false
0
0.102564
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc56aa53a834b83d16f942b242b5f67998363eda
22,135
py
Python
mscreen/autodocktools_prepare_py3k/mglutil/web/services/AppService_services.py
e-mayo/mscreen
a50f0b2f7104007c730baa51b4ec65c891008c47
[ "MIT" ]
9
2021-03-06T04:24:28.000Z
2022-01-03T09:53:07.000Z
mglutil/web/services/AppService_services.py
e-mayo/autodocktools-prepare-py3k
2dd2316837bcb7c19384294443b2855e5ccd3e01
[ "BSD-3-Clause" ]
3
2021-03-07T05:37:16.000Z
2021-09-19T15:06:54.000Z
mglutil/web/services/AppService_services.py
e-mayo/autodocktools-prepare-py3k
2dd2316837bcb7c19384294443b2855e5ccd3e01
[ "BSD-3-Clause" ]
4
2019-08-28T23:11:39.000Z
2021-11-27T08:43:36.000Z
################################################## # ./AppService_services.py # generated by ZSI.wsdl2python # # ################################################## from .AppService_services_types import * from .AppService_services_types import \ nbcr_sdsc_edu_opal_types as ns1 import urllib.parse, types from...
41.296642
136
0.651096
2,066
22,135
6.687803
0.099226
0.045162
0.056452
0.079033
0.555475
0.505609
0.448795
0.415865
0.385467
0.344069
0
0.010064
0.250373
22,135
535
137
41.373832
0.822636
0.252586
0
0.262948
1
0
0.066174
0
0
0
0
0
0
1
0.175299
false
0
0.023904
0.007968
0.446215
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bc56ca67cc1e81684bbce0d45386183e51cffb90
10,340
py
Python
examples/pytorch/swin/checkpoint_quantization.py
hieuhoang/FasterTransformer
440695ccac874574b1d2e1121788e8fa674b4381
[ "Apache-2.0" ]
null
null
null
examples/pytorch/swin/checkpoint_quantization.py
hieuhoang/FasterTransformer
440695ccac874574b1d2e1121788e8fa674b4381
[ "Apache-2.0" ]
null
null
null
examples/pytorch/swin/checkpoint_quantization.py
hieuhoang/FasterTransformer
440695ccac874574b1d2e1121788e8fa674b4381
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
47.214612
137
0.562186
1,194
10,340
4.546064
0.173367
0.05748
0.059322
0.035925
0.56227
0.453758
0.407701
0.348379
0.319639
0.280951
0
0.035136
0.331141
10,340
219
138
47.214612
0.749711
0.156867
0
0.421053
0
0
0.179709
0.148892
0
0
0
0
0.019737
1
0.006579
false
0
0.032895
0
0.046053
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
bc57b1f771495cf5ea069e99b2859a0f3795d393
6,608
py
Python
mars/deploy/kubernetes/core.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
null
null
null
mars/deploy/kubernetes/core.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
null
null
null
mars/deploy/kubernetes/core.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
39.333333
100
0.628783
802
6,608
4.933915
0.299252
0.019459
0.014152
0.016679
0.083902
0.053071
0.053071
0.053071
0.041446
0.041446
0
0.009742
0.285412
6,608
167
101
39.568862
0.828251
0.152542
0
0.125
0
0
0.072191
0.00778
0
0
0
0
0
1
0.107143
false
0
0.098214
0.017857
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc58243dff3b67ec29b9366a2531008a83301c24
767
py
Python
tests/tests_model/tests_bert_model.py
elangovana/gene_normalisation
9152298e951cd968ee516815c7fa11f1ceabca51
[ "MIT" ]
1
2020-10-21T06:01:28.000Z
2020-10-21T06:01:28.000Z
tests/tests_model/tests_bert_model.py
elangovana/gene_normalisation
9152298e951cd968ee516815c7fa11f1ceabca51
[ "MIT" ]
null
null
null
tests/tests_model/tests_bert_model.py
elangovana/gene_normalisation
9152298e951cd968ee516815c7fa11f1ceabca51
[ "MIT" ]
null
null
null
from unittest import TestCase import torch import transformers from model.bert_model import BertModel class TestBertModel(TestCase): def test_forward(self): # Bert Config vocab_size = 10 sequence_len = 20 batch = 32 num_classes = 3 expected_shape = (batch, seque...
26.448276
144
0.688396
98
767
5.153061
0.479592
0.071287
0.063366
0
0
0
0
0
0
0
0
0.023729
0.230769
767
28
145
27.392857
0.832203
0.028683
0
0
0
0
0
0
0
0
0
0
0.0625
1
0.0625
false
0
0.25
0
0.375
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
bc583d8b5318b12422c378e8c294b322b7118447
1,593
py
Python
tests/renderer_test.py
tmcclintock/PyDonJuan
ab6d567b568c3e0dd976b10c2628ad99ca81b953
[ "CC0-1.0" ]
2
2020-12-14T20:50:57.000Z
2021-05-26T04:32:24.000Z
tests/renderer_test.py
tmcclintock/PyDonJuan
ab6d567b568c3e0dd976b10c2628ad99ca81b953
[ "CC0-1.0" ]
29
2020-12-18T15:56:14.000Z
2021-01-12T01:17:48.000Z
tests/renderer_test.py
tmcclintock/donjuan
ab6d567b568c3e0dd976b10c2628ad99ca81b953
[ "CC0-1.0" ]
null
null
null
import json import os import tempfile from unittest import TestCase import pytest from donjuan import Dungeon, DungeonRandomizer, Renderer class RendererTest(TestCase): def setUp(self): super().setUp() self.TEMP_DIR = tempfile.mkdtemp() def test_smoke(self): r = Renderer() a...
28.963636
68
0.622724
212
1,593
4.537736
0.34434
0.043659
0.034304
0.035343
0.280665
0.280665
0.224532
0.224532
0.224532
0.224532
0
0.005146
0.268048
1,593
54
69
29.5
0.819897
0.037037
0
0.190476
0
0
0.048988
0.017636
0
0
0
0
0.095238
1
0.119048
false
0
0.142857
0
0.285714
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
bc5a20c1be48c7dd2648cc88a86c05d54e4b6c1c
612
py
Python
src/foremast/validate.py
dnava013/foremast
9849821b5bb3cd67b438c5adeaa0e42f86e9eaf8
[ "Apache-2.0" ]
157
2016-09-12T16:24:14.000Z
2018-06-02T15:40:38.000Z
src/foremast/validate.py
dnava013/foremast
9849821b5bb3cd67b438c5adeaa0e42f86e9eaf8
[ "Apache-2.0" ]
206
2016-09-12T16:41:31.000Z
2018-06-04T21:50:29.000Z
src/foremast/validate.py
dnava013/foremast
9849821b5bb3cd67b438c5adeaa0e42f86e9eaf8
[ "Apache-2.0" ]
34
2016-09-12T16:37:57.000Z
2018-06-04T18:37:52.000Z
"""Spinnaker validate functions.""" import logging from .consts import API_URL from .utils.credentials import get_env_credential LOG = logging.getLogger(__name__) def validate_gate(): """Check Gate connection.""" try: credentials = get_env_credential() LOG.debug('Found credentials: %s', cred...
23.538462
69
0.673203
76
612
5.236842
0.486842
0.045226
0.080402
0.095477
0
0
0
0
0
0
0
0
0.199346
612
25
70
24.48
0.812245
0.124183
0
0
0
0
0.207692
0
0
0
0
0
0
1
0.133333
false
0
0.2
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
bc5ad874ef55f36dd52e0759ceb93fea5f606b23
2,437
py
Python
constellation_forms/migrations/0001_initial.py
ConstellationApps/Forms
5d2bacf589c1a473cf619f34d569d33191b11285
[ "ISC" ]
2
2017-04-18T02:41:00.000Z
2017-04-18T02:51:39.000Z
constellation_forms/migrations/0001_initial.py
ConstellationApps/Forms
5d2bacf589c1a473cf619f34d569d33191b11285
[ "ISC" ]
33
2017-03-03T06:16:44.000Z
2019-08-20T23:06:21.000Z
constellation_forms/migrations/0001_initial.py
ConstellationApps/Forms
5d2bacf589c1a473cf619f34d569d33191b11285
[ "ISC" ]
1
2017-02-22T18:48:04.000Z
2017-02-22T18:48:04.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-15 00:56 from __future__ import unicode_literals from django.conf import settings import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial =...
37.492308
142
0.552318
222
2,437
5.932432
0.40991
0.024298
0.047836
0.061503
0.32574
0.301443
0.23918
0.23918
0.179954
0.179954
0
0.012331
0.30119
2,437
64
143
38.078125
0.76101
0.027903
0
0.375
1
0
0.108199
0.010144
0
0
0
0
0
1
0
false
0
0.089286
0
0.160714
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bc5ae8aa40e31ef7936556c55251ff7ab9886286
2,258
py
Python
src/webpy1/src/borough/dbsqli.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
1
2020-02-17T08:18:29.000Z
2020-02-17T08:18:29.000Z
src/webpy1/src/borough/dbsqli.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
src/webpy1/src/borough/dbsqli.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sqlite3 as sqlite import os.path as osp import sys class Sqli(object): conn = '' cursor = '' def __init__(self, dbname): try: self.conn = sqlite.connect(osp.abspath(dbname)) except Exception, what: print wh...
27.204819
79
0.529672
248
2,258
4.754032
0.294355
0.093299
0.100933
0.117048
0.524173
0.476675
0.439355
0.439355
0.439355
0.402884
0
0.002706
0.345438
2,258
82
80
27.536585
0.794993
0.018601
0
0.546667
0
0
0.412376
0.019874
0
0
0
0
0
0
null
null
0
0.04
null
null
0.106667
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
1
0
0
0
0
0
0
0
0
1
bc5b677ed37d940fc02b036d43d53f7c6322c3f1
599
py
Python
losses/all_lost.py
Liudzz/loss-chapter
22359b92ca5e155d5af32ef2f22eeddf0483b947
[ "Apache-2.0" ]
2
2020-07-07T00:03:31.000Z
2020-07-08T09:58:48.000Z
losses/all_lost.py
Liudzz/loss-chapter
22359b92ca5e155d5af32ef2f22eeddf0483b947
[ "Apache-2.0" ]
null
null
null
losses/all_lost.py
Liudzz/loss-chapter
22359b92ca5e155d5af32ef2f22eeddf0483b947
[ "Apache-2.0" ]
2
2020-07-08T09:58:56.000Z
2020-07-11T13:43:53.000Z
""" easy way to use losses """ from center_loss import Centerloss import torch.nn as nn from FocalLoss import FocalLoss def center_loss(pred,label,num_calss,feature): loss = Centerloss(num_calss,feature) return loss(pred,label) def Focal_loss(pred,label,num_calss,alaph=None, gamma): loss = Centerloss(num...
22.185185
55
0.729549
91
599
4.692308
0.340659
0.210773
0.213115
0.119438
0.437939
0
0
0
0
0
0
0.01002
0.166945
599
27
56
22.185185
0.845691
0
0
0.277778
0
0
0
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0
0
0
0
null
1
1
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
1
0
0
0
0
0
0
0
0
3
bc5b680a2cd25d3fd6125ee9f9722bc8e692640b
7,320
py
Python
nova/tests/functional/test_metadata.py
Nexenta/nova
ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3
[ "Apache-2.0" ]
1
2020-08-14T02:20:59.000Z
2020-08-14T02:20:59.000Z
nova/tests/functional/test_metadata.py
Nexenta/nova
ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3
[ "Apache-2.0" ]
2
2021-03-31T20:04:16.000Z
2021-12-13T20:45:03.000Z
nova/tests/functional/test_metadata.py
Nexenta/nova
ccecb507ff4bdcdd23d90e7b5b02a22c5a46ecc3
[ "Apache-2.0" ]
1
2020-07-24T02:31:45.000Z
2020-07-24T02:31:45.000Z
# Copyright 2016 Rackspace Australia # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
37.927461
78
0.639617
908
7,320
5.008811
0.272026
0.05277
0.009894
0.015831
0.404134
0.369173
0.332894
0.332894
0.316403
0.313984
0
0.027733
0.236475
7,320
192
79
38.125
0.786008
0.132787
0
0.350746
0
0
0.164269
0.06751
0
0
0
0
0.186567
1
0.08209
false
0.007463
0.08209
0.007463
0.216418
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
bc5dd6bb126db54b8402ce56f75664e9271f9ace
8,889
py
Python
openue/sequence_labeling/subject_labeling_data_manager.py
zxlzr/OpenUE
a49f8950dc2b93a489bb8ce0d40abb26c2c0f347
[ "MIT" ]
8
2020-01-08T13:05:35.000Z
2021-12-20T09:43:57.000Z
openue/sequence_labeling/subject_labeling_data_manager.py
zxlzr/OpenUE
a49f8950dc2b93a489bb8ce0d40abb26c2c0f347
[ "MIT" ]
9
2020-09-25T22:36:51.000Z
2022-02-10T01:50:44.000Z
openue/sequence_labeling/subject_labeling_data_manager.py
zxlzr/OpenUE
a49f8950dc2b93a489bb8ce0d40abb26c2c0f347
[ "MIT" ]
null
null
null
import os import sys import json sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../bert"))) sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../"))) import tokenization from config import config class Model_data_preparation(object): def __init__(self, DATA_...
49.938202
186
0.582068
1,152
8,889
4.106771
0.157986
0.036779
0.044388
0.027901
0.361234
0.274572
0.216867
0.201015
0.139294
0.101036
0
0.00699
0.307909
8,889
177
187
50.220339
0.761704
0.024412
0
0.106667
0
0
0.059723
0.013125
0
0
0
0
0
1
0.06
false
0.006667
0.033333
0
0.14
0.02
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
bc5ea97eac050b419965fd5ba95918dc58fe5bee
3,222
py
Python
clarifai/rest/grpc/custom_converters/custom_message_to_dict.py
Taik/clarifai-python
c3b66b84cb348d3cb1edff958f561a4734b78650
[ "Apache-2.0" ]
322
2015-08-25T03:16:11.000Z
2021-11-08T09:36:50.000Z
clarifai/rest/grpc/custom_converters/custom_message_to_dict.py
Taik/clarifai-python
c3b66b84cb348d3cb1edff958f561a4734b78650
[ "Apache-2.0" ]
76
2015-10-25T13:03:47.000Z
2022-02-19T09:36:10.000Z
clarifai/rest/grpc/custom_converters/custom_message_to_dict.py
Taik/clarifai-python
c3b66b84cb348d3cb1edff958f561a4734b78650
[ "Apache-2.0" ]
136
2015-09-04T13:48:27.000Z
2021-06-12T16:48:36.000Z
import typing # noqa from google.protobuf import descriptor from google.protobuf.json_format import _IsMapEntry, _Printer from google.protobuf.message import Message # noqa from clarifai.rest.grpc.proto.clarifai.api.utils import extensions_pb2 def protobuf_to_dict(object_protobuf, use_integers_for_enums=True, ign...
36.202247
97
0.71198
395
3,222
5.546835
0.344304
0.031949
0.047923
0.043359
0.189868
0.189868
0.125513
0.063898
0.063898
0.063898
0
0.001581
0.214773
3,222
88
98
36.613636
0.864427
0.240223
0
0.12963
0
0
0.001669
0
0
0
0
0
0
1
0.074074
false
0
0.092593
0
0.240741
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
bc5ea9e7a84513ea2108b53d14947d94915f3a05
26
py
Python
__init__.py
mschrimpf/CapsNetKeras
4c514860bf6689fb1772a7bd858638cd538ff22f
[ "MIT" ]
null
null
null
__init__.py
mschrimpf/CapsNetKeras
4c514860bf6689fb1772a7bd858638cd538ff22f
[ "MIT" ]
null
null
null
__init__.py
mschrimpf/CapsNetKeras
4c514860bf6689fb1772a7bd858638cd538ff22f
[ "MIT" ]
null
null
null
from .capsulenet import *
13
25
0.769231
3
26
6.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
26
1
26
26
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
bc5eeaf616c5264490632d3b43d2af7080e1aea8
28,625
py
Python
gate/mate_ksx3267v2.py
mrchoi87/IRSOSv4
886c3dcbeb64c3a8cc257b58692946fd5462312e
[ "BSD-3-Clause" ]
null
null
null
gate/mate_ksx3267v2.py
mrchoi87/IRSOSv4
886c3dcbeb64c3a8cc257b58692946fd5462312e
[ "BSD-3-Clause" ]
null
null
null
gate/mate_ksx3267v2.py
mrchoi87/IRSOSv4
886c3dcbeb64c3a8cc257b58692946fd5462312e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # -*- coding: utf-8 -*- # # Copyright (c) 2018 JiNong, Inc. # All right reserved. # import struct import time import socket import select import traceback import hashlib import json from enum import IntEnum from threading import Thread, Lock from mate import Mate, ThreadMate, DevType from mbloc...
40.71835
212
0.516681
3,147
28,625
4.632031
0.13918
0.026754
0.022295
0.02744
0.41737
0.369349
0.339164
0.265487
0.201413
0.175894
0
0.041242
0.307109
28,625
702
213
40.776353
0.693708
0.081013
0
0.256619
0
0.002037
0.132772
0.023035
0
0
0
0
0
0
null
null
0
0.026477
null
null
0.028513
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
1
0
0
0
0
0
0
0
0
1
bc60aeeb26d899f8ba324554b05c50b567a13167
6,525
py
Python
CircleciScripts/run_integrationtests.py
aimalygin/aws-sdk-ios
6cfaa3c56296300499f4885e9039c2dd24624cfa
[ "Apache-2.0" ]
17
2018-02-19T16:29:51.000Z
2020-04-03T13:52:52.000Z
CircleciScripts/run_integrationtests.py
aimalygin/aws-sdk-ios
6cfaa3c56296300499f4885e9039c2dd24624cfa
[ "Apache-2.0" ]
2
2019-11-07T15:23:33.000Z
2020-03-12T18:46:47.000Z
CircleciScripts/run_integrationtests.py
aimalygin/aws-sdk-ios
6cfaa3c56296300499f4885e9039c2dd24624cfa
[ "Apache-2.0" ]
10
2018-03-06T14:27:12.000Z
2020-10-20T22:01:30.000Z
import demjson import sys from subprocess import Popen, PIPE import subprocess import xml.etree.ElementTree as ET import os from datetime import datetime from functions import runcommand #from sets import Set def getfailedcases(withBundle = True): xmlfile='build/reports/junit.xml' tree = ET.parse(xmlfile) ...
42.927632
222
0.632337
665
6,525
6.156391
0.285714
0.035173
0.023449
0.026869
0.171226
0.117978
0.058622
0.021495
0.021495
0
0
0.009419
0.235249
6,525
151
223
43.211921
0.811022
0.07387
0
0.073171
0
0.01626
0.225569
0.026606
0
0
0
0.006623
0
1
0.01626
false
0
0.065041
0
0.097561
0.162602
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
bc60d0aa50b7ae50518bf50520f50484fbc32b50
572
py
Python
seagrass/hooks/__init__.py
kernelmethod/Seagrass
52c5f1852fb2d52b3d94411c2a49c3da6fab6c6c
[ "BSD-2-Clause" ]
null
null
null
seagrass/hooks/__init__.py
kernelmethod/Seagrass
52c5f1852fb2d52b3d94411c2a49c3da6fab6c6c
[ "BSD-2-Clause" ]
21
2021-06-07T20:10:46.000Z
2021-07-07T22:14:25.000Z
seagrass/hooks/__init__.py
kernelmethod/Seagrass
52c5f1852fb2d52b3d94411c2a49c3da6fab6c6c
[ "BSD-2-Clause" ]
null
null
null
# flake8: noqa: F401 from .context_manager_hook import ContextManagerHook from .counter_hook import CounterHook from .file_open_hook import FileOpenHook from .logging_hook import LoggingHook from .profiler_hook import ProfilerHook from .runtime_audit_hook import RuntimeAuditHook from .stack_trace_hook import StackTrace...
26
52
0.783217
61
572
7.065574
0.47541
0.208817
0
0
0
0
0
0
0
0
0
0.008214
0.148601
572
21
53
27.238095
0.876797
0.031469
0
0
0
0
0.173913
0
0
0
0
0
0
1
0
false
0
0.473684
0
0.473684
0
0
0
0
null
1
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
1
0
0
0
0
2
bc613b321946268bd365a901afc58d30c0ee1a72
3,549
py
Python
tests/test_internal.py
aschleg/hypy
d5b8451dcd24b803bbf2eebc46bc3acfd64d8edc
[ "MIT" ]
40
2018-08-04T15:36:31.000Z
2022-03-12T02:06:28.000Z
tests/test_internal.py
aschleg/hypy
d5b8451dcd24b803bbf2eebc46bc3acfd64d8edc
[ "MIT" ]
5
2018-06-17T12:44:59.000Z
2021-09-28T01:10:26.000Z
tests/test_internal.py
aschleg/hypy
d5b8451dcd24b803bbf2eebc46bc3acfd64d8edc
[ "MIT" ]
8
2018-08-19T14:28:44.000Z
2021-12-20T18:52:07.000Z
import pytest import numpy as np import pandas as pd from hypothetical._lib import _build_des_mat def test_array(): d = np.array([[1., 1.11, 2.569, 3.58, 0.76], [1., 1.19, 2.928, 3.75, 0.821], [1., 1.09, 2.865, 3.93, 0.928], [1., 1.25, 3.844, 3.94, 1.009], ...
39.876404
112
0.412511
639
3,549
2.197183
0.27543
0.081197
0.047009
0.049858
0.284188
0.238604
0.238604
0.188746
0.188746
0.127493
0
0.33259
0.367991
3,549
88
113
40.329545
0.293357
0
0
0.054795
0
0
0
0
0
0
0
0
0.109589
1
0.041096
false
0
0.054795
0
0.109589
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bc633f72ddfead99679ba43f47af451833e0fa30
3,563
py
Python
download.py
JamesWang007/Open3D-PointNet
402847ceef8d364672ca7d81e0afebcb445cceb5
[ "MIT" ]
120
2019-04-06T16:04:01.000Z
2021-07-22T17:07:51.000Z
test/Open3D-PointNet-master/download.py
AhsanulIslam/Thesis_Computer_Vision
c308cce15146a33a3e474790b0f9535ee9e41eb7
[ "MIT" ]
null
null
null
test/Open3D-PointNet-master/download.py
AhsanulIslam/Thesis_Computer_Vision
c308cce15146a33a3e474790b0f9535ee9e41eb7
[ "MIT" ]
25
2019-04-08T09:39:47.000Z
2021-05-12T15:39:56.000Z
#!/usr/bin/env python3 # Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """Download big files from Google Drive.""" import shutil import sys import...
31.8125
115
0.646646
455
3,563
4.894505
0.421978
0.016165
0.020207
0.015267
0.145487
0.041311
0
0
0
0
0
0.030875
0.227337
3,563
111
116
32.099099
0.77806
0.122369
0
0.054054
0
0
0.160129
0.027653
0
0
0
0
0
1
0.094595
false
0.013514
0.094595
0
0.27027
0.081081
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
bc63b363d6718bb79d14c412bc96475ee3170b28
763
py
Python
ls12/demo5.py
cklwblove/python-100-days-source-code
5d66c7708047f0d7bac0ce05d21834bbbfa6ccf1
[ "MIT" ]
null
null
null
ls12/demo5.py
cklwblove/python-100-days-source-code
5d66c7708047f0d7bac0ce05d21834bbbfa6ccf1
[ "MIT" ]
null
null
null
ls12/demo5.py
cklwblove/python-100-days-source-code
5d66c7708047f0d7bac0ce05d21834bbbfa6ccf1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 将耗时间的任务放到线程中以获得更好的用户体验。 """ import time import tkinter import tkinter.messagebox def download(): # 模拟下载任务需要花费10秒时间 time.sleep(10) tkinter.messagebox.showinfo('提示', '下载完成') def show_about(): tkinter.messagebox.showinfo('关于', '作者:罗浩') def main(): t...
20.078947
67
0.621232
86
763
5.383721
0.55814
0.110151
0.107991
0.095032
0
0
0
0
0
0
0
0.025168
0.218873
763
37
68
20.621622
0.751678
0.081258
0
0
0
0
0.08855
0
0
0
0
0
0
1
0.136364
false
0
0.136364
0
0.272727
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
bc652014fdf4755fbb2d576c8ff7469edba046ae
3,250
py
Python
hangupsbot/sinks/gitlab/simplepush.py
mygreentour/hangoutsbot
9ea2da10f546e6f1dd06c8240187049501c5452a
[ "Unlicense" ]
null
null
null
hangupsbot/sinks/gitlab/simplepush.py
mygreentour/hangoutsbot
9ea2da10f546e6f1dd06c8240187049501c5452a
[ "Unlicense" ]
null
null
null
hangupsbot/sinks/gitlab/simplepush.py
mygreentour/hangoutsbot
9ea2da10f546e6f1dd06c8240187049501c5452a
[ "Unlicense" ]
null
null
null
""" GitLab webhook receiver - see http://doc.gitlab.com/ee/web_hooks/web_hooks.html """ import asyncio import json import logging from sinks.base_bot_request_handler import AsyncRequestHandler logger = logging.getLogger(__name__) try: import dateutil.parser except ImportError: logger.error("missing module p...
37.790698
99
0.577538
356
3,250
5.129213
0.382022
0.071194
0.06517
0.046002
0.131435
0
0
0
0
0
0
0.001647
0.252923
3,250
85
100
38.235294
0.750412
0.050154
0
0.033333
0
0
0.273379
0
0
0
0
0
0
1
0.016667
false
0
0.1
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
bc6537e769f6b3ef7aa9a2e3afa098d8b075693f
1,220
py
Python
evsim/assessor.py
cbchoi/nppsim
4d096f9d2fdb5ebf3e3e83be7b1974bfc92554c1
[ "MIT" ]
3
2020-01-21T13:06:37.000Z
2021-03-01T23:35:20.000Z
evsim/assessor.py
cbchoi/pohangsim
e978ff39ec94413ae44129510c56acb134770298
[ "MIT" ]
null
null
null
evsim/assessor.py
cbchoi/pohangsim
e978ff39ec94413ae44129510c56acb134770298
[ "MIT" ]
null
null
null
from evsim.system_simulator import SystemSimulator from evsim.behavior_model_executor import BehaviorModelExecutor from evsim.system_message import SysMessage from evsim.definition import * import os import subprocess as sp class Assessor(BehaviorModelExecutor): def __init__(self, instance_time, destruct...
34.857143
126
0.657377
145
1,220
5.275862
0.427586
0.047059
0.039216
0.052288
0.269281
0.269281
0.269281
0.269281
0.269281
0.14902
0
0.003165
0.222951
1,220
35
127
34.857143
0.803797
0.261475
0
0
0
0
0.030233
0
0
0
0
0
0
1
0.2
false
0
0.3
0.05
0.6
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
1
0
0
1
bc65af7557f0841ee2695968775683b6f5578bc6
19,786
py
Python
tei_entity_enricher/interface/postprocessing/gnd_connector.py
NEISSproject/TEIEntityEnricher
09a4a932b30886e50965959935dc803b36063e36
[ "Apache-2.0" ]
null
null
null
tei_entity_enricher/interface/postprocessing/gnd_connector.py
NEISSproject/TEIEntityEnricher
09a4a932b30886e50965959935dc803b36063e36
[ "Apache-2.0" ]
null
null
null
tei_entity_enricher/interface/postprocessing/gnd_connector.py
NEISSproject/TEIEntityEnricher
09a4a932b30886e50965959935dc803b36063e36
[ "Apache-2.0" ]
1
2021-04-27T13:55:29.000Z
2021-04-27T13:55:29.000Z
import os from typing import Union, List from tei_entity_enricher.interface.postprocessing.io import FileReader, FileWriter from tei_entity_enricher.util.helper import local_save_path, makedir_if_necessary from tei_entity_enricher.util.exceptions import FileNotFound class GndConnector: def __init__( ...
58.712166
347
0.564237
2,159
19,786
5.027327
0.159333
0.02119
0.02073
0.046066
0.445826
0.364842
0.30339
0.235397
0.200755
0.170905
0
0.00368
0.354493
19,786
336
348
58.886905
0.84607
0.250278
0
0.483019
0
0.033962
0.223564
0.027697
0
0
0
0.002976
0
1
0.026415
false
0.015094
0.018868
0
0.10566
0.188679
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
bc669999ddb0624f8b1b18f8677a007603269fec
122
py
Python
neslter/workflow/__init__.py
WHOIGit/nes-lter-ims
d4cc96c10da56ca33286af84d669625b67170522
[ "MIT" ]
3
2019-01-24T16:32:50.000Z
2021-11-05T02:18:12.000Z
neslter/workflow/__init__.py
WHOIGit/nes-lter-ims
d4cc96c10da56ca33286af84d669625b67170522
[ "MIT" ]
45
2019-05-23T15:15:32.000Z
2022-03-15T14:09:20.000Z
neslter/workflow/__init__.py
WHOIGit/nes-lter-ims
d4cc96c10da56ca33286af84d669625b67170522
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__) logger.addHandler(logging.NullHandler()) logger.level = logging.DEBUG
24.4
40
0.819672
14
122
6.857143
0.642857
0
0
0
0
0
0
0
0
0
0
0
0.07377
122
5
41
24.4
0.849558
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bc66bbff24da2cc4aab8ede584053c2dba3e5cf5
440
py
Python
inference/_archive/render_section.py
emitch/SEAMLeSS
cae21c67316ed36529fdc2e470a105a9f847975c
[ "MIT" ]
4
2018-12-17T18:45:57.000Z
2021-04-29T16:30:42.000Z
inference/_archive/render_section.py
emitch/SEAMLeSS
cae21c67316ed36529fdc2e470a105a9f847975c
[ "MIT" ]
19
2019-01-02T19:09:12.000Z
2020-12-14T18:50:47.000Z
inference/_archive/render_section.py
emitch/SEAMLeSS
cae21c67316ed36529fdc2e470a105a9f847975c
[ "MIT" ]
2
2020-03-18T01:24:03.000Z
2022-01-06T06:19:58.000Z
from args import get_argparser, parse_args, get_aligner, get_bbox def render(aligner, bbox, z): aligner.total_bbox = bbox aligner.zs = z aligner.render_section_all_mips(z, bbox) if __name__ == '__main__': parser = get_argparser() args = parse_args(parser) a = get_aligner(args) bbox = get_bbox(args) ...
24.444444
66
0.697727
70
440
4.071429
0.442857
0.084211
0
0
0
0
0
0
0
0
0
0.008242
0.172727
440
17
67
25.882353
0.774725
0
0
0
0
0
0.052392
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.153846
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc6934a711c5b2c64314e9faedf3a6f0838f298a
52,806
py
Python
venv/lib/python3.9/site-packages/google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.9/site-packages/google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.9/site-packages/google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
43.142157
165
0.613926
5,791
52,806
5.444483
0.10171
0.027403
0.039583
0.026832
0.674268
0.647087
0.612357
0.597418
0.582638
0.558407
0
0.003937
0.312143
52,806
1,223
166
43.177433
0.864081
0.543745
0
0.527273
0
0
0.066945
0.011505
0
0
0
0.007359
0
1
0.030303
false
0.020202
0.052525
0
0.117172
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
bc69b9f3ab057490f4ec7854149028c2c310ae9c
31,196
py
Python
src/ScaleHD/__backend.py
helloabunai/ScaleHD
b48c1a1ed742bdbda0a4cd42555d1e12d2e3024d
[ "MIT" ]
3
2017-07-03T19:45:13.000Z
2020-05-12T16:56:19.000Z
src/ScaleHD/__backend.py
helloabunai/ScaleHD
b48c1a1ed742bdbda0a4cd42555d1e12d2e3024d
[ "MIT" ]
1
2019-06-21T14:49:50.000Z
2019-06-24T08:24:37.000Z
src/ScaleHD/__backend.py
helloabunai/ScaleHD
b48c1a1ed742bdbda0a4cd42555d1e12d2e3024d
[ "MIT" ]
2
2017-06-05T21:56:36.000Z
2021-03-22T20:34:13.000Z
#/usr/bin/python __version__ = '1.0' __author__ = 'alastair.maxwell@glasgow.ac.uk' ## ## Imports import string import os import errno import shutil import sys import glob import datetime import subprocess import logging as log import numpy as np import csv from io import StringIO import PyPDF2 from sklearn import prep...
38.277301
155
0.702526
4,278
31,196
4.923796
0.150538
0.034751
0.034751
0.045291
0.414309
0.34775
0.271221
0.236137
0.198633
0.187476
0
0.006152
0.150724
31,196
814
156
38.324324
0.788896
0.112803
0
0.220826
0
0
0.237697
0.013581
0
0
0
0.001229
0
1
0.048474
false
0.005386
0.032316
0
0.150808
0.003591
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
bc6acbe604cb779e768957863e598871559e6e15
3,966
py
Python
tests/test_models/test_backbones/test_encoder_decoders/test_deepfill_encoder.py
Jian137/mmediting-1
e1ac6c93441ec96696d0b530f040b91b809015b6
[ "Apache-2.0" ]
1,884
2020-07-09T18:53:43.000Z
2022-03-31T12:06:18.000Z
tests/test_models/test_backbones/test_encoder_decoders/test_deepfill_encoder.py
Jian137/mmediting-1
e1ac6c93441ec96696d0b530f040b91b809015b6
[ "Apache-2.0" ]
622
2020-07-09T18:52:27.000Z
2022-03-31T14:41:09.000Z
tests/test_models/test_backbones/test_encoder_decoders/test_deepfill_encoder.py
Jian137/mmediting-1
e1ac6c93441ec96696d0b530f040b91b809015b6
[ "Apache-2.0" ]
361
2020-07-09T19:21:47.000Z
2022-03-31T09:58:27.000Z
# Copyright (c) OpenMMLab. All rights reserved. import torch from mmedit.models.backbones import ContextualAttentionNeck, DeepFillEncoder from mmedit.models.common import SimpleGatedConvModule def test_deepfill_enc(): encoder = DeepFillEncoder() x = torch.randn((2, 5, 256, 256)) outputs = encoder(x) ...
35.72973
76
0.620524
512
3,966
4.732422
0.144531
0.096574
0.05778
0.061907
0.755262
0.704086
0.693768
0.693768
0.693768
0.693768
0
0.086606
0.248865
3,966
110
77
36.054545
0.726754
0.024206
0
0.72043
0
0
0.029997
0
0
0
0
0.009091
0.505376
1
0.021505
false
0
0.032258
0
0.053763
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
bc6c634a8700c04a493d0272caa915d4e9038c51
580
py
Python
mvp/migrations/0004_auto_20201127_0649.py
Wastecoinng/mvp_beta
2faa4b9eeac99b2c284bafad955b90f9951991fc
[ "MIT" ]
null
null
null
mvp/migrations/0004_auto_20201127_0649.py
Wastecoinng/mvp_beta
2faa4b9eeac99b2c284bafad955b90f9951991fc
[ "MIT" ]
null
null
null
mvp/migrations/0004_auto_20201127_0649.py
Wastecoinng/mvp_beta
2faa4b9eeac99b2c284bafad955b90f9951991fc
[ "MIT" ]
null
null
null
# Generated by Django 2.2.13 on 2020-11-27 05:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mvp', '0003_hublocation'), ] operations = [ migrations.RemoveField( model_name='hublocation', name='longitude', ...
24.166667
105
0.591379
57
580
5.912281
0.719298
0.053412
0.118694
0.142433
0
0
0
0
0
0
0
0.06846
0.294828
580
23
106
25.217391
0.755501
0.07931
0
0.235294
1
0
0.120301
0
0
0
0
0
0
1
0
false
0
0.058824
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bc6daca01b612effa21edcc2bb7e569ddcd2750f
751
py
Python
adminapp/migrations/0012_auto_20210714_1155.py
mofresh27/MuseumExperience-Group2-Python-BE-1
d6ca7aceeddfcfdefdf112ab5e40cf74d6b472ce
[ "MIT" ]
null
null
null
adminapp/migrations/0012_auto_20210714_1155.py
mofresh27/MuseumExperience-Group2-Python-BE-1
d6ca7aceeddfcfdefdf112ab5e40cf74d6b472ce
[ "MIT" ]
1
2021-07-19T14:27:28.000Z
2021-07-19T14:27:28.000Z
adminapp/migrations/0012_auto_20210714_1155.py
mofresh27/MuseumExperience-Group2-Python-BE-1
d6ca7aceeddfcfdefdf112ab5e40cf74d6b472ce
[ "MIT" ]
2
2021-07-14T21:56:46.000Z
2021-07-15T16:11:41.000Z
# Generated by Django 3.2.4 on 2021-07-14 11:55 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('adminapp', '0011_faq'), ] operations = [ migrations.AddField( model_name='faq', name='uuid', ...
25.033333
78
0.565912
78
751
5.397436
0.512821
0.064133
0.085511
0.114014
0.418052
0.418052
0.418052
0.418052
0.228029
0
0
0.03861
0.310253
751
29
79
25.896552
0.774131
0.05992
0
0.434783
1
0
0.06108
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bc6de8ef28a6c9ca4fc7727dee2d21bb765f85a1
1,585
py
Python
scripts/json_parse.py
andrewsimonds14/Capstone
5ae56b9be40846e9993a8f23aaa8e1ef92cd9ea3
[ "MIT" ]
null
null
null
scripts/json_parse.py
andrewsimonds14/Capstone
5ae56b9be40846e9993a8f23aaa8e1ef92cd9ea3
[ "MIT" ]
null
null
null
scripts/json_parse.py
andrewsimonds14/Capstone
5ae56b9be40846e9993a8f23aaa8e1ef92cd9ea3
[ "MIT" ]
null
null
null
import json import os import nibabel as nib import csv from operator import itemgetter # PATH TO PREPROCESSED DATA raw_data_path = '/home/lab/nnUNet_data/nnUNet_raw_data_base/nnUNet_raw_data/Task500_BrainMets' pixdim_ind = [1,2,3] # Indexes at which the voxel size [x,y,z] is stored # PATH TO JSON FILE with open('/h...
36.860465
162
0.683281
231
1,585
4.47619
0.38961
0.069633
0.046422
0.032882
0.237911
0.237911
0.199226
0.199226
0.199226
0.199226
0
0.018462
0.179811
1,585
42
163
37.738095
0.776923
0.147003
0
0.095238
0
0.047619
0.271439
0.161074
0
0
0
0
0
1
0
false
0
0.238095
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
bc6e15840fb47699b6ed6ae5254ac356715fcfad
2,794
py
Python
tests/gen_test.py
tinylambda/tornadio2
7b112e2e207bd7500288b42896f9970c16e623ad
[ "Apache-2.0" ]
null
null
null
tests/gen_test.py
tinylambda/tornadio2
7b112e2e207bd7500288b42896f9970c16e623ad
[ "Apache-2.0" ]
null
null
null
tests/gen_test.py
tinylambda/tornadio2
7b112e2e207bd7500288b42896f9970c16e623ad
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ tornadio2.tests.gen ~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2011 by the Serge S. Koval, see AUTHORS for more details. :license: Apache, see LICENSE for more details. """ from collections import deque from nose.tools import eq_ from tornadio2 import gen _queue = None def in...
17.910256
77
0.598067
362
2,794
4.38674
0.19337
0.09068
0.098237
0.040302
0.561083
0.509446
0.490554
0.442065
0.438917
0.397985
0
0.015093
0.264853
2,794
155
78
18.025806
0.758033
0.084825
0
0.62766
0
0
0.013444
0
0
0
0
0
0
1
0.202128
false
0
0.031915
0
0.276596
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
1
0
0
0
0
0
0
0
1
bc6e2a6ace5b77db9c88569ae6f6456c11dc1f48
21,122
py
Python
DeepBrainSeg/tumor/Tester.py
JordanMicahBennett/DeepBrainSeg
659dd439d20d4c024fe337874eadb90deffc40a4
[ "MIT" ]
1
2021-01-01T18:06:50.000Z
2021-01-01T18:06:50.000Z
DeepBrainSeg/tumor/Tester.py
JordanMicahBennett/DeepBrainSeg
659dd439d20d4c024fe337874eadb90deffc40a4
[ "MIT" ]
null
null
null
DeepBrainSeg/tumor/Tester.py
JordanMicahBennett/DeepBrainSeg
659dd439d20d4c024fe337874eadb90deffc40a4
[ "MIT" ]
1
2021-01-01T18:06:52.000Z
2021-01-01T18:06:52.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # # author: Avinash Kori # contact: koriavinash1@gmail.com import torch import SimpleITK as sitk import numpy as np import nibabel as nib from torch.autograd import Variable from skimage.transform import resize from torchvision import transforms from time import gmtime, ...
46.937778
168
0.548717
2,598
21,122
4.250577
0.142802
0.005977
0.012678
0.027891
0.540705
0.45676
0.386489
0.357149
0.315856
0.307435
0
0.035783
0.28288
21,122
449
169
47.042316
0.693273
0.163431
0
0.220532
0
0
0.056598
0.035352
0
0
0
0
0
1
0.030418
false
0
0.064639
0
0.125475
0.019011
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
bc6e8fa55969e186c06ce2946db2244dfbf09a10
7,334
py
Python
statsmodels/discrete/tests/test_conditional.py
porcpine1967/statsmodels
db4900056d80732ffff2733454fac88781ced8d2
[ "BSD-3-Clause" ]
null
null
null
statsmodels/discrete/tests/test_conditional.py
porcpine1967/statsmodels
db4900056d80732ffff2733454fac88781ced8d2
[ "BSD-3-Clause" ]
null
null
null
statsmodels/discrete/tests/test_conditional.py
porcpine1967/statsmodels
db4900056d80732ffff2733454fac88781ced8d2
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from statsmodels.discrete.conditional_models import ( ConditionalLogit, ConditionalPoisson) from statsmodels.tools.numdiff import approx_fprime from numpy.testing import assert_allclose import pandas as pd def test_logit_1d(): y = np.r_[0, 1, 0, 1, 0, 1, 0, 1, 1, 1] g = np.r_[0, 0, 0...
30.558333
78
0.587947
1,176
7,334
3.566327
0.120748
0.018598
0.019075
0.009537
0.802098
0.744874
0.694087
0.648307
0.646876
0.63114
0
0.097174
0.252113
7,334
239
79
30.686192
0.667457
0.063267
0
0.564103
0
0
0.01897
0
0
0
0
0
0.160256
1
0.044872
false
0
0.032051
0
0.076923
0
0
0
0
null
0
0
0
1
1
0
0
0
1
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
0
3
bc710066cef80510ad81cb68d1ed3e70cec4fc2d
905
py
Python
bert_e/workflow/gitwaterflow/utils.py
tcarmet/bert-e
8e0623d9a8c7bd111790d72307862167eca18a23
[ "Apache-2.0" ]
null
null
null
bert_e/workflow/gitwaterflow/utils.py
tcarmet/bert-e
8e0623d9a8c7bd111790d72307862167eca18a23
[ "Apache-2.0" ]
35
2020-08-26T09:25:56.000Z
2022-01-10T20:38:15.000Z
bert_e/workflow/gitwaterflow/utils.py
tcarmet/bert-e
8e0623d9a8c7bd111790d72307862167eca18a23
[ "Apache-2.0" ]
2
2021-08-17T15:56:50.000Z
2022-01-05T19:26:48.000Z
def bypass_incompatible_branch(job): return (job.settings.bypass_incompatible_branch or job.author_bypass.get('bypass_incompatible_branch', False)) def bypass_peer_approval(job): return (job.settings.bypass_peer_approval or job.author_bypass.get('bypass_peer_approval', False)) def b...
30.166667
71
0.742541
120
905
5.25
0.15
0.085714
0.114286
0.190476
0.571429
0.447619
0.161905
0
0
0
0
0
0.164641
905
29
72
31.206897
0.833333
0
0
0
0
0
0.139381
0.077434
0
0
0
0
0
1
0.333333
false
1
0
0.333333
0.666667
0
0
0
0
null
0
0
1
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
1
0
1
0
1
1
0
0
5
bc71cbe7f13c2f51663de7c1b18572924543ac36
26,868
py
Python
bkt/library/powerpoint/elements.py
pyro-team/bkt-toolbox
bbccba142a81ca0a46056f2bcda75899979158a5
[ "MIT" ]
12
2019-05-31T02:57:26.000Z
2022-03-26T09:40:50.000Z
bkt/library/powerpoint/elements.py
mrflory/bkt-toolbox
bbccba142a81ca0a46056f2bcda75899979158a5
[ "MIT" ]
27
2021-11-27T16:33:19.000Z
2022-03-27T17:47:26.000Z
bkt/library/powerpoint/elements.py
pyro-team/bkt-toolbox
bbccba142a81ca0a46056f2bcda75899979158a5
[ "MIT" ]
3
2019-06-12T10:59:20.000Z
2020-04-21T15:13:50.000Z
# -*- coding: utf-8 -*- ''' Created on 02.11.2017 @author: fstallmann ''' from __future__ import absolute_import from collections import deque import bkt from bkt import dotnet Drawing = dotnet.import_drawing() from . import helpers as pplib class TextframeSpinnerBox(bkt.ribbon.RoundingSpinnerBox): ### Inst...
42.512658
242
0.628703
3,124
26,868
5.21735
0.151729
0.024971
0.01767
0.010307
0.390269
0.314068
0.259341
0.226885
0.188662
0.152095
0
0.016738
0.275086
26,868
631
243
42.580032
0.820096
0.156469
0
0.291765
0
0.002353
0.078865
0.016415
0
0
0
0
0
1
0.117647
false
0.004706
0.016471
0.021176
0.272941
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
bc73adc709a1a6dd422dd898ada82a431739cb7e
34,680
py
Python
sc2/unit.py
guliverza/AdditionalPylons
37336dcd1678c6cdfa22d881c2178ba65cb1fd61
[ "MIT" ]
null
null
null
sc2/unit.py
guliverza/AdditionalPylons
37336dcd1678c6cdfa22d881c2178ba65cb1fd61
[ "MIT" ]
null
null
null
sc2/unit.py
guliverza/AdditionalPylons
37336dcd1678c6cdfa22d881c2178ba65cb1fd61
[ "MIT" ]
null
null
null
from __future__ import annotations import warnings from typing import Any, Dict, List, Optional, Set, Tuple, Union, TYPE_CHECKING from .cache import property_immutable_cache, property_mutable_cache from .constants import ( transforming, IS_STRUCTURE, IS_LIGHT, IS_ARMORED, IS_BIOLOGICAL, IS_MECH...
37.37069
188
0.647953
4,512
34,680
4.812722
0.115913
0.04467
0.034538
0.033894
0.457149
0.373981
0.325443
0.247248
0.185494
0.150956
0
0.00503
0.260525
34,680
927
189
37.411003
0.841724
0.309631
0
0.313208
0
0
0.012177
0.002104
0
0
0
0.005394
0.003774
1
0.250943
false
0.009434
0.026415
0.011321
0.577358
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
1
0
0
0
0
1
0
0
2
bc73bb29476960582e88da68ad24bf687cb2dd0e
65
py
Python
healthy_candies/load/__init__.py
striantafyllouEPFL/healthy-candies
fc7d9e05d54ba207e15d997acea44ff0bf9edb13
[ "BSD-2-Clause" ]
1
2018-11-04T21:46:29.000Z
2018-11-04T21:46:29.000Z
healthy_candies/load/__init__.py
striantafyllouEPFL/healthy-candies
fc7d9e05d54ba207e15d997acea44ff0bf9edb13
[ "BSD-2-Clause" ]
null
null
null
healthy_candies/load/__init__.py
striantafyllouEPFL/healthy-candies
fc7d9e05d54ba207e15d997acea44ff0bf9edb13
[ "BSD-2-Clause" ]
null
null
null
from .load import load_data, NUTRI_COLS, load_clean_rel_to_nutri
32.5
64
0.861538
12
65
4.166667
0.75
0
0
0
0
0
0
0
0
0
0
0
0.092308
65
1
65
65
0.847458
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
bc74af5f799cda766e2f5e64ed34c0e410d241a2
1,402
py
Python
simglucose/sensor/cgm.py
mia-jingyi/simglucose
a90bd8750fce362be91668ed839b3b252bc0d58d
[ "MIT" ]
null
null
null
simglucose/sensor/cgm.py
mia-jingyi/simglucose
a90bd8750fce362be91668ed839b3b252bc0d58d
[ "MIT" ]
null
null
null
simglucose/sensor/cgm.py
mia-jingyi/simglucose
a90bd8750fce362be91668ed839b3b252bc0d58d
[ "MIT" ]
null
null
null
# from .noise_gen import CGMNoiseGenerator from .noise_gen import CGMNoise import pandas as pd import logging logger = logging.getLogger(__name__) class CGMSensor(object): def __init__(self, params, seed=None): self._params = params self.name = params.Name self.sample_time = params.sample...
26.961538
72
0.624108
174
1,402
4.741379
0.344828
0.067879
0.053333
0.043636
0.135758
0.09697
0.09697
0
0
0
0
0.002947
0.273894
1,402
51
73
27.490196
0.807466
0.039943
0
0.052632
0
0
0.028295
0
0
0
0
0
0
1
0.157895
false
0.026316
0.078947
0.026316
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
bc7580cf9a167be668d4a125b31c0b817e88571f
5,731
py
Python
var/spack/repos/builtin/packages/thepeg/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2020-10-20T08:57:12.000Z
2020-10-20T08:57:12.000Z
var/spack/repos/builtin/packages/thepeg/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3
2022-03-09T09:15:39.000Z
2022-03-09T09:15:42.000Z
var/spack/repos/builtin/packages/thepeg/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-01-05T20:00:52.000Z
2021-01-05T20:00:52.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Thepeg(AutotoolsPackage): """Toolkit for High Energy Physics Event Generation""" home...
55.105769
97
0.716105
548
5,731
7.463504
0.291971
0.035208
0.017604
0.027873
0.065281
0.050367
0.016626
0
0
0
0
0.322044
0.129297
5,731
103
98
55.640777
0.497595
0.440237
0
0.037736
0
0.018868
0.417586
0.181532
0
0
0
0
0
1
0.018868
false
0
0.018868
0
0.132075
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bc7679c1660ef9ceb329970fcb693da9107e9ae5
9,258
py
Python
vmca/python/get_cert.py
wfu8/lightwave
cf6a7417cd9807bfcf9bcd99c43c5b2eecf2d298
[ "Apache-2.0" ]
357
2015-04-20T00:16:30.000Z
2022-03-17T05:34:09.000Z
vmca/python/get_cert.py
wfu8/lightwave
cf6a7417cd9807bfcf9bcd99c43c5b2eecf2d298
[ "Apache-2.0" ]
38
2015-11-19T05:20:53.000Z
2022-03-31T07:21:59.000Z
vmca/python/get_cert.py
wfu8/lightwave
cf6a7417cd9807bfcf9bcd99c43c5b2eecf2d298
[ "Apache-2.0" ]
135
2015-04-21T15:23:21.000Z
2022-03-30T11:46:36.000Z
#!/usr/bin/env python # # Copyright © 2012-2016 VMware, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the “License”); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
34.935849
89
0.625081
990
9,258
5.627273
0.315152
0.034464
0.020104
0.012565
0.132292
0.1007
0.085442
0.030156
0.030156
0.030156
0
0.004483
0.277166
9,258
264
90
35.068182
0.827854
0.153813
0
0.1375
0
0
0.119062
0.02036
0
0
0
0.007576
0
0
null
null
0.05625
0.01875
null
null
0.0125
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
1
0
0
1
0
0
0
0
0
2
bc783a7352b8476e222dafa470f894420847e079
22,670
py
Python
sdk/python/pulumi_gcp/securitycenter/notification_config.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
121
2018-06-18T19:16:42.000Z
2022-03-31T06:06:48.000Z
sdk/python/pulumi_gcp/securitycenter/notification_config.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
492
2018-06-22T19:41:03.000Z
2022-03-31T15:33:53.000Z
sdk/python/pulumi_gcp/securitycenter/notification_config.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
43
2018-06-19T01:43:13.000Z
2022-03-23T22:43:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
44.714004
161
0.661226
2,413
22,670
6.026523
0.098632
0.061271
0.06354
0.05295
0.843213
0.819626
0.78538
0.758011
0.754504
0.72631
0
0.002851
0.241861
22,670
506
162
44.802372
0.843254
0.409616
0
0.590909
1
0
0.134427
0.038214
0
0
0
0
0
1
0.157025
false
0.004132
0.028926
0
0.280992
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
bc7927d63159c18366a26d654024afa30b73946a
1,893
py
Python
malib/agents/tabular/q_learning/base_tabular_agent.py
wwxFromTju/malib
7cd2a4af55cf1f56da8854e26ea7a4f3782ceea2
[ "MIT" ]
6
2021-05-19T10:25:36.000Z
2021-12-27T03:30:33.000Z
malib/agents/tabular/q_learning/base_tabular_agent.py
wwxFromTju/malib
7cd2a4af55cf1f56da8854e26ea7a4f3782ceea2
[ "MIT" ]
1
2021-05-29T04:51:37.000Z
2021-05-30T06:18:10.000Z
malib/agents/tabular/q_learning/base_tabular_agent.py
wwxFromTju/malib
7cd2a4af55cf1f56da8854e26ea7a4f3782ceea2
[ "MIT" ]
1
2021-06-30T10:53:03.000Z
2021-06-30T10:53:03.000Z
from abc import ABCMeta, abstractmethod import numpy as np class Agent(object): __metaclass__ = ABCMeta def __init__(self, name, id_, action_num, env): self.name = name self.id_ = id_ self.action_num = action_num # len(env.action_space[id_]) # self.opp_action_space = e...
27.434783
88
0.590597
252
1,893
4.202381
0.293651
0.093484
0.041549
0.05288
0.094429
0.094429
0.047214
0
0
0
0
0.008696
0.270998
1,893
68
89
27.838235
0.758696
0.129952
0
0.170213
0
0
0.025594
0
0
0
0
0
0.021277
1
0.255319
false
0.06383
0.042553
0.06383
0.468085
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
1
0
1
0
0
0
0
0
2
bc796051d35cf6cd654ce6528d4ed35ac535ec1b
1,523
py
Python
290.word-pattern.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
290.word-pattern.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
290.word-pattern.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=290 lang=python3 # # [290] Word Pattern # # https://leetcode.com/problems/word-pattern/description/ # # algorithms # Easy (35.86%) # Likes: 825 # Dislikes: 113 # Total Accepted: 164K # Total Submissions: 455.9K # Testcase Example: '"abba"\n"dog cat cat dog"' # # Given a pattern and a stri...
22.397059
74
0.61392
214
1,523
4.369159
0.490654
0.025668
0.038503
0.038503
0.115508
0.091979
0.059893
0
0
0
0
0.027385
0.25673
1,523
67
75
22.731343
0.798587
0.610637
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.428571
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
bc79d0b1cabca396208cd2aeb132525a435758f4
705
py
Python
s1_getting_started/exercise_files/final_exercise/model.py
jaschn/dtu_mlops
59f404cffc756739433b5ccebb46ef6bfd467436
[ "Apache-2.0" ]
null
null
null
s1_getting_started/exercise_files/final_exercise/model.py
jaschn/dtu_mlops
59f404cffc756739433b5ccebb46ef6bfd467436
[ "Apache-2.0" ]
null
null
null
s1_getting_started/exercise_files/final_exercise/model.py
jaschn/dtu_mlops
59f404cffc756739433b5ccebb46ef6bfd467436
[ "Apache-2.0" ]
null
null
null
from torch import nn class MyAwesomeModel(nn.Module): def __init__(self): super().__init__() self.cnn = nn.Sequential(nn.Conv2d(in_channels=1, out_channels=5, kernel_size=3), nn.ReLU(), nn.Conv2d(in_channels=5, out_channels=3, kernel...
32.045455
97
0.438298
78
705
3.782051
0.474359
0.054237
0.094915
0.122034
0
0
0
0
0
0
0
0.058824
0.44539
705
21
98
33.571429
0.695652
0
0
0.125
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc7aed95070ea2718e44219b9db81ddfb927929e
5,036
py
Python
musket_core/tests/coders_test.py
dreamflyer/musket_core
1bdf1b4715a3b5c63bf687799d7b977fdf49053f
[ "MIT" ]
16
2019-09-25T14:58:45.000Z
2020-04-04T22:03:27.000Z
musket_core/tests/coders_test.py
dreamflyer/musket_core
1bdf1b4715a3b5c63bf687799d7b977fdf49053f
[ "MIT" ]
17
2019-06-28T06:46:31.000Z
2020-01-23T10:01:12.000Z
musket_core/tests/coders_test.py
dreamflyer/musket_core
1bdf1b4715a3b5c63bf687799d7b977fdf49053f
[ "MIT" ]
2
2019-11-22T15:09:18.000Z
2019-12-17T03:17:25.000Z
import unittest from musket_core import coders import numpy as np import pandas as pd import os import math fl=__file__ fl=os.path.dirname(fl) class TestCoders(unittest.TestCase): def test_binary_num(self): a=np.array([0,1,0,1]) bc=coders.get_coder("binary",a, None) self.as...
37.029412
86
0.538721
756
5,036
3.5
0.097884
0.21542
0.057445
0.072562
0.897959
0.873394
0.864324
0.809524
0.809524
0.792139
0
0.040376
0.28197
5,036
136
87
37.029412
0.691372
0
0
0.638655
0
0
0.145451
0
0
0
0
0
0.319328
1
0.092437
false
0.092437
0.05042
0
0.151261
0
0
0
0
null
1
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
8
bc7b31007719919e0de3183e896e2da210eb63a7
1,706
py
Python
manage.py
isijara/zulip
403f4dafcc71369f3b1143b9f7073cd5d76bf357
[ "Apache-2.0" ]
1
2019-04-14T20:31:55.000Z
2019-04-14T20:31:55.000Z
manage.py
hcxiong/zulip
bf22eefedebd50b25f32b22988217c13a89b65d1
[ "Apache-2.0" ]
7
2020-09-06T14:54:30.000Z
2022-02-10T18:51:14.000Z
manage.py
hcxiong/zulip
bf22eefedebd50b25f32b22988217c13a89b65d1
[ "Apache-2.0" ]
9
2019-11-04T18:59:29.000Z
2022-03-22T17:46:37.000Z
#!/usr/bin/env python3 import os import sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) import scripts.lib.setup_path_on_import if __name__ == "__main__": if 'posix' in os.name and os.geteuid() == 0: print("manage.py should not be run as root. Use `su zulip` to drop ro...
42.65
102
0.694607
258
1,706
4.457364
0.414729
0.030435
0.045217
0.027826
0.066957
0
0
0
0
0
0
0.004392
0.199297
1,706
39
103
43.74359
0.837482
0.213365
0
0.111111
0
0
0.235955
0.071161
0
0
0
0
0
1
0
false
0
0.259259
0
0.259259
0.111111
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
bc7b521791f08dc13fece1c31003d055797c5819
2,385
py
Python
core/scripts/fetch_instructions_specs.py
merwaaan/mr.system
0b3ff1b1fd726c6fd525a3f03f361dcac678344a
[ "MIT" ]
null
null
null
core/scripts/fetch_instructions_specs.py
merwaaan/mr.system
0b3ff1b1fd726c6fd525a3f03f361dcac678344a
[ "MIT" ]
null
null
null
core/scripts/fetch_instructions_specs.py
merwaaan/mr.system
0b3ff1b1fd726c6fd525a3f03f361dcac678344a
[ "MIT" ]
null
null
null
import json, requests from bs4 import BeautifulSoup def fetch(): r = requests.get('http://clrhome.org/table/') if not r.ok: print('Cannot fetch {})'.format(r.url)) return None # remove newlines text = r.text.replace('\n', '') # Return the data as a BeautifulSoup object for easy querying return ...
24.84375
107
0.607547
326
2,385
4.374233
0.47546
0.035063
0.031557
0
0
0
0
0
0
0
0
0.009214
0.226415
2,385
95
108
25.105263
0.763686
0.126625
0
0
0
0
0.11042
0
0
0
0
0
0
1
0.107143
false
0
0.035714
0.035714
0.267857
0.053571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc7c42367a8432fba7810ae50ee93f6f9fc12d32
2,516
py
Python
unittests/tools/test_intsights_parser.py
M-Rod101/django-DefectDojo
7b09a00b1a526abaf40455c2ddec16aaa06b16e2
[ "BSD-3-Clause" ]
249
2016-09-06T21:04:40.000Z
2018-01-19T15:59:44.000Z
unittests/tools/test_intsights_parser.py
OWASP/django-DefectDojo
c101e47b294863877cd68a82d0cc60f8017b45b1
[ "BSD-3-Clause" ]
255
2016-09-06T21:36:37.000Z
2018-01-19T19:57:57.000Z
unittests/tools/test_intsights_parser.py
M-Rod101/django-DefectDojo
7b09a00b1a526abaf40455c2ddec16aaa06b16e2
[ "BSD-3-Clause" ]
152
2016-09-06T21:04:54.000Z
2018-01-18T08:52:24.000Z
from ..dojo_test_case import DojoTestCase from dojo.models import Test from dojo.tools.intsights.parser import IntSightsParser class TestIntSightsParser(DojoTestCase): def test_intsights_parser_with_one_critical_vuln_has_one_findings_json( self): testfile = open("unittests/scans/intsights/ints...
38.121212
102
0.677663
265
2,516
6.177358
0.267925
0.073305
0.04887
0.067196
0.736714
0.707392
0.653635
0.653635
0.609652
0.483812
0
0.022786
0.232512
2,516
65
103
38.707692
0.824961
0
0
0.518519
0
0
0.194754
0.116852
0
0
0
0
0.203704
1
0.092593
false
0
0.055556
0
0.166667
0
0
0
0
null
0
0
0
0
1
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
0
1
bc7fdbab2e2a6960b77a8cd250963e5c2c2a372b
5,046
py
Python
tools/testutils.py
sktollman/p4c
380830f6c26135d1d65e1312e3ba2da628c18145
[ "Apache-2.0" ]
1
2019-01-01T21:46:03.000Z
2019-01-01T21:46:03.000Z
tools/testutils.py
cslev/p4c
008f01ebc4bc0fcada4e674e9916b156427512ca
[ "Apache-2.0" ]
null
null
null
tools/testutils.py
cslev/p4c
008f01ebc4bc0fcada4e674e9916b156427512ca
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2013-present Barefoot Networks, Inc. # Copyright 2018 VMware, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
33.865772
78
0.630202
649
5,046
4.838213
0.349769
0.025796
0.040764
0.056051
0.188535
0.126115
0.052229
0.052229
0
0
0
0.00819
0.249901
5,046
148
79
34.094595
0.8214
0.282798
0
0.096774
0
0
0.098664
0
0
0
0
0
0
1
0.11828
false
0
0.064516
0
0.301075
0.053763
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
bc8027a9a53c2f0f832850a598757b1b43c5255c
6,237
py
Python
AlgorithmsAndDataStructures/mod2/Heap.py
BootyAss/bmstu
bea202cbdff159d3840335b2a2a5c3bd632a7393
[ "FSFAP" ]
null
null
null
AlgorithmsAndDataStructures/mod2/Heap.py
BootyAss/bmstu
bea202cbdff159d3840335b2a2a5c3bd632a7393
[ "FSFAP" ]
null
null
null
AlgorithmsAndDataStructures/mod2/Heap.py
BootyAss/bmstu
bea202cbdff159d3840335b2a2a5c3bd632a7393
[ "FSFAP" ]
1
2021-09-15T18:39:33.000Z
2021-09-15T18:39:33.000Z
class Heap: def __init__(self): self.items = dict() # key - (value, index) self.indexes = [] # index - key // to know indexes # Usefull functions def swap(self, i, j): x = self.indexes[i] # key of 1 item y = self.indexes[j] # key of 2 item # swa...
25.048193
99
0.467372
739
6,237
3.935047
0.136671
0.139959
0.0674
0.033012
0.246561
0.174003
0.120358
0.120358
0.045048
0.031637
0
0.023268
0.400513
6,237
248
100
25.149194
0.75448
0.054834
0
0.308989
0
0
0.009866
0
0
0
0
0
0
1
0.106742
false
0
0
0.016854
0.179775
0.067416
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
bc807e3864743112b7b85584b7afbab826c8463a
2,332
py
Python
django_comments_xtd/tests/test_api_views.py
Boondockers-Welcome/django-comments-xtd
8edd68350803bfc351345820ccc4289077918e91
[ "BSD-2-Clause" ]
1
2021-01-27T03:20:45.000Z
2021-01-27T03:20:45.000Z
django_comments_xtd/tests/test_api_views.py
Boondockers-Welcome/django-comments-xtd
8edd68350803bfc351345820ccc4289077918e91
[ "BSD-2-Clause" ]
null
null
null
django_comments_xtd/tests/test_api_views.py
Boondockers-Welcome/django-comments-xtd
8edd68350803bfc351345820ccc4289077918e91
[ "BSD-2-Clause" ]
1
2020-03-24T21:28:31.000Z
2020-03-24T21:28:31.000Z
from __future__ import unicode_literals try: from unittest.mock import patch except ImportError: from mock import patch from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from django.test import TestCase from django.urls import reverse from rest_framework.t...
37.612903
77
0.677959
289
2,332
5.304498
0.387543
0.045662
0.044357
0.041096
0.264188
0.200913
0.200913
0.151337
0.151337
0.151337
0
0.008677
0.209262
2,332
61
78
38.229508
0.822668
0.027444
0
0.166667
0
0
0.127096
0.025596
0
0
0
0
0.125
1
0.083333
false
0
0.25
0
0.375
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
bc8126cdbc2e20b53b03bc4d747c2a82d0fde975
892
py
Python
LC/358.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/358.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/358.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def rearrangeString(self, str, k): """ :type str: str :type k: int :rtype: str """ ## greedy: count keeps the # of chars, valid keeps the leftmost valid index of a char. res=[] # count # of chars d=coll...
29.733333
101
0.465247
122
892
3.401639
0.467213
0.014458
0.120482
0
0
0
0
0
0
0
0
0.005906
0.430493
892
30
102
29.733333
0.811024
0.293722
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.176471
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
bc82ef8de803f7a119ffe50ddde0e017fafeacd2
16,041
py
Python
momentumopt/python/momentumopt/kinoptpy/momentum_kinematics_optimizer.py
ferdinand-wood/kino_dynamic_opt
ba6bef170819c55d1d26e40af835a744d1ae663f
[ "BSD-3-Clause" ]
null
null
null
momentumopt/python/momentumopt/kinoptpy/momentum_kinematics_optimizer.py
ferdinand-wood/kino_dynamic_opt
ba6bef170819c55d1d26e40af835a744d1ae663f
[ "BSD-3-Clause" ]
null
null
null
momentumopt/python/momentumopt/kinoptpy/momentum_kinematics_optimizer.py
ferdinand-wood/kino_dynamic_opt
ba6bef170819c55d1d26e40af835a744d1ae663f
[ "BSD-3-Clause" ]
null
null
null
''' @file momentum_kinematics_optimizer.py @package momentumopt @author Brahayam Ponton (brahayam.ponton@tuebingen.mpg.de) @license License BSD-3-Clause @copyright Copyright (c) 2019, New York University and Max Planck Gesellschaft. @date 2019-10-08 ''' import os import numpy as np from momentumopt.kinoptpy.qp import...
41.342784
130
0.625335
2,246
16,041
4.227961
0.138023
0.022115
0.037911
0.035383
0.326453
0.251158
0.214511
0.16944
0.126474
0.093934
0
0.015315
0.259148
16,041
387
131
41.449612
0.783743
0.128857
0
0.083969
0
0
0.025344
0
0
0
0
0.002584
0
1
0.083969
false
0
0.041985
0.019084
0.179389
0.01145
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
bc831b7e95388ec378c7efd07e50c5540c59f285
435
py
Python
gullveig/web/__init__.py
Addvilz/gullveig
6ac5e66062c1b5ea8ad7c66f69be9e3d99ac0825
[ "Apache-2.0" ]
8
2020-08-24T14:53:14.000Z
2021-03-16T03:58:01.000Z
gullveig/web/__init__.py
Addvilz/gullveig
6ac5e66062c1b5ea8ad7c66f69be9e3d99ac0825
[ "Apache-2.0" ]
6
2020-08-25T13:19:02.000Z
2021-02-21T21:55:34.000Z
gullveig/web/__init__.py
Addvilz/gullveig
6ac5e66062c1b5ea8ad7c66f69be9e3d99ac0825
[ "Apache-2.0" ]
null
null
null
import logging from gullveig import bootstrap_default_logger # Configure default logging def _configure_default_web_logger(): logger = logging.getLogger('gullveig-web') bootstrap_default_logger(logger) api_logger = logging.getLogger('gullveig-api') bootstrap_default_logger(api_logger) aio_logge...
22.894737
52
0.795402
51
435
6.392157
0.294118
0.196319
0.269939
0.153374
0
0
0
0
0
0
0
0
0.128736
435
18
53
24.166667
0.860158
0.057471
0
0
0
0
0.093137
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.3
0
0
0
0
null
0
1
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
0
1
bc84db3b22d112c3d8e47827ed44b0cdb57ad39d
1,482
py
Python
jupyterhub_http_authenticator/httpauthenticator.py
clockfly/jupterhub_http_authenticator
88185e4677836129cd1bd15af368b7070103b1bf
[ "BSD-3-Clause" ]
null
null
null
jupyterhub_http_authenticator/httpauthenticator.py
clockfly/jupterhub_http_authenticator
88185e4677836129cd1bd15af368b7070103b1bf
[ "BSD-3-Clause" ]
null
null
null
jupyterhub_http_authenticator/httpauthenticator.py
clockfly/jupterhub_http_authenticator
88185e4677836129cd1bd15af368b7070103b1bf
[ "BSD-3-Clause" ]
null
null
null
import json import urllib import os import jupyterhub from tornado.httpclient import HTTPRequest, AsyncHTTPClient from traitlets import Unicode from jupyterhub.auth import Authenticator from tornado import gen class HttpAuthenticator(Authenticator): server = Unicode( None, allow_none=True, ...
23.52381
68
0.524966
133
1,482
5.81203
0.548872
0.028461
0.041397
0.051746
0.098318
0.098318
0.098318
0.098318
0
0
0
0.004353
0.379892
1,482
62
69
23.903226
0.836779
0
0
0.2
0
0
0.14527
0
0
0
0
0
0
1
0.02
false
0.02
0.16
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc85621d3dca3de545ceeff3a1f12920ad9784b4
9,912
py
Python
src/lr_find.py
KushajveerSingh/fastai_without_fastai
9a7c71b92c49be1e05858dc0e7ce63901c3c1bd2
[ "MIT" ]
12
2019-03-30T16:43:53.000Z
2022-03-21T19:49:12.000Z
src/lr_find.py
KushajveerSingh/fastai_without_fastai
9a7c71b92c49be1e05858dc0e7ce63901c3c1bd2
[ "MIT" ]
null
null
null
src/lr_find.py
KushajveerSingh/fastai_without_fastai
9a7c71b92c49be1e05858dc0e7ce63901c3c1bd2
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import numpy as np import matplotlib.pyplot as plt # NOT -> ParameterModule # NOT -> children_and_parameters # NOT -> flatten_model # NOT -> lr_range # NOT -> scheduling functions # NOT -> SmoothenValue # YES -> lr_find # NOT -> plot_lr_find # NOT TO BE MODIFIED class ParameterModu...
36.307692
115
0.601392
1,417
9,912
4.085392
0.223006
0.008983
0.024875
0.020729
0.096217
0.056486
0.045776
0.045776
0.045776
0.024011
0
0.010001
0.273709
9,912
272
116
36.441176
0.794138
0.338882
0
0.078947
0
0.019737
0.111464
0
0
0
0
0
0
1
0.105263
false
0
0.026316
0.013158
0.243421
0.026316
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
bc85ba5181e5203592287503621708b994737b25
3,905
py
Python
SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/lang/cpp/class_types/TestClassTypesDisassembly.py
Polidea/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
427
2018-05-29T14:21:02.000Z
2022-03-16T03:17:54.000Z
SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/lang/cpp/class_types/TestClassTypesDisassembly.py
PolideaPlayground/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
25
2018-07-23T08:34:15.000Z
2021-11-05T07:13:36.000Z
SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/lang/cpp/class_types/TestClassTypesDisassembly.py
PolideaPlayground/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
52
2018-07-19T19:57:32.000Z
2022-03-11T16:05:38.000Z
""" Test the lldb disassemble command on each call frame when stopped on C's ctor. """ from __future__ import print_function import os import time import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class IterateFrameAndDisassembleTestCase(T...
38.663366
92
0.56338
447
3,905
4.834452
0.402685
0.016659
0.007404
0.0236
0.108283
0.108283
0.108283
0.085146
0.072189
0.072189
0
0.003125
0.34443
3,905
100
93
39.05
0.841016
0.283483
0
0.101695
0
0
0.185709
0
0
0
0
0
0.016949
1
0.067797
false
0
0.118644
0
0.220339
0.067797
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
bc87838b315ca1f64fa986f62a70ee610e20d306
1,116
py
Python
reservedwords.py
irinaid/MAlice
02740d661020866c3927b9ee7ee4523aaaafcb7e
[ "MIT" ]
1
2021-04-25T22:53:36.000Z
2021-04-25T22:53:36.000Z
reservedwords.py
irinaid/MAlice
02740d661020866c3927b9ee7ee4523aaaafcb7e
[ "MIT" ]
null
null
null
reservedwords.py
irinaid/MAlice
02740d661020866c3927b9ee7ee4523aaaafcb7e
[ "MIT" ]
null
null
null
''' All the reserved, individual words used in MAlice. ''' A = "a" ALICE = "Alice" AND = "and" ATE = "ate" BECAME = "became" BECAUSE = "because" BUT = "but" CLOSED = "closed" COMMA = "," CONTAINED = "contained" DOT = "." DRANK = "drank" EITHER = "either" ENOUGH = "enough" EVENTUALLY = "eventually" FOUND = "found" H...
21.056604
338
0.638889
144
1,116
4.930556
0.381944
0.050704
0.056338
0.059155
0
0
0
0
0
0
0
0
0.181004
1,116
52
339
21.461538
0.776805
0.044803
0
0
0
0
0.194497
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
bc88724609a6f077241f73613153365855b09321
853
py
Python
leetcode/0057_Insert_Interval/result.py
theck17/notes
f32f0f4b8f821b1ed38d173ef0913efddd094b91
[ "MIT" ]
null
null
null
leetcode/0057_Insert_Interval/result.py
theck17/notes
f32f0f4b8f821b1ed38d173ef0913efddd094b91
[ "MIT" ]
null
null
null
leetcode/0057_Insert_Interval/result.py
theck17/notes
f32f0f4b8f821b1ed38d173ef0913efddd094b91
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # Author: C.K # Email: theck17@163.com # DateTime:2021-04-12 18:35:15 # Description: import os import sys class Solution: def insert(self, intervals: List[List[int]], newInterval: List[int]) -> List[List[int]]: res, i = [], 0 for interval in intervals: ...
24.371429
80
0.534584
93
853
4.817204
0.516129
0.046875
0.133929
0.09375
0.142857
0
0
0
0
0
0
0.058929
0.343494
853
34
81
25.088235
0.741071
0.114889
0
0.095238
0
0
0.010681
0
0
0
0
0
0
1
0.047619
false
0.047619
0.095238
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
bc889aea13c53b5ac47e25b4727f37433f19b834
322
py
Python
src/pymortests/benchmarks.py
TiKeil/pymor
5c6b3b6e1714b5ede11ce7cf03399780ab29d252
[ "Unlicense" ]
1
2021-08-17T15:55:12.000Z
2021-08-17T15:55:12.000Z
src/pymortests/benchmarks.py
TreeerT/pymor
e8b18d2d4c4b5998f0bd84f6728e365e0693b753
[ "Unlicense" ]
4
2022-03-17T10:07:38.000Z
2022-03-30T12:41:06.000Z
src/pymortests/benchmarks.py
TreeerT/pymor
e8b18d2d4c4b5998f0bd84f6728e365e0693b753
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2020 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) from pymortests.base import runmodule if __name__ == "__main__": runmodule(filename=__file__...
32.2
77
0.76087
45
322
5.177778
0.777778
0.034335
0.085837
0
0
0
0
0
0
0
0
0.035714
0.130435
322
9
78
35.777778
0.796429
0.664596
0
0
0
0
0.076923
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
bc89b98301ba0f533627b829ae7b31f9ab29c245
756
py
Python
storage3/_sync/client.py
anand2312/storage-py
75c9c43ea373cb58970255b8e7438c2ec67e7f25
[ "MIT" ]
null
null
null
storage3/_sync/client.py
anand2312/storage-py
75c9c43ea373cb58970255b8e7438c2ec67e7f25
[ "MIT" ]
null
null
null
storage3/_sync/client.py
anand2312/storage-py
75c9c43ea373cb58970255b8e7438c2ec67e7f25
[ "MIT" ]
null
null
null
from ..utils import SyncClient, __version__ from .bucket import SyncStorageBucketAPI from .file_api import SyncBucketProxy __all__ = [ "SyncStorageClient", ] class SyncStorageClient(SyncStorageBucketAPI): """Manage storage buckets and files.""" def __init__(self, url: str, headers: dict[str, str]) -> No...
26.068966
78
0.613757
75
756
5.88
0.6
0.031746
0
0
0
0
0
0
0
0
0
0.001805
0.267196
756
28
79
27
0.794224
0.170635
0
0
0
0
0.107826
0
0
0
0
0
0
1
0.133333
false
0
0.2
0
0.466667
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
bc8a0406013c9abeb99153a42725a7e4225fc35e
1,755
py
Python
repo/script.module.liveresolver/lib/js2py/translators/__init__.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
3
2020-03-03T13:21:44.000Z
2021-07-21T09:53:31.000Z
repo/script.module.liveresolver/lib/js2py/translators/__init__.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
null
null
null
repo/script.module.liveresolver/lib/js2py/translators/__init__.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
2
2020-04-01T22:11:12.000Z
2020-05-07T23:54:52.000Z
# The MIT License # # Copyright 2014, 2015 Piotr Dabkowski # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the 'Software'), # to deal in the Software without restriction, including without limitation the rights # to use, copy, modif...
45
127
0.764672
251
1,755
5.239044
0.513944
0.06692
0.019772
0.045627
0.103422
0.054753
0
0
0
0
0
0.007539
0.168661
1,755
38
128
46.184211
0.893763
0.709402
0
0
0
0
0.25
0.044118
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
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
bc8acb8ede34bacdf376a2fc95f5b2c7c78ede61
141,721
py
Python
src/test/python/test_scc_pacs.py
xchange11/ttconv-1
6e67172af126fa0e90690044848f300c0173715c
[ "BSD-2-Clause" ]
66
2020-09-25T11:38:28.000Z
2022-03-23T15:15:34.000Z
src/test/python/test_scc_pacs.py
xchange11/ttconv-1
6e67172af126fa0e90690044848f300c0173715c
[ "BSD-2-Clause" ]
217
2020-09-22T22:45:22.000Z
2022-03-31T23:02:15.000Z
src/test/python/test_scc_pacs.py
xchange11/ttconv-1
6e67172af126fa0e90690044848f300c0173715c
[ "BSD-2-Clause" ]
5
2020-09-25T09:24:17.000Z
2021-08-08T20:52:26.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Copyright (c) 2020, Sandflow Consulting LLC # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, ...
87.374229
129
0.689333
16,135
141,721
5.86396
0.01754
0.063034
0.111726
0.213296
0.941521
0.934175
0.93297
0.923955
0.910522
0.894013
0
0.073728
0.209482
141,721
1,621
130
87.428131
0.7708
0.00997
0
0.341321
0
0
0.000057
0
0
0
0.05549
0
0.00842
1
0.022021
false
0
0.001943
0
0.024611
0
0
0
0
null
0
0
1
1
1
1
1
1
1
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
0
7
bc8adf2af330cf7308b0b0e25463ed5a44b45099
1,484
py
Python
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/custom_image_properties_custom.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
35.333333
76
0.6031
175
1,484
4.942857
0.542857
0.055491
0.030058
0
0
0
0
0
0
0
0
0.000835
0.193396
1,484
41
77
36.195122
0.721805
0.570081
0
0
0
0
0.157627
0
0
0
0
0
0
1
0.066667
false
0
0.066667
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
bc8c55932d28aa8c9253fefe76b11ab1d6dbc13a
1,886
py
Python
distance_torch_no_compile/chamfer.py
nicolalandro/softpool
ca77161ab70e5fe6c6505dc40f448bd8e1d78a48
[ "Apache-2.0" ]
null
null
null
distance_torch_no_compile/chamfer.py
nicolalandro/softpool
ca77161ab70e5fe6c6505dc40f448bd8e1d78a48
[ "Apache-2.0" ]
null
null
null
distance_torch_no_compile/chamfer.py
nicolalandro/softpool
ca77161ab70e5fe6c6505dc40f448bd8e1d78a48
[ "Apache-2.0" ]
null
null
null
import torch def expanded_pairwise_distances(x, y): ''' Input: x is a bxNxd matrix y is an optional bxMxd matirx Output: dist is a bxNxM matrix where dist[i,j] is the square norm between x[i,:] and y[j,:] if y is not given then use 'y=x'. i.e. dist[i,j] = ||x[i,:]-y[j,:]||^2 ...
27.735294
104
0.507423
262
1,886
3.572519
0.354962
0.023504
0.022436
0.025641
0.094017
0.036325
0.034188
0.034188
0.034188
0.034188
0
0.040945
0.326617
1,886
67
105
28.149254
0.696063
0.306999
0
0.357143
0
0
0.047162
0
0
0
0
0
0
1
0.071429
false
0
0.02381
0
0.190476
0.047619
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
bc8c6ccfc24c9f2c6b892349f506c390ec4d676f
8,400
py
Python
isiscb/curation/authority_views/relation_views.py
crispzips/IsisCB
72f5ad47bbc2c615f995df148f5b86550835efdb
[ "MIT" ]
4
2016-01-25T20:35:33.000Z
2020-04-07T15:39:52.000Z
isiscb/curation/authority_views/relation_views.py
crispzips/IsisCB
72f5ad47bbc2c615f995df148f5b86550835efdb
[ "MIT" ]
41
2015-08-19T17:34:41.000Z
2022-03-11T23:19:01.000Z
isiscb/curation/authority_views/relation_views.py
crispzips/IsisCB
72f5ad47bbc2c615f995df148f5b86550835efdb
[ "MIT" ]
2
2020-11-25T20:18:18.000Z
2021-06-24T15:15:41.000Z
from __future__ import absolute_import from __future__ import print_function from __future__ import division from __future__ import unicode_literals from django.http import HttpResponse, HttpResponseRedirect, JsonResponse, QueryDict #, HttpResponseForbidden, Http404, , JsonResponse from django.shortcuts import get_obj...
39.810427
133
0.68619
942
8,400
5.880042
0.138004
0.040621
0.028164
0.037913
0.753746
0.753746
0.723055
0.723055
0.686586
0.664921
0
0.004604
0.198452
8,400
210
134
40
0.81806
0.005714
0
0.700565
0
0
0.182014
0.057358
0
0
0
0
0
1
0.028249
false
0.033898
0.096045
0
0.19209
0.00565
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
bc8efe8d75934b61443e05664bf142fdc9790c04
6,351
py
Python
run_tests.py
silx-kit/silx
360f890a617676a92f0bed6a28b718d09e70ec03
[ "CC0-1.0", "MIT" ]
94
2016-03-04T17:25:53.000Z
2022-03-18T18:05:23.000Z
run_tests.py
silx-kit/silx
360f890a617676a92f0bed6a28b718d09e70ec03
[ "CC0-1.0", "MIT" ]
2,841
2016-01-21T09:06:49.000Z
2022-03-18T14:53:56.000Z
run_tests.py
silx-kit/silx
360f890a617676a92f0bed6a28b718d09e70ec03
[ "CC0-1.0", "MIT" ]
71
2015-09-30T08:35:35.000Z
2022-03-16T07:16:28.000Z
#!/usr/bin/env python3 # coding: utf8 # /*########################################################################## # # Copyright (c) 2015-2021 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files ...
34.895604
101
0.668714
839
6,351
4.934446
0.33969
0.037198
0.021739
0.02029
0.111111
0.101449
0.05314
0.016425
0
0
0
0.00694
0.205952
6,351
181
102
35.088398
0.814
0.324673
0
0.12
0
0
0.14254
0
0
0
0
0
0
1
0.05
false
0
0.17
0
0.31
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
bc8faa6c50d7d1921cb25f63e39e57127594a8e6
7,072
py
Python
src/robot/utils/error.py
vprashanth777/Selenium
b3c48b75e73322891bb697f251b32a9a9d8b4dbe
[ "ECL-2.0", "Apache-2.0" ]
1
2018-03-10T11:10:20.000Z
2018-03-10T11:10:20.000Z
src/robot/utils/error.py
vprashanth777/Selenium
b3c48b75e73322891bb697f251b32a9a9d8b4dbe
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/utils/error.py
vprashanth777/Selenium
b3c48b75e73322891bb697f251b32a9a9d8b4dbe
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 l...
34.330097
78
0.662472
875
7,072
5.105143
0.248
0.023506
0.048355
0.022386
0.140587
0.105664
0.055742
0.044101
0.044101
0
0
0.003795
0.254808
7,072
205
79
34.497561
0.843833
0.184248
0
0.142857
0
0
0.045757
0.003682
0
0
0
0
0.007143
1
0.164286
false
0
0.064286
0.021429
0.478571
0.007143
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
bc90147c820b8957a1562bdb12623216308ec658
308
py
Python
dedupe/_init.py
neozhangthe1/dedupe
aff99e6bd027291eecfb78eae08aa73877f4fff0
[ "MIT" ]
null
null
null
dedupe/_init.py
neozhangthe1/dedupe
aff99e6bd027291eecfb78eae08aa73877f4fff0
[ "MIT" ]
null
null
null
dedupe/_init.py
neozhangthe1/dedupe
aff99e6bd027291eecfb78eae08aa73877f4fff0
[ "MIT" ]
null
null
null
from dedupe.api import StaticDedupe, Dedupe from dedupe.api import StaticRecordLink, RecordLink from dedupe.api import StaticGazetteer, Gazetteer from dedupe.core import randomPairs, randomPairsMatch, frozendict from dedupe.convenience import consoleLabel, trainingDataDedupe, trainingDataLink, canonicalize
51.333333
95
0.866883
33
308
8.090909
0.545455
0.187266
0.146067
0.213483
0
0
0
0
0
0
0
0
0.090909
308
5
96
61.6
0.953571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
bc926bb3d7c2f20a37f4cae0b86f7455ebdb913c
1,430
py
Python
scalability/tests/test_misc.py
ggreif/ic
ac56ec91f077c00d59eea3f73f51e14a1b3ea882
[ "Apache-2.0" ]
941
2021-05-10T08:14:14.000Z
2022-03-31T11:40:24.000Z
scalability/tests/test_misc.py
ggreif/ic
ac56ec91f077c00d59eea3f73f51e14a1b3ea882
[ "Apache-2.0" ]
3
2022-02-16T12:24:20.000Z
2022-03-23T12:05:41.000Z
scalability/tests/test_misc.py
ggreif/ic
ac56ec91f077c00d59eea3f73f51e14a1b3ea882
[ "Apache-2.0" ]
122
2021-05-10T08:21:23.000Z
2022-03-25T20:34:12.000Z
import unittest from unittest import TestCase from misc import verify class TestVerify(TestCase): """Tests misc.py verifies function.""" def test_verify__with_zero_threshold_and_expected_succeeds(self): """Test passes when expected rate, actual rate and threshold are all zero.""" result = ve...
43.333333
110
0.735664
189
1,430
5.31746
0.285714
0.053731
0.051741
0.053731
0.552239
0.452736
0.452736
0.406965
0.275622
0.275622
0
0.02874
0.172727
1,430
32
111
44.6875
0.820795
0.263636
0
0.222222
0
0
0.066212
0
0
0
0
0
0.222222
1
0.222222
false
0
0.166667
0
0.444444
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
1
0
0
0
0
0
0
0
1
bc92877f15ab8c1e45e6b3f0628b4c9b556c0100
4,271
py
Python
mars/tensor/fft/ifft.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
2
2019-03-29T04:11:10.000Z
2020-07-08T10:19:54.000Z
mars/tensor/fft/ifft.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
null
null
null
mars/tensor/fft/ifft.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
35.890756
91
0.657926
633
4,271
4.409163
0.402844
0.016123
0.018273
0.011465
0.058044
0.048011
0.016482
0
0
0
0
0.014844
0.227113
4,271
118
92
36.194915
0.830657
0.784828
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.307692
0
0.692308
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
1
0
1
0
0
2
bc92d9002e07294919b14cfdd4a1703514d8c845
53
py
Python
server/api/src/db/migrate/versions/v_2.py
mminamina/311-data
9a3e4dc6e14c7500fc3f75f583c7fc4b01108b29
[ "MIT" ]
null
null
null
server/api/src/db/migrate/versions/v_2.py
mminamina/311-data
9a3e4dc6e14c7500fc3f75f583c7fc4b01108b29
[ "MIT" ]
null
null
null
server/api/src/db/migrate/versions/v_2.py
mminamina/311-data
9a3e4dc6e14c7500fc3f75f583c7fc4b01108b29
[ "MIT" ]
null
null
null
def migrate(): print('migrating to version 2')
10.6
35
0.641509
7
53
4.857143
1
0
0
0
0
0
0
0
0
0
0
0.02439
0.226415
53
4
36
13.25
0.804878
0
0
0
0
0
0.431373
0
0
0
0
0
0
1
0.5
true
0
0
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
1
0
5