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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b0347f10c5746915500b0d6e172c2c32ab5316d0
| 121
|
py
|
Python
|
Deutsch-Jozsa-Algorithm/main.py
|
Gregory-Eales/QA-Reimplementations
|
bef0b3e67397a73c468e539c426c6629d398433b
|
[
"MIT"
] | 1
|
2019-05-03T21:48:29.000Z
|
2019-05-03T21:48:29.000Z
|
Deutsch-Jozsa-Algorithm/main.py
|
Gregory-Eales/QA-Reimplementations
|
bef0b3e67397a73c468e539c426c6629d398433b
|
[
"MIT"
] | null | null | null |
Deutsch-Jozsa-Algorithm/main.py
|
Gregory-Eales/QA-Reimplementations
|
bef0b3e67397a73c468e539c426c6629d398433b
|
[
"MIT"
] | null | null | null |
import qsharp
from DeutschJozsa import SayHello, RunDeutschJozsa
SayHello.simulate()
RunDeutschJozsa.simulate(N=10)
| 13.444444
| 50
| 0.818182
| 14
| 121
| 7.142857
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018519
| 0.107438
| 121
| 8
| 51
| 15.125
| 0.898148
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.5
| null | null | 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
b06a839b9e9c3f3cd1914d16be145f347a1d20cd
| 11,314
|
py
|
Python
|
nyc/nyc-new-cases.py
|
btrr/covid19-epicenters
|
4134967f6dbbdeb5ad91a435dc72d905e9886fd6
|
[
"MIT"
] | 1
|
2020-04-02T15:48:28.000Z
|
2020-04-02T15:48:28.000Z
|
nyc/nyc-new-cases.py
|
btrr/covid19-epicenters
|
4134967f6dbbdeb5ad91a435dc72d905e9886fd6
|
[
"MIT"
] | null | null | null |
nyc/nyc-new-cases.py
|
btrr/covid19-epicenters
|
4134967f6dbbdeb5ad91a435dc72d905e9886fd6
|
[
"MIT"
] | null | null | null |
import datetime as dt
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import matplotlib.ticker as ticker
from matplotlib.dates import MO, TU, WE, TH, FR, SA, SU
dates = ['2/29/2020', '3/1/2020', '3/2/2020', '3/3/2020', '3/4/2020', '3/5/2020', '3/6/2020', '3/7/2020', '3/8/2020', '3/9/2020', '3/10/2020', '3/11/2020', '3/12/2020', '3/13/2020', '3/14/2020', '3/15/2020', '3/16/2020', '3/17/2020', '3/18/2020', '3/19/2020', '3/20/2020', '3/21/2020', '3/22/2020', '3/23/2020', '3/24/2020', '3/25/2020', '3/26/2020', '3/27/2020', '3/28/2020', '3/29/2020', '3/30/2020', '3/31/2020', '4/1/2020', '4/2/2020', '4/3/2020', '4/4/2020', '4/5/2020', '4/6/2020', '4/7/2020', '4/8/2020', '4/9/2020', '4/10/2020', '4/11/2020', '4/12/2020', '4/13/2020', '4/14/2020', '4/15/2020', '4/16/2020', '4/17/2020', '4/18/2020', '4/19/2020', '4/20/2020', '4/21/2020', '4/22/2020', '4/23/2020', '4/24/2020', '4/25/2020', '4/26/2020', '4/27/2020', '4/28/2020', '4/29/2020', '4/30/2020', '5/1/2020', '5/2/2020', '5/3/2020', '5/4/2020', '5/5/2020', '5/6/2020', '5/7/2020', '5/8/2020', '5/9/2020', '5/10/2020', '5/11/2020', '5/12/2020', '5/13/2020', '5/14/2020', '5/15/2020', '5/16/2020', '5/17/2020', '5/18/2020', '5/19/2020', '5/20/2020', '5/21/2020', '5/22/2020', '5/23/2020', '5/24/2020', '5/25/2020', '5/26/2020', '5/27/2020', '5/28/2020', '5/29/2020', '5/30/2020', '5/31/2020', '6/1/2020', '6/2/2020', '6/3/2020', '6/4/2020', '6/5/2020', '6/6/2020', '6/7/2020', '6/8/2020', '6/9/2020', '6/10/2020', '6/11/2020', '6/12/2020', '6/13/2020', '6/14/2020', '6/15/2020', '6/16/2020', '6/17/2020', '6/18/2020', '6/19/2020', '6/20/2020', '6/21/2020', '6/22/2020', '6/23/2020', '6/24/2020', '6/25/2020', '6/26/2020', '6/27/2020', '6/28/2020', '6/30/2020', '7/01/2020', '7/02/2020',
'7/03/2020', '7/04/2020', '7/05/2020', '7/06/2020', '7/07/2020', '7/08/2020', '7/09/2020', '7/10/2020', '7/11/2020', '7/12/2020', '7/13/2020', '7/14/2020', '7/15/2020', '7/16/2020', '7/17/2020', '7/18/2020', '7/19/2020', '7/20/2020', '7/21/2020', '7/22/2020', '7/23/2020', '7/24/2020', '7/25/2020', '7/26/2020', '7/27/2020', '7/28/2020', '7/29/2020', '7/30/2020', '7/31/2020', '8/01/2020', '8/02/2020', '8/03/2020', '8/04/2020', '8/05/2020', '8/06/2020', '8/07/2020', '8/08/2020', '8/09/2020', '8/10/2020', '8/11/2020', '8/12/2020', '8/13/2020', '8/14/2020', '8/15/2020', '8/16/2020', '8/17/2020', '8/18/2020', '8/19/2020', '8/20/2020', '8/21/2020', '8/22/2020', '8/23/2020', '8/24/2020', '8/25/2020', '8/26/2020', '8/27/2020', '8/28/2020', '8/29/2020', '8/30/2020', '8/31/2020', '9/01/2020', '9/02/2020', '9/3/2020', '9/4/2020', '9/5/2020', '9/7/2020', '9/08/2020', '9/09/2020', '9/10/2020', '9/11/2020', '9/12/2020', '9/14/2020', '9/15/2020', '9/16/2020', '9/17/2020', '9/18/2020', '9/19/2020', '9/20/2020', '9/21/2020', '9/22/2020', '9/23/2020', '9/24/2020', '9/25/2020', '9/26/2020', '9/27/2020', '9/28/2020', '9/29/2020', '9/30/2020', '10/01/2020', '10/02/2020', '10/03/2020', '10/04/2020', '10/05/2020', '10/06/2020', '10/07/2020', '10/08/2020', '10/09/2020', '10/10/2020', '10/11/2020', '10/12/2020', '10/13/2020', '10/14/2020', '10/15/2020', '10/16/2020', '10/17/2020', '10/18/2020', '10/19/2020', '10/20/2020', '10/21/2020', '10/22/2020', '10/23/2020', '10/24/2020', '10/25/2020', '10/26/2020', '10/27/2020', '10/28/2020', '10/29/2020', '10/30/2020', '10/31/2020', '11/01/2020', '11/02/2020', '11/03/2020', '11/04/2020', '11/05/2020', '11/06/2020', '11/07/2020', '11/08/2020', '11/09/2020', '11/10/2020', '11/11/2020', '11/12/2020', '11/13/2020', '11/14/2020', '11/15/2020', '11/16/2020', '11/17/2020', '11/18/2020', '11/19/2020', '11/20/2020', '11/21/2020', '11/22/2020', '11/23/2020', '11/24/2020', '11/25/2020', '11/26/2020', '11/27/2020', '11/28/2020', '11/29/2020', '11/30/2020', '12/01/2020', '12/02/2020', '12/03/2020', '12/04/2020', '12/05/2020', '12/06/2020', '12/07/2020', '12/08/2020', '12/09/2020', '12/10/2020', '12/11/2020', '12/12/2020', '12/13/2020', '12/14/2020', '12/15/2020', '12/16/2020', '12/17/2020', '12/18/2020', '12/19/2020', '12/20/2020', '12/21/2020', '12/22/2020', '12/23/2020', '12/24/2020', '12/25/2020', '12/26/2020', '12/27/2020', '12/28/2020', '12/29/2020', '12/30/2020', '12/31/2020', '01/01/2021', '01/02/2021', '01/03/2021', '01/04/2021', '01/05/2021', '01/06/2021', '01/07/2021', '01/08/2021', '01/09/2021', '01/10/2021', '01/11/2021', '01/12/2021', '01/13/2021', '01/14/2021', '01/15/2021', '01/16/2021', '01/17/2021', '01/18/2021', '01/19/2021', '01/20/2021', '01/21/2021', '01/22/2021', '01/23/2021', '01/24/2021', '01/25/2021', '01/26/2021', '01/27/2021', '01/28/2021', '01/29/2021', '01/30/2021', '01/31/2021', '02/01/2021', '02/02/2021', '02/03/2021', '02/04/2021', '02/05/2021', '02/06/2021', '02/07/2021', '02/08/2021', '02/09/2021', '02/10/2021', '02/11/2021', '02/12/2021', '02/13/2021', '02/14/2021', '02/15/2021', '02/16/2021', '02/17/2021', '02/18/2021', '02/19/2021', '02/20/2021', '02/21/2021', '02/22/2021', '02/23/2021', '02/24/2021', '02/25/2021', '02/26/2021', '02/27/2021', '02/28/2021', '03/01/2021', '03/02/2021', '03/03/2021', '03/04/2021', '03/05/2021', '03/06/2021', '03/07/2021', '03/08/2021', '03/09/2021', '03/10/2021', '03/11/2021', '03/12/2021', '03/13/2021', '03/14/2021', '03/15/2021', '03/16/2021', '03/17/2021', '03/18/2021', '03/19/2021', '03/20/2021', '03/24/2021', '03/25/2021', '03/26/2021', '03/27/2021', '03/28/2021', '03/29/2021', '03/30/2021', '03/31/2021', '04/01/2021', '04/02/2021', '04/03/2021', '04/04/2021', '04/05/2021', '04/06/2021', '04/07/2021', '04/08/2021', '04/09/2021', '04/10/2021', '04/11/2021', '04/12/2021', '04/13/2021', '04/14/2021', '04/15/2021', '04/16/2021', '04/17/2021', '04/18/2021', '04/19/2021', '04/20/2021', '04/21/2021', '04/22/2021', '04/23/2021', '04/24/2021', '04/25/2021', '04/26/2021', '04/27/2021', '04/28/2021', '04/29/2021', '04/30/2021', '05/01/2021', '05/02/2021', '05/03/2021', '05/04/2021', '05/05/2021', '05/06/2021', '05/07/2021', '05/08/2021', '05/09/2021', '05/10/2021', '05/11/2021', '05/12/2021', '05/13/2021', '05/14/2021', '05/15/2021', '05/16/2021', '05/17/2021', '05/18/2021', '05/19/2021', '05/20/2021', '05/21/2021', '05/22/2021', '05/23/2021', '05/24/2021', '05/25/2021', '05/26/2021', '05/27/2021', '05/28/2021', '05/29/2021', '05/30/2021', '05/31/2021', '06/01/2021', '06/02/2021', '06/03/2021', '06/04/2021', '06/05/2021', '06/06/2021', '06/07/2021', '06/08/2021', '06/09/2021', '06/10/2021', '06/11/2021', '06/12/2021', '06/13/2021', '06/14/2021', '06/15/2021', '06/16/2021', '06/17/2021', '06/18/2021', '06/19/2021', '06/20/2021', '06/21/2021', '06/22/2021', '06/23/2021', '06/24/2021', '06/25/2021', '06/26/2021', '06/27/2021', '06/28/2021', '06/29/2021', '06/30/2021', '07/01/2021', '07/02/2021', '07/03/2021', '07/04/2021', '07/05/2021']
# format dates
x_values = [dt.datetime.strptime(d, "%m/%d/%Y").date() for d in dates]
ax = plt.gca()
formatter = mdates.DateFormatter("%m/%d")
ax.xaxis.set_major_formatter(formatter)
# create x-axis
ax.xaxis.set_major_locator(mdates.WeekdayLocator(
byweekday=(MO, TU, WE, TH, FR, SA, SU), interval=21))
# minor tick = daily
ax.xaxis.set_minor_locator(mdates.WeekdayLocator(
byweekday=(MO, TU, WE, TH, FR, SA, SU)))
# format y-axis
ax.get_yaxis().set_major_formatter(
ticker.FuncFormatter(lambda x, pos: format(int(x/1000), ',')))
# schools closed
plt.axvline(dt.datetime(2020, 3, 18), linestyle='--',
color='orange', linewidth=2, label='schools')
# non-essential businesses closed
plt.axvline(dt.datetime(2020, 3, 20), linestyle='--',
color='red', linewidth=2, label='nonessential')
# stay-at-home
plt.axvline(dt.datetime(2020, 3, 22), color='black',
linewidth=2, label='stay at home')
# massive funeral in brooklyn
plt.axvline(dt.datetime(2020, 4, 29), color='black',
linestyle='--', linewidth=2, label='funeral')
# reopening, phase 1
plt.axvline(dt.datetime(2020, 6, 8), color='green',
linewidth=2, label='stay at home')
# schools reopen
plt.axvline(dt.datetime(2020, 9, 21), color='red',
linewidth=2, label='schools reopen')
# schools close again
plt.axvline(dt.datetime(2020, 11, 19), color='blue',
linewidth=2, label='schools close')
# new cases by day
new_cases = [0, 1, 0, 0, 0, 3, 0, 7, 9, 7, 5, 23, 47, 59, 115, 60, 485, 109, 1086, 1606, 2068, 2432, 2649, 2355, 2478, 4414, 3101, 3585, 4033, 2744, 4613, 5052, 4210, 2358, 6582, 4561, 4105, 3821, 5825, 5603, 7521, 6684, 4306, 5695, 2403, 450, 4161, 6141, 4583, 4220, 3420, 2679, 2407, 3561, 3319, 4385, 4437, 2628, 2896, 1613, 2152, 2347, 2293, 2378, 1962, 1689, 1189, 1565, 1421, 1377, 1395, 1285, 4896, 657, 887, 1087, 1555, 1183, 1377, 665, 577, 724, 466, 1111, 716, 785, 646, 525, 728, 904, 783, 855, 654, 283, 293, 683, 513, 510, 601, 389, 434, 323, 435, 394, 441, 476, 284, 443, 324, 448, 276, 358, 308,
550, 249, 331, 292, 338, 385, 321, 340, 503, 340, 362, 438, 349, 291, 209, 310, 199, 382, 313, 333, 326, 275, 269, 366, 396, 332, 333, 264, 319, 552, 98, 361, 152, 531, 94, 217, 424, 313, 314, 288, 309, 199, 192, 318, 346, 287, 403, 241, 321, 210, 272, 364, 429, 330, 224, 489, 221, 181, 261, 305, 203, 217, 284, 189, 171, 183, 236, 311, 233, 229, 225, 291, 248, 324, 222, 304, 230, 212, 196, 478, 216, 290, 420, 336, 253, 275, 327, 634, 188, 320, 284, 209, 379, 386, 401, 343, 367, 395, 486, 466, 579, 609, 530, 439, 473, 587, 421, 652, 680, 473, 352, 416, 502, 438, 555, 545, 486, 523, 390, 718, 436, 481, 968, 343, 367, 568, 561, 314, 1117, 641, 585, 447, 732, 592, 800, 1087, 1151, 646, 52, 1389, 963, 1127, 1154, 1228, 1489, 973, 1552, 1264, 1486, 1420, 1572, 1398, 1642, 1350, 1312, 1959, 1889, 1905, 1282, 2100, 2218, 2384, 2512, 2855, 2498, 2406, 2298, 2715, 2561, 2582, 2643, 3168, 2630, 2367, 3265, 2531, 2539, 3874, 2633, 2256, 2761, 2693, 3199, 3766, 3452, 3222, 2653, 2512, 4029, 3366, 3851, 4800, 5041, 2937, 2892, 3956, 3969, 5077, 5241, 4770, 5045, 4306, 5168, 4508, 4746, 6222, 5018, 4988, 4520, 4509, 3571, 4283, 5127, 4844, 5130, 4086, 3982, 3013, 4964, 4774, 5229, 4533, 3375, 3069, 2570, 2084, 2463, 4394, 3973, 4160, 3811, 2144, 3870, 3407, 3590, 3398, 2945, 2904, 1914, 5296, 3819, 3515, 2306, 2554, 2974, 2558, 3459, 3149, 3265, 3318, 2806, 2979, 2369, 3084, 3389, 3245, 3087, 1994, 3443, 2058, 2680, 3003, 2124, 2397, 3400, 2833, 2229, 1127, 820, 2142, 17319, 3147, 2857, 3078, 3387, 4477, 1518, 2734, 3319, 3241, 2543, 3017, 2563, 2778, 2229, 3166, 3027, 2774, 2213, 2431, 1749, 1522, 2120, 2648, 1750, 2220, 2190, 2012, 1452, 1973, 1625, 1412, 1358, 1249, 1256, 850, 1169, 1323, 1360, 982, 855, 684, 809, 827, 777, 878, 865, 650, 419, 564, 667, 650, 347, 772, 468, 662, 312, 502, 456, 402, 406, 316, 260, 206, 376, 298, 265, 289, 210, 137, 143, 124, 258, 274, 148, 181, 191, 172, 208, 329, 154, 139, 179, 130, 76, 173, 162, 160, 151, 137, 120, 129, 132, 136, 174, 152, 158, 110, 92, 177, 200, 71, 153, 195]
# text labels
plt.title('Covid-19 in NYC: New Cases')
plt.xlabel('Date')
plt.ylabel('Number of New Cases (in thousands)')
plt.legend(['Schools Closure', 'Non-Essential Businesses Closure', 'Statewide Stay-at-Home Order',
'Massive Funeral Crowd in Brooklyn', 'Reopening, Phase 1', 'Schools Reopen', 'Schools Close'], loc='best')
# create the graph
plt.plot(x_values, new_cases, color='#730af2', linewidth=2)
plt.show()
| 176.78125
| 4,998
| 0.595457
| 2,255
| 11,314
| 2.981818
| 0.26031
| 0.025283
| 0.012493
| 0.020821
| 0.058447
| 0.037329
| 0.026175
| 0.014872
| 0.014872
| 0.014872
| 0
| 0.537676
| 0.116758
| 11,314
| 63
| 4,999
| 179.587302
| 0.135195
| 0.021831
| 0
| 0.05
| 0
| 0
| 0.450054
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.125
| 0
| 0.125
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c67cc3624a702cafd7e7246abe8b88132e111d61
| 53
|
py
|
Python
|
modules/__init__.py
|
richardHaw/nagare
|
4909c4ba8833e7cf5152e39a7bc58a558aaa2c7c
|
[
"MIT"
] | null | null | null |
modules/__init__.py
|
richardHaw/nagare
|
4909c4ba8833e7cf5152e39a7bc58a558aaa2c7c
|
[
"MIT"
] | null | null | null |
modules/__init__.py
|
richardHaw/nagare
|
4909c4ba8833e7cf5152e39a7bc58a558aaa2c7c
|
[
"MIT"
] | null | null | null |
# this file is needed for python2, delete for python3
| 53
| 53
| 0.792453
| 9
| 53
| 4.666667
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.045455
| 0.169811
| 53
| 1
| 53
| 53
| 0.909091
| 0.962264
| 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
|
c69f9f22e1976429e68cc587ef9c41a2baa5fb93
| 85
|
py
|
Python
|
nginx/apps.py
|
rockychen-dpaw/it-assets
|
92ec23c6a413c5c45bb3d96981d6af68535d225c
|
[
"Apache-2.0"
] | 4
|
2018-11-16T13:49:49.000Z
|
2021-08-19T05:16:50.000Z
|
nginx/apps.py
|
rockychen-dpaw/it-assets
|
92ec23c6a413c5c45bb3d96981d6af68535d225c
|
[
"Apache-2.0"
] | 10
|
2018-07-06T09:34:56.000Z
|
2022-01-28T06:09:05.000Z
|
nginx/apps.py
|
rockychen-dpaw/it-assets
|
92ec23c6a413c5c45bb3d96981d6af68535d225c
|
[
"Apache-2.0"
] | 9
|
2018-05-05T23:29:10.000Z
|
2020-06-26T02:29:17.000Z
|
from django.apps import AppConfig
class NginxConfig(AppConfig):
name = 'nginx'
| 14.166667
| 33
| 0.741176
| 10
| 85
| 6.3
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.176471
| 85
| 5
| 34
| 17
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0.058824
| 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
|
c6c0d208582ba1aed39ac80bef8ef9d7e28b0eae
| 337
|
py
|
Python
|
main/test/test.py
|
gitter-badger/grow-controller-Rpi
|
0107251af85a4dc23b61b8be66fe49d597fd776b
|
[
"Unlicense"
] | 3
|
2017-03-21T22:35:01.000Z
|
2021-08-19T03:16:39.000Z
|
main/test/test.py
|
gitter-badger/grow-controller-Rpi
|
0107251af85a4dc23b61b8be66fe49d597fd776b
|
[
"Unlicense"
] | null | null | null |
main/test/test.py
|
gitter-badger/grow-controller-Rpi
|
0107251af85a4dc23b61b8be66fe49d597fd776b
|
[
"Unlicense"
] | null | null | null |
###PiPlate buttons
print('sudo crontab /home/pi/grow-controller-Rpi/main/ref/crontab.cron')
'''
while True:
time.sleep(0.5) # without this time.sleep, 23% cpu usage. with 3%
if lcd.is_pressed(LCD.UP):
GPIO.output(pin1, GPIO.LOW) # on
if lcd.is_pressed(LCD.DOWN):
GPIO.output(pin1, GPIO.HIGH) # off
'''
| 22.466667
| 72
| 0.64095
| 53
| 337
| 4.037736
| 0.735849
| 0.084112
| 0.065421
| 0.130841
| 0.158879
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02583
| 0.195846
| 337
| 15
| 73
| 22.466667
| 0.763838
| 0.04451
| 0
| 0
| 0
| 0
| 0.797468
| 0.632911
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
c6d681ac44ef1494d6073c997560935007da32f3
| 131
|
py
|
Python
|
lightning_transformers/task/nlp/multiple_choice/datasets/swag/__init__.py
|
maksym-taranukhin/lightning-transformers
|
aa7202657973b5b65c3c36eb745621043859ebc4
|
[
"Apache-2.0"
] | 451
|
2021-04-21T15:53:59.000Z
|
2022-03-29T10:39:45.000Z
|
lightning_transformers/task/nlp/multiple_choice/datasets/swag/__init__.py
|
mathemusician/lightning-transformers
|
b2ef06113433e6a178ce4d3c9df7ede8064e247f
|
[
"Apache-2.0"
] | 92
|
2021-04-21T18:42:58.000Z
|
2022-03-30T05:29:54.000Z
|
lightning_transformers/task/nlp/multiple_choice/datasets/swag/__init__.py
|
mathemusician/lightning-transformers
|
b2ef06113433e6a178ce4d3c9df7ede8064e247f
|
[
"Apache-2.0"
] | 51
|
2021-04-22T05:35:28.000Z
|
2022-03-17T13:08:12.000Z
|
from lightning_transformers.task.nlp.multiple_choice.datasets.swag.data import ( # noqa: F401
SwagMultipleChoiceDataModule,
)
| 32.75
| 94
| 0.80916
| 14
| 131
| 7.428571
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025641
| 0.10687
| 131
| 3
| 95
| 43.666667
| 0.863248
| 0.076336
| 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
|
c6d92303c364567cf9a1dd4b401fd0429cd92a45
| 195
|
py
|
Python
|
Latest/venv/Lib/site-packages/pyface/resource/__init__.py
|
adamcvj/SatelliteTracker
|
49a8f26804422fdad6f330a5548e9f283d84a55d
|
[
"Apache-2.0"
] | 1
|
2022-01-09T20:04:31.000Z
|
2022-01-09T20:04:31.000Z
|
Latest/venv/Lib/site-packages/pyface/resource/__init__.py
|
adamcvj/SatelliteTracker
|
49a8f26804422fdad6f330a5548e9f283d84a55d
|
[
"Apache-2.0"
] | 1
|
2022-02-15T12:01:57.000Z
|
2022-03-24T19:48:47.000Z
|
Latest/venv/Lib/site-packages/pyface/resource/__init__.py
|
adamcvj/SatelliteTracker
|
49a8f26804422fdad6f330a5548e9f283d84a55d
|
[
"Apache-2.0"
] | null | null | null |
# Copyright (c) 2005-2011, Enthought, Inc.
# All rights reserved.
""" Support for managing resources such as images and sounds.
Part of the TraitsGUI project of the Enthought Tool Suite.
"""
| 32.5
| 62
| 0.733333
| 28
| 195
| 5.107143
| 0.892857
| 0.06993
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05
| 0.179487
| 195
| 5
| 63
| 39
| 0.84375
| 0.917949
| 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
|
c6e2e070ba03aa1892f65c8ab57f90a175c0ba2f
| 31
|
py
|
Python
|
flask/deploy.py
|
dcu-sharepoint/Browser-id
|
4baeb18cb6bef26dad5a1a6fcf815ac1024203da
|
[
"MIT"
] | 1
|
2018-05-14T20:00:21.000Z
|
2018-05-14T20:00:21.000Z
|
flask/deploy.py
|
zakybstrd21215/cross_browser
|
4baeb18cb6bef26dad5a1a6fcf815ac1024203da
|
[
"MIT"
] | null | null | null |
flask/deploy.py
|
zakybstrd21215/cross_browser
|
4baeb18cb6bef26dad5a1a6fcf815ac1024203da
|
[
"MIT"
] | null | null | null |
cp ./* ~/server/uniquemachine/
| 15.5
| 30
| 0.677419
| 3
| 31
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 31
| 1
| 31
| 31
| 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
|
c6e6312f6be52c69218d6689cca0b968307e1db4
| 46,788
|
py
|
Python
|
resources.py
|
jajberni/BreederMap
|
8a14d906a6af63dc2c27d77e43968c2e2794fa06
|
[
"MIT"
] | null | null | null |
resources.py
|
jajberni/BreederMap
|
8a14d906a6af63dc2c27d77e43968c2e2794fa06
|
[
"MIT"
] | null | null | null |
resources.py
|
jajberni/BreederMap
|
8a14d906a6af63dc2c27d77e43968c2e2794fa06
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.9.7)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x2a\xae\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x01\xd0\x00\x00\x01\xa8\x08\x06\x00\x00\x01\x81\x2b\x84\x3a\
\x00\x00\x2a\x75\x49\x44\x41\x54\x78\x9c\xed\xdd\x07\x7c\x13\xf5\
\xff\xc7\xf1\xb4\x4d\x37\x50\xa0\xd0\xb2\x0a\xa5\x14\x90\x51\x96\
\x80\xb2\x37\x82\x8a\x0c\x59\x8a\x80\x32\x14\x65\x08\x0a\x88\xac\
\x5a\xa6\x0c\x01\x41\x90\x21\x28\x7b\xca\x10\x91\x29\x53\x56\xd9\
\x32\x0a\x88\x2d\x65\xb7\x40\x19\x1d\x74\xd1\xfe\xb9\xf8\x4f\x7f\
\x2d\x4d\xd7\x35\xbd\xfb\xf6\xf2\x7a\x3e\x1e\x47\x92\xcb\xfa\x84\
\x6f\xde\xfd\x24\x97\x1b\xfa\xc4\xc4\x44\x9d\xd1\x8b\xf3\xd6\x3a\
\x8d\xb1\xb2\xb2\x4a\x90\x4e\xf5\xd2\x3f\xed\xc7\x74\x4f\x4c\xff\
\xe6\xb9\x9f\x5e\xed\x02\x94\x62\x59\x2f\x74\xd3\xf8\xe5\x56\x6a\
\x17\x92\xd3\x2c\x6b\x44\x2d\x41\xaa\x17\x7a\x21\x28\xa0\x71\x76\
\x1e\x30\x38\xf4\x56\xe5\x52\x6e\x25\x2e\x64\xe7\x31\x24\xb7\xee\
\xdf\x79\xa5\x44\xe1\x62\x97\xb3\xf3\x18\xde\xc5\xbd\x4e\x38\xd8\
\xd9\x47\x4a\xe7\x69\x2f\x5a\xa3\x4f\x48\x48\xb0\x49\x3e\xc3\x77\
\x68\x53\xd9\x0f\xe6\x37\x7d\xaf\xd9\x1f\x67\x58\xff\x06\x3a\x27\
\x47\xdb\x6c\x3f\x8e\xe5\x8c\xa8\xda\x05\x28\x85\x17\xaa\x35\xbc\
\x50\xad\xe1\x85\x6a\x8d\xde\xda\xda\xfa\x79\xf2\x19\xfb\x8f\x04\
\x99\xe5\x81\xcd\xf5\x38\x87\xfd\x83\x75\xb6\xb6\x36\x19\xdf\x30\
\x03\xa9\x46\xf4\x80\x99\x0a\x34\xd7\xe3\x1c\x39\x71\xc3\x2c\x8f\
\x93\xf4\xc5\x5b\xcb\x1f\xec\xa5\xd7\xa7\x4f\x7e\x41\xcd\x62\x72\
\x9a\xe5\xfc\x31\x52\xbb\x00\xa5\x24\xbd\x50\x8b\xc8\xa8\x96\x5f\
\xa4\x44\x7a\x7d\x96\xf5\xd6\xa5\xbd\x68\x88\x65\xbd\x75\x2d\x01\
\xed\x45\x4b\x2c\xab\xbd\xb0\x00\x5b\x63\x78\xa1\x5a\xc3\x0b\xd5\
\x1a\x5e\xa8\xd6\x58\xce\x0b\x7d\x79\x01\x76\xf2\x26\x9b\x1d\xe6\
\x7a\x9c\x69\x73\x0f\x99\xe5\x71\x2c\x67\x44\xa5\x7f\x8c\x5f\xba\
\xfb\xcd\xf8\xf2\xdf\x90\x47\xa1\x5e\xea\x96\x64\x3e\xae\xf9\x0a\
\xdc\xfe\x69\xd8\xec\x12\xd2\xf9\x14\x23\x3a\xff\x8b\xef\xca\xa8\
\x53\x52\xce\xb3\xac\xb7\xae\x25\x30\xbc\xd0\x6f\x7e\x99\xb2\xfb\
\xdc\xbf\x17\x9a\xab\x5d\x4c\x4e\x32\xbc\x50\xad\xbf\x48\x89\xe5\
\xbc\x75\x8d\x1b\x0f\x68\x71\xc3\x01\x89\x45\x6d\x3c\x60\x58\x0a\
\xf8\x2c\x26\x3a\xaf\xda\x85\xe4\xb4\x1f\x36\x2d\x5a\xac\x77\xb4\
\x77\x08\x57\xbb\x90\x9c\x36\xa0\x7d\xdf\xde\x6c\x3c\xa0\x35\x96\
\xf9\x42\xb3\xbb\xe1\x80\x68\x2a\x97\xae\xb0\xdf\x78\xde\x72\xda\
\x8b\xd6\x5f\xa4\xc4\xe4\x8f\x4c\x72\x7f\x33\x79\x79\xd1\x89\x68\
\x8f\x63\x99\x7f\x8c\xb4\x8c\x17\xaa\x35\xbc\x50\xad\xe1\x85\x6a\
\x4d\xaa\x17\x2a\xda\xc6\x03\xe6\x7a\x1c\xe1\x37\x1e\x30\xd7\xe3\
\xe8\xa5\x0f\xbc\x21\x61\xa1\x5e\xfd\x66\x7e\xf9\xaf\x59\x1e\x51\
\x30\xc3\xbb\x0e\xea\x58\xa7\x52\xad\x5f\x0d\x23\xea\x5e\xd0\x2d\
\x50\xeb\x4b\x19\x2c\xf7\x8f\x91\x56\x59\xce\x17\x6f\xb5\x8b\x50\
\x42\x42\x62\x82\x8d\x45\xbc\xd0\x9b\xa1\xb7\x2b\x5a\xc4\x0b\x2d\
\xe5\xee\x71\x9e\x05\xd8\x5a\x63\x79\x2f\x54\xab\x2d\xc6\x18\x4b\
\xcd\x2f\xd7\x35\xbe\x3e\xcb\x7b\xeb\x1a\x89\xb6\xe0\x99\x05\xd8\
\x59\xc4\x0b\xd5\x1a\x5e\xa8\xd6\xf0\x42\xb5\xc6\x72\x5f\xa8\x68\
\x1b\x0f\x98\xeb\x71\xf4\x5a\xdf\x62\x5f\xb2\xf4\xeb\x79\x85\x93\
\xbe\x78\x5f\xbd\x79\xed\xf5\xaf\x16\xfa\x1d\xcd\xd6\x23\x4a\xff\
\x5d\x02\x7d\x85\x1f\xdb\x63\x58\xeb\xea\x65\xab\xec\x90\xce\x27\
\xbd\x75\xcb\x79\x78\x1f\xd3\xf2\x92\x06\xcb\xfd\x63\xa4\x55\x96\
\xb3\x00\x5b\xab\xab\x98\x27\xf7\xd3\xb6\xe5\xb3\xf5\xc6\x75\xce\
\xb5\xac\xcf\x5b\xdd\x07\xe9\x93\x1f\x79\x40\xeb\x6f\x61\x2d\x4b\
\x5a\x08\x68\x9c\xc1\x60\xe6\x6e\xd2\xf8\xf9\xf6\x1c\xfe\x86\xc5\
\x74\x51\x4b\x50\xcd\xdb\x67\x57\x8a\xfd\x70\x4d\x5f\xfb\xc3\xda\
\xc3\x17\x8e\x77\x56\xb3\x28\x64\x9d\xb3\x83\xd3\xe3\x15\xa3\x16\
\x14\x90\xce\xa7\x48\xe8\xd0\x2e\x03\xba\x48\x93\x3a\x65\xc1\x1c\
\xf8\x93\xab\x31\x0c\xa8\xc6\xa4\x18\xd0\x39\x1b\x17\xfe\xbc\xf7\
\xcc\xa1\x0f\x55\xaa\x45\x58\x82\x2d\xec\x4b\x45\x5a\xaf\x68\xd6\
\x80\x49\x55\xa4\xf3\x16\xb1\x08\x25\xbb\x44\x1e\x4c\x49\x70\xc8\
\x4d\x9f\x4c\xaf\xa3\xd1\xb3\x4b\xf5\x9c\xaf\xe8\x25\x4b\xd7\x9e\
\x49\xf3\x3a\xd1\xea\xe9\xda\xae\x8a\xce\xde\x3e\xfb\xc7\x09\xc8\
\x8a\xf4\xea\x49\xb5\x23\xcb\x97\x79\x7a\x14\x30\x7b\x41\xd9\x21\
\x5a\x3d\x1e\xc5\x5d\x64\xef\x68\x33\x27\xf0\xa1\x48\x63\x18\x50\
\x8d\x61\x40\x35\x86\x01\xd5\x18\x06\x54\x63\x18\x50\x8d\x61\x40\
\x35\x86\x01\xd5\x98\x54\x3b\xbc\x7e\x99\xb9\xd6\x19\x35\x17\xd1\
\xea\x31\xd7\x0e\xb9\xcd\xc5\x22\x8e\xa8\x65\x29\x2c\xea\xc8\x61\
\x96\x82\x1e\xaa\x31\x0c\xa8\xc6\x30\xa0\x1a\xc3\x7a\xb9\x1a\x92\
\xf4\xa1\x28\x3c\x2a\xc2\x55\xed\x62\x90\x7d\xb3\x36\xcc\x5f\x6e\
\x18\xd0\xbc\x4e\x79\x1e\xaa\x5d\x0c\xb2\x6f\x70\xc7\x7e\xdd\xf9\
\xda\xa2\x31\x7c\x28\xd2\x18\x06\x54\x63\x18\x50\x8d\xe1\x6b\x8b\
\x86\x58\xcc\x11\xe6\x2d\x85\xe1\x20\x27\x19\xad\x97\x9b\x9d\x03\
\xc5\xcb\x95\xde\x4f\x64\xa2\xd5\x33\xac\x7f\x03\xc5\xd7\xcb\x4d\
\xaf\x1e\x7a\xa8\xc6\x30\xa0\x1a\xc3\x80\x6a\x0c\x03\xaa\x31\x0c\
\xa8\xc6\x30\xa0\x1a\xc3\x80\x6a\x0c\x03\xaa\x31\x0c\xa8\xc6\xb0\
\xa2\x75\x36\x09\xbb\xa2\xb5\x74\x2a\xcc\x32\x5d\xd1\x77\x3b\x22\
\xa0\x54\x3b\x6f\x4c\x3e\x13\xb9\x17\x3d\x54\x63\x18\x50\x8d\x49\
\x31\xa0\xd7\x6e\x07\xd5\x1c\x36\x7f\xec\x09\xb5\x8a\x81\x3c\xdd\
\x5b\x76\x19\xd1\xa1\xc1\xdb\x53\xa4\xf3\xac\xb1\xa0\x01\xcb\x77\
\xad\xfd\x56\x9a\x2c\xe6\xa8\xa9\x96\x42\xda\x4f\x63\x8a\xf5\x72\
\x49\x69\xee\xf5\xfd\xc0\xc9\x3e\x25\xdd\x4a\x5c\x48\x71\x10\x01\
\x23\x4b\x38\x54\x84\x16\x98\x3a\xd2\x45\x52\x42\xc7\x2c\x99\xb4\
\xef\x42\x50\x40\x63\x45\x2b\x82\xd9\xa4\x58\xb0\x10\x70\xe3\x6a\
\x3d\x06\x33\x77\xf3\x5b\x3a\x75\x67\xd2\x51\x21\x46\x2e\x1a\xff\
\x97\xda\x05\x21\x7b\xce\x5e\x3b\xdf\x52\x3a\xe5\x53\xae\xc6\x30\
\xa0\x1a\xc3\x6e\x6d\x34\x22\xd5\xaf\x2d\x0c\x6a\xee\x95\xfc\x57\
\x32\x7e\x3e\xd3\x18\x7a\xa8\xc6\x30\xa0\x1a\xc3\x80\x6a\x0c\x03\
\xaa\x31\x0c\xa8\xc6\xa4\x39\xa0\x22\x2c\xdb\x8d\x8c\x89\x72\x49\
\x4c\x48\xb4\xce\xe3\xe8\xfc\x48\xed\x5a\x24\xb1\x71\x71\x0e\x4f\
\xa3\x9e\x16\x2e\xe4\xe2\x7a\x53\xed\x5a\x2a\x97\xae\xb0\xdf\xd4\
\xfc\x14\x03\xca\xf7\xd0\xdc\x69\x83\xdf\x2f\xb6\x36\xd6\x36\xf1\
\xd2\x79\xc3\x80\x8e\x5b\x3a\x75\xc7\x99\x6b\xe7\xdf\x50\xb7\x2c\
\xc8\xd5\xd1\xf7\xc3\x38\x27\x07\xa7\x27\x2b\x47\x2d\xc8\xaf\xbf\
\xf3\xe0\x5e\x39\x06\x33\xf7\x8b\x8a\x8e\x72\x59\xbd\x77\xa3\x9f\
\xbe\xff\xf7\xc3\xae\xa8\x5d\x0c\xcc\x63\xdd\xbe\x4d\x63\xd3\xfd\
\x94\x5b\xbd\x72\x31\x5d\x95\x4a\xee\x4a\xd5\x63\x90\xde\xa1\x14\
\x25\x4a\x1f\x6e\x72\xc3\xd6\x0b\xba\xc8\xa8\xb8\x34\xaf\x17\xed\
\xf0\x97\xe9\x0e\x68\x7e\x17\x07\xe1\x0e\xef\xa8\x74\x3d\x36\x36\
\xe9\xaf\x5e\x25\xda\xff\x0f\xdf\x43\x35\x86\x01\xd5\x18\x06\x54\
\x63\x18\x50\x8d\x61\x40\x35\x86\x01\xd5\x18\x06\x54\x63\x18\x50\
\x8d\x61\x40\x35\x86\x01\xd5\x18\x06\x54\x63\x18\x50\x8d\x61\x40\
\x35\x86\x01\xd5\x18\x06\x54\x63\x18\x50\x8d\x61\x40\x35\x26\xdd\
\x01\xbd\x7e\x23\x4c\x97\x60\x62\x2f\x29\x6a\xda\x7f\x24\x48\xd1\
\xe7\x8b\x89\x49\x77\xef\xb3\x8a\xd7\x93\x91\x74\x07\x34\xe8\xe6\
\x63\xc3\x24\x92\x03\x82\xfd\x07\x8a\x56\x8f\x9e\x0d\x7d\xb5\x63\
\x5c\xaf\xaf\x9b\x1a\x12\x3a\xb1\xcf\xe8\x86\xa3\x7e\x9a\x70\x50\
\xed\x82\x20\x5f\xcb\x9a\x4d\x16\xfa\x94\xae\xb8\xcf\x30\xa0\x15\
\x4b\x95\x3f\x44\x52\x73\x2f\x36\xc9\xd7\x30\xbe\xb6\x68\x0c\x03\
\xaa\x31\x0c\xa8\xc6\x30\xa0\x1a\xc3\x80\x6a\x0c\x03\xaa\x31\x6c\
\x92\xaf\x01\x93\xfa\x8c\x69\x50\xa1\x54\x39\xc3\x2e\x72\x39\x2a\
\x84\x06\x8c\xfc\x69\xfc\xa1\x39\x83\xa6\x54\x2c\x51\xb8\x58\x80\
\x61\x40\x19\xcc\xdc\x6f\xe0\xec\xaf\x2e\x71\x98\x0f\x0d\x62\x40\
\x35\xc6\x30\xa0\xeb\xbf\xf9\xc5\xae\xd3\x37\x1f\xc6\xaa\x5d\x0c\
\xe4\xeb\xdc\xa4\xdd\x38\xe9\xd4\x30\xa0\x7a\x1b\x9b\xb8\x4f\xda\
\x7c\xf8\xd9\x82\xad\xbf\xcc\x53\xb7\x2c\xc8\x21\x7d\xc2\x7d\xaf\
\xe9\xbb\xbe\xd2\xf9\xa4\x3f\xb9\xad\x6a\x37\xfb\x51\x9a\xd4\x2b\
\x0b\xe6\x40\x0f\xd5\x18\x06\x54\x63\x18\x50\x8d\x61\x40\x35\x86\
\x01\xd5\x18\x06\x54\x63\x52\x0c\xe8\xea\x3f\x7f\x1d\xb7\x6e\xff\
\xe6\x31\x6a\x15\x83\xac\xab\x5d\xa1\xc6\x96\xaf\xdf\x1f\xd2\xce\
\x78\x99\x5f\x5b\x72\x39\xff\x80\xd3\x6d\xa5\xb1\x9b\x3d\xf0\xdb\
\x4a\x1e\x6e\xc5\x2f\xf1\x6b\x8b\x46\x0c\x9a\x33\xe2\xe2\x3a\xdf\
\x25\x0e\x7a\x06\x53\x3b\x3a\xfb\xf5\x8a\xe6\x43\x51\x86\xa4\xf7\
\x7b\xee\x59\xff\x3c\xdd\x01\x6d\x52\xcf\x4b\xd7\xb0\x8e\xa7\x42\
\xa5\xfc\xc7\x6f\xfa\xde\x74\xaf\xf7\x1d\xda\x54\xa1\x4a\xfe\x33\
\x73\xc1\x61\xdd\xd3\xf0\x98\x34\xaf\x57\xba\x1e\x49\x7a\xff\x47\
\x24\x54\x63\x18\x50\x8d\x61\x40\x35\x86\x01\xd5\x18\x06\x54\x63\
\x18\x50\x8d\x61\x40\x35\x86\x01\xd5\x18\x06\x54\x63\x18\x50\x8d\
\x61\x40\x35\x86\x01\xd5\x18\x06\x54\x63\x18\x50\x8d\x61\x40\x35\
\x86\x01\xd5\x18\x06\x54\x63\x18\x50\x8d\x49\x77\x40\xf7\x1d\x0e\
\x34\x4c\x22\xc9\x68\x15\x15\xa5\x89\x56\x8f\xbe\x6b\xd3\x0e\xbe\
\x6b\xf6\x6e\xf4\x53\xbb\x10\x64\x5f\x1e\x47\xe7\x30\x7d\x97\x26\
\xed\xc7\x31\xa0\xe9\xc9\x3d\x6b\xfd\x2d\x1f\x39\xdf\xd5\xf0\x27\
\x57\xda\x1d\xca\xc1\x73\x47\xba\xcd\xdc\xf0\xe3\x0a\xb5\x8b\x12\
\x8f\xf8\x83\xd9\xfc\xd5\x46\x8b\xfb\xb7\xeb\xd3\x47\x3a\x9f\xd4\
\x43\x1b\x56\xad\xbb\x52\x9a\xa4\xf3\x73\x37\xff\xf4\xd3\x9e\x53\
\x07\x7a\xab\x55\xa0\x81\x71\xf5\x6f\xf1\xff\x3f\x55\x51\xb7\x52\
\xed\x0d\xc3\xba\x0e\xec\xf4\xf2\x7c\x93\x1f\x8a\xa4\xd1\x36\x8e\
\x38\x72\x17\xbe\xb6\x68\x0c\x03\xaa\x31\x0c\xa8\xc6\x30\xa0\x1a\
\xc3\x80\x6a\x0c\x3b\x40\xd6\x00\x93\x07\xe2\x61\x30\x73\x2f\x69\
\xec\x8c\x83\xca\x26\xf9\x1a\x61\x1c\x54\x7a\xa8\xc6\x30\xa0\x1a\
\x63\x18\xd0\x0f\x5a\x74\x1e\xb9\x62\xf7\xba\x49\x6a\x17\x03\xf9\
\x6c\xac\x6d\xe2\xa4\x53\xc3\x80\xbe\xdb\xb0\xcd\x64\x06\x34\x77\
\xdb\xe0\xf7\x8b\x9d\x74\xaa\x4f\x4c\xe3\x18\xdb\x97\x6f\xfc\x53\
\xf7\xeb\x45\xe3\x0e\x2b\x5a\x15\x60\xa1\xa4\x15\x4d\xa4\x75\x13\
\x5e\x9e\x9f\xea\x33\xd1\xe8\x25\x13\xf7\x5f\x0c\xba\xdc\x48\x99\
\xb2\x00\x48\xa4\x95\x86\x8c\x2b\x0e\xa5\x79\xc0\x66\x16\x2f\x00\
\xea\x4b\xb5\xdc\x4f\x92\x90\x98\x60\xa3\x5e\x49\x00\x92\x5b\xf4\
\xfb\xb2\x39\x7d\xdf\xee\x31\x30\x29\xa0\xd6\x56\xd6\xcf\xd5\x2c\
\x08\xc0\xff\x94\x2d\xe1\x75\x42\x3a\x4d\xf1\x11\xb7\x47\xcb\xae\
\x5f\x2d\xdb\xb5\x66\x8a\x3a\x25\x01\x90\xd8\xd9\xda\x3d\x6b\x5c\
\xad\xfe\x32\xe9\x7c\xca\xef\xa0\x0d\xde\x9a\x6a\x98\xf8\x2e\x0a\
\xa8\x62\xce\xa0\x29\x15\x4a\x14\x2e\x76\xd9\x78\xd9\xe4\x2f\xdb\
\xc9\x97\x22\x05\xde\xb9\x5e\xe3\xec\xbf\x17\x5a\xc4\xc6\xc5\x3a\
\x29\x51\x20\x60\x29\xac\xac\xac\x12\xca\x14\x2b\x7d\xaa\x66\xf9\
\x6a\xbf\xa7\x75\x9b\x0c\x57\x3d\xf1\x2a\xe6\x79\x5a\x9a\xcc\x5b\
\x1a\x80\xcc\x60\xdd\x30\x40\x60\x04\x14\x10\x18\x01\x05\x04\x46\
\x40\x01\x81\x11\x50\x40\x60\x19\x06\xf4\xdc\xb5\x0b\x2d\xe6\x6d\
\x59\xbc\x30\xf4\xf1\x03\x4f\x05\xea\x01\x2c\x4a\xdf\xb7\x7a\x0c\
\x7c\xf3\xf5\x16\x3f\xa4\x75\x7d\xaa\x80\x9e\xbc\x72\xf6\xad\x89\
\x2b\xbe\x4b\xf3\x77\x19\x00\xe6\xb3\x68\xdb\xb2\x39\xd2\x64\xbc\
\xdc\xba\x76\xf3\x79\x1f\xb7\xe9\xd9\xdf\x78\x39\x29\xa0\xdf\xae\
\x9a\xb5\xe9\x78\xc0\xa9\x76\x0a\xd7\x07\x20\x99\xed\xfe\x7b\x3e\
\x93\x26\x69\xe7\xd5\x49\xfb\x3b\x66\xd5\x3e\x40\x2c\x11\xcf\x22\
\x0b\x4a\xb9\x64\x21\x11\x20\x30\x7d\x42\x82\xfc\xed\x40\x9b\xd4\
\xf3\xd2\x35\xac\xe3\x69\xc6\x72\xc4\x94\x9d\x03\xb1\xf8\x0e\x6d\
\x6a\xc6\x4a\xc4\x34\x73\xc1\x61\xdd\xd3\xf0\x18\x59\xf7\x1d\xd6\
\xbf\x81\xce\xc9\xd1\xd6\xcc\x15\x89\x47\xee\x7b\x88\x0e\x0a\x08\
\x8c\x80\x02\x02\x23\xa0\x80\xc0\x08\x28\x20\x30\x02\x0a\x08\x8c\
\x80\x02\x02\x23\xa0\x80\xc0\x08\x28\x20\x30\x02\x0a\x08\x8c\x80\
\x02\x02\x23\xa0\x80\xc0\x08\x28\x20\x30\x02\x0a\x08\x8c\x80\x02\
\x02\x23\xa0\x80\xc0\x08\x28\x20\x30\x02\x0a\x08\x8c\x80\x02\x02\
\xd3\x5b\x5b\xcb\x3f\xb2\xf6\xbe\xc3\x81\x86\x09\x69\xcb\xce\xee\
\x52\x2c\xc1\xb4\xb9\x87\xd4\x2e\x41\x68\x86\x0e\x5a\xd4\xb5\xc8\
\x3f\x77\x1f\xde\x2b\xab\x76\x31\xc8\xad\xa4\x9d\x42\x5a\x65\x78\
\x2b\x64\x9d\x21\xa0\xf3\x06\x4f\x2b\x77\xe5\xe6\xb5\x3a\x23\x16\
\xfa\x1d\x51\xbb\x20\xe4\x46\x84\xd3\xdc\x9a\x56\x6f\xf0\xcb\xc0\
\x0e\x1f\x7f\x94\xf4\x1d\xb4\xbc\x87\xf7\x51\xe3\x91\xb5\xd9\x4f\
\x2e\xa0\x8e\x85\x5f\xce\xf4\x2c\x9c\xbf\x50\xb0\xf1\xb2\xc9\x85\
\x44\xc6\xa0\x1a\xed\x39\x75\xa0\xf7\xe2\x3f\x96\x7f\x1f\x1d\x1b\
\xe3\x9c\xd3\x05\x02\x96\xe2\xfd\x66\x1d\xc7\x74\x6a\xdc\x76\x42\
\x7a\xb7\xc9\xd4\x52\xdc\xe6\xaf\x36\x5a\x2c\x4d\xe6\x29\x0b\x40\
\x66\xf1\x33\x0b\x20\x30\x02\x0a\x08\x8c\x80\x02\x02\x23\xa0\x80\
\xc0\x08\x28\x20\xb0\x74\x03\x1a\x17\x1f\x6f\xbf\x6c\xd7\xea\xa9\
\x27\x2e\x9f\x69\xf3\x24\xf2\xa9\x9b\xf1\x67\x16\x67\x07\xa7\xc7\
\x8a\x54\x07\x68\x4c\x64\x74\x54\x7e\xe9\xd4\x56\xaf\x8f\x71\xb4\
\x73\x0c\xaf\xe8\x59\xfe\x60\x87\x86\x6d\xbe\x2d\x5b\xdc\xeb\x84\
\xa9\xdb\xa7\x0a\x68\x74\x6c\x74\x9e\xf7\xc6\xf7\x0d\xcf\xcc\x93\
\x00\x90\x47\x6a\x7e\x71\xf1\xe1\xf6\xc7\x2e\x9d\xec\x20\x4d\xc6\
\xf9\x3d\xdf\xe8\x3a\xbc\x5d\xfd\xb7\xa6\x19\x2f\xa7\x08\xe8\x8c\
\xf5\xf3\x56\x1d\xfa\xfb\xe8\x7b\x4a\x16\x0a\xe0\x7f\x96\xee\x5c\
\x33\x55\x9a\x8c\x2b\x0b\xa5\x08\x28\xe1\x04\xc4\xf0\xdb\x91\x1d\
\x43\xde\xa9\xdb\x6a\x26\x0b\x89\x00\x01\x49\xcb\x7c\xa4\xd3\x14\
\x01\x75\x71\xce\x17\x6a\xbc\x02\x80\x7a\xba\xb7\xe8\xfc\xb5\x74\
\x9a\x22\xa0\xbf\x8c\x98\xeb\xfe\xeb\xc1\xad\x5f\xaf\xd8\xbd\x6e\
\x92\x3a\x65\x01\x96\x2d\x7f\x1e\x97\x90\x9f\xbf\xfa\xa1\x88\xf1\
\x72\xaa\x8f\xb8\xef\x36\x6c\x33\x59\x9a\xa4\xf3\xdf\xff\xba\x60\
\xe9\xfe\xb3\x7f\xf5\x50\xb2\x40\xc0\xd2\xb8\x17\x70\x0b\x9c\xd8\
\x67\x54\x23\xd7\x7c\x05\x6f\xbd\x7c\x5d\xba\xdf\x41\x3f\x7f\xf7\
\x93\x9e\xd2\x94\x73\xa5\x01\x48\x0f\x0b\x89\x00\x81\x11\x50\x40\
\x60\x04\x14\x10\x18\x01\x05\x04\x46\x40\x01\x81\x65\x3a\xa0\x5b\
\x8f\xec\x18\x1c\x70\xe3\x6a\xfd\x53\x57\xcf\xbd\x19\x1b\x17\xeb\
\x98\x93\x45\x01\x5a\x56\xdd\xdb\x67\x67\x99\xe2\x5e\x27\x3b\x36\
\x7a\x67\x92\xbd\xad\x5d\x54\x7a\xb7\x35\x19\xd0\x1f\xb7\x2c\x59\
\xb0\xeb\xe4\xbe\x8f\x73\xa6\x3c\x68\x12\xfb\xae\xce\xb4\x33\xd7\
\xce\xbf\x21\x4d\x1b\x0e\x6c\x19\x95\x7c\xbe\xb4\x03\x79\x69\x1f\
\xd5\xc9\xe7\x25\x05\x34\xfe\x79\xbc\x5d\xa7\x6f\x3e\x8a\x51\xaa\
\x48\x68\x0c\xe1\xcc\x36\xe9\xe8\x0e\xc6\x7d\x52\xcf\xec\x3f\xb1\
\x9a\x67\x91\x92\xe7\x0c\x01\x9d\xbc\x6a\xe6\x66\xff\x80\xd3\x6d\
\xd5\x2d\x0f\xb9\x17\xed\xd3\xdc\x86\xcc\x1d\x75\x56\xfa\xf8\x6b\
\x08\x28\xe1\x44\xf6\x10\xce\x9c\x10\x13\x17\xeb\xa4\x4f\x48\x48\
\xb0\x91\xfb\x00\x4d\xea\x79\xe9\x1a\xd6\xf1\x34\x63\x49\x62\xca\
\xce\x11\xca\x7c\x87\x36\x35\x63\x25\x62\x9a\xb9\xe0\xb0\xee\x69\
\xb8\xbc\x6f\x47\xc3\xfa\x37\xd0\x39\x39\xda\x9a\xb9\x22\xf1\xc8\
\x7d\x0f\xf1\x33\x0b\x20\x30\x02\x0a\x08\x8c\x80\x02\x02\x23\xa0\
\x80\xc0\x08\x28\x20\x30\x02\x0a\x08\x8c\x80\x02\x02\x23\xa0\x80\
\xc0\x08\x28\x20\x30\x02\x0a\x08\x8c\x80\x02\x02\x23\xa0\x80\xc0\
\x08\x28\x20\x30\x02\x0a\x08\x8c\x80\x02\x02\x23\xa0\x80\xc0\x08\
\x28\x20\x30\x02\x0a\x08\x4c\x6f\x6d\x6d\xfd\x5c\xee\x9d\xf7\x1d\
\x0e\x34\x4c\x48\x5b\x76\x76\x97\x62\x09\xa6\xcd\x3d\xa4\x76\x09\
\x42\xa3\x83\xc2\x0c\xd8\xab\x5f\x4e\x31\x04\x74\xd3\xf8\xe5\x56\
\x1d\xc6\xf6\x78\x9e\x98\x98\x68\xad\x76\x41\xc8\x8d\x08\x67\x4e\
\x90\x72\x99\xd4\x41\x37\x8e\x5b\x66\xd8\xbb\xdf\xfb\x13\xfa\x3e\
\x7d\x16\x13\x9d\x57\xbd\xb2\x00\xcb\xb6\x7a\xcc\xa2\xbc\x0e\x76\
\x0e\x11\xd2\xf9\x54\x1f\x71\x57\x8d\x5e\x94\xcf\x78\xfe\xcc\x3f\
\x7f\xb7\x1a\xb7\x6c\xda\x76\x25\x8b\x13\x19\x1f\xe4\x90\x13\x3e\
\x7e\xbb\x67\xff\xd6\xaf\x35\x9f\x67\xea\xba\x74\xbf\x83\x56\x2f\
\x5b\x65\x87\xd4\x66\x73\xa6\x2c\x00\x19\x61\x21\x11\x20\x30\x02\
\x0a\x08\x8c\x80\x02\x02\x23\xa0\x80\xc0\x08\x28\x20\x30\x02\x0a\
\x08\xcc\x64\x40\xfd\x96\x4e\xdd\x79\xf6\xda\xf9\x96\x4a\x17\x03\
\x58\xba\x97\x7f\xd6\x4c\x11\xd0\xab\xb7\xfe\x7d\xed\xab\x05\xdf\
\x1c\x53\xb6\x24\x00\x46\xed\xc7\x74\x4f\x7c\xb5\x5c\xd5\x3f\x46\
\x77\x1f\xfa\x96\x74\x39\x45\x40\x09\x27\xa0\xbe\x53\x57\xcf\xbd\
\x79\xee\xdf\x8b\xcd\xab\x96\xa9\xb4\x27\x29\xa0\xac\x7f\x0b\x88\
\xe3\xd0\xdf\x47\xdf\x4b\x11\x50\x47\x7b\x87\x70\x35\x0b\x02\xf0\
\x3f\x03\xda\xf7\xe9\x2d\x9d\xa6\xf8\x88\x2b\x7d\x41\x95\x3e\x03\
\xab\x53\x12\x00\x49\xf2\x05\x45\xa9\x96\xe2\x1a\xaf\x9c\xbc\x72\
\xe6\x66\xff\xcb\xa7\xdb\x2a\x59\x18\x60\xa9\xec\xf4\x76\xcf\xd6\
\xfa\x2e\x76\x7a\x79\xbe\x3e\x31\x31\xe3\x86\xc9\x86\xdc\x80\xf9\
\x59\x59\x59\x25\x64\x74\x9b\x34\x57\x54\x98\xb2\xfa\xfb\x8d\xc7\
\x2e\x9d\x6c\x6f\xde\x92\x00\xbc\xcc\xc5\x39\x5f\xe8\xe2\xe1\xb3\
\x8b\xdb\x58\xdb\xc4\xbf\x7c\x5d\xaa\x80\x3e\x8e\x78\xe2\xfe\xd1\
\x94\x01\xf7\x94\x29\x0d\xc0\x93\xc8\xa7\x6e\x1d\x7d\x3f\x8c\xeb\
\xde\xb2\xcb\x88\x0e\x0d\xde\x9e\x92\xfc\xba\x54\x01\x25\x9c\x80\
\x3a\x96\xef\x5a\xfb\xad\xb4\xab\x93\x37\x5f\x6b\x3e\xd7\x38\x2f\
\x45\x40\x59\x82\x0b\xa8\x6b\xd1\xef\x4b\x7f\x30\x19\xd0\xbb\x0f\
\x43\xbc\xd5\x29\x09\x40\x72\xd3\xd6\xcc\x59\x3f\xac\xeb\xc0\x4e\
\xd2\xf9\xa4\x80\xfe\xbc\x7d\xe5\x0c\xf5\x4a\x02\x60\x74\xe4\xa2\
\x7f\x47\xe3\xf9\xa4\x80\x9e\xb8\x72\xa6\x8d\x3a\xe5\x00\x48\x0b\
\xdb\x83\x02\x02\x4b\x0a\xa8\x77\xf1\xd2\x27\xaf\xdd\x0e\xaa\xa9\
\x66\x31\x00\x52\x4a\x0a\x68\xe7\xc6\xed\xc7\x4d\x5a\x39\xe3\x37\
\x35\x8b\x01\xa0\xd3\x95\x28\x5c\x2c\xc0\x78\x3e\x29\xa0\xb5\x5e\
\xa9\xbe\x55\x9d\x72\x00\x24\x37\xa9\xcf\x98\x06\xc6\xf3\x29\xbe\
\x83\x7e\xf3\xe1\x57\x2d\xbf\xf9\x65\xca\x2e\xe5\x4b\x02\x20\xa9\
\xe6\xed\xb3\x2b\xaf\x53\x9e\x87\xc6\xcb\x29\x02\x5a\xb5\x4c\xe5\
\xdd\x3d\x5b\xbd\x37\x6c\xe9\x8e\xd5\xd3\x94\x2f\x0d\xb0\x6c\x45\
\x0a\xba\xfd\xeb\xdb\x73\xf8\x1b\xc9\xe7\xa5\x5a\x8a\xdb\xae\xde\
\x9b\xd3\x5f\x7b\xe5\xd5\xcd\x9f\xcd\x1a\xfa\x8f\x72\xa5\x01\x96\
\xed\xa3\xd6\xdd\xbe\x78\xa7\x6e\xab\x99\x2f\xcf\x37\xf9\x33\x4b\
\x51\x57\xf7\x6b\xc6\xed\x42\xf7\x9f\xfd\xab\xfb\xbd\xb0\x50\xd6\
\x32\x02\xcc\x2c\x8f\x63\x9e\x87\x75\x2a\xd5\xfa\xd5\x35\x5f\x81\
\xdb\x69\xdd\x26\xc3\xdf\x41\x1b\x57\xab\xbf\xdc\xbc\x65\x01\xc8\
\x2c\x56\x54\x00\x04\x46\x40\x01\x81\x11\x50\x40\x60\x04\x14\x10\
\x18\x01\x05\x04\x46\x40\x01\x81\x11\x50\x40\x60\x04\x14\x10\x18\
\x01\x05\x04\x46\x40\x01\x81\x11\x50\x40\x60\x59\x0e\xe8\xbd\xb0\
\xd0\x32\x0f\x9e\x3c\xf4\xc8\x89\x62\x72\x9b\xd0\x47\x0f\x4a\xe9\
\x74\x89\xd6\x6e\x05\x0a\x07\xa9\x5d\x8b\x88\x1e\x85\x3f\x2e\xfa\
\xf4\x59\x84\xab\x9b\x4b\xa1\x60\x0e\x6f\xa9\xd3\xd9\xea\x6d\x63\
\xca\x7b\x78\x1f\xcd\xca\x7d\x32\x0c\xe8\xe2\x3f\x56\xcc\xfa\xfd\
\xe8\xce\xcf\xe5\x97\xa5\x21\xd2\x6e\xbd\xad\x32\xbc\x15\x90\x29\
\xd2\xc6\xd9\x9f\xbf\xfb\x49\x8f\xfc\x79\x5c\x42\xd2\xba\x8d\xc9\
\x80\xde\x7e\x70\xb7\xfc\xe7\x73\xbe\x3e\xff\x3c\xe1\xb9\x6d\xce\
\x95\x97\x0b\x11\x4e\x98\xd1\xd9\x6b\xe7\x5b\x1a\x0f\xb5\x22\x05\
\xd5\xd4\x96\x63\x26\x8f\xcd\x22\x1d\x40\x49\x89\x02\x01\xfc\xe7\
\xfb\x5f\x17\x2c\x93\xa6\x35\x63\x17\x3b\xdb\xdb\xda\x45\x19\xe7\
\x27\x05\x34\x36\x2e\xd6\xb1\xcb\xb8\xde\x51\xa6\xef\x0e\x40\x09\
\x5d\xc7\xf5\x8e\x9c\xd6\xcf\xaf\xb6\x77\x71\xaf\x13\xd2\xe5\xa4\
\x80\x12\x4e\x40\x0c\xc3\xe6\xfb\xfa\xcf\xff\x62\x86\x97\x7b\x81\
\xc2\x41\x86\x80\x76\x18\xdb\xe3\xb9\xda\x45\x01\xf8\x9f\x7e\x33\
\xbe\x08\x94\x76\x3b\xa4\xbf\xff\xe4\x61\x49\x0e\x71\x0f\x88\x67\
\xe3\xc1\xad\x23\xf4\xb3\xd6\xff\xb8\x42\xed\x42\x00\xa4\xb6\x7c\
\xf7\xba\xc9\xfa\x4b\xc1\x57\x1a\x64\x7c\x53\x00\x6a\xc8\xd6\xaa\
\x7e\x3d\xbb\x54\x37\x57\x1d\xc2\x0a\xbc\x1e\xa6\x3b\x74\x3c\x58\
\xd6\x7d\x9b\xd4\xf3\xd2\x95\x2c\xe1\x62\xe6\x8a\xc4\xb3\x74\xed\
\x19\xd9\xf7\xb5\x84\xf7\x50\x76\xfe\x7f\xb2\x15\x50\x4f\x8f\x02\
\xd9\xb9\x7b\xae\x10\xf6\x24\x5a\xf6\x7d\x0b\x17\x72\xb6\x88\xff\
\xa3\xec\xb0\x84\xff\x1f\xbd\xde\x46\x17\x1f\x2f\x6f\x39\x2c\x2b\
\xcb\x03\x02\x23\xa0\x80\xc0\x08\x28\x20\x30\x02\x0a\x08\x8c\x80\
\x02\x02\x23\xa0\x80\xc0\x08\x28\x20\x30\x02\x0a\x08\x8c\x80\x02\
\x02\x23\xa0\x80\xc0\x08\x28\x20\x30\x02\x0a\x08\x8c\x80\x02\x02\
\x23\xa0\x80\xc0\x08\x28\x20\x30\x02\x0a\x08\x8c\x80\x02\x02\x23\
\xa0\x80\xc0\x08\x28\x20\x30\x02\x0a\x08\x8c\x80\x02\x02\x23\xa0\
\x80\xc0\x08\x28\x20\x30\x02\x0a\x08\x8c\x80\x02\x02\x23\xa0\x80\
\xc0\x08\x28\x20\x30\x02\x0a\x08\x8c\x80\x02\x02\x23\xa0\x80\xc0\
\x08\x28\x20\x30\x02\x0a\x08\x8c\x80\x02\x02\x23\xa0\x80\xc0\x08\
\x28\x20\x30\x02\x0a\x08\x2c\x5b\x01\xdd\x7f\x24\xc8\x5c\x75\x08\
\xeb\x5e\x48\xb8\xec\xfb\x5e\xbc\x1c\xa2\x0b\xb9\x1f\x61\xc6\x6a\
\xb4\xc7\x12\xde\x43\xf1\xf1\xcf\x65\xdf\x57\x9f\xd7\x29\xcf\xc3\
\xf0\xa8\x08\x57\x39\x77\x3e\x60\x01\xff\xb9\xd9\x71\xf1\x4a\xa8\
\xda\x25\x08\x8f\xf7\x50\xfa\xf4\x0d\xab\xd4\x5d\xb9\xed\xd8\xae\
\x41\x6a\x17\x02\x20\x35\x7d\x9f\xb7\xba\x7f\x4e\x40\x01\xf1\x0c\
\xeb\x3a\xb0\x93\xe1\x3b\xa8\x77\xf1\xd2\x27\xaf\xdd\x0e\xaa\xa9\
\x76\x41\x00\xfe\xa7\x6e\xa5\xda\x1b\x0c\x01\x9d\xd6\x6f\x5c\xad\
\xf6\x63\xba\x27\xaa\x5d\x10\x80\xff\x6c\x1a\xbf\xdc\x4a\x3a\xd5\
\x27\x9f\xf1\xfe\x84\xbe\x4f\x9f\xc5\x44\xe7\x55\xaf\x2c\x00\xc6\
\x70\x4a\x52\xfc\xcc\xb2\x6a\xf4\xa2\x7c\x1b\x0f\x6e\x1d\xb1\x7c\
\xf7\xba\xc9\xca\x97\x25\x30\xe9\xb3\x85\x55\x86\xb7\x02\xb2\xa5\
\x9a\xb7\xcf\x2e\xdf\x9e\xc3\xdf\x48\x3e\x2f\xd5\xef\xa0\x1d\x1a\
\xb6\xf9\x56\x9a\x16\xfe\xbe\xf4\x87\xed\xc7\xf7\xf4\x57\xae\x3c\
\x81\x11\x4e\xe4\xa0\x4a\x9e\xaf\x1c\x9c\xd0\x7b\x54\x23\x53\xd7\
\xa5\xb9\xa2\xc2\xc7\x6f\xf7\x1c\x20\x4d\x4f\x23\xc3\x0b\xcf\xdb\
\xb2\x78\xe1\xf1\x80\x53\xed\x72\xac\x42\xc0\xc2\x94\x2b\x51\xe6\
\x78\xdf\x17\xf9\x92\x16\xd0\xa6\x77\xbb\x0c\xd7\x24\xca\xe7\x9c\
\xf7\xfe\x88\xf7\x07\xb7\x37\x5f\x69\x00\x32\x8b\x75\x71\x01\x81\
\x11\x50\x40\x60\x04\x14\x10\x18\x01\x05\x04\x46\x40\x01\x81\x11\
\x50\x40\x60\x04\x14\x10\x18\x01\x05\x04\x46\x40\x01\x81\x11\x50\
\x40\x60\x04\x14\x10\x18\x01\x05\x04\x96\x6e\x40\x8f\x5c\xf4\xef\
\x28\x6d\x72\x76\xfd\xde\x8d\xaa\xcf\x62\x9e\xe5\x7d\x9e\x90\x60\
\xb8\xbd\xb3\x83\xd3\x63\x45\xaa\x03\x34\x26\x32\x3a\x2a\xbf\x95\
\x95\x55\xa2\xa3\x9d\x43\x78\xe1\xfc\x85\x82\x1b\x54\xa9\xb3\xfa\
\xdd\x86\x6d\xd2\xdc\xfe\xda\x64\x40\xd7\x1f\xd8\x32\x6a\xd5\x9e\
\x0d\x13\xd2\x7b\x12\x33\xd4\x0a\x58\xa4\xc4\xc4\x44\xab\xa8\x98\
\x67\xf9\x82\x43\x6e\xfa\x04\xef\xbe\xe9\xb3\x62\xf7\xba\x49\x65\
\x4b\x78\xf9\x4f\xfd\xc4\xef\xb5\x97\x6f\x9b\x2a\xa0\x23\x7f\x1a\
\x7f\x28\x20\xf8\x6a\x7d\x65\x4a\x05\x20\xf9\xe7\x56\x60\x6d\x69\
\xbf\x60\xc9\x77\x77\x22\x49\x11\xd0\x95\xbb\xd7\x4f\x24\x9c\x80\
\x7a\x3a\xfa\xf6\x8c\xdb\xe0\xb7\xd4\xd6\x78\x39\x45\x40\x37\x1c\
\xfc\x6d\xa4\xf2\x25\x01\x30\x92\x96\xf3\x9c\x0f\xbc\xd4\xd4\xc7\
\xab\xe2\x5e\xe9\x72\x52\x40\xb7\x1d\xdb\x35\x50\xbd\xb2\x00\x18\
\x8d\x5f\x36\xed\x8f\x75\xdf\xfc\xec\x20\x9d\x4f\x0a\xe8\xd6\x23\
\x3b\x86\xa8\x57\x12\x00\xa3\xb8\xe7\xf1\xf6\xc6\xf3\x49\x01\x0d\
\x79\x74\xbf\xb4\x3a\xe5\x00\x48\x4b\x52\x40\xed\x6d\xed\xa2\x62\
\xe2\x62\x9d\xd4\x2c\x06\x40\x4a\x49\x01\x6d\x54\xb5\xde\x8a\x5d\
\x27\xf7\x7d\xac\x66\x31\x00\x52\x4a\x0a\xe8\xa7\x6d\x7b\x7d\x42\
\x40\x01\xf5\x75\x6a\xdc\x36\x69\x25\xa1\x14\x3f\xb3\xb8\xe5\x2f\
\x74\x3d\xf4\xf1\x03\x4f\xc5\x2b\x02\x90\xe4\xfd\x66\x1d\xc7\x18\
\xcf\xa7\x08\xe8\x82\x2f\x67\x96\xe6\x28\x67\x80\x7a\xe6\x0d\x9e\
\x56\x2e\xf9\xe5\x54\xab\xfa\x49\xab\x1a\x11\x52\x40\x79\xf3\x86\
\x4c\x2f\x5b\xb4\xa0\xfb\xb5\xe4\xf3\x4c\xae\x2c\x2f\x85\xf4\x7c\
\xe0\xa5\x26\xdf\xae\x9a\xb5\x59\x5a\xa9\x57\x99\xf2\x00\xcb\xd4\
\xb1\x51\xdb\x89\xdd\x9a\x77\x1c\x6d\xea\xba\x34\x37\x37\xf3\xf1\
\xaa\xb8\x6f\xe5\xe8\x85\x2e\x39\x57\x16\x80\x8c\xb0\xc1\x36\x20\
\x30\x02\x0a\x08\x8c\x80\x02\x02\x23\xa0\x80\xc0\x08\x28\x20\x30\
\x02\x0a\x08\x8c\x80\x02\x02\x23\xa0\x80\xc0\x08\x28\x20\x30\x02\
\x0a\x08\x8c\x80\x02\x02\x23\xa0\x80\xc0\x32\x15\xd0\x9b\xa1\xb7\
\x2b\x6e\xf7\xdf\xf3\x59\xe0\x9d\xeb\x35\xae\xdc\xbc\x56\x27\xa7\
\x8b\x12\x9d\xb4\x2d\x9e\x55\x86\xb7\x02\x52\x93\x76\x8a\x50\xa9\
\x74\x85\x03\xaf\x57\xac\xb9\xb1\xf6\x2b\x35\x7e\xcb\xe8\xf6\x69\
\x06\xf4\x49\xe4\x53\xb7\x81\xb3\xbf\xba\x14\x1e\x15\xe1\x6a\xde\
\x12\x73\x3f\xc2\x99\x16\xfe\x74\x65\x44\xda\x63\x49\xe8\x99\x43\
\x9e\xfb\xce\x1c\xea\x69\x9c\x37\xb6\xc7\xf0\x56\xd5\xcb\xfa\xec\
\x34\x75\xfb\x54\x01\x95\xb6\xff\xfc\x60\xc2\x27\x8f\x13\x75\x89\
\xfc\x4f\x23\x8b\x78\xcb\xc8\x31\x6e\xd9\xd4\x1d\xd2\xe9\x94\x8f\
\x7d\xeb\x94\xf3\xf0\x3e\x96\xfc\xba\x14\x01\x9d\xb7\x65\xf1\xc2\
\xdd\x27\xf7\xf7\x55\xb2\x38\x00\xff\xf9\x6a\xa1\xdf\x51\xf7\x02\
\x85\x83\xe6\x7f\x31\xc3\xcb\x38\x2f\x29\xa0\x63\x96\x4c\xda\x77\
\x21\x28\xa0\xb1\x2a\x95\x01\x30\x90\x76\x20\xff\xfe\x84\xbe\x4f\
\x57\x8d\x5e\x64\xd8\x93\x89\x21\xa0\xeb\xf6\x6f\x1e\x43\x38\x01\
\x31\x3c\x8b\x89\xce\x3b\xf8\x87\x91\x7f\xcf\x1a\x30\xa9\x8a\x21\
\xa0\xab\xff\xfc\x75\x9c\xda\x45\x01\xf8\x1f\xe9\xe0\xbe\xd2\x02\
\x5a\xfd\xca\x74\x8e\xa4\x0d\x40\x3d\xd2\xc1\xb4\xf5\xbf\x1f\xdd\
\x31\x58\xed\x42\x00\xa4\x76\xeb\xfe\x9d\x0a\xfa\xe8\xd8\x18\x67\
\xb5\x0b\x01\x60\x5a\xb6\x56\xf5\xf3\x1d\xda\xd4\x5c\x75\x08\xeb\
\xf4\x85\xbb\xba\xad\x3b\x02\x64\xdd\xb7\x73\x5b\x1f\x5d\x85\xb2\
\x85\xcd\x5c\x91\x78\xfc\xa6\xef\x95\x7d\x5f\x4b\x78\x0f\x4d\x9c\
\x75\x40\x17\x1f\xff\x5c\xd6\x7d\x59\x17\x17\x10\x18\x01\x05\x04\
\x46\x40\x01\x81\x11\x50\x40\x60\x04\x14\x10\x18\x01\x05\x04\x46\
\x40\x01\x81\x11\x50\x40\x60\x04\x14\x10\x18\x01\x05\x04\x46\x40\
\x01\x81\x11\x50\x40\x60\x04\x14\x10\x18\x01\x05\x04\x46\x40\x01\
\x81\x11\x50\x40\x60\x04\x14\x10\x18\x01\x05\x04\x46\x40\x01\x81\
\x11\x50\x40\x60\x04\x14\x10\x18\x01\x05\x04\x46\x40\x01\x81\x11\
\x50\x40\x60\x04\x14\x10\x18\x01\x05\x04\x46\x40\x01\x81\x11\x50\
\x40\x60\x04\x14\x10\x18\x01\x05\x04\x46\x40\x01\x81\x11\x50\x40\
\x60\x04\x14\x10\x18\x01\x05\x04\x46\x40\x01\x81\x11\x50\x40\x60\
\x04\x14\x10\x58\xb6\x02\xea\x37\x7d\xaf\xb9\xea\xd0\xa4\x75\x5b\
\xce\xab\x5d\x82\xf0\x78\x0f\xa5\x4f\x5f\xbc\x50\xd1\x2b\xb7\x1f\
\xdc\x2d\xaf\x76\x21\x00\x52\xd3\x77\x6d\xda\xc1\xf7\xbb\x75\x73\
\xd7\xa8\x5d\x08\x80\x94\x8a\x17\x2a\x76\x59\x5f\xdf\xe7\xf5\xb5\
\x04\x14\x10\xcf\xf4\x4f\xc7\xd5\x34\x7c\x07\x9d\xd0\x7b\x54\xa3\
\xd1\x8b\x27\x1e\x50\xbb\x20\x00\xff\x79\xb5\x5c\xb5\x6d\x0e\x76\
\xf6\x91\x86\x80\x56\xf2\x7c\xe5\x60\xb7\xe6\x1d\x47\xaf\xdc\xb3\
\x61\x82\xda\x85\x89\x27\xf1\xc5\x64\xa5\x76\x11\xb0\x20\xc5\x5c\
\x8b\x5c\x1d\xdd\xfd\xcb\xb7\xa5\xf3\x49\x4b\x71\x3b\x36\x6a\x3b\
\xb1\xa8\x6b\x91\x7f\xa6\xaf\xfd\x61\xad\x7a\xa5\x89\x88\x70\x42\
\x39\x8d\xaa\xd6\x5b\x31\xb8\x63\xbf\xee\xc6\xcb\x29\x7e\x66\xa9\
\x57\xf9\xb5\x75\xd2\xd4\x7b\xea\xa0\xdb\x61\xe1\x8f\x8a\x29\x5f\
\x1e\x60\xb9\x56\x8c\x5a\x50\xc0\xd9\xc1\xe9\x71\xf2\x79\x26\x7f\
\x07\x5d\x3c\x7c\x76\x71\xe9\x74\xc2\xf2\xe9\xdb\x4e\x5d\x3d\xf7\
\xa6\x02\xb5\x41\x0b\xf8\x36\x90\x65\xa5\xdc\x3d\xce\x4f\xee\x3b\
\xb6\x9e\xa3\xbd\x43\xb8\xa9\xeb\xd3\x5d\x51\x61\x74\xf7\xa1\x6f\
\x19\xcf\xff\x71\x6c\xf7\x80\xbf\x2e\x1c\xeb\x12\x74\x37\xb8\x7a\
\x74\x6c\x8c\xb3\xb9\x0b\x85\x06\xfc\x7f\x38\xc9\x69\xda\xbc\x8a\
\x79\x9e\xae\x53\xb1\xe6\xc6\xb7\xeb\xbc\xf1\xbd\x83\x9d\x43\x44\
\x46\xb7\xcf\xf4\x9a\x44\x6f\xbe\xde\xe2\x07\x69\xca\x5e\x79\x00\
\xb2\x82\x75\x71\x01\x81\x11\x50\x40\x60\x04\x14\x10\x18\x01\x05\
\x04\x46\x40\x01\x81\x11\x50\x40\x60\x04\x14\x10\x18\x01\x05\x04\
\x46\x40\x01\x81\x11\x50\x40\x60\x04\x14\x10\x18\x01\x05\x04\x96\
\x66\x40\x67\xac\x9b\xbb\xfa\xd0\xf9\x63\x5d\x95\x2c\x06\xb0\x44\
\x85\x5c\x5c\x6f\x2e\x1a\x3a\xab\xa4\xa9\xeb\x52\x05\x34\xe2\x59\
\x44\xc1\xee\x93\x3e\x7d\x98\xf3\x65\x01\x90\x3c\x78\xf2\xd0\xa3\
\xfd\x98\xee\x89\xbd\x5a\x77\xfb\xa2\x4d\xdd\x56\x33\x93\x5f\x97\
\x2a\xa0\x84\x13\x50\xc7\x92\xed\x2b\x67\xd8\xdb\xd9\x47\xb6\xac\
\xd9\x64\xa1\x71\x5e\x8a\x80\x4a\x29\x56\xbe\x2c\x00\x46\x3f\x6e\
\x59\xb2\xc0\x64\x40\x43\x1e\xdd\x2f\xad\x4e\x49\x00\x92\x93\x76\
\xdc\x37\xb4\xcb\x80\x2e\xd2\xf9\xa4\x80\x2e\xd9\xbe\x62\x66\xda\
\x77\x01\xa0\x94\xc3\x17\x8e\x77\x4e\x15\x50\xff\x80\xd3\x6d\xd5\
\x2b\x09\x80\x29\xfc\x0e\x0a\x08\x2c\x29\xa0\x5e\x45\x3d\x4f\x07\
\xde\xbd\x5e\x43\xcd\x62\x00\xa4\x94\x14\xd0\x2e\x4d\xdb\x8f\x9b\
\xbc\x72\xe6\x66\x15\x6b\x01\xa0\xfb\xef\xd0\x0f\xc6\xf3\x49\x01\
\xad\xfd\x4a\x8d\x2d\xea\x94\x03\x20\xb9\x49\x7d\xc7\x34\x30\x9e\
\x4f\xf1\x1d\x54\xda\x51\xb5\xb4\x37\x79\xe5\x4b\x02\x20\xf1\x29\
\x5d\x61\x9f\x8b\x73\xbe\x50\xe3\xe5\x14\x01\x7d\xb5\x5c\xd5\x3f\
\x3e\x68\xd1\x79\xe4\x8a\xdd\xeb\x26\x29\x5f\x1a\x60\xd9\x0a\xb9\
\xb8\xde\x18\xd7\x6b\x64\xd3\xe4\xf3\x52\x2d\xc5\x7d\xb7\x61\x9b\
\xc9\xd2\xc7\xdd\x41\x73\x46\x5c\x54\xae\x34\xc0\xb2\x75\x6f\xd9\
\x65\x44\x87\x06\x6f\x4f\x79\x79\xbe\x3e\x31\x51\xde\xda\x7d\x77\
\xc3\x42\xbc\x4f\x04\x9c\x7e\xe7\x52\xf0\x95\x06\x37\x42\x6f\x55\
\xbe\xfb\x30\xc4\x3b\xdb\x55\x02\x00\xa0\x80\x3c\x8e\xce\x61\x45\
\x0a\xba\xff\x5b\xa6\x98\xe7\xa9\x6a\xde\x3e\xbb\x5f\xaf\x58\x73\
\x63\x56\x1f\x23\x4b\xeb\x29\x48\x2b\xdb\x6f\x3d\xb2\x63\x48\x56\
\x9f\x04\x00\x00\x91\x44\x3c\x8b\x2c\x78\xed\x76\xa0\x34\xd5\xda\
\x79\x62\x6f\x3f\xe3\x7c\xf7\x82\x6e\x81\xbd\x5a\x77\x1b\x52\xfb\
\x95\x1a\xbf\x65\xf4\x18\x19\x36\xd0\xc7\x11\x4f\x8a\xf8\x2d\x9d\
\xba\xe3\xfa\xbd\x1b\x55\xb3\x5b\x30\x00\x00\x22\x0b\x09\x0b\xf5\
\x9a\xbc\x72\xa6\x61\xad\xa0\xce\x4d\xda\x8f\x7b\xaf\x69\x07\xdf\
\xb4\x6e\x9b\x6e\x03\x5d\xf2\xc7\x8a\x99\x5b\x8f\xee\x1c\x6c\xe6\
\xfa\x00\x00\x10\xde\xba\x7d\x9b\xc6\x4a\xd3\xf4\x4f\xc7\xd5\x2c\
\x53\xac\xf4\xa9\x97\xaf\x4f\xb3\x81\x4e\x59\xfd\xfd\xc6\x63\x97\
\x4e\xb6\xcf\xd9\xf2\x00\x00\x10\xdb\xd0\x1f\xc7\x9e\x94\x56\x83\
\x97\xd6\xb4\x4d\x3e\xdf\x64\x03\xdd\x72\xf8\x8f\x2f\x69\x9e\x00\
\x00\xfc\x67\xe2\x8a\xef\xb6\xae\x1d\xbb\xd8\xd9\x56\x6f\x1b\x6d\
\x9c\x67\xb2\x81\x6e\x3b\xba\x6b\x90\x72\x65\x01\x00\x20\xb6\xc4\
\xc4\x44\xeb\x6d\xc7\x76\x0f\x68\x57\xff\xcd\xe9\xc6\x79\xa9\x1a\
\x68\x78\x54\x84\xeb\xfd\x27\x0f\x4d\x1e\x20\x02\x00\x00\x4b\x15\
\x74\x2f\xb8\x5a\xf2\xcb\xa9\x1a\x68\x5e\xa7\x3c\x0f\x1d\xec\x1c\
\x22\xa2\x63\xa3\xf3\x28\x56\x15\x00\x00\x82\x73\xcb\x5f\x28\x38\
\xf9\x65\x93\x8b\x70\x9b\x54\xaf\xbf\x74\xfb\xf1\x3d\xfd\x95\x29\
\x09\x00\x00\xf1\x35\xaa\x5a\x6f\x45\xf2\xcb\x26\x1b\xe8\xc7\x6f\
\xf7\x1c\x70\xe2\xf2\x99\x77\xa4\xc3\x89\x2a\x53\x16\x00\x00\xe2\
\x7a\xbf\x59\xc7\x31\x25\x0a\x17\x0b\x48\x3e\x2f\xcd\xcd\x58\x16\
\x0d\x9d\x55\x72\xd0\xec\x11\x17\x6f\xde\xbf\x5d\x31\xe7\x4b\x03\
\x00\x40\x4c\x69\xee\x0b\x37\xbd\x3b\xcd\x1e\xf4\x6d\xa5\x6d\xc7\
\x76\x0d\xfc\x69\xdb\xf2\xd9\x39\x57\x1a\x00\x00\xe2\x29\x52\xd0\
\xed\xdf\x89\x7d\x46\x37\x2c\x98\xb7\xc0\x1d\x53\xd7\x67\xb8\x2b\
\xbf\xb7\x5e\x6f\x39\x47\x9a\x0e\x9c\x3b\xfc\xc1\xbc\x2d\x4b\x16\
\xc6\xc6\xc5\x3a\x9a\xbf\x4c\x00\x00\xc4\x20\xed\x30\x61\x60\x87\
\x8f\x3f\x4a\x7e\xec\x32\x53\x32\xbd\x33\x79\xe9\xc7\x53\xe3\x0f\
\xa8\x01\xc1\x57\xeb\xed\x3d\x73\xf0\xa3\xe3\x01\xa7\xda\x49\x9b\
\xbd\x64\xb7\x58\x00\x00\xd4\xe2\x5d\xbc\xf4\xc9\x7a\x95\x5f\x5f\
\xdb\xaa\x76\xd3\xf9\xd2\x56\x28\x99\xbd\x5f\x96\x8e\xc6\x62\x54\
\xa1\x54\xb9\xc3\xd2\xd4\xbf\x5d\x9f\x3e\x72\xee\x0f\x00\x40\x6e\
\x27\xab\x81\x02\x00\x60\xe9\x68\xa0\x00\x00\xc8\x40\x03\x05\x00\
\x40\x06\x1a\x28\x00\x00\x32\xd0\x40\x01\x00\x90\x81\x06\x0a\x00\
\x80\x0c\x34\x50\x00\x00\x64\xa0\x81\x02\x00\x20\x03\x0d\x14\x00\
\x00\x19\x68\xa0\x00\x00\xc8\x40\x03\x05\x00\x40\x06\x1a\x28\x00\
\x00\x32\x98\xb5\x81\xde\x0c\xbd\x5d\xf1\xec\xb5\xf3\x2d\xef\x86\
\x85\x78\x3f\x8e\x78\x52\x24\xec\xe9\xa3\x62\x41\xf7\x6e\x54\xe3\
\x10\x68\x90\x24\xbe\x98\xac\xd4\x2e\x02\x80\x45\x71\xcb\x5f\xe8\
\x7a\xf1\x42\x45\xaf\xe4\xcf\x9b\xff\x9e\x6b\xbe\x82\xb7\xca\x96\
\xf0\xf2\xaf\x5a\xa6\xf2\x1e\x7b\x5b\xbb\xa8\xec\x3e\xb6\xac\x06\
\xfa\x24\xf2\xa9\xdb\x1f\xc7\x76\x0f\xd8\xee\xbf\xe7\x33\x0e\x67\
\x86\xcc\xa2\x79\x22\x6b\xf8\xc8\x85\xec\x0b\x7d\xfc\xc0\x53\x9a\
\xd2\xbb\x4d\xed\x0a\x35\xb6\xb4\xaa\xd5\xfc\xc7\xea\x65\x7d\x76\
\x66\xe5\xb1\x33\xd5\x40\xa3\x62\x9e\xe5\x5b\xba\x63\xf5\xb4\xdd\
\x27\xf7\xf7\x4d\xd4\x25\xf2\x8e\x06\x90\x33\x52\xf4\x4c\xfe\xd4\
\x40\x19\xfe\x01\xa7\xdb\x4a\x93\xf1\x72\x51\xd7\x22\xff\x0c\x7e\
\xf7\x93\x1e\xe5\x3c\xbc\x8f\xa5\x77\xbf\x74\x1b\xe8\xbc\x2d\x8b\
\x17\x4a\x4d\xd3\x5c\x45\x02\x40\xba\xe8\x99\x10\xc0\xdd\x87\xf7\
\xca\x7e\xb5\xd0\xef\xa8\x74\xde\xbd\x40\xe1\xa0\x51\x1f\x7c\xf9\
\xb6\x87\x5b\xf1\x4b\x2f\xdf\x2e\x55\x03\x8d\x7f\x1e\x6f\xe7\xb7\
\x74\xea\xce\x0b\x41\x01\x8d\x15\xa8\x13\x00\x00\x61\x85\x3c\xba\
\x5f\x7a\xd0\x9c\x11\x17\x1d\xed\x1d\xc2\x27\xf5\x19\xd3\xc0\xb3\
\x48\xc9\x73\xc6\xeb\x52\x34\xd0\x75\xfb\x37\x8f\x59\xfd\xe7\xaf\
\xe3\x94\x2f\x11\x00\x00\x71\x3d\x8b\x89\xce\x3b\x64\xee\xa8\xb3\
\xa5\xdc\x3d\xce\x4f\xeb\xe7\x57\xcb\x56\x6f\x1b\x93\xd4\x40\x27\
\xaf\x9a\xb9\x39\xf9\x32\x60\x00\x50\x0e\x2b\x0c\x21\x77\x08\x0e\
\xb9\xe9\xd3\x7d\x52\xbf\xb0\x45\x43\xbf\x2f\x69\x68\xa0\x2b\xf7\
\x6c\x98\x40\xf3\x04\xa0\x1e\x9a\x27\x72\x8f\x98\xb8\x58\xa7\x91\
\x3f\x8d\x3f\x64\x68\xa0\xbf\x1f\xdd\x31\x58\xe5\x7a\x00\x00\xc8\
\x35\x6e\xdd\xbf\x53\xc1\xd0\x40\xa3\x63\x63\x9c\xd5\x2e\x06\x80\
\x25\x63\x11\x2e\x72\x1f\x7d\x42\x42\x82\x8d\x1a\x4f\xdc\xa4\x9e\
\x97\xae\x61\x1d\x4f\x35\x9e\x1a\x66\x76\xfa\xc2\x5d\xdd\xd6\x1d\
\x01\x8a\x3f\x6f\xe7\xb6\x3e\xba\x0a\x65\x0b\x2b\xfe\xbc\x30\xbf\
\x99\x0b\x0e\xeb\x9e\x86\xc7\x28\xfe\xbc\xc3\xfa\x37\xd0\x39\x39\
\xda\x2a\xfe\xbc\x30\xbf\x89\xb3\x0e\xe8\xe2\xe3\x9f\x2b\xfa\x9c\
\xec\x0b\x17\x00\x00\x19\x68\xa0\x00\x00\xc8\x40\x03\x05\x00\x40\
\x06\x1a\x28\x00\x00\x32\xd0\x40\x01\x00\x90\x81\x06\x0a\x00\x80\
\x0c\x34\x50\x00\x00\x64\xa0\x81\x02\x00\x20\x03\x0d\x14\x00\x00\
\x19\x68\xa0\x00\x00\xc8\x40\x03\x05\x00\x40\x06\x1a\x28\x00\x00\
\x32\xd0\x40\x01\x00\x90\x81\x06\x0a\x00\x80\x0c\x34\x50\x00\x00\
\x64\xa0\x81\x02\x00\x20\x03\x0d\x14\x00\x00\x19\x68\xa0\x00\x00\
\xc8\x40\x03\x05\x00\x40\x06\x1a\x28\x00\x00\x32\xd0\x40\x01\x00\
\x90\x81\x06\x0a\x00\x80\x0c\x34\x50\x00\x00\x64\xa0\x81\x02\x00\
\x20\x03\x0d\x14\x00\x00\x19\x68\xa0\x00\x00\xc8\x40\x03\x05\x00\
\x40\x06\x1a\x28\x00\x00\x32\xd0\x40\x01\x00\x90\x81\x06\x0a\x00\
\x80\x0c\x34\x50\x00\x00\x64\xa0\x81\x02\x00\x20\x03\x0d\x14\x00\
\x00\x19\x68\xa0\x00\x00\xc8\x40\x03\x05\x00\x40\x06\x1a\x28\x00\
\x00\x32\xd0\x40\x01\x00\x90\x41\x6f\x6d\x6d\xfd\x5c\x8d\x27\xde\
\x77\x38\xd0\x30\x01\x72\xad\xdb\x72\x5e\xed\x12\x60\x36\x89\x2f\
\x26\x2b\xc5\x9f\x75\xda\xdc\x43\x8a\x3f\x27\xb4\xc3\xf0\x0d\xd4\
\xab\x98\xe7\xe9\xc0\x3b\xd7\x6b\xa8\x5d\x0c\x00\x00\xb9\x85\xa1\
\x81\x7e\xd4\xea\xfd\x2f\xc7\x2c\x99\xb4\x4f\xed\x62\x00\x58\x2a\
\xe5\xbf\x7d\x02\xd9\xe1\xe3\x55\x71\xaf\xa1\x81\x56\x2e\x5d\x61\
\xff\xe0\x8e\xfd\xba\xcf\xda\x30\x7f\xb9\xda\x45\x01\x00\x20\xb2\
\x92\xee\x25\x2e\xf8\x7d\x38\xa2\x45\xd2\x4a\x44\x8d\xaa\xd6\x5b\
\x21\x75\xd4\xcf\xe7\x7c\x7d\x3e\xe2\x59\x64\x41\x35\x8b\x03\x00\
\x40\x44\x5d\x9b\x76\xf0\xed\xd2\xa4\xfd\x38\xe9\x7c\x8a\xb5\x70\
\x0b\xe6\x2d\x70\x67\xf9\xc8\xf9\xae\x67\xaf\x9d\x6f\xe9\xb7\x74\
\xea\x4e\x75\xca\x43\xee\xa3\xce\x0a\x20\x00\xa0\x94\xba\x95\x6a\
\x6f\x18\xd6\x75\x60\xa7\xe4\xf3\x4c\x6e\xc6\x52\xcd\xdb\x67\xd7\
\xa6\xf1\xcb\xad\x42\xc2\x42\xbd\xa6\xaf\x9b\xbb\xe6\xda\xed\xc0\
\x5a\xca\x94\x88\xdc\x89\xe6\x09\x40\x7b\x1c\xec\x1c\x22\x7a\xbd\
\xd9\x6d\x48\x8b\x57\x1b\xff\x64\xea\xfa\x74\xb7\x03\x75\x2f\xe8\
\x16\x38\xad\x9f\x5f\x6d\xe9\xbc\xd4\x4c\x97\xed\x5e\xfb\xed\x91\
\x0b\xfe\x9d\xd2\xbb\x0f\x2c\x1c\x5f\x46\x01\xe4\x62\xc5\x0b\x15\
\xbd\xd2\xa9\x71\xdb\x09\xd2\xcf\x9a\x19\xdd\x36\xd3\x3b\x52\x90\
\x9a\xe9\xb0\x2e\x03\x3b\xeb\xba\xfc\x77\x39\x32\x3a\x2a\xff\x9f\
\xa7\x0e\xf4\xfa\xeb\xc2\xb1\x2e\xff\xdc\x0a\xac\x2d\xbf\x5c\x68\
\xca\xff\x37\x4f\xfa\x28\xb2\x8b\xf7\x10\x72\x5a\xfe\x3c\x2e\xf7\
\xea\x55\x7e\x6d\x7d\xf3\x17\xdf\x30\x3d\x8b\x78\xfc\x9d\xd5\xfb\
\xcb\xde\x13\x91\xb3\x83\xd3\xe3\x77\xea\xb5\x9e\x21\x4d\x2f\x5f\
\x17\x74\x37\xb8\xda\x8d\xd0\x5b\x95\x6f\x3f\xb8\x5b\x3e\xec\xe9\
\xe3\x62\x8f\x23\x9e\xb8\x87\x3f\x8b\x70\x7d\x14\xfe\xb8\xe8\x93\
\xc8\xa7\x6e\xb1\x71\xb1\x8e\x72\x9f\x17\xb9\x43\xaa\x3f\x7c\xc6\
\xbf\x86\x2f\x9f\x02\x69\x78\xf9\xed\xc1\x5b\x06\x99\xe1\xe2\x9c\
\x2f\xf4\x45\x63\x0c\x91\x9a\xa3\x4b\x9e\x17\xe7\x9d\x5d\x42\x0a\
\xe7\x77\xbd\x51\xa6\x78\xe9\x93\x5e\x45\x3d\xcf\xd8\xdb\xda\x45\
\x99\xeb\xb9\x72\x64\x57\x7e\xa5\x8b\x96\x3a\x2b\x4d\x39\xf1\xd8\
\x00\x00\x88\x80\x7d\xe1\x02\x00\x20\x03\x0d\x14\x00\x00\x19\x68\
\xa0\x00\x00\xc8\x40\x03\x05\x00\x40\x06\x1a\x28\x00\x00\x32\xd0\
\x40\x01\x00\x90\x81\x06\x0a\x00\x80\x0c\x34\x50\x00\x00\x64\xa0\
\x81\x02\x00\x20\x03\x0d\x14\x00\x00\x19\x68\xa0\x00\x00\xc8\x40\
\x03\x05\x00\x40\x86\x2c\x37\xd0\x7b\x61\xa1\x65\xb6\x1e\xd9\x3e\
\x64\xf7\xa9\x03\xbd\xe3\xe2\xe3\x1c\x72\xa2\x28\x00\x00\x94\xe4\
\x55\xb4\xd4\x99\x56\xb5\x9b\xfd\xd8\xa2\x66\x93\x45\x99\xbd\x4f\
\xa6\x1a\x68\x4c\x5c\x8c\xd3\x8c\xf5\xf3\x56\xf9\x07\x9c\x6e\x2b\
\xbf\x3c\x00\x00\xc4\x14\x78\x37\xb8\xfa\xbc\x2d\x4b\x16\x4a\x93\
\x74\xf9\x93\x36\x1f\x7e\x26\x35\xd4\xf4\xee\x93\x61\x03\x9d\xb0\
\x7c\xfa\xb6\x53\x57\xcf\xbd\x69\xae\x22\x01\x00\x10\xdd\x82\xad\
\xbf\xcc\x93\xa6\x81\xed\xfb\x7e\xd4\xb4\x46\xc3\x5f\x4c\xdd\x26\
\xcd\x06\x1a\x78\xe7\x7a\x8d\x2f\x7f\x1c\x73\x2a\xc7\xaa\x03\x00\
\x40\x70\x73\x36\x2d\xfa\xf9\x78\xc0\xa9\x76\x5f\x77\x1b\xd2\xee\
\xe5\xeb\x4c\x36\xd0\xfb\x8f\x1f\x96\xa4\x79\x02\x00\xa0\xd3\xf9\
\x5f\x3e\xdd\x76\xe6\xfa\x79\x2b\x87\x74\xfa\xac\x5b\xf2\xf9\x26\
\x1b\xe8\xe2\x3f\x56\xcc\x52\xa4\x2a\x00\x00\x72\x81\x83\x7f\x1f\
\x7d\xbf\xf9\xab\x8d\x17\xfb\x78\x55\xdc\x6b\x9c\x97\xaa\x81\x26\
\xea\x12\xad\x8e\x07\x9c\x6c\xaf\x6c\x69\x00\x00\x88\xed\x78\xc0\
\xa9\xb6\xe9\x36\xd0\x67\x31\xd1\x79\x95\x2d\x09\x00\x00\xf1\x3d\
\x8b\x4d\xd9\x1f\x53\x35\x50\x27\x7b\xc7\xa7\xa5\x8b\x94\x3c\x1b\
\x74\xef\x46\x35\xc5\xaa\x02\x00\x40\x70\x15\x4b\x95\xfb\x2b\xf9\
\x65\x93\xbf\x81\x76\x6a\xdc\x6e\xc2\xd4\x35\xb3\x37\x28\x53\x12\
\x00\x00\x62\x2b\x52\xd0\xed\xdf\x66\x35\x1a\x2d\x49\x3e\xcf\x64\
\x03\xad\x53\xa9\xd6\xaf\xef\x35\x7d\xd7\x77\xf5\xde\x5f\xfd\x94\
\x29\x0d\x00\x00\x71\x4d\xec\x3d\xba\xd1\xcb\xf3\xd2\xdc\x0e\xb4\
\x73\x93\x76\xe3\x4a\x15\xf1\xf8\xfb\xdb\x55\xb3\x36\xe5\x6c\x59\
\x00\x00\x88\xa9\x42\xc9\x72\x87\x27\xf5\x1d\x53\xdf\xd4\x75\xe9\
\xee\x89\xe8\xb5\x0a\xaf\x6e\xde\x34\x7e\xb9\xd5\x9a\xbd\x1b\xfd\
\xd6\xee\xdb\x34\x36\x67\xca\x03\x00\x40\x2c\xf9\xf3\xb8\x84\x8c\
\xfa\xe0\xcb\xb7\xbd\x8b\x97\x3e\x99\xd6\x6d\x32\xb5\x2f\xdc\xae\
\x4d\x3b\xf8\x4a\xd3\xf5\x7b\x37\xab\xac\xfa\x73\xfd\x84\x13\x97\
\xcf\xb4\x31\x5f\x99\x00\x00\x88\xa1\x4b\x93\xf6\x7e\x2f\xfa\xdd\
\x37\x99\xb9\x6d\x96\x8e\xc6\xe2\x59\xc4\xe3\xef\x91\xdd\xbe\x78\
\x27\xf9\xbc\x2b\x37\xaf\xbd\x7e\x23\xe4\xa6\xcf\x83\x27\x61\x1e\
\x91\xd1\x51\xf9\xe3\xe2\xe3\xec\xf5\x7a\x7d\x6c\x56\x1e\x17\x00\
\x00\xa5\x58\xe9\xac\x12\xf2\x3a\xe5\x09\x73\x2f\x50\x38\xc8\xab\
\xa8\xe7\xe9\x92\xee\x25\x2e\xc8\x79\x9c\x6c\x1f\x0f\xb4\xbc\x87\
\xf7\x31\x69\xca\xee\xe3\x00\x00\x90\x9b\x70\x40\x6d\x00\x00\x64\
\xa0\x81\x02\x00\x20\x03\x0d\x14\x00\x00\x19\x68\xa0\x00\x00\xc8\
\x40\x03\x05\x00\x40\x06\x1a\x28\x00\x00\x32\xd0\x40\x01\x00\x90\
\x81\x06\x0a\x00\x80\x0c\x34\x50\x00\x00\x64\xa0\x81\x02\x00\x20\
\x03\x0d\x14\x00\x00\x19\x14\x69\xa0\xf7\xc2\x42\xcb\x3c\x78\xf2\
\xd0\x43\x89\xe7\x42\xee\x10\x19\x13\xe5\x12\x19\x15\x95\xff\x59\
\x5c\x74\x5e\x47\x5b\xfb\x48\x27\x07\xa7\xc7\x79\x1c\x9d\x1f\xa9\
\x5d\x17\x72\x87\xd8\xb8\x38\x87\xc8\xe8\xc8\x02\x91\xd1\x51\x2e\
\xcf\x13\x13\xf4\xce\xf6\x8e\x4f\x9c\x1d\x9c\x1f\x3b\xda\x3b\x84\
\xab\x5d\x1b\xc4\x60\xab\xb7\x8d\x29\xe5\xee\xf1\xb7\x83\x9d\x7d\
\x64\x4e\x3d\x47\xb6\x1b\xe8\xb9\x6b\x17\x5a\x9c\xbc\x7a\xf6\x2d\
\xff\x80\x53\x6d\x43\x1f\x3f\xf0\x34\x43\x4d\xd0\x8a\x44\x9d\x74\
\xd8\x03\x00\x10\x4e\x35\x6f\x9f\x5d\xb5\xca\x57\xdf\x5a\xb7\x72\
\xed\xf5\xd2\xb1\x3f\xe5\x3c\x46\x96\x1a\xe8\xed\x07\x77\xcb\x6f\
\x3c\xb8\x75\xc4\x81\x73\x47\xba\x3d\x4f\x78\x6e\x2b\xe7\x09\x61\
\x41\x68\x9e\xc8\x22\x3e\x73\x41\x29\x67\xaf\x9d\x6f\x29\x4d\x8b\
\xb6\x2d\x9b\x63\x9c\xf7\xe2\x1b\xeb\xf9\x76\xf5\xdf\x9c\xd6\xa0\
\x4a\x9d\xd5\x36\xd6\x36\xf1\x19\x3d\x46\x86\x0d\xf4\xe4\x95\xb3\
\x6f\xcd\xdd\xfc\xd3\xe2\xc7\x11\x4f\xdc\xb3\x5b\x30\x00\xa4\x87\
\xe6\x09\x35\x05\x87\xdc\xf4\xf9\xfe\xd7\x05\xcb\xa4\x49\xba\xdc\
\xba\x76\xf3\x79\x3d\x5b\xbd\x37\xcc\xde\xd6\x2e\xca\xd4\xed\x4d\
\x36\xd0\xd8\xb8\x58\xc7\x6f\x57\xcd\xda\x74\xe6\xda\xf9\x37\x72\
\xb2\x58\x00\x00\x44\xb5\xdd\x7f\xcf\x67\xd2\xe4\xe4\xe0\xf4\xc4\
\xef\xc3\xaf\x5a\x78\x17\xf7\x3a\x91\xfc\xfa\x54\x0d\x54\x6a\x9c\
\xc7\x03\x4e\xb5\x53\xac\x42\x00\x00\x04\x16\x15\x1d\xe5\x32\x6c\
\xbe\xaf\x7f\x1e\x47\xe7\xb0\xe9\x9f\x8e\xaf\xe9\x5e\xa0\x70\x90\
\x34\x3f\xa9\x81\xde\x79\x70\xaf\xdc\x80\xd9\xc3\x03\x12\x13\x13\
\xad\xd5\x2b\x13\x00\x00\x31\x45\x3c\x8b\x2c\xd8\x6f\xc6\x17\x81\
\x9d\x9b\xb4\x1f\xf7\x5e\xd3\x0e\xbe\x86\x06\x7a\xff\xc9\xc3\x92\
\xfd\xbf\x1f\x76\x45\xed\xe2\x00\x00\x10\xdd\xba\x7d\x9b\xc6\xda\
\xeb\x6d\x9f\x19\x1a\xe8\xac\xf5\x3f\xae\x50\xbb\x20\x00\x00\x72\
\x8b\xe5\xbb\xd7\x4d\x36\x34\xd0\x4b\xc1\x57\x1a\xa8\x5d\x0c\x00\
\x00\xb9\x89\x6a\xbb\xf2\xab\x5e\xb9\x98\xae\x4a\x25\xb6\x8c\xd1\
\x82\xc0\xeb\x61\xba\x43\xc7\x83\x15\x7f\xde\x26\xf5\xbc\x74\x25\
\x4b\xb8\x28\xfe\xbc\x30\xbf\x0d\x5b\x2f\xe8\x22\xa3\xe2\x14\x7f\
\xde\xae\xed\xaa\xe8\xec\xed\x6d\x14\x7f\x5e\x98\xdf\xd2\xb5\x67\
\x14\x7f\x4e\x7d\x42\x42\x82\x2a\xef\x9e\xfc\x2e\x0e\x3a\x4f\x8f\
\x02\x6a\x3c\x35\xcc\x2c\xec\x49\xb4\x2a\xcf\x5b\xb8\x90\x33\xef\
\x21\x8d\xb0\xb1\x51\x67\xdd\x45\x8f\xe2\x2e\x3a\x27\x47\xf6\x09\
\xa3\x05\x7a\xbd\x8d\x2e\x3e\xfe\xb9\xb2\xcf\xa9\xe8\xb3\x01\x00\
\xa0\x11\x34\x50\x00\x00\x64\xa0\x81\x02\x00\x20\x03\x0d\x14\x00\
\x00\x19\x68\xa0\x00\x00\xc8\x40\x03\x05\x00\x40\x06\x1a\x28\x00\
\x00\x32\xd0\x40\x01\x00\x90\x81\x06\x0a\x00\x80\x0c\x34\x50\x00\
\x00\x64\xa0\x81\x02\x00\x20\x03\x0d\x14\x00\x00\x19\x68\xa0\x00\
\x00\xc8\x40\x03\x05\x00\x40\x06\x1a\x28\x00\x00\x32\xd0\x40\x01\
\x00\x90\x81\x06\x0a\x00\x80\x0c\x34\x50\x00\x00\x64\xa0\x81\x02\
\x00\x20\x03\x0d\x14\x00\x00\x19\x68\xa0\x00\x00\xc8\x40\x03\x05\
\x00\x40\x06\x1a\x28\x00\x00\x32\xd0\x40\x01\x00\x90\x81\x06\x0a\
\x00\x80\x0c\x34\x50\x00\x00\x64\xa0\x81\x02\x00\x20\x03\x0d\x14\
\x00\x00\x19\x68\xa0\x00\x00\xc8\x40\x03\x05\x00\x40\x06\x1a\x28\
\x00\x00\x32\xd0\x40\x01\x00\x90\x81\x06\x0a\x00\x80\x0c\x34\x50\
\x00\x00\x64\xa0\x81\x02\x00\x20\x03\x0d\x14\x00\x00\x19\xf4\xd6\
\xd6\xd6\xcf\xd5\x78\xe2\xeb\x37\xc2\x74\x09\x89\x89\x6a\x3c\x35\
\xcc\xec\x5e\x48\xb8\x2a\xcf\x7b\xf1\x72\x88\x2e\xe4\x7e\x84\x2a\
\xcf\x0d\xf3\x8a\x89\x51\xe5\xcf\x90\xee\xb0\x7f\xb0\xce\xd6\xd6\
\x46\x95\xe7\x86\x79\xc5\xc7\x2b\xff\x1e\x32\x7c\x03\x75\xb2\x77\
\x7c\x1a\x15\xf3\x2c\x9f\x92\x4f\x1c\x74\xf3\xb1\x61\x02\xe4\xba\
\x78\x25\x54\xed\x12\x90\xcb\x1d\x39\x71\x43\xed\x12\x90\x8b\x19\
\x1a\x68\xed\x0a\xaf\x6e\xde\x7f\xf6\xaf\x1e\x6a\x17\x03\x00\x40\
\x6e\x61\x68\xa0\x03\xda\xf5\xe9\xe3\x7f\xf9\x74\xdb\xa8\xe8\x28\
\x17\xb5\x0b\x02\x00\x40\x74\xbd\x5a\x77\x1b\x62\x68\xa0\x36\x36\
\x36\x71\x4b\x86\xcf\x29\xf6\xc9\x77\x43\x82\x9e\x44\x3e\x75\x53\
\xbb\x30\x00\x96\x46\x5a\x1f\xc2\x4a\xed\x22\x80\x4c\xe9\xf7\xce\
\x87\x9f\xbe\x51\xab\xd9\xfc\xa4\xb5\x70\xed\x6d\xed\xa2\x7e\x19\
\x31\xd7\x7d\xe7\x89\x3f\xfb\xcd\xff\xed\x97\x1f\xd5\x2c\x0e\x80\
\xa5\xa1\x79\x42\x7c\x5e\x45\x4b\x9d\x99\xd0\x7b\x74\x23\x47\x7b\
\x07\xc3\x9a\x93\xa9\x36\x63\x91\xba\xaa\x34\xfd\x76\x78\xfb\x17\
\x3f\xef\x58\xf5\x9d\xf2\x25\x02\x00\x20\x8e\x32\xc5\x4a\x9f\xf2\
\xed\x39\xfc\x8d\xbc\x4e\x79\x1e\x26\x9f\x9f\xe6\x76\xa0\xef\xd4\
\x6b\x3d\x43\x9a\x1e\x3e\x7d\x54\xfc\x87\x4d\x8b\x96\x9c\xbd\x76\
\xbe\x65\xce\x97\x89\x5c\x8d\xa5\x70\x00\x34\x22\x9f\x53\xde\x07\
\x9f\xb6\xed\xf5\xc9\xeb\x15\x6b\x6e\x4c\xeb\x36\x19\xee\x48\xc1\
\x35\x5f\x81\xdb\x52\xe7\x35\x5e\xfe\xf3\xf4\xc1\x8f\x36\x1d\xda\
\x36\xfc\xf6\x83\x3b\xaf\x98\xab\x50\x68\x04\xcd\x13\x40\x2e\x25\
\xfd\x8c\xd9\xac\x46\xa3\x25\xed\x1b\xbc\x35\xb5\x90\x8b\xeb\xcd\
\xcc\xdc\x27\xcb\x7b\x22\x6a\x56\xa3\xe1\xcf\xd2\x64\xbc\x1c\x1d\
\x1b\x9d\xe7\xf4\x3f\x7f\xb7\x3a\x71\xf9\x4c\x9b\x93\x57\xce\xb4\
\x89\x78\x16\x59\x20\xab\x8f\x09\x00\x80\x52\x7c\xbc\x2a\xee\xad\
\x51\xb6\xea\xf6\x3a\x2f\xbe\x5d\xba\x17\x74\x0b\x94\xfb\x38\xd9\
\xde\x95\x9f\x83\x9d\x43\x44\xdd\x4a\xb5\x37\x48\x53\x76\x1f\x0b\
\x00\x80\xdc\x82\x7d\xe1\x02\x00\x20\x03\x0d\x14\x00\x00\x19\x68\
\xa0\x00\x00\xc8\x40\x03\x05\x00\x40\x06\x1a\x28\x00\x00\x32\xd0\
\x40\x01\x00\x90\x81\x06\x0a\x00\x80\x0c\x34\x50\x00\x00\x64\xa0\
\x81\x02\x00\x20\x03\x0d\x14\x00\x00\x19\x68\xa0\x00\x00\xc8\x40\
\x03\x05\x00\x40\x06\xd9\x0d\xf4\xc1\x93\x87\x1e\x27\x2e\x9f\x79\
\xe7\x52\xf0\x95\x06\x37\x42\x6e\x56\x96\x8e\x1b\x1a\x1d\x1b\xe3\
\x9c\xe6\x1d\x38\xd4\x15\x00\x40\x49\x89\x69\x5f\xe5\x92\x27\xdf\
\x7d\xf7\x02\x85\x03\xa5\x83\x65\x57\xf3\xae\xbc\xfb\xd5\x72\xd5\
\xb6\x65\xf5\xe1\xb3\xd4\x40\x97\xef\x5e\x37\x79\xe3\xc1\xad\x23\
\xb2\xfa\x24\x00\x00\x88\x24\xec\xe9\xa3\x62\xd2\x14\x10\x7c\xb5\
\xfe\xef\x47\x77\x7e\x6e\x9c\x5f\xbc\x50\xd1\xcb\xbd\xde\xfc\x60\
\x48\x8d\xb2\x55\x76\x64\xf4\x18\x19\x36\xd0\xf0\xa8\x08\xd7\x71\
\xcb\xa6\x6d\xbf\x76\x3b\xb0\x56\x76\x0b\x06\x00\x40\x64\xb7\x1f\
\xdc\x7d\x65\xfc\x8b\x9e\x27\x9d\x7f\xbf\x59\xc7\x31\x9d\x1a\xb7\
\x9d\x90\xd6\x6d\xd3\x6d\xa0\x4b\x77\xae\x99\xba\xf9\xaf\x6d\xc3\
\xcc\x5d\x20\x00\x00\xa2\x5b\xf5\xe7\x86\xf1\xd2\x34\xb3\xff\xc4\
\x6a\x9e\x45\x4a\x9e\x7b\xf9\xfa\x34\x1b\xe8\xb4\x35\x73\xd6\x1f\
\xb9\xe8\xdf\x31\x67\xcb\x03\x00\x40\x6c\x43\xe6\x8e\x3a\x3b\xb6\
\xc7\xb0\x56\xd5\xcb\x56\xd9\x99\x7c\xbe\xc9\x06\xba\xf5\xe8\xce\
\xc1\x34\x4f\x00\x00\xfe\x33\x71\xc5\x77\xbf\xaf\x19\xbb\xd8\x59\
\x6f\xa3\x8f\x35\xce\x33\xdd\x40\x8f\xec\x18\xac\x58\x55\x00\x00\
\x08\xee\x79\x42\x82\xfe\x8f\xe3\xbb\x07\xbc\x53\xb7\xf5\x0c\xe3\
\xbc\x54\x0d\x54\x5a\x69\xe8\xfe\xe3\x07\xa5\x94\x2d\x0d\x00\x00\
\xb1\x05\xde\x09\xae\x9e\xfc\x72\xaa\x06\x9a\xd7\x29\xcf\x43\x7b\
\x5b\xfb\xc8\x98\xb8\x74\xb6\xe9\x04\x00\xc0\xc2\x14\x72\x29\x78\
\x33\xf9\x65\x93\x8b\x70\x9b\x54\xaf\xbf\x6c\x87\xff\x9f\x9f\x2a\
\x53\x12\x00\x00\xe2\x6b\x58\xb5\xee\xca\xe4\x97\x4d\x36\xd0\x4f\
\xda\x7c\xf8\x99\x7f\xc0\xe9\xb6\x61\xe1\x8f\x8a\x29\x53\x16\x00\
\x00\xe2\xea\xda\xb4\xc3\x37\x25\xdd\x4a\x5c\x4c\x3e\x2f\xcd\xcd\
\x58\x16\x0f\x9f\x5d\xbc\xff\xac\x61\x57\xee\x3c\xbc\x57\x2e\xe7\
\x4b\x03\x00\x40\x4c\xdd\x9a\x77\x1c\xdd\xb1\x51\xdb\x89\x2f\xcf\
\x4f\x77\x47\x0a\x73\x07\x4f\x2b\xff\xdb\xe1\xed\x5f\xfc\xbc\x63\
\xd5\x77\x39\x57\x1a\x00\x00\xe2\x29\xe4\xe2\x7a\x63\x52\xdf\x31\
\x0d\x0a\xbf\x38\x35\x75\x7d\x86\xbb\xf2\x7b\xa7\x5e\xeb\x19\xd2\
\xf4\xe7\xe9\x03\xbd\xe6\x6d\x5e\xb2\x30\x21\x31\xc1\xc6\xfc\x65\
\x02\x00\x20\x86\xaa\xde\x95\x77\x0f\x6c\xdf\xb7\x97\x6b\xbe\x82\
\xb7\xd2\xbb\x5d\xa6\x77\x26\xdf\xac\x46\xa3\x25\xd2\x24\x9d\x3f\
\x1f\x14\xd0\xe4\xcf\x53\x07\x7a\x1d\xbb\x74\xb2\x3d\x6b\xeb\x02\
\x00\x72\xb3\x92\x6e\x25\x2e\x34\xa8\x5a\x67\x75\xab\x5a\xcd\xe6\
\xe7\x71\x74\x0e\xcb\xec\xfd\xfe\x0f\x0b\x73\x2b\xcb\x04\x87\x68\
\x0e\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
"
qt_resource_name = b"\
\x00\x07\
\x07\x3b\xe0\xb3\
\x00\x70\
\x00\x6c\x00\x75\x00\x67\x00\x69\x00\x6e\x00\x73\
\x00\x0b\
\x0a\x17\x74\xe0\
\x00\x62\
\x00\x72\x00\x65\x00\x65\x00\x64\x00\x65\x00\x72\x00\x5f\x00\x6d\x00\x61\x00\x70\
\x00\x08\
\x0a\x61\x5a\xa7\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x2e\x00\x70\x00\x6e\x00\x67\
"
qt_resource_struct_v1 = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
\x00\x00\x00\x14\x00\x02\x00\x00\x00\x01\x00\x00\x00\x03\
\x00\x00\x00\x30\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
"
qt_resource_struct_v2 = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x14\x00\x02\x00\x00\x00\x01\x00\x00\x00\x03\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x30\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x01\x7f\xfd\xcd\xc3\xb8\
"
qt_version = QtCore.qVersion().split('.')
if qt_version < ['5', '8', '0']:
rcc_version = 1
qt_resource_struct = qt_resource_struct_v1
else:
rcc_version = 2
qt_resource_struct = qt_resource_struct_v2
def qInitResources():
QtCore.qRegisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
def qCleanupResources():
QtCore.qUnregisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
qInitResources()
| 62.634538
| 103
| 0.727131
| 11,256
| 46,788
| 3.019101
| 0.027186
| 0.035488
| 0.017744
| 0.014478
| 0.181591
| 0.168261
| 0.158785
| 0.15446
| 0.15446
| 0.150487
| 0
| 0.312242
| 0.01774
| 46,788
| 746
| 104
| 62.718499
| 0.427194
| 0.003227
| 0
| 0.054795
| 0
| 0.950685
| 0.000086
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0.00274
| false
| 0
| 0.00137
| 0
| 0.00411
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
05c47851eed298a1ca3b5574ee61fdfb8228a592
| 412
|
py
|
Python
|
Les 1/1_1.py
|
tloader11/TICT-V1PROG-15
|
dac7e991dcb11a397082bdceaf60a07b9bbc1a4a
|
[
"Unlicense"
] | null | null | null |
Les 1/1_1.py
|
tloader11/TICT-V1PROG-15
|
dac7e991dcb11a397082bdceaf60a07b9bbc1a4a
|
[
"Unlicense"
] | null | null | null |
Les 1/1_1.py
|
tloader11/TICT-V1PROG-15
|
dac7e991dcb11a397082bdceaf60a07b9bbc1a4a
|
[
"Unlicense"
] | null | null | null |
5 5 integer
5.0 5.0 float
5 % 2 1 int
5 > 1 True boolean
'5' '5' String
5 * 2 10 int
'5' * 2 '55' String
'5' + '2' '52' String
5 / 2 2.5 float
5 // 2 2 int
[5, 2, 1] [5,2,1] list?
5 in [1, 4, 6] False boolean
| 29.428571
| 35
| 0.279126
| 54
| 412
| 2.12963
| 0.333333
| 0.13913
| 0.078261
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.27451
| 0.628641
| 412
| 13
| 36
| 31.692308
| 0.477124
| 0
| 0
| 0
| 0
| 0
| 0.021898
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
05d337eef8af353471796ace517f3b818298177f
| 2,342
|
py
|
Python
|
camera_calib/image.py
|
justinblaber/camera_calib_python
|
9427ff31d55af7619e7aee74136446a31d10def0
|
[
"Apache-2.0"
] | 3
|
2020-10-14T10:24:09.000Z
|
2021-09-19T20:48:40.000Z
|
camera_calib/image.py
|
justinblaber/camera_calib_python
|
9427ff31d55af7619e7aee74136446a31d10def0
|
[
"Apache-2.0"
] | 1
|
2021-09-28T02:06:42.000Z
|
2021-09-28T02:06:42.000Z
|
camera_calib/image.py
|
justinblaber/camera_calib_python
|
9427ff31d55af7619e7aee74136446a31d10def0
|
[
"Apache-2.0"
] | 2
|
2021-01-07T20:13:31.000Z
|
2021-01-08T18:16:53.000Z
|
# AUTOGENERATED! DO NOT EDIT! File to edit: image.ipynb (unless otherwise specified).
__all__ = ['Img', 'FileImg', 'File16bitImg', 'ArrayImg']
# Cell
import warnings
import numpy as np
import torch
from PIL import Image
from .utils import *
# Cell
class Img:
def exists(self): raise NotImplementedError('Please implement exists()')
@property
def name(self): raise NotImplementedError('Please implement name')
@property
def size(self): raise NotImplementedError('Please implement size')
def array(self, dtype, device): raise NotImplementedError('Please implement array')
def array_gs(self, dtype, device=None): # gs == "gray scale"
arr = self.array(dtype, device)
sz = arr.shape
if len(sz) == 3 and sz[2] == 3: arr = rgb2gray(arr)
elif len(sz) == 2: pass
else: raise RuntimeError(f'Invalid shape: {arr.shape}')
return arr
def __repr__(self): return f'{self.__class__.__name__}({self.name})'
# Cell
class FileImg(Img):
def __init__(self, file_img):
self.file_img = file_img
def exists(self): return self.file_img.exists()
@property
def name(self): return self.file_img.stem
@property
def size(self): return reverse(Image.open(self.file_img).size) # fast
# Cell
class File16bitImg(FileImg):
def __init__(self, file_img):
super().__init__(file_img)
def array(self, dtype, device=None):
arr = np2torch(np.array(Image.open(self.file_img))).to(dtype=dtype, device=device)
arr /= 2**16-1 # Scale between 0 and 1 for 16 bit image
return arr
# Cell
class ArrayImg(Img):
def __init__(self, arr, name=None):
if len(arr.shape) < 2: raise RuntimeError('Input array has less than 2 dimensions')
self.sz = arr.shape[:2]
self.n = name
if arr.min() < 0: warnings.warn('Value less than 0 found')
if arr.max() > 1: warnings.warn('Value greater than 1 found')
self.arr = arr
@property
def name(self): return self.n
@property
def size(self): return self.sz
def array(self, dtype, device=None): return self.arr.to(dtype=dtype, device=device)
def exists(self): return True
| 32.527778
| 91
| 0.61614
| 308
| 2,342
| 4.548701
| 0.282468
| 0.044968
| 0.054961
| 0.111349
| 0.351892
| 0.079943
| 0
| 0
| 0
| 0
| 0
| 0.014594
| 0.268574
| 2,342
| 72
| 92
| 32.527778
| 0.803269
| 0.073015
| 0
| 0.2
| 1
| 0
| 0.124884
| 0.017576
| 0
| 0
| 0
| 0
| 0
| 1
| 0.34
| false
| 0.02
| 0.1
| 0.16
| 0.56
| 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
|
05e2589d4291356b8e585fa87a27f0d7fe177954
| 209
|
py
|
Python
|
py_battlescribe/shared/rules.py
|
akabbeke/py_battlescribe
|
7f96d44295d46810268e666394e3e3238a6f2c61
|
[
"MIT"
] | 1
|
2021-11-17T22:00:21.000Z
|
2021-11-17T22:00:21.000Z
|
py_battlescribe/shared/rules.py
|
akabbeke/py_battlescribe
|
7f96d44295d46810268e666394e3e3238a6f2c61
|
[
"MIT"
] | null | null | null |
py_battlescribe/shared/rules.py
|
akabbeke/py_battlescribe
|
7f96d44295d46810268e666394e3e3238a6f2c61
|
[
"MIT"
] | null | null | null |
from ..bs_node.iterable import BSNodeIterable
from ..bs_reference.iter import BSReferenceIter
class SharedRules(BSNodeIterable):
_tag_name = 'sharedRules'
_iter_child_class = BSReferenceIter('Rule')
| 26.125
| 47
| 0.794258
| 23
| 209
| 6.913043
| 0.652174
| 0.075472
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.124402
| 209
| 8
| 48
| 26.125
| 0.868852
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 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
|
05f89c6e9f8cabc37acf4ef72901aa6289131ace
| 15,798
|
py
|
Python
|
parse_to_latex.py
|
bkolosk1/bkolosk1-CrossLingualKeywords
|
27cdc5075d1e30b02bb38891933a8fbb51957899
|
[
"MIT"
] | 2
|
2021-04-19T23:57:58.000Z
|
2021-11-02T08:40:16.000Z
|
parse_to_latex.py
|
bkolosk1/bkolosk1-CrossLingualKeywords
|
27cdc5075d1e30b02bb38891933a8fbb51957899
|
[
"MIT"
] | 1
|
2021-11-22T09:05:10.000Z
|
2021-11-22T09:05:10.000Z
|
bert/parse_to_latex.py
|
bkolosk1/Extending-Neural-Keyword-Extraction-with-TF-IDF-tagset-matching
|
d52b9b9e1fb9130239479b1830b0930161672325
|
[
"MIT"
] | null | null | null |
import re
def parse_to_latex():
configs = ['nolm', 'lm', 'maskedlm', 'lm+bp', 'lm+pos', 'lm+rnn', 'lm+bpe+rnn', 'lm+bpe+crf']
datasets = ['kp20k', 'inspec', 'krapivin', 'nus', 'semeval', 'kptimes', 'jptimes', 'duc']
config_dict = {}
with open('class_results-FINAL.txt', 'r', encoding='utf8') as file:
for line in file.readlines():
if line.startswith('Classification'):
config = line.split('_')[-3]
print(config)
if line.startswith('Dataset:'):
dataset = line.split()[-1]
print(dataset)
if line.startswith('Precision') and not line.startswith('Precision@M:') and not line.startswith(('Precision@k')):
measure = line.split()[-2][:-1]
score = line.split()[-1]
print(measure, score)
if config not in config_dict:
config_dict[config] = {}
config_dict[config][dataset] = [(measure, score)]
else:
if dataset in config_dict[config]:
config_dict[config][dataset].append((measure, score))
else:
config_dict[config][dataset] = [(measure, score)]
lines = []
average5 = []
average10 = []
for config in configs:
sum5 = 0
sum10 = 0
column = []
for dataset in datasets:
column.append(dataset)
for e in config_dict[config][dataset]:
column.append((e[0], e[1]))
if e[0].endswith('10'):
sum10 += float(e[1])
if e[0].endswith('5'):
sum5 += float(e[1])
sum10 = sum10/len(datasets)
sum5 = sum5/len(datasets)
average5.append(sum5)
average10.append(sum10)
lines.append(column)
print(lines)
print("& " + " & ".join(configs) + '\\\\\\hline')
for i in range(len(lines[0])):
if i % 3 == 0:
dataset = lines[0][i]
#print(dataset)
print('& \\multicolumn{8}{c}{\\textbf{' + dataset + '}}\\\\\\hline')
else:
#print(lines[0])
line = lines[0][i][0] + " & " + " & ".join([x[i][1] for x in lines]) + '\\\\'
print(line)
print('& \\multicolumn{7}{c}{\\textbf{Average}}\\\\\\hline')
print("F@5 & " + " & ".join(["{:.4f}".format(x) for x in average5]) + '\\\\')
print("F@10 & " + " & ".join(["{:.4f}".format(x) for x in average10]) + '\\\\')
#parse_to_latex()
def get_averages():
results ='''
& \multicolumn{9}{c}{\textbf{KP20k}} \\\hline
F1@5 & 0.072 & 0.181 & 0.141* & 0.177* & 0.046 & 0.005 & 0.317 & \textbf{0.348} & 0.252* & 0.339* & 0.342*\\
F1@10 & 0.094 & 0.151 & 0.146* & 0.160* & 0.044 & 0.005 & 0.273 & 0.298 & 0.256* & 0.342* & \textbf{0.346*}\\
\hline
& \multicolumn{9}{c}{\textbf{Inspec}} \\\hline
F1@5 & 0.160 & 0.286 & 0.204* & 0.101* & 0.022 & 0.035 & 0.244 & 0.276 & 0.293* & \textbf{0.467*} & 0.447*\\
F1@10 & 0.244 & 0.339 & 0.223* & 0.108* & 0.022 & 0.046 & 0.289 & 0.333 & 0.335* & \textbf{0.525*} & \textbf{0.525*}\\
\hline
& \multicolumn{9}{c}{\textbf{Krapivin}} \\\hline
F1@5 & 0.067 & 0.185 & 0.215* & 0.127* & 0.018 & 0.005 & 0.305 & \textbf{0.325} & 0.210* & 0.280* & 0.301*\\
F1@10 & 0.093 & 0.160 & 0.196* & 0.106* & 0.017 & 0.007 & 0.266 & 0.285 & 0.214* & 0.283* & \textbf{0.307*}\\
\hline
& \multicolumn{9}{c}{\textbf{NUS}} \\\hline
F1@5 & 0.112 & 0.230 & 0.159* & 0.224* & 0.073 & 0.004 & 0.376 & \textbf{0.374} & 0.274* & 0.311* & 0.350*\\
F1@10 & 0.140 & 0.216 & 0.196* & 0.193* & 0.071 & 0.006 & 0.352 & 0.366 & 0.305* & 0.332* & \textbf{0.369*}\\
\hline
& \multicolumn{9}{c}{\textbf{SemEval}} \\\hline
F1@5 & 0.088 & 0.217 & 0.151* & 0.167* & 0.068 & 0.011 & 0.318 & \textbf{0.327} & 0.261* & 0.214 & 0.291*\\
F1@10 & 0.147 & 0.226 & 0.212* & 0.159* & 0.065 & 0.014 & 0.318 & 0.352 & 0.295* & 0.232 & \textbf{0.355*}\\
\hline\hline
& \multicolumn{9}{c}{\textbf{KPTimes}} \\\hline
F1@5 & 0.179* & 0.022* & 0.105* & 0.168* & * & * & 0.406* & 0.424* & 0.353* & 0.439* & \textbf{0.469*}\\
F1@10 & 0.151* & 0.030* & 0.118* & 0.139* & * & * & 0.393 & 0.424* & 0.354* & 0.440* & \textbf{0.469*}\\\hline
& \multicolumn{9}{c}{\textbf{JPTimes}} \\\hline
F1@5 & 0.266* & 0.012* & 0.109* & 0.225* & * & * & 0.256* & 0.238* & 0.258* & \textbf{0.344*} & 0.337*\\
F1@10 & 0.229* & 0.026* & 0.135* & 0.185* & * & * & 0.246 & 0.238* & 0.267* & 0.346* & \textbf{0.360*}\\\hline
& \multicolumn{9}{c}{\textbf{DUC}} \\\hline
F1@5 & 0.098* & 0.120* & 0.106* & 0.189* & * & * & 0.083 & 0.063* & 0.247* & 0.281* & \textbf{0.312*}\\
F1@10 & 0.120* & 0.181* & 0.132* & 0.172* & * & * & 0.105 & 0.063* & 0.277* & 0.321* & \textbf{0.355*}\\\hline
'''
f5s = [[], [], [], [], [], [], [], [], [], [], []]
f10s = [[], [], [], [], [], [], [], [], [], [], []]
for line in results.split('\n'):
line = line.strip()
print(line)
if line.startswith('F1@5'):
line = line.split('&')
line = line[1:]
for idx, score in enumerate(line):
score = score.strip()
score = re.findall(r'\d+', score)
if len(score) > 0:
f5s[idx].append((float(".".join(score))))
else:
f5s[idx].append(0)
elif line.startswith('F1@10'):
line = line.split('&')
line = line[1:]
for idx, score in enumerate(line):
score = score.strip()
#print(score)
score = re.findall(r'\d+', score)
#print(score)
if len(score) > 0:
f10s[idx].append((float(".".join(score))))
else:
f10s[idx].append(0)
print(f5s)
print(f10s)
f5s = " & ".join(['F1@5'] + ["{:.4f}".format(sum(x)/len(x)) for x in f5s])
f10s = " & ".join(['F1@10'] + ["{:.4f}".format(sum(x)/len(x)) for x in f10s])
print(f5s)
print(f10s)
#get_averages()
def revert():
results = '''& TfIdf & TextRank & YAKE & RaKUn & Key2Vec & EmbedRank & KEA & Maui & SemiSupervised & CopyRNN & CatSeqD & CorrRNN & GPT-2 & \begin{tabular}[x]{@{}c@{}}GPT-2 + \\ BiLSTM-CRF\end{tabular} & TNT-KID \\\hline
& \multicolumn{9}{c}{\textbf{KP20k}} \\\hline
F1@5 & 0.072 & 0.181 & 0.141* & 0.177* & 0.080* & 0.135* & 0.046 & 0.005 & 0.308 & 0.317 & \textbf{0.348} & / & 0.252* & 0.343* & 0.338*\\
F1@10 & 0.094 & 0.151 & 0.146* & 0.160* & 0.090* & 0.134* & 0.044 & 0.005 & 0.245 & 0.273 & 0.298 & / & 0.256* & \textbf{0.347*} & 0.342*\\
\hline
& \multicolumn{9}{c}{\textbf{Inspec}} \\\hline
F1@5 & 0.160 & 0.286 & 0.204* & 0.101* & 0.121* & 0.345* & 0.022 & 0.035 & 0.326 & 0.244 & 0.276 & / & 0.293* & \textbf{0.468*} & 0.456*\\
F1@10 & 0.244 & 0.339 & 0.223* & 0.108* & 0.181* & 0.394* & 0.022 & 0.046 & 0.334 & 0.289 & 0.333 & / & 0.335* & \textbf{0.535*} & 0.534*\\
\hline
& \multicolumn{9}{c}{\textbf{Krapivin}} \\\hline
F1@5 & 0.067 & 0.185 & 0.215* & 0.127* & 0.068* & 0.149* & 0.018 & 0.005 & 0.296 & 0.305 & \textbf{0.325} & 0.318 & 0.210* & 0.302* & 0.313*\\
F1@10 & 0.093 & 0.160 & 0.196* & 0.106* & 0.082* & 0.158* & 0.017 & 0.007 & 0.240 & 0.266 & 0.285 & 0.278 & 0.214* & 0.302* & \textbf{0.318*}\\
\hline
& \multicolumn{9}{c}{\textbf{NUS}} \\\hline
F1@5 & 0.112 & 0.230 & 0.159* & 0.224* & 0.109* & 0.173* & 0.073 & 0.004 & 0.356 & 0.376 & \textbf{0.374} & 0.361 & 0.274* & 0.315* & 0.345*\\
F1@10 & 0.140 & 0.216 & 0.196* & 0.193* & 0.121* & 0.190* & 0.071 & 0.006 & 0.320 & 0.352 & 0.366 & 0.335 & 0.305* & 0.333* & \textbf{0.357*}\\
\hline
& \multicolumn{9}{c}{\textbf{SemEval}} \\\hline
F1@5 & 0.088 & 0.217 & 0.151* & 0.167* & 0.081* & 0.189* & 0.068 & 0.011 & 0.322 & 0.318 & \textbf{0.327} & 0.320 & 0.261* & 0.262 & 0.294*\\
F1@10 & 0.147 & 0.226 & 0.212* & 0.159* & 0.126* & 0.217* & 0.065 & 0.014 & 0.294 & 0.318 & \textbf{0.352} & 0.320 & 0.295* & 0.273 & 0.334*\\
\hline\hline
& \multicolumn{9}{c}{\textbf{KPTimes}} \\\hline
F1@5 & 0.179* & 0.022* & 0.105* & 0.168* & 0.126* & 0.063* & * & * & / & 0.406* & 0.424* & / & 0.353* & \textbf{0.497*} & \textbf0.488*\\
F1@10 & 0.151* & 0.030* & 0.118* & 0.139* & 0.116* & 0.057* & * & * & / & 0.393 & 0.424* & / & 0.354* & \textbf{0.497*} & 0.486*\\\hline
& \multicolumn{9}{c}{\textbf{JPTimes}} \\\hline
F1@5 & 0.266* & 0.012* & 0.109* & 0.225* & 0.158* & 0.081* & * & * & / & 0.256* & 0.238* & / & 0.258* & 0.375* & \textbf{0.385*}\\
F1@10 & 0.229* & 0.026* & 0.135* & 0.185* & 0.145* & 0.074* & * & * & / & 0.246 & 0.238* & / & 0.267* & 0.380* & \textbf{0.385*}\\\hline
& \multicolumn{9}{c}{\textbf{DUC}} \\\hline
F1@5 & 0.098* & 0.120* & 0.106* & 0.189* & 0.062* & 0.219* & * & * & / & 0.083 & 0.063* & / & 0.247* & \textbf{0.334*} & 0.310*\\
F1@10 & 0.120* & 0.181* & 0.132* & 0.172* & 0.078* & 0.246* & * & * & / & 0.105 & 0.063* & / & 0.277* & 0.369* & \textbf{0.372*}\\\hline
'''
re.sub("[^0-9]", "", "sdkjh987978asd098as0980a98sd")
alg2idx = {}
datasets = {}
order = []
for line in results.split('\n'):
line = line.strip()
if line.startswith('& TfIdf'):
algs = line.replace('\\hline' ,'').replace('\\', '').split('&')[1:]
for idx, alg in enumerate(algs):
alg2idx[alg] = idx
elif line.startswith('& \multicolumn'):
dataset = line.replace('\\', '').replace('& multicolumn{9}{c}{', '').replace('}} hline', '').replace('extbf{', '').strip()
order.append(dataset)
if dataset not in datasets:
datasets[dataset] = [[],[]]
elif line.startswith('F1@5'):
line = line.replace('\\hline' ,'').replace('\\', '')
line = line.split('&')[1:]
#print(line)
for score in line:
datasets[dataset][0].append(score)
elif line.startswith('F1@10'):
line = line.replace('\\hline', '').replace('\\', '')
line = line.split('&')[1:]
#print(line)
for score in line:
datasets[dataset][1].append(score)
print(" & " + " & ".join(order) + ' \\\\\\hline')
for alg in algs:
line_f5 = ['F1@5']
line_f10 = ['F1@10']
for dataset in order:
f5_score = datasets[dataset][0][alg2idx[alg]]
line_f5.append(f5_score.replace('\t', '\\t'))
f10_score = datasets[dataset][1][alg2idx[alg]]
line_f10.append(f10_score.replace('\t', '\\t'))
print('& \\multicolumn{8}{c}{\\textbf{' + alg + '}} \\\\')
print(" & ".join(line_f5) + ' \\\\')
print(" & ".join(line_f10) + ' \\\\\\hline')
#revert()
def get_averages_reverted():
results ='''
& KP20k & Inspec & Krapivin & NUS & SemEval & KPTimes & JPTimes & DUC \\\hline
& \multicolumn{8}{c}{\textbf{ TfIdf }} \\
F1@5 & 0.072 & 0.160 & 0.067 & 0.112 & 0.088 & 0.179* & 0.266* & 0.098* \\
F1@10 & 0.094 & 0.244 & 0.093 & 0.140 & 0.147 & 0.151* & 0.229* & 0.120* \\\hline
& \multicolumn{8}{c}{\textbf{ TextRank }} \\
F1@5 & 0.181 & 0.286 & 0.185 & 0.230 & 0.217 & 0.022* & 0.012* & 0.120* \\
F1@10 & 0.151 & 0.339 & 0.160 & 0.216 & 0.226 & 0.030* & 0.026* & 0.181* \\\hline
& \multicolumn{8}{c}{\textbf{ YAKE }} \\
F1@5 & 0.141* & 0.204* & 0.215* & 0.159* & 0.151* & 0.105* & 0.109* & 0.106* \\
F1@10 & 0.146* & 0.223* & 0.196* & 0.196* & 0.212* & 0.118* & 0.135* & 0.132* \\\hline
& \multicolumn{8}{c}{\textbf{ RaKUn }} \\
F1@5 & 0.177* & 0.101* & 0.127* & 0.224* & 0.167* & 0.168* & 0.225* & 0.189* \\
F1@10 & 0.160* & 0.108* & 0.106* & 0.193* & 0.159* & 0.139* & 0.185* & 0.172* \\\hline
& \multicolumn{8}{c}{\textbf{ Key2Vec }} \\
F1@5 & 0.080* & 0.121* & 0.068* & 0.109* & 0.081* & 0.126* & 0.158* & 0.062* \\
F1@10 & 0.090* & 0.181* & 0.082* & 0.121* & 0.126* & 0.116* & 0.145* & 0.078* \\\hline
& \multicolumn{8}{c}{\textbf{ EmbedRank }} \\
F1@5 & 0.135* & 0.345* & 0.149* & 0.173* & 0.189* & 0.063* & 0.081* & 0.219* \\
F1@10 & 0.134* & 0.394* & 0.158* & 0.190* & 0.217* & 0.057* & 0.074* & 0.246* \\\hline
& \multicolumn{8}{c}{\textbf{ KEA }} \\
F1@5 & 0.046 & 0.022 & 0.018 & 0.073 & 0.068 & * & * & * \\
F1@10 & 0.044 & 0.022 & 0.017 & 0.071 & 0.065 & * & * & * \\\hline
& \multicolumn{8}{c}{\textbf{ Maui }} \\
F1@5 & 0.005 & 0.035 & 0.005 & 0.004 & 0.011 & * & * & * \\
F1@10 & 0.005 & 0.046 & 0.007 & 0.006 & 0.014 & * & * & * \\\hline
& \multicolumn{8}{c}{\textbf{ SemiSupervised }} \\
F1@5 & 0.308 & 0.326 & 0.296 & 0.356 & 0.322 & / & / & / \\
F1@10 & 0.245 & 0.334 & 0.240 & 0.320 & 0.294 & / & / & / \\\hline
& \multicolumn{8}{c}{\textbf{ CopyRNN }} \\
F1@5 & 0.317 & 0.244 & 0.305 & 0.376 & 0.318 & 0.406* & 0.256* & 0.083 \\
F1@10 & 0.273 & 0.289 & 0.266 & 0.352 & 0.318 & 0.393 & 0.246 & 0.105 \\\hline
& \multicolumn{8}{c}{\textbf{ CatSeqD }} \\
F1@5 & \textbf{0.348} & 0.276 & \textbf{0.325} & \textbf{0.374} & \textbf{0.327} & 0.424* & 0.238* & 0.063* \\
F1@10 & 0.298 & 0.333 & 0.285 & 0.366 & \textbf{0.352} & 0.424* & 0.238* & 0.063* \\\hline
& \multicolumn{8}{c}{\textbf{ CorrRNN }} \\
F1@5 & / & / & 0.318 & 0.361 & 0.320 & / & / & / \\
F1@10 & / & / & 0.278 & 0.335 & 0.320 & / & / & / \\\hline
& \multicolumn{8}{c}{\textbf{ GPT-2 }} \\
F1@5 & 0.252* & 0.293* & 0.210* & 0.274* & 0.261* & 0.353* & 0.258* & 0.247* \\
F1@10 & 0.256* & 0.335* & 0.214* & 0.305* & 0.295* & 0.354* & 0.267* & 0.277* \\\hline
& \multicolumn{8}{c}{\textbf{\begin{tabular}[x]{@{}c@{}}GPT-2 + BiLSTM-CRF\end{tabular} }} \\
F1@5 & 0.343* & \textbf{0.468*} & 0.302* & 0.315* & 0.262 & \textbf{0.497*} & 0.375* & \textbf{0.334*} \\
F1@10 & \textbf{0.347*} & \textbf{0.535*} & 0.302* & 0.333* & 0.273 & \textbf{0.497*} & 0.380* & 0.369* \\\hline
& \multicolumn{8}{c}{\textbf{ TNT-KID }} \\
F1@5 & 0.338* & 0.456* & 0.313* & 0.345* & 0.294* & \textbf0.488* & \textbf{0.385*} & 0.310* \\
F1@10 & 0.342* & 0.534* & \textbf{0.318*} & \textbf{0.357*} & 0.334* & 0.486* & \textbf{0.385*} & \textbf{0.372*} \\\hline
'''
for line in results.split('\n'):
line = line.strip()
if line.startswith('F1') :
scores = line.split('&')
scores = scores[1:]
clean = []
for idx, score in enumerate(scores):
score = score.strip()
score = re.findall(r'\d+', score)
if len(score) > 0:
clean.append((float(".".join(score))))
else:
clean.append(0)
avg = sum(clean)/len(clean)
line = line.replace('\\', '').replace('hline', '')
line = line + " & " + "{:.3f}".format(avg)
if line.startswith('F1@5'):
line += ' \\\\'
else:
line += ' \\\\\\hline'
print(line.replace('\t', '\\t'))
else:
print(line.replace('\t', '\\t'))
get_averages_reverted()
| 50.152381
| 223
| 0.44993
| 2,295
| 15,798
| 3.084096
| 0.139869
| 0.04846
| 0.016954
| 0.045634
| 0.493077
| 0.379344
| 0.317321
| 0.287652
| 0.258548
| 0.247386
| 0
| 0.246924
| 0.305545
| 15,798
| 314
| 224
| 50.312102
| 0.398232
| 0.007153
| 0
| 0.305344
| 0
| 0.244275
| 0.627123
| 0.085813
| 0
| 0
| 0
| 0
| 0
| 1
| 0.015267
| false
| 0
| 0.003817
| 0
| 0.019084
| 0.080153
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
af5d86c2560d06e00d095d4daa7efcc3669f67c7
| 377
|
py
|
Python
|
test_Task1D.py
|
dan7267/1a-flood-risk-project-93
|
d95cee987f5673d637626e1804f719371a25daa8
|
[
"MIT"
] | null | null | null |
test_Task1D.py
|
dan7267/1a-flood-risk-project-93
|
d95cee987f5673d637626e1804f719371a25daa8
|
[
"MIT"
] | null | null | null |
test_Task1D.py
|
dan7267/1a-flood-risk-project-93
|
d95cee987f5673d637626e1804f719371a25daa8
|
[
"MIT"
] | null | null | null |
from floodsystem.geo import rivers_with_station
from floodsystem.geo import stations_by_river
from floodsystem.station import MonitoringStation
def test_rivers_with_station():
lst2 = rivers_with_station(MonitoringStation)
assert len(lst2) == len(set(lst2))
def test_stations_by_river():
dct1 = stations_by_river(MonitoringStation)
assert type(dct1) == dict
| 26.928571
| 49
| 0.795756
| 49
| 377
| 5.836735
| 0.408163
| 0.157343
| 0.178322
| 0.167832
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015291
| 0.132626
| 377
| 13
| 50
| 29
| 0.859327
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.222222
| 1
| 0.222222
| false
| 0
| 0.333333
| 0
| 0.555556
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
af69c8ebfb3a3b4a0f27bd8ba4d232051770a3d4
| 38,140
|
py
|
Python
|
spongebob_images/spongebob_rgb_values.py
|
JuicySeals/mc-spongebob-plugin
|
0df8d8e53705540314ebe6ef6ca411654bbeb56c
|
[
"MIT"
] | null | null | null |
spongebob_images/spongebob_rgb_values.py
|
JuicySeals/mc-spongebob-plugin
|
0df8d8e53705540314ebe6ef6ca411654bbeb56c
|
[
"MIT"
] | null | null | null |
spongebob_images/spongebob_rgb_values.py
|
JuicySeals/mc-spongebob-plugin
|
0df8d8e53705540314ebe6ef6ca411654bbeb56c
|
[
"MIT"
] | null | null | null |
from PIL import Image
from math import sqrt
import os
import time
import json
os.system('cls')
COLORS = {
"blocks_rgb":[
[
224,
220,
200
],
[
107,
88,
57
],
[
146,
99,
86
],
[
158,
164,
176
],
[
18,
18,
18
],
[
115,
115,
115
],
[
119,
85,
59
],
[
122,
122,
122
],
[
103,
121,
103
],
[
8,
10,
15
],
[
44,
46,
143
],
[
96,
59,
31
],
[
21,
119,
136
],
[
54,
57,
61
],
[
73,
91,
36
],
[
35,
137,
198
],
[
94,
168,
24
],
[
169,
48,
159
],
[
224,
97,
0
],
[
213,
101,
142
],
[
100,
31,
156
],
[
142,
32,
32
],
[
207,
213,
214
],
[
240,
175,
21
],
[
97,
219,
213
],
[
129,
140,
143
],
[
134,
96,
67
],
[
81,
217,
117
],
[
109,
128,
116
],
[
225,
230,
170
],
[
221,
223,
165
],
[
67,
30,
32
],
[
47,
64,
139
],
[
119,
106,
85
],
[
52,
118,
125
],
[
83,
90,
93
],
[
117,
142,
67
],
[
94,
164,
208
],
[
162,
197,
55
],
[
208,
100,
191
],
[
154,
147,
91
],
[
235,
154,
181
],
[
109,
48,
152
],
[
181,
59,
53
],
[
188,
212,
202
],
[
234,
192,
88
],
[
143,
118,
69
],
[
249,
236,
78
],
[
143,
139,
124
],
[
125,
173,
255
],
[
165,
194,
245
],
[
219,
219,
219
],
[
135,
130,
126
],
[
38,
67,
137
],
[
102,
112,
134
],
[
105,
99,
89
],
[
52,
40,
23
],
[
206,
206,
201
],
[
87,
67,
26
],
[
102,
81,
49
],
[
45,
28,
12
],
[
141,
145,
36
],
[
113,
88,
73
],
[
111,
54,
52
],
[
100,
67,
50
],
[
20,
18,
29
],
[
169,
91,
51
],
[
61,
39,
18
],
[
195,
179,
123
],
[
154,
110,
77
],
[
156,
127,
78
],
[
103,
77,
46
],
[
236,
233,
226
],
[
125,
84,
79
],
[
171,
27,
9
],
[
70,
43,
26
],
[
132,
107,
107
],
[
215,
208,
154
],
[
216,
209,
157
],
[
219,
211,
161
],
[
84,
64,
51
],
[
125,
125,
125
],
[
122,
122,
122
],
[
114,
119,
106
],
[
130,
131,
131
],
[
133,
133,
134
],
[
179,
179,
182
],
[
183,
183,
185
],
[
153,
113,
98
],
[
159,
114,
98
],
[
20,
21,
25
],
[
53,
57,
157
],
[
114,
71,
40
],
[
21,
137,
145
],
[
62,
68,
71
],
[
84,
109,
27
],
[
58,
175,
217
],
[
112,
185,
25
],
[
189,
68,
179
],
[
240,
118,
19
],
[
237,
141,
172
],
[
121,
42,
172
],
[
160,
39,
34
],
[
233,
236,
236
],
[
248,
197,
39
]
],
"224 220 200":[
"bone_block"
],
"107 88 57":[
"bookshelf"
],
"146 99 86":[
"bricks"
],
"158 164 176":[
"clay"
],
"18 18 18":[
"coal_block"
],
"115 115 115":[
"coal_ore"
],
"119 85 59":[
"coarse_dirt"
],
"122 122 122":[
"cobblestone"
],
"103 121 103":[
"mossy_cobblestone"
],
"8 10 15":[
"black_concrete"
],
"44 46 143":[
"blue_concrete"
],
"96 59 31":[
"brown_concrete"
],
"21 119 136":[
"cyan_concrete"
],
"54 57 61":[
"gray_concrete"
],
"73 91 36":[
"green_concrete"
],
"35 137 198":[
"light_blue_concrete"
],
"94 168 24":[
"lime_concrete"
],
"169 48 159":[
"magenta_concrete"
],
"224 97 0":[
"orange_concrete"
],
"213 101 142":[
"pink_concrete"
],
"100 31 156":[
"purple_concrete"
],
"142 32 32":[
"red_concrete"
],
"207 213 214":[
"white_concrete"
],
"240 175 21":[
"yellow_concrete"
],
"97 219 213":[
"diamond_block"
],
"129 140 143":[
"diamond_ore"
],
"134 96 67":[
"dirt"
],
"81 217 117":[
"emerald_block"
],
"109 128 116":[
"emerald_ore"
],
"225 230 170":[
"end_stone_bricks"
],
"221 223 165":[
"end_stone"
],
"67 30 32":[
"black_glazed_terracotta"
],
"47 64 139":[
"blue_glazed_terracotta"
],
"119 106 85":[
"brown_glazed_terracotta"
],
"52 118 125":[
"cyan_glazed_terracotta"
],
"83 90 93":[
"gray_glazed_terracotta"
],
"117 142 67":[
"green_glazed_terracotta"
],
"94 164 208":[
"light_blue_glazed_terracotta"
],
"162 197 55":[
"lime_glazed_terracotta"
],
"208 100 191":[
"magenta_glazed_terracotta"
],
"154 147 91":[
"orange_glazed_terracotta"
],
"235 154 181":[
"pink_glazed_terracotta"
],
"109 48 152":[
"purple_glazed_terracotta"
],
"181 59 53":[
"red_glazed_terracotta"
],
"188 212 202":[
"white_glazed_terracotta"
],
"234 192 88":[
"yellow_glazed_terracotta"
],
"143 118 69":[
"glowstone"
],
"249 236 78":[
"gold_block"
],
"143 139 124":[
"gold_ore"
],
"125 173 255":[
"ice"
],
"165 194 245":[
"packed_ice"
],
"219 219 219":[
"iron_block"
],
"135 130 126":[
"iron_ore"
],
"38 67 137":[
"lapis_block"
],
"102 112 134":[
"lapis_ore"
],
"105 99 89":[
"acacia_wood"
],
"52 40 23":[
"dark_oak_wood"
],
"206 206 201":[
"birch_wood"
],
"87 67 26":[
"jungle_wood"
],
"102 81 49":[
"oak_wood"
],
"45 28 12":[
"spruce_wood"
],
"141 145 36":[
"melon"
],
"113 88 73":[
"mycelium"
],
"111 54 52":[
"netherrack"
],
"100 67 50":[
"note_block"
],
"20 18 29":[
"obsidian"
],
"169 91 51":[
"acacia_planks"
],
"61 39 18":[
"dark_oak_planks"
],
"195 179 123":[
"birch_planks"
],
"154 110 77":[
"jungle_planks"
],
"156 127 78":[
"oak_planks"
],
"103 77 46":[
"spruce_planks"
],
"236 233 226":[
"quartz_block"
],
"125 84 79":[
"nether_quartz_ore"
],
"171 27 9":[
"redstone_block"
],
"70 43 26":[
"redstone_lamp"
],
"132 107 107":[
"redstone_ore"
],
"215 208 154":[
"sandstone"
],
"216 209 157":[
"sandstone"
],
"219 211 161":[
"sandstone"
],
"84 64 51":[
"soul_sand"
],
"125 125 125":[
"stone"
],
"114 119 106":[
"mossy_stone_bricks"
],
"130 131 131":[
"andesite"
],
"133 133 134":[
"polished_andesite"
],
"179 179 182":[
"diorite"
],
"183 183 185":[
"polished_diorite"
],
"153 113 98":[
"granite"
],
"159 114 98":[
"polished_granite"
],
"20 21 25":[
"black_wool"
],
"53 57 157":[
"blue_wool"
],
"114 71 40":[
"brown_wool"
],
"21 137 145":[
"cyan_wool"
],
"62 68 71":[
"gray_wool"
],
"84 109 27":[
"green_wool"
],
"58 175 217":[
"light_blue_wool"
],
"112 185 25":[
"lime_wool"
],
"189 68 179":[
"magenta_wool"
],
"240 118 19":[
"orange_wool"
],
"237 141 172":[
"pink_wool"
],
"121 42 172":[
"purple_wool"
],
"160 39 34":[
"red_wool"
],
"233 236 236":[
"white_wool"
],
"248 197 39":[
"yellow_wool"
]
}
# INSERT VARIABLES HERE
EPISODE_STRING = "ten"
SEASON_NUM = "01"
EPISODE_NUM = "10"
BEGINNING_FRAME = 104
EPISODE_FRAMES = 1414
#
# do this tmr
frame_rgb_data1 = {}
frame_rgb_data2 = {}
frame_rgb_data3 = {}
frame_rgb_data4 = {}
frame_rgb_data5 = {}
frame_rgb_data6 = {}
frame_rgb_data7 = {}
frame_rgb_data8 = {}
frame_rgb_data9 = {}
frame_rgb_data10 = {}
frame_rgb_data11 = {}
# spongebob frames
# 15-103 frames is the title sequence :D
for spongebob_frame in range(BEGINNING_FRAME, EPISODE_FRAMES+1):
os.system('cls')
print(f"On frame: {spongebob_frame}")
frame_string_string = ""
if spongebob_frame < 10:
frame_string_string = f"000{spongebob_frame}"
elif spongebob_frame < 100:
frame_string_string = f"00{spongebob_frame}"
elif spongebob_frame < 1000:
frame_string_string = f"0{spongebob_frame}"
else:
frame_string_string = f"{spongebob_frame}"
while not os.path.exists(f"./ep_{EPISODE_STRING}/images/{frame_string_string}.png"):
for i in reversed(range(1, 16)):
os.system('cls')
print(f"On frame: {frame_string_string}")
print(f"Waiting {i} seconds for the image to get downloaded...")
time.sleep(1)
os.system('cls')
print(f"On frame: {frame_string_string}")
testimage = Image.open(f"./ep_{EPISODE_STRING}/images/{frame_string_string}.png")
height = testimage.height
width = testimage.width
testimage_rgb = testimage.convert("RGB")
if height+4>=255:
print("Image is too big!")
exit()
def closest_color(rgb):
r, g, b = rgb
color_diffs = []
for color in COLORS["blocks_rgb"]:
cr, cg, cb = color
color_diff = sqrt(abs(r - cr)**2 + abs(g - cg)**2 + abs(b - cb)**2)
color_diffs.append((color_diff, color))
return min(color_diffs)[1]
made_changes = False
for y in range(0, height):
for x in range(0, width):
if spongebob_frame < 135:
if not frame_string_string in frame_rgb_data1:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data1[frame_string_string] = []
frame_rgb_data1[frame_string_string].append([])
frame_rgb_data1[frame_string_string][0].append(get_block)
made_changes = True
elif len(frame_rgb_data1[frame_string_string]) == y:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data1[frame_string_string].append([])
frame_rgb_data1[frame_string_string][y].append(get_block)
made_changes = True
elif len(frame_rgb_data1[frame_string_string][y]) + 1 > x:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data1[frame_string_string][y].append(get_block)
made_changes = True
elif spongebob_frame < 270:
if not frame_string_string in frame_rgb_data2:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data2[frame_string_string] = []
frame_rgb_data2[frame_string_string].append([])
frame_rgb_data2[frame_string_string][0].append(get_block)
made_changes = True
elif len(frame_rgb_data2[frame_string_string]) == y:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data2[frame_string_string].append([])
frame_rgb_data2[frame_string_string][y].append(get_block)
made_changes = True
elif len(frame_rgb_data2[frame_string_string][y]) + 1 > x:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data2[frame_string_string][y].append(get_block)
made_changes = True
elif spongebob_frame < 405:
if not frame_string_string in frame_rgb_data3:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data3[frame_string_string] = []
frame_rgb_data3[frame_string_string].append([])
frame_rgb_data3[frame_string_string][0].append(get_block)
made_changes = True
elif len(frame_rgb_data3[frame_string_string]) == y:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data3[frame_string_string].append([])
frame_rgb_data3[frame_string_string][y].append(get_block)
made_changes = True
elif len(frame_rgb_data3[frame_string_string][y]) + 1 > x:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data3[frame_string_string][y].append(get_block)
made_changes = True
elif spongebob_frame < 540:
if not frame_string_string in frame_rgb_data4:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data4[frame_string_string] = []
frame_rgb_data4[frame_string_string].append([])
frame_rgb_data4[frame_string_string][0].append(get_block)
made_changes = True
elif len(frame_rgb_data4[frame_string_string]) == y:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data4[frame_string_string].append([])
frame_rgb_data4[frame_string_string][y].append(get_block)
made_changes = True
elif len(frame_rgb_data4[frame_string_string][y]) + 1 > x:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data4[frame_string_string][y].append(get_block)
made_changes = True
elif spongebob_frame < 675:
if not frame_string_string in frame_rgb_data5:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data5[frame_string_string] = []
frame_rgb_data5[frame_string_string].append([])
frame_rgb_data5[frame_string_string][0].append(get_block)
made_changes = True
elif len(frame_rgb_data5[frame_string_string]) == y:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data5[frame_string_string].append([])
frame_rgb_data5[frame_string_string][y].append(get_block)
made_changes = True
elif len(frame_rgb_data5[frame_string_string][y]) + 1 > x:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data5[frame_string_string][y].append(get_block)
made_changes = True
elif spongebob_frame < 810:
if not frame_string_string in frame_rgb_data6:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data6[frame_string_string] = []
frame_rgb_data6[frame_string_string].append([])
frame_rgb_data6[frame_string_string][0].append(get_block)
made_changes = True
elif len(frame_rgb_data6[frame_string_string]) == y:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data6[frame_string_string].append([])
frame_rgb_data6[frame_string_string][y].append(get_block)
made_changes = True
elif len(frame_rgb_data6[frame_string_string][y]) + 1 > x:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data6[frame_string_string][y].append(get_block)
made_changes = True
elif spongebob_frame < 945:
if not frame_string_string in frame_rgb_data7:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data7[frame_string_string] = []
frame_rgb_data7[frame_string_string].append([])
frame_rgb_data7[frame_string_string][0].append(get_block)
made_changes = True
elif len(frame_rgb_data7[frame_string_string]) == y:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data7[frame_string_string].append([])
frame_rgb_data7[frame_string_string][y].append(get_block)
made_changes = True
elif len(frame_rgb_data7[frame_string_string][y]) + 1 > x:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data7[frame_string_string][y].append(get_block)
made_changes = True
elif spongebob_frame < 1080:
if not frame_string_string in frame_rgb_data8:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data8[frame_string_string] = []
frame_rgb_data8[frame_string_string].append([])
frame_rgb_data8[frame_string_string][0].append(get_block)
made_changes = True
elif len(frame_rgb_data8[frame_string_string]) == y:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data8[frame_string_string].append([])
frame_rgb_data8[frame_string_string][y].append(get_block)
made_changes = True
elif len(frame_rgb_data8[frame_string_string][y]) + 1 > x:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data8[frame_string_string][y].append(get_block)
made_changes = True
elif spongebob_frame < 1215:
if not frame_string_string in frame_rgb_data9:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data9[frame_string_string] = []
frame_rgb_data9[frame_string_string].append([])
frame_rgb_data9[frame_string_string][0].append(get_block)
made_changes = True
elif len(frame_rgb_data9[frame_string_string]) == y:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data9[frame_string_string].append([])
frame_rgb_data9[frame_string_string][y].append(get_block)
made_changes = True
elif len(frame_rgb_data9[frame_string_string][y]) + 1 > x:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data9[frame_string_string][y].append(get_block)
made_changes = True
elif spongebob_frame < 1350:
if not frame_string_string in frame_rgb_data10:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data10[frame_string_string] = []
frame_rgb_data10[frame_string_string].append([])
frame_rgb_data10[frame_string_string][0].append(get_block)
made_changes = True
elif len(frame_rgb_data10[frame_string_string]) == y:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data10[frame_string_string].append([])
frame_rgb_data10[frame_string_string][y].append(get_block)
made_changes = True
elif len(frame_rgb_data10[frame_string_string][y]) + 1 > x:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data10[frame_string_string][y].append(get_block)
made_changes = True
else:
if not frame_string_string in frame_rgb_data11:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data11[frame_string_string] = []
frame_rgb_data11[frame_string_string].append([])
frame_rgb_data11[frame_string_string][0].append(get_block)
made_changes = True
elif len(frame_rgb_data11[frame_string_string]) == y:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data11[frame_string_string].append([])
frame_rgb_data11[frame_string_string][y].append(get_block)
made_changes = True
elif len(frame_rgb_data11[frame_string_string][y]) + 1 > x:
rgbpixel = testimage_rgb.getpixel((x,y))
red = rgbpixel[0]
green = rgbpixel[1]
blue = rgbpixel[2]
closestcolor = closest_color((red, green, blue))
get_block_key = f"{closestcolor[0]} {closestcolor[1]} {closestcolor[2]}"
get_block = COLORS[get_block_key][0]
frame_rgb_data11[frame_string_string][y].append(get_block)
made_changes = True
if made_changes:
if spongebob_frame < 135:
with open(f"./ep_{EPISODE_STRING}/rgb_values_1.json", "w") as outfile:
json.dump(frame_rgb_data1, outfile)
elif spongebob_frame < 270:
with open(f"./ep_{EPISODE_STRING}/rgb_values_2.json", "w") as outfile:
json.dump(frame_rgb_data2, outfile)
elif spongebob_frame < 405:
with open(f"./ep_{EPISODE_STRING}/rgb_values_3.json", "w") as outfile:
json.dump(frame_rgb_data3, outfile)
elif spongebob_frame < 540:
with open(f"./ep_{EPISODE_STRING}/rgb_values_4.json", "w") as outfile:
json.dump(frame_rgb_data4, outfile)
elif spongebob_frame < 675:
with open(f"./ep_{EPISODE_STRING}/rgb_values_5.json", "w") as outfile:
json.dump(frame_rgb_data5, outfile)
elif spongebob_frame < 810:
with open(f"./ep_{EPISODE_STRING}/rgb_values_6.json", "w") as outfile:
json.dump(frame_rgb_data6, outfile)
elif spongebob_frame < 945:
with open(f"./ep_{EPISODE_STRING}/rgb_values_7.json", "w") as outfile:
json.dump(frame_rgb_data7, outfile)
elif spongebob_frame < 1080:
with open(f"./ep_{EPISODE_STRING}/rgb_values_8.json", "w") as outfile:
json.dump(frame_rgb_data8, outfile)
elif spongebob_frame < 1215:
with open(f"./ep_{EPISODE_STRING}/rgb_values_9.json", "w") as outfile:
json.dump(frame_rgb_data9, outfile)
elif spongebob_frame < 1350:
with open(f"./ep_{EPISODE_STRING}/rgb_values_10.json", "w") as outfile:
json.dump(frame_rgb_data10, outfile)
else:
with open(f"./ep_{EPISODE_STRING}/rgb_values_11.json", "w") as outfile:
json.dump(frame_rgb_data11, outfile)
print(f"Finished frame: {frame_string_string}")
| 27.1266
| 93
| 0.440509
| 3,658
| 38,140
| 4.330235
| 0.103062
| 0.066667
| 0.116982
| 0.05
| 0.72279
| 0.718497
| 0.718497
| 0.718497
| 0.650884
| 0.645581
| 0
| 0.103447
| 0.456083
| 38,140
| 1,405
| 94
| 27.145907
| 0.660111
| 0.002334
| 0
| 0.540458
| 0
| 0
| 0.135426
| 0.025928
| 0
| 0
| 0
| 0
| 0
| 1
| 0.000763
| false
| 0
| 0.003817
| 0
| 0.005344
| 0.00458
| 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
|
af7bf1efb310882137ab2c2a20b32d59f0f8b898
| 89
|
py
|
Python
|
mergics/apps.py
|
nim65s/mergics
|
253b7414d3bcf03078c62b2c58abec8f4b0b9722
|
[
"BSD-2-Clause"
] | null | null | null |
mergics/apps.py
|
nim65s/mergics
|
253b7414d3bcf03078c62b2c58abec8f4b0b9722
|
[
"BSD-2-Clause"
] | 1
|
2020-10-06T20:03:20.000Z
|
2020-10-06T20:27:03.000Z
|
mergics/apps.py
|
nim65s/mergics
|
253b7414d3bcf03078c62b2c58abec8f4b0b9722
|
[
"BSD-2-Clause"
] | null | null | null |
from django.apps import AppConfig
class MergicsConfig(AppConfig):
name = 'mergics'
| 14.833333
| 33
| 0.752809
| 10
| 89
| 6.7
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168539
| 89
| 5
| 34
| 17.8
| 0.905405
| 0
| 0
| 0
| 0
| 0
| 0.078652
| 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
|
af8999488b4c74fa92580fccfbc64a7e842f0087
| 260
|
py
|
Python
|
stix_shifter/stix_transmission/src/modules/cloudIdentity/cloudIdentity_results_connector.py
|
cookna/stix-shifter
|
3152f24cf7acb7670454433525ec10030102e146
|
[
"Apache-2.0"
] | null | null | null |
stix_shifter/stix_transmission/src/modules/cloudIdentity/cloudIdentity_results_connector.py
|
cookna/stix-shifter
|
3152f24cf7acb7670454433525ec10030102e146
|
[
"Apache-2.0"
] | null | null | null |
stix_shifter/stix_transmission/src/modules/cloudIdentity/cloudIdentity_results_connector.py
|
cookna/stix-shifter
|
3152f24cf7acb7670454433525ec10030102e146
|
[
"Apache-2.0"
] | 2
|
2019-06-26T19:23:52.000Z
|
2019-07-09T15:33:16.000Z
|
from ..base.base_results_connector import BaseResultsConnector
import json
from .....utils.error_response import ErrorResponder
class CloudIdentityResultsConnector(BaseQueryConnector):
def __init__(self, api_client):
self.api_client = api_client
| 28.888889
| 62
| 0.807692
| 28
| 260
| 7.142857
| 0.678571
| 0.135
| 0.13
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123077
| 260
| 8
| 63
| 32.5
| 0.877193
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.5
| 0
| 0.833333
| 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
|
afaf5d11e5a28c1db05bcfd2d0127aa64f8b14b1
| 18,044
|
py
|
Python
|
marcotti/etl/base/transform.py
|
soccermetrics/marcotti
|
eda2f19bd6cbc6f9c7482e8fe31b2233b33aacfd
|
[
"MIT"
] | 30
|
2015-11-23T07:51:54.000Z
|
2020-06-29T16:11:55.000Z
|
marcotti/etl/base/transform.py
|
soccermetrics/marcotti
|
eda2f19bd6cbc6f9c7482e8fe31b2233b33aacfd
|
[
"MIT"
] | 1
|
2016-06-26T18:44:47.000Z
|
2016-06-29T03:02:40.000Z
|
marcotti/etl/base/transform.py
|
soccermetrics/marcotti
|
eda2f19bd6cbc6f9c7482e8fe31b2233b33aacfd
|
[
"MIT"
] | 8
|
2016-01-13T12:23:16.000Z
|
2021-10-11T07:39:33.000Z
|
import pandas as pd
import marcotti.models.club as mc
import marcotti.models.common.enums as enums
import marcotti.models.common.overview as mco
import marcotti.models.common.personnel as mcp
import marcotti.models.common.suppliers as mcs
from .workflows import WorkflowBase
class MarcottiTransform(WorkflowBase):
"""
Transform and validate extracted data.
"""
@staticmethod
def suppliers(data_frame):
return data_frame
@staticmethod
def years(data_frame):
return data_frame
@staticmethod
def seasons(data_frame):
return data_frame
def competitions(self, data_frame):
if 'country' in data_frame.columns:
transformed_field = 'country'
lambdafunc = lambda x: pd.Series(self.get_id(mco.Countries, name=x[transformed_field]))
id_frame = data_frame.apply(lambdafunc, axis=1)
id_frame.columns = ['country_id']
elif 'confed' in data_frame.columns:
transformed_field = 'confed'
lambdafunc = lambda x: pd.Series(enums.ConfederationType.from_string(x[transformed_field]))
id_frame = data_frame.apply(lambdafunc, axis=1)
id_frame.columns = ['confederation']
else:
raise KeyError("Cannot insert Competition record: No Country or Confederation data present")
return data_frame.join(id_frame).drop(transformed_field, axis=1)
def countries(self, data_frame):
lambdafunc = lambda x: pd.Series(enums.ConfederationType.from_string(x['confed']))
id_frame = data_frame.apply(lambdafunc, axis=1)
id_frame.columns = ['confederation']
joined_frame = data_frame.join(id_frame).drop('confed', axis=1)
return joined_frame
def clubs(self, data_frame):
if 'country' in data_frame.columns:
lambdafunc = lambda x: pd.Series(self.get_id(mco.Countries, name=x['country']))
id_frame = data_frame.apply(lambdafunc, axis=1)
id_frame.columns = ['country_id']
else:
raise KeyError("Cannot insert Club record: No Country data present")
return data_frame.join(id_frame)
def venues(self, data_frame):
lambdafunc = lambda x: pd.Series([
self.get_id(mco.Countries, name=x['country']),
self.get_id(mco.Timezones, name=x['timezone']),
self.get_id(mco.Surfaces, description=x['surface']),
self.make_date_object(x['config_date'])
])
ids_frame = data_frame.apply(lambdafunc, axis=1)
ids_frame.columns = ['country_id', 'timezone_id', 'surface_id', 'eff_date']
joined_frame = data_frame.join(ids_frame).drop(['country', 'timezone', 'surface', 'config_date'], axis=1)
new_frame = joined_frame.where((pd.notnull(joined_frame)), None)
return new_frame
def timezones(self, data_frame):
lambdafunc = lambda x: pd.Series(enums.ConfederationType.from_string(x['confed']))
id_frame = data_frame.apply(lambdafunc, axis=1)
id_frame.columns = ['confederation']
joined_frame = data_frame.join(id_frame).drop('confed', axis=1)
return joined_frame
def positions(self, data_frame):
lambdafunc = lambda x: pd.Series(enums.PositionType.from_string(x['position_type']))
id_frame = data_frame.apply(lambdafunc, axis=1)
id_frame.columns = ['type']
joined_frame = data_frame.join(id_frame).drop('position_type', axis=1)
return joined_frame
def surfaces(self, data_frame):
lambdafunc = lambda x: pd.Series(enums.SurfaceType.from_string(x['surface_type']))
id_frame = data_frame.apply(lambdafunc, axis=1)
id_frame.columns = ['type']
joined_frame = data_frame.join(id_frame).drop('surface_type', axis=1)
return joined_frame
def players(self, data_frame):
lambdafunc = lambda x: pd.Series([
self.make_date_object(x['dob']),
enums.NameOrderType.from_string(x['name_order'] or 'Western'),
self.get_id(mco.Countries, name=x['country']),
self.get_id(mcs.PositionMap, remote_id=x['remote_position_id'], supplier_id=self.supplier_id)
])
ids_frame = data_frame.apply(lambdafunc, axis=1)
ids_frame.columns = ['birth_date', 'order', 'country_id', 'position_id']
joined_frame = data_frame.join(ids_frame).drop(
['dob', 'name_order', 'country', 'remote_position_id'], axis=1)
return joined_frame
def managers(self, data_frame):
lambdafunc = lambda x: pd.Series([
self.make_date_object(x['dob']),
enums.NameOrderType.from_string(x['name_order'] or 'Western'),
self.get_id(mco.Countries, name=x['country'])
])
ids_frame = data_frame.apply(lambdafunc, axis=1)
ids_frame.columns = ['birth_date', 'order', 'country_id']
joined_frame = data_frame.join(ids_frame).drop(['dob', 'name_order', 'country'], axis=1)
return joined_frame
def referees(self, data_frame):
lambdafunc = lambda x: pd.Series([
self.make_date_object(x['dob']),
enums.NameOrderType.from_string(x['name_order'] or 'Western'),
self.get_id(mco.Countries, name=x['country'])
])
ids_frame = data_frame.apply(lambdafunc, axis=1)
ids_frame.columns = ['birth_date', 'order', 'country_id']
joined_frame = data_frame.join(ids_frame).drop(['dob', 'name_order', 'country'], axis=1)
return joined_frame
def league_matches(self, data_frame):
lambdafunc = lambda x: pd.Series([
self.get_id(mco.Competitions, name=x['competition']),
self.get_id(mco.Seasons, name=x['season']),
self.get_id(mco.Venues, name=x['venue']),
self.get_id(mc.Clubs, name=x['home_team']),
self.get_id(mc.Clubs, name=x['away_team']),
self.get_id(mcp.Managers, full_name=x['home_manager']),
self.get_id(mcp.Managers, full_name=x['away_manager']),
self.get_id(mcp.Referees, full_name=x['referee']),
self.make_date_object(x['date']),
enums.WeatherConditionType.from_string(x['kickoff_wx']) if x['kickoff_wx'] else None,
enums.WeatherConditionType.from_string(x['halftime_wx']) if x['halftime_wx'] else None,
enums.WeatherConditionType.from_string(x['fulltime_wx']) if x['fulltime_wx'] else None
])
ids_frame = data_frame.apply(lambdafunc, axis=1)
ids_frame.columns = ['competition_id', 'season_id', 'venue_id', 'home_team_id', 'away_team_id',
'home_manager_id', 'away_manager_id', 'referee_id', 'match_date',
'kickoff_weather', 'halftime_weather', 'fulltime_weather']
columns_to_drop = ['competition', 'season', 'venue', 'home_team', 'away_team', 'home_manager',
'away_manager', 'referee', 'date', 'kickoff_wx', 'halftime_wx', 'fulltime_wx']
return data_frame.join(ids_frame).drop(columns_to_drop, axis=1)
def knockout_matches(self, data_frame):
lambdafunc = lambda x: pd.Series([
self.get_id(mco.Competitions, name=x['competition']),
self.get_id(mco.Seasons, name=x['season']),
self.get_id(mco.Venues, name=x['venue']),
self.get_id(mc.Clubs, name=x['home_team']),
self.get_id(mc.Clubs, name=x['away_team']),
self.get_id(mcp.Managers, full_name=x['home_manager']),
self.get_id(mcp.Managers, full_name=x['away_manager']),
self.get_id(mcp.Referees, full_name=x['referee']),
enums.KnockoutRoundType.from_string(x['round']),
self.make_date_object(x['date']),
enums.WeatherConditionType.from_string(x['kickoff_wx']) if x['kickoff_wx'] else None,
enums.WeatherConditionType.from_string(x['halftime_wx']) if x['halftime_wx'] else None,
enums.WeatherConditionType.from_string(x['fulltime_wx']) if x['fulltime_wx'] else None
])
ids_frame = data_frame.apply(lambdafunc, axis=1)
ids_frame.columns = ['competition_id', 'season_id', 'venue_id', 'home_team_id', 'away_team_id',
'home_manager_id', 'away_manager_id', 'referee_id', 'ko_round', 'match_date',
'kickoff_weather', 'halftime_weather', 'fulltime_weather']
columns_to_drop = ['competition', 'season', 'venue', 'home_team', 'away_team', 'home_manager',
'away_manager', 'referee', 'date', 'round', 'kickoff_wx', 'halftime_wx', 'fulltime_wx']
return data_frame.join(ids_frame).drop(columns_to_drop, axis=1)
def group_matches(self, data_frame):
lambdafunc = lambda x: pd.Series([
self.get_id(mco.Competitions, name=x['competition']),
self.get_id(mco.Seasons, name=x['season']),
self.get_id(mco.Venues, name=x['venue']),
self.get_id(mc.Clubs, name=x['home_team']),
self.get_id(mc.Clubs, name=x['away_team']),
self.get_id(mcp.Managers, full_name=x['home_manager']),
self.get_id(mcp.Managers, full_name=x['away_manager']),
self.get_id(mcp.Referees, full_name=x['referee']),
enums.GroupRoundType.from_string(x['round']),
self.make_date_object(x['date']),
enums.WeatherConditionType.from_string(x['kickoff_wx']) if x['kickoff_wx'] else None,
enums.WeatherConditionType.from_string(x['halftime_wx']) if x['halftime_wx'] else None,
enums.WeatherConditionType.from_string(x['fulltime_wx']) if x['fulltime_wx'] else None
])
ids_frame = data_frame.apply(lambdafunc, axis=1)
ids_frame.columns = ['competition_id', 'season_id', 'venue_id', 'home_team_id', 'away_team_id',
'home_manager_id', 'away_manager_id', 'referee_id', 'group_round', 'match_date',
'kickoff_weather', 'halftime_weather', 'fulltime_weather']
columns_to_drop = ['competition', 'season', 'venue', 'home_team', 'away_team', 'home_manager',
'away_manager', 'referee', 'date', 'round', 'kickoff_wx', 'halftime_wx', 'fulltime_wx']
return data_frame.join(ids_frame).drop(columns_to_drop, axis=1)
def match_lineups(self, data_frame):
lambdafunc = lambda x: pd.Series([
self.get_id(mc.ClubLeagueMatches,
competition_id=self.get_id(mco.Competitions, name=x['competition']),
season_id=self.get_id(mco.Seasons, name=x['season']),
matchday=x['matchday'],
home_team_id=self.get_id(mc.Clubs, name=x['home_team']),
away_team_id=self.get_id(mc.Clubs, name=x['away_team'])),
self.get_id(mc.Clubs, name=x['player_team']),
self.get_id(mcp.Players, full_name=x['player_name'])
])
ids_frame = data_frame.apply(lambdafunc, axis=1)
ids_frame.columns = ['match_id', 'team_id', 'player_id']
columns_to_drop = ['competition', 'season', 'matchday', 'home_team', 'away_team']
return data_frame.join(ids_frame).drop(columns_to_drop, axis=1)
def goals(self, data_frame):
lambdafunc = lambda x: pd.Series([
self.get_id(mc.ClubMatchLineups,
match_id=self.get_id(mcs.MatchMap, remote_id=x['remote_match_id'],
supplier_id=self.supplier_id),
player_id=self.get_id(mcp.Players, full_name=x['scorer'])),
self.get_id(mc.Clubs, name=x['scoring_team']),
enums.ShotEventType.from_string(x['scoring_event']),
enums.BodypartType.from_string(x['bodypart_desc'])
])
ids_frame = data_frame.apply(lambdafunc, axis=1)
ids_frame.columns = ['lineup_id', 'team_id', 'event', 'bodypart']
columns_to_drop = ['remote_match_id', 'scorer', 'scoring_team', 'scoring_event', 'bodypart_desc']
return data_frame.join(ids_frame).drop(columns_to_drop, axis=1)
def penalties(self, data_frame):
lambdafunc = lambda x: pd.Series([
self.get_id(mc.ClubMatchLineups,
match_id=self.get_id(mcs.MatchMap, remote_id=x['remote_match_id'],
supplier_id=self.supplier_id),
player_id=self.get_id(mcp.Players, full_name=x['penalty_taker'])),
enums.FoulEventType.from_string(x['penalty_foul']),
enums.ShotOutcomeType.from_string(x['penalty_outcome'])
])
ids_frame = data_frame.apply(lambdafunc, axis=1)
ids_frame.columns = ['lineup_id', 'foul', 'outcome']
columns_to_drop = ['remote_match_id', 'penalty_taker', 'penalty_foul', 'penalty_outcome']
return data_frame.join(ids_frame).drop(columns_to_drop, axis=1)
def bookables(self, data_frame):
lambdafunc = lambda x: pd.Series([
self.get_id(mc.ClubMatchLineups,
match_id=self.get_id(mcs.MatchMap, remote_id=x['remote_match_id'],
supplier_id=self.supplier_id),
player_id=self.get_id(mcp.Players, full_name=x['player'])),
enums.FoulEventType.from_string(x['foul_desc']),
enums.CardType.from_string(x['card_type'])
])
ids_frame = data_frame.apply(lambdafunc, axis=1)
ids_frame.columns = ['lineup_id', 'foul', 'card']
columns_to_drop = ['remote_match_id', 'player', 'foul_desc', 'card_type']
return data_frame.join(ids_frame).drop(columns_to_drop, axis=1)
def substitutions(self, data_frame):
lambdafunc = lambda x: pd.Series([
self.get_id(mc.ClubMatchLineups,
match_id=self.get_id(mcs.MatchMap, remote_id=x['remote_match_id'],
supplier_id=self.supplier_id),
player_id=self.get_id(mcp.Players, full_name=x['in_player_name'])),
self.get_id(mc.ClubMatchLineups,
match_id=self.get_id(mcs.MatchMap, remote_id=x['remote_match_id'],
supplier_id=self.supplier_id),
player_id=self.get_id(mcp.Players, full_name=x['out_player_name']))
])
ids_frame = data_frame.apply(lambdafunc, axis=1)
ids_frame.columns = ['lineup_in_id', 'lineup_out_id']
columns_to_drop = ['remote_match_id', 'in_player_name', 'out_player_name']
return data_frame.join(ids_frame).drop(columns_to_drop, axis=1)
def penalty_shootouts(self, data_frame):
lambdafunc = lambda x: pd.Series([
self.get_id(mc.ClubMatchLineups,
match_id=self.get_id(mcs.MatchMap, remote_id=x['remote_match_id'], supplier_id=self.supplier_id),
player_id=self.get_id(mcp.Players, full_name=x['penalty_taker'])),
enums.ShotOutcomeType.from_string(x['penalty_outcome'])
])
ids_frame = data_frame.apply(lambdafunc, axis=1)
ids_frame.columns = ['lineup_id', 'outcome']
columns_to_drop = ['remote_match_id', 'penalty_taker', 'penalty_outcome']
return data_frame.join(ids_frame).drop(columns_to_drop, axis=1)
class MarcottiStatsTransform(MarcottiTransform):
categories = ['assists', 'clearances', 'corner_crosses', 'corners', 'crosses', 'defensives',
'discipline', 'duels', 'foul_wins', 'freekicks', 'gk_actions', 'gk_allowed_goals',
'gk_allowed_shots', 'gk_saves', 'goal_bodyparts', 'goal_locations', 'goal_totals',
'goalline_clearances', 'important_plays', 'pass_directions', 'pass_lengths',
'pass_locations', 'pass_totals', 'penalty_actions', 'shot_blocks', 'shot_bodyparts',
'shot_locations', 'shot_plays', 'shot_totals', 'tackles', 'throwins', 'touch_locations',
'touches']
def __init__(self, session, supplier):
super(MarcottiStatsTransform, self).__init__(session, supplier)
for category in MarcottiStatsTransform.categories:
add_stats_fn(category)
def add_stats_fn(category):
def fn(self, data_frame):
lambdafunc = lambda x: pd.Series([
self.get_id(mcs.PlayerMap, remote_id=x['remote_player_id'], supplier_id=self.supplier_id),
self.get_id(mc.ClubMap, remote_id=x['remote_player_team_id'], supplier_id=self.supplier_id),
self.get_id(mc.ClubMap, remote_id=x['remote_opposing_team_id'], supplier_id=self.supplier_id)
])
ids_frame = data_frame.apply(lambdafunc, axis=1)
ids_frame.columns = ['player_id', 'player_team_id', 'opposing_team_id']
columns_to_drop = ['remote_player_id', 'remote_player_team_id', 'remote_opposing_team_id']
inter_frame = data_frame.join(ids_frame).drop(columns_to_drop, axis=1)
outerlambdafunc = lambda x: pd.Series([
self.get_id(mc.ClubMatchLineups,
match_id=self.get_id(
mc.ClubLeagueMatches,
home_team_id=x['player_team_id'] if x['locale'] == 'Home' else x['opposing_team_id'],
away_team_id=x['opposing_team_id'] if x['locale'] == 'Away' else x['player_team_id'],
date=x['match_date']),
player_id=x['player_id'])
])
outerids_frame = inter_frame.apply(outerlambdafunc, axis=1)
outerids_frame.columns = ['lineup_id']
more_columns_to_drop = ['player_team_id', 'opposing_team_id', 'match_date', 'locale', 'player_id']
return inter_frame.join(outerids_frame).drop(more_columns_to_drop, axis=1)
setattr(MarcottiStatsTransform, category, fn)
fn.__name__ = category
fn.__doc__ = "Data transformation for {} method".format(category)
| 54.349398
| 121
| 0.627854
| 2,265
| 18,044
| 4.707285
| 0.091832
| 0.059088
| 0.054024
| 0.030951
| 0.779122
| 0.743294
| 0.723692
| 0.707747
| 0.689739
| 0.667136
| 0
| 0.003062
| 0.239803
| 18,044
| 331
| 122
| 54.513595
| 0.774222
| 0.002106
| 0
| 0.572881
| 0
| 0
| 0.187326
| 0.004892
| 0
| 0
| 0
| 0
| 0
| 1
| 0.084746
| false
| 0.00678
| 0.027119
| 0.010169
| 0.2
| 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
|
afb50c8aa67608ab3deea105ffee6debac103ea3
| 195
|
py
|
Python
|
multiplepagesproject/prodforms.py
|
mandeep-django/admin-panel
|
30c65730e74004ec21cf891627fbbaa027f626db
|
[
"MIT"
] | null | null | null |
multiplepagesproject/prodforms.py
|
mandeep-django/admin-panel
|
30c65730e74004ec21cf891627fbbaa027f626db
|
[
"MIT"
] | null | null | null |
multiplepagesproject/prodforms.py
|
mandeep-django/admin-panel
|
30c65730e74004ec21cf891627fbbaa027f626db
|
[
"MIT"
] | null | null | null |
from django import forms
from multiplepagesproject.prodmodels import proddisplay
class productforms(forms.ModelForm):
class Meta:
model = proddisplay
fields = "__all__"
| 27.857143
| 56
| 0.723077
| 19
| 195
| 7.210526
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.225641
| 195
| 7
| 57
| 27.857143
| 0.907285
| 0
| 0
| 0
| 0
| 0
| 0.036842
| 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
|
afbdd176b769632287834f6d6008afe844162c2f
| 245
|
py
|
Python
|
other/simpleOSC/sendbundle.py
|
neonkingfr/VizBench
|
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
|
[
"MIT"
] | 7
|
2015-01-05T06:32:49.000Z
|
2020-10-30T19:29:07.000Z
|
other/simpleOSC/sendbundle.py
|
neonkingfr/VizBench
|
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
|
[
"MIT"
] | null | null | null |
other/simpleOSC/sendbundle.py
|
neonkingfr/VizBench
|
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
|
[
"MIT"
] | 4
|
2016-03-09T22:29:26.000Z
|
2021-04-07T13:52:28.000Z
|
import osc
osc.init()
# create and send a bundle
bundle = osc.createBundle()
osc.appendToBundle(bundle, "/test/bndlprt1", [1, 2.2, "333"])
osc.appendToBundle(bundle, "/test/bndlprt2", [4, 5.5, 6])
osc.sendBundle(bundle, "127.0.0.1", 9999)
| 24.5
| 61
| 0.677551
| 38
| 245
| 4.368421
| 0.605263
| 0.204819
| 0.277108
| 0.325301
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.102804
| 0.126531
| 245
| 9
| 62
| 27.222222
| 0.672897
| 0.097959
| 0
| 0
| 0
| 0
| 0.182648
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.166667
| 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
|
afcecca0aaa83b41a9ff96c5213253a69fa739e1
| 153
|
py
|
Python
|
osbot_aws/helpers/Fargate_Cluster.py
|
artem7902/OSBot-AWS
|
4b676b8323f18d3d9809d41263f3a71745ec2828
|
[
"Apache-2.0"
] | null | null | null |
osbot_aws/helpers/Fargate_Cluster.py
|
artem7902/OSBot-AWS
|
4b676b8323f18d3d9809d41263f3a71745ec2828
|
[
"Apache-2.0"
] | null | null | null |
osbot_aws/helpers/Fargate_Cluster.py
|
artem7902/OSBot-AWS
|
4b676b8323f18d3d9809d41263f3a71745ec2828
|
[
"Apache-2.0"
] | null | null | null |
from osbot_aws.apis.Fargate import Fargate
class Fargate_Cluster(Fargate):
def __init__(self, account_id):
super().__init__(account_id)
| 15.3
| 42
| 0.732026
| 20
| 153
| 5
| 0.7
| 0.18
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.176471
| 153
| 9
| 43
| 17
| 0.793651
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
bb723c07c298e3147c128f216ca171ac795e93ac
| 192
|
py
|
Python
|
src/lib/core_funcs.py
|
thekraftyman/discord-bot-starter
|
e6b9174ea346ec060ecda3f2b1d22f1eb6066f95
|
[
"MIT"
] | null | null | null |
src/lib/core_funcs.py
|
thekraftyman/discord-bot-starter
|
e6b9174ea346ec060ecda3f2b1d22f1eb6066f95
|
[
"MIT"
] | null | null | null |
src/lib/core_funcs.py
|
thekraftyman/discord-bot-starter
|
e6b9174ea346ec060ecda3f2b1d22f1eb6066f95
|
[
"MIT"
] | null | null | null |
# core_funcs.py
# By: thekraftyman
'''
container for all of the core funcs that have been distributed among files
'''
from src.lib.async_funcs import *
from src.lib.non_async_funcs import *
| 19.2
| 74
| 0.760417
| 31
| 192
| 4.580645
| 0.709677
| 0.126761
| 0.140845
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15625
| 192
| 9
| 75
| 21.333333
| 0.876543
| 0.552083
| 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
|
bbabb955113863d40c2a80d48e3d2cd18a7d9577
| 164
|
py
|
Python
|
flake8diff/test_flake8.py
|
miki725/flake8-diff
|
bec04390ce9263fc7957ccb7fcf39d582fa8d4ad
|
[
"MIT"
] | 18
|
2015-03-10T20:05:57.000Z
|
2020-08-12T20:46:00.000Z
|
flake8diff/test_flake8.py
|
miki725/flake8-diff
|
bec04390ce9263fc7957ccb7fcf39d582fa8d4ad
|
[
"MIT"
] | 20
|
2015-03-21T19:39:12.000Z
|
2020-05-26T15:25:33.000Z
|
flake8diff/test_flake8.py
|
miki725/flake8-diff
|
bec04390ce9263fc7957ccb7fcf39d582fa8d4ad
|
[
"MIT"
] | 7
|
2015-03-21T19:12:31.000Z
|
2018-09-28T20:56:45.000Z
|
from unittest import TestCase
from flake8diff import flake8
class Flake8DiffTestCase(TestCase):
def test_flake8diff(self):
flake8.Flake8Diff("", {})
| 18.222222
| 35
| 0.737805
| 17
| 164
| 7.058824
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.044444
| 0.176829
| 164
| 8
| 36
| 20.5
| 0.844444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 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
|
bbc82f2eff9c39c28075f8ddd776994572815053
| 1,660
|
py
|
Python
|
model/documentmanifest.py
|
beda-software/fhir-py-experements
|
363cfb894fa6f971b9be19340cae1b0a3a4377d8
|
[
"MIT"
] | null | null | null |
model/documentmanifest.py
|
beda-software/fhir-py-experements
|
363cfb894fa6f971b9be19340cae1b0a3a4377d8
|
[
"MIT"
] | null | null | null |
model/documentmanifest.py
|
beda-software/fhir-py-experements
|
363cfb894fa6f971b9be19340cae1b0a3a4377d8
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/DocumentManifest) on 2020-02-03.
# 2020, SMART Health IT.
import sys
from dataclasses import dataclass, field
from typing import ClassVar, Optional, List
from .backboneelement import BackboneElement
from .codeableconcept import CodeableConcept
from .domainresource import DomainResource
from .fhirdate import FHIRDate
from .fhirreference import FHIRReference
from .identifier import Identifier
@dataclass
class DocumentManifestRelated(BackboneElement):
""" Related things.
Related identifiers or resources associated with the DocumentManifest.
"""
resource_type: ClassVar[str] = "DocumentManifestRelated"
identifier: Optional[Identifier] = None
ref: Optional[FHIRReference] = None
@dataclass
class DocumentManifest(DomainResource):
""" A list that defines a set of documents.
A collection of documents compiled for a purpose together with metadata
that applies to the collection.
"""
resource_type: ClassVar[str] = "DocumentManifest"
masterIdentifier: Optional[Identifier] = None
identifier: Optional[List[Identifier]] = None
status: str = None
type: Optional[CodeableConcept] = None
subject: Optional[FHIRReference] = None
created: Optional[FHIRDate] = None
author: Optional[List[FHIRReference]] = None
recipient: Optional[List[FHIRReference]] = None
source: Optional[str] = None
description: Optional[str] = None
content: List[FHIRReference] = field(default_factory=list)
related: Optional[List[DocumentManifestRelated]] = None
| 33.2
| 113
| 0.751807
| 179
| 1,660
| 6.955307
| 0.452514
| 0.048193
| 0.032129
| 0.036948
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017241
| 0.161446
| 1,660
| 50
| 114
| 33.2
| 0.877155
| 0.24759
| 0
| 0.068966
| 1
| 0
| 0.032205
| 0.018993
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.310345
| 0
| 0.931034
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
bbfb94b2d81a97cc98431123af9d98c4a0ea9623
| 16,554
|
py
|
Python
|
edgetpu/swig/edgetpu_cpp_wrapper.py
|
TinkerEdgeT/mendel-edgetpu
|
5df7f62a2d88dc0d9e98c8c794717d77b62daa89
|
[
"Apache-2.0"
] | null | null | null |
edgetpu/swig/edgetpu_cpp_wrapper.py
|
TinkerEdgeT/mendel-edgetpu
|
5df7f62a2d88dc0d9e98c8c794717d77b62daa89
|
[
"Apache-2.0"
] | null | null | null |
edgetpu/swig/edgetpu_cpp_wrapper.py
|
TinkerEdgeT/mendel-edgetpu
|
5df7f62a2d88dc0d9e98c8c794717d77b62daa89
|
[
"Apache-2.0"
] | null | null | null |
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# 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
if version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_edgetpu_cpp_wrapper', [dirname(__file__)])
except ImportError:
import _edgetpu_cpp_wrapper
return _edgetpu_cpp_wrapper
if fp is not None:
try:
_mod = imp.load_module('_edgetpu_cpp_wrapper', fp, pathname, description)
finally:
fp.close()
return _mod
_edgetpu_cpp_wrapper = swig_import_helper()
del swig_import_helper
else:
import _edgetpu_cpp_wrapper
del version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
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):
if _newclass:
object.__setattr__(self, name, value)
else:
self.__dict__[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_nondynamic(self, class_type, name, static=1):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
if (not static):
return object.__getattr__(self, name)
else:
raise AttributeError(name)
def _swig_getattr(self, class_type, name):
return _swig_getattr_nondynamic(self, class_type, name, 0)
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except AttributeError:
class _object:
pass
_newclass = 0
class SwigPyIterator(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _edgetpu_cpp_wrapper.delete_SwigPyIterator
__del__ = lambda self: None
def value(self):
return _edgetpu_cpp_wrapper.SwigPyIterator_value(self)
def incr(self, n=1):
return _edgetpu_cpp_wrapper.SwigPyIterator_incr(self, n)
def decr(self, n=1):
return _edgetpu_cpp_wrapper.SwigPyIterator_decr(self, n)
def distance(self, x):
return _edgetpu_cpp_wrapper.SwigPyIterator_distance(self, x)
def equal(self, x):
return _edgetpu_cpp_wrapper.SwigPyIterator_equal(self, x)
def copy(self):
return _edgetpu_cpp_wrapper.SwigPyIterator_copy(self)
def next(self):
return _edgetpu_cpp_wrapper.SwigPyIterator_next(self)
def __next__(self):
return _edgetpu_cpp_wrapper.SwigPyIterator___next__(self)
def previous(self):
return _edgetpu_cpp_wrapper.SwigPyIterator_previous(self)
def advance(self, n):
return _edgetpu_cpp_wrapper.SwigPyIterator_advance(self, n)
def __eq__(self, x):
return _edgetpu_cpp_wrapper.SwigPyIterator___eq__(self, x)
def __ne__(self, x):
return _edgetpu_cpp_wrapper.SwigPyIterator___ne__(self, x)
def __iadd__(self, n):
return _edgetpu_cpp_wrapper.SwigPyIterator___iadd__(self, n)
def __isub__(self, n):
return _edgetpu_cpp_wrapper.SwigPyIterator___isub__(self, n)
def __add__(self, n):
return _edgetpu_cpp_wrapper.SwigPyIterator___add__(self, n)
def __sub__(self, *args):
return _edgetpu_cpp_wrapper.SwigPyIterator___sub__(self, *args)
def __iter__(self):
return self
SwigPyIterator_swigregister = _edgetpu_cpp_wrapper.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)
class StringVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, StringVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, StringVector, name)
__repr__ = _swig_repr
def iterator(self):
return _edgetpu_cpp_wrapper.StringVector_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _edgetpu_cpp_wrapper.StringVector___nonzero__(self)
def __bool__(self):
return _edgetpu_cpp_wrapper.StringVector___bool__(self)
def __len__(self):
return _edgetpu_cpp_wrapper.StringVector___len__(self)
def __getslice__(self, i, j):
return _edgetpu_cpp_wrapper.StringVector___getslice__(self, i, j)
def __setslice__(self, *args):
return _edgetpu_cpp_wrapper.StringVector___setslice__(self, *args)
def __delslice__(self, i, j):
return _edgetpu_cpp_wrapper.StringVector___delslice__(self, i, j)
def __delitem__(self, *args):
return _edgetpu_cpp_wrapper.StringVector___delitem__(self, *args)
def __getitem__(self, *args):
return _edgetpu_cpp_wrapper.StringVector___getitem__(self, *args)
def __setitem__(self, *args):
return _edgetpu_cpp_wrapper.StringVector___setitem__(self, *args)
def pop(self):
return _edgetpu_cpp_wrapper.StringVector_pop(self)
def append(self, x):
return _edgetpu_cpp_wrapper.StringVector_append(self, x)
def empty(self):
return _edgetpu_cpp_wrapper.StringVector_empty(self)
def size(self):
return _edgetpu_cpp_wrapper.StringVector_size(self)
def swap(self, v):
return _edgetpu_cpp_wrapper.StringVector_swap(self, v)
def begin(self):
return _edgetpu_cpp_wrapper.StringVector_begin(self)
def end(self):
return _edgetpu_cpp_wrapper.StringVector_end(self)
def rbegin(self):
return _edgetpu_cpp_wrapper.StringVector_rbegin(self)
def rend(self):
return _edgetpu_cpp_wrapper.StringVector_rend(self)
def clear(self):
return _edgetpu_cpp_wrapper.StringVector_clear(self)
def get_allocator(self):
return _edgetpu_cpp_wrapper.StringVector_get_allocator(self)
def pop_back(self):
return _edgetpu_cpp_wrapper.StringVector_pop_back(self)
def erase(self, *args):
return _edgetpu_cpp_wrapper.StringVector_erase(self, *args)
def __init__(self, *args):
this = _edgetpu_cpp_wrapper.new_StringVector(*args)
try:
self.this.append(this)
except Exception:
self.this = this
def push_back(self, x):
return _edgetpu_cpp_wrapper.StringVector_push_back(self, x)
def front(self):
return _edgetpu_cpp_wrapper.StringVector_front(self)
def back(self):
return _edgetpu_cpp_wrapper.StringVector_back(self)
def assign(self, n, x):
return _edgetpu_cpp_wrapper.StringVector_assign(self, n, x)
def resize(self, *args):
return _edgetpu_cpp_wrapper.StringVector_resize(self, *args)
def insert(self, *args):
return _edgetpu_cpp_wrapper.StringVector_insert(self, *args)
def reserve(self, n):
return _edgetpu_cpp_wrapper.StringVector_reserve(self, n)
def capacity(self):
return _edgetpu_cpp_wrapper.StringVector_capacity(self)
__swig_destroy__ = _edgetpu_cpp_wrapper.delete_StringVector
__del__ = lambda self: None
StringVector_swigregister = _edgetpu_cpp_wrapper.StringVector_swigregister
StringVector_swigregister(StringVector)
def GetRuntimeVersion():
"""
Returns runtime (libedgetpu.so) version.
The version is dynamically retrieved from shared object.
Retruns:
string.
"""
return _edgetpu_cpp_wrapper.GetRuntimeVersion()
class BasicEngine(_object):
"""Python wrapper for BasicEngine."""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, BasicEngine, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, BasicEngine, name)
__repr__ = _swig_repr
def __init__(self, *args):
"""
Initializes BasicEngine with model's path.
Args:
model_path: [required] string.
device_path: [optional] string, path to Edge TPU device.
See ListEdgeTpuPaths() for path example.
"""
this = _edgetpu_cpp_wrapper.new_BasicEngine(*args)
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _edgetpu_cpp_wrapper.delete_BasicEngine
__del__ = lambda self: None
def RunInference(self, input):
"""
Runs inference with given input.
Args:
input: 1-D numpy.array. Flattened input tensor.
Returns:
(latency, output_tensors). Latency is milliseconds in float while
output_tensors is 1-D numpy.array. If there are multiple output tensors,
it will be compressed into a 1-D array. You can use
get_all_output_tensors_sizes, get_num_of_output_tensors and
get_output_tensor_size to calculate the offset for each tensor.
For example, if the model output 2 tensors with value [1, 2, 3] and
[0.1, 0.4, 0.9], output_tesnors will be [1, 2, 3, 0.1, 0.4, 0.9].
"""
return _edgetpu_cpp_wrapper.BasicEngine_RunInference(self, input)
def get_input_tensor_shape(self):
"""
Gets shape of required input tensor.
For models trained for image classification / detection, it's always
(1, height, width, channels). After flatten, the 1-D array with size
height * width channels is the required input for RunInference.
Returns:
1-D numpy.array.
"""
return _edgetpu_cpp_wrapper.BasicEngine_get_input_tensor_shape(self)
def get_all_output_tensors_sizes(self):
"""
Gets sizes of output tensors.
A model may ouput several tensors, but in RunInference and get_raw_output
we'll concacate them as one. This funcion will return the sizes of original
output tesnors, which can be used to calculate the offset.
Returns:
Numpy.array represents the sizes of output tensors.
"""
return _edgetpu_cpp_wrapper.BasicEngine_get_all_output_tensors_sizes(self)
def get_num_of_output_tensors(self):
"""
Gets number of output tensors.
Returns:
An integer representing number of output tensors.
"""
return _edgetpu_cpp_wrapper.BasicEngine_get_num_of_output_tensors(self)
def get_output_tensor_size(self, tensor_index):
"""
Gets size of specific output tensor.
Args:
tensor_index: integer, the index of the output tensor.
Returns:
An integer representing the size of the output tensor.
"""
return _edgetpu_cpp_wrapper.BasicEngine_get_output_tensor_size(self, tensor_index)
def required_input_array_size(self):
"""
Returns required size of input array of RunInference.
Returns:
An integer representing the size of the input array used for RunInference.
"""
return _edgetpu_cpp_wrapper.BasicEngine_required_input_array_size(self)
def total_output_array_size(self):
"""
Gets expected size of output array returned by RunInference.
Returns:
An integer representing the size of output_tensors returned by
RunInference().
"""
return _edgetpu_cpp_wrapper.BasicEngine_total_output_array_size(self)
def model_path(self):
"""
Gets the path of model loaded in the engine.
Returns:
A string representing the model file's path.
"""
return _edgetpu_cpp_wrapper.BasicEngine_model_path(self)
def get_raw_output(self):
"""
Gets output_tensors of last inference.
This can be used by higher level engines for debugging.
Returns:
A numpy.array.
"""
return _edgetpu_cpp_wrapper.BasicEngine_get_raw_output(self)
def get_inference_time(self):
"""
Gets latency of last inference.
This can be used by higher level engines for debugging.
Returns:
A float number(in milliseconds).
"""
return _edgetpu_cpp_wrapper.BasicEngine_get_inference_time(self)
def device_path(self):
"""
Gets associated device path of this BasicEngine instance.
Returns:
A string representing corresponding Edge TPU device path.
"""
return _edgetpu_cpp_wrapper.BasicEngine_device_path(self)
BasicEngine_swigregister = _edgetpu_cpp_wrapper.BasicEngine_swigregister
BasicEngine_swigregister(BasicEngine)
cvar = _edgetpu_cpp_wrapper.cvar
kEdgeTpuCppWrapperVersion = cvar.kEdgeTpuCppWrapperVersion
kSupportedRuntimeVersion = cvar.kSupportedRuntimeVersion
class ImprintingEngine(_object):
"""Engine used for imprinting method based transfer learning."""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ImprintingEngine, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ImprintingEngine, name)
__repr__ = _swig_repr
def __init__(self, model_path):
"""
Initializes ImprintingEngine with embedding extractor/model's path.
Args:
model_path: string, path of the embedding extractor or the model previous
trained with ImprintingEngine.
"""
this = _edgetpu_cpp_wrapper.new_ImprintingEngine(model_path)
try:
self.this.append(this)
except Exception:
self.this = this
def SaveModel(self, output_path):
"""
Saves trained model as '.tflite' file.
Args:
output_path: string, ouput path of the trained model.
"""
return _edgetpu_cpp_wrapper.ImprintingEngine_SaveModel(self, output_path)
def Train(self, input):
"""
Trains model with a set of images from same class.
Args:
input: list of numpy.array. Each numpy.array represents as a 1-D tensor
converted from an image.
Returns:
int, the label_id for the class.
"""
return _edgetpu_cpp_wrapper.ImprintingEngine_Train(self, input)
__swig_destroy__ = _edgetpu_cpp_wrapper.delete_ImprintingEngine
__del__ = lambda self: None
ImprintingEngine_swigregister = _edgetpu_cpp_wrapper.ImprintingEngine_swigregister
ImprintingEngine_swigregister(ImprintingEngine)
_edgetpu_cpp_wrapper.EdgeTpuState_kNone_swigconstant(_edgetpu_cpp_wrapper)
EdgeTpuState_kNone = _edgetpu_cpp_wrapper.EdgeTpuState_kNone
_edgetpu_cpp_wrapper.EdgeTpuState_kAssigned_swigconstant(_edgetpu_cpp_wrapper)
EdgeTpuState_kAssigned = _edgetpu_cpp_wrapper.EdgeTpuState_kAssigned
_edgetpu_cpp_wrapper.EdgeTpuState_kUnassigned_swigconstant(_edgetpu_cpp_wrapper)
EdgeTpuState_kUnassigned = _edgetpu_cpp_wrapper.EdgeTpuState_kUnassigned
def ListEdgeTpuPaths(state):
"""
Lists paths of Edge TPU devices available to host.
Args:
state: device's current state. Can be:
EDGE_TPU_STATE_ASSIGNED: devices that are associated with BasicEngine instance.
EDGE_TPU_STATE_UNASSIGNED: devices that are available.
EDGE_TPU_STATE_NONE: ASSIGNED or UNASSIGNED, all devices detected by host.
Returns:
tuple of strings, which represents device paths in certain state.
"""
return _edgetpu_cpp_wrapper.ListEdgeTpuPaths(state)
# This file is compatible with both classic and new-style classes.
| 31.411765
| 100
| 0.691434
| 1,967
| 16,554
| 5.382308
| 0.162684
| 0.084065
| 0.142911
| 0.136866
| 0.461793
| 0.393218
| 0.270709
| 0.171909
| 0.119108
| 0.083215
| 0
| 0.003316
| 0.234989
| 16,554
| 526
| 101
| 31.471483
| 0.832675
| 0.229008
| 0
| 0.202247
| 1
| 0
| 0.013797
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.277154
| false
| 0.007491
| 0.033708
| 0.191011
| 0.715356
| 0.033708
| 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
|
a5212eabcb877d5b4c6f79a259ed99bcf35ed6f2
| 396
|
py
|
Python
|
app/forms/login.py
|
mkorcha/CoyoteLab
|
8932d9cc35fb840e468368c2e1249ca4811b59d0
|
[
"MIT"
] | 2
|
2016-12-01T00:10:46.000Z
|
2016-12-31T19:18:35.000Z
|
app/forms/login.py
|
mkorcha/CoyoteLab
|
8932d9cc35fb840e468368c2e1249ca4811b59d0
|
[
"MIT"
] | null | null | null |
app/forms/login.py
|
mkorcha/CoyoteLab
|
8932d9cc35fb840e468368c2e1249ca4811b59d0
|
[
"MIT"
] | null | null | null |
from flask_wtf import Form
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import DataRequired
class LoginForm(Form):
'''
Form used to perform a user login
'''
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
submit = SubmitField('Log In', validators=[DataRequired()])
| 28.285714
| 66
| 0.765152
| 42
| 396
| 7.190476
| 0.571429
| 0.218543
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121212
| 396
| 14
| 67
| 28.285714
| 0.867816
| 0.083333
| 0
| 0
| 0
| 0
| 0.062147
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.285714
| 0.428571
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
a54a95f758a5621c7d99991bc1935abca6851391
| 799
|
py
|
Python
|
tests/lanczos/build.py
|
weikengchen/Libra
|
7ad48800febee0d4426a6146d54906476b7acc5a
|
[
"Apache-2.0"
] | 28
|
2020-01-05T12:05:57.000Z
|
2021-11-23T16:18:40.000Z
|
tests/lanczos/build.py
|
weikengchen/Libra
|
7ad48800febee0d4426a6146d54906476b7acc5a
|
[
"Apache-2.0"
] | 1
|
2020-08-10T17:15:38.000Z
|
2020-08-11T16:14:46.000Z
|
tests/lanczos/build.py
|
weikengchen/Libra
|
7ad48800febee0d4426a6146d54906476b7acc5a
|
[
"Apache-2.0"
] | 13
|
2020-01-31T05:53:37.000Z
|
2021-08-02T14:05:43.000Z
|
import os
os.system('./build.sh')
os.system('g++ parser_sha_data_parallel.cpp -o psdp -O3')
os.system('./psdp lanczos2_16.pws lanczos2_16_112_N=16_rdl.pws lanczos2_112_N=16_circuit.txt lanczos2_112_N=16_meta.txt')
os.system('./psdp lanczos2_16.pws lanczos2_16_176_N=64_rdl.pws lanczos2_176_N=64_circuit.txt lanczos2_176_N=64_meta.txt')
os.system('./psdp lanczos2_16.pws lanczos2_16_304_N=256_rdl.pws lanczos2_304_N=256_circuit.txt lanczos2_304_N=256_meta.txt')
os.system('./psdp lanczos2_16.pws lanczos2_16_560_N=1024_rdl.pws lanczos2_560_N=1024_circuit.txt lanczos2_560_N=1024_meta.txt')
os.system('./psdp lanczos2_16.pws lanczos2_16_1072_N=4096_rdl.pws lanczos2_1072_N=4096_circuit.txt lanczos2_1072_N=4096_meta.txt')
os.system('make -C ../.. linear_gkr_zk')
os.system('cp ../../bin/main_zk .')
| 61.461538
| 130
| 0.807259
| 155
| 799
| 3.767742
| 0.251613
| 0.171233
| 0.10274
| 0.171233
| 0.347603
| 0.347603
| 0.347603
| 0.347603
| 0.287671
| 0.287671
| 0
| 0.177015
| 0.052566
| 799
| 12
| 131
| 66.583333
| 0.594452
| 0
| 0
| 0
| 0
| 0
| 0.827284
| 0.576971
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.1
| 0
| 0.1
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
a54eed00dc082ef6adf720e7a6dc2ace18221748
| 127
|
py
|
Python
|
tests/ev3dev/brick/battery.py
|
GianCann/pybricks-micropython
|
f23cdf7fdf9abd068e7e84ca54d6162b4fc5f72a
|
[
"MIT"
] | null | null | null |
tests/ev3dev/brick/battery.py
|
GianCann/pybricks-micropython
|
f23cdf7fdf9abd068e7e84ca54d6162b4fc5f72a
|
[
"MIT"
] | null | null | null |
tests/ev3dev/brick/battery.py
|
GianCann/pybricks-micropython
|
f23cdf7fdf9abd068e7e84ca54d6162b4fc5f72a
|
[
"MIT"
] | null | null | null |
from pybricks.hubs import EV3Brick
ev3 = EV3Brick()
print(ev3.battery.voltage()) # 7400
print(ev3.battery.current()) # 180
| 18.142857
| 36
| 0.724409
| 17
| 127
| 5.411765
| 0.705882
| 0.173913
| 0.326087
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109091
| 0.133858
| 127
| 6
| 37
| 21.166667
| 0.727273
| 0.062992
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0.5
| 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
| 0
| 1
|
0
| 4
|
a55d8714cd1710f5fc46c5b77d8879d3591e23b3
| 39
|
py
|
Python
|
pynairus/actions/__init__.py
|
venairus/pynairus
|
76227072aa0f0f98a36a3a04eb6a436473cfd9a6
|
[
"MIT"
] | 2
|
2018-02-15T12:16:10.000Z
|
2018-09-11T12:05:12.000Z
|
pynairus/actions/__init__.py
|
venairus/pynairus
|
76227072aa0f0f98a36a3a04eb6a436473cfd9a6
|
[
"MIT"
] | null | null | null |
pynairus/actions/__init__.py
|
venairus/pynairus
|
76227072aa0f0f98a36a3a04eb6a436473cfd9a6
|
[
"MIT"
] | 1
|
2019-10-30T09:40:28.000Z
|
2019-10-30T09:40:28.000Z
|
# coding: utf-8
"""Actions package"""
| 9.75
| 21
| 0.615385
| 5
| 39
| 4.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.030303
| 0.153846
| 39
| 3
| 22
| 13
| 0.69697
| 0.769231
| 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
|
a5690fcf0124a35633cc811501e412b22c1aa270
| 60
|
py
|
Python
|
tests/__init__.py
|
ziliac/pyrmx
|
54f1c79f85f2142b8fb755f815642c4701e5a57b
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
ziliac/pyrmx
|
54f1c79f85f2142b8fb755f815642c4701e5a57b
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
ziliac/pyrmx
|
54f1c79f85f2142b8fb755f815642c4701e5a57b
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""Unit test package for pyrmx."""
| 15
| 34
| 0.55
| 8
| 60
| 4.125
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020408
| 0.183333
| 60
| 3
| 35
| 20
| 0.653061
| 0.85
| 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
|
a5bef664ecd325ec7c754416c8cb289908db04d1
| 2,026
|
py
|
Python
|
tests/test_fetching_info_from_websites.py
|
antoniodimariano/websites_metrics_collector
|
5113a680612b126005ac7f9f52ed35d26b806ea0
|
[
"Apache-2.0"
] | null | null | null |
tests/test_fetching_info_from_websites.py
|
antoniodimariano/websites_metrics_collector
|
5113a680612b126005ac7f9f52ed35d26b806ea0
|
[
"Apache-2.0"
] | null | null | null |
tests/test_fetching_info_from_websites.py
|
antoniodimariano/websites_metrics_collector
|
5113a680612b126005ac7f9f52ed35d26b806ea0
|
[
"Apache-2.0"
] | null | null | null |
import unittest
from unittest import IsolatedAsyncioTestCase
from websites_metrics_collector.communication import webpages_fetcher
class Test(IsolatedAsyncioTestCase):
"""
This Class tests the fetch_list_of_urls() async method used to fetch URLs
"""
async def test_a_fetch_with_valid_list_of_url(self):
urls_to_fetch = [('http://motoguzzi.com', ['twitter', 'Antonio']), ('http://ducati.com', ['twitter', 'url']),
('http://ferrari.com', ['twitter', 'url'])]
ret = await webpages_fetcher.fetch_list_of_urls(list_of_urls=urls_to_fetch)
self.assertIsInstance(ret,list)
self.assertEqual(len(ret),3)
self.assertEqual(ret[0].url,'http://motoguzzi.com')
self.assertEqual(ret[0].http_status,200)
self.assertIsInstance(ret[0].elapsed_time,float)
self.assertIsInstance(ret[0].pattern_verified,bool)
async def test_b_fetch_with_valid_list_of_url(self):
urls_to_fetch = [('http://motoguzzi.com', ['twitter', 'Antonio'])]
ret = await webpages_fetcher.fetch_list_of_urls(list_of_urls=urls_to_fetch)
self.assertIsInstance(ret,list)
self.assertEqual(len(ret),1)
self.assertEqual(ret[0].url,'http://motoguzzi.com')
self.assertEqual(ret[0].http_status,200)
self.assertIsInstance(ret[0].elapsed_time,float)
self.assertIsInstance(ret[0].pattern_verified,bool)
@unittest.skip
async def test_c_fetch_with_valid_list_of_url(self):
urls_to_fetch = [('http://sjsjsjjsjsjsjsj.com', ['twitter', 'Antonio'])]
ret = await webpages_fetcher.fetch_list_of_urls(list_of_urls=urls_to_fetch)
self.assertIsInstance(ret,list)
self.assertEqual(len(ret),1)
self.assertEqual(ret[0].url,'http://sjsjsjjsjsjsjsj.com')
self.assertEqual(ret[0].http_status,403)
self.assertIsInstance(ret[0].elapsed_time,float)
self.assertIsInstance(ret[0].pattern_verified,bool)
self.assertEqual(ret[0].pattern_verified,False)
| 44.043478
| 117
| 0.695953
| 263
| 2,026
| 5.106464
| 0.220532
| 0.038719
| 0.154133
| 0.099032
| 0.718541
| 0.718541
| 0.718541
| 0.694713
| 0.694713
| 0.694713
| 0
| 0.014899
| 0.171767
| 2,026
| 45
| 118
| 45.022222
| 0.785459
| 0.036032
| 0
| 0.529412
| 0
| 0
| 0.118346
| 0
| 0
| 0
| 0
| 0
| 0.558824
| 1
| 0
| false
| 0
| 0.088235
| 0
| 0.117647
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 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
|
3c0172a4b6c39d5c3838a7e6ee2dd86d14d618b0
| 77
|
py
|
Python
|
proxy/admin.py
|
jokajak/infinity_tracker
|
21f83925d9899dc25bc58b198426f329a549b0e0
|
[
"Apache-2.0"
] | 1
|
2021-01-21T08:44:21.000Z
|
2021-01-21T08:44:21.000Z
|
proxy/admin.py
|
jokajak/infinity_tracker
|
21f83925d9899dc25bc58b198426f329a549b0e0
|
[
"Apache-2.0"
] | 126
|
2020-08-03T22:07:38.000Z
|
2022-03-28T22:25:59.000Z
|
proxy/admin.py
|
jokajak/infinity_tracker
|
21f83925d9899dc25bc58b198426f329a549b0e0
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib import admin # NOQA: F401
# Register your models here.
| 19.25
| 46
| 0.753247
| 11
| 77
| 5.272727
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.047619
| 0.181818
| 77
| 3
| 47
| 25.666667
| 0.873016
| 0.480519
| 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
|
3c1ce045f39d2d470a259001626bc914b8162303
| 29
|
py
|
Python
|
homeassistant/components/thomson/__init__.py
|
domwillcode/home-assistant
|
f170c80bea70c939c098b5c88320a1c789858958
|
[
"Apache-2.0"
] | 30,023
|
2016-04-13T10:17:53.000Z
|
2020-03-02T12:56:31.000Z
|
homeassistant/components/thomson/__init__.py
|
jagadeeshvenkatesh/core
|
1bd982668449815fee2105478569f8e4b5670add
|
[
"Apache-2.0"
] | 31,101
|
2020-03-02T13:00:16.000Z
|
2022-03-31T23:57:36.000Z
|
homeassistant/components/thomson/__init__.py
|
jagadeeshvenkatesh/core
|
1bd982668449815fee2105478569f8e4b5670add
|
[
"Apache-2.0"
] | 11,956
|
2016-04-13T18:42:31.000Z
|
2020-03-02T09:32:12.000Z
|
"""The thomson component."""
| 14.5
| 28
| 0.655172
| 3
| 29
| 6.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.103448
| 29
| 1
| 29
| 29
| 0.730769
| 0.758621
| 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
|
3c2d0e8fef55c7fd0b954db4e7dcf85c4711c86c
| 4,606
|
py
|
Python
|
sunpy/sun/tests/test_sun.py
|
PritishC/sunpy
|
76a7b5994566674d85eada7dcec54bf0f120269a
|
[
"BSD-2-Clause"
] | null | null | null |
sunpy/sun/tests/test_sun.py
|
PritishC/sunpy
|
76a7b5994566674d85eada7dcec54bf0f120269a
|
[
"BSD-2-Clause"
] | null | null | null |
sunpy/sun/tests/test_sun.py
|
PritishC/sunpy
|
76a7b5994566674d85eada7dcec54bf0f120269a
|
[
"BSD-2-Clause"
] | null | null | null |
from astropy.coordinates import Angle
from astropy.time import Time
import astropy.units as u
from astropy.tests.helper import assert_quantity_allclose
from sunpy.sun import sun
def test_true_longitude():
# Validate against a published value from the Astronomical Almanac (1992)
t = Time('1992-10-13', scale='tdb')
assert_quantity_allclose(sun.true_longitude(t), Angle('199d54m26.17s'), atol=0.1*u.arcsec)
def test_apparent_longitude():
# Validate against a published value from the Astronomical Almanac (1992)
t = Time('1992-10-13', scale='tdb')
assert_quantity_allclose(sun.apparent_longitude(t), Angle('199d54m21.56s'), atol=0.1*u.arcsec)
def test_true_latitude():
# Validate against a published value from the Astronomical Almanac (1992)
t = Time('1992-10-13', scale='tdb')
assert_quantity_allclose(sun.true_latitude(t), Angle('0.72s'), atol=0.05*u.arcsec)
def test_apparent_latitude():
# Validate against a published value from the Astronomical Almanac (1992)
t = Time('1992-10-13', scale='tdb')
assert_quantity_allclose(sun.apparent_latitude(t), Angle('0.72s'), atol=0.05*u.arcsec)
def test_solar_cycle_number():
assert_quantity_allclose(sun.solar_cycle_number("2012/11/11"), 5, atol=1e-1)
assert_quantity_allclose(sun.solar_cycle_number("2011/2/22"), 4, atol=1e-1)
assert_quantity_allclose(sun.solar_cycle_number("2034/1/15"), 27, atol=1e-1)
def test_solar_semidiameter_angular_size():
assert_quantity_allclose(sun.solar_semidiameter_angular_size("2012/11/11"), 968.871294 * u.arcsec, atol=1e-3 * u.arcsec)
assert_quantity_allclose(sun.solar_semidiameter_angular_size("2043/03/01"), 968.326347 * u.arcsec, atol=1e-3 * u.arcsec)
assert_quantity_allclose(sun.solar_semidiameter_angular_size("2001/07/21"), 944.039007 * u.arcsec, atol=1e-3 * u.arcsec)
def test_mean_obliquity_of_ecliptic():
t = Time('1992-10-13', scale='tdb')
assert_quantity_allclose(sun.mean_obliquity_of_ecliptic(t), 84384.8*u.arcsec, atol=0.1*u.arcsec)
def test_true_rightascension():
assert_quantity_allclose(sun.true_rightascension("2012/11/11"), 226.548*u.deg, atol=1e-3*u.deg)
assert_quantity_allclose(sun.true_rightascension("2142/02/03"), 316.466*u.deg, atol=1e-3*u.deg)
assert_quantity_allclose(sun.true_rightascension("2013/12/11"), 258.150*u.deg, atol=1e-3*u.deg)
def test_true_rightascension_J2000():
# Validate against JPL HORIZONS output
t = Time('1992-10-13', scale='tdb')
assert_quantity_allclose(sun.true_rightascension(t, equinox_of_date=False),
Angle('13h13m53.65s'), atol=0.01*u.arcsec)
def test_true_declination():
assert_quantity_allclose(sun.true_declination("2012/11/11"), -17.470*u.deg, atol=1e-3*u.deg)
assert_quantity_allclose(sun.true_declination("2245/12/01"), -21.717*u.deg, atol=1e-3*u.deg)
assert_quantity_allclose(sun.true_declination("2014/05/27"), 21.245*u.deg, atol=1e-3*u.deg)
def test_true_declination_J2000():
# Validate against JPL HORIZONS output
t = Time('1992-10-13', scale='tdb')
assert_quantity_allclose(sun.true_declination(t, equinox_of_date=False),
Angle('-7d49m20.8s'), atol=0.05*u.arcsec)
def test_true_obliquity_of_ecliptic():
t = Time('1992-10-13', scale='tdb')
assert_quantity_allclose(sun.true_obliquity_of_ecliptic(t), 84384.5*u.arcsec, atol=0.1*u.arcsec)
def test_apparent_rightascension():
# Validate against a published value from the Astronomical Almanac (1992)
t = Time('1992-10-13', scale='tdb')
assert_quantity_allclose(sun.apparent_rightascension(t), Angle('13h13m30.749s'),
atol=0.01*u.arcsec)
def test_apparent_rightascension_J2000():
# Regression-only test
t = Time('1992-10-13', scale='tdb')
assert_quantity_allclose(sun.apparent_rightascension(t, equinox_of_date=False),
Angle('13h13m52.37s'), atol=0.01*u.arcsec)
def test_apparent_declination():
# Validate against a published value from the Astronomical Almanac (1992)
t = Time('1992-10-13', scale='tdb')
assert_quantity_allclose(sun.apparent_declination(t), Angle('-7d47m01.74s'), atol=0.05*u.arcsec)
def test_apparent_declination_J2000():
# Regression-only test
t = Time('1992-10-13', scale='tdb')
assert_quantity_allclose(sun.apparent_declination(t, equinox_of_date=False),
Angle('-7d49m13.09s'), atol=0.05*u.arcsec)
def test_print_params():
# Test only for any issues with printing; accuracy is covered by other tests
sun.print_params()
| 41.495495
| 124
| 0.721884
| 695
| 4,606
| 4.581295
| 0.191367
| 0.109925
| 0.172739
| 0.188442
| 0.796168
| 0.77544
| 0.733668
| 0.657035
| 0.590452
| 0.573492
| 0
| 0.109252
| 0.143508
| 4,606
| 110
| 125
| 41.872727
| 0.697845
| 0.135041
| 0
| 0.1875
| 0
| 0
| 0.096173
| 0
| 0
| 0
| 0
| 0
| 0.390625
| 1
| 0.265625
| false
| 0
| 0.078125
| 0
| 0.34375
| 0.03125
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3c599676a9ae26a258559d911189a12f55452ddf
| 666
|
py
|
Python
|
src/yellowdog_client/model/internal_user.py
|
yellowdog/yellowdog-sdk-python-public
|
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
|
[
"Apache-2.0"
] | null | null | null |
src/yellowdog_client/model/internal_user.py
|
yellowdog/yellowdog-sdk-python-public
|
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
|
[
"Apache-2.0"
] | null | null | null |
src/yellowdog_client/model/internal_user.py
|
yellowdog/yellowdog-sdk-python-public
|
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
|
[
"Apache-2.0"
] | null | null | null |
from dataclasses import dataclass, field
from typing import List, Optional
from .access_delegate import AccessDelegate
from .password_state import PasswordState
from .user import User
@dataclass
class InternalUser(User):
"""Represents an internal user within the YellowDog Platform."""
type: str = field(default="co.yellowdog.platform.model.InternalUser", init=False)
id: Optional[str] = field(default=None, init=False)
passwordState: Optional[PasswordState] = field(default=None, init=False)
username: str
name: str
email: Optional[str] = None
eulaAccepted: bool = False
accessDelegates: Optional[List[AccessDelegate]] = None
| 33.3
| 85
| 0.753754
| 79
| 666
| 6.329114
| 0.493671
| 0.072
| 0.06
| 0.08
| 0.1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.154655
| 666
| 19
| 86
| 35.052632
| 0.888099
| 0.087087
| 0
| 0
| 0
| 0
| 0.066445
| 0.066445
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.133333
| 0.333333
| 0
| 0.933333
| 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
|
b1e811f35a54f18497c53bcd1b57a0f2b90a05d1
| 455
|
py
|
Python
|
src/epyodbc/constructs/base_class.py
|
kingspp/epyodbc
|
601ea659c243e7128f946fed264a095f82b25f8a
|
[
"MIT"
] | null | null | null |
src/epyodbc/constructs/base_class.py
|
kingspp/epyodbc
|
601ea659c243e7128f946fed264a095f82b25f8a
|
[
"MIT"
] | null | null | null |
src/epyodbc/constructs/base_class.py
|
kingspp/epyodbc
|
601ea659c243e7128f946fed264a095f82b25f8a
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
| **@created on:** 9/4/20,
| **@author:** prathyushsp,
| **@version:** v0.0.1
|
| **Description:**
|
|
| **Sphinx Documentation Status:**
"""
from abc import ABCMeta, abstractmethod
import json
class BaseClass(metaclass=ABCMeta):
@abstractmethod
def pretty(self):
pass
def toJSON(self):
return json.dumps(self, default=lambda o: o.__dict__,
sort_keys=True, indent=2)
| 18.2
| 61
| 0.586813
| 51
| 455
| 5.137255
| 0.843137
| 0.160305
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025937
| 0.237363
| 455
| 24
| 62
| 18.958333
| 0.729107
| 0.356044
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0.111111
| 0.222222
| 0.111111
| 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
| 0
| 1
| 1
| 0
|
0
| 4
|
b1ff7639399b3c6d47d30f81feb9b3ec46b39e02
| 106
|
py
|
Python
|
Discord Bots/Discord Bot/test_Bot.py
|
SeymoTheDev/skittles-stuff
|
f9eba3efd0577045085418391b7154f3fd121f70
|
[
"MIT"
] | null | null | null |
Discord Bots/Discord Bot/test_Bot.py
|
SeymoTheDev/skittles-stuff
|
f9eba3efd0577045085418391b7154f3fd121f70
|
[
"MIT"
] | null | null | null |
Discord Bots/Discord Bot/test_Bot.py
|
SeymoTheDev/skittles-stuff
|
f9eba3efd0577045085418391b7154f3fd121f70
|
[
"MIT"
] | null | null | null |
from unittest import TestCase
class Test(TestCase):
def test_punch(self):
self.fail()
| 15.142857
| 30
| 0.641509
| 13
| 106
| 5.153846
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.273585
| 106
| 6
| 31
| 17.666667
| 0.87013
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
5906bff03b00e79f2660983fe9997b9cd354f2bc
| 30
|
py
|
Python
|
tests/database/__init__.py
|
dinosv/cobib
|
15342de37336a51d87c8f04f8430d0621da69a5c
|
[
"MIT"
] | 9
|
2020-09-27T19:22:35.000Z
|
2022-02-27T20:00:58.000Z
|
tests/database/__init__.py
|
dinosv/cobib
|
15342de37336a51d87c8f04f8430d0621da69a5c
|
[
"MIT"
] | null | null | null |
tests/database/__init__.py
|
dinosv/cobib
|
15342de37336a51d87c8f04f8430d0621da69a5c
|
[
"MIT"
] | 2
|
2020-12-07T15:26:03.000Z
|
2021-10-03T18:04:57.000Z
|
"""coBib's database tests."""
| 15
| 29
| 0.633333
| 4
| 30
| 4.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 30
| 1
| 30
| 30
| 0.703704
| 0.766667
| 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
|
59276445280313e61b8b7bc4ae85576dc76c9f96
| 3,174
|
py
|
Python
|
src/ReichardtDS8.py
|
smittal6/i3d
|
e347b5415f5665a6f25b644a3dda5dd32f01dbbb
|
[
"MIT"
] | null | null | null |
src/ReichardtDS8.py
|
smittal6/i3d
|
e347b5415f5665a6f25b644a3dda5dd32f01dbbb
|
[
"MIT"
] | null | null | null |
src/ReichardtDS8.py
|
smittal6/i3d
|
e347b5415f5665a6f25b644a3dda5dd32f01dbbb
|
[
"MIT"
] | null | null | null |
import numpy as np
def Reichardt8(video, dirs=[0,1,2,3,4,5,6,7]):
'''
Returns a tuple of Reichardt-Hassenstein correlators in 8 directions
args:
video: Shape ~ [TimeSteps, H, W, 1]
'''
vp1, vm1 = Reichardt_vertical_2channels_Vectorized(video) #Directions 1, -1
vp3, vm3 = Reichardt_horizontal_2channels_Vectorized(video) #Directions 3, -3
vp2, vm2 = Reichardt_diagonal1_2channels_Vectorized(video) #Directions 2, -2
vp4, vm4 = Reichardt_diagonal2_2channels_Vectorized(video) #Directions 4, -4
all_dirs = [vp1, vm1, vp2, vm2, vp3, vm3, vp4, vm4]
return [all_dirs[i] for i in dirs]
#timeDelay is unused in the Vectorized method, but may be useful later
def Reichardt_vertical_2channels_Vectorized(video,timeDelay=1):
'''
Reichardt-Hassenstein inspired video processing
Put negative values into another tensor and then concat for the two (e.g. red and green) channels
'''
vc_shift_vert_by1back=np.roll(video,1,axis=1)
vc_shift_time_by1forw=np.roll(video,-1,axis=0)
vc_shift_vert_by1back_time_by1forw=np.roll(vc_shift_vert_by1back,-1,axis=0)
vc = vc_shift_vert_by1back*vc_shift_time_by1forw - vc_shift_vert_by1back_time_by1forw*video
vc_neg = vc.clip(max=0)
vc_neg = -1*vc_neg
vc = vc.clip(0)
return vc, vc_neg
def Reichardt_diagonal1_2channels_Vectorized(video,timeDelay=1):
'''
Reichardt-Hassenstein inspired video processing
Put negative values into another tensor and then concat for the two (e.g. red and green) channels
'''
vc_shift_diag_by1back=np.roll(video,(1,1),axis=(1,2))
vc_shift_time_by1forw=np.roll(video,-1,axis=0)
vc_shift_diag_by1back_time_by1forw=np.roll(vc_shift_diag_by1back,-1,axis=0)
vc= vc_shift_diag_by1back*vc_shift_time_by1forw - vc_shift_diag_by1back_time_by1forw*video
vc_neg=vc.clip(max=0)
vc_neg=-1*vc_neg
vc=vc.clip(0)
return vc, vc_neg
def Reichardt_horizontal_2channels_Vectorized(video,timeDelay=1):
'''
Reichardt-Hassenstein inspired video processing
Put negative values into another tensor and then concat for the two (e.g. red and green) channels
'''
vc_shift_horz_by1back=np.roll(video,1,axis=2)
vc_shift_time_by1forw=np.roll(video,-1,axis=0)
vc_shift_horz_by1back_time_by1forw=np.roll(vc_shift_horz_by1back,-1,axis=0)
vc= vc_shift_horz_by1back*vc_shift_time_by1forw - vc_shift_horz_by1back_time_by1forw*video
vc_neg=vc.clip(max=0)
vc_neg=-1*vc_neg
vc=vc.clip(0)
return vc, vc_neg
def Reichardt_diagonal2_2channels_Vectorized(video,timeDelay=1):
'''
Reichardt-Hassenstein inspired video processing
Put negative values into another tensor and then concat for the two (e.g. red and green) channels
'''
vc_shift_diag_by1back=np.roll(video,(-1,1),axis=(1,2))
vc_shift_time_by1forw=np.roll(video,-1,axis=0)
vc_shift_diag_by1back_time_by1forw=np.roll(vc_shift_diag_by1back,-1,axis=0)
vc= vc_shift_diag_by1back*vc_shift_time_by1forw - vc_shift_diag_by1back_time_by1forw*video
vc_neg=vc.clip(max=0)
vc_neg=-1*vc_neg
vc=vc.clip(0)
return vc, vc_neg
| 34.5
| 104
| 0.732199
| 511
| 3,174
| 4.270059
| 0.174168
| 0.089826
| 0.050412
| 0.082493
| 0.843263
| 0.745646
| 0.717232
| 0.639322
| 0.639322
| 0.639322
| 0
| 0.048216
| 0.170132
| 3,174
| 91
| 105
| 34.879121
| 0.780182
| 0.26213
| 0
| 0.545455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.113636
| false
| 0
| 0.022727
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
593862c08f86b1ec3350fd994c6a0a23e0d407ad
| 202
|
py
|
Python
|
remote_works/graphql/delivery/resolvers.py
|
tetyanaloskutova/saleor
|
b3bb51e9c0c4c2febf4aa1e2a7d893e77c331e89
|
[
"BSD-3-Clause"
] | 7
|
2019-05-17T14:27:13.000Z
|
2021-12-17T22:52:40.000Z
|
remote_works/graphql/delivery/resolvers.py
|
tetyanaloskutova/saleor
|
b3bb51e9c0c4c2febf4aa1e2a7d893e77c331e89
|
[
"BSD-3-Clause"
] | 9
|
2019-04-13T09:24:28.000Z
|
2019-09-09T15:35:05.000Z
|
remote_works/graphql/delivery/resolvers.py
|
tetyanaloskutova/remote-works
|
b3bb51e9c0c4c2febf4aa1e2a7d893e77c331e89
|
[
"BSD-3-Clause"
] | null | null | null |
import graphene_django_optimizer as gql_optimizer
from ...delivery import models
def resolve_delivery_zones(info):
qs = models.DeliveryZone.objects.all()
return gql_optimizer.query(qs, info)
| 22.444444
| 49
| 0.787129
| 27
| 202
| 5.666667
| 0.703704
| 0.156863
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133663
| 202
| 8
| 50
| 25.25
| 0.874286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 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
|
3cc75769cc0430a3c58ed37733ff77e1117674ee
| 83
|
py
|
Python
|
bemy/apps.py
|
foropolo/profiles-rest-api
|
f35cbb5727204bf4419c6b0a9797d7c624773219
|
[
"MIT"
] | null | null | null |
bemy/apps.py
|
foropolo/profiles-rest-api
|
f35cbb5727204bf4419c6b0a9797d7c624773219
|
[
"MIT"
] | 6
|
2019-12-05T00:35:40.000Z
|
2022-02-10T08:29:56.000Z
|
bemy/apps.py
|
foropolo/profiles-rest-api
|
f35cbb5727204bf4419c6b0a9797d7c624773219
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class BemyConfig(AppConfig):
name = 'bemy'
| 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
|
3cd24bc69492048a6c6dccda50896c121dfcd5b5
| 1,453
|
py
|
Python
|
alexhart/day1-2.py
|
chadnetzer/advent2020
|
b992eb202ff9dd5cc353914a136337412c8bd074
|
[
"MIT"
] | null | null | null |
alexhart/day1-2.py
|
chadnetzer/advent2020
|
b992eb202ff9dd5cc353914a136337412c8bd074
|
[
"MIT"
] | 1
|
2020-12-06T07:51:48.000Z
|
2020-12-08T05:03:11.000Z
|
alexhart/day1-2.py
|
chadnetzer/advent2020
|
b992eb202ff9dd5cc353914a136337412c8bd074
|
[
"MIT"
] | 8
|
2020-12-01T21:29:21.000Z
|
2020-12-09T23:55:15.000Z
|
chalenge_input = '''1956
1994
457
1654
2003
1902
1741
1494
1597
1129
1146
1589
1989
1093
1881
1288
1848
1371
1508
1035
1813
1335
1634
1102
1262
1637
1048
1807
1270
1528
1670
1803
1202
1294
1570
1640
1484
1872
1140
1207
1485
1781
1778
1772
1334
1267
1045
1194
1873
1441
1557
1414
1123
1980
1527
1591
1665
1916
1662
1139
1973
1258
1041
1134
1609
1554
1455
1124
1478
1938
1759
1281
1410
1511
930
1319
1302
1827
1216
1404
1460
2002
1590
1817
1341
1631
1608
1382
1158
1594
1049
1804
1555
1753
447
1021
1079
609
1766
1327
1851
1052
1737
1175
1043
1945
1573
1113
1724
1203
1856
1682
1623
1135
1015
1423
1412
1315
1375
1895
1351
1530
1758
1445
1518
1819
1567
1305
1919
1952
1432
1099
1476
1883
1871
1900
1442
1393
1214
1283
1538
1391
1008
1109
1621
1876
1998
1032
1324
1927
481
1732
1370
1683
1199
1465
1882
1293
1671
1456
1197
1506
1381
1469
1830
1957
1850
1184
1564
1170
1943
1131
1867
1208
1788
1337
1722
1760
1651
1069
1574
1959
1770
66
1190
1606
1899
1054
980
1693
1173
1479
1333
1579
1720
1782
1971
1438
1178
1306'''
test_input = '''1721
979
366
299
675
1456'''
def sum_check(input_string_test):
inputlines = input_string_test.splitlines()
for linepri in inputlines:
for linesec in inputlines:
for linethr in inputlines:
if int(linepri) + int(linesec) + int(linethr) == 2020:
return int(linepri) * int(linesec) * int(linethr)
print(sum_check(test_input))
print(sum_check(chalenge_input))
| 6.634703
| 70
| 0.751549
| 258
| 1,453
| 4.189922
| 0.868217
| 0.022202
| 0.027752
| 0.037003
| 0.055504
| 0.055504
| 0
| 0
| 0
| 0
| 0
| 0.713911
| 0.213352
| 1,453
| 219
| 71
| 6.634703
| 0.231846
| 0
| 0
| 0
| 0
| 0
| 0.698762
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0.004651
| false
| 0
| 0
| 0
| 0.009302
| 0.009302
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3ced6fbe48c455d53e5baee0065fd6577be73a4b
| 35
|
py
|
Python
|
__init__.py
|
chunlaw/GeoNews
|
836547a51a0ed177f04135979e0a0f5212e88ed7
|
[
"MIT"
] | 3
|
2016-09-05T13:43:59.000Z
|
2016-09-05T15:36:12.000Z
|
__init__.py
|
chunlaw/GeoNews
|
836547a51a0ed177f04135979e0a0f5212e88ed7
|
[
"MIT"
] | null | null | null |
__init__.py
|
chunlaw/GeoNews
|
836547a51a0ed177f04135979e0a0f5212e88ed7
|
[
"MIT"
] | null | null | null |
__all__ = ['models']
import models
| 11.666667
| 20
| 0.714286
| 4
| 35
| 5.25
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 35
| 2
| 21
| 17.5
| 0.7
| 0
| 0
| 0
| 0
| 0
| 0.171429
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 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
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
a7054f9458e6b8299d380a912e48321581ca4d88
| 67
|
py
|
Python
|
patan/exceptions.py
|
tttlh/patan
|
d3e5cfec085e21f963204b5c07a85cf1f029560c
|
[
"MIT"
] | null | null | null |
patan/exceptions.py
|
tttlh/patan
|
d3e5cfec085e21f963204b5c07a85cf1f029560c
|
[
"MIT"
] | null | null | null |
patan/exceptions.py
|
tttlh/patan
|
d3e5cfec085e21f963204b5c07a85cf1f029560c
|
[
"MIT"
] | 1
|
2021-03-01T08:35:34.000Z
|
2021-03-01T08:35:34.000Z
|
# _*_ coding: utf-8 _*_
class IgnoreRequest(Exception):
pass
| 11.166667
| 31
| 0.671642
| 7
| 67
| 5.857143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018868
| 0.208955
| 67
| 5
| 32
| 13.4
| 0.754717
| 0.313433
| 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
|
5952b761ae49fba6ea7b48e61c02b4ec86ac2f3e
| 209
|
py
|
Python
|
Isomorphic Strings.py
|
HalShaw/Leetcode
|
27c52aac5a8ecc5b5f02e54096a001920661b4bb
|
[
"MIT"
] | 1
|
2016-12-22T04:09:25.000Z
|
2016-12-22T04:09:25.000Z
|
Isomorphic Strings.py
|
HalShaw/Leetcode
|
27c52aac5a8ecc5b5f02e54096a001920661b4bb
|
[
"MIT"
] | null | null | null |
Isomorphic Strings.py
|
HalShaw/Leetcode
|
27c52aac5a8ecc5b5f02e54096a001920661b4bb
|
[
"MIT"
] | null | null | null |
class Solution(object):
def isIsomorphic(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
return map(s.index,s)==map(t.index,t)#相同格式都可以用
| 20.9
| 54
| 0.473684
| 26
| 209
| 3.807692
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.37799
| 209
| 9
| 55
| 23.222222
| 0.761538
| 0.22488
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
59801917a885910b96ef72a02bd5c83398abe7ef
| 705
|
py
|
Python
|
tests/acceptance/selene_collection_should_test.py
|
KalinkinaMaria/selene
|
859e1102c85740b52af8d0f08dd6b6490b4bd2ff
|
[
"MIT"
] | null | null | null |
tests/acceptance/selene_collection_should_test.py
|
KalinkinaMaria/selene
|
859e1102c85740b52af8d0f08dd6b6490b4bd2ff
|
[
"MIT"
] | 1
|
2021-06-02T04:21:17.000Z
|
2021-06-02T04:21:17.000Z
|
tests/acceptance/selene_collection_should_test.py
|
vkarpenko/selene
|
4776357430c940be38f38be9981006dd156f9730
|
[
"MIT"
] | null | null | null |
import pytest
from selenium.common.exceptions import TimeoutException
from selene.browser import *
from selene.support.conditions import have
from selene.support.jquery_style_selectors import ss
from tests.acceptance.helpers.helper import get_test_driver
from tests.acceptance.helpers.todomvc import given_active
def setup_module(m):
set_driver(get_test_driver())
def teardown_module(m):
driver().quit()
def test_assure_passes():
given_active("a", "b")
ss("#todo-list>li").should(have.exact_texts("a", "b"))
def test_assure_fails():
given_active("a", "b")
with pytest.raises(TimeoutException):
ss("#todo-list>li").should(have.exact_texts("a.", "b."), timeout=0.1)
| 25.178571
| 77
| 0.741844
| 101
| 705
| 5
| 0.485149
| 0.015842
| 0.067327
| 0.10297
| 0.134653
| 0.134653
| 0.134653
| 0.134653
| 0.134653
| 0.134653
| 0
| 0.003241
| 0.124823
| 705
| 27
| 78
| 26.111111
| 0.815235
| 0
| 0
| 0.111111
| 0
| 0
| 0.051064
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0.055556
| 0.388889
| 0
| 0.611111
| 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
|
59aea2d28a91ba70d32d02acede77adbfb29d245
| 482
|
py
|
Python
|
hieroskopia/utils/evaluator.py
|
AlbCM/hieroskopia
|
59ab7c9c4bb9315b84cd3b184dfc82c3d565e556
|
[
"MIT"
] | null | null | null |
hieroskopia/utils/evaluator.py
|
AlbCM/hieroskopia
|
59ab7c9c4bb9315b84cd3b184dfc82c3d565e556
|
[
"MIT"
] | null | null | null |
hieroskopia/utils/evaluator.py
|
AlbCM/hieroskopia
|
59ab7c9c4bb9315b84cd3b184dfc82c3d565e556
|
[
"MIT"
] | null | null | null |
from pandas import Series
class Evaluator:
series: Series
def __init__(self, series: Series):
self.series = series
self.unique_series = [value for value in self.series.dropna().unique()]
def series_match(self, pattern: str):
return Series(self.unique_series).astype(str).str.match(pattern).eq(True).all()
def series_contains(self, pattern: str):
return Series(self.unique_series).astype(str).str.contains(pattern).eq(True).any()
| 30.125
| 90
| 0.690871
| 65
| 482
| 4.984615
| 0.369231
| 0.123457
| 0.148148
| 0.203704
| 0.333333
| 0.333333
| 0.333333
| 0.333333
| 0.333333
| 0.333333
| 0
| 0
| 0.180498
| 482
| 15
| 91
| 32.133333
| 0.820253
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.3
| false
| 0
| 0.1
| 0.2
| 0.8
| 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
|
59b1e67d3ab1f07d0144d6c862fa57ed097c01dd
| 213
|
py
|
Python
|
expenda_api/monthly_budgets/serializers.py
|
ihsaro/Expenda
|
5eb9115da633b025bd7d2f294deaecdc20674281
|
[
"Apache-2.0"
] | null | null | null |
expenda_api/monthly_budgets/serializers.py
|
ihsaro/Expenda
|
5eb9115da633b025bd7d2f294deaecdc20674281
|
[
"Apache-2.0"
] | null | null | null |
expenda_api/monthly_budgets/serializers.py
|
ihsaro/Expenda
|
5eb9115da633b025bd7d2f294deaecdc20674281
|
[
"Apache-2.0"
] | null | null | null |
from rest_framework.serializers import ModelSerializer
from .models import MonthlyBudget
class MonthlyBudgetSerializer(ModelSerializer):
class Meta:
model = MonthlyBudget
fields = '__all__'
| 21.3
| 54
| 0.760563
| 19
| 213
| 8.263158
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.192488
| 213
| 9
| 55
| 23.666667
| 0.912791
| 0
| 0
| 0
| 0
| 0
| 0.032864
| 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
|
59d047316597f7b57f9b2c7cb27c13bfdbf4f731
| 924
|
py
|
Python
|
mpos/models/milk_collection.py
|
cackharot/ngen-milk-pos
|
4814bdbc6bddf02530ff10e1ec842fb316b0fa91
|
[
"Apache-2.0"
] | null | null | null |
mpos/models/milk_collection.py
|
cackharot/ngen-milk-pos
|
4814bdbc6bddf02530ff10e1ec842fb316b0fa91
|
[
"Apache-2.0"
] | null | null | null |
mpos/models/milk_collection.py
|
cackharot/ngen-milk-pos
|
4814bdbc6bddf02530ff10e1ec842fb316b0fa91
|
[
"Apache-2.0"
] | 1
|
2019-04-24T06:11:47.000Z
|
2019-04-24T06:11:47.000Z
|
from db_manager import db
class MilkCollection(db.Model):
id = db.Column(db.Integer, primary_key=True)
shift = db.Column(db.String(80))
member_id = db.Column(db.Integer, db.ForeignKey('member.id'))
member = db.relationship('Member',
backref=db.backref('milk_collections', lazy='dynamic'))
fat = db.Column(db.Float(precision=2))
snf = db.Column(db.Float(precision=2))
qty = db.Column(db.Float(precision=2))
clr = db.Column(db.Float(precision=2))
aw = db.Column(db.Float(precision=2))
rate = db.Column(db.Float(precision=2))
total = db.Column(db.Float(precision=2))
can_no = db.Column(db.Integer)
created_at = db.Column(db.DateTime, nullable=False)
created_by = db.Column(db.Integer, nullable=False)
updated_at = db.Column(db.DateTime, nullable=True)
updated_by = db.Column(db.Integer, nullable=True)
status = db.Column(db.Boolean, default=True)
| 36.96
| 65
| 0.687229
| 138
| 924
| 4.536232
| 0.333333
| 0.204473
| 0.255591
| 0.167732
| 0.515974
| 0.455272
| 0
| 0
| 0
| 0
| 0
| 0.011568
| 0.158009
| 924
| 25
| 66
| 36.96
| 0.793059
| 0
| 0
| 0
| 0
| 0
| 0.041081
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.05
| 0
| 0.95
| 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
|
59df0b240a9d3b4933dccd2e6dff935a33c55f00
| 33
|
py
|
Python
|
nasbench301/surrogate_models/bananas/bananas_src/bo/dom/__init__.py
|
Basvanstein/nasbench301
|
2984dec45c760d47762f50efe39b71e9d1ac22e0
|
[
"Apache-2.0"
] | 167
|
2019-10-26T19:54:49.000Z
|
2021-12-14T15:25:32.000Z
|
nasbench301/surrogate_models/bananas/bananas_src/bo/dom/__init__.py
|
Basvanstein/nasbench301
|
2984dec45c760d47762f50efe39b71e9d1ac22e0
|
[
"Apache-2.0"
] | 12
|
2020-11-07T12:50:19.000Z
|
2022-01-21T08:52:53.000Z
|
nasbench301/surrogate_models/bananas/bananas_src/bo/dom/__init__.py
|
Basvanstein/nasbench301
|
2984dec45c760d47762f50efe39b71e9d1ac22e0
|
[
"Apache-2.0"
] | 23
|
2019-10-28T12:26:32.000Z
|
2020-10-12T12:31:39.000Z
|
"""
Code for domain classes.
"""
| 8.25
| 24
| 0.606061
| 4
| 33
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 33
| 3
| 25
| 11
| 0.740741
| 0.727273
| 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
|
ab83242c49c298d4076cedd427c62e364bff8f46
| 115
|
py
|
Python
|
angr/procedures/linux_loader/__init__.py
|
Kyle-Kyle/angr
|
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
|
[
"BSD-2-Clause"
] | 6,132
|
2015-08-06T23:24:47.000Z
|
2022-03-31T21:49:34.000Z
|
angr/procedures/linux_loader/__init__.py
|
Kyle-Kyle/angr
|
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
|
[
"BSD-2-Clause"
] | 2,272
|
2015-08-10T08:40:07.000Z
|
2022-03-31T23:46:44.000Z
|
angr/procedures/linux_loader/__init__.py
|
Kyle-Kyle/angr
|
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
|
[
"BSD-2-Clause"
] | 1,155
|
2015-08-06T23:37:39.000Z
|
2022-03-31T05:54:11.000Z
|
"""
These function implement functions or other functionalities provided by the linux userspace dynamic loader
"""
| 28.75
| 106
| 0.808696
| 14
| 115
| 6.642857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.13913
| 115
| 3
| 107
| 38.333333
| 0.939394
| 0.921739
| 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
|
ab89f3062c9b1d258830957560a8a3b7c82d745c
| 2,513
|
py
|
Python
|
app/tile.py
|
kylebisley/starter-snake-python
|
d8a93dc6d50bfa15b9cc0492666bc290c1f78320
|
[
"MIT"
] | 3
|
2020-03-06T02:12:36.000Z
|
2021-03-12T20:23:07.000Z
|
app/tile.py
|
kylebisley/starter-snake-python
|
d8a93dc6d50bfa15b9cc0492666bc290c1f78320
|
[
"MIT"
] | 7
|
2020-02-18T23:07:19.000Z
|
2020-03-06T05:34:41.000Z
|
app/tile.py
|
kylebisley/starter-snake-python
|
d8a93dc6d50bfa15b9cc0492666bc290c1f78320
|
[
"MIT"
] | 2
|
2020-02-26T00:07:53.000Z
|
2020-02-26T03:20:58.000Z
|
class Tile:
"""
represents one space on the board
responsible for storing and giving information about itself in a safe manner,
usually generated by a board object
Attributes:
_x (integer): the x coordinate, should line up with our other methods
_y (integer): the y coordinate etc
visited (boolean): whether or not a tile has been visited, useful for some algorithms
cost: the cost for a-star to travers a tile, can be used to determine if a tile is pathable
Object Methods:
get_coord(): int list, returns a list of the x position, then the y position
get_x(): int, returns the x coordinate of the tile
get_y(): int, returns the y coordinate of the tile
visit(): void, sets visited to true
get_visited(): boolean, returns current state of visited
get_cost(): int, returns cost attribute of the tile
set_cost(): void, allows you to hard set a tiles cost, use with caution
modify_cost(): void, changes the cost by passed in val with some safety conditions
"""
def __init__(self, x_coord, y_coord, path_cost, is_food, debug_char):
self._x = x_coord
self._y = y_coord
self.cost = path_cost
self._is_food = is_food
self._debug_char = debug_char
self.visited = False
def __str__(self):
'''
the to string method
'''
return_string = ""
return_string += "Location: (" + str(self.get_x()) + ", " + str(self.get_y()) + ")\n"
return_string += "Cost: " + str(self.get_cost()) + "\n"
return_string += "Char: " + str(self.get_char())
return return_string
# Getters and setters
def get_x(self):
return self._x
def get_y(self):
return self._y
def set_visited(self, visit):
self.visited = visit
def get_visited(self):
return self.visited
def get_cost(self):
return self.cost
# be careful with this one, make sure to set it back after you're done
def set_cost(self, new_cost):
self.cost = new_cost
# doesn't change "walls" and won't make a pathable tile un-pathable
def modify_cost(self, change_by):
if self.get_cost() < 1:
return
if self.get_cost() + change_by < 1:
self.cost = 1
return
self.cost += change_by
def get_food(self):
return self._is_food
def get_char(self):
return self._debug_char
| 31.810127
| 99
| 0.618782
| 364
| 2,513
| 4.096154
| 0.326923
| 0.046948
| 0.056338
| 0.025486
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.001701
| 0.29805
| 2,513
| 78
| 100
| 32.217949
| 0.843537
| 0.463589
| 0
| 0.054054
| 1
| 0
| 0.024213
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.297297
| false
| 0
| 0
| 0.162162
| 0.567568
| 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
|
ab90d680317bdb320ada2d7ab73d8de4bca113e5
| 46,271
|
py
|
Python
|
custos-client-sdks/custos-python-sdk/custos/server/core/ResourceSecretService_pb2.py
|
hasithajayasundara/airavata-custos
|
2d341849dd8ea8a7c2efec6cc73b01dfd495352e
|
[
"Apache-2.0"
] | null | null | null |
custos-client-sdks/custos-python-sdk/custos/server/core/ResourceSecretService_pb2.py
|
hasithajayasundara/airavata-custos
|
2d341849dd8ea8a7c2efec6cc73b01dfd495352e
|
[
"Apache-2.0"
] | null | null | null |
custos-client-sdks/custos-python-sdk/custos/server/core/ResourceSecretService_pb2.py
|
hasithajayasundara/airavata-custos
|
2d341849dd8ea8a7c2efec6cc73b01dfd495352e
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: ResourceSecretService.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='ResourceSecretService.proto',
package='org.apache.custos.resource.secret.service',
syntax='proto3',
serialized_options=b'P\001',
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x1bResourceSecretService.proto\x12)org.apache.custos.resource.secret.service\"\xda\x03\n\x0eSecretMetadata\x12P\n\nowner_type\x18\x01 \x01(\x0e\x32<.org.apache.custos.resource.secret.service.ResourceOwnerType\x12N\n\rresource_type\x18\x02 \x01(\x0e\x32\x37.org.apache.custos.resource.secret.service.ResourceType\x12I\n\x06source\x18\x03 \x01(\x0e\x32\x39.org.apache.custos.resource.secret.service.ResourceSource\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\r\n\x05value\x18\x05 \x01(\t\x12K\n\x04type\x18\x06 \x01(\x0e\x32=.org.apache.custos.resource.secret.service.ResourceSecretType\x12\x10\n\x08tenantId\x18\x07 \x01(\x03\x12\x10\n\x08owner_id\x18\x08 \x01(\t\x12\x16\n\x0epersisted_time\x18\t \x01(\x03\x12\r\n\x05token\x18\n \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x0b \x01(\t\x12\x11\n\tclient_id\x18\x0c \x01(\t\"\xab\x01\n\x10GetSecretRequest\x12K\n\x08metadata\x18\x01 \x01(\x0b\x32\x39.org.apache.custos.resource.secret.service.SecretMetadata\x12\x10\n\x08tenantId\x18\x02 \x01(\x03\x12\x10\n\x08\x63lientId\x18\x03 \x01(\t\x12\x11\n\tclientSec\x18\x04 \x01(\t\x12\x13\n\x0b\x61\x63\x63\x65ssToken\x18\x05 \x01(\t\"\xc6\x01\n\x15\x43\x65rtificateCredential\x12K\n\x08metadata\x18\x01 \x01(\x0b\x32\x39.org.apache.custos.resource.secret.service.SecretMetadata\x12\x11\n\tx509_cert\x18\x03 \x01(\t\x12\x11\n\tnot_after\x18\x04 \x01(\t\x12\x13\n\x0bprivate_key\x18\x05 \x01(\t\x12\x11\n\tlife_time\x18\x06 \x01(\x03\x12\x12\n\nnot_before\x18\x07 \x01(\t\"s\n\x12PasswordCredential\x12K\n\x08metadata\x18\x01 \x01(\x0b\x32\x39.org.apache.custos.resource.secret.service.SecretMetadata\x12\x10\n\x08password\x18\x03 \x01(\t\"\x99\x01\n\rSSHCredential\x12K\n\x08metadata\x18\x01 \x01(\x0b\x32\x39.org.apache.custos.resource.secret.service.SecretMetadata\x12\x12\n\npassphrase\x18\x03 \x01(\t\x12\x12\n\npublic_key\x18\x04 \x01(\t\x12\x13\n\x0bprivate_key\x18\x05 \x01(\t\"o\n#GetResourceCredentialByTokenRequest\x12\x10\n\x08tenantId\x18\x01 \x01(\x03\x12\r\n\x05token\x18\x02 \x01(\t\x12\x14\n\x0cperformed_by\x18\x03 \x01(\t\x12\x11\n\tclient_id\x18\x04 \x01(\t\"\xd3\x01\n%GetResourceCredentialSummariesRequest\x12\x45\n\x04type\x18\x01 \x01(\x0e\x32\x37.org.apache.custos.resource.secret.service.ResourceType\x12\x19\n\x11\x61\x63\x63\x65ssible_tokens\x18\x02 \x03(\t\x12\x10\n\x08tenantId\x18\x03 \x01(\x03\x12\x10\n\x08owner_id\x18\x04 \x01(\t\x12\x11\n\tall_types\x18\x05 \x01(\x08\x12\x11\n\tclient_id\x18\x06 \x01(\t\"j\n\x1bResourceCredentialSummaries\x12K\n\x08metadata\x18\x01 \x03(\x0b\x32\x39.org.apache.custos.resource.secret.service.SecretMetadata\".\n\x1d\x41\x64\x64ResourceCredentialResponse\x12\r\n\x05token\x18\x01 \x01(\t\"3\n!ResourceCredentialOperationStatus\x12\x0e\n\x06status\x18\x01 \x01(\x08*<\n\x11ResourceOwnerType\x12\x0f\n\x0bTENANT_USER\x10\x00\x12\n\n\x06\x43USTOS\x10\x01\x12\n\n\x06TENANT\x10\x02*Y\n\x0cResourceType\x12\x16\n\x12SERVER_CERTIFICATE\x10\x00\x12\x1b\n\x17JWT_SIGNING_CERTIFICATE\x10\x01\x12\x14\n\x10VAULT_CREDENTIAL\x10\x02*D\n\x0eResourceSource\x12\x08\n\x04KUBE\x10\x00\x12\t\n\x05LOCAL\x10\x01\x12\x0c\n\x08\x45XTERNAL\x10\x02\x12\x0f\n\x0bLETSENCRYPT\x10\x03*A\n\x12ResourceSecretType\x12\x07\n\x03SSH\x10\x00\x12\x0c\n\x08PASSWORD\x10\x01\x12\x14\n\x10X509_CERTIFICATE\x10\x02\x32\x8f\x10\n\x15ResourceSecretService\x12\x83\x01\n\tgetSecret\x12;.org.apache.custos.resource.secret.service.GetSecretRequest\x1a\x39.org.apache.custos.resource.secret.service.SecretMetadata\x12\xa9\x01\n\x1cgetResourceCredentialSummary\x12N.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest\x1a\x39.org.apache.custos.resource.secret.service.SecretMetadata\x12\xbd\x01\n!getAllResourceCredentialSummaries\x12P.org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest\x1a\x46.org.apache.custos.resource.secret.service.ResourceCredentialSummaries\x12\x96\x01\n\x10\x61\x64\x64SSHCredential\x12\x38.org.apache.custos.resource.secret.service.SSHCredential\x1aH.org.apache.custos.resource.secret.service.AddResourceCredentialResponse\x12\xa0\x01\n\x15\x61\x64\x64PasswordCredential\x12=.org.apache.custos.resource.secret.service.PasswordCredential\x1aH.org.apache.custos.resource.secret.service.AddResourceCredentialResponse\x12\xa6\x01\n\x18\x61\x64\x64\x43\x65rtificateCredential\x12@.org.apache.custos.resource.secret.service.CertificateCredential\x1aH.org.apache.custos.resource.secret.service.AddResourceCredentialResponse\x12\x9c\x01\n\x10getSSHCredential\x12N.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest\x1a\x38.org.apache.custos.resource.secret.service.SSHCredential\x12\xa6\x01\n\x15getPasswordCredential\x12N.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest\x1a=.org.apache.custos.resource.secret.service.PasswordCredential\x12\xac\x01\n\x18getCertificateCredential\x12N.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest\x1a@.org.apache.custos.resource.secret.service.CertificateCredential\x12\xb3\x01\n\x13\x64\x65leteSSHCredential\x12N.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest\x1aL.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus\x12\xb3\x01\n\x13\x64\x65letePWDCredential\x12N.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest\x1aL.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus\x12\xbb\x01\n\x1b\x64\x65leteCertificateCredential\x12N.org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest\x1aL.org.apache.custos.resource.secret.service.ResourceCredentialOperationStatusB\x02P\x01\x62\x06proto3'
)
_RESOURCEOWNERTYPE = _descriptor.EnumDescriptor(
name='ResourceOwnerType',
full_name='org.apache.custos.resource.secret.service.ResourceOwnerType',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='TENANT_USER', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='CUSTOS', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='TENANT', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=1735,
serialized_end=1795,
)
_sym_db.RegisterEnumDescriptor(_RESOURCEOWNERTYPE)
ResourceOwnerType = enum_type_wrapper.EnumTypeWrapper(_RESOURCEOWNERTYPE)
_RESOURCETYPE = _descriptor.EnumDescriptor(
name='ResourceType',
full_name='org.apache.custos.resource.secret.service.ResourceType',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='SERVER_CERTIFICATE', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='JWT_SIGNING_CERTIFICATE', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='VAULT_CREDENTIAL', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=1797,
serialized_end=1886,
)
_sym_db.RegisterEnumDescriptor(_RESOURCETYPE)
ResourceType = enum_type_wrapper.EnumTypeWrapper(_RESOURCETYPE)
_RESOURCESOURCE = _descriptor.EnumDescriptor(
name='ResourceSource',
full_name='org.apache.custos.resource.secret.service.ResourceSource',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='KUBE', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='LOCAL', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='EXTERNAL', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='LETSENCRYPT', index=3, number=3,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=1888,
serialized_end=1956,
)
_sym_db.RegisterEnumDescriptor(_RESOURCESOURCE)
ResourceSource = enum_type_wrapper.EnumTypeWrapper(_RESOURCESOURCE)
_RESOURCESECRETTYPE = _descriptor.EnumDescriptor(
name='ResourceSecretType',
full_name='org.apache.custos.resource.secret.service.ResourceSecretType',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='SSH', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='PASSWORD', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='X509_CERTIFICATE', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=1958,
serialized_end=2023,
)
_sym_db.RegisterEnumDescriptor(_RESOURCESECRETTYPE)
ResourceSecretType = enum_type_wrapper.EnumTypeWrapper(_RESOURCESECRETTYPE)
TENANT_USER = 0
CUSTOS = 1
TENANT = 2
SERVER_CERTIFICATE = 0
JWT_SIGNING_CERTIFICATE = 1
VAULT_CREDENTIAL = 2
KUBE = 0
LOCAL = 1
EXTERNAL = 2
LETSENCRYPT = 3
SSH = 0
PASSWORD = 1
X509_CERTIFICATE = 2
_SECRETMETADATA = _descriptor.Descriptor(
name='SecretMetadata',
full_name='org.apache.custos.resource.secret.service.SecretMetadata',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='owner_type', full_name='org.apache.custos.resource.secret.service.SecretMetadata.owner_type', index=0,
number=1, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='resource_type', full_name='org.apache.custos.resource.secret.service.SecretMetadata.resource_type', index=1,
number=2, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='source', full_name='org.apache.custos.resource.secret.service.SecretMetadata.source', index=2,
number=3, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='name', full_name='org.apache.custos.resource.secret.service.SecretMetadata.name', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='value', full_name='org.apache.custos.resource.secret.service.SecretMetadata.value', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='type', full_name='org.apache.custos.resource.secret.service.SecretMetadata.type', index=5,
number=6, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='tenantId', full_name='org.apache.custos.resource.secret.service.SecretMetadata.tenantId', index=6,
number=7, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='owner_id', full_name='org.apache.custos.resource.secret.service.SecretMetadata.owner_id', index=7,
number=8, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='persisted_time', full_name='org.apache.custos.resource.secret.service.SecretMetadata.persisted_time', index=8,
number=9, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='token', full_name='org.apache.custos.resource.secret.service.SecretMetadata.token', index=9,
number=10, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='description', full_name='org.apache.custos.resource.secret.service.SecretMetadata.description', index=10,
number=11, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='client_id', full_name='org.apache.custos.resource.secret.service.SecretMetadata.client_id', index=11,
number=12, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=75,
serialized_end=549,
)
_GETSECRETREQUEST = _descriptor.Descriptor(
name='GetSecretRequest',
full_name='org.apache.custos.resource.secret.service.GetSecretRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='metadata', full_name='org.apache.custos.resource.secret.service.GetSecretRequest.metadata', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='tenantId', full_name='org.apache.custos.resource.secret.service.GetSecretRequest.tenantId', index=1,
number=2, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='clientId', full_name='org.apache.custos.resource.secret.service.GetSecretRequest.clientId', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='clientSec', full_name='org.apache.custos.resource.secret.service.GetSecretRequest.clientSec', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='accessToken', full_name='org.apache.custos.resource.secret.service.GetSecretRequest.accessToken', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=552,
serialized_end=723,
)
_CERTIFICATECREDENTIAL = _descriptor.Descriptor(
name='CertificateCredential',
full_name='org.apache.custos.resource.secret.service.CertificateCredential',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='metadata', full_name='org.apache.custos.resource.secret.service.CertificateCredential.metadata', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='x509_cert', full_name='org.apache.custos.resource.secret.service.CertificateCredential.x509_cert', index=1,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='not_after', full_name='org.apache.custos.resource.secret.service.CertificateCredential.not_after', index=2,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='private_key', full_name='org.apache.custos.resource.secret.service.CertificateCredential.private_key', index=3,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='life_time', full_name='org.apache.custos.resource.secret.service.CertificateCredential.life_time', index=4,
number=6, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='not_before', full_name='org.apache.custos.resource.secret.service.CertificateCredential.not_before', index=5,
number=7, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=726,
serialized_end=924,
)
_PASSWORDCREDENTIAL = _descriptor.Descriptor(
name='PasswordCredential',
full_name='org.apache.custos.resource.secret.service.PasswordCredential',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='metadata', full_name='org.apache.custos.resource.secret.service.PasswordCredential.metadata', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='password', full_name='org.apache.custos.resource.secret.service.PasswordCredential.password', index=1,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=926,
serialized_end=1041,
)
_SSHCREDENTIAL = _descriptor.Descriptor(
name='SSHCredential',
full_name='org.apache.custos.resource.secret.service.SSHCredential',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='metadata', full_name='org.apache.custos.resource.secret.service.SSHCredential.metadata', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='passphrase', full_name='org.apache.custos.resource.secret.service.SSHCredential.passphrase', index=1,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='public_key', full_name='org.apache.custos.resource.secret.service.SSHCredential.public_key', index=2,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='private_key', full_name='org.apache.custos.resource.secret.service.SSHCredential.private_key', index=3,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1044,
serialized_end=1197,
)
_GETRESOURCECREDENTIALBYTOKENREQUEST = _descriptor.Descriptor(
name='GetResourceCredentialByTokenRequest',
full_name='org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='tenantId', full_name='org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.tenantId', index=0,
number=1, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='token', full_name='org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.token', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='performed_by', full_name='org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.performed_by', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='client_id', full_name='org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest.client_id', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1199,
serialized_end=1310,
)
_GETRESOURCECREDENTIALSUMMARIESREQUEST = _descriptor.Descriptor(
name='GetResourceCredentialSummariesRequest',
full_name='org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='type', full_name='org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.type', index=0,
number=1, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='accessible_tokens', full_name='org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.accessible_tokens', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='tenantId', full_name='org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.tenantId', index=2,
number=3, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='owner_id', full_name='org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.owner_id', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='all_types', full_name='org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.all_types', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='client_id', full_name='org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest.client_id', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1313,
serialized_end=1524,
)
_RESOURCECREDENTIALSUMMARIES = _descriptor.Descriptor(
name='ResourceCredentialSummaries',
full_name='org.apache.custos.resource.secret.service.ResourceCredentialSummaries',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='metadata', full_name='org.apache.custos.resource.secret.service.ResourceCredentialSummaries.metadata', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1526,
serialized_end=1632,
)
_ADDRESOURCECREDENTIALRESPONSE = _descriptor.Descriptor(
name='AddResourceCredentialResponse',
full_name='org.apache.custos.resource.secret.service.AddResourceCredentialResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='token', full_name='org.apache.custos.resource.secret.service.AddResourceCredentialResponse.token', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1634,
serialized_end=1680,
)
_RESOURCECREDENTIALOPERATIONSTATUS = _descriptor.Descriptor(
name='ResourceCredentialOperationStatus',
full_name='org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='status', full_name='org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus.status', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1682,
serialized_end=1733,
)
_SECRETMETADATA.fields_by_name['owner_type'].enum_type = _RESOURCEOWNERTYPE
_SECRETMETADATA.fields_by_name['resource_type'].enum_type = _RESOURCETYPE
_SECRETMETADATA.fields_by_name['source'].enum_type = _RESOURCESOURCE
_SECRETMETADATA.fields_by_name['type'].enum_type = _RESOURCESECRETTYPE
_GETSECRETREQUEST.fields_by_name['metadata'].message_type = _SECRETMETADATA
_CERTIFICATECREDENTIAL.fields_by_name['metadata'].message_type = _SECRETMETADATA
_PASSWORDCREDENTIAL.fields_by_name['metadata'].message_type = _SECRETMETADATA
_SSHCREDENTIAL.fields_by_name['metadata'].message_type = _SECRETMETADATA
_GETRESOURCECREDENTIALSUMMARIESREQUEST.fields_by_name['type'].enum_type = _RESOURCETYPE
_RESOURCECREDENTIALSUMMARIES.fields_by_name['metadata'].message_type = _SECRETMETADATA
DESCRIPTOR.message_types_by_name['SecretMetadata'] = _SECRETMETADATA
DESCRIPTOR.message_types_by_name['GetSecretRequest'] = _GETSECRETREQUEST
DESCRIPTOR.message_types_by_name['CertificateCredential'] = _CERTIFICATECREDENTIAL
DESCRIPTOR.message_types_by_name['PasswordCredential'] = _PASSWORDCREDENTIAL
DESCRIPTOR.message_types_by_name['SSHCredential'] = _SSHCREDENTIAL
DESCRIPTOR.message_types_by_name['GetResourceCredentialByTokenRequest'] = _GETRESOURCECREDENTIALBYTOKENREQUEST
DESCRIPTOR.message_types_by_name['GetResourceCredentialSummariesRequest'] = _GETRESOURCECREDENTIALSUMMARIESREQUEST
DESCRIPTOR.message_types_by_name['ResourceCredentialSummaries'] = _RESOURCECREDENTIALSUMMARIES
DESCRIPTOR.message_types_by_name['AddResourceCredentialResponse'] = _ADDRESOURCECREDENTIALRESPONSE
DESCRIPTOR.message_types_by_name['ResourceCredentialOperationStatus'] = _RESOURCECREDENTIALOPERATIONSTATUS
DESCRIPTOR.enum_types_by_name['ResourceOwnerType'] = _RESOURCEOWNERTYPE
DESCRIPTOR.enum_types_by_name['ResourceType'] = _RESOURCETYPE
DESCRIPTOR.enum_types_by_name['ResourceSource'] = _RESOURCESOURCE
DESCRIPTOR.enum_types_by_name['ResourceSecretType'] = _RESOURCESECRETTYPE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
SecretMetadata = _reflection.GeneratedProtocolMessageType('SecretMetadata', (_message.Message,), {
'DESCRIPTOR' : _SECRETMETADATA,
'__module__' : 'ResourceSecretService_pb2'
# @@protoc_insertion_point(class_scope:org.apache.custos.resource.secret.service.SecretMetadata)
})
_sym_db.RegisterMessage(SecretMetadata)
GetSecretRequest = _reflection.GeneratedProtocolMessageType('GetSecretRequest', (_message.Message,), {
'DESCRIPTOR' : _GETSECRETREQUEST,
'__module__' : 'ResourceSecretService_pb2'
# @@protoc_insertion_point(class_scope:org.apache.custos.resource.secret.service.GetSecretRequest)
})
_sym_db.RegisterMessage(GetSecretRequest)
CertificateCredential = _reflection.GeneratedProtocolMessageType('CertificateCredential', (_message.Message,), {
'DESCRIPTOR' : _CERTIFICATECREDENTIAL,
'__module__' : 'ResourceSecretService_pb2'
# @@protoc_insertion_point(class_scope:org.apache.custos.resource.secret.service.CertificateCredential)
})
_sym_db.RegisterMessage(CertificateCredential)
PasswordCredential = _reflection.GeneratedProtocolMessageType('PasswordCredential', (_message.Message,), {
'DESCRIPTOR' : _PASSWORDCREDENTIAL,
'__module__' : 'ResourceSecretService_pb2'
# @@protoc_insertion_point(class_scope:org.apache.custos.resource.secret.service.PasswordCredential)
})
_sym_db.RegisterMessage(PasswordCredential)
SSHCredential = _reflection.GeneratedProtocolMessageType('SSHCredential', (_message.Message,), {
'DESCRIPTOR' : _SSHCREDENTIAL,
'__module__' : 'ResourceSecretService_pb2'
# @@protoc_insertion_point(class_scope:org.apache.custos.resource.secret.service.SSHCredential)
})
_sym_db.RegisterMessage(SSHCredential)
GetResourceCredentialByTokenRequest = _reflection.GeneratedProtocolMessageType('GetResourceCredentialByTokenRequest', (_message.Message,), {
'DESCRIPTOR' : _GETRESOURCECREDENTIALBYTOKENREQUEST,
'__module__' : 'ResourceSecretService_pb2'
# @@protoc_insertion_point(class_scope:org.apache.custos.resource.secret.service.GetResourceCredentialByTokenRequest)
})
_sym_db.RegisterMessage(GetResourceCredentialByTokenRequest)
GetResourceCredentialSummariesRequest = _reflection.GeneratedProtocolMessageType('GetResourceCredentialSummariesRequest', (_message.Message,), {
'DESCRIPTOR' : _GETRESOURCECREDENTIALSUMMARIESREQUEST,
'__module__' : 'ResourceSecretService_pb2'
# @@protoc_insertion_point(class_scope:org.apache.custos.resource.secret.service.GetResourceCredentialSummariesRequest)
})
_sym_db.RegisterMessage(GetResourceCredentialSummariesRequest)
ResourceCredentialSummaries = _reflection.GeneratedProtocolMessageType('ResourceCredentialSummaries', (_message.Message,), {
'DESCRIPTOR' : _RESOURCECREDENTIALSUMMARIES,
'__module__' : 'ResourceSecretService_pb2'
# @@protoc_insertion_point(class_scope:org.apache.custos.resource.secret.service.ResourceCredentialSummaries)
})
_sym_db.RegisterMessage(ResourceCredentialSummaries)
AddResourceCredentialResponse = _reflection.GeneratedProtocolMessageType('AddResourceCredentialResponse', (_message.Message,), {
'DESCRIPTOR' : _ADDRESOURCECREDENTIALRESPONSE,
'__module__' : 'ResourceSecretService_pb2'
# @@protoc_insertion_point(class_scope:org.apache.custos.resource.secret.service.AddResourceCredentialResponse)
})
_sym_db.RegisterMessage(AddResourceCredentialResponse)
ResourceCredentialOperationStatus = _reflection.GeneratedProtocolMessageType('ResourceCredentialOperationStatus', (_message.Message,), {
'DESCRIPTOR' : _RESOURCECREDENTIALOPERATIONSTATUS,
'__module__' : 'ResourceSecretService_pb2'
# @@protoc_insertion_point(class_scope:org.apache.custos.resource.secret.service.ResourceCredentialOperationStatus)
})
_sym_db.RegisterMessage(ResourceCredentialOperationStatus)
DESCRIPTOR._options = None
_RESOURCESECRETSERVICE = _descriptor.ServiceDescriptor(
name='ResourceSecretService',
full_name='org.apache.custos.resource.secret.service.ResourceSecretService',
file=DESCRIPTOR,
index=0,
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_start=2026,
serialized_end=4089,
methods=[
_descriptor.MethodDescriptor(
name='getSecret',
full_name='org.apache.custos.resource.secret.service.ResourceSecretService.getSecret',
index=0,
containing_service=None,
input_type=_GETSECRETREQUEST,
output_type=_SECRETMETADATA,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='getResourceCredentialSummary',
full_name='org.apache.custos.resource.secret.service.ResourceSecretService.getResourceCredentialSummary',
index=1,
containing_service=None,
input_type=_GETRESOURCECREDENTIALBYTOKENREQUEST,
output_type=_SECRETMETADATA,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='getAllResourceCredentialSummaries',
full_name='org.apache.custos.resource.secret.service.ResourceSecretService.getAllResourceCredentialSummaries',
index=2,
containing_service=None,
input_type=_GETRESOURCECREDENTIALSUMMARIESREQUEST,
output_type=_RESOURCECREDENTIALSUMMARIES,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='addSSHCredential',
full_name='org.apache.custos.resource.secret.service.ResourceSecretService.addSSHCredential',
index=3,
containing_service=None,
input_type=_SSHCREDENTIAL,
output_type=_ADDRESOURCECREDENTIALRESPONSE,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='addPasswordCredential',
full_name='org.apache.custos.resource.secret.service.ResourceSecretService.addPasswordCredential',
index=4,
containing_service=None,
input_type=_PASSWORDCREDENTIAL,
output_type=_ADDRESOURCECREDENTIALRESPONSE,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='addCertificateCredential',
full_name='org.apache.custos.resource.secret.service.ResourceSecretService.addCertificateCredential',
index=5,
containing_service=None,
input_type=_CERTIFICATECREDENTIAL,
output_type=_ADDRESOURCECREDENTIALRESPONSE,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='getSSHCredential',
full_name='org.apache.custos.resource.secret.service.ResourceSecretService.getSSHCredential',
index=6,
containing_service=None,
input_type=_GETRESOURCECREDENTIALBYTOKENREQUEST,
output_type=_SSHCREDENTIAL,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='getPasswordCredential',
full_name='org.apache.custos.resource.secret.service.ResourceSecretService.getPasswordCredential',
index=7,
containing_service=None,
input_type=_GETRESOURCECREDENTIALBYTOKENREQUEST,
output_type=_PASSWORDCREDENTIAL,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='getCertificateCredential',
full_name='org.apache.custos.resource.secret.service.ResourceSecretService.getCertificateCredential',
index=8,
containing_service=None,
input_type=_GETRESOURCECREDENTIALBYTOKENREQUEST,
output_type=_CERTIFICATECREDENTIAL,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='deleteSSHCredential',
full_name='org.apache.custos.resource.secret.service.ResourceSecretService.deleteSSHCredential',
index=9,
containing_service=None,
input_type=_GETRESOURCECREDENTIALBYTOKENREQUEST,
output_type=_RESOURCECREDENTIALOPERATIONSTATUS,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='deletePWDCredential',
full_name='org.apache.custos.resource.secret.service.ResourceSecretService.deletePWDCredential',
index=10,
containing_service=None,
input_type=_GETRESOURCECREDENTIALBYTOKENREQUEST,
output_type=_RESOURCECREDENTIALOPERATIONSTATUS,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='deleteCertificateCredential',
full_name='org.apache.custos.resource.secret.service.ResourceSecretService.deleteCertificateCredential',
index=11,
containing_service=None,
input_type=_GETRESOURCECREDENTIALBYTOKENREQUEST,
output_type=_RESOURCECREDENTIALOPERATIONSTATUS,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
])
_sym_db.RegisterServiceDescriptor(_RESOURCESECRETSERVICE)
DESCRIPTOR.services_by_name['ResourceSecretService'] = _RESOURCESECRETSERVICE
# @@protoc_insertion_point(module_scope)
| 48.75764
| 5,647
| 0.78118
| 5,394
| 46,271
| 6.414164
| 0.063404
| 0.043182
| 0.074137
| 0.07645
| 0.751517
| 0.727701
| 0.721371
| 0.68897
| 0.668449
| 0.56853
| 0
| 0.032172
| 0.105206
| 46,271
| 948
| 5,648
| 48.809072
| 0.803468
| 0.027512
| 0
| 0.658757
| 1
| 0.00113
| 0.291543
| 0.261283
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.022599
| 0.00565
| 0
| 0.00565
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
abc47a42e5800e9371627fb5c621e40ef15d6a3b
| 741
|
py
|
Python
|
app/errors/handlers.py
|
kai-jinny/Agile-Development-Project
|
d3879040c3b8a70bf539f3c7db0437da6766c6c4
|
[
"MIT"
] | 2
|
2021-04-08T06:50:49.000Z
|
2021-04-17T12:52:45.000Z
|
app/errors/handlers.py
|
kai-jinny/Agile-Development-Project
|
d3879040c3b8a70bf539f3c7db0437da6766c6c4
|
[
"MIT"
] | 16
|
2021-04-12T08:21:49.000Z
|
2021-05-18T07:21:38.000Z
|
app/errors/handlers.py
|
kai-jinny/Agile-Development-Project
|
d3879040c3b8a70bf539f3c7db0437da6766c6c4
|
[
"MIT"
] | 1
|
2021-04-17T12:54:34.000Z
|
2021-04-17T12:54:34.000Z
|
from flask import render_template
from app import db
from app.errors import bp
@bp.app_errorhandler(400)
def not_found_error(error):
return render_template('errors/400.html'), 400
@bp.app_errorhandler(401)
def not_found_error(error):
return render_template('errors/401.html'), 401
@bp.app_errorhandler(403)
def not_found_error(error):
return render_template('errors/403.html'), 403
@bp.app_errorhandler(404)
def not_found_error(error):
return render_template('errors/404.html'), 404
@bp.app_errorhandler(409)
def not_found_error(error):
return render_template('errors/409.html'), 409
@bp.app_errorhandler(500)
def internal_error(error):
db.session.rollback()
return render_template('errors/500.html'), 500
| 24.7
| 50
| 0.766532
| 112
| 741
| 4.857143
| 0.223214
| 0.180147
| 0.1875
| 0.286765
| 0.431985
| 0.431985
| 0.431985
| 0.431985
| 0.431985
| 0
| 0
| 0.082192
| 0.11336
| 741
| 30
| 51
| 24.7
| 0.745814
| 0
| 0
| 0.227273
| 0
| 0
| 0.121457
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.272727
| false
| 0
| 0.136364
| 0.227273
| 0.681818
| 0
| 0
| 0
| 0
| null | 0
| 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
| 1
| 0
| 0
|
0
| 4
|
abd45386c13bbf86460d0c5870b53d4590ef63ba
| 933
|
py
|
Python
|
clients/client/python/test/test_volume.py
|
simoneromano96/sdk
|
a6113d0daefbbb803790297e4b242d4c7cbbcb22
|
[
"Apache-2.0"
] | null | null | null |
clients/client/python/test/test_volume.py
|
simoneromano96/sdk
|
a6113d0daefbbb803790297e4b242d4c7cbbcb22
|
[
"Apache-2.0"
] | null | null | null |
clients/client/python/test/test_volume.py
|
simoneromano96/sdk
|
a6113d0daefbbb803790297e4b242d4c7cbbcb22
|
[
"Apache-2.0"
] | null | null | null |
"""
Ory APIs
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501
The version of the OpenAPI document: v0.0.1-alpha.3
Contact: support@ory.sh
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import ory_client
from ory_client.model.volume_usage_data import VolumeUsageData
globals()['VolumeUsageData'] = VolumeUsageData
from ory_client.model.volume import Volume
class TestVolume(unittest.TestCase):
"""Volume unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testVolume(self):
"""Test Volume"""
# FIXME: construct object with mandatory attributes with example values
# model = Volume() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()
| 23.923077
| 194
| 0.697749
| 118
| 933
| 5.40678
| 0.635593
| 0.04232
| 0.040752
| 0.056426
| 0.075235
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013736
| 0.219721
| 933
| 38
| 195
| 24.552632
| 0.862637
| 0.49089
| 0
| 0.2
| 0
| 0
| 0.052874
| 0
| 0
| 0
| 0
| 0.026316
| 0
| 1
| 0.2
| false
| 0.2
| 0.333333
| 0
| 0.6
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
abfe5cbf9100c74ccd8fce63d1076b3d06dffdca
| 93
|
py
|
Python
|
protocols/apps.py
|
OhEvolve/LabBio
|
4495f70ea544e0c7208d51abcb1469adcb84fc1b
|
[
"MIT"
] | null | null | null |
protocols/apps.py
|
OhEvolve/LabBio
|
4495f70ea544e0c7208d51abcb1469adcb84fc1b
|
[
"MIT"
] | null | null | null |
protocols/apps.py
|
OhEvolve/LabBio
|
4495f70ea544e0c7208d51abcb1469adcb84fc1b
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class ProtocolsConfig(AppConfig):
name = 'protocols'
| 15.5
| 33
| 0.763441
| 10
| 93
| 7.1
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16129
| 93
| 5
| 34
| 18.6
| 0.910256
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 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
|
f9eebbfc0db7d11ed30b9b7cf32f005e8751ccbd
| 39
|
py
|
Python
|
lang/Python/singly-linked-list-traversal-1.py
|
ethansaxenian/RosettaDecode
|
8ea1a42a5f792280b50193ad47545d14ee371fb7
|
[
"MIT"
] | null | null | null |
lang/Python/singly-linked-list-traversal-1.py
|
ethansaxenian/RosettaDecode
|
8ea1a42a5f792280b50193ad47545d14ee371fb7
|
[
"MIT"
] | null | null | null |
lang/Python/singly-linked-list-traversal-1.py
|
ethansaxenian/RosettaDecode
|
8ea1a42a5f792280b50193ad47545d14ee371fb7
|
[
"MIT"
] | null | null | null |
for node in lst:
print(node.value)
| 13
| 21
| 0.666667
| 7
| 39
| 3.714286
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.230769
| 39
| 2
| 22
| 19.5
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
f9fd62eb176a26c3629cfbc22be516bafd9ae4e3
| 229
|
py
|
Python
|
cs585/HW1/Eval.py
|
tiaotiao/applets
|
c583a4405ed18c7d74bfba49884525c43d114398
|
[
"MIT"
] | null | null | null |
cs585/HW1/Eval.py
|
tiaotiao/applets
|
c583a4405ed18c7d74bfba49884525c43d114398
|
[
"MIT"
] | null | null | null |
cs585/HW1/Eval.py
|
tiaotiao/applets
|
c583a4405ed18c7d74bfba49884525c43d114398
|
[
"MIT"
] | null | null | null |
import numpy as np
class Eval:
def __init__(self, pred, gold):
self.pred = pred
self.gold = gold
def Accuracy(self):
return np.sum(np.equal(self.pred, self.gold)) / float(len(self.gold))
| 22.9
| 77
| 0.593886
| 33
| 229
| 4
| 0.515152
| 0.181818
| 0.181818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.283843
| 229
| 9
| 78
| 25.444444
| 0.804878
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.142857
| 0.142857
| 0.714286
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
e6184b491c0b4ec3b27d15dd525a54b420ab6962
| 109
|
py
|
Python
|
tests/python-reference/dict/dict-bool.py
|
jpolitz/lambda-py-paper
|
746ef63fc1123714b4adaf78119028afbea7bd76
|
[
"Apache-2.0"
] | 25
|
2015-04-16T04:31:49.000Z
|
2022-03-10T15:53:28.000Z
|
tests/python-reference/dict/dict-bool.py
|
jpolitz/lambda-py-paper
|
746ef63fc1123714b4adaf78119028afbea7bd76
|
[
"Apache-2.0"
] | 1
|
2018-11-21T22:40:02.000Z
|
2018-11-26T17:53:11.000Z
|
tests/python-reference/dict/dict-bool.py
|
jpolitz/lambda-py-paper
|
746ef63fc1123714b4adaf78119028afbea7bd76
|
[
"Apache-2.0"
] | 1
|
2021-03-26T03:36:19.000Z
|
2021-03-26T03:36:19.000Z
|
___assertIs(not {}, True)
___assertTrue({1: 2})
___assertIs(bool({}), False)
___assertIs(bool({1: 2}), True)
| 21.8
| 31
| 0.678899
| 14
| 109
| 4.428571
| 0.571429
| 0.064516
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.040404
| 0.091743
| 109
| 4
| 32
| 27.25
| 0.585859
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| true
| 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
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e61e22d90752c055fa760632a6070ebc75d3da15
| 228
|
py
|
Python
|
utils/alerts.py
|
RealDebian/Palpeo
|
23be184831a3c529cf933277944e7aacda08cdad
|
[
"MIT"
] | null | null | null |
utils/alerts.py
|
RealDebian/Palpeo
|
23be184831a3c529cf933277944e7aacda08cdad
|
[
"MIT"
] | null | null | null |
utils/alerts.py
|
RealDebian/Palpeo
|
23be184831a3c529cf933277944e7aacda08cdad
|
[
"MIT"
] | null | null | null |
from colorama import Fore
good = Fore.GREEN + '[*]' + Fore.RESET
bad = Fore.RED + '[!]' + Fore.RESET
warning = Fore.RED + '[$]' + Fore.RESET
excellent = Fore.CYAN + '[$]' + Fore.RESET
debug_point = Fore.RED + '{*}' + Fore.RESET
| 32.571429
| 43
| 0.609649
| 30
| 228
| 4.6
| 0.466667
| 0.326087
| 0.23913
| 0.347826
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.171053
| 228
| 7
| 43
| 32.571429
| 0.730159
| 0
| 0
| 0
| 0
| 0
| 0.065502
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.166667
| 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
|
e637df68b541d6e5860c6604066ab8cbf8d7df24
| 164
|
py
|
Python
|
xs/nn/__init__.py
|
eLeVeNnN/xshinnosuke
|
69da91e0ea5042437edfc31c0e6ff9ef394c6cc9
|
[
"MIT"
] | 290
|
2020-07-06T02:13:12.000Z
|
2021-01-04T14:23:39.000Z
|
xs/nn/__init__.py
|
E1eveNn/xshinnosuke
|
69da91e0ea5042437edfc31c0e6ff9ef394c6cc9
|
[
"MIT"
] | 1
|
2020-12-03T11:11:48.000Z
|
2020-12-03T11:11:48.000Z
|
xs/nn/__init__.py
|
E1eveNn/xshinnosuke
|
69da91e0ea5042437edfc31c0e6ff9ef394c6cc9
|
[
"MIT"
] | 49
|
2020-07-16T00:27:47.000Z
|
2020-11-26T03:03:14.000Z
|
from .objectives import MSELoss, CrossEntropyLoss
from .models import Sequential, Model, Module
from .grad_fn import Parameter, Tensor
from .td_functional import *
| 32.8
| 49
| 0.823171
| 21
| 164
| 6.333333
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121951
| 164
| 4
| 50
| 41
| 0.923611
| 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
|
e667758e13389c3d1155786a731f2598edf57be3
| 981
|
py
|
Python
|
test/test_theaigame_bot.py
|
gnmerritt/poker
|
5e7241efac1b0757f39c28f6d485f4d79960095b
|
[
"MIT"
] | 5
|
2015-04-09T02:45:12.000Z
|
2018-06-27T05:34:41.000Z
|
test/test_theaigame_bot.py
|
gnmerritt/poker
|
5e7241efac1b0757f39c28f6d485f4d79960095b
|
[
"MIT"
] | null | null | null |
test/test_theaigame_bot.py
|
gnmerritt/poker
|
5e7241efac1b0757f39c28f6d485f4d79960095b
|
[
"MIT"
] | 2
|
2017-09-19T04:49:07.000Z
|
2018-12-09T19:58:18.000Z
|
import unittest
from pokeher.theaigame_bot import TheAiGameBot
class QuietBot(TheAiGameBot):
def log(self, msg):
pass
class TheAiGameBotTest(unittest.TestCase):
"""Test that the bot class is instantiated properly and has all the methods
that it's supposed to"""
def setUp(self):
self.bot = QuietBot(None, None, None)
def test_bot_instantiation(self):
"""Tests instantiating the bot"""
self.assertTrue(self.bot)
def test_bot_methods(self):
"""Tests that the bot has all the I/O methods"""
self.assertTrue(self.bot.run)
self.assertTrue(self.bot.say)
self.assertTrue(self.bot.log)
def test_mixed_in_methods(self):
"""Tests that the bot has all the parser & action methods"""
self.assertTrue(self.bot.set_up_parser)
self.assertTrue(self.bot.bet)
self.assertTrue(self.bot.fold)
self.assertTrue(self.bot.call)
self.assertTrue(self.bot.check)
| 31.645161
| 79
| 0.670744
| 133
| 981
| 4.87218
| 0.37594
| 0.108025
| 0.25
| 0.291667
| 0.194444
| 0.108025
| 0.108025
| 0.108025
| 0.108025
| 0
| 0
| 0
| 0.2263
| 981
| 30
| 80
| 32.7
| 0.853755
| 0.224261
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.45
| 1
| 0.25
| false
| 0.05
| 0.1
| 0
| 0.45
| 0
| 0
| 0
| 0
| null | 0
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0567c00611e59a9c33c0140344f11e8c956bd4aa
| 278
|
py
|
Python
|
python/testData/completion/slots.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/completion/slots.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/completion/slots.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
class A(object):
__slots__ = ['foo', 'bar']
a = A()
a.ba<caret>
class B(object):
__slots__ = ['bar']
class C(B):
pass
C().ba<caret>
class D(object):
pass
class E(D):
__slots__ = ['bar']
E().ba<caret>
class F:
__slots__ = ['baz']
F().ba<caret>
| 9.586207
| 30
| 0.535971
| 42
| 278
| 3.166667
| 0.357143
| 0.210526
| 0.270677
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.248201
| 278
| 29
| 31
| 9.586207
| 0.636364
| 0
| 0
| 0.235294
| 0
| 0
| 0.053763
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.117647
| 0
| null | null | 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
0588430e94f2e77e31265668a8e628ff493b0db0
| 24
|
py
|
Python
|
tests/components/devcon/__init__.py
|
pcaston/Open-Peer-Power
|
81805d455c548e0f86b0f7fedc793b588b2afdfd
|
[
"Apache-2.0"
] | null | null | null |
tests/components/devcon/__init__.py
|
pcaston/Open-Peer-Power
|
81805d455c548e0f86b0f7fedc793b588b2afdfd
|
[
"Apache-2.0"
] | null | null | null |
tests/components/devcon/__init__.py
|
pcaston/Open-Peer-Power
|
81805d455c548e0f86b0f7fedc793b588b2afdfd
|
[
"Apache-2.0"
] | 1
|
2019-04-24T14:10:08.000Z
|
2019-04-24T14:10:08.000Z
|
"""Tests for Devcon."""
| 12
| 23
| 0.583333
| 3
| 24
| 4.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 24
| 1
| 24
| 24
| 0.666667
| 0.708333
| 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
|
0598570bbddd550266f613922fec2e9624969d88
| 365
|
py
|
Python
|
mercury_engine_data_structures/adapters/enum_adapter.py
|
Antidote/mercury-engine-data-structures
|
d8e8ba1eacaa37f4fc76b78bb208ffc2cde61f64
|
[
"MIT"
] | 2
|
2021-06-18T16:47:00.000Z
|
2021-07-06T22:36:32.000Z
|
mercury_engine_data_structures/adapters/enum_adapter.py
|
Antidote/mercury-engine-data-structures
|
d8e8ba1eacaa37f4fc76b78bb208ffc2cde61f64
|
[
"MIT"
] | 1
|
2021-10-01T20:26:01.000Z
|
2021-10-01T20:26:01.000Z
|
mercury_engine_data_structures/adapters/enum_adapter.py
|
Antidote/mercury-engine-data-structures
|
d8e8ba1eacaa37f4fc76b78bb208ffc2cde61f64
|
[
"MIT"
] | 5
|
2021-08-23T17:01:01.000Z
|
2021-11-20T03:57:14.000Z
|
from construct import Adapter, Int32ub, Enum
class EnumAdapter(Adapter):
def __init__(self, enum_class, subcon=Int32ub):
super().__init__(Enum(subcon, enum_class))
self._enum_class = enum_class
def _decode(self, obj, context, path):
return self._enum_class[obj]
def _encode(self, obj, context, path):
return obj.name
| 26.071429
| 51
| 0.682192
| 47
| 365
| 4.93617
| 0.425532
| 0.232759
| 0.168103
| 0.155172
| 0.206897
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013986
| 0.216438
| 365
| 13
| 52
| 28.076923
| 0.797203
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.111111
| 0.222222
| 0.777778
| 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
|
556a5954e27e88a1963c24a16323e7c269ae5148
| 2,556
|
py
|
Python
|
pystratis/api/balances/tests/test_balances.py
|
madrazzl3/pystratis
|
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
|
[
"MIT"
] | null | null | null |
pystratis/api/balances/tests/test_balances.py
|
madrazzl3/pystratis
|
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
|
[
"MIT"
] | null | null | null |
pystratis/api/balances/tests/test_balances.py
|
madrazzl3/pystratis
|
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
|
[
"MIT"
] | null | null | null |
import pytest
from pytest_mock import MockerFixture
from pystratis.api.balances import Balances
from pystratis.core.types import Address
from pystratis.core.networks import CirrusMain
def test_all_strax_endpoints_implemented(strax_swagger_json):
paths = [key.lower() for key in strax_swagger_json['paths']]
for endpoint in paths:
if Balances.route + '/' in endpoint:
assert endpoint in Balances.endpoints
def test_all_cirrus_endpoints_implemented(cirrus_swagger_json):
paths = [key.lower() for key in cirrus_swagger_json['paths']]
for endpoint in paths:
if Balances.route + '/' in endpoint:
assert endpoint in Balances.endpoints
def test_all_interfluxstrax_endpoints_implemented(interfluxstrax_swagger_json):
paths = [key.lower() for key in interfluxstrax_swagger_json['paths']]
for endpoint in paths:
if Balances.route + '/' in endpoint:
assert endpoint in Balances.endpoints
def test_all_interfluxcirrus_endpoints_implemented(interfluxcirrus_swagger_json):
paths = [key.lower() for key in interfluxcirrus_swagger_json['paths']]
for endpoint in paths:
if Balances.route + '/' in endpoint:
assert endpoint in Balances.endpoints
@pytest.mark.parametrize('network', [CirrusMain()], ids=['CirrusMain'])
def test_overamountatheight(mocker: MockerFixture, network, overamountatheightresponse):
data = overamountatheightresponse(network)
mocker.patch.object(Balances, 'get', return_value=data)
balances = Balances(network=network, baseuri=mocker.MagicMock(), session=mocker.MagicMock())
response = balances.over_amount_at_height(block_height=10, amount=10)
assert len(response) == len(data)
for i in range(len(response)):
assert isinstance(response[i], Address)
assert response[i] == data[i]
# noinspection PyUnresolvedReferences
balances.get.assert_called_once()
@pytest.mark.parametrize('network', [CirrusMain()], ids=['CirrusMain'])
def test_overamountatheight_none(mocker: MockerFixture, network):
data = []
mocker.patch.object(Balances, 'get', return_value=data)
balances = Balances(network=network, baseuri=mocker.MagicMock(), session=mocker.MagicMock())
response = balances.over_amount_at_height(block_height=10, amount=10)
assert len(response) == len(data)
for i in range(len(response)):
assert isinstance(response[i], Address)
assert response[i] == data[i]
# noinspection PyUnresolvedReferences
balances.get.assert_called_once()
| 38.727273
| 96
| 0.736307
| 303
| 2,556
| 6.046205
| 0.214521
| 0.048035
| 0.069869
| 0.041485
| 0.731441
| 0.731441
| 0.731441
| 0.731441
| 0.661572
| 0.661572
| 0
| 0.00374
| 0.163146
| 2,556
| 65
| 97
| 39.323077
| 0.852735
| 0.027778
| 0
| 0.638298
| 0
| 0
| 0.025786
| 0
| 0
| 0
| 0
| 0
| 0.255319
| 1
| 0.12766
| false
| 0
| 0.106383
| 0
| 0.234043
| 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
|
55915bb2fe7f5c79e7cd44acfd89dd079dc66443
| 2,658
|
py
|
Python
|
Python/Euler 01 - 10.py
|
jiegillet/project-euler
|
3b530e11af00e9d9eccb7aa41ed8018ee6d7b472
|
[
"MIT"
] | null | null | null |
Python/Euler 01 - 10.py
|
jiegillet/project-euler
|
3b530e11af00e9d9eccb7aa41ed8018ee6d7b472
|
[
"MIT"
] | null | null | null |
Python/Euler 01 - 10.py
|
jiegillet/project-euler
|
3b530e11af00e9d9eccb7aa41ed8018ee6d7b472
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# encoding: utf-8
"""
untitled.py
Created by Jérémie on 2013-10-26.
Copyright (c) 2013 __MyCompanyName__. All rights reserved.
"""
"""
# Problem 1
lim=1000
s=0
for i in range(lim):
if i%3==0 or i%5==0:
s+=i
print s
print sum([x for x in range(1000) if x % 3== 0 or x % 5== 0])
"""
"""
# Problem 2
lim=4000000
f1,f2,s=1,1,0
while f2<lim:
f1,f2=f2,f1+f2
if f2%2==0: s+=f2
print s
"""
""""
# Problem 3
num=600851475143
while num>1:
div=2
while num%div!=0 and div!=num:
div+=1
num/=div
print div
"""
"""
# Problem 4
max=0
for i in range(999,99,-1):
for j in range(999,i-99,-1):
if str(i*j)==str(i*j)[::-1] and i>max:
max=i*j
print max
"""
"""
# Problem 5
print 2**4*3**2*5*7*11*13*17*19
"""
"""
# Problem 6
print sum(range(1,101))**2- sum([e**2 for e in range(1,101)])
"""
"""
# Problem 7
primes=[2,3]
n=3
# while len(primes)<10001:
# n+=2
# if not 0 in [n%p for p in primes]:
# primes.append(n)
# print primes[-1] # 45 seconds
while len(primes)<100001:
n+=2
p=True
for p in primes:
if p*p>n: break
if n%p==0: p=False; break
if p: primes.append(n)
print primes[-1] # .3 seconds for 10001 # 6 second for 100001
"""
"""
# Problem 8
num=str(7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452387493035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776657273330010533678812202354218097512545405947522435258490771167055601360483958644670632441572215539753697817977846174064955149290862569321978468622482839722413756570560574902614079729686524145351004748216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586178664583591245665294765456828489128831426076900422421902267105562632111110937054421750694165896040807198403850962455444362981230987879927244284909188845801561660979191338754992005240636899125607176060588611646710940507754100225698315520005593572972571636269561882670428252483600823257530420752963450)
print max( int(num[i])*int(num[i+1])*int(num[i+2])*int(num[i+3])*int(num[i+4]) for i in range(len(num)-4))
"""
"""
# Problem 9
sol=0
for i in range(1000,2,-1):
for j in range(i-1,2,-1):
if i**2==j**2+(1000-i-j)**2:
sol=i*j*(1000-i-j)
break
if sol>0: break
print sol
"""
#Problem 10
primes=[2,3]
n=3
while primes[-1]<2E6:
n+=2
p=True
for p in primes:
if p*p>n: break
if n%p==0: p=False; break
if p: primes.append(n)
print sum(primes)-primes[-1]
| 25.557692
| 1,009
| 0.748683
| 361
| 2,658
| 5.501385
| 0.224377
| 0.028197
| 0.017623
| 0.022155
| 0.127895
| 0.097684
| 0.066465
| 0.066465
| 0.066465
| 0.066465
| 0
| 0.504244
| 0.113619
| 2,658
| 103
| 1,010
| 25.805825
| 0.33871
| 0.017306
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
559af5721a6a15c927e5d10a7e185b857bbef70d
| 142
|
py
|
Python
|
{{cookiecutter.project_name}}/service/worker/beat.py
|
ProjectTemplates/python-backend-service
|
5266916e54faaf236bc972a2cd7bb1217e8a8625
|
[
"MIT"
] | 7
|
2020-07-28T18:45:20.000Z
|
2021-12-11T23:33:49.000Z
|
{{cookiecutter.project_name}}/service/worker/beat.py
|
ProjectTemplates/python-fastapi-backend
|
5266916e54faaf236bc972a2cd7bb1217e8a8625
|
[
"MIT"
] | null | null | null |
{{cookiecutter.project_name}}/service/worker/beat.py
|
ProjectTemplates/python-fastapi-backend
|
5266916e54faaf236bc972a2cd7bb1217e8a8625
|
[
"MIT"
] | 1
|
2020-05-10T20:26:02.000Z
|
2020-05-10T20:26:02.000Z
|
from conf import celery_settings
from .app import app
@app.on_after_configure.connect
def setup_periodic_tasks(sender, **kwargs):
pass
| 15.777778
| 43
| 0.788732
| 21
| 142
| 5.095238
| 0.809524
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140845
| 142
| 8
| 44
| 17.75
| 0.877049
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.2
| 0.4
| 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
| 1
| 0
| 0
| 0
|
0
| 4
|
55bc6334d6372aec8c3f097cf63d231873013d04
| 1,351
|
py
|
Python
|
peering/migrations/0051_auto_20190818_1816.py
|
schiederme/peering-manager
|
2d29427fd4f2b91a5208f31e1a7ad69eaf82924c
|
[
"Apache-2.0"
] | 173
|
2020-08-08T15:38:08.000Z
|
2022-03-21T11:35:25.000Z
|
peering/migrations/0051_auto_20190818_1816.py
|
schiederme/peering-manager
|
2d29427fd4f2b91a5208f31e1a7ad69eaf82924c
|
[
"Apache-2.0"
] | 247
|
2017-12-26T12:55:34.000Z
|
2020-08-08T11:57:35.000Z
|
peering/migrations/0051_auto_20190818_1816.py
|
schiederme/peering-manager
|
2d29427fd4f2b91a5208f31e1a7ad69eaf82924c
|
[
"Apache-2.0"
] | 63
|
2017-10-13T06:46:05.000Z
|
2020-08-08T00:41:57.000Z
|
# Generated by Django 2.2.4 on 2019-08-18 16:16
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("peering", "0050_auto_20190806_2159")]
operations = [
migrations.RenameField(
model_name="autonomoussystem", old_name="comment", new_name="comments"
),
migrations.RenameField(
model_name="bgpgroup", old_name="comment", new_name="comments"
),
migrations.RenameField(
model_name="community", old_name="comment", new_name="comments"
),
migrations.RenameField(
model_name="directpeeringsession", old_name="comment", new_name="comments"
),
migrations.RenameField(
model_name="internetexchange", old_name="comment", new_name="comments"
),
migrations.RenameField(
model_name="internetexchangepeeringsession",
old_name="comment",
new_name="comments",
),
migrations.RenameField(
model_name="router", old_name="comment", new_name="comments"
),
migrations.RenameField(
model_name="routingpolicy", old_name="comment", new_name="comments"
),
migrations.RenameField(
model_name="template", old_name="comment", new_name="comments"
),
]
| 32.95122
| 86
| 0.6151
| 127
| 1,351
| 6.307087
| 0.307087
| 0.235955
| 0.292135
| 0.337079
| 0.625468
| 0.625468
| 0.589263
| 0.589263
| 0.589263
| 0.589263
| 0
| 0.031282
| 0.266469
| 1,351
| 40
| 87
| 33.775
| 0.776993
| 0.033309
| 0
| 0.529412
| 1
| 0
| 0.22316
| 0.040644
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.029412
| 0
| 0.117647
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e9480334f3e96fb87240d084ea753201b541d895
| 367
|
py
|
Python
|
Python/Effective Python/item19.py
|
Vayne-Lover/Effective
|
05f0a08bec8eb112fdb4e7a489d0e33bc81522ff
|
[
"MIT"
] | null | null | null |
Python/Effective Python/item19.py
|
Vayne-Lover/Effective
|
05f0a08bec8eb112fdb4e7a489d0e33bc81522ff
|
[
"MIT"
] | null | null | null |
Python/Effective Python/item19.py
|
Vayne-Lover/Effective
|
05f0a08bec8eb112fdb4e7a489d0e33bc81522ff
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
def remainder(number,divisor):
return number % divisor
def flow_rate(weight,time,period=1):
return weight/time*period
if __name__=="__main__":
print(remainder(20,7))
print(remainder(20,divisor=7))
print(remainder(number=20,divisor=7))
print(remainder(divisor=7,number=20))
print(flow_rate(0.5,3))
print(flow_rate(6,3,100))
| 21.588235
| 39
| 0.708447
| 57
| 367
| 4.368421
| 0.438596
| 0.2249
| 0.180723
| 0.120482
| 0.192771
| 0
| 0
| 0
| 0
| 0
| 0
| 0.067901
| 0.117166
| 367
| 16
| 40
| 22.9375
| 0.700617
| 0.057221
| 0
| 0
| 0
| 0
| 0.023256
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.181818
| false
| 0
| 0
| 0.181818
| 0.363636
| 0.545455
| 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
| 0
| 0
| 1
| 0
| 1
|
0
| 4
|
e96abeb27deaf4502ac786cdfa144e452aa4f116
| 271
|
py
|
Python
|
mordor_magic/mordor_app/admin.py
|
Far4Ru/mordor-magic-2
|
7082ae8cc0b12154f74f4f58f9cad8f0325a8f57
|
[
"MIT"
] | null | null | null |
mordor_magic/mordor_app/admin.py
|
Far4Ru/mordor-magic-2
|
7082ae8cc0b12154f74f4f58f9cad8f0325a8f57
|
[
"MIT"
] | null | null | null |
mordor_magic/mordor_app/admin.py
|
Far4Ru/mordor-magic-2
|
7082ae8cc0b12154f74f4f58f9cad8f0325a8f57
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import *
admin.site.register(CharacterEvent)
admin.site.register(Event)
admin.site.register(CharacterOwner)
admin.site.register(Character)
admin.site.register(User, UserAdmin)
| 27.1
| 47
| 0.830258
| 36
| 271
| 6.25
| 0.416667
| 0.2
| 0.377778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.070111
| 271
| 9
| 48
| 30.111111
| 0.892857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.375
| 0
| 0.375
| 0
| 0
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
e9869e465ad91d2e5ca0674a3741999310e41b5c
| 95
|
py
|
Python
|
calheatmap/apps.py
|
acdh-oeaw/gtrans
|
6f56b1d09de0cad503273bf8a01cd81e25220524
|
[
"MIT"
] | 1
|
2020-03-15T16:14:02.000Z
|
2020-03-15T16:14:02.000Z
|
calheatmap/apps.py
|
acdh-oeaw/gtrans
|
6f56b1d09de0cad503273bf8a01cd81e25220524
|
[
"MIT"
] | 14
|
2018-11-09T08:34:23.000Z
|
2022-02-10T08:15:53.000Z
|
calheatmap/apps.py
|
acdh-oeaw/gtrans
|
6f56b1d09de0cad503273bf8a01cd81e25220524
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class CalheatmapConfig(AppConfig):
name = 'calheatmap'
| 15.833333
| 34
| 0.768421
| 10
| 95
| 7.3
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 95
| 5
| 35
| 19
| 0.9125
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 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
|
e987c807f21477bc86678b22246d01c6112ae5c0
| 50
|
py
|
Python
|
classification/cifar10/losses/__init__.py
|
AkibMashrur/Ensembling
|
bdf2f601be90070fed10db62a9c15506e1df37b6
|
[
"Apache-2.0"
] | null | null | null |
classification/cifar10/losses/__init__.py
|
AkibMashrur/Ensembling
|
bdf2f601be90070fed10db62a9c15506e1df37b6
|
[
"Apache-2.0"
] | null | null | null |
classification/cifar10/losses/__init__.py
|
AkibMashrur/Ensembling
|
bdf2f601be90070fed10db62a9c15506e1df37b6
|
[
"Apache-2.0"
] | null | null | null |
from .contrastive import SupConLoss, NoiseConLoss
| 25
| 49
| 0.86
| 5
| 50
| 8.6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 50
| 1
| 50
| 50
| 0.955556
| 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
|
e9be790eafe58cf7aaa0017314b055dd2bdf4ea4
| 79
|
py
|
Python
|
core/devices/__init__.py
|
kisonho/torchmanager
|
ac01c61a132238bc0d39bf2173dfd37f44dbbf30
|
[
"BSD-2-Clause"
] | null | null | null |
core/devices/__init__.py
|
kisonho/torchmanager
|
ac01c61a132238bc0d39bf2173dfd37f44dbbf30
|
[
"BSD-2-Clause"
] | null | null | null |
core/devices/__init__.py
|
kisonho/torchmanager
|
ac01c61a132238bc0d39bf2173dfd37f44dbbf30
|
[
"BSD-2-Clause"
] | null | null | null |
from .devices import data_parallel, empty_cache, find, move_to_device, CPU, GPU
| 79
| 79
| 0.822785
| 13
| 79
| 4.692308
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101266
| 79
| 1
| 79
| 79
| 0.859155
| 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
|
e9c28c0a97751dccd5d3dc1b21e7750a3497a062
| 272
|
py
|
Python
|
src/globus_cli/commands/timer/__init__.py
|
globusonline/globus-cli
|
696857baafac198141edc3c1c29c72215f217df1
|
[
"Apache-2.0"
] | null | null | null |
src/globus_cli/commands/timer/__init__.py
|
globusonline/globus-cli
|
696857baafac198141edc3c1c29c72215f217df1
|
[
"Apache-2.0"
] | 1
|
2016-04-09T17:26:05.000Z
|
2016-04-11T16:13:50.000Z
|
src/globus_cli/commands/timer/__init__.py
|
globusonline/globus-cli
|
696857baafac198141edc3c1c29c72215f217df1
|
[
"Apache-2.0"
] | null | null | null |
from globus_cli.parsing import group
from .list import list_command
from .show import show_command
@group("timer")
def timer_command():
"""Schedule and manage jobs in Globus Timer"""
timer_command.add_command(list_command)
timer_command.add_command(show_command)
| 19.428571
| 50
| 0.794118
| 40
| 272
| 5.15
| 0.425
| 0.174757
| 0.145631
| 0.213592
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121324
| 272
| 13
| 51
| 20.923077
| 0.861925
| 0.147059
| 0
| 0
| 0
| 0
| 0.022124
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| true
| 0
| 0.428571
| 0
| 0.571429
| 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
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e9cf0657e1bdcd66fa582464fcd1514ef88a229a
| 263
|
py
|
Python
|
server/api/serializers/letter.py
|
MePsyDuck/OAPS
|
ddbc69fbd11d1a02d37514d48f5dabe04cd23405
|
[
"MIT"
] | null | null | null |
server/api/serializers/letter.py
|
MePsyDuck/OAPS
|
ddbc69fbd11d1a02d37514d48f5dabe04cd23405
|
[
"MIT"
] | null | null | null |
server/api/serializers/letter.py
|
MePsyDuck/OAPS
|
ddbc69fbd11d1a02d37514d48f5dabe04cd23405
|
[
"MIT"
] | null | null | null |
from rest_framework import serializers
from api.models import Letter
class LetterSerializer(serializers.ModelSerializer):
class Meta:
model = Letter
fields = ('id', 'subject', 'body', 'created', 'modified', 'sender', 'receiver', 'remarks')
| 26.3
| 98
| 0.692015
| 27
| 263
| 6.703704
| 0.814815
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.18251
| 263
| 9
| 99
| 29.222222
| 0.84186
| 0
| 0
| 0
| 0
| 0
| 0.186312
| 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
|
759c9c03daed3987b022572f95ef159fbf48d6f3
| 238
|
py
|
Python
|
hrsalespipes/dashboard/urls.py
|
hanztura/hrsalespipes
|
77accf3132726ced05d84fa2a41891b841f310b8
|
[
"Apache-2.0"
] | 3
|
2020-03-26T12:43:43.000Z
|
2021-05-10T14:35:51.000Z
|
hrsalespipes/dashboard/urls.py
|
hanztura/hrsalespipes
|
77accf3132726ced05d84fa2a41891b841f310b8
|
[
"Apache-2.0"
] | 5
|
2021-04-08T21:15:15.000Z
|
2022-02-10T11:03:12.000Z
|
hrsalespipes/dashboard/urls.py
|
hanztura/hrsalespipes
|
77accf3132726ced05d84fa2a41891b841f310b8
|
[
"Apache-2.0"
] | 1
|
2022-01-30T19:24:48.000Z
|
2022-01-30T19:24:48.000Z
|
from django.urls import path
from .views import DashboardTemplateView, DashboardView
app_name = 'dashboard'
urlpatterns = [
path('test/', DashboardView.as_view(), name='test'),
path('', DashboardView.as_view(), name='index'),
]
| 23.8
| 56
| 0.714286
| 27
| 238
| 6.185185
| 0.592593
| 0.179641
| 0.227545
| 0.275449
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134454
| 238
| 9
| 57
| 26.444444
| 0.81068
| 0
| 0
| 0
| 0
| 0
| 0.096639
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.285714
| 0
| 0.285714
| 0
| 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
|
75a9038ac82fdcf9e0ab0266716bd2dfcbf5e311
| 52
|
py
|
Python
|
pynito/__init__.py
|
qdonohue/pynito
|
bcd7eeb3cdcdb63af2b43dca53b2e7899772e518
|
[
"MIT"
] | null | null | null |
pynito/__init__.py
|
qdonohue/pynito
|
bcd7eeb3cdcdb63af2b43dca53b2e7899772e518
|
[
"MIT"
] | null | null | null |
pynito/__init__.py
|
qdonohue/pynito
|
bcd7eeb3cdcdb63af2b43dca53b2e7899772e518
|
[
"MIT"
] | 1
|
2020-11-21T12:32:27.000Z
|
2020-11-21T12:32:27.000Z
|
from pynito.cognitodecryptor import CognitoDecryptor
| 52
| 52
| 0.923077
| 5
| 52
| 9.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057692
| 52
| 1
| 52
| 52
| 0.979592
| 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
|
75d24f00bd3d394aa053d2de0806888649ac3eca
| 381
|
py
|
Python
|
hedge_hog/metric/__init__.py
|
otivedani/hedge_hog
|
62026e63b6bdc72cc4f0c984136712e6ee090f68
|
[
"MIT"
] | null | null | null |
hedge_hog/metric/__init__.py
|
otivedani/hedge_hog
|
62026e63b6bdc72cc4f0c984136712e6ee090f68
|
[
"MIT"
] | null | null | null |
hedge_hog/metric/__init__.py
|
otivedani/hedge_hog
|
62026e63b6bdc72cc4f0c984136712e6ee090f68
|
[
"MIT"
] | null | null | null |
"""
examples on scikit-image :
call :
from skimage.feature import blob_dog, blob_log, blob_doh
structure :
skimage
feature
__init__.py (from .blob import blob_dog, blob_log, blob_doh)
blob.py (contains blob_dog, blob_log, blob_doh)
conclusion :
module imported because it was defined in module dir
"""
from .timemeter import timemeter
| 20.052632
| 69
| 0.692913
| 52
| 381
| 4.826923
| 0.519231
| 0.083665
| 0.131474
| 0.167331
| 0.298805
| 0.298805
| 0.215139
| 0
| 0
| 0
| 0
| 0
| 0.238845
| 381
| 19
| 70
| 20.052632
| 0.865517
| 0.83727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
75d9f90c2f975ea4a2ae0b3fd9a26571c68ea1e6
| 21,236
|
py
|
Python
|
MBC_ER_status/Ulz_pipeline/downloads/run_tf_analyses_from_bam.py
|
adoebley/Griffin_analyses
|
94a8246b45c3ebbf255cffaa60b97e7e05d5de78
|
[
"BSD-3-Clause-Clear"
] | 6
|
2021-10-05T10:32:32.000Z
|
2022-03-03T15:38:38.000Z
|
MBC_ER_status/Ulz_pipeline/downloads/run_tf_analyses_from_bam.py
|
adoebley/Griffin_analyses
|
94a8246b45c3ebbf255cffaa60b97e7e05d5de78
|
[
"BSD-3-Clause-Clear"
] | null | null | null |
MBC_ER_status/Ulz_pipeline/downloads/run_tf_analyses_from_bam.py
|
adoebley/Griffin_analyses
|
94a8246b45c3ebbf255cffaa60b97e7e05d5de78
|
[
"BSD-3-Clause-Clear"
] | 1
|
2021-11-03T07:19:16.000Z
|
2021-11-03T07:19:16.000Z
|
#!/usr/bin/env python
# coding: utf-8
#AL - the above code is new for the griffin paper version
#modified print commands for python3
# Analyze all possible things from BAM-file
import sys
import argparse
from subprocess import call
import numpy
import scipy
import scipy.stats
import os.path
import os
import glob
# Parse command line arguments ###################################################################################
parser = argparse.ArgumentParser(description='Analyze epigenetic traces in cfDNA')
parser.add_argument('-b','--bam', dest='bam_file',
help='BAM file',required=True)
parser.add_argument('-o','--output', dest='name',
help='Output name for files and directory',required=True)
parser.add_argument('-cov','--mean-coverage', dest='mean_coverage',
help='Mean coverage along the genome [default:1]',default=1,type=float)
parser.add_argument('-ylimit','--plot-y-limit', dest='ylimit',
help='Plotting until this limit on y-axis [default:1.5]',default=1.5,type=float)
parser.add_argument('-norm-file','--normalize-file', dest='norm_log2',
help='Normalize by local copynumber from this file')
parser.add_argument('-calccov','--calculate-mean-coverage', dest='calc_cov',
help='Specify whether genome read depths should be calculated',action="store_true")
parser.add_argument('-hg38','--hg38', dest='hg38',
help='Use hg38 coordinates [default: hg19]',action="store_true")
parser.add_argument('-a','--analysis', dest='analysis',
help='Specify type of analysis (all|enhancer|histone|tf|ctcf|...)',required=True)
parser.add_argument('-tf','--trans-factor', dest='tf',
help='Specify transcription factor for VirChip data')
args = parser.parse_args()
####################################################################################################
# setup structure
print ("Setup structure") # AL mod
if not os.path.isdir(args.name):
os.mkdir(args.name)
####################################################################################################
# get genomewide coverage from bedtools genomecoverage
if args.calc_cov:
#AL added if/else
if os.path.isfile(args.name.rstrip("/")+"/"+args.name+".coverage"):
print('cov already complete')
else:
#AL tabbed over this section to add it to the if/else statement but did not change it
print ("Calc avg. coverage") # AL mod
OUTPUT=open(args.name.rstrip("/")+"/"+args.name+".coverage","w")
if args.hg38:
call(["./Software/bedtools","genomecov","-ibam",args.bam_file,"-g","./Ref/hg38.chrom_sizes.txt"],stdout=OUTPUT)
else:
call(["./Software/bedtools","genomecov","-ibam",args.bam_file,"-g","./Ref/hg19.chrom_sizes.txt"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT=open(args.name.rstrip("/")+"/"+args.name+".short_coverage","w")
call(["./Scripts/get_avg_coverage.py",args.name.rstrip("/")+"/"+args.name+".coverage"],stdout=OUTPUT)
OUTPUT.close()
#end AL edits
INPUT = open(args.name.rstrip("/")+"/"+args.name+".short_coverage","r")
avg_coverage = 1
for line in INPUT.readlines():
chrom,cov = line.rstrip().split("\t")
if chrom == "genome":
avg_coverage = cov
INPUT.close()
else:
print ("Skipping genomewide-coverage calculation using mean coverage: "+str(args.mean_coverage)) # AL mod
avg_coverage = args.mean_coverage
####################################################################################################
# print statistics:
print ("Write Logs") # AL mod
OUT=open(args.name.rstrip("/")+"/log.txt","w")
OUT.write("BAM:\t"+args.bam_file+"\n")
OUT.write("Norm File:\t"+args.norm_log2+"\n")
OUT.write("cov:\t"+str(avg_coverage)+"\n")
OUT.write("analysis:\t"+args.analysis+"\n")
OUT.close()
####################################################################################################
# get chromosome coverage from output of bedtools genomecoverage
def getChromCoverage(chromosome,args):
print (args.name.rstrip("/")+"/"+args.name+".short_coverage") # AL mod
if not os.path.isfile(args.name.rstrip("/")+"/"+args.name+".short_coverage"):
print ("Coverage file not found") # AL mod
sys.exit(1)
INPUT = open(args.name.rstrip("/")+"/"+args.name+".short_coverage","r")
avg_coverage = 1
found = False
for line in INPUT.readlines():
chrom,cov = line.rstrip().split("\t")
if chrom == chromosome:
avg_coverage = cov
found = True
INPUT.close()
if found:
return avg_coverage
else:
print ("Chromosome not found") # AL mod
sys.exit(1)
####################################################################################################
# CTCF analysis
def ctcf(args,avg_coverage):
print ("Analyze CTCF sites") # AL mod
if not os.path.isdir(args.name.rstrip("/")+"/CTCF"):
os.mkdir(args.name.rstrip("/")+"/CTCF")
#OUTPUT = open(args.name.rstrip("/")+"/CTCF"+"/CTCF_In_Insulated_Neighbourhoods.tss","w")
#call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/CTCF/FIMO_ChIP_CTCF_at_Insulated_Neighbourhoods.bed","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000"],stdout=OUTPUT)
#OUTPUT.close()
#OUTPUT = open(args.name.rstrip("/")+"/CTCF"+"/CTCF_Outside_Insulated_Neighbourhoods.tss","w")
#call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/CTCF/FIMO_ChIP_CTCF_outside_Insulated_Neighbourhoods.bed","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000"],stdout=OUTPUT)
#OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/CTCF"+"/CTCF_GTRD_In_Insulated_Neighbourhoods.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/CTCF/CTCF.GTRD.Insulated.bed","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000","-m","100000"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/CTCF"+"/CTCF_GTRD_Outside_Insulated_Neighbourhoods.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/CTCF/CTCF.GTRD.NonInsulated.bed","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000","-m","100000"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/CTCF"+"/CTCF_GTRD_50perc_In_Insulated_Neighbourhoods.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/CTCF/CTCF.GTRD.50perc.Insulated.bed","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000","-m","100000"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/CTCF"+"/CTCF_GTRD_50perc_Outside_Insulated_Neighbourhoods.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/CTCF/CTCF.GTRD.50perc.NonInsulated.bed","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000","-m","100000"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/CTCF"+"/CTCF_ultraconserved.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/CTCF/Ultraconserved_CTCF.bed","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000","-m","100000"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/CTCF"+"/CTCF_GTRD_proximalTSS.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/CTCF/CTCF.hg19.sorted.bed.proximal.bed","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000","-m","100000"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/CTCF"+"/CTCF_GTRD_distalTSS.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/CTCF/CTCF.hg19.sorted.bed.distal.bed","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000","-m","100000"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/CTCF"+"/CTCF_GTRD_50perc_proximalTSS.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/CTCF/CTCF.50perc_hg19.sorted.bed.proximal.bed","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000","-m","100000"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/CTCF"+"/CTCF_GTRD_50perc_distalTSS.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/CTCF/CTCF.50perc_hg19.sorted.bed.distal.bed","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000","-m","100000"],stdout=OUTPUT)
OUTPUT.close()
#call(["Rscript","./Scripts/plot_MotifCoverage.R",args.name.rstrip("/")+"/CTCF"+"/CTCF_In_Insulated_Neighbourhoods.tss",args.name.rstrip("/")+"/CTCF"+"/CTCF_In_Insulated_Neighbourhoods.png","TADs","0",str(args.ylimit)])
#call(["Rscript","./Scripts/plot_MotifCoverage.R",args.name.rstrip("/")+"/CTCF"+"/CTCF_Outside_Insulated_Neighbourhoods.tss",args.name.rstrip("/")+"/CTCF"+"/CTCF_Outside_Insulated_Neighbourhoods.png",
# "NonTADs","0",str(args.ylimit)])
#call(["Rscript","./Scripts/plot_MotifCoverage_2sample.R",args.name.rstrip("/")+"/CTCF"+"/CTCF_In_Insulated_Neighbourhoods.tss",args.name.rstrip("/")+"/CTCF"+"/CTCF_Outside_Insulated_Neighbourhoods.tss",
# args.name.rstrip("/")+"/CTCF"+"/CTCF_TADs.png","CTCF sites in TAD boundaries","CTCF sites outside TAD boundaries","0",str(args.ylimit)])
#########################################################################
def tf_gtrd_1000sites(args,avg_coverage):
print("Analyze Transcription factors GTRD")
if not os.path.isdir(args.name.rstrip("/")+"/TranscriptionFactors"):
os.mkdir(args.name.rstrip("/")+"/TranscriptionFactors")
if not os.path.isdir(args.name.rstrip("/")+"/TranscriptionFactors/GTRD_ChIP_Only_1000sites"):
os.mkdir(args.name.rstrip("/")+"/TranscriptionFactors/GTRD_ChIP_Only_1000sites")
target_list = glob.glob("./Ref/GTRD_1000sites/*.bed")
for tf in target_list:
tf_name = os.path.basename(tf[:-4])
if os.path.isfile(args.name.rstrip("/")+"/TranscriptionFactors/GTRD_ChIP_Only_1000sites"+"/"+tf_name+".tss"):
print("Skip "+tf_name)
continue
OUTPUT = open(args.name.rstrip("/")+"/TranscriptionFactors/GTRD_ChIP_Only_1000sites"+"/"+tf_name+".tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-m","100000","-limit","30","-bed",tf,"-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000"],stdout=OUTPUT)
OUTPUT.close()
call(["Rscript","./Scripts/plot_MotifCoverage.R",args.name.rstrip("/")+"/TranscriptionFactors/GTRD_ChIP_Only_1000sites"+"/"+tf_name+".tss",args.name.rstrip("/")+"/TranscriptionFactors/GTRD_ChIP_Only_1000sites"+"/"+tf_name+".png",tf_name,"0",str(args.ylimit)])
#call(["Rscript","./Scripts/plot_MotifCoverage_2sample.R",args.name.rstrip("/")+"/TranscriptionFactors/ENCODE_ChIP"+"/"+tf+".tss","./Ref/TranscriptionFactors/MergedMaleProfiles/"+tf+".tss",
# args.name.rstrip("/")+"/TranscriptionFactors/ENCODE_ChIP/"+tf+"_control.png",tf+" ("+args.name+")",tf+" (MergedMale)","0",str(args.ylimit)])
#########################################################################
def tf_gtrd(args,avg_coverage):
print ("Analyze Transcription factors GTRD") # AL mod
if not os.path.isdir(args.name.rstrip("/")+"/TranscriptionFactors"):
os.mkdir(args.name.rstrip("/")+"/TranscriptionFactors")
if not os.path.isdir(args.name.rstrip("/")+"/TranscriptionFactors/GTRD_ChIP_Only"):
os.mkdir(args.name.rstrip("/")+"/TranscriptionFactors/GTRD_ChIP_Only")
if args.hg38:
target_list = glob.glob("./Ref/GTRD/hg38/*hg38.bed")
else:
target_list = glob.glob("./Ref/GTRD/*hg19.bed")
for tf in target_list:
tf_name = os.path.basename(tf[:-4])
if os.path.isfile(args.name.rstrip("/")+"/TranscriptionFactors/GTRD_ChIP_Only"+"/"+tf_name+".tss"):
print ("Skip "+tf_name) # AL mod
continue
OUTPUT = open(args.name.rstrip("/")+"/TranscriptionFactors/GTRD_ChIP_Only"+"/"+tf_name+".tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-m","100000","-limit","30","-bed",tf,"-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000"],stdout=OUTPUT)
OUTPUT.close()
call(["Rscript","./Scripts/plot_MotifCoverage.R",args.name.rstrip("/")+"/TranscriptionFactors/GTRD_ChIP_Only"+"/"+tf_name+".tss",args.name.rstrip("/")+"/TranscriptionFactors/GTRD_ChIP_Only"+"/"+tf_name+".png",tf_name,"0",str(args.ylimit)])
#call(["Rscript","./Scripts/plot_MotifCoverage_2sample.R",args.name.rstrip("/")+"/TranscriptionFactors/ENCODE_ChIP"+"/"+tf+".tss","./Ref/TranscriptionFactors/MergedMaleProfiles/"+tf+".tss",
# args.name.rstrip("/")+"/TranscriptionFactors/ENCODE_ChIP/"+tf+"_control.png",tf+" ("+args.name+")",tf+" (MergedMale)","0",str(args.ylimit)])
#########################################################################
# TSS
def tss(args,avg_coverage):
print ("Analyze HK vs. Unexpr. TSS") # AL mod
if not os.path.isdir(args.name.rstrip("/")+"/TSS"):
os.mkdir(args.name.rstrip("/")+"/TSS")
OUTPUT = open(args.name.rstrip("/")+"/TSS"+"/HK_APPRIS_isoforms.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/TSS/Housekeeping_APPRIS_isos_hg19_positions.bed","-m","100000","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/TSS"+"/HK.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/TSS/Housekeeping.bed","-m","100000","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/TSS"+"/FANTOM_lower01.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/TSS/Fantomlower01.bed","-m","100000","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000"],stdout=OUTPUT)
OUTPUT.close()
call(["Rscript","./Scripts/plot_MotifCoverage_2sample.R",args.name.rstrip("/")+"/TSS/HK.tss",args.name.rstrip("/")+"/TSS/FANTOM_lower01.tss",
args.name.rstrip("/")+"/TSS/HK_vs_Unexpr.png","Housekeeping TSS","Unexpressed TSS","0",str(args.ylimit)])
####################################################################################################
# AndrogenReceptor
def androgen(args,avg_coverage):
print ("Analyze Androgen Receptor Binding sites") # AL mod
if not os.path.isdir(args.name.rstrip("/")+"/AR"):
os.mkdir(args.name.rstrip("/")+"/AR")
OUTPUT = open(args.name.rstrip("/")+"/AR"+"/AR_TARBS_All.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/TranscriptionFactors/AndrogenReceptor/TARBS.bed","-m","100000","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/AR"+"/AR_NARBS_All.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/TranscriptionFactors/AndrogenReceptor/NARBS.bed","-m","100000","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/AR"+"/AR_TARBS_GTRD_All.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/TranscriptionFactors/AndrogenReceptor/AR_GTRD_TARBS_intersect.bed","-m","100000","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/AR"+"/AR_NARBS_GTRD_All.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/TranscriptionFactors/AndrogenReceptor/AR_GTRD_NARBS_intersect.bed","-m","100000","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/AR"+"/AR_TARBS_GTRD_50perc.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/TranscriptionFactors/AndrogenReceptor/AR_GTRD_50perc_TARBS_intersect.bed","-m","100000","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000"],stdout=OUTPUT)
OUTPUT.close()
OUTPUT = open(args.name.rstrip("/")+"/AR"+"/AR_NARBS_GTRD_50perc.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed","./Ref/TranscriptionFactors/AndrogenReceptor/AR_GTRD_50perc_NARBS_intersect.bed","-m","100000","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000"],stdout=OUTPUT)
OUTPUT.close()
call(["Rscript","./Scripts/plot_MotifCoverage_2sample.R",args.name.rstrip("/")+"/AR/AR_TARBS_All.tss",args.name.rstrip("/")+"/AR/AR_NARBS_All.tss",
args.name.rstrip("/")+"/TSS/TARBS_vs_ARBS.png","T-AR binding sites","N-AR binding sites","0",str(args.ylimit)])
call(["Rscript","./Scripts/plot_MotifCoverage_2sample.R",args.name.rstrip("/")+"/AR/AR_TARBS_GTRD_All.tss",args.name.rstrip("/")+"/AR/AR_TARBS_GTRD_All.tss",
args.name.rstrip("/")+"/TSS/TARBS_vs_ARBS_GTRDintersect.png","T-AR binding sites (GTRD intersect)","N-AR binding sites (GTRD intersect)","0",str(args.ylimit)])
call(["Rscript","./Scripts/plot_MotifCoverage_2sample.R",args.name.rstrip("/")+"/AR/AR_TARBS_GTRD_50perc.tss",args.name.rstrip("/")+"/AR/AR_NARBS_GTRD_50perc.tss",
args.name.rstrip("/")+"/TSS/TARBS_vs_ARBS_GTRDintersect_50perc.png","T-AR binding sites (GTRD intersect,50perc)","N-AR binding sites (GTRD intersect,50perc)","0",str(args.ylimit)])
####################################################################################################
# Check for binding sites proximal and distal to Transcription start sites
def tf_tss(args,avg_coverage):
print ("Analyze distal and proximal TF binding sites") # AL mod
if not os.path.isdir(args.name.rstrip("/")+"/TSS_TF"):
os.mkdir(args.name.rstrip("/")+"/TSS_TF")
target_list = glob.glob("./Ref/TranscriptionFactors/TSS_intersects/*distal.bed")
for tf in target_list:
tf_name = os.path.basename(tf[:-10])
proximal_tf = tf[:-10]+"proximal.bed"
if os.path.isfile(args.name.rstrip("/")+"/TSS_TF/"+tf_name+"distal.tss"):
print ("Skip "+tf_name) # AL mod
continue
OUTPUT = open(args.name.rstrip("/")+"/TSS_TF/"+tf_name+"distal.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed",tf,"-m","100000","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000"],stdout=OUTPUT)
OUTPUT.close()
if os.path.isfile(args.name.rstrip("/")+"/TSS_TF/"+tf_name+"proximal.tss"):
print ("Skip "+tf_name) # AL mod
continue
OUTPUT = open(args.name.rstrip("/")+"/TSS_TF/"+tf_name+"proximal.tss","w")
call(["./Scripts/analyze_coverage_around_position_log2_pysam.py","-bed",proximal_tf,"-m","100000","-cov",str(avg_coverage),"-norm","-norm-file",args.norm_log2,"-b",args.bam_file,"-s","1000","-e","1000"],stdout=OUTPUT)
OUTPUT.close()
call(["Rscript","./Scripts/plot_MotifCoverage_2sample.R",args.name.rstrip("/")+"/TSS_TF/"+tf_name+"distal.tss",args.name.rstrip("/")+"/TSS_TF/"+tf_name+"proximal.tss",
args.name.rstrip("/")+"/TSS_TF/"+tf_name+".png",tf_name+" distal to TSS (>2kbp)",tf_name+" proximal to TSS (<2kbp)","0",str(args.ylimit)])
####################################################################################################
if args.analysis == "all":
ctcf(args,avg_coverage)
tf_gtrd_chip_only(args,avg_coverage)
tss(args,avg_coverage)
elif args.analysis == "tss":
tss(args,avg_coverage)
elif args.analysis == "androgen":
androgen(args,avg_coverage)
elif args.analysis == "ctcf":
ctcf(args,avg_coverage)
elif args.analysis == "tf_gtrd":
tf_gtrd(args,avg_coverage)
elif args.analysis == "tf_gtrd_1000sites":
tf_gtrd_1000sites(args,avg_coverage)
else:
print ("Unknown analysis type") # AL mod
print (" Use any of:") # AL mod
print (" -) all") # AL mod
print (" -) ctcf") # AL mod
print (" -) androgen") # AL mod
print (" -) tf_gtrd") # AL mod
print (" -) tf_gtrd_1000sites") # AL mod
print (" -) tf_tss") # AL mod
| 71.743243
| 290
| 0.638915
| 2,800
| 21,236
| 4.668571
| 0.093929
| 0.05814
| 0.088892
| 0.039933
| 0.796206
| 0.766983
| 0.732864
| 0.703182
| 0.672965
| 0.638846
| 0
| 0.027952
| 0.097005
| 21,236
| 295
| 291
| 71.986441
| 0.653734
| 0.136937
| 0
| 0.300847
| 0
| 0
| 0.413488
| 0.226312
| 0
| 0
| 0
| 0
| 0
| 1
| 0.029661
| false
| 0
| 0.038136
| 0
| 0.072034
| 0.110169
| 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
|
f97eb5e10ca3b047fe571ca899a9ef09001fcef1
| 4,894
|
py
|
Python
|
py/g1/threads/tests/test_locks.py
|
clchiou/garage
|
446ff34f86cdbd114b09b643da44988cf5d027a3
|
[
"MIT"
] | 3
|
2016-01-04T06:28:52.000Z
|
2020-09-20T13:18:40.000Z
|
py/g1/threads/tests/test_locks.py
|
clchiou/garage
|
446ff34f86cdbd114b09b643da44988cf5d027a3
|
[
"MIT"
] | null | null | null |
py/g1/threads/tests/test_locks.py
|
clchiou/garage
|
446ff34f86cdbd114b09b643da44988cf5d027a3
|
[
"MIT"
] | null | null | null |
import unittest
import threading
from g1.threads import locks
class ReadWriteLockTest(unittest.TestCase):
def setUp(self):
super().setUp()
self.rwlock = locks.ReadWriteLock()
def assert_state(self, num_readers, num_writers):
self.assertEqual(self.rwlock._num_readers, num_readers)
self.assertEqual(self.rwlock._num_writers, num_writers)
def test_read_lock(self):
self.assert_state(0, 0)
self.assertTrue(self.rwlock.reader_acquire(timeout=0.01))
self.assert_state(1, 0)
self.assertTrue(self.rwlock.reader_acquire(timeout=0.01))
self.assert_state(2, 0)
self.assertFalse(self.rwlock.writer_acquire(timeout=0.01))
self.assert_state(2, 0)
self.rwlock.reader_release()
self.rwlock.reader_release()
self.assert_state(0, 0)
def test_write_lock(self):
self.assert_state(0, 0)
self.assertTrue(self.rwlock.writer_acquire(timeout=0.01))
self.assert_state(0, 1)
self.assertFalse(self.rwlock.reader_acquire(timeout=0.01))
self.assert_state(0, 1)
self.assertFalse(self.rwlock.writer_acquire(timeout=0.01))
self.assert_state(0, 1)
self.rwlock.writer_release()
self.assert_state(0, 0)
def start_reader_thread(self, event):
thread = threading.Thread(
target=acquire_then_set,
args=(self.rwlock.reader_acquire, event),
daemon=True,
)
thread.start()
def start_writer_thread(self, event):
thread = threading.Thread(
target=acquire_then_set,
args=(self.rwlock.writer_acquire, event),
daemon=True,
)
thread.start()
def test_reader_notify_writers(self):
self.rwlock.reader_acquire()
event1 = threading.Event()
event2 = threading.Event()
event3 = threading.Event()
self.start_writer_thread(event1)
self.start_writer_thread(event2)
self.start_writer_thread(event3)
self.assertFalse(event1.wait(0.01))
self.assertFalse(event2.wait(0.01))
self.assertFalse(event3.wait(0.01))
self.rwlock.reader_release()
self.assertEqual(
sorted([
event1.wait(0.01),
event2.wait(0.01),
event3.wait(0.01),
]),
[False, False, True],
)
def test_writer_notify_readers(self):
self.rwlock.writer_acquire()
event1 = threading.Event()
event2 = threading.Event()
self.start_reader_thread(event1)
self.start_reader_thread(event2)
self.assertFalse(event1.wait(0.01))
self.assertFalse(event2.wait(0.01))
self.rwlock.writer_release()
self.assertTrue(event1.wait(0.01))
self.assertTrue(event2.wait(0.01))
def test_writer_notify_writers(self):
self.rwlock.writer_acquire()
event1 = threading.Event()
event2 = threading.Event()
event3 = threading.Event()
self.start_writer_thread(event1)
self.start_writer_thread(event2)
self.start_writer_thread(event3)
self.assertFalse(event1.wait(0.01))
self.assertFalse(event2.wait(0.01))
self.assertFalse(event3.wait(0.01))
self.rwlock.writer_release()
self.assertEqual(
sorted([
event1.wait(0.01),
event2.wait(0.01),
event3.wait(0.01),
]),
[False, False, True],
)
def test_writer_notify_readers_and_writers(self):
self.rwlock.writer_acquire()
event1 = threading.Event()
event2 = threading.Event()
event3 = threading.Event()
event4 = threading.Event()
event5 = threading.Event()
self.start_reader_thread(event1)
self.start_reader_thread(event2)
self.start_writer_thread(event3)
self.start_writer_thread(event4)
self.start_writer_thread(event5)
self.assertFalse(event1.wait(0.01))
self.assertFalse(event2.wait(0.01))
self.assertFalse(event3.wait(0.01))
self.assertFalse(event4.wait(0.01))
self.assertFalse(event5.wait(0.01))
self.rwlock.writer_release()
self.assertIn(
(
[
event1.wait(0.01),
event2.wait(0.01),
],
sorted([
event3.wait(0.01),
event4.wait(0.01),
event5.wait(0.01),
]),
),
[
([True, True], [False, False, False]),
([False, False], [False, False, True]),
],
)
def acquire_then_set(acquire, event):
acquire()
event.set()
if __name__ == '__main__':
unittest.main()
| 28.619883
| 66
| 0.585411
| 553
| 4,894
| 5
| 0.108499
| 0.03472
| 0.065823
| 0.055696
| 0.800362
| 0.730922
| 0.718264
| 0.672694
| 0.630741
| 0.630741
| 0
| 0.049228
| 0.298529
| 4,894
| 170
| 67
| 28.788235
| 0.75619
| 0
| 0
| 0.625
| 0
| 0
| 0.001635
| 0
| 0
| 0
| 0
| 0
| 0.272059
| 1
| 0.080882
| false
| 0
| 0.022059
| 0
| 0.110294
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f9835a83cc85b616ebc4877cb26f2e75d6afe07f
| 1,104
|
py
|
Python
|
statisticalDistributions.py
|
mrhsce/simPython
|
94598164abc9833bad1121a978acb94c4fecec27
|
[
"Apache-2.0"
] | 2
|
2015-12-19T04:27:12.000Z
|
2016-11-23T18:53:50.000Z
|
statisticalDistributions.py
|
mrhsce/simPython
|
94598164abc9833bad1121a978acb94c4fecec27
|
[
"Apache-2.0"
] | null | null | null |
statisticalDistributions.py
|
mrhsce/simPython
|
94598164abc9833bad1121a978acb94c4fecec27
|
[
"Apache-2.0"
] | null | null | null |
""" Here definitions and attributes of all statistical distributions that are used in the simulation are defined"""
from abc import ABCMeta, abstractmethod
import random
#import np
class StatDis(object):
__metaclass__ = ABCMeta
def __init__(self):
pass
@abstractmethod
def generate(self):
pass
class UniformDis(StatDis):
def __init__(self, minVal, maxVal):
self.minVal = minVal
self.maxVal = maxVal
def generate(self):
return random.uniform(self.minVal, self.maxVal)
class NormalDis(StatDis):
def __init__(self, mean, std):
self.mean = mean
self.std = std
def generate(self):
return np.random.normal(self.mean, self.std, 1)[0]
class ConstantDis(StatDis):
def __init__(self, val):
self.val = val
def generate(self):
return self.val
class TriangularDis(StatDis):
def __init__(self, low, high, mode):
self.low = low
self.high = high
self.mode = mode
def generate(self):
return random.triangular(self.low, self.high, self.mode)
| 19.714286
| 115
| 0.645833
| 136
| 1,104
| 5.066176
| 0.360294
| 0.050798
| 0.079826
| 0.104499
| 0.078374
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002448
| 0.259964
| 1,104
| 55
| 116
| 20.072727
| 0.840881
| 0.106884
| 0
| 0.212121
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.30303
| false
| 0.060606
| 0.060606
| 0.121212
| 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
| 0
| 1
| 1
| 0
|
0
| 4
|
f98a6174a8d5b6ced1433ccb3968837fdf52d7af
| 7,135
|
py
|
Python
|
tests/test_signals.py
|
sulfadimetoxin/oarepo-taxonomies
|
b8385173614aa711a5e316c8fc24ac065b48aa3d
|
[
"MIT"
] | null | null | null |
tests/test_signals.py
|
sulfadimetoxin/oarepo-taxonomies
|
b8385173614aa711a5e316c8fc24ac065b48aa3d
|
[
"MIT"
] | 9
|
2020-08-24T08:49:15.000Z
|
2021-08-05T16:45:23.000Z
|
tests/test_signals.py
|
sulfadimetoxin/oarepo-taxonomies
|
b8385173614aa711a5e316c8fc24ac065b48aa3d
|
[
"MIT"
] | 1
|
2020-08-20T18:39:43.000Z
|
2020-08-20T18:39:43.000Z
|
from pprint import pprint
import pytest
from flask_taxonomies.proxies import current_flask_taxonomies
from flask_taxonomies.term_identification import TermIdentification
from invenio_records import Record
from oarepo_taxonomies.exceptions import DeleteAbortedError
from oarepo_taxonomies.signals import lock_term
from oarepo_taxonomies.tasks import unlock_term
def test_taxonomy_delete(app, db, taxonomy_tree, test_record):
taxonomies = current_flask_taxonomies.list_taxonomies(session=None).all()
assert len(taxonomies) == 1
with pytest.raises(DeleteAbortedError):
current_flask_taxonomies.delete_taxonomy(taxonomies[0])
taxonomies = current_flask_taxonomies.list_taxonomies(session=None).all()
assert len(taxonomies) == 1
def test_taxonomy_delete_2(app, db, taxonomy_tree):
taxonomies = current_flask_taxonomies.list_taxonomies(session=None).all()
assert len(taxonomies) == 1
current_flask_taxonomies.delete_taxonomy(taxonomies[0])
taxonomies = current_flask_taxonomies.list_taxonomies(session=None).all()
assert len(taxonomies) == 0
def test_taxonomy_term_delete(app, db, taxonomy_tree):
taxonomy = current_flask_taxonomies.get_taxonomy("test_taxonomy")
terms = current_flask_taxonomies.list_taxonomy(taxonomy).all()
term = terms[1]
ti = TermIdentification(term=term)
current_flask_taxonomies.delete_term(ti)
def test_taxonomy_term_delete_2(app, db, taxonomy_tree, test_record):
taxonomy = current_flask_taxonomies.get_taxonomy("test_taxonomy")
terms = current_flask_taxonomies.list_taxonomy(taxonomy).all()
term = terms[1]
ti = TermIdentification(term=term)
with pytest.raises(DeleteAbortedError):
current_flask_taxonomies.delete_term(ti)
def test_taxonomy_term_moved(app, db, taxonomy_tree, test_record):
taxonomy = current_flask_taxonomies.get_taxonomy("test_taxonomy")
terms = current_flask_taxonomies.list_taxonomy(taxonomy).all()
old_record = Record.get_record(id_=test_record.id)
old_taxonomy = old_record["taxonomy"]
assert old_taxonomy == [{
'is_ancestor': True,
'level': 1,
'links': {
'self': 'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a'
},
'test': 'extra_data'
},
{
'is_ancestor': True,
'level': 2,
'links': {
'parent':
'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a',
'self': 'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a/b'
},
'test': 'extra_data'
},
{
'is_ancestor': False,
'level': 3,
'links': {
'parent':
'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a/b',
'self':
'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a/b/c'
},
'test': 'extra_data'
}]
ti = TermIdentification(term=terms[2])
current_flask_taxonomies.move_term(ti, new_parent=terms[0], remove_after_delete=False)
db.session.commit()
new_record = Record.get_record(id_=test_record.id)
new_taxonomy = new_record["taxonomy"]
new_terms = current_flask_taxonomies.list_taxonomy(taxonomy).all()
assert new_terms[-1].parent_id == 1
# assert new_taxonomy == [{
# 'is_ancestor': True,
# 'links': {
# 'self': 'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a'
# },
# 'test': 'extra_data'
# },
# {
# 'is_ancestor': False,
# 'links': {
# 'parent': 'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a',
# 'self': 'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a/c'
# },
# 'test': 'extra_data'
# }]
def test_taxonomy_term_update(app, db, taxonomy_tree, test_record):
taxonomy = current_flask_taxonomies.get_taxonomy("test_taxonomy")
terms = current_flask_taxonomies.list_taxonomy(taxonomy).all()
old_record = Record.get_record(id_=test_record.id)
assert old_record == {
'pid': 1,
'taxonomy': [{
'is_ancestor': True,
'level': 1,
'links': {'self': 'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a'},
'test': 'extra_data'
},
{
'is_ancestor': True,
'level': 2,
'links': {
'parent': 'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a',
'self': 'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a/b'
},
'test': 'extra_data'
},
{
'is_ancestor': False,
'level': 3,
'links': {
'parent': 'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a/b',
'self': 'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a/b/c'
},
'test': 'extra_data'
}],
'title': 'record 1'
}
term = terms[-1]
current_flask_taxonomies.update_term(term, extra_data={"new_data": "changed extra data"})
new_record = Record.get_record(id_=test_record.id)
assert new_record == {
'pid': 1,
'taxonomy': [{
'is_ancestor': True,
'level': 1,
'links': {'self': 'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a'},
'test': 'extra_data'
},
{
'is_ancestor': True,
'level': 2,
'links': {
'parent': 'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a',
'self': 'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a/b'
},
'test': 'extra_data'
},
{
'is_ancestor': False,
'level': 3,
'links': {
'parent': 'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a/b',
'self': 'http://127.0.0.1:5000/2.0/taxonomies/test_taxonomy/a/b/c'
},
'new_data': 'changed extra data',
'test': 'extra_data'
}],
'title': 'record 1'
}
def test_lock_unlock_term(app, db, taxonomy_tree):
term_identification = TermIdentification(taxonomy="test_taxonomy", slug="a/b/c")
term = list(current_flask_taxonomies.filter_term(
term_identification))[0]
lock_term(locked_terms=[term.id], term=term)
db.session.commit()
term = list(current_flask_taxonomies.filter_term(
term_identification))[0]
assert term.busy_count == 1
unlock_term(url=term.links().envelope["self"])
term = list(current_flask_taxonomies.filter_term(
term_identification))[0]
assert term.busy_count == 0
| 38.777174
| 99
| 0.568605
| 820
| 7,135
| 4.708537
| 0.095122
| 0.090132
| 0.131054
| 0.041958
| 0.773893
| 0.749547
| 0.723647
| 0.723647
| 0.693085
| 0.670293
| 0
| 0.049711
| 0.297968
| 7,135
| 183
| 100
| 38.989071
| 0.721102
| 0.059986
| 0
| 0.605263
| 0
| 0.098684
| 0.206397
| 0
| 0
| 0
| 0
| 0
| 0.065789
| 1
| 0.046053
| false
| 0
| 0.052632
| 0
| 0.098684
| 0.006579
| 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
|
f9c7d6fee331123a55864020b776b1d34238b97d
| 467
|
py
|
Python
|
src/todo/522-LongestUncommonSubsequenceII.py
|
Jiezhi/myleetcode
|
b346e94c46da2a3033ebc8ff50e621aa179c4f62
|
[
"MIT"
] | 1
|
2022-03-03T15:11:48.000Z
|
2022-03-03T15:11:48.000Z
|
src/todo/522-LongestUncommonSubsequenceII.py
|
Jiezhi/myleetcode
|
b346e94c46da2a3033ebc8ff50e621aa179c4f62
|
[
"MIT"
] | null | null | null |
src/todo/522-LongestUncommonSubsequenceII.py
|
Jiezhi/myleetcode
|
b346e94c46da2a3033ebc8ff50e621aa179c4f62
|
[
"MIT"
] | 2
|
2022-01-20T22:49:58.000Z
|
2022-01-20T22:53:13.000Z
|
#!/usr/bin/env python
"""
CREATED AT: 2021/8/28
Des:
https://leetcode.com/problems/longest-uncommon-subsequence-ii/
GITHUB: https://github.com/Jiezhi/myleetcode
"""
from typing import List
class Solution:
def findLUSlength(self, strs: List[str]) -> int:
pass
def test():
assert Solution().findLUSlength(strs=["aba", "cdc", "eae"]) == 3
assert Solution().findLUSlength(strs=["aaa", "aaa", "aa"]) == -1
if __name__ == '__main__':
test()
| 18.68
| 68
| 0.648822
| 60
| 467
| 4.916667
| 0.766667
| 0.094915
| 0.183051
| 0.210169
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022959
| 0.1606
| 467
| 24
| 69
| 19.458333
| 0.729592
| 0.334047
| 0
| 0
| 0
| 0
| 0.082781
| 0
| 0
| 0
| 0
| 0
| 0.222222
| 1
| 0.222222
| false
| 0.111111
| 0.111111
| 0
| 0.444444
| 0
| 0
| 0
| 0
| null | 0
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
ddd324b790a9312a2fcc8cac11385ac3c12a277d
| 2,796
|
py
|
Python
|
src/markup.py
|
alex-panda/PDFCompiler
|
3454ee01a6e5ebb2d2bccdcdc32678bf1def895d
|
[
"MIT"
] | null | null | null |
src/markup.py
|
alex-panda/PDFCompiler
|
3454ee01a6e5ebb2d2bccdcdc32678bf1def895d
|
[
"MIT"
] | null | null | null |
src/markup.py
|
alex-panda/PDFCompiler
|
3454ee01a6e5ebb2d2bccdcdc32678bf1def895d
|
[
"MIT"
] | null | null | null |
from constants import ALIGNMENT, STRIKE_THROUGH, UNDERLINE
def assert_bool(val):
assert isinstance(val, (bool, None)), f'Can only be True, False, or None. {val} was given instead.'
class Markup:
"""
A Markup for a range of MarkedUpText.
"""
def __init__(self):
from placer.templates import TextInfo
self._text_info = TextInfo()
self._paragraph_break = None # applied at MarkupStart
self._second_pass_python = []
def set_paragraph_break(self, boolean):
assert_bool(boolean)
self._paragraph_break = boolean
def paragraph_break(self):
return self._paragraph_break
def add_callback(self, function):
"""
Functions that you want to be called when this Markup is reached.
Nothing is passed to the Function.
"""
self._callbacks.append(function)
def markup_start_and_end(self):
"""
Returns starting and ending markup objects for this markup.
"""
me = MarkupEnd(self)
ms = MarkupStart(self, me)
return ms, me
def copy(self):
m = Markup()
m._text_info = self._text_info.copy()
m.paragraph_break = self._paragraph_break
return m
# --------------------------------
# Methods for accessing fields
# Enum Fields
def text_info(self):
return self._text_info
def set_text_info(self, text_info):
from placer.templates import TextInfo
assert isinstance(text_info, TextInfo), f'Text info must be of type TextInfo, not {text_info}.'
self._text_info = text_info
# Other Fields
def python(self):
return self._second_pass_python
def add_python(self, python_token):
self._second_pass_python.append(python_token)
def callbacks(self):
return self._callbacks
def add_callback(self, callback_function):
self._callbacks.append(callback_function)
class MarkupStart:
__slots__ = ['markup', 'markup_end']
def __init__(self, markup, markup_end=None):
self.markup = markup # A pointer to the Markup object
self.markup_end = markup_end # a pointer to the EndMarkup that ends this markup or None if there is no End
def copy(self):
return MarkupStart(self.markup, self.markup_end)
class MarkupEnd:
__slots__ = ['markup', 'undo_dict']
def __init__(self, markup, undo_dict=None):
self.markup = markup # A pointer to the Markup object
# A dictionary containing all the attributes that were changed and what
# they attributes were changed from when the current document TextInfo
# was changed.
self.undo_dict = undo_dict
def copy(self):
return MarkupEnd(self.markup, self.undo_dict.copy())
| 29.125
| 114
| 0.65093
| 354
| 2,796
| 4.903955
| 0.30226
| 0.0553
| 0.034562
| 0.034562
| 0.150922
| 0.051843
| 0.051843
| 0.051843
| 0.051843
| 0.051843
| 0
| 0
| 0.260014
| 2,796
| 95
| 115
| 29.431579
| 0.839053
| 0.217096
| 0
| 0.132075
| 0
| 0
| 0.06692
| 0
| 0
| 0
| 0
| 0
| 0.075472
| 1
| 0.320755
| false
| 0.056604
| 0.056604
| 0.113208
| 0.622642
| 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
|
dde864bb1233daa956ab699eaa628d9606c4448f
| 144
|
py
|
Python
|
ParkFinder/Parks/migrations/__init__.py
|
Krause2023/CS224-ParkFinder-Web_App
|
ccfa2faf61d6adb300f319ae11dd983483451410
|
[
"MIT"
] | 1
|
2021-12-22T16:00:36.000Z
|
2021-12-22T16:00:36.000Z
|
ParkFinder/Parks/migrations/__init__.py
|
Krause2023/CS224-ParkFinder-Web_App
|
ccfa2faf61d6adb300f319ae11dd983483451410
|
[
"MIT"
] | null | null | null |
ParkFinder/Parks/migrations/__init__.py
|
Krause2023/CS224-ParkFinder-Web_App
|
ccfa2faf61d6adb300f319ae11dd983483451410
|
[
"MIT"
] | null | null | null |
# Create your migrations here.
# WILL USE THIS LATER IF/WHEN YOU CREATE A DATABASE AND USER ACCOUNTS - THIS MAY BE IN A DIFFERENT APP AS WELL!!!
| 72
| 113
| 0.756944
| 26
| 144
| 4.192308
| 0.884615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1875
| 144
| 2
| 113
| 72
| 0.931624
| 0.972222
| 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
|
ddf4a85d16651173e5cecae5af1d1cdea3c48b47
| 154
|
py
|
Python
|
pages/apps.py
|
slideclimb/django-template
|
c489c118c47fe3510f7d5a36781d2d8835ef5ba6
|
[
"MIT"
] | 2
|
2019-07-11T08:24:20.000Z
|
2021-09-16T22:08:42.000Z
|
pages/apps.py
|
slideclimb/django-template
|
c489c118c47fe3510f7d5a36781d2d8835ef5ba6
|
[
"MIT"
] | 3
|
2021-06-09T17:17:16.000Z
|
2021-06-10T17:25:04.000Z
|
pages/apps.py
|
slideclimb/django-template
|
c489c118c47fe3510f7d5a36781d2d8835ef5ba6
|
[
"MIT"
] | 1
|
2018-10-07T15:32:27.000Z
|
2018-10-07T15:32:27.000Z
|
""" This file is here to register apps. """
from django.apps import AppConfig
class HomeConfig(AppConfig):
""" Register app. """
name = 'pages'
| 19.25
| 43
| 0.655844
| 19
| 154
| 5.315789
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.207792
| 154
| 7
| 44
| 22
| 0.827869
| 0.324675
| 0
| 0
| 0
| 0
| 0.055556
| 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
|
ddf9fcd921f244664cbca84e5f6bac067c77d492
| 281
|
py
|
Python
|
ares/physics/__init__.py
|
astrojhgu/ares
|
42008c8e4bf79f0b000cc833e02a86510bce7611
|
[
"MIT"
] | 1
|
2019-01-04T15:13:18.000Z
|
2019-01-04T15:13:18.000Z
|
ares/physics/__init__.py
|
astrojhgu/ares
|
42008c8e4bf79f0b000cc833e02a86510bce7611
|
[
"MIT"
] | null | null | null |
ares/physics/__init__.py
|
astrojhgu/ares
|
42008c8e4bf79f0b000cc833e02a86510bce7611
|
[
"MIT"
] | null | null | null |
import Constants
from .Hydrogen import Hydrogen
from .Cosmology import Cosmology
from .HaloMassFunction import HaloMassFunction
from .RateCoefficients import RateCoefficients
from .SecondaryElectrons import SecondaryElectrons
from .CrossSections import PhotoIonizationCrossSection
| 35.125
| 54
| 0.886121
| 26
| 281
| 9.576923
| 0.384615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.092527
| 281
| 7
| 55
| 40.142857
| 0.976471
| 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
|
fb07a87646537aa7d24a8747c95b7298fca053cd
| 98
|
py
|
Python
|
backup_codes/apps.py
|
biligunb/portal-web-app
|
cd10cda3d8bfc8f055a268e14f9665f142051c90
|
[
"MIT"
] | null | null | null |
backup_codes/apps.py
|
biligunb/portal-web-app
|
cd10cda3d8bfc8f055a268e14f9665f142051c90
|
[
"MIT"
] | null | null | null |
backup_codes/apps.py
|
biligunb/portal-web-app
|
cd10cda3d8bfc8f055a268e14f9665f142051c90
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class BackupCodesConfig(AppConfig):
name = "backup_codes"
| 16.333333
| 35
| 0.77551
| 11
| 98
| 6.818182
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153061
| 98
| 5
| 36
| 19.6
| 0.903614
| 0
| 0
| 0
| 0
| 0
| 0.122449
| 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
|
fb19896662026b64b3faf3ab0b1d3c77cfab5f56
| 323
|
py
|
Python
|
mavisetc/__init__.py
|
jtmendel/mavisetc
|
4cd6800a7c4462f9a8063060c41e19719d35c5ee
|
[
"MIT"
] | null | null | null |
mavisetc/__init__.py
|
jtmendel/mavisetc
|
4cd6800a7c4462f9a8063060c41e19719d35c5ee
|
[
"MIT"
] | null | null | null |
mavisetc/__init__.py
|
jtmendel/mavisetc
|
4cd6800a7c4462f9a8063060c41e19719d35c5ee
|
[
"MIT"
] | null | null | null |
try:
from ._version import __version__
except(ImportError):
pass
from . import instruments
from . import sources
from . import sky
from . import utils
from . import telescopes
from . import detectors
from . import filters
__all__ = ['instruments', 'sources', 'sky', 'utils', 'telescopes', 'detectors', 'filters']
| 21.533333
| 90
| 0.724458
| 37
| 323
| 6.081081
| 0.405405
| 0.311111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.167183
| 323
| 14
| 91
| 23.071429
| 0.836431
| 0
| 0
| 0
| 0
| 0
| 0.160991
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.083333
| 0.75
| 0
| 0.75
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
fb1b088b1122df174835b7dea6617c979527dde6
| 32,165
|
py
|
Python
|
tests/card_tests/druid_tests.py
|
anuragpapineni/Hearthbreaker-evolved-agent
|
d519d42babd93e3567000c33a381e93db065301c
|
[
"MIT"
] | null | null | null |
tests/card_tests/druid_tests.py
|
anuragpapineni/Hearthbreaker-evolved-agent
|
d519d42babd93e3567000c33a381e93db065301c
|
[
"MIT"
] | null | null | null |
tests/card_tests/druid_tests.py
|
anuragpapineni/Hearthbreaker-evolved-agent
|
d519d42babd93e3567000c33a381e93db065301c
|
[
"MIT"
] | null | null | null |
import random
import unittest
from hearthbreaker.agents.basic_agents import DoNothingBot
from tests.agents.testing_agents import SelfSpellTestingAgent, EnemySpellTestingAgent, MinionPlayingAgent, \
EnemyMinionSpellTestingAgent, SpellTestingAgent
from hearthbreaker.constants import CHARACTER_CLASS
from hearthbreaker.game_objects import Game
from hearthbreaker.replay import SavedGame
from tests.testing_utils import generate_game_for, StackedDeck, mock
from hearthbreaker.cards import *
class TestDruid(unittest.TestCase):
def setUp(self):
random.seed(1857)
def test_Innervate(self):
game = generate_game_for(Innervate, StonetuskBoar, SelfSpellTestingAgent, DoNothingBot)
# triggers all four innervate cards the player is holding.
game.play_single_turn()
self.assertEqual(9, game.current_player.mana)
for turn in range(0, 16):
game.play_single_turn()
# The mana should not go over 10 on turn 9 (or any other turn)
self.assertEqual(10, game.current_player.mana)
def test_Moonfire(self):
game = generate_game_for(Moonfire, StonetuskBoar, EnemySpellTestingAgent, MinionPlayingAgent)
game.play_single_turn()
self.assertEqual(26, game.other_player.hero.health)
def test_Claw(self):
testing_env = self
class ClawAgent(EnemySpellTestingAgent):
def do_turn(self, player):
super().do_turn(player)
testing_env.assertEqual(2, game.current_player.hero.temp_attack)
testing_env.assertEqual(2, game.current_player.hero.armor)
game = generate_game_for(Claw, StonetuskBoar, ClawAgent, MinionPlayingAgent)
game.pre_game()
game.play_single_turn()
def test_Naturalize(self):
game = generate_game_for(StonetuskBoar, Naturalize, MinionPlayingAgent, EnemyMinionSpellTestingAgent)
game.play_single_turn()
game.play_single_turn()
self.assertEqual(0, len(game.other_player.minions))
self.assertEqual(5, len(game.other_player.hand))
def test_Savagery(self):
class SavageryAgent(EnemyMinionSpellTestingAgent):
def do_turn(self, player):
if player.mana > 2:
player.hero.power.use()
super().do_turn(player)
game = generate_game_for(Savagery, BloodfenRaptor, SavageryAgent, MinionPlayingAgent)
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(1, len(game.other_player.minions))
self.assertEqual(1, game.other_player.minions[0].health)
def test_ClawAndSavagery(self):
game = generate_game_for(BloodfenRaptor, [Claw, Claw, Savagery], MinionPlayingAgent,
EnemyMinionSpellTestingAgent)
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(1, len(game.current_player.minions))
game.play_single_turn()
self.assertEqual(0, len(game.other_player.minions))
def test_MarkOfTheWild(self):
game = generate_game_for(MarkOfTheWild, StonetuskBoar, EnemyMinionSpellTestingAgent, MinionPlayingAgent)
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(3, game.other_player.minions[0].calculate_attack())
self.assertEqual(3, game.other_player.minions[0].health)
self.assertEqual(3, game.other_player.minions[0].calculate_max_health())
# Test that this spell is being silenced properly as well
game.other_player.minions[0].silence()
self.assertEqual(1, game.other_player.minions[0].calculate_attack())
self.assertEqual(1, game.other_player.minions[0].health)
self.assertEqual(1, game.other_player.minions[0].calculate_max_health())
def test_PowerOfTheWild(self):
deck1 = StackedDeck([StonetuskBoar(), StonetuskBoar(), PowerOfTheWild()], CHARACTER_CLASS.DRUID)
deck2 = StackedDeck([StonetuskBoar()], CHARACTER_CLASS.MAGE)
# This is a test of the +1/+1 option of the Power Of the Wild Card
game = Game([deck1, deck2], [MinionPlayingAgent(), MinionPlayingAgent()])
game.current_player = game.players[1]
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(2, game.current_player.minions[0].calculate_attack())
self.assertEqual(2, game.current_player.minions[0].health)
self.assertEqual(2, game.current_player.minions[0].calculate_max_health())
self.assertEqual(2, game.current_player.minions[1].calculate_attack())
self.assertEqual(2, game.current_player.minions[1].calculate_max_health())
# This is a test of the "Summon Panther" option of the Power of the Wild Card
agent = MinionPlayingAgent()
agent.choose_option = mock.Mock(side_effect=lambda *options: options[1])
deck1 = StackedDeck([StonetuskBoar(), StonetuskBoar(), PowerOfTheWild()], CHARACTER_CLASS.DRUID)
deck2 = StackedDeck([StonetuskBoar()], CHARACTER_CLASS.MAGE)
game = Game([deck1, deck2], [agent, MinionPlayingAgent()])
game.current_player = game.players[1]
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual("Panther", game.current_player.minions[2].card.__class__.__name__)
self.assertEqual(3, game.current_player.minions[2].calculate_attack())
self.assertEqual(2, game.current_player.minions[2].calculate_max_health())
def test_WildGrowth(self):
game = generate_game_for(WildGrowth, StonetuskBoar, SelfSpellTestingAgent, DoNothingBot)
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(3, game.current_player.max_mana)
# Make sure that the case where the player is at 10 mana works as well.
for turn in range(0, 5):
game.play_single_turn()
self.assertEqual(10, game.other_player.max_mana)
card_draw_mock = mock.Mock(side_effect=game.other_player.draw)
game.other_player.draw = card_draw_mock
game.play_single_turn()
# Each time the player draws, they will draw another wild growth, which will turn into excess mana, which will
# draw another card. However, because of the ordering of the cards, the last excess mana will be after
# a wild growth, which prevents SpellTestingAgent from playing the card, so only 5 draws are made instead of the
# possible 6
self.assertEqual(5, card_draw_mock.call_count)
def test_Wrath(self):
game = generate_game_for(Wrath, StonetuskBoar, EnemyMinionSpellTestingAgent, MinionPlayingAgent)
game.play_single_turn()
game.play_single_turn()
self.assertEqual(1, len(game.current_player.minions))
game.play_single_turn()
self.assertEqual(0, len(game.other_player.minions))
self.assertEqual(5, len(game.current_player.hand))
random.seed(1857)
game = generate_game_for(Wrath, MogushanWarden, EnemyMinionSpellTestingAgent, MinionPlayingAgent)
game.players[0].agent.choose_option = lambda one, three: three
for turn in range(0, 8):
game.play_single_turn()
self.assertEqual(1, len(game.current_player.minions))
game.play_single_turn()
self.assertEqual(1, len(game.other_player.minions))
# Two wraths will have been played
self.assertEqual(1, game.other_player.minions[0].health)
def test_HealingTouch(self):
game = generate_game_for(HealingTouch, StonetuskBoar, SelfSpellTestingAgent, DoNothingBot)
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.other_player.hero.health = 20
game.play_single_turn()
self.assertEqual(28, game.current_player.hero.health)
game.play_single_turn()
game.play_single_turn()
self.assertEqual(30, game.current_player.hero.health)
def test_MarkOfNature(self):
deck1 = StackedDeck([StonetuskBoar(), StonetuskBoar(), MarkOfNature()], CHARACTER_CLASS.DRUID)
deck2 = StackedDeck([StonetuskBoar()], CHARACTER_CLASS.MAGE)
game = Game([deck1, deck2], [MinionPlayingAgent(), MinionPlayingAgent()])
game.current_player = 1
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(5, game.other_player.minions[0].calculate_attack())
deck1 = StackedDeck([StonetuskBoar(), StonetuskBoar(), MarkOfNature()], CHARACTER_CLASS.DRUID)
deck2 = StackedDeck([StonetuskBoar()], CHARACTER_CLASS.MAGE)
agent = MinionPlayingAgent()
agent.choose_option = lambda *options: options[1]
game = Game([deck1, deck2], [agent, MinionPlayingAgent()])
game.current_player = 1
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(5, game.other_player.minions[0].calculate_max_health())
self.assertEqual(5, game.other_player.minions[0].health)
self.assertTrue(game.other_player.minions[0].taunt)
def test_SavageRoar(self):
deck1 = StackedDeck([StonetuskBoar(), StonetuskBoar(), SavageRoar()], CHARACTER_CLASS.DRUID)
deck2 = StackedDeck([StonetuskBoar()], CHARACTER_CLASS.MAGE)
game = Game([deck1, deck2], [MinionPlayingAgent(), MinionPlayingAgent()])
game.current_player = 1
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
minion_increase_mock = mock.Mock()
game.other_player.minions[0].bind("attack_changed", minion_increase_mock)
game.other_player.minions[1].bind("attack_changed", minion_increase_mock)
player_increase_mock = mock.Mock()
game.other_player.hero.bind("attack_changed", player_increase_mock)
game.play_single_turn()
self.assertEqual(0, game.current_player.mana)
# Make sure the attack got increased
self.assertListEqual([mock.call(2), mock.call(2)], minion_increase_mock.call_args_list)
self.assertListEqual([mock.call(2)], player_increase_mock.call_args_list)
# And make sure that it went down again
self.assertEqual(0, game.current_player.minions[0].temp_attack)
self.assertEqual(0, game.current_player.minions[1].temp_attack)
self.assertEqual(0, game.current_player.hero.calculate_attack())
def test_Bite(self):
testing_env = self
class BiteAgent(EnemySpellTestingAgent):
def do_turn(self, player):
super().do_turn(player)
if player.mana == 0:
testing_env.assertEqual(4, game.current_player.hero.temp_attack)
testing_env.assertEqual(4, game.current_player.hero.armor)
game = generate_game_for(Bite, StonetuskBoar, BiteAgent, DoNothingBot)
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
def test_SoulOfTheForest(self):
game = SavedGame("tests/replays/card_tests/SoulOfTheForest.rep")
game.start()
self.assertEqual(2, len(game.other_player.minions))
self.assertEqual(2, game.other_player.minions[1].calculate_attack())
self.assertEqual(2, game.other_player.minions[1].health)
self.assertEqual("Treant", game.other_player.minions[1].card.name)
def test_Swipe(self):
deck1 = StackedDeck([BloodfenRaptor(), StonetuskBoar(), StonetuskBoar()], CHARACTER_CLASS.DRUID)
deck2 = StackedDeck([Swipe()], CHARACTER_CLASS.DRUID, )
game = Game([deck1, deck2], [MinionPlayingAgent(), EnemyMinionSpellTestingAgent()])
game.pre_game()
game.current_player = game.players[1]
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
spell_damage_mock = mock.Mock()
game.current_player.minions[0].bind('damaged_by_spell', spell_damage_mock)
game.current_player.minions[1].bind('damaged_by_spell', spell_damage_mock)
game.current_player.minions[2].bind('damaged_by_spell', spell_damage_mock)
swipe_card = game.other_player.hand[0]
game.play_single_turn()
self.assertListEqual([mock.call(4, swipe_card), mock.call(1, swipe_card), mock.call(1, swipe_card)],
spell_damage_mock.call_args_list)
# The bloodfen raptor should be left, with one hp
self.assertEqual(1, len(game.other_player.minions))
self.assertEqual(1, game.other_player.minions[0].health)
self.assertEqual(29, game.other_player.hero.health)
def test_KeeperOfTheGrove(self):
# Test Moonfire option
game = generate_game_for(KeeperOfTheGrove, StonetuskBoar, MinionPlayingAgent, MinionPlayingAgent)
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(3, len(game.current_player.minions))
game.play_single_turn()
self.assertEqual(2, len(game.other_player.minions))
# Test Dispel option
random.seed(1857)
game = generate_game_for(KeeperOfTheGrove, StonetuskBoar, MinionPlayingAgent, MinionPlayingAgent)
game.players[0].agent.choose_option = lambda moonfire, dispel: dispel
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertTrue(game.current_player.minions[0].charge)
game.play_single_turn()
self.assertFalse(game.other_player.minions[0].charge)
# Test when there are no targets for the spell
random.seed(1857)
game = generate_game_for(KeeperOfTheGrove, StonetuskBoar, MinionPlayingAgent, DoNothingBot)
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(1, len(game.current_player.minions))
self.assertEqual("Keeper of the Grove", game.current_player.minions[0].card.name)
def test_DruidOfTheClaw(self):
game = generate_game_for(DruidOfTheClaw, StonetuskBoar, MinionPlayingAgent, DoNothingBot)
for turn in range(0, 9):
game.play_single_turn()
self.assertEqual(1, len(game.current_player.minions))
self.assertEqual(4, game.current_player.minions[0].calculate_attack())
self.assertEqual(4, game.current_player.minions[0].calculate_max_health())
self.assertTrue(game.current_player.minions[0].charge)
self.assertFalse(game.current_player.minions[0].taunt)
test_bear = game.current_player.minions[0].card.create_minion(None)
test_bear.player = game.current_player
self.assertEqual(4, test_bear.calculate_attack())
self.assertEqual(4, test_bear.calculate_max_health())
self.assertTrue(test_bear.charge)
self.assertFalse(test_bear.taunt)
game.current_player.agent.choose_option = lambda cat, bear: bear
game.play_single_turn()
game.play_single_turn()
self.assertEqual(2, len(game.current_player.minions))
self.assertEqual(4, game.current_player.minions[0].calculate_attack())
self.assertEqual(6, game.current_player.minions[0].calculate_max_health())
self.assertFalse(game.current_player.minions[0].charge)
self.assertTrue(game.current_player.minions[0].taunt)
test_bear = game.current_player.minions[0].card.create_minion(None)
test_bear.player = game.current_player
self.assertEqual(4, test_bear.calculate_attack())
self.assertEqual(6, test_bear.calculate_max_health())
self.assertFalse(test_bear.charge)
self.assertTrue(test_bear.taunt)
def test_Nourish(self):
# Test gaining two mana
game = generate_game_for(Nourish, StonetuskBoar, SpellTestingAgent, DoNothingBot)
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(7, game.current_player.max_mana)
self.assertEqual(7, len(game.current_player.hand))
# Ensure that the case where we would be over 10 mana is handled correctly
game.play_single_turn()
game.play_single_turn()
# Nourish is played twice. The first brings the player to 10, the second only increases the active mana, not
# max_mana
self.assertEqual(10, game.current_player.max_mana)
self.assertEqual(2, game.current_player.mana)
# Test drawing three cards
random.seed(1857)
game = generate_game_for(Nourish, StonetuskBoar, SpellTestingAgent, DoNothingBot)
game.players[0].agent.choose_option = lambda gain2, draw3: draw3
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(10, len(game.current_player.hand))
self.assertEqual(5, game.current_player.max_mana)
def test_Starfall(self):
# Test gaining two mana
game = generate_game_for(Starfall, StonetuskBoar, SpellTestingAgent, MinionPlayingAgent)
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(4, len(game.current_player.minions))
game.play_single_turn()
self.assertEqual(0, len(game.other_player.minions))
self.assertEqual(30, game.other_player.hero.health)
# Test drawing three cards
random.seed(1857)
game = generate_game_for(Starfall, MogushanWarden, SpellTestingAgent, MinionPlayingAgent)
game.players[0].agent.choose_option = lambda damageAll, damageOne: damageOne
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(1, len(game.other_player.minions))
self.assertEqual(2, game.other_player.minions[0].health)
self.assertEqual(30, game.other_player.hero.health)
def test_ForceOfNature(self):
game = generate_game_for(ForceOfNature, StonetuskBoar, SpellTestingAgent, DoNothingBot)
for turn in range(0, 10):
game.play_single_turn()
def check_minions():
self.assertEqual(3, len(game.current_player.minions))
for minion in game.current_player.minions:
self.assertEqual(2, minion.calculate_attack())
self.assertEqual(2, minion.health)
self.assertEqual(2, minion.calculate_max_health())
self.assertTrue(minion.charge)
self.assertEqual("Treant", minion.card.name)
game.other_player.bind_once("turn_ended", check_minions)
game.play_single_turn()
self.assertEqual(0, len(game.other_player.minions))
def test_Starfire(self):
game = generate_game_for(Starfire, MogushanWarden, EnemyMinionSpellTestingAgent, MinionPlayingAgent)
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(2, len(game.current_player.minions))
game.play_single_turn()
self.assertEqual(2, len(game.other_player.minions))
self.assertEqual(2, game.other_player.minions[0].health)
self.assertEqual(7, game.other_player.minions[1].health)
self.assertEqual(9, len(game.current_player.hand))
def test_AncientOfLore(self):
game = generate_game_for(AncientOfLore, Starfire, MinionPlayingAgent, EnemySpellTestingAgent)
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(game.other_player.hero.health, 25)
game.play_single_turn()
self.assertEqual(30, game.current_player.hero.health)
self.assertEqual(1, len(game.current_player.minions))
self.assertEqual(5, game.current_player.minions[0].health)
self.assertEqual(5, game.current_player.minions[0].calculate_attack())
self.assertEqual("Ancient of Lore", game.current_player.minions[0].card.name)
random.seed(1857)
game = generate_game_for(AncientOfLore, StonetuskBoar, MinionPlayingAgent, DoNothingBot)
game.players[0].agent.choose_option = lambda heal, draw: draw
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(10, len(game.current_player.hand))
self.assertEqual(1, len(game.current_player.minions))
self.assertEqual(5, game.current_player.minions[0].health)
self.assertEqual(5, game.current_player.minions[0].calculate_attack())
self.assertEqual("Ancient of Lore", game.current_player.minions[0].card.name)
def test_AncientOfWar(self):
game = generate_game_for(AncientOfWar, IronbeakOwl, MinionPlayingAgent, MinionPlayingAgent)
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(1, len(game.current_player.minions))
self.assertEqual(5, game.current_player.minions[0].calculate_attack())
self.assertEqual(10, game.current_player.minions[0].health)
self.assertEqual(10, game.current_player.minions[0].calculate_max_health())
self.assertTrue(game.current_player.minions[0].taunt)
self.assertEqual("Ancient of War", game.current_player.minions[0].card.name)
self.assertEqual(5, len(game.other_player.minions))
game.play_single_turn()
self.assertEqual(6, len(game.current_player.minions))
self.assertEqual(5, game.other_player.minions[0].health)
self.assertEqual(5, game.other_player.minions[0].calculate_max_health())
self.assertFalse(game.other_player.minions[0].taunt)
random.seed(1857)
game = generate_game_for(AncientOfWar, IronbeakOwl, MinionPlayingAgent, MinionPlayingAgent)
game.players[0].agent.choose_option = lambda health, attack: attack
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(1, len(game.current_player.minions))
self.assertEqual(10, game.current_player.minions[0].calculate_attack())
self.assertEqual(5, game.current_player.minions[0].health)
self.assertEqual(5, game.current_player.minions[0].calculate_max_health())
self.assertFalse(game.current_player.minions[0].taunt)
self.assertEqual("Ancient of War", game.current_player.minions[0].card.name)
self.assertEqual(5, len(game.other_player.minions))
game.play_single_turn()
self.assertEqual(6, len(game.current_player.minions))
self.assertEqual(5, game.other_player.minions[0].health)
self.assertEqual(5, game.other_player.minions[0].calculate_max_health())
self.assertEqual(5, game.other_player.minions[0].calculate_attack())
self.assertFalse(game.other_player.minions[0].taunt)
def test_IronbarkProtector(self):
game = generate_game_for(IronbarkProtector, IronbeakOwl, MinionPlayingAgent, MinionPlayingAgent)
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(1, len(game.current_player.minions))
self.assertEqual(8, game.current_player.minions[0].calculate_attack())
self.assertEqual(8, game.current_player.minions[0].health)
self.assertEqual(8, game.current_player.minions[0].calculate_max_health())
self.assertTrue(game.current_player.minions[0].taunt)
self.assertEqual("Ironbark Protector", game.current_player.minions[0].card.name)
self.assertEqual(6, len(game.other_player.minions))
game.play_single_turn()
self.assertEqual(7, len(game.current_player.minions))
self.assertFalse(game.other_player.minions[0].taunt)
def test_Cenarius(self):
deck1 = StackedDeck([StonetuskBoar()], CHARACTER_CLASS.DRUID)
deck2 = StackedDeck([WarGolem(), WarGolem(), Cenarius(), Cenarius()], CHARACTER_CLASS.DRUID)
game = Game([deck1, deck2], [DoNothingBot(), MinionPlayingAgent()])
game.pre_game()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
game.play_single_turn()
self.assertEqual(2, len(game.other_player.minions))
for minion in game.other_player.minions:
self.assertEqual(7, minion.calculate_attack())
self.assertEqual(7, minion.health)
self.assertEqual(7, minion.calculate_max_health())
game.play_single_turn()
self.assertEqual(3, len(game.current_player.minions))
self.assertEqual(5, game.current_player.minions[0].calculate_attack())
self.assertEqual(8, game.current_player.minions[0].health)
self.assertEqual(8, game.current_player.minions[0].calculate_max_health())
self.assertEqual("Cenarius", game.current_player.minions[0].card.name)
for minion_index in range(1, 3):
minion = game.current_player.minions[minion_index]
self.assertEqual(9, minion.calculate_attack())
self.assertEqual(9, minion.health)
self.assertEqual(9, minion.calculate_max_health())
game.players[1].agent.choose_option = lambda stats, summon: summon
game.play_single_turn()
game.play_single_turn()
self.assertEqual(6, len(game.current_player.minions))
self.assertEqual(5, game.current_player.minions[1].calculate_attack())
self.assertEqual(8, game.current_player.minions[1].health)
self.assertEqual(8, game.current_player.minions[1].calculate_max_health())
self.assertEqual("Cenarius", game.current_player.minions[1].card.name)
self.assertEqual(2, game.current_player.minions[0].calculate_attack())
self.assertEqual(2, game.current_player.minions[0].health)
self.assertEqual(2, game.current_player.minions[0].calculate_max_health())
self.assertTrue(game.current_player.minions[0].taunt)
self.assertEqual("Treant", game.current_player.minions[0].card.name)
self.assertEqual(2, game.current_player.minions[2].calculate_attack())
self.assertEqual(2, game.current_player.minions[2].health)
self.assertEqual(2, game.current_player.minions[2].calculate_max_health())
self.assertTrue(game.current_player.minions[2].taunt)
self.assertEqual("Treant", game.current_player.minions[2].card.name)
def test_PoisonSeeds(self):
game = generate_game_for([StonetuskBoar, BloodfenRaptor, IronfurGrizzly, PoisionSeeds],
HauntedCreeper, MinionPlayingAgent, MinionPlayingAgent)
for turn in range(0, 6):
game.play_single_turn()
self.assertEqual(2, len(game.current_player.minions))
self.assertEqual(3, len(game.other_player.minions))
game.play_single_turn()
self.assertEqual(3, len(game.current_player.minions))
self.assertEqual(6, len(game.other_player.minions))
for minion in game.current_player.minions:
self.assertEqual("Treant", minion.card.name)
self.assertEqual(2, minion.calculate_attack())
self.assertEqual(2, minion.calculate_max_health())
for index in range(0, 4):
self.assertEqual("Spectral Spider", game.other_player.minions[index].card.name)
self.assertEqual(1, game.other_player.minions[index].calculate_attack())
self.assertEqual(1, game.other_player.minions[index].calculate_max_health())
self.assertEqual("Treant", game.other_player.minions[4].card.name)
self.assertEqual(2, game.other_player.minions[4].calculate_attack())
self.assertEqual(2, game.other_player.minions[4].calculate_max_health())
self.assertEqual("Treant", game.other_player.minions[5].card.name)
self.assertEqual(2, game.other_player.minions[5].calculate_attack())
self.assertEqual(2, game.other_player.minions[5].calculate_max_health())
| 40.818528
| 120
| 0.684626
| 3,893
| 32,165
| 5.405343
| 0.069869
| 0.092382
| 0.161669
| 0.20786
| 0.823362
| 0.760823
| 0.724326
| 0.68954
| 0.641971
| 0.562848
| 0
| 0.015237
| 0.210384
| 32,165
| 787
| 121
| 40.870394
| 0.813292
| 0.038551
| 0
| 0.660566
| 0
| 0
| 0.010324
| 0.001424
| 0
| 0
| 0
| 0
| 0.31614
| 1
| 0.053245
| false
| 0
| 0.014975
| 0
| 0.074875
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 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
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fb1d2be116c21e769b849455662ea6590e0d2c00
| 484
|
py
|
Python
|
egg/resources/__init__.py
|
eanorambuena/Driver
|
3cb14f5d741c6bae364326305ae0ded04e10e9d4
|
[
"MIT"
] | null | null | null |
egg/resources/__init__.py
|
eanorambuena/Driver
|
3cb14f5d741c6bae364326305ae0ded04e10e9d4
|
[
"MIT"
] | null | null | null |
egg/resources/__init__.py
|
eanorambuena/Driver
|
3cb14f5d741c6bae364326305ae0ded04e10e9d4
|
[
"MIT"
] | null | null | null |
from egg.resources.console import *
from egg.resources.server import *
from egg.resources.structures import *
from egg.resources.auth import *
from egg.resources.constants import *
from egg.resources.extensions import *
from egg.resources.help import *
from egg.resources.modules import *
from egg.resources.parser import *
from egg.resources.strings import *
from egg.resources.utils import *
from egg.resources.web import *
_author="eanorambuena"
_author_email="eanorambuena@uc.cl"
| 32.266667
| 38
| 0.805785
| 67
| 484
| 5.776119
| 0.313433
| 0.217054
| 0.496124
| 0.625323
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.103306
| 484
| 15
| 39
| 32.266667
| 0.891705
| 0
| 0
| 0
| 0
| 0
| 0.061856
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.857143
| 0
| 0.857143
| 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
| 1
| 0
| 0
| 0
|
0
| 4
|
fb223c6e71ca1dc86e9314d86210a866c21d9362
| 220
|
py
|
Python
|
cauldronBase/Base.py
|
Razikus/cauldron
|
cc6e87cb4283efe00ad7e06c98d05e8571883447
|
[
"MIT"
] | null | null | null |
cauldronBase/Base.py
|
Razikus/cauldron
|
cc6e87cb4283efe00ad7e06c98d05e8571883447
|
[
"MIT"
] | null | null | null |
cauldronBase/Base.py
|
Razikus/cauldron
|
cc6e87cb4283efe00ad7e06c98d05e8571883447
|
[
"MIT"
] | null | null | null |
from sqlalchemy.ext.declarative import declarative_base
from flask import Flask
from flask import jsonify
from flask_marshmallow import Marshmallow
Base = declarative_base()
app = Flask(__name__)
ma = Marshmallow(app)
| 22
| 55
| 0.827273
| 29
| 220
| 6.034483
| 0.413793
| 0.154286
| 0.171429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122727
| 220
| 9
| 56
| 24.444444
| 0.906736
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.571429
| 0
| 0.571429
| 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
|
fb2eaccf39fb8ba5a32d82bc3c5d4475f3435246
| 57
|
py
|
Python
|
tests/helpers/test_plotting.py
|
sebastian-lapuschkin/Quantus
|
c3b8a9fb2018f34bd89ba38efa2b2b8c38128b3f
|
[
"MIT"
] | null | null | null |
tests/helpers/test_plotting.py
|
sebastian-lapuschkin/Quantus
|
c3b8a9fb2018f34bd89ba38efa2b2b8c38128b3f
|
[
"MIT"
] | null | null | null |
tests/helpers/test_plotting.py
|
sebastian-lapuschkin/Quantus
|
c3b8a9fb2018f34bd89ba38efa2b2b8c38128b3f
|
[
"MIT"
] | null | null | null |
"""No identified need to test plotting functionality."""
| 28.5
| 56
| 0.754386
| 7
| 57
| 6.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122807
| 57
| 1
| 57
| 57
| 0.86
| 0.877193
| 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
|
34b1bf44dd3558edd70025285efa4c01fcb9a1ed
| 101
|
py
|
Python
|
wellknownmsgs/AppStartingMsg.py
|
sdyiheng/SimplePythonWebApp
|
fc3188796a1e48a42a0c22b5f3b430c0de1be87a
|
[
"MIT"
] | null | null | null |
wellknownmsgs/AppStartingMsg.py
|
sdyiheng/SimplePythonWebApp
|
fc3188796a1e48a42a0c22b5f3b430c0de1be87a
|
[
"MIT"
] | null | null | null |
wellknownmsgs/AppStartingMsg.py
|
sdyiheng/SimplePythonWebApp
|
fc3188796a1e48a42a0c22b5f3b430c0de1be87a
|
[
"MIT"
] | null | null | null |
class AppStartingMsg(object):
'''应用程序启动消息'''
def __init__(self):
self.ErrorMsg = ""
| 16.833333
| 29
| 0.594059
| 9
| 101
| 6.222222
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.247525
| 101
| 5
| 30
| 20.2
| 0.736842
| 0.079208
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
34dd7a78ed67d24dec24e1e267661e54ecc9605b
| 23,901
|
py
|
Python
|
tests/test_challonge.py
|
eprouty/dgcastle
|
b4b56f7675648987f30d016a45e716cb76c69516
|
[
"MIT"
] | null | null | null |
tests/test_challonge.py
|
eprouty/dgcastle
|
b4b56f7675648987f30d016a45e716cb76c69516
|
[
"MIT"
] | 13
|
2017-01-30T15:38:38.000Z
|
2017-06-09T00:15:58.000Z
|
tests/test_challonge.py
|
eprouty/dgcastle
|
b4b56f7675648987f30d016a45e716cb76c69516
|
[
"MIT"
] | null | null | null |
import copy
import os
import pickle
import unittest
from unittest.mock import patch
from dgcastle import dgcastle
from dgcastle.exceptions import IncompleteException
from dgcastle.exceptions import ValidationException
from dgcastle.handlers.challonge import Challonge
TEST_TOURNAMENT = pickle.loads(b'\x80\x03}q\x00(X\x02\x00\x00\x00idq\x01J.X6\x00X\x04\x00\x00\x00nameq\x02X\x07\x00\x00\x00DG Testq\x03X\x03\x00\x00\x00urlq\x04X\x08\x00\x00\x00mwtmsdjsq\x05X\x0b\x00\x00\x00descriptionq\x06X\x1b\x00\x00\x00This is just a test bracketq\x07X\x0f\x00\x00\x00tournament-typeq\x08X\x12\x00\x00\x00single eliminationq\tX\n\x00\x00\x00started-atq\ncdatetime\ndatetime\nq\x0bC\n\x07\xe1\x06\t\x0e,\x13\x00\x00\x00q\x0cciso8601.iso8601\nFixedOffset\nq\rJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\x0e\x87q\x0fRq\x10}q\x11(X\x1a\x00\x00\x00_FixedOffset__offset_hoursq\x12J\xfc\xff\xff\xffX\x1c\x00\x00\x00_FixedOffset__offset_minutesq\x13K\x00X\x14\x00\x00\x00_FixedOffset__offsetq\x14cdatetime\ntimedelta\nq\x15J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\x16Rq\x17X\x12\x00\x00\x00_FixedOffset__nameq\x18h\x0eub\x86q\x19Rq\x1aX\x0c\x00\x00\x00completed-atq\x1bh\x0bC\n\x07\xe1\x06\t\x10\x14$\x00\x00\x00q\x1ch\rJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\x1d\x87q\x1eRq\x1f}q (h\x12J\xfc\xff\xff\xffh\x13K\x00h\x14h\x15J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q!Rq"h\x18h\x1dub\x86q#Rq$X\x17\x00\x00\x00require-score-agreementq%\x89X\x1e\x00\x00\x00notify-users-when-matches-openq&\x88X\n\x00\x00\x00created-atq\'h\x0bC\n\x07\xe1\x06\t\x0e+\x10\x00\x00\x00q(h\rJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q)\x87q*Rq+}q,(h\x12J\xfc\xff\xff\xffh\x13K\x00h\x14h\x15J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q-Rq.h\x18h)ub\x86q/Rq0X\n\x00\x00\x00updated-atq1h\x0bC\n\x07\xe1\x06\t\x10\x14$\x00\x00\x00q2h\rJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q3\x87q4Rq5}q6(h\x12J\xfc\xff\xff\xffh\x13K\x00h\x14h\x15J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q7Rq8h\x18h3ub\x86q9Rq:X\x05\x00\x00\x00stateq;X\x08\x00\x00\x00completeq<X\x0b\x00\x00\x00open-signupq=\x89X%\x00\x00\x00notify-users-when-the-tournament-endsq>\x88X\x0e\x00\x00\x00progress-meterq?KdX\r\x00\x00\x00quick-advanceq@\x89X\x16\x00\x00\x00hold-third-place-matchqA\x89X\x10\x00\x00\x00pts-for-game-winqBcdecimal\nDecimal\nqCX\x03\x00\x00\x000.0qD\x85qERqFX\x10\x00\x00\x00pts-for-game-tieqGhCX\x03\x00\x00\x000.0qH\x85qIRqJX\x11\x00\x00\x00pts-for-match-winqKhCX\x03\x00\x00\x001.0qL\x85qMRqNX\x11\x00\x00\x00pts-for-match-tieqOhCX\x03\x00\x00\x000.5qP\x85qQRqRX\x0b\x00\x00\x00pts-for-byeqShCX\x03\x00\x00\x001.0qT\x85qURqVX\x0c\x00\x00\x00swiss-roundsqWK\x00X\x07\x00\x00\x00privateqX\x89X\t\x00\x00\x00ranked-byqYX\n\x00\x00\x00match winsqZX\x0b\x00\x00\x00show-roundsq[\x88X\n\x00\x00\x00hide-forumq\\\x89X\x13\x00\x00\x00sequential-pairingsq]\x89X\x12\x00\x00\x00accept-attachmentsq^\x89X\x13\x00\x00\x00rr-pts-for-game-winq_hCX\x03\x00\x00\x000.0q`\x85qaRqbX\x13\x00\x00\x00rr-pts-for-game-tieqchCX\x03\x00\x00\x000.0qd\x85qeRqfX\x14\x00\x00\x00rr-pts-for-match-winqghCX\x03\x00\x00\x001.0qh\x85qiRqjX\x14\x00\x00\x00rr-pts-for-match-tieqkhCX\x03\x00\x00\x000.5ql\x85qmRqnX\x0e\x00\x00\x00created-by-apiqo\x89X\r\x00\x00\x00credit-cappedqp\x89X\x08\x00\x00\x00categoryqqNX\n\x00\x00\x00hide-seedsqr\x89X\x11\x00\x00\x00prediction-methodqsK\x00X\x15\x00\x00\x00predictions-opened-atqtNX\x10\x00\x00\x00anonymous-votingqu\x89X\x18\x00\x00\x00max-predictions-per-userqvK\x01X\n\x00\x00\x00signup-capqwNX\x07\x00\x00\x00game-idqxK@X\x12\x00\x00\x00participants-countqyK\x08X\x14\x00\x00\x00group-stages-enabledqz\x89X!\x00\x00\x00allow-participant-match-reportingq{\x88X\x05\x00\x00\x00teamsq|\x89X\x11\x00\x00\x00check-in-durationq}NX\x08\x00\x00\x00start-atq~NX\x16\x00\x00\x00started-checking-in-atq\x7fNX\n\x00\x00\x00tie-breaksq\x80X\x05\x00\x00\x00\n q\x81X\t\x00\x00\x00locked-atq\x82NX\x08\x00\x00\x00event-idq\x83NX$\x00\x00\x00public-predictions-before-start-timeq\x84\x89X\x06\x00\x00\x00rankedq\x85\x89X\x15\x00\x00\x00grand-finals-modifierq\x86NX\x1a\x00\x00\x00predict-the-losers-bracketq\x87\x89X\x04\x00\x00\x00spamq\x88NX\x03\x00\x00\x00hamq\x89NX\x12\x00\x00\x00description-sourceq\x8aX\x1b\x00\x00\x00This is just a test bracketq\x8bX\t\x00\x00\x00subdomainq\x8cNX\x12\x00\x00\x00full-challonge-urlq\x8dX\x1d\x00\x00\x00http://challonge.com/mwtmsdjsq\x8eX\x0e\x00\x00\x00live-image-urlq\x8fX!\x00\x00\x00http://challonge.com/mwtmsdjs.svgq\x90X\x0b\x00\x00\x00sign-up-urlq\x91NX\x18\x00\x00\x00review-before-finalizingq\x92\x88X\x15\x00\x00\x00accepting-predictionsq\x93\x89X\x13\x00\x00\x00participants-lockedq\x94\x88X\t\x00\x00\x00game-nameq\x95X\t\x00\x00\x00Disc Golfq\x96X\x16\x00\x00\x00participants-swappableq\x97\x89X\x10\x00\x00\x00team-convertableq\x98\x89X\x19\x00\x00\x00group-stages-were-startedq\x99\x89u.')
TEST_MATCH_INDEX = pickle.loads(b'\x80\x03]q\x00(}q\x01(X\x02\x00\x00\x00idq\x02J\xef\xd0Z\x05X\r\x00\x00\x00tournament-idq\x03J.X6\x00X\x05\x00\x00\x00stateq\x04X\x08\x00\x00\x00completeq\x05X\n\x00\x00\x00player1-idq\x06J\xfc.c\x03X\n\x00\x00\x00player2-idq\x07J\x0e/c\x03X\x17\x00\x00\x00player1-prereq-match-idq\x08NX\x17\x00\x00\x00player2-prereq-match-idq\tNX\x1d\x00\x00\x00player1-is-prereq-match-loserq\n\x89X\x1d\x00\x00\x00player2-is-prereq-match-loserq\x0b\x89X\t\x00\x00\x00winner-idq\x0cJ\xfc.c\x03X\x08\x00\x00\x00loser-idq\rJ\x0e/c\x03X\n\x00\x00\x00started-atq\x0ecdatetime\ndatetime\nq\x0fC\n\x07\xe1\x06\t\x0e,\x13\x00\x00\x00q\x10ciso8601.iso8601\nFixedOffset\nq\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\x12\x87q\x13Rq\x14}q\x15(X\x1a\x00\x00\x00_FixedOffset__offset_hoursq\x16J\xfc\xff\xff\xffX\x1c\x00\x00\x00_FixedOffset__offset_minutesq\x17K\x00X\x14\x00\x00\x00_FixedOffset__offsetq\x18cdatetime\ntimedelta\nq\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\x1aRq\x1bX\x12\x00\x00\x00_FixedOffset__nameq\x1ch\x12ub\x86q\x1dRq\x1eX\n\x00\x00\x00created-atq\x1fh\x0fC\n\x07\xe1\x06\t\x0e,\x13\x00\x00\x00q h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q!\x87q"Rq#}q$(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q%Rq&h\x1ch!ub\x86q\'Rq(X\n\x00\x00\x00updated-atq)h\x0fC\n\x07\xe1\x06\t\x0e-\r\x00\x00\x00q*h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q+\x87q,Rq-}q.(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q/Rq0h\x1ch+ub\x86q1Rq2X\n\x00\x00\x00identifierq3X\x01\x00\x00\x00Aq4X\x0e\x00\x00\x00has-attachmentq5\x89X\x05\x00\x00\x00roundq6K\x01X\r\x00\x00\x00player1-votesq7NX\r\x00\x00\x00player2-votesq8NX\x08\x00\x00\x00group-idq9NX\x10\x00\x00\x00attachment-countq:NX\x0e\x00\x00\x00scheduled-timeq;NX\x08\x00\x00\x00locationq<NX\x0b\x00\x00\x00underway-atq=NX\x08\x00\x00\x00optionalq>\x89X\x08\x00\x00\x00rushb-idq?NX\x0c\x00\x00\x00completed-atq@h\x0fC\n\x07\xe1\x06\t\x0e-\r\x00\x00\x00qAh\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00qB\x87qCRqD}qE(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87qFRqGh\x1chBub\x86qHRqIX\x14\x00\x00\x00suggested-play-orderqJK\x01X\x1a\x00\x00\x00prerequisite-match-ids-csvqKNX\n\x00\x00\x00scores-csvqLX\x03\x00\x00\x002-0qMu}qN(h\x02J\xf0\xd0Z\x05h\x03J.X6\x00h\x04X\x08\x00\x00\x00completeqOh\x06J\xff.c\x03h\x07J\x00/c\x03h\x08Nh\tNh\n\x89h\x0b\x89h\x0cJ\x00/c\x03h\rJ\xff.c\x03h\x0eh\x0fC\n\x07\xe1\x06\t\x0e,\x13\x00\x00\x00qPh\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00qQ\x87qRRqS}qT(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87qURqVh\x1chQub\x86qWRqXh\x1fh\x0fC\n\x07\xe1\x06\t\x0e,\x13\x00\x00\x00qYh\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00qZ\x87q[Rq\\}q](h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q^Rq_h\x1chZub\x86q`Rqah)h\x0fC\n\x07\xe1\x06\t\x10\x123\x00\x00\x00qbh\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00qc\x87qdRqe}qf(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87qgRqhh\x1chcub\x86qiRqjh3X\x01\x00\x00\x00Bqkh5\x89h6K\x01h7Nh8Nh9Nh:Nh;Nh<Nh=Nh>\x89h?Nh@h\x0fC\n\x07\xe1\x06\t\x10\x123\x00\x00\x00qlh\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00qm\x87qnRqo}qp(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87qqRqrh\x1chmub\x86qsRqthJK\x02hKNhLX\x03\x00\x00\x002-4quu}qv(h\x02J\xf1\xd0Z\x05h\x03J.X6\x00h\x04X\x08\x00\x00\x00completeqwh\x06J\xfd.c\x03h\x07J\x02/c\x03h\x08Nh\tNh\n\x89h\x0b\x89h\x0cJ\x02/c\x03h\rJ\xfd.c\x03h\x0eh\x0fC\n\x07\xe1\x06\t\x0e,\x13\x00\x00\x00qxh\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00qy\x87qzRq{}q|(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q}Rq~h\x1chyub\x86q\x7fRq\x80h\x1fh\x0fC\n\x07\xe1\x06\t\x0e,\x13\x00\x00\x00q\x81h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\x82\x87q\x83Rq\x84}q\x85(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\x86Rq\x87h\x1ch\x82ub\x86q\x88Rq\x89h)h\x0fC\n\x07\xe1\x06\t\x10\x13\r\x00\x00\x00q\x8ah\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\x8b\x87q\x8cRq\x8d}q\x8e(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\x8fRq\x90h\x1ch\x8bub\x86q\x91Rq\x92h3X\x01\x00\x00\x00Cq\x93h5\x89h6K\x01h7Nh8Nh9Nh:Nh;Nh<Nh=Nh>\x89h?Nh@h\x0fC\n\x07\xe1\x06\t\x10\x13\r\x00\x00\x00q\x94h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\x95\x87q\x96Rq\x97}q\x98(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\x99Rq\x9ah\x1ch\x95ub\x86q\x9bRq\x9chJK\x03hKNhLX\x03\x00\x00\x000-2q\x9du}q\x9e(h\x02J\xf2\xd0Z\x05h\x03J.X6\x00h\x04X\x08\x00\x00\x00completeq\x9fh\x06J\xfe.c\x03h\x07J\x01/c\x03h\x08Nh\tNh\n\x89h\x0b\x89h\x0cJ\xfe.c\x03h\rJ\x01/c\x03h\x0eh\x0fC\n\x07\xe1\x06\t\x0e,\x13\x00\x00\x00q\xa0h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\xa1\x87q\xa2Rq\xa3}q\xa4(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\xa5Rq\xa6h\x1ch\xa1ub\x86q\xa7Rq\xa8h\x1fh\x0fC\n\x07\xe1\x06\t\x0e,\x13\x00\x00\x00q\xa9h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\xaa\x87q\xabRq\xac}q\xad(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\xaeRq\xafh\x1ch\xaaub\x86q\xb0Rq\xb1h)h\x0fC\n\x07\xe1\x06\t\x10\x134\x00\x00\x00q\xb2h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\xb3\x87q\xb4Rq\xb5}q\xb6(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\xb7Rq\xb8h\x1ch\xb3ub\x86q\xb9Rq\xbah3X\x01\x00\x00\x00Dq\xbbh5\x89h6K\x01h7Nh8Nh9Nh:Nh;Nh<Nh=Nh>\x89h?Nh@h\x0fC\n\x07\xe1\x06\t\x10\x134\x00\x00\x00q\xbch\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\xbd\x87q\xbeRq\xbf}q\xc0(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\xc1Rq\xc2h\x1ch\xbdub\x86q\xc3Rq\xc4hJK\x04hKNhLX\x03\x00\x00\x009-8q\xc5u}q\xc6(h\x02J\xf3\xd0Z\x05h\x03J.X6\x00h\x04X\x08\x00\x00\x00completeq\xc7h\x06J\xfc.c\x03h\x07J\x00/c\x03h\x08J\xef\xd0Z\x05h\tJ\xf0\xd0Z\x05h\n\x89h\x0b\x89h\x0cJ\xfc.c\x03h\rJ\x00/c\x03h\x0eh\x0fC\n\x07\xe1\x06\t\x10\x123\x00\x00\x00q\xc8h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\xc9\x87q\xcaRq\xcb}q\xcc(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\xcdRq\xceh\x1ch\xc9ub\x86q\xcfRq\xd0h\x1fh\x0fC\n\x07\xe1\x06\t\x0e,\x13\x00\x00\x00q\xd1h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\xd2\x87q\xd3Rq\xd4}q\xd5(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\xd6Rq\xd7h\x1ch\xd2ub\x86q\xd8Rq\xd9h)h\x0fC\n\x07\xe1\x06\t\x10\x14\x0c\x00\x00\x00q\xdah\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\xdb\x87q\xdcRq\xdd}q\xde(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\xdfRq\xe0h\x1ch\xdbub\x86q\xe1Rq\xe2h3X\x01\x00\x00\x00Eq\xe3h5\x89h6K\x02h7Nh8Nh9Nh:Nh;Nh<Nh=Nh>\x89h?Nh@h\x0fC\n\x07\xe1\x06\t\x10\x14\x0c\x00\x00\x00q\xe4h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\xe5\x87q\xe6Rq\xe7}q\xe8(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\xe9Rq\xeah\x1ch\xe5ub\x86q\xebRq\xechJK\x05hKX\x11\x00\x00\x0089837807,89837808q\xedhLX\x03\x00\x00\x001-0q\xeeu}q\xef(h\x02J\xf4\xd0Z\x05h\x03J.X6\x00h\x04X\x08\x00\x00\x00completeq\xf0h\x06J\x02/c\x03h\x07J\xfe.c\x03h\x08J\xf1\xd0Z\x05h\tJ\xf2\xd0Z\x05h\n\x89h\x0b\x89h\x0cJ\xfe.c\x03h\rJ\x02/c\x03h\x0eh\x0fC\n\x07\xe1\x06\t\x10\x134\x00\x00\x00q\xf1h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\xf2\x87q\xf3Rq\xf4}q\xf5(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\xf6Rq\xf7h\x1ch\xf2ub\x86q\xf8Rq\xf9h\x1fh\x0fC\n\x07\xe1\x06\t\x0e,\x13\x00\x00\x00q\xfah\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\xfb\x87q\xfcRq\xfd}q\xfe(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\xffRr\x00\x01\x00\x00h\x1ch\xfbub\x86r\x01\x01\x00\x00Rr\x02\x01\x00\x00h)h\x0fC\n\x07\xe1\x06\t\x10\x14\x02\x00\x00\x00r\x03\x01\x00\x00h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00r\x04\x01\x00\x00\x87r\x05\x01\x00\x00Rr\x06\x01\x00\x00}r\x07\x01\x00\x00(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87r\x08\x01\x00\x00Rr\t\x01\x00\x00h\x1cj\x04\x01\x00\x00ub\x86r\n\x01\x00\x00Rr\x0b\x01\x00\x00h3X\x01\x00\x00\x00Fr\x0c\x01\x00\x00h5\x89h6K\x02h7Nh8Nh9Nh:Nh;Nh<Nh=Nh>\x89h?Nh@h\x0fC\n\x07\xe1\x06\t\x10\x14\x02\x00\x00\x00r\r\x01\x00\x00h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00r\x0e\x01\x00\x00\x87r\x0f\x01\x00\x00Rr\x10\x01\x00\x00}r\x11\x01\x00\x00(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87r\x12\x01\x00\x00Rr\x13\x01\x00\x00h\x1cj\x0e\x01\x00\x00ub\x86r\x14\x01\x00\x00Rr\x15\x01\x00\x00hJK\x06hKX\x11\x00\x00\x0089837809,89837810r\x16\x01\x00\x00hLX\x03\x00\x00\x003-4r\x17\x01\x00\x00u}r\x18\x01\x00\x00(h\x02J\xf5\xd0Z\x05h\x03J.X6\x00h\x04X\x08\x00\x00\x00completer\x19\x01\x00\x00h\x06J\xfc.c\x03h\x07J\xfe.c\x03h\x08J\xf3\xd0Z\x05h\tJ\xf4\xd0Z\x05h\n\x89h\x0b\x89h\x0cJ\xfe.c\x03h\rJ\xfc.c\x03h\x0eh\x0fC\n\x07\xe1\x06\t\x10\x14\x0c\x00\x00\x00r\x1a\x01\x00\x00h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00r\x1b\x01\x00\x00\x87r\x1c\x01\x00\x00Rr\x1d\x01\x00\x00}r\x1e\x01\x00\x00(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87r\x1f\x01\x00\x00Rr \x01\x00\x00h\x1cj\x1b\x01\x00\x00ub\x86r!\x01\x00\x00Rr"\x01\x00\x00h\x1fh\x0fC\n\x07\xe1\x06\t\x0e,\x13\x00\x00\x00r#\x01\x00\x00h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00r$\x01\x00\x00\x87r%\x01\x00\x00Rr&\x01\x00\x00}r\'\x01\x00\x00(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87r(\x01\x00\x00Rr)\x01\x00\x00h\x1cj$\x01\x00\x00ub\x86r*\x01\x00\x00Rr+\x01\x00\x00h)h\x0fC\n\x07\xe1\x06\t\x10\x14\x1d\x00\x00\x00r,\x01\x00\x00h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00r-\x01\x00\x00\x87r.\x01\x00\x00Rr/\x01\x00\x00}r0\x01\x00\x00(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87r1\x01\x00\x00Rr2\x01\x00\x00h\x1cj-\x01\x00\x00ub\x86r3\x01\x00\x00Rr4\x01\x00\x00h3X\x01\x00\x00\x00Gr5\x01\x00\x00h5\x89h6K\x03h7Nh8Nh9Nh:Nh;Nh<Nh=Nh>\x89h?Nh@h\x0fC\n\x07\xe1\x06\t\x10\x14\x1d\x00\x00\x00r6\x01\x00\x00h\x11J\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00r7\x01\x00\x00\x87r8\x01\x00\x00Rr9\x01\x00\x00}r:\x01\x00\x00(h\x16J\xfc\xff\xff\xffh\x17K\x00h\x18h\x19J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87r;\x01\x00\x00Rr<\x01\x00\x00h\x1cj7\x01\x00\x00ub\x86r=\x01\x00\x00Rr>\x01\x00\x00hJK\x07hKX\x11\x00\x00\x0089837811,89837812r?\x01\x00\x00hLX\x03\x00\x00\x001-3r@\x01\x00\x00ue.')
TEST_PARTICIPANTS_INDEX = pickle.loads(b'\x80\x03]q\x00(}q\x01(X\x02\x00\x00\x00idq\x02J\xfc.c\x03X\r\x00\x00\x00tournament-idq\x03J.X6\x00X\x04\x00\x00\x00nameq\x04X\x01\x00\x00\x00Aq\x05X\x04\x00\x00\x00seedq\x06K\x01X\x06\x00\x00\x00activeq\x07\x88X\n\x00\x00\x00created-atq\x08cdatetime\ndatetime\nq\tC\n\x07\xe1\x06\t\x0e+/\x00\x00\x00q\nciso8601.iso8601\nFixedOffset\nq\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\x0c\x87q\rRq\x0e}q\x0f(X\x1a\x00\x00\x00_FixedOffset__offset_hoursq\x10J\xfc\xff\xff\xffX\x1c\x00\x00\x00_FixedOffset__offset_minutesq\x11K\x00X\x14\x00\x00\x00_FixedOffset__offsetq\x12cdatetime\ntimedelta\nq\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\x14Rq\x15X\x12\x00\x00\x00_FixedOffset__nameq\x16h\x0cub\x86q\x17Rq\x18X\n\x00\x00\x00updated-atq\x19h\tC\n\x07\xe1\x06\t\x0e,\x0f\x00\x00\x00q\x1ah\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\x1b\x87q\x1cRq\x1d}q\x1e(h\x10J\xfc\xff\xff\xffh\x11K\x00h\x12h\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\x1fRq h\x16h\x1bub\x86q!Rq"X\x0c\x00\x00\x00invite-emailq#NX\n\x00\x00\x00final-rankq$K\x02X\x04\x00\x00\x00miscq%NX\x04\x00\x00\x00iconq&NX\x0f\x00\x00\x00on-waiting-listq\'\x89X\r\x00\x00\x00invitation-idq(NX\x08\x00\x00\x00group-idq)NX\r\x00\x00\x00checked-in-atq*NX\x12\x00\x00\x00challonge-usernameq+NX \x00\x00\x00challonge-email-address-verifiedq,NX\t\x00\x00\x00removableq-\x89X%\x00\x00\x00participatable-or-invitation-attachedq.\x89X\x0e\x00\x00\x00confirm-removeq/\x88X\x12\x00\x00\x00invitation-pendingq0\x89X*\x00\x00\x00display-name-with-invitation-email-addressq1h\x05X\n\x00\x00\x00email-hashq2NX\x08\x00\x00\x00usernameq3NX\x0c\x00\x00\x00display-nameq4h\x05X$\x00\x00\x00attached-participatable-portrait-urlq5NX\x0c\x00\x00\x00can-check-inq6\x89X\n\x00\x00\x00checked-inq7\x89X\r\x00\x00\x00reactivatableq8\x89X\r\x00\x00\x00check-in-openq9\x89X\x10\x00\x00\x00group-player-idsq:NX\x13\x00\x00\x00has-irrelevant-seedq;\x89u}q<(h\x02J\xfd.c\x03h\x03J.X6\x00h\x04X\x01\x00\x00\x00Bq=h\x06K\x02h\x07\x88h\x08h\tC\n\x07\xe1\x06\t\x0e+/\x00\x00\x00q>h\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q?\x87q@RqA}qB(h\x10J\xfc\xff\xff\xffh\x11K\x00h\x12h\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87qCRqDh\x16h?ub\x86qERqFh\x19h\tC\n\x07\xe1\x06\t\x0e+/\x00\x00\x00qGh\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00qH\x87qIRqJ}qK(h\x10J\xfc\xff\xff\xffh\x11K\x00h\x12h\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87qLRqMh\x16hHub\x86qNRqOh#Nh$K\x05h%Nh&Nh\'\x89h(Nh)Nh*Nh+Nh,Nh-\x89h.\x89h/\x88h0\x89h1h=h2Nh3Nh4h=h5Nh6\x89h7\x89h8\x89h9\x89h:Nh;\x89u}qP(h\x02J\xfe.c\x03h\x03J.X6\x00h\x04X\x01\x00\x00\x00CqQh\x06K\x03h\x07\x88h\x08h\tC\n\x07\xe1\x06\t\x0e+/\x00\x00\x00qRh\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00qS\x87qTRqU}qV(h\x10J\xfc\xff\xff\xffh\x11K\x00h\x12h\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87qWRqXh\x16hSub\x86qYRqZh\x19h\tC\n\x07\xe1\x06\t\x0e+/\x00\x00\x00q[h\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\\\x87q]Rq^}q_(h\x10J\xfc\xff\xff\xffh\x11K\x00h\x12h\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q`Rqah\x16h\\ub\x86qbRqch#Nh$K\x01h%Nh&Nh\'\x89h(Nh)Nh*Nh+Nh,Nh-\x89h.\x89h/\x88h0\x89h1hQh2Nh3Nh4hQh5Nh6\x89h7\x89h8\x89h9\x89h:Nh;\x89u}qd(h\x02J\xff.c\x03h\x03J.X6\x00h\x04X\x01\x00\x00\x00Dqeh\x06K\x04h\x07\x88h\x08h\tC\n\x07\xe1\x06\t\x0e+/\x00\x00\x00qfh\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00qg\x87qhRqi}qj(h\x10J\xfc\xff\xff\xffh\x11K\x00h\x12h\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87qkRqlh\x16hgub\x86qmRqnh\x19h\tC\n\x07\xe1\x06\t\x0e+/\x00\x00\x00qoh\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00qp\x87qqRqr}qs(h\x10J\xfc\xff\xff\xffh\x11K\x00h\x12h\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87qtRquh\x16hpub\x86qvRqwh#Nh$K\x05h%Nh&Nh\'\x89h(Nh)Nh*Nh+Nh,Nh-\x89h.\x89h/\x88h0\x89h1heh2Nh3Nh4heh5Nh6\x89h7\x89h8\x89h9\x89h:Nh;\x89u}qx(h\x02J\x00/c\x03h\x03J.X6\x00h\x04X\x01\x00\x00\x00Eqyh\x06K\x05h\x07\x88h\x08h\tC\n\x07\xe1\x06\t\x0e+/\x00\x00\x00qzh\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q{\x87q|Rq}}q~(h\x10J\xfc\xff\xff\xffh\x11K\x00h\x12h\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\x7fRq\x80h\x16h{ub\x86q\x81Rq\x82h\x19h\tC\n\x07\xe1\x06\t\x0e+/\x00\x00\x00q\x83h\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\x84\x87q\x85Rq\x86}q\x87(h\x10J\xfc\xff\xff\xffh\x11K\x00h\x12h\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\x88Rq\x89h\x16h\x84ub\x86q\x8aRq\x8bh#Nh$K\x03h%Nh&Nh\'\x89h(Nh)Nh*Nh+Nh,Nh-\x89h.\x89h/\x88h0\x89h1hyh2Nh3Nh4hyh5Nh6\x89h7\x89h8\x89h9\x89h:Nh;\x89u}q\x8c(h\x02J\x01/c\x03h\x03J.X6\x00h\x04X\x01\x00\x00\x00Fq\x8dh\x06K\x06h\x07\x88h\x08h\tC\n\x07\xe1\x06\t\x0e+/\x00\x00\x00q\x8eh\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\x8f\x87q\x90Rq\x91}q\x92(h\x10J\xfc\xff\xff\xffh\x11K\x00h\x12h\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\x93Rq\x94h\x16h\x8fub\x86q\x95Rq\x96h\x19h\tC\n\x07\xe1\x06\t\x0e+/\x00\x00\x00q\x97h\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\x98\x87q\x99Rq\x9a}q\x9b(h\x10J\xfc\xff\xff\xffh\x11K\x00h\x12h\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\x9cRq\x9dh\x16h\x98ub\x86q\x9eRq\x9fh#Nh$K\x05h%Nh&Nh\'\x89h(Nh)Nh*Nh+Nh,Nh-\x89h.\x89h/\x88h0\x89h1h\x8dh2Nh3Nh4h\x8dh5Nh6\x89h7\x89h8\x89h9\x89h:Nh;\x89u}q\xa0(h\x02J\x02/c\x03h\x03J.X6\x00h\x04X\x01\x00\x00\x00Gq\xa1h\x06K\x07h\x07\x88h\x08h\tC\n\x07\xe1\x06\t\x0e+/\x00\x00\x00q\xa2h\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\xa3\x87q\xa4Rq\xa5}q\xa6(h\x10J\xfc\xff\xff\xffh\x11K\x00h\x12h\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\xa7Rq\xa8h\x16h\xa3ub\x86q\xa9Rq\xaah\x19h\tC\n\x07\xe1\x06\t\x0e+/\x00\x00\x00q\xabh\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\xac\x87q\xadRq\xae}q\xaf(h\x10J\xfc\xff\xff\xffh\x11K\x00h\x12h\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\xb0Rq\xb1h\x16h\xacub\x86q\xb2Rq\xb3h#Nh$K\x03h%Nh&Nh\'\x89h(Nh)Nh*Nh+Nh,Nh-\x89h.\x89h/\x88h0\x89h1h\xa1h2Nh3Nh4h\xa1h5Nh6\x89h7\x89h8\x89h9\x89h:Nh;\x89u}q\xb4(h\x02J\x0e/c\x03h\x03J.X6\x00h\x04X\x01\x00\x00\x00Hq\xb5h\x06K\x08h\x07\x88h\x08h\tC\n\x07\xe1\x06\t\x0e+8\x00\x00\x00q\xb6h\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\xb7\x87q\xb8Rq\xb9}q\xba(h\x10J\xfc\xff\xff\xffh\x11K\x00h\x12h\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\xbbRq\xbch\x16h\xb7ub\x86q\xbdRq\xbeh\x19h\tC\n\x07\xe1\x06\t\x0e,\x0f\x00\x00\x00q\xbfh\x0bJ\xfc\xff\xff\xffK\x00X\x06\x00\x00\x00-04:00q\xc0\x87q\xc1Rq\xc2}q\xc3(h\x10J\xfc\xff\xff\xffh\x11K\x00h\x12h\x13J\xff\xff\xff\xffJ@\x19\x01\x00K\x00\x87q\xc4Rq\xc5h\x16h\xc0ub\x86q\xc6Rq\xc7h#Nh$K\x05h%Nh&Nh\'\x89h(Nh)Nh*Nh+Nh,Nh-\x89h.\x89h/\x88h0\x89h1h\xb5h2Nh3Nh4h\xb5h5Nh6\x89h7\x89h8\x89h9\x89h:Nh;\x89ue.')
class TestChallongeImport(unittest.TestCase):
def setUp(self):
self.dgcastle = dgcastle.DGCastle(testDb="TestChallonge")
os.environ['CHALLONGE_API'] = 'test,test'
def tearDown(self):
del(self.dgcastle)
def test_import(self):
t = None
with patch('challonge.tournaments') as mock_tournaments:
mock_tournaments.show.return_value = TEST_TOURNAMENT
with patch('challonge.participants') as mock_participants:
mock_participants.index.return_value = TEST_PARTICIPANTS_INDEX
with patch('challonge.matches') as mock_matches:
mock_matches.index.return_value = TEST_MATCH_INDEX
t = self.dgcastle.challonge_import(1)
self.assertEqual(len(t.participants), 8)
self.assertEqual(len(t.matches), 7)
def test_incompleteBracket(self):
with patch('challonge.tournaments') as mock_tournaments:
ret_val = copy.deepcopy(TEST_TOURNAMENT)
ret_val['state'] = 'not complete'
mock_tournaments.show.return_value = ret_val
self.assertRaises(IncompleteException, self.dgcastle.challonge_import, 1)
def test_incorrectResultsData(self):
with patch('challonge.tournaments') as mock_tournaments:
mock_tournaments.show.return_value = TEST_TOURNAMENT
with patch('challonge.participants') as mock_participants:
mock_participants.index.return_value = TEST_PARTICIPANTS_INDEX
with patch('challonge.matches') as mock_matches:
ret_val = copy.deepcopy(TEST_MATCH_INDEX)
ret_val[0]['scores-csv'] = '1-0,2-1'
mock_matches.index.return_value = ret_val
self.assertRaises(ValidationException, self.dgcastle.challonge_import, 1)
| 426.803571
| 10,690
| 0.770554
| 4,815
| 23,901
| 3.805192
| 0.178193
| 0.122148
| 0.047156
| 0.026198
| 0.560255
| 0.531711
| 0.500819
| 0.476695
| 0.464251
| 0.437616
| 0
| 0.258288
| 0.023221
| 23,901
| 56
| 10,691
| 426.803571
| 0.526514
| 0
| 0
| 0.244444
| 0
| 0.177778
| 0.289139
| 0.283951
| 0
| 0
| 0
| 0
| 0.088889
| 1
| 0.111111
| false
| 0
| 0.311111
| 0
| 0.444444
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
34e56db9261caf77c7f05ca57c7245a93b1deefe
| 11,035
|
py
|
Python
|
tests/test_setup.py
|
rozuur/ptvsd
|
046fd0f054b2eed91ec5df02e5f36151b71e36b1
|
[
"MIT"
] | null | null | null |
tests/test_setup.py
|
rozuur/ptvsd
|
046fd0f054b2eed91ec5df02e5f36151b71e36b1
|
[
"MIT"
] | null | null | null |
tests/test_setup.py
|
rozuur/ptvsd
|
046fd0f054b2eed91ec5df02e5f36151b71e36b1
|
[
"MIT"
] | null | null | null |
import os.path
import unittest
from setup import iter_vendored_files
class IterVendoredFilesTests(unittest.TestCase):
def test_all(self):
filenames = set(iter_vendored_files())
self.assertEqual(filenames, VENDORED)
VENDORED = {file.replace('/', os.path.sep) for file in [
'pydevd/pydev_run_in_console.py',
'pydevd/setup_cython.py',
'pydevd/pydev_app_engine_debug_startup.py',
'pydevd/pydevd_tracing.py',
'pydevd/pydev_pysrc.py',
'pydevd/pydevconsole.py',
'pydevd/pydevd.py',
'pydevd/pydev_coverage.py',
'pydevd/pydevd_file_utils.py',
'pydevd/pydevd_attach_to_process/attach_linux_x86.so',
'pydevd/pydevd_attach_to_process/attach_pydevd.py',
'pydevd/pydevd_attach_to_process/attach_amd64.dll',
'pydevd/pydevd_attach_to_process/_test_attach_to_process.py',
'pydevd/pydevd_attach_to_process/attach_linux_amd64.so',
'pydevd/pydevd_attach_to_process/attach_x86.dll',
'pydevd/pydevd_attach_to_process/_always_live_program.py',
'pydevd/pydevd_attach_to_process/attach_x86.dylib',
'pydevd/pydevd_attach_to_process/_check.py',
'pydevd/pydevd_attach_to_process/README.txt',
'pydevd/pydevd_attach_to_process/add_code_to_python_process.py',
'pydevd/pydevd_attach_to_process/attach_x86_64.dylib',
'pydevd/pydevd_attach_to_process/attach_script.py',
'pydevd/pydevd_attach_to_process/_test_attach_to_process_linux.py',
'pydevd/pydevd_attach_to_process/dll/attach.h',
'pydevd/pydevd_attach_to_process/dll/python.h',
'pydevd/pydevd_attach_to_process/dll/attach.cpp',
'pydevd/pydevd_attach_to_process/dll/stdafx.h',
'pydevd/pydevd_attach_to_process/dll/compile_dll.bat',
'pydevd/pydevd_attach_to_process/dll/stdafx.cpp',
'pydevd/pydevd_attach_to_process/dll/targetver.h',
'pydevd/pydevd_attach_to_process/winappdbg/module.py',
'pydevd/pydevd_attach_to_process/winappdbg/event.py',
'pydevd/pydevd_attach_to_process/winappdbg/process.py',
'pydevd/pydevd_attach_to_process/winappdbg/thread.py',
'pydevd/pydevd_attach_to_process/winappdbg/disasm.py',
'pydevd/pydevd_attach_to_process/winappdbg/textio.py',
'pydevd/pydevd_attach_to_process/winappdbg/sql.py',
'pydevd/pydevd_attach_to_process/winappdbg/util.py',
'pydevd/pydevd_attach_to_process/winappdbg/crash.py',
'pydevd/pydevd_attach_to_process/winappdbg/registry.py',
'pydevd/pydevd_attach_to_process/winappdbg/breakpoint.py',
'pydevd/pydevd_attach_to_process/winappdbg/search.py',
'pydevd/pydevd_attach_to_process/winappdbg/compat.py',
'pydevd/pydevd_attach_to_process/winappdbg/window.py',
'pydevd/pydevd_attach_to_process/winappdbg/interactive.py',
'pydevd/pydevd_attach_to_process/winappdbg/__init__.py',
'pydevd/pydevd_attach_to_process/winappdbg/system.py',
'pydevd/pydevd_attach_to_process/winappdbg/debug.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/shlwapi.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/kernel32.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/advapi32.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/__init__.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/psapi.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/defines.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/user32.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/dbghelp.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/version.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/peb_teb.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/context_amd64.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/shell32.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/ntdll.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/wtsapi32.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/context_i386.py',
'pydevd/pydevd_attach_to_process/winappdbg/win32/gdi32.py',
'pydevd/pydevd_attach_to_process/winappdbg/plugins/__init__.py',
'pydevd/pydevd_attach_to_process/winappdbg/plugins/do_symfix.py',
'pydevd/pydevd_attach_to_process/winappdbg/plugins/README',
'pydevd/pydevd_attach_to_process/winappdbg/plugins/do_exchain.py',
'pydevd/pydevd_attach_to_process/winappdbg/plugins/do_example.py',
'pydevd/pydevd_attach_to_process/winappdbg/plugins/do_exploitable.py',
'pydevd/pydevd_attach_to_process/linux/gdb_threads_settrace.py',
'pydevd/pydevd_attach_to_process/linux/compile_mac.sh',
'pydevd/pydevd_attach_to_process/linux/Makefile',
'pydevd/pydevd_attach_to_process/linux/lldb_prepare.py',
'pydevd/pydevd_attach_to_process/linux/compile_so.sh',
'pydevd/pydevd_attach_to_process/linux/python.h',
'pydevd/pydevd_attach_to_process/linux/attach_linux.c',
'pydevd/pydevd_attach_to_process/linux/lldb_threads_settrace.py',
'pydevd/_pydev_bundle/_pydev_imports_tipper.py',
'pydevd/_pydev_bundle/_pydev_getopt.py',
'pydevd/_pydev_bundle/pydev_umd.py',
'pydevd/_pydev_bundle/fix_getpass.py',
'pydevd/_pydev_bundle/pydev_is_thread_alive.py',
'pydevd/_pydev_bundle/pydev_ipython_console.py',
'pydevd/_pydev_bundle/_pydev_jy_imports_tipper.py',
'pydevd/_pydev_bundle/pydev_imports.py',
'pydevd/_pydev_bundle/pydev_override.py',
'pydevd/_pydev_bundle/pydev_monkey.py',
'pydevd/_pydev_bundle/pydev_localhost.py',
'pydevd/_pydev_bundle/pydev_log.py',
'pydevd/_pydev_bundle/pydev_ipython_console_011.py',
'pydevd/_pydev_bundle/_pydev_tipper_common.py',
'pydevd/_pydev_bundle/pydev_monkey_qt.py',
'pydevd/_pydev_bundle/_pydev_log.py',
'pydevd/_pydev_bundle/_pydev_filesystem_encoding.py',
'pydevd/_pydev_bundle/pydev_versioncheck.py',
'pydevd/_pydev_bundle/__init__.py',
'pydevd/_pydev_bundle/_pydev_completer.py',
'pydevd/_pydev_bundle/pydev_import_hook.py',
'pydevd/_pydev_bundle/pydev_console_utils.py',
'pydevd/_pydev_bundle/_pydev_calltip_util.py',
'pydevd/pydevd_plugins/jinja2_debug.py',
'pydevd/pydevd_plugins/django_debug.py',
'pydevd/pydevd_plugins/__init__.py',
'pydevd/pydevd_plugins/extensions/README.md',
'pydevd/pydevd_plugins/extensions/__init__.py',
'pydevd/pydevd_plugins/extensions/types/pydevd_plugin_numpy_types.py',
'pydevd/pydevd_plugins/extensions/types/__init__.py',
'pydevd/pydevd_plugins/extensions/types/pydevd_helpers.py',
'pydevd/pydevd_plugins/extensions/types/pydevd_plugins_django_form_str.py',
'pydevd/_pydev_runfiles/pydev_runfiles_coverage.py',
'pydevd/_pydev_runfiles/pydev_runfiles_nose.py',
'pydevd/_pydev_runfiles/pydev_runfiles_parallel.py',
'pydevd/_pydev_runfiles/pydev_runfiles_pytest2.py',
'pydevd/_pydev_runfiles/pydev_runfiles.py',
'pydevd/_pydev_runfiles/pydev_runfiles_parallel_client.py',
'pydevd/_pydev_runfiles/__init__.py',
'pydevd/_pydev_runfiles/pydev_runfiles_xml_rpc.py',
'pydevd/_pydev_runfiles/pydev_runfiles_unittest.py',
'pydevd/pydevd_concurrency_analyser/pydevd_concurrency_logger.py',
'pydevd/pydevd_concurrency_analyser/pydevd_thread_wrappers.py',
'pydevd/pydevd_concurrency_analyser/__init__.py',
'pydevd/_pydev_imps/_pydev_xmlrpclib.py',
'pydevd/_pydev_imps/_pydev_execfile.py',
'pydevd/_pydev_imps/_pydev_SimpleXMLRPCServer.py',
'pydevd/_pydev_imps/_pydev_saved_modules.py',
'pydevd/_pydev_imps/_pydev_sys_patch.py',
'pydevd/_pydev_imps/_pydev_inspect.py',
'pydevd/_pydev_imps/_pydev_SocketServer.py',
'pydevd/_pydev_imps/_pydev_BaseHTTPServer.py',
'pydevd/_pydev_imps/__init__.py',
'pydevd/_pydev_imps/_pydev_pkgutil_old.py',
'pydevd/_pydev_imps/_pydev_uuid_old.py',
'pydevd/_pydevd_frame_eval/pydevd_frame_eval_cython_wrapper.py',
'pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.c',
'pydevd/_pydevd_frame_eval/pydevd_modify_bytecode.py',
'pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.pyx',
'pydevd/_pydevd_frame_eval/__init__.py',
'pydevd/_pydevd_frame_eval/pydevd_frame_eval_main.py',
'pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.pxd',
'pydevd/_pydevd_frame_eval/pydevd_frame_tracing.py',
'pydevd/pydev_ipython/inputhookpyglet.py',
'pydevd/pydev_ipython/inputhookgtk3.py',
'pydevd/pydev_ipython/inputhookqt5.py',
'pydevd/pydev_ipython/inputhookglut.py',
'pydevd/pydev_ipython/matplotlibtools.py',
'pydevd/pydev_ipython/inputhookqt4.py',
'pydevd/pydev_ipython/inputhookwx.py',
'pydevd/pydev_ipython/__init__.py',
'pydevd/pydev_ipython/qt_loaders.py',
'pydevd/pydev_ipython/inputhook.py',
'pydevd/pydev_ipython/README',
'pydevd/pydev_ipython/version.py',
'pydevd/pydev_ipython/qt_for_kernel.py',
'pydevd/pydev_ipython/inputhooktk.py',
'pydevd/pydev_ipython/qt.py',
'pydevd/pydev_ipython/inputhookgtk.py',
'pydevd/_pydevd_bundle/pydevd_vm_type.py',
'pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py',
'pydevd/_pydevd_bundle/pydevd_reload.py',
'pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py',
'pydevd/_pydevd_bundle/pydevd_cython.pyx',
'pydevd/_pydevd_bundle/pydevd_collect_try_except_info.py',
'pydevd/_pydevd_bundle/pydevd_extension_utils.py',
'pydevd/_pydevd_bundle/pydevd_stackless.py',
'pydevd/_pydevd_bundle/pydevd_constants.py',
'pydevd/_pydevd_bundle/pydevd_frame_utils.py',
'pydevd/_pydevd_bundle/pydevd_dont_trace_files.py',
'pydevd/_pydevd_bundle/pydevd_frame.py',
'pydevd/_pydevd_bundle/pydevd_xml.py',
'pydevd/_pydevd_bundle/pydevd_extension_api.py',
'pydevd/_pydevd_bundle/pydevd_comm.py',
'pydevd/_pydevd_bundle/pydevd_kill_all_pydevd_threads.py',
'pydevd/_pydevd_bundle/pydevd_traceproperty.py',
'pydevd/_pydevd_bundle/pydevd_command_line_handling.py',
'pydevd/_pydevd_bundle/pydevd_io.py',
'pydevd/_pydevd_bundle/pydevd_dont_trace.py',
'pydevd/_pydevd_bundle/pydevd_trace_dispatch.py',
'pydevd/_pydevd_bundle/pydevd_signature.py',
'pydevd/_pydevd_bundle/pydevd_import_class.py',
'pydevd/_pydevd_bundle/pydevd_custom_frames.py',
'pydevd/_pydevd_bundle/pydevd_additional_thread_info.py',
'pydevd/_pydevd_bundle/pydevd_exec.py',
'pydevd/_pydevd_bundle/pydevd_vars.py',
'pydevd/_pydevd_bundle/pydevd_exec2.py',
'pydevd/_pydevd_bundle/pydevd_cython_wrapper.py',
'pydevd/_pydevd_bundle/pydevd_plugin_utils.py',
'pydevd/_pydevd_bundle/pydevconsole_code_for_ironpython.py',
'pydevd/_pydevd_bundle/pydevd_process_net_command.py',
'pydevd/_pydevd_bundle/pydevd_resolver.py',
'pydevd/_pydevd_bundle/pydevd_utils.py',
'pydevd/_pydevd_bundle/pydevd_console.py',
'pydevd/_pydevd_bundle/pydevd_referrers.py',
'pydevd/_pydevd_bundle/pydevd_cython.c',
'pydevd/_pydevd_bundle/pydevd_breakpoints.py',
'pydevd/_pydevd_bundle/__init__.py',
'pydevd/_pydevd_bundle/pydevd_trace_api.py',
'pydevd/_pydevd_bundle/pydevd_save_locals.py',
'pydevd/pydev_sitecustomize/sitecustomize.py',
'pydevd/pydev_sitecustomize/__not_in_default_pythonpath.txt',
]}
| 50.852535
| 79
| 0.786226
| 1,482
| 11,035
| 5.352901
| 0.157895
| 0.173453
| 0.188831
| 0.173957
| 0.722047
| 0.579352
| 0.433127
| 0.233959
| 0.054834
| 0.012858
| 0
| 0.007213
| 0.095424
| 11,035
| 216
| 80
| 51.087963
| 0.787518
| 0
| 0
| 0
| 0
| 0
| 0.82773
| 0.826189
| 0
| 0
| 0
| 0
| 0.004785
| 1
| 0.004785
| false
| 0.004785
| 0.038278
| 0
| 0.047847
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
550bcb1222329d8b28b7654dc8f797c3fc71d7e1
| 4,363
|
py
|
Python
|
codes/mosaic.py
|
KurmasanaWT/community
|
5fc9e7da5b3e8df2bc9f85580a070de8c868a656
|
[
"MIT"
] | null | null | null |
codes/mosaic.py
|
KurmasanaWT/community
|
5fc9e7da5b3e8df2bc9f85580a070de8c868a656
|
[
"MIT"
] | null | null | null |
codes/mosaic.py
|
KurmasanaWT/community
|
5fc9e7da5b3e8df2bc9f85580a070de8c868a656
|
[
"MIT"
] | null | null | null |
import dash_bootstrap_components as dbc
from dash import html
from app import app
layout = dbc.Container(
children=[
dbc.Card([
#dbc.CardHeader("EURONEWS (União Européia)"),
dbc.CardBody([html.Iframe(className="ytvid", width="420", height="315", src="https://www.youtube.com/embed/sPgqEHsONK8?&autoplay=1&mute=1", allow="fullscreen")]),
], className="cardSize-vid"),
dbc.Card([
#dbc.CardHeader("SKY NEWS (Reino Unido)"),
dbc.CardBody([html.Iframe(className="ytvid", width="420", height="315", src="https://www.youtube.com/embed/9Auq9mYxFEE?&autoplay=1&mute=1", allow="fullscreen")]),
], className="cardSize-vid"),
dbc.Card([
#dbc.CardHeader("FRANCE 24 (França)"),
dbc.CardBody([html.Iframe(className="ytvid", width="420", height="315", src="https://www.youtube.com/embed/u9foWyMSATM?&autoplay=1&mute=1", allow="fullscreen")]),
], className="cardSize-vid"),
dbc.Card([
#dbc.CardHeader("DEUTSCH WELLE (Alemanha)"),
dbc.CardBody([html.Iframe(className="ytvid", width="420", height="315", src="https://www.youtube.com/embed/m01az_TdpQI?&autoplay=1&mute=1", allow="fullscreen")]),
], className="cardSize-vid"),
dbc.Card([
#dbc.CardHeader("RT (Rússia)"),
dbc.CardBody([html.Iframe(className="ytvid", width="420", height="315", src="https://odysee.com/$/embed/RTlivestream/8c06ebe369b6ecf6ad383e4a32bfca34c0168d79?r=RfLjh5uDhbZHt8SDkQFdZyKTmCbSCpWH&autoplay=1&mute=1", allow="fullscreen")]),
], className="cardSize-vid"),
dbc.Card([
#dbc.CardHeader("TRT WORLD (Turquia)"),
dbc.CardBody([html.Iframe(className="ytvid", width="420", height="315", src="https://www.youtube.com/embed/CV5Fooi8YJA?&autoplay=1&mute=1", allow="fullscreen")]),
], className="cardSize-vid"),
dbc.Card([
#dbc.CardHeader("AL JAZEERA (Catar)"),
dbc.CardBody([html.Iframe(className="ytvid", width="420", height="315", src="https://www.youtube.com/embed/F-POY4Q0QSI?&autoplay=1&mute=1", allow="fullscreen")]),
], className="cardSize-vid"),
dbc.Card([
#dbc.CardHeader("NDTV (India)"),
dbc.CardBody([html.Iframe(className="ytvid", width="420", height="315", src="https://www.youtube.com/embed/WB-y7_ymPJ4?&autoplay=1&mute=1", allow="fullscreen")]),
], className="cardSize-vid"),
dbc.Card([
#dbc.CardHeader("CGTN EUROPE (China)"),
dbc.CardBody([html.Iframe(className="ytvid", width="420", height="315", src="https://www.youtube.com/embed/FGabkYr-Sfs?&autoplay=1&mute=1", allow="fullscreen")]),
], className="cardSize-vid"),
dbc.Card([
#dbc.CardHeader("ANN NEWS (Japão)"),
dbc.CardBody([html.Iframe(className="ytvid", width="420", height="315", src="https://www.youtube.com/embed/coYw-eVU0Ks?&autoplay=1&mute=1", allow="fullscreen")]),
], className="cardSize-vid"),
dbc.Card([
#dbc.CardHeader("NEWS 12 NEW YORK (Estados Unidos)"),
dbc.CardBody([html.Iframe(className="ytvid", width="420", height="315", src="https://www.youtube.com/embed/RmmRlztXETI?&autoplay=1&mute=1", allow="fullscreen")]),
], className="cardSize-vid"),
dbc.Card([
#dbc.CardHeader("WEBCAM UCRÂNIA (Ao Vivo)"),
dbc.CardBody([html.Iframe(className="ytvid", width="420", height="315", src="https://www.youtube.com/embed/3hiyVq44pK8?&autoplay=1&mute=1", allow="fullscreen")]),
], className="cardSize-vid"),
html.Div(dbc.Badge(children=[
html.Span("* Todos os vídeos são transmitidos pelo "),
html.A(href='http://www.youtube.com', target='new', children='YouTube'),
html.Span(" exceto o canal RT, transmitido pelo "),
html.A(href='http://www.odysee.com', target='new', children='Odysee'),
html.Span(" .")
], className="badge-link",
))
], fluid=True
)
def get():
return html.Div(layout)
'''
RT RUSSIA
https://rumble.com/embed/vtp5hp/?pub=4&autoplay=2
https://odysee.com/$/embed/RTlivestream/8c06ebe369b6ecf6ad383e4a32bfca34c0168d79?r=RfLjh5uDhbZHt8SDkQFdZyKTmCbSCpWH
'''
| 49.579545
| 247
| 0.608755
| 500
| 4,363
| 5.304
| 0.246
| 0.042232
| 0.045249
| 0.090498
| 0.742459
| 0.742459
| 0.727376
| 0.727376
| 0.65083
| 0.632353
| 0
| 0.047986
| 0.19757
| 4,363
| 88
| 248
| 49.579545
| 0.709512
| 0.107495
| 0
| 0.45283
| 0
| 0.09434
| 0.362162
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.018868
| false
| 0
| 0.056604
| 0.018868
| 0.09434
| 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
|
5510dc6e8363a437e31e7e5a4bf4b7a901eabff1
| 459
|
py
|
Python
|
cliva_fl/utils/__init__.py
|
DataManagementLab/thesis-fl_client-side_validation
|
0f6a35d08966133e6a8c13a110b9307d91f2d9cb
|
[
"MIT"
] | null | null | null |
cliva_fl/utils/__init__.py
|
DataManagementLab/thesis-fl_client-side_validation
|
0f6a35d08966133e6a8c13a110b9307d91f2d9cb
|
[
"MIT"
] | null | null | null |
cliva_fl/utils/__init__.py
|
DataManagementLab/thesis-fl_client-side_validation
|
0f6a35d08966133e6a8c13a110b9307d91f2d9cb
|
[
"MIT"
] | null | null | null |
from .utils import vc, load_config, tensors_close, tensors_close_sum, rand_true, freivalds_rounds, submul_ratio
from .partial_class import partial_class
from .validation_set import ValidationSet
from .validation_buffer import ValidationBuffer
from .register_hooks import register_activation_hooks, register_gradient_hooks
from .model_poisoning import gradient_noise
from .logger import Logger
from .plotter import Plotter
from .time_tracker import TimeTracker
| 51
| 111
| 0.873638
| 62
| 459
| 6.16129
| 0.548387
| 0.062827
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.091503
| 459
| 9
| 112
| 51
| 0.916067
| 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
|
5515891d5f1f8f61ee9eb8bdb9f6ccda922b50fc
| 118
|
py
|
Python
|
shgo/__init__.py
|
rkern/shgo
|
03315284025e705f64bf84f3f9ba36026f6a7236
|
[
"MIT"
] | null | null | null |
shgo/__init__.py
|
rkern/shgo
|
03315284025e705f64bf84f3f9ba36026f6a7236
|
[
"MIT"
] | null | null | null |
shgo/__init__.py
|
rkern/shgo
|
03315284025e705f64bf84f3f9ba36026f6a7236
|
[
"MIT"
] | null | null | null |
from shgo.shgo_m.triangulation import *
from ._shgo import shgo
__all__ = [s for s in dir() if not s.startswith('_')]
| 29.5
| 53
| 0.728814
| 20
| 118
| 3.95
| 0.65
| 0.202532
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152542
| 118
| 4
| 53
| 29.5
| 0.79
| 0
| 0
| 0
| 0
| 0
| 0.008403
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.