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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4fb780ed4f5f443242fb9c07ad8eeb1efd0ae44c
| 15
|
py
|
Python
|
bibcrawl/__init__.py
|
OlivierBlanvillain/crawler
|
9ce0136380681232ed2b20a030c7dacf874b1963
|
[
"MIT"
] | 5
|
2017-03-06T21:46:21.000Z
|
2017-10-12T07:13:53.000Z
|
bibcrawl/__init__.py
|
agstudy/crawler
|
9ce0136380681232ed2b20a030c7dacf874b1963
|
[
"MIT"
] | null | null | null |
bibcrawl/__init__.py
|
agstudy/crawler
|
9ce0136380681232ed2b20a030c7dacf874b1963
|
[
"MIT"
] | 3
|
2017-03-06T21:49:54.000Z
|
2019-02-07T00:09:40.000Z
|
"""bibcrawl"""
| 7.5
| 14
| 0.533333
| 1
| 15
| 8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 15
| 1
| 15
| 15
| 0.571429
| 0.533333
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4fd875bc9a72868ee4c022c1158f54c4b72a603e
| 389
|
py
|
Python
|
tutorial/utils/utils.py
|
betacal/python
|
3a9dbb4bfa8b81ff1adbb979e1d6d4dbd8106ddc
|
[
"MIT"
] | 11
|
2019-10-12T02:53:39.000Z
|
2021-07-09T10:08:24.000Z
|
tutorial/utils/utils.py
|
betacal/python
|
3a9dbb4bfa8b81ff1adbb979e1d6d4dbd8106ddc
|
[
"MIT"
] | 5
|
2017-12-13T16:52:28.000Z
|
2021-04-01T21:18:48.000Z
|
tutorial/utils/utils.py
|
betacal/python
|
3a9dbb4bfa8b81ff1adbb979e1d6d4dbd8106ddc
|
[
"MIT"
] | 5
|
2017-11-11T17:55:00.000Z
|
2020-02-26T15:21:31.000Z
|
from sklearn.linear_model import LogisticRegression
class MyLogisticRegression(LogisticRegression):
def fit(self, x, y, **kwargs):
return super(MyLogisticRegression, self).fit(
x.reshape(-1, 1), y, **kwargs)
def predict(self, x, **kwargs):
return super(MyLogisticRegression, self).predict_proba(
x.reshape(-1, 1), **kwargs)[:, 1]
| 32.416667
| 63
| 0.640103
| 43
| 389
| 5.744186
| 0.465116
| 0.040486
| 0.137652
| 0.299595
| 0.331984
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016611
| 0.226221
| 389
| 11
| 64
| 35.363636
| 0.803987
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.125
| 0.25
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
8b37c9125a898879143339e91594ef0fe8276e33
| 388
|
py
|
Python
|
art.py
|
DigvijayDheer/coffee-machine
|
0186dabb871efd4c81f56d6c7e7ca4b50e619bcc
|
[
"MIT"
] | null | null | null |
art.py
|
DigvijayDheer/coffee-machine
|
0186dabb871efd4c81f56d6c7e7ca4b50e619bcc
|
[
"MIT"
] | null | null | null |
art.py
|
DigvijayDheer/coffee-machine
|
0186dabb871efd4c81f56d6c7e7ca4b50e619bcc
|
[
"MIT"
] | null | null | null |
logo = """
____ ___ _____ _____ _____ _____ __ __ _ _ _______ ____
/ ___/ _ \| ___| ___| ____| ____| | \/ | / \ | |/ / ____| _ \
| | | | | | |_ | |_ | _| | _| | |\/| | / _ \ | ' /| _| | |_) |
| |__| |_| | _| | _| | |___| |___ | | | |/ ___ \| . \| |___| _ <
\____\___/|_| |_| |_____|_____| |_| |_/_/ \_\_|\_\_____|_| \_\
"""
| 35.272727
| 72
| 0.329897
| 1
| 388
| 4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.39433
| 388
| 10
| 73
| 38.8
| 0.017021
| 0
| 0
| 0
| 0
| 0.571429
| 0.962766
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8c6993d23f01ec60a535c5e418b22b3506d30ccb
| 44
|
py
|
Python
|
Chapter16/cf_rfem_hist_price/venv/lib/python3.6/keyword.py
|
wtwong316/Mastering-Elasticsearch-7.0
|
8e88f938c9feb201649bd23c4d517bc6af93fbaa
|
[
"MIT"
] | 25
|
2019-03-08T01:03:03.000Z
|
2022-02-14T17:38:32.000Z
|
Chapter16/cf_rfem_hist_price/venv/lib/python3.6/keyword.py
|
wtwong316/Mastering-Elasticsearch-7.0
|
8e88f938c9feb201649bd23c4d517bc6af93fbaa
|
[
"MIT"
] | 2
|
2019-02-15T17:34:37.000Z
|
2019-07-11T14:37:02.000Z
|
Chapter16/cf_rfem_hist_price/venv/lib/python3.6/keyword.py
|
wtwong316/Mastering-Elasticsearch-7.0
|
8e88f938c9feb201649bd23c4d517bc6af93fbaa
|
[
"MIT"
] | 31
|
2019-01-15T20:16:50.000Z
|
2022-03-01T05:47:38.000Z
|
/home/wai/anaconda3/lib/python3.6/keyword.py
| 44
| 44
| 0.818182
| 8
| 44
| 4.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068182
| 0
| 44
| 1
| 44
| 44
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8c74141542b139c1d8aab250057e3b68405fbb2f
| 217
|
py
|
Python
|
PySources/cvvidproc/__init__.py
|
UkoeHB/CvVidProc
|
75676359c5a4dc7b70ddd266c6933f691267d1f4
|
[
"MIT"
] | null | null | null |
PySources/cvvidproc/__init__.py
|
UkoeHB/CvVidProc
|
75676359c5a4dc7b70ddd266c6933f691267d1f4
|
[
"MIT"
] | null | null | null |
PySources/cvvidproc/__init__.py
|
UkoeHB/CvVidProc
|
75676359c5a4dc7b70ddd266c6933f691267d1f4
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# thanks to: https://github.com/pybind/scikit_build_example
from ._core import __doc__, VidBgPack, GetVideoBackground, HighlightObjectsPack, AssignObjectsPack, VidObjectTrackPack, TrackObjects
| 54.25
| 132
| 0.801843
| 22
| 217
| 7.590909
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005051
| 0.087558
| 217
| 4
| 132
| 54.25
| 0.838384
| 0.364055
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
8c8d4d94f0c75d27c661704eb6e9c364073bf1aa
| 447
|
py
|
Python
|
Network/Tools/Random_IP.py
|
hongsofwing/PyQYT-master
|
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
|
[
"CNRI-Python"
] | null | null | null |
Network/Tools/Random_IP.py
|
hongsofwing/PyQYT-master
|
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
|
[
"CNRI-Python"
] | null | null | null |
Network/Tools/Random_IP.py
|
hongsofwing/PyQYT-master
|
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
|
[
"CNRI-Python"
] | null | null | null |
#!/usr/bin/python3.4
# -*- coding=utf-8 -*-
#本脚由亁颐堂现任明教教主编写,用于乾颐盾Python课程!
#教主QQ:605658506
#亁颐堂官网www.qytang.com
#乾颐盾是由亁颐堂现任明教教主开发的综合性安全课程
#包括传统网络安全(防火墙,IPS...)与Python语言和黑客渗透课程!
import random
def Random_Section():
section = random.randint(1, 254)
return section
def Random_IP():
IP = str(Random_Section())+'.'+str(Random_Section())+'.'+str(Random_Section())+'.'+str(Random_Section())
return IP
if __name__ == '__main__':
print(Random_IP())
| 22.35
| 105
| 0.722595
| 55
| 447
| 5.6
| 0.6
| 0.211039
| 0.207792
| 0.185065
| 0.207792
| 0.207792
| 0.207792
| 0.207792
| 0.207792
| 0
| 0
| 0.039312
| 0.089485
| 447
| 20
| 106
| 22.35
| 0.717445
| 0.364653
| 0
| 0
| 0
| 0
| 0.039568
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.111111
| 0
| 0.555556
| 0.111111
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8ca7881b776ee4547dab3236c36c9036a096cbb3
| 108
|
py
|
Python
|
src/grokcore/view/tests/base/skin/nodouble_fixture.py
|
zopefoundation/grokcore.view
|
c574c0d041130ac607c95feb610a2b75bfc30abf
|
[
"ZPL-2.1"
] | null | null | null |
src/grokcore/view/tests/base/skin/nodouble_fixture.py
|
zopefoundation/grokcore.view
|
c574c0d041130ac607c95feb610a2b75bfc30abf
|
[
"ZPL-2.1"
] | 8
|
2016-02-02T13:42:20.000Z
|
2022-02-16T07:06:52.000Z
|
src/grokcore/view/tests/base/skin/nodouble_fixture.py
|
zopefoundation/grokcore.view
|
c574c0d041130ac607c95feb610a2b75bfc30abf
|
[
"ZPL-2.1"
] | 5
|
2015-04-03T05:01:45.000Z
|
2018-06-13T08:41:30.000Z
|
import grokcore.view as grok
class Skin1(grok.IBrowserRequest):
grok.skin('foo')
grok.skin('bar')
| 15.428571
| 34
| 0.694444
| 15
| 108
| 5
| 0.733333
| 0.213333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011111
| 0.166667
| 108
| 6
| 35
| 18
| 0.822222
| 0
| 0
| 0
| 0
| 0
| 0.055556
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8cba0142fc95d07c327adc50a6378a405519be97
| 35
|
py
|
Python
|
src/natcap/invest/coastal_blue_carbon/__init__.py
|
testacc-art/invest
|
8f34712f89b8245ed7a4593b833d7d7a7d5e0c6e
|
[
"BSD-3-Clause"
] | null | null | null |
src/natcap/invest/coastal_blue_carbon/__init__.py
|
testacc-art/invest
|
8f34712f89b8245ed7a4593b833d7d7a7d5e0c6e
|
[
"BSD-3-Clause"
] | 28
|
2020-04-09T23:39:38.000Z
|
2020-04-17T00:30:47.000Z
|
src/natcap/invest/coastal_blue_carbon/__init__.py
|
emlys/invest
|
5b0391fd456df5a6afd2fdfbaed542a090f58f17
|
[
"BSD-3-Clause"
] | 1
|
2021-04-21T10:46:17.000Z
|
2021-04-21T10:46:17.000Z
|
"""Coastal Blue Carbon package."""
| 17.5
| 34
| 0.685714
| 4
| 35
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114286
| 35
| 1
| 35
| 35
| 0.774194
| 0.8
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8cd032e3ac85ebe9b432999f891c0e1e639a05a0
| 1,170
|
py
|
Python
|
docs/source/examples/FB2.0/get_object_store_remote_credentials.py
|
Flav-STOR-WL/py-pure-client
|
03b889c997d90380ac5d6380ca5d5432792d3e89
|
[
"BSD-2-Clause"
] | 14
|
2018-12-07T18:30:27.000Z
|
2022-02-22T09:12:33.000Z
|
docs/source/examples/FB2.0/get_object_store_remote_credentials.py
|
Flav-STOR-WL/py-pure-client
|
03b889c997d90380ac5d6380ca5d5432792d3e89
|
[
"BSD-2-Clause"
] | 28
|
2019-09-17T21:03:52.000Z
|
2022-03-29T22:07:35.000Z
|
docs/source/examples/FB2.0/get_object_store_remote_credentials.py
|
Flav-STOR-WL/py-pure-client
|
03b889c997d90380ac5d6380ca5d5432792d3e89
|
[
"BSD-2-Clause"
] | 15
|
2020-06-11T15:50:08.000Z
|
2022-03-21T09:27:25.000Z
|
# list all remote credentials
res = client.get_object_store_remote_credentials()
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# list first five remote credentials using default sort
res = client.get_object_store_remote_credentials(limit=5)
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# list first five remote credentials and sort by access key
res = client.get_object_store_remote_credentials(limit=5, sort='access_key_id')
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# list all remaining remote credentials
res = client.get_object_store_remote_credentials(continuation_token=res.continuation_token)
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# list with filter to see only remote credentials that are on a specific remote
res = client.get_object_store_remote_credentials(filter='name=\'s3target/*\'')
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# Other valid fields: ids, names, offset
# See section "Common Fields" for examples
| 41.785714
| 91
| 0.789744
| 164
| 1,170
| 5.487805
| 0.323171
| 0.188889
| 0.066667
| 0.1
| 0.726667
| 0.726667
| 0.726667
| 0.682222
| 0.682222
| 0.453333
| 0
| 0.002874
| 0.107692
| 1,170
| 27
| 92
| 43.333333
| 0.859195
| 0.286325
| 0
| 0.75
| 0
| 0
| 0.022975
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
8cdf54160021ff3938bda15349d936953a5db8fb
| 50
|
py
|
Python
|
src/__init__.py
|
jbed94/Faster-R-CNN
|
ebfc3ff0a84deca9672155085e57d09199023a85
|
[
"MIT"
] | 5
|
2019-07-09T09:28:14.000Z
|
2020-09-04T13:56:02.000Z
|
src/__init__.py
|
jbed94/Faster-R-CNN
|
ebfc3ff0a84deca9672155085e57d09199023a85
|
[
"MIT"
] | null | null | null |
src/__init__.py
|
jbed94/Faster-R-CNN
|
ebfc3ff0a84deca9672155085e57d09199023a85
|
[
"MIT"
] | 1
|
2020-01-04T14:41:28.000Z
|
2020-01-04T14:41:28.000Z
|
from . import data, layers, losses, models, utils
| 25
| 49
| 0.74
| 7
| 50
| 5.285714
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 50
| 1
| 50
| 50
| 0.880952
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
5072af207f12e0248d06c36d3d557288931f3b58
| 157
|
py
|
Python
|
kits/python/simple/observation.py
|
JeromeIllgner/Lux-Design-2021
|
61ab5be84e5ee0c560ca49fc2433da16d0e0d62e
|
[
"Apache-2.0"
] | null | null | null |
kits/python/simple/observation.py
|
JeromeIllgner/Lux-Design-2021
|
61ab5be84e5ee0c560ca49fc2433da16d0e0d62e
|
[
"Apache-2.0"
] | null | null | null |
kits/python/simple/observation.py
|
JeromeIllgner/Lux-Design-2021
|
61ab5be84e5ee0c560ca49fc2433da16d0e0d62e
|
[
"Apache-2.0"
] | null | null | null |
from typing import Dict
class Observation(Dict[str, any]):
def __init__(self, player=0) -> None:
super().__init__()
self.player = player
| 26.166667
| 41
| 0.643312
| 20
| 157
| 4.65
| 0.75
| 0.172043
| 0.301075
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008264
| 0.229299
| 157
| 6
| 42
| 26.166667
| 0.760331
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
50c5c0e1e5d36a4f257b8d084f659fca8e4df168
| 150
|
py
|
Python
|
3rdParty/dogpile/dogpile.cache/dogpile.cache-0.4.2/build.py
|
rtobar/askapsoft
|
6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e
|
[
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 1
|
2020-06-18T08:37:43.000Z
|
2020-06-18T08:37:43.000Z
|
3rdParty/dogpile/dogpile.cache/dogpile.cache-0.4.2/build.py
|
ATNF/askapsoft
|
d839c052d5c62ad8a511e58cd4b6548491a6006f
|
[
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null |
3rdParty/dogpile/dogpile.cache/dogpile.cache-0.4.2/build.py
|
ATNF/askapsoft
|
d839c052d5c62ad8a511e58cd4b6548491a6006f
|
[
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null |
from askapdev.rbuild.builders import Setuptools as Builder
builder = Builder()
builder.remote_archive = "dogpile.cache-0.4.2.tar.gz"
builder.build()
| 25
| 58
| 0.786667
| 22
| 150
| 5.318182
| 0.818182
| 0.358974
| 0.358974
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022059
| 0.093333
| 150
| 5
| 59
| 30
| 0.838235
| 0
| 0
| 0
| 0
| 0
| 0.173333
| 0.173333
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
50ce48f8384f6be33aab4b125c656c79611a526a
| 107
|
py
|
Python
|
django/books_authors_proj/books_authors_app/apps.py
|
MiyaSteven/python_stack
|
c0f766d646b155efb4f6dd9df3eddfe72b14d91c
|
[
"MIT"
] | null | null | null |
django/books_authors_proj/books_authors_app/apps.py
|
MiyaSteven/python_stack
|
c0f766d646b155efb4f6dd9df3eddfe72b14d91c
|
[
"MIT"
] | null | null | null |
django/books_authors_proj/books_authors_app/apps.py
|
MiyaSteven/python_stack
|
c0f766d646b155efb4f6dd9df3eddfe72b14d91c
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class BooksAuthorsAppConfig(AppConfig):
name = 'books_authors_app'
| 17.833333
| 39
| 0.794393
| 12
| 107
| 6.916667
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140187
| 107
| 5
| 40
| 21.4
| 0.902174
| 0
| 0
| 0
| 0
| 0
| 0.158879
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
50d233f5f73025ed8fedbed7592e7fa6fbd42319
| 2,159
|
py
|
Python
|
formalchemy/tests/test_unicode.py
|
coredumperror/formalchemy
|
6d89bb3ac19248e114684df17bbf3885dc26de3e
|
[
"MIT"
] | 20
|
2015-01-25T13:54:08.000Z
|
2021-03-09T16:54:53.000Z
|
formalchemy/tests/test_unicode.py
|
coredumperror/formalchemy
|
6d89bb3ac19248e114684df17bbf3885dc26de3e
|
[
"MIT"
] | 11
|
2015-02-05T16:36:19.000Z
|
2020-11-13T11:41:19.000Z
|
formalchemy/tests/test_unicode.py
|
coredumperror/formalchemy
|
6d89bb3ac19248e114684df17bbf3885dc26de3e
|
[
"MIT"
] | 12
|
2015-02-19T14:06:21.000Z
|
2021-07-30T08:44:45.000Z
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from formalchemy.tests import *
from formalchemy.multidict import UnicodeMultiDict
from formalchemy.multidict import MultiDict
def test_unicode():
"""
>>> jose = User(email='jose@example.com',
... password='6565',
... name=u'Jos\xe9')
>>> order4 = Order(user=jose, quantity=4)
>>> session.add(jose)
>>> session.add(order4)
>>> session.flush()
>>> FieldSet.default_renderers = original_renderers.copy()
>>> fs = FieldSet(jose)
>>> print(fs.render()) #doctest: +ELLIPSIS
<div>
...<input id="User-3-name" maxlength="30" name="User-3-name" type="text" value="José" />...
>>> fs.readonly = True
>>> print(fs.render()) #doctest: +ELLIPSIS
<tbody>...José...
>>> fs = FieldSet(order4)
>>> print(fs.render()) #doctest: +ELLIPSIS
<div>
...José...
>>> fs.readonly = True
>>> print(fs.render()) #doctest: +ELLIPSIS
<tbody>...José...
>>> session.rollback()
"""
def test_unicode_data(self):
"""
>>> fs = FieldSet(User, session=session)
>>> data = UnicodeMultiDict(MultiDict({'User--name': u'José', 'User--email': 'j@jose.com', 'User--password': 'pwd'}), encoding='utf-8')
>>> str(data.encoding)
'utf-8'
>>> fs.rebind(data=data)
>>> fs.data is data
True
>>> print(fs.render()) # doctest: +ELLIPSIS
<div>...<input id="User--name" maxlength="30" name="User--name" type="text" value="José" />...</div>
>>> data = UnicodeMultiDict(MultiDict({'name': 'José', 'email': 'j@jose.com', 'password': 'pwd'}), encoding='utf-8')
>>> fs.rebind(data=data, with_prefix=False)
>>> print(fs.render()) # doctest: +ELLIPSIS
<div>...<input id="User--name" maxlength="30" name="User--name" type="text" value="José" />...</div>
>>> fs.rebind(data={'User--name': 'José', 'User--email': 'j@jose.com', 'User--password': 'pwd'})
>>> isinstance(fs.data, UnicodeMultiDict)
True
>>> print(fs.render()) # doctest: +ELLIPSIS
<div>...<input id="User--name" maxlength="30" name="User--name" type="text" value="José" />...</div>
"""
| 35.393443
| 139
| 0.58453
| 255
| 2,159
| 4.905882
| 0.266667
| 0.051159
| 0.072742
| 0.11191
| 0.518785
| 0.468425
| 0.443645
| 0.398881
| 0.398881
| 0.307754
| 0
| 0.013039
| 0.182955
| 2,159
| 60
| 140
| 35.983333
| 0.696145
| 0.805929
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.666667
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
50f74545d8d015d956dbcc271a5f10346fa46d51
| 19
|
py
|
Python
|
python/cpp/private_data.py
|
simleo/promort_pipeline
|
03b9d3553a3dade57d0007e230230b02dd70832f
|
[
"MIT"
] | null | null | null |
python/cpp/private_data.py
|
simleo/promort_pipeline
|
03b9d3553a3dade57d0007e230230b02dd70832f
|
[
"MIT"
] | null | null | null |
python/cpp/private_data.py
|
simleo/promort_pipeline
|
03b9d3553a3dade57d0007e230230b02dd70832f
|
[
"MIT"
] | 3
|
2020-07-29T15:03:40.000Z
|
2020-10-06T11:16:04.000Z
|
cass_pass = 'pass'
| 9.5
| 18
| 0.684211
| 3
| 19
| 4
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 19
| 1
| 19
| 19
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0.210526
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
50ffaf08055b261be906ff343d90620fbfb407f1
| 77
|
py
|
Python
|
superset/run.py
|
Liangxj1201/customize-superset
|
b3d854861718358d9d50975cee6446c7cd789837
|
[
"Apache-2.0"
] | null | null | null |
superset/run.py
|
Liangxj1201/customize-superset
|
b3d854861718358d9d50975cee6446c7cd789837
|
[
"Apache-2.0"
] | 7
|
2020-03-24T17:42:08.000Z
|
2022-03-29T22:28:09.000Z
|
superset/run.py
|
Liangxj1201/customize-superset
|
b3d854861718358d9d50975cee6446c7cd789837
|
[
"Apache-2.0"
] | null | null | null |
from superset import app
app.run(debug=True, host='127.0.0.1', port='8088')
| 19.25
| 50
| 0.701299
| 15
| 77
| 3.6
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144928
| 0.103896
| 77
| 3
| 51
| 25.666667
| 0.637681
| 0
| 0
| 0
| 0
| 0
| 0.168831
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
0f960c30c3ed1c4156c1d9fe200d6b17d84d912b
| 8,241
|
py
|
Python
|
tests/test_matcher.py
|
sk-/craftier
|
c35c6c18b43c28cf7b0c457d00e94e0abeb47f15
|
[
"MIT"
] | 3
|
2021-01-11T11:25:30.000Z
|
2021-04-16T07:30:34.000Z
|
tests/test_matcher.py
|
sk-/craftier
|
c35c6c18b43c28cf7b0c457d00e94e0abeb47f15
|
[
"MIT"
] | null | null | null |
tests/test_matcher.py
|
sk-/craftier
|
c35c6c18b43c28cf7b0c457d00e94e0abeb47f15
|
[
"MIT"
] | 1
|
2021-05-27T18:46:27.000Z
|
2021-05-27T18:46:27.000Z
|
import textwrap
import unittest
from typing import Set
import libcst
import libcst.matchers
import parameterized
import craftier.matcher
class NodeTest(unittest.TestCase):
@parameterized.parameterized.expand(
(
("same base", "314", "314"),
("hexadecimal", "314", "0x13a"),
("octal", "314", "0o472"),
("binary", "314", "0b100111010"),
("with separators", "314", "3_14"),
)
)
def test_integer(
self, _name: str, expression1: str, expression2: str
) -> None:
matcher = craftier.matcher.from_node(
libcst.parse_expression(expression1), {}
)
self.assertTrue(
craftier.matcher.matches(
libcst.parse_expression(expression2), matcher
)
)
@parameterized.parameterized.expand(
(
("same string", "'some string'", "'some string'"),
("different quotes", "'some string'", '"some string"'),
("raw", "'some string'", "r'some string'"),
("unicode", "'some string'", "u'some string'"),
("concatenated", "'some string'", "'some' ' ' 'string'"),
)
)
def test_string(
self, _name: str, expression1: str, expression2: str
) -> None:
matcher = craftier.matcher.from_node(
libcst.parse_expression(expression1), {}
)
self.assertTrue(
craftier.matcher.matches(
libcst.parse_expression(expression2), matcher
)
)
@parameterized.parameterized.expand(
(
("same string", "'some' 'string'", "'some' 'string'"),
("different quotes", "'some' 'string'", '"some" "string"'),
("raw", "'some' 'string'", "r'some' 'string'"),
("unicode", "'some' 'string'", "u'some' 'string'"),
("plain", "'some' 'string'", "'somestring'"),
("f string", "'some' 'string' f'{x}'", "f'somestring{x}'"),
("f string", "'some' 'string' f' {x}'", "f'somestring {x}'"),
)
)
def test_concatenated_string(
self, _name: str, expression1: str, expression2: str
) -> None:
matcher = craftier.matcher.from_node(
libcst.parse_expression(expression1), {}
)
self.assertTrue(
craftier.matcher.matches(
libcst.parse_expression(expression2), matcher
)
)
@parameterized.parameterized.expand(
(
("same string", "f'{x} and {y}'", "f'{x} and {y}'"),
("different quotes", "f'{x} and {y}'", 'f"{x} and {y}"'),
("raw", "f'{x} and {y}'", "fr'{x} and {y}'"),
("concatenated", "f'{x} and {y}'", "f'{x} ' 'and' f' {y}'"),
)
)
def test_fstring(
self, _name: str, expression1: str, expression2: str
) -> None:
matcher = craftier.matcher.from_node(
libcst.parse_expression(expression1), {}
)
self.assertTrue(
craftier.matcher.matches(
libcst.parse_expression(expression2), matcher
)
)
def test_fstring_with_placeholders(self) -> None:
matcher = craftier.matcher.from_node(
libcst.parse_expression("f'{x} and {y}'"),
{"x": libcst.matchers.DoNotCare(), "y": libcst.matchers.Integer()},
)
self.assertTrue(
craftier.matcher.matches(
libcst.parse_expression("f'{a + b} and {32}'"), matcher
)
)
self.assertFalse(
craftier.matcher.matches(
libcst.parse_expression("f'{a + b} and {z}'"), matcher
)
)
@parameterized.parameterized.expand(
(
("equal", "[1, 2, 3]", "[1, 2, 3]"),
("no spaces", "[1, 2, 3]", "[1,2,3]"),
("trailing comma", "[1, 2, 3]", "[1, 2, 3, ]"),
)
)
def test_list(self, _name: str, expression1: str, expression2: str) -> None:
matcher = craftier.matcher.from_node(
libcst.parse_expression(expression1), {}
)
self.assertTrue(
craftier.matcher.matches(
libcst.parse_expression(expression2), matcher
)
)
@parameterized.parameterized.expand(
(
("equal", "{1, 2, 3}", "{1, 2, 3}"),
("no spaces", "{1, 2, 3}", "{1,2,3}"),
("trailing comma", "{1, 2, 3}", "{1, 2, 3, }"),
)
)
def test_set(self, _name: str, expression1: str, expression2: str) -> None:
matcher = craftier.matcher.from_node(
libcst.parse_expression(expression1), {}
)
self.assertTrue(
craftier.matcher.matches(
libcst.parse_expression(expression2), matcher
)
)
@parameterized.parameterized.expand(
(
("equal", "{1: 2, 3: 4}", "{1: 2, 3: 4}"),
("no spaces", "{1: 2, 3: 4}", "{1:2,3:4}"),
("trailing comma", "{1: 2, 3: 4}", "{1: 2, 3: 4,}"),
)
)
def test_dict(self, _name: str, expression1: str, expression2: str) -> None:
matcher = craftier.matcher.from_node(
libcst.parse_expression(expression1), {}
)
self.assertTrue(
craftier.matcher.matches(
libcst.parse_expression(expression2), matcher
)
)
@parameterized.parameterized.expand(
(
("equal", "(1, 2, 3)", "(1, 2, 3)"),
("no spaces", "(1, 2, 3)", "(1,2,3)"),
("no parens", "(1, 2, 3)", "1, 2, 3"),
("trailing comma", "(1, 2, 3)", "(1, 2, 3,)"),
("no parens", "(1, 2, 3)", "1, 2, 3"),
("no parens + trailing comma", "(1, 2, 3)", "1,2,3,"),
("one item + no parens + trailing comma", "(1,)", "1,"),
)
)
def test_tuple(
self, _name: str, expression1: str, expression2: str
) -> None:
matcher = craftier.matcher.from_node(
libcst.parse_expression(expression1), {}
)
self.assertTrue(
craftier.matcher.matches(
libcst.parse_expression(expression2), matcher
)
)
@parameterized.parameterized.expand(
(
("arithmetic", "x + y * z", "(x + (y * (z)))"),
("attributes", "x.y.z.w", "(((x).y).z).w"),
)
)
def test_optional_parens(
self, _name: str, expression1: str, expression2: str
) -> None:
matcher = craftier.matcher.from_node(
libcst.parse_expression(expression1), {}
)
self.assertTrue(
craftier.matcher.matches(
libcst.parse_expression(expression2), matcher
)
)
def test_function(self) -> None:
function_def = textwrap.dedent(
"""
def test():
name = "World"
print(f"Hello {name}")
""".strip()
)
matcher = craftier.matcher.from_node(
libcst.parse_statement(function_def), {}
)
self.assertTrue(
craftier.matcher.matches(
libcst.parse_statement(function_def), matcher
)
)
@parameterized.parameterized.expand(
(
("literal", "x + y", "1 + y", {"x"}),
("string", "x + y", "'foo' + y", {"x"}),
("list", "x + y", "[1] + y", {"x"}),
("attribute", "x + y", "foo.bar + y", {"x"}),
("multiple placeholders", "x + y", "1 + 2", {"x", "y"}),
("function", "x(y)", "max([1, 2, 3])", {"x", "y"}),
("multiple repeated placeholders", "x + x", "1 + 1", {"x"}),
)
)
def test_placeholders(
self,
_name: str,
expression1: str,
expression2: str,
placeholders: Set[str],
) -> None:
matcher = craftier.matcher.from_node(
libcst.parse_expression(expression1),
{p: libcst.matchers.DoNotCare() for p in placeholders},
)
self.assertTrue(
craftier.matcher.matches(
libcst.parse_expression(expression2), matcher
)
)
| 32.964
| 80
| 0.48647
| 789
| 8,241
| 4.996198
| 0.12801
| 0.016235
| 0.023592
| 0.092339
| 0.763825
| 0.740233
| 0.740233
| 0.705226
| 0.683409
| 0.653729
| 0
| 0.034489
| 0.34207
| 8,241
| 249
| 81
| 33.096386
| 0.692549
| 0
| 0
| 0.36087
| 0
| 0
| 0.184579
| 0
| 0
| 0
| 0.000615
| 0
| 0.056522
| 1
| 0.052174
| false
| 0
| 0.030435
| 0
| 0.086957
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0ff3abba3c681a0d97279309ebd65ffebde0c37d
| 103
|
py
|
Python
|
re_compare/tests/functional/protein/_config.py
|
gchase/re-compare
|
c717094053fd5938ea7f0a46dcfec75bc077cb7e
|
[
"MIT"
] | null | null | null |
re_compare/tests/functional/protein/_config.py
|
gchase/re-compare
|
c717094053fd5938ea7f0a46dcfec75bc077cb7e
|
[
"MIT"
] | null | null | null |
re_compare/tests/functional/protein/_config.py
|
gchase/re-compare
|
c717094053fd5938ea7f0a46dcfec75bc077cb7e
|
[
"MIT"
] | null | null | null |
TEXT_URLS = "ftp://ftp.wwpdb.org/pub/pdb/derived_data/pdb_seqres.txt"
regex_type = "protein_patterns"
| 25.75
| 69
| 0.776699
| 17
| 103
| 4.411765
| 0.882353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.067961
| 103
| 3
| 70
| 34.333333
| 0.78125
| 0
| 0
| 0
| 0
| 0
| 0.68932
| 0.533981
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0ff8cd49f4e88085c219e1a9b784b0d7e08ae3b3
| 495
|
py
|
Python
|
pyipn/tests/test_poisson_gen.py
|
msinghartinger/pyipn
|
32d90fdbcafc01fc0b4d8df3238da0bb701ae35d
|
[
"BSD-3-Clause"
] | null | null | null |
pyipn/tests/test_poisson_gen.py
|
msinghartinger/pyipn
|
32d90fdbcafc01fc0b4d8df3238da0bb701ae35d
|
[
"BSD-3-Clause"
] | null | null | null |
pyipn/tests/test_poisson_gen.py
|
msinghartinger/pyipn
|
32d90fdbcafc01fc0b4d8df3238da0bb701ae35d
|
[
"BSD-3-Clause"
] | null | null | null |
from pyipn.poisson_gen import source_poisson_generator, background_poisson_generator
def test_source_poisson_gen():
d1 = source_poisson_generator.__wrapped__(0.0, 1, 1, 0.5, 0.5, 0.5)
d2 = source_poisson_generator.__wrapped__(-50, 145.5, 100, 0, 0.5, 10)
d2 = source_poisson_generator.__wrapped__(-50, 145.5, 0, 0, 0.5, 10)
def test_background_poisson_gen():
b1 = background_poisson_generator.__wrapped__(0.0, 1, 1, 0.5)
b2 = background_poisson_generator.__wrapped__(-50, 145.5, 100, 0)
| 45
| 84
| 0.765657
| 83
| 495
| 4.072289
| 0.26506
| 0.331361
| 0.340237
| 0.257396
| 0.5
| 0.5
| 0.5
| 0.5
| 0.171598
| 0
| 0
| 0.128959
| 0.107071
| 495
| 10
| 85
| 49.5
| 0.635747
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.125
| 0
| 0.375
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ba28f2856efbd02572a633d4c07f0d459c8f7e45
| 114
|
py
|
Python
|
venv/Lib/site-packages/docs/likegeeks_tutorial/code/standalone.py
|
avim2809/CameraSiteBlocker
|
bfc0434e75e8f3f95c459a4adc86b7673200816e
|
[
"Apache-2.0"
] | null | null | null |
venv/Lib/site-packages/docs/likegeeks_tutorial/code/standalone.py
|
avim2809/CameraSiteBlocker
|
bfc0434e75e8f3f95c459a4adc86b7673200816e
|
[
"Apache-2.0"
] | null | null | null |
venv/Lib/site-packages/docs/likegeeks_tutorial/code/standalone.py
|
avim2809/CameraSiteBlocker
|
bfc0434e75e8f3f95c459a4adc86b7673200816e
|
[
"Apache-2.0"
] | null | null | null |
from uiutil import BaseFrame, standalone
standalone(frame=BaseFrame,
title="Welcome to UI Util app")
| 19
| 42
| 0.719298
| 14
| 114
| 5.857143
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.210526
| 114
| 5
| 43
| 22.8
| 0.911111
| 0
| 0
| 0
| 0
| 0
| 0.19469
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
e879c57b014ae6a29235f486e7998e96003bd85b
| 373
|
py
|
Python
|
beaconator/backend/utils/images.py
|
mfdeux/beaconator
|
81372cd32457b2d76669354ae20968b678f45d04
|
[
"MIT"
] | null | null | null |
beaconator/backend/utils/images.py
|
mfdeux/beaconator
|
81372cd32457b2d76669354ae20968b678f45d04
|
[
"MIT"
] | null | null | null |
beaconator/backend/utils/images.py
|
mfdeux/beaconator
|
81372cd32457b2d76669354ae20968b678f45d04
|
[
"MIT"
] | null | null | null |
image_queries = {
"pixel": {"filename": "pixel.gif", "media_type": "image/gif"},
"gif": {"filename": "badge.gif", "media_type": "image/gif"},
"flat": {"filename": "badge-flat.svg", "media_type": "image/svg+xml"},
"flat-gif": {"filename": "badge-flat.gif", "media_type": "image/gif"},
"other": {"filename": "badge.svg", "media_type": "image/svg+xml"},
}
| 46.625
| 74
| 0.592493
| 47
| 373
| 4.574468
| 0.255319
| 0.209302
| 0.325581
| 0.237209
| 0.493023
| 0.213953
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131367
| 373
| 7
| 75
| 53.285714
| 0.66358
| 0
| 0
| 0
| 0
| 0
| 0.597855
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e87a0e098cf19e4066c39c060d174512b64451a2
| 56
|
py
|
Python
|
ppcls/arch/backbone/variant_models/__init__.py
|
TxT1212/PaddleClas
|
5a24c8700f738f036bf27f80ca12dbe8471a11b0
|
[
"Apache-2.0"
] | 2
|
2021-06-22T06:28:20.000Z
|
2021-06-22T06:28:23.000Z
|
ppcls/arch/backbone/variant_models/__init__.py
|
TxT1212/PaddleClas
|
5a24c8700f738f036bf27f80ca12dbe8471a11b0
|
[
"Apache-2.0"
] | null | null | null |
ppcls/arch/backbone/variant_models/__init__.py
|
TxT1212/PaddleClas
|
5a24c8700f738f036bf27f80ca12dbe8471a11b0
|
[
"Apache-2.0"
] | 1
|
2021-06-25T17:50:30.000Z
|
2021-06-25T17:50:30.000Z
|
from .resnet_variant import ResNet50_last_stage_stride1
| 28
| 55
| 0.910714
| 8
| 56
| 5.875
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057692
| 0.071429
| 56
| 1
| 56
| 56
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
e8a62f36f716bdc6ec14ef0f8dbbcc034469be58
| 419
|
py
|
Python
|
project/lib/models/base.py
|
efulet/python-project
|
79e2ea6af0f4a1e8533df758c95375d6ac8a1ce6
|
[
"MIT"
] | null | null | null |
project/lib/models/base.py
|
efulet/python-project
|
79e2ea6af0f4a1e8533df758c95375d6ac8a1ce6
|
[
"MIT"
] | null | null | null |
project/lib/models/base.py
|
efulet/python-project
|
79e2ea6af0f4a1e8533df758c95375d6ac8a1ce6
|
[
"MIT"
] | null | null | null |
"""
@created_at 2015-05-11
@author Exequiel Fuentes Lettura <efulet@gmail.com>
"""
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.engine.url import URL
import settings
DeclarativeBase = declarative_base()
def db_connect():
return create_engine(URL(**settings.DATABASE))
def create_tables(engine):
DeclarativeBase.metadata.create_all(engine)
| 19.045455
| 55
| 0.792363
| 53
| 419
| 6.113208
| 0.584906
| 0.12963
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021622
| 0.116945
| 419
| 21
| 56
| 19.952381
| 0.854054
| 0.176611
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.444444
| 0.111111
| 0.777778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
e8b762946b43418daa051767b7b55f823e0302e9
| 306
|
py
|
Python
|
pycrunch_trace/demo/demo_stepping_nested_calls.py
|
yswtrue/pycrunch-trace
|
67395a8ee578387c878cd85365cec186ab811984
|
[
"MIT"
] | 90
|
2020-06-02T09:43:34.000Z
|
2022-03-18T12:04:11.000Z
|
pycrunch_trace/demo/demo_stepping_nested_calls.py
|
yswtrue/pycrunch-trace
|
67395a8ee578387c878cd85365cec186ab811984
|
[
"MIT"
] | 8
|
2020-06-05T19:20:07.000Z
|
2022-03-17T10:14:30.000Z
|
pycrunch_trace/demo/demo_stepping_nested_calls.py
|
yswtrue/pycrunch-trace
|
67395a8ee578387c878cd85365cec186ab811984
|
[
"MIT"
] | 8
|
2020-06-06T08:08:53.000Z
|
2022-03-19T16:38:18.000Z
|
from pycrunch_trace.client.api import trace
def nested_two(x):
return x * 2
# down arrow (step over) should not enter this function
def nested_one(x):
return x + 1
@trace
def demo_stepping_nested_calls():
x = 1
y = nested_one(nested_two(x))
print(y)
demo_stepping_nested_calls()
| 15.3
| 55
| 0.702614
| 50
| 306
| 4.08
| 0.56
| 0.078431
| 0.098039
| 0.22549
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012397
| 0.20915
| 306
| 19
| 56
| 16.105263
| 0.830579
| 0.173203
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.272727
| false
| 0
| 0.090909
| 0.181818
| 0.545455
| 0.090909
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
e8b99dbff800a945485b5fc4cf69ccd3d5e9d9ef
| 97
|
py
|
Python
|
api/elections/apps.py
|
urfonline/api
|
fbd76c246eb1c64c9a12dbcffb21a317e64f8ada
|
[
"MIT"
] | 4
|
2017-06-13T16:20:34.000Z
|
2019-10-03T09:19:54.000Z
|
api/elections/apps.py
|
urfonline/api
|
fbd76c246eb1c64c9a12dbcffb21a317e64f8ada
|
[
"MIT"
] | 162
|
2017-05-23T11:41:33.000Z
|
2022-03-11T23:26:15.000Z
|
api/elections/apps.py
|
urfonline/api
|
fbd76c246eb1c64c9a12dbcffb21a317e64f8ada
|
[
"MIT"
] | 1
|
2017-05-19T09:25:25.000Z
|
2017-05-19T09:25:25.000Z
|
from django.apps import AppConfig
class ElectionsConfig(AppConfig):
name = 'api.elections'
| 16.166667
| 33
| 0.762887
| 11
| 97
| 6.727273
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.154639
| 97
| 5
| 34
| 19.4
| 0.902439
| 0
| 0
| 0
| 0
| 0
| 0.134021
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
2cee0c80877659137484807515a00aee2a4913a4
| 183
|
py
|
Python
|
bin/trigs/quasi-polytrigs-12-trapezoid-5x1.py
|
tiwo/puzzler
|
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
|
[
"Intel"
] | null | null | null |
bin/trigs/quasi-polytrigs-12-trapezoid-5x1.py
|
tiwo/puzzler
|
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
|
[
"Intel"
] | null | null | null |
bin/trigs/quasi-polytrigs-12-trapezoid-5x1.py
|
tiwo/puzzler
|
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
|
[
"Intel"
] | 1
|
2022-01-02T16:54:14.000Z
|
2022-01-02T16:54:14.000Z
|
#!/usr/bin/env python
# $Id$
"""358 solutions"""
import puzzler
from puzzler.puzzles.quasipolytrigs12 import QuasiPolytrigs12Trapezoid5x1
puzzler.run(QuasiPolytrigs12Trapezoid5x1)
| 18.3
| 73
| 0.808743
| 18
| 183
| 8.222222
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.077844
| 0.087432
| 183
| 9
| 74
| 20.333333
| 0.808383
| 0.213115
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
fa02a866614f76e7f87ae92246a0e740d0254aea
| 102
|
py
|
Python
|
PySimpleGUI/01.HW.py
|
sarincr/Python-modules-for-GUI-Dev
|
0dca4982de99d4f2a305862daf6a2f6fbcc522e6
|
[
"MIT"
] | null | null | null |
PySimpleGUI/01.HW.py
|
sarincr/Python-modules-for-GUI-Dev
|
0dca4982de99d4f2a305862daf6a2f6fbcc522e6
|
[
"MIT"
] | null | null | null |
PySimpleGUI/01.HW.py
|
sarincr/Python-modules-for-GUI-Dev
|
0dca4982de99d4f2a305862daf6a2f6fbcc522e6
|
[
"MIT"
] | null | null | null |
import PySimpleGUI as pysg
pysg.Window(title="Hello World", layout=[[]], margins=(100, 100)).read()
| 25.5
| 72
| 0.696078
| 14
| 102
| 5.071429
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.065934
| 0.107843
| 102
| 3
| 73
| 34
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0.107843
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
fa050c559ed5d5e84aa31a0cb10727854e28eb0d
| 161
|
py
|
Python
|
group06/CrossoverOperator.py
|
Luisets/Practica2OH
|
297711ba108ae2c25a725afc21df5d2a72b89efb
|
[
"MIT"
] | null | null | null |
group06/CrossoverOperator.py
|
Luisets/Practica2OH
|
297711ba108ae2c25a725afc21df5d2a72b89efb
|
[
"MIT"
] | null | null | null |
group06/CrossoverOperator.py
|
Luisets/Practica2OH
|
297711ba108ae2c25a725afc21df5d2a72b89efb
|
[
"MIT"
] | null | null | null |
from abc import ABCMeta, abstractmethod
class CrossoverOperator(metaclass = ABCMeta):
@abstractmethod
def apply(self, genomes):
pass
pass
| 16.1
| 45
| 0.701863
| 16
| 161
| 7.0625
| 0.8125
| 0.371681
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.236025
| 161
| 9
| 46
| 17.888889
| 0.918699
| 0
| 0
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0.333333
| 0.166667
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
fa05f8bc92190e88f8f8c73f37c64871676ea4d6
| 111
|
py
|
Python
|
tr_compile.py
|
ahmedbodi/simplecoin_multi
|
c7c0a6d6ead4663c92c9cbeaf03d06dee59bf16e
|
[
"MIT"
] | 32
|
2015-01-02T21:35:16.000Z
|
2020-02-13T16:40:36.000Z
|
tr_compile.py
|
ahmedbodi/simplecoin_multi
|
c7c0a6d6ead4663c92c9cbeaf03d06dee59bf16e
|
[
"MIT"
] | 18
|
2015-01-02T02:39:31.000Z
|
2017-06-04T03:43:34.000Z
|
tr_compile.py
|
xmotomatt/simplecoin_multi
|
06ec38e8b8d5e12665f46270b69ed30739fba7f3
|
[
"MIT"
] | 39
|
2015-01-11T09:28:30.000Z
|
2021-03-12T01:26:05.000Z
|
#!flask/bin/python
import subprocess
subprocess.call('pybabel compile -d simplecoin/translations', shell=True)
| 27.75
| 73
| 0.810811
| 14
| 111
| 6.428571
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072072
| 111
| 3
| 74
| 37
| 0.873786
| 0.153153
| 0
| 0
| 0
| 0
| 0.451613
| 0.247312
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
fa075cd902c8fd038a1f26a93ca45e36fad1fba1
| 76
|
py
|
Python
|
SIGNUS/modules/crawler/etc/post_wash.py
|
837477/SIGNUS
|
cd395dfd45d2c36d09ec9a8069e6e52e19f058e8
|
[
"MIT"
] | null | null | null |
SIGNUS/modules/crawler/etc/post_wash.py
|
837477/SIGNUS
|
cd395dfd45d2c36d09ec9a8069e6e52e19f058e8
|
[
"MIT"
] | null | null | null |
SIGNUS/modules/crawler/etc/post_wash.py
|
837477/SIGNUS
|
cd395dfd45d2c36d09ec9a8069e6e52e19f058e8
|
[
"MIT"
] | null | null | null |
import re
def post_wash(text):
data = re.sub(r'\s+'," ", text)
return data
| 19
| 32
| 0.644737
| 14
| 76
| 3.428571
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 76
| 4
| 33
| 19
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0.051948
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
fa10f9c99aa24f2eda4e76ef4deb210f3b705ecf
| 123
|
py
|
Python
|
ACM-Solution/OLOLO.py
|
wasi0013/Python-CodeBase
|
4a7a36395162f68f84ded9085fa34cc7c9b19233
|
[
"MIT"
] | 2
|
2016-04-26T15:40:40.000Z
|
2018-07-18T10:16:42.000Z
|
ACM-Solution/OLOLO.py
|
wasi0013/Python-CodeBase
|
4a7a36395162f68f84ded9085fa34cc7c9b19233
|
[
"MIT"
] | 1
|
2016-04-26T15:44:15.000Z
|
2016-04-29T14:44:40.000Z
|
ACM-Solution/OLOLO.py
|
wasi0013/Python-CodeBase
|
4a7a36395162f68f84ded9085fa34cc7c9b19233
|
[
"MIT"
] | 1
|
2018-10-02T16:12:19.000Z
|
2018-10-02T16:12:19.000Z
|
import sys
ans=0
for _ in[0]*int(sys.stdin.readline().strip()):
ans^=int(sys.stdin.readline().strip())
print(ans)
| 20.5
| 47
| 0.642276
| 20
| 123
| 3.9
| 0.55
| 0.153846
| 0.282051
| 0.487179
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018868
| 0.138211
| 123
| 5
| 48
| 24.6
| 0.716981
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 0.2
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fa361f6c756175ac5b7e963ac99bea92815c9e07
| 360
|
py
|
Python
|
utool/util_scripts/autogen_sphinx_docs.py
|
WildMeOrg/wbia-utool
|
e27888fbedc100a9455f425b778592fde1731b31
|
[
"Apache-2.0"
] | 8
|
2017-10-31T03:57:37.000Z
|
2021-01-15T15:40:23.000Z
|
utool/util_scripts/autogen_sphinx_docs.py
|
WildbookOrg/utool
|
e27888fbedc100a9455f425b778592fde1731b31
|
[
"Apache-2.0"
] | 6
|
2016-07-22T21:49:52.000Z
|
2021-11-08T01:00:40.000Z
|
utool/util_scripts/autogen_sphinx_docs.py
|
WildbookOrg/wbia-utool
|
e27888fbedc100a9455f425b778592fde1731b31
|
[
"Apache-2.0"
] | 6
|
2016-06-15T23:11:44.000Z
|
2021-11-07T14:23:42.000Z
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
autogenerates sphinx documentation
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import utool as ut
if __name__ == '__main__':
"""
autogen_sphinx_apidoc
OR
python -m utool.util_setup --exec-autogen_sphinx_apidoc
"""
ut.autogen_sphinx_apidoc()
| 21.176471
| 82
| 0.711111
| 44
| 360
| 5.318182
| 0.727273
| 0.166667
| 0.24359
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003356
| 0.172222
| 360
| 16
| 83
| 22.5
| 0.781879
| 0.213889
| 0
| 0
| 1
| 0
| 0.047059
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.25
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
fa38b982176617f7636eb6fbbf67ee2cf3c22a3b
| 5,307
|
py
|
Python
|
imcsdk/mometa/storage/StorageUnusedLocalDisk.py
|
ragupta-git/ImcSdk
|
2e41f2ffe5282d38de85bc4739fa53dd2f0c9bb4
|
[
"Apache-2.0"
] | null | null | null |
imcsdk/mometa/storage/StorageUnusedLocalDisk.py
|
ragupta-git/ImcSdk
|
2e41f2ffe5282d38de85bc4739fa53dd2f0c9bb4
|
[
"Apache-2.0"
] | null | null | null |
imcsdk/mometa/storage/StorageUnusedLocalDisk.py
|
ragupta-git/ImcSdk
|
2e41f2ffe5282d38de85bc4739fa53dd2f0c9bb4
|
[
"Apache-2.0"
] | 3
|
2018-11-14T13:02:40.000Z
|
2018-11-14T13:49:38.000Z
|
"""This module contains the general information for StorageUnusedLocalDisk ManagedObject."""
from ...imcmo import ManagedObject
from ...imccoremeta import MoPropertyMeta, MoMeta
from ...imcmeta import VersionMeta
class StorageUnusedLocalDiskConsts:
pass
class StorageUnusedLocalDisk(ManagedObject):
"""This is StorageUnusedLocalDisk class."""
consts = StorageUnusedLocalDiskConsts()
naming_props = set([u'id'])
mo_meta = {
"classic": MoMeta("StorageUnusedLocalDisk", "storageUnusedLocalDisk", "pd-[id]", VersionMeta.Version201a, "InputOutput", 0xf, [], ["admin", "read-only", "user"], [u'storageVirtualDriveCreatorUsingUnusedPhysicalDrive'], [], ["Get"]),
"modular": MoMeta("StorageUnusedLocalDisk", "storageUnusedLocalDisk", "pd-[id]", VersionMeta.Version2013e, "OutputOnly", 0xf, [], ["admin", "read-only", "user"], [u'storageVirtualDriveCreatorUsingUnusedPhysicalDrive'], [], ["Get"])
}
prop_meta = {
"classic": {
"child_action": MoPropertyMeta("child_action", "childAction", "string", VersionMeta.Version201a, MoPropertyMeta.INTERNAL, None, None, None, None, [], []),
"coerced_size": MoPropertyMeta("coerced_size", "coercedSize", "string", VersionMeta.Version201a, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []),
"dn": MoPropertyMeta("dn", "dn", "string", VersionMeta.Version201a, MoPropertyMeta.READ_ONLY, 0x2, 0, 255, None, [], []),
"health": MoPropertyMeta("health", "health", "string", VersionMeta.Version201a, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []),
"id": MoPropertyMeta("id", "id", "string", VersionMeta.Version201a, MoPropertyMeta.NAMING, None, 0, 510, None, [], []),
"media_type": MoPropertyMeta("media_type", "mediaType", "string", VersionMeta.Version201a, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []),
"pd_status": MoPropertyMeta("pd_status", "pdStatus", "string", VersionMeta.Version201a, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []),
"rn": MoPropertyMeta("rn", "rn", "string", VersionMeta.Version201a, MoPropertyMeta.READ_ONLY, 0x4, 0, 255, None, [], []),
"status": MoPropertyMeta("status", "status", "string", VersionMeta.Version201a, MoPropertyMeta.READ_ONLY, 0x8, None, None, None, ["", "created", "deleted", "modified", "removed"], []),
"vendor": MoPropertyMeta("vendor", "vendor", "string", VersionMeta.Version201a, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []),
},
"modular": {
"child_action": MoPropertyMeta("child_action", "childAction", "string", VersionMeta.Version2013e, MoPropertyMeta.INTERNAL, None, None, None, None, [], []),
"coerced_size": MoPropertyMeta("coerced_size", "coercedSize", "string", VersionMeta.Version2013e, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []),
"dn": MoPropertyMeta("dn", "dn", "string", VersionMeta.Version2013e, MoPropertyMeta.READ_ONLY, 0x2, 0, 255, None, [], []),
"health": MoPropertyMeta("health", "health", "string", VersionMeta.Version2013e, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []),
"id": MoPropertyMeta("id", "id", "string", VersionMeta.Version2013e, MoPropertyMeta.NAMING, None, 0, 510, None, [], []),
"media_type": MoPropertyMeta("media_type", "mediaType", "string", VersionMeta.Version2013e, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []),
"pd_status": MoPropertyMeta("pd_status", "pdStatus", "string", VersionMeta.Version2013e, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []),
"rn": MoPropertyMeta("rn", "rn", "string", VersionMeta.Version2013e, MoPropertyMeta.READ_ONLY, 0x4, 0, 255, None, [], []),
"status": MoPropertyMeta("status", "status", "string", VersionMeta.Version2013e, MoPropertyMeta.READ_ONLY, 0x8, None, None, None, ["", "created", "deleted", "modified", "removed"], []),
"vendor": MoPropertyMeta("vendor", "vendor", "string", VersionMeta.Version2013e, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []),
},
}
prop_map = {
"classic": {
"childAction": "child_action",
"coercedSize": "coerced_size",
"dn": "dn",
"health": "health",
"id": "id",
"mediaType": "media_type",
"pdStatus": "pd_status",
"rn": "rn",
"status": "status",
"vendor": "vendor",
},
"modular": {
"childAction": "child_action",
"coercedSize": "coerced_size",
"dn": "dn",
"health": "health",
"id": "id",
"mediaType": "media_type",
"pdStatus": "pd_status",
"rn": "rn",
"status": "status",
"vendor": "vendor",
},
}
def __init__(self, parent_mo_or_dn, id, **kwargs):
self._dirty_mask = 0
self.id = id
self.child_action = None
self.coerced_size = None
self.health = None
self.media_type = None
self.pd_status = None
self.status = None
self.vendor = None
ManagedObject.__init__(self, "StorageUnusedLocalDisk", parent_mo_or_dn, **kwargs)
| 54.71134
| 240
| 0.609572
| 481
| 5,307
| 6.592516
| 0.168399
| 0.107222
| 0.111006
| 0.045412
| 0.774519
| 0.774519
| 0.711763
| 0.711763
| 0.624724
| 0.624724
| 0
| 0.037581
| 0.217826
| 5,307
| 96
| 241
| 55.28125
| 0.726331
| 0.023365
| 0
| 0.32
| 0
| 0
| 0.224908
| 0.040611
| 0
| 0
| 0.004641
| 0
| 0
| 1
| 0.013333
| false
| 0.013333
| 0.04
| 0
| 0.146667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d72061f574a55ff2b86fae29b88d9648a47affba
| 99
|
py
|
Python
|
rpi_code/demo.py
|
utkalsahoo/eco_bin
|
b2199d2148ff8f4b55fdcb4f010adea55dbb607d
|
[
"MIT"
] | 8
|
2019-09-23T16:49:12.000Z
|
2021-12-15T19:28:28.000Z
|
rpi_code/demo.py
|
utkalsahoo/eco_bin
|
b2199d2148ff8f4b55fdcb4f010adea55dbb607d
|
[
"MIT"
] | null | null | null |
rpi_code/demo.py
|
utkalsahoo/eco_bin
|
b2199d2148ff8f4b55fdcb4f010adea55dbb607d
|
[
"MIT"
] | 5
|
2019-04-20T11:24:02.000Z
|
2021-02-24T21:58:30.000Z
|
import LCD
from time import *
mylcd =LCD.lcd()
mylcd.lcd_display_string("Hello World!"+"dd", 1)
| 12.375
| 48
| 0.707071
| 16
| 99
| 4.25
| 0.6875
| 0.235294
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011765
| 0.141414
| 99
| 7
| 49
| 14.142857
| 0.788235
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d739f4a4553e4c4246d27b57b6b84a268228ea41
| 1,971
|
py
|
Python
|
sdk/python/pulumi_azure_native/signalrservice/__init__.py
|
polivbr/pulumi-azure-native
|
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
|
[
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_azure_native/signalrservice/__init__.py
|
polivbr/pulumi-azure-native
|
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
|
[
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_azure_native/signalrservice/__init__.py
|
polivbr/pulumi-azure-native
|
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
|
[
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from .. import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .get_signal_r import *
from .get_signal_r_private_endpoint_connection import *
from .get_signal_r_shared_private_link_resource import *
from .list_signal_r_keys import *
from .signal_r import *
from .signal_r_private_endpoint_connection import *
from .signal_r_shared_private_link_resource import *
from ._inputs import *
from . import outputs
# Make subpackages available:
if typing.TYPE_CHECKING:
import pulumi_azure_native.signalrservice.v20180301preview as __v20180301preview
v20180301preview = __v20180301preview
import pulumi_azure_native.signalrservice.v20181001 as __v20181001
v20181001 = __v20181001
import pulumi_azure_native.signalrservice.v20200501 as __v20200501
v20200501 = __v20200501
import pulumi_azure_native.signalrservice.v20200701preview as __v20200701preview
v20200701preview = __v20200701preview
import pulumi_azure_native.signalrservice.v20210401preview as __v20210401preview
v20210401preview = __v20210401preview
import pulumi_azure_native.signalrservice.v20210601preview as __v20210601preview
v20210601preview = __v20210601preview
else:
v20180301preview = _utilities.lazy_import('pulumi_azure_native.signalrservice.v20180301preview')
v20181001 = _utilities.lazy_import('pulumi_azure_native.signalrservice.v20181001')
v20200501 = _utilities.lazy_import('pulumi_azure_native.signalrservice.v20200501')
v20200701preview = _utilities.lazy_import('pulumi_azure_native.signalrservice.v20200701preview')
v20210401preview = _utilities.lazy_import('pulumi_azure_native.signalrservice.v20210401preview')
v20210601preview = _utilities.lazy_import('pulumi_azure_native.signalrservice.v20210601preview')
| 48.073171
| 100
| 0.825977
| 218
| 1,971
| 7.055046
| 0.302752
| 0.093628
| 0.13264
| 0.179454
| 0.578674
| 0.555267
| 0.304291
| 0.054616
| 0
| 0
| 0
| 0.165711
| 0.11517
| 1,971
| 40
| 101
| 49.275
| 0.71617
| 0.117199
| 0
| 0
| 1
| 0
| 0.168494
| 0.168494
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d73da25c8146a8405fb0ca2ec5cce9e0eb83c414
| 166
|
py
|
Python
|
pulso/wsgi.py
|
walison17/pulso-api
|
b9edfc3f6042676dbdb50d7efcdb461a19ea90ed
|
[
"MIT"
] | null | null | null |
pulso/wsgi.py
|
walison17/pulso-api
|
b9edfc3f6042676dbdb50d7efcdb461a19ea90ed
|
[
"MIT"
] | null | null | null |
pulso/wsgi.py
|
walison17/pulso-api
|
b9edfc3f6042676dbdb50d7efcdb461a19ea90ed
|
[
"MIT"
] | null | null | null |
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pulso.settings")
application = get_wsgi_application()
| 20.75
| 65
| 0.825301
| 22
| 166
| 5.954545
| 0.590909
| 0.10687
| 0.274809
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.084337
| 166
| 7
| 66
| 23.714286
| 0.861842
| 0
| 0
| 0
| 0
| 0
| 0.216867
| 0.13253
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d74ef86870653677fd70fe8c252e8e17faa4b493
| 308
|
py
|
Python
|
haven/haven_share/gdrive_share.py
|
mariatippler/haven-ai
|
2a6c88922b504f382d270eded34232d6ac9f0226
|
[
"Apache-2.0"
] | 145
|
2020-09-26T06:49:09.000Z
|
2022-03-08T12:15:52.000Z
|
haven/haven_share/gdrive_share.py
|
mariatippler/haven-ai
|
2a6c88922b504f382d270eded34232d6ac9f0226
|
[
"Apache-2.0"
] | 24
|
2020-10-02T14:58:12.000Z
|
2021-09-04T10:51:10.000Z
|
haven/haven_share/gdrive_share.py
|
mariatippler/haven-ai
|
2a6c88922b504f382d270eded34232d6ac9f0226
|
[
"Apache-2.0"
] | 30
|
2020-09-26T06:49:23.000Z
|
2022-01-31T03:18:09.000Z
|
def download(url, path=None, cached=True):
import gdown
# kitti_url = 'https://drive.google.com/uc?id=1QHvE8oHlHqXB97RHlulLuWCmleE0wZ8B'
# kitti_out = 'kitti.tar.bz2'
gdown.cached_download(url, path=path, quiet=False, proxy=False, postprocess=gdown.extractall)
# tar -xvjf kitti.tar.bz2
| 38.5
| 97
| 0.724026
| 41
| 308
| 5.365854
| 0.634146
| 0.1
| 0.136364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.030303
| 0.142857
| 308
| 7
| 98
| 44
| 0.80303
| 0.422078
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d75c5d4cbd4361b9037ed4c4907cd5f839aea198
| 303
|
py
|
Python
|
emukit/quadrature/measures/__init__.py
|
EmuKit/Emukit
|
2df951e42c82400192220eb18af428f3eb764f6c
|
[
"Apache-2.0"
] | null | null | null |
emukit/quadrature/measures/__init__.py
|
EmuKit/Emukit
|
2df951e42c82400192220eb18af428f3eb764f6c
|
[
"Apache-2.0"
] | null | null | null |
emukit/quadrature/measures/__init__.py
|
EmuKit/Emukit
|
2df951e42c82400192220eb18af428f3eb764f6c
|
[
"Apache-2.0"
] | null | null | null |
"""Integration measures."""
from .domain import BoxDomain
from .gaussian_measure import IsotropicGaussianMeasure
from .integration_measure import IntegrationMeasure
from .uniform_measure import UniformMeasure
__all__ = ["BoxDomain", "IntegrationMeasure", "UniformMeasure", "IsotropicGaussianMeasure"]
| 33.666667
| 91
| 0.831683
| 26
| 303
| 9.423077
| 0.5
| 0.159184
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085809
| 303
| 8
| 92
| 37.875
| 0.884477
| 0.069307
| 0
| 0
| 0
| 0
| 0.235507
| 0.086957
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d763b87f5b2ab7aeb700f208ea3812f85ea3f656
| 113
|
py
|
Python
|
nomenclateUI/platforms/platform_registry.py
|
AndresMWeber/NomenclateUI
|
0a96baa1268e7c6d72b8facb68cb50df9a520dfb
|
[
"MIT"
] | null | null | null |
nomenclateUI/platforms/platform_registry.py
|
AndresMWeber/NomenclateUI
|
0a96baa1268e7c6d72b8facb68cb50df9a520dfb
|
[
"MIT"
] | null | null | null |
nomenclateUI/platforms/platform_registry.py
|
AndresMWeber/NomenclateUI
|
0a96baa1268e7c6d72b8facb68cb50df9a520dfb
|
[
"MIT"
] | null | null | null |
REGISTERED_PLATFORMS = {}
def register_class(cls):
REGISTERED_PLATFORMS[cls.BASENAME] = cls
return cls
| 16.142857
| 44
| 0.734513
| 13
| 113
| 6.153846
| 0.615385
| 0.475
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.176991
| 113
| 6
| 45
| 18.833333
| 0.860215
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d77a250bff094ced76a23ecc98e90ff473321e4c
| 5,274
|
py
|
Python
|
python/test_segment.py
|
t11230/utils
|
5706ca4d2e7da2ae069545c461fc099fdea34e0c
|
[
"MIT"
] | null | null | null |
python/test_segment.py
|
t11230/utils
|
5706ca4d2e7da2ae069545c461fc099fdea34e0c
|
[
"MIT"
] | null | null | null |
python/test_segment.py
|
t11230/utils
|
5706ca4d2e7da2ae069545c461fc099fdea34e0c
|
[
"MIT"
] | null | null | null |
import struct
from io import BytesIO
from unittest import TestCase
from memory_patcher import Segment, InvalidAddressException, WriteException
class TestSegment(TestCase):
def test_addr_to_segment_offset(self):
s = Segment(0, 0x100)
self.assertEqual(s.addr_to_segment_offset(0), 0)
self.assertEqual(s.addr_to_segment_offset(0x10), 0x10)
self.assertEqual(s.addr_to_segment_offset(0x100), 0x100)
self.assertRaises(InvalidAddressException,
lambda: s.addr_to_segment_offset(-1))
self.assertRaises(InvalidAddressException,
lambda: s.addr_to_segment_offset(0x101))
s = Segment(0x100, 0x100)
self.assertEqual(s.addr_to_segment_offset(0x100), 0)
self.assertEqual(s.addr_to_segment_offset(0x110), 0x10)
self.assertEqual(s.addr_to_segment_offset(0x100+0x100), 0x100)
self.assertRaises(InvalidAddressException,
lambda: s.addr_to_segment_offset(-1))
self.assertRaises(InvalidAddressException,
lambda: s.addr_to_segment_offset(0))
self.assertRaises(InvalidAddressException,
lambda: s.addr_to_segment_offset(0x100 + 0x101))
def test_load_stream(self):
data = struct.pack('<8B', *range(8))
s = Segment(0, 0x100)
s.load_stream(BytesIO(data))
self.assertEqual(s.data, data)
s = Segment(0, 0x0)
self.assertRaises(IndexError, lambda: s.load_stream(BytesIO(data)))
self.assertEqual(s.data, b'')
s = Segment(0, 0x7)
self.assertRaises(IndexError, lambda: s.load_stream(BytesIO(data)))
self.assertEqual(s.data, b'')
s = Segment(0x100, 0x8)
s.load_stream(BytesIO(data))
self.assertEqual(s.data, data)
def test_save_stream(self):
data = struct.pack('<8B', *range(8))
s = Segment(0, 0x10)
stream = BytesIO()
s.save_stream(stream)
self.assertEqual(s.data, stream.getvalue())
s = Segment(0, 0x10)
s.data = data
stream = BytesIO()
s.save_stream(stream)
self.assertEqual(s.data, stream.getvalue())
def test_read(self):
data = struct.pack('<8B', *range(8))
s = Segment(0, 0x10)
s.data = data
self.assertEqual(s.read(0, 8), data)
self.assertEqual(s.read(0, 1), data[0])
self.assertEqual(s.read(4, 4), data[4:])
self.assertRaises(IndexError, lambda: s.read(-1, 4))
self.assertRaises(IndexError, lambda: s.read(6, 4))
self.assertRaises(IndexError, lambda: s.read(9, 4))
def test_write(self):
data = struct.pack('<8B', *range(8))
write_data = struct.pack('<4B', *range(4)[::-1])
s = Segment(0, 0x10)
s.data = data
self.assertEqual(s.write(0, write_data), data[0:4])
self.assertEqual(s.data, write_data + data[4:])
s = Segment(0, 0x10)
s.data = data
self.assertEqual(s.write(4, write_data), data[4:8])
self.assertEqual(s.data, data[:4] + write_data)
s = Segment(0, 0x10)
s.data = data
self.assertRaises(IndexError, lambda: s.write(-1, write_data))
self.assertRaises(IndexError, lambda: s.write(6, write_data))
self.assertRaises(IndexError, lambda: s.write(9, write_data))
s = Segment(0, 0x10, writeable=False)
s.data = data
self.assertRaises(WriteException, lambda: s.write(0, write_data))
def test_insert(self):
data = struct.pack('<8B', *range(8))
insert_data = struct.pack('<4B', *range(4)[::-1])
s = Segment(0, 0x10)
s.data = data
self.assertEqual(s.insert(0, insert_data), 0 + len(insert_data))
self.assertEqual(s.data, insert_data + data)
s = Segment(0, 0x10)
s.data = data
self.assertEqual(s.insert(6, insert_data), 6 + len(insert_data))
self.assertEqual(s.data, data[0:6] + insert_data + data[6:8])
s = Segment(0, 0x10)
s.data = data
self.assertEqual(s.insert(8, insert_data), 8 + len(insert_data))
self.assertEqual(s.data, data[0:8] + insert_data)
s = Segment(0, 0x10)
s.data = data
self.assertRaises(IndexError, lambda: s.insert(-1, insert_data))
self.assertRaises(IndexError, lambda: s.insert(9, insert_data))
s = Segment(0, 0x10, writeable=False)
s.data = data
self.assertRaises(WriteException, lambda: s.insert(0, insert_data))
def test_cut(self):
data = struct.pack('<8B', *range(8))
s = Segment(0, 0x10)
s.data = data
self.assertEqual(s.cut(0, 4), data[0:4])
self.assertEqual(s.data, data[4:8])
s = Segment(0, 0x10)
s.data = data
self.assertEqual(s.cut(6, 2), data[6:8])
self.assertEqual(s.data, data[0:6])
s = Segment(0, 0x10)
s.data = data
self.assertRaises(IndexError, lambda: s.cut(-1, 4))
self.assertRaises(IndexError, lambda: s.cut(6, 4))
self.assertRaises(IndexError, lambda: s.cut(9, 4))
s = Segment(0, 0x10, writeable=False)
s.data = data
self.assertRaises(WriteException, lambda: s.cut(0, 4))
| 36.372414
| 75
| 0.605423
| 693
| 5,274
| 4.500722
| 0.080808
| 0.139468
| 0.148766
| 0.102597
| 0.854441
| 0.832639
| 0.802501
| 0.663995
| 0.58352
| 0.537031
| 0
| 0.058357
| 0.259196
| 5,274
| 144
| 76
| 36.625
| 0.739954
| 0
| 0
| 0.508475
| 0
| 0
| 0.004551
| 0
| 0
| 0
| 0.030338
| 0
| 0.423729
| 1
| 0.059322
| false
| 0
| 0.033898
| 0
| 0.101695
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d78ea862263ba897ff0ab1f8bc3d4d54827debf2
| 5,420
|
py
|
Python
|
tests/api/test_3_add_email.py
|
jonzxz/project-piscator
|
588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef
|
[
"MIT"
] | null | null | null |
tests/api/test_3_add_email.py
|
jonzxz/project-piscator
|
588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef
|
[
"MIT"
] | null | null | null |
tests/api/test_3_add_email.py
|
jonzxz/project-piscator
|
588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef
|
[
"MIT"
] | 1
|
2021-02-18T03:08:21.000Z
|
2021-02-18T03:08:21.000Z
|
from test_2_authentication import login
from app.models.EmailAddress import EmailAddress
from app.utils.FileUtils import get_server_mail_cred
from app.utils.DBUtils import get_email_address_by_address
from app.utils.DBUtils import get_email_id_by_mail_address
import pytest
def add_mail(client, email, password):
return client.post(
'/dashboard/add_email', data={
'email_address' : email,
'password' : password
},
follow_redirects=True
)
def enable_disable_mail(client, mail_id):
return client.get('/dashboard/emails/activation/{}'.format(mail_id), follow_redirects=True)
def enable_disable_notif(client, mail_id):
return client.get('/dashboard/emails/notif/{}'.format(mail_id), follow_redirects=True)
def detection_check(client, mail_id):
return client.get('/dashboard/emails/phish/{}'.format(mail_id), follow_redirects=True)
def detection_history(client, mail_id):
return client.get('/dashboard/emails/history/{}'.format(mail_id), follow_redirects=True)
# Test invalid add email with invalid email address
# Assert HTTP code, assert database entry, assert new mail displayed in page
def test_invalid_add_mail(client, db):
USERNAME = 'testuser123'
PASSWORD = 'password'
EMAIL_ADDR = 'testuser@test.com'
EMAIL_PASSWORD = 'password'
login(client, USERNAME, PASSWORD)
response = add_mail(client, EMAIL_ADDR, EMAIL_PASSWORD)
assert response.status_code == 200
assert b'Unable to connect to mailbox.' in response.data
# Test invalid add email with invalid password
def test_invalid_add_mail_password(client, db):
USERNAME = 'testuser123'
PASSWORD = 'password'
MAIL_CREDS = get_server_mail_cred()
EMAIL_ADDR = MAIL_CREDS[0]
EMAIL_PASSWORD = 'password'
login(client, USERNAME, PASSWORD)
response = add_mail(client, EMAIL_ADDR, EMAIL_PASSWORD)
assert response.status_code == 200
assert b'Unable to connect to mailbox.' in response.data
# Test valid add email address
def test_valid_add_mail(client, db):
USERNAME = 'testuser123'
PASSWORD = 'password'
MAIL_CREDS = get_server_mail_cred()
EMAIL_ADDR = MAIL_CREDS[0]
EMAIL_PASSWORD = MAIL_CREDS[1]
login(client, USERNAME, PASSWORD)
response = add_mail(client, EMAIL_ADDR, EMAIL_PASSWORD)
assert response.status_code == 200
assert get_email_address_by_address(EMAIL_ADDR)
assert b'piscator.fisherman@gmail.com' in response.data
# Test invalid add email with existing email address
def test_valid_add_existing_mail(client, db):
USERNAME = 'testuser123'
PASSWORD = 'password'
MAIL_CREDS = get_server_mail_cred()
EMAIL_ADDR = MAIL_CREDS[0]
EMAIL_PASSWORD = MAIL_CREDS[1]
login(client, USERNAME, PASSWORD)
response = add_mail(client, EMAIL_ADDR, EMAIL_PASSWORD)
assert response.status_code == 200
assert b'piscator.fisherman@gmail.com already exist in our database!' in response.data
# Test phishing check for added email address
def test_check_email(client, db):
USERNAME = 'testuser123'
PASSWORD = 'password'
MAIL_CREDS = get_server_mail_cred()
EMAIL_ADDR = MAIL_CREDS[0]
login(client, USERNAME, PASSWORD)
mail_id = get_email_id_by_mail_address(EMAIL_ADDR)
response = detection_check(client, mail_id)
assert response.status_code == 200
assert b'Detection Results' in response.data
# Test accessing detection history for added email address
def test_detection_history(client, db):
USERNAME = 'testuser123'
PASSWORD = 'password'
MAIL_CREDS = get_server_mail_cred()
EMAIL_ADDR = MAIL_CREDS[0]
login(client, USERNAME, PASSWORD)
mail_id = get_email_id_by_mail_address(EMAIL_ADDR)
response = detection_history(client, mail_id)
assert response.status_code == 200
assert b'Detection History' in response.data
# Test disabling and enabling an email address
def test_valid_disable_enable_mail(client, db):
USERNAME = 'testuser123'
PASSWORD = 'password'
MAIL_CREDS = get_server_mail_cred()
EMAIL_ADDR = MAIL_CREDS[0]
login(client, USERNAME, PASSWORD)
mail_id = get_email_id_by_mail_address(EMAIL_ADDR)
response = enable_disable_mail(client, mail_id)
updated_status = get_email_address_by_address('piscator.fisherman@gmail.com')\
.get_active_status()
assert response.status_code == 200
assert updated_status == False
response = enable_disable_mail(client, mail_id)
updated_status = get_email_address_by_address('piscator.fisherman@gmail.com')\
.get_active_status()
assert response.status_code == 200
assert updated_status == True
# Test valid disabling and enabling email address notification preference
def test_valid_disable_enable_daily_notif(client, db):
USERNAME = 'testuser123'
PASSWORD = 'password'
MAIL_CREDS = get_server_mail_cred()
EMAIL_ADDR = MAIL_CREDS[0]
login(client, USERNAME, PASSWORD)
mail_id = get_email_id_by_mail_address(EMAIL_ADDR)
response = enable_disable_notif(client, mail_id)
updated_pref = get_email_address_by_address('piscator.fisherman@gmail.com')\
.get_notification_pref()
assert response.status_code == 200
assert updated_pref == True
response = enable_disable_notif(client, mail_id)
updated_pref = get_email_address_by_address('piscator.fisherman@gmail.com')\
.get_notification_pref()
assert response.status_code == 200
assert updated_pref == False
| 36.133333
| 95
| 0.752214
| 730
| 5,420
| 5.290411
| 0.128767
| 0.027965
| 0.031072
| 0.062144
| 0.82522
| 0.783532
| 0.705334
| 0.679441
| 0.585448
| 0.585448
| 0
| 0.014088
| 0.161808
| 5,420
| 149
| 96
| 36.375839
| 0.836011
| 0.086162
| 0
| 0.637931
| 0
| 0
| 0.127048
| 0.056443
| 0
| 0
| 0
| 0
| 0.181034
| 1
| 0.112069
| false
| 0.232759
| 0.051724
| 0.043103
| 0.206897
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
ad4667d16dfce7738c1eb01d294d01aceeb8beeb
| 1,565
|
py
|
Python
|
src/tests/v113/test_convert_model_into_dict.py
|
isaacna/FireO
|
749132d9d7fc7d361ff4cbc86d9c8e02c096aec2
|
[
"Apache-2.0"
] | 231
|
2019-10-27T10:52:54.000Z
|
2022-03-22T10:25:21.000Z
|
src/tests/v113/test_convert_model_into_dict.py
|
isaacna/FireO
|
749132d9d7fc7d361ff4cbc86d9c8e02c096aec2
|
[
"Apache-2.0"
] | 97
|
2019-10-26T09:21:47.000Z
|
2022-03-26T04:41:57.000Z
|
src/tests/v113/test_convert_model_into_dict.py
|
isaacna/FireO
|
749132d9d7fc7d361ff4cbc86d9c8e02c096aec2
|
[
"Apache-2.0"
] | 34
|
2019-10-30T18:57:05.000Z
|
2022-02-14T17:07:02.000Z
|
from fireo.fields import TextField, NestedModel
from fireo.models import Model
def test_simplet_model_convert_into_dict():
class ConvertModelIntoDict(Model):
name = TextField()
c = ConvertModelIntoDict()
c.name = 'Azeem'
c.save()
adict = c.to_dict()
assert adict['name'] == 'Azeem'
def test_check_after_saving_model_convert_into_dict():
class ConvertModelIntoDict(Model):
name = TextField()
c = ConvertModelIntoDict()
c.name = 'Azeem'
c.save()
c2 = ConvertModelIntoDict.collection.get(c.key)
adict = c2.to_dict()
assert adict['name'] == 'Azeem'
def test_nested_model_to_dict():
class NestedParent(Model):
name = TextField()
class ConvertModelIntoDict(Model):
name = TextField()
nested_parent = NestedModel(NestedParent)
c = ConvertModelIntoDict()
c.name = 'Azeem'
c.nested_parent.name = 'nested parent'
c.save()
adict = c.to_dict()
assert adict['name'] == 'Azeem'
nested_dict = adict['nested_parent']
assert nested_dict['name'] == 'nested parent'
def test_nested_model_default_args_to_dict():
class NestedParent(Model):
name = TextField(default='default parent')
class ConvertModelIntoDict(Model):
name = TextField()
nested_parent = NestedModel(NestedParent)
c = ConvertModelIntoDict()
c.name = 'Azeem'
c.save()
adict = c.to_dict()
assert adict['name'] == 'Azeem'
nested_dict = adict['nested_parent']
assert nested_dict['name'] == 'default parent'
| 21.736111
| 54
| 0.658147
| 176
| 1,565
| 5.653409
| 0.198864
| 0.072362
| 0.108543
| 0.136683
| 0.742714
| 0.742714
| 0.742714
| 0.660302
| 0.620101
| 0.620101
| 0
| 0.001646
| 0.223642
| 1,565
| 72
| 55
| 21.736111
| 0.817284
| 0
| 0
| 0.73913
| 0
| 0
| 0.091954
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 1
| 0.086957
| false
| 0
| 0.043478
| 0
| 0.434783
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ad5bdc43b7a0172eb61f0ed4d473202ee86e4100
| 134
|
py
|
Python
|
EHVA/DreamPhotonicsConfig.py
|
seanlam97/SiEPIC_Photonics_Package
|
3424802f4db60b71d815a681a47d9af689566e0d
|
[
"MIT"
] | null | null | null |
EHVA/DreamPhotonicsConfig.py
|
seanlam97/SiEPIC_Photonics_Package
|
3424802f4db60b71d815a681a47d9af689566e0d
|
[
"MIT"
] | null | null | null |
EHVA/DreamPhotonicsConfig.py
|
seanlam97/SiEPIC_Photonics_Package
|
3424802f4db60b71d815a681a47d9af689566e0d
|
[
"MIT"
] | null | null | null |
server = "ehvademo1.c1vezjv4mokk.us-east-2.rds.amazonaws.com"
user = "DreamPhotonics"
password = "DP123$"
database = "dream_photonics"
| 33.5
| 61
| 0.768657
| 16
| 134
| 6.375
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.056911
| 0.08209
| 134
| 4
| 62
| 33.5
| 0.772358
| 0
| 0
| 0
| 0
| 0
| 0.62963
| 0.37037
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.25
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
ad62f52b88db566533c06117065d2f150da18dfc
| 120
|
py
|
Python
|
tests/unit/__init__.py
|
DavidCary/CA-SB1288
|
40516440aefef745e783ecd57711d5e6925975c5
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/__init__.py
|
DavidCary/CA-SB1288
|
40516440aefef745e783ecd57711d5e6925975c5
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/__init__.py
|
DavidCary/CA-SB1288
|
40516440aefef745e783ecd57711d5e6925975c5
|
[
"Apache-2.0"
] | null | null | null |
# -*- encoding=utf-8 -*-
# Copyright 2016 David Cary; licensed under the Apache License, Version 2.0
"""
Unit tests
"""
| 20
| 75
| 0.675
| 17
| 120
| 4.764706
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.07
| 0.166667
| 120
| 5
| 76
| 24
| 0.74
| 0.9
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ad9143264b0a43b438d03331d5731de9faaf1c15
| 30
|
py
|
Python
|
lang/Python/currying-2.py
|
ethansaxenian/RosettaDecode
|
8ea1a42a5f792280b50193ad47545d14ee371fb7
|
[
"MIT"
] | null | null | null |
lang/Python/currying-2.py
|
ethansaxenian/RosettaDecode
|
8ea1a42a5f792280b50193ad47545d14ee371fb7
|
[
"MIT"
] | null | null | null |
lang/Python/currying-2.py
|
ethansaxenian/RosettaDecode
|
8ea1a42a5f792280b50193ad47545d14ee371fb7
|
[
"MIT"
] | null | null | null |
add2 = addN(2)
add2
add2(7)
9
| 6
| 14
| 0.633333
| 7
| 30
| 2.714286
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 0.2
| 30
| 4
| 15
| 7.5
| 0.541667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ad9cfd53704927494ad304edeca982ab30cc4820
| 321
|
py
|
Python
|
tests/utils.py
|
guillaume-humbert/marshmallow-sqlalchemy
|
2476af2540de9a42761baea0d6cf9a5b3ff99eb7
|
[
"MIT"
] | null | null | null |
tests/utils.py
|
guillaume-humbert/marshmallow-sqlalchemy
|
2476af2540de9a42761baea0d6cf9a5b3ff99eb7
|
[
"MIT"
] | null | null | null |
tests/utils.py
|
guillaume-humbert/marshmallow-sqlalchemy
|
2476af2540de9a42761baea0d6cf9a5b3ff99eb7
|
[
"MIT"
] | null | null | null |
import marshmallow
from marshmallow import fields
MARSHMALLOW_VERSION_INFO = tuple(
[int(part) for part in marshmallow.__version__.split(".") if part.isdigit()]
)
def unpack(return_value):
return return_value.data if MARSHMALLOW_VERSION_INFO[0] < 3 else return_value
class MyDateField(fields.Date):
pass
| 21.4
| 81
| 0.766355
| 43
| 321
| 5.465116
| 0.604651
| 0.229787
| 0.187234
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007299
| 0.146417
| 321
| 14
| 82
| 22.928571
| 0.850365
| 0
| 0
| 0
| 0
| 0
| 0.003115
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0.111111
| 0.222222
| 0.111111
| 0.555556
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
|
0
| 4
|
a8dbc0fe1e1444c84d86ee4d298eed18389bc644
| 108
|
py
|
Python
|
ch_python/def_mul.py
|
yehnan/rpi_book_yehnan
|
fbafcfce076677da441d65a3cf3b0073d65f77cc
|
[
"MIT"
] | 3
|
2015-12-22T14:27:43.000Z
|
2021-03-13T01:24:18.000Z
|
ch_python/def_mul.py
|
KingBing/rpi_book_yehnan
|
fbafcfce076677da441d65a3cf3b0073d65f77cc
|
[
"MIT"
] | null | null | null |
ch_python/def_mul.py
|
KingBing/rpi_book_yehnan
|
fbafcfce076677da441d65a3cf3b0073d65f77cc
|
[
"MIT"
] | 2
|
2015-10-31T16:59:53.000Z
|
2018-01-23T09:36:25.000Z
|
#!/usr/bin/env python
def times(x, y):
return x * y
z = times(2, 3)
print("2 times 3 is " + str(z));
| 12
| 32
| 0.546296
| 22
| 108
| 2.681818
| 0.681818
| 0.067797
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.049383
| 0.25
| 108
| 8
| 33
| 13.5
| 0.679012
| 0.185185
| 0
| 0
| 0
| 0
| 0.151163
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0.25
| 0.5
| 0.25
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
a8ede3bdf51aeb17dd862db5cf94ba84155756f5
| 355
|
py
|
Python
|
spikeforest/sf_batch/__init__.py
|
tjd2002/spikeforest2
|
2e393564b858b2995aa2ccccd9bd73065681b5de
|
[
"Apache-2.0"
] | null | null | null |
spikeforest/sf_batch/__init__.py
|
tjd2002/spikeforest2
|
2e393564b858b2995aa2ccccd9bd73065681b5de
|
[
"Apache-2.0"
] | null | null | null |
spikeforest/sf_batch/__init__.py
|
tjd2002/spikeforest2
|
2e393564b858b2995aa2ccccd9bd73065681b5de
|
[
"Apache-2.0"
] | null | null | null |
# from .sf_batch import sf_batch_prepare, sf_batch_run, sf_batch_assemble
from .sf_summarize_recording import sf_summarize_recording
from .sf_sort_recording import sf_sort_recording
# from .sf_batch2 import clear_job_results, download_recordings, run_jobs, assemble_job_results
from .compute_units_info import compute_units_info, select_units_on_channels
| 59.166667
| 95
| 0.884507
| 55
| 355
| 5.181818
| 0.418182
| 0.084211
| 0.140351
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003058
| 0.078873
| 355
| 5
| 96
| 71
| 0.868502
| 0.464789
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d11522d498892af13d8559a56916cf32443a4a08
| 226
|
py
|
Python
|
admin/admin_blueprint.py
|
jesseinit/feather-insure
|
69222d9302662cbcd85b402c27b7f6951d2f18a0
|
[
"MIT"
] | null | null | null |
admin/admin_blueprint.py
|
jesseinit/feather-insure
|
69222d9302662cbcd85b402c27b7f6951d2f18a0
|
[
"MIT"
] | null | null | null |
admin/admin_blueprint.py
|
jesseinit/feather-insure
|
69222d9302662cbcd85b402c27b7f6951d2f18a0
|
[
"MIT"
] | null | null | null |
from flask import Blueprint
from admin.admin_model import Plans
admin_blueprint = Blueprint("admin_blueprint", __name__, url_prefix="/api/v1/admin")
# This file is just to allow the admin extension detect the imported model
| 32.285714
| 84
| 0.80531
| 34
| 226
| 5.117647
| 0.647059
| 0.16092
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005076
| 0.128319
| 226
| 6
| 85
| 37.666667
| 0.878173
| 0.318584
| 0
| 0
| 0
| 0
| 0.184211
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0.666667
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
|
0
| 4
|
d13630a8a61743b83690eb19a05cef96a698f1af
| 168
|
py
|
Python
|
app/engine/ReturnFig/TwoEleCom.py
|
normidar/py-visibility-coding-alpha
|
479d0c928f325178fc383dc1af0014cdf9771d1d
|
[
"MIT"
] | null | null | null |
app/engine/ReturnFig/TwoEleCom.py
|
normidar/py-visibility-coding-alpha
|
479d0c928f325178fc383dc1af0014cdf9771d1d
|
[
"MIT"
] | null | null | null |
app/engine/ReturnFig/TwoEleCom.py
|
normidar/py-visibility-coding-alpha
|
479d0c928f325178fc383dc1af0014cdf9771d1d
|
[
"MIT"
] | null | null | null |
from .ReturnFig import ReturnFig
# 所有的二元运算(+-*/<>^or and%等等)
class TwoEleCom(ReturnFig):
first_element:ReturnFig
second_element:ReturnFig
compute_type:str
| 21
| 32
| 0.744048
| 20
| 168
| 6.1
| 0.75
| 0.262295
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.14881
| 168
| 7
| 33
| 24
| 0.853147
| 0.14881
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.2
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d1504a6c598f01683e237f030eff33e9dcbafd42
| 379
|
py
|
Python
|
lib/ControllerStatusGet/EmControllerStatusGetTimeKeep.py
|
multi-service-fabric/element-manager
|
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
|
[
"Apache-2.0"
] | null | null | null |
lib/ControllerStatusGet/EmControllerStatusGetTimeKeep.py
|
multi-service-fabric/element-manager
|
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
|
[
"Apache-2.0"
] | null | null | null |
lib/ControllerStatusGet/EmControllerStatusGetTimeKeep.py
|
multi-service-fabric/element-manager
|
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
|
[
"Apache-2.0"
] | 1
|
2020-04-02T01:17:43.000Z
|
2020-04-02T01:17:43.000Z
|
#! /usr/bin/env python
# _*_ coding: utf-8 _*_
# Copyright(c) 2019 Nippon Telegraph and Telephone Corporation
# Filename: EmControllerStatusGetTimeKeeo.py
from EmPeriodicProcessingTimeKeep import EmPeriodicProcessingTimeKeep
class EmControllerStatusGetTimeKeep(EmPeriodicProcessingTimeKeep):
'''
Time keeping for getting Controller status
'''
pass
| 29.153846
| 70
| 0.762533
| 32
| 379
| 8.90625
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015924
| 0.171504
| 379
| 12
| 71
| 31.583333
| 0.89172
| 0.503958
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 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
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
d15cd505ab7cb9feee819df75fe357df43d7328b
| 872
|
py
|
Python
|
resources/PyInstaller-3.0/tests/old_suite/import/test_onefile_zipimport.py
|
dvt32/mypymodoro
|
7d2db639ea828e4db9caa84cd6f747f542ab22d8
|
[
"MIT"
] | null | null | null |
resources/PyInstaller-3.0/tests/old_suite/import/test_onefile_zipimport.py
|
dvt32/mypymodoro
|
7d2db639ea828e4db9caa84cd6f747f542ab22d8
|
[
"MIT"
] | null | null | null |
resources/PyInstaller-3.0/tests/old_suite/import/test_onefile_zipimport.py
|
dvt32/mypymodoro
|
7d2db639ea828e4db9caa84cd6f747f542ab22d8
|
[
"MIT"
] | null | null | null |
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
from __future__ import print_function
# Test for zipimport - minimalistic, just import pgk_resource
import os
import sys
print(__name__, 'is running')
print('sys.path:', sys.path)
print('dir contents .exe:', os.listdir(os.path.dirname(sys.executable)))
print('-----------')
print('dir contents sys._MEIPASS:', os.listdir(sys._MEIPASS))
print('-----------')
print('now importing pkg_resources')
import pkg_resources
print("dir(pkg_resources)", dir(pkg_resources))
| 31.142857
| 78
| 0.608945
| 97
| 872
| 5.309278
| 0.56701
| 0.093204
| 0.062136
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005089
| 0.098624
| 872
| 27
| 79
| 32.296296
| 0.650127
| 0.512615
| 0
| 0.166667
| 0
| 0
| 0.3125
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.083333
| 0.416667
| 0
| 0.416667
| 0.75
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
|
0
| 4
|
66f8f80f9ad81b5b1750e06ca1e6f043e6bef02e
| 179
|
py
|
Python
|
website/core/forms.py
|
eltonjncorreia/news
|
dd5c3369b6f6677a67ae7772c4efca82c9e3bfca
|
[
"BSD-2-Clause"
] | null | null | null |
website/core/forms.py
|
eltonjncorreia/news
|
dd5c3369b6f6677a67ae7772c4efca82c9e3bfca
|
[
"BSD-2-Clause"
] | 10
|
2020-02-11T23:02:58.000Z
|
2022-02-11T03:41:09.000Z
|
website/core/forms.py
|
eltonjncorreia/news
|
dd5c3369b6f6677a67ae7772c4efca82c9e3bfca
|
[
"BSD-2-Clause"
] | null | null | null |
from django import forms
from website.core.models import Sugestao
class SugestaoModelForm(forms.ModelForm):
class Meta:
model = Sugestao
fields = '__all__'
| 17.9
| 41
| 0.709497
| 20
| 179
| 6.15
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.22905
| 179
| 9
| 42
| 19.888889
| 0.891304
| 0
| 0
| 0
| 0
| 0
| 0.039106
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
0f124ea25c93d998bbc2c4773e787bbf9aae9e64
| 92
|
py
|
Python
|
t3_faskes/apps.py
|
dnswd/SIRUCO
|
eb1dae3dbbae384ef53d7bd262c5977a13fad2ef
|
[
"Unlicense"
] | null | null | null |
t3_faskes/apps.py
|
dnswd/SIRUCO
|
eb1dae3dbbae384ef53d7bd262c5977a13fad2ef
|
[
"Unlicense"
] | null | null | null |
t3_faskes/apps.py
|
dnswd/SIRUCO
|
eb1dae3dbbae384ef53d7bd262c5977a13fad2ef
|
[
"Unlicense"
] | null | null | null |
from django.apps import AppConfig
class T3FaskesConfig(AppConfig):
name = 't3_faskes'
| 15.333333
| 33
| 0.76087
| 11
| 92
| 6.272727
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025974
| 0.163043
| 92
| 5
| 34
| 18.4
| 0.87013
| 0
| 0
| 0
| 0
| 0
| 0.097826
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
0f2562c4a1036a747553d66beb5576132d5328c0
| 72
|
py
|
Python
|
test/__init__.py
|
fredliporace/cbers-2-stac
|
c92924b19289e0896ee676064250f9c8a758b674
|
[
"Apache-2.0"
] | 11
|
2018-08-18T04:47:58.000Z
|
2021-12-10T18:12:30.000Z
|
test/__init__.py
|
fredliporace/cbers-2-stac
|
c92924b19289e0896ee676064250f9c8a758b674
|
[
"Apache-2.0"
] | 71
|
2018-06-07T14:29:58.000Z
|
2022-03-03T14:38:14.000Z
|
test/__init__.py
|
fredliporace/cbers-2-stac
|
c92924b19289e0896ee676064250f9c8a758b674
|
[
"Apache-2.0"
] | 1
|
2020-08-09T03:57:16.000Z
|
2020-08-09T03:57:16.000Z
|
"""
__ini__.py for test dir, needed to import conftest ENDPOINT_URL
"""
| 18
| 63
| 0.736111
| 11
| 72
| 4.363636
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152778
| 72
| 3
| 64
| 24
| 0.786885
| 0.875
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0f93761ba3a1a30410fc59cf008cbb28862f8ec7
| 83
|
py
|
Python
|
Web/field/farm/apps.py
|
Pancras-Zheng/Graduation-Project
|
5d1ae78d5e890fa7ecc2456d0d3d22bdea7c29f0
|
[
"MIT"
] | 37
|
2018-01-25T03:14:24.000Z
|
2021-12-15T10:02:37.000Z
|
farm/apps.py
|
qooiprww/condoService
|
d6d7b5694407fa70a1b4f65aa4d8009e474ed0bd
|
[
"MIT"
] | null | null | null |
farm/apps.py
|
qooiprww/condoService
|
d6d7b5694407fa70a1b4f65aa4d8009e474ed0bd
|
[
"MIT"
] | 10
|
2019-04-11T07:27:10.000Z
|
2021-11-24T11:16:14.000Z
|
from django.apps import AppConfig
class FarmConfig(AppConfig):
name = 'farm'
| 13.833333
| 33
| 0.73494
| 10
| 83
| 6.1
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.180723
| 83
| 5
| 34
| 16.6
| 0.897059
| 0
| 0
| 0
| 0
| 0
| 0.048193
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7e31a65f1dd8b9763f80cc4cdc5676361b26b56e
| 115
|
py
|
Python
|
src/python/__init__.py
|
AnzeXie/marius
|
db2cf14fdfcae469889fb3c8b2e92c4289463ea3
|
[
"Apache-2.0"
] | 81
|
2021-03-25T08:34:54.000Z
|
2022-03-04T15:56:05.000Z
|
src/python/__init__.py
|
AnzeXie/marius
|
db2cf14fdfcae469889fb3c8b2e92c4289463ea3
|
[
"Apache-2.0"
] | 45
|
2021-03-25T18:04:43.000Z
|
2021-12-14T18:41:47.000Z
|
src/python/__init__.py
|
rachit173/marius
|
c981482af29e6038e2477e634d46fd7cc4de4961
|
[
"Apache-2.0"
] | 20
|
2021-03-31T04:37:31.000Z
|
2022-02-25T21:36:05.000Z
|
import os
only_python = os.environ.get("MARIUS_ONLY_PYTHON", None)
if not only_python:
from ._pymarius import *
| 28.75
| 56
| 0.765217
| 18
| 115
| 4.611111
| 0.666667
| 0.361446
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.13913
| 115
| 4
| 57
| 28.75
| 0.838384
| 0
| 0
| 0
| 0
| 0
| 0.155172
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
7e455cc40b0bffb07fd75f6d4a9d666d89da3cca
| 219
|
py
|
Python
|
planner/date_util.py
|
Cooomma/JGC-practice-planner
|
6177b1d1767d1f4b99721603a335298c20e314a5
|
[
"MIT"
] | null | null | null |
planner/date_util.py
|
Cooomma/JGC-practice-planner
|
6177b1d1767d1f4b99721603a335298c20e314a5
|
[
"MIT"
] | null | null | null |
planner/date_util.py
|
Cooomma/JGC-practice-planner
|
6177b1d1767d1f4b99721603a335298c20e314a5
|
[
"MIT"
] | null | null | null |
from datetime import datetime
def parse_time(time_str: str) -> datetime:
return datetime.strptime(time_str, '%H:%M:%S')
def time_to_str(flight_time: datetime) -> str:
return flight_time.strftime('%H:%M:%S')
| 21.9
| 50
| 0.707763
| 34
| 219
| 4.352941
| 0.441176
| 0.094595
| 0.040541
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141553
| 219
| 9
| 51
| 24.333333
| 0.787234
| 0
| 0
| 0
| 0
| 0
| 0.073059
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0.2
| 0.4
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
7e4f90c9545fdb0f5df112e6358626c8b3dcaebd
| 878
|
py
|
Python
|
pythonlearn/Third-Module/Tornado/TEST_DEMOS/tests.py
|
yc19890920/Learn
|
3990e75b469225ba7b430539ef9a16abe89eb863
|
[
"Apache-2.0"
] | 1
|
2021-01-11T06:30:44.000Z
|
2021-01-11T06:30:44.000Z
|
pythonlearn/Third-Module/Tornado/TEST_DEMOS/tests.py
|
yc19890920/Learn
|
3990e75b469225ba7b430539ef9a16abe89eb863
|
[
"Apache-2.0"
] | 23
|
2020-02-12T02:35:49.000Z
|
2022-02-11T03:45:40.000Z
|
pythonlearn/Third-Module/Tornado/TEST_DEMOS/tests.py
|
yc19890920/Learn
|
3990e75b469225ba7b430539ef9a16abe89eb863
|
[
"Apache-2.0"
] | 2
|
2020-04-08T15:39:46.000Z
|
2020-10-10T10:13:09.000Z
|
# -*- coding: utf-8 -*-
#
import gevent.monkey
gevent.monkey.patch_all()
import time
import requests
def worker1():
url = "http://192.168.1.24:8000/i1"
r = requests.get(url)
print "---------------1: {}".format(len(r.text))
def worker2():
url = "http://192.168.1.24:8000/i2"
r = requests.get(url)
print "---------------2: {}".format(len(r.text))
def main():
gevent.joinall([
# gevent.spawn(worker1),
# gevent.spawn(worker1),
# gevent.spawn(worker1),
# gevent.spawn(worker1),
# gevent.spawn(worker1),
gevent.spawn(worker2),
gevent.spawn(worker2),
gevent.spawn(worker2),
gevent.spawn(worker2),
gevent.spawn(worker2),
])
if __name__ == '__main__':
T = time.time()
main()
print '------------', time.time() - T
| 21.414634
| 53
| 0.514806
| 99
| 878
| 4.474747
| 0.353535
| 0.248307
| 0.20316
| 0.27088
| 0.663657
| 0.496614
| 0.496614
| 0.406321
| 0.406321
| 0.406321
| 0
| 0.067398
| 0.273349
| 878
| 40
| 54
| 21.95
| 0.626959
| 0.154897
| 0
| 0.291667
| 0
| 0
| 0.164502
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.125
| null | null | 0.125
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7e89ee629dcdb976985ea77137da23ddbc6f40b6
| 223
|
py
|
Python
|
fab_deploy_tests/test_project3/test_project3/geo_app/models.py
|
erlaveri/django-fab-deploy
|
81e60d606c1a8c8eaedef540063a2dd944062900
|
[
"BSD-3-Clause"
] | null | null | null |
fab_deploy_tests/test_project3/test_project3/geo_app/models.py
|
erlaveri/django-fab-deploy
|
81e60d606c1a8c8eaedef540063a2dd944062900
|
[
"BSD-3-Clause"
] | null | null | null |
fab_deploy_tests/test_project3/test_project3/geo_app/models.py
|
erlaveri/django-fab-deploy
|
81e60d606c1a8c8eaedef540063a2dd944062900
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from django.contrib.gis.db import models
class TestGeoModel(models.Model):
location = models.PointField(geography=True)
objects = models.GeoManager()
| 24.777778
| 48
| 0.748879
| 27
| 223
| 6
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005208
| 0.139013
| 223
| 8
| 49
| 27.875
| 0.838542
| 0.09417
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7e903791440ba4262e4e1d8e443136de7d048a95
| 201
|
py
|
Python
|
layers/linear.py
|
rezer0dai/zer0nets
|
982fa69571478dc61c6110f3287fad94af6d4f2c
|
[
"MIT"
] | null | null | null |
layers/linear.py
|
rezer0dai/zer0nets
|
982fa69571478dc61c6110f3287fad94af6d4f2c
|
[
"MIT"
] | null | null | null |
layers/linear.py
|
rezer0dai/zer0nets
|
982fa69571478dc61c6110f3287fad94af6d4f2c
|
[
"MIT"
] | null | null | null |
import numpy as np
from feat_space import *
class Linear(FeatureSpace):
def name(self):
return "linear"
def signal(self, x):
return x
def prime(self, _):
return 1.
| 18.272727
| 27
| 0.606965
| 27
| 201
| 4.444444
| 0.666667
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007143
| 0.303483
| 201
| 10
| 28
| 20.1
| 0.85
| 0
| 0
| 0
| 0
| 0
| 0.029851
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.222222
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
0e31956870cfc6043040107ffa5d951b73560799
| 179
|
py
|
Python
|
CodeChef/highest_divisor.py
|
rayvantsahni/Competitive-Programming-Codes
|
39ba91b69ad8ce7dce554f7817c2f0d5545ef471
|
[
"MIT"
] | 1
|
2021-07-05T14:01:36.000Z
|
2021-07-05T14:01:36.000Z
|
CodeChef/highest_divisor.py
|
rayvantsahni/Competitive-Programming-and-Interview-Prep
|
39ba91b69ad8ce7dce554f7817c2f0d5545ef471
|
[
"MIT"
] | null | null | null |
CodeChef/highest_divisor.py
|
rayvantsahni/Competitive-Programming-and-Interview-Prep
|
39ba91b69ad8ce7dce554f7817c2f0d5545ef471
|
[
"MIT"
] | null | null | null |
# Problem Code: HDIVISR
def highest_divisor(n):
for i in range(10, 0, -1):
if not n % i:
return i
n = int(input())
print(highest_divisor(n))
| 17.9
| 30
| 0.536313
| 27
| 179
| 3.481481
| 0.740741
| 0.297872
| 0.319149
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.033898
| 0.340782
| 179
| 9
| 31
| 19.888889
| 0.762712
| 0.117318
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0
| 0
| 0.333333
| 0.166667
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0e438911958870872d0dfde60fe1a2c8ac17991c
| 1,129
|
py
|
Python
|
backend/tradersplatform/portfolio/models.py
|
ybedirhanpak/bounswe2019group1
|
9572fd307345b3f842c2c2ff4426857086484ed5
|
[
"MIT"
] | 10
|
2019-02-14T14:53:49.000Z
|
2019-10-23T08:03:39.000Z
|
backend/tradersplatform/portfolio/models.py
|
ybedirhanpak/bounswe2019group1
|
9572fd307345b3f842c2c2ff4426857086484ed5
|
[
"MIT"
] | 364
|
2019-02-14T14:50:12.000Z
|
2022-02-10T13:43:09.000Z
|
backend/tradersplatform/portfolio/models.py
|
bounswe/bounswe2019group1
|
9572fd307345b3f842c2c2ff4426857086484ed5
|
[
"MIT"
] | 8
|
2019-05-05T20:04:31.000Z
|
2020-12-24T16:44:54.000Z
|
from django.db import models
# Create your models here.
from myuser.models import TemplateUser
class Portfolio(models.Model):
owner = models.ForeignKey(TemplateUser, on_delete=models.CASCADE, default='')
name = models.CharField(max_length=300, blank=True, null=True, unique=False, default='default')
is_shared = models.BooleanField(default=True)
BTC = models.BooleanField(default=False)
ETH = models.BooleanField(default=False)
LTC = models.BooleanField(default=False)
XAG = models.BooleanField(default=False)
XAU = models.BooleanField(default=False)
GOOGL = models.BooleanField(default=False)
AAPL = models.BooleanField(default=False)
GM = models.BooleanField(default=False)
EUR = models.BooleanField(default=False)
GBP = models.BooleanField(default=False)
TRY = models.BooleanField(default=False)
SPY = models.BooleanField(default=False)
IVV = models.BooleanField(default=False)
VTI = models.BooleanField(default=False)
DJI = models.BooleanField(default=False)
IXIC = models.BooleanField(default=False)
INX = models.BooleanField(default=False)
| 40.321429
| 99
| 0.744907
| 132
| 1,129
| 6.348485
| 0.371212
| 0.386635
| 0.536993
| 0.608592
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003109
| 0.145261
| 1,129
| 27
| 100
| 41.814815
| 0.865285
| 0.021258
| 0
| 0
| 0
| 0
| 0.006346
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.086957
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
0e45dcedc117dfc1898a1190162e88efb06f3a68
| 225
|
py
|
Python
|
src/library/utils/datasets/__init__.py
|
inessus/ai-skills
|
527f32d49887f06eee357c83bb6a9a21edc69bc5
|
[
"MIT"
] | 5
|
2018-10-30T01:36:04.000Z
|
2020-11-26T02:38:09.000Z
|
src/library/utils/datasets/__init__.py
|
inessus/ai-skills
|
527f32d49887f06eee357c83bb6a9a21edc69bc5
|
[
"MIT"
] | 4
|
2020-11-18T21:34:06.000Z
|
2022-03-11T23:32:44.000Z
|
src/library/utils/datasets/__init__.py
|
inessus/ai-skills
|
527f32d49887f06eee357c83bb6a9a21edc69bc5
|
[
"MIT"
] | 1
|
2018-11-27T09:19:38.000Z
|
2018-11-27T09:19:38.000Z
|
# 对于图像,常用的有:Pillow,OpenCV
# 对于语音,常用的有:scipy, libosa
# 对于文本,常用的有:NLTK, SpaCy
# torch.nn包仅支持对批量数据的处理,而不能对单个样本进行处理.
# 例如,nn.Conv2d只接受4维的张量:
# nSamples * nChannels * Height * Width
# 如果只有单个样本,那么使用input.unsqueeze(0)来增加假的batch维度.
| 25
| 46
| 0.764444
| 27
| 225
| 6.37037
| 0.925926
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014851
| 0.102222
| 225
| 9
| 46
| 25
| 0.836634
| 0.928889
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0e85a1d7e32cf2147dd29550bd165f8f2a17e379
| 221
|
py
|
Python
|
brambox/boxes/util/__init__.py
|
thesuperorange/task-conditioned
|
dd700bbed6806d166b8ede6142a2129bc69fdef6
|
[
"MIT"
] | 21
|
2020-08-18T11:01:59.000Z
|
2022-03-12T22:49:26.000Z
|
brambox/boxes/util/__init__.py
|
thesuperorange/task-conditioned
|
dd700bbed6806d166b8ede6142a2129bc69fdef6
|
[
"MIT"
] | 4
|
2021-01-02T04:06:29.000Z
|
2022-01-16T02:08:06.000Z
|
brambox/boxes/util/__init__.py
|
thesuperorange/task-conditioned
|
dd700bbed6806d166b8ede6142a2129bc69fdef6
|
[
"MIT"
] | 9
|
2020-10-02T07:19:19.000Z
|
2022-03-25T10:12:15.000Z
|
"""
Brambox boxes util module |br|
This package contains utilitary function to use with brambox boxes.
"""
from .visual import *
from .convert import *
from .path import *
from .modifiers import *
from .filters import *
| 20.090909
| 67
| 0.742081
| 30
| 221
| 5.466667
| 0.666667
| 0.243902
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.171946
| 221
| 10
| 68
| 22.1
| 0.896175
| 0.443439
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
0e921991abe712efa2b615685fd0b8e8cb8ae6a2
| 79
|
py
|
Python
|
EduData/Task/KnowledgeTracing/__init__.py
|
BAOOOOOM/EduData
|
affa465779cb94db00ed19291f8411229d342c0f
|
[
"Apache-2.0"
] | 98
|
2019-07-05T03:27:36.000Z
|
2022-03-30T08:38:09.000Z
|
EduData/Task/KnowledgeTracing/__init__.py
|
BAOOOOOM/EduData
|
affa465779cb94db00ed19291f8411229d342c0f
|
[
"Apache-2.0"
] | 45
|
2020-12-25T03:49:43.000Z
|
2021-11-26T09:45:42.000Z
|
EduData/Task/KnowledgeTracing/__init__.py
|
BAOOOOOM/EduData
|
affa465779cb94db00ed19291f8411229d342c0f
|
[
"Apache-2.0"
] | 50
|
2019-08-17T05:11:15.000Z
|
2022-03-29T07:54:13.000Z
|
# coding: utf-8
# 2019/8/23 @ tongshiwei
from .format import tl2json, json2tl
| 15.8
| 36
| 0.721519
| 12
| 79
| 4.75
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151515
| 0.164557
| 79
| 4
| 37
| 19.75
| 0.712121
| 0.455696
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
0e98536d6e65f4dc496311c36fc2b010e151765c
| 107
|
py
|
Python
|
main.py
|
cppxaxa/full_team_uno
|
dfd2418e736d04dd57a6a141a25fcd72392d7602
|
[
"Apache-2.0"
] | null | null | null |
main.py
|
cppxaxa/full_team_uno
|
dfd2418e736d04dd57a6a141a25fcd72392d7602
|
[
"Apache-2.0"
] | null | null | null |
main.py
|
cppxaxa/full_team_uno
|
dfd2418e736d04dd57a6a141a25fcd72392d7602
|
[
"Apache-2.0"
] | null | null | null |
import uvicorn
from lib.apps.v1.main import mainApp
if __name__ == '__main__':
uvicorn.run(mainApp)
| 13.375
| 36
| 0.728972
| 15
| 107
| 4.666667
| 0.733333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011236
| 0.168224
| 107
| 7
| 37
| 15.285714
| 0.775281
| 0
| 0
| 0
| 0
| 0
| 0.07619
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
0ea4edf10581f43738cd28056c7e25aa68f928d2
| 55
|
py
|
Python
|
Birnn_Transformer/ncc/models/completion/__init__.py
|
code-backdoor/code-backdoor
|
1eeb3d79aa8a54c8f08e8d0156b569de5edd974e
|
[
"MIT"
] | 71
|
2020-12-04T02:18:13.000Z
|
2022-03-30T15:19:50.000Z
|
ncc/models/completion/__init__.py
|
hrshy0629/naturalcc
|
9c3329dd8387c8242deb52bf590ebe3ac795f8de
|
[
"MIT"
] | 4
|
2021-03-10T17:48:50.000Z
|
2022-03-13T10:42:22.000Z
|
ncc/models/completion/__init__.py
|
hrshy0629/naturalcc
|
9c3329dd8387c8242deb52bf590ebe3ac795f8de
|
[
"MIT"
] | 11
|
2020-12-09T12:17:44.000Z
|
2022-03-30T09:02:13.000Z
|
from .gpt2 import GPT2
from .seqrnn import SeqRNNModel
| 18.333333
| 31
| 0.818182
| 8
| 55
| 5.625
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.042553
| 0.145455
| 55
| 2
| 32
| 27.5
| 0.914894
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
0eaf7a63f9d5ac715efd715d86a9450ef52b9405
| 46
|
py
|
Python
|
code/abc114_a_04.py
|
KoyanagiHitoshi/AtCoder
|
731892543769b5df15254e1f32b756190378d292
|
[
"MIT"
] | 3
|
2019-08-16T16:55:48.000Z
|
2021-04-11T10:21:40.000Z
|
code/abc114_a_04.py
|
KoyanagiHitoshi/AtCoder
|
731892543769b5df15254e1f32b756190378d292
|
[
"MIT"
] | null | null | null |
code/abc114_a_04.py
|
KoyanagiHitoshi/AtCoder
|
731892543769b5df15254e1f32b756190378d292
|
[
"MIT"
] | null | null | null |
x=input()
print("YES" if x in "753" else "NO")
| 23
| 36
| 0.608696
| 10
| 46
| 2.8
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 0.152174
| 46
| 2
| 36
| 23
| 0.641026
| 0
| 0
| 0
| 0
| 0
| 0.170213
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
7eec44cfb0fcb812a08eb3874744b1ed529895e2
| 67
|
py
|
Python
|
contrast_configs/retinanet_self_det/retinanet_r50_bfpnhead_1x_coco_soco_100ep_wd2.5e-5_2.py
|
hologerry/mmdetection
|
faea0079ce6c4651e59c481ddd53f99afaada961
|
[
"Apache-2.0"
] | null | null | null |
contrast_configs/retinanet_self_det/retinanet_r50_bfpnhead_1x_coco_soco_100ep_wd2.5e-5_2.py
|
hologerry/mmdetection
|
faea0079ce6c4651e59c481ddd53f99afaada961
|
[
"Apache-2.0"
] | null | null | null |
contrast_configs/retinanet_self_det/retinanet_r50_bfpnhead_1x_coco_soco_100ep_wd2.5e-5_2.py
|
hologerry/mmdetection
|
faea0079ce6c4651e59c481ddd53f99afaada961
|
[
"Apache-2.0"
] | null | null | null |
_base_ = './retinanet_r50_bfpnhead_1x_coco_soco_100ep_wd2.5e-5.py'
| 33.5
| 66
| 0.835821
| 12
| 67
| 3.916667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140625
| 0.044776
| 67
| 1
| 67
| 67
| 0.59375
| 0
| 0
| 0
| 0
| 0
| 0.820896
| 0.820896
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7d0ee9e81a89bb57bcc29ab60f556f8558354334
| 77
|
py
|
Python
|
cride/circles/views/__init__.py
|
paulgrimaldo/cride
|
23ef8e36e4654c515fb7dde7d6dc9c036f077f10
|
[
"MIT"
] | null | null | null |
cride/circles/views/__init__.py
|
paulgrimaldo/cride
|
23ef8e36e4654c515fb7dde7d6dc9c036f077f10
|
[
"MIT"
] | 4
|
2021-06-08T22:09:10.000Z
|
2022-03-12T00:43:56.000Z
|
cride/circles/views/__init__.py
|
paulgrimaldo/cride
|
23ef8e36e4654c515fb7dde7d6dc9c036f077f10
|
[
"MIT"
] | null | null | null |
from .circles import CircleViewSet
from .memberships import MembershipViewSet
| 38.5
| 42
| 0.883117
| 8
| 77
| 8.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 77
| 2
| 42
| 38.5
| 0.971429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
7d35c5497c2523176c55901dae0b09c01ffb6501
| 306
|
py
|
Python
|
tests/test_dag.py
|
xianghuzhao/jsub
|
fda16e9a0983410d33e454d9f1c4a94134e49d41
|
[
"MIT"
] | 2
|
2017-05-26T07:17:34.000Z
|
2019-04-08T05:53:35.000Z
|
tests/test_dag.py
|
xianghuzhao/jsub
|
fda16e9a0983410d33e454d9f1c4a94134e49d41
|
[
"MIT"
] | null | null | null |
tests/test_dag.py
|
xianghuzhao/jsub
|
fda16e9a0983410d33e454d9f1c4a94134e49d41
|
[
"MIT"
] | 1
|
2019-04-08T06:52:46.000Z
|
2019-04-08T06:52:46.000Z
|
import pytest
from jsub.dag import DAG
@pytest.fixture(scope='module')
def dag():
dag = DAG
return ext_mgr.load_ext_common('repo', config_repo)
def test_repo_file_system(repo_file_system):
from jsub.exts.repo.file_system import FileSystem
assert isinstance(repo_file_system, FileSystem)
| 23.538462
| 55
| 0.771242
| 46
| 306
| 4.869565
| 0.5
| 0.142857
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140523
| 306
| 12
| 56
| 25.5
| 0.851711
| 0
| 0
| 0
| 0
| 0
| 0.03268
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 1
| 0.222222
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7d44c60bfde001cf65aca6f54fd7baeec70c7bfb
| 348
|
py
|
Python
|
tests/test_day07.py
|
FollowTheProcess/advent_of_code_2021
|
27427bf76732f5257d369a9455dbbb337dd7a0bc
|
[
"MIT"
] | null | null | null |
tests/test_day07.py
|
FollowTheProcess/advent_of_code_2021
|
27427bf76732f5257d369a9455dbbb337dd7a0bc
|
[
"MIT"
] | null | null | null |
tests/test_day07.py
|
FollowTheProcess/advent_of_code_2021
|
27427bf76732f5257d369a9455dbbb337dd7a0bc
|
[
"MIT"
] | null | null | null |
from src.day07.day07 import find_cheapest_fuel_use, find_cheapest_fuel_use_part_2
def test_example_part1():
positions = [16, 1, 2, 0, 4, 2, 7, 1, 2, 14]
assert find_cheapest_fuel_use(positions) == 37
def test_example_part2():
positions = [16, 1, 2, 0, 4, 2, 7, 1, 2, 14]
assert find_cheapest_fuel_use_part_2(positions) == 168
| 24.857143
| 81
| 0.701149
| 61
| 348
| 3.672131
| 0.409836
| 0.214286
| 0.285714
| 0.339286
| 0.540179
| 0.540179
| 0.410714
| 0.410714
| 0.410714
| 0.410714
| 0
| 0.129825
| 0.181034
| 348
| 13
| 82
| 26.769231
| 0.65614
| 0
| 0
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.285714
| 1
| 0.285714
| false
| 0
| 0.142857
| 0
| 0.428571
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
adae11d0e1bc7d6f11bb9c4f644e07d70dca28ef
| 144
|
py
|
Python
|
hoft/core/__init__.py
|
sys-git/hoft
|
a59bd3f38a258eb6d7f56a9a79034159b18fd6a4
|
[
"MIT"
] | null | null | null |
hoft/core/__init__.py
|
sys-git/hoft
|
a59bd3f38a258eb6d7f56a9a79034159b18fd6a4
|
[
"MIT"
] | 323
|
2017-09-13T07:20:51.000Z
|
2022-03-31T12:30:24.000Z
|
hoft/core/__init__.py
|
sys-git/hoft
|
a59bd3f38a258eb6d7f56a9a79034159b18fd6a4
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: latin-1 -*-
#
# Core HOFT
# @module hoft.core
# @version 0.1
# @copyright (c) 2017-present Francis Horsman.
| 18
| 46
| 0.645833
| 21
| 144
| 4.428571
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057851
| 0.159722
| 144
| 7
| 47
| 20.571429
| 0.710744
| 0.902778
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
adf958613b9f26fc8515fae12912c5ddb95978a0
| 49
|
py
|
Python
|
Codes/Python/Jadoo_vs_Koba.py
|
ayushchauhan09/My-Codes
|
ce2fcd5826c25039555998c149657426bc2f1735
|
[
"MIT"
] | null | null | null |
Codes/Python/Jadoo_vs_Koba.py
|
ayushchauhan09/My-Codes
|
ce2fcd5826c25039555998c149657426bc2f1735
|
[
"MIT"
] | null | null | null |
Codes/Python/Jadoo_vs_Koba.py
|
ayushchauhan09/My-Codes
|
ce2fcd5826c25039555998c149657426bc2f1735
|
[
"MIT"
] | null | null | null |
for i in range(ord('F'), ord('Q')):
print(i)
| 24.5
| 36
| 0.510204
| 10
| 49
| 2.5
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.204082
| 49
| 2
| 37
| 24.5
| 0.641026
| 0
| 0
| 0
| 0
| 0
| 0.040816
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
bc26e5414fd6d72398ff7aa20dafae9cb83e2276
| 34
|
py
|
Python
|
solutions/dataframe-1.py
|
pavithraes/data-science-at-scale
|
2eba288d30539101d33d4dadfb64ad01408ed705
|
[
"MIT"
] | 103
|
2020-08-31T08:01:55.000Z
|
2022-01-17T07:56:07.000Z
|
solutions/dataframe-1.py
|
pavithraes/data-science-at-scale
|
2eba288d30539101d33d4dadfb64ad01408ed705
|
[
"MIT"
] | 19
|
2020-09-01T08:18:00.000Z
|
2021-09-18T07:39:08.000Z
|
solutions/dataframe-1.py
|
pavithraes/data-science-at-scale
|
2eba288d30539101d33d4dadfb64ad01408ed705
|
[
"MIT"
] | 39
|
2020-09-03T01:21:59.000Z
|
2022-01-17T07:56:32.000Z
|
(~df["Cancelled"]).sum().compute()
| 34
| 34
| 0.617647
| 4
| 34
| 5.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 34
| 1
| 34
| 34
| 0.617647
| 0
| 0
| 0
| 0
| 0
| 0.257143
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
70c220a8933d7971f12206d310249877a246c002
| 3,857
|
py
|
Python
|
libraries/python3/pypruss.py
|
pratimugale/cpruss
|
14af89232f423c20a24135854ec05c30cb59436b
|
[
"MIT"
] | null | null | null |
libraries/python3/pypruss.py
|
pratimugale/cpruss
|
14af89232f423c20a24135854ec05c30cb59436b
|
[
"MIT"
] | 1
|
2019-06-04T21:59:47.000Z
|
2019-06-10T08:54:46.000Z
|
libraries/python3/pypruss.py
|
pratimugale/cpruss
|
14af89232f423c20a24135854ec05c30cb59436b
|
[
"MIT"
] | null | null | null |
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.0
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise RuntimeError('Python 2.7 or later required')
# Import the low-level C/C++ module
if __package__ or '.' in __name__:
from . import _pypruss
else:
import _pypruss
try:
import builtins as __builtin__
except ImportError:
import __builtin__
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if name == "thisown":
return self.this.own(value)
if name == "this":
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if not static:
object.__setattr__(self, name, value)
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr(self, class_type, name):
if name == "thisown":
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
def _swig_setattr_nondynamic_instance_variable(set):
def set_instance_attr(self, name, value):
if name == "thisown":
self.this.own(value)
elif name == "this":
set(self, name, value)
elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
set(self, name, value)
else:
raise AttributeError("You cannot add instance attributes to %s" % self)
return set_instance_attr
def _swig_setattr_nondynamic_class_variable(set):
def set_class_attr(cls, name, value):
if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
set(cls, name, value)
else:
raise AttributeError("You cannot add class attributes to %s" % cls)
return set_class_attr
def _swig_add_metaclass(metaclass):
"""Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
def wrapper(cls):
return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
return wrapper
class _SwigNonDynamicMeta(type):
"""Meta class to enforce nondynamic attributes (no new attributes) for a class"""
__setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
def start(n):
return _pypruss.start(n)
def stop(n):
return _pypruss.stop(n)
def restart(n):
return _pypruss.restart(n)
def state(n):
return _pypruss.state(n)
def check_module(module):
return _pypruss.check_module(module)
def modprobe():
return _pypruss.modprobe()
def rmmod(n):
return _pypruss.rmmod(n)
def make(path):
return _pypruss.make(path)
def load_firmware(path, n):
return _pypruss.load_firmware(path, n)
def modprobe_pru_rproc():
return _pypruss.modprobe_pru_rproc()
def modprobe_rpmsg_pru():
return _pypruss.modprobe_rpmsg_pru()
def rmmod_pru_rproc(n):
return _pypruss.rmmod_pru_rproc(n)
def rmmod_rpmsg_pru(n):
return _pypruss.rmmod_rpmsg_pru(n)
def send_msg(message, n):
return _pypruss.send_msg(message, n)
def get_msg(n):
return _pypruss.get_msg(n)
| 27.55
| 118
| 0.688877
| 525
| 3,857
| 4.712381
| 0.253333
| 0.07882
| 0.056589
| 0.027486
| 0.180275
| 0.143897
| 0.143897
| 0.119644
| 0.038804
| 0
| 0
| 0.003275
| 0.208452
| 3,857
| 139
| 119
| 27.748201
| 0.807075
| 0.10656
| 0
| 0.138298
| 1
| 0
| 0.067678
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.265957
| false
| 0
| 0.06383
| 0.180851
| 0.62766
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
cb1bd9a2f29810b8cfa34302eb2711927162e31e
| 247
|
py
|
Python
|
Rest Django Framework/myproject/webapp/serializers.py
|
PaulMarcelo/Python
|
66a9fa21d2d803f5b06d285c705812251dc6d234
|
[
"Apache-2.0"
] | null | null | null |
Rest Django Framework/myproject/webapp/serializers.py
|
PaulMarcelo/Python
|
66a9fa21d2d803f5b06d285c705812251dc6d234
|
[
"Apache-2.0"
] | null | null | null |
Rest Django Framework/myproject/webapp/serializers.py
|
PaulMarcelo/Python
|
66a9fa21d2d803f5b06d285c705812251dc6d234
|
[
"Apache-2.0"
] | null | null | null |
from rest_framework import serializers
from .models import employees
class EmployessSerializer(serializers.ModelSerializer):
class Meta:
model = employees
# fields = ('firsname', 'lastname')
fields = '__all__'
| 24.7
| 55
| 0.680162
| 22
| 247
| 7.409091
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.242915
| 247
| 9
| 56
| 27.444444
| 0.871658
| 0.133603
| 0
| 0
| 0
| 0
| 0.034146
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
cb1e9450f6371a55e366a3747cf675cf31e76532
| 717
|
py
|
Python
|
uil/core/views/mixins.py
|
UiL-OTS-labs/django-shared-core
|
702ca346f1be861108ec70ceed2ed3b99623f0a3
|
[
"Apache-2.0"
] | null | null | null |
uil/core/views/mixins.py
|
UiL-OTS-labs/django-shared-core
|
702ca346f1be861108ec70ceed2ed3b99623f0a3
|
[
"Apache-2.0"
] | 13
|
2019-06-25T13:23:30.000Z
|
2022-02-10T07:00:39.000Z
|
uil/core/views/mixins.py
|
UiL-OTS-labs/django-shared-core
|
702ca346f1be861108ec70ceed2ed3b99623f0a3
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib import messages
class RedirectSuccessMessageMixin:
success_message = ''
def get(self, *args, **kwargs):
response = super(RedirectSuccessMessageMixin, self).get(*args, **kwargs)
messages.success(self.request, self.success_message)
return response
def get_success_message(self):
return self.success_message
class DeleteSuccessMessageMixin:
success_message = ''
def delete(self, *args, **kwargs):
response = super(DeleteSuccessMessageMixin, self).delete(*args, **kwargs)
messages.success(self.request, self.success_message)
return response
def get_success_message(self):
return self.success_message
| 23.129032
| 81
| 0.698745
| 73
| 717
| 6.726027
| 0.273973
| 0.228106
| 0.14664
| 0.089613
| 0.582485
| 0.472505
| 0.472505
| 0.472505
| 0.472505
| 0.472505
| 0
| 0
| 0.20781
| 717
| 30
| 82
| 23.9
| 0.864437
| 0
| 0
| 0.588235
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.235294
| false
| 0
| 0.058824
| 0.117647
| 0.764706
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
cb278b3e8af3684c2a65ce6d74e75709139cf764
| 59
|
py
|
Python
|
Robot/stopMotors.py
|
ankithu/RaspberryPi-Robot
|
cd8224af8b85b3999c79999aa39941c2d52f1a61
|
[
"MIT"
] | null | null | null |
Robot/stopMotors.py
|
ankithu/RaspberryPi-Robot
|
cd8224af8b85b3999c79999aa39941c2d52f1a61
|
[
"MIT"
] | null | null | null |
Robot/stopMotors.py
|
ankithu/RaspberryPi-Robot
|
cd8224af8b85b3999c79999aa39941c2d52f1a61
|
[
"MIT"
] | null | null | null |
import driveManager
driveManager.init()
driveManager.stop()
| 19.666667
| 19
| 0.847458
| 6
| 59
| 8.333333
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.050847
| 59
| 3
| 20
| 19.666667
| 0.892857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
cb5c51c2c6cf7f6a7b359759a1474e02a5825f0b
| 3,770
|
py
|
Python
|
tests/func_tests/test_inheritance.py
|
yourapi/jinja2schema
|
b629c4d1fdc54c6948b69c91f9929ec8a01538a4
|
[
"BSD-3-Clause"
] | 1
|
2021-04-10T14:16:15.000Z
|
2021-04-10T14:16:15.000Z
|
tests/func_tests/test_inheritance.py
|
yourapi/jinja2schema
|
b629c4d1fdc54c6948b69c91f9929ec8a01538a4
|
[
"BSD-3-Clause"
] | 5
|
2020-11-18T14:40:07.000Z
|
2021-04-10T14:37:12.000Z
|
tests/func_tests/test_inheritance.py
|
yourapi/jinja2schema
|
b629c4d1fdc54c6948b69c91f9929ec8a01538a4
|
[
"BSD-3-Clause"
] | null | null | null |
# coding: utf-8
import pytest
from jinja2 import PackageLoader, Environment
from jinja2schema.config import Config
from jinja2schema.core import infer
from jinja2schema.model import Dictionary, Scalar
@pytest.fixture
def env():
loader = PackageLoader('tests', 'templates')
return Environment(loader=loader)
@pytest.fixture
def config():
return Config(PACKAGE_NAME='tests')
def test_include_1(env, config):
struct = infer(env.loader.get_source(env, 'inner_include_1.html')[0], config)
expected_struct = Dictionary({
'var': Dictionary(
{
'x': Scalar(label='x', linenos=[1]),
'y': Scalar(label='y', linenos=[1]),
},
label='var',
linenos=[1]
),
'more': Scalar(label='more', linenos=[2]),
})
assert struct == expected_struct
def test_include_override_1(env, config):
struct = infer(env.loader.get_source(env, 'inner_include_override_1.html')[0], config)
expected_struct = Dictionary({
'default_name': Scalar(label='default_name', linenos=[2]),
'name': Scalar(label='name', linenos=[3]),
})
assert struct == expected_struct
def test_extend_1(env, config):
struct = infer(env.loader.get_source(env, 'inner_extend.html')[0], config)
expected_struct = Dictionary({
'var': Dictionary(
{'a': Scalar(label='a', linenos=[1])},
label='var',
linenos=[1]
),
'some': Scalar(label='some', linenos=[2]),
'extended': Scalar(label='extended', linenos=[2]),
})
assert struct == expected_struct
def test_include_extend_1(env, config):
struct = infer(env.loader.get_source(env, 'include_extend.html')[0], config)
expected_struct = Dictionary({
'var': Dictionary(
{
'x': Scalar(label='x', linenos=[1]),
'y': Scalar(label='y', linenos=[1]),
'a': Scalar(label='a', linenos=[1]),
},
label='var',
linenos=[1]
),
'also': Scalar(label='also', linenos=[3]),
'extended': Scalar(label='extended', linenos=[2]),
})
assert struct == expected_struct
def test_extend_with_block_override_1(env, config):
struct = infer(env.loader.get_source(env, 'inner_extend_override_1.html')[0], config)
expected_struct = Dictionary({
'name': Scalar(label='name', linenos=[3]),
})
assert struct == expected_struct
def test_extend_with_block_override_2(env, config):
struct = infer(env.loader.get_source(env, 'inner_extend_override_2.html')[0], config)
expected_struct = Dictionary({
'name': Scalar(label='name', linenos=[3]),
'location': Scalar(label='location', linenos=[6]),
'default_mood': Scalar(label='default_mood', linenos=[8]),
})
assert struct == expected_struct
def test_extend_with_block_override_3(env, config):
struct = infer(env.loader.get_source(env, 'inner_extend_override_3.html')[0], config)
expected_struct = Dictionary({
'location': Scalar(label='location', linenos=[6]),
'mood': Scalar(label='mood', linenos=[9]),
'name': Scalar(label='name', linenos=[3]),
})
assert struct == expected_struct
def test_extend_with_block_override_4(env, config):
struct = infer(env.loader.get_source(env, 'inner_extend_override_4.html')[0], config)
expected_struct = Dictionary({
'noblock': Scalar(label='noblock', linenos=[1]),
'brake': Scalar(label='brake', linenos=[3]),
'location': Scalar(label='location', linenos=[6]),
'mood': Scalar(label='mood', linenos=[9]),
'name': Scalar(label='name', linenos=[3]),
})
assert struct == expected_struct
| 32.5
| 90
| 0.618568
| 444
| 3,770
| 5.076577
| 0.135135
| 0.122005
| 0.053239
| 0.070985
| 0.761757
| 0.761757
| 0.723602
| 0.723159
| 0.684117
| 0.635759
| 0
| 0.01872
| 0.22069
| 3,770
| 115
| 91
| 32.782609
| 0.748468
| 0.003448
| 0
| 0.580645
| 0
| 0
| 0.127297
| 0.03755
| 0
| 0
| 0
| 0
| 0.086022
| 1
| 0.107527
| false
| 0
| 0.053763
| 0.010753
| 0.182796
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
cb930472033e58586738331ac9384a8bda18edee
| 646
|
py
|
Python
|
projects/01_fyyur/starter_code/app/main/errors.py
|
oyasr/FSND
|
3353878e1011a35f69bf028a60c8aee07b339028
|
[
"MIT"
] | null | null | null |
projects/01_fyyur/starter_code/app/main/errors.py
|
oyasr/FSND
|
3353878e1011a35f69bf028a60c8aee07b339028
|
[
"MIT"
] | null | null | null |
projects/01_fyyur/starter_code/app/main/errors.py
|
oyasr/FSND
|
3353878e1011a35f69bf028a60c8aee07b339028
|
[
"MIT"
] | 1
|
2020-07-01T18:56:47.000Z
|
2020-07-01T18:56:47.000Z
|
from . import main
from flask import render_template
from logging import Formatter, FileHandler
@main.errorhandler(404)
def not_found_error(error):
return render_template('errors/404.html'), 404
@main.errorhandler(500)
def server_error(error):
return render_template('errors/500.html'), 500
# if not main.debug:
# file_handler = FileHandler('error.log')
# file_handler.setFormatter(
# Formatter(
# '%(asctime)s %(levelname)s: %(message)s [in %(pathname)s:%(lineno)d]')
# )
# log.setLevel(log.INFO)
# file_handler.setLevel(log.INFO)
# log.addHandler(file_handler)
# log.info('errors')
| 24.846154
| 84
| 0.682663
| 82
| 646
| 5.256098
| 0.45122
| 0.102088
| 0.074246
| 0.102088
| 0.167053
| 0.167053
| 0
| 0
| 0
| 0
| 0
| 0.033898
| 0.178019
| 646
| 25
| 85
| 25.84
| 0.777778
| 0.495356
| 0
| 0
| 0
| 0
| 0.095238
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.333333
| 0.222222
| 0.777778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
cbb1e1d3187c5b8be59720ff6126ae1968d9e5e0
| 299
|
py
|
Python
|
torch_geometric_signed_directed/utils/general/__init__.py
|
SherylHYX/pytorch_geometric_signed_directed
|
c2dbede0171424cdf7bae7c45c6c1e19a862bcfd
|
[
"MIT"
] | 38
|
2022-02-09T06:27:14.000Z
|
2022-03-29T09:44:14.000Z
|
torch_geometric_signed_directed/utils/general/__init__.py
|
SherylHYX/pytorch_geometric_signed_directed
|
c2dbede0171424cdf7bae7c45c6c1e19a862bcfd
|
[
"MIT"
] | 17
|
2022-02-09T23:13:35.000Z
|
2022-02-21T03:14:36.000Z
|
torch_geometric_signed_directed/utils/general/__init__.py
|
SherylHYX/pytorch_geometric_signed_directed
|
c2dbede0171424cdf7bae7c45c6c1e19a862bcfd
|
[
"MIT"
] | 6
|
2022-02-09T04:49:17.000Z
|
2022-03-29T09:44:17.000Z
|
from .scipy_sparse_to_torch_sparse import scipy_sparse_to_torch_sparse
from .extract_network import extract_network
from .node_split import node_class_split
from .link_split import link_class_split
from .in_out_degree import in_out_degree
from .triplet_loss import triplet_loss_node_classification
| 37.375
| 70
| 0.896321
| 48
| 299
| 5.083333
| 0.375
| 0.090164
| 0.106557
| 0.147541
| 0.196721
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083612
| 299
| 7
| 71
| 42.714286
| 0.890511
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
cbb6721d327eb652bb4e50651e416251654b67a9
| 84
|
py
|
Python
|
newstore/json_encoder/__init__.py
|
NewStore-oss/json-encoder
|
0c680ab2d457bc35f186ab38a23e8628dd9b8380
|
[
"MIT"
] | null | null | null |
newstore/json_encoder/__init__.py
|
NewStore-oss/json-encoder
|
0c680ab2d457bc35f186ab38a23e8628dd9b8380
|
[
"MIT"
] | null | null | null |
newstore/json_encoder/__init__.py
|
NewStore-oss/json-encoder
|
0c680ab2d457bc35f186ab38a23e8628dd9b8380
|
[
"MIT"
] | 1
|
2019-12-05T10:08:45.000Z
|
2019-12-05T10:08:45.000Z
|
from .encoder import serialize, deserialize
__all__ = ["serialize", "deserialize"]
| 21
| 43
| 0.761905
| 8
| 84
| 7.5
| 0.75
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119048
| 84
| 3
| 44
| 28
| 0.810811
| 0
| 0
| 0
| 0
| 0
| 0.238095
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
1db4987f3007c608b7000a0279ba6e54327136f4
| 23
|
py
|
Python
|
djangodblog/__init__.py
|
dcramer/django-db-log
|
9c1e0b08d7e0ab9bf580e58444920603bbc39598
|
[
"BSD-3-Clause"
] | 22
|
2015-02-20T10:44:01.000Z
|
2021-09-25T14:58:53.000Z
|
djangodblog/__init__.py
|
dcramer/django-db-log
|
9c1e0b08d7e0ab9bf580e58444920603bbc39598
|
[
"BSD-3-Clause"
] | 1
|
2016-04-01T04:17:03.000Z
|
2016-04-01T04:18:47.000Z
|
djangodblog/__init__.py
|
dcramer/django-db-log
|
9c1e0b08d7e0ab9bf580e58444920603bbc39598
|
[
"BSD-3-Clause"
] | 11
|
2015-04-22T04:55:16.000Z
|
2022-01-21T19:51:09.000Z
|
__version__ = (2, 2, 1)
| 23
| 23
| 0.608696
| 4
| 23
| 2.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 0.173913
| 23
| 1
| 23
| 23
| 0.368421
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1dd1a9a4de4ce92436f71c7cb871c2843d84ef10
| 30,377
|
py
|
Python
|
src/uvm/base/factory.py
|
fvutils/uvm-py
|
5e5ed203b680ead6e1b47fcff6d74fa99b5929c4
|
[
"Apache-2.0"
] | 1
|
2019-10-13T06:14:28.000Z
|
2019-10-13T06:14:28.000Z
|
src/uvm/base/factory.py
|
fvutils/uvm-py
|
5e5ed203b680ead6e1b47fcff6d74fa99b5929c4
|
[
"Apache-2.0"
] | null | null | null |
src/uvm/base/factory.py
|
fvutils/uvm-py
|
5e5ed203b680ead6e1b47fcff6d74fa99b5929c4
|
[
"Apache-2.0"
] | 1
|
2019-12-23T06:21:49.000Z
|
2019-12-23T06:21:49.000Z
|
#
#------------------------------------------------------------------------------
# Copyright 2007-2014 Mentor Graphics Corporation
# Copyright 2015 Analog Devices, Inc.
# Copyright 2014 Semifore
# Copyright 2017 Intel Corporation
# Copyright 2018 Qualcomm, Inc.
# Copyright 2011 Synopsys, Inc.
# Copyright 2007-2018 Cadence Design Systems, Inc.
# Copyright 2013 Verilab
# Copyright 2013-2018 NVIDIA Corporation
# Copyright 2017 Cisco Systems, Inc.
# Copyright 2019 Matthew Ballance
# All Rights Reserved Worldwide
#
# 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 distributed under the License is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See
# the License for the specific language governing
# permissions and limitations under the License.
#------------------------------------------------------------------------------
from uvm.base.coreservice import uvm_coreservice_t
from uvm.base.object_globals import UVM_NONE
#typedef struct {uvm_object_wrapper m_type;
# string m_type_name;} m_uvm_factory_type_pair_t;
#Instance overrides by requested type lookup
class uvm_factory_queue_class():
def __init__(self):
self.queue = []
#------------------------------------------------------------------------------
# Title -- NODOCS -- UVM Factory
#
# This page covers the classes that define the UVM factory facility.
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
#
# CLASS -- NODOCS -- uvm_factory
#
#------------------------------------------------------------------------------
#
# As the name implies, uvm_factory is used to manufacture (create) UVM objects
# and components. Object and component types are registered
# with the factory using lightweight proxies to the actual objects and
# components being created. The <uvm_object_registry #(T,Tname)> and
# <uvm_component_registry #(T,Tname)> class are used to proxy <uvm_objects>
# and <uvm_components>.
#
# The factory provides both name-based and type-based interfaces.
#
# type-based - The type-based interface is far less prone to errors in usage.
# When errors do occur, they are caught at compile-time.
#
# name-based - The name-based interface is dominated
# by string arguments that can be misspelled and provided in the wrong order.
# Errors in name-based requests might only be caught at the time of the call,
# if at all. Further, the name-based interface is not portable across
# simulators when used with parameterized classes.
#
#
# The ~uvm_factory~ is an abstract class which declares many of its methods
# as ~pure virtual~. The UVM uses the <uvm_default_factory> class
# as its default factory implementation.
#
# See <uvm_default_factory::Usage> section for details on configuring and using the factory.
#
# @uvm-ieee 1800.2-2017 auto 8.3.1.1
class uvm_factory():
# Group -- NODOCS -- Retrieving the factory
# @uvm-ieee 1800.2-2017 auto 8.3.1.2.1
@staticmethod
def get():
return uvm_coreservice_t.get().get_factory()
# @uvm-ieee 1800.2-2017 auto 8.3.1.2.2
@staticmethod
def set(f):
uvm_coreservice_t.get().set_factory(f)
# Group -- NODOCS -- Registering Types
# Function -- NODOCS -- register
#
# Registers the given proxy object, ~obj~, with the factory. The proxy object
# is a lightweight substitute for the component or object it represents. When
# the factory needs to create an object of a given type, it calls the proxy's
# create_object or create_component method to do so.
#
# When doing name-based operations, the factory calls the proxy's
# ~get_type_name~ method to match against the ~requested_type_name~ argument in
# subsequent calls to <create_component_by_name> and <create_object_by_name>.
# If the proxy object's ~get_type_name~ method returns the empty string,
# name-based lookup is effectively disabled.
# @uvm-ieee 1800.2-2017 auto 8.3.1.3
def register(self, obj):
pass
# Group -- NODOCS -- Type & Instance Overrides
# Function -- NODOCS -- set_inst_override_by_type
# @uvm-ieee 1800.2-2017 auto 8.3.1.4.1
def set_inst_override_by_type(self, original_type, override_type, full_inst_path):
pass
# Function -- NODOCS -- set_inst_override_by_name
#
# Configures the factory to create an object of the override's type whenever
# a request is made to create an object of the original type using a context
# that matches ~full_inst_path~. The original type is typically a super class
# of the override type.
#
# When overriding by type, the ~original_type~ and ~override_type~ are
# handles to the types' proxy objects. Preregistration is not required.
#
# When overriding by name, the ~original_type_name~ typically refers to a
# preregistered type in the factory. It may, however, be any arbitrary
# string. Future calls to any of the ~create_*~ methods with the same string
# and matching instance path will produce the type represented by
# ~override_type_name~, which must be preregistered with the factory.
#
# The ~full_inst_path~ is matched against the concatenation of
# {~parent_inst_path~, ".", ~name~} provided in future create requests. The
# ~full_inst_path~ may include wildcards (* and ?) such that a single
# instance override can be applied in multiple contexts. A ~full_inst_path~
# of "*" is effectively a type override, as it will match all contexts.
#
# When the factory processes instance overrides, the instance queue is
# processed in order of override registrations, and the first override
# match prevails. Thus, more specific overrides should be registered
# first, followed by more general overrides.
# @uvm-ieee 1800.2-2017 auto 8.3.1.4.1
def set_inst_override_by_name(self, original_type_name, override_type_name, full_inst_path):
pass
# Function -- NODOCS -- set_type_override_by_type
# @uvm-ieee 1800.2-2017 auto 8.3.1.4.2
def set_type_override_by_type(self, original_type, override_type, replace=True):
pass
# Function -- NODOCS -- set_type_override_by_name
#
# Configures the factory to create an object of the override's type whenever
# a request is made to create an object of the original type, provided no
# instance override applies. The original type is typically a super class of
# the override type.
#
# When overriding by type, the ~original_type~ and ~override_type~ are
# handles to the types' proxy objects. Preregistration is not required.
#
# When overriding by name, the ~original_type_name~ typically refers to a
# preregistered type in the factory. It may, however, be any arbitrary
# string. Future calls to any of the ~create_*~ methods with the same string
# and matching instance path will produce the type represented by
# ~override_type_name~, which must be preregistered with the factory.
#
# When ~replace~ is 1, a previous override on ~original_type_name~ is
# replaced, otherwise a previous override, if any, remains intact.
# @uvm-ieee 1800.2-2017 auto 8.3.1.4.2
def set_type_override_by_name (self, original_type_name, override_type_name, replace=True):
pass
# Group -- NODOCS -- Creation
# Function -- NODOCS -- create_object_by_type
# @uvm-ieee 1800.2-2017 auto 8.3.1.5
def create_object_by_type(self, requested_type, parent_inst_path="", name=""):
return None
# Function -- NODOCS -- create_component_by_type
# @uvm-ieee 1800.2-2017 auto 8.3.1.5
def create_component_by_type (self, requested_type, parent_inst_path="", name="", parent=None):
# Pure virtual
pass
# Function -- NODOCS -- create_object_by_name
# @uvm-ieee 1800.2-2017 auto 8.3.1.5
def create_object_by_name(self, requested_type_name, parent_inst_path="", name=""):
# Pure virtual
pass
# Function -- NODOCS -- is_type_name_registered
# @uvm-ieee 1800.2-2017 auto 8.3.1.7.3
def is_type_name_registered(self, type_name):
# Pure virtual
pass
# Function -- NODOCS -- is_type_registered
# @uvm-ieee 1800.2-2017 auto 8.3.1.7.4
def is_type_registered(self, obj):
# Pure virtual
pass
#
# Creates and returns a component or object of the requested type, which may
# be specified by type or by name. A requested component must be derived
# from the <uvm_component> base class, and a requested object must be derived
# from the <uvm_object> base class.
#
# When requesting by type, the ~requested_type~ is a handle to the type's
# proxy object. Preregistration is not required.
#
# When requesting by name, the ~request_type_name~ is a string representing
# the requested type, which must have been registered with the factory with
# that name prior to the request. If the factory does not recognize the
# ~requested_type_name~, an error is produced and a ~null~ handle returned.
#
# If the optional ~parent_inst_path~ is provided, then the concatenation,
# {~parent_inst_path~, ".",~name~}, forms an instance path (context) that
# is used to search for an instance override. The ~parent_inst_path~ is
# typically obtained by calling the <uvm_component::get_full_name> on the
# parent.
#
# If no instance override is found, the factory then searches for a type
# override.
#
# Once the final override is found, an instance of that component or object
# is returned in place of the requested type. New components will have the
# given ~name~ and ~parent~. New objects will have the given ~name~, if
# provided.
#
# Override searches are recursively applied, with instance overrides taking
# precedence over type overrides. If ~foo~ overrides ~bar~, and ~xyz~
# overrides ~foo~, then a request for ~bar~ will produce ~xyz~. Recursive
# loops will result in an error, in which case the type returned will be
# that which formed the loop. Using the previous example, if ~bar~
# overrides ~xyz~, then ~bar~ is returned after the error is issued.
# @uvm-ieee 1800.2-2017 auto 8.3.1.5
def create_component_by_name(self,
requested_type_name,
parent_inst_path, # =""
name,
parent):
# Pure virtual
pass
# Group -- NODOCS -- Name Aliases
# Function -- NODOCS -- set_type_alias
# @uvm-ieee 1800.2-2017 auto 8.3.1.6.1
def set_type_alias(self, alias_type_name, original_type):
# Pure virtual
pass
#Intended to allow overrides by type to use the alias_type_name as an additional name to refer to
#original_type
# Function -- NODOCS -- set_inst_alias
# @uvm-ieee 1800.2-2017 auto 8.3.1.6.2
def set_inst_alias(self, alias_type_name, original_type, full_inst_path):
pass
#Intended to allow overrides by name to use the alias_type_name as an additional name to refer to
#original_type in the context referred to by full_inst_path.
# Group -- NODOCS -- Debug
# Function -- NODOCS -- debug_create_by_type
def debug_create_by_type(self, requested_type, parent_inst_path="", name=""):
pass
# Function -- NODOCS -- debug_create_by_name
#
# These methods perform the same search algorithm as the ~create_*~ methods,
# but they do not create new objects. Instead, they provide detailed
# information about what type of object it would return, listing each
# override that was applied to arrive at the result. Interpretation of the
# arguments are exactly as with the ~create_*~ methods.
def debug_create_by_name(self, requested_type_name, parent_inst_path="", name=""):
# Pure virtual
pass
# Function -- NODOCS -- find_override_by_type
# @uvm-ieee 1800.2-2017 auto 8.3.1.7.1
def find_override_by_type(self, requested_type, full_inst_path):
pass
# Function -- NODOCS -- find_override_by_name
#
# These methods return the proxy to the object that would be created given
# the arguments. The ~full_inst_path~ is typically derived from the parent's
# instance path and the leaf name of the object to be created, i.e.
# { parent.get_full_name(), ".", name }.
# @uvm-ieee 1800.2-2017 auto 8.3.1.7.1
def find_override_by_name(self, requested_type_name, full_inst_path):
pass
# Function -- NODOCS -- find_wrapper_by_name
#
# This method returns the <uvm_object_wrapper> associated with a given
# ~type_name~.
# @uvm-ieee 1800.2-2017 auto 8.3.1.7.2
def find_wrapper_by_name(self, type_name):
# Pure virtual
pass
# Function -- NODOCS -- print
#
# Prints the state of the uvm_factory, including registered types, instance
# overrides, and type overrides.
#
# When ~all_types~ is 0, only type and instance overrides are displayed. When
# ~all_types~ is 1 (default), all registered user-defined types are printed as
# well, provided they have names associated with them. When ~all_types~ is 2,
# the UVM types (prefixed with uvm_) are included in the list of registered
# types.
# @uvm-ieee 1800.2-2017 auto 8.3.1.7.5
def print(self, all_types=True):
# Pure virtual
pass
#------------------------------------------------------------------------------
#
# Group -- NODOCS -- Usage
#
# Using the factory involves three basic operations
#
# 1 - Registering objects and components types with the factory
# 2 - Designing components to use the factory to create objects or components
# 3 - Configuring the factory with type and instance overrides, both within and
# outside components
#
# We'll briefly cover each of these steps here. More reference information can
# be found at <Utility Macros>, <uvm_component_registry #(T,Tname)>,
# <uvm_object_registry #(T,Tname)>, <uvm_component>.
#
# 1 -- Registering objects and component types with the factory:
#
# When defining <uvm_object> and <uvm_component>-based classes, simply invoke
# the appropriate macro. Use of macros are required to ensure portability
# across different vendors' simulators.
#
# Objects that are not parameterized are declared as
#
#| class packet (uvm_object):;
#| `uvm_object_utils(packet)
#| endclass
#|
#| class packetD (packet):;
#| `uvm_object_utils(packetD)
#| endclass
#
# Objects that are parameterized are declared as
#
#| class packet #(type T=int, int WIDTH=32) (uvm_object):;
#| `uvm_object_param_utils(packet #(T,WIDTH))
#| endclass
#
# Components that are not parameterized are declared as
#
#| class comp (uvm_component):;
#| `uvm_component_utils(comp)
#| endclass
#
# Components that are parameterized are declared as
#
#| class comp #(type T=int, int WIDTH=32) (uvm_component):;
#| `uvm_component_param_utils(comp #(T,WIDTH))
#| endclass
#
# The `uvm_*_utils macros for simple, non-parameterized classes will register
# the type with the factory and define the get_type, get_type_name, and create
# virtual methods inherited from <uvm_object>. It will also define a static
# type_name variable in the class, which will allow you to determine the type
# without having to allocate an instance.
#
# The `uvm_*_param_utils macros for parameterized classes differ from
# `uvm_*_utils classes in the following ways:
#
# - The ~get_type_name~ method and static type_name variable are not defined. You
# will need to implement these manually.
#
# - A type name is not associated with the type when registering with the
# factory, so the factory's *_by_name operations will not work with
# parameterized classes.
#
# - The factory's <print>, <debug_create_by_type>, and <debug_create_by_name>
# methods, which depend on type names to convey information, will list
# parameterized types as '<unknown>'.
#
# It is worth noting that environments that exclusively use the type-based
# factory methods (*_by_type) do not require type registration. The factory's
# type-based methods will register the types involved "on the fly," when first
# used. However, registering with the `uvm_*_utils macros enables name-based
# factory usage and implements some useful utility functions.
#
#
# 2 -- Designing components that defer creation to the factory:
#
# Having registered your objects and components with the factory, you can now
# make requests for new objects and components via the factory. Using the factory
# instead of allocating them directly (via new) allows different objects to be
# substituted for the original without modifying the requesting class. The
# following code defines a driver class that is parameterized.
#
#| class driverB #(type T=uvm_object) (uvm_driver):;
#|
#| # parameterized classes must use the _param_utils version
#| `uvm_component_param_utils(driverB #(T))
#|
#| # our packet type; this can be overridden via the factory
#| T pkt;
#|
#| # standard component constructor
#| def __init__(string name, uvm_component parent=None);
#| super.new(name,parent);
#| endfunction
#|
#| # get_type_name not implemented by macro for parameterized classes
#| static function string type_name();
#| return {"driverB #(",T::type_name(),")"};
#| endfunction : type_name
#| virtual function string get_type_name();
#| return type_name();
#| endfunction
#|
#| # using the factory allows pkt overrides from outside the class
#| virtual function void build_phase(uvm_phase phase);
#| pkt = packet::type_id::create("pkt",this);
#| endfunction
#|
#| # print the packet so we can confirm its type when printing
#| virtual function void do_print(uvm_printer printer);
#| printer.print_object("pkt",pkt);
#| endfunction
#|
#| endclass
#
# For purposes of illustrating type and instance overrides, we define two
# subtypes of the ~driverB~ class. The subtypes are also parameterized, so
# we must again provide an implementation for <uvm_object::get_type_name>,
# which we recommend writing in terms of a static string constant.
#
#| class driverD1 #(type T=uvm_object) (driverB): #(T);
#|
#| `uvm_component_param_utils(driverD1 #(T))
#|
#| def __init__(string name, uvm_component parent=None);
#| super.new(name,parent);
#| endfunction
#|
#| static function string type_name();
#| return {"driverD1 #(",T::type_name,")"};
#| endfunction : type_name
#| virtual function string get_type_name();
#| return type_name();
#| endfunction
#|
#| endclass
#|
#| class driverD2 #(type T=uvm_object) (driverB): #(T);
#|
#| `uvm_component_param_utils(driverD2 #(T))
#|
#| def __init__(string name, uvm_component parent=None);
#| super.new(name,parent);
#| endfunction
#|
#| static function string type_name();
#| return {"driverD2 #(",T::type_name,")"};
#| endfunction : type_name
#| virtual function string get_type_name();
#| return type_name();
#| endfunction
#|
#| endclass
#|
#| # typedef some specializations for convenience
#| typedef driverB #(packet) B_driver; # the base driver
#| typedef driverD1 #(packet) D1_driver; # a derived driver
#| typedef driverD2 #(packet) D2_driver; # another derived driver
#
# Next, we'll define a agent component, which requires a utils macro for
# non-parameterized types. Before creating the drivers using the factory, we
# override ~driver0~'s packet type to be ~packetD~.
#
#| class agent (uvm_agent):;
#|
#| `uvm_component_utils(agent)
#| ...
#| B_driver driver0;
#| B_driver driver1;
#|
#| def __init__(string name, uvm_component parent=None);
#| super.new(name,parent);
#| endfunction
#|
#| virtual function void build_phase(uvm_phase phase);
#|
#| # override the packet type for driver0 and below
#| packet::type_id::set_inst_override(packetD::get_type(),"driver0.*");
#|
#| # create using the factory; actual driver types may be different
#| driver0 = B_driver::type_id::create("driver0",this);
#| driver1 = B_driver::type_id::create("driver1",this);
#|
#| endfunction
#|
#| endclass
#
# Finally we define an environment class, also not parameterized. Its ~build_phase~
# method shows three methods for setting an instance override on a grandchild
# component with relative path name, ~agent1.driver1~, all equivalent.
#
#| class env (uvm_env):;
#|
#| `uvm_component_utils(env)
#|
#| agent agent0;
#| agent agent1;
#|
#| def __init__(string name, uvm_component parent=None);
#| super.new(name,parent);
#| endfunction
#|
#| virtual function void build_phase(uvm_phase phase);
#|
#| # three methods to set an instance override for agent1.driver1
#| # - via component convenience method...
#| set_inst_override_by_type("agent1.driver1",
#| B_driver::get_type(),
#| D2_driver::get_type());
#|
#| # - via the component's proxy (same approach as create)...
#| B_driver::type_id::set_inst_override(D2_driver::get_type(),
#| "agent1.driver1",this);
#|
#| # - via a direct call to a factory method...
#| factory.set_inst_override_by_type(B_driver::get_type(),
#| D2_driver::get_type(),
#| {get_full_name(),".agent1.driver1"});
#|
#| # create agents using the factory; actual agent types may be different
#| agent0 = agent::type_id::create("agent0",this);
#| agent1 = agent::type_id::create("agent1",this);
#|
#| endfunction
#|
#| # at end_of_elaboration, print topology and factory state to verify
#| virtual function void end_of_elaboration_phase(uvm_phase phase);
#| uvm_top.print_topology();
#| endfunction
#|
#| virtual task run_phase(uvm_phase phase);
#| #100 global_stop_request();
#| endfunction
#|
#| endclass
#
#
# 3 -- Configuring the factory with type and instance overrides:
#
# In the previous step, we demonstrated setting instance overrides and creating
# components using the factory within component classes. Here, we will
# demonstrate setting overrides from outside components, as when initializing
# the environment prior to running the test.
#
#| module top;
#|
#| env env0;
#|
#| initial begin
#|
#| # Being registered first, the following overrides take precedence
#| # over any overrides made within env0's construction & build.
#|
#| # Replace all base drivers with derived drivers...
#| B_driver::type_id::set_type_override(D_driver::get_type());
#|
#| # ...except for agent0.driver0, whose type remains a base driver.
#| # (Both methods below have the equivalent result.)
#|
#| # - via the component's proxy (preferred)
#| B_driver::type_id::set_inst_override(B_driver::get_type(),
#| "env0.agent0.driver0");
#|
#| # - via a direct call to a factory method
#| factory.set_inst_override_by_type(B_driver::get_type(),
#| B_driver::get_type(),
#| {get_full_name(),"env0.agent0.driver0"});
#|
#| # now, create the environment; our factory configuration will
#| # govern what topology gets created
#| env0 = new("env0");
#|
#| # run the test (will execute build phase)
#| run_test();
#|
#| end
#|
#| endmodule
#
# When the above example is run, the resulting topology (displayed via a call to
# <uvm_root::print_topology> in env's <uvm_component::end_of_elaboration_phase> method)
# is similar to the following:
#
#| # UVM_INFO @ 0 [RNTST] Running test ...
#| # UVM_INFO @ 0 [UVMTOP] UVM testbench topology:
#| # ----------------------------------------------------------------------
#| # Name Type Size Value
#| # ----------------------------------------------------------------------
#| # env0 env - env0@2
#| # agent0 agent - agent0@4
#| # driver0 driverB #(packet) - driver0@8
#| # pkt packet - pkt@21
#| # driver1 driverD #(packet) - driver1@14
#| # pkt packet - pkt@23
#| # agent1 agent - agent1@6
#| # driver0 driverD #(packet) - driver0@24
#| # pkt packet - pkt@37
#| # driver1 driverD2 #(packet) - driver1@30
#| # pkt packet - pkt@39
#| # ----------------------------------------------------------------------
#
#------------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# IMPLEMENTATION
#-----------------------------------------------------------------------------
# m_debug_create
# --------------
# function void uvm_default_factory::m_debug_create (string requested_type_name,
# uvm_object_wrapper requested_type,
# string parent_inst_path,
# string name);
#
# string full_inst_path;
# uvm_object_wrapper result;
#
# if (parent_inst_path == "")
# full_inst_path = name;
# else if (name != "")
# full_inst_path = {parent_inst_path,".",name};
# else
# full_inst_path = parent_inst_path;
#
# m_override_info.delete();
#
# if (requested_type == null) begin
# if (!m_type_names.exists(requested_type_name) &&
# !m_lookup_strs.exists(requested_type_name)) begin
# uvm_report_warning("Factory Warning", {"The factory does not recognize '",
# requested_type_name,"' as a registered type."}, UVM_NONE);
# return;
# end
# m_debug_pass = 1;
#
# result = find_override_by_name(requested_type_name,full_inst_path);
# end
# else begin
# m_debug_pass = 1;
# if (!m_types.exists(requested_type))
# register(requested_type);
# result = find_override_by_type(requested_type,full_inst_path);
# if (requested_type_name == "")
# requested_type_name = requested_type.get_type_name();
# end
#
# m_debug_display(requested_type_name, result, full_inst_path);
# m_debug_pass = 0;
#
# foreach (m_override_info[index])
# m_override_info[index].selected = 0;
#
# endfunction
#
#
# # m_debug_display
# # ---------------
#
# function void uvm_default_factory::m_debug_display (string requested_type_name,
# uvm_object_wrapper result,
# string full_inst_path);
#
# int max1,max2,max3;
# string dash = "---------------------------------------------------------------------------------------------------";
# string space= " ";
# string qs[$];
#
# qs.push_back("\n#### Factory Override Information (*)\n\n");
# qs.push_back(
# $sformatf("Given a request for an object of type '%s' with an instance\npath of '%s' the factory encountered\n\n",
# requested_type_name,full_inst_path));
#
# if (m_override_info.size() == 0)
# qs.push_back("no relevant overrides.\n\n");
# else begin
#
# qs.push_back("the following relevant overrides. An 'x' next to a match indicates a\nmatch that was ignored.\n\n");
#
# foreach (m_override_info[i]) begin
# if (m_override_info[i].orig.m_type_name.len() > max1)
# max1=m_override_info[i].orig.m_type_name.len();
# if (m_override_info[i].full_inst_path.len() > max2)
# max2=m_override_info[i].full_inst_path.len();
# if (m_override_info[i].ovrd.m_type_name.len() > max3)
# max3=m_override_info[i].ovrd.m_type_name.len();
# end
#
# if (max1 < 13) max1 = 13;
# if (max2 < 13) max2 = 13;
# if (max3 < 13) max3 = 13;
#
# qs.push_back($sformatf("Original Type%0s Instance Path%0s Override Type%0s\n",
# space.substr(1,max1-13),space.substr(1,max2-13),space.substr(1,max3-13)));
#
# qs.push_back($sformatf(" %0s %0s %0s\n",dash.substr(1,max1),
# dash.substr(1,max2),
# dash.substr(1,max3)));
#
# foreach (m_override_info[i]) begin
# qs.push_back($sformatf("%s%0s%0s\n",
# m_override_info[i].selected ? " " : "x ",
# m_override_info[i].orig.m_type_name,
# space.substr(1,max1-m_override_info[i].orig.m_type_name.len())));
# qs.push_back($sformatf(" %0s%0s", m_override_info[i].full_inst_path,
# space.substr(1,max2-m_override_info[i].full_inst_path.len())));
# qs.push_back($sformatf(" %0s%0s", m_override_info[i].ovrd.m_type_name,
# space.substr(1,max3-m_override_info[i].ovrd.m_type_name.len())));
# if (m_override_info[i].full_inst_path == "*")
# qs.push_back(" <type override>");
# else
# qs.push_back("\n");
# end
# qs.push_back("\n");
# end
#
#
# qs.push_back("Result:\n\n");
# qs.push_back($sformatf(" The factory will produce an object of type '%0s'\n",
# result == null ? requested_type_name : result.get_type_name()));
#
# qs.push_back("\n(*) Types with no associated type name will be printed as <unknown>\n\n####\n\n");
#
# `uvm_info("UVM/FACTORY/DUMP",`UVM_STRING_QUEUE_STREAMING_PACK(qs),UVM_NONE)
# endfunction
| 38.598475
| 122
| 0.635053
| 3,969
| 30,377
| 4.691106
| 0.149912
| 0.030936
| 0.016113
| 0.01289
| 0.33396
| 0.291799
| 0.263279
| 0.235942
| 0.21043
| 0.190827
| 0
| 0.021584
| 0.229779
| 30,377
| 786
| 123
| 38.647583
| 0.774202
| 0.859038
| 0
| 0.37037
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.407407
| false
| 0.333333
| 0.037037
| 0.037037
| 0.518519
| 0.018519
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
380581205c1c68926373cdfddd942ea71c32fe06
| 127
|
py
|
Python
|
eth_accountz.py
|
Narasimha-sai/eth-provider-benchmark
|
ab2f9ef06e17706055813127dade8b185073479c
|
[
"MIT"
] | 15
|
2019-07-10T17:53:58.000Z
|
2022-02-19T15:24:48.000Z
|
eth_accountz.py
|
Narasimha-sai/eth-provider-benchmark
|
ab2f9ef06e17706055813127dade8b185073479c
|
[
"MIT"
] | null | null | null |
eth_accountz.py
|
Narasimha-sai/eth-provider-benchmark
|
ab2f9ef06e17706055813127dade8b185073479c
|
[
"MIT"
] | 1
|
2021-05-13T11:18:49.000Z
|
2021-05-13T11:18:49.000Z
|
class Account:
def __init__(self, address, privateKey):
self.address = address
self.privateKey = privateKey
| 31.75
| 44
| 0.677165
| 13
| 127
| 6.307692
| 0.538462
| 0.268293
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.244094
| 127
| 4
| 45
| 31.75
| 0.854167
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3822b47369e7a7a813b63c724fce05664d317033
| 271
|
py
|
Python
|
utilities/color_text.py
|
petermchale/trfermik
|
8f1bdd49ec3700619aaa6557d4660f302951ec3c
|
[
"MIT"
] | 9
|
2021-11-24T13:10:34.000Z
|
2022-01-11T17:46:34.000Z
|
utilities/color_text.py
|
petermchale/trfermikit
|
8f1bdd49ec3700619aaa6557d4660f302951ec3c
|
[
"MIT"
] | null | null | null |
utilities/color_text.py
|
petermchale/trfermikit
|
8f1bdd49ec3700619aaa6557d4660f302951ec3c
|
[
"MIT"
] | null | null | null |
from colorama import init as colorama_init
from colorama import Fore, Style
import sys
colorama_init(strip=False)
def error(text):
print(Fore.RED + text + Style.RESET_ALL, file=sys.stderr)
def info(text):
print(Fore.CYAN + text + Style.RESET_ALL, file=sys.stderr)
| 22.583333
| 60
| 0.760148
| 44
| 271
| 4.590909
| 0.477273
| 0.118812
| 0.178218
| 0.168317
| 0.29703
| 0.29703
| 0.29703
| 0
| 0
| 0
| 0
| 0
| 0.136531
| 271
| 11
| 61
| 24.636364
| 0.863248
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.375
| 0
| 0.625
| 0.25
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
698cbd99e99c9f7c30642c930dec4cd8e51485d6
| 3,011
|
py
|
Python
|
nopaste/model.py
|
fmount/nopaste
|
be72e3c4f1aacd961bacf960ef02c617a064dae5
|
[
"MIT"
] | 4
|
2017-12-07T16:13:49.000Z
|
2022-02-19T13:32:20.000Z
|
nopaste/model.py
|
fmount/nopaste
|
be72e3c4f1aacd961bacf960ef02c617a064dae5
|
[
"MIT"
] | null | null | null |
nopaste/model.py
|
fmount/nopaste
|
be72e3c4f1aacd961bacf960ef02c617a064dae5
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
############################################################################
#
# Licensed under the MIT License (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of the License
# in the LICENSE file or at
#
# https://opensource.org/licenses/MIT
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# author: fmount <fmount9@autistici.org>
# version: 0.1
# company: --
#
#############################################################################
from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import backref, mapper, relation, sessionmaker
from flask_restful import Api, Resource, reqparse, fields, marshal
from flask import Flask, abort, jsonify
from passlib.apps import custom_app_context as pwd_context
from config import CONF
import logging
import json
import sqlite_middleware
Base = declarative_base()
LOG = logging.getLogger(__name__)
class Link(Base):
__tablename__ = "links"
uuid = Column(Integer, primary_key=True, autoincrement=True, unique=True)
url = Column(String)
timestamp = Column(String)
def __init__(self, uuid, url, timestamp):
self.uuid = uuid
self.url = url
self.timestamp = timestamp
def __repr__(self):
return str(dict({"uuid": self.uuid, "url": self.url, "timestamp": self.timestamp}))
def __str__(self):
return str({"uuid": self.uuid, "url": self.url, "timestamp": self.timestamp})
def _tojson(self):
return jsonify("link", dict({"uuid": self.uuid, "url": self.url, "timestamp": self.timestamp}))
class User(Base):
__tablename__ = "users"
uuid = Column(Integer, autoincrement=True, primary_key=True)
username = Column(String(32), index=True)
password_hash = Column(String(128))
def __init__(self, uuid, username, password):
self.uuid = uuid
self.username = username
self.password_hash = self.hash_password(password)
def hash_password(self, password):
return pwd_context.encrypt(password)
def verify_password(self, password):
return pwd_context.verify(password, self.password_hash)
def isadmin(self):
if self.username == CONF.default.admin_user and \
self.verify_password(CONF.default.admin_password):
return True
return False
def __repr__(self):
pass
def __str__(self):
pass
def _tojson(self):
return dict({"uuid": self.uuid, "name": self.username})
| 27.87963
| 103
| 0.644636
| 359
| 3,011
| 5.24234
| 0.412256
| 0.034006
| 0.023379
| 0.025505
| 0.115834
| 0.115834
| 0.077577
| 0.077577
| 0.077577
| 0.077577
| 0
| 0.003793
| 0.21189
| 3,011
| 107
| 104
| 28.140187
| 0.789296
| 0.231485
| 0
| 0.192308
| 0
| 0
| 0.03268
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.211538
| false
| 0.211538
| 0.211538
| 0.115385
| 0.769231
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
69d3ae7a476b917c896b4c17e794ac8a7ea09e1f
| 2,240
|
py
|
Python
|
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/ES3_1_compatibility.py
|
JE-Chen/je_old_repo
|
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
|
[
"MIT"
] | null | null | null |
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/ES3_1_compatibility.py
|
JE-Chen/je_old_repo
|
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
|
[
"MIT"
] | null | null | null |
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/ES3_1_compatibility.py
|
JE-Chen/je_old_repo
|
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
|
[
"MIT"
] | null | null | null |
'''OpenGL extension ARB.ES3_1_compatibility
This module customises the behaviour of the
OpenGL.raw.GL.ARB.ES3_1_compatibility to provide a more
Python-friendly API
Overview (from the spec)
This extension adds support for features of OpenGL ES 3.1 that are
missing from OpenGL 4.4. Enabling these features will ease the process
of porting applications from OpenGL ES 3.1 to OpenGL.
In particular this adds the following features:
- a new MemoryBarrierByRegion API which is potentially more efficient
for specific localized memory access patterns.
- increases the minimum required size of SSBOs to 2^27 (128 MB).
- support for GLSL ES version 310 (ie #version 310 es).
- a new GLSL built-in function, imageAtomicExchange, which performs atomic
exchanges on r32f floating point images.
- a new GLSL built-in fragment shader input, gl_HelperInvocation, that
identifies whether the current fragment shader input is a helper
invocation. Fragment shader code can use this variable to skip performing
operations that are useless or potentially dangerous for helper
invocations.
- a new GLSL built-in constant for the maximum supported samples:
gl_MaxSamples.
- a number of new GLSL built-in constants mirroring the API limits for
image uniforms: gl_Max*ImageUniforms, gl_MaxCombinedShaderOutputResources.
- new GLSL built-in functions which extend mix() to select between int,
uint, and bool components.
- add the "coherent" qualifier to all memory variables taken by the GLSL
built-in atomic* and imageAtomic* functions.
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/ES3_1_compatibility.txt
'''
from OpenGL import platform, constant, arrays
from OpenGL import extensions, wrapper
import ctypes
from OpenGL.raw.GL import _types, _glgets
from OpenGL.raw.GL.ARB.ES3_1_compatibility import *
from OpenGL.raw.GL.ARB.ES3_1_compatibility import _EXTENSION_NAME
def glInitEs31CompatibilityARB():
'''Return boolean indicating whether this extension is available'''
from OpenGL import extensions
return extensions.hasGLExtension( _EXTENSION_NAME )
### END AUTOGENERATED SECTION
| 37.966102
| 76
| 0.772768
| 317
| 2,240
| 5.397476
| 0.501577
| 0.046756
| 0.038574
| 0.058445
| 0.092344
| 0.066043
| 0.066043
| 0.047925
| 0.047925
| 0
| 0
| 0.017401
| 0.179018
| 2,240
| 59
| 77
| 37.966102
| 0.912996
| 0.899107
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| true
| 0
| 0.777778
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
69d77b52aa6a253635c2332d5204149d6810c5cf
| 103
|
py
|
Python
|
examples/vanilla/python/__overrides/gatask.override.py
|
edwinfeener/monolithe
|
0f024b2ec7d4c5a2229612280e5e559bf2667ba5
|
[
"BSD-3-Clause"
] | 18
|
2015-06-24T18:35:20.000Z
|
2022-01-19T19:04:00.000Z
|
examples/vanilla/python/__overrides/gatask.override.py
|
edwinfeener/monolithe
|
0f024b2ec7d4c5a2229612280e5e559bf2667ba5
|
[
"BSD-3-Clause"
] | 63
|
2015-11-03T18:57:12.000Z
|
2020-09-30T02:54:49.000Z
|
examples/vanilla/python/__overrides/gatask.override.py
|
edwinfeener/monolithe
|
0f024b2ec7d4c5a2229612280e5e559bf2667ba5
|
[
"BSD-3-Clause"
] | 38
|
2015-10-23T19:04:44.000Z
|
2021-06-04T08:13:33.000Z
|
def is_complete(self):
""" Returns if the task is complete
"""
return self.status == "DONE"
| 25.75
| 39
| 0.621359
| 14
| 103
| 4.5
| 0.785714
| 0.31746
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.242718
| 103
| 4
| 40
| 25.75
| 0.807692
| 0.300971
| 0
| 0
| 0
| 0
| 0.065574
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3855efe1af5ac5e9cd6bb36b99dc1b32d3a74c3c
| 286
|
py
|
Python
|
skeleton/main.py
|
elsampsa/skeleton
|
30679fc787014e347e0b21a6f74193237c0ffe61
|
[
"MIT"
] | 4
|
2022-02-18T10:59:53.000Z
|
2022-03-21T10:28:32.000Z
|
skeleton/main.py
|
elsampsa/skeleton
|
30679fc787014e347e0b21a6f74193237c0ffe61
|
[
"MIT"
] | null | null | null |
skeleton/main.py
|
elsampsa/skeleton
|
30679fc787014e347e0b21a6f74193237c0ffe61
|
[
"MIT"
] | null | null | null |
"""
NAME.py : Description of the file
* Copyright: 2017 [copyright holder]
* Authors : Sampsa Riikonen
* Date : 2017
* Version : 0.1
This file is part of the skeleton library
[copy-paste your license here]
"""
import logging
def app(command, options, config):
pass
| 14.3
| 41
| 0.674825
| 39
| 286
| 4.948718
| 0.871795
| 0.051813
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.045455
| 0.230769
| 286
| 19
| 42
| 15.052632
| 0.831818
| 0.734266
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
389cb14abf3d9499abc45491b9433da8f8d4b5d7
| 238
|
py
|
Python
|
cps/cpssdk/__init__.py
|
GrandDuelist/cpssdk
|
86f3e07a12801d060abc93b55d0ae5a5d4414b43
|
[
"MIT"
] | 2
|
2018-09-18T06:04:17.000Z
|
2018-09-18T06:04:20.000Z
|
cps/cpssdk/__init__.py
|
GrandDuelist/cpssdk
|
86f3e07a12801d060abc93b55d0ae5a5d4414b43
|
[
"MIT"
] | null | null | null |
cps/cpssdk/__init__.py
|
GrandDuelist/cpssdk
|
86f3e07a12801d060abc93b55d0ae5a5d4414b43
|
[
"MIT"
] | null | null | null |
from .cpsspatio import CPSSpatio,CPSCrop,CPSDistance
from .cpstime import CPSTime
from .cpsos import CPSOS
from .cpsfeatures import CPSFeatures
from .cpsplot import CPSPlot
from .cpsraster import CPSPop
from .cpspandas import CPSPandas
| 26.444444
| 52
| 0.836134
| 30
| 238
| 6.633333
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12605
| 238
| 8
| 53
| 29.75
| 0.956731
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
38b2c28c93da36248ff6f62577ba93e9eb66960b
| 225
|
py
|
Python
|
lox/lock/__init__.py
|
BrianPugh/lox
|
74da633c7cb44ac303d016e07f5a4f1e2817317f
|
[
"Apache-2.0"
] | 54
|
2019-05-23T21:58:04.000Z
|
2022-03-17T02:55:02.000Z
|
lox/lock/__init__.py
|
BrianPugh/lox
|
74da633c7cb44ac303d016e07f5a4f1e2817317f
|
[
"Apache-2.0"
] | 145
|
2019-06-03T22:16:44.000Z
|
2021-12-10T22:49:32.000Z
|
lox/lock/__init__.py
|
BrianPugh/lox
|
74da633c7cb44ac303d016e07f5a4f1e2817317f
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Concurrency control objects to help parallelized tasks communicate and share resources.
"""
from .light_switch import *
from .rw_lock import *
from .index_semaphore import *
from .qlock import *
| 20.454545
| 87
| 0.733333
| 29
| 225
| 5.586207
| 0.793103
| 0.185185
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005291
| 0.16
| 225
| 10
| 88
| 22.5
| 0.851852
| 0.488889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
38d7ea64d1da088dc82aa11bedde0c04418dfec8
| 352
|
py
|
Python
|
opera/datasets/pipelines/__init__.py
|
hikvisionresearch/opera
|
0fb345a7ad0046c6fd674959c0ae19a65adeeacf
|
[
"Apache-2.0"
] | 5
|
2022-03-24T03:08:49.000Z
|
2022-03-30T02:29:38.000Z
|
opera/datasets/pipelines/__init__.py
|
hikvisionresearch/opera
|
0fb345a7ad0046c6fd674959c0ae19a65adeeacf
|
[
"Apache-2.0"
] | null | null | null |
opera/datasets/pipelines/__init__.py
|
hikvisionresearch/opera
|
0fb345a7ad0046c6fd674959c0ae19a65adeeacf
|
[
"Apache-2.0"
] | null | null | null |
# Copyright (c) Hikvision Research Institute. All rights reserved.
from .formating import DefaultFormatBundle
from .loading import LoadAnnotations
from .transforms import (Resize, RandomFlip, RandomCrop, KeypointRandomAffine)
__all__ = [
'DefaultFormatBundle', 'LoadAnnotations', 'Resize', 'RandomFlip',
'RandomCrop', 'KeypointRandomAffine'
]
| 35.2
| 78
| 0.784091
| 30
| 352
| 9.066667
| 0.633333
| 0.117647
| 0.191176
| 0.338235
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122159
| 352
| 9
| 79
| 39.111111
| 0.880259
| 0.181818
| 0
| 0
| 0
| 0
| 0.27972
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.428571
| 0
| 0.428571
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c7f9fae0f939e88721270d7e4ab168a28dde5b34
| 148
|
py
|
Python
|
raft/oplog.py
|
aiodb/common
|
dd938917722cd1492db1eab425bd91b011b4921c
|
[
"MIT"
] | null | null | null |
raft/oplog.py
|
aiodb/common
|
dd938917722cd1492db1eab425bd91b011b4921c
|
[
"MIT"
] | null | null | null |
raft/oplog.py
|
aiodb/common
|
dd938917722cd1492db1eab425bd91b011b4921c
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2022/2/21
class OperationLog:
"""
append only write operation log
"""
pass
| 14.8
| 35
| 0.567568
| 19
| 148
| 4.421053
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072727
| 0.256757
| 148
| 9
| 36
| 16.444444
| 0.690909
| 0.621622
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
2a26fc5b7c06c441586f6f221195e2404ea1a1ad
| 63
|
py
|
Python
|
winton_kafka_streams/version.py
|
jkramarz/winton-kafka-streams
|
22526da71454a8b9c7bba53e4f59f645535de602
|
[
"Apache-2.0"
] | 330
|
2017-07-12T09:05:43.000Z
|
2022-03-14T06:44:59.000Z
|
winton_kafka_streams/version.py
|
sribarrow/winton-kafka-streams
|
5867a1c42fc80bba07173fd1d004b2849b429fdf
|
[
"Apache-2.0"
] | 39
|
2017-07-13T10:36:07.000Z
|
2021-06-14T06:28:38.000Z
|
winton_kafka_streams/version.py
|
sribarrow/winton-kafka-streams
|
5867a1c42fc80bba07173fd1d004b2849b429fdf
|
[
"Apache-2.0"
] | 71
|
2017-07-12T10:51:55.000Z
|
2021-12-28T08:57:10.000Z
|
from setuptools_scm import get_version
version = get_version()
| 21
| 38
| 0.84127
| 9
| 63
| 5.555556
| 0.666667
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 63
| 2
| 39
| 31.5
| 0.892857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
2a3126ba11d2ef2da8677ce6abd9c816f5125c2b
| 8,157
|
py
|
Python
|
wagtailmenus/tests/test_hooks.py
|
pierremanceaux/wagtailmenus
|
8e2e81e74fa37a9d4139c6be7158cd3d1429ac1d
|
[
"MIT"
] | null | null | null |
wagtailmenus/tests/test_hooks.py
|
pierremanceaux/wagtailmenus
|
8e2e81e74fa37a9d4139c6be7158cd3d1429ac1d
|
[
"MIT"
] | null | null | null |
wagtailmenus/tests/test_hooks.py
|
pierremanceaux/wagtailmenus
|
8e2e81e74fa37a9d4139c6be7158cd3d1429ac1d
|
[
"MIT"
] | null | null | null |
from __future__ import absolute_import, unicode_literals
from bs4 import BeautifulSoup
from django.test import TestCase
from wagtail import VERSION as WAGTAIL_VERSION
if WAGTAIL_VERSION >= (2, 0):
from wagtail.core import hooks
else:
from wagtail.wagtailcore import hooks
class TestHooks(TestCase):
fixtures = ['test.json']
def test_menus_modify_primed_menu_items(self):
# NOTE: Positional args used to ensure supplied args remain consistent
@hooks.register('menus_modify_primed_menu_items')
def modify_menu_items(
menu_items, request, parent_context, parent_page, menu_instance,
original_menu_instance, menu_tag, original_menu_tag, current_level,
max_levels, use_specific, current_site, current_page,
current_section_root_page, current_page_ancestor_ids,
apply_active_classes, allow_repeating_parents,
use_absolute_page_urls
):
if original_menu_tag == 'main_menu' and current_level == 1:
menu_items.append({
'href': 'https://rkh.co.uk',
'text': 'VISIT RKH.CO.UK',
'active_class': 'external',
})
return menu_items
# Let's render the test homepage to see what happens!
response = self.client.get('/')
# unhook asap to prevent knock-on effects on failure
del hooks._hooks['menus_modify_primed_menu_items']
# If the the hook failed to receive any of the arguments defined
# on `modify_menu_items` above, there will be an error
self.assertEqual(response.status_code, 200)
# There are 4 main menus being output, and because our hook only adds
# the additional item to the first level of each of those, the
# 'VISIT RKH.CO.UK' text should appear exactly 4 times
self.assertContains(response, 'VISIT RKH.CO.UK', 4)
def test_menus_modify_raw_menu_items(self):
# NOTE: Positional args used to ensure supplied args remain consistent
@hooks.register('menus_modify_raw_menu_items')
def modify_menu_items(
menu_items, request, parent_context, parent_page, menu_instance,
original_menu_instance, menu_tag, original_menu_tag, current_level,
max_levels, use_specific, current_site, current_page,
current_section_root_page, current_page_ancestor_ids,
apply_active_classes, allow_repeating_parents,
use_absolute_page_urls
):
if original_menu_tag == 'section_menu' and current_level == 1:
"""
For the first level of section menus, add a copy of the first
page to the end of the list
"""
try:
menu_items.append(menu_items[0])
except KeyError:
pass
return menu_items
# Let's render the 'about us' page to see what happens!
response = self.client.get('/about-us/')
# unhook asap to prevent knock-on effects on failure
del hooks._hooks['menus_modify_raw_menu_items']
# If the the hook failed to receive any of the arguments defined
# on `modify_menu_items` above, there will be an error
self.assertEqual(response.status_code, 200)
# Test output reflects hook changes
soup = BeautifulSoup(response.content, 'html5lib')
section_menu_html = soup.find(id='section-menu-one-level').decode()
# 'Call us' is a page link, so should no longer appear
expected_html = """
<div id="section-menu-one-level">
<nav class="nav-section" role="navigation">
<a href="/about-us/" class="ancestor section_root">About us</a>
<ul>
<li class="active"><a href="/about-us/">Section home</a></li>
<li class=""><a href="/about-us/meet-the-team/">Meet the team</a></li>
<li class=""><a href="/about-us/our-heritage/">Our heritage</a></li>
<li class=""><a href="/about-us/mission-and-values/">Our mission and values</a></li>
<li class=""><a href="/about-us/meet-the-team/">Meet the team</a></li>
</ul>
</nav>
</div>
"""
self.assertHTMLEqual(section_menu_html, expected_html)
def test_menus_modify_base_page_queryset(self):
# NOTE: Positional args used to ensure supplied args remain consistent
@hooks.register('menus_modify_base_page_queryset')
def modify_page_queryset(
queryset, request, parent_context, parent_page, menu_instance,
original_menu_instance, menu_tag, original_menu_tag, current_level,
max_levels, use_specific, current_site, current_page,
current_section_root_page, current_page_ancestor_ids,
apply_active_classes, allow_repeating_parents,
use_absolute_page_urls
):
"""
Nullify page queryset for 'flat menus'. Should result in only
links to custom urls being rendered.
"""
if menu_tag == 'flat_menu':
queryset = queryset.none()
return queryset
# Let's render the test homepage to see what happens!
response = self.client.get('/')
# unhook asap to prevent knock-on effects on failure
del hooks._hooks['menus_modify_base_page_queryset']
# If the the hook failed to receive any of the arguments defined
# on `modify_menu_items` above, there will be an error
self.assertEqual(response.status_code, 200)
# Test output reflects hook changes
soup = BeautifulSoup(response.content, 'html5lib')
contact_menu_html = soup.find(id='nav-contact').decode()
# 'Call us' is a page link, so should no longer appear
expected_html = """
<div id="nav-contact">
<div class="flat-menu contact no_heading">
<ul>
<li class=""><a href="#advisor-chat">Chat to an advisor</a></li>
<li class=""><a href="#request-callback">Request a callback</a></li>
</ul>
</div>
</div>
"""
self.assertHTMLEqual(contact_menu_html, expected_html)
def test_menus_modify_base_menuitem_queryset(self):
# NOTE: Positional args used to ensure supplied args remain consistent
@hooks.register('menus_modify_base_menuitem_queryset')
def modify_menuitem_queryset(
queryset, request, parent_context, parent_page, menu_instance,
original_menu_instance, menu_tag, original_menu_tag, current_level,
max_levels, use_specific, current_site, current_page,
current_section_root_page, current_page_ancestor_ids,
apply_active_classes, allow_repeating_parents,
use_absolute_page_urls
):
"""
Nullify menu items completely for all 'flat menus'. Should result
in completely empty menus
"""
if menu_tag == 'flat_menu':
queryset = queryset.none()
return queryset
# Let's render the test homepage to see what happens!
response = self.client.get('/')
# unhook asap to prevent knock-on effects on failure
del hooks._hooks['menus_modify_base_menuitem_queryset']
# If the the hook failed to receive any of the arguments defined
# on `modify_menu_items` above, there will be an error
self.assertEqual(response.status_code, 200)
# Test output reflects hook changes
soup = BeautifulSoup(response.content, 'html5lib')
contact_menu_html = soup.find(id='nav-contact').decode()
# There should be no menu items, so just an empty div (no <ul>)
expected_html = """
<div id="nav-contact">
<div class="flat-menu contact no_heading"></div>
</div>
"""
self.assertHTMLEqual(contact_menu_html, expected_html)
| 43.15873
| 104
| 0.624985
| 1,008
| 8,157
| 4.830357
| 0.195437
| 0.038817
| 0.018484
| 0.014787
| 0.769973
| 0.720066
| 0.716985
| 0.708154
| 0.692134
| 0.65763
| 0
| 0.004137
| 0.288709
| 8,157
| 188
| 105
| 43.388298
| 0.835057
| 0.220302
| 0
| 0.583333
| 0
| 0.033333
| 0.267869
| 0.085902
| 0
| 0
| 0
| 0
| 0.066667
| 1
| 0.066667
| false
| 0.008333
| 0.05
| 0
| 0.166667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
2a549af3d4277f6a3510dd1b4214824281806a7a
| 71
|
py
|
Python
|
packages/vaex-hdf5/vaex/hdf5/_version.py
|
rishi1111/vaex
|
b3516201d04e9277b8918dadab9df33a7c83c01a
|
[
"MIT"
] | null | null | null |
packages/vaex-hdf5/vaex/hdf5/_version.py
|
rishi1111/vaex
|
b3516201d04e9277b8918dadab9df33a7c83c01a
|
[
"MIT"
] | null | null | null |
packages/vaex-hdf5/vaex/hdf5/_version.py
|
rishi1111/vaex
|
b3516201d04e9277b8918dadab9df33a7c83c01a
|
[
"MIT"
] | null | null | null |
__version_tuple__ = (0, 7, 0, 'alpha.1')
__version__ = '0.7.0-alpha.1'
| 23.666667
| 40
| 0.647887
| 13
| 71
| 2.846154
| 0.461538
| 0.108108
| 0.162162
| 0.432432
| 0.486486
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 0.126761
| 71
| 2
| 41
| 35.5
| 0.467742
| 0
| 0
| 0
| 0
| 0
| 0.28169
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
2a633934e347956566a38fdf857ac97093ee048a
| 132
|
py
|
Python
|
analyzer/tests.py
|
awwong1/semscrape
|
7e7184a35d6cc96bad9a2e64ab7211b20df4dad6
|
[
"Apache-2.0"
] | null | null | null |
analyzer/tests.py
|
awwong1/semscrape
|
7e7184a35d6cc96bad9a2e64ab7211b20df4dad6
|
[
"Apache-2.0"
] | null | null | null |
analyzer/tests.py
|
awwong1/semscrape
|
7e7184a35d6cc96bad9a2e64ab7211b20df4dad6
|
[
"Apache-2.0"
] | null | null | null |
from django.test import TestCase
class AnalyzerTasksTestCase(TestCase):
@classmethod
def setUpTestData(cls):
pass
| 16.5
| 38
| 0.727273
| 13
| 132
| 7.384615
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.212121
| 132
| 7
| 39
| 18.857143
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.2
| 0.2
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.