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
6ae5c492e4c7a58f8381ae12e47edd808dc70752
1,912
py
Python
gluon/contrib/memcache/__init__.py
arsfeld/fog-web2py
32263a03d4183dcaf7537c87edcb4e574d4bec6e
[ "BSD-3-Clause" ]
null
null
null
gluon/contrib/memcache/__init__.py
arsfeld/fog-web2py
32263a03d4183dcaf7537c87edcb4e574d4bec6e
[ "BSD-3-Clause" ]
null
null
null
gluon/contrib/memcache/__init__.py
arsfeld/fog-web2py
32263a03d4183dcaf7537c87edcb4e574d4bec6e
[ "BSD-3-Clause" ]
1
2019-03-13T08:20:25.000Z
2019-03-13T08:20:25.000Z
from gluon.contrib.memcache.memcache import Client import time """ examle of usage: cache.memcache=MemcacheClient(request,[127.0.0.1:11211],debug=true) """ import cPickle as pickle import thread locker = thread.allocate_lock() def MemcacheClient(*a, **b): locker.acquire() if not hasattr(MemcacheClient, '__...
28.537313
72
0.620816
226
1,912
5.00885
0.29646
0.037102
0.070671
0.077739
0.196113
0.196113
0.134276
0.072438
0
0
0
0.016417
0.267259
1,912
66
73
28.969697
0.791577
0.014121
0
0.208333
0
0
0.011167
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0.020833
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae7079318bfafa24286324b4e5be07089c8ccfb
11,135
py
Python
deepcut/deepcut.py
wannaphong/deepcut
e4f7779caa087c5ffbad3bc4e88f919e300d020c
[ "MIT" ]
17
2020-10-06T12:35:19.000Z
2021-11-19T07:33:15.000Z
deepcut/deepcut.py
wannaphong/deepcut
e4f7779caa087c5ffbad3bc4e88f919e300d020c
[ "MIT" ]
3
2020-10-07T06:29:33.000Z
2020-10-23T15:21:09.000Z
deepcut/deepcut.py
wannaphong/deepcut
e4f7779caa087c5ffbad3bc4e88f919e300d020c
[ "MIT" ]
1
2020-10-06T13:16:54.000Z
2020-10-06T13:16:54.000Z
#!/usr/bin/env python # encoding: utf-8 import numbers import os import re import sys from itertools import chain import numpy as np import scipy.sparse as sp import six import pickle from .model import get_convo_nn2 from .stop_words import THAI_STOP_WORDS from .utils import CHAR_TYPES_MAP, CHARS_MAP, create_feature_...
34.367284
116
0.587068
1,495
11,135
4.218729
0.248161
0.011892
0.00333
0.010782
0.108768
0.073411
0.065166
0.042334
0.042334
0.035516
0
0.015395
0.317467
11,135
324
117
34.367284
0.811711
0.29762
0
0.051136
0
0
0.030397
0
0
0
0
0
0
1
0.068182
false
0
0.068182
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae71d1265e8389449c1186df9eae1ba04f43f40
4,824
py
Python
spconv/utils/__init__.py
djiajunustc/spconv
647927ce6b64dc51fbec4eb50c7194f8ca5007e5
[ "Apache-2.0" ]
null
null
null
spconv/utils/__init__.py
djiajunustc/spconv
647927ce6b64dc51fbec4eb50c7194f8ca5007e5
[ "Apache-2.0" ]
null
null
null
spconv/utils/__init__.py
djiajunustc/spconv
647927ce6b64dc51fbec4eb50c7194f8ca5007e5
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Yan Yan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
41.230769
101
0.676824
631
4,824
4.998415
0.277338
0.03234
0.055802
0.045656
0.532023
0.52156
0.515536
0.469562
0.396322
0.396322
0
0.012983
0.249585
4,824
116
102
41.586207
0.858287
0.177446
0
0.378378
0
0
0.088662
0
0
0
0
0
0
1
0.108108
false
0.013514
0.175676
0.027027
0.378378
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
6ae7a32e4ed90bb4e297477064266c060efd4768
5,346
py
Python
build/android/gyp/lint.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-16T03:57:28.000Z
2021-01-23T15:29:45.000Z
build/android/gyp/lint.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-02-10T21:00:08.000Z
2018-03-20T05:09:50.000Z
build/android/gyp/lint.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:13.000Z
2020-11-04T07:24:13.000Z
#!/usr/bin/env python # # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Runs Android's lint tool.""" import optparse import os import sys from xml.dom import minidom from util import build_utils ...
33.4125
78
0.62963
648
5,346
5
0.294753
0.04321
0.046296
0.021605
0.147222
0.107407
0.085802
0.085802
0.053086
0.053086
0
0.002982
0.247288
5,346
159
79
33.622642
0.802187
0.081556
0
0.070796
0
0
0.185937
0.00902
0
0
0
0
0
1
0.053097
false
0
0.044248
0
0.150442
0.035398
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae97714d8f4b22a1d08d058e87732477cbb19c0
9,424
py
Python
clif/pybind11/generator.py
snu5mumr1k/clif
3a907dd7b0986f2b3306c88503d414f4d4f963ae
[ "Apache-2.0" ]
null
null
null
clif/pybind11/generator.py
snu5mumr1k/clif
3a907dd7b0986f2b3306c88503d414f4d4f963ae
[ "Apache-2.0" ]
null
null
null
clif/pybind11/generator.py
snu5mumr1k/clif
3a907dd7b0986f2b3306c88503d414f4d4f963ae
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.622951
80
0.671053
1,275
9,424
4.718431
0.174118
0.017952
0.037899
0.033245
0.407746
0.270279
0.237699
0.126496
0.087766
0.043551
0
0.015397
0.214346
9,424
243
81
38.781893
0.797137
0.131367
0
0.187845
0
0
0.21052
0.132609
0
0
0
0
0.005525
1
0.060773
false
0
0.066298
0
0.138122
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
6aea61815f42420b447d1ce164aa7c65f5c5bc94
3,652
py
Python
spyder/dependencies.py
aglotero/spyder
075d32fa359b728416de36cb0e744715fa5e3943
[ "MIT" ]
2
2019-04-25T08:25:37.000Z
2019-04-25T08:25:43.000Z
spyder/dependencies.py
aglotero/spyder
075d32fa359b728416de36cb0e744715fa5e3943
[ "MIT" ]
1
2020-10-29T19:53:11.000Z
2020-10-29T19:53:11.000Z
spyder/dependencies.py
aglotero/spyder
075d32fa359b728416de36cb0e744715fa5e3943
[ "MIT" ]
1
2019-02-18T01:28:51.000Z
2019-02-18T01:28:51.000Z
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Module checking Spyder runtime dependencies""" import os # Local imports from spyder.utils import programs class Dependency(object): """Sp...
32.035088
78
0.585706
375
3,652
5.6
0.314667
0.099048
0.057143
0.042857
0.220476
0.206667
0.184762
0.157143
0.106667
0
0
0.007229
0.318182
3,652
113
79
32.318584
0.835743
0.194962
0
0.169014
0
0
0.03255
0
0
0
0
0
0
1
0.112676
false
0
0.028169
0
0.309859
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
6aea82e968ce364fdac8932cf3b83554a12ac797
2,947
py
Python
setup.py
jasperhyp/Chemprop4SE
c02b604b63b6766464db829fea0b306c67302e82
[ "MIT" ]
1
2021-12-15T05:18:07.000Z
2021-12-15T05:18:07.000Z
setup.py
jasperhyp/chemprop4SE
c02b604b63b6766464db829fea0b306c67302e82
[ "MIT" ]
null
null
null
setup.py
jasperhyp/chemprop4SE
c02b604b63b6766464db829fea0b306c67302e82
[ "MIT" ]
null
null
null
import os from setuptools import find_packages, setup # Load version number __version__ = None src_dir = os.path.abspath(os.path.dirname(__file__)) version_file = os.path.join(src_dir, 'chemprop', '_version.py') with open(version_file, encoding='utf-8') as fd: exec(fd.read()) # Load README with ope...
33.873563
88
0.599932
325
2,947
5.261538
0.452308
0.045614
0.061404
0.060819
0.139766
0
0
0
0
0
0
0.026782
0.25246
2,947
86
89
34.267442
0.749433
0.010519
0
0.025641
0
0
0.528475
0.169084
0
0
0
0
0
1
0
false
0.025641
0.025641
0
0.025641
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aec0377fc121dfeab883792414df3e21c04a712
2,335
py
Python
mars/tensor/indexing/slice.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
2
2019-03-29T04:11:10.000Z
2020-07-08T10:19:54.000Z
mars/tensor/indexing/slice.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
null
null
null
mars/tensor/indexing/slice.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
null
null
null
# 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 required by applicable law or a...
33.84058
76
0.636403
312
2,335
4.653846
0.435897
0.041322
0.035124
0.022039
0
0
0
0
0
0
0
0.012274
0.267238
2,335
68
77
34.338235
0.836353
0.259957
0
0.097561
0
0
0.012259
0
0
0
0
0
0
1
0.121951
false
0
0.121951
0.02439
0.463415
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
6aec42c6af54cc3a34d294f61a827b50bebc2cb6
50,221
py
Python
ftplugin/python/python/pyflakes/pyflakes/checker.py
leewckk/vim.configuration
db3faa4343714dd3eb3b7ab19f8cd0b64a52ee57
[ "MIT" ]
null
null
null
ftplugin/python/python/pyflakes/pyflakes/checker.py
leewckk/vim.configuration
db3faa4343714dd3eb3b7ab19f8cd0b64a52ee57
[ "MIT" ]
null
null
null
ftplugin/python/python/pyflakes/pyflakes/checker.py
leewckk/vim.configuration
db3faa4343714dd3eb3b7ab19f8cd0b64a52ee57
[ "MIT" ]
null
null
null
""" Main module. Implement the central Checker class. Also, it models the Bindings and Scopes. """ import __future__ import doctest import os import sys PY2 = sys.version_info < (3, 0) PY32 = sys.version_info < (3, 3) # Python 2.5 to 3.2 PY33 = sys.version_info < (3, 4) # Python 2.5 to 3.3 PY34 = ...
36.900073
87
0.567054
5,448
50,221
5.127019
0.14464
0.012566
0.017399
0.00401
0.157525
0.117571
0.090255
0.062366
0.05005
0.030145
0
0.004061
0.352821
50,221
1,360
88
36.927206
0.855332
0.2036
0
0.260369
0
0
0.017609
0.000637
0
0
0
0.000735
0.004608
1
0.101382
false
0.009217
0.06682
0.013825
0.395161
0.002304
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aed26d63f42531533566c9bcedcbe6f5289c5e4
3,349
py
Python
AutoScreenShot.py
infinyte7/Auto-Screenshot
5d8e39af61f3361f372ffb48add53171b7cea672
[ "MIT" ]
3
2020-10-29T13:57:15.000Z
2021-02-19T21:59:15.000Z
AutoScreenShot.py
infinyte7/Auto-Screenshot
5d8e39af61f3361f372ffb48add53171b7cea672
[ "MIT" ]
null
null
null
AutoScreenShot.py
infinyte7/Auto-Screenshot
5d8e39af61f3361f372ffb48add53171b7cea672
[ "MIT" ]
1
2021-02-19T21:59:48.000Z
2021-02-19T21:59:48.000Z
# Project Name: Auto Screenshot # Description: Take screenshot of screen when any change take place. # Author: Mani (Infinyte7) # Date: 26-10-2020 # License: MIT from pyscreenshot import grab from PIL import ImageChops import os import time import subprocess, sys from datetime import datetime import tkinter as tk fr...
32.833333
101
0.616602
407
3,349
4.955774
0.383292
0.023798
0.032226
0.029747
0.242935
0.226078
0.172533
0.172533
0.160635
0.108081
0
0.023829
0.260675
3,349
101
102
33.158416
0.790792
0.149
0
0.1
0
0
0.108757
0.008121
0
0
0
0
0
1
0.066667
false
0
0.15
0
0.233333
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aed847e420c882fffa9edfe88238102ee06ac09
2,749
py
Python
rqalpha/utils/logger.py
HaidongHe/rqalpha
bb824178425909e051c456f6062a6c5bdc816421
[ "Apache-2.0" ]
1
2020-11-10T05:44:39.000Z
2020-11-10T05:44:39.000Z
rqalpha/utils/logger.py
HaidongHe/rqalpha
bb824178425909e051c456f6062a6c5bdc816421
[ "Apache-2.0" ]
null
null
null
rqalpha/utils/logger.py
HaidongHe/rqalpha
bb824178425909e051c456f6062a6c5bdc816421
[ "Apache-2.0" ]
1
2020-03-05T05:06:45.000Z
2020-03-05T05:06:45.000Z
# -*- coding: utf-8 -*- # 版权所有 2019 深圳米筐科技有限公司(下称“米筐科技”) # # 除非遵守当前许可,否则不得使用本软件。 # # * 非商业用途(非商业用途指个人出于非商业目的使用本软件,或者高校、研究所等非营利机构出于教育、科研等目的使用本软件): # 遵守 Apache License 2.0(下称“Apache 2.0 许可”),您可以在以下位置获得 Apache 2.0 许可的副本:http://www.apache.org/licenses/LICENSE-2.0。 # 除非法律有要求或以书面形式达成协议,否则本软件分发时需保持当前许可“原样”...
25.220183
144
0.694434
336
2,749
5.473214
0.395833
0.053834
0.062534
0.04894
0.135943
0.089179
0.045677
0.045677
0.045677
0
0
0.009329
0.181157
2,749
108
145
25.453704
0.807641
0.276464
0
0.107143
0
0
0.102186
0
0
0
0
0
0
1
0.089286
false
0
0.089286
0
0.232143
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aee73a3b8946a07512f9eca678734d10d671560
5,517
py
Python
salt/modules/oracle.py
wikimedia/operations-debs-salt
be6342abc7401ff92f67ed59f7834f1359f35314
[ "Apache-2.0" ]
null
null
null
salt/modules/oracle.py
wikimedia/operations-debs-salt
be6342abc7401ff92f67ed59f7834f1359f35314
[ "Apache-2.0" ]
null
null
null
salt/modules/oracle.py
wikimedia/operations-debs-salt
be6342abc7401ff92f67ed59f7834f1359f35314
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Oracle DataBase connection module :mainteiner: Vladimir Bormotov <bormotov@gmail.com> :maturity: new :depends: cx_Oracle :platform: all :configuration: module provide connections for multiple Oracle DB instances. **OS Environment** .. code-block:: text ORACLE_HOME: pa...
24.52
82
0.610839
701
5,517
4.626248
0.269615
0.064138
0.024052
0.031452
0.243602
0.193956
0.141844
0.11255
0.041628
0
0
0.008354
0.26228
5,517
224
83
24.629464
0.788452
0.334783
0
0.242105
0
0
0.134739
0
0
0
0
0
0
1
0.105263
false
0.042105
0.052632
0
0.284211
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
6aef1e728fe8745d27da0badcde01e88381bd9b3
32,785
py
Python
tests/test_std.py
ashwini-balnaves/python-consul
4ddec9b57eb5284b58967ce1a9b2422519f88cc2
[ "MIT" ]
469
2015-01-02T18:36:39.000Z
2022-03-10T09:18:13.000Z
tests/test_std.py
ashwini-balnaves/python-consul
4ddec9b57eb5284b58967ce1a9b2422519f88cc2
[ "MIT" ]
249
2015-01-21T19:06:34.000Z
2022-01-12T09:12:58.000Z
tests/test_std.py
ashwini-balnaves/python-consul
4ddec9b57eb5284b58967ce1a9b2422519f88cc2
[ "MIT" ]
279
2015-01-17T04:25:04.000Z
2022-03-11T22:06:46.000Z
import base64 import operator import struct import time import pytest import six import consul import consul.std Check = consul.Check class TestHTTPClient(object): def test_uri(self): http = consul.std.HTTPClient() assert http.uri('/v1/kv') == 'http://127.0.0.1:8500/v1/kv' assert http....
34.766702
78
0.574257
4,296
32,785
4.297952
0.079376
0.063367
0.026213
0.035908
0.702773
0.64206
0.569053
0.515327
0.474328
0.431163
0
0.023165
0.275797
32,785
942
79
34.803609
0.754496
0.059539
0
0.433333
0
0
0.11702
0.00234
0
0
0
0
0.286364
1
0.063636
false
0.028788
0.012121
0
0.078788
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
6af148a08a578a5383b105b30ec3598b62b9c1f1
385
py
Python
Q58/sol.py
shivamT95/projecteuler
3e87b64235edd8444bc27198717a38e0ae0e0c0b
[ "MIT" ]
null
null
null
Q58/sol.py
shivamT95/projecteuler
3e87b64235edd8444bc27198717a38e0ae0e0c0b
[ "MIT" ]
null
null
null
Q58/sol.py
shivamT95/projecteuler
3e87b64235edd8444bc27198717a38e0ae0e0c0b
[ "MIT" ]
null
null
null
import math def is_prime(n): if n == 1: return False if n % 2 == 0 and n > 2: return False return all(n % i for i in range(3, int(math.sqrt(n))+1,2)) tot = 1 dia = 0 for side_length in range(3,100001,2): hi = side_length**2 for i in range(4): if is_prime(hi-i*side_length+i): dia = dia+1 ...
18.333333
60
0.592208
79
385
2.810127
0.379747
0.18018
0.054054
0.099099
0
0
0
0
0
0
0
0.081851
0.27013
385
20
61
19.25
0.708185
0
0
0.111111
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.277778
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6af16d0caa3aded0dbc0cbf9957a4f9e9107ae10
1,530
py
Python
lesson_07/02.py
alexartwww/geekbrains
f58720dc1d29bc94201b8b9c9239813c0d14ed64
[ "MIT" ]
null
null
null
lesson_07/02.py
alexartwww/geekbrains
f58720dc1d29bc94201b8b9c9239813c0d14ed64
[ "MIT" ]
null
null
null
lesson_07/02.py
alexartwww/geekbrains
f58720dc1d29bc94201b8b9c9239813c0d14ed64
[ "MIT" ]
null
null
null
task = ''' Реализовать проект расчета суммарного расхода ткани на производство одежды. Основная сущность (класс) этого проекта — одежда, которая может иметь определенное название. К типам одежды в этом проекте относятся пальто и костюм. У этих типов одежды существуют параметры: размер (для пальто) и рост (для костюма)...
25.081967
83
0.67451
200
1,530
5.05
0.53
0.083168
0.044554
0.068317
0.10198
0.065347
0
0
0
0
0
0.022453
0.243137
1,530
60
84
25.5
0.848877
0
0
0.133333
0
0.022222
0.519608
0
0
0
0
0
0
1
0.111111
false
0
0
0.044444
0.222222
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a7357e7ea86e6139bf2479d07ddffa8fab66e70
1,170
py
Python
core/fanarttvapi.py
SchadLucas/pyscrape
814a5e767ed899b5929533729c15262f1ad6a52b
[ "MIT" ]
null
null
null
core/fanarttvapi.py
SchadLucas/pyscrape
814a5e767ed899b5929533729c15262f1ad6a52b
[ "MIT" ]
1
2015-05-07T11:38:32.000Z
2015-05-07T11:38:32.000Z
core/fanarttvapi.py
SchadLucas/pyscrape
814a5e767ed899b5929533729c15262f1ad6a52b
[ "MIT" ]
null
null
null
import urllib2 import json import time from core.helpers.decorator import Cached from core.helpers.config import config from core.helpers.logger import log, LogLevel @Cached def __request(request): log('Send Fanart Request: ' + request.replace(config.fanart.api_key, 'XXX'), 'DEBUG') headers = {'Accept': 'app...
27.857143
89
0.655556
156
1,170
4.705128
0.416667
0.049046
0.061308
0.049046
0.054496
0
0
0
0
0
0
0.015556
0.230769
1,170
42
90
27.857143
0.8
0
0
0.064516
0
0
0.100769
0
0
0
0
0
0
1
0.129032
false
0
0.193548
0.064516
0.451613
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
0a73919f13735ea63c30a1b71cb346f2f001cba6
2,096
py
Python
metrics.py
AndreasLH/Image-Colourization
b41182354446feeb80000a84e5db9100b30e9d81
[ "MIT" ]
1
2021-11-01T09:53:34.000Z
2021-11-01T09:53:34.000Z
metrics.py
AndreasLH/Image-Colourization
b41182354446feeb80000a84e5db9100b30e9d81
[ "MIT" ]
null
null
null
metrics.py
AndreasLH/Image-Colourization
b41182354446feeb80000a84e5db9100b30e9d81
[ "MIT" ]
null
null
null
from math import log10, sqrt import cv2 import numpy as np def PSNR(original, compressed): ''' Calculates the Peak signal to noise ratio between a ground truth image and predicted image. see https://www.geeksforgeeks.org/python-peak-signal-to-noise-ratio-psnr/ for reference Parameters --...
24.372093
95
0.564885
263
2,096
4.429658
0.51711
0.046352
0.037768
0.029185
0.037768
0
0
0
0
0
0
0.044177
0.287214
2,096
85
96
24.658824
0.735609
0.419847
0
0
0
0
0.100187
0.055243
0
0
0
0
0
1
0.09375
false
0
0.125
0
0.3125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a7533a2a833e21052e44904ba80f9df53fd03e4
4,560
py
Python
scripts/list-all-test-suites-for-ci.py
uc-cdis/gen3-qa
6634678b17cb5dd86533667c22037b1e2ddeb0b8
[ "Apache-2.0" ]
4
2019-08-30T22:25:24.000Z
2021-09-15T19:19:44.000Z
scripts/list-all-test-suites-for-ci.py
uc-cdis/gen3-qa
6634678b17cb5dd86533667c22037b1e2ddeb0b8
[ "Apache-2.0" ]
148
2018-04-16T17:26:54.000Z
2022-03-04T16:16:02.000Z
scripts/list-all-test-suites-for-ci.py
uc-cdis/gen3-qa
6634678b17cb5dd86533667c22037b1e2ddeb0b8
[ "Apache-2.0" ]
3
2019-08-01T03:15:38.000Z
2022-03-07T01:23:12.000Z
import os import subprocess test_suites_that_cant_run_in_parallel = [ "test-apis-dbgapTest", # not thread-safe "test-google-googleDataAccessTest", # not thread-safe "test-google-googleServiceAccountRemovalTest", # not thread-safe "test-guppy-guppyTest", ...
49.032258
112
0.608114
425
4,560
6.36
0.322353
0.085831
0.103589
0.124306
0.332963
0.076952
0.022937
0
0
0
0
0.002779
0.289912
4,560
92
113
49.565217
0.831995
0.228947
0
0
0
0
0.394965
0.359375
0
0
0
0
0
1
0.028169
false
0
0.028169
0
0.070423
0.014085
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a7597366e4cc059f4fa32bc7a905bc75e50266d
1,045
py
Python
querybook/server/lib/query_executor/all_executors.py
set5think/querybook
25738fe113faa8ee414826d1aa910354ae8a4146
[ "Apache-2.0" ]
1
2021-04-01T15:30:11.000Z
2021-04-01T15:30:11.000Z
querybook/server/lib/query_executor/all_executors.py
set5think/querybook
25738fe113faa8ee414826d1aa910354ae8a4146
[ "Apache-2.0" ]
null
null
null
querybook/server/lib/query_executor/all_executors.py
set5think/querybook
25738fe113faa8ee414826d1aa910354ae8a4146
[ "Apache-2.0" ]
1
2021-04-02T17:43:41.000Z
2021-04-02T17:43:41.000Z
from lib.utils.plugin import import_plugin from .base_executor import parse_exception from .executors.hive import HiveQueryExecutor from .executors.presto import PrestoQueryExecutor from .executors.sqlalchemy import ( MysqlQueryExecutor, DruidQueryExecutor, SqliteQueryExecutor, SnowflakeQueryExecutor, ...
24.880952
83
0.749282
98
1,045
7.795918
0.408163
0.068063
0.070681
0
0
0
0
0
0
0
0
0
0.184689
1,045
41
84
25.487805
0.896714
0.023923
0
0.266667
0
0
0.081532
0
0
0
0
0
0
1
0.033333
false
0
0.233333
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a7705eb0f14b8b24300a2a99d4b3ece8aed7a37
3,189
py
Python
bot/exts/info/pypi.py
MrGrote/bot
acaae30d1c6d401d383e3c1cc55dd1c19ced32c3
[ "MIT" ]
1
2022-03-08T07:10:30.000Z
2022-03-08T07:10:30.000Z
bot/exts/info/pypi.py
MrGrote/bot
acaae30d1c6d401d383e3c1cc55dd1c19ced32c3
[ "MIT" ]
null
null
null
bot/exts/info/pypi.py
MrGrote/bot
acaae30d1c6d401d383e3c1cc55dd1c19ced32c3
[ "MIT" ]
null
null
null
import itertools import random import re from contextlib import suppress from disnake import Embed, NotFound from disnake.ext.commands import Cog, Context, command from disnake.utils import escape_markdown from bot.bot import Bot from bot.constants import Colours, NEGATIVE_REPLIES, RedirectOutput from bot.log import ...
36.238636
117
0.625902
378
3,189
5.156085
0.42328
0.041047
0.015393
0.023602
0.022576
0
0
0
0
0
0
0.011663
0.274067
3,189
87
118
36.655172
0.830238
0.05958
0
0.070175
0
0
0.146617
0.013671
0
0
0
0
0
1
0.035088
false
0.017544
0.192982
0
0.245614
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
0a79b3e5980fa9ccf32a0d7267aad362eafb93af
39,389
py
Python
test/dialect/mssql/test_compiler.py
gujun4990/sqlalchemy
057bae2295feb86529a04f09cd2f3d4c2c6d88a8
[ "MIT" ]
1
2018-11-15T16:02:17.000Z
2018-11-15T16:02:17.000Z
test/dialect/mssql/test_compiler.py
gujun4990/sqlalchemy
057bae2295feb86529a04f09cd2f3d4c2c6d88a8
[ "MIT" ]
null
null
null
test/dialect/mssql/test_compiler.py
gujun4990/sqlalchemy
057bae2295feb86529a04f09cd2f3d4c2c6d88a8
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 from sqlalchemy.testing import eq_, is_ from sqlalchemy import schema from sqlalchemy.sql import table, column, quoted_name from sqlalchemy.dialects import mssql from sqlalchemy.dialects.mssql import mxodbc from sqlalchemy.testing import fixtures, AssertsCompiledSQL from sqlalchemy import sql from...
39.193035
79
0.514991
4,443
39,389
4.421337
0.069998
0.044797
0.076156
0.033954
0.744502
0.691305
0.665496
0.650784
0.6208
0.592344
0
0.017902
0.357562
39,389
1,004
80
39.232072
0.758388
0.02229
0
0.445349
0
0.004651
0.22543
0.007542
0
0
0
0.000996
0.110465
1
0.086047
false
0
0.012791
0.001163
0.103488
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
0a7c6f49614d6822678c761e9a25fddc34bcb0a8
818
py
Python
SC101Lecture_code/SC101_week4/draw_basic.py
Jewel-Hong/SC-projects
9502b3f0c789a931226d4ce0200ccec56e47bc14
[ "MIT" ]
null
null
null
SC101Lecture_code/SC101_week4/draw_basic.py
Jewel-Hong/SC-projects
9502b3f0c789a931226d4ce0200ccec56e47bc14
[ "MIT" ]
null
null
null
SC101Lecture_code/SC101_week4/draw_basic.py
Jewel-Hong/SC-projects
9502b3f0c789a931226d4ce0200ccec56e47bc14
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Stanford CS106AP TK Drawing Lecture Exercises Courtesy of Nick Parlante """ import tkinter as tk # provided function, this code is complete def make_canvas(width, height): """ Creates and returns a drawing canvas of the given int size, ready for drawing. """ top = tk.T...
21.526316
69
0.656479
120
818
4.358333
0.608333
0.011472
0.045889
0
0
0
0
0
0
0
0
0.055728
0.210269
818
37
70
22.108108
0.75387
0.310513
0
0
0
0
0.06367
0
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.25
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
0a7ce8d41f3884cc3735bd20c347dfb81bcc70b3
2,714
py
Python
torchvision/datasets/kinetics.py
sh1doy/vision
d7dce1034a0682bf8832bc89cda9589d6598087d
[ "BSD-3-Clause" ]
null
null
null
torchvision/datasets/kinetics.py
sh1doy/vision
d7dce1034a0682bf8832bc89cda9589d6598087d
[ "BSD-3-Clause" ]
null
null
null
torchvision/datasets/kinetics.py
sh1doy/vision
d7dce1034a0682bf8832bc89cda9589d6598087d
[ "BSD-3-Clause" ]
null
null
null
from .video_utils import VideoClips from .utils import list_dir from .folder import make_dataset from .vision import VisionDataset class Kinetics400(VisionDataset): """ `Kinetics-400 <https://deepmind.com/research/open-source/open-source-datasets/kinetics/>`_ dataset. Kinetics-400 is an action recogn...
39.333333
97
0.669123
380
2,714
4.607895
0.378947
0.03084
0.044546
0.034266
0.033124
0.033124
0
0
0
0
0
0.014699
0.247973
2,714
68
98
39.911765
0.843214
0.493736
0
0
0
0
0.004724
0
0
0
0
0
0
1
0.1
false
0
0.133333
0.033333
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
0a7e85c92ceca48b141eaf4f09d1496be103b6aa
10,795
py
Python
venv/lib/python2.7/site-packages/sphinx/builders/qthelp.py
CharleyFarley/ovvio
81489ee64f91e4aab908731ce6ddf59edb9314bf
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/sphinx/builders/qthelp.py
CharleyFarley/ovvio
81489ee64f91e4aab908731ce6ddf59edb9314bf
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/sphinx/builders/qthelp.py
CharleyFarley/ovvio
81489ee64f91e4aab908731ce6ddf59edb9314bf
[ "MIT" ]
1
2016-08-24T01:08:34.000Z
2016-08-24T01:08:34.000Z
# -*- coding: utf-8 -*- """ sphinx.builders.qthelp ~~~~~~~~~~~~~~~~~~~~~~ Build input files for the Qt collection generator. :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import os import re import codecs import posixpath from os impo...
36.103679
80
0.568133
1,165
10,795
5.208584
0.254077
0.01648
0.01236
0.014832
0.224456
0.162162
0.146341
0.117172
0.079268
0.034113
0
0.00728
0.300139
10,795
298
81
36.224832
0.795897
0.145438
0
0.146789
0
0.004587
0.215371
0.058489
0
0
0
0
0
1
0.036697
false
0
0.050459
0.004587
0.16055
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
0a7edac2ed561ec67cb5f3e276d02750502435c8
7,252
py
Python
scripts/scrape_sciencedirect_urls.py
UWPRG/BETO2020
55b5b329395da79047e9083232101d15af9f2c49
[ "MIT" ]
4
2020-03-04T21:08:11.000Z
2020-10-28T11:28:00.000Z
scripts/scrape_sciencedirect_urls.py
UWPRG/BETO2020
55b5b329395da79047e9083232101d15af9f2c49
[ "MIT" ]
null
null
null
scripts/scrape_sciencedirect_urls.py
UWPRG/BETO2020
55b5b329395da79047e9083232101d15af9f2c49
[ "MIT" ]
6
2019-04-15T16:51:16.000Z
2019-11-13T02:45:53.000Z
""" This code is used to scrape ScienceDirect of publication urls and write them to a text file in the current directory for later use. """ import selenium from selenium import webdriver import numpy as np import pandas as pd import bs4 from bs4 import BeautifulSoup import time from sklearn.utils import shuffle def s...
33.730233
125
0.628792
964
7,252
4.637967
0.318465
0.01342
0.010065
0.011631
0.129278
0.059942
0.043391
0.030418
0.019235
0
0
0.012393
0.276751
7,252
214
126
33.88785
0.840038
0.371622
0
0.019608
0
0.009804
0.14049
0.029638
0
0
0
0
0
1
0.058824
false
0.009804
0.078431
0
0.186275
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a7ef598ad33e1712e909b5218a858b7b8de970f
1,903
py
Python
superset/typing.py
GodelTech/superset
da170aa57e94053cf715f7b41b09901c813a149a
[ "Apache-2.0" ]
7
2020-07-31T04:50:01.000Z
2021-12-08T07:56:42.000Z
superset/typing.py
GodelTech/superset
da170aa57e94053cf715f7b41b09901c813a149a
[ "Apache-2.0" ]
77
2020-02-02T07:54:13.000Z
2022-03-23T18:22:04.000Z
superset/typing.py
GodelTech/superset
da170aa57e94053cf715f7b41b09901c813a149a
[ "Apache-2.0" ]
6
2020-03-25T01:02:29.000Z
2021-05-12T17:11:19.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
39.645833
84
0.755123
261
1,903
5.501916
0.429119
0.034123
0.041783
0.022284
0
0
0
0
0
0
0
0.002451
0.142407
1,903
47
85
40.489362
0.877451
0.403573
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.185185
0
0.185185
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a7f17dbb71fa4b55ccb4daea833fc07286f055d
2,042
py
Python
log_system_information.py
ibaiGorordo/depthai
57b437f38ebe80e870ee4852ca7ccc80eaaa76cc
[ "MIT" ]
476
2020-04-21T11:38:55.000Z
2022-03-29T02:59:34.000Z
log_system_information.py
ibaiGorordo/depthai
57b437f38ebe80e870ee4852ca7ccc80eaaa76cc
[ "MIT" ]
440
2020-04-15T19:15:01.000Z
2022-03-31T21:17:33.000Z
log_system_information.py
ibaiGorordo/depthai
57b437f38ebe80e870ee4852ca7ccc80eaaa76cc
[ "MIT" ]
124
2020-04-23T19:23:25.000Z
2022-03-30T19:12:36.000Z
#!/usr/bin/env python3 import json import platform def make_sys_report(anonymous=False, skipUsb=False, skipPackages=False): def get_usb(): try: import usb.core except ImportError: yield "NoLib" return speeds = ["Unknown", "Low", "Full", "High", "Super",...
34.610169
89
0.589128
222
2,042
5.252252
0.468468
0.041166
0.022298
0.024014
0
0
0
0
0
0
0
0.006036
0.269834
2,042
58
90
35.206897
0.775989
0.010284
0
0.040816
0
0
0.161386
0.023762
0
0
0
0
0
1
0.040816
false
0
0.102041
0
0.183673
0.040816
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a7fa4ecf8696f5df75632b66c0092d937a89bf0
2,346
py
Python
enigma.py
fewieden/Enigma-Machine
0c130d3cf1bb5146d438cc39dca55ebbcb0f1cdf
[ "MIT" ]
1
2018-10-29T10:46:10.000Z
2018-10-29T10:46:10.000Z
enigma.py
fewieden/Enigma-Machine
0c130d3cf1bb5146d438cc39dca55ebbcb0f1cdf
[ "MIT" ]
null
null
null
enigma.py
fewieden/Enigma-Machine
0c130d3cf1bb5146d438cc39dca55ebbcb0f1cdf
[ "MIT" ]
1
2021-09-05T16:18:25.000Z
2021-09-05T16:18:25.000Z
from rotor import Rotor import sys import getopt class Enigma: def __init__(self, key, rotors): self.key = list(key) self.rotors = [] for i in range(0, len(rotors)): self.rotors.append(Rotor(self.key[i], rotors[i])) def encrypt(self, word): cipher = '' for ...
29.696203
110
0.498721
293
2,346
3.931741
0.286689
0.052083
0.034722
0.017361
0.074653
0.041667
0.041667
0
0
0
0
0.02635
0.336743
2,346
78
111
30.076923
0.71401
0
0
0.073529
0
0
0.173913
0
0
0
0
0
0
1
0.073529
false
0
0.044118
0
0.161765
0.102941
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a8049edeef1e3bee26e482ae16b802069251b6f
6,780
py
Python
andersoncd/group.py
idc9/andersoncd
af2123b241e5f82f7c51b2bbf5196fb02723b582
[ "BSD-3-Clause" ]
null
null
null
andersoncd/group.py
idc9/andersoncd
af2123b241e5f82f7c51b2bbf5196fb02723b582
[ "BSD-3-Clause" ]
null
null
null
andersoncd/group.py
idc9/andersoncd
af2123b241e5f82f7c51b2bbf5196fb02723b582
[ "BSD-3-Clause" ]
null
null
null
import time import numpy as np from scipy import sparse from numba import njit from numpy.linalg import norm from scipy.sparse.linalg import svds from andersoncd.lasso import dual_lasso def primal_grp(R, w, alpha, grp_size): return (0.5 * norm(R) ** 2 + alpha * norm(w.reshape(-1, grp_size), axis=1)....
31.100917
79
0.488791
1,022
6,780
3.062622
0.178082
0.067093
0.020447
0.014377
0.268371
0.235463
0.216294
0.182748
0.1623
0.102875
0
0.018881
0.375074
6,780
217
80
31.24424
0.719849
0.075516
0
0.223602
0
0
0.030142
0
0
0
0
0.004608
0
1
0.037267
false
0
0.043478
0.006211
0.118012
0.024845
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a804f8203f3e605d7c6651f77fee25137c52bc6
6,259
py
Python
textattack/search_methods/greedy_word_swap_wir.py
dheerajrav/TextAttack
41e747215bb0f01c511af95b16b94704c780cd5a
[ "MIT" ]
null
null
null
textattack/search_methods/greedy_word_swap_wir.py
dheerajrav/TextAttack
41e747215bb0f01c511af95b16b94704c780cd5a
[ "MIT" ]
null
null
null
textattack/search_methods/greedy_word_swap_wir.py
dheerajrav/TextAttack
41e747215bb0f01c511af95b16b94704c780cd5a
[ "MIT" ]
null
null
null
""" Greedy Word Swap with Word Importance Ranking =================================================== When WIR method is set to ``unk``, this is a reimplementation of the search method from the paper: Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment by Jin et...
41.450331
87
0.615594
712
6,259
5.148876
0.289326
0.031915
0.028369
0.023186
0.284234
0.229133
0.191217
0.138571
0.138571
0.138571
0
0.005346
0.31267
6,259
150
88
41.726667
0.846815
0.204026
0
0.191919
0
0
0.02441
0
0
0
0
0.006667
0
1
0.050505
false
0
0.060606
0.010101
0.171717
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
0a81693f8777fdc22a6d886900c28851626fa805
377
py
Python
lemur/deployment/service.py
rajatsharma94/lemur
99f46c1addcd40154835e151d0b189e1578805bb
[ "Apache-2.0" ]
1,656
2015-09-20T03:12:28.000Z
2022-03-29T18:00:54.000Z
lemur/deployment/service.py
rajatsharma94/lemur
99f46c1addcd40154835e151d0b189e1578805bb
[ "Apache-2.0" ]
3,017
2015-09-18T23:15:24.000Z
2022-03-30T22:40:02.000Z
lemur/deployment/service.py
rajatsharma94/lemur
99f46c1addcd40154835e151d0b189e1578805bb
[ "Apache-2.0" ]
401
2015-09-18T23:02:18.000Z
2022-02-20T16:13:14.000Z
from lemur import database def rotate_certificate(endpoint, new_cert): """ Rotates a certificate on a given endpoint. :param endpoint: :param new_cert: :return: """ # ensure that certificate is available for rotation endpoint.source.plugin.update_endpoint(endpoint, new_cert) endpo...
23.5625
62
0.71618
45
377
5.866667
0.555556
0.106061
0.113636
0
0
0
0
0
0
0
0
0
0.206897
377
15
63
25.133333
0.882943
0.363395
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a82635dab6776cd0ffd24a37efd7bf2386d6303
1,827
py
Python
train/general_train_example/1_parse.py
ss433s/sosweety
4cb1a0f061f26e509ee51c0fabd0284ad15804a5
[ "MIT" ]
null
null
null
train/general_train_example/1_parse.py
ss433s/sosweety
4cb1a0f061f26e509ee51c0fabd0284ad15804a5
[ "MIT" ]
null
null
null
train/general_train_example/1_parse.py
ss433s/sosweety
4cb1a0f061f26e509ee51c0fabd0284ad15804a5
[ "MIT" ]
null
null
null
import os, sys import json # 获取当前路径, 通过anchor文件获取项目root路径 this_file_path = os.path.split(os.path.realpath(__file__))[0] this_path = this_file_path root_path = this_file_path while this_path: if os.path.exists(os.path.join(this_path, 'sosweety_root_anchor.py')): root_path = this_path break...
29.467742
85
0.667761
266
1,827
4.278195
0.293233
0.073814
0.067663
0.036907
0.140598
0.086116
0.050967
0
0
0
0
0.006433
0.234264
1,827
61
86
29.95082
0.807005
0.039409
0
0.083333
0
0
0.080521
0.030787
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a83eff7c2dc361748d280106f49c290cfe4b19f
6,474
py
Python
src/phrase_manager/phrase_manager.py
Franco7Scala/GeneratingNaturalLanguageAdversarialExamplesThroughParticleFiltering
095b47eb76503d44f54f701d303193328a5a4c86
[ "MIT" ]
null
null
null
src/phrase_manager/phrase_manager.py
Franco7Scala/GeneratingNaturalLanguageAdversarialExamplesThroughParticleFiltering
095b47eb76503d44f54f701d303193328a5a4c86
[ "MIT" ]
6
2020-01-28T23:09:44.000Z
2022-02-10T01:16:59.000Z
src/phrase_manager/phrase_manager.py
Franco7Scala/GeneratingNaturalLanguageAdversarialExamplesThroughParticleFiltering
095b47eb76503d44f54f701d303193328a5a4c86
[ "MIT" ]
null
null
null
import numpy from keras.preprocessing import sequence from keras.preprocessing.text import Tokenizer from src.support import support class PhraseManager: def __init__(self, configuration): self.train_phrases, self.train_labels = self._read_train_phrases() self.test_phrases, self.test_labels = se...
40.21118
143
0.61384
826
6,474
4.530266
0.215496
0.040887
0.034206
0.035275
0.51256
0.470337
0.37333
0.259754
0.177445
0.115981
0
0.035178
0.24915
6,474
160
144
40.4625
0.734623
0
0
0.150794
0
0.063492
0.03738
0.006951
0
0
0
0
0
1
0.150794
false
0.02381
0.031746
0.031746
0.325397
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
0a862e609f431ba255f2003bb9d5372890839f22
1,680
py
Python
Networks/Threading/server.py
polbebe/PinkPanther
c6ba47956b2cae6468ac0cfe56229b5434fec754
[ "MIT" ]
null
null
null
Networks/Threading/server.py
polbebe/PinkPanther
c6ba47956b2cae6468ac0cfe56229b5434fec754
[ "MIT" ]
null
null
null
Networks/Threading/server.py
polbebe/PinkPanther
c6ba47956b2cae6468ac0cfe56229b5434fec754
[ "MIT" ]
null
null
null
import gym import gym.spaces as spaces import sys import socket from _thread import * import os import numpy as np import pandas as pd import math as m import time import random class NetEnv(gym.Env): def __init__(self): # Robot State values that will be bounced with client self.robot_state = None self.p...
20
60
0.691667
258
1,680
4.379845
0.457364
0.070796
0.084956
0.053097
0.322124
0.322124
0.228319
0.169912
0.169912
0.097345
0
0.039046
0.176786
1,680
83
61
20.240964
0.778019
0.145833
0
0.08
0
0
0.099649
0
0
0
0
0
0
1
0.08
false
0
0.22
0
0.32
0.16
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a880ef41f3bfd67c8ea6c85667d8aef79348500
1,744
py
Python
cinder/tests/unit/fake_group_snapshot.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
571
2015-01-01T17:47:26.000Z
2022-03-23T07:46:36.000Z
cinder/tests/unit/fake_group_snapshot.py
vexata/cinder
7b84c0842b685de7ee012acec40fb4064edde5e9
[ "Apache-2.0" ]
37
2015-01-22T23:27:04.000Z
2021-02-05T16:38:48.000Z
cinder/tests/unit/fake_group_snapshot.py
vexata/cinder
7b84c0842b685de7ee012acec40fb4064edde5e9
[ "Apache-2.0" ]
841
2015-01-04T17:17:11.000Z
2022-03-31T12:06:51.000Z
# Copyright 2016 EMC Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
33.538462
78
0.679472
227
1,744
5.039648
0.475771
0.125
0.118007
0.049825
0.045455
0
0
0
0
0
0
0.006803
0.241399
1,744
51
79
34.196078
0.857899
0.332569
0
0
0
0
0.094159
0.01918
0
0
0
0
0
1
0.068966
false
0
0.103448
0.034483
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a88b532a2c292c3b22e23456f113d6c77d67696
1,258
py
Python
src/tree_visualizer.py
szymanskir/msi
27013bac31e62b36dff138cfbb91852c96f77ef3
[ "MIT" ]
null
null
null
src/tree_visualizer.py
szymanskir/msi
27013bac31e62b36dff138cfbb91852c96f77ef3
[ "MIT" ]
null
null
null
src/tree_visualizer.py
szymanskir/msi
27013bac31e62b36dff138cfbb91852c96f77ef3
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import networkx as nx from networkx.drawing.nx_agraph import graphviz_layout def display_resolution_tree(resolution_tree: nx.classes.DiGraph): _draw_resolution_tree_(resolution_tree) plt.show() def _draw_resolution_tree_(tree: nx.classes.DiGraph, enable_edge_labels: bool = Tr...
33.105263
120
0.702703
177
1,258
4.689266
0.367232
0.108434
0.054217
0.06747
0.06747
0.06747
0
0
0
0
0
0.019627
0.189984
1,258
37
121
34
0.794897
0.023847
0
0
0
0
0.028595
0
0
0
0
0
0
1
0.08
false
0
0.12
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a8a41bb9d474871c5ea7be817390ae9d2fe8454
49,397
py
Python
tests/viz_tests.py
theoretical-olive/incubator-superset
72fc581b1559e7ce08b11c481b88eaa01b2d17de
[ "Apache-2.0" ]
2
2020-06-29T20:02:34.000Z
2020-06-29T20:02:35.000Z
tests/viz_tests.py
theoretical-olive/incubator-superset
72fc581b1559e7ce08b11c481b88eaa01b2d17de
[ "Apache-2.0" ]
null
null
null
tests/viz_tests.py
theoretical-olive/incubator-superset
72fc581b1559e7ce08b11c481b88eaa01b2d17de
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.381507
88
0.494099
5,310
49,397
4.389831
0.09774
0.041441
0.029344
0.040541
0.676877
0.630459
0.596139
0.550536
0.508709
0.459502
0
0.067229
0.342956
49,397
1,286
89
38.411353
0.650727
0.021135
0
0.475494
0
0
0.16049
0.01345
0
0
0
0
0.104041
1
0.039553
false
0
0.013758
0.00086
0.062769
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
0a8a7f44a0585244eb2c07e0db4cb782cb9fe0fb
1,840
py
Python
chord_sim/modules/taskqueue.py
ryogrid/FunnelKVS
65c4308ce6e08b819b5396fc1aa658468c276362
[ "MIT" ]
8
2022-01-12T00:46:25.000Z
2022-03-30T12:00:52.000Z
chord_sim/modules/taskqueue.py
ryogrid/FunnelKVS
65c4308ce6e08b819b5396fc1aa658468c276362
[ "MIT" ]
null
null
null
chord_sim/modules/taskqueue.py
ryogrid/FunnelKVS
65c4308ce6e08b819b5396fc1aa658468c276362
[ "MIT" ]
1
2022-01-12T06:22:31.000Z
2022-01-12T06:22:31.000Z
# coding:utf-8 from typing import Dict, List, Optional, cast, TYPE_CHECKING from .chord_util import ChordUtil, InternalControlFlowException, NodeIsDownedExceptiopn if TYPE_CHECKING: from .chord_node import ChordNode class TaskQueue: JOIN_PARTIAL = "join_partial" def __init__(self, existing_node : 'Chor...
41.818182
134
0.613587
189
1,840
5.640212
0.338624
0.090056
0.105066
0.067542
0.450281
0.410882
0.410882
0.337711
0.337711
0.337711
0
0.005414
0.297283
1,840
43
135
42.790698
0.819026
0.259239
0
0
0
0
0.065234
0.02891
0
0
0
0
0
1
0.125
false
0.041667
0.125
0
0.333333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a8f1638c1d0ec4d963f02a274edb9bb4662cfb2
679
py
Python
programs/buck_logging.py
lakshmi2005/buck
012a59d5d2e5a45b483e85fb190d2b67ea0c56ab
[ "Apache-2.0" ]
1
2018-02-28T06:26:56.000Z
2018-02-28T06:26:56.000Z
programs/buck_logging.py
lakshmi2005/buck
012a59d5d2e5a45b483e85fb190d2b67ea0c56ab
[ "Apache-2.0" ]
1
2018-12-10T15:54:22.000Z
2018-12-10T19:30:37.000Z
programs/buck_logging.py
lakshmi2005/buck
012a59d5d2e5a45b483e85fb190d2b67ea0c56ab
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import logging import os def setup_logging(): # Set log level of the messages to show. level_name = os.environ.get('BUCK_WRAPPER_LOG_LEVEL', 'INFO') level_name_to_level = { 'CRITICAL': logging.CRITICAL, 'ERROR': logging.ERROR, ...
27.16
78
0.624448
82
679
4.963415
0.512195
0.088452
0.054054
0.078624
0
0
0
0
0
0
0
0
0.240059
679
24
79
28.291667
0.78876
0.086892
0
0
0
0.052632
0.202265
0.100324
0
0
0
0
0
1
0.052632
false
0
0.157895
0
0.210526
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a8f6e13baf9b1f8e5a29dd8f55cd71b2926de6a
1,151
py
Python
CONTENT/DS-n-Algos/ALGO/__PYTHON/celeb.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
11
2021-02-18T04:53:44.000Z
2022-01-16T10:57:39.000Z
CONTENT/DS-n-Algos/ALGO/__PYTHON/celeb.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
162
2021-03-09T01:52:11.000Z
2022-03-12T01:09:07.000Z
CONTENT/DS-n-Algos/ALGO/__PYTHON/celeb.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
8
2021-02-18T05:12:34.000Z
2022-03-06T19:02:14.000Z
def orangesRotting(elemnts): if not elemnts or len(elemnts) == 0: return 0 n = len(elemnts) m = len(elemnts[0]) rotten = [] for i in range(n): for j in range(m): if elemnts[i][j] == 2: rotten.append((i, j)) mins = 0 def dfs(rotten): ...
25.021739
48
0.38662
154
1,151
2.88961
0.168831
0.058427
0.040449
0.116854
0.408989
0.319101
0.319101
0.319101
0.319101
0.319101
0
0.043551
0.481321
1,151
45
49
25.577778
0.701843
0
0
0.216216
0
0
0
0
0
0
0
0
0
1
0.054054
false
0
0
0
0.162162
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
0a8fdb2b5cc10e441111eda628478417245011ef
5,283
py
Python
official/cv/c3d/src/c3d_model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/c3d/src/c3d_model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/c3d/src/c3d_model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
40.638462
100
0.570509
768
5,283
3.804688
0.223958
0.027379
0.032854
0.032854
0.458248
0.403149
0.375428
0.330938
0.330938
0.330938
0
0.07141
0.276358
5,283
129
101
40.953488
0.692911
0.161651
0
0.230769
0
0
0.01677
0
0
0
0
0
0
1
0.051282
false
0
0.064103
0
0.141026
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
0a90c84a059304b0e838dbe80594658dfad7edd3
2,119
py
Python
blmath/geometry/apex.py
metabolize/blmath
8ea8d7be60349a60ffeb08a3e34fca20ef9eb0da
[ "BSD-2-Clause" ]
6
2019-09-28T16:48:34.000Z
2022-03-25T17:05:46.000Z
blmath/geometry/apex.py
metabolize/blmath
8ea8d7be60349a60ffeb08a3e34fca20ef9eb0da
[ "BSD-2-Clause" ]
6
2019-09-09T16:42:02.000Z
2021-06-25T15:25:50.000Z
blmath/geometry/apex.py
metabolize/blmath
8ea8d7be60349a60ffeb08a3e34fca20ef9eb0da
[ "BSD-2-Clause" ]
4
2017-05-09T16:15:07.000Z
2019-02-15T14:15:30.000Z
import numpy as np from blmath.numerics import vx def apex(points, axis): ''' Find the most extreme point in the direction of the axis provided. axis: A vector, which is an 3x1 np.array. ''' coords_on_axis = points.dot(axis) return points[np.argmax(coords_on_axis)] def inflection_points(poin...
36.534483
129
0.738084
315
2,119
4.796825
0.32381
0.068829
0.031767
0.052945
0.126406
0.07677
0
0
0
0
0
0.005886
0.198207
2,119
57
130
37.175439
0.883461
0.479
0
0.1
0
0
0
0
0
0
0
0
0
1
0.15
false
0
0.1
0
0.45
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
0a9150e1ffc2d578382971b5ac300e3f70157319
637
py
Python
examples/client/main.py
TheFarGG/Discode
facf6cd4f82baef2288a23dbe6f2a02dfc2407e2
[ "MIT" ]
3
2021-11-06T11:07:18.000Z
2022-03-18T09:04:42.000Z
examples/client/main.py
UnrealFar/Discode
facf6cd4f82baef2288a23dbe6f2a02dfc2407e2
[ "MIT" ]
3
2021-11-06T11:22:05.000Z
2022-03-12T16:36:52.000Z
examples/client/main.py
UnrealFar/Discode
facf6cd4f82baef2288a23dbe6f2a02dfc2407e2
[ "MIT" ]
4
2021-11-06T11:08:26.000Z
2022-03-12T14:25:57.000Z
import os import discode TOKEN = os.environ.get("TOKEN") # The token from the developer portal. client = discode.Client(token=TOKEN, intents=discode.Intents.default()) @client.on_event("ready") async def on_ready(): print(client.user, "is ready!") # The ready listener gets fired when the bot/client is comple...
23.592593
108
0.726845
96
637
4.760417
0.5
0.035011
0.056893
0
0
0
0
0
0
0
0
0
0.161695
637
26
109
24.5
0.855805
0.348509
0
0
0
0
0.099757
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a93d3f57e61e9da5895ceeab547d073a015db76
468
py
Python
riccipy/metrics/bondi_2.py
cjayross/riccipy
2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846
[ "MIT" ]
4
2019-08-17T04:28:06.000Z
2021-01-02T15:19:18.000Z
riccipy/metrics/bondi_2.py
grdbii/riccipy
2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846
[ "MIT" ]
3
2019-08-02T04:07:43.000Z
2020-06-18T07:49:38.000Z
riccipy/metrics/bondi_2.py
grdbii/riccipy
2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846
[ "MIT" ]
null
null
null
""" Name: Bondi References: Bondi, Proc. Roy. Soc. Lond. A, v282, p303, (1964) Coordinates: Spherical Symmetry: Spherical Notes: Outgoing Coordinates """ from sympy import Function, diag, sin, symbols coords = symbols("r v theta phi", real=True) variables = () functions = symbols("C M", cls=Function) r, v, th, ph = co...
27.529412
86
0.621795
78
468
3.730769
0.525641
0.034364
0.020619
0.027491
0
0
0
0
0
0
0
0.055263
0.188034
468
16
87
29.25
0.710526
0.309829
0
0
0
0
0.050794
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
0a950c28a9d44906d9a72986af5603b4ab55c885
1,583
py
Python
setup.py
bcongdon/instapaper-to-sqlite
378b87ffcd2832aeff735dd78a0c8206d220b899
[ "MIT" ]
1
2021-10-04T05:48:51.000Z
2021-10-04T05:48:51.000Z
setup.py
bcongdon/instapaper-to-sqlite
378b87ffcd2832aeff735dd78a0c8206d220b899
[ "MIT" ]
null
null
null
setup.py
bcongdon/instapaper-to-sqlite
378b87ffcd2832aeff735dd78a0c8206d220b899
[ "MIT" ]
1
2022-02-26T14:12:13.000Z
2022-02-26T14:12:13.000Z
import os from setuptools import setup VERSION = "0.2" def get_long_description(): with open( os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"), encoding="utf8", ) as fp: return fp.read() setup( name="instapaper-to-sqlite", description="Save data from In...
29.867925
87
0.632975
173
1,583
5.65896
0.537572
0.110317
0.147089
0.089888
0.134831
0.134831
0.134831
0.093973
0
0
0
0.011272
0.215414
1,583
52
88
30.442308
0.776973
0
0
0.043478
0
0
0.504106
0.047378
0
0
0
0
0
1
0.021739
false
0
0.043478
0
0.086957
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a964781b5354d9a284fd5961c977de9c81e555d
17,664
py
Python
picket/rvae/train_eval_models.py
rekords-uw/Picket
773797ae1c1ed37c345facfb43e289a75d92cc1c
[ "MIT" ]
10
2020-11-24T17:26:01.000Z
2021-09-26T18:41:44.000Z
picket/rvae/train_eval_models.py
rekords-uw/Picket
773797ae1c1ed37c345facfb43e289a75d92cc1c
[ "MIT" ]
null
null
null
picket/rvae/train_eval_models.py
rekords-uw/Picket
773797ae1c1ed37c345facfb43e289a75d92cc1c
[ "MIT" ]
3
2021-05-26T12:45:37.000Z
2021-11-22T04:51:40.000Z
#!/usr/bin/env python3 import torch from torch import optim import torch.nn.functional as F import argparse from sklearn.metrics import mean_squared_error import numpy as np import json from . import utils from .model_utils import get_pi_exact_vec, rnn_vae_forward_one_stage, rnn_vae_forward_two_stage def training_...
52.260355
194
0.614753
2,526
17,664
3.828187
0.098575
0.034747
0.021613
0.02637
0.667011
0.565977
0.482834
0.402482
0.360703
0.30848
0
0.005001
0.286798
17,664
337
195
52.41543
0.762581
0.059726
0
0.28125
0
0.008929
0.080116
0.027027
0
0
0
0
0
1
0.013393
false
0
0.040179
0
0.066964
0.040179
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a96c59de05ef2cf939a78138027073d3aeef532
489
py
Python
sztuczna_inteligencja/3-lab/backtrackingSolve.py
Magikis/Uniwersity
06964ef31d721af85740df1dce3f966006ab9f78
[ "MIT" ]
12
2017-11-30T08:45:48.000Z
2018-04-26T14:15:45.000Z
sztuczna_inteligencja/3-lab/backtrackingSolve.py
Magikis/Uniwersity
06964ef31d721af85740df1dce3f966006ab9f78
[ "MIT" ]
null
null
null
sztuczna_inteligencja/3-lab/backtrackingSolve.py
Magikis/Uniwersity
06964ef31d721af85740df1dce3f966006ab9f78
[ "MIT" ]
9
2017-10-16T09:42:59.000Z
2018-01-27T19:48:45.000Z
# import cProfile # import pstats # import io from picture import * # pr = cProfile.Profile() # pr.enable() def out(p): for i in range(2): print([len(x) for x in p.perms[i]]) if __name__ == '__main__': p = Picture() p.genPerms() p.detuctAll() p.backtrackLoop() p.saveOtput() # pr...
18.111111
56
0.586912
66
489
4.19697
0.575758
0
0
0
0
0
0
0
0
0
0
0.002717
0.247444
489
26
57
18.807692
0.75
0.441718
0
0
0
0
0.030651
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.2
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
0a96d8eb608d332f737e6f0d0e18267bfd899873
1,512
py
Python
benchmark/generate_examples_strprose.py
HALOCORE/SynGuar
8f7f9ba52e83091ad3def501169fd60d20b28321
[ "MIT" ]
1
2021-06-23T05:10:36.000Z
2021-06-23T05:10:36.000Z
benchmark/generate_examples_strprose.py
HALOCORE/SynGuar
8f7f9ba52e83091ad3def501169fd60d20b28321
[ "MIT" ]
null
null
null
benchmark/generate_examples_strprose.py
HALOCORE/SynGuar
8f7f9ba52e83091ad3def501169fd60d20b28321
[ "MIT" ]
null
null
null
# imports import os import json import subprocess abs_join = lambda p1, p2 : os.path.abspath(os.path.join(p1, p2)) # constants SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__)) SEED_RELPATH = "./strprose/example_files/_seeds.json" SEED_FULLPATH = abs_join(SCRIPT_DIR, SEED_RELPATH) SEED_INFO = None with open(SEE...
32.170213
89
0.683862
197
1,512
4.903553
0.401015
0.050725
0.05383
0.066253
0.233954
0
0
0
0
0
0
0.010442
0.176587
1,512
47
90
32.170213
0.765462
0.016534
0
0
0
0
0.236523
0.1031
0
0
0
0
0
1
0.025641
false
0
0.076923
0
0.102564
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
0a96e21fb56076c17506b44887fb9f2f8344e7b0
558
py
Python
elliesite/context_processors.py
davidkartuzinski/ellieplatformsite
63a41cb2a15ae81a7cd3cdf68d783398b3205ce2
[ "MIT" ]
1
2021-06-26T22:18:31.000Z
2021-06-26T22:18:31.000Z
ellie/context_processors.py
open-apprentice/ellieplatform-website
3018feb05a2a44b916afba3e8e2eb71c18147117
[ "MIT" ]
12
2021-06-26T22:38:45.000Z
2021-07-07T15:49:43.000Z
elliesite/context_processors.py
davidkartuzinski/ellieplatformsite
63a41cb2a15ae81a7cd3cdf68d783398b3205ce2
[ "MIT" ]
1
2021-07-07T15:33:43.000Z
2021-07-07T15:33:43.000Z
import sys from django.urls import resolve def global_vars(request): return { 'GLOBAL_TWITTER_ACCOUNT': '@open_apprentice', 'ORGANIZATION_NAME': 'Open Apprentice Foundation', 'ORGANIZATION_WEBSITE': 'https://openapprentice.org', 'ORGANIZATION_LOGO': '/static/img/ellie/open-apprenti...
39.857143
107
0.693548
65
558
5.676923
0.630769
0.113821
0.075881
0.097561
0.113821
0
0
0
0
0
0
0
0.173835
558
13
108
42.923077
0.800434
0.086022
0
0
0
0
0.497041
0.216963
0
0
0
0
0
1
0.090909
false
0
0.181818
0.090909
0.363636
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
0a96e48e2da874873ab9a54b25f7428bb39c7d94
18,180
py
Python
tools/train_net_step.py
va1shn9v/Detectron.pytorch
3e1cb11f160148248cbbd79e3dd9f490ca9c280a
[ "MIT" ]
null
null
null
tools/train_net_step.py
va1shn9v/Detectron.pytorch
3e1cb11f160148248cbbd79e3dd9f490ca9c280a
[ "MIT" ]
null
null
null
tools/train_net_step.py
va1shn9v/Detectron.pytorch
3e1cb11f160148248cbbd79e3dd9f490ca9c280a
[ "MIT" ]
null
null
null
""" Training script for steps_with_decay policy""" import argparse import os import sys import pickle import resource import traceback import logging from collections import defaultdict import numpy as np import yaml import torch from torch.autograd import Variable import torch.nn as nn import cv2 cv2.setNumThreads(0...
38.435518
107
0.642079
2,339
18,180
4.766139
0.184694
0.030678
0.027449
0.009419
0.22892
0.156261
0.105938
0.080911
0.074901
0.044582
0
0.006569
0.25473
18,180
472
108
38.516949
0.816223
0.101815
0
0.14011
0
0
0.155984
0.005793
0
0
0
0.002119
0.019231
1
0.008242
false
0
0.074176
0
0.087912
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a9772419f2ef3e57950559b990b8ce8968146c1
4,402
py
Python
Lib/site-packages/astroid/brain/brain_numpy_core_multiarray.py
punithmadaiahkumar/try-django
39680a7583122bdd722789f92400edae67c6251d
[ "MIT" ]
4
2021-10-20T12:39:09.000Z
2022-02-26T15:02:08.000Z
Lib/site-packages/astroid/brain/brain_numpy_core_multiarray.py
punithmadaiahkumar/try-django
39680a7583122bdd722789f92400edae67c6251d
[ "MIT" ]
12
2020-07-05T14:30:46.000Z
2020-08-06T21:06:00.000Z
Lib/site-packages/astroid/brain/brain_numpy_core_multiarray.py
punithmadaiahkumar/try-django
39680a7583122bdd722789f92400edae67c6251d
[ "MIT" ]
1
2021-10-20T13:47:10.000Z
2021-10-20T13:47:10.000Z
# Copyright (c) 2019-2020 hippo91 <guillaume.peillex@gmail.com> # Copyright (c) 2020 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2021 Pierre Sassoulas <pierre.sassoulas@gmail.com> # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Licensed under the LGPL: https://www.gnu.org/licens...
43.584158
133
0.647887
560
4,402
4.948214
0.319643
0.079394
0.116925
0.123421
0.347889
0.310357
0.29087
0.243594
0.186214
0.171779
0
0.027301
0.192867
4,402
100
134
44.02
0.752603
0.178328
0
0.358209
0
0.059701
0.594792
0.032475
0
0
0
0
0
1
0.014925
false
0
0.104478
0.014925
0.432836
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
0a98e4f650bd93b816382fc9c8f7255712fc94e9
1,044
py
Python
jp.atcoder/abc056/arc070_b/26725094.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc056/arc070_b/26725094.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc056/arc070_b/26725094.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys import typing import numpy as np def solve(a: np.ndarray, k: int) -> typing.NoReturn: n = len(a) def compute_dp(a: np.ndarray) -> np.ndarray: dp = np.zeros((n + 1, k), np.bool8) dp[0, 0] = True for i in range(n): dp[i + 1] = dp[i].copy() ...
23.2
65
0.425287
161
1,044
2.701863
0.329193
0.022989
0.068966
0.018391
0
0
0
0
0
0
0
0.034146
0.41092
1,044
44
66
23.727273
0.673171
0
0
0
0
0
0
0
0
0
0
0
0
1
0.088235
false
0
0.088235
0
0.205882
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a9ca97f3e91b994b2c90fedaf1ef527a056c57a
891
py
Python
app/celery.py
TIHLDE/Lepton
60ec0793381f1c1b222f305586e8c2d4345fb566
[ "MIT" ]
7
2021-03-04T18:49:12.000Z
2021-03-08T18:25:51.000Z
app/celery.py
TIHLDE/Lepton
60ec0793381f1c1b222f305586e8c2d4345fb566
[ "MIT" ]
251
2021-03-04T19:19:14.000Z
2022-03-31T14:47:53.000Z
app/celery.py
tihlde/Lepton
5cab3522c421b76373a5c25f49267cfaef7b826a
[ "MIT" ]
3
2021-10-05T19:03:04.000Z
2022-02-25T13:32:09.000Z
from __future__ import absolute_import, unicode_literals import os from celery import Celery # set the default Django settings module for the 'celery' program. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings") app = Celery("app") # Using a string here means the worker doesn't have to serialize # the ...
27
66
0.751964
122
891
5.352459
0.590164
0.042879
0.061256
0
0
0
0
0
0
0
0
0.001305
0.140292
891
32
67
27.84375
0.851175
0.392817
0
0
0
0
0.187617
0.041276
0
0
0
0
0
1
0.058824
false
0
0.176471
0
0.235294
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a9ed4d324eb619f1707025aa2d1ca6c25ef2609
17,230
py
Python
src/finn/util/basic.py
quetric/finn-base-1
1494a13a430c784683c2c33288823f83d1cd6fed
[ "BSD-3-Clause" ]
null
null
null
src/finn/util/basic.py
quetric/finn-base-1
1494a13a430c784683c2c33288823f83d1cd6fed
[ "BSD-3-Clause" ]
null
null
null
src/finn/util/basic.py
quetric/finn-base-1
1494a13a430c784683c2c33288823f83d1cd6fed
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Xilinx, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the f...
38.9819
88
0.673593
2,388
17,230
4.710637
0.239112
0.006845
0.005867
0.010134
0.185617
0.138857
0.113699
0.090319
0.083207
0.061694
0
0.018194
0.243993
17,230
441
89
39.070295
0.845386
0.365061
0
0.196911
0
0
0.131913
0.012605
0
0
0
0.002268
0.030888
1
0.084942
false
0
0.030888
0
0.216216
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
0a9f22dd58e0b2b2c094a6f1cf7277e84b5b669b
9,455
py
Python
mainmenu.py
jeffrypaul37/Hospital-Management-System
4ff08bed5387ca23e3f31dbbf46e625d8ae5807b
[ "Apache-2.0" ]
null
null
null
mainmenu.py
jeffrypaul37/Hospital-Management-System
4ff08bed5387ca23e3f31dbbf46e625d8ae5807b
[ "Apache-2.0" ]
null
null
null
mainmenu.py
jeffrypaul37/Hospital-Management-System
4ff08bed5387ca23e3f31dbbf46e625d8ae5807b
[ "Apache-2.0" ]
null
null
null
from tkinter import * from tkcalendar import Calendar from datetime import datetime from datetime import date import tkinter as tk from tkinter import ttk from tkinter.messagebox import askyesno import re import sqlite3 import tkinter.messagebox import pandas as pd import pandas as pd import datetime ...
31.20462
230
0.564886
1,271
9,455
4.160504
0.194335
0.04236
0.036309
0.03177
0.363275
0.261725
0.198185
0.110061
0.068079
0.068079
0
0.05374
0.28165
9,455
302
231
31.307947
0.724823
0.003067
0
0.078652
0
0.005618
0.143938
0.005701
0
0
0
0
0
1
0.033708
false
0
0.095506
0
0.134831
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a9f437ec901227c3a525ef2b2000464e450f945
3,399
py
Python
chia_tea/discord/commands/test_wallets.py
Tea-n-Tech/chia-tea
a5bd327b9d5e048e55e9f5d8cefca2dbcd5eae96
[ "BSD-3-Clause" ]
6
2021-08-05T21:31:15.000Z
2021-11-15T20:54:25.000Z
chia_tea/discord/commands/test_wallets.py
Tea-n-Tech/chia-tea
a5bd327b9d5e048e55e9f5d8cefca2dbcd5eae96
[ "BSD-3-Clause" ]
49
2021-08-05T19:33:08.000Z
2022-03-30T19:33:38.000Z
chia_tea/discord/commands/test_wallets.py
Tea-n-Tech/chia-tea
a5bd327b9d5e048e55e9f5d8cefca2dbcd5eae96
[ "BSD-3-Clause" ]
1
2022-01-09T17:08:32.000Z
2022-01-09T17:08:32.000Z
import os import tempfile import unittest from datetime import datetime from google.protobuf.json_format import ParseDict from ...monitoring.MonitoringDatabase import MonitoringDatabase from ...protobuf.generated.computer_info_pb2 import ADD, UpdateEvent from ...protobuf.generated.monitoring_service_pb2 import DataUp...
35.40625
74
0.527214
301
3,399
5.76412
0.292359
0.051873
0.024207
0.029395
0.619597
0.591931
0.591931
0.591931
0.591931
0.591931
0
0.004878
0.396881
3,399
95
75
35.778947
0.841463
0.010297
0
0.584416
0
0
0.026183
0
0
0
0
0
0.103896
1
0
false
0
0.12987
0
0.142857
0.012987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0a9f5b949039e60cbeefb54542ccaa4f60417abd
990
py
Python
render/PC_Normalisation.py
sun-pyo/OcCo
e2e12dbaa8f9b98fb8c42fc32682f49e99be302f
[ "MIT" ]
158
2020-08-19T18:13:28.000Z
2022-03-30T13:55:32.000Z
render/PC_Normalisation.py
sun-pyo/OcCo
e2e12dbaa8f9b98fb8c42fc32682f49e99be302f
[ "MIT" ]
28
2020-05-30T04:02:33.000Z
2022-03-30T15:46:38.000Z
render/PC_Normalisation.py
sun-pyo/OcCo
e2e12dbaa8f9b98fb8c42fc32682f49e99be302f
[ "MIT" ]
18
2020-08-19T19:52:38.000Z
2022-02-06T11:42:26.000Z
# Copyright (c) 2020. Hanchen Wang, hw501@cam.ac.uk import os, open3d, numpy as np File_ = open('ModelNet_flist_short.txt', 'w') if __name__ == "__main__": root_dir = "../data/ModelNet_subset/" for root, dirs, files in os.walk(root_dir, topdown=False): for file in files: if '.ply' in fi...
41.25
96
0.586869
131
990
4.206107
0.557252
0.050817
0.079855
0.050817
0.065336
0
0
0
0
0
0
0.023578
0.271717
990
23
97
43.043478
0.740638
0.119192
0
0
0
0
0.099078
0.0553
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0aa08817091e8a101312819073f37fbcd1819291
20,634
py
Python
pymatgen/apps/battery/insertion_battery.py
adozier/pymatgen
f1cc4d8db24ec11063be2fd84b4ea911f006eeb7
[ "MIT" ]
18
2019-06-15T18:08:21.000Z
2022-01-30T05:01:29.000Z
ComRISB/pyextern/pymatgen/pymatgen/apps/battery/insertion_battery.py
comscope/Comsuite
b80ca9f34c519757d337487c489fb655f7598cc2
[ "BSD-3-Clause" ]
null
null
null
ComRISB/pyextern/pymatgen/pymatgen/apps/battery/insertion_battery.py
comscope/Comsuite
b80ca9f34c519757d337487c489fb655f7598cc2
[ "BSD-3-Clause" ]
11
2019-06-05T02:57:55.000Z
2021-12-29T02:54:25.000Z
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ This module is used for analysis of materials with potential application as intercalation batteries. """ __author__ = "Anubhav Jain, Shyue Ping Ong" __co...
38.932075
97
0.630804
2,419
20,634
5.11575
0.144274
0.034747
0.026667
0.008404
0.420525
0.366869
0.305616
0.265697
0.250182
0.234667
0
0.00532
0.298585
20,634
529
98
39.005671
0.84972
0.235146
0
0.225352
0
0
0.06946
0
0
0
0
0
0
1
0.112676
false
0
0.035211
0.049296
0.260563
0.010563
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0aa0ecacfe2573f92054f8caab4ad37415452b90
7,202
py
Python
python/GafferUI/ColorSwatchPlugValueWidget.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
561
2016-10-18T04:30:48.000Z
2022-03-30T06:52:04.000Z
python/GafferUI/ColorSwatchPlugValueWidget.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
1,828
2016-10-14T19:01:46.000Z
2022-03-30T16:07:19.000Z
python/GafferUI/ColorSwatchPlugValueWidget.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
120
2016-10-18T15:19:13.000Z
2021-12-20T16:28:23.000Z
########################################################################## # # Copyright (c) 2013, John Haddon. All rights reserved. # Copyright (c) 2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that ...
34.625
142
0.71494
836
7,202
5.998804
0.366029
0.02333
0.041276
0.048455
0.12323
0.094118
0.078166
0.078166
0.078166
0.051047
0
0.003362
0.173979
7,202
207
143
34.792271
0.839637
0.317273
0
0.097087
0
0
0.008049
0.005507
0
0
0
0.004831
0.009709
1
0.135922
false
0
0.038835
0
0.291262
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
0aa3ebc9e71e06ddfc092d3a9a924b404661453e
2,019
py
Python
osh/cmd_exec_test.py
rhencke/oil
c40004544e47ee78cde1fcb22c672162b8eb2cd2
[ "Apache-2.0" ]
1
2019-01-25T01:15:51.000Z
2019-01-25T01:15:51.000Z
osh/cmd_exec_test.py
rhencke/oil
c40004544e47ee78cde1fcb22c672162b8eb2cd2
[ "Apache-2.0" ]
null
null
null
osh/cmd_exec_test.py
rhencke/oil
c40004544e47ee78cde1fcb22c672162b8eb2cd2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 Andy Chu. 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 """ cmd_exec_test.py: Test...
26.92
80
0.722635
295
2,019
4.674576
0.4
0.069616
0.029007
0.063814
0.279913
0.214648
0.214648
0.214648
0.214648
0.214648
0
0.004731
0.162457
2,019
74
81
27.283784
0.810763
0.209014
0
0.27907
0
0
0.037365
0
0
0
0
0
0
1
0.069767
false
0
0.093023
0
0.232558
0.116279
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0aa50be39d8821cc01c657b693bc988aa6fe4578
5,265
py
Python
temp/discrete_a2c_agent.py
linklab/link_rl
e3d3196dcd49fd71b45941e07fc0d8a27d1d8c99
[ "MIT" ]
null
null
null
temp/discrete_a2c_agent.py
linklab/link_rl
e3d3196dcd49fd71b45941e07fc0d8a27d1d8c99
[ "MIT" ]
null
null
null
temp/discrete_a2c_agent.py
linklab/link_rl
e3d3196dcd49fd71b45941e07fc0d8a27d1d8c99
[ "MIT" ]
1
2021-11-23T12:30:37.000Z
2021-11-23T12:30:37.000Z
import numpy as np import torch import torch.nn.functional as F from codes.d_agents.a0_base_agent import float32_preprocessor from codes.d_agents.on_policy.on_policy_agent import OnPolicyAgent from codes.e_utils import rl_utils, replay_buffer from codes.d_agents.actions import ProbabilityActionSelector from codes.e_ut...
41.785714
128
0.688319
682
5,265
4.957478
0.247801
0.029281
0.026915
0.021295
0.347826
0.236025
0.17273
0.160899
0.14197
0.078675
0
0.008551
0.222602
5,265
126
129
41.785714
0.817493
0.129725
0
0.084337
0
0
0.00351
0
0
0
0
0
0.036145
1
0.036145
false
0
0.096386
0
0.168675
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
0aa6e5ef18ddd1cd84d84ba40a68b3ca12d3ecf7
789
py
Python
apps/core/forms.py
allexvissoci/djangoecommerce
645c05daa5f13c1e42184a7c6f534b9c260d280a
[ "CC0-1.0" ]
null
null
null
apps/core/forms.py
allexvissoci/djangoecommerce
645c05daa5f13c1e42184a7c6f534b9c260d280a
[ "CC0-1.0" ]
null
null
null
apps/core/forms.py
allexvissoci/djangoecommerce
645c05daa5f13c1e42184a7c6f534b9c260d280a
[ "CC0-1.0" ]
null
null
null
from django import forms from django.core.mail import send_mail from django.conf import settings class ContactForm(forms.Form): name = forms.CharField(label='Nome', required=True) email = forms.EmailField(label='E-mail') message = forms.CharField(label='Mensagem', widget=forms.Textarea(), ...
32.875
75
0.595691
89
789
5.168539
0.426966
0.065217
0.097826
0.104348
0
0
0
0
0
0
0
0.005357
0.290241
789
23
76
34.304348
0.816071
0
0
0
0
0
0.107731
0
0
0
0
0
0
1
0.052632
false
0
0.157895
0
0.421053
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
0aa6ee42edcf06446ba2b86d62dbe6a27542ef2e
5,475
py
Python
Fchat/Gui/AddFriendWidget.py
jamesaxl/FreeSnake
3cef45165bce50d0f296e0d016b49d45aa31a653
[ "BSD-2-Clause-FreeBSD" ]
2
2018-11-15T22:55:01.000Z
2020-01-01T21:21:07.000Z
Fchat/Gui/AddFriendWidget.py
jamesaxl/FreeSnake
3cef45165bce50d0f296e0d016b49d45aa31a653
[ "BSD-2-Clause-FreeBSD" ]
2
2019-11-10T20:31:29.000Z
2021-07-31T18:24:47.000Z
Fchat/Gui/AddFriendWidget.py
jamesaxl/FreeSnake
3cef45165bce50d0f296e0d016b49d45aa31a653
[ "BSD-2-Clause-FreeBSD" ]
1
2018-11-15T22:55:17.000Z
2018-11-15T22:55:17.000Z
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gio, Gtk, Gdk class AddFriendWidget(Gtk.Box): def __init__(self, main_window, fchat_prv, friend_list): Gtk.Box.__init__(self, spacing=7, orientation = Gtk.Orientation.VERTICAL) self.fchat_prv = fchat_prv self.main_window...
35.784314
107
0.667032
762
5,475
4.494751
0.137795
0.108613
0.098102
0.09927
0.547445
0.448759
0.418978
0.392701
0.392701
0.338394
0
0.004013
0.226301
5,475
152
108
36.019737
0.804533
0
0
0.403361
0
0
0.040183
0
0
0
0
0
0
1
0.117647
false
0
0.016807
0
0.159664
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
0aa7a0ee45227c9db1cfad5be465b9e3f1596fbf
533
py
Python
python01/game.py
liyan2013/hogwarts
4b81d968b049a13cb2aa293d32c034ca3a30ee79
[ "Apache-2.0" ]
null
null
null
python01/game.py
liyan2013/hogwarts
4b81d968b049a13cb2aa293d32c034ca3a30ee79
[ "Apache-2.0" ]
null
null
null
python01/game.py
liyan2013/hogwarts
4b81d968b049a13cb2aa293d32c034ca3a30ee79
[ "Apache-2.0" ]
null
null
null
import random def game(): # 我的血量 my_hp = 1000 # 敌人的血量 enemy_hp = 1000 while True: # 我受到随机的攻击,减少血量 my_hp = my_hp - random.randint(0, 50) # 敌人收到随机的攻击,减少血量 enemy_hp = enemy_hp - random.randint(0, 50) if my_hp <= 0: # 如果我此时的血量<=0,则敌人赢了 ...
17.766667
51
0.463415
60
533
3.85
0.533333
0.069264
0.12987
0.138528
0.155844
0
0
0
0
0
0
0.059603
0.433396
533
29
52
18.37931
0.705298
0.159475
0
0.133333
0
0
0.034169
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.133333
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0aa7b0d58d58a3a7d6eb18bd016c9b5d7166087a
681
py
Python
petstore/api/api_response.py
andrii-grytsenko/io.swagger.petstore3.testing
81a0a16d574d0c0664b297e7ba7ff2bb5a9a0c40
[ "MIT" ]
null
null
null
petstore/api/api_response.py
andrii-grytsenko/io.swagger.petstore3.testing
81a0a16d574d0c0664b297e7ba7ff2bb5a9a0c40
[ "MIT" ]
null
null
null
petstore/api/api_response.py
andrii-grytsenko/io.swagger.petstore3.testing
81a0a16d574d0c0664b297e7ba7ff2bb5a9a0c40
[ "MIT" ]
null
null
null
from enum import Enum class ApiResponseType(Enum): error = "Error" warning = "Warning" info = "Info" ok = "OK" too_busy = "Too busy" class ApiResponse: def __init__(self, code: int, response_type: ApiResponseType, message): self.code = code self.type = response_type s...
25.222222
102
0.654919
78
681
5.474359
0.358974
0.140515
0.051522
0
0
0
0
0
0
0
0
0
0.229075
681
26
103
26.192308
0.813333
0
0
0.105263
0
0.052632
0.180617
0.120411
0
0
0
0
0
1
0.157895
false
0
0.052632
0.052632
0.684211
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
0aa7bee18a6d9f952d21c773ce61328493a8b54b
7,503
py
Python
test/integration/component/test_browse_templates2.py
ycyun/ablestack-cloud
b7bd36a043e2697d05303246373988aa033c9229
[ "Apache-2.0" ]
1,131
2015-01-08T18:59:06.000Z
2022-03-29T11:31:10.000Z
test/integration/component/test_browse_templates2.py
ycyun/ablestack-cloud
b7bd36a043e2697d05303246373988aa033c9229
[ "Apache-2.0" ]
5,908
2015-01-13T15:28:37.000Z
2022-03-31T20:31:07.000Z
test/integration/component/test_browse_templates2.py
ycyun/ablestack-cloud
b7bd36a043e2697d05303246373988aa033c9229
[ "Apache-2.0" ]
1,083
2015-01-05T01:16:52.000Z
2022-03-31T12:14:10.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.060748
144
0.620552
805
7,503
5.701863
0.33913
0.044444
0.027887
0.021786
0.160131
0.124619
0.06841
0.017865
0
0
0
0.003033
0.296815
7,503
213
145
35.225352
0.866945
0.174464
0
0.256579
0
0
0.124898
0.00799
0
0
0
0
0.039474
1
0.032895
false
0.006579
0.118421
0
0.177632
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
0aa818d9912fa4e7124c341cc827cf2ddf2f640c
11,501
py
Python
tests/components/ozw/test_websocket_api.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
tests/components/ozw/test_websocket_api.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
tests/components/ozw/test_websocket_api.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""Test OpenZWave Websocket API.""" from unittest.mock import patch from openzwavemqtt.const import ( ATTR_CODE_SLOT, ATTR_LABEL, ATTR_OPTIONS, ATTR_POSITION, ATTR_VALUE, ValueType, ) from openpeerpower.components.ozw.const import ATTR_CONFIG_PARAMETER from openpeerpower.components.ozw.lock im...
29.795337
87
0.629858
1,441
11,501
4.795975
0.147814
0.082767
0.070323
0.08595
0.597887
0.528144
0.472435
0.407322
0.363623
0.351469
0
0.023658
0.261282
11,501
385
88
29.872727
0.789783
0.066081
0
0.411576
0
0
0.128479
0.040523
0
0
0
0
0.202572
1
0
false
0
0.022508
0
0.022508
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
0aaa20d8b1879b4c1bc74cd5f86f6df85b43a7e8
30,173
py
Python
tests/test_formatters.py
samueljacques-qc/notification-utils
77f09cb2633ea5938a28ed50c21c7ae5075da7f2
[ "MIT" ]
null
null
null
tests/test_formatters.py
samueljacques-qc/notification-utils
77f09cb2633ea5938a28ed50c21c7ae5075da7f2
[ "MIT" ]
null
null
null
tests/test_formatters.py
samueljacques-qc/notification-utils
77f09cb2633ea5938a28ed50c21c7ae5075da7f2
[ "MIT" ]
null
null
null
import pytest from flask import Markup from notifications_utils.formatters import ( unlink_govuk_escaped, notify_email_markdown, notify_letter_preview_markdown, notify_plain_text_email_markdown, sms_encode, formatted_list, strip_dvla_markup, strip_pipes, escape_html, remove_whit...
28.094041
190
0.545388
3,399
30,173
4.677846
0.12739
0.065409
0.050189
0.039434
0.680189
0.637107
0.562327
0.500126
0.477421
0.46522
0
0.035045
0.286945
30,173
1,073
191
28.120224
0.703323
0.006131
0
0.440748
0
0.051975
0.386338
0.028247
0
0
0
0
0.060291
1
0.053015
false
0.00104
0.012474
0
0.065489
0.004158
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0aac44d185f9607658c52f2deb96d4cdd7259f28
5,384
py
Python
codigos_videos/Exemplo_2.py
Miguel-mmf/Biblioteca_Dash_em-Python
63d268f568c02bc9b6c73e1f52ade2475ffbb3c5
[ "MIT" ]
1
2022-03-17T13:55:33.000Z
2022-03-17T13:55:33.000Z
codigos_videos/Exemplo_2.py
Miguel-mmf/Biblioteca_Dash_em-Python
63d268f568c02bc9b6c73e1f52ade2475ffbb3c5
[ "MIT" ]
null
null
null
codigos_videos/Exemplo_2.py
Miguel-mmf/Biblioteca_Dash_em-Python
63d268f568c02bc9b6c73e1f52ade2475ffbb3c5
[ "MIT" ]
1
2020-12-12T21:56:06.000Z
2020-12-12T21:56:06.000Z
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Esse arquivo possui algumas modificações em relação ao arquivo apresentado no vídeo do YouTube # Não deixe de assistir o vídeo e estudar pela documentação ofical D...
32.630303
202
0.610513
702
5,384
4.618234
0.34188
0.004935
0.005552
0.007403
0.227329
0.22116
0.197409
0.197409
0.172424
0.145898
0
0.018118
0.261887
5,384
165
203
32.630303
0.797685
0.535847
0
0.333333
0
0
0.130647
0
0
0
0
0
0
1
0.022989
false
0
0.057471
0
0.137931
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
0aacd880ac180e15a9b5e161088e8e7de26eb77d
26,616
py
Python
Lab 2/javaccflab/formatter.py
tochanenko/MetaProgramming
d37f21432483e39e135fd0dc4f8767836eea1609
[ "MIT" ]
null
null
null
Lab 2/javaccflab/formatter.py
tochanenko/MetaProgramming
d37f21432483e39e135fd0dc4f8767836eea1609
[ "MIT" ]
null
null
null
Lab 2/javaccflab/formatter.py
tochanenko/MetaProgramming
d37f21432483e39e135fd0dc4f8767836eea1609
[ "MIT" ]
null
null
null
import re import datetime from javaccflab.lexer import parse from javaccflab.java_token import TokenType, Token, update_token_value class Formatter: def __init__(self, files): self.__files = files self.__file = None self.__tokens = [] self.__to_fix = dict() def process(self): ...
42.449761
184
0.527916
3,019
26,616
4.273601
0.04836
0.114711
0.068517
0.078127
0.695319
0.617966
0.575647
0.519842
0.452721
0.413889
0
0.009561
0.347648
26,616
626
185
42.517572
0.733514
0.002668
0
0.469534
0
0.001792
0.034439
0.004635
0.003584
0
0
0
0
1
0.082437
false
0
0.007168
0.012545
0.177419
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
0aad63892e2757c199be78dfebc46a66c8e7becf
3,783
py
Python
src/secml/adv/attacks/evasion/c_attack_evasion_pgd_exp.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
63
2020-04-20T16:31:16.000Z
2022-03-29T01:05:35.000Z
src/secml/adv/attacks/evasion/c_attack_evasion_pgd_exp.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
5
2020-04-21T11:31:39.000Z
2022-03-24T13:42:56.000Z
src/secml/adv/attacks/evasion/c_attack_evasion_pgd_exp.py
zangobot/secml
95a293e1201c24256eb7fe2f1d2125cd5f318c8c
[ "Apache-2.0" ]
8
2020-04-21T09:16:42.000Z
2022-02-23T16:28:43.000Z
""" .. module:: CAttackEvasionPGDExp :synopsis: Evasion attack using Projected Gradient Descent. .. moduleauthor:: Battista Biggio <battista.biggio@unica.it> """ from secml.adv.attacks.evasion import CAttackEvasionPGDLS class CAttackEvasionPGDExp(CAttackEvasionPGDLS): """Evasion attacks using Projected Gradi...
36.375
88
0.649749
483
3,783
4.987578
0.414079
0.041511
0.024907
0.019925
0.063097
0.010793
0
0
0
0
0
0.022694
0.277822
3,783
103
89
36.728155
0.859078
0.684642
0
0
0
0
0.021212
0
0
0
0
0
0
1
0.035714
false
0
0.035714
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
0aaf87f9c4ecb098ef160db1b17bb991d9edaacc
3,172
py
Python
mail_log_parser/data_manager.py
kinteriq/mail-log-parser
e4242387c1767db611e266d463c817aeb8a74377
[ "MIT" ]
null
null
null
mail_log_parser/data_manager.py
kinteriq/mail-log-parser
e4242387c1767db611e266d463c817aeb8a74377
[ "MIT" ]
null
null
null
mail_log_parser/data_manager.py
kinteriq/mail-log-parser
e4242387c1767db611e266d463c817aeb8a74377
[ "MIT" ]
null
null
null
import sqlite3 class ManageData: def __init__(self, queue_tracker_db, email_tracker_db, delivery_tracker_db): self.queue_tracker_db = queue_tracker_db self.email_tracker_db = email_tracker_db self.delivery_tracker_db = delivery_tracker_db def manage_queue_tracker(self, fields): ...
38.216867
80
0.596154
385
3,172
4.641558
0.246753
0.130946
0.094012
0.080582
0.266928
0.179631
0.127588
0.050364
0.050364
0
0
0.007124
0.291929
3,172
82
81
38.682927
0.788513
0.163304
0
0.087719
0
0
0.096123
0
0
0
0
0
0
1
0.140351
false
0
0.017544
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ab07fb42baef7b3a437132ef3d9c03a2ec1e478
561
py
Python
Util/training_util.py
lychenyoko/content-aware-gan-compression
fa4193df630dd7b0e7fc52dd60669d8e1aefc39d
[ "MIT", "BSD-2-Clause", "Apache-2.0" ]
47
2021-07-04T14:51:38.000Z
2022-03-17T07:02:06.000Z
Util/training_util.py
lychenyoko/content-aware-gan-compression
fa4193df630dd7b0e7fc52dd60669d8e1aefc39d
[ "MIT", "BSD-2-Clause", "Apache-2.0" ]
9
2021-04-10T08:32:08.000Z
2022-02-21T03:14:40.000Z
Util/training_util.py
lychenyoko/content-aware-gan-compression
fa4193df630dd7b0e7fc52dd60669d8e1aefc39d
[ "MIT", "BSD-2-Clause", "Apache-2.0" ]
7
2021-07-02T08:11:55.000Z
2022-01-12T18:06:40.000Z
import math def g_path_regularize(fake_img, latents, mean_path_length, decay=0.01): noise = torch.randn_like(fake_img) / math.sqrt( fake_img.shape[2] * fake_img.shape[3] ) grad, = autograd.grad( outputs=(fake_img * noise).sum(), inputs=latents, create_graph=True ) path_lengths = tor...
33
83
0.68984
84
561
4.321429
0.428571
0.096419
0.115702
0.104683
0
0
0
0
0
0
0
0.019438
0.174688
561
16
84
35.0625
0.764579
0
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.25
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
0ab246f495c8f138c1a41820ece75a23cb6ba83c
37,122
py
Python
autoarray/structures/grids/two_d/grid_2d_util.py
caoxiaoyue/PyAutoArray
e10d3d6a5b8dd031f2ad277486bd539bd5858b2a
[ "MIT" ]
null
null
null
autoarray/structures/grids/two_d/grid_2d_util.py
caoxiaoyue/PyAutoArray
e10d3d6a5b8dd031f2ad277486bd539bd5858b2a
[ "MIT" ]
null
null
null
autoarray/structures/grids/two_d/grid_2d_util.py
caoxiaoyue/PyAutoArray
e10d3d6a5b8dd031f2ad277486bd539bd5858b2a
[ "MIT" ]
null
null
null
import numpy as np from typing import Tuple, Union, Optional from autoarray.structures.arrays.two_d import array_2d_util from autoarray.geometry import geometry_util from autoarray import numba_util from autoarray.mask import mask_2d_util @numba_util.jit() def grid_2d_centre_from(grid_2d_slim: np.ndarray) ...
39.787781
130
0.645574
5,678
37,122
4.032582
0.056886
0.028301
0.026204
0.027252
0.706075
0.659038
0.618946
0.601869
0.576713
0.550684
0
0.029365
0.267954
37,122
932
131
39.830472
0.813211
0.563116
0
0.305638
0
0
0
0
0
0
0
0
0
1
0.053412
false
0
0.017804
0
0.124629
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
0ab2e129e7612f7fdafee8257f8411edf7808187
2,689
py
Python
Proxies/Proxies.py
crown-prince/proxies
a3342d414675dbc89cdf1b953b46ea518f451166
[ "MIT" ]
2
2018-08-28T06:34:16.000Z
2018-12-05T01:33:33.000Z
Proxies/Proxies.py
crown-prince/proxies
a3342d414675dbc89cdf1b953b46ea518f451166
[ "MIT" ]
null
null
null
Proxies/Proxies.py
crown-prince/proxies
a3342d414675dbc89cdf1b953b46ea518f451166
[ "MIT" ]
3
2017-11-23T03:16:49.000Z
2019-05-05T05:23:57.000Z
# coding: utf-8 import requests, math import gevent from gevent.queue import Queue from gevent import monkey; monkey.patch_all() from pyquery import PyQuery class Proxies(): def __init__(self): self.domestic_gn_url = 'http://www.kuaidaili.com/free/inha/{0}/' self.domestic_pt_url = 'http://www.kuai...
32.39759
150
0.531424
335
2,689
4.095522
0.367164
0.02551
0.058309
0.069242
0.081633
0.081633
0.081633
0
0
0
0
0.030354
0.338416
2,689
82
151
32.792683
0.740866
0.055039
0
0
0
0.016667
0.147368
0
0
0
0
0
0
1
0.066667
false
0
0.083333
0.016667
0.183333
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ab39451258fbf9b0748574dd450aedbe38e6382
21,092
py
Python
parallelformers/policies/base/auto.py
Oaklight/parallelformers
57fc36f81734c29aaf814e092ce13681d3c28ede
[ "Apache-2.0" ]
454
2021-07-18T02:51:23.000Z
2022-03-31T04:00:53.000Z
parallelformers/policies/base/auto.py
Oaklight/parallelformers
57fc36f81734c29aaf814e092ce13681d3c28ede
[ "Apache-2.0" ]
16
2021-07-18T10:47:21.000Z
2022-03-22T18:49:57.000Z
parallelformers/policies/base/auto.py
Oaklight/parallelformers
57fc36f81734c29aaf814e092ce13681d3c28ede
[ "Apache-2.0" ]
33
2021-07-18T04:48:28.000Z
2022-03-14T22:16:36.000Z
# Copyright 2021 TUNiB inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softw...
30.836257
88
0.585815
1,399
21,092
8.727663
0.204432
0.05045
0.087142
0.10647
0.206716
0.206716
0.052744
0.010811
0.010811
0
0
0.006082
0.360753
21,092
683
89
30.881406
0.899503
0.039351
0
0.259109
0
0
0
0
0
0
0
0
0
1
0.006073
false
0
0.214575
0
0.228745
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
0ab472bf8d8e22693d678c504a9b881ed31f9478
3,042
py
Python
main/upper_air_humidity.py
RyosukeDTomita/gcmPlot
430f8af353daf464b5c5566f1c163d5bef63f584
[ "MIT" ]
null
null
null
main/upper_air_humidity.py
RyosukeDTomita/gcmPlot
430f8af353daf464b5c5566f1c163d5bef63f584
[ "MIT" ]
null
null
null
main/upper_air_humidity.py
RyosukeDTomita/gcmPlot
430f8af353daf464b5c5566f1c163d5bef63f584
[ "MIT" ]
null
null
null
# coding: utf-8 """ Name: upper_air_humidity.py Make upper level weather chart. Usage: python3 upper_air_humidity.py --file <ncfile> Author: Ryosuke Tomita Date: 2022/01/07 """ import argparse from ncmagics import fetchtime, japanmap, meteotool def parse_args() -> dict: """parse_args. set file path. A...
31.040816
82
0.575608
364
3,042
4.508242
0.340659
0.100548
0.043876
0.063985
0.171846
0.141377
0.120658
0.120658
0.120658
0.120658
0
0.028869
0.305391
3,042
97
83
31.360825
0.747752
0.283037
0
0
0
0
0.043851
0
0
0
0
0
0
1
0.071429
false
0
0.047619
0
0.166667
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ab4e78536a96c9504186fa7b02c118e2936a403
1,406
py
Python
code_week19_831_96/biao_shi_shu_zi.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week19_831_96/biao_shi_shu_zi.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week19_831_96/biao_shi_shu_zi.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
''' 请实现一个函数用来判断字符串是否表示数值(包括整数和小数)。例如,字符串"+100"、"5e2"、"-123"、"3.1416"、"-1E-16"、"0123"都表示数值,但"12e"、"1a3.14"、"1.2.3"、"+-5"及"12e+5.4"都不是。 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/biao-shi-shu-zhi-de-zi-fu-chuan-lcof ''' class Solution: def isNumber(self, s: str) -> bool: states = [ { ' ...
45.354839
129
0.345661
183
1,406
2.655738
0.437158
0.024691
0.04321
0.016461
0
0
0
0
0
0
0
0.090793
0.443812
1,406
30
130
46.866667
0.530691
0.341394
0
0
0
0
0.035437
0
0
0
0
0
0
1
0.043478
false
0
0
0
0.130435
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
0ab611b64794b954266ea15a077d39ba3447ef27
13,211
py
Python
teeth_overlord/tests/unit/networks/neutron.py
rackerlabs/teeth-overlord
d76f6a03853d964b556aa1aa0f7011b4d1a6f208
[ "Apache-2.0" ]
null
null
null
teeth_overlord/tests/unit/networks/neutron.py
rackerlabs/teeth-overlord
d76f6a03853d964b556aa1aa0f7011b4d1a6f208
[ "Apache-2.0" ]
null
null
null
teeth_overlord/tests/unit/networks/neutron.py
rackerlabs/teeth-overlord
d76f6a03853d964b556aa1aa0f7011b4d1a6f208
[ "Apache-2.0" ]
null
null
null
""" Copyright 2013 Rackspace, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
32.221951
78
0.626448
1,608
13,211
4.901741
0.149876
0.053032
0.064704
0.049607
0.596803
0.527531
0.476909
0.44202
0.402563
0.383659
0
0.030446
0.246688
13,211
409
79
32.300734
0.761555
0.041935
0
0.383436
0
0
0.191557
0.028303
0
0
0
0
0.076687
1
0.058282
false
0.006135
0.02454
0
0.08589
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
0ab7ab472dc6bde156894c22490a3de97781b2d7
4,508
py
Python
typeidea/blog/views.py
Phoenix-sy/typeidea
e913218872c7f4e9afc290eb42b4ca8c8e4523be
[ "MIT" ]
null
null
null
typeidea/blog/views.py
Phoenix-sy/typeidea
e913218872c7f4e9afc290eb42b4ca8c8e4523be
[ "MIT" ]
4
2020-06-06T01:37:34.000Z
2021-09-08T01:49:56.000Z
typeidea/blog/views.py
Phoenix-sy/typeidea
e913218872c7f4e9afc290eb42b4ca8c8e4523be
[ "MIT" ]
null
null
null
from datetime import date from django.core.cache import cache from django.db.models import Q, F from django.shortcuts import render from django.shortcuts import get_object_or_404 from django.views.generic import ListView, DetailView #from silk.profiling.profiler import silk_profile from config.models import SideBar f...
24.367568
72
0.717613
635
4,508
4.900787
0.190551
0.021208
0.03599
0.0241
0.290167
0.281812
0.248072
0.185733
0.15874
0.15874
0
0.007548
0.147737
4,508
184
73
24.5
0.802447
0.019743
0
0.309091
0
0
0.048056
0
0
0
0
0
0
1
0.109091
false
0
0.081818
0.009091
0.436364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0aba3f90d5e6185589e45a9a8d8d372bccb752c2
764
py
Python
tests/test_processor.py
vijithv/djangosaml2idp
8a238063da55bf4823bdc2192168171767c4e056
[ "Apache-2.0" ]
1
2021-11-03T17:53:29.000Z
2021-11-03T17:53:29.000Z
tests/test_processor.py
vijithv/djangosaml2idp
8a238063da55bf4823bdc2192168171767c4e056
[ "Apache-2.0" ]
null
null
null
tests/test_processor.py
vijithv/djangosaml2idp
8a238063da55bf4823bdc2192168171767c4e056
[ "Apache-2.0" ]
1
2020-04-23T03:52:10.000Z
2020-04-23T03:52:10.000Z
from django.contrib.auth import get_user_model from djangosaml2idp.processors import BaseProcessor User = get_user_model() class TestBaseProcessor: def test_extract_user_id_configure_by_user_class(self): user = User() user.USERNAME_FIELD = 'email' user.email = 'test_email' asse...
29.384615
97
0.722513
100
764
5.14
0.35
0.058366
0.046693
0.070039
0.424125
0.424125
0.291829
0.171206
0.171206
0
0
0.00161
0.187173
764
25
98
30.56
0.826087
0.108639
0
0.142857
0
0
0.122963
0
0
0
0
0
0.142857
1
0.142857
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0abaca3d1ed91ca49de4c9b160592c473142f544
1,840
py
Python
com/ds/SingleLinkedList.py
sasikrishna/python-programs
937002f37c86efc5c876b37c7b42634ca629fffc
[ "MIT" ]
null
null
null
com/ds/SingleLinkedList.py
sasikrishna/python-programs
937002f37c86efc5c876b37c7b42634ca629fffc
[ "MIT" ]
null
null
null
com/ds/SingleLinkedList.py
sasikrishna/python-programs
937002f37c86efc5c876b37c7b42634ca629fffc
[ "MIT" ]
null
null
null
class Node: def __init__(self, data): self.data = data self.prev = None self.next = None class SingleLinkedList: def __init__(self): self.head = None def add(self, ele): new_node = Node(ele) if self.head is None: self.head = new_node ...
23.896104
56
0.563043
240
1,840
4.091667
0.158333
0.187373
0.08554
0.081466
0.37169
0.330957
0.239308
0.13442
0.13442
0.13442
0
0.016736
0.350543
1,840
76
57
24.210526
0.805021
0
0
0.322034
0
0
0.052746
0
0
0
0
0
0
1
0.101695
false
0
0
0
0.220339
0.135593
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0abb4de3626dcbaf10f7a01c7d732b38a10d112a
3,453
py
Python
fs/error_tools.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
fs/error_tools.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
fs/error_tools.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
"""Tools for managing OS errors. """ from __future__ import print_function from __future__ import unicode_literals import errno from contextlib import contextmanager import sys import platform from . import errors from six import reraise _WINDOWS_PLATFORM = platform.system() == 'Windows' class _ConvertOSErrors(...
31.390909
78
0.650449
375
3,453
5.821333
0.376
0.028859
0.049473
0.032066
0
0
0
0
0
0
0
0.006385
0.274254
3,453
109
79
31.678899
0.864725
0.162178
0
0
0
0
0.007027
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0.013158
0.210526
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
0abcb370c0d40bd870443ed0b022026c144555c8
3,829
py
Python
python/index.py
stijnvanhulle/EscapeGame
ae3e35334d64394a0f696149bfd56c1fd7a97681
[ "MIT" ]
1
2020-08-16T02:52:06.000Z
2020-08-16T02:52:06.000Z
python/index.py
stijnvanhulle/EscapeGame
ae3e35334d64394a0f696149bfd56c1fd7a97681
[ "MIT" ]
1
2021-10-18T18:39:08.000Z
2021-10-18T18:39:08.000Z
python/index.py
stijnvanhulle/EscapeGame
ae3e35334d64394a0f696149bfd56c1fd7a97681
[ "MIT" ]
null
null
null
# @Author: Stijn Van Hulle <stijnvanhulle> # @Date: 2016-11-28T13:51:38+01:00 # @Email: me@stijnvanhulle.be # @Last modified by: stijnvanhulle # @Last modified time: 2016-12-20T12:51:07+01:00 # @License: stijnvanhulle.be #!/usr/bin/env python import time import datetime import math import sys import json impor...
25.357616
105
0.71298
517
3,829
5.133462
0.274662
0.048983
0.023738
0.024115
0.13263
0.106255
0.086662
0
0
0
0
0.021413
0.146252
3,829
150
106
25.526667
0.790456
0.106294
0
0.224299
0
0
0.132042
0
0
0
0
0
0
1
0.084112
false
0
0.084112
0
0.214953
0.102804
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0abd370b6b3c7d06f851a685777b6e689527ccf7
8,184
py
Python
peps/converters.py
idjaw/pythondotorg
8e4babbc7ad15ed52b4f66fdd4ab43c2dd3bd649
[ "Apache-2.0" ]
null
null
null
peps/converters.py
idjaw/pythondotorg
8e4babbc7ad15ed52b4f66fdd4ab43c2dd3bd649
[ "Apache-2.0" ]
2
2022-01-13T03:57:42.000Z
2022-03-12T01:01:40.000Z
peps/converters.py
idjaw/pythondotorg
8e4babbc7ad15ed52b4f66fdd4ab43c2dd3bd649
[ "Apache-2.0" ]
null
null
null
import re import os from bs4 import BeautifulSoup from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.files import File from pages.models import Page, Image PEP_TEMPLATE = 'pages/pep-page.html' pep_url = lambda num: 'dev/peps/pep-{}/'.format(num) def check_pat...
29.228571
85
0.615225
1,116
8,184
4.350358
0.206093
0.033368
0.020391
0.023069
0.342533
0.274356
0.234809
0.208239
0.193615
0.15242
0
0.00826
0.260386
8,184
279
86
29.333333
0.793821
0.127199
0
0.254237
0
0
0.121397
0
0
0
0
0
0
1
0.045198
false
0
0.039548
0
0.135593
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0abe087af168de7f10f0e7fc51d33adc2b129507
2,421
py
Python
implementations/python3/tests/CAPDU.py
sebastien-riou/SATL
b95d0e784d2e8e1384381d4d5b8b448d3d1798cf
[ "Apache-2.0" ]
4
2020-05-13T10:13:55.000Z
2021-10-20T04:43:07.000Z
implementations/python3/tests/CAPDU.py
TiempoSecure/SATL
b95d0e784d2e8e1384381d4d5b8b448d3d1798cf
[ "Apache-2.0" ]
4
2020-07-22T16:06:31.000Z
2021-07-25T19:51:41.000Z
implementations/python3/tests/CAPDU.py
TiempoSecure/SATL
b95d0e784d2e8e1384381d4d5b8b448d3d1798cf
[ "Apache-2.0" ]
2
2019-05-12T21:15:00.000Z
2020-09-23T09:05:24.000Z
import os import pysatl from pysatl import CAPDU if __name__ == "__main__": def check(hexstr, expected): capdu = CAPDU.from_hexstr(hexstr) if capdu != expected: raise Exception("Mismatch for input '"+hexstr+"'\nActual: "+str(capdu)+"\nExpected: "+str(expected)) def gencase(* ...
32.28
114
0.53449
314
2,421
4.050955
0.283439
0.044025
0.056604
0.070755
0.289308
0.207547
0.207547
0.207547
0.207547
0.183176
0
0.168498
0.32342
2,421
74
115
32.716216
0.608059
0.032631
0
0.083333
0
0
0.120564
0.017956
0
0
0.083369
0
0.066667
1
0.033333
false
0
0.05
0
0.1
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0abf69ab54ec15326e13cf19d070cb3b005d83d2
495
py
Python
mgmt/src/constants.py
pcaruana/sombrio
3b669fc83e0227a69b673b5555d88e15b55c397c
[ "MIT" ]
null
null
null
mgmt/src/constants.py
pcaruana/sombrio
3b669fc83e0227a69b673b5555d88e15b55c397c
[ "MIT" ]
null
null
null
mgmt/src/constants.py
pcaruana/sombrio
3b669fc83e0227a69b673b5555d88e15b55c397c
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """ constants.py - Contains all constants used by the device manager Author: - Pablo Caruana (pablo dot caruana at gmail dot com) Date: 12/3/2016 """ number_of_rows = 3 # total number rows of Index Servers number_of_links = 5 # number of links to be ...
38.076923
79
0.656566
74
495
4.283784
0.594595
0.176656
0.082019
0.063091
0
0
0
0
0
0
0
0.036827
0.286869
495
12
80
41.25
0.86119
0.670707
0
0
0
0
0
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
0abfe16c350b956230d3407edf8eac65ac07365b
1,015
py
Python
XDoG/XDoG.py
STomoya/sketchify
93c068042f02172505457cc15cb0bef673666be3
[ "MIT" ]
null
null
null
XDoG/XDoG.py
STomoya/sketchify
93c068042f02172505457cc15cb0bef673666be3
[ "MIT" ]
null
null
null
XDoG/XDoG.py
STomoya/sketchify
93c068042f02172505457cc15cb0bef673666be3
[ "MIT" ]
null
null
null
import cv2 import numpy as np def DoG(image, size, sigma, k=1.6, gamma=1.): g1 = cv2.GaussianBlur(image, (size, size), sigma) g2 = cv2.GaussianBlur(image, (size, size), sigma*k) return g1 - gamma * g2 def XDoG(image, size, sigma, eps, phi, k=1.6, gamma=1.): eps /= 255 d = DoG(image, size, sigma, ...
26.025641
60
0.613793
173
1,015
3.508671
0.433526
0.074135
0.069193
0.056013
0.196046
0.108731
0
0
0
0
0
0.062257
0.240394
1,015
39
61
26.025641
0.725032
0.193103
0
0
0
0
0.0369
0
0
0
0
0
0
1
0.107143
false
0
0.071429
0
0.25
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
0ac1668c9f200fa1e8cd7c054395a35fadf64190
8,070
py
Python
lm/validate.py
ericlin8545/grover
3ac6e506f2e1a859d98cc2c3fb57ba251be31484
[ "Apache-2.0" ]
864
2019-06-18T18:53:58.000Z
2022-03-04T22:36:52.000Z
lm/validate.py
ericlin8545/grover
3ac6e506f2e1a859d98cc2c3fb57ba251be31484
[ "Apache-2.0" ]
62
2019-06-20T19:37:39.000Z
2022-02-10T00:14:49.000Z
lm/validate.py
ericlin8545/grover
3ac6e506f2e1a859d98cc2c3fb57ba251be31484
[ "Apache-2.0" ]
224
2019-06-18T18:45:56.000Z
2022-03-29T17:46:30.000Z
# Original work Copyright 2018 The Google AI Language Team Authors. # Modified work Copyright 2019 Rowan Zellers # # 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/...
37.534884
108
0.688352
1,138
8,070
4.675747
0.318981
0.028942
0.028754
0.010712
0.077993
0.041721
0.033828
0.033828
0.033828
0.033828
0
0.011569
0.218092
8,070
214
109
37.71028
0.831696
0.169021
0
0.108844
0
0
0.220418
0.00436
0
0
0
0
0.013605
1
0.034014
false
0
0.054422
0
0.122449
0.013605
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ac16994f053988d4add08873e022a2c2ce12964
5,055
py
Python
robo/fmin/entropy_search.py
fuhuifang/RoBo
036bbaa0e59032577e2611d8ba304384b397c7f6
[ "BSD-3-Clause" ]
null
null
null
robo/fmin/entropy_search.py
fuhuifang/RoBo
036bbaa0e59032577e2611d8ba304384b397c7f6
[ "BSD-3-Clause" ]
null
null
null
robo/fmin/entropy_search.py
fuhuifang/RoBo
036bbaa0e59032577e2611d8ba304384b397c7f6
[ "BSD-3-Clause" ]
null
null
null
import logging import george import numpy as np from robo.priors.default_priors import DefaultPrior from robo.models.gaussian_process import GaussianProcess from robo.models.gaussian_process_mcmc import GaussianProcessMCMC from robo.maximizers.random_sampling import RandomSampling from robo.maximizers.scipy_optimizer ...
39.492188
112
0.656775
616
5,055
5.246753
0.314935
0.027228
0.016708
0.02599
0.083849
0.052908
0.043317
0.043317
0
0
0
0.008833
0.26093
5,055
127
113
39.80315
0.856263
0.233037
0
0.105263
0
0
0.090254
0.005875
0
0
0
0
0.039474
1
0.013158
false
0
0.184211
0
0.236842
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
0ac365363d4be305aa9c1fbf0e6475792a5ae142
253
py
Python
com/bridgelabz/programs/powerof2.py
aashishogale/FunctionalPrograms-Python-
d297bdb78112ef03274a10a58efc90da27f51b14
[ "MIT" ]
null
null
null
com/bridgelabz/programs/powerof2.py
aashishogale/FunctionalPrograms-Python-
d297bdb78112ef03274a10a58efc90da27f51b14
[ "MIT" ]
null
null
null
com/bridgelabz/programs/powerof2.py
aashishogale/FunctionalPrograms-Python-
d297bdb78112ef03274a10a58efc90da27f51b14
[ "MIT" ]
null
null
null
import sys from com.bridgelabz.utility.Utility import Utility class PowerOf2: def start(self): number=int(sys.argv[1]) print(number) for i in Utility().powerof2(number): print(i) return PowerOf2().start()
23
50
0.624506
32
253
4.9375
0.625
0
0
0
0
0
0
0
0
0
0
0.021505
0.264822
253
11
51
23
0.827957
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.5
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ac3dcb6f4a277998e57f0001095aaf45bef6fae
2,256
py
Python
app/main.py
MichaelLeeman/Job_Web_Scraper
29205d84f1190830a77174ce8272f4f79bb3468b
[ "MIT" ]
null
null
null
app/main.py
MichaelLeeman/Job_Web_Scraper
29205d84f1190830a77174ce8272f4f79bb3468b
[ "MIT" ]
4
2020-05-25T19:54:58.000Z
2020-05-25T19:55:03.000Z
app/main.py
MichaelLeeman/Job_Web_Scraper
29205d84f1190830a77174ce8272f4f79bb3468b
[ "MIT" ]
1
2020-07-02T13:06:52.000Z
2020-07-02T13:06:52.000Z
# This program scraps data from job postings on the website workinstartups.com and appends it to an excel worksheet. import os from datetime import datetime, timedelta from selenium import webdriver from app import web_scraper from app import excel job_list, last_date = [], None file_path = os.path.abspath("main.py")...
47
116
0.735816
350
2,256
4.608571
0.382857
0.017359
0.022319
0.009919
0.027898
0.00434
0
0
0
0
0
0.014359
0.135638
2,256
47
117
48
0.812821
0.253103
0
0
0
0
0.260143
0
0
0
0
0
0
1
0
false
0
0.151515
0
0.151515
0.242424
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ac3e6f75c6ad2e83d2f026142ba224b4bab8c20
2,507
py
Python
src/data_loader/input_data_loader.py
ChristopherBrix/Debona
f000f3d483b2cc592233d0ba2a1a0327210562c8
[ "BSD-2-Clause" ]
2
2020-07-26T09:48:22.000Z
2021-09-30T01:51:13.000Z
src/data_loader/input_data_loader.py
ChristopherBrix/Debona
f000f3d483b2cc592233d0ba2a1a0327210562c8
[ "BSD-2-Clause" ]
2
2022-01-13T03:56:13.000Z
2022-03-12T01:03:29.000Z
src/data_loader/input_data_loader.py
ChristopherBrix/Debona
f000f3d483b2cc592233d0ba2a1a0327210562c8
[ "BSD-2-Clause" ]
null
null
null
""" Functions for loading input data. Author: Patrick Henriksen <patrick@henriksen.as> """ import os import numpy as np def load_img(path: str, img_nums: list, shape: tuple) -> np.array: """ Loads a image in the human-readable format. Args: path: The path to the to the folder with...
25.845361
101
0.603111
360
2,507
4.083333
0.241667
0.047619
0.022449
0.028571
0.431293
0.35034
0.35034
0.35034
0.304082
0.304082
0
0.025253
0.28919
2,507
96
102
26.114583
0.799663
0.387316
0
0
0
0
0.03532
0.028698
0
0
0
0
0
1
0.16
false
0
0.08
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ac4b5f3fcc2b83c0b6c655a23b542fa299d00d2
41,041
py
Python
pandas/io/sql.py
danbirken/pandas
fa8a5ca1dd27c4169727070ddbdcb248002fddb4
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/io/sql.py
danbirken/pandas
fa8a5ca1dd27c4169727070ddbdcb248002fddb4
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/io/sql.py
danbirken/pandas
fa8a5ca1dd27c4169727070ddbdcb248002fddb4
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" Collection of query wrappers / abstractions to both facilitate data retrieval and to reduce dependency on DB-specific API. """ from __future__ import print_function, division from datetime import datetime, date, timedelta import warnings import traceback import itertools import re import numpy as np import pandas...
33.806425
103
0.608002
5,104
41,041
4.752351
0.104232
0.020201
0.006308
0.007421
0.516738
0.48421
0.45061
0.415485
0.393758
0.37331
0
0.002747
0.299213
41,041
1,213
104
33.834295
0.840618
0.313686
0
0.401244
0
0
0.089053
0.001944
0
0
0
0.001649
0
1
0.093313
false
0.004666
0.032659
0.009331
0.253499
0.007776
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ac61484010824f5bc86d5e3f43da1576d3d9bbb
4,411
py
Python
Systerm/meta.py
ZytroCode/Systerm
688b1a9eab51ec2d2fcc8e921d57ae4ae585a1b7
[ "MIT" ]
1
2022-03-01T02:36:29.000Z
2022-03-01T02:36:29.000Z
Systerm/meta.py
ZytroCode/Systerm
688b1a9eab51ec2d2fcc8e921d57ae4ae585a1b7
[ "MIT" ]
1
2022-03-04T03:20:50.000Z
2022-03-04T03:20:50.000Z
Systerm/meta.py
ZytroCode/Systerm
688b1a9eab51ec2d2fcc8e921d57ae4ae585a1b7
[ "MIT" ]
null
null
null
"""Meta is a module contains objects that will customize the behavior of python.""" from abc import ABC from abc import ABCMeta from abc import abstractmethod from typing import Any from typing import Callable import Systerm # Metaclass class Metaclass(ABCMeta): """A metaclass to customize the behavior of all cla...
30.42069
102
0.608025
472
4,411
5.277542
0.205508
0.046969
0.077077
0.073866
0.403051
0.315536
0.264151
0.228824
0.162987
0.162987
0
0
0.301519
4,411
144
103
30.631944
0.808504
0.272727
0
0.2
0
0
0.004528
0
0
0
0
0
0
1
0.133333
false
0.04
0.093333
0
0.413333
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
0ac6cf77a3b421f63bd83476f536c84c12d3066c
11,859
py
Python
samples/apps/txregulator/tests/txregulatorclient.py
iqsarv/CCF
5cc33a1f0e06eb2a25dc1ebd0e2153881962b889
[ "Apache-2.0" ]
1
2020-02-03T21:57:22.000Z
2020-02-03T21:57:22.000Z
samples/apps/txregulator/tests/txregulatorclient.py
kuychaco/CCF
e11acde3be6a7d2213fe5b406b959bb5bb64361d
[ "Apache-2.0" ]
null
null
null
samples/apps/txregulator/tests/txregulatorclient.py
kuychaco/CCF
e11acde3be6a7d2213fe5b406b959bb5bb64361d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache 2.0 License. import infra.e2e_args import infra.ccf import infra.jsonrpc import logging from time import gmtime, strftime import csv import random from loguru import logger as LOG class AppUser: def __init__(self, network, n...
39.795302
117
0.474239
1,204
11,859
4.498339
0.192691
0.022895
0.031573
0.024003
0.391433
0.368907
0.340473
0.297821
0.292836
0.256647
0
0.004714
0.427523
11,859
297
118
39.929293
0.793048
0.081457
0
0.341564
0
0
0.149991
0
0
0
0
0
0.004115
1
0.016461
false
0
0.032922
0.004115
0.061728
0.004115
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0ac72633419a62f181f2995c29a463e6cede8eca
4,925
py
Python
src/finmag/sim/hysteresis.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
10
2018-03-24T07:43:17.000Z
2022-03-26T10:42:27.000Z
src/finmag/sim/hysteresis.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
21
2018-03-26T15:08:53.000Z
2021-07-10T16:11:14.000Z
src/finmag/sim/hysteresis.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
7
2018-04-09T11:50:48.000Z
2021-06-10T09:23:25.000Z
import os import re import glob import logging import textwrap import fileinput import numpy as np from finmag.energies import Zeeman from finmag.util.helpers import norm log = logging.getLogger(name="finmag") def hysteresis(sim, H_ext_list, fun=None, **kwargs): """ Set the applied field to the first value i...
34.929078
79
0.650355
724
4,925
4.325967
0.321823
0.011494
0.022989
0.012771
0.094828
0.072158
0.057471
0.041507
0.02682
0
0
0.002828
0.28203
4,925
140
80
35.178571
0.882919
0.622132
0
0
0
0
0.118047
0
0
0
0
0
0
1
0.043478
false
0
0.195652
0
0.304348
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
0ac8bc92bddd721b23be9da9373cb90b73f83f01
1,200
py
Python
core/controllers/services.py
willingc/oh-missions-oppia-beta
3d97903a5155ec67f135b1aa2c02f3bb39eb02e7
[ "Apache-2.0" ]
null
null
null
core/controllers/services.py
willingc/oh-missions-oppia-beta
3d97903a5155ec67f135b1aa2c02f3bb39eb02e7
[ "Apache-2.0" ]
2
2021-06-10T23:58:39.000Z
2021-12-13T20:51:34.000Z
core/controllers/services.py
willingc/oh-missions-oppia-beta
3d97903a5155ec67f135b1aa2c02f3bb39eb02e7
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 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 applicable law or ...
31.578947
77
0.726667
161
1,200
5.341615
0.63354
0.069767
0.030233
0.037209
0
0
0
0
0
0
0
0.018443
0.186667
1,200
37
78
32.432432
0.862705
0.565833
0
0
0
0
0.134538
0
0
0
0
0
0
1
0.076923
false
0
0.230769
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
0ac9b8651f0cd02d3cb27eefe5c6577d55fc334a
4,080
py
Python
libs/configs/COCO/cfgs_res50_1x_coco_v3.py
lj-ecjtu/Cascade_FPN_Tensorflow-master
40fcd2c10f057b3f015ca1380d7db102e967391f
[ "MIT" ]
43
2019-04-25T08:07:49.000Z
2021-08-24T08:33:37.000Z
libs/configs/COCO/cfgs_res50_1x_coco_v3.py
lj-ecjtu/Cascade_FPN_Tensorflow-master
40fcd2c10f057b3f015ca1380d7db102e967391f
[ "MIT" ]
16
2019-05-11T03:51:19.000Z
2021-10-09T08:26:18.000Z
libs/configs/COCO/cfgs_res50_1x_coco_v3.py
lj-ecjtu/Cascade_FPN_Tensorflow-master
40fcd2c10f057b3f015ca1380d7db102e967391f
[ "MIT" ]
15
2019-04-29T03:26:35.000Z
2020-05-26T05:35:39.000Z
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import os import tensorflow as tf ''' gluoncv backbone + multi_gpu ''' # ------------------------------------------------ VERSION = 'Cascade_FPN_Res50_COCO_1x_20190421_v3' NET_NAME = 'resnet50_v1d' ADD_BOX_IN_TENSORBOARD = True ...
31.384615
100
0.684069
635
4,080
4.061417
0.393701
0.027918
0.034897
0.019775
0.155487
0.099263
0.083753
0.083753
0.068244
0.068244
0
0.08352
0.12549
4,080
129
101
31.627907
0.639294
0.199265
0
0
0
0
0.094881
0.059613
0
0
0
0
0
1
0
false
0
0.032609
0
0.032609
0.032609
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0acab913205c6b28e2e38031c30bbb139185f389
3,055
py
Python
python/delta/tests/test_exceptions.py
vibhaska/delta
0e16356ff46520404e2376d048f002ca74f6dc0c
[ "Apache-2.0" ]
1
2022-01-18T10:52:49.000Z
2022-01-18T10:52:49.000Z
python/delta/tests/test_exceptions.py
vibhaska/delta
0e16356ff46520404e2376d048f002ca74f6dc0c
[ "Apache-2.0" ]
null
null
null
python/delta/tests/test_exceptions.py
vibhaska/delta
0e16356ff46520404e2376d048f002ca74f6dc0c
[ "Apache-2.0" ]
1
2022-03-06T09:29:55.000Z
2022-03-06T09:29:55.000Z
# # Copyright (2020) The Delta Lake Project Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
41.849315
87
0.734206
330
3,055
6.578788
0.369697
0.055274
0.088439
0.058038
0.32059
0.32059
0.304468
0.304468
0.304468
0.160295
0
0.00405
0.191817
3,055
72
88
42.430556
0.875253
0.18527
0
0.166667
0
0
0.010918
0
0
0
0
0
0.166667
1
0.190476
false
0
0.119048
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