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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e1be09ecb0d8170795fe98bfce94a3ff6af90bb4
| 34
|
py
|
Python
|
quotes_api/utils.py
|
atursams/exchange
|
233648b2a795a2b85c0127706695a8c3d24f9dc1
|
[
"MIT"
] | null | null | null |
quotes_api/utils.py
|
atursams/exchange
|
233648b2a795a2b85c0127706695a8c3d24f9dc1
|
[
"MIT"
] | null | null | null |
quotes_api/utils.py
|
atursams/exchange
|
233648b2a795a2b85c0127706695a8c3d24f9dc1
|
[
"MIT"
] | null | null | null |
def test():
return 'something'
| 17
| 22
| 0.647059
| 4
| 34
| 5.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.205882
| 34
| 2
| 22
| 17
| 0.814815
| 0
| 0
| 0
| 0
| 0
| 0.257143
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
bef97d768136496cb83edd4b7650fb9e7cb9cea4
| 350
|
py
|
Python
|
streaming/passivetotal/api/__init__.py
|
rcfontana/faust-transparency
|
e0a7773c5589ecded5e0567f469a62ecba748536
|
[
"MIT"
] | 12
|
2019-04-21T18:01:45.000Z
|
2020-11-05T03:17:35.000Z
|
streaming/passivetotal/api/__init__.py
|
d3vzer0/faust-enricher
|
17b8b59f26f60c36fda31e507dc6d897c22e80e9
|
[
"MIT"
] | 7
|
2019-04-22T19:53:36.000Z
|
2022-02-17T23:45:34.000Z
|
streaming/passivetotal/api/__init__.py
|
d3vzer0/faust-enricher
|
17b8b59f26f60c36fda31e507dc6d897c22e80e9
|
[
"MIT"
] | 3
|
2019-04-22T20:25:52.000Z
|
2019-12-19T21:19:16.000Z
|
from streaming.passivetotal.api.riskiq import PassiveTotal
from streaming.passivetotal.api.enrichment import Enrichment
from streaming.passivetotal.api.hostattributes import HostAtributes
from streaming.passivetotal.api.passivedns import PassiveDNS
from streaming.passivetotal.api.ssl import SSL
from streaming.passivetotal.api.whois import Whois
| 58.333333
| 68
| 0.871429
| 42
| 350
| 7.261905
| 0.285714
| 0.255738
| 0.491803
| 0.55082
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.077143
| 350
| 6
| 69
| 58.333333
| 0.944272
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 1
| 1
| 0
| 1
| 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
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 8
|
834c5588d8a51254c70fc0ee35c4e46bc2ff418e
| 266
|
py
|
Python
|
stellarobservatory/__init__.py
|
carlos-echeverria/stellar-observatory
|
afc396227fefaabf4717ab7ea0842be0bab7f098
|
[
"MIT"
] | null | null | null |
stellarobservatory/__init__.py
|
carlos-echeverria/stellar-observatory
|
afc396227fefaabf4717ab7ea0842be0bab7f098
|
[
"MIT"
] | null | null | null |
stellarobservatory/__init__.py
|
carlos-echeverria/stellar-observatory
|
afc396227fefaabf4717ab7ea0842be0bab7f098
|
[
"MIT"
] | null | null | null |
"""Stellar Observatory"""
from . import nodes, quorum_intersection, quorum_slice_definition, quorum_slices, \
quorum, quorums, utils
__all__ = ['nodes', 'quorum_intersection', 'quorum_slice_definition',
'quorum_slices', 'quorum', 'quorums', 'utils']
| 38
| 83
| 0.718045
| 27
| 266
| 6.62963
| 0.481481
| 0.122905
| 0.256983
| 0.324022
| 0.826816
| 0.826816
| 0.826816
| 0.826816
| 0.826816
| 0.826816
| 0
| 0
| 0.142857
| 266
| 6
| 84
| 44.333333
| 0.785088
| 0.071429
| 0
| 0
| 0
| 0
| 0.323651
| 0.095436
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 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
| 10
|
55c8f92b1314d287fb3aea092b83eb2595cfb7b8
| 66
|
py
|
Python
|
molsysmt/tools/openmm_AmberInpcrdFile/__init__.py
|
dprada/molsysmt
|
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
|
[
"MIT"
] | null | null | null |
molsysmt/tools/openmm_AmberInpcrdFile/__init__.py
|
dprada/molsysmt
|
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
|
[
"MIT"
] | null | null | null |
molsysmt/tools/openmm_AmberInpcrdFile/__init__.py
|
dprada/molsysmt
|
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
|
[
"MIT"
] | null | null | null |
from .is_openmm_AmberInpcrdFile import is_openmm_AmberInpcrdFile
| 22
| 64
| 0.909091
| 8
| 66
| 7
| 0.625
| 0.285714
| 0.821429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075758
| 66
| 2
| 65
| 33
| 0.918033
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
55cf51d988eb547d8b96c21a3e4db9453f7e35ee
| 874
|
py
|
Python
|
tp-e3_3.py
|
TechTamer/python-testing
|
988a92e9c4ff49b16a3a3f6fe3eef1f16528068d
|
[
"Unlicense"
] | null | null | null |
tp-e3_3.py
|
TechTamer/python-testing
|
988a92e9c4ff49b16a3a3f6fe3eef1f16528068d
|
[
"Unlicense"
] | null | null | null |
tp-e3_3.py
|
TechTamer/python-testing
|
988a92e9c4ff49b16a3a3f6fe3eef1f16528068d
|
[
"Unlicense"
] | null | null | null |
def do_repeat(f,n):
f() * n
corner = "+"
row = "-"
beam = "|"
filler = " "
width=4
num_across=3
num_down=2
print(((corner + (row * width )) * num_across) + corner)
print(((beam + (filler * width)) * num_across) + beam)
print(((beam + (filler * width)) * num_across) + beam)
print(((beam + (filler * width)) * num_across) + beam)
print(((beam + (filler * width)) * num_across) + beam)
print(((corner + (row * width )) * num_across) + corner)
print(((beam + (filler * width)) * num_across) + beam)
print(((beam + (filler * width)) * num_across) + beam)
print(((beam + (filler * width)) * num_across) + beam)
print(((beam + (filler * width)) * num_across) + beam)
print(((corner + (row * width )) * num_across) + corner)
def print_beams(box_width):
print(((beam + (filler * box_width)) * num_across) + beam)
#do_repeat(print_beams,width)
| 28.193548
| 64
| 0.599542
| 114
| 874
| 4.421053
| 0.166667
| 0.232143
| 0.333333
| 0.321429
| 0.72619
| 0.72619
| 0.72619
| 0.72619
| 0.72619
| 0.72619
| 0
| 0.004286
| 0.199085
| 874
| 30
| 65
| 29.133333
| 0.715714
| 0.032037
| 0
| 0.5
| 0
| 0
| 0.004751
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.090909
| false
| 0
| 0
| 0
| 0.090909
| 0.590909
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 9
|
55ec4b962f735501da512923bcc809c22058de86
| 7,697
|
py
|
Python
|
plugin.video.aswizard/default.py
|
thehtml5ninja/kodi
|
b5f5154d78bd0742b7fb7488bd3a39c764b16861
|
[
"Apache-2.0"
] | null | null | null |
plugin.video.aswizard/default.py
|
thehtml5ninja/kodi
|
b5f5154d78bd0742b7fb7488bd3a39c764b16861
|
[
"Apache-2.0"
] | null | null | null |
plugin.video.aswizard/default.py
|
thehtml5ninja/kodi
|
b5f5154d78bd0742b7fb7488bd3a39c764b16861
|
[
"Apache-2.0"
] | null | null | null |
exec("import re;import base64");exec((lambda p,y:(lambda o,b,f:re.sub(o,b,f))(r"([0-9a-f]+)",lambda m:p(m,y),base64.b64decode("OTEgMTFmLCAyZiwgMTA3LCAxMSwzNCxkOSw0OCxlLGE3LDgxLDRlLGI4LDkzCmY3IGY0LmRmLjMxIDkxIDEwYyAxMDUgMzEKCjI2ICAgICAgICA9ICdkNC5lYi5iMycKNzUgICAgICAgICAgID0gMmYuNzQoODA9MjYpCjEyNSAgICAgICA9IDJmLjc0KDgwPTI2KQo2MyAgICAgICAgPSAxMWYuNCgxMjUuOTIoJ2M2JykpCmI5ICAgICAgICAgICAgPSAxMWYuNCgzNC4xNy4yMygnMjE6Ly80ZC81Ny8nICsgMjYsICdiOS43MScpKQo2OCAgICAgICAgICAgID0gMTI1LjEyMSgnMmEnKQo0YyAgICAgICAgICAgPSAxMjUuMTIxKCcyOScpCjggICAgID0gMzQuMTcuMjMoMzQuMTcuMjMoNjMsJycpLCAnMTE4LjExMicpCjljICAgICAgPSAxMWYuNCgzNC4xNy4yMygnMjE6Ly80ZC81Ny8nLCAnJykpCmNmICAgICAgICAgID0gMTFmLjQoMzQuMTcuMjMoJzIxOi8vNGQvYjAvJywgJycpKQoKOTMuMTIwKDYwKQo0MCA2OCA9PSAnJyBkYyA0YyA9PSAnJzoKCTQwIDM0LjE3LmQ4KDgpOgoJCTMwOiAzNC41Yyg4KQoJCTEyNDogMWUKCTIwID0gMTA3LjVmKCkKCWRiID0gMjAuZjIoJzE1IDNiJywgJzVhIGVhIDg1IGJmIDNkIDEwZiAzOCcsJzExMyAxMTAgMTAwIGY4IGUzIGEyIDg1IGRlJywnMTFiIGM5IGMyIDcwIGMzIDkwJywnZDcnLCdlYycpCgk0MCBkYiA9PSAxOgoJCTI0ID0gMTFmLjY0KCcnLCAnOTcgYmMnKQoJCTI0LjdhKCkKCQk0MCAoMjQuNDMoKSk6CgkJCTNlID0gMjQuNzcoKQoJCQkzZD0zZQoJCQkyNCA9IDExZi42NCgnJywgJzk3IGJhOicpCgkJCTI0LjdhKCkKCQkJNDAgKDI0LjQzKCkpOgoJCQkJM2UgPSAyNC43NygpCgkJCQkzOD0zZQoJCQkJMTI1LjUxKCcyYScsM2QpCgkJCQkxMjUuNTEoJzI5JywzOCkKNjggPSAxMjUuMTIxKCcyYScpCjRjID0gMTI1LjEyMSgnMjknKQoKMjIgNTQoKToKCTNjKCkKCTViKCcxZjovLzcuNTkvMTkvMzYnKQoJMWMgPSAzMSgpLjM1KCcxZjovLzcuNTkvMTkvMzYnKQoJNDAgMTBiICdjZSA2ZCAxMDUnIDZkIDFjLjEyOgoJCTIwID0gMTA3LjVmKCkKCQkyMC42OSgnMTUgM2InLCAnMTE1IGVlIDEwYSBjNyBjOCA2ZCcsJzVhIGEyIDg1IGNiIDZkIGU3IGIxJywnJykKCQlmNigpCgkzNyA9IDI4KCcxZjovLzcuNTkvMTkvMTIvZi84MC82LycpLjE4KCdcMTFlJywnJykuMTgoJ1xmNScsJycpCgk1MiA9IGE3LjdmKCc2ZT0iKC4rPykiLis/MTA2PSIoLis/KSIuKz9mZj0iKC4rPykiLis/YTM9IiguKz8pIi4rPzU1PSIoLis/KSInKS40OSgzNykKCTcwIDZlLDEwZCxiZSwxMTQsYWIgNmQgNTI6CgkJM2YoNmUsMTBkLDEsYmUsMTE0LGFiKQoJODkoJ2U5IDc0IGYxJywnMTBkJywyLCcxZjovLzcuNTkvNDUvZTAvNWUuNzEnLDExNCxhYikKCTNmKCcxNiBhMScsJzEwZCcsMywnMWY6Ly83LjU5LzQ1L2UwLzUzLjcxJywxMTQpCgk0YSgnOGMnLCAnYmQnKQoKMjIgOWIoKToKCTMxKCkuNDYoOCkKCTM3ID0gMjgoJzFmOi8vNy41OS8xOS8xMi9mLzgwLzkvJykuMTgoJ1wxMWUnLCcnKS4xOCgnXGY1JywnJykKCTUyID0gYTcuN2YoJzZlPSIoLis/KSIuKz8xMDY9IiguKz8pIi4rP2ZmPSIoLis/KSIuKz9hMz0iKC4rPykiLis/NTU9IiguKz8pIicpLjQ5KDM3KQoJNzAgNmUsMTBkLGJlLDExNCxhYiA2ZCA1MjoKCQkzZig2ZSwxMGQsMSxiZSwxMTQsYWIpCgk0YSgnOGMnLCAnYmQnKQoJCSAKMjIgMjgoMTBkKToKCWFjID0gNDguYzEoMTBkKQoJYWMuYTUoJ2ZiLWU2JywgJ2M0LzUuMCAoN2I7IDEyMjsgN2IgMTE3IDUuMTsgMTE2LTExYTsgMTE5OjEuOS4wLjMpIGU0L2E0IGNjLzMuMC4zJykKCTFjID0gNDguY2EoYWMpCgkzNz0xYy4xMDIoKQoJMWMuZTUoKQoJMmIgMzcKCjIyIDNjKCk6Cgk2YSA9IDI4KCcxZjovLzcuNTkvNmIvNTMuMTA4JykKCTZhID0gNmEuMTgoJzE2IGFhJywnWzFiIGI2XTE2IGFhWy8xYl0nKQoJNjUoJ1sxYiBiNl1bYl0xNiBhYVsvYl1bLzFiXScgKyAnICAtICAnICsgJ1sxYiBkZF1bYl1hZSA5NFsvYl1bLzFiXScsIDZhKQoJCQoyMiA4Nyg2ZSwxMGQsYWIpOgoJMTcgPSAxMWYuNCgzNC4xNy4yMygnMjE6Ly80ZC81NycsJ2FmJykpCglhMCA9IDEwNy43ZCgpCglhMC5kMCgiMTUgM2IiLCI5NiA4MyA5ZiIsJycsICc1YSBmYycpCgk3Mz0zNC4xNy4yMygxNywgNmUrJy4xMGUnKQoJMzA6CgkgICAzNC41Yyg3MykKCTEyNDoKCSAgIDFlCgk0ZS5iNCgxMGQsIDczLCBhMCkKCTQ0ID0gMTFmLjQoMzQuMTcuMjMoJzIxOi8vJywnNGQnKSkKCWI4LjcyKDIpCglhMC5kMygwLCIiLCAiZjkgYSBkNiA5OCBlMSA6KSIpCgk4MS4xMTEoNzMsNDQsYTApCgkzMDoKCSAgIDM0LjVjKDczKQoJMTI0OgoJICAgMWUKCTIwID0gMTA3LjVmKCkKCTIwLjY5KCIxNSAzYiIsICI4NCA5ZiBiNSIsICJbMWIgZGRdZDUgOWQgMTA5IGUyIGZlIGZkIGQxWy8xYl0iKQoKMjIgNWIoNjcpOgoJYmIgPSAzMSgpLjM1KDY3KS4xMgoJZjUgPSBhNy40OShmNSc8ZjAgOGY9ImRhIiA2ZT0iKC4rPykiIDZmPSIoLis/KSIgLz4nLCBiYiwgYTcuMTI2KQoJMTQgPSB7fQoJMTRbJzgyJ10gPSA2OAoJMTRbJzhlJ10gPSA0YwoJNzAgNmUsIDZmIDZkIGY1OgoJCTE0WzZlXSA9IDZmCgkzMSgpLjM1KCcxZjovLzcuNTkvMTkvMzYnKQoJMzEoKS5hZCgnMWY6Ly83LjU5LzE5LzM2JywxNCkKCTMxKCkuOGIoOCkKCTMxKCkuNDYoOCkKCjIyIDNmKDZlLDEwZCwxMCxiZSwxMTQsYWI9JycpOgoJCWZhPTM5LjI3WzBdKyI/MTBkPSIrZS4xYSgxMGQpKyImMTA9Iis4NigxMCkrIiY2ZT0iK2UuMWEoNmUpKyImYWI9Iis4NihhYikKCQk2OT04YQoJCTNhPTEwNy42MSg2ZSwgNTg9IjMzLjcxIiwgMmQ9YmUpCgkJM2EuN2MoIDhmPSJhNiIsIDExZD17ICI5OSI6IDZlLCAnYjcnOiBhYiB9ICkKCQkzYS40NygnNDEnLCAxMTQpCgkJNjk9MTEuMjUoODg9NWUoMzkuMjdbMV0pLDEwZD1mYSw2Yz0zYSw2Nj1lZikKCQkyYiA2OQoKMjIgODkoNmUsMTBkLDEwLGJlLDExNCxhYj0nJyk6CgkJZmE9MzkuMjdbMF0rIj8xMGQ9IitlLjFhKDEwZCkrIiYxMD0iKzg2KDEwKSsiJjZlPSIrZS4xYSg2ZSkrIiZhYj0iKzg2KGFiKQoJCTY5PThhCgkJM2E9MTA3LjYxKDZlLCA1OD0iMzMuNzEiLCAyZD1iZSkKCQkzYS43YyggOGY9ImE2IiwgMTFkPXsgIjk5IjogNmUsICdiNyc6IGFiIH0gKQoJCTNhLjQ3KCc0MScsIDExNCkKCQk2OT0xMS4yNSg4OD01ZSgzOS4yN1sxXSksMTBkPWZhLDZjPTNhLDY2PThhKQoJCTJiIDY5CgoyMiA2NSg3OSwgYzApOgoJODAgPSBmMwoJMTFmLjJjKCc3OCglZCknICUgODApCgkxMWYuNzIoZDIpCglhOSA9IDEwNy5jZCg4MCkKCTc2ID0gNTAKCTk4ICg3NiA+IDApOgoJCTMwOgoJCQkxMWYuNzIoZDIpCgkJCTc2IC09IDEKCQkJYTkuNGYoMSkuYjIoNzkpCgkJCWE5LjRmKDUpLmM1KGMwKQoJCQkyYgoJCTEyNDoKCQkJMWUKCQoyMiA0YSgxMiwgNjIpOgoJNDAgMTI6CgkJMTEuOWUoNWUoMzkuMjdbMV0pLCAxMikKCTQwIDc1LjEyMSgnMTAxLTEwMycpPT0nMTA0JzoKCQkxMWYuMmMoImE4Ljk1KCUxMjMpIiAlIDc1LjEyMSg2MikgKQoJCQoyMiA0YigpOgoJCTU2PVtdCgkJNDI9MzkuMjdbMl0KCQk0MCA1ZCg0Mik+PTI6CgkJCQllZD0zOS4yN1syXQoJCQkJMzI9ZWQuMTgoJz8nLCcnKQoJCQkJNDAgKGVkWzVkKGVkKS0xXT09Jy8nKToKCQkJCQkJZWQ9ZWRbMDo1ZChlZCktMl0KCQkJCTFkPTMyLjlhKCcmJykKCQkJCTU2PXt9CgkJCQk3MCAxMWMgNmQgZTgoNWQoMWQpKToKCQkJCQkJYz17fQoJCQkJCQljPTFkWzExY10uOWEoJz0nKQoJCQkJCQk0MCAoNWQoYykpPT0yOgoJCQkJCQkJCTU2W2NbMF1dPWNbMV0KCQkJCQkJCQkKCQkyYiA1NgoJCQkJCQkJCmVkPTRiKCk7MTBkPTJlOzZlPTJlOzEwPTJlO2JlPTJlO2FiPTJlCjMwOjEwZD1lLjEzKGVkWyIxMGQiXSkKMTI0OjFlCjMwOjZlPWUuMTMoZWRbIjZlIl0pCjEyNDoxZQozMDpiZT1lLjEzKGVkWyJiZSJdKQoxMjQ6MWUKMzA6MTA9NWUoZWRbIjEwIl0pCjEyNDoxZQozMDphYj1lLjEzKGVkWyJhYiJdKQoxMjQ6MWUKCjQwIDEwPT0yZSBkYyAxMGQ9PTJlIGRjIDVkKDEwZCk8MTo1NCgpCjhkIDEwPT0xOjg3KDZlLDEwZCxhYikKOGQgMTA9PTI6OWIoKQo4ZCAxMD09MzozYygpCgoxMS43ZSg1ZSgzOS4yN1sxXSkp")))(lambda a,b:b[int("0x"+a.group(1),16)],"0|1|2|3|translatePath|5|6|dswizard|cookie_file|9|a|B|splitparams|d|urllib|f|mode|xbmcplugin|content|unquote_plus|post_data|DroidSticks|Droidsticks|path|replace|amember|quote_plus|COLOR|response|pairsofparams|pass|http|dialog|special|def|join|keyb|addDirectoryItem|addon_id|argv|OPEN_URL|dspassword|dsusername|return|executebuiltin|thumbnailImage|None|xbmcaddon|try|net|cleanedparams|DefaultFolder|os|http_GET|member|link|password|sys|liz|Wizard|showdisc|username|search|addDir|if|fanart_image|paramstring|isConfirmed|addonfolder|WizardIcons|set_cookies|setProperty|urllib2|findall|setView|get_params|passw|home|downloader|getControl|50|setSetting|match|disclaimer|CATEGORIES|escription|param|addons|iconImage|co|Please|setCookie|remove|len|int|Dialog|60|ListItem|viewType|datapath|Keyboard|showText|isFolder|srDomain|user|ok|disc|WizardDisclaimer|listitem|in|name|value|for|png|sleep|lib|Addon|ADDON|retry|getText|ActivateWindow|heading|doModal|Windows|setInfo|DialogProgress|endOfDirectory|compile|id|extract|amember_login|configuration|Configuration|your|str|wizard|handle|addFol|True|save_cookies|movies|elif|amember_pass|type|instructions|import|getAddonInfo|socket|Information|SetViewMode|Downloading|Enter|while|Title|split|world|addonspath|DISCONNECT|setContent|files|dp|Disclaimer|check|anart|2008092417|add_header|Video|re|Container|win|Ltd|description|req|http_POST|Important|packages|userdata|settings|setLabel|aswizard|download|prepared|blue|plot|time|icon|Password|html|Username|MAIN|iconimage|assigned|text|Request|support|further|Mozilla|setText|profile|ocurred|logging|contact|urlopen|details|Firefox|Window|Logged|udpath|create|DEVICE|300|update|plugin|PLEASE|little|Cancel|exists|shutil|hidden|ret|or|red|emails|common|new|longer|POWER|these|Gecko|close|Agent|addon|range|World|enter|video|Login|params|error|False|input|Packs|yesno|10147|t0mm0|r|quit|from|have|Just|u|User|Wait|YOUR|FROM|mg|dont|auto|read|view|true|as|rl|xbmcgui|txt|THE|has|not|Net|url|zip|and|you|all|lwp|If|fanart|An|en|NT|ds|rv|GB|Or|i|infoLabels|n|xbmc|setdefaulttimeout|getSetting|U|s|except|selfAddon|I".split("|")))
| 3,848.5
| 7,696
| 0.95063
| 362
| 7,697
| 20.171271
| 0.81768
| 0.000548
| 0.000822
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.064109
| 0.000909
| 7,697
| 1
| 7,697
| 7,697
| 0.885436
| 0
| 0
| 0
| 0
| 2
| 0.980642
| 0.975835
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| true
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 12
|
365908c2c80d5f26069a10aec40a3c8e2741f341
| 22,125
|
py
|
Python
|
classification/model/cnn_df_model.py
|
NeuroDataDesign/DF-CNN
|
d23afd8acb2eec22b48f64b2c66bd0efc0d1539a
|
[
"MIT"
] | 3
|
2020-02-18T17:17:56.000Z
|
2020-12-18T07:42:24.000Z
|
classification/model/cnn_df_model.py
|
NeuroDataDesign/DF-CNN
|
d23afd8acb2eec22b48f64b2c66bd0efc0d1539a
|
[
"MIT"
] | 1
|
2021-05-17T08:20:34.000Z
|
2021-06-30T20:51:21.000Z
|
classification/model/cnn_df_model.py
|
NeuroDataDesign/DF-CNN
|
d23afd8acb2eec22b48f64b2c66bd0efc0d1539a
|
[
"MIT"
] | 4
|
2020-07-12T21:40:22.000Z
|
2021-01-26T08:25:18.000Z
|
import numpy as np
import tensorflow as tf
from utils.utils import *
from utils.utils_df_nn import *
#### Deconvolutional factorized CNN in paper 'Learning shared knowledge for deep lifelong learning using deconvolutional networks' of IJCAI 2019
class Deconvolutional_Factorized_CNN():
def __init__(self, num_tasks, dim_channels, dim_fcs, input_size, dim_kernels, dim_strides, dim_cnn_know_base, dim_cnn_task_specific, dim_cnn_deconv_strides, batch_size, learning_rate, learning_rate_decay, padding_type='SAME', max_pooling=False, dim_pool=None, dropout=False, relation_activation_fn_cnn=tf.nn.relu):
self.num_tasks = num_tasks
self.num_layers = len(dim_channels) + len(dim_fcs)
self.num_cnn_KB_para = len(dim_channels)
self.num_cnn_TS_para = 0
self.num_fc_para = 0
self.cnn_channels_size = [input_size[-1]]+dim_channels ## include dim of input channel
self.cnn_kernel_size = dim_kernels ## len(kernel_size) == 2*(len(channels_size)-1)
self.cnn_stride_size = dim_strides
self.pool_size = dim_pool ## len(pool_size) == 2*(len(channels_size)-1)
self.cnn_KB_size = dim_cnn_know_base
self.cnn_TS_size = dim_cnn_task_specific
self.cnn_deconv_stride_size = dim_cnn_deconv_strides
self.fc_size = dim_fcs
self.input_size = input_size ## img_width * img_height * img_channel
self.learn_rate = learning_rate
self.learn_rate_decay = learning_rate_decay
self.batch_size = batch_size
#### placeholder of model
self.epoch = tf.placeholder(dtype=tf.float32)
self.dropout_prob = tf.placeholder(dtype=tf.float32)
self.model_input = [tf.placeholder(dtype=tf.float32, shape=[self.batch_size, self.input_size[0]*self.input_size[1]*self.input_size[2]]) for _ in range(self.num_tasks)]
self.true_output = [tf.placeholder(dtype=tf.float32, shape=[self.batch_size]) for _ in range(self.num_tasks)]
with tf.name_scope('Data_Minibatch'):
train_x_batch = [tf.reshape(x, [-1] + self.input_size) for x in self.model_input]
valid_x_batch = [tf.reshape(x, [-1] + self.input_size) for x in self.model_input]
test_x_batch = [tf.reshape(x, [-1] + self.input_size) for x in self.model_input]
train_y_batch = [y for y in self.true_output]
valid_y_batch = [y for y in self.true_output]
test_y_batch = [y for y in self.true_output]
#### layers of model for train data
self.train_models, self.cnn_TS_param, self.cnn_gen_param, self.fc_param = [], [], [], []
for task_cnt in range(self.num_tasks):
if task_cnt == 0:
model_tmp, self.cnn_KB_param, cnn_TS_param_tmp, cnn_gen_param_tmp, fc_param_tmp = new_dfcnn_fc_net(train_x_batch[task_cnt], self.cnn_kernel_size, self.cnn_channels_size, self.cnn_stride_size, self.fc_size, self.cnn_KB_size, self.cnn_TS_size, self.cnn_deconv_stride_size, cnn_para_activation_fn=relation_activation_fn_cnn, cnn_KB_params=None, cnn_TS_params=None, fc_params=None, padding_type=padding_type, max_pool=max_pooling, pool_sizes=dim_pool, dropout=dropout, dropout_prob=self.dropout_prob, output_type=None, task_index=task_cnt)
self.num_cnn_TS_para = len(cnn_TS_param_tmp)
self.num_fc_para = len(fc_param_tmp)
else:
model_tmp, _, cnn_TS_param_tmp, cnn_gen_param_tmp, fc_param_tmp = new_dfcnn_fc_net(train_x_batch[task_cnt], self.cnn_kernel_size, self.cnn_channels_size, self.cnn_stride_size, self.fc_size, self.cnn_KB_size, self.cnn_TS_size, self.cnn_deconv_stride_size, cnn_para_activation_fn=relation_activation_fn_cnn, cnn_KB_params=self.cnn_KB_param, cnn_TS_params=None, fc_params=None, padding_type=padding_type, max_pool=max_pooling, pool_sizes=dim_pool, dropout=dropout, dropout_prob=self.dropout_prob, output_type=None, task_index=task_cnt)
self.cnn_TS_param.append(cnn_TS_param_tmp)
self.cnn_gen_param.append(cnn_gen_param_tmp)
self.fc_param.append(fc_param_tmp)
self.train_models.append(model_tmp)
self.param = self.cnn_KB_param + sum(self.cnn_TS_param, []) + sum(self.fc_param, [])
assert (len(self.cnn_KB_param) == self.num_cnn_KB_para), "CNN KB size doesn't match"
assert (sum([len(self.cnn_TS_param[x]) for x in range(len(self.cnn_TS_param))]) == self.num_tasks * self.num_cnn_TS_para), "CNN TS size doesn't match"
#### layers of model for validation data
self.valid_models = []
for task_cnt in range(self.num_tasks):
model_tmp, _, _, _, _ = new_dfcnn_fc_net(valid_x_batch[task_cnt], self.cnn_kernel_size, self.cnn_channels_size, self.cnn_stride_size, self.fc_size, self.cnn_KB_size, self.cnn_TS_size, self.cnn_deconv_stride_size, cnn_para_activation_fn=relation_activation_fn_cnn, cnn_KB_params=self.cnn_KB_param, cnn_TS_params=self.cnn_TS_param[task_cnt], fc_params=self.fc_param[task_cnt], padding_type=padding_type, max_pool=max_pooling, pool_sizes=dim_pool, dropout=dropout, dropout_prob=self.dropout_prob, output_type=None, task_index=task_cnt)
self.valid_models.append(model_tmp)
#### layers of model for test data
self.test_models = []
for task_cnt in range(self.num_tasks):
model_tmp, _, _, _, _ = new_dfcnn_fc_net(test_x_batch[task_cnt], self.cnn_kernel_size, self.cnn_channels_size, self.cnn_stride_size, self.fc_size, self.cnn_KB_size, self.cnn_TS_size, self.cnn_deconv_stride_size, cnn_para_activation_fn=relation_activation_fn_cnn, cnn_KB_params=self.cnn_KB_param, cnn_TS_params=self.cnn_TS_param[task_cnt], fc_params=self.fc_param[task_cnt], padding_type=padding_type, max_pool=max_pooling, pool_sizes=dim_pool, dropout=dropout, dropout_prob=self.dropout_prob, output_type=None, task_index=task_cnt)
self.test_models.append(model_tmp)
#### loss functions of model
self.train_eval, self.valid_eval, self.test_eval, self.train_loss, self.valid_loss, self.test_loss, self.train_accuracy, self.valid_accuracy, self.test_accuracy, self.train_output_label, self.valid_output_label, self.test_output_label = mtl_model_output_functions([self.train_models, self.valid_models, self.test_models], [train_y_batch, valid_y_batch, test_y_batch], self.num_tasks)
self.update = [tf.train.RMSPropOptimizer(learning_rate=self.learn_rate/(1.0+self.epoch*self.learn_rate_decay)).minimize(self.train_loss[x]) for x in range(self.num_tasks)]
self.num_trainable_var = count_trainable_var()
def get_params_val(self, sess):
KB_param_val = get_value_of_valid_tensors(sess, self.cnn_KB_param)
TS_param_val = [get_value_of_valid_tensors(sess, cnn_TS_param) for cnn_TS_param in self.cnn_TS_param]
gen_param_val = [get_value_of_valid_tensors(sess, cnn_gen_param) for cnn_gen_param in self.cnn_gen_param]
fc_param_val = [get_value_of_valid_tensors(sess, fc_param) for fc_param in self.fc_param]
parameters_val = {}
parameters_val['conv_KB'] = savemat_wrapper(KB_param_val)
parameters_val['conv_TS'] = savemat_wrapper_nested_list(TS_param_val)
parameters_val['conv_generated_weights'] = savemat_wrapper_nested_list(gen_param_val)
parameters_val['fc_weights'] = savemat_wrapper_nested_list(fc_param_val)
return parameters_val
#### Ablated architectures of deconvolutional factorized CNN
class Deconvolutional_Factorized_CNN_Direct():
def __init__(self, num_tasks, dim_channels, dim_fcs, input_size, dim_kernels, dim_strides, dim_cnn_know_base, dim_cnn_task_specific, dim_cnn_deconv_strides, batch_size, learning_rate, learning_rate_decay, padding_type='SAME', max_pooling=False, dim_pool=None, dropout=False, relation_activation_fn_cnn=tf.nn.relu):
self.num_tasks = num_tasks
self.num_layers = len(dim_channels) + len(dim_fcs)
self.num_cnn_KB_para = len(dim_channels)
self.num_cnn_TS_para = 0
self.num_fc_para = 0
self.cnn_channels_size = [input_size[-1]]+dim_channels ## include dim of input channel
self.cnn_kernel_size = dim_kernels ## len(kernel_size) == 2*(len(channels_size)-1)
self.cnn_stride_size = dim_strides
self.pool_size = dim_pool ## len(pool_size) == 2*(len(channels_size)-1)
self.cnn_KB_size = dim_cnn_know_base
self.cnn_TS_size = dim_cnn_task_specific
self.cnn_deconv_stride_size = dim_cnn_deconv_strides
self.fc_size = dim_fcs
self.input_size = input_size ## img_width * img_height * img_channel
self.learn_rate = learning_rate
self.learn_rate_decay = learning_rate_decay
self.batch_size = batch_size
#### placeholder of model
self.epoch = tf.placeholder(dtype=tf.float32)
self.dropout_prob = tf.placeholder(dtype=tf.float32)
self.model_input = [tf.placeholder(dtype=tf.float32, shape=[self.batch_size, self.input_size[0]*self.input_size[1]*self.input_size[2]]) for _ in range(self.num_tasks)]
self.true_output = [tf.placeholder(dtype=tf.float32, shape=[self.batch_size]) for _ in range(self.num_tasks)]
with tf.name_scope('Data_Minibatch'):
train_x_batch = [tf.reshape(x, [-1] + self.input_size) for x in self.model_input]
valid_x_batch = [tf.reshape(x, [-1] + self.input_size) for x in self.model_input]
test_x_batch = [tf.reshape(x, [-1] + self.input_size) for x in self.model_input]
train_y_batch = [y for y in self.true_output]
valid_y_batch = [y for y in self.true_output]
test_y_batch = [y for y in self.true_output]
#### layers of model for train data
self.train_models, self.cnn_TS_param, self.cnn_gen_param, self.fc_param = [], [], [], []
for task_cnt in range(self.num_tasks):
if task_cnt == 0:
model_tmp, self.cnn_KB_param, cnn_TS_param_tmp, cnn_gen_param_tmp, fc_param_tmp = new_dfcnn_direct_fc_net(train_x_batch[task_cnt], self.cnn_kernel_size, self.cnn_channels_size, self.cnn_stride_size, self.fc_size, self.cnn_KB_size, self.cnn_TS_size, self.cnn_deconv_stride_size, cnn_para_activation_fn=relation_activation_fn_cnn, cnn_KB_params=None, cnn_TS_params=None, fc_params=None, padding_type=padding_type, max_pool=max_pooling, pool_sizes=dim_pool, dropout=dropout, dropout_prob=self.dropout_prob, output_type=None, task_index=task_cnt)
self.num_cnn_TS_para = len(cnn_TS_param_tmp)
self.num_fc_para = len(fc_param_tmp)
else:
model_tmp, _, cnn_TS_param_tmp, cnn_gen_param_tmp, fc_param_tmp = new_dfcnn_direct_fc_net(train_x_batch[task_cnt], self.cnn_kernel_size, self.cnn_channels_size, self.cnn_stride_size, self.fc_size, self.cnn_KB_size, self.cnn_TS_size, self.cnn_deconv_stride_size, cnn_para_activation_fn=relation_activation_fn_cnn, cnn_KB_params=self.cnn_KB_param, cnn_TS_params=None, fc_params=None, padding_type=padding_type, max_pool=max_pooling, pool_sizes=dim_pool, dropout=dropout, dropout_prob=self.dropout_prob, output_type=None, task_index=task_cnt)
self.cnn_TS_param.append(cnn_TS_param_tmp)
self.cnn_gen_param.append(cnn_gen_param_tmp)
self.fc_param.append(fc_param_tmp)
self.train_models.append(model_tmp)
self.param = self.cnn_KB_param + sum(self.cnn_TS_param, []) + sum(self.fc_param, [])
assert (len(self.cnn_KB_param) == self.num_cnn_KB_para), "CNN KB size doesn't match"
assert (sum([len(self.cnn_TS_param[x]) for x in range(len(self.cnn_TS_param))]) == self.num_tasks * self.num_cnn_TS_para), "CNN TS size doesn't match"
#### layers of model for validation data
self.valid_models = []
for task_cnt in range(self.num_tasks):
model_tmp, _, _, _, _ = new_dfcnn_direct_fc_net(valid_x_batch[task_cnt], self.cnn_kernel_size, self.cnn_channels_size, self.cnn_stride_size, self.fc_size, self.cnn_KB_size, self.cnn_TS_size, self.cnn_deconv_stride_size, cnn_para_activation_fn=relation_activation_fn_cnn, cnn_KB_params=self.cnn_KB_param, cnn_TS_params=self.cnn_TS_param[task_cnt], fc_params=self.fc_param[task_cnt], padding_type=padding_type, max_pool=max_pooling, pool_sizes=dim_pool, dropout=dropout, dropout_prob=self.dropout_prob, output_type=None, task_index=task_cnt)
self.valid_models.append(model_tmp)
#### layers of model for test data
self.test_models = []
for task_cnt in range(self.num_tasks):
model_tmp, _, _, _, _ = new_dfcnn_direct_fc_net(test_x_batch[task_cnt], self.cnn_kernel_size, self.cnn_channels_size, self.cnn_stride_size, self.fc_size, self.cnn_KB_size, self.cnn_TS_size, self.cnn_deconv_stride_size, cnn_para_activation_fn=relation_activation_fn_cnn, cnn_KB_params=self.cnn_KB_param, cnn_TS_params=self.cnn_TS_param[task_cnt], fc_params=self.fc_param[task_cnt], padding_type=padding_type, max_pool=max_pooling, pool_sizes=dim_pool, dropout=dropout, dropout_prob=self.dropout_prob, output_type=None, task_index=task_cnt)
self.test_models.append(model_tmp)
#### loss functions of model
self.train_eval, self.valid_eval, self.test_eval, self.train_loss, self.valid_loss, self.test_loss, self.train_accuracy, self.valid_accuracy, self.test_accuracy, self.train_output_label, self.valid_output_label, self.test_output_label = mtl_model_output_functions([self.train_models, self.valid_models, self.test_models], [train_y_batch, valid_y_batch, test_y_batch], self.num_tasks)
self.update = [tf.train.RMSPropOptimizer(learning_rate=self.learn_rate/(1.0+self.epoch*self.learn_rate_decay)).minimize(self.train_loss[x]) for x in range(self.num_tasks)]
self.num_trainable_var = count_trainable_var()
def get_params_val(self, sess):
KB_param_val = get_value_of_valid_tensors(sess, self.cnn_KB_param)
TS_param_val = [get_value_of_valid_tensors(sess, cnn_TS_param) for cnn_TS_param in self.cnn_TS_param]
gen_param_val = [get_value_of_valid_tensors(sess, cnn_gen_param) for cnn_gen_param in self.cnn_gen_param]
fc_param_val = [get_value_of_valid_tensors(sess, fc_param) for fc_param in self.fc_param]
parameters_val = {}
parameters_val['conv_KB'] = savemat_wrapper(KB_param_val)
parameters_val['conv_TS'] = savemat_wrapper_nested_list(TS_param_val)
parameters_val['conv_generated_weights'] = savemat_wrapper_nested_list(gen_param_val)
parameters_val['fc_weights'] = savemat_wrapper_nested_list(fc_param_val)
return parameters_val
#### Ablated architectures of deconvolutional factorized CNN
class Deconvolutional_Factorized_CNN_tc2():
def __init__(self, num_tasks, dim_channels, dim_fcs, input_size, dim_kernels, dim_strides, dim_cnn_know_base, dim_cnn_task_specific, dim_cnn_deconv_strides, batch_size, learning_rate, learning_rate_decay, padding_type='SAME', max_pooling=False, dim_pool=None, dropout=False, relation_activation_fn_cnn=tf.nn.relu):
self.num_tasks = num_tasks
self.num_layers = len(dim_channels) + len(dim_fcs)
self.num_cnn_KB_para = len(dim_channels)
self.num_cnn_TS_para = 0
self.num_fc_para = 0
self.cnn_channels_size = [input_size[-1]]+dim_channels ## include dim of input channel
self.cnn_kernel_size = dim_kernels ## len(kernel_size) == 2*(len(channels_size)-1)
self.cnn_stride_size = dim_strides
self.pool_size = dim_pool ## len(pool_size) == 2*(len(channels_size)-1)
self.cnn_KB_size = dim_cnn_know_base
self.cnn_TS_size = dim_cnn_task_specific
self.cnn_deconv_stride_size = dim_cnn_deconv_strides
self.fc_size = dim_fcs
self.input_size = input_size ## img_width * img_height * img_channel
self.learn_rate = learning_rate
self.learn_rate_decay = learning_rate_decay
self.batch_size = batch_size
#### placeholder of model
self.epoch = tf.placeholder(dtype=tf.float32)
self.dropout_prob = tf.placeholder(dtype=tf.float32)
self.model_input = [tf.placeholder(dtype=tf.float32, shape=[self.batch_size, self.input_size[0]*self.input_size[1]*self.input_size[2]]) for _ in range(self.num_tasks)]
self.true_output = [tf.placeholder(dtype=tf.float32, shape=[self.batch_size]) for _ in range(self.num_tasks)]
with tf.name_scope('Data_Minibatch'):
train_x_batch = [tf.reshape(x, [-1] + self.input_size) for x in self.model_input]
valid_x_batch = [tf.reshape(x, [-1] + self.input_size) for x in self.model_input]
test_x_batch = [tf.reshape(x, [-1] + self.input_size) for x in self.model_input]
train_y_batch = [y for y in self.true_output]
valid_y_batch = [y for y in self.true_output]
test_y_batch = [y for y in self.true_output]
#### layers of model for train data
self.train_models, self.cnn_TS_param, self.cnn_gen_param, self.fc_param = [], [], [], []
for task_cnt in range(self.num_tasks):
if task_cnt == 0:
model_tmp, self.cnn_KB_param, cnn_TS_param_tmp, cnn_gen_param_tmp, fc_param_tmp = new_dfcnn_tc2_fc_net(train_x_batch[task_cnt], self.cnn_kernel_size, self.cnn_channels_size, self.cnn_stride_size, self.fc_size, self.cnn_KB_size, self.cnn_TS_size, self.cnn_deconv_stride_size, cnn_para_activation_fn=relation_activation_fn_cnn, cnn_KB_params=None, cnn_TS_params=None, fc_params=None, padding_type=padding_type, max_pool=max_pooling, pool_sizes=dim_pool, dropout=dropout, dropout_prob=self.dropout_prob, output_type=None, task_index=task_cnt)
self.num_cnn_TS_para = len(cnn_TS_param_tmp)
self.num_fc_para = len(fc_param_tmp)
else:
model_tmp, _, cnn_TS_param_tmp, cnn_gen_param_tmp, fc_param_tmp = new_dfcnn_tc2_fc_net(train_x_batch[task_cnt], self.cnn_kernel_size, self.cnn_channels_size, self.cnn_stride_size, self.fc_size, self.cnn_KB_size, self.cnn_TS_size, self.cnn_deconv_stride_size, cnn_para_activation_fn=relation_activation_fn_cnn, cnn_KB_params=self.cnn_KB_param, cnn_TS_params=None, fc_params=None, padding_type=padding_type, max_pool=max_pooling, pool_sizes=dim_pool, dropout=dropout, dropout_prob=self.dropout_prob, output_type=None, task_index=task_cnt)
self.cnn_TS_param.append(cnn_TS_param_tmp)
self.cnn_gen_param.append(cnn_gen_param_tmp)
self.fc_param.append(fc_param_tmp)
self.train_models.append(model_tmp)
self.param = self.cnn_KB_param + sum(self.cnn_TS_param, []) + sum(self.fc_param, [])
assert (len(self.cnn_KB_param) == self.num_cnn_KB_para), "CNN KB size doesn't match"
assert (sum([len(self.cnn_TS_param[x]) for x in range(len(self.cnn_TS_param))]) == self.num_tasks * self.num_cnn_TS_para), "CNN TS size doesn't match"
#### layers of model for validation data
self.valid_models = []
for task_cnt in range(self.num_tasks):
model_tmp, _, _, _, _ = new_dfcnn_tc2_fc_net(valid_x_batch[task_cnt], self.cnn_kernel_size, self.cnn_channels_size, self.cnn_stride_size, self.fc_size, self.cnn_KB_size, self.cnn_TS_size, self.cnn_deconv_stride_size, cnn_para_activation_fn=relation_activation_fn_cnn, cnn_KB_params=self.cnn_KB_param, cnn_TS_params=self.cnn_TS_param[task_cnt], fc_params=self.fc_param[task_cnt], padding_type=padding_type, max_pool=max_pooling, pool_sizes=dim_pool, dropout=dropout, dropout_prob=self.dropout_prob, output_type=None, task_index=task_cnt)
self.valid_models.append(model_tmp)
#### layers of model for test data
self.test_models = []
for task_cnt in range(self.num_tasks):
model_tmp, _, _, _, _ = new_dfcnn_tc2_fc_net(test_x_batch[task_cnt], self.cnn_kernel_size, self.cnn_channels_size, self.cnn_stride_size, self.fc_size, self.cnn_KB_size, self.cnn_TS_size, self.cnn_deconv_stride_size, cnn_para_activation_fn=relation_activation_fn_cnn, cnn_KB_params=self.cnn_KB_param, cnn_TS_params=self.cnn_TS_param[task_cnt], fc_params=self.fc_param[task_cnt], padding_type=padding_type, max_pool=max_pooling, pool_sizes=dim_pool, dropout=dropout, dropout_prob=self.dropout_prob, output_type=None, task_index=task_cnt)
self.test_models.append(model_tmp)
#### loss functions of model
self.train_eval, self.valid_eval, self.test_eval, self.train_loss, self.valid_loss, self.test_loss, self.train_accuracy, self.valid_accuracy, self.test_accuracy, self.train_output_label, self.valid_output_label, self.test_output_label = mtl_model_output_functions([self.train_models, self.valid_models, self.test_models], [train_y_batch, valid_y_batch, test_y_batch], self.num_tasks)
self.update = [tf.train.RMSPropOptimizer(learning_rate=self.learn_rate/(1.0+self.epoch*self.learn_rate_decay)).minimize(self.train_loss[x]) for x in range(self.num_tasks)]
self.num_trainable_var = count_trainable_var()
def get_params_val(self, sess):
KB_param_val = get_value_of_valid_tensors(sess, self.cnn_KB_param)
TS_param_val = [get_value_of_valid_tensors(sess, cnn_TS_param) for cnn_TS_param in self.cnn_TS_param]
gen_param_val = [get_value_of_valid_tensors(sess, cnn_gen_param) for cnn_gen_param in self.cnn_gen_param]
fc_param_val = [get_value_of_valid_tensors(sess, fc_param) for fc_param in self.fc_param]
parameters_val = {}
parameters_val['conv_KB'] = savemat_wrapper(KB_param_val)
parameters_val['conv_TS'] = savemat_wrapper_nested_list(TS_param_val)
parameters_val['conv_generated_weights'] = savemat_wrapper_nested_list(gen_param_val)
parameters_val['fc_weights'] = savemat_wrapper_nested_list(fc_param_val)
return parameters_val
| 82.865169
| 559
| 0.734463
| 3,526
| 22,125
| 4.167896
| 0.041974
| 0.06859
| 0.04491
| 0.022863
| 0.983601
| 0.983601
| 0.983601
| 0.983601
| 0.983601
| 0.983601
| 0
| 0.004405
| 0.168859
| 22,125
| 267
| 560
| 82.865169
| 0.794769
| 0.05148
| 0
| 0.907317
| 0
| 0
| 0.016583
| 0.0032
| 0
| 0
| 0
| 0
| 0.029268
| 1
| 0.029268
| false
| 0
| 0.019512
| 0
| 0.078049
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
369fbd45f424231d13a210e882f3120bc1431c3c
| 13,973
|
py
|
Python
|
freesansnum40.py
|
somervda/bayesCalc
|
2be5c49f742f52b5f6a4e1b8e21119848b7dd6b2
|
[
"MIT"
] | null | null | null |
freesansnum40.py
|
somervda/bayesCalc
|
2be5c49f742f52b5f6a4e1b8e21119848b7dd6b2
|
[
"MIT"
] | null | null | null |
freesansnum40.py
|
somervda/bayesCalc
|
2be5c49f742f52b5f6a4e1b8e21119848b7dd6b2
|
[
"MIT"
] | null | null | null |
# Code generated by font_to_py.py.
# Font: FreeSans.ttf
# Cmd: font_to_py.py -x -s 32 -l 57 FreeSans.ttf 40 freesansnum40.py
version = '0.33'
def height():
return 41
def baseline():
return 32
def max_width():
return 36
def hmap():
return True
def reverse():
return False
def monospaced():
return False
def min_ch():
return 32
def max_ch():
return 57
_font =\
b'\x17\x00\x00\x00\x00\x00\x00\x00\x00\xff\x80\x03\xff\xc0\x07\xff'\
b'\xe0\x0f\x81\xf0\x0f\x00\xf0\x0e\x00\x78\x1e\x00\x78\x1e\x00\x78'\
b'\x1e\x00\x78\x00\x00\x78\x00\x00\xf0\x00\x01\xf0\x00\x03\xe0\x00'\
b'\x07\xc0\x00\x0f\x80\x00\x1f\x00\x00\x1e\x00\x00\x3c\x00\x00\x3c'\
b'\x00\x00\x3c\x00\x00\x3c\x00\x00\x3c\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x3c\x00\x00\x3c\x00\x00\x3c\x00\x00'\
b'\x3c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x0b\x00\x00\x00\x00\x00\x07\x80\x07\x80\x07\x80\x07\x80\x07'\
b'\x80\x07\x80\x07\x80\x07\x80\x07\x80\x07\x80\x07\x80\x07\x80\x07'\
b'\x80\x07\x80\x07\x00\x07\x00\x07\x00\x07\x00\x03\x00\x03\x00\x03'\
b'\x00\x03\x00\x03\x00\x00\x00\x00\x00\x00\x00\x07\x80\x07\x80\x07'\
b'\x80\x07\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x00\x00\x00\x00\x3c\x78\x3c'\
b'\x78\x3c\x78\x3c\x78\x3c\x78\x3c\x70\x1c\x70\x18\x70\x18\x30\x18'\
b'\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x17\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xf0\x70\x00\xe0\x70\x00\xe0\xf0\x00\xe0\xe0'\
b'\x00\xe0\xe0\x00\xe0\xe0\x01\xe0\xe0\x01\xc1\xe0\x3f\xff\xfc\x3f'\
b'\xff\xfc\x3f\xff\xfc\x03\xc1\xc0\x03\x81\xc0\x03\x83\x80\x03\x83'\
b'\x80\x03\x83\x80\x03\x83\x80\x07\x83\x80\x7f\xff\xf8\x7f\xff\xf8'\
b'\x7f\xff\xf8\x07\x07\x00\x0f\x07\x00\x0e\x07\x00\x0e\x0f\x00\x0e'\
b'\x0e\x00\x0e\x0e\x00\x0e\x0e\x00\x1e\x0e\x00\x1c\x1e\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x17\x00\x00\x30\x00\x00\x30\x00\x00\x30'\
b'\x00\x01\xff\x00\x07\xff\xc0\x0f\xff\xe0\x1e\x31\xe0\x3c\x30\xf0'\
b'\x3c\x30\x70\x38\x30\x70\x38\x30\x70\x38\x30\x00\x3c\x30\x00\x3c'\
b'\x30\x00\x1f\x30\x00\x1f\xf0\x00\x0f\xfe\x00\x03\xff\x80\x00\xff'\
b'\xe0\x00\x37\xf0\x00\x31\xf8\x00\x30\x78\x00\x30\x78\x78\x30\x38'\
b'\x78\x30\x38\x78\x30\x38\x38\x30\x38\x38\x30\x78\x3c\x30\xf0\x1f'\
b'\x31\xf0\x0f\xff\xe0\x07\xff\x80\x01\xfe\x00\x00\x30\x00\x00\x30'\
b'\x00\x00\x30\x00\x00\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x24\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x60\x00\x07\xe0\x00\xe0\x00\x0f\xf8'\
b'\x00\xc0\x00\x1f\xfc\x01\xc0\x00\x3c\x1c\x03\x80\x00\x38\x0e\x03'\
b'\x80\x00\x70\x0e\x07\x00\x00\x70\x0e\x07\x00\x00\x70\x0e\x0e\x00'\
b'\x00\x70\x0e\x0c\x00\x00\x38\x1e\x1c\x00\x00\x3c\x3c\x18\x00\x00'\
b'\x1f\xf8\x38\x00\x00\x0f\xf0\x30\x00\x00\x03\xe0\x70\x00\x00\x00'\
b'\x00\x60\x00\x00\x00\x00\xe0\x7e\x00\x00\x01\xc0\xff\x80\x00\x01'\
b'\xc1\xff\xc0\x00\x03\x83\xc1\xc0\x00\x03\x83\x80\xe0\x00\x07\x07'\
b'\x00\xe0\x00\x06\x07\x00\xe0\x00\x0e\x07\x00\xe0\x00\x0c\x07\x00'\
b'\xe0\x00\x1c\x03\x81\xe0\x00\x18\x03\xc3\xc0\x00\x38\x01\xff\x80'\
b'\x00\x70\x00\xff\x00\x00\x70\x00\x3c\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x1b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x3e\x00\x00\x00\xff\x80\x00\x01\xff\xc0\x00\x03\xc1\xe0\x00'\
b'\x03\x81\xe0\x00\x07\x80\xe0\x00\x07\x80\xe0\x00\x03\x80\xe0\x00'\
b'\x03\x81\xe0\x00\x03\xc3\xc0\x00\x01\xe7\xc0\x00\x00\xff\x80\x00'\
b'\x00\xfe\x00\x00\x00\xf8\x00\x00\x03\xfc\x00\x00\x07\xde\x0f\x00'\
b'\x0f\x8f\x0e\x00\x1e\x0f\x8e\x00\x1e\x07\xce\x00\x3c\x03\xde\x00'\
b'\x3c\x01\xfc\x00\x3c\x00\xfc\x00\x3c\x00\xf8\x00\x3c\x00\x7c\x00'\
b'\x3e\x00\xfc\x00\x1e\x01\xfe\x00\x1f\xc7\xcf\x00\x0f\xff\x8f\x80'\
b'\x07\xff\x07\xc0\x00\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x3c\x3c\x3c'\
b'\x3c\x3c\x3c\x38\x18\x18\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x0e\x00\x00\x00\x00\x00\x00\x70\x00\x60\x00\xe0\x01'\
b'\xc0\x01\xc0\x03\x80\x03\x80\x07\x00\x07\x00\x07\x00\x0e\x00\x0e'\
b'\x00\x0e\x00\x0e\x00\x1e\x00\x1e\x00\x1c\x00\x1c\x00\x1c\x00\x1c'\
b'\x00\x1c\x00\x1c\x00\x1c\x00\x1e\x00\x1e\x00\x0e\x00\x0e\x00\x0e'\
b'\x00\x0e\x00\x07\x00\x07\x00\x03\x00\x03\x80\x03\x80\x01\xc0\x00'\
b'\xc0\x00\xe0\x00\x60\x00\x30\x0e\x00\x00\x00\x00\x00\x30\x00\x38'\
b'\x00\x18\x00\x1c\x00\x0e\x00\x0e\x00\x07\x00\x07\x00\x07\x00\x03'\
b'\x80\x03\x80\x03\x80\x03\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01'\
b'\xc0\x01\xc0\x01\xe0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01\xc0\x01'\
b'\xc0\x03\xc0\x03\x80\x03\x80\x03\x80\x07\x00\x07\x00\x06\x00\x0e'\
b'\x00\x0e\x00\x1c\x00\x18\x00\x38\x00\x30\x00\x10\x00\x00\x00\x00'\
b'\x00\x01\x80\x01\x80\x01\x80\x21\x88\x3d\xfc\x3f\xfc\x07\xe0\x03'\
b'\xc0\x07\xe0\x0e\x70\x1c\x70\x04\x20\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x00\x00\x18\x00\x00\x18'\
b'\x00\x00\x18\x00\x00\x18\x00\x00\x18\x00\x00\x18\x00\x00\x18\x00'\
b'\x3f\xff\xfc\x3f\xff\xfc\x3f\xff\xfc\x00\x18\x00\x00\x18\x00\x00'\
b'\x18\x00\x00\x18\x00\x00\x18\x00\x00\x18\x00\x00\x18\x00\x00\x18'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x0f\x00\x0f\x00\x0f\x00\x0f\x00\x03\x00'\
b'\x03\x00\x03\x00\x02\x00\x0e\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\
b'\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xf0\x3f\xf0\x3f\xf0\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00'\
b'\x0f\x00\x0f\x00\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x70'\
b'\x00\x60\x00\x60\x00\xe0\x00\xc0\x00\xc0\x01\xc0\x01\x80\x01\x80'\
b'\x03\x80\x03\x00\x03\x00\x07\x00\x06\x00\x06\x00\x0e\x00\x0c\x00'\
b'\x0c\x00\x0c\x00\x1c\x00\x18\x00\x18\x00\x38\x00\x30\x00\x30\x00'\
b'\x70\x00\x60\x00\x60\x00\xe0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x17\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\xfe\x00\x03\xff\x00\x07\xff\x80'\
b'\x0f\x87\xc0\x0f\x01\xe0\x1e\x01\xe0\x1e\x00\xf0\x1c\x00\xf0\x3c'\
b'\x00\xf0\x3c\x00\x70\x3c\x00\x70\x3c\x00\x78\x3c\x00\x78\x38\x00'\
b'\x78\x38\x00\x78\x38\x00\x78\x38\x00\x78\x3c\x00\x78\x3c\x00\x78'\
b'\x3c\x00\x78\x3c\x00\x70\x3c\x00\xf0\x1c\x00\xf0\x1e\x00\xf0\x1e'\
b'\x01\xe0\x0f\x01\xe0\x0f\x87\xc0\x07\xff\x80\x03\xff\x00\x00\xfc'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x17\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x0c\x00\x00\x1c\x00\x00\x1c\x00\x00\x3c\x00'\
b'\x00\x7c\x00\x03\xfc\x00\x0f\xfc\x00\x0f\xfc\x00\x00\x1c\x00\x00'\
b'\x1c\x00\x00\x1c\x00\x00\x1c\x00\x00\x1c\x00\x00\x1c\x00\x00\x1c'\
b'\x00\x00\x1c\x00\x00\x1c\x00\x00\x1c\x00\x00\x1c\x00\x00\x1c\x00'\
b'\x00\x1c\x00\x00\x1c\x00\x00\x1c\x00\x00\x1c\x00\x00\x1c\x00\x00'\
b'\x1c\x00\x00\x1c\x00\x00\x1c\x00\x00\x1c\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\xfe\x00\x03\xff\x80\x07\xff\xe0\x0f\x83\xe0\x1f\x01\xf0'\
b'\x1e\x00\xf0\x3c\x00\x78\x3c\x00\x78\x3c\x00\x78\x3c\x00\x78\x00'\
b'\x00\x78\x00\x00\xf0\x00\x00\xf0\x00\x01\xe0\x00\x07\xc0\x00\x1f'\
b'\x80\x00\x7f\x00\x00\xfc\x00\x03\xf0\x00\x07\xe0\x00\x0f\x80\x00'\
b'\x1f\x00\x00\x1e\x00\x00\x3c\x00\x00\x3c\x00\x00\x3f\xff\xf8\x3f'\
b'\xff\xf8\x7f\xff\xf8\x7f\xff\xf8\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xfe'\
b'\x00\x07\xff\x80\x0f\xff\xc0\x1f\x87\xe0\x1e\x01\xe0\x3c\x00\xf0'\
b'\x3c\x00\xf0\x3c\x00\xf0\x3c\x00\xf0\x00\x00\xf0\x00\x00\xe0\x00'\
b'\x01\xe0\x00\x3f\xc0\x00\x7f\x80\x00\x7f\x80\x00\x7f\xe0\x00\x01'\
b'\xf0\x00\x00\xf0\x00\x00\x70\x00\x00\x78\x00\x00\x78\x78\x00\x78'\
b'\x38\x00\x78\x3c\x00\x70\x3c\x00\xf0\x1e\x01\xf0\x1f\x87\xe0\x0f'\
b'\xff\xc0\x07\xff\x80\x00\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x80\x00\x07'\
b'\x80\x00\x0f\x80\x00\x0f\x80\x00\x1f\x80\x00\x3f\x80\x00\x3f\x80'\
b'\x00\x77\x80\x00\xf7\x80\x01\xe7\x80\x01\xc7\x80\x03\xc7\x80\x07'\
b'\x87\x80\x07\x07\x80\x0e\x07\x80\x1e\x07\x80\x3c\x07\x80\x38\x07'\
b'\x80\x78\x07\x80\x7f\xff\xf8\x7f\xff\xf8\x7f\xff\xf8\x00\x07\x80'\
b'\x00\x07\x80\x00\x07\x80\x00\x07\x80\x00\x07\x80\x00\x07\x80\x00'\
b'\x07\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x17\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xff\xf0\x0f\xff\xf0\x0f\xff'\
b'\xf0\x0e\x00\x00\x0e\x00\x00\x0e\x00\x00\x0e\x00\x00\x1e\x00\x00'\
b'\x1e\x00\x00\x1e\x00\x00\x1c\xfe\x00\x1f\xff\x80\x1f\xff\xc0\x1f'\
b'\x83\xe0\x3e\x01\xf0\x3c\x00\xf0\x00\x00\x78\x00\x00\x78\x00\x00'\
b'\x78\x00\x00\x78\x00\x00\x78\x00\x00\x78\x38\x00\x78\x3c\x00\x70'\
b'\x3c\x00\xf0\x1e\x01\xe0\x1f\x8f\xe0\x0f\xff\xc0\x07\xff\x00\x00'\
b'\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x17\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x7e\x00\x01\xff\x80\x03\xff\xc0\x07\xc3'\
b'\xe0\x0f\x01\xf0\x0e\x00\xf0\x1e\x00\x70\x1c\x00\x70\x1c\x00\x00'\
b'\x3c\x00\x00\x3c\x00\x00\x3c\x7e\x00\x3d\xff\x80\x3b\xff\xe0\x3f'\
b'\x83\xe0\x3f\x00\xf0\x3e\x00\xf0\x3c\x00\x78\x3c\x00\x78\x3c\x00'\
b'\x78\x3c\x00\x78\x3c\x00\x78\x3c\x00\x78\x1c\x00\x78\x1e\x00\xf0'\
b'\x0f\x01\xf0\x0f\xc7\xe0\x07\xff\xc0\x03\xff\x80\x00\xfc\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x17\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x3f\xff\xf8\x3f\xff\xf8\x3f\xff\xf8\x3f\xff\xf8\x00\x00'\
b'\x70\x00\x00\xe0\x00\x00\xe0\x00\x01\xc0\x00\x03\x80\x00\x03\x80'\
b'\x00\x07\x00\x00\x0f\x00\x00\x0e\x00\x00\x1e\x00\x00\x1c\x00\x00'\
b'\x3c\x00\x00\x38\x00\x00\x78\x00\x00\x70\x00\x00\xf0\x00\x00\xf0'\
b'\x00\x00\xe0\x00\x01\xe0\x00\x01\xe0\x00\x01\xc0\x00\x01\xc0\x00'\
b'\x03\xc0\x00\x03\xc0\x00\x03\xc0\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\xfe\x00\x03\xff\x80\x07\xff\xc0\x0f\x87\xe0\x1e\x01\xe0\x1e\x00'\
b'\xf0\x1c\x00\xf0\x1c\x00\xf0\x1c\x00\xf0\x1e\x00\xf0\x1e\x01\xe0'\
b'\x0f\x03\xe0\x07\xff\xc0\x03\xff\x00\x07\xff\x80\x0f\xcf\xe0\x1e'\
b'\x01\xf0\x3c\x00\xf0\x3c\x00\x78\x38\x00\x78\x38\x00\x78\x38\x00'\
b'\x78\x38\x00\x78\x3c\x00\x78\x3c\x00\xf0\x1e\x01\xf0\x1f\xc7\xe0'\
b'\x0f\xff\xc0\x03\xff\x80\x00\xfc\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfe\x00\x03'\
b'\xff\x00\x0f\xff\xc0\x0f\x87\xc0\x1e\x01\xe0\x3c\x00\xf0\x3c\x00'\
b'\xf0\x38\x00\x70\x38\x00\x70\x38\x00\x78\x38\x00\x78\x38\x00\x78'\
b'\x3c\x00\xf8\x3c\x00\xf8\x1e\x01\xf8\x1f\xcf\xf8\x0f\xff\x78\x07'\
b'\xfe\x78\x00\xf8\x78\x00\x00\x70\x00\x00\x70\x00\x00\xf0\x3c\x00'\
b'\xf0\x3c\x00\xe0\x1e\x01\xe0\x1e\x03\xc0\x0f\x8f\xc0\x0f\xff\x80'\
b'\x03\xff\x00\x00\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
_index =\
b'\x00\x00\x7d\x00\xd1\x00\x25\x01\x79\x01\xf6\x01\x73\x02\x42\x03'\
b'\xe8\x03\x13\x04\x67\x04\xbb\x04\x0f\x05\x8c\x05\xe0\x05\x34\x06'\
b'\x88\x06\xdc\x06\x59\x07\xd6\x07\x53\x08\xd0\x08\x4d\x09\xca\x09'\
b'\x47\x0a\xc4\x0a\x41\x0b\xbe\x0b'
_mvfont = memoryview(_font)
_mvi = memoryview(_index)
ifb = lambda l : l[0] | (l[1] << 8)
def get_ch(ch):
oc = ord(ch)
ioff = 2 * (oc - 32 + 1) if oc >= 32 and oc <= 57 else 0
doff = ifb(_mvi[ioff : ])
width = ifb(_mvfont[doff : ])
next_offs = doff + 2 + ((width - 1)//8 + 1) * 41
return _mvfont[doff + 2:next_offs], 41, width
| 58.464435
| 68
| 0.704072
| 3,378
| 13,973
| 2.90675
| 0.041741
| 0.713718
| 0.854262
| 1.002139
| 0.706793
| 0.64253
| 0.579998
| 0.534983
| 0.484673
| 0.444954
| 0
| 0.392181
| 0.027911
| 13,973
| 238
| 69
| 58.710084
| 0.330708
| 0.008445
| 0
| 0.171946
| 1
| 0.864253
| 0.884557
| 0.884268
| 0
| 1
| 0
| 0
| 0
| 1
| 0.040724
| false
| 0
| 0
| 0.036199
| 0.081448
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
36c808db1d6374a9af130756ce1581826ff564d4
| 171,881
|
py
|
Python
|
h1/api/compute_project_vm_api.py
|
hyperonecom/h1-client-python
|
4ce355852ba3120ec1b8f509ab5894a5c08da730
|
[
"MIT"
] | null | null | null |
h1/api/compute_project_vm_api.py
|
hyperonecom/h1-client-python
|
4ce355852ba3120ec1b8f509ab5894a5c08da730
|
[
"MIT"
] | null | null | null |
h1/api/compute_project_vm_api.py
|
hyperonecom/h1-client-python
|
4ce355852ba3120ec1b8f509ab5894a5c08da730
|
[
"MIT"
] | null | null | null |
"""
HyperOne
HyperOne API # noqa: E501
The version of the OpenAPI document: 0.1.0
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from h1.api_client import ApiClient, Endpoint as _Endpoint
from h1.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
from h1.model.compute_project_vm_connect_open import ComputeProjectVmConnectOpen
from h1.model.compute_project_vm_create import ComputeProjectVmCreate
from h1.model.compute_project_vm_disk_create import ComputeProjectVmDiskCreate
from h1.model.compute_project_vm_flavour import ComputeProjectVmFlavour
from h1.model.compute_project_vm_iso_create import ComputeProjectVmIsoCreate
from h1.model.compute_project_vm_password_reset import ComputeProjectVmPasswordReset
from h1.model.compute_project_vm_serialport import ComputeProjectVmSerialport
from h1.model.compute_project_vm_update import ComputeProjectVmUpdate
from h1.model.connect import Connect
from h1.model.disk import Disk
from h1.model.event import Event
from h1.model.inline_response400 import InlineResponse400
from h1.model.iso import Iso
from h1.model.metric import Metric
from h1.model.point import Point
from h1.model.resource_service import ResourceService
from h1.model.tag import Tag
from h1.model.tag_array import TagArray
from h1.model.vm import Vm
class ComputeProjectVmApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def __compute_project_vm_connect_get(
self,
project_id,
location_id,
vm_id,
connect_id,
**kwargs
):
"""Get compute/vm.connect # noqa: E501
Get compute/vm.connect # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_connect_get(project_id, location_id, vm_id, connect_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
connect_id (str): connectId
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Connect
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['connect_id'] = \
connect_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_connect_get = _Endpoint(
settings={
'response_type': (Connect,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/connect/{connectId}',
'operation_id': 'compute_project_vm_connect_get',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'connect_id',
],
'required': [
'project_id',
'location_id',
'vm_id',
'connect_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'connect_id':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'connect_id': 'connectId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'connect_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_connect_get
)
def __compute_project_vm_connect_list(
self,
project_id,
location_id,
vm_id,
**kwargs
):
"""List compute/vm.connect # noqa: E501
List compute/vm.connect # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_connect_list(project_id, location_id, vm_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
[Connect]
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_connect_list = _Endpoint(
settings={
'response_type': ([Connect],),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/connect',
'operation_id': 'compute_project_vm_connect_list',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
],
'required': [
'project_id',
'location_id',
'vm_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_connect_list
)
def __compute_project_vm_connect_open(
self,
project_id,
location_id,
vm_id,
connect_id,
compute_project_vm_connect_open,
**kwargs
):
"""Open compute/vm.connect # noqa: E501
action open # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_connect_open(project_id, location_id, vm_id, connect_id, compute_project_vm_connect_open, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
connect_id (str): connectId
compute_project_vm_connect_open (ComputeProjectVmConnectOpen):
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
None
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['connect_id'] = \
connect_id
kwargs['compute_project_vm_connect_open'] = \
compute_project_vm_connect_open
return self.call_with_http_info(**kwargs)
self.compute_project_vm_connect_open = _Endpoint(
settings={
'response_type': None,
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/connect/{connectId}/actions/open',
'operation_id': 'compute_project_vm_connect_open',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'connect_id',
'compute_project_vm_connect_open',
],
'required': [
'project_id',
'location_id',
'vm_id',
'connect_id',
'compute_project_vm_connect_open',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'connect_id':
(str,),
'compute_project_vm_connect_open':
(ComputeProjectVmConnectOpen,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'connect_id': 'connectId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'connect_id': 'path',
'compute_project_vm_connect_open': 'body',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [
'application/json'
]
},
api_client=api_client,
callable=__compute_project_vm_connect_open
)
def __compute_project_vm_create(
self,
project_id,
location_id,
compute_project_vm_create,
**kwargs
):
"""Create compute/vm # noqa: E501
Create vm # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_create(project_id, location_id, compute_project_vm_create, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
compute_project_vm_create (ComputeProjectVmCreate):
Keyword Args:
x_idempotency_key (str): Idempotency key. [optional]
x_dry_run (str): Dry run. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Vm
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['compute_project_vm_create'] = \
compute_project_vm_create
return self.call_with_http_info(**kwargs)
self.compute_project_vm_create = _Endpoint(
settings={
'response_type': (Vm,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm',
'operation_id': 'compute_project_vm_create',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'compute_project_vm_create',
'x_idempotency_key',
'x_dry_run',
],
'required': [
'project_id',
'location_id',
'compute_project_vm_create',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'compute_project_vm_create':
(ComputeProjectVmCreate,),
'x_idempotency_key':
(str,),
'x_dry_run':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'x_idempotency_key': 'x-idempotency-key',
'x_dry_run': 'x-dry-run',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'compute_project_vm_create': 'body',
'x_idempotency_key': 'header',
'x_dry_run': 'header',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [
'application/json'
]
},
api_client=api_client,
callable=__compute_project_vm_create
)
def __compute_project_vm_delete(
self,
project_id,
location_id,
vm_id,
**kwargs
):
"""Delete compute/vm # noqa: E501
Delete vm # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_delete(project_id, location_id, vm_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
None
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_delete = _Endpoint(
settings={
'response_type': None,
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}',
'operation_id': 'compute_project_vm_delete',
'http_method': 'DELETE',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
],
'required': [
'project_id',
'location_id',
'vm_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_delete
)
def __compute_project_vm_disk_create(
self,
project_id,
location_id,
vm_id,
compute_project_vm_disk_create,
**kwargs
):
"""Create compute/vm.disk # noqa: E501
Create compute/vm.disk # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_disk_create(project_id, location_id, vm_id, compute_project_vm_disk_create, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
compute_project_vm_disk_create (ComputeProjectVmDiskCreate):
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Disk
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['compute_project_vm_disk_create'] = \
compute_project_vm_disk_create
return self.call_with_http_info(**kwargs)
self.compute_project_vm_disk_create = _Endpoint(
settings={
'response_type': (Disk,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/disk',
'operation_id': 'compute_project_vm_disk_create',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'compute_project_vm_disk_create',
],
'required': [
'project_id',
'location_id',
'vm_id',
'compute_project_vm_disk_create',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'compute_project_vm_disk_create':
(ComputeProjectVmDiskCreate,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'compute_project_vm_disk_create': 'body',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [
'application/json'
]
},
api_client=api_client,
callable=__compute_project_vm_disk_create
)
def __compute_project_vm_disk_list(
self,
project_id,
location_id,
vm_id,
**kwargs
):
"""List compute/vm.disk # noqa: E501
List compute/vm.disk # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_disk_list(project_id, location_id, vm_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
[Disk]
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_disk_list = _Endpoint(
settings={
'response_type': ([Disk],),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/disk',
'operation_id': 'compute_project_vm_disk_list',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
],
'required': [
'project_id',
'location_id',
'vm_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_disk_list
)
def __compute_project_vm_event_get(
self,
project_id,
location_id,
vm_id,
event_id,
**kwargs
):
"""Get compute/vm.event # noqa: E501
Get compute/vm.event # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_event_get(project_id, location_id, vm_id, event_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
event_id (str): eventId
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Event
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['event_id'] = \
event_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_event_get = _Endpoint(
settings={
'response_type': (Event,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/event/{eventId}',
'operation_id': 'compute_project_vm_event_get',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'event_id',
],
'required': [
'project_id',
'location_id',
'vm_id',
'event_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'event_id':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'event_id': 'eventId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'event_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_event_get
)
def __compute_project_vm_event_list(
self,
project_id,
location_id,
vm_id,
**kwargs
):
"""List compute/vm.event # noqa: E501
List compute/vm.event # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_event_list(project_id, location_id, vm_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
Keyword Args:
limit (float): $limit. [optional] if omitted the server will use the default value of 100
skip (float): $skip. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
[Event]
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_event_list = _Endpoint(
settings={
'response_type': ([Event],),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/event',
'operation_id': 'compute_project_vm_event_list',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'limit',
'skip',
],
'required': [
'project_id',
'location_id',
'vm_id',
],
'nullable': [
],
'enum': [
],
'validation': [
'limit',
]
},
root_map={
'validations': {
('limit',): {
'inclusive_maximum': 1000,
'inclusive_minimum': 1,
},
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'limit':
(float,),
'skip':
(float,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'limit': '$limit',
'skip': '$skip',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'limit': 'query',
'skip': 'query',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_event_list
)
def __compute_project_vm_flavour(
self,
project_id,
location_id,
vm_id,
compute_project_vm_flavour,
**kwargs
):
"""Flavour compute/vm # noqa: E501
action flavour # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_flavour(project_id, location_id, vm_id, compute_project_vm_flavour, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
compute_project_vm_flavour (ComputeProjectVmFlavour):
Keyword Args:
x_idempotency_key (str): Idempotency key. [optional]
x_dry_run (str): Dry run. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Vm
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['compute_project_vm_flavour'] = \
compute_project_vm_flavour
return self.call_with_http_info(**kwargs)
self.compute_project_vm_flavour = _Endpoint(
settings={
'response_type': (Vm,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/actions/flavour',
'operation_id': 'compute_project_vm_flavour',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'compute_project_vm_flavour',
'x_idempotency_key',
'x_dry_run',
],
'required': [
'project_id',
'location_id',
'vm_id',
'compute_project_vm_flavour',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'compute_project_vm_flavour':
(ComputeProjectVmFlavour,),
'x_idempotency_key':
(str,),
'x_dry_run':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'x_idempotency_key': 'x-idempotency-key',
'x_dry_run': 'x-dry-run',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'compute_project_vm_flavour': 'body',
'x_idempotency_key': 'header',
'x_dry_run': 'header',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [
'application/json'
]
},
api_client=api_client,
callable=__compute_project_vm_flavour
)
def __compute_project_vm_get(
self,
project_id,
location_id,
vm_id,
**kwargs
):
"""Get compute/vm # noqa: E501
Returns a single vm # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_get(project_id, location_id, vm_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Vm
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_get = _Endpoint(
settings={
'response_type': (Vm,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}',
'operation_id': 'compute_project_vm_get',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
],
'required': [
'project_id',
'location_id',
'vm_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_get
)
def __compute_project_vm_iso_create(
self,
project_id,
location_id,
vm_id,
compute_project_vm_iso_create,
**kwargs
):
"""Create compute/vm.iso # noqa: E501
Create compute/vm.iso # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_iso_create(project_id, location_id, vm_id, compute_project_vm_iso_create, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
compute_project_vm_iso_create (ComputeProjectVmIsoCreate):
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Iso
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['compute_project_vm_iso_create'] = \
compute_project_vm_iso_create
return self.call_with_http_info(**kwargs)
self.compute_project_vm_iso_create = _Endpoint(
settings={
'response_type': (Iso,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/iso',
'operation_id': 'compute_project_vm_iso_create',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'compute_project_vm_iso_create',
],
'required': [
'project_id',
'location_id',
'vm_id',
'compute_project_vm_iso_create',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'compute_project_vm_iso_create':
(ComputeProjectVmIsoCreate,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'compute_project_vm_iso_create': 'body',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [
'application/json'
]
},
api_client=api_client,
callable=__compute_project_vm_iso_create
)
def __compute_project_vm_iso_list(
self,
project_id,
location_id,
vm_id,
**kwargs
):
"""List compute/vm.iso # noqa: E501
List compute/vm.iso # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_iso_list(project_id, location_id, vm_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
[Iso]
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_iso_list = _Endpoint(
settings={
'response_type': ([Iso],),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/iso',
'operation_id': 'compute_project_vm_iso_list',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
],
'required': [
'project_id',
'location_id',
'vm_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_iso_list
)
def __compute_project_vm_list(
self,
project_id,
location_id,
**kwargs
):
"""List compute/vm # noqa: E501
List vm # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_list(project_id, location_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
Keyword Args:
name (str): Filter by name. [optional]
tag_value (str): Filter by tag.value. [optional]
tag_key (str): Filter by tag.key. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
[Vm]
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_list = _Endpoint(
settings={
'response_type': ([Vm],),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm',
'operation_id': 'compute_project_vm_list',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'name',
'tag_value',
'tag_key',
],
'required': [
'project_id',
'location_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'name':
(str,),
'tag_value':
(str,),
'tag_key':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'name': 'name',
'tag_value': 'tag.value',
'tag_key': 'tag.key',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'name': 'query',
'tag_value': 'query',
'tag_key': 'query',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_list
)
def __compute_project_vm_metric_get(
self,
project_id,
location_id,
vm_id,
metric_id,
**kwargs
):
"""Get compute/vm.metric # noqa: E501
Get compute/vm.metric # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_metric_get(project_id, location_id, vm_id, metric_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
metric_id (str): metricId
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Metric
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['metric_id'] = \
metric_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_metric_get = _Endpoint(
settings={
'response_type': (Metric,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/metric/{metricId}',
'operation_id': 'compute_project_vm_metric_get',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'metric_id',
],
'required': [
'project_id',
'location_id',
'vm_id',
'metric_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'metric_id':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'metric_id': 'metricId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'metric_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_metric_get
)
def __compute_project_vm_metric_list(
self,
project_id,
location_id,
vm_id,
**kwargs
):
"""List compute/vm.metric # noqa: E501
List compute/vm.metric # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_metric_list(project_id, location_id, vm_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
[Metric]
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_metric_list = _Endpoint(
settings={
'response_type': ([Metric],),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/metric',
'operation_id': 'compute_project_vm_metric_list',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
],
'required': [
'project_id',
'location_id',
'vm_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_metric_list
)
def __compute_project_vm_metric_point_list(
self,
project_id,
location_id,
vm_id,
metric_id,
**kwargs
):
"""List compute/vm.point # noqa: E501
List compute/vm.point # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_metric_point_list(project_id, location_id, vm_id, metric_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
metric_id (str): metricId
Keyword Args:
interval (str): interval. [optional]
timespan (str): timespan. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
[Point]
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['metric_id'] = \
metric_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_metric_point_list = _Endpoint(
settings={
'response_type': ([Point],),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/metric/{metricId}/point',
'operation_id': 'compute_project_vm_metric_point_list',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'metric_id',
'interval',
'timespan',
],
'required': [
'project_id',
'location_id',
'vm_id',
'metric_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'metric_id':
(str,),
'interval':
(str,),
'timespan':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'metric_id': 'metricId',
'interval': 'interval',
'timespan': 'timespan',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'metric_id': 'path',
'interval': 'query',
'timespan': 'query',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_metric_point_list
)
def __compute_project_vm_password_reset(
self,
project_id,
location_id,
vm_id,
compute_project_vm_password_reset,
**kwargs
):
"""Password reset compute/vm # noqa: E501
action password_reset # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_password_reset(project_id, location_id, vm_id, compute_project_vm_password_reset, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
compute_project_vm_password_reset (ComputeProjectVmPasswordReset):
Keyword Args:
x_idempotency_key (str): Idempotency key. [optional]
x_dry_run (str): Dry run. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Vm
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['compute_project_vm_password_reset'] = \
compute_project_vm_password_reset
return self.call_with_http_info(**kwargs)
self.compute_project_vm_password_reset = _Endpoint(
settings={
'response_type': (Vm,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/actions/password_reset',
'operation_id': 'compute_project_vm_password_reset',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'compute_project_vm_password_reset',
'x_idempotency_key',
'x_dry_run',
],
'required': [
'project_id',
'location_id',
'vm_id',
'compute_project_vm_password_reset',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'compute_project_vm_password_reset':
(ComputeProjectVmPasswordReset,),
'x_idempotency_key':
(str,),
'x_dry_run':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'x_idempotency_key': 'x-idempotency-key',
'x_dry_run': 'x-dry-run',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'compute_project_vm_password_reset': 'body',
'x_idempotency_key': 'header',
'x_dry_run': 'header',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [
'application/json'
]
},
api_client=api_client,
callable=__compute_project_vm_password_reset
)
def __compute_project_vm_restart(
self,
project_id,
location_id,
vm_id,
**kwargs
):
"""Restart compute/vm # noqa: E501
action restart # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_restart(project_id, location_id, vm_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
Keyword Args:
x_idempotency_key (str): Idempotency key. [optional]
x_dry_run (str): Dry run. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Vm
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_restart = _Endpoint(
settings={
'response_type': (Vm,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/actions/restart',
'operation_id': 'compute_project_vm_restart',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'x_idempotency_key',
'x_dry_run',
],
'required': [
'project_id',
'location_id',
'vm_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'x_idempotency_key':
(str,),
'x_dry_run':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'x_idempotency_key': 'x-idempotency-key',
'x_dry_run': 'x-dry-run',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'x_idempotency_key': 'header',
'x_dry_run': 'header',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_restart
)
def __compute_project_vm_serialport(
self,
project_id,
location_id,
vm_id,
compute_project_vm_serialport,
**kwargs
):
"""Serialport compute/vm # noqa: E501
action serialport # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_serialport(project_id, location_id, vm_id, compute_project_vm_serialport, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
compute_project_vm_serialport (ComputeProjectVmSerialport):
Keyword Args:
x_idempotency_key (str): Idempotency key. [optional]
x_dry_run (str): Dry run. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
file_type
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['compute_project_vm_serialport'] = \
compute_project_vm_serialport
return self.call_with_http_info(**kwargs)
self.compute_project_vm_serialport = _Endpoint(
settings={
'response_type': (file_type,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/actions/serialport',
'operation_id': 'compute_project_vm_serialport',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'compute_project_vm_serialport',
'x_idempotency_key',
'x_dry_run',
],
'required': [
'project_id',
'location_id',
'vm_id',
'compute_project_vm_serialport',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'compute_project_vm_serialport':
(ComputeProjectVmSerialport,),
'x_idempotency_key':
(str,),
'x_dry_run':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'x_idempotency_key': 'x-idempotency-key',
'x_dry_run': 'x-dry-run',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'compute_project_vm_serialport': 'body',
'x_idempotency_key': 'header',
'x_dry_run': 'header',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'text/plain',
'application/json'
],
'content_type': [
'application/json'
]
},
api_client=api_client,
callable=__compute_project_vm_serialport
)
def __compute_project_vm_service_get(
self,
project_id,
location_id,
vm_id,
service_id,
**kwargs
):
"""Get compute/vm.service # noqa: E501
Get compute/vm.service # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_service_get(project_id, location_id, vm_id, service_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
service_id (str): serviceId
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
ResourceService
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['service_id'] = \
service_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_service_get = _Endpoint(
settings={
'response_type': (ResourceService,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/service/{serviceId}',
'operation_id': 'compute_project_vm_service_get',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'service_id',
],
'required': [
'project_id',
'location_id',
'vm_id',
'service_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'service_id':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'service_id': 'serviceId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'service_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_service_get
)
def __compute_project_vm_service_list(
self,
project_id,
location_id,
vm_id,
**kwargs
):
"""List compute/vm.service # noqa: E501
List compute/vm.service # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_service_list(project_id, location_id, vm_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
[ResourceService]
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_service_list = _Endpoint(
settings={
'response_type': ([ResourceService],),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/service',
'operation_id': 'compute_project_vm_service_list',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
],
'required': [
'project_id',
'location_id',
'vm_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_service_list
)
def __compute_project_vm_start(
self,
project_id,
location_id,
vm_id,
**kwargs
):
"""Start compute/vm # noqa: E501
action start # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_start(project_id, location_id, vm_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
Keyword Args:
x_idempotency_key (str): Idempotency key. [optional]
x_dry_run (str): Dry run. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Vm
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_start = _Endpoint(
settings={
'response_type': (Vm,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/actions/start',
'operation_id': 'compute_project_vm_start',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'x_idempotency_key',
'x_dry_run',
],
'required': [
'project_id',
'location_id',
'vm_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'x_idempotency_key':
(str,),
'x_dry_run':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'x_idempotency_key': 'x-idempotency-key',
'x_dry_run': 'x-dry-run',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'x_idempotency_key': 'header',
'x_dry_run': 'header',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_start
)
def __compute_project_vm_stop(
self,
project_id,
location_id,
vm_id,
**kwargs
):
"""Stop compute/vm # noqa: E501
action stop # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_stop(project_id, location_id, vm_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
Keyword Args:
x_idempotency_key (str): Idempotency key. [optional]
x_dry_run (str): Dry run. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Vm
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_stop = _Endpoint(
settings={
'response_type': (Vm,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/actions/stop',
'operation_id': 'compute_project_vm_stop',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'x_idempotency_key',
'x_dry_run',
],
'required': [
'project_id',
'location_id',
'vm_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'x_idempotency_key':
(str,),
'x_dry_run':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'x_idempotency_key': 'x-idempotency-key',
'x_dry_run': 'x-dry-run',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'x_idempotency_key': 'header',
'x_dry_run': 'header',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_stop
)
def __compute_project_vm_tag_create(
self,
project_id,
location_id,
vm_id,
tag,
**kwargs
):
"""Create compute/vm.tag # noqa: E501
Create compute/vm.tag # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_tag_create(project_id, location_id, vm_id, tag, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
tag (Tag):
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Tag
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['tag'] = \
tag
return self.call_with_http_info(**kwargs)
self.compute_project_vm_tag_create = _Endpoint(
settings={
'response_type': (Tag,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/tag',
'operation_id': 'compute_project_vm_tag_create',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'tag',
],
'required': [
'project_id',
'location_id',
'vm_id',
'tag',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'tag':
(Tag,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'tag': 'body',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [
'application/json'
]
},
api_client=api_client,
callable=__compute_project_vm_tag_create
)
def __compute_project_vm_tag_delete(
self,
project_id,
location_id,
vm_id,
tag_id,
**kwargs
):
"""Delete compute/vm.tag # noqa: E501
Delete compute/vm.tag # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_tag_delete(project_id, location_id, vm_id, tag_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
tag_id (str): tagId
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
None
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['tag_id'] = \
tag_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_tag_delete = _Endpoint(
settings={
'response_type': None,
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/tag/{tagId}',
'operation_id': 'compute_project_vm_tag_delete',
'http_method': 'DELETE',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'tag_id',
],
'required': [
'project_id',
'location_id',
'vm_id',
'tag_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'tag_id':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'tag_id': 'tagId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'tag_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_tag_delete
)
def __compute_project_vm_tag_get(
self,
project_id,
location_id,
vm_id,
tag_id,
**kwargs
):
"""Get compute/vm.tag # noqa: E501
Get compute/vm.tag # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_tag_get(project_id, location_id, vm_id, tag_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
tag_id (str): tagId
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Tag
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['tag_id'] = \
tag_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_tag_get = _Endpoint(
settings={
'response_type': (Tag,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/tag/{tagId}',
'operation_id': 'compute_project_vm_tag_get',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'tag_id',
],
'required': [
'project_id',
'location_id',
'vm_id',
'tag_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'tag_id':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'tag_id': 'tagId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'tag_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_tag_get
)
def __compute_project_vm_tag_list(
self,
project_id,
location_id,
vm_id,
**kwargs
):
"""List compute/vm.tag # noqa: E501
List compute/vm.tag # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_tag_list(project_id, location_id, vm_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
[Tag]
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_tag_list = _Endpoint(
settings={
'response_type': ([Tag],),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/tag',
'operation_id': 'compute_project_vm_tag_list',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
],
'required': [
'project_id',
'location_id',
'vm_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_tag_list
)
def __compute_project_vm_tag_put(
self,
project_id,
location_id,
vm_id,
tag_array,
**kwargs
):
"""Replace compute/vm.tag # noqa: E501
Replace compute/vm.tag # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_tag_put(project_id, location_id, vm_id, tag_array, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
tag_array (TagArray):
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
[Tag]
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['tag_array'] = \
tag_array
return self.call_with_http_info(**kwargs)
self.compute_project_vm_tag_put = _Endpoint(
settings={
'response_type': ([Tag],),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/tag',
'operation_id': 'compute_project_vm_tag_put',
'http_method': 'PUT',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'tag_array',
],
'required': [
'project_id',
'location_id',
'vm_id',
'tag_array',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'tag_array':
(TagArray,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'tag_array': 'body',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [
'application/json'
]
},
api_client=api_client,
callable=__compute_project_vm_tag_put
)
def __compute_project_vm_turnoff(
self,
project_id,
location_id,
vm_id,
**kwargs
):
"""Turnoff compute/vm # noqa: E501
action turnoff # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_turnoff(project_id, location_id, vm_id, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
Keyword Args:
x_idempotency_key (str): Idempotency key. [optional]
x_dry_run (str): Dry run. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Vm
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
return self.call_with_http_info(**kwargs)
self.compute_project_vm_turnoff = _Endpoint(
settings={
'response_type': (Vm,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}/actions/turnoff',
'operation_id': 'compute_project_vm_turnoff',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'x_idempotency_key',
'x_dry_run',
],
'required': [
'project_id',
'location_id',
'vm_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'x_idempotency_key':
(str,),
'x_dry_run':
(str,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
'x_idempotency_key': 'x-idempotency-key',
'x_dry_run': 'x-dry-run',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'x_idempotency_key': 'header',
'x_dry_run': 'header',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client,
callable=__compute_project_vm_turnoff
)
def __compute_project_vm_update(
self,
project_id,
location_id,
vm_id,
compute_project_vm_update,
**kwargs
):
"""Update compute/vm # noqa: E501
Returns modified vm # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.compute_project_vm_update(project_id, location_id, vm_id, compute_project_vm_update, async_req=True)
>>> result = thread.get()
Args:
project_id (str): Project Id
location_id (str): Location Id
vm_id (str): Vm Id
compute_project_vm_update (ComputeProjectVmUpdate):
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (float/tuple): timeout setting for this request. If one
number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Vm
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['project_id'] = \
project_id
kwargs['location_id'] = \
location_id
kwargs['vm_id'] = \
vm_id
kwargs['compute_project_vm_update'] = \
compute_project_vm_update
return self.call_with_http_info(**kwargs)
self.compute_project_vm_update = _Endpoint(
settings={
'response_type': (Vm,),
'auth': [
'BearerAuth'
],
'endpoint_path': '/compute/{locationId}/project/{projectId}/vm/{vmId}',
'operation_id': 'compute_project_vm_update',
'http_method': 'PATCH',
'servers': None,
},
params_map={
'all': [
'project_id',
'location_id',
'vm_id',
'compute_project_vm_update',
],
'required': [
'project_id',
'location_id',
'vm_id',
'compute_project_vm_update',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'project_id':
(str,),
'location_id':
(str,),
'vm_id':
(str,),
'compute_project_vm_update':
(ComputeProjectVmUpdate,),
},
'attribute_map': {
'project_id': 'projectId',
'location_id': 'locationId',
'vm_id': 'vmId',
},
'location_map': {
'project_id': 'path',
'location_id': 'path',
'vm_id': 'path',
'compute_project_vm_update': 'body',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [
'application/json'
]
},
api_client=api_client,
callable=__compute_project_vm_update
)
| 36.726709
| 153
| 0.440409
| 14,543
| 171,881
| 4.900158
| 0.016572
| 0.043066
| 0.052762
| 0.041326
| 0.961874
| 0.93604
| 0.914626
| 0.913251
| 0.901857
| 0.899611
| 0
| 0.002954
| 0.474125
| 171,881
| 4,679
| 154
| 36.734559
| 0.785458
| 0.286343
| 0
| 0.738999
| 1
| 0
| 0.234911
| 0.054117
| 0
| 0
| 0
| 0
| 0
| 1
| 0.009644
| false
| 0.004219
| 0.006932
| 0
| 0.026221
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
3d6117d00240e92f797b3e50f0f6428f66097c13
| 128
|
py
|
Python
|
python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_0/_pkg1_0_0/_pkg1_0_0_0/_pkg1_0_0_0_1/_mod1_0_0_0_1_3.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_0/_pkg1_0_0/_pkg1_0_0_0/_pkg1_0_0_0_1/_mod1_0_0_0_1_3.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/heavyStarPropagation/lib/_pkg1/_pkg1_0/_pkg1_0_0/_pkg1_0_0_0/_pkg1_0_0_0_1/_mod1_0_0_0_1_3.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
name1_0_0_0_1_3_0 = None
name1_0_0_0_1_3_1 = None
name1_0_0_0_1_3_2 = None
name1_0_0_0_1_3_3 = None
name1_0_0_0_1_3_4 = None
| 14.222222
| 24
| 0.820313
| 40
| 128
| 1.875
| 0.175
| 0.266667
| 0.466667
| 0.533333
| 0.88
| 0.88
| 0.746667
| 0
| 0
| 0
| 0
| 0.318182
| 0.140625
| 128
| 9
| 25
| 14.222222
| 0.363636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
3d6186370ff1c221f9729c283215f04810dcaf83
| 175
|
py
|
Python
|
cep/controllers/__init__.py
|
hjw-1014/Multi-Objective-Reactive-Motion-Planning-in-Mobile-Manipulators
|
9a8801e9c663174b753c4852b2313c5a3f302434
|
[
"MIT"
] | null | null | null |
cep/controllers/__init__.py
|
hjw-1014/Multi-Objective-Reactive-Motion-Planning-in-Mobile-Manipulators
|
9a8801e9c663174b753c4852b2313c5a3f302434
|
[
"MIT"
] | null | null | null |
cep/controllers/__init__.py
|
hjw-1014/Multi-Objective-Reactive-Motion-Planning-in-Mobile-Manipulators
|
9a8801e9c663174b753c4852b2313c5a3f302434
|
[
"MIT"
] | null | null | null |
from .cep_control_lefthand_base import EBMControl, EnergyTree, Multi_EBMControl, EBMControl_x, EnergyTree_x
#from .cep_control import EBMControl, EnergyTree, Multi_EBMControl
| 58.333333
| 107
| 0.868571
| 22
| 175
| 6.545455
| 0.454545
| 0.097222
| 0.194444
| 0.430556
| 0.569444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08
| 175
| 2
| 108
| 87.5
| 0.89441
| 0.371429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
1807c36edad4993f3c9929def77538564e0e3478
| 46,016
|
py
|
Python
|
xt/environment/ma/env_CatchPigs.py
|
TianQi-777/xingtian
|
9b1678ad6ff12f00c2826a7ec7f42d5350b83b31
|
[
"MIT"
] | 240
|
2020-08-15T15:11:49.000Z
|
2022-03-28T07:26:23.000Z
|
xt/environment/ma/env_CatchPigs.py
|
TianQi-777/xingtian
|
9b1678ad6ff12f00c2826a7ec7f42d5350b83b31
|
[
"MIT"
] | 20
|
2020-08-29T06:18:21.000Z
|
2022-03-21T04:35:57.000Z
|
xt/environment/ma/env_CatchPigs.py
|
TianQi-777/xingtian
|
9b1678ad6ff12f00c2826a7ec7f42d5350b83b31
|
[
"MIT"
] | 69
|
2020-08-15T15:41:53.000Z
|
2022-03-16T08:27:47.000Z
|
"""
Make Catch pig with two agents.
forked from:
https://github.com/Bigpig4396/Multi-Agent-Reinforcement-Learning-Environment/
tree/master/env_CatchPigs
Thanks to their authors.
"""
# pylint: disable-all
# flake8: noqa
# noqa
import random
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.gridspec import GridSpec
import cv2
class EnvCatchPigs(object):
def __init__(self, size, if_PO):
assert self.check_size(size)
self.if_PO = if_PO
self.map_size = size
self.occupancy = np.zeros((self.map_size, self.map_size))
for i in range(self.map_size):
self.occupancy[0][i] = 1
self.occupancy[1][i] = 1
self.occupancy[self.map_size - 2][i] = 1
self.occupancy[self.map_size - 1][i] = 1
self.occupancy[i][0] = 1
self.occupancy[i][1] = 1
self.occupancy[i][self.map_size - 2] = 1
self.occupancy[i][self.map_size - 1] = 1
for i in range(3, self.map_size - 3, 2):
for j in range(3, self.map_size - 3, 2):
self.occupancy[i][j] = 1
self.raw_occupancy = np.zeros((self.map_size, self.map_size))
for i in range(self.map_size):
self.raw_occupancy[0][i] = 1
self.raw_occupancy[1][i] = 1
self.raw_occupancy[self.map_size - 2][i] = 1
self.raw_occupancy[self.map_size - 1][i] = 1
self.raw_occupancy[i][0] = 1
self.raw_occupancy[i][1] = 1
self.raw_occupancy[i][self.map_size - 2] = 1
self.raw_occupancy[i][self.map_size - 1] = 1
for i in range(3, self.map_size - 3, 2):
for j in range(3, self.map_size - 3, 2):
self.raw_occupancy[i][j] = 1
# initialize agent 1
self.agt1_pos = [
random.randint(2, self.map_size - 3),
random.randint(2, self.map_size - 3),
]
while self.occupancy[self.agt1_pos[0]][self.agt1_pos[1]] == 1:
self.agt1_pos = [
random.randint(2, self.map_size - 3),
random.randint(2, self.map_size - 3),
]
self.occupancy[self.agt1_pos[0]][self.agt1_pos[1]] = 1
self.agt1_ori = random.randint(0, 3)
# initialize agent 2
self.agt2_pos = [
random.randint(2, self.map_size - 3),
random.randint(2, self.map_size - 3),
]
while self.occupancy[self.agt2_pos[0]][self.agt2_pos[1]] == 1:
self.agt2_pos = [
random.randint(2, self.map_size - 3),
random.randint(2, self.map_size - 3),
]
self.occupancy[self.agt2_pos[0]][self.agt2_pos[1]] = 1
self.agt2_ori = random.randint(0, 3)
# initialize pig
self.pig_pos = [
random.randint(2, self.map_size - 3),
random.randint(2, self.map_size - 3),
]
while self.occupancy[self.pig_pos[0]][self.pig_pos[1]] == 1:
self.pig_pos = [
random.randint(2, self.map_size - 3),
random.randint(2, self.map_size - 3),
]
self.occupancy[self.pig_pos[0]][self.pig_pos[1]] = 1
self.pig_ori = random.randint(0, 3)
self.if_agt1_catches = False
self.if_agt2_catches = False
def check_size(self, size):
print("size of map should be an odd integer no smaller than 7")
if (size % 2) == 1 and size >= 7:
return True
else:
return False
def reset(self):
self.occupancy = np.zeros((self.map_size, self.map_size))
for i in range(self.map_size):
self.occupancy[0][i] = 1
self.occupancy[1][i] = 1
self.occupancy[self.map_size - 2][i] = 1
self.occupancy[self.map_size - 1][i] = 1
self.occupancy[i][0] = 1
self.occupancy[i][1] = 1
self.occupancy[i][self.map_size - 2] = 1
self.occupancy[i][self.map_size - 1] = 1
for i in range(3, self.map_size - 3, 2):
for j in range(3, self.map_size - 3, 2):
self.occupancy[i][j] = 1
# initialize agent 1
self.agt1_pos = [
random.randint(2, self.map_size - 3),
random.randint(2, self.map_size - 3),
]
while self.occupancy[self.agt1_pos[0]][self.agt1_pos[1]] == 1:
self.agt1_pos = [
random.randint(2, self.map_size - 3),
random.randint(2, self.map_size - 3),
]
self.occupancy[self.agt1_pos[0]][self.agt1_pos[1]] = 1
self.agt1_ori = random.randint(0, 3)
# initialize agent 2
self.agt2_pos = [
random.randint(2, self.map_size - 3),
random.randint(2, self.map_size - 3),
]
while self.occupancy[self.agt2_pos[0]][self.agt2_pos[1]] == 1:
self.agt2_pos = [
random.randint(2, self.map_size - 3),
random.randint(2, self.map_size - 3),
]
self.occupancy[self.agt2_pos[0]][self.agt2_pos[1]] = 1
self.agt2_ori = random.randint(0, 3)
# initialize pig
self.pig_pos = [
random.randint(2, self.map_size - 3),
random.randint(2, self.map_size - 3),
]
while self.occupancy[self.pig_pos[0]][self.pig_pos[1]] == 1:
self.pig_pos = [
random.randint(2, self.map_size - 3),
random.randint(2, self.map_size - 3),
]
self.occupancy[self.pig_pos[0]][self.pig_pos[1]] = 1
self.pig_ori = random.randint(0, 3)
self.if_agt1_catches = False
self.if_agt2_catches = False
def list_add(self, a, b):
c = [a[i] + b[i] for i in range(min(len(a), len(b)))]
return c
def paint_block(self, obs, i, j):
new_obs = obs
for row in range(3):
for col in range(3):
new_obs[i * 3 + row, j * 3 + col, 0] = 0.0
new_obs[i * 3 + row, j * 3 + col, 1] = 0.0
new_obs[i * 3 + row, j * 3 + col, 2] = 0.0
return new_obs
def paint_agt1(self, obs, i, j, ori):
new_obs = obs
if ori == 0:
new_obs[i * 3, j * 3, 0] = 1.0
new_obs[i * 3, j * 3, 1] = 0.0
new_obs[i * 3, j * 3, 2] = 0.0
new_obs[i * 3 + 1, j * 3, 0] = 1.0
new_obs[i * 3 + 1, j * 3, 1] = 0.0
new_obs[i * 3 + 1, j * 3, 2] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 0] = 1.0
new_obs[i * 3 + 1, j * 3 + 1, 1] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 2] = 0.0
new_obs[i * 3 + 1, j * 3 + 2, 0] = 1.0
new_obs[i * 3 + 1, j * 3 + 2, 1] = 0.0
new_obs[i * 3 + 1, j * 3 + 2, 2] = 0.0
new_obs[i * 3 + 2, j * 3, 0] = 1.0
new_obs[i * 3 + 2, j * 3, 1] = 0.0
new_obs[i * 3 + 2, j * 3, 2] = 0.0
elif ori == 1:
new_obs[i * 3, j * 3, 0] = 1.0
new_obs[i * 3, j * 3, 1] = 0.0
new_obs[i * 3, j * 3, 2] = 0.0
new_obs[i * 3, j * 3 + 1, 0] = 1.0
new_obs[i * 3, j * 3 + 1, 1] = 0.0
new_obs[i * 3, j * 3 + 1, 2] = 0.0
new_obs[i * 3, j * 3 + 2, 0] = 1.0
new_obs[i * 3, j * 3 + 2, 1] = 0.0
new_obs[i * 3, j * 3 + 2, 2] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 0] = 1.0
new_obs[i * 3 + 1, j * 3 + 1, 1] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 2] = 0.0
new_obs[i * 3 + 2, j * 3 + 1, 0] = 1.0
new_obs[i * 3 + 2, j * 3 + 1, 1] = 0.0
new_obs[i * 3 + 2, j * 3 + 1, 2] = 0.0
elif ori == 2:
new_obs[i * 3, j * 3 + 2, 0] = 1.0
new_obs[i * 3, j * 3 + 2, 1] = 0.0
new_obs[i * 3, j * 3 + 2, 2] = 0.0
new_obs[i * 3 + 1, j * 3, 0] = 1.0
new_obs[i * 3 + 1, j * 3, 1] = 0.0
new_obs[i * 3 + 1, j * 3, 2] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 0] = 1.0
new_obs[i * 3 + 1, j * 3 + 1, 1] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 2] = 0.0
new_obs[i * 3 + 1, j * 3 + 2, 0] = 1.0
new_obs[i * 3 + 1, j * 3 + 2, 1] = 0.0
new_obs[i * 3 + 1, j * 3 + 2, 2] = 0.0
new_obs[i * 3 + 2, j * 3 + 2, 0] = 1.0
new_obs[i * 3 + 2, j * 3 + 2, 1] = 0.0
new_obs[i * 3 + 2, j * 3 + 2, 2] = 0.0
elif ori == 3:
new_obs[i * 3, j * 3 + 1, 0] = 1.0
new_obs[i * 3, j * 3 + 1, 1] = 0.0
new_obs[i * 3, j * 3 + 1, 2] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 0] = 1.0
new_obs[i * 3 + 1, j * 3 + 1, 1] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 2] = 0.0
new_obs[i * 3 + 2, j * 3, 0] = 1.0
new_obs[i * 3 + 2, j * 3, 1] = 0.0
new_obs[i * 3 + 2, j * 3, 2] = 0.0
new_obs[i * 3 + 2, j * 3 + 1, 0] = 1.0
new_obs[i * 3 + 2, j * 3 + 1, 1] = 0.0
new_obs[i * 3 + 2, j * 3 + 1, 2] = 0.0
new_obs[i * 3 + 2, j * 3 + 2, 0] = 1.0
new_obs[i * 3 + 2, j * 3 + 2, 1] = 0.0
new_obs[i * 3 + 2, j * 3 + 2, 2] = 0.0
return new_obs
def paint_agt2(self, obs, i, j, ori):
new_obs = obs
if ori == 0:
new_obs[i * 3, j * 3, 0] = 0.0
new_obs[i * 3, j * 3, 1] = 0.0
new_obs[i * 3, j * 3, 2] = 1.0
new_obs[i * 3 + 1, j * 3, 0] = 0.0
new_obs[i * 3 + 1, j * 3, 1] = 0.0
new_obs[i * 3 + 1, j * 3, 2] = 1.0
new_obs[i * 3 + 1, j * 3 + 1, 0] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 1] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 2] = 1.0
new_obs[i * 3 + 1, j * 3 + 2, 0] = 0.0
new_obs[i * 3 + 1, j * 3 + 2, 1] = 0.0
new_obs[i * 3 + 1, j * 3 + 2, 2] = 1.0
new_obs[i * 3 + 2, j * 3, 0] = 0.0
new_obs[i * 3 + 2, j * 3, 1] = 0.0
new_obs[i * 3 + 2, j * 3, 2] = 1.0
elif ori == 1:
new_obs[i * 3, j * 3, 0] = 0.0
new_obs[i * 3, j * 3, 1] = 0.0
new_obs[i * 3, j * 3, 2] = 1.0
new_obs[i * 3, j * 3 + 1, 0] = 0.0
new_obs[i * 3, j * 3 + 1, 1] = 0.0
new_obs[i * 3, j * 3 + 1, 2] = 1.0
new_obs[i * 3, j * 3 + 2, 0] = 0.0
new_obs[i * 3, j * 3 + 2, 1] = 0.0
new_obs[i * 3, j * 3 + 2, 2] = 1.0
new_obs[i * 3 + 1, j * 3 + 1, 0] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 1] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 2] = 1.0
new_obs[i * 3 + 2, j * 3 + 1, 0] = 0.0
new_obs[i * 3 + 2, j * 3 + 1, 1] = 0.0
new_obs[i * 3 + 2, j * 3 + 1, 2] = 1.0
elif ori == 2:
new_obs[i * 3, j * 3 + 2, 0] = 0.0
new_obs[i * 3, j * 3 + 2, 1] = 0.0
new_obs[i * 3, j * 3 + 2, 2] = 1.0
new_obs[i * 3 + 1, j * 3, 0] = 0.0
new_obs[i * 3 + 1, j * 3, 1] = 0.0
new_obs[i * 3 + 1, j * 3, 2] = 1.0
new_obs[i * 3 + 1, j * 3 + 1, 0] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 1] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 2] = 1.0
new_obs[i * 3 + 1, j * 3 + 2, 0] = 0.0
new_obs[i * 3 + 1, j * 3 + 2, 1] = 0.0
new_obs[i * 3 + 1, j * 3 + 2, 2] = 1.0
new_obs[i * 3 + 2, j * 3 + 2, 0] = 0.0
new_obs[i * 3 + 2, j * 3 + 2, 1] = 0.0
new_obs[i * 3 + 2, j * 3 + 2, 2] = 1.0
elif ori == 3:
new_obs[i * 3, j * 3 + 1, 0] = 0.0
new_obs[i * 3, j * 3 + 1, 1] = 0.0
new_obs[i * 3, j * 3 + 1, 2] = 1.0
new_obs[i * 3 + 1, j * 3 + 1, 0] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 1] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 2] = 1.0
new_obs[i * 3 + 2, j * 3, 0] = 0.0
new_obs[i * 3 + 2, j * 3, 1] = 0.0
new_obs[i * 3 + 2, j * 3, 2] = 1.0
new_obs[i * 3 + 2, j * 3 + 1, 0] = 0.0
new_obs[i * 3 + 2, j * 3 + 1, 1] = 0.0
new_obs[i * 3 + 2, j * 3 + 1, 2] = 1.0
new_obs[i * 3 + 2, j * 3 + 2, 0] = 0.0
new_obs[i * 3 + 2, j * 3 + 2, 1] = 0.0
new_obs[i * 3 + 2, j * 3 + 2, 2] = 1.0
return new_obs
def paint_pig(self, obs, i, j, ori):
new_obs = obs
if ori == 0:
new_obs[i * 3, j * 3, 0] = 0.0
new_obs[i * 3, j * 3, 1] = 1.0
new_obs[i * 3, j * 3, 2] = 0.0
new_obs[i * 3 + 1, j * 3, 0] = 0.0
new_obs[i * 3 + 1, j * 3, 1] = 1.0
new_obs[i * 3 + 1, j * 3, 2] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 0] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 1] = 1.0
new_obs[i * 3 + 1, j * 3 + 1, 2] = 0.0
new_obs[i * 3 + 1, j * 3 + 2, 0] = 0.0
new_obs[i * 3 + 1, j * 3 + 2, 1] = 1.0
new_obs[i * 3 + 1, j * 3 + 2, 2] = 0.0
new_obs[i * 3 + 2, j * 3, 0] = 0.0
new_obs[i * 3 + 2, j * 3, 1] = 1.0
new_obs[i * 3 + 2, j * 3, 2] = 0.0
elif ori == 1:
new_obs[i * 3, j * 3, 0] = 0.0
new_obs[i * 3, j * 3, 1] = 1.0
new_obs[i * 3, j * 3, 2] = 0.0
new_obs[i * 3, j * 3 + 1, 0] = 0.0
new_obs[i * 3, j * 3 + 1, 1] = 1.0
new_obs[i * 3, j * 3 + 1, 2] = 0.0
new_obs[i * 3, j * 3 + 2, 0] = 0.0
new_obs[i * 3, j * 3 + 2, 1] = 1.0
new_obs[i * 3, j * 3 + 2, 2] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 0] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 1] = 1.0
new_obs[i * 3 + 1, j * 3 + 1, 2] = 0.0
new_obs[i * 3 + 2, j * 3 + 1, 0] = 0.0
new_obs[i * 3 + 2, j * 3 + 1, 1] = 1.0
new_obs[i * 3 + 2, j * 3 + 1, 2] = 0.0
elif ori == 2:
new_obs[i * 3, j * 3 + 2, 0] = 0.0
new_obs[i * 3, j * 3 + 2, 1] = 1.0
new_obs[i * 3, j * 3 + 2, 2] = 0.0
new_obs[i * 3 + 1, j * 3, 0] = 0.0
new_obs[i * 3 + 1, j * 3, 1] = 1.0
new_obs[i * 3 + 1, j * 3, 2] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 0] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 1] = 1.0
new_obs[i * 3 + 1, j * 3 + 1, 2] = 0.0
new_obs[i * 3 + 1, j * 3 + 2, 0] = 0.0
new_obs[i * 3 + 1, j * 3 + 2, 1] = 1.0
new_obs[i * 3 + 1, j * 3 + 2, 2] = 0.0
new_obs[i * 3 + 2, j * 3 + 2, 0] = 0.0
new_obs[i * 3 + 2, j * 3 + 2, 1] = 1.0
new_obs[i * 3 + 2, j * 3 + 2, 2] = 0.0
elif ori == 3:
new_obs[i * 3, j * 3 + 1, 0] = 0.0
new_obs[i * 3, j * 3 + 1, 1] = 1.0
new_obs[i * 3, j * 3 + 1, 2] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 0] = 0.0
new_obs[i * 3 + 1, j * 3 + 1, 1] = 1.0
new_obs[i * 3 + 1, j * 3 + 1, 2] = 0.0
new_obs[i * 3 + 2, j * 3, 0] = 0.0
new_obs[i * 3 + 2, j * 3, 1] = 1.0
new_obs[i * 3 + 2, j * 3, 2] = 0.0
new_obs[i * 3 + 2, j * 3 + 1, 0] = 0.0
new_obs[i * 3 + 2, j * 3 + 1, 1] = 1.0
new_obs[i * 3 + 2, j * 3 + 1, 2] = 0.0
new_obs[i * 3 + 2, j * 3 + 2, 0] = 0.0
new_obs[i * 3 + 2, j * 3 + 2, 1] = 1.0
new_obs[i * 3 + 2, j * 3 + 2, 2] = 0.0
return new_obs
def get_agt1_obs(self):
obs = []
if not self.if_PO:
obs = self.get_global_obs()
else:
obs = np.zeros((5 * 3, 5 * 3, 3))
for i in range(5 * 3):
for j in range(5 * 3):
obs[i, j, 0] = 1.0
obs[i, j, 1] = 1.0
obs[i, j, 2] = 1.0
for k in range(5):
if (self.raw_occupancy[self.agt1_pos[0] - 2][self.agt1_pos[1] + k - 2] == 1):
self.paint_block(obs, 4 - k, 0)
if (self.raw_occupancy[self.agt1_pos[0] - 1][self.agt1_pos[1] + k - 2] == 1):
self.paint_block(obs, 4 - k, 1)
if self.raw_occupancy[self.agt1_pos[0]][self.agt1_pos[1] + k - 2] == 1:
self.paint_block(obs, 4 - k, 2)
if (self.raw_occupancy[self.agt1_pos[0] + 1][self.agt1_pos[1] + k - 2] == 1):
self.paint_block(obs, 4 - k, 3)
if (self.raw_occupancy[self.agt1_pos[0] + 2][self.agt1_pos[1] + k - 2] == 1):
self.paint_block(obs, 4 - k, 4)
# detect self
self.paint_agt1(obs, 2, 2, self.agt1_ori)
# detect agent2
for k in range(5):
if self.agt2_pos == self.list_add(self.agt1_pos, [-2 + k, 2]):
self.paint_agt2(obs, 0, k, self.agt2_ori)
if self.agt2_pos == self.list_add(self.agt1_pos, [-2 + k, 1]):
self.paint_agt2(obs, 1, k, self.agt2_ori)
if self.agt2_pos == self.list_add(self.agt1_pos, [-2 + k, 0]):
self.paint_agt2(obs, 2, k, self.agt2_ori)
if self.agt2_pos == self.list_add(self.agt1_pos, [-2 + k, -1]):
self.paint_agt2(obs, 3, k, self.agt2_ori)
if self.agt2_pos == self.list_add(self.agt1_pos, [-2 + k, -2]):
self.paint_agt2(obs, 4, k, self.agt2_ori)
# detect pig
for k in range(5):
if self.pig_pos == self.list_add(self.agt1_pos, [-2 + k, 2]):
self.paint_pig(obs, 0, k, self.pig_ori)
if self.pig_pos == self.list_add(self.agt1_pos, [-2 + k, 1]):
self.paint_pig(obs, 1, k, self.pig_ori)
if self.pig_pos == self.list_add(self.agt1_pos, [-2 + k, 0]):
self.paint_pig(obs, 2, k, self.pig_ori)
if self.pig_pos == self.list_add(self.agt1_pos, [-2 + k, -1]):
self.paint_pig(obs, 3, k, self.pig_ori)
if self.pig_pos == self.list_add(self.agt1_pos, [-2 + k, -2]):
self.paint_pig(obs, 4, k, self.pig_ori)
# add fog
if self.agt1_ori == 0:
for i in range(5 * 3):
for j in range(2 * 3):
obs[i, 14 - j, 0] = 0.5
obs[i, 14 - j, 1] = 0.5
obs[i, 14 - j, 2] = 0.5
if self.agt1_ori == 1:
for i in range(5 * 3):
for j in range(2 * 3):
obs[14 - j, i, 0] = 0.5
obs[14 - j, i, 1] = 0.5
obs[14 - j, i, 2] = 0.5
if self.agt1_ori == 2:
for i in range(5 * 3):
for j in range(2 * 3):
obs[i, j, 0] = 0.5
obs[i, j, 1] = 0.5
obs[i, j, 2] = 0.5
if self.agt1_ori == 3:
for i in range(5 * 3):
for j in range(2 * 3):
obs[j, i, 0] = 0.5
obs[j, i, 1] = 0.5
obs[j, i, 2] = 0.5
return obs
def get_agt2_obs(self):
obs = []
if not self.if_PO:
obs = self.get_global_obs()
else:
obs = np.zeros((5 * 3, 5 * 3, 3))
for i in range(5 * 3):
for j in range(5 * 3):
obs[i, j, 0] = 1.0
obs[i, j, 1] = 1.0
obs[i, j, 2] = 1.0
for k in range(5):
if (self.raw_occupancy[self.agt2_pos[0] - 2][self.agt2_pos[1] + k - 2] == 1):
self.paint_block(obs, 4 - k, 0)
if (self.raw_occupancy[self.agt2_pos[0] - 1][self.agt2_pos[1] + k - 2] == 1):
self.paint_block(obs, 4 - k, 1)
if self.raw_occupancy[self.agt2_pos[0]][self.agt2_pos[1] + k - 2] == 1:
self.paint_block(obs, 4 - k, 2)
if (self.raw_occupancy[self.agt2_pos[0] + 1][self.agt2_pos[1] + k - 2] == 1):
self.paint_block(obs, 4 - k, 3)
if (self.raw_occupancy[self.agt2_pos[0] + 2][self.agt2_pos[1] + k - 2] == 1):
self.paint_block(obs, 4 - k, 4)
# detect self
self.paint_agt2(obs, 2, 2, self.agt2_ori)
# detect agent1
for k in range(5):
if self.agt1_pos == self.list_add(self.agt2_pos, [-2 + k, 2]):
self.paint_agt1(obs, 0, k, self.agt1_ori)
if self.agt1_pos == self.list_add(self.agt2_pos, [-2 + k, 1]):
self.paint_agt1(obs, 1, k, self.agt1_ori)
if self.agt1_pos == self.list_add(self.agt2_pos, [-2 + k, 0]):
self.paint_agt1(obs, 2, k, self.agt1_ori)
if self.agt1_pos == self.list_add(self.agt2_pos, [-2 + k, -1]):
self.paint_agt1(obs, 3, k, self.agt1_ori)
if self.agt1_pos == self.list_add(self.agt2_pos, [-2 + k, -2]):
self.paint_agt1(obs, 4, k, self.agt1_ori)
# detect pig
for k in range(5):
if self.pig_pos == self.list_add(self.agt2_pos, [-2 + k, 2]):
self.paint_pig(obs, 0, k, self.pig_ori)
if self.pig_pos == self.list_add(self.agt2_pos, [-2 + k, 1]):
self.paint_pig(obs, 1, k, self.pig_ori)
if self.pig_pos == self.list_add(self.agt2_pos, [-2 + k, 0]):
self.paint_pig(obs, 2, k, self.pig_ori)
if self.pig_pos == self.list_add(self.agt2_pos, [-2 + k, -1]):
self.paint_pig(obs, 3, k, self.pig_ori)
if self.pig_pos == self.list_add(self.agt2_pos, [-2 + k, -2]):
self.paint_pig(obs, 4, k, self.pig_ori)
# add fog
if self.agt2_ori == 0:
for i in range(5 * 3):
for j in range(2 * 3):
obs[i, 14 - j, 0] = 0.5
obs[i, 14 - j, 1] = 0.5
obs[i, 14 - j, 2] = 0.5
if self.agt2_ori == 1:
for i in range(5 * 3):
for j in range(2 * 3):
obs[14 - j, i, 0] = 0.5
obs[14 - j, i, 1] = 0.5
obs[14 - j, i, 2] = 0.5
if self.agt2_ori == 2:
for i in range(5 * 3):
for j in range(2 * 3):
obs[i, j, 0] = 0.5
obs[i, j, 1] = 0.5
obs[i, j, 2] = 0.5
if self.agt2_ori == 3:
for i in range(5 * 3):
for j in range(2 * 3):
obs[j, i, 0] = 0.5
obs[j, i, 1] = 0.5
obs[j, i, 2] = 0.5
return obs
def get_pig_obs(self):
obs = []
if not self.if_PO:
obs = self.get_global_obs()
else:
obs = np.zeros((5 * 3, 5 * 3, 3))
for i in range(5 * 3):
for j in range(5 * 3):
obs[i, j, 0] = 1.0
obs[i, j, 1] = 1.0
obs[i, j, 2] = 1.0
for k in range(5):
if (self.raw_occupancy[self.pig_pos[0] - 2][self.pig_pos[1] + k - 2] == 1):
self.paint_block(obs, 4 - k, 0)
if (self.raw_occupancy[self.pig_pos[0] - 1][self.pig_pos[1] + k - 2] == 1):
self.paint_block(obs, 4 - k, 1)
if self.raw_occupancy[self.pig_pos[0]][self.pig_pos[1] + k - 2] == 1:
self.paint_block(obs, 4 - k, 2)
if (self.raw_occupancy[self.pig_pos[0] + 1][self.pig_pos[1] + k - 2] == 1):
self.paint_block(obs, 4 - k, 3)
if (self.raw_occupancy[self.pig_pos[0] + 2][self.pig_pos[1] + k - 2] == 1):
self.paint_block(obs, 4 - k, 4)
# detect self
self.paint_pig(obs, 2, 2, self.pig_ori)
# detect agent1
for k in range(5):
if self.agt1_pos == self.list_add(self.pig_pos, [-2 + k, 2]):
self.paint_agt1(obs, 0, k, self.agt1_ori)
if self.agt1_pos == self.list_add(self.pig_pos, [-2 + k, 1]):
self.paint_agt1(obs, 1, k, self.agt1_ori)
if self.agt1_pos == self.list_add(self.pig_pos, [-2 + k, 0]):
self.paint_agt1(obs, 2, k, self.agt1_ori)
if self.agt1_pos == self.list_add(self.pig_pos, [-2 + k, -1]):
self.paint_agt1(obs, 3, k, self.agt1_ori)
if self.agt1_pos == self.list_add(self.pig_pos, [-2 + k, -2]):
self.paint_agt1(obs, 4, k, self.agt1_ori)
# detect agent2
for k in range(5):
if self.agt2_pos == self.list_add(self.pig_pos, [-2 + k, 2]):
self.paint_agt2(obs, 0, k, self.agt2_ori)
if self.agt2_pos == self.list_add(self.pig_pos, [-2 + k, 1]):
self.paint_agt2(obs, 1, k, self.agt2_ori)
if self.agt2_pos == self.list_add(self.pig_pos, [-2 + k, 0]):
self.paint_agt2(obs, 2, k, self.agt2_ori)
if self.agt2_pos == self.list_add(self.pig_pos, [-2 + k, -1]):
self.paint_agt2(obs, 3, k, self.agt2_ori)
if self.agt2_pos == self.list_add(self.pig_pos, [-2 + k, -2]):
self.paint_agt2(obs, 4, k, self.agt2_ori)
# add fog
if self.pig_ori == 0:
for i in range(5 * 3):
for j in range(2 * 3):
obs[i, 14 - j, 0] = 0.5
obs[i, 14 - j, 1] = 0.5
obs[i, 14 - j, 2] = 0.5
if self.pig_ori == 1:
for i in range(5 * 3):
for j in range(2 * 3):
obs[14 - j, i, 0] = 0.5
obs[14 - j, i, 1] = 0.5
obs[14 - j, i, 2] = 0.5
if self.pig_ori == 2:
for i in range(5 * 3):
for j in range(2 * 3):
obs[i, j, 0] = 0.5
obs[i, j, 1] = 0.5
obs[i, j, 2] = 0.5
if self.pig_ori == 3:
for i in range(5 * 3):
for j in range(2 * 3):
obs[j, i, 0] = 0.5
obs[j, i, 1] = 0.5
obs[j, i, 2] = 0.5
return obs
def get_obs(self):
return [self.get_agt1_obs(), self.get_agt2_obs()]
def get_full_obs(self):
obs = np.zeros((self.map_size * 3, self.map_size * 3, 3))
for i in range(self.map_size * 3):
for j in range(self.map_size * 3):
obs[i, j, 0] = 1.0
obs[i, j, 1] = 1.0
obs[i, j, 2] = 1.0
for i in range(self.map_size):
for j in range(self.map_size):
if self.raw_occupancy[i][j] == 1:
self.paint_block(obs, i, j)
self.paint_agt1(obs, self.map_size -
self.agt1_pos[1] - 1, self.agt1_pos[0], self.agt1_ori)
self.paint_agt2(obs, self.map_size -
self.agt2_pos[1] - 1, self.agt2_pos[0], self.agt2_ori)
self.paint_pig(obs, self.map_size -
self.pig_pos[1] - 1, self.pig_pos[0], self.pig_ori)
return obs
def step(self, action_list):
reward_1 = 0
reward_2 = 0
reward_pig = 0
# agent1 move
if action_list[0] == 0: # turn left
reward_1 = reward_1 - 1
if self.agt1_ori == 0:
self.agt1_ori = 3
elif self.agt1_ori == 1:
self.agt1_ori = 0
elif self.agt1_ori == 2:
self.agt1_ori = 1
elif self.agt1_ori == 3:
self.agt1_ori = 2
elif action_list[0] == 1: # turn right
reward_1 = reward_1 - 1
if self.agt1_ori == 0:
self.agt1_ori = 1
elif self.agt1_ori == 1:
self.agt1_ori = 2
elif self.agt1_ori == 2:
self.agt1_ori = 3
elif self.agt1_ori == 3:
self.agt1_ori = 0
elif action_list[0] == 2: # move
reward_1 = reward_1 - 1
if self.agt1_ori == 0:
if (self.occupancy[self.agt1_pos[0] - 1][self.agt1_pos[1]] != 1): # if can move
self.agt1_pos[0] = self.agt1_pos[0] - 1
self.occupancy[self.agt1_pos[0] + 1][self.agt1_pos[1]] = 0
self.occupancy[self.agt1_pos[0]][self.agt1_pos[1]] = 1
else:
reward_1 = reward_1 - 20
elif self.agt1_ori == 1:
if (self.occupancy[self.agt1_pos[0]][self.agt1_pos[1] + 1] != 1): # if can move
self.agt1_pos[1] = self.agt1_pos[1] + 1
self.occupancy[self.agt1_pos[0]][self.agt1_pos[1] - 1] = 0
self.occupancy[self.agt1_pos[0]][self.agt1_pos[1]] = 1
else:
reward_1 = reward_1 - 20
elif self.agt1_ori == 2:
if (self.occupancy[self.agt1_pos[0] + 1][self.agt1_pos[1]] != 1): # if can move
self.agt1_pos[0] = self.agt1_pos[0] + 1
self.occupancy[self.agt1_pos[0] - 1][self.agt1_pos[1]] = 0
self.occupancy[self.agt1_pos[0]][self.agt1_pos[1]] = 1
else:
reward_1 = reward_1 - 20
elif self.agt1_ori == 3:
if (self.occupancy[self.agt1_pos[0]][self.agt1_pos[1] - 1] != 1): # if can move
self.agt1_pos[1] = self.agt1_pos[1] - 1
self.occupancy[self.agt1_pos[0]][self.agt1_pos[1] + 1] = 0
self.occupancy[self.agt1_pos[0]][self.agt1_pos[1]] = 1
else:
reward_1 = reward_1 - 20
elif action_list[0] == 3: # catch
reward_1 = reward_1 - 1
if self.agt1_ori == 0:
if self.pig_pos[0] == self.agt1_pos[0] - 1:
if self.pig_pos[1] == self.agt1_pos[1]:
self.if_agt1_catches = True
elif self.agt1_ori == 1:
if self.pig_pos[1] == self.agt1_pos[1] + 1:
if self.pig_pos[0] == self.agt1_pos[0]:
self.if_agt1_catches = True
elif self.agt1_ori == 2:
if self.pig_pos[0] == self.agt1_pos[0] + 1:
if self.pig_pos[1] == self.agt1_pos[1]:
self.if_agt1_catches = True
elif self.agt1_ori == 3:
if self.pig_pos[1] == self.agt1_pos[1] - 1:
if self.pig_pos[0] == self.agt1_pos[0]:
self.if_agt1_catches = True
# agent2 move
if action_list[1] == 0: # turn left
reward_2 = reward_2 - 1
if self.agt2_ori == 0:
self.agt2_ori = 3
elif self.agt2_ori == 1:
self.agt2_ori = 0
elif self.agt2_ori == 2:
self.agt2_ori = 1
elif self.agt2_ori == 3:
self.agt2_ori = 2
elif action_list[1] == 1: # turn right
reward_2 = reward_2 - 1
if self.agt2_ori == 0:
self.agt2_ori = 1
elif self.agt2_ori == 1:
self.agt2_ori = 2
elif self.agt2_ori == 2:
self.agt2_ori = 3
elif self.agt2_ori == 3:
self.agt2_ori = 0
elif action_list[1] == 2: # move
reward_2 = reward_2 - 1
if self.agt2_ori == 0:
if (self.occupancy[self.agt2_pos[0] - 1][self.agt2_pos[1]] != 1): # if can move
self.agt2_pos[0] = self.agt2_pos[0] - 1
self.occupancy[self.agt2_pos[0] + 1][self.agt2_pos[1]] = 0
self.occupancy[self.agt2_pos[0]][self.agt2_pos[1]] = 1
else:
reward_2 = reward_2 - 20
elif self.agt2_ori == 1:
if (self.occupancy[self.agt2_pos[0]][self.agt2_pos[1] + 1] != 1): # if can move
self.agt2_pos[1] = self.agt2_pos[1] + 1
self.occupancy[self.agt2_pos[0]][self.agt2_pos[1] - 1] = 0
self.occupancy[self.agt2_pos[0]][self.agt2_pos[1]] = 1
else:
reward_2 = reward_2 - 20
elif self.agt2_ori == 2:
if (self.occupancy[self.agt2_pos[0] + 1][self.agt2_pos[1]] != 1): # if can move
self.agt2_pos[0] = self.agt2_pos[0] + 1
self.occupancy[self.agt2_pos[0] - 1][self.agt2_pos[1]] = 0
self.occupancy[self.agt2_pos[0]][self.agt2_pos[1]] = 1
else:
reward_2 = reward_2 - 20
elif self.agt2_ori == 3:
if (self.occupancy[self.agt2_pos[0]][self.agt2_pos[1] - 1] != 1): # if can move
self.agt2_pos[1] = self.agt2_pos[1] - 1
self.occupancy[self.agt2_pos[0]][self.agt2_pos[1] + 1] = 0
self.occupancy[self.agt2_pos[0]][self.agt2_pos[1]] = 1
else:
reward_2 = reward_2 - 20
elif action_list[1] == 3: # catch
reward_2 = reward_2 - 1
if self.agt2_ori == 0:
if self.pig_pos[0] == self.agt2_pos[0] - 1:
if self.pig_pos[1] == self.agt2_pos[1]:
self.if_agt2_catches = True
elif self.agt2_ori == 1:
if self.pig_pos[1] == self.agt2_pos[1] + 1:
if self.pig_pos[0] == self.agt2_pos[0]:
self.if_agt2_catches = True
elif self.agt2_ori == 2:
if self.pig_pos[0] == self.agt2_pos[0] + 1:
if self.pig_pos[1] == self.agt2_pos[1]:
self.if_agt2_catches = True
elif self.agt2_ori == 3:
if self.pig_pos[1] == self.agt2_pos[1] - 1:
if self.pig_pos[0] == self.agt2_pos[0]:
self.if_agt2_catches = True
# pig move
action_pig = random.randint(0, 3)
if action_pig == 0: # turn left
reward_pig = reward_pig - 1
if self.pig_ori == 0:
self.pig_ori = 3
elif self.pig_ori == 1:
self.pig_ori = 0
elif self.pig_ori == 2:
self.pig_ori = 1
elif self.pig_ori == 3:
self.pig_ori = 2
elif action_pig == 1: # turn right
reward_pig = reward_pig - 1
if self.pig_ori == 0:
self.pig_ori = 1
elif self.pig_ori == 1:
self.pig_ori = 2
elif self.pig_ori == 2:
self.pig_ori = 3
elif self.pig_ori == 3:
self.pig_ori = 0
elif action_pig == 2: # move
reward_pig = reward_pig - 1
if self.pig_ori == 0:
if (self.occupancy[self.pig_pos[0] - 1][self.pig_pos[1]] != 1): # if can move
self.pig_pos[0] = self.pig_pos[0] - 1
self.occupancy[self.pig_pos[0] + 1][self.pig_pos[1]] = 0
self.occupancy[self.pig_pos[0]][self.pig_pos[1]] = 1
self.if_agt1_catches = False
self.if_agt2_catches = False
else:
reward_pig = reward_pig - 20
elif self.pig_ori == 1:
if (self.occupancy[self.pig_pos[0]][self.pig_pos[1] + 1] != 1): # if can move
self.pig_pos[1] = self.pig_pos[1] + 1
self.occupancy[self.pig_pos[0]][self.pig_pos[1] - 1] = 0
self.occupancy[self.pig_pos[0]][self.pig_pos[1]] = 1
self.if_agt1_catches = False
self.if_agt2_catches = False
else:
reward_pig = reward_pig - 20
elif self.pig_ori == 2:
if (self.occupancy[self.pig_pos[0] + 1][self.pig_pos[1]] != 1): # if can move
self.pig_pos[0] = self.pig_pos[0] + 1
self.occupancy[self.pig_pos[0] - 1][self.pig_pos[1]] = 0
self.occupancy[self.pig_pos[0]][self.pig_pos[1]] = 1
self.if_agt1_catches = False
self.if_agt2_catches = False
else:
reward_pig = reward_pig - 20
elif self.pig_ori == 3:
if (self.occupancy[self.pig_pos[0]][self.pig_pos[1] - 1] != 1): # if can move
self.pig_pos[1] = self.pig_pos[1] - 1
self.occupancy[self.pig_pos[0]][self.pig_pos[1] + 1] = 0
self.occupancy[self.pig_pos[0]][self.pig_pos[1]] = 1
self.if_agt1_catches = False
self.if_agt2_catches = False
else:
reward_pig = reward_pig - 20
# check if caught
if (self.if_agt1_catches) and (self.if_agt2_catches):
reward_1 = reward_1 + 500
reward_2 = reward_2 + 500
reward_pig = reward_pig - 500
self.reset()
else:
if action_list[1] == 3:
reward_2 = reward_2 - 50
if action_list[0] == 3:
reward_1 = reward_1 - 50
self.if_agt1_catches = False
self.if_agt2_catches = False
done = False
if reward_1 > 0:
done = True
# reward shape
if done:
reward_1 = 1.0
reward_2 = 1.0
else:
reward_1 = -0.001
reward_2 = -0.001
return [reward_1, reward_2], done
def plot_scene(self):
fig = plt.figure(figsize=(5, 5))
gs = GridSpec(3, 3, figure=fig)
ax1 = fig.add_subplot(gs[0:2, 0:3])
plt.xticks([])
plt.yticks([])
ax2 = fig.add_subplot(gs[2, 0:1])
plt.xticks([])
plt.yticks([])
ax3 = fig.add_subplot(gs[2, 1:2])
plt.xticks([])
plt.yticks([])
ax4 = fig.add_subplot(gs[2, 2:3])
plt.xticks([])
plt.yticks([])
ax1.imshow(self.get_full_obs())
ax2.imshow(self.get_agt1_obs())
ax3.imshow(self.get_agt2_obs())
ax4.imshow(self.get_pig_obs())
plt.show()
def set_agt1_at(self, tgt_pos, tgt_ori):
if self.occupancy[tgt_pos[0]][tgt_pos[1]] == 0: # free space
self.occupancy[self.agt1_pos[0]][self.agt1_pos[1]] = 0
self.agt1_pos = tgt_pos
self.occupancy[self.agt1_pos[0]][self.agt1_pos[1]] = 1
self.agt1_ori = tgt_ori
def set_agt2_at(self, tgt_pos, tgt_ori):
if self.occupancy[tgt_pos[0]][tgt_pos[1]] == 0: # free space
self.occupancy[self.agt2_pos[0]][self.agt2_pos[1]] = 0
self.agt2_pos = tgt_pos
self.occupancy[self.agt2_pos[0]][self.agt2_pos[1]] = 1
self.agt2_ori = tgt_ori
def set_pig_at(self, tgt_pos, tgt_ori):
if self.occupancy[tgt_pos[0]][tgt_pos[1]] == 0: # free space
self.occupancy[self.pig_pos[0]][self.pig_pos[1]] = 0
self.pig_pos = tgt_pos
self.occupancy[self.pig_pos[0]][self.pig_pos[1]] = 1
self.pig_ori = tgt_ori
def render(self):
obs = np.ones((self.map_size * 21, self.map_size * 21, 3))
for i in range(self.map_size):
for j in range(self.map_size):
if self.raw_occupancy[i, j] == 1:
cv2.rectangle(obs, (i * 21, j * 21),
(i * 21 + 21, j * 21 + 21), (0, 0, 0), -1)
# plot agent1
temp_x = self.agt1_pos[0]
temp_y = self.map_size - self.agt1_pos[1] - 1
if self.agt1_ori == 0:
cv2.rectangle(
obs,
(temp_x * 21, temp_y * 21),
(temp_x * 21 + 7, temp_y * 21 + 21),
(0, 0, 255),
-1,
)
cv2.rectangle(
obs,
(temp_x * 21 + 7, temp_y * 21 + 7),
(temp_x * 21 + 21, temp_y * 21 + 14),
(0, 0, 255),
-1,
)
elif self.agt1_ori == 1:
cv2.rectangle(
obs,
(temp_x * 21, temp_y * 21),
(temp_x * 21 + 21, temp_y * 21 + 7),
(0, 0, 255),
-1,
)
cv2.rectangle(
obs,
(temp_x * 21 + 7, temp_y * 21 + 7),
(temp_x * 21 + 14, temp_y * 21 + 21),
(0, 0, 255),
-1,
)
elif self.agt1_ori == 2:
cv2.rectangle(
obs,
(temp_x * 21, temp_y * 21 + 7),
(temp_x * 21 + 14, temp_y * 21 + 14),
(0, 0, 255),
-1,
)
cv2.rectangle(
obs,
(temp_x * 21 + 14, temp_y * 21),
(temp_x * 21 + 21, temp_y * 21 + 21),
(0, 0, 255),
-1,
)
else:
cv2.rectangle(
obs,
(temp_x * 21, temp_y * 21 + 14),
(temp_x * 21 + 21, temp_y * 21 + 21),
(0, 0, 255),
-1,
)
cv2.rectangle(
obs,
(temp_x * 21 + 7, temp_y * 21),
(temp_x * 21 + 14, temp_y * 21 + 14),
(0, 0, 255),
-1,
)
# plot agent2
temp_x = self.agt2_pos[0]
temp_y = self.map_size - self.agt2_pos[1] - 1
if self.agt2_ori == 0:
cv2.rectangle(
obs,
(temp_x * 21, temp_y * 21),
(temp_x * 21 + 7, temp_y * 21 + 21),
(255, 0, 0),
-1,
)
cv2.rectangle(
obs,
(temp_x * 21 + 7, temp_y * 21 + 7),
(temp_x * 21 + 21, temp_y * 21 + 14),
(255, 0, 0),
-1,
)
elif self.agt2_ori == 1:
cv2.rectangle(
obs,
(temp_x * 21, temp_y * 21),
(temp_x * 21 + 21, temp_y * 21 + 7),
(255, 0, 0),
-1,
)
cv2.rectangle(
obs,
(temp_x * 21 + 7, temp_y * 21 + 7),
(temp_x * 21 + 14, temp_y * 21 + 21),
(255, 0, 0),
-1,
)
elif self.agt2_ori == 2:
cv2.rectangle(
obs,
(temp_x * 21, temp_y * 21 + 7),
(temp_x * 21 + 14, temp_y * 21 + 14),
(255, 0, 0),
-1,
)
cv2.rectangle(
obs,
(temp_x * 21 + 14, temp_y * 21),
(temp_x * 21 + 21, temp_y * 21 + 21),
(255, 0, 0),
-1,
)
else:
cv2.rectangle(
obs,
(temp_x * 21, temp_y * 21 + 14),
(temp_x * 21 + 21, temp_y * 21 + 21),
(255, 0, 0),
-1,
)
cv2.rectangle(
obs,
(temp_x * 21 + 7, temp_y * 21),
(temp_x * 21 + 14, temp_y * 21 + 14),
(255, 0, 0),
-1,
)
# plot pig
temp_x = self.pig_pos[0]
temp_y = self.map_size - self.pig_pos[1] - 1
if self.pig_ori == 0:
cv2.rectangle(
obs,
(temp_x * 21, temp_y * 21),
(temp_x * 21 + 7, temp_y * 21 + 21),
(0, 255, 0),
-1,
)
cv2.rectangle(
obs,
(temp_x * 21 + 7, temp_y * 21 + 7),
(temp_x * 21 + 21, temp_y * 21 + 14),
(0, 255, 0),
-1,
)
elif self.pig_ori == 1:
cv2.rectangle(
obs,
(temp_x * 21, temp_y * 21),
(temp_x * 21 + 21, temp_y * 21 + 7),
(0, 255, 0),
-1,
)
cv2.rectangle(
obs,
(temp_x * 21 + 7, temp_y * 21 + 7),
(temp_x * 21 + 14, temp_y * 21 + 21),
(0, 255, 0),
-1,
)
elif self.pig_ori == 2:
cv2.rectangle(
obs,
(temp_x * 21, temp_y * 21 + 7),
(temp_x * 21 + 14, temp_y * 21 + 14),
(0, 255, 0),
-1,
)
cv2.rectangle(
obs,
(temp_x * 21 + 14, temp_y * 21),
(temp_x * 21 + 21, temp_y * 21 + 21),
(0, 255, 0),
-1,
)
else:
cv2.rectangle(
obs,
(temp_x * 21, temp_y * 21 + 14),
(temp_x * 21 + 21, temp_y * 21 + 21),
(0, 255, 0),
-1,
)
cv2.rectangle(
obs,
(temp_x * 21 + 7, temp_y * 21),
(temp_x * 21 + 14, temp_y * 21 + 14),
(0, 255, 0),
-1,
)
cv2.imshow("image", obs)
cv2.waitKey(10)
| 40.578483
| 96
| 0.416681
| 7,084
| 46,016
| 2.553077
| 0.022727
| 0.048435
| 0.070828
| 0.080947
| 0.903517
| 0.884607
| 0.877861
| 0.87471
| 0.820137
| 0.817207
| 0
| 0.123774
| 0.441672
| 46,016
| 1,133
| 97
| 40.614298
| 0.580181
| 0.017798
| 0
| 0.742661
| 0
| 0
| 0.001307
| 0
| 0
| 0
| 0
| 0
| 0.000978
| 1
| 0.018591
| false
| 0
| 0.004892
| 0.000978
| 0.037182
| 0.000978
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a10c13e77f246be929499db073bb2cf12262cfe6
| 12,016
|
py
|
Python
|
test/test_one_hot_encoder.py
|
watzke/CD4ML-Scenarios
|
aee61bec6b68483ece923e2dc8380714c1bde281
|
[
"MIT"
] | 1
|
2020-12-24T19:52:58.000Z
|
2020-12-24T19:52:58.000Z
|
test/test_one_hot_encoder.py
|
watzke/CD4ML-Scenarios
|
aee61bec6b68483ece923e2dc8380714c1bde281
|
[
"MIT"
] | null | null | null |
test/test_one_hot_encoder.py
|
watzke/CD4ML-Scenarios
|
aee61bec6b68483ece923e2dc8380714c1bde281
|
[
"MIT"
] | 1
|
2020-05-04T18:21:41.000Z
|
2020-05-04T18:21:41.000Z
|
from cd4ml.one_hot.one_hot_encoder import OneHotEncoder
from tempfile import NamedTemporaryFile
def test_init_empty():
OneHotEncoder([], [])
def test_init():
encoder = OneHotEncoder({'foo': 3, 'bar': 7}, ['buzz_numeric'])
assert encoder.numeric_cols == ['buzz_numeric']
assert encoder.categorical_n_levels_dict == {'foo': 3, 'bar': 7}
def test_init_ignore_default():
encoder = OneHotEncoder({'foo': 3, 'bar': 7}, ['buzz_numeric'], max_levels_default=999)
assert encoder.numeric_cols == ['buzz_numeric']
assert encoder.categorical_n_levels_dict == {'foo': 3, 'bar': 7}
def test_init_do_not_ignore_default():
encoder = OneHotEncoder(['foo', 'bar'], ['buzz_numeric'], max_levels_default=999)
assert encoder.numeric_cols == ['buzz_numeric']
assert encoder.categorical_n_levels_dict == {'foo': 999, 'bar': 999}
def test_load_from_data():
encoder = OneHotEncoder(['animal', 'color'], ['weight'], max_levels_default=100)
data = [{'animal': 'cat', 'color': 'blue', 'weight': 1.0},
{'animal': 'cat', 'color': 'red', 'weight': 3.0},
{'animal': 'dog', 'color': 'yellow', 'weight': 5.5},
{'animal': 'fish', 'color': 'blue', 'weight': 7.0},
{'animal': 'cat', 'color': 'blue', 'weight': 2.0},
{'animal': 'cat', 'color': 'blue', 'weight': 0.0},
{'animal': 'cat', 'color': 'blue', 'weight': 99.9}]
assert encoder.encoder is None
assert encoder.decoder is None
assert encoder.one_hot_encoder_dicts is None
encoder.load_from_data_stream(data)
assert encoder.encoder is not None
assert encoder.decoder is not None
assert encoder.one_hot_encoder_dicts is not None
def test_load_from_data_encodes_data():
encoder = OneHotEncoder(['animal', 'color'], ['weight'], max_levels_default=100)
data = [{'animal': 'cat', 'color': 'blue', 'weight': 1.0},
{'animal': 'cat', 'color': 'red', 'weight': 3.0},
{'animal': 'dog', 'color': 'yellow', 'weight': 5.5},
{'animal': 'fish', 'color': 'blue', 'weight': 7.0},
{'animal': 'cat', 'color': 'blue', 'weight': 2.0},
{'animal': 'cat', 'color': 'blue', 'weight': 0.0},
{'animal': 'cat', 'color': 'blue', 'weight': 99.9}]
encoder.load_from_data_stream(data)
encoded_data = [encoder.encode_row(row) for row in data]
assert len(encoded_data) == len(data)
assert len(encoded_data[0]) != len(data[0])
def test_load_from_data_encodes_data_correctly():
encoder = OneHotEncoder(['animal', 'color'], ['weight'], max_levels_default=100)
data = [{'animal': 'cat', 'color': 'blue', 'weight': 6.0},
{'animal': 'cat', 'color': 'red', 'weight': 3.0},
{'animal': 'dog', 'color': 'yellow', 'weight': 5.5},
{'animal': 'fish', 'color': 'blue', 'weight': 7.0},
{'animal': 'cat', 'color': 'magenta', 'weight': 2.0},
{'animal': 'mouse', 'color': 'purple', 'weight': 0.0},
{'animal': 'mouse', 'color': 'black', 'weight': 99.9}]
encoder.load_from_data_stream(data)
encoded_data = [encoder.encode_row(row) for row in data]
assert len(encoded_data) == len(data)
assert len(encoded_data[0]) != len(data[0])
first_row = encoded_data[0]
expected = [6.0, # weight is numeric and comes first
1.0, # animal is first categorical and cat is the most common, first row is cat
0.0, # animal, mouse is next most common, not a mouse
0.0, # animal, dog and fish tied for frequency but dog first alphabetically
0.0, # animal, fish, cat is not a fish
1.0, # color is next categorical alphabetically and blue is most common, first row blue
0.0, # black
0.0, # magenta
0.0, # purple
0.0, # red
0.0] # yellow
assert first_row == expected
second_row = encoded_data[1]
expected = [3.0, # weight is numeric and comes first
1.0, # animal is first categorical and cat is the most common, first row is cat
0.0, # animal, mouse is next most common, not a mouse
0.0, # animal, dog and fish tied for frequency but dog first alphabetically
0.0, # animal, fish, cat is not a fish
0.0, # color is next categorical alphabetically and blue is most common, first row blue
0.0, # black next alphabetically for ones with frequency 1
0.0, # magenta next
0.0, # purple
1.0, # red, this is red
0.0] # yellow
assert second_row == expected
last_row = encoded_data[-1]
expected = [99.9, # weight is numeric and comes first
0.0, # animal is first categorical and cat is the most common, first row is cat
1.0, # animal, mouse is next most common, not a mouse
0.0, # animal, dog and fish tied for frequency but dog first alphabetically
0.0, # animal, fish, cat is not a fish
0.0, # color is next categorical alphabetically and blue is most common, first row blue
1.0, # black next alphabetically for ones with frequency 1, this one black
0.0, # magenta next
0.0, # purple
0.0, # red
0.0] # yellow
assert last_row == expected
expected_total = [[6.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0],
[3.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0],
[5.5, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0],
[7.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0],
[2.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0],
[0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
[99.9, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0]]
assert encoded_data == expected_total
def test_save_load():
filename = NamedTemporaryFile().name
encoder = OneHotEncoder(['animal', 'color'], ['weight'], max_levels_default=100)
data = [{'animal': 'cat', 'color': 'blue', 'weight': 6.0},
{'animal': 'cat', 'color': 'red', 'weight': 3.0},
{'animal': 'dog', 'color': 'yellow', 'weight': 5.5},
{'animal': 'fish', 'color': 'blue', 'weight': 7.0},
{'animal': 'cat', 'color': 'magenta', 'weight': 2.0},
{'animal': 'mouse', 'color': 'purple', 'weight': 0.0},
{'animal': 'mouse', 'color': 'black', 'weight': 99.9}]
encoder.load_from_data_stream(data)
encoded_data = encoder.encode_data(data)
encoder.save(filename)
encoder_from_file = OneHotEncoder([], [])
encoder_from_file.load_from_file(filename)
encoded_data_from_file = encoder_from_file.encode_data(data)
assert encoded_data == encoded_data_from_file
def test_inversion():
encoder = OneHotEncoder(['animal', 'color'], ['weight'], max_levels_default=100)
data = [{'animal': 'cat', 'color': 'blue', 'weight': 6.0},
{'animal': 'cat', 'color': 'red', 'weight': 3.0},
{'animal': 'dog', 'color': 'yellow', 'weight': 5.5},
{'animal': 'fish', 'color': 'blue', 'weight': 7.0},
{'animal': 'cat', 'color': 'magenta', 'weight': 2.0},
{'animal': 'mouse', 'color': 'purple', 'weight': 0.0},
{'animal': 'mouse', 'color': 'black', 'weight': 99.9}]
encoder.load_from_data_stream(data)
encoded_data = encoder.encode_data(data)
data_decoded = encoder.decode_data(encoded_data)
assert data_decoded == data
data_recoded = encoder.encode_data(data_decoded)
assert data_recoded == encoded_data
def test_inversion_more_complicated():
encoder = OneHotEncoder(['animal', 'color'], ['weight', 'height'], max_levels_default=100)
data = [{'animal': 'cat', 'color': 'blue', 'weight': 6.0, 'height': 88.9},
{'animal': 'cat', 'color': 'red', 'weight': 3.0, 'height': 44.9},
{'animal': 'dog', 'color': 'yellow', 'weight': 5.5, 'height': 2.5},
{'animal': 'fish', 'color': 'blue', 'weight': 7.0, 'height': 3233.2},
{'animal': 'cat', 'color': 'magenta', 'weight': 2.0, 'height': 666.6},
{'animal': 'mouse', 'color': 'red', 'weight': 0.0, 'height': 55.5},
{'animal': 'mouse', 'color': 'blah', 'weight': 99.9, 'height': 33}]
encoder.load_from_data_stream(data)
encoded_data = encoder.encode_data(data)
data_decoded = encoder.decode_data(encoded_data)
assert data_decoded == data
data_recoded = encoder.encode_data(data_decoded)
assert data_recoded == encoded_data
def test_inversion_more_complicated_with_max_levels():
encoder = OneHotEncoder({'animal': 2 , 'color': 2}, ['weight', 'height'])
data = [{'animal': 'cat', 'color': 'blue', 'weight': 6.0, 'height': 88.9},
{'animal': 'cat', 'color': 'red', 'weight': 3.0, 'height': 44.9},
{'animal': 'dog', 'color': 'yellow', 'weight': 5.5, 'height': 2.5},
{'animal': 'fish', 'color': 'blue', 'weight': 7.0, 'height': 3233.2},
{'animal': 'cat', 'color': 'magenta', 'weight': 2.0, 'height': 666.6},
{'animal': 'mouse', 'color': 'red', 'weight': 0.0, 'height': 55.5},
{'animal': 'mouse', 'color': 'blah', 'weight': 99.9, 'height': 33}]
encoder.load_from_data_stream(data)
encoded_data = encoder.encode_data(data)
data_decoded = encoder.decode_data(encoded_data)
expected = [{'height': 88.9, 'weight': 6.0, 'animal': 'cat', 'color': 'blue'},
{'height': 44.9, 'weight': 3.0, 'animal': 'cat', 'color': 'red'},
{'height': 2.5, 'weight': 5.5, 'color': 'UNKNOWN_CATEGORICAL_LEVEL', 'animal': 'UNKNOWN_CATEGORICAL_LEVEL'},
{'height': 3233.2, 'weight': 7.0, 'color': 'blue', 'animal': 'UNKNOWN_CATEGORICAL_LEVEL'},
{'height': 666.6, 'weight': 2.0, 'animal': 'cat', 'color': 'UNKNOWN_CATEGORICAL_LEVEL'},
{'height': 55.5, 'weight': 0.0, 'animal': 'mouse', 'color': 'red'},
{'height': 33, 'weight': 99.9, 'animal': 'mouse', 'color': 'UNKNOWN_CATEGORICAL_LEVEL'}]
assert data_decoded == expected
def test_inversion_more_complicated_with_max_levels_diff():
encoder = OneHotEncoder({'animal': 2, 'color': 1}, ['weight', 'height'])
data = [{'animal': 'cat', 'color': 'blue', 'weight': 6.0, 'height': 88.9, 'extra_junk': 'blah'},
{'animal': 'cat', 'color': 'red', 'weight': 3.0, 'height': 44.9},
{'animal': 'dog', 'color': 'yellow', 'weight': 5.5, 'height': 2.5},
{'animal': 'fish', 'color': 'blue', 'weight': 7.0, 'height': 3233.2},
{'animal': 'cat', 'color': 'magenta', 'weight': 2.0, 'height': 666.6},
{'animal': 'mouse', 'color': 'red', 'weight': 0.0, 'height': 55.5},
{'animal': 'mouse', 'color': 'blah', 'weight': 99.9, 'height': 33}]
encoder.load_from_data_stream(data)
encoded_data = encoder.encode_data(data)
data_decoded = encoder.decode_data(encoded_data)
expected = [{'height': 88.9, 'weight': 6.0, 'animal': 'cat', 'color': 'blue'},
{'height': 44.9, 'weight': 3.0, 'animal': 'cat', 'color': 'UNKNOWN_CATEGORICAL_LEVEL'},
{'height': 2.5, 'weight': 5.5, 'color': 'UNKNOWN_CATEGORICAL_LEVEL', 'animal': 'UNKNOWN_CATEGORICAL_LEVEL'},
{'height': 3233.2, 'weight': 7.0, 'color': 'blue', 'animal': 'UNKNOWN_CATEGORICAL_LEVEL'},
{'height': 666.6, 'weight': 2.0, 'animal': 'cat', 'color': 'UNKNOWN_CATEGORICAL_LEVEL'},
{'height': 55.5, 'weight': 0.0, 'animal': 'mouse', 'color': 'UNKNOWN_CATEGORICAL_LEVEL'},
{'height': 33, 'weight': 99.9, 'animal': 'mouse', 'color': 'UNKNOWN_CATEGORICAL_LEVEL'}]
assert data_decoded == expected
| 45.862595
| 124
| 0.55967
| 1,599
| 12,016
| 4.075672
| 0.068168
| 0.044806
| 0.044652
| 0.050944
| 0.902409
| 0.857757
| 0.845481
| 0.831671
| 0.79776
| 0.783643
| 0
| 0.059195
| 0.249251
| 12,016
| 261
| 125
| 46.038314
| 0.66323
| 0.102696
| 0
| 0.708333
| 0
| 0
| 0.231857
| 0.027912
| 0
| 0
| 0
| 0
| 0.140625
| 1
| 0.0625
| false
| 0
| 0.010417
| 0
| 0.072917
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a11fd065510e38d5193df1dd94431a7b8c46ea71
| 38
|
py
|
Python
|
doc/java/__init__.py
|
pitmanst/jpype
|
7256261e435b5c9309941c668258bebd1bcdff2d
|
[
"Apache-2.0"
] | 531
|
2018-07-19T03:30:04.000Z
|
2022-03-29T16:52:44.000Z
|
doc/java/__init__.py
|
pitmanst/jpype
|
7256261e435b5c9309941c668258bebd1bcdff2d
|
[
"Apache-2.0"
] | 715
|
2018-07-18T09:21:01.000Z
|
2022-03-24T17:45:49.000Z
|
doc/java/__init__.py
|
pitmanst/jpype
|
7256261e435b5c9309941c668258bebd1bcdff2d
|
[
"Apache-2.0"
] | 80
|
2018-07-18T13:10:55.000Z
|
2022-03-31T19:47:16.000Z
|
from . import lang
from . import util
| 12.666667
| 18
| 0.736842
| 6
| 38
| 4.666667
| 0.666667
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.210526
| 38
| 2
| 19
| 19
| 0.933333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
a170a9af7961dddb108bdb1ad8aae7c4473ecbd3
| 25,646
|
py
|
Python
|
test/test_quantiles.py
|
simonpf/qrnn
|
1de11ce8cede6b4b3de0734bcc8c198c10226188
|
[
"MIT"
] | null | null | null |
test/test_quantiles.py
|
simonpf/qrnn
|
1de11ce8cede6b4b3de0734bcc8c198c10226188
|
[
"MIT"
] | 3
|
2022-01-11T08:41:03.000Z
|
2022-02-11T14:25:09.000Z
|
test/test_quantiles.py
|
adriaat/quantnn
|
5248c240b931fa113120e3564605638095e5278f
|
[
"MIT"
] | 5
|
2020-12-11T03:18:32.000Z
|
2022-02-14T10:32:09.000Z
|
"""
Tests for the quantnn.quantiles module.
"""
import einops as eo
import numpy as np
import pytest
from quantnn.generic import (sample_uniform,
to_array,
arange,
reshape,
concatenate)
from quantnn.a_priori import LookupTable
from quantnn.quantiles import (cdf, pdf, pdf_binned, posterior_mean, crps,
probability_less_than,
probability_larger_than,
sample_posterior,
sample_posterior_gaussian,
quantile_loss,
posterior_quantiles,
correct_a_priori,
posterior_maximum)
@pytest.mark.parametrize("xp", pytest.backends)
def test_cdf(xp):
"""
Tests the calculation of the pdf for different shapes of input
arrays.
"""
#
# 1D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = arange(xp, 1.0, 9.1, 1.0)
x_cdf, y_cdf = cdf(y_pred, quantiles)
assert np.all(np.isclose(x_cdf[0], -xp.ones_like(x_cdf[0])))
assert np.all(np.isclose(x_cdf[-1], 11.0 * xp.ones_like(x_cdf[-1])))
#
# 2D predictions
#
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> w q', w=10)
x_cdf, y_cdf = cdf(y_pred, quantiles)
assert np.all(np.isclose(x_cdf[:, 0], -xp.ones_like(x_cdf[:, 0])))
assert np.all(np.isclose(x_cdf[:, -1], 11.0 * xp.ones_like(x_cdf[:, -1])))
#
# 3D predictions, quantiles along last axis
#
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h w q', h=10, w=10)
x_cdf, y_cdf = cdf(y_pred, quantiles, quantile_axis=-1)
assert np.all(np.isclose(x_cdf[:, :, 0], -xp.ones_like(x_cdf[:, :, 0])))
assert np.all(np.isclose(x_cdf[:, :, -1], 11.0 * xp.ones_like(x_cdf[:, :, -1])))
#
# 3D predictions, quantiles along first axis
#
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h q w', h=10, w=10)
x_cdf, y_cdf = cdf(y_pred, quantiles, quantile_axis=1)
assert np.all(np.isclose(x_cdf[:, 0, :], -xp.ones_like(x_cdf[:, 0, :])))
assert np.all(np.isclose(x_cdf[:, -1, :], 11.0 * xp.ones_like(x_cdf[:, -1, :])))
@pytest.mark.parametrize("xp", pytest.backends)
def test_pdf(xp):
"""
Tests the calculation of the pdf for different shapes of input
arrays.
"""
#
# 1D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = arange(xp, 1.0, 9.1, 1.0)
x_pdf, y_pdf = pdf(y_pred, quantiles)
assert np.all(np.isclose(x_pdf[2:-2], arange(xp, 1.5, 8.6, 1.0)))
assert np.all(np.isclose(y_pdf[0], xp.zeros_like(y_pdf[0])))
assert np.all(np.isclose(y_pdf[-1], xp.zeros_like(y_pdf[-1])))
assert np.all(np.isclose(y_pdf[2:-2], 0.1 * xp.ones_like(y_pdf[2:-2])))
#
# 2D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> w q', w=10)
x_pdf, y_pdf = pdf(y_pred, quantiles)
assert np.all(np.isclose(x_pdf[:, 2:-2],
reshape(xp, arange(xp, 1.5, 8.6, 1.0), (1, -1))))
assert np.all(np.isclose(y_pdf[:, 0], xp.zeros_like(y_pdf[:, 0])))
assert np.all(np.isclose(y_pdf[:, -1], xp.zeros_like(y_pdf[:, -1])))
assert np.all(np.isclose(y_pdf[:, 2:-2], 0.1 * xp.ones_like(y_pdf[:, 2:-2])))
#
# 3D predictions, quantiles along last axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h w q', h=10, w=10)
x_pdf, y_pdf = pdf(y_pred, quantiles, quantile_axis=-1)
assert np.all(np.isclose(x_pdf[:, :, 2:-2],
reshape(xp, arange(xp, 1.5, 8.6, 1.0), (1, 1, -1))))
assert np.all(np.isclose(y_pdf[:, :, 0], xp.zeros_like(y_pdf[:, :, 0])))
assert np.all(np.isclose(y_pdf[:, :, -1], xp.zeros_like(y_pdf[:, :, -1])))
assert np.all(np.isclose(y_pdf[:, :, 2:-2], 0.1 * xp.ones_like(y_pdf[:, :, 2:-2])))
#
# 3D predictions, quantiles along first axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h q w', h=10, w=10)
x_pdf, y_pdf = pdf(y_pred, quantiles, quantile_axis=1)
assert np.all(np.isclose(x_pdf[:, 2:-2, :],
reshape(xp, arange(xp, 1.5, 8.6, 1.0), (1, -1, 1))))
assert np.all(np.isclose(y_pdf[:, 0, :], xp.zeros_like(y_pdf[:, 0, :])))
assert np.all(np.isclose(y_pdf[:, -1, :], xp.zeros_like(y_pdf[:, -1, :])))
assert np.all(np.isclose(y_pdf[:, 2:-2, :], 0.1 * xp.ones_like(y_pdf[:, 2:-2, :])))
@pytest.mark.parametrize("xp", pytest.backends)
def test_pdf_binned(xp):
"""
Tests the calculation of the pdf for different shapes of input
arrays.
"""
#
# 1D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = arange(xp, 1.0, 9.1, 1.0)
bins = arange(xp, 1.0, 9.01, 0.1)
y_pdf_binned = pdf_binned(y_pred, quantiles, bins)
assert np.all(np.isclose(y_pdf_binned, 0.1, 1e-3))
# Test extrapolation left
bins = arange(xp, -2.0, -1.0, 0.1)
y_pdf_binned = pdf_binned(y_pred, quantiles, bins)
assert np.all(np.isclose(y_pdf_binned, 0.0, 1e-3))
# Test extrapolation right
bins = arange(xp, 11.1, 12.0, 0.1)
y_pdf_binned = pdf_binned(y_pred, quantiles, bins)
assert np.all(np.isclose(y_pdf_binned, 0.0, 1e-3))
#
# 2D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> w q', w=10)
bins = arange(xp, 1.0, 9.01, 0.1)
y_pdf_binned = pdf_binned(y_pred, quantiles, bins)
assert np.all(np.isclose(y_pdf_binned, 0.1, 1e-3))
# Test extrapolation left
bins = arange(xp, -2.0, -1.0, 0.1)
y_pdf_binned = pdf_binned(y_pred, quantiles, bins)
assert np.all(np.isclose(y_pdf_binned, 0.0, 1e-3))
# Test extrapolation right
bins = arange(xp, 11.1, 12.0, 0.1)
y_pdf_binned = pdf_binned(y_pred, quantiles, bins)
assert np.all(np.isclose(y_pdf_binned, 0.0, 1e-3))
#
# 3D predictions, quantiles along last axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h w q', h=10, w=10)
bins = arange(xp, 1.0, 9.01, 0.1)
y_pdf_binned = pdf_binned(y_pred, quantiles, bins, quantile_axis=-1)
assert np.all(np.isclose(y_pdf_binned, 0.1, 1e-3))
# Test extrapolation left
bins = arange(xp, -2.0, -1.0, 0.1)
y_pdf_binned = pdf_binned(y_pred, quantiles, bins, quantile_axis=-1)
assert np.all(np.isclose(y_pdf_binned, 0.0, 1e-3))
# Test extrapolation right
bins = arange(xp, 11.1, 12.0, 0.1)
y_pdf_binned = pdf_binned(y_pred, quantiles, bins, quantile_axis=-1)
assert np.all(np.isclose(y_pdf_binned, 0.0, 1e-3))
#
# 3D predictions, quantiles along first axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> q h w', h=10, w=10)
bins = arange(xp, 1.0, 9.01, 0.1)
y_pdf_binned = pdf_binned(y_pred, quantiles, bins, quantile_axis=0)
assert np.all(np.isclose(y_pdf_binned, 0.1, 1e-3))
# Test extrapolation left
bins = arange(xp, -2.0, -1.0, 0.1)
y_pdf_binned = pdf_binned(y_pred, quantiles, bins, quantile_axis=0)
assert np.all(np.isclose(y_pdf_binned, 0.0, 1e-3))
# Test extrapolation right
bins = arange(xp, 11.1, 12.0, 0.1)
y_pdf_binned = pdf_binned(y_pred, quantiles, bins, quantile_axis=0)
assert np.all(np.isclose(y_pdf_binned, 0.0, 1e-3))
@pytest.mark.parametrize("xp", pytest.backends)
def test_posterior_mean(xp):
"""
Tests the calculation of the posterior mean for different shapes of
input arrays.
"""
#
# 1D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = arange(xp, 1.0, 9.1, 1.0)
means = posterior_mean(y_pred, quantiles)
assert np.all(np.isclose(means, 5.0 * xp.ones_like(means)))
#
# 2D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> w q', w=10)
means = posterior_mean(y_pred, quantiles)
assert np.all(np.isclose(means, 5.0 * xp.ones_like(means)))
#
# 3D predictions, quantiles along last axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h w q', h=10, w=10)
means = posterior_mean(y_pred, quantiles, quantile_axis=-1)
assert np.all(np.isclose(means, 5.0 * xp.ones_like(means)))
#
# 3D predictions, quantiles along first axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h q w', h=10, w=10)
means = posterior_mean(y_pred, quantiles, quantile_axis=1)
assert np.all(np.isclose(means, 5.0 * xp.ones_like(means)))
@pytest.mark.parametrize("xp", pytest.backends)
def test_crps(xp):
"""
Tests the calculation of the CRPS for different shapes of input
arrays.
"""
#
# 1D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = arange(xp, 1.0, 9.1, 1.0)
scores = crps(y_pred, 4.9, quantiles,)
assert np.all(np.isclose(scores, 0.86 * xp.ones_like(scores)))
#
# 2D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> w q', w=2)
y_true = 4.9 * xp.ones(2)
scores = crps(y_pred, y_true, quantiles)
assert np.all(np.isclose(scores, 0.86 * xp.ones_like(scores)))
##
## 3D predictions, quantiles along last axis
##
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h w q', w=10, h=10)
y_true = 4.9 * xp.ones((10, 10))
scores = crps(y_pred, y_true, quantiles, quantile_axis=2)
assert np.all(np.isclose(scores, 0.86 * xp.ones_like(scores)))
##
## 3D predictions, quantiles along first axis
##
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h q w', w=10, h=10)
y_true = 4.9 * xp.ones((10, 10))
scores = crps(y_pred, y_true, quantiles, quantile_axis=1)
assert np.all(np.isclose(scores, 0.86 * xp.ones_like(scores)))
@pytest.mark.parametrize("xp", pytest.backends)
def test_probability_less_than(xp):
"""
Tests predicting the probability that the true value is lower
than a given threshold.
"""
#
# 1D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = arange(xp, 1.0, 9.1, 1.0)
t = 1.0 + 8.0 * np.random.rand()
probability = probability_less_than(y_pred, quantiles, t)
assert np.all(np.isclose(probability, 0.1 * t * xp.ones_like(probability)))
#
# 2D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> w q', w=10)
t = 1.0 + 8.0 * np.random.rand()
probability = probability_less_than(y_pred, quantiles, t)
assert np.all(np.isclose(probability, 0.1 * t * xp.ones_like(probability)))
#
# 3D predictions, quantiles along last axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h w q', h=10, w=10)
t = 1.0 + 8.0 * np.random.rand()
probability = probability_less_than(y_pred, quantiles, t, quantile_axis=2)
assert np.all(np.isclose(probability, 0.1 * t * xp.ones_like(probability)))
#
# 3D predictions, quantiles along first axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h q w', h=10, w=10)
t = 1.0 + 8.0 * np.random.rand()
probability = probability_less_than(y_pred, quantiles, t, quantile_axis=1)
assert np.all(np.isclose(probability, 0.1 * t * xp.ones_like(probability)))
@pytest.mark.parametrize("xp", pytest.backends)
def test_probability_larger_than(xp):
"""
Tests predicting the probability that the true value is larger
than a given threshold.
"""
#
# 1D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = arange(xp, 1.0, 9.1, 1.0)
t = 1.0 + 8.0 * np.random.rand()
probability = probability_larger_than(y_pred, quantiles, t)
assert np.all(np.isclose(probability, 1.0 - 0.1 * t * xp.ones_like(probability)))
#
# 2D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> w q', w=10)
t = 1.0 + 8.0 * np.random.rand()
probability = probability_larger_than(y_pred, quantiles, t)
assert np.all(np.isclose(probability, 1.0 - 0.1 * t * xp.ones_like(probability)))
#
# 3D predictions, quantiles along last axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h w q', h=10, w=10)
t = 1.0 + 8.0 * np.random.rand()
probability = probability_larger_than(y_pred, quantiles, t, quantile_axis=2)
assert np.all(np.isclose(probability, 1.0 - 0.1 * t * xp.ones_like(probability)))
#
# 3D predictions, quantiles along first axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h q w', h=10, w=10)
t = 1.0 + 8.0 * np.random.rand()
probability = probability_larger_than(y_pred, quantiles, t, quantile_axis=1)
assert np.all(np.isclose(probability, 1.0 - 0.1 * t * xp.ones_like(probability)))
@pytest.mark.parametrize("xp", pytest.backends)
def test_sample_posterior(xp):
"""
Tests sampling from the posterior by interpolation of inverse CDF.
"""
#
# 1D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = arange(xp, 1.0, 9.1, 1.0)
samples = sample_posterior(y_pred, quantiles, n_samples=10000)
assert np.all(np.isclose(samples.mean(),
5.0 * xp.ones_like(samples.mean()),
1e-1))
#
# 2D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> w q', w=10)
samples = sample_posterior(y_pred, quantiles, n_samples=10000)
assert np.all(np.isclose(samples.mean(),
5.0 * xp.ones_like(samples.mean()),
1e-1))
#
# 3D predictions, quantiles along last axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h w q', h=10, w=10)
samples = sample_posterior(y_pred, quantiles, n_samples=1000,
quantile_axis=2)
assert np.all(np.isclose(samples.mean(),
5.0 * xp.ones_like(samples.mean()),
1e-1))
#
# 3D predictions, quantiles along first axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h q w', h=10, w=10)
samples = sample_posterior(y_pred, quantiles, n_samples=1000,
quantile_axis=1)
assert np.all(np.isclose(samples.mean(),
5.0 * xp.ones_like(samples.mean()),
1e-1))
@pytest.mark.parametrize("xp", pytest.backends)
def test_sample_posterior_gaussian(xp):
"""
Tests sampling from the posterior by fitting a Gaussian.
"""
#
# 1D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = arange(xp, 1.0, 9.1, 1.0)
samples = sample_posterior_gaussian(y_pred, quantiles, n_samples=10000)
assert np.all(np.isclose(samples.mean(),
5.0 * xp.ones_like(samples.mean()),
1e-1))
#
# 2D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> w q', w=10)
samples = sample_posterior_gaussian(y_pred, quantiles, n_samples=10000)
assert np.all(np.isclose(samples.mean(),
5.0 * xp.ones_like(samples.mean()),
1e-1))
#
# 3D predictions, quantiles along last axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h w q', h=10, w=10)
samples = sample_posterior_gaussian(y_pred, quantiles, n_samples=1000,
quantile_axis=2)
assert np.all(np.isclose(samples.mean(),
5.0 * xp.ones_like(samples.mean()),
1e-1))
#
# 3D predictions, quantiles along first axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h q w', h=10, w=10)
samples = sample_posterior_gaussian(y_pred, quantiles, n_samples=1000,
quantile_axis=1)
assert np.all(np.isclose(samples.mean(),
5.0 * xp.ones_like(samples.mean()),
1e-1))
@pytest.mark.parametrize("xp", pytest.backends)
def test_quantile_loss(xp):
"""
Tests calculation of the quantile loss function.
"""
#
# 1D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = arange(xp, 1.0, 9.1, 1.0)
y_true = to_array(xp, [5.0])
loss = quantile_loss(y_pred, quantiles, y_true)
assert np.isclose(loss.mean(), to_array(xp, [0.444444]))
#
# 2D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> w q', w=10)
y_true = eo.repeat(to_array(xp, [5.0]), 'q -> w q', w=10)
loss = quantile_loss(y_pred, quantiles, y_true)
assert np.isclose(loss.mean(), to_array(xp, [0.444444]))
#
# 3D predictions, quantiles along last axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h w q', h=10, w=10)
y_true = eo.repeat(to_array(xp, [5.0]), 'q -> h w q', h=10, w=10)
loss = quantile_loss(y_pred, quantiles, y_true, quantile_axis=-1)
assert np.isclose(loss.mean(), to_array(xp, [0.444444]))
#
# 3D predictions, quantiles along first axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h q w', h=10, w=10)
y_true = eo.repeat(to_array(xp, [5.0]), 'q -> h q w', h=10, w=10)
loss = quantile_loss(y_pred, quantiles, y_true, quantile_axis=1)
assert np.isclose(loss.mean(), to_array(xp, [0.444444]))
@pytest.mark.parametrize("xp", pytest.backends)
def test_posterior_quantiles(xp):
"""
Test interpolation of posterior quantiles.
"""
#
# 1D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
new_quantiles = quantiles[:-1] + 0.05
y_pred = arange(xp, 1.0, 9.1, 1.0)
y_q = posterior_quantiles(y_pred, quantiles, quantiles)
assert np.all(np.isclose(y_pred, y_q))
y_q = posterior_quantiles(y_pred, quantiles, new_quantiles)
y_pred_i = 0.5 * (y_pred[1:] + y_pred[:-1])
assert np.all(np.isclose(y_pred_i, y_q))
new_quantiles = to_array(xp, [0.0])
y_q = posterior_quantiles(y_pred, quantiles, new_quantiles)
assert np.all(np.isclose(y_pred[0], y_q))
new_quantiles = to_array(xp, [10.0])
y_q = posterior_quantiles(y_pred, quantiles, new_quantiles)
assert np.all(np.isclose(y_pred[-1], y_q))
#
# 2D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
new_quantiles = quantiles[:-1] + 0.05
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> w q', w=10)
y_q = posterior_quantiles(y_pred, quantiles, quantiles)
assert np.all(np.isclose(y_pred, y_q))
y_q = posterior_quantiles(y_pred, quantiles, new_quantiles)
y_pred_i = 0.5 * (y_pred[:, 1:] + y_pred[:, :-1])
assert np.all(np.isclose(y_pred_i, y_q))
new_quantiles = to_array(xp, [0.0])
y_q = posterior_quantiles(y_pred, quantiles, new_quantiles)
assert np.all(np.isclose(y_pred[:, 0], y_q))
new_quantiles = to_array(xp, [10.0])
y_q = posterior_quantiles(y_pred, quantiles, new_quantiles)
assert np.all(np.isclose(y_pred[:, -1], y_q))
#
# 3D predictions, quantiles along last axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
new_quantiles = quantiles[:-1] + 0.05
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h w q', h=10, w=10)
y_q = posterior_quantiles(y_pred, quantiles, quantiles,
quantile_axis=2)
assert np.all(np.isclose(y_pred, y_q))
y_q = posterior_quantiles(y_pred, quantiles, new_quantiles,
quantile_axis=2)
y_pred_i = 0.5 * (y_pred[:, :, 1:] + y_pred[:, :, :-1])
assert np.all(np.isclose(y_pred_i, y_q))
new_quantiles = to_array(xp, [0.0])
y_q = posterior_quantiles(y_pred, quantiles, new_quantiles,
quantile_axis=2)
assert np.all(np.isclose(y_pred[:, :, 0], y_q))
new_quantiles = to_array(xp, [10.0])
y_q = posterior_quantiles(y_pred, quantiles, new_quantiles,
quantile_axis=2)
assert np.all(np.isclose(y_pred[:, :, -1], y_q))
#
# 3D predictions, quantiles along first axis
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
new_quantiles = quantiles[:-1] + 0.05
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h q w', h=10, w=10)
y_q = posterior_quantiles(y_pred, quantiles, quantiles,
quantile_axis=1)
assert np.all(np.isclose(y_pred, y_q))
y_q = posterior_quantiles(y_pred, quantiles, new_quantiles,
quantile_axis=1)
y_pred_i = 0.5 * (y_pred[:, 1:, :] + y_pred[:, :-1, :])
assert np.all(np.isclose(y_pred_i, y_q))
new_quantiles = to_array(xp, [0.0])
y_q = posterior_quantiles(y_pred, quantiles, new_quantiles,
quantile_axis=1)
assert np.all(np.isclose(y_pred[:, 0, :], y_q))
new_quantiles = to_array(xp, [10.0])
y_q = posterior_quantiles(y_pred, quantiles, new_quantiles,
quantile_axis=1)
assert np.all(np.isclose(y_pred[:, -1, :], y_q))
@pytest.mark.parametrize("xp", pytest.backends)
def test_correct_a_priori(xp):
"""
Test correcting for a priori.
"""
r_x = to_array(xp, [-1, 4.99, 5.01, 10])
r_y = to_array(xp, [1, 1, 1, 1])
r = LookupTable(r_x, r_y)
#
# 1D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = arange(xp, 1.0, 9.1, 1.0)
y_pred_new = correct_a_priori(y_pred, quantiles, r)
assert np.isclose(y_pred_new[0], y_pred[0])
assert np.isclose(y_pred_new[-1], y_pred[-1])
#
# 2D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h q', h=10)
r_x = to_array(xp, [-1, 4.99, 5.01, 10])
r_y = to_array(xp, [1, 1, 1, 1])
y_pred_new = correct_a_priori(y_pred, quantiles, r)
assert np.isclose(y_pred_new[0, 0], y_pred[0, 0])
assert np.isclose(y_pred_new[-1, -1], y_pred[-1, -1])
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> q h', h=10)
r_x = to_array(xp, [-1, 4.99, 5.01, 10])
r_y = to_array(xp, [1, 1, 1, 1])
y_pred_new = correct_a_priori(y_pred, quantiles, r, quantile_axis=0)
assert np.isclose(y_pred_new[0, 0], y_pred[0, 0])
assert np.isclose(y_pred_new[-1, -1], y_pred[-1, -1])
#
# 2D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> h q w', h=10, w=10)
r_x = to_array(xp, [-1, 4.99, 5.01, 10])
r_y = to_array(xp, [1, 1, 1, 1])
y_pred_new = correct_a_priori(y_pred, quantiles, r)
assert np.isclose(y_pred_new[0, 0, 0], y_pred[0, 0, 0])
assert np.isclose(y_pred_new[-1, -1, -1], y_pred[-1, -1, -1])
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(arange(xp, 1.0, 9.1, 1.0), 'q -> w h q', h=10, w=10)
r_x = to_array(xp, [-1, 4.99, 5.01, 10])
r_y = to_array(xp, [1, 1, 1, 1])
y_pred_new = correct_a_priori(y_pred, quantiles, r, quantile_axis=-1)
assert np.isclose(y_pred_new[0, 0, 0], y_pred[0, 0, 0])
assert np.isclose(y_pred_new[-1, -1, -1], y_pred[-1, -1, -1])
@pytest.mark.parametrize("xp", pytest.backends)
def test_posterior_maximum(xp):
"""
Test calculation of posterior maximum
"""
#
# 1D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = [
arange(xp, 2.0, 4.1, 1.0),
arange(xp, 4.4, 4.51, 0.1),
arange(xp, 5.0, 8.1, 1.0)
]
y_pred = concatenate(xp, y_pred, 0)
pm = posterior_maximum(y_pred, quantiles)
assert np.isclose(pm, 4.45)
#
# 2D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = eo.repeat(y_pred, 'q -> h q', h=10)
pm = posterior_maximum(y_pred, quantiles)
assert np.isclose(pm[0], 4.45)
#
# 3D predictions
#
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = [
arange(xp, 2.0, 4.1, 1.0),
arange(xp, 4.4, 4.51, 0.1),
arange(xp, 5.0, 8.1, 1.0)
]
y_pred = concatenate(xp, y_pred, 0)
y_pred = eo.repeat(y_pred, 'q -> h q w', h=10, w=10)
pm = posterior_maximum(y_pred, quantiles)
assert np.isclose(pm[0, 0], 4.45)
quantiles = arange(xp, 0.1, 0.91, 0.1)
y_pred = [
arange(xp, 2.0, 4.1, 1.0),
arange(xp, 4.4, 4.51, 0.1),
arange(xp, 5.0, 8.1, 1.0)
]
y_pred = concatenate(xp, y_pred, 0)
y_pred = eo.repeat(y_pred, 'q -> h w q', h=10, w=10)
pm = posterior_maximum(y_pred, quantiles, quantile_axis=-1)
assert np.isclose(pm[0, 0], 4.45)
| 32.837388
| 87
| 0.581845
| 4,369
| 25,646
| 3.269398
| 0.02884
| 0.066508
| 0.058527
| 0.069168
| 0.948544
| 0.947564
| 0.942803
| 0.936082
| 0.921171
| 0.897788
| 0
| 0.080852
| 0.251033
| 25,646
| 780
| 88
| 32.879487
| 0.662797
| 0.094167
| 0
| 0.730769
| 0
| 0
| 0.018654
| 0
| 0
| 0
| 0
| 0
| 0.225962
| 1
| 0.03125
| false
| 0
| 0.014423
| 0
| 0.045673
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a1addc6308c79ce671cee097c4c0cac7ac65ed2f
| 561
|
py
|
Python
|
clonest1ck-python3/1dec.py
|
joelfak/advent_of_code_2019
|
d5031078c53c181835b4bf86458b360542f0122e
|
[
"Apache-2.0"
] | 9
|
2019-12-01T14:52:40.000Z
|
2020-12-16T14:24:19.000Z
|
clonest1ck-python3/1dec.py
|
joelfak/advent_of_code_2019
|
d5031078c53c181835b4bf86458b360542f0122e
|
[
"Apache-2.0"
] | null | null | null |
clonest1ck-python3/1dec.py
|
joelfak/advent_of_code_2019
|
d5031078c53c181835b4bf86458b360542f0122e
|
[
"Apache-2.0"
] | 51
|
2019-11-26T14:49:05.000Z
|
2021-12-01T20:53:41.000Z
|
file_content = open("1dec-input", 'r')
fuel = 0
for line in file_content:
mass = int(line)
unit_fuel = (mass - (mass % 3)) / 3 - 2
fuel += unit_fuel
print("Fuel needed step 1: %d" % fuel)
file_content.close()
file_content = open("1dec-input", 'r')
fuel = 0
for line in file_content:
mass = int(line)
unit_fuel = (mass - (mass % 3)) / 3 - 2
fuel += unit_fuel
while(unit_fuel > 8):
unit_fuel = (unit_fuel - (unit_fuel % 3)) / 3 - 2
fuel += unit_fuel
print("Fuel needed step 2: %d" % fuel)
file_content.close()
| 19.344828
| 57
| 0.595365
| 88
| 561
| 3.625
| 0.272727
| 0.225705
| 0.188088
| 0.065831
| 0.874608
| 0.742947
| 0.742947
| 0.742947
| 0.742947
| 0.742947
| 0
| 0.038186
| 0.253119
| 561
| 28
| 58
| 20.035714
| 0.72315
| 0
| 0
| 0.789474
| 0
| 0
| 0.117647
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.105263
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
a1fbdc5e3257b2a61d000c9611b102f13efbd6e0
| 163,710
|
py
|
Python
|
telas.py
|
HD13sel/KLT_Payment_App
|
d78277daf902bff8853e2b1a7379f1ac58e8e831
|
[
"MIT"
] | null | null | null |
telas.py
|
HD13sel/KLT_Payment_App
|
d78277daf902bff8853e2b1a7379f1ac58e8e831
|
[
"MIT"
] | null | null | null |
telas.py
|
HD13sel/KLT_Payment_App
|
d78277daf902bff8853e2b1a7379f1ac58e8e831
|
[
"MIT"
] | null | null | null |
from kivy.uix.screenmanager import ScreenManager, Screen
from popups import *
from kivy.uix.textinput import TextInput
from kivy.properties import StringProperty
from kivy.properties import ColorProperty
from kivy.app import App
from kivy.uix.label import Label
# Cada página chama a classe Screen contendo as propriedades dela.
# Página principal, onde os carrinhos são selecionados.
class PrincipalPage(Screen):
pass
# Páginas de seleção de lados. Cada número (SelecLadoXPage) refere-se ao carrinho.
class SelecLado1Page(Screen):
pass
class SelecLado2Page(Screen):
pass
class SelecLado3Page(Screen):
pass
class SelecLado4Page(Screen):
pass
class SelecLado5Page(Screen):
pass
# Página de seleção de andares onde cada andar contém seu lado esquerdo e direito e seu número de carrinho.
class SelecAndar1DirPage(Screen):
pass
class SelecAndar1EsqPage(Screen):
pass
class SelecAndar2DirPage(Screen):
pass
class SelecAndar2EsqPage(Screen):
pass
class SelecAndar3DirPage(Screen):
pass
class SelecAndar3EsqPage(Screen):
pass
class SelecAndar4DirPage(Screen):
pass
class SelecAndar4EsqPage(Screen):
pass
class SelecAndar5DirPage(Screen):
pass
class SelecAndar5EsqPage(Screen):
pass
# Página de seleção das posições, contendo vários métodos para gravação e abertura do pop-up de seleção de endereço.
# PS: São várias páginas, referente a cada andar, totalizando 5 em cada lado, 10 em cada carrinho, 50 no total.
# Cada texto da posição (texto_a, texto_b, ...) é uma propriedade String da biblioteca Kivy (StringProperty).
# Com isso a propriedade text no arquivo .kv pode ser modificada.
# As funções de btn_a até btn_d fazem para abrir o pop-up de seleção de endereço
# As funções de label_a até label_d servem para pegar o endereço específico no pop-up e gravar na página.
# A função botao_ir serve para abrir o pop-up de confirmação e ir para as rotas.
class SelecPosicao1EsqA1Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao1DirA1Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao1EsqA2Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao1DirA2Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao1EsqA3Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao1DirA3Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao1EsqA4Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao1DirA4Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao1EsqA5Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao1DirA5Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao2EsqA1Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao2DirA1Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao2EsqA2Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao2DirA2Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao2EsqA3Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao2DirA3Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao2EsqA4Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao2DirA4Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao2EsqA5Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao2DirA5Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao3EsqA1Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao3DirA1Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao3EsqA2Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao3DirA2Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao3EsqA3Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao3DirA3Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao3EsqA4Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao3DirA4Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao3EsqA5Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao3DirA5Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao4EsqA1Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao4DirA1Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao4EsqA2Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao4DirA2Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao4EsqA3Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao4DirA3Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao4EsqA4Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao4DirA4Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao4EsqA5Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao4DirA5Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao5EsqA1Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao5DirA1Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao5EsqA2Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao5DirA2Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao5EsqA3Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao5DirA3Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao5EsqA4Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao5DirA4Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao5EsqA5Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
class SelecPosicao5DirA5Page(Screen):
texto_a = StringProperty('...')
texto_b = StringProperty('...')
texto_c = StringProperty('...')
texto_d = StringProperty('...')
# A
def btn_a(self):
SelLocalRegiao().open()
def label_a(self, texto):
self.texto_a = texto
# B
def btn_b(self):
SelLocalRegiao().open()
def label_b(self, texto):
self.texto_b = texto
# C
def btn_c(self):
SelLocalRegiao().open()
def label_c(self, texto):
self.texto_c = texto
# D
def btn_d(self):
SelLocalRegiao().open()
def label_d(self, texto):
self.texto_d = texto
def botao_ir(self):
popup = Confirmar()
popup.open()
# Página de escolha das rotas
# A função voltar_botao vai abrir um pop-up para confirmação para voltar sendo assim resetando os dados para padrão.
class EscolhaRotaPage(Screen):
def voltar_botao(self):
popup = Voltar()
popup.open()
# Página de escolha das paradas em cada rota, conténdo métodos para separação de setores especificos
# Cada parada deixará os checks padrão em todos os carrinhos
# E após isso foi separado em uma lista (setores) especificando cada setor naquela parada
# A função parada_sel receberá qual parada está, referência do botão selecionado na rota.
# Se a parada é igual, os setores serão alterados e com esses setores pegarão os endereços que foram apontados nas
# páginas de seleção e colocar o check verde em sua posição específica.
# Utilizei as estruturas de repetição para percorrer em cada página de resultado e chamando o método mudar_cor().
class Rota01Page(Screen):
def parada_sel(self, parada):
app = App.get_running_app()
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].cor_padrao()
app.root.ids[f'resladoesq{c}page'].cor_padrao()
app.root.ids[f'resseleclado{c}page'].padrao()
app.root.ids[f'rescarrinhopage'].padrao()
if parada.split(' ')[1] == 'P01':
setores = ['R01 C81MS090', 'R01 C81PA070', 'R01 C81MS070']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P02':
setores = ['R01 C81MS060', 'R01 C81PA110', 'R01 C81MS050', 'R01 C81PA020']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P03':
setores = ['R01 C81MS040', 'R01 C81MS030']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P04':
setores = ['R01 C81MS020', 'R01 C81PA120']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P05':
setores = ['R01 C81MS010', 'R01 C81PA010', 'R01 C81PA130']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
class Rota0302Page(Screen):
def parada_sel(self, parada):
app = App.get_running_app()
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].cor_padrao()
app.root.ids[f'resladoesq{c}page'].cor_padrao()
app.root.ids[f'resseleclado{c}page'].padrao()
app.root.ids[f'rescarrinhopage'].padrao()
if parada.split(' ')[1] == 'P01':
setores = ['R03 C81FL120', 'R03 C81FL110', 'R03 C81FL210',
'R03 C81FL220', 'R03 C81PA050']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P02':
setores = ['R03 C81FL260', 'R03 C81PA030', 'R03 C81FL250',
'R03 C81FL240', 'R03 C81PA080']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P03':
setores = ['R03 C81FL230', 'R03 C81PA090']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P04':
setores = ['R03 C81FL310', 'R02 C81FL310', 'R03 C81PA060',
'R03 C81PA040', 'R03 C81FL320', 'R02 C81FL320']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P05':
setores = ['R02 C81FL320', 'R03 C81PA100', 'R02 C81FL310']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
class Rota04Page(Screen):
def parada_sel(self, parada):
app = App.get_running_app()
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].cor_padrao()
app.root.ids[f'resladoesq{c}page'].cor_padrao()
app.root.ids[f'resseleclado{c}page'].padrao()
app.root.ids[f'rescarrinhopage'].padrao()
if parada.split(' ')[1] == 'P01':
setores = ['R04 C81FL120', 'R04 C81FL110', 'R04 C81PA030',
'R04 C82PA110']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P02':
setores = ['R04 C82PA070', 'R04 C81PA090']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P03':
setores = ['R04 C81PA060', 'R04 C82PA040']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P04':
setores = ['R04 C81FL330', 'R04 C81PA100', 'R04 C81PA040']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P05':
setores = ['R04 C82PA120', 'R04 C82PA100', 'R04 C82FL240',
'R04 C82FL230', 'R04 C82FL220']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
class Rota05Page(Screen):
def parada_sel(self, parada):
app = App.get_running_app()
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].cor_padrao()
app.root.ids[f'resladoesq{c}page'].cor_padrao()
app.root.ids[f'resseleclado{c}page'].padrao()
app.root.ids[f'rescarrinhopage'].padrao()
if parada.split(' ')[1] == 'P01':
setores = ['R05 C82PA120', 'R05 C82PA100', 'R05 C82FL240',
'R05 C82FL230', 'R05 C82FL220', 'R05 C82FL210', 'R05 C82MS080']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P02':
setores = ['R05 C82MS050', 'R05 C82PA130']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P03':
setores = ['R05 C82PA050', 'R05 C82MS040']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P04':
setores = ['R05 C82MS030', 'R05 C82MS020', 'R05 C82PA080', 'R05 C82MS010']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P05':
setores = ['R05 C82MS005', 'R05 C82PA010', 'R05 C82PA060', 'R05 C82PA020']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
class Rota0607Page(Screen):
def parada_sel(self, parada):
app = App.get_running_app()
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].cor_padrao()
app.root.ids[f'resladoesq{c}page'].cor_padrao()
app.root.ids[f'resseleclado{c}page'].padrao()
app.root.ids[f'rescarrinhopage'].padrao()
if parada.split(' ')[1] == 'P01':
setores = ['R06 C82MS005', 'R06 C82PA010', 'R06 C82PA030',
'R06 C82PA090', 'OUT G08', 'OUT PINTURA']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
elif parada.split(' ')[1] == 'P02':
setores = ['R06 C82MS010', 'R06 C82FL110']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
elif parada.split(' ')[1] == 'P03':
setores = ['R06 C82MS030', 'R06 C82MS040', 'R06 C82FL130',
'R07 C82FL110', 'R07 C82FL130']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
elif parada.split(' ')[1] == 'P04':
setores = ['R06 C82MS050', 'R06 C82FL120']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
elif parada.split(' ')[1] == 'P05':
setores = ['R06 C82MS080', 'R06 C82MS090']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
class Rota08Page(Screen):
def parada_sel(self, parada):
app = App.get_running_app()
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].cor_padrao()
app.root.ids[f'resladoesq{c}page'].cor_padrao()
app.root.ids[f'resseleclado{c}page'].padrao()
app.root.ids[f'rescarrinhopage'].padrao()
if parada.split(' ')[1] == 'P01':
setores = ['R08 SO5700', 'R08 SO5800', 'R08 SO7200', 'R08 SO5900',
'R08 SO5100', 'R08 SO5500', 'R08 SO1900', 'R08 SO7100', 'R08 SO0900']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P02':
setores = ['R08 SO7500', 'R08 SO7000', 'R08 SO5300', 'R08 SO5600',
'R08 SO7300', 'R08 SO5400', 'R08 SO5000', 'R08 SO6000', 'R08 SO1200']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P03':
setores = ['R08 SO1500', 'R08 SO1400', 'R08 SO1000', 'R08 SO16A0',
'R08 SO1600']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P04':
setores = ['R08 SO0600', 'R08 SO01D0', 'R08 SO17A0']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P05':
setores = ['R08 SO1800', 'R08 SO1300', 'R08 SO02A0', 'R08 SO0200',
'R08 SO0100', 'R08 SO01A0', 'R08 SO01E0']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
elif parada.split(' ')[1] == 'P06':
setores = ['R08 SO0800', 'R08 SO0500', 'R08 SO0700']
for c in range(1, 6):
app.root.ids[f'resladodir{c}page'].mudar_cor(setores)
app.root.ids[f'resladoesq{c}page'].mudar_cor(setores)
app.root.ids['rescarrinhopage'].mudar_label(parada)
app.mudar_tela('rescarrinhopage')
# Página de resultado de carrinhos
# Contém seus checks referenciando a qual carrinho está apontado (check_1, check_2)
# A função padrao() definirá os checks como padrão. Utilizado nas escolhas da parada, para resetar os checks padrão.
# A funçao check_padrão() tem o mesmo significado da função acima, pois ela serve para caso 2 ou mais carrinhos
# estiverem disponíveis, caso o usuário voltar de um carrinho que já tirou todas as embalagens disponíveis, e ir para o
# próximo carrinho, o carrinho anterior se tornará com check padrão, tornando mais dinâmico.
# A função check_carrinho() receberá qual carrinho está com disponibilidade e tornará o check em positivo.
# A função voltar_rota() serve para o usuário voltar em sua rota específica, a variável label_parada terá referência
# de qual rota e parada está, com a rota definida ele voltará para a mesma rota em que estava.
# A função mudar_label() receberá a parada_sel da escolha das paradas em cada rota, com isso ela definirá
# qual referência está e alterando a variável label_parada. Também fará um particionamento da string com método split()
# para definir a varíável rota.
# A função sel_carrinho() receberá o carrinho com o botão pressionado e mudará para o página do carrinho selecionado
# e alterando também a propriedade da label_parada.
class ResCarrinhoPage(Screen):
label_parada = StringProperty('')
check_1 = StringProperty('icones/error.png')
check_2 = StringProperty('icones/error.png')
check_3 = StringProperty('icones/error.png')
check_4 = StringProperty('icones/error.png')
check_5 = StringProperty('icones/error.png')
rota = ''
def padrao(self):
self.check_1 = 'icones/error.png'
self.check_2 = 'icones/error.png'
self.check_3 = 'icones/error.png'
self.check_4 = 'icones/error.png'
self.check_5 = 'icones/error.png'
def check_padrao(self, carrinho):
if carrinho == '1':
self.check_1 = 'icones/error.png'
elif carrinho == '2':
self.check_2 = 'icones/error.png'
elif carrinho == '3':
self.check_3 = 'icones/error.png'
elif carrinho == '4':
self.check_4 = 'icones/error.png'
elif carrinho == '5':
self.check_5 = 'icones/error.png'
def check_carrinho(self, carrinho):
if carrinho == '1':
self.check_1 = 'icones/check.png'
elif carrinho == '2':
self.check_2 = 'icones/check.png'
elif carrinho == '3':
self.check_3 = 'icones/check.png'
elif carrinho == '4':
self.check_4 = 'icones/check.png'
elif carrinho == '5':
self.check_5 = 'icones/check.png'
def voltar_rota(self):
app = App.get_running_app()
if self.rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif self.rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{self.rota[2]}page')
self.check_1 = 'icones/error.png'
self.check_2 = 'icones/error.png'
self.check_3 = 'icones/error.png'
self.check_4 = 'icones/error.png'
self.check_5 = 'icones/error.png'
def mudar_label(self, parada_sel):
self.rota = parada_sel.split(' ')[0]
self.label_parada = f'LOCAL: {parada_sel}'
def sel_carrinho(self, carrinho):
app = App.get_running_app()
app.mudar_tela(f'resseleclado{carrinho}page')
app.root.ids[f'resseleclado{carrinho}page'].label_local(self.label_parada)
app.root.ids[f'resladoesq{carrinho}page'].label_local(self.label_parada)
app.root.ids[f'resladodir{carrinho}page'].label_local(self.label_parada)
# Página de seleção de lados disponíveis
# Terá dois checks, especificando os lados. (check_dir, check_esq)
# O método padrao() definirá os checks em padrão
# O método check_padrao() recebe qual lado foi selecionado, assim o usuário terminado de fazer pagamento em um lado
# voltando para a seleção de lados, o lado em que ele estava tornará padrão.
# O método check_lado() receberá qual lado tem disponibilidade e tornará o check positivo.
# O método voltar_rota() servirá para voltar a rota específica, mesmo método da classe ResCarrinhoPage() e
# tornará padrão os checks de lado.
# O método voltar_carrinho() voltará para seleção de carrinhos disponíveis e tornando padrão
# os checks de lado e do carrinho que estava
# O método label_local() é a referência da rota e parada em que está.
class ResSelecLado1Page(Screen):
label_parada = StringProperty('')
check_dir = StringProperty('icones/error.png')
check_esq = StringProperty('icones/error.png')
def padrao(self):
self.check_dir = 'icones/error.png'
self.check_esq = 'icones/error.png'
def check_padrao(self, lado):
if lado == 'dir':
self.check_dir = 'icones/error.png'
if lado == 'esq':
self.check_esq = 'icones/error.png'
def check_lado(self, lado):
if lado == 'dir':
self.check_dir = 'icones/check.png'
elif lado == 'esq':
self.check_esq = 'icones/check.png'
def voltar_rota(self):
app = App.get_running_app()
rota = app.root.ids['rescarrinhopage'].rota
if rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{rota[2]}page')
self.check_dir = 'icones/error.png'
self.check_esq = 'icones/error.png'
def voltar_carrinho(self):
app = App.get_running_app()
page_carrinho = app.root.ids['rescarrinhopage']
page_carrinho.check_1 = 'icones/error.png'
app.mudar_tela('rescarrinhopage')
self.check_dir = 'icones/error.png'
self.check_esq = 'icones/error.png'
def label_local(self, parada):
self.label_parada = parada
class ResSelecLado2Page(Screen):
label_parada = StringProperty('')
check_dir = StringProperty('icones/error.png')
check_esq = StringProperty('icones/error.png')
def padrao(self):
self.check_dir = 'icones/error.png'
self.check_esq = 'icones/error.png'
def check_padrao(self, lado):
if lado == 'dir':
self.check_dir = 'icones/error.png'
if lado == 'esq':
self.check_esq = 'icones/error.png'
def check_lado(self, lado):
if lado == 'dir':
self.check_dir = 'icones/check.png'
elif lado == 'esq':
self.check_esq = 'icones/check.png'
def voltar_rota(self):
app = App.get_running_app()
rota = app.root.ids['rescarrinhopage'].rota
if rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{rota[2]}page')
self.check_dir = 'icones/error.png'
self.check_esq = 'icones/error.png'
def voltar_carrinho(self):
app = App.get_running_app()
page_carrinho = app.root.ids['rescarrinhopage']
page_carrinho.check_2 = 'icones/error.png'
app.mudar_tela('rescarrinhopage')
self.check_dir = 'icones/error.png'
self.check_esq = 'icones/error.png'
def label_local(self, parada):
self.label_parada = parada
class ResSelecLado3Page(Screen):
label_parada = StringProperty('')
check_dir = StringProperty('icones/error.png')
check_esq = StringProperty('icones/error.png')
def padrao(self):
self.check_dir = 'icones/error.png'
self.check_esq = 'icones/error.png'
def check_padrao(self, lado):
if lado == 'dir':
self.check_dir = 'icones/error.png'
if lado == 'esq':
self.check_esq = 'icones/error.png'
def check_lado(self, lado):
if lado == 'dir':
self.check_dir = 'icones/check.png'
elif lado == 'esq':
self.check_esq = 'icones/check.png'
def voltar_rota(self):
app = App.get_running_app()
rota = app.root.ids['rescarrinhopage'].rota
if rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{rota[2]}page')
self.check_dir = 'icones/error.png'
self.check_esq = 'icones/error.png'
def voltar_carrinho(self):
app = App.get_running_app()
page_carrinho = app.root.ids['rescarrinhopage']
page_carrinho.check_3 = 'icones/error.png'
app.mudar_tela('rescarrinhopage')
self.check_dir = 'icones/error.png'
self.check_esq = 'icones/error.png'
def label_local(self, parada):
self.label_parada = parada
class ResSelecLado4Page(Screen):
label_parada = StringProperty('')
check_dir = StringProperty('icones/error.png')
check_esq = StringProperty('icones/error.png')
def padrao(self):
self.check_dir = 'icones/error.png'
self.check_esq = 'icones/error.png'
def check_padrao(self, lado):
if lado == 'dir':
self.check_dir = 'icones/error.png'
if lado == 'esq':
self.check_esq = 'icones/error.png'
def check_lado(self, lado):
if lado == 'dir':
self.check_dir = 'icones/check.png'
elif lado == 'esq':
self.check_esq = 'icones/check.png'
def voltar_rota(self):
app = App.get_running_app()
rota = app.root.ids['rescarrinhopage'].rota
if rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{rota[2]}page')
self.check_dir = 'icones/error.png'
self.check_esq = 'icones/error.png'
def voltar_carrinho(self):
app = App.get_running_app()
page_carrinho = app.root.ids['rescarrinhopage']
page_carrinho.check_4 = 'icones/error.png'
app.mudar_tela('rescarrinhopage')
self.check_dir = 'icones/error.png'
self.check_esq = 'icones/error.png'
def label_local(self, parada):
self.label_parada = parada
class ResSelecLado5Page(Screen):
label_parada = StringProperty('')
check_dir = StringProperty('icones/error.png')
check_esq = StringProperty('icones/error.png')
def padrao(self):
self.check_dir = 'icones/error.png'
self.check_esq = 'icones/error.png'
def check_padrao(self, lado):
if lado == 'dir':
self.check_dir = 'icones/error.png'
if lado == 'esq':
self.check_esq = 'icones/error.png'
def check_lado(self, lado):
if lado == 'dir':
self.check_dir = 'icones/check.png'
elif lado == 'esq':
self.check_esq = 'icones/check.png'
def voltar_rota(self):
app = App.get_running_app()
rota = app.root.ids['rescarrinhopage'].rota
if rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{rota[2]}page')
self.check_dir = 'icones/error.png'
self.check_esq = 'icones/error.png'
def voltar_carrinho(self):
app = App.get_running_app()
page_carrinho = app.root.ids['rescarrinhopage']
page_carrinho.check_5 = 'icones/error.png'
app.mudar_tela('rescarrinhopage')
self.check_dir = 'icones/error.png'
self.check_esq = 'icones/error.png'
def label_local(self, parada):
self.label_parada = parada
# Página de resultado dos carrinhos.
# Cada posição do carrinho contém um botão com sua propriedade de cor, padrão em vermelho.
# O método cor_padrão() definirá todas as posições de cor padrão.
# O método mudar_cor() é o método que utilizará para mudar as cores das posições.
# Primeiro o método percorre em uma estrutura de repetição de cada andar, sendo de 1 a 5, e definirá a variável page,
# sendo selecposicao1dirA{andar}, após isso, cada andar tem sua posição (A, B, C, D), como já foram definidos acima,
# como texto_a, texto_b, texto_c e texto_d.
# Sendo assim, ele validará se o endereço nesse texto é o mesmo que contém na lista de setores, pois o método
# vai receber a lista de setores onde o método será chamado lá na seleção de paradas das rotas. E com isso ele tornará
# o check na cor verde, tornando disponível, também mudará o lado em que está selecionado e também o carrinho.
# O método voltar_rota() é o mesmo segmento utilizado antes, porém tornando os checks das posições padrão
# O método voltar_res_carrinho() serve para voltar ao carrinho e tornando os checks padrão.
# O método check_posição() é o comando de cada botão das posições, abrindo um pop-up especificando qual é o endereço.
# O método label_local() é a referência da rota e parada em qual está.
class ResLadoDir1Page(Screen):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
label_parada = StringProperty('')
cor_a_5 = ColorProperty(cor_vermelha)
cor_b_5 = ColorProperty(cor_vermelha)
cor_c_5 = ColorProperty(cor_vermelha)
cor_d_5 = ColorProperty(cor_vermelha)
cor_a_4 = ColorProperty(cor_vermelha)
cor_b_4 = ColorProperty(cor_vermelha)
cor_c_4 = ColorProperty(cor_vermelha)
cor_d_4 = ColorProperty(cor_vermelha)
cor_a_3 = ColorProperty(cor_vermelha)
cor_b_3 = ColorProperty(cor_vermelha)
cor_c_3 = ColorProperty(cor_vermelha)
cor_d_3 = ColorProperty(cor_vermelha)
cor_a_2 = ColorProperty(cor_vermelha)
cor_b_2 = ColorProperty(cor_vermelha)
cor_c_2 = ColorProperty(cor_vermelha)
cor_d_2 = ColorProperty(cor_vermelha)
cor_a_1 = ColorProperty(cor_vermelha)
cor_b_1 = ColorProperty(cor_vermelha)
cor_c_1 = ColorProperty(cor_vermelha)
cor_d_1 = ColorProperty(cor_vermelha)
def cor_padrao(self):
self.cor_a_5 = self.cor_vermelha
self.cor_b_5 = self.cor_vermelha
self.cor_c_5 = self.cor_vermelha
self.cor_d_5 = self.cor_vermelha
self.cor_a_4 = self.cor_vermelha
self.cor_b_4 = self.cor_vermelha
self.cor_c_4 = self.cor_vermelha
self.cor_d_4 = self.cor_vermelha
self.cor_a_3 = self.cor_vermelha
self.cor_b_3 = self.cor_vermelha
self.cor_c_3 = self.cor_vermelha
self.cor_d_3 = self.cor_vermelha
self.cor_a_2 = self.cor_vermelha
self.cor_b_2 = self.cor_vermelha
self.cor_c_2 = self.cor_vermelha
self.cor_d_2 = self.cor_vermelha
self.cor_a_1 = self.cor_vermelha
self.cor_b_1 = self.cor_vermelha
self.cor_c_1 = self.cor_vermelha
self.cor_d_1 = self.cor_vermelha
def mudar_cor(self, setores):
cor_verde = (0.08, 0.99, 0.32, 0.93)
app = App.get_running_app()
for andar in range(1, 6):
page = app.root.ids[f'selecposicao1dirA{andar}']
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado1page']
if andar == 1:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_1 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_1 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_1 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_1 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif andar == 2:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_2 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_2 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_2 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_2 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif andar == 3:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_3 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_3 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_3 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_3 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif andar == 4:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_4 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_4 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_4 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_4 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif andar == 5:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_5 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_5 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_5 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_5 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('dir')
def voltar_rota(self):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado1page']
rota = app.root.ids['rescarrinhopage'].rota
if rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{rota[2]}page')
self.cor_padrao()
check_carrinho.check_padrao('1')
check_lado.check_padrao('dir')
def voltar_res_carrinho(self):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado1page']
app.mudar_tela('rescarrinhopage')
self.cor_padrao()
check_carrinho.check_padrao('1')
check_lado.check_padrao('dir')
def voltar_lado(self):
app = App.get_running_app()
check_lado = app.root.ids[f'resseleclado1page']
app.mudar_tela('resseleclado1page')
self.cor_padrao()
check_lado.check_padrao('dir')
def check_posicao(self, andar, posicao):
app = App.get_running_app()
popup = ResCheck()
page = app.root.ids[f'selecposicao1dir{andar}']
if posicao == 'a':
texto = page.texto_a
popup.mudar_texto(texto)
popup.open()
elif posicao == 'b':
texto = page.texto_b
popup.mudar_texto(texto)
popup.open()
elif posicao == 'c':
texto = page.texto_c
popup.mudar_texto(texto)
popup.open()
elif posicao == 'd':
texto = page.texto_d
popup.mudar_texto(texto)
popup.open()
def label_local(self, parada):
self.label_parada = parada
class ResLadoEsq1Page(Screen):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
label_parada = StringProperty('')
cor_a_5 = ColorProperty(cor_vermelha)
cor_b_5 = ColorProperty(cor_vermelha)
cor_c_5 = ColorProperty(cor_vermelha)
cor_d_5 = ColorProperty(cor_vermelha)
cor_a_4 = ColorProperty(cor_vermelha)
cor_b_4 = ColorProperty(cor_vermelha)
cor_c_4 = ColorProperty(cor_vermelha)
cor_d_4 = ColorProperty(cor_vermelha)
cor_a_3 = ColorProperty(cor_vermelha)
cor_b_3 = ColorProperty(cor_vermelha)
cor_c_3 = ColorProperty(cor_vermelha)
cor_d_3 = ColorProperty(cor_vermelha)
cor_a_2 = ColorProperty(cor_vermelha)
cor_b_2 = ColorProperty(cor_vermelha)
cor_c_2 = ColorProperty(cor_vermelha)
cor_d_2 = ColorProperty(cor_vermelha)
cor_a_1 = ColorProperty(cor_vermelha)
cor_b_1 = ColorProperty(cor_vermelha)
cor_c_1 = ColorProperty(cor_vermelha)
cor_d_1 = ColorProperty(cor_vermelha)
def cor_padrao(self):
self.cor_a_5 = self.cor_vermelha
self.cor_b_5 = self.cor_vermelha
self.cor_c_5 = self.cor_vermelha
self.cor_d_5 = self.cor_vermelha
self.cor_a_4 = self.cor_vermelha
self.cor_b_4 = self.cor_vermelha
self.cor_c_4 = self.cor_vermelha
self.cor_d_4 = self.cor_vermelha
self.cor_a_3 = self.cor_vermelha
self.cor_b_3 = self.cor_vermelha
self.cor_c_3 = self.cor_vermelha
self.cor_d_3 = self.cor_vermelha
self.cor_a_2 = self.cor_vermelha
self.cor_b_2 = self.cor_vermelha
self.cor_c_2 = self.cor_vermelha
self.cor_d_2 = self.cor_vermelha
self.cor_a_1 = self.cor_vermelha
self.cor_b_1 = self.cor_vermelha
self.cor_c_1 = self.cor_vermelha
self.cor_d_1 = self.cor_vermelha
def mudar_cor(self, setores):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado1page']
cor_verde = (0.08, 0.99, 0.32, 0.93)
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
for andar in range(1, 6):
page = app.root.ids[f'selecposicao1esqA{andar}']
if andar == 1:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_1 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_1 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_1 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_1 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif andar == 2:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_2 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_2 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_2 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_2 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif andar == 3:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_3 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_3 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_3 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_3 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif andar == 4:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_4 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_4 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_4 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_4 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif andar == 5:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_5 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_5 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_5 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_5 = cor_verde
check_carrinho.check_carrinho('1')
check_lado.check_lado('esq')
def voltar_rota(self):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado1page']
rota = app.root.ids['rescarrinhopage'].rota
if rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{rota[2]}page')
self.cor_padrao()
check_carrinho.check_padrao('1')
check_lado.check_padrao('esq')
def voltar_res_carrinho(self):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado1page']
app.mudar_tela('rescarrinhopage')
self.cor_padrao()
check_carrinho.check_padrao('1')
check_lado.check_padrao('esq')
def voltar_lado(self):
app = App.get_running_app()
check_lado = app.root.ids[f'resseleclado1page']
app.mudar_tela('resseleclado1page')
self.cor_padrao()
check_lado.check_padrao('esq')
def check_posicao(self, andar, posicao):
app = App.get_running_app()
popup = ResCheck()
page = app.root.ids[f'selecposicao1esq{andar}']
if posicao == 'a':
texto = page.texto_a
popup.mudar_texto(texto)
popup.open()
elif posicao == 'b':
texto = page.texto_b
popup.mudar_texto(texto)
popup.open()
elif posicao == 'c':
texto = page.texto_c
popup.mudar_texto(texto)
popup.open()
elif posicao == 'd':
texto = page.texto_d
popup.mudar_texto(texto)
popup.open()
def label_local(self, parada):
self.label_parada = parada
class ResLadoDir2Page(Screen):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
label_parada = StringProperty('')
cor_a_5 = ColorProperty(cor_vermelha)
cor_b_5 = ColorProperty(cor_vermelha)
cor_c_5 = ColorProperty(cor_vermelha)
cor_d_5 = ColorProperty(cor_vermelha)
cor_a_4 = ColorProperty(cor_vermelha)
cor_b_4 = ColorProperty(cor_vermelha)
cor_c_4 = ColorProperty(cor_vermelha)
cor_d_4 = ColorProperty(cor_vermelha)
cor_a_3 = ColorProperty(cor_vermelha)
cor_b_3 = ColorProperty(cor_vermelha)
cor_c_3 = ColorProperty(cor_vermelha)
cor_d_3 = ColorProperty(cor_vermelha)
cor_a_2 = ColorProperty(cor_vermelha)
cor_b_2 = ColorProperty(cor_vermelha)
cor_c_2 = ColorProperty(cor_vermelha)
cor_d_2 = ColorProperty(cor_vermelha)
cor_a_1 = ColorProperty(cor_vermelha)
cor_b_1 = ColorProperty(cor_vermelha)
cor_c_1 = ColorProperty(cor_vermelha)
cor_d_1 = ColorProperty(cor_vermelha)
def cor_padrao(self):
self.cor_a_5 = self.cor_vermelha
self.cor_b_5 = self.cor_vermelha
self.cor_c_5 = self.cor_vermelha
self.cor_d_5 = self.cor_vermelha
self.cor_a_4 = self.cor_vermelha
self.cor_b_4 = self.cor_vermelha
self.cor_c_4 = self.cor_vermelha
self.cor_d_4 = self.cor_vermelha
self.cor_a_3 = self.cor_vermelha
self.cor_b_3 = self.cor_vermelha
self.cor_c_3 = self.cor_vermelha
self.cor_d_3 = self.cor_vermelha
self.cor_a_2 = self.cor_vermelha
self.cor_b_2 = self.cor_vermelha
self.cor_c_2 = self.cor_vermelha
self.cor_d_2 = self.cor_vermelha
self.cor_a_1 = self.cor_vermelha
self.cor_b_1 = self.cor_vermelha
self.cor_c_1 = self.cor_vermelha
self.cor_d_1 = self.cor_vermelha
def mudar_cor(self, setores):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado2page']
cor_verde = (0.08, 0.99, 0.32, 0.93)
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
for andar in range(1, 6):
page = app.root.ids[f'selecposicao2dirA{andar}']
if andar == 1:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_1 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_1 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_1 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_1 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif andar == 2:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_2 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_2 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_2 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_2 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif andar == 3:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_3 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_3 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_3 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_3 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif andar == 4:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_4 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_4 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_4 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_4 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif andar == 5:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_5 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_5 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_5 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_5 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('dir')
def voltar_rota(self):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado2page']
rota = app.root.ids['rescarrinhopage'].rota
if rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{rota[2]}page')
self.cor_padrao()
check_carrinho.check_padrao('2')
check_lado.check_padrao('dir')
def voltar_res_carrinho(self):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado2page']
app.mudar_tela('rescarrinhopage')
self.cor_padrao()
check_carrinho.check_padrao('2')
check_lado.check_padrao('dir')
def voltar_lado(self):
app = App.get_running_app()
check_lado = app.root.ids[f'resseleclado2page']
app.mudar_tela('resseleclado2page')
self.cor_padrao()
check_lado.check_padrao('dir')
def check_posicao(self, andar, posicao):
app = App.get_running_app()
popup = ResCheck()
page = app.root.ids[f'selecposicao2dir{andar}']
if posicao == 'a':
texto = page.texto_a
popup.mudar_texto(texto)
popup.open()
elif posicao == 'b':
texto = page.texto_b
popup.mudar_texto(texto)
popup.open()
elif posicao == 'c':
texto = page.texto_c
popup.mudar_texto(texto)
popup.open()
elif posicao == 'd':
texto = page.texto_d
popup.mudar_texto(texto)
popup.open()
def label_local(self, parada):
self.label_parada = parada
class ResLadoEsq2Page(Screen):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
label_parada = StringProperty('')
cor_a_5 = ColorProperty(cor_vermelha)
cor_b_5 = ColorProperty(cor_vermelha)
cor_c_5 = ColorProperty(cor_vermelha)
cor_d_5 = ColorProperty(cor_vermelha)
cor_a_4 = ColorProperty(cor_vermelha)
cor_b_4 = ColorProperty(cor_vermelha)
cor_c_4 = ColorProperty(cor_vermelha)
cor_d_4 = ColorProperty(cor_vermelha)
cor_a_3 = ColorProperty(cor_vermelha)
cor_b_3 = ColorProperty(cor_vermelha)
cor_c_3 = ColorProperty(cor_vermelha)
cor_d_3 = ColorProperty(cor_vermelha)
cor_a_2 = ColorProperty(cor_vermelha)
cor_b_2 = ColorProperty(cor_vermelha)
cor_c_2 = ColorProperty(cor_vermelha)
cor_d_2 = ColorProperty(cor_vermelha)
cor_a_1 = ColorProperty(cor_vermelha)
cor_b_1 = ColorProperty(cor_vermelha)
cor_c_1 = ColorProperty(cor_vermelha)
cor_d_1 = ColorProperty(cor_vermelha)
def cor_padrao(self):
self.cor_a_5 = self.cor_vermelha
self.cor_b_5 = self.cor_vermelha
self.cor_c_5 = self.cor_vermelha
self.cor_d_5 = self.cor_vermelha
self.cor_a_4 = self.cor_vermelha
self.cor_b_4 = self.cor_vermelha
self.cor_c_4 = self.cor_vermelha
self.cor_d_4 = self.cor_vermelha
self.cor_a_3 = self.cor_vermelha
self.cor_b_3 = self.cor_vermelha
self.cor_c_3 = self.cor_vermelha
self.cor_d_3 = self.cor_vermelha
self.cor_a_2 = self.cor_vermelha
self.cor_b_2 = self.cor_vermelha
self.cor_c_2 = self.cor_vermelha
self.cor_d_2 = self.cor_vermelha
self.cor_a_1 = self.cor_vermelha
self.cor_b_1 = self.cor_vermelha
self.cor_c_1 = self.cor_vermelha
self.cor_d_1 = self.cor_vermelha
def mudar_cor(self, setores):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado2page']
cor_verde = (0.08, 0.99, 0.32, 0.93)
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
for andar in range(1, 6):
page = app.root.ids[f'selecposicao2esqA{andar}']
if andar == 1:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_1 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_1 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_1 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_1 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif andar == 2:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_2 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_2 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_2 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_2 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif andar == 3:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_3 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_3 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_3 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_3 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif andar == 4:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_4 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_4 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_4 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_4 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif andar == 5:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_5 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_5 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_5 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_5 = cor_verde
check_carrinho.check_carrinho('2')
check_lado.check_lado('esq')
def voltar_rota(self):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado2page']
rota = app.root.ids['rescarrinhopage'].rota
if rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{rota[2]}page')
self.cor_padrao()
check_carrinho.check_padrao('2')
check_lado.check_padrao('esq')
def voltar_res_carrinho(self):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado2page']
app.mudar_tela('rescarrinhopage')
self.cor_padrao()
check_carrinho.check_padrao('2')
check_lado.check_padrao('esq')
def voltar_lado(self):
app = App.get_running_app()
check_lado = app.root.ids[f'resseleclado2page']
app.mudar_tela('resseleclado2page')
self.cor_padrao()
check_lado.check_padrao('esq')
def check_posicao(self, andar, posicao):
app = App.get_running_app()
popup = ResCheck()
page = app.root.ids[f'selecposicao2esq{andar}']
if posicao == 'a':
texto = page.texto_a
popup.mudar_texto(texto)
popup.open()
elif posicao == 'b':
texto = page.texto_b
popup.mudar_texto(texto)
popup.open()
elif posicao == 'c':
texto = page.texto_c
popup.mudar_texto(texto)
popup.open()
elif posicao == 'd':
texto = page.texto_d
popup.mudar_texto(texto)
popup.open()
def label_local(self, parada):
self.label_parada = parada
class ResLadoDir3Page(Screen):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
label_parada = StringProperty('')
cor_a_5 = ColorProperty(cor_vermelha)
cor_b_5 = ColorProperty(cor_vermelha)
cor_c_5 = ColorProperty(cor_vermelha)
cor_d_5 = ColorProperty(cor_vermelha)
cor_a_4 = ColorProperty(cor_vermelha)
cor_b_4 = ColorProperty(cor_vermelha)
cor_c_4 = ColorProperty(cor_vermelha)
cor_d_4 = ColorProperty(cor_vermelha)
cor_a_3 = ColorProperty(cor_vermelha)
cor_b_3 = ColorProperty(cor_vermelha)
cor_c_3 = ColorProperty(cor_vermelha)
cor_d_3 = ColorProperty(cor_vermelha)
cor_a_2 = ColorProperty(cor_vermelha)
cor_b_2 = ColorProperty(cor_vermelha)
cor_c_2 = ColorProperty(cor_vermelha)
cor_d_2 = ColorProperty(cor_vermelha)
cor_a_1 = ColorProperty(cor_vermelha)
cor_b_1 = ColorProperty(cor_vermelha)
cor_c_1 = ColorProperty(cor_vermelha)
cor_d_1 = ColorProperty(cor_vermelha)
def cor_padrao(self):
self.cor_a_5 = self.cor_vermelha
self.cor_b_5 = self.cor_vermelha
self.cor_c_5 = self.cor_vermelha
self.cor_d_5 = self.cor_vermelha
self.cor_a_4 = self.cor_vermelha
self.cor_b_4 = self.cor_vermelha
self.cor_c_4 = self.cor_vermelha
self.cor_d_4 = self.cor_vermelha
self.cor_a_3 = self.cor_vermelha
self.cor_b_3 = self.cor_vermelha
self.cor_c_3 = self.cor_vermelha
self.cor_d_3 = self.cor_vermelha
self.cor_a_2 = self.cor_vermelha
self.cor_b_2 = self.cor_vermelha
self.cor_c_2 = self.cor_vermelha
self.cor_d_2 = self.cor_vermelha
self.cor_a_1 = self.cor_vermelha
self.cor_b_1 = self.cor_vermelha
self.cor_c_1 = self.cor_vermelha
self.cor_d_1 = self.cor_vermelha
def mudar_cor(self, setores):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado3page']
cor_verde = (0.08, 0.99, 0.32, 0.93)
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
for andar in range(1, 6):
page = app.root.ids[f'selecposicao3dirA{andar}']
if andar == 1:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_1 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_1 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_1 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_1 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif andar == 2:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_2 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_2 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_2 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_2 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif andar == 3:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_3 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_3 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_3 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_3 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif andar == 4:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_4 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_4 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_4 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_4 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif andar == 5:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_5 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_5 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_5 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_5 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('dir')
def voltar_rota(self):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado3page']
rota = app.root.ids['rescarrinhopage'].rota
if rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{rota[2]}page')
self.cor_padrao()
check_carrinho.check_padrao('3')
check_lado.check_padrao('dir')
def voltar_res_carrinho(self):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado3page']
app.mudar_tela('rescarrinhopage')
self.cor_padrao()
check_carrinho.check_padrao('3')
check_lado.check_padrao('dir')
def voltar_lado(self):
app = App.get_running_app()
check_lado = app.root.ids[f'resseleclado3page']
app.mudar_tela('resseleclado3page')
self.cor_padrao()
check_lado.check_padrao('dir')
def check_posicao(self, andar, posicao):
app = App.get_running_app()
popup = ResCheck()
page = app.root.ids[f'selecposicao3dir{andar}']
if posicao == 'a':
texto = page.texto_a
popup.mudar_texto(texto)
popup.open()
elif posicao == 'b':
texto = page.texto_b
popup.mudar_texto(texto)
popup.open()
elif posicao == 'c':
texto = page.texto_c
popup.mudar_texto(texto)
popup.open()
elif posicao == 'd':
texto = page.texto_d
popup.mudar_texto(texto)
popup.open()
def label_local(self, parada):
self.label_parada = parada
class ResLadoEsq3Page(Screen):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
label_parada = StringProperty('')
cor_a_5 = ColorProperty(cor_vermelha)
cor_b_5 = ColorProperty(cor_vermelha)
cor_c_5 = ColorProperty(cor_vermelha)
cor_d_5 = ColorProperty(cor_vermelha)
cor_a_4 = ColorProperty(cor_vermelha)
cor_b_4 = ColorProperty(cor_vermelha)
cor_c_4 = ColorProperty(cor_vermelha)
cor_d_4 = ColorProperty(cor_vermelha)
cor_a_3 = ColorProperty(cor_vermelha)
cor_b_3 = ColorProperty(cor_vermelha)
cor_c_3 = ColorProperty(cor_vermelha)
cor_d_3 = ColorProperty(cor_vermelha)
cor_a_2 = ColorProperty(cor_vermelha)
cor_b_2 = ColorProperty(cor_vermelha)
cor_c_2 = ColorProperty(cor_vermelha)
cor_d_2 = ColorProperty(cor_vermelha)
cor_a_1 = ColorProperty(cor_vermelha)
cor_b_1 = ColorProperty(cor_vermelha)
cor_c_1 = ColorProperty(cor_vermelha)
cor_d_1 = ColorProperty(cor_vermelha)
def cor_padrao(self):
self.cor_a_5 = self.cor_vermelha
self.cor_b_5 = self.cor_vermelha
self.cor_c_5 = self.cor_vermelha
self.cor_d_5 = self.cor_vermelha
self.cor_a_4 = self.cor_vermelha
self.cor_b_4 = self.cor_vermelha
self.cor_c_4 = self.cor_vermelha
self.cor_d_4 = self.cor_vermelha
self.cor_a_3 = self.cor_vermelha
self.cor_b_3 = self.cor_vermelha
self.cor_c_3 = self.cor_vermelha
self.cor_d_3 = self.cor_vermelha
self.cor_a_2 = self.cor_vermelha
self.cor_b_2 = self.cor_vermelha
self.cor_c_2 = self.cor_vermelha
self.cor_d_2 = self.cor_vermelha
self.cor_a_1 = self.cor_vermelha
self.cor_b_1 = self.cor_vermelha
self.cor_c_1 = self.cor_vermelha
self.cor_d_1 = self.cor_vermelha
def mudar_cor(self, setores):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado3page']
cor_verde = (0.08, 0.99, 0.32, 0.93)
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
for andar in range(1, 6):
page = app.root.ids[f'selecposicao3esqA{andar}']
if andar == 1:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_1 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_1 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_1 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_1 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif andar == 2:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_2 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_2 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_2 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_2 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif andar == 3:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_3 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_3 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_3 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_3 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif andar == 4:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_4 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_4 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_4 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_4 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif andar == 5:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_5 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_5 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_5 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_5 = cor_verde
check_carrinho.check_carrinho('3')
check_lado.check_lado('esq')
def voltar_rota(self):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado3page']
rota = app.root.ids['rescarrinhopage'].rota
if rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{rota[2]}page')
self.cor_padrao()
check_carrinho.check_padrao('3')
check_lado.check_padrao('esq')
def voltar_res_carrinho(self):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado3page']
app.mudar_tela('rescarrinhopage')
self.cor_padrao()
check_carrinho.check_padrao('3')
check_lado.check_padrao('esq')
def voltar_lado(self):
app = App.get_running_app()
check_lado = app.root.ids[f'resseleclado3page']
app.mudar_tela('resseleclado3page')
self.cor_padrao()
check_lado.check_padrao('esq')
def check_posicao(self, andar, posicao):
app = App.get_running_app()
popup = ResCheck()
page = app.root.ids[f'selecposicao3esq{andar}']
if posicao == 'a':
texto = page.texto_a
popup.mudar_texto(texto)
popup.open()
elif posicao == 'b':
texto = page.texto_b
popup.mudar_texto(texto)
popup.open()
elif posicao == 'c':
texto = page.texto_c
popup.mudar_texto(texto)
popup.open()
elif posicao == 'd':
texto = page.texto_d
popup.mudar_texto(texto)
popup.open()
def label_local(self, parada):
self.label_parada = parada
class ResLadoDir4Page(Screen):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
label_parada = StringProperty('')
cor_a_5 = ColorProperty(cor_vermelha)
cor_b_5 = ColorProperty(cor_vermelha)
cor_c_5 = ColorProperty(cor_vermelha)
cor_d_5 = ColorProperty(cor_vermelha)
cor_a_4 = ColorProperty(cor_vermelha)
cor_b_4 = ColorProperty(cor_vermelha)
cor_c_4 = ColorProperty(cor_vermelha)
cor_d_4 = ColorProperty(cor_vermelha)
cor_a_3 = ColorProperty(cor_vermelha)
cor_b_3 = ColorProperty(cor_vermelha)
cor_c_3 = ColorProperty(cor_vermelha)
cor_d_3 = ColorProperty(cor_vermelha)
cor_a_2 = ColorProperty(cor_vermelha)
cor_b_2 = ColorProperty(cor_vermelha)
cor_c_2 = ColorProperty(cor_vermelha)
cor_d_2 = ColorProperty(cor_vermelha)
cor_a_1 = ColorProperty(cor_vermelha)
cor_b_1 = ColorProperty(cor_vermelha)
cor_c_1 = ColorProperty(cor_vermelha)
cor_d_1 = ColorProperty(cor_vermelha)
def cor_padrao(self):
self.cor_a_5 = self.cor_vermelha
self.cor_b_5 = self.cor_vermelha
self.cor_c_5 = self.cor_vermelha
self.cor_d_5 = self.cor_vermelha
self.cor_a_4 = self.cor_vermelha
self.cor_b_4 = self.cor_vermelha
self.cor_c_4 = self.cor_vermelha
self.cor_d_4 = self.cor_vermelha
self.cor_a_3 = self.cor_vermelha
self.cor_b_3 = self.cor_vermelha
self.cor_c_3 = self.cor_vermelha
self.cor_d_3 = self.cor_vermelha
self.cor_a_2 = self.cor_vermelha
self.cor_b_2 = self.cor_vermelha
self.cor_c_2 = self.cor_vermelha
self.cor_d_2 = self.cor_vermelha
self.cor_a_1 = self.cor_vermelha
self.cor_b_1 = self.cor_vermelha
self.cor_c_1 = self.cor_vermelha
self.cor_d_1 = self.cor_vermelha
def mudar_cor(self, setores):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado4page']
cor_verde = (0.08, 0.99, 0.32, 0.93)
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
for andar in range(1, 6):
page = app.root.ids[f'selecposicao4dirA{andar}']
if andar == 1:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_1 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_1 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_1 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_1 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif andar == 2:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_2 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_2 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_2 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_2 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif andar == 3:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_3 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_3 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_3 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_3 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif andar == 4:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_4 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_4 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_4 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_4 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif andar == 5:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_5 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_5 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_5 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_5 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('dir')
def voltar_rota(self):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado4page']
rota = app.root.ids['rescarrinhopage'].rota
if rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{rota[2]}page')
self.cor_padrao()
check_carrinho.check_padrao('4')
check_lado.check_padrao('dir')
def voltar_res_carrinho(self):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado4page']
app.mudar_tela('rescarrinhopage')
self.cor_padrao()
check_carrinho.check_padrao('4')
check_lado.check_padrao('dir')
def voltar_lado(self):
app = App.get_running_app()
check_lado = app.root.ids[f'resseleclado4page']
app.mudar_tela('resseleclado4page')
self.cor_padrao()
check_lado.check_padrao('dir')
def check_posicao(self, andar, posicao):
app = App.get_running_app()
popup = ResCheck()
page = app.root.ids[f'selecposicao4dir{andar}']
if posicao == 'a':
texto = page.texto_a
popup.mudar_texto(texto)
popup.open()
elif posicao == 'b':
texto = page.texto_b
popup.mudar_texto(texto)
popup.open()
elif posicao == 'c':
texto = page.texto_c
popup.mudar_texto(texto)
popup.open()
elif posicao == 'd':
texto = page.texto_d
popup.mudar_texto(texto)
popup.open()
def label_local(self, parada):
self.label_parada = parada
class ResLadoEsq4Page(Screen):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
label_parada = StringProperty('')
cor_a_5 = ColorProperty(cor_vermelha)
cor_b_5 = ColorProperty(cor_vermelha)
cor_c_5 = ColorProperty(cor_vermelha)
cor_d_5 = ColorProperty(cor_vermelha)
cor_a_4 = ColorProperty(cor_vermelha)
cor_b_4 = ColorProperty(cor_vermelha)
cor_c_4 = ColorProperty(cor_vermelha)
cor_d_4 = ColorProperty(cor_vermelha)
cor_a_3 = ColorProperty(cor_vermelha)
cor_b_3 = ColorProperty(cor_vermelha)
cor_c_3 = ColorProperty(cor_vermelha)
cor_d_3 = ColorProperty(cor_vermelha)
cor_a_2 = ColorProperty(cor_vermelha)
cor_b_2 = ColorProperty(cor_vermelha)
cor_c_2 = ColorProperty(cor_vermelha)
cor_d_2 = ColorProperty(cor_vermelha)
cor_a_1 = ColorProperty(cor_vermelha)
cor_b_1 = ColorProperty(cor_vermelha)
cor_c_1 = ColorProperty(cor_vermelha)
cor_d_1 = ColorProperty(cor_vermelha)
def cor_padrao(self):
self.cor_a_5 = self.cor_vermelha
self.cor_b_5 = self.cor_vermelha
self.cor_c_5 = self.cor_vermelha
self.cor_d_5 = self.cor_vermelha
self.cor_a_4 = self.cor_vermelha
self.cor_b_4 = self.cor_vermelha
self.cor_c_4 = self.cor_vermelha
self.cor_d_4 = self.cor_vermelha
self.cor_a_3 = self.cor_vermelha
self.cor_b_3 = self.cor_vermelha
self.cor_c_3 = self.cor_vermelha
self.cor_d_3 = self.cor_vermelha
self.cor_a_2 = self.cor_vermelha
self.cor_b_2 = self.cor_vermelha
self.cor_c_2 = self.cor_vermelha
self.cor_d_2 = self.cor_vermelha
self.cor_a_1 = self.cor_vermelha
self.cor_b_1 = self.cor_vermelha
self.cor_c_1 = self.cor_vermelha
self.cor_d_1 = self.cor_vermelha
def mudar_cor(self, setores):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado4page']
cor_verde = (0.08, 0.99, 0.32, 0.93)
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
for andar in range(1, 6):
page = app.root.ids[f'selecposicao4esqA{andar}']
if andar == 1:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_1 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_1 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_1 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_1 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif andar == 2:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_2 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_2 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_2 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_2 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif andar == 3:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_3 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_3 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_3 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_3 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif andar == 4:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_4 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_4 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_4 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_4 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif andar == 5:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_5 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_5 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_5 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_5 = cor_verde
check_carrinho.check_carrinho('4')
check_lado.check_lado('esq')
def voltar_rota(self):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado4page']
rota = app.root.ids['rescarrinhopage'].rota
if rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{rota[2]}page')
self.cor_padrao()
check_carrinho.check_padrao('4')
check_lado.check_padrao('esq')
def voltar_res_carrinho(self):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado4page']
app.mudar_tela('rescarrinhopage')
self.cor_padrao()
check_carrinho.check_padrao('4')
check_lado.check_padrao('esq')
def voltar_lado(self):
app = App.get_running_app()
check_lado = app.root.ids[f'resseleclado4page']
app.mudar_tela('resseleclado4page')
self.cor_padrao()
check_lado.check_padrao('esq')
def check_posicao(self, andar, posicao):
app = App.get_running_app()
popup = ResCheck()
page = app.root.ids[f'selecposicao4esq{andar}']
if posicao == 'a':
texto = page.texto_a
popup.mudar_texto(texto)
popup.open()
elif posicao == 'b':
texto = page.texto_b
popup.mudar_texto(texto)
popup.open()
elif posicao == 'c':
texto = page.texto_c
popup.mudar_texto(texto)
popup.open()
elif posicao == 'd':
texto = page.texto_d
popup.mudar_texto(texto)
popup.open()
def label_local(self, parada):
self.label_parada = parada
class ResLadoDir5Page(Screen):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
label_parada = StringProperty('')
cor_a_5 = ColorProperty(cor_vermelha)
cor_b_5 = ColorProperty(cor_vermelha)
cor_c_5 = ColorProperty(cor_vermelha)
cor_d_5 = ColorProperty(cor_vermelha)
cor_a_4 = ColorProperty(cor_vermelha)
cor_b_4 = ColorProperty(cor_vermelha)
cor_c_4 = ColorProperty(cor_vermelha)
cor_d_4 = ColorProperty(cor_vermelha)
cor_a_3 = ColorProperty(cor_vermelha)
cor_b_3 = ColorProperty(cor_vermelha)
cor_c_3 = ColorProperty(cor_vermelha)
cor_d_3 = ColorProperty(cor_vermelha)
cor_a_2 = ColorProperty(cor_vermelha)
cor_b_2 = ColorProperty(cor_vermelha)
cor_c_2 = ColorProperty(cor_vermelha)
cor_d_2 = ColorProperty(cor_vermelha)
cor_a_1 = ColorProperty(cor_vermelha)
cor_b_1 = ColorProperty(cor_vermelha)
cor_c_1 = ColorProperty(cor_vermelha)
cor_d_1 = ColorProperty(cor_vermelha)
def cor_padrao(self):
self.cor_a_5 = self.cor_vermelha
self.cor_b_5 = self.cor_vermelha
self.cor_c_5 = self.cor_vermelha
self.cor_d_5 = self.cor_vermelha
self.cor_a_4 = self.cor_vermelha
self.cor_b_4 = self.cor_vermelha
self.cor_c_4 = self.cor_vermelha
self.cor_d_4 = self.cor_vermelha
self.cor_a_3 = self.cor_vermelha
self.cor_b_3 = self.cor_vermelha
self.cor_c_3 = self.cor_vermelha
self.cor_d_3 = self.cor_vermelha
self.cor_a_2 = self.cor_vermelha
self.cor_b_2 = self.cor_vermelha
self.cor_c_2 = self.cor_vermelha
self.cor_d_2 = self.cor_vermelha
self.cor_a_1 = self.cor_vermelha
self.cor_b_1 = self.cor_vermelha
self.cor_c_1 = self.cor_vermelha
self.cor_d_1 = self.cor_vermelha
def mudar_cor(self, setores):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado5page']
cor_verde = (0.08, 0.99, 0.32, 0.93)
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
for andar in range(1, 6):
page = app.root.ids[f'selecposicao5dirA{andar}']
if andar == 1:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_1 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_1 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_1 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_1 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif andar == 2:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_2 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_2 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_2 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_2 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif andar == 3:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_3 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_3 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_3 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_3 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif andar == 4:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_4 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_4 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_4 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_4 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif andar == 5:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_5 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_5 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_5 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_5 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('dir')
def voltar_rota(self):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado5page']
rota = app.root.ids['rescarrinhopage'].rota
if rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{rota[2]}page')
self.cor_padrao()
check_carrinho.check_padrao('5')
check_lado.check_padrao('dir')
def voltar_res_carrinho(self):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado5page']
app.mudar_tela('rescarrinhopage')
self.cor_padrao()
check_carrinho.check_padrao('5')
check_lado.check_padrao('dir')
def voltar_lado(self):
app = App.get_running_app()
check_lado = app.root.ids[f'resseleclado5page']
app.mudar_tela('resseleclado5page')
self.cor_padrao()
check_lado.check_padrao('dir')
def check_posicao(self, andar, posicao):
app = App.get_running_app()
popup = ResCheck()
page = app.root.ids[f'selecposicao5dir{andar}']
if posicao == 'a':
texto = page.texto_a
popup.mudar_texto(texto)
popup.open()
elif posicao == 'b':
texto = page.texto_b
popup.mudar_texto(texto)
popup.open()
elif posicao == 'c':
texto = page.texto_c
popup.mudar_texto(texto)
popup.open()
elif posicao == 'd':
texto = page.texto_d
popup.mudar_texto(texto)
popup.open()
def label_local(self, parada):
self.label_parada = parada
class ResLadoEsq5Page(Screen):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
label_parada = StringProperty('')
cor_a_5 = ColorProperty(cor_vermelha)
cor_b_5 = ColorProperty(cor_vermelha)
cor_c_5 = ColorProperty(cor_vermelha)
cor_d_5 = ColorProperty(cor_vermelha)
cor_a_4 = ColorProperty(cor_vermelha)
cor_b_4 = ColorProperty(cor_vermelha)
cor_c_4 = ColorProperty(cor_vermelha)
cor_d_4 = ColorProperty(cor_vermelha)
cor_a_3 = ColorProperty(cor_vermelha)
cor_b_3 = ColorProperty(cor_vermelha)
cor_c_3 = ColorProperty(cor_vermelha)
cor_d_3 = ColorProperty(cor_vermelha)
cor_a_2 = ColorProperty(cor_vermelha)
cor_b_2 = ColorProperty(cor_vermelha)
cor_c_2 = ColorProperty(cor_vermelha)
cor_d_2 = ColorProperty(cor_vermelha)
cor_a_1 = ColorProperty(cor_vermelha)
cor_b_1 = ColorProperty(cor_vermelha)
cor_c_1 = ColorProperty(cor_vermelha)
cor_d_1 = ColorProperty(cor_vermelha)
def cor_padrao(self):
self.cor_a_5 = self.cor_vermelha
self.cor_b_5 = self.cor_vermelha
self.cor_c_5 = self.cor_vermelha
self.cor_d_5 = self.cor_vermelha
self.cor_a_4 = self.cor_vermelha
self.cor_b_4 = self.cor_vermelha
self.cor_c_4 = self.cor_vermelha
self.cor_d_4 = self.cor_vermelha
self.cor_a_3 = self.cor_vermelha
self.cor_b_3 = self.cor_vermelha
self.cor_c_3 = self.cor_vermelha
self.cor_d_3 = self.cor_vermelha
self.cor_a_2 = self.cor_vermelha
self.cor_b_2 = self.cor_vermelha
self.cor_c_2 = self.cor_vermelha
self.cor_d_2 = self.cor_vermelha
self.cor_a_1 = self.cor_vermelha
self.cor_b_1 = self.cor_vermelha
self.cor_c_1 = self.cor_vermelha
self.cor_d_1 = self.cor_vermelha
def mudar_cor(self, setores):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado5page']
cor_verde = (0.08, 0.99, 0.32, 0.93)
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
for andar in range(1, 6):
page = app.root.ids[f'selecposicao5esqA{andar}']
if andar == 1:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_1 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_1 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_1 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_1 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif andar == 2:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_2 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_2 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_2 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_2 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif andar == 3:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_3 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_3 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_3 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_3 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif andar == 4:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_4 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_4 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_4 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_4 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif andar == 5:
for pos in range(1, 5):
if pos == 1:
if page.texto_a in setores:
self.cor_a_5 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif pos == 2:
if page.texto_b in setores:
self.cor_b_5 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif pos == 3:
if page.texto_c in setores:
self.cor_c_5 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
elif pos == 4:
if page.texto_d in setores:
self.cor_d_5 = cor_verde
check_carrinho.check_carrinho('5')
check_lado.check_lado('esq')
def voltar_rota(self):
cor_vermelha = (0.99, 0.29, 0.28, 0.93)
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado5page']
rota = app.root.ids['rescarrinhopage'].rota
if rota[2] == '3':
app.mudar_tela(f'rota0302page')
elif rota[2] == '6':
app.mudar_tela(f'rota0607page')
else:
app.mudar_tela(f'rota0{rota[2]}page')
self.cor_padrao()
check_carrinho.check_padrao('5')
check_lado.check_padrao('esq')
def voltar_res_carrinho(self):
app = App.get_running_app()
check_carrinho = app.root.ids['rescarrinhopage']
check_lado = app.root.ids[f'resseleclado5page']
app.mudar_tela('rescarrinhopage')
self.cor_padrao()
check_carrinho.check_padrao('5')
check_lado.check_padrao('esq')
def voltar_lado(self):
app = App.get_running_app()
check_lado = app.root.ids[f'resseleclado5page']
app.mudar_tela('resseleclado5page')
self.cor_padrao()
check_lado.check_padrao('esq')
def check_posicao(self, andar, posicao):
app = App.get_running_app()
popup = ResCheck()
page = app.root.ids[f'selecposicao5esq{andar}']
if posicao == 'a':
texto = page.texto_a
popup.mudar_texto(texto)
popup.open()
elif posicao == 'b':
texto = page.texto_b
popup.mudar_texto(texto)
popup.open()
elif posicao == 'c':
texto = page.texto_c
popup.mudar_texto(texto)
popup.open()
elif posicao == 'd':
texto = page.texto_d
popup.mudar_texto(texto)
popup.open()
def label_local(self, parada):
self.label_parada = parada
| 33.267629
| 119
| 0.531586
| 19,440
| 163,710
| 4.239866
| 0.026029
| 0.054269
| 0.039067
| 0.060663
| 0.907138
| 0.901933
| 0.899215
| 0.898463
| 0.895175
| 0.893646
| 0
| 0.029881
| 0.363845
| 163,710
| 4,920
| 120
| 33.27439
| 0.761544
| 0.033223
| 0
| 0.950811
| 0
| 0
| 0.063148
| 0.003753
| 0
| 0
| 0
| 0.000203
| 0
| 1
| 0.144991
| false
| 0.004121
| 0.001803
| 0
| 0.283544
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b8019414c3d40c1cb92776750dd90021c99a6d48
| 11,683
|
py
|
Python
|
scripts/reshape_vcf_for_impute.py
|
shohei-kojima/MEGAnE
|
be8142b2245ff3e01e889912c51a44f8659ac187
|
[
"MIT"
] | 2
|
2022-03-30T00:59:56.000Z
|
2022-03-31T18:29:36.000Z
|
scripts/reshape_vcf_for_impute.py
|
shohei-kojima/MEGAnE
|
be8142b2245ff3e01e889912c51a44f8659ac187
|
[
"MIT"
] | null | null | null |
scripts/reshape_vcf_for_impute.py
|
shohei-kojima/MEGAnE
|
be8142b2245ff3e01e889912c51a44f8659ac187
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
'''
Author: Shohei Kojima @ RIKEN
Copyright (c) 2020 RIKEN
All Rights Reserved
See file LICENSE for details.
'''
import os,gzip,argparse,collections
import log,traceback
def resolve_overlap_in_a_vcf(f, outfname_base):
log.logger.debug('started')
try:
out_nonoverlap='%s_biallelic.vcf.gz' % outfname_base
# resolve overlap
if f[-7:] == '.vcf.gz' or f[-8:] == '.vcf.bgz':
infile=gzip.open(f)
gzip_judge=True
elif f[-4:] == '.vcf':
infile=open(f)
gzip_judge=False
else:
log.logger.error('please specify .vcf file')
exit(1)
d={}
filts={}
for line in infile:
if gzip_judge is True:
line=line.decode()
if not line[0] == '#':
ls=line.split('\t', 10)
if not ls[0] in d:
d[ls[0]]=collections.Counter()
d[ls[0]][int(ls[1])] += 1
filts[ls[2]]=ls[6]
hits={}
overlap_ins_ins=0
for chr in d:
for pos in d[chr]:
if d[chr][pos] >= 2:
if not chr in hits:
hits[chr]=set()
hits[chr].add(str(pos))
overlap_ins_ins += d[chr][pos]
if overlap_ins_ins >= 1:
log.logger.info('Multi-allelic ME in %s detected, n = %d' % (f, overlap_ins_ins))
infile.seek(0)
hits_lines={}
for chr in hits:
hits_lines[chr]={}
for pos in hits[chr]:
hits_lines[chr][pos]=[]
for line in infile:
if gzip_judge is True:
line=line.decode()
if not line[0] == '#':
ls=line.split('\t', 10)
if ls[0] in hits:
if ls[1] in hits[ls[0]]:
hits_lines[ls[0]][ls[1]].append(line)
keep={}
for chr in hits:
keep[chr]={}
for pos in hits[chr]:
keep[chr][pos]=[]
for chr in hits_lines:
for pos in hits_lines[chr]:
acs=[]
for line in hits_lines[chr][pos]:
ls=line.split('\t', 10)
for info in ls[7].split(';')[::-1]:
if 'AC=' in info:
ac=int(info.replace('AC=', ''))
break
filt=filts[ls[2]]
filt= 1 if filt == 'PASS' else 0
acs.append([filt, ac, line, ls[2]])
acs=sorted(acs)
acs=[ l[1:] for l in acs ]
keep[chr][pos]=acs[-1][1]
outchar=[]
outchar.append('keep=%s,%d' % (acs[-1][2], acs[-1][0]))
for ac,_,id in acs[:-1]:
outchar.append('discard=%s,%d' % (id, ac))
outchar=';'.join(outchar)
log.logger.debug(outchar)
infile.seek(0)
outfile=gzip.open(out_nonoverlap, 'wt')
for line in infile:
if gzip_judge is True:
line=line.decode()
if not line[0] == '#':
ls=line.split('\t', 10)
if ls[0] in keep:
if ls[1] in keep[ls[0]]:
if len(keep[ls[0]][ls[1]]) > 0:
outfile.write(keep[ls[0]][ls[1]])
keep[ls[0]][ls[1]]=''
else:
outfile.write(line)
else:
outfile.write(line)
else:
outfile.write(line)
infile.close()
outfile.close()
else:
log.logger.info('Multi-allelic ME in %s was not detected.' % f)
infile.seek(0)
outfile=gzip.open(out_nonoverlap, 'wt')
for line in infile:
if gzip_judge is True:
line=line.decode()
if not line[0] == '#':
ls=line.split('\t', 10)
outfile.write(line)
else:
outfile.write(line)
infile.close()
outfile.close()
return out_nonoverlap
except:
log.logger.error('\n'+ traceback.format_exc())
exit(1)
def resolve_overlap_between_vcf_vcf(ins, abs, cohort):
log.logger.debug('started')
try:
out_nonoverlap='%s_biallelic.vcf.gz' % cohort
# resolve overlap
f=ins
if f[-7:] == '.vcf.gz' or f[-8:] == '.vcf.bgz':
insfile=gzip.open(f)
gzip_judge=True
else:
insfile=open(f)
gzip_judge=False
f=abs
if f[-7:] == '.vcf.gz' or f[-8:] == '.vcf.bgz':
absfile=gzip.open(f)
gzip_judge=True
else:
absfile=open(f)
gzip_judge=False
d={}
filts={}
for line in insfile:
if gzip_judge is True:
line=line.decode()
if not line[0] == '#':
ls=line.split('\t', 10)
if not ls[0] in d:
d[ls[0]]=collections.Counter()
d[ls[0]][int(ls[1])] += 1
filts[ls[2]]=ls[6]
for line in absfile:
if gzip_judge is True:
line=line.decode()
if not line[0] == '#':
ls=line.split('\t', 10)
if not ls[0] in d:
d[ls[0]]=collections.Counter()
d[ls[0]][int(ls[1])] += 1
filts[ls[2]]=ls[6]
hits={}
overlap_ins_abs=0
for chr in d:
for pos in d[chr]:
if d[chr][pos] >= 2:
if not chr in hits:
hits[chr]=set()
hits[chr].add(str(pos))
overlap_ins_abs += d[chr][pos]
if overlap_ins_abs >= 1:
log.logger.info('Multi-allelic ME between %s and %s detected, n = %d' % (ins, abs, overlap_ins_abs))
insfile.seek(0)
absfile.seek(0)
hits_lines={}
for chr in hits:
hits_lines[chr]={}
for pos in hits[chr]:
hits_lines[chr][pos]=[]
for line in insfile:
if gzip_judge is True:
line=line.decode()
if not line[0] == '#':
ls=line.split('\t', 10)
if ls[0] in hits:
if ls[1] in hits[ls[0]]:
hits_lines[ls[0]][ls[1]].append(line)
for line in absfile:
if gzip_judge is True:
line=line.decode()
if not line[0] == '#':
ls=line.split('\t', 10)
if ls[0] in hits:
if ls[1] in hits[ls[0]]:
hits_lines[ls[0]][ls[1]].append(line)
keep={}
for chr in hits:
keep[chr]={}
for pos in hits[chr]:
keep[chr][pos]=[]
for chr in hits_lines:
for pos in hits_lines[chr]:
acs=[]
for line in hits_lines[chr][pos]:
ls=line.split('\t', 10)
for info in ls[7].split(';')[::-1]:
if 'AC=' in info:
ac=int(info.replace('AC=', ''))
break
filt=filts[ls[2]]
filt= 1 if filt == 'PASS' else 0
acs.append([filt, ac, line, ls[2]])
acs=sorted(acs)
acs=[ l[1:] for l in acs ]
keep[chr][pos]=acs[-1][1]
outchar=[]
outchar.append('keep=%s,%d' % (acs[-1][2], acs[-1][0]))
for ac,_,id in acs[:-1]:
outchar.append('discard=%s,%d' % (id, ac))
outchar=';'.join(outchar)
log.logger.debug(outchar)
insfile.seek(0)
absfile.seek(0)
outfile=gzip.open(out_nonoverlap, 'wt')
for line in insfile:
if gzip_judge is True:
line=line.decode()
if not line[0] == '#':
ls=line.split('\t', 10)
if ls[0] in keep:
if ls[1] in keep[ls[0]]:
if ls[2] in keep[ls[0]][ls[1]]:
outfile.write(keep[ls[0]][ls[1]])
else:
outfile.write(line)
else:
outfile.write(line)
else:
outfile.write(line)
for line in absfile:
if gzip_judge is True:
line=line.decode()
if not line[0] == '#':
ls=line.split('\t', 10)
if ls[0] in keep:
if ls[1] in keep[ls[0]]:
if ls[2] in keep[ls[0]][ls[1]]:
outfile.write(keep[ls[0]][ls[1]])
else:
outfile.write(line)
else:
outfile.write(line)
insfile.close()
absfile.close()
outfile.close()
else:
log.logger.info('Multi-allelic ME between %s and %s was not detected.' % (ins, abs))
insfile.seek(0)
absfile.seek(0)
outfile=gzip.open(out_nonoverlap, 'wt')
for line in insfile:
if gzip_judge is True:
line=line.decode()
if not line[0] == '#':
ls=line.split('\t', 10)
outfile.write(line)
else:
outfile.write(line)
for line in absfile:
if gzip_judge is True:
line=line.decode()
if not line[0] == '#':
ls=line.split('\t', 10)
outfile.write(line)
insfile.close()
absfile.close()
outfile.close()
return out_nonoverlap
except:
log.logger.error('\n'+ traceback.format_exc())
exit(1)
def convert_to_bed(final_outf):
log.logger.debug('started')
try:
outfname= final_outf[:-7] + '.bed.gz'
infile=gzip.open(final_outf)
outfile=gzip.open(outfname, 'wt')
for line in infile:
line=line.decode()
if not line[0] == '#':
ls=line.split('\t', 10)
for info in ls[7].split(';'):
if '0END=' in info:
end=info.replace('0END=', '')
break
start= int(ls[1]) - 1
outfile.write('%s\t%d\t%s\t%s\n' % (ls[0], start, end, ls[2]))
except:
log.logger.error('\n'+ traceback.format_exc())
exit(1)
| 35.084084
| 112
| 0.387828
| 1,300
| 11,683
| 3.424615
| 0.1
| 0.021563
| 0.030323
| 0.040431
| 0.855571
| 0.828616
| 0.815139
| 0.798068
| 0.783693
| 0.775157
| 0
| 0.028401
| 0.484636
| 11,683
| 332
| 113
| 35.189759
| 0.711011
| 0.013438
| 0
| 0.873288
| 0
| 0
| 0.041428
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.010274
| false
| 0.006849
| 0.006849
| 0
| 0.023973
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b80b042928d0f9853630d691fe8ff8831ee4fc4d
| 478
|
py
|
Python
|
webdbpress60/oldclass.py
|
zhao-embassy/learn_language
|
2719f27dea1877ba1da32f1c1d53ebedd5a81fdf
|
[
"FSFAP"
] | 48
|
2015-02-05T15:25:47.000Z
|
2022-01-07T05:52:03.000Z
|
webdbpress60/oldclass.py
|
zhao-embassy/learn_language
|
2719f27dea1877ba1da32f1c1d53ebedd5a81fdf
|
[
"FSFAP"
] | null | null | null |
webdbpress60/oldclass.py
|
zhao-embassy/learn_language
|
2719f27dea1877ba1da32f1c1d53ebedd5a81fdf
|
[
"FSFAP"
] | 21
|
2015-02-12T23:50:10.000Z
|
2019-12-12T08:25:35.000Z
|
# coding:utf-8
"""
old-classとnew-classのメソッド解決順序に関する実験
"""
class Base:
x = "base"
class D1(Base):
pass
class D2(Base):
x = "D2"
class D3(D1, D2):
pass
print D3.x #-> base
class Base(object):
x = "base"
class D1(Base):
pass
class D2(Base):
x = "D2"
class D3(D1, D2):
pass
print D3.x #-> D2
class Base(object):
x = "base"
class D1(Base):
pass
class D2(object):
x = "D2"
class D3(D1, D2):
pass
print D3.x #-> base
| 9.192308
| 34
| 0.552301
| 74
| 478
| 3.567568
| 0.202703
| 0.094697
| 0.151515
| 0.136364
| 0.776515
| 0.776515
| 0.776515
| 0.776515
| 0.776515
| 0.776515
| 0
| 0.067251
| 0.284519
| 478
| 51
| 35
| 9.372549
| 0.704678
| 0.064854
| 0
| 0.925926
| 0
| 0
| 0.045
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.222222
| 0
| null | null | 0.111111
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
62ca7e74bb445603968d17554b8ea3bd9a0e3d32
| 75,362
|
py
|
Python
|
orio/module/spmv/codegen.py
|
phrb/orio_experiments
|
934ba192301cb4e23d98b9f79e91799152bf76b1
|
[
"MIT"
] | null | null | null |
orio/module/spmv/codegen.py
|
phrb/orio_experiments
|
934ba192301cb4e23d98b9f79e91799152bf76b1
|
[
"MIT"
] | null | null | null |
orio/module/spmv/codegen.py
|
phrb/orio_experiments
|
934ba192301cb4e23d98b9f79e91799152bf76b1
|
[
"MIT"
] | null | null | null |
#
# The code generator for the SpMV transformation module
#
import re, sys
import arg_info
from orio.main.util.globals import *
# -------------------------------------------
class CodeGen:
"""The code generator for the SpMV transformation module."""
def __init__(self, ainfo):
"""To instantiate a code generator instance"""
self.ainfo = ainfo
# ------------------------------------------------------
def __generateParInodeCode(self):
"""Generate an inode optimized code that is parallel"""
return self.__generateInodeCode(True)
def __generateInodeCode(self, parallelize=False):
"""Generate an inode optimized code that is sequential"""
# get the argument information
ainfo = self.ainfo
# start generating the optimized code
code = ""
# the inode loop
if parallelize:
iarr = "%sc" % ainfo.in_matrix
iarrs = [iarr] + [
"%s%sc" % (ainfo.in_matrix, i)
for i in range(1, ainfo.out_unroll_factor)
]
iarr_inits = [
"%s=%s+clength" % (a, iarrs[i]) for i, a in enumerate(iarrs[1:])
]
ovec = "%sc" % ainfo.out_vector
ovecs = [
"%s%sc" % (ainfo.out_vector, i)
for i in range(0, ainfo.out_unroll_factor)
]
ovec_inits = ["%s=%s" % (v, ainfo.init_val) for v in ovecs]
ovec_stores = [
"%sc[%s]=%s" % (ainfo.out_vector, i, v) for i, v in enumerate(ovecs)
]
col_inds = "%sc" % ainfo.col_inds
code += "register int n;\n"
code += "omp_set_num_threads(%s);\n" % ainfo.num_threads
code += (
"#pragma omp parallel for shared(%s,%s,%s,%s,%s,%s,%s) private(n)\n"
% (
ainfo.out_vector,
ainfo.in_vector,
ainfo.in_matrix,
ainfo.row_inds,
ainfo.col_inds,
ainfo.total_inodes,
ainfo.inode_rows,
)
)
code += "for (n=0; n<=%s-1; n+=1) {\n" % ainfo.total_inodes
code += " int start_row=%s[n];\n" % ainfo.inode_rows
code += " register int rlength=%s[n+1]-start_row;\n" % ainfo.inode_rows
code += " int first_col=%s[start_row];\n" % ainfo.row_inds
code += (
" register int clength=%s[start_row+1]-first_col;\n" % ainfo.row_inds
)
code += " %s *%s=&%s[start_row];\n" % (
ainfo.data_type,
ovec,
ainfo.out_vector,
)
code += " int *%s=&%s[first_col];\n" % (col_inds, ainfo.col_inds)
code += " %s *%s=&%s[first_col];\n" % (
ainfo.data_type,
iarr,
ainfo.in_matrix,
)
else:
iarr = ainfo.in_matrix
iarrs = [iarr] + [
"%s%s" % (ainfo.in_matrix, i) for i in range(1, ainfo.out_unroll_factor)
]
iarr_inits = [
"%s=%s+clength" % (a, iarrs[i]) for i, a in enumerate(iarrs[1:])
]
ovec = ainfo.out_vector
ovecs = [
"%s%s" % (ainfo.out_vector, i)
for i in range(0, ainfo.out_unroll_factor)
]
ovec_inits = ["%s=%s" % (v, ainfo.init_val) for v in ovecs]
ovec_stores = [
"%s[%s]=%s" % (ainfo.out_vector, i, v) for i, v in enumerate(ovecs)
]
col_inds = ainfo.col_inds
code += "register int n=%s;\n" % ainfo.total_inodes
code += "while (n--) {\n"
code += " register int rlength=%s[0]; %s+=1;\n" % (
ainfo.inode_sizes,
ainfo.inode_sizes,
)
code += " register int clength=%s[1]-%s[0]; %s+=rlength;\n" % (
ainfo.row_inds,
ainfo.row_inds,
ainfo.row_inds,
)
ivecs = [
"%s%s" % (ainfo.in_vector, i) for i in range(0, ainfo.in_unroll_factor)
]
ivec_refs = [
"%s[%s[%s]]" % (ainfo.in_vector, col_inds, i)
for i in range(0, ainfo.in_unroll_factor)
]
# the outer orio.main.loop
code += " register int i=0;\n"
code += " while (i<=rlength-%s) {\n" % ainfo.out_unroll_factor
if len(iarr_inits) > 0:
code += " %s %s;\n" % (
ainfo.data_type,
",".join(map(lambda x: "*" + x, iarr_inits)),
)
code += " %s %s;\n" % (ainfo.data_type, ",".join(ovec_inits))
# the inner orio.main.main loop
code += " register int j=0;\n"
code += " while (j<=clength-%s) {\n" % ainfo.in_unroll_factor
used_ivecs = ivec_refs
if ainfo.out_unroll_factor > 1:
code += " %s %s;\n" % (
ainfo.data_type,
",".join(["%s=%s" % (v, r) for v, r in zip(ivecs, ivec_refs)]),
)
used_ivecs = ivecs
for ov, ia in zip(ovecs, iarrs):
code += " %s += " % ov
for i, iv in enumerate(used_ivecs):
if i:
code += " + "
code += "%s[%s]*%s" % (ia, i, iv)
code += ";\n"
code += " %s;\n" % "; ".join(
["%s+=%s" % (a, ainfo.in_unroll_factor) for a in iarrs]
)
code += " %s+=%s;\n" % (col_inds, ainfo.in_unroll_factor)
code += " j+=%s;\n" % ainfo.in_unroll_factor
code += " }\n"
# the inner orio.main.cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=clength-1) {\n"
used_ivecs = ivec_refs[:1]
if ainfo.out_unroll_factor > 1:
code += " %s %s=%s;\n" % (ainfo.data_type, ivecs[0], ivec_refs[0])
used_ivecs = ivecs[:1]
for ov, ia in zip(ovecs, iarrs):
code += " %s += " % ov
for i, iv in enumerate(used_ivecs):
if i:
code += " + "
code += "%s[%s]*%s" % (ia, i, iv)
code += ";\n"
code += " %s;\n" % "; ".join(["%s+=1" % a for a in iarrs])
code += " %s+=1;\n" % col_inds
code += " j+=1;\n"
code += " }\n"
# the epiloque of the outer orio.main.loop
code += " %s;\n" % "; ".join(ovec_stores)
code += " %s+=%s;\n" % (ovec, ainfo.out_unroll_factor)
if ainfo.out_unroll_factor > 1:
code += " %s=%s;\n" % (iarr, iarrs[-1])
if ainfo.out_unroll_factor == 2:
code += " %s+=clength;\n" % col_inds
else:
code += " %s+=%s*clength;\n" % (
col_inds,
ainfo.out_unroll_factor - 1,
)
code += " i+=%s;\n" % ainfo.out_unroll_factor
code += " }\n"
# the outer cleanup loop
if ainfo.out_unroll_factor > 1:
code += " while (i<=rlength-1) {\n"
code += " %s %s;\n" % (ainfo.data_type, ovec_inits[0])
# the inner cleanup-orio.main.loop
code += " register int j=0;\n"
code += " while (j<=clength-%s) {\n" % ainfo.in_unroll_factor
for ov, ia in zip(ovecs[:1], iarrs[:1]):
code += " %s += " % ov
for i, iv in enumerate(ivec_refs):
if i:
code += " + "
code += "%s[%s]*%s" % (ia, i, iv)
code += ";\n"
code += " %s+=%s;\n" % (iarr, ainfo.in_unroll_factor)
code += " %s+=%s;\n" % (col_inds, ainfo.in_unroll_factor)
code += " j+=%s;\n" % ainfo.in_unroll_factor
code += " }\n"
# the inner cleanup-cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=clength-1) {\n"
for ov, ia in zip(ovecs[:1], iarrs[:1]):
code += " %s += " % ov
for i, iv in enumerate(ivec_refs[:1]):
if i:
code += " + "
code += "%s[%s]*%s" % (ia, i, iv)
code += ";\n"
code += " %s+=1;\n" % iarr
code += " %s+=1;\n" % col_inds
code += " j+=1;\n"
code += " }\n"
# the epilogue of the outer cleanup loop
code += " %s;\n" % ovec_stores[0]
code += " %s+=1;\n" % ovec
code += " i+=1;\n"
code += " }\n"
# close the inode loop
code += "}\n"
# to enclose with brackets and to correct indentation
code = "\n{\n" + re.sub("\n", "\n ", "\n" + code) + "\n}\n"
# return the generated code
return code
# ------------------------------------------------------
def __generateParGccSimdInodeCode(self):
"""Generate an inode optimized code that is parallel and GCC simdized"""
return self.__generateGccSimdInodeCode(True)
def __generateGccSimdInodeCode(self, parallelize=False):
"""Generate an inode optimized code that is sequential and GCC simdized"""
# get the argument information
ainfo = self.ainfo
# start generating the optimized code
code = ""
# the inode loop
code += "typedef double v2df __attribute__ ((vector_size(16)));\n"
if parallelize:
iarr = "%sc" % ainfo.in_matrix
iarrs = [iarr] + [
"%s%sc" % (ainfo.in_matrix, i)
for i in range(1, ainfo.out_unroll_factor)
]
iarr_inits = [
"%s=%s+clength" % (a, iarrs[i]) for i, a in enumerate(iarrs[1:])
]
ovec = "%sc" % ainfo.out_vector
ovecs = [
"%s%sc" % (ainfo.out_vector, i)
for i in range(0, ainfo.out_unroll_factor)
]
ovec_inits = ["%s=%s" % (v, ainfo.init_val) for v in ovecs]
ovec_stores = [
"%sc[%s]=%s" % (ainfo.out_vector, i, v) for i, v in enumerate(ovecs)
]
col_inds = "%sc" % ainfo.col_inds
code += "register int n;\n"
code += "omp_set_num_threads(%s);\n" % ainfo.num_threads
code += (
"#pragma omp parallel for shared(%s,%s,%s,%s,%s,%s,%s) private(n)\n"
% (
ainfo.out_vector,
ainfo.in_vector,
ainfo.in_matrix,
ainfo.row_inds,
ainfo.col_inds,
ainfo.total_inodes,
ainfo.inode_rows,
)
)
code += "for (n=0; n<=%s-1; n+=1) {\n" % ainfo.total_inodes
code += " int start_row=%s[n];\n" % ainfo.inode_rows
code += " register int rlength=%s[n+1]-start_row;\n" % ainfo.inode_rows
code += " int first_col=%s[start_row];\n" % ainfo.row_inds
code += (
" register int clength=%s[start_row+1]-first_col;\n" % ainfo.row_inds
)
code += " %s *%s=&%s[start_row];\n" % (
ainfo.data_type,
ovec,
ainfo.out_vector,
)
code += " int *%s=&%s[first_col];\n" % (col_inds, ainfo.col_inds)
code += " %s *%s=&%s[first_col];\n" % (
ainfo.data_type,
iarr,
ainfo.in_matrix,
)
else:
iarr = ainfo.in_matrix
iarrs = [iarr] + [
"%s%s" % (ainfo.in_matrix, i) for i in range(1, ainfo.out_unroll_factor)
]
iarr_inits = [
"%s=%s+clength" % (a, iarrs[i]) for i, a in enumerate(iarrs[1:])
]
ovec = ainfo.out_vector
ovecs = [
"%s%s" % (ainfo.out_vector, i)
for i in range(0, ainfo.out_unroll_factor)
]
ovec_inits = ["%s=%s" % (v, ainfo.init_val) for v in ovecs]
ovec_stores = [
"%s[%s]=%s" % (ainfo.out_vector, i, v) for i, v in enumerate(ovecs)
]
col_inds = ainfo.col_inds
code += "register int n=%s;\n" % ainfo.total_inodes
code += "while (n--) {\n"
code += " register int rlength=%s[0]; %s+=1;\n" % (
ainfo.inode_sizes,
ainfo.inode_sizes,
)
code += " register int clength=%s[1]-%s[0]; %s+=rlength;\n" % (
ainfo.row_inds,
ainfo.row_inds,
ainfo.row_inds,
)
ivecs = [
"%s%s" % (ainfo.in_vector, i) for i in range(0, ainfo.in_unroll_factor)
]
ivec_refs = [
"%s[%s[%s]]" % (ainfo.in_vector, col_inds, i)
for i in range(0, ainfo.in_unroll_factor)
]
viarr = "%sv" % iarr
viarrs = ["%sv" % a for a in iarrs]
viarr_inits = ["%s=(v2df *)%s" % (r, a) for r, a in zip(viarrs, iarrs)]
vovecs = ["%sv" % v for v in ovecs]
vovec_inits = [
"%s={%s,%s}" % (r, ainfo.init_val, ainfo.init_val) for r in vovecs
]
vtovecs = ["%st" % v for v in ovecs]
vtovec_decls = [
"*%s=(%s *)&%s" % (v, ainfo.data_type, r) for v, r in zip(vtovecs, vovecs)
]
vovec_stores = ["%s=%s[0]+%s[1]" % (r, t, t) for r, t in zip(ovecs, vtovecs)]
vivecs = [
"%s%sv" % (ainfo.in_vector, i) for i in range(0, ainfo.in_unroll_factor / 2)
]
# the outer orio.main.loop
code += " register int i=0;\n"
code += " while (i<=rlength-%s) {\n" % ainfo.out_unroll_factor
if len(iarr_inits) > 0:
code += " %s %s;\n" % (
ainfo.data_type,
",".join(map(lambda x: "*" + x, iarr_inits)),
)
code += " v2df %s;\n" % ",".join([("*" + i) for i in viarr_inits])
code += " v2df %s;\n" % ",".join(vovec_inits)
# the inner orio.main.main loop
code += " register int j=0;\n"
code += " while (j<=clength-%s) {\n" % ainfo.in_unroll_factor
code += " v2df %s;\n" % ",".join(
"%s={%s,%s}" % (vivecs[i], ivec_refs[2 * i], ivec_refs[2 * i + 1])
for i in range(0, ainfo.in_unroll_factor / 2)
)
for vov, via in zip(vovecs, viarrs):
code += " %s += " % vov
for i, viv in enumerate(vivecs):
if i:
code += " + "
code += "%s[%s]*%s" % (via, i, viv)
code += ";\n"
code += " %s;\n" % "; ".join(
["%s+=%s" % (a, ainfo.in_unroll_factor / 2) for a in viarrs]
)
code += " %s+=%s;\n" % (col_inds, ainfo.in_unroll_factor)
code += " j+=%s;\n" % ainfo.in_unroll_factor
code += " }\n"
# vector values assignments
code += " %s;\n" % "; ".join(["%s+=j" % a for a in iarrs])
code += " %s %s;\n" % (ainfo.data_type, ",".join(vtovec_decls))
code += " %s %s;\n" % (ainfo.data_type, ",".join(vovec_stores))
# the inner orio.main.cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=clength-1) {\n"
used_ivecs = ivec_refs[:1]
if ainfo.out_unroll_factor > 1:
code += " %s %s=%s;\n" % (ainfo.data_type, ivecs[0], ivec_refs[0])
used_ivecs = ivecs[:1]
for ov, ia in zip(ovecs, iarrs):
code += " %s += " % ov
for i, iv in enumerate(used_ivecs):
if i:
code += " + "
code += "%s[%s]*%s" % (ia, i, iv)
code += ";\n"
code += " %s;\n" % "; ".join(["%s+=1" % a for a in iarrs])
code += " %s+=1;\n" % col_inds
code += " j+=1;\n"
code += " }\n"
# the epiloque of the outer orio.main.loop
code += " %s;\n" % "; ".join(ovec_stores)
code += " %s+=%s;\n" % (ovec, ainfo.out_unroll_factor)
if ainfo.out_unroll_factor > 1:
code += " %s=%s;\n" % (iarr, iarrs[-1])
if ainfo.out_unroll_factor == 2:
code += " %s+=clength;\n" % col_inds
else:
code += " %s+=%s*clength;\n" % (
col_inds,
ainfo.out_unroll_factor - 1,
)
code += " i+=%s;\n" % ainfo.out_unroll_factor
code += " }\n"
# the outer cleanup loop
if ainfo.out_unroll_factor > 1:
code += " while (i<=rlength-1) {\n"
code += " v2df *%sv=(v2df *)%s;\n" % (iarr, iarr)
code += " v2df %s;\n" % vovec_inits[0]
# the inner cleanup-orio.main.loop
code += " register int j=0;\n"
code += " while (j<=clength-%s) {\n" % ainfo.in_unroll_factor
code += " v2df %s;\n" % ",".join(
"%s={%s,%s}" % (vivecs[i], ivec_refs[2 * i], ivec_refs[2 * i + 1])
for i in range(0, ainfo.in_unroll_factor / 2)
)
for vov, via in zip(vovecs[:1], viarrs[:1]):
code += " %s += " % vov
for i, viv in enumerate(vivecs):
if i:
code += " + "
code += "%s[%s]*%s" % (via, i, viv)
code += ";\n"
code += " %s+=%s;\n" % (viarrs[0], ainfo.in_unroll_factor / 2)
code += " %s+=%s;\n" % (col_inds, ainfo.in_unroll_factor)
code += " j+=%s;\n" % ainfo.in_unroll_factor
code += " }\n"
# vector values assignments
code += " %s+=j;\n" % iarr
code += " %s %s;\n" % (ainfo.data_type, vtovec_decls[0])
code += " %s %s;\n" % (ainfo.data_type, vovec_stores[0])
# the inner cleanup-cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=clength-1) {\n"
for ov, ia in zip(ovecs[:1], iarrs[:1]):
code += " %s += " % ov
for i, iv in enumerate(ivec_refs[:1]):
if i:
code += " + "
code += "%s[%s]*%s" % (ia, i, iv)
code += ";\n"
code += " %s+=1;\n" % iarr
code += " %s+=1;\n" % col_inds
code += " j+=1;\n"
code += " }\n"
# the epilogue of the outer cleanup loop
code += " %s;\n" % ovec_stores[0]
code += " %s+=1;\n" % ovec
code += " i+=1;\n"
code += " }\n"
# close the inode loop
code += "}\n"
# to enclose with brackets and to correct indentation
code = "\n{\n" + re.sub("\n", "\n ", "\n" + code) + "\n}\n"
# return the generated code
return code
# ------------------------------------------------------
def __generateParSseSimdInodeCode(self):
"""Generate an inode optimized code that is parallel and SSE simdized"""
return self.__generateSseSimdInodeCode(True)
def __generateSseSimdInodeCode(self, parallelize=False):
"""Generate an inode optimized code that is sequential and SSE simdized"""
# get the argument information
ainfo = self.ainfo
# start generating the optimized code
code = ""
code += "%s tbuf[%s];\n" % (ainfo.data_type, 2 * ainfo.out_unroll_factor)
# the inode loop
if parallelize:
iarr = "%sc" % ainfo.in_matrix
iarrs = [iarr] + [
"%s%sc" % (ainfo.in_matrix, i)
for i in range(1, ainfo.out_unroll_factor)
]
iarr_inits = [
"%s=%s+clength" % (a, iarrs[i]) for i, a in enumerate(iarrs[1:])
]
ovec = "%sc" % ainfo.out_vector
ovecs = [
"%s%sc" % (ainfo.out_vector, i)
for i in range(0, ainfo.out_unroll_factor)
]
ovec_inits = ["%s=%s" % (v, ainfo.init_val) for v in ovecs]
ovec_stores = [
"%sc[%s]=%s" % (ainfo.out_vector, i, v) for i, v in enumerate(ovecs)
]
col_inds = "%sc" % ainfo.col_inds
code += "register int n;\n"
code += "omp_set_num_threads(%s);\n" % ainfo.num_threads
code += (
"#pragma omp parallel for shared(%s,%s,%s,%s,%s,%s,%s) private(n,tbuf)\n"
% (
ainfo.out_vector,
ainfo.in_vector,
ainfo.in_matrix,
ainfo.row_inds,
ainfo.col_inds,
ainfo.total_inodes,
ainfo.inode_rows,
)
)
code += "for (n=0; n<=%s-1; n+=1) {\n" % ainfo.total_inodes
code += " int start_row=%s[n];\n" % ainfo.inode_rows
code += " register int rlength=%s[n+1]-start_row;\n" % ainfo.inode_rows
code += " int first_col=%s[start_row];\n" % ainfo.row_inds
code += (
" register int clength=%s[start_row+1]-first_col;\n" % ainfo.row_inds
)
code += " %s *%s=&%s[start_row];\n" % (
ainfo.data_type,
ovec,
ainfo.out_vector,
)
code += " int *%s=&%s[first_col];\n" % (col_inds, ainfo.col_inds)
code += " %s *%s=&%s[first_col];\n" % (
ainfo.data_type,
iarr,
ainfo.in_matrix,
)
else:
iarr = ainfo.in_matrix
iarrs = [iarr] + [
"%s%s" % (ainfo.in_matrix, i) for i in range(1, ainfo.out_unroll_factor)
]
iarr_inits = [
"%s=%s+clength" % (a, iarrs[i]) for i, a in enumerate(iarrs[1:])
]
ovec = ainfo.out_vector
ovecs = [
"%s%s" % (ainfo.out_vector, i)
for i in range(0, ainfo.out_unroll_factor)
]
ovec_inits = ["%s=%s" % (v, ainfo.init_val) for v in ovecs]
ovec_stores = [
"%s[%s]=%s" % (ainfo.out_vector, i, v) for i, v in enumerate(ovecs)
]
col_inds = ainfo.col_inds
code += "register int n=%s;\n" % ainfo.total_inodes
code += "while (n--) {\n"
code += " register int rlength=%s[0]; %s+=1;\n" % (
ainfo.inode_sizes,
ainfo.inode_sizes,
)
code += " register int clength=%s[1]-%s[0]; %s+=rlength;\n" % (
ainfo.row_inds,
ainfo.row_inds,
ainfo.row_inds,
)
ivecs = [
"%s%s" % (ainfo.in_vector, i) for i in range(0, ainfo.in_unroll_factor)
]
ivec_refs = [
"%s[%s[%s]]" % (ainfo.in_vector, col_inds, i)
for i in range(0, ainfo.in_unroll_factor)
]
vovecs = ["%sv" % v for v in ovecs]
vovec_inits = ["%s=_mm_set1_pd(%s)" % (r, ainfo.init_val) for r in vovecs]
vovec_assgs = [
"_mm_storer_pd(&tbuf[%s],%s)" % (2 * i, r) for i, r in enumerate(vovecs)
]
vovec_stores = [
"%s=tbuf[%s]+tbuf[%s]" % (v, 2 * i, 2 * i + 1) for i, v in enumerate(ovecs)
]
viarrs = [
["%sv%s" % (a, i) for i in range(ainfo.in_unroll_factor / 2)] for a in iarrs
]
viarr_inits = [
["%s=_mm_load_pd(&%s[%s])" % (r, a, 2 * i) for i, r in enumerate(rs)]
for rs, a in zip(viarrs, iarrs)
]
vivecs = [
"%s%sv" % (ainfo.in_vector, i) for i in range(0, ainfo.in_unroll_factor / 2)
]
# the outer orio.main.loop
code += " register int i=0;\n"
code += " while (i<=rlength-%s) {\n" % ainfo.out_unroll_factor
if len(iarr_inits) > 0:
code += " %s %s;\n" % (
ainfo.data_type,
",".join(map(lambda x: "*" + x, iarr_inits)),
)
code += " __m128d %s;\n" % ",".join(vovec_inits)
# the inner orio.main.main loop
code += " register int j=0;\n"
code += " while (j<=clength-%s) {\n" % ainfo.in_unroll_factor
code += " __m128d %s;\n" % ",".join(
[
"%s=_mm_setr_pd(%s,%s)"
% (vivecs[i], ivec_refs[2 * i], ivec_refs[2 * i + 1])
for i in range(0, ainfo.in_unroll_factor / 2)
]
)
for ins in viarr_inits:
code += " __m128d %s;\n" % ",".join(ins)
for vov, vias in zip(vovecs, viarrs):
for viv, via in zip(vivecs, vias):
code += " %s=_mm_add_pd(%s,_mm_mul_pd(%s,%s));\n" % (
vov,
vov,
via,
viv,
)
code += " %s;\n" % "; ".join(
["%s+=%s" % (a, ainfo.in_unroll_factor) for a in iarrs]
)
code += " %s+=%s;\n" % (col_inds, ainfo.in_unroll_factor)
code += " j+=%s;\n" % ainfo.in_unroll_factor
code += " }\n"
# vector values assignments
code += " %s;\n" % "; ".join(vovec_assgs)
code += " %s %s;\n" % (ainfo.data_type, ",".join(vovec_stores))
# the inner orio.main.cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=clength-1) {\n"
used_ivecs = ivec_refs[:1]
if ainfo.out_unroll_factor > 1:
code += " %s %s=%s;\n" % (ainfo.data_type, ivecs[0], ivec_refs[0])
used_ivecs = ivecs[:1]
for ov, ia in zip(ovecs, iarrs):
code += " %s += " % ov
for i, iv in enumerate(used_ivecs):
if i:
code += " + "
code += "%s[%s]*%s" % (ia, i, iv)
code += ";\n"
code += " %s;\n" % "; ".join(["%s+=1" % a for a in iarrs])
code += " %s+=1;\n" % col_inds
code += " j+=1;\n"
code += " }\n"
# the epiloque of the outer orio.main.loop
code += " %s;\n" % "; ".join(ovec_stores)
code += " %s+=%s;\n" % (ovec, ainfo.out_unroll_factor)
if ainfo.out_unroll_factor > 1:
code += " %s=%s;\n" % (iarr, iarrs[-1])
if ainfo.out_unroll_factor == 2:
code += " %s+=clength;\n" % col_inds
else:
code += " %s+=%s*clength;\n" % (
col_inds,
ainfo.out_unroll_factor - 1,
)
code += " i+=%s;\n" % ainfo.out_unroll_factor
code += " }\n"
# the outer cleanup loop
if ainfo.out_unroll_factor > 1:
code += " while (i<=rlength-1) {\n"
code += " __m128d %s;\n" % vovec_inits[0]
# the inner cleanup-orio.main.loop
code += " register int j=0;\n"
code += " while (j<=clength-%s) {\n" % ainfo.in_unroll_factor
code += " __m128d %s;\n" % ",".join(
[
"%s=_mm_setr_pd(%s,%s)"
% (vivecs[i], ivec_refs[2 * i], ivec_refs[2 * i + 1])
for i in range(0, ainfo.in_unroll_factor / 2)
]
)
code += " __m128d %s;\n" % ",".join(viarr_inits[0])
for vov, vias in zip(vovecs[:1], viarrs[:1]):
for viv, via in zip(vivecs, vias):
code += " %s=_mm_add_pd(%s,_mm_mul_pd(%s,%s));\n" % (
vov,
vov,
via,
viv,
)
code += " %s+=%s;\n" % (iarrs[0], ainfo.in_unroll_factor)
code += " %s+=%s;\n" % (col_inds, ainfo.in_unroll_factor)
code += " j+=%s;\n" % ainfo.in_unroll_factor
code += " }\n"
# vector values assignments
code += " %s;\n" % vovec_assgs[0]
code += " %s %s;\n" % (ainfo.data_type, vovec_stores[0])
# the inner cleanup-cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=clength-1) {\n"
for ov, ia in zip(ovecs[:1], iarrs[:1]):
code += " %s += " % ov
for i, iv in enumerate(ivec_refs[:1]):
if i:
code += " + "
code += "%s[%s]*%s" % (ia, i, iv)
code += ";\n"
code += " %s+=1;\n" % iarr
code += " %s+=1;\n" % col_inds
code += " j+=1;\n"
code += " }\n"
# the epilogue of the outer cleanup loop
code += " %s;\n" % ovec_stores[0]
code += " %s+=1;\n" % ovec
code += " i+=1;\n"
code += " }\n"
# close the inode loop
code += "}\n"
# to enclose with brackets and to correct indentation
code = "\n{\n" + re.sub("\n", "\n ", "\n" + code) + "\n}\n"
# return the generated code
return code
# ------------------------------------------------------
def __generateParXlcSimdInodeCode(self):
"""Generate an inode optimized code that is parallel and XLC simdized"""
return self.__generateXlcSimdInodeCode(True)
def __generateXlcSimdInodeCode(self, parallelize=False):
"""Generate an inode optimized code that is sequential and XLC simdized"""
# get the argument information
ainfo = self.ainfo
# start generating the optimized code
code = ""
code += "%s zerobuf[2]={%s,%s};\n" % (
ainfo.data_type,
ainfo.init_val,
ainfo.init_val,
)
code += "%s tbuf[%s];\n" % (ainfo.data_type, 2 * ainfo.out_unroll_factor)
code += "%s xbuf[%s];\n" % (ainfo.data_type, ainfo.in_unroll_factor)
# the inode loop
if parallelize:
iarr = "%sc" % ainfo.in_matrix
iarrs = [iarr] + [
"%s%sc" % (ainfo.in_matrix, i)
for i in range(1, ainfo.out_unroll_factor)
]
iarr_inits = [
"%s=%s+clength" % (a, iarrs[i]) for i, a in enumerate(iarrs[1:])
]
ovec = "%sc" % ainfo.out_vector
ovecs = [
"%s%sc" % (ainfo.out_vector, i)
for i in range(0, ainfo.out_unroll_factor)
]
ovec_inits = ["%s=%s" % (v, ainfo.init_val) for v in ovecs]
ovec_stores = [
"%sc[%s]=%s" % (ainfo.out_vector, i, v) for i, v in enumerate(ovecs)
]
col_inds = "%sc" % ainfo.col_inds
code += "register int n;\n"
code += "omp_set_num_threads(%s);\n" % ainfo.num_threads
code += (
"#pragma omp parallel for shared(%s,%s,%s,%s,%s,%s,%s,zerobuf) private(n,tbuf,xbuf)\n"
% (
ainfo.out_vector,
ainfo.in_vector,
ainfo.in_matrix,
ainfo.row_inds,
ainfo.col_inds,
ainfo.total_inodes,
ainfo.inode_rows,
)
)
code += "for (n=0; n<=%s-1; n+=1) {\n" % ainfo.total_inodes
code += " int start_row=%s[n];\n" % ainfo.inode_rows
code += " register int rlength=%s[n+1]-start_row;\n" % ainfo.inode_rows
code += " int first_col=%s[start_row];\n" % ainfo.row_inds
code += (
" register int clength=%s[start_row+1]-first_col;\n" % ainfo.row_inds
)
code += " %s *%s=&%s[start_row];\n" % (
ainfo.data_type,
ovec,
ainfo.out_vector,
)
code += " int *%s=&%s[first_col];\n" % (col_inds, ainfo.col_inds)
code += " %s *%s=&%s[first_col];\n" % (
ainfo.data_type,
iarr,
ainfo.in_matrix,
)
else:
iarr = ainfo.in_matrix
iarrs = [iarr] + [
"%s%s" % (ainfo.in_matrix, i) for i in range(1, ainfo.out_unroll_factor)
]
iarr_inits = [
"%s=%s+clength" % (a, iarrs[i]) for i, a in enumerate(iarrs[1:])
]
ovec = ainfo.out_vector
ovecs = [
"%s%s" % (ainfo.out_vector, i)
for i in range(0, ainfo.out_unroll_factor)
]
ovec_inits = ["%s=%s" % (v, ainfo.init_val) for v in ovecs]
ovec_stores = [
"%s[%s]=%s" % (ainfo.out_vector, i, v) for i, v in enumerate(ovecs)
]
col_inds = ainfo.col_inds
code += "register int n=%s;\n" % ainfo.total_inodes
code += "while (n--) {\n"
code += " register int rlength=%s[0]; %s+=1;\n" % (
ainfo.inode_sizes,
ainfo.inode_sizes,
)
code += " register int clength=%s[1]-%s[0]; %s+=rlength;\n" % (
ainfo.row_inds,
ainfo.row_inds,
ainfo.row_inds,
)
ivecs = [
"%s%s" % (ainfo.in_vector, i) for i in range(0, ainfo.in_unroll_factor)
]
ivec_refs = [
"%s[%s[%s]]" % (ainfo.in_vector, col_inds, i)
for i in range(0, ainfo.in_unroll_factor)
]
vovecs = ["%sv" % v for v in ovecs]
vovec_inits = ["%s=__lfpd(zerobuf)" % (r) for r in vovecs]
vovec_assgs = [
"__stfpd(&tbuf[%s],%s)" % (2 * i, r) for i, r in enumerate(vovecs)
]
vovec_stores = [
"%s=tbuf[%s]+tbuf[%s]" % (v, 2 * i, 2 * i + 1) for i, v in enumerate(ovecs)
]
viarrs = [
["%sv%s" % (a, i) for i in range(ainfo.in_unroll_factor / 2)] for a in iarrs
]
viarr_inits = [
["%s=__lfpd(&%s[%s])" % (r, a, 2 * i) for i, r in enumerate(rs)]
for rs, a in zip(viarrs, iarrs)
]
vivecs = [
"%s%sv" % (ainfo.in_vector, i) for i in range(0, ainfo.in_unroll_factor / 2)
]
# the outer orio.main.loop
code += " register int i=0;\n"
code += " while (i<=rlength-%s) {\n" % ainfo.out_unroll_factor
if len(iarr_inits) > 0:
code += " %s %s;\n" % (
ainfo.data_type,
",".join(map(lambda x: "*" + x, iarr_inits)),
)
code += " double _Complex %s;\n" % ",".join(vovec_inits)
# the inner orio.main.main loop
code += " register int j=0;\n"
code += " while (j<=clength-%s) {\n" % ainfo.in_unroll_factor
code += " %s;\n" % "; ".join(
"xbuf[%s]=%s" % (i, ivec_refs[i]) for i in range(ainfo.in_unroll_factor)
)
code += " double _Complex %s;\n" % ",".join(
[
"%s=__lfpd(&xbuf[%s])" % (vivecs[i], 2 * i)
for i in range(0, ainfo.in_unroll_factor / 2)
]
)
for ins in viarr_inits:
code += " double _Complex %s;\n" % ",".join(ins)
for vov, vias in zip(vovecs, viarrs):
for viv, via in zip(vivecs, vias):
code += " %s=__fpmadd(%s,%s,%s);\n" % (vov, vov, via, viv)
code += " %s;\n" % "; ".join(
["%s+=%s" % (a, ainfo.in_unroll_factor) for a in iarrs]
)
code += " %s+=%s;\n" % (col_inds, ainfo.in_unroll_factor)
code += " j+=%s;\n" % ainfo.in_unroll_factor
code += " }\n"
# vector values assignments
code += " %s;\n" % "; ".join(vovec_assgs)
code += " %s %s;\n" % (ainfo.data_type, ",".join(vovec_stores))
# the inner orio.main.cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=clength-1) {\n"
used_ivecs = ivec_refs[:1]
if ainfo.out_unroll_factor > 1:
code += " %s %s=%s;\n" % (ainfo.data_type, ivecs[0], ivec_refs[0])
used_ivecs = ivecs[:1]
for ov, ia in zip(ovecs, iarrs):
code += " %s += " % ov
for i, iv in enumerate(used_ivecs):
if i:
code += " + "
code += "%s[%s]*%s" % (ia, i, iv)
code += ";\n"
code += " %s;\n" % "; ".join(["%s+=1" % a for a in iarrs])
code += " %s+=1;\n" % col_inds
code += " j+=1;\n"
code += " }\n"
# the epiloque of the outer orio.main.loop
code += " %s;\n" % "; ".join(ovec_stores)
code += " %s+=%s;\n" % (ovec, ainfo.out_unroll_factor)
if ainfo.out_unroll_factor > 1:
code += " %s=%s;\n" % (iarr, iarrs[-1])
if ainfo.out_unroll_factor == 2:
code += " %s+=clength;\n" % col_inds
else:
code += " %s+=%s*clength;\n" % (
col_inds,
ainfo.out_unroll_factor - 1,
)
code += " i+=%s;\n" % ainfo.out_unroll_factor
code += " }\n"
# the outer cleanup loop
if ainfo.out_unroll_factor > 1:
code += " while (i<=rlength-1) {\n"
code += " double _Complex %s;\n" % vovec_inits[0]
# the inner cleanup-orio.main.loop
code += " register int j=0;\n"
code += " while (j<=clength-%s) {\n" % ainfo.in_unroll_factor
code += " %s;\n" % "; ".join(
"xbuf[%s]=%s" % (i, ivec_refs[i]) for i in range(ainfo.in_unroll_factor)
)
code += " double _Complex %s;\n" % ",".join(
[
"%s=__lfpd(&xbuf[%s])" % (vivecs[i], 2 * i)
for i in range(ainfo.in_unroll_factor / 2)
]
)
code += " double _Complex %s;\n" % ",".join(viarr_inits[0])
for vov, vias in zip(vovecs[:1], viarrs[:1]):
for viv, via in zip(vivecs, vias):
code += " %s=__fpmadd(%s,%s,%s);\n" % (vov, vov, via, viv)
code += " %s+=%s;\n" % (iarrs[0], ainfo.in_unroll_factor)
code += " %s+=%s;\n" % (col_inds, ainfo.in_unroll_factor)
code += " j+=%s;\n" % ainfo.in_unroll_factor
code += " }\n"
# vector values assignments
code += " %s;\n" % vovec_assgs[0]
code += " %s %s;\n" % (ainfo.data_type, vovec_stores[0])
# the inner cleanup-cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=clength-1) {\n"
for ov, ia in zip(ovecs[:1], iarrs[:1]):
code += " %s += " % ov
for i, iv in enumerate(ivec_refs[:1]):
if i:
code += " + "
code += "%s[%s]*%s" % (ia, i, iv)
code += ";\n"
code += " %s+=1;\n" % iarr
code += " %s+=1;\n" % col_inds
code += " j+=1;\n"
code += " }\n"
# the epilogue of the outer cleanup loop
code += " %s;\n" % ovec_stores[0]
code += " %s+=1;\n" % ovec
code += " i+=1;\n"
code += " }\n"
# close the inode loop
code += "}\n"
# to enclose with brackets and to correct indentation
code = "\n{\n" + re.sub("\n", "\n ", "\n" + code) + "\n}\n"
# return the generated code
return code
# ------------------------------------------------------
def __generateParCode(self):
"""Generate an optimized code that is parallel"""
return self.__generateCode(True)
def __generateCode(self, parallelize=False):
"""Generate an optimized code that is sequential"""
# get the argument information
ainfo = self.ainfo
# generate the optimized code
code = ""
# the outer orio.main.loop
if parallelize:
code += "register int i;\n"
if ainfo.out_unroll_factor == 1:
code += "register int lbound=%s;\n" % ainfo.total_rows
else:
code += "register int lbound=%s-(%s%%%s);\n" % (
ainfo.total_rows,
ainfo.total_rows,
ainfo.out_unroll_factor,
)
code += "omp_set_num_threads(%s);\n" % ainfo.num_threads
code += (
"#pragma omp parallel for shared(%s,%s,%s,%s,%s,%s,lbound) private(i)\n"
% (
ainfo.out_vector,
ainfo.in_vector,
ainfo.in_matrix,
ainfo.row_inds,
ainfo.col_inds,
ainfo.total_rows,
)
)
code += "for (i=0; i<=lbound-%s; i+=%s) {\n" % (
ainfo.out_unroll_factor,
ainfo.out_unroll_factor,
)
else:
code += "register int i=0;\n"
code += "while (i<=%s-%s) {\n" % (ainfo.total_rows, ainfo.out_unroll_factor)
code += " register int %s;\n" % ",".join(
[
"lb%s=%s[i%s]" % (i, ainfo.row_inds, "+%s" % i if i else "")
for i in range(0, ainfo.out_unroll_factor + 1)
]
)
# the unrolled inner loop
for i in range(0, ainfo.out_unroll_factor):
code += " %s%s0=%s;\n" % (
"" if i else "%s " % ainfo.data_type,
ainfo.out_vector,
ainfo.init_val,
)
code += " %sj=lb%s;\n" % ("" if i else "register int ", i)
# the inner orio.main.main loop
code += " while (j<=lb%s-%s) {\n" % (i + 1, ainfo.in_unroll_factor)
code += " %s0 += " % ainfo.out_vector
for j in range(0, ainfo.in_unroll_factor):
if j:
code += " + "
code += "%s[j%s]*%s[%s[j%s]]" % (
ainfo.in_matrix,
"+%s" % j if j else "",
ainfo.in_vector,
ainfo.col_inds,
"+%s" % j if j else "",
)
code += ";\n"
code += " j+=%s;\n" % ainfo.in_unroll_factor
code += " }\n"
# the inner orio.main.cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=lb%s-1) {\n" % (i + 1)
code += " %s0 += %s[j]*%s[%s[j]];\n" % (
ainfo.out_vector,
ainfo.in_matrix,
ainfo.in_vector,
ainfo.col_inds,
)
code += " j+=1;\n"
code += " }\n"
code += " %s[i%s]=%s0;\n" % (
ainfo.out_vector,
"+%s" % i if i else "",
ainfo.out_vector,
)
# to close the outer orio.main.loop
if not parallelize:
code += " i+=%s;\n" % ainfo.out_unroll_factor
code += "} \n"
# the outer cleanup loop
if ainfo.out_unroll_factor > 1:
if parallelize:
code += "i=lbound;\n"
# the inner cleanup-orio.main.loop
code += "while (i<=%s-1) {\n" % ainfo.total_rows
code += " %s %s0=%s;\n" % (
ainfo.data_type,
ainfo.out_vector,
ainfo.init_val,
)
code += " register int j=%s[i], ub=%s[i+1];\n" % (
ainfo.row_inds,
ainfo.row_inds,
)
code += " while (j<=ub-%s) {\n" % ainfo.in_unroll_factor
code += " %s0 += " % ainfo.out_vector
for j in range(0, ainfo.in_unroll_factor):
if j:
code += " + "
code += "%s[j%s]*%s[%s[j%s]]" % (
ainfo.in_matrix,
"+%s" % j if j else "",
ainfo.in_vector,
ainfo.col_inds,
"+%s" % j if j else "",
)
code += ";\n"
code += " j+=%s;\n" % ainfo.in_unroll_factor
code += " }\n"
# the inner cleanup-cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=ub-1) {\n"
code += " %s0 += %s[j]*%s[%s[j]];\n" % (
ainfo.out_vector,
ainfo.in_matrix,
ainfo.in_vector,
ainfo.col_inds,
)
code += " j+=1;\n"
code += " }\n"
code += " %s[i]=%s0;\n" % (ainfo.out_vector, ainfo.out_vector)
code += " i+=1;\n"
code += "}\n"
# to enclose with brackets and to correct indentation
code = "\n{\n" + re.sub("\n", "\n ", "\n" + code) + "\n}\n"
# return the generated code
return code
# ------------------------------------------------------
def __generateParGccSimdCode(self):
"""Generate an optimized code that is parallel and GCC simdized"""
return self.__generateGccSimdCode(True)
def __generateGccSimdCode(self, parallelize=False):
"""Generate an optimized code that is sequential and GCC simdized"""
# get the argument information
ainfo = self.ainfo
# generate the optimized code
code = ""
# the outer orio.main.loop
code += "typedef double v2df __attribute__ ((vector_size(16)));\n"
if parallelize:
code += "register int i;\n"
if ainfo.out_unroll_factor == 1:
code += "register int lbound=%s;\n" % ainfo.total_rows
else:
code += "register int lbound=%s-(%s%%%s);\n" % (
ainfo.total_rows,
ainfo.total_rows,
ainfo.out_unroll_factor,
)
code += "omp_set_num_threads(%s);\n" % ainfo.num_threads
code += (
"#pragma omp parallel for shared(%s,%s,%s,%s,%s,%s,lbound) private(i)\n"
% (
ainfo.out_vector,
ainfo.in_vector,
ainfo.in_matrix,
ainfo.row_inds,
ainfo.col_inds,
ainfo.total_rows,
)
)
code += "for (i=0; i<=lbound-%s; i+=%s) {\n" % (
ainfo.out_unroll_factor,
ainfo.out_unroll_factor,
)
else:
code += "register int i=0;\n"
code += "while (i<=%s-%s) {\n" % (ainfo.total_rows, ainfo.out_unroll_factor)
code += " register int %s;\n" % ",".join(
[
"lb%s=%s[i%s]" % (i, ainfo.row_inds, "+%s" % i if i else "")
for i in range(0, ainfo.out_unroll_factor + 1)
]
)
# the unrolled inner loop
for i in range(0, ainfo.out_unroll_factor):
code += " %s%s0v=(v2df){%s,%s};\n" % (
"" if i else "v2df ",
ainfo.out_vector,
ainfo.init_val,
ainfo.init_val,
)
# the inner orio.main.main loop
code += " %sj=lb%s;\n" % ("" if i else "register int ", i)
code += " %s%s0v=(v2df *)(%s+j);\n" % (
"" if i else "v2df *",
ainfo.in_matrix,
ainfo.in_matrix,
)
code += " while (j<=lb%s-%s) {\n" % (i + 1, ainfo.in_unroll_factor)
for j in range(0, ainfo.in_unroll_factor / 2):
if not j:
code += " v2df "
if j:
code += ","
code += "%s%sv={%s[%s[j%s]],%s[%s[j%s]]}" % (
ainfo.in_vector,
j,
ainfo.in_vector,
ainfo.col_inds,
"+%s" % (2 * j) if (2 * j) else "",
ainfo.in_vector,
ainfo.col_inds,
"+%s" % (2 * j + 1) if (2 * j + 1) else "",
)
code += ";\n"
code += " %s0v += " % ainfo.out_vector
for j in range(0, ainfo.in_unroll_factor / 2):
if j:
code += " + "
code += "%s0v[%s]*%s%sv" % (ainfo.in_matrix, j, ainfo.in_vector, j)
code += ";\n"
code += " j+=%s; %s0v+=%s;\n" % (
ainfo.in_unroll_factor,
ainfo.in_matrix,
ainfo.in_unroll_factor / 2,
)
code += " }\n"
code += " %s%s0u=(%s *)&%s0v;\n" % (
"" if i else "%s *" % ainfo.data_type,
ainfo.out_vector,
ainfo.data_type,
ainfo.out_vector,
)
code += " %s%s0=%s0u[0]+%s0u[1];\n" % (
"" if i else "%s " % ainfo.data_type,
ainfo.out_vector,
ainfo.out_vector,
ainfo.out_vector,
)
# the inner orio.main.cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=lb%s-1) {\n" % (i + 1)
code += " %s0 += %s[j]*%s[%s[j]];\n" % (
ainfo.out_vector,
ainfo.in_matrix,
ainfo.in_vector,
ainfo.col_inds,
)
code += " j+=1;\n"
code += " }\n"
code += " %s[i%s]=%s0;\n" % (
ainfo.out_vector,
"+%s" % i if i else "",
ainfo.out_vector,
)
# to close the outer orio.main.loop
if not parallelize:
code += " i+=%s;\n" % ainfo.out_unroll_factor
code += "} \n"
# the outer cleanup loop
if ainfo.out_unroll_factor > 1:
if parallelize:
code += "i=lbound;\n"
code += "while (i<=%s-1) {\n" % ainfo.total_rows
code += " v2df %s0v=(v2df){%s,%s};\n" % (
ainfo.out_vector,
ainfo.init_val,
ainfo.init_val,
)
code += " register int j=%s[i], ub=%s[i+1];\n" % (
ainfo.row_inds,
ainfo.row_inds,
)
code += " v2df *%s0v=(v2df *)(%s+j);\n" % (
ainfo.in_matrix,
ainfo.in_matrix,
)
# the inner cleanup-orio.main.loop
code += " while (j<=ub-%s) {\n" % ainfo.in_unroll_factor
for j in range(0, ainfo.in_unroll_factor / 2):
if not j:
code += " v2df "
if j:
code += ","
code += "%s%sv={%s[%s[j%s]],%s[%s[j%s]]}" % (
ainfo.in_vector,
j,
ainfo.in_vector,
ainfo.col_inds,
"+%s" % (2 * j) if (2 * j) else "",
ainfo.in_vector,
ainfo.col_inds,
"+%s" % (2 * j + 1) if (2 * j + 1) else "",
)
code += ";\n"
code += " %s0v += " % ainfo.out_vector
for j in range(0, ainfo.in_unroll_factor / 2):
if j:
code += " + "
code += "%s0v[%s]*%s%sv" % (ainfo.in_matrix, j, ainfo.in_vector, j)
code += ";\n"
code += " j+=%s; %s0v+=%s;\n" % (
ainfo.in_unroll_factor,
ainfo.in_matrix,
ainfo.in_unroll_factor / 2,
)
code += " }\n"
code += " %s *%s0u=(%s *)&%s0v;\n" % (
ainfo.data_type,
ainfo.out_vector,
ainfo.data_type,
ainfo.out_vector,
)
code += " %s %s0=%s0u[0]+%s0u[1];\n" % (
ainfo.data_type,
ainfo.out_vector,
ainfo.out_vector,
ainfo.out_vector,
)
# the inner cleanup-cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=ub-1) {\n"
code += " %s0 += %s[j]*%s[%s[j]];\n" % (
ainfo.out_vector,
ainfo.in_matrix,
ainfo.in_vector,
ainfo.col_inds,
)
code += " j+=1;\n"
code += " }\n"
code += " %s[i]=%s0;\n" % (ainfo.out_vector, ainfo.out_vector)
code += " i+=1;\n"
code += "}\n"
# to enclose with brackets and to correct indentation
code = "\n{\n" + re.sub("\n", "\n ", "\n" + code) + "\n}\n"
# return the generated code
return code
# ------------------------------------------------------
def __generateParSseSimdCode(self):
"""Generate an optimized code that is parallel and SSE simdized"""
return self.__generateSseSimdCode(True)
def __generateSseSimdCode(self, parallelize=False):
"""Generate an optimized code that is sequential and SSE simdized"""
# get the argument information
ainfo = self.ainfo
# generate the optimized code
code = ""
# the outer orio.main.loop
if parallelize:
code += "register int i;\n"
if ainfo.out_unroll_factor == 1:
code += "register int lbound=%s;\n" % ainfo.total_rows
else:
code += "register int lbound=%s-(%s%%%s);\n" % (
ainfo.total_rows,
ainfo.total_rows,
ainfo.out_unroll_factor,
)
code += "omp_set_num_threads(%s);\n" % ainfo.num_threads
code += (
"#pragma omp parallel for shared(%s,%s,%s,%s,%s,%s,lbound) private(i)\n"
% (
ainfo.out_vector,
ainfo.in_vector,
ainfo.in_matrix,
ainfo.row_inds,
ainfo.col_inds,
ainfo.total_rows,
)
)
code += "for (i=0; i<=lbound-%s; i+=%s) {\n" % (
ainfo.out_unroll_factor,
ainfo.out_unroll_factor,
)
else:
code += "register int i=0;\n"
code += "while (i<=%s-%s) {\n" % (ainfo.total_rows, ainfo.out_unroll_factor)
code += " %s tbuf[2];\n" % ainfo.data_type
code += " register int %s;\n" % ",".join(
[
"lb%s=%s[i%s]" % (i, ainfo.row_inds, "+%s" % i if i else "")
for i in range(0, ainfo.out_unroll_factor + 1)
]
)
# the unrolled inner loop
for i in range(0, ainfo.out_unroll_factor):
code += " %s%s0v=_mm_set1_pd(%s);\n" % (
"" if i else "__m128d ",
ainfo.out_vector,
ainfo.init_val,
)
# the inner orio.main.main loop
code += " %sj=lb%s;\n" % ("" if i else "register int ", i)
code += " while (j<=lb%s-%s) {\n" % (i + 1, ainfo.in_unroll_factor)
for j in range(0, ainfo.in_unroll_factor / 2):
if not j:
code += " __m128d "
if j:
code += ","
code += "%s%sv=_mm_setr_pd(%s[%s[j%s]],%s[%s[j%s]])" % (
ainfo.in_vector,
j,
ainfo.in_vector,
ainfo.col_inds,
"+%s" % (2 * j) if (2 * j) else "",
ainfo.in_vector,
ainfo.col_inds,
"+%s" % (2 * j + 1) if (2 * j + 1) else "",
)
code += ";\n"
for j in range(0, ainfo.in_unroll_factor / 2):
if not j:
code += " __m128d "
if j:
code += ","
code += "%s%sv=_mm_setr_pd(%s[j%s],%s[j%s])" % (
ainfo.in_matrix,
j,
ainfo.in_matrix,
"+%s" % (2 * j) if (2 * j) else "",
ainfo.in_matrix,
"+%s" % (2 * j + 1) if (2 * j + 1) else "",
)
code += ";\n"
for j in range(0, ainfo.in_unroll_factor / 2):
code += " %s0v=_mm_add_pd(%s0v,_mm_mul_pd(%s%sv,%s%sv));\n" % (
ainfo.out_vector,
ainfo.out_vector,
ainfo.in_matrix,
j,
ainfo.in_vector,
j,
)
code += " j+=%s; \n" % ainfo.in_unroll_factor
code += " }\n"
# vector values assignments
code += " _mm_storer_pd(tbuf,%s0v);\n" % ainfo.out_vector
code += " %s%s0=tbuf[0]+tbuf[1];\n" % (
"" if i else "%s " % ainfo.data_type,
ainfo.out_vector,
)
# the inner orio.main.cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=lb%s-1) {\n" % (i + 1)
code += " %s0 += %s[j]*%s[%s[j]];\n" % (
ainfo.out_vector,
ainfo.in_matrix,
ainfo.in_vector,
ainfo.col_inds,
)
code += " j+=1;\n"
code += " }\n"
code += " %s[i%s]=%s0;\n" % (
ainfo.out_vector,
"+%s" % i if i else "",
ainfo.out_vector,
)
# to close the outer orio.main.loop
if not parallelize:
code += " i+=%s;\n" % ainfo.out_unroll_factor
code += "} \n"
# the outer cleanup loop
if ainfo.out_unroll_factor > 1:
code += "%s tbuf[2];\n" % ainfo.data_type
if parallelize:
code += "i=lbound;\n"
code += "while (i<=%s-1) {\n" % ainfo.total_rows
code += " __m128d %s0v=_mm_set1_pd(%s);\n" % (
ainfo.out_vector,
ainfo.init_val,
)
code += " register int j=%s[i], ub=%s[i+1];\n" % (
ainfo.row_inds,
ainfo.row_inds,
)
# the inner cleanup-orio.main.loop
code += " while (j<=ub-%s) {\n" % ainfo.in_unroll_factor
for j in range(0, ainfo.in_unroll_factor / 2):
if not j:
code += " __m128d "
if j:
code += ","
code += "%s%sv=_mm_setr_pd(%s[%s[j%s]],%s[%s[j%s]])" % (
ainfo.in_vector,
j,
ainfo.in_vector,
ainfo.col_inds,
"+%s" % (2 * j) if (2 * j) else "",
ainfo.in_vector,
ainfo.col_inds,
"+%s" % (2 * j + 1) if (2 * j + 1) else "",
)
code += ";\n"
for j in range(0, ainfo.in_unroll_factor / 2):
if not j:
code += " __m128d "
if j:
code += ","
code += "%s%sv=_mm_setr_pd(%s[j%s],%s[j%s])" % (
ainfo.in_matrix,
j,
ainfo.in_matrix,
"+%s" % (2 * j) if (2 * j) else "",
ainfo.in_matrix,
"+%s" % (2 * j + 1) if (2 * j + 1) else "",
)
code += ";\n"
for j in range(0, ainfo.in_unroll_factor / 2):
code += " %s0v=_mm_add_pd(%s0v,_mm_mul_pd(%s%sv,%s%sv));\n" % (
ainfo.out_vector,
ainfo.out_vector,
ainfo.in_matrix,
j,
ainfo.in_vector,
j,
)
code += " j+=%s;\n" % ainfo.in_unroll_factor
code += " }\n"
# vector values assignments
code += " _mm_storer_pd(tbuf,%s0v);\n" % ainfo.out_vector
code += " %s %s0=tbuf[0]+tbuf[1];\n" % (ainfo.data_type, ainfo.out_vector)
# the inner cleanup-cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=ub-1) {\n"
code += " %s0 += %s[j]*%s[%s[j]];\n" % (
ainfo.out_vector,
ainfo.in_matrix,
ainfo.in_vector,
ainfo.col_inds,
)
code += " j+=1;\n"
code += " }\n"
code += " %s[i]=%s0;\n" % (ainfo.out_vector, ainfo.out_vector)
code += " i+=1;\n"
code += "}\n"
# to enclose with brackets and to correct indentation
code = "\n{\n" + re.sub("\n", "\n ", "\n" + code) + "\n}\n"
# return the generated code
return code
# ------------------------------------------------------
def __generateParXlcSimdCode(self):
"""Generate an optimized code that is parallel and XLC simdized"""
return self.__generateXlcSimdCode(True)
def __generateXlcSimdCode(self, parallelize=False):
"""Generate an optimized code that is sequential and XLC simdized"""
# get the argument information
ainfo = self.ainfo
# generate the optimized code
code = ""
code += "%s zerobuf[2]={%s,%s};\n" % (
ainfo.data_type,
ainfo.init_val,
ainfo.init_val,
)
code += "%s tbuf[2];\n" % ainfo.data_type
code += "%s xbuf[%s];\n" % (ainfo.data_type, ainfo.in_unroll_factor)
# the outer orio.main.loop
if parallelize:
code += "register int i;\n"
if ainfo.out_unroll_factor == 1:
code += "register int lbound=%s;\n" % ainfo.total_rows
else:
code += "register int lbound=%s-(%s%%%s);\n" % (
ainfo.total_rows,
ainfo.total_rows,
ainfo.out_unroll_factor,
)
code += "omp_set_num_threads(%s);\n" % ainfo.num_threads
code += (
"#pragma omp parallel for shared(%s,%s,%s,%s,%s,%s,lbound,zerobuf) private(i,tbuf,xbuf)\n"
% (
ainfo.out_vector,
ainfo.in_vector,
ainfo.in_matrix,
ainfo.row_inds,
ainfo.col_inds,
ainfo.total_rows,
)
)
code += "for (i=0; i<=lbound-%s; i+=%s) {\n" % (
ainfo.out_unroll_factor,
ainfo.out_unroll_factor,
)
else:
code += "register int i=0;\n"
code += "while (i<=%s-%s) {\n" % (ainfo.total_rows, ainfo.out_unroll_factor)
code += " register int %s;\n" % ",".join(
[
"lb%s=%s[i%s]" % (i, ainfo.row_inds, "+%s" % i if i else "")
for i in range(0, ainfo.out_unroll_factor + 1)
]
)
# the unrolled inner loop
for i in range(0, ainfo.out_unroll_factor):
code += " %s%s0=%s;\n" % (
"" if i else "%s " % ainfo.data_type,
ainfo.out_vector,
ainfo.init_val,
)
# the inner orio.main.main loop
code += " %sj=lb%s;\n" % ("" if i else "register int ", i)
# simdization (aligned case)
code += " if ((((int) &%s[j]) & 0xf) == 0) {\n" % ainfo.in_matrix
code += " double _Complex %s0v=__lfpd(zerobuf);\n" % ainfo.out_vector
code += " while (j<=lb%s-%s) {\n" % (i + 1, ainfo.in_unroll_factor)
code += " %s;\n" % "; ".join(
"xbuf[%s]=%s[%s[j%s]]"
% (i, ainfo.in_vector, ainfo.col_inds, "+%s" % i if i else "")
for i in range(ainfo.in_unroll_factor)
)
for j in range(0, ainfo.in_unroll_factor / 2):
if not j:
code += " double _Complex "
if j:
code += ","
code += "%s%sv=__lfpd(&xbuf[%s])" % (ainfo.in_vector, j, 2 * j)
code += ";\n"
for j in range(0, ainfo.in_unroll_factor / 2):
if not j:
code += " double _Complex "
if j:
code += ","
code += "%s%sv=__lfpd(&%s[j%s])" % (
ainfo.in_matrix,
j,
ainfo.in_matrix,
"+%s" % (2 * j) if (2 * j) else "",
)
code += ";\n"
for j in range(0, ainfo.in_unroll_factor / 2):
code += " %s0v=__fpmadd(%s0v,%s%sv,%s%sv);\n" % (
ainfo.out_vector,
ainfo.out_vector,
ainfo.in_matrix,
j,
ainfo.in_vector,
j,
)
code += " j+=%s; \n" % ainfo.in_unroll_factor
code += " }\n"
code += " __stfpd(tbuf,%s0v);\n" % ainfo.out_vector
code += " %s0=tbuf[0]+tbuf[1];\n" % ainfo.out_vector
# unaligned case
code += " } else {\n"
code += " while (j<=lb%s-%s) {\n" % (i + 1, ainfo.in_unroll_factor)
code += " %s0 += " % ainfo.out_vector
for j in range(0, ainfo.in_unroll_factor):
if j:
code += " + "
code += "%s[j%s]*%s[%s[j%s]]" % (
ainfo.in_matrix,
"+%s" % j if j else "",
ainfo.in_vector,
ainfo.col_inds,
"+%s" % j if j else "",
)
code += ";\n"
code += " j+=%s;\n" % ainfo.in_unroll_factor
code += " }\n"
code += " }\n"
# the inner orio.main.cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=lb%s-1) {\n" % (i + 1)
code += " %s0 += %s[j]*%s[%s[j]];\n" % (
ainfo.out_vector,
ainfo.in_matrix,
ainfo.in_vector,
ainfo.col_inds,
)
code += " j+=1;\n"
code += " }\n"
code += " %s[i%s]=%s0;\n" % (
ainfo.out_vector,
"+%s" % i if i else "",
ainfo.out_vector,
)
# to close the outer orio.main.loop
if not parallelize:
code += " i+=%s;\n" % ainfo.out_unroll_factor
code += "} \n"
# the outer cleanup loop
if ainfo.out_unroll_factor > 1:
if parallelize:
code += "i=lbound;\n"
code += "while (i<=%s-1) {\n" % ainfo.total_rows
code += " %s %s0=%s;\n" % (
ainfo.data_type,
ainfo.out_vector,
ainfo.init_val,
)
# the inner cleanup-orio.main.loop
code += " register int j=%s[i], ub=%s[i+1];\n" % (
ainfo.row_inds,
ainfo.row_inds,
)
# simdization (aligned case)
code += " if ((((int) &%s[j]) & 0xf) == 0) {\n" % ainfo.in_matrix
code += " double _Complex %s0v=__lfpd(zerobuf);\n" % ainfo.out_vector
code += " while (j<=ub-%s) {\n" % ainfo.in_unroll_factor
code += " %s;\n" % "; ".join(
"xbuf[%s]=%s[%s[j%s]]"
% (i, ainfo.in_vector, ainfo.col_inds, "+%s" % i if i else "")
for i in range(ainfo.in_unroll_factor)
)
for j in range(0, ainfo.in_unroll_factor / 2):
if not j:
code += " double _Complex "
if j:
code += ","
code += "%s%sv=__lfpd(&xbuf[%s])" % (ainfo.in_vector, j, 2 * j)
code += ";\n"
for j in range(0, ainfo.in_unroll_factor / 2):
if not j:
code += " double _Complex "
if j:
code += ","
code += "%s%sv=__lfpd(&%s[j%s])" % (
ainfo.in_matrix,
j,
ainfo.in_matrix,
"+%s" % (2 * j) if (2 * j) else "",
)
code += ";\n"
for j in range(0, ainfo.in_unroll_factor / 2):
code += " %s0v=__fpmadd(%s0v,%s%sv,%s%sv);\n" % (
ainfo.out_vector,
ainfo.out_vector,
ainfo.in_matrix,
j,
ainfo.in_vector,
j,
)
code += " j+=%s;\n" % ainfo.in_unroll_factor
code += " }\n"
code += " __stfpd(tbuf,%s0v);\n" % ainfo.out_vector
code += " %s0=tbuf[0]+tbuf[1];\n" % ainfo.out_vector
# unaligned case
code += " } else {\n"
code += " while (j<=ub-%s) {\n" % ainfo.in_unroll_factor
code += " %s0 += " % ainfo.out_vector
for j in range(0, ainfo.in_unroll_factor):
if j:
code += " + "
code += "%s[j%s]*%s[%s[j%s]]" % (
ainfo.in_matrix,
"+%s" % j if j else "",
ainfo.in_vector,
ainfo.col_inds,
"+%s" % j if j else "",
)
code += ";\n"
code += " j+=%s;\n" % ainfo.in_unroll_factor
code += " }\n"
code += " }\n"
# the inner cleanup-cleanup loop
if ainfo.in_unroll_factor > 1:
code += " while (j<=ub-1) {\n"
code += " %s0 += %s[j]*%s[%s[j]];\n" % (
ainfo.out_vector,
ainfo.in_matrix,
ainfo.in_vector,
ainfo.col_inds,
)
code += " j+=1;\n"
code += " }\n"
code += " %s[i]=%s0;\n" % (ainfo.out_vector, ainfo.out_vector)
code += " i+=1;\n"
code += "}\n"
# to enclose with brackets and to correct indentation
code = "\n{\n" + re.sub("\n", "\n ", "\n" + code) + "\n}\n"
# return the generated code
return code
# ------------------------------------------------------
def generate(self):
"""To generate optimized SpMV code"""
# the argument information
ainfo = self.ainfo
# generate the optimized code
# no structure format
if ainfo.block_structure == arg_info.ArgInfo.BSTRUC_NONE:
if ainfo.num_threads == 1:
if ainfo.simd == arg_info.ArgInfo.SIMD_NONE:
code = self.__generateCode()
elif ainfo.simd == arg_info.ArgInfo.SIMD_GCC:
code = self.__generateGccSimdCode()
elif ainfo.simd == arg_info.ArgInfo.SIMD_SSE:
code = self.__generateSseSimdCode()
elif ainfo.simd == arg_info.ArgInfo.SIMD_XLC:
code = self.__generateXlcSimdCode()
else:
err("orio.module.spmv.codegen: SpMV: unsupported SIMD type")
else:
if ainfo.simd == arg_info.ArgInfo.SIMD_NONE:
code = self.__generateParCode()
elif ainfo.simd == arg_info.ArgInfo.SIMD_GCC:
code = self.__generateParGccSimdCode()
elif ainfo.simd == arg_info.ArgInfo.SIMD_SSE:
code = self.__generateParSseSimdCode()
elif ainfo.simd == arg_info.ArgInfo.SIMD_XLC:
code = self.__generateParXlcSimdCode()
else:
err("orio.module.spmv.codegen: SpMV: unsupported SIMD type")
# inode structure format
elif ainfo.block_structure == arg_info.ArgInfo.BSTRUC_INODE:
if ainfo.num_threads == 1:
if ainfo.simd == arg_info.ArgInfo.SIMD_NONE:
code = self.__generateInodeCode()
elif ainfo.simd == arg_info.ArgInfo.SIMD_GCC:
code = self.__generateGccSimdInodeCode()
elif ainfo.simd == arg_info.ArgInfo.SIMD_SSE:
code = self.__generateSseSimdInodeCode()
elif ainfo.simd == arg_info.ArgInfo.SIMD_XLC:
code = self.__generateXlcSimdInodeCode()
else:
err("orio.module.spmv.codegen: SpMV: unsupported SIMD type")
else:
if ainfo.simd == arg_info.ArgInfo.SIMD_NONE:
code = self.__generateParInodeCode()
elif ainfo.simd == arg_info.ArgInfo.SIMD_GCC:
code = self.__generateParGccSimdInodeCode()
elif ainfo.simd == arg_info.ArgInfo.SIMD_SSE:
code = self.__generateParSseSimdInodeCode()
elif ainfo.simd == arg_info.ArgInfo.SIMD_XLC:
code = self.__generateParXlcSimdInodeCode()
else:
err("orio.module.spmv.codegen: SpMV: unsupported SIMD type")
else:
err("orio.module.spmv.codegen: SpMV: unsupported matrix block structure")
# return the optimized code
return code
| 38.94677
| 106
| 0.41367
| 8,628
| 75,362
| 3.458855
| 0.024223
| 0.018229
| 0.050096
| 0.073217
| 0.948866
| 0.94518
| 0.93764
| 0.928392
| 0.917837
| 0.911839
| 0
| 0.013273
| 0.432167
| 75,362
| 1,934
| 107
| 38.966908
| 0.684107
| 0.070526
| 0
| 0.812035
| 0
| 0.007444
| 0.164184
| 0.035664
| 0
| 0
| 0.000086
| 0
| 0
| 1
| 0.011166
| false
| 0
| 0.001861
| 0
| 0.024194
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
62fd4067c6b5b5716b04f73c55548e0c05c87021
| 18,011
|
py
|
Python
|
run/bgs_mockexp_spectra.py
|
changhoonhahn/feasiBGS
|
b5f535f12cf64babc9e25bcec75edd45d8668f74
|
[
"MIT"
] | 1
|
2021-02-24T15:02:34.000Z
|
2021-02-24T15:02:34.000Z
|
run/bgs_mockexp_spectra.py
|
michaelJwilson/feasiBGS
|
63975b1e60f6f93f3b5020ee51ca565f325b918d
|
[
"MIT"
] | 7
|
2020-10-23T16:02:01.000Z
|
2020-11-04T18:53:20.000Z
|
run/bgs_mockexp_spectra.py
|
michaelJwilson/feasiBGS
|
63975b1e60f6f93f3b5020ee51ca565f325b918d
|
[
"MIT"
] | 1
|
2020-11-12T00:19:41.000Z
|
2020-11-12T00:19:41.000Z
|
#!/bin/usr/python
import os
import sys
import h5py
import time
import pickle
import numpy as np
# -- astropy --
from astropy import units as u
# -- desi --
from desispec.io import read_spectra
# -- feasibgs --
from feasibgs import util as UT
from feasibgs import catalogs as Cat
from feasibgs import forwardmodel as FM
def mockexp_gleg_simSpec_texp(iblock, iexp, texp=480.):
''' simulate DESI BGS spectra with specified exposure time.
'''
# mock exposures
exps = mockexp()
# GAMA-Legacy catalog
cata = Cat.GamaLegacy()
gleg = cata.Read('g15', dr_gama=3, dr_legacy=7)
redshift = gleg['gama-spec']['z']
absmag_ugriz = cata.AbsMag(gleg, kcorr=0.1, H0=70, Om0=0.3, galext=False) # ABSMAG k-correct to z=0.1
r_mag_apflux = UT.flux2mag(gleg['legacy-photo']['apflux_r'][:,1])
r_mag_gama = gleg['gama-photo']['modelmag_r'] # r-band magnitude from GAMA (SDSS) photometry
ngal = len(redshift) # number of galaxies
vdisp = np.repeat(100.0, ngal) # velocity dispersions [km/s]
# match GAMA galaxies to templates
bgs3 = FM.BGStree()
match = bgs3._GamaLegacy(gleg)
hasmatch = (match != -999)
# only the block
nblock = int(np.ceil(float(ngal) / 1000.))
in_block = (hasmatch & (np.arange(ngal) >= (iblock-1) * 1000) & (np.arange(ngal) < iblock * 1000))
# get source spectra
fblock = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/',
'g15.source_spectra.mockexp_block.', str(iblock), 'of', str(nblock), '.p'])
if os.path.isfile(fblock):
flux_eml, wave, magnorm_flag = pickle.load(open(fblock, 'rb'))
else:
s_bgs = FM.BGSsourceSpectra(wavemin=1500.0, wavemax=2e4)
emline_flux = s_bgs.EmissionLineFlux(gleg, index=np.arange(ngal)[in_block], dr_gama=3, silent=True)
flux_eml, wave, _, magnorm_flag = s_bgs.Spectra(r_mag_apflux[in_block], redshift[in_block],
vdisp[in_block], seed=1, templateid=match[in_block],
emflux=emline_flux, mag_em=r_mag_gama[in_block],
silent=False)
pickle.dump([flux_eml, wave, magnorm_flag], open(fblock, 'wb'))
# write GLeg catalog block for future reference
cata_block = cata.select(index=in_block)
cata_block['forwardmodel'] = {}
cata_block['forwardmodel']['magnorm_flag'] = magnorm_flag
fblock = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/',
'g15.mockexp_block.', str(iblock), 'of', str(nblock), '.hdf5'])
if not os.path.isfile(fblock):
cata.write(cata_block, fblock)
# read in sky surface brightness
w_sky, skybright_old = mockexp_skyBright('old')
_, skybright_new = mockexp_skyBright('new')
skybright_old = skybright_old[iexp,:]
skybright_new = skybright_new[iexp,:]
u_surface_brightness = 1e-17 * u.erg / u.angstrom / u.arcsec**2 / u.cm**2 / u.second
# simulate the exposures
fdesi = FM.fakeDESIspec()
# with old sky model
f_simspec_old = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/',
'g15.sim_spectra.mockexp_block.', str(iblock), 'of', str(nblock),
'.', str(int(texp)), '.iexp', str(iexp), '.KSsky.fits'])
if os.path.isfile(f_simspec_old):
bgs_spectra = read_spectra(f_simspec_old)
else:
bgs_spectra = fdesi.simExposure(wave, flux_eml, exptime=texp,
airmass=exps['AIRMASS'][iexp],
skycondition={'name': 'input',
'sky': np.clip(skybright_old, 0, None) * u_surface_brightness,
'wave': w_sky},
filename=f_simspec_old)
# with new sky model
f_simspec_new = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/',
'g15.sim_spectra.mockexp_block.', str(iblock), 'of', str(nblock),
'.', str(int(texp)), '.iexp', str(iexp), '.newKSsky.fits'])
if os.path.isfile(f_simspec_new):
bgs_spectra = read_spectra(f_simspec_new)
else:
bgs_spectra = fdesi.simExposure(wave, flux_eml, exptime=texp,
airmass=exps['AIRMASS'][iexp],
skycondition={'name': 'input',
'sky': np.clip(skybright_new, 0, None) * u_surface_brightness,
'wave': w_sky},
filename=f_simspec_new)
return None
def mockexp_gleg_simSpec(iblock, iexp):
''' simulate DESI BGS spectra with exposure time from survey sim mock exposure
'''
# mock exposures
exps = mockexp()
# GAMA-Legacy catalog
cata = Cat.GamaLegacy()
gleg = cata.Read('g15', dr_gama=3, dr_legacy=7)
redshift = gleg['gama-spec']['z']
absmag_ugriz = cata.AbsMag(gleg, kcorr=0.1, H0=70, Om0=0.3, galext=False) # ABSMAG k-correct to z=0.1
r_mag_apflux = UT.flux2mag(gleg['legacy-photo']['apflux_r'][:,1])
r_mag_gama = gleg['gama-photo']['modelmag_r'] # r-band magnitude from GAMA (SDSS) photometry
ngal = len(redshift) # number of galaxies
vdisp = np.repeat(100.0, ngal) # velocity dispersions [km/s]
# match GAMA galaxies to templates
bgs3 = FM.BGStree()
match = bgs3._GamaLegacy(gleg)
hasmatch = (match != -999)
# only the block
nblock = int(np.ceil(float(ngal) / 1000.))
in_block = (hasmatch & (np.arange(ngal) >= (iblock-1) * 1000) & (np.arange(ngal) < iblock * 1000))
# get source spectra
fblock = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/',
'g15.source_spectra.mockexp_block.', str(iblock), 'of', str(nblock), '.p'])
if os.path.isfile(fblock):
flux_eml, wave, magnorm_flag = pickle.load(open(fblock, 'rb'))
else:
s_bgs = FM.BGSsourceSpectra(wavemin=1500.0, wavemax=2e4)
emline_flux = s_bgs.EmissionLineFlux(gleg, index=np.arange(ngal)[in_block], dr_gama=3, silent=True)
flux_eml, wave, _, magnorm_flag = s_bgs.Spectra(r_mag_apflux[in_block], redshift[in_block],
vdisp[in_block], seed=1, templateid=match[in_block],
emflux=emline_flux, mag_em=r_mag_gama[in_block],
silent=False)
pickle.dump([flux_eml, wave, magnorm_flag], open(fblock, 'wb'))
# write GLeg catalog block for future reference
cata_block = cata.select(index=in_block)
cata_block['forwardmodel'] = {}
cata_block['forwardmodel']['magnorm_flag'] = magnorm_flag
fblock = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/',
'g15.mockexp_block.', str(iblock), 'of', str(nblock), '.hdf5'])
if not os.path.isfile(fblock):
cata.write(cata_block, fblock)
# read in sky surface brightness
w_sky, skybright_old = mockexp_skyBright('old')
_, skybright_new = mockexp_skyBright('new')
skybright_old = skybright_old[iexp,:]
skybright_new = skybright_new[iexp,:]
u_sb = 1e-17 * u.erg / u.angstrom / u.arcsec**2 / u.cm**2 / u.second
# simulate the exposures
fdesi = FM.fakeDESIspec()
# with old sky model
f_simspec_old = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/',
'g15.sim_spectra.mockexp_block.', str(iblock), 'of', str(nblock),
'.texp_default.iexp', str(iexp), '.KSsky.fits'])
if not os.path.isfile(f_simspec_old):
bgs_spectra = fdesi.simExposure(wave, flux_eml,
exptime=exps['EXPTIME'][iexp],
airmass=exps['AIRMASS'][iexp],
skycondition={'name': 'input',
'sky': np.clip(skybright_old, 0, None) * u_sb,
'wave': w_sky},
filename=f_simspec_old)
# with new sky model
f_simspec_new = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/',
'g15.sim_spectra.mockexp_block.', str(iblock), 'of', str(nblock),
'.texp_default.iexp', str(iexp), '.newKSsky.fits'])
if not os.path.isfile(f_simspec_new):
bgs_spectra = fdesi.simExposure(wave, flux_eml,
exptime=exps['EXPTIME'][iexp],
airmass=exps['AIRMASS'][iexp],
skycondition={'name': 'input',
'sky': np.clip(skybright_new, 0, None) * u_sb,
'wave': w_sky},
filename=f_simspec_new)
return None
def mockexp_gleg_simSpec_lowHA(iexp):
''' simulate DESI BGS spectra with exposure time from survey sim mock exposure
'''
# mock exposures
exps = mockexp()
# GAMA-Legacy catalog
cata = Cat.GamaLegacy()
gleg = cata.Read('g15', dr_gama=3, dr_legacy=7)
redshift = gleg['gama-spec']['z']
absmag_ugriz = cata.AbsMag(gleg, kcorr=0.1, H0=70, Om0=0.3, galext=False) # ABSMAG k-correct to z=0.1
r_mag_apflux = UT.flux2mag(gleg['legacy-photo']['apflux_r'][:,1])
r_mag_gama = gleg['gama-photo']['modelmag_r'] # r-band magnitude from GAMA (SDSS) photometry
ha_gama = gleg['gama-spec']['ha_flux'] # halpha line flux
ngal = len(redshift) # number of galaxies
vdisp = np.repeat(100.0, ngal) # velocity dispersions [km/s]
# match GAMA galaxies to templates
bgs3 = FM.BGStree()
match = bgs3._GamaLegacy(gleg)
hasmatch = (match != -999)
# only the block
nblock = int(np.ceil(float(ngal) / 1000.))
in_block = np.random.choice(np.arange(ngal)[hasmatch & (ha_gama < 10.)], 5000, replace=False)
#in_block = (hasmatch & (np.arange(ngal) >= (iblock-1) * 1000) & (np.arange(ngal) < iblock * 1000))
# get source spectra
fblock = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/',
'g15.source_spectra.mockexp_block.lowHalpha.p'])
if os.path.isfile(fblock):
flux_eml, wave, magnorm_flag = pickle.load(open(fblock, 'rb'))
else:
s_bgs = FM.BGSsourceSpectra(wavemin=1500.0, wavemax=2e4)
emline_flux = s_bgs.EmissionLineFlux(gleg, index=np.arange(ngal)[in_block], dr_gama=3, silent=True)
flux_eml, wave, _, magnorm_flag = s_bgs.Spectra(r_mag_apflux[in_block], redshift[in_block],
vdisp[in_block], seed=1, templateid=match[in_block],
emflux=emline_flux, mag_em=r_mag_gama[in_block],
silent=False)
pickle.dump([flux_eml, wave, magnorm_flag], open(fblock, 'wb'))
# write GLeg catalog block for future reference
cata_block = cata.select(index=in_block)
cata_block['forwardmodel'] = {}
cata_block['forwardmodel']['magnorm_flag'] = magnorm_flag
fblock = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/', 'g15.mockexp_block.lowHalpha.hdf5'])
if not os.path.isfile(fblock):
cata.write(cata_block, fblock)
# read in sky surface brightness
w_sky, skybright_old = mockexp_skyBright('old')
_, skybright_new = mockexp_skyBright('new')
skybright_old = skybright_old[iexp,:]
skybright_new = skybright_new[iexp,:]
u_surface_brightness = 1e-17 * u.erg / u.angstrom / u.arcsec**2 / u.cm**2 / u.second
# simulate the exposures
fdesi = FM.fakeDESIspec()
# with old sky model
f_simspec_old = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/',
'g15.sim_spectra.mockexp_block.lowHalpha.texp_default.iexp', str(iexp), '.KSsky.fits'])
if not os.path.isfile(f_simspec_old):
#bgs_spectra = read_spectra(f_simspec_old)
bgs_spectra = fdesi.simExposure(wave, flux_eml,
exptime=exps['EXPTIME'][iexp],
airmass=exps['AIRMASS'][iexp],
skycondition={'name': 'input',
'sky': np.clip(skybright_old, 0, None) * u_surface_brightness,
'wave': w_sky},
filename=f_simspec_old)
# with new sky model
f_simspec_new = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/',
'g15.sim_spectra.mockexp_block.lowHalpha.texp_default.iexp', str(iexp), '.newKSsky.fits'])
if not os.path.isfile(f_simspec_new):
# bgs_spectra = read_spectra(f_simspec_new)
bgs_spectra = fdesi.simExposure(wave, flux_eml,
exptime=exps['EXPTIME'][iexp],
airmass=exps['AIRMASS'][iexp],
skycondition={'name': 'input',
'sky': np.clip(skybright_new, 0, None) * u_surface_brightness,
'wave': w_sky},
filename=f_simspec_new)
return None
def mockexp_gleg_simSpec_pick(iexp):
''' simulate DESI BGS spectra with exposure time from survey sim mock exposure
'''
# mock exposures
exps = mockexp()
# GAMA-Legacy catalog
cata = Cat.GamaLegacy()
gleg = cata.Read('g15', dr_gama=3, dr_legacy=7)
redshift = gleg['gama-spec']['z']
absmag_ugriz = cata.AbsMag(gleg, kcorr=0.1, H0=70, Om0=0.3, galext=False) # ABSMAG k-correct to z=0.1
r_mag_apflux = UT.flux2mag(gleg['legacy-photo']['apflux_r'][:,1])
r_mag_gama = gleg['gama-photo']['modelmag_r'] # r-band magnitude from GAMA (SDSS) photometry
ha_gama = gleg['gama-spec']['ha_flux'] # halpha line flux
ngal = len(redshift) # number of galaxies
vdisp = np.repeat(100.0, ngal) # velocity dispersions [km/s]
# match GAMA galaxies to templates
bgs3 = FM.BGStree()
match = bgs3._GamaLegacy(gleg)
hasmatch = (match != -999)
# only the block
nblock = int(np.ceil(float(ngal) / 1000.))
in_block = np.random.choice(np.arange(ngal)[hasmatch & (ha_gama <= 0.) & (redshift > 0.19) & (redshift < 0.21) & (r_mag_apflux < 20.65) & (r_mag_apflux > 20.45)], 1, replace=False)
# get source spectra
fblock = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/',
'g15.source_spectra.mockexp_block.r_ap20.55.p'])
if os.path.isfile(fblock):
flux_eml, wave, magnorm_flag = pickle.load(open(fblock, 'rb'))
else:
s_bgs = FM.BGSsourceSpectra(wavemin=1500.0, wavemax=2e4)
emline_flux = s_bgs.EmissionLineFlux(gleg, index=np.arange(ngal)[in_block], dr_gama=3, silent=True)
flux_eml, wave, _, magnorm_flag = s_bgs.Spectra(r_mag_apflux[in_block], redshift[in_block],
vdisp[in_block], seed=1, templateid=match[in_block],
emflux=emline_flux, mag_em=r_mag_gama[in_block],
silent=False)
pickle.dump([flux_eml, wave, magnorm_flag], open(fblock, 'wb'))
# write GLeg catalog block for future reference
cata_block = cata.select(index=in_block)
cata_block['forwardmodel'] = {}
cata_block['forwardmodel']['magnorm_flag'] = magnorm_flag
fblock = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/', 'g15.mockexp_block.r_ap20.55.hdf5'])
if not os.path.isfile(fblock):
cata.write(cata_block, fblock)
# read in sky surface brightness
w_sky, skybright_old = mockexp_skyBright('old')
_, skybright_new = mockexp_skyBright('new')
skybright_old = skybright_old[iexp,:]
skybright_new = skybright_new[iexp,:]
u_surface_brightness = 1e-17 * u.erg / u.angstrom / u.arcsec**2 / u.cm**2 / u.second
# simulate the exposures
fdesi = FM.fakeDESIspec()
# with old sky model
f_simspec_old = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/',
'g15.sim_spectra.mockexp_block.r_ap20.55.texp600.iexp', str(iexp), '.KSsky.fits'])
if not os.path.isfile(f_simspec_old):
#bgs_spectra = read_spectra(f_simspec_old)
bgs_spectra = fdesi.simExposure(wave, flux_eml,
exptime=600., #exps['EXPTIME'][iexp],
airmass=exps['AIRMASS'][iexp],
skycondition={'name': 'input',
'sky': np.clip(skybright_old, 0, None) * u_surface_brightness,
'wave': w_sky},
filename=f_simspec_old)
# with new sky model
f_simspec_new = ''.join([UT.dat_dir(), 'spectra/gamadr3_legacydr7/',
'g15.sim_spectra.mockexp_block.r_ap20.55.texp600.iexp', str(iexp), '.newKSsky.fits'])
if not os.path.isfile(f_simspec_new):
# bgs_spectra = read_spectra(f_simspec_new)
bgs_spectra = fdesi.simExposure(wave, flux_eml,
exptime=600., #exps['EXPTIME'][iexp],
airmass=exps['AIRMASS'][iexp],
skycondition={'name': 'input',
'sky': np.clip(skybright_new, 0, None) * u_surface_brightness,
'wave': w_sky},
filename=f_simspec_new)
return None
def mockexp():
# read exposures from file
fexp = h5py.File(''.join([UT.dat_dir(), 'bgs_survey_exposures.withsun.hdf5']), 'r')
exps = {}
for k in fexp.keys():
exps[k] = fexp[k].value
fexp.close()
return exps
def mockexp_skyBright(skymodel):
if skymodel == 'old':
# read in sky surface brightness using KS model
w, sbright = pickle.load(open(''.join([UT.dat_dir(),
'KSsky_brightness.bgs_survey_exposures.withsun.p']), 'rb'))
elif skymodel == 'new':
w, sbright = pickle.load(open(''.join([UT.dat_dir(),
'newKSsky_twi_brightness.bgs_survey_exposures.withsun.p']), 'rb'))
else:
raise ValueError
return w, sbright
if __name__=="__main__":
#mockexp_gleg_simSpec_pick(562)
iblock = sys.argv[1]
iexp = int(sys.argv[2])
if iblock == 'lowHA':
t0 = time.time()
mockexp_gleg_simSpec_lowHA(iexp)
print('--- took %f mins ---' % ((time.time() - t0)/60.))
else:
iblock = int(iblock)
texp = sys.argv[3]
t0 = time.time()
if str(texp) == 'default':
mockexp_gleg_simSpec(iblock, iexp)
else:
texp = float(texp)
mockexp_gleg_simSpec_texp(iblock, iexp, texp=texp)
print('--- took %f mins ---' % ((time.time() - t0)/60.))
| 42.478774
| 185
| 0.60563
| 2,319
| 18,011
| 4.507115
| 0.099181
| 0.022101
| 0.016361
| 0.021814
| 0.925086
| 0.913127
| 0.911213
| 0.895905
| 0.89093
| 0.884424
| 0
| 0.025693
| 0.254456
| 18,011
| 423
| 186
| 42.579196
| 0.752681
| 0.125645
| 0
| 0.79322
| 0
| 0
| 0.12976
| 0.070662
| 0
| 0
| 0
| 0
| 0
| 1
| 0.020339
| false
| 0
| 0.037288
| 0
| 0.077966
| 0.00678
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1a07127ec84f91e3dfc93f0346199cec4a6e8ef1
| 66
|
py
|
Python
|
models/base.py
|
andreimano/od-suite
|
2dce4bcb62bf1d21cd1aa011cdfd03eb8be12a5e
|
[
"Apache-2.0"
] | null | null | null |
models/base.py
|
andreimano/od-suite
|
2dce4bcb62bf1d21cd1aa011cdfd03eb8be12a5e
|
[
"Apache-2.0"
] | null | null | null |
models/base.py
|
andreimano/od-suite
|
2dce4bcb62bf1d21cd1aa011cdfd03eb8be12a5e
|
[
"Apache-2.0"
] | null | null | null |
import torch
import torch.nn as nn
class VAE(nn.Module):
pass
| 13.2
| 21
| 0.727273
| 12
| 66
| 4
| 0.666667
| 0.458333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.19697
| 66
| 5
| 22
| 13.2
| 0.90566
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.25
| 0.5
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
c51dd5f3a498fd2c6b35c41c8b48589cdd850430
| 101
|
py
|
Python
|
stdlib/datetime/local_utc.py
|
janbodnar/Python-Course
|
51705ab5a2adef52bcdb99a800e94c0d67144a38
|
[
"BSD-2-Clause"
] | 13
|
2017-08-22T12:26:07.000Z
|
2021-07-29T16:13:50.000Z
|
stdlib/datetime/local_utc.py
|
janbodnar/Python-Course
|
51705ab5a2adef52bcdb99a800e94c0d67144a38
|
[
"BSD-2-Clause"
] | 1
|
2021-02-08T10:24:33.000Z
|
2021-02-08T10:24:33.000Z
|
stdlib/datetime/local_utc.py
|
janbodnar/Python-Course
|
51705ab5a2adef52bcdb99a800e94c0d67144a38
|
[
"BSD-2-Clause"
] | 17
|
2018-08-13T11:10:33.000Z
|
2021-07-29T16:14:02.000Z
|
#!/usr/bin/python
import datetime
print(datetime.datetime.utcnow())
print(datetime.datetime.now())
| 14.428571
| 33
| 0.762376
| 13
| 101
| 5.923077
| 0.615385
| 0.337662
| 0.545455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.069307
| 101
| 6
| 34
| 16.833333
| 0.819149
| 0.158416
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0.666667
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 7
|
c574220f3e338170f57bad180164eee0febb1729
| 36
|
py
|
Python
|
tests/mock_django_settings/iterables_module.py
|
2degrees/django-pastedeploy-settings
|
2d1894594fc19a1fc104adf10c101517e73aca3f
|
[
"BSD-3-Clause"
] | 2
|
2015-06-17T17:42:57.000Z
|
2020-08-04T05:17:42.000Z
|
tests/mock_django_settings/iterables_module.py
|
2degrees/django-pastedeploy-settings
|
2d1894594fc19a1fc104adf10c101517e73aca3f
|
[
"BSD-3-Clause"
] | null | null | null |
tests/mock_django_settings/iterables_module.py
|
2degrees/django-pastedeploy-settings
|
2d1894594fc19a1fc104adf10c101517e73aca3f
|
[
"BSD-3-Clause"
] | null | null | null |
LIST = [1, 2, 3]
TUPLE = (1, 2, 3)
| 9
| 17
| 0.416667
| 8
| 36
| 1.875
| 0.625
| 0.266667
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.24
| 0.305556
| 36
| 3
| 18
| 12
| 0.36
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
3d844afb70e5dea7f0eac447ba360de668c528fd
| 7,791
|
py
|
Python
|
Meshes/box.py
|
patriciogonzalezvivo/Meshes
|
8efdaf23d03e4608d662d234d7ae84a6f3cf69e3
|
[
"BSD-3-Clause"
] | 25
|
2018-08-13T18:41:59.000Z
|
2021-05-26T01:10:24.000Z
|
Meshes/box.py
|
patriciogonzalezvivo/Meshes
|
8efdaf23d03e4608d662d234d7ae84a6f3cf69e3
|
[
"BSD-3-Clause"
] | null | null | null |
Meshes/box.py
|
patriciogonzalezvivo/Meshes
|
8efdaf23d03e4608d662d234d7ae84a6f3cf69e3
|
[
"BSD-3-Clause"
] | 6
|
2018-11-22T08:35:47.000Z
|
2022-01-15T17:18:40.000Z
|
#!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
from Meshes.Mesh import Mesh
def box(mesh, width, height, depth, resX, resY, resZ, color = None):
resX = resX + 1
resY = resY + 1
resZ = resZ + 1
width = float(width)
height = float(height)
depth = float(depth)
if resX < 2:
resX = 0
if resY < 2:
resY = 0
if resZ < 2:
resZ = 0
# halves
halfW = float(width * 0.5)
halfH = float(height * 0.5)
halfD = float(depth * 0.5)
vert = [0.0, 0.0, 0.0]
texcoord = [0.0, 0.0]
normal = [0.0, 0.0, 0.0]
vertOffset = len(mesh.vertices)
# TRIANGLES
# Front Face
normal = [0.0, 0.0, 1.0]
# add the vertexes
for iy in range(resY):
for ix in range(resX):
# normalized tex coords
texcoord[0] = float(float(ix) / (float(resX) - 1.0))
texcoord[1] = 1.0 - float(float(iy) / (float(resY) - 1.0))
vert[0] = texcoord[0] * width - halfW
vert[1] = -(texcoord[1] - 1.0) * height - halfH
vert[2] = halfD;
mesh.addVertex( np.array( vert ) )
mesh.addTexCoord( np.array( texcoord ) )
mesh.addNormal( np.array( normal ) )
if color:
mesh.addColor( color )
for y in range(resY - 1):
for x in range(resX - 1):
# first triangle
mesh.addIndex((y) * resX + x + vertOffset)
mesh.addIndex((y) * resX + x + 1 + vertOffset)
mesh.addIndex((y + 1) * resX + x + vertOffset)
# second triangle
mesh.addIndex((y) * resX + x + 1 + vertOffset)
mesh.addIndex((y + 1) * resX + x + 1 + vertOffset)
mesh.addIndex((y + 1) * resX + x + vertOffset)
vertOffset = len(mesh.vertices)
# Right Side Face
normal = [1.0, 0.0, 0.0]
# add the vertexes
for iy in range(resY):
for ix in range(resZ):
# normalized tex coords
texcoord[0] = (float(ix) / (float(resZ) - 1.0))
texcoord[1] = 1.0 - (float(iy) / (float(resY) - 1.0))
vert[0] = halfW
vert[1] = -(texcoord[1] - 1.0) * height - halfH
vert[2] = texcoord[0] * -depth + halfD
mesh.addVertex( np.array( vert ) )
mesh.addTexCoord( np.array( texcoord ) )
mesh.addNormal( np.array( normal ) )
if color:
mesh.addColor( color )
for y in range(resY - 1):
for x in range(resZ - 1):
# first triangle
mesh.addIndex((y) * resZ + x + vertOffset)
mesh.addIndex((y) * resZ + x + 1 + vertOffset)
mesh.addIndex((y + 1) * resZ + x + vertOffset)
# second triangle
mesh.addIndex((y) * resZ + x + 1 + vertOffset)
mesh.addIndex((y + 1) * resZ + x + 1 + vertOffset)
mesh.addIndex((y + 1) * resZ + x + vertOffset)
vertOffset = len(mesh.vertices)
# Left Side Face
normal = [-1.0, 0.0, 0.0]
# add the vertexes
for iy in range(resY):
for ix in range(resZ):
# normalized tex coords
texcoord[0] = (float(ix)/(float(resZ) - 1.0))
texcoord[1] = 1.0 - (float(iy) / (float(resY) - 1.0))
vert[0] = -halfW
vert[1] = -(texcoord[1] - 1.0) * height - halfH
vert[2] = texcoord[0] * depth - halfD
mesh.addVertex( np.array( vert ) )
mesh.addTexCoord( np.array( texcoord ) )
mesh.addNormal( np.array( normal ) )
if color:
mesh.addColor( color )
for y in range(resY - 1):
for x in range(resZ - 1):
# first triangle
mesh.addIndex((y) * resZ + x + vertOffset)
mesh.addIndex((y) * resZ + x + 1 + vertOffset)
mesh.addIndex((y + 1) * resZ + x + vertOffset)
# second triangle
mesh.addIndex((y) * resZ + x + 1 + vertOffset)
mesh.addIndex((y + 1) * resZ + x + 1 + vertOffset)
mesh.addIndex((y + 1) * resZ + x + vertOffset)
vertOffset = len(mesh.vertices)
# Back Face
normal = [0.0, 0.0, -1.0]
# add the vertexes
for iy in range(resY):
for ix in range(resX):
# normalized tex coords
texcoord[0] = (float(ix) / (float(resX) - 1.0))
texcoord[1] = 1.0 - (float(iy) / (float(resY) - 1.0))
vert[0] = texcoord[0] * -width + halfW
vert[1] = -(texcoord[1] - 1.0) * height - halfH
vert[2] = -halfD
mesh.addVertex( np.array( vert ) )
mesh.addTexCoord( np.array( texcoord ) )
mesh.addNormal( np.array( normal ) )
if color:
mesh.addColor( color )
for y in range(resY - 1):
for x in range(resX - 1):
# first triangle
mesh.addIndex((y) * resX + x + vertOffset)
mesh.addIndex((y) * resX + x + 1 + vertOffset)
mesh.addIndex((y + 1) * resX + x + vertOffset)
# second triangle
mesh.addIndex((y) * resX + x + 1 + vertOffset)
mesh.addIndex((y + 1) * resX + x + 1 + vertOffset)
mesh.addIndex((y + 1) * resX + x + vertOffset)
vertOffset = len(mesh.vertices)
# Top Face
normal = [0.0, -1.0, 0.0]
# add the vertexes
for iy in range(resZ):
for ix in range(resX):
# normalized tex coords
texcoord[0] = (float(ix) / (float(resX) - 1.0))
texcoord[1] = 1.0 - (float(iy) / (float(resZ) - 1.0))
vert[0] = texcoord[0] * width - halfW
vert[1] = -halfH
vert[2] = texcoord[1] * depth - halfD
mesh.addVertex( np.array( vert ) )
mesh.addTexCoord( np.array( texcoord ) )
mesh.addNormal( np.array( normal ) )
if color:
mesh.addColor( color )
for y in range(resZ - 1):
for x in range(resX - 1):
# first triangle
mesh.addIndex((y) * resX + x + vertOffset)
mesh.addIndex((y + 1) * resX + x + vertOffset)
mesh.addIndex((y) * resX + x + 1 + vertOffset)
# second triangle
mesh.addIndex((y + 1) * resX + x + 1 + vertOffset)
mesh.addIndex((y) * resX + x + 1 + vertOffset)
mesh.addIndex((y + 1) * resX + x + vertOffset)
vertOffset = len(mesh.vertices)
# Bottom Face
normal = [0.0, 1.0, 0.0]
# add the vertexes
for iy in range(resZ):
for ix in range(resX):
# normalized tex coords
texcoord[0] = (float(ix) / (float(resX) - 1.0))
texcoord[1] = 1.0 - (float(iy) / (float(resZ) - 1.0))
vert[0] = texcoord[0] * width - halfW
vert[1] = halfH
vert[2] = texcoord[1] * -depth + halfD
mesh.addVertex( np.array( vert ) )
mesh.addTexCoord( np.array( texcoord ) )
mesh.addNormal( np.array( normal ) )
if color:
mesh.addColor( color )
for y in range(resZ - 1):
for x in range(resX - 1):
# first triangle
mesh.addIndex((y) * resX + x + vertOffset)
mesh.addIndex((y + 1) * resX + x + vertOffset)
mesh.addIndex((y) * resX + x + 1 + vertOffset)
# second triangle
mesh.addIndex((y + 1) * resX + x + 1 + vertOffset)
mesh.addIndex((y) * resX + x + 1 + vertOffset)
mesh.addIndex((y + 1) * resX + x + vertOffset)
return mesh
| 30.433594
| 70
| 0.494673
| 966
| 7,791
| 3.969979
| 0.078675
| 0.112647
| 0.122034
| 0.143937
| 0.877445
| 0.87588
| 0.872751
| 0.872751
| 0.872751
| 0.872751
| 0
| 0.041121
| 0.372609
| 7,791
| 255
| 71
| 30.552941
| 0.743453
| 0.069054
| 0
| 0.71519
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.006329
| false
| 0
| 0.037975
| 0
| 0.050633
| 0.006329
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3dd6305c9c937e671df7cba4b61db2c04f9b110a
| 112,230
|
py
|
Python
|
src/dovado_rtl/antlr/old_generated/Verilog2001/Verilog2001Listener.py
|
DavideConficconi/dovado
|
60abf088d301cbb96660238a4f39ea2fe5cbbb18
|
[
"MIT"
] | 12
|
2020-08-18T16:00:04.000Z
|
2022-02-23T00:05:53.000Z
|
src/dovado_rtl/antlr/old_generated/Verilog2001/Verilog2001Listener.py
|
DavideConficconi/dovado
|
60abf088d301cbb96660238a4f39ea2fe5cbbb18
|
[
"MIT"
] | 1
|
2022-02-28T12:57:18.000Z
|
2022-02-28T14:04:49.000Z
|
src/dovado_rtl/antlr/old_generated/Verilog2001/Verilog2001Listener.py
|
DavideConficconi/dovado
|
60abf088d301cbb96660238a4f39ea2fe5cbbb18
|
[
"MIT"
] | 2
|
2021-09-24T11:47:36.000Z
|
2021-12-17T07:58:34.000Z
|
# Generated from Verilog2001.g4 by ANTLR 4.8
from antlr4 import *
if __name__ is not None and "." in __name__:
from .Verilog2001Parser import Verilog2001Parser
else:
from Verilog2001Parser import Verilog2001Parser
# This class defines a complete listener for a parse tree produced by Verilog2001Parser.
class Verilog2001Listener(ParseTreeListener):
# Enter a parse tree produced by Verilog2001Parser#config_declaration.
def enterConfig_declaration(self, ctx:Verilog2001Parser.Config_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#config_declaration.
def exitConfig_declaration(self, ctx:Verilog2001Parser.Config_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#design_statement.
def enterDesign_statement(self, ctx:Verilog2001Parser.Design_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#design_statement.
def exitDesign_statement(self, ctx:Verilog2001Parser.Design_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#config_rule_statement.
def enterConfig_rule_statement(self, ctx:Verilog2001Parser.Config_rule_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#config_rule_statement.
def exitConfig_rule_statement(self, ctx:Verilog2001Parser.Config_rule_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#default_clause.
def enterDefault_clause(self, ctx:Verilog2001Parser.Default_clauseContext):
pass
# Exit a parse tree produced by Verilog2001Parser#default_clause.
def exitDefault_clause(self, ctx:Verilog2001Parser.Default_clauseContext):
pass
# Enter a parse tree produced by Verilog2001Parser#inst_clause.
def enterInst_clause(self, ctx:Verilog2001Parser.Inst_clauseContext):
pass
# Exit a parse tree produced by Verilog2001Parser#inst_clause.
def exitInst_clause(self, ctx:Verilog2001Parser.Inst_clauseContext):
pass
# Enter a parse tree produced by Verilog2001Parser#inst_name.
def enterInst_name(self, ctx:Verilog2001Parser.Inst_nameContext):
pass
# Exit a parse tree produced by Verilog2001Parser#inst_name.
def exitInst_name(self, ctx:Verilog2001Parser.Inst_nameContext):
pass
# Enter a parse tree produced by Verilog2001Parser#liblist_clause.
def enterLiblist_clause(self, ctx:Verilog2001Parser.Liblist_clauseContext):
pass
# Exit a parse tree produced by Verilog2001Parser#liblist_clause.
def exitLiblist_clause(self, ctx:Verilog2001Parser.Liblist_clauseContext):
pass
# Enter a parse tree produced by Verilog2001Parser#cell_clause.
def enterCell_clause(self, ctx:Verilog2001Parser.Cell_clauseContext):
pass
# Exit a parse tree produced by Verilog2001Parser#cell_clause.
def exitCell_clause(self, ctx:Verilog2001Parser.Cell_clauseContext):
pass
# Enter a parse tree produced by Verilog2001Parser#use_clause.
def enterUse_clause(self, ctx:Verilog2001Parser.Use_clauseContext):
pass
# Exit a parse tree produced by Verilog2001Parser#use_clause.
def exitUse_clause(self, ctx:Verilog2001Parser.Use_clauseContext):
pass
# Enter a parse tree produced by Verilog2001Parser#source_text.
def enterSource_text(self, ctx:Verilog2001Parser.Source_textContext):
pass
# Exit a parse tree produced by Verilog2001Parser#source_text.
def exitSource_text(self, ctx:Verilog2001Parser.Source_textContext):
pass
# Enter a parse tree produced by Verilog2001Parser#description.
def enterDescription(self, ctx:Verilog2001Parser.DescriptionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#description.
def exitDescription(self, ctx:Verilog2001Parser.DescriptionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_declaration.
def enterModule_declaration(self, ctx:Verilog2001Parser.Module_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_declaration.
def exitModule_declaration(self, ctx:Verilog2001Parser.Module_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_keyword.
def enterModule_keyword(self, ctx:Verilog2001Parser.Module_keywordContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_keyword.
def exitModule_keyword(self, ctx:Verilog2001Parser.Module_keywordContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_parameter_port_list.
def enterModule_parameter_port_list(self, ctx:Verilog2001Parser.Module_parameter_port_listContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_parameter_port_list.
def exitModule_parameter_port_list(self, ctx:Verilog2001Parser.Module_parameter_port_listContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_ports.
def enterList_of_ports(self, ctx:Verilog2001Parser.List_of_portsContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_ports.
def exitList_of_ports(self, ctx:Verilog2001Parser.List_of_portsContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_port_declarations.
def enterList_of_port_declarations(self, ctx:Verilog2001Parser.List_of_port_declarationsContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_port_declarations.
def exitList_of_port_declarations(self, ctx:Verilog2001Parser.List_of_port_declarationsContext):
pass
# Enter a parse tree produced by Verilog2001Parser#port.
def enterPort(self, ctx:Verilog2001Parser.PortContext):
pass
# Exit a parse tree produced by Verilog2001Parser#port.
def exitPort(self, ctx:Verilog2001Parser.PortContext):
pass
# Enter a parse tree produced by Verilog2001Parser#port_expression.
def enterPort_expression(self, ctx:Verilog2001Parser.Port_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#port_expression.
def exitPort_expression(self, ctx:Verilog2001Parser.Port_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#port_reference.
def enterPort_reference(self, ctx:Verilog2001Parser.Port_referenceContext):
pass
# Exit a parse tree produced by Verilog2001Parser#port_reference.
def exitPort_reference(self, ctx:Verilog2001Parser.Port_referenceContext):
pass
# Enter a parse tree produced by Verilog2001Parser#port_declaration.
def enterPort_declaration(self, ctx:Verilog2001Parser.Port_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#port_declaration.
def exitPort_declaration(self, ctx:Verilog2001Parser.Port_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_item.
def enterModule_item(self, ctx:Verilog2001Parser.Module_itemContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_item.
def exitModule_item(self, ctx:Verilog2001Parser.Module_itemContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_or_generate_item.
def enterModule_or_generate_item(self, ctx:Verilog2001Parser.Module_or_generate_itemContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_or_generate_item.
def exitModule_or_generate_item(self, ctx:Verilog2001Parser.Module_or_generate_itemContext):
pass
# Enter a parse tree produced by Verilog2001Parser#non_port_module_item.
def enterNon_port_module_item(self, ctx:Verilog2001Parser.Non_port_module_itemContext):
pass
# Exit a parse tree produced by Verilog2001Parser#non_port_module_item.
def exitNon_port_module_item(self, ctx:Verilog2001Parser.Non_port_module_itemContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_or_generate_item_declaration.
def enterModule_or_generate_item_declaration(self, ctx:Verilog2001Parser.Module_or_generate_item_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_or_generate_item_declaration.
def exitModule_or_generate_item_declaration(self, ctx:Verilog2001Parser.Module_or_generate_item_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#parameter_override.
def enterParameter_override(self, ctx:Verilog2001Parser.Parameter_overrideContext):
pass
# Exit a parse tree produced by Verilog2001Parser#parameter_override.
def exitParameter_override(self, ctx:Verilog2001Parser.Parameter_overrideContext):
pass
# Enter a parse tree produced by Verilog2001Parser#local_parameter_declaration.
def enterLocal_parameter_declaration(self, ctx:Verilog2001Parser.Local_parameter_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#local_parameter_declaration.
def exitLocal_parameter_declaration(self, ctx:Verilog2001Parser.Local_parameter_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#parameter_declaration.
def enterParameter_declaration(self, ctx:Verilog2001Parser.Parameter_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#parameter_declaration.
def exitParameter_declaration(self, ctx:Verilog2001Parser.Parameter_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#parameter_declaration_.
def enterParameter_declaration_(self, ctx:Verilog2001Parser.Parameter_declaration_Context):
pass
# Exit a parse tree produced by Verilog2001Parser#parameter_declaration_.
def exitParameter_declaration_(self, ctx:Verilog2001Parser.Parameter_declaration_Context):
pass
# Enter a parse tree produced by Verilog2001Parser#specparam_declaration.
def enterSpecparam_declaration(self, ctx:Verilog2001Parser.Specparam_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#specparam_declaration.
def exitSpecparam_declaration(self, ctx:Verilog2001Parser.Specparam_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#inout_declaration.
def enterInout_declaration(self, ctx:Verilog2001Parser.Inout_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#inout_declaration.
def exitInout_declaration(self, ctx:Verilog2001Parser.Inout_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#input_declaration.
def enterInput_declaration(self, ctx:Verilog2001Parser.Input_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#input_declaration.
def exitInput_declaration(self, ctx:Verilog2001Parser.Input_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#output_declaration.
def enterOutput_declaration(self, ctx:Verilog2001Parser.Output_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#output_declaration.
def exitOutput_declaration(self, ctx:Verilog2001Parser.Output_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#event_declaration.
def enterEvent_declaration(self, ctx:Verilog2001Parser.Event_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#event_declaration.
def exitEvent_declaration(self, ctx:Verilog2001Parser.Event_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#genvar_declaration.
def enterGenvar_declaration(self, ctx:Verilog2001Parser.Genvar_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#genvar_declaration.
def exitGenvar_declaration(self, ctx:Verilog2001Parser.Genvar_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#integer_declaration.
def enterInteger_declaration(self, ctx:Verilog2001Parser.Integer_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#integer_declaration.
def exitInteger_declaration(self, ctx:Verilog2001Parser.Integer_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#time_declaration.
def enterTime_declaration(self, ctx:Verilog2001Parser.Time_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#time_declaration.
def exitTime_declaration(self, ctx:Verilog2001Parser.Time_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#real_declaration.
def enterReal_declaration(self, ctx:Verilog2001Parser.Real_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#real_declaration.
def exitReal_declaration(self, ctx:Verilog2001Parser.Real_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#realtime_declaration.
def enterRealtime_declaration(self, ctx:Verilog2001Parser.Realtime_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#realtime_declaration.
def exitRealtime_declaration(self, ctx:Verilog2001Parser.Realtime_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#reg_declaration.
def enterReg_declaration(self, ctx:Verilog2001Parser.Reg_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#reg_declaration.
def exitReg_declaration(self, ctx:Verilog2001Parser.Reg_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#net_declaration.
def enterNet_declaration(self, ctx:Verilog2001Parser.Net_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#net_declaration.
def exitNet_declaration(self, ctx:Verilog2001Parser.Net_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#net_type.
def enterNet_type(self, ctx:Verilog2001Parser.Net_typeContext):
pass
# Exit a parse tree produced by Verilog2001Parser#net_type.
def exitNet_type(self, ctx:Verilog2001Parser.Net_typeContext):
pass
# Enter a parse tree produced by Verilog2001Parser#output_variable_type.
def enterOutput_variable_type(self, ctx:Verilog2001Parser.Output_variable_typeContext):
pass
# Exit a parse tree produced by Verilog2001Parser#output_variable_type.
def exitOutput_variable_type(self, ctx:Verilog2001Parser.Output_variable_typeContext):
pass
# Enter a parse tree produced by Verilog2001Parser#real_type.
def enterReal_type(self, ctx:Verilog2001Parser.Real_typeContext):
pass
# Exit a parse tree produced by Verilog2001Parser#real_type.
def exitReal_type(self, ctx:Verilog2001Parser.Real_typeContext):
pass
# Enter a parse tree produced by Verilog2001Parser#variable_type.
def enterVariable_type(self, ctx:Verilog2001Parser.Variable_typeContext):
pass
# Exit a parse tree produced by Verilog2001Parser#variable_type.
def exitVariable_type(self, ctx:Verilog2001Parser.Variable_typeContext):
pass
# Enter a parse tree produced by Verilog2001Parser#drive_strength.
def enterDrive_strength(self, ctx:Verilog2001Parser.Drive_strengthContext):
pass
# Exit a parse tree produced by Verilog2001Parser#drive_strength.
def exitDrive_strength(self, ctx:Verilog2001Parser.Drive_strengthContext):
pass
# Enter a parse tree produced by Verilog2001Parser#strength0.
def enterStrength0(self, ctx:Verilog2001Parser.Strength0Context):
pass
# Exit a parse tree produced by Verilog2001Parser#strength0.
def exitStrength0(self, ctx:Verilog2001Parser.Strength0Context):
pass
# Enter a parse tree produced by Verilog2001Parser#strength1.
def enterStrength1(self, ctx:Verilog2001Parser.Strength1Context):
pass
# Exit a parse tree produced by Verilog2001Parser#strength1.
def exitStrength1(self, ctx:Verilog2001Parser.Strength1Context):
pass
# Enter a parse tree produced by Verilog2001Parser#charge_strength.
def enterCharge_strength(self, ctx:Verilog2001Parser.Charge_strengthContext):
pass
# Exit a parse tree produced by Verilog2001Parser#charge_strength.
def exitCharge_strength(self, ctx:Verilog2001Parser.Charge_strengthContext):
pass
# Enter a parse tree produced by Verilog2001Parser#delay3.
def enterDelay3(self, ctx:Verilog2001Parser.Delay3Context):
pass
# Exit a parse tree produced by Verilog2001Parser#delay3.
def exitDelay3(self, ctx:Verilog2001Parser.Delay3Context):
pass
# Enter a parse tree produced by Verilog2001Parser#delay2.
def enterDelay2(self, ctx:Verilog2001Parser.Delay2Context):
pass
# Exit a parse tree produced by Verilog2001Parser#delay2.
def exitDelay2(self, ctx:Verilog2001Parser.Delay2Context):
pass
# Enter a parse tree produced by Verilog2001Parser#delay_value.
def enterDelay_value(self, ctx:Verilog2001Parser.Delay_valueContext):
pass
# Exit a parse tree produced by Verilog2001Parser#delay_value.
def exitDelay_value(self, ctx:Verilog2001Parser.Delay_valueContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_event_identifiers.
def enterList_of_event_identifiers(self, ctx:Verilog2001Parser.List_of_event_identifiersContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_event_identifiers.
def exitList_of_event_identifiers(self, ctx:Verilog2001Parser.List_of_event_identifiersContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_net_identifiers.
def enterList_of_net_identifiers(self, ctx:Verilog2001Parser.List_of_net_identifiersContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_net_identifiers.
def exitList_of_net_identifiers(self, ctx:Verilog2001Parser.List_of_net_identifiersContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_genvar_identifiers.
def enterList_of_genvar_identifiers(self, ctx:Verilog2001Parser.List_of_genvar_identifiersContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_genvar_identifiers.
def exitList_of_genvar_identifiers(self, ctx:Verilog2001Parser.List_of_genvar_identifiersContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_port_identifiers.
def enterList_of_port_identifiers(self, ctx:Verilog2001Parser.List_of_port_identifiersContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_port_identifiers.
def exitList_of_port_identifiers(self, ctx:Verilog2001Parser.List_of_port_identifiersContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_net_decl_assignments.
def enterList_of_net_decl_assignments(self, ctx:Verilog2001Parser.List_of_net_decl_assignmentsContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_net_decl_assignments.
def exitList_of_net_decl_assignments(self, ctx:Verilog2001Parser.List_of_net_decl_assignmentsContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_param_assignments.
def enterList_of_param_assignments(self, ctx:Verilog2001Parser.List_of_param_assignmentsContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_param_assignments.
def exitList_of_param_assignments(self, ctx:Verilog2001Parser.List_of_param_assignmentsContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_specparam_assignments.
def enterList_of_specparam_assignments(self, ctx:Verilog2001Parser.List_of_specparam_assignmentsContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_specparam_assignments.
def exitList_of_specparam_assignments(self, ctx:Verilog2001Parser.List_of_specparam_assignmentsContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_real_identifiers.
def enterList_of_real_identifiers(self, ctx:Verilog2001Parser.List_of_real_identifiersContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_real_identifiers.
def exitList_of_real_identifiers(self, ctx:Verilog2001Parser.List_of_real_identifiersContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_variable_identifiers.
def enterList_of_variable_identifiers(self, ctx:Verilog2001Parser.List_of_variable_identifiersContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_variable_identifiers.
def exitList_of_variable_identifiers(self, ctx:Verilog2001Parser.List_of_variable_identifiersContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_variable_port_identifiers.
def enterList_of_variable_port_identifiers(self, ctx:Verilog2001Parser.List_of_variable_port_identifiersContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_variable_port_identifiers.
def exitList_of_variable_port_identifiers(self, ctx:Verilog2001Parser.List_of_variable_port_identifiersContext):
pass
# Enter a parse tree produced by Verilog2001Parser#net_decl_assignment.
def enterNet_decl_assignment(self, ctx:Verilog2001Parser.Net_decl_assignmentContext):
pass
# Exit a parse tree produced by Verilog2001Parser#net_decl_assignment.
def exitNet_decl_assignment(self, ctx:Verilog2001Parser.Net_decl_assignmentContext):
pass
# Enter a parse tree produced by Verilog2001Parser#param_assignment.
def enterParam_assignment(self, ctx:Verilog2001Parser.Param_assignmentContext):
pass
# Exit a parse tree produced by Verilog2001Parser#param_assignment.
def exitParam_assignment(self, ctx:Verilog2001Parser.Param_assignmentContext):
pass
# Enter a parse tree produced by Verilog2001Parser#specparam_assignment.
def enterSpecparam_assignment(self, ctx:Verilog2001Parser.Specparam_assignmentContext):
pass
# Exit a parse tree produced by Verilog2001Parser#specparam_assignment.
def exitSpecparam_assignment(self, ctx:Verilog2001Parser.Specparam_assignmentContext):
pass
# Enter a parse tree produced by Verilog2001Parser#pulse_control_specparam.
def enterPulse_control_specparam(self, ctx:Verilog2001Parser.Pulse_control_specparamContext):
pass
# Exit a parse tree produced by Verilog2001Parser#pulse_control_specparam.
def exitPulse_control_specparam(self, ctx:Verilog2001Parser.Pulse_control_specparamContext):
pass
# Enter a parse tree produced by Verilog2001Parser#error_limit_value.
def enterError_limit_value(self, ctx:Verilog2001Parser.Error_limit_valueContext):
pass
# Exit a parse tree produced by Verilog2001Parser#error_limit_value.
def exitError_limit_value(self, ctx:Verilog2001Parser.Error_limit_valueContext):
pass
# Enter a parse tree produced by Verilog2001Parser#reject_limit_value.
def enterReject_limit_value(self, ctx:Verilog2001Parser.Reject_limit_valueContext):
pass
# Exit a parse tree produced by Verilog2001Parser#reject_limit_value.
def exitReject_limit_value(self, ctx:Verilog2001Parser.Reject_limit_valueContext):
pass
# Enter a parse tree produced by Verilog2001Parser#limit_value.
def enterLimit_value(self, ctx:Verilog2001Parser.Limit_valueContext):
pass
# Exit a parse tree produced by Verilog2001Parser#limit_value.
def exitLimit_value(self, ctx:Verilog2001Parser.Limit_valueContext):
pass
# Enter a parse tree produced by Verilog2001Parser#dimension.
def enterDimension(self, ctx:Verilog2001Parser.DimensionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#dimension.
def exitDimension(self, ctx:Verilog2001Parser.DimensionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#range_.
def enterRange_(self, ctx:Verilog2001Parser.Range_Context):
pass
# Exit a parse tree produced by Verilog2001Parser#range_.
def exitRange_(self, ctx:Verilog2001Parser.Range_Context):
pass
# Enter a parse tree produced by Verilog2001Parser#function_declaration.
def enterFunction_declaration(self, ctx:Verilog2001Parser.Function_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#function_declaration.
def exitFunction_declaration(self, ctx:Verilog2001Parser.Function_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#function_item_declaration.
def enterFunction_item_declaration(self, ctx:Verilog2001Parser.Function_item_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#function_item_declaration.
def exitFunction_item_declaration(self, ctx:Verilog2001Parser.Function_item_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#function_port_list.
def enterFunction_port_list(self, ctx:Verilog2001Parser.Function_port_listContext):
pass
# Exit a parse tree produced by Verilog2001Parser#function_port_list.
def exitFunction_port_list(self, ctx:Verilog2001Parser.Function_port_listContext):
pass
# Enter a parse tree produced by Verilog2001Parser#function_port.
def enterFunction_port(self, ctx:Verilog2001Parser.Function_portContext):
pass
# Exit a parse tree produced by Verilog2001Parser#function_port.
def exitFunction_port(self, ctx:Verilog2001Parser.Function_portContext):
pass
# Enter a parse tree produced by Verilog2001Parser#range_or_type.
def enterRange_or_type(self, ctx:Verilog2001Parser.Range_or_typeContext):
pass
# Exit a parse tree produced by Verilog2001Parser#range_or_type.
def exitRange_or_type(self, ctx:Verilog2001Parser.Range_or_typeContext):
pass
# Enter a parse tree produced by Verilog2001Parser#task_declaration.
def enterTask_declaration(self, ctx:Verilog2001Parser.Task_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#task_declaration.
def exitTask_declaration(self, ctx:Verilog2001Parser.Task_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#task_item_declaration.
def enterTask_item_declaration(self, ctx:Verilog2001Parser.Task_item_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#task_item_declaration.
def exitTask_item_declaration(self, ctx:Verilog2001Parser.Task_item_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#task_port_list.
def enterTask_port_list(self, ctx:Verilog2001Parser.Task_port_listContext):
pass
# Exit a parse tree produced by Verilog2001Parser#task_port_list.
def exitTask_port_list(self, ctx:Verilog2001Parser.Task_port_listContext):
pass
# Enter a parse tree produced by Verilog2001Parser#task_port_item.
def enterTask_port_item(self, ctx:Verilog2001Parser.Task_port_itemContext):
pass
# Exit a parse tree produced by Verilog2001Parser#task_port_item.
def exitTask_port_item(self, ctx:Verilog2001Parser.Task_port_itemContext):
pass
# Enter a parse tree produced by Verilog2001Parser#tf_decl_header.
def enterTf_decl_header(self, ctx:Verilog2001Parser.Tf_decl_headerContext):
pass
# Exit a parse tree produced by Verilog2001Parser#tf_decl_header.
def exitTf_decl_header(self, ctx:Verilog2001Parser.Tf_decl_headerContext):
pass
# Enter a parse tree produced by Verilog2001Parser#tf_declaration.
def enterTf_declaration(self, ctx:Verilog2001Parser.Tf_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#tf_declaration.
def exitTf_declaration(self, ctx:Verilog2001Parser.Tf_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#task_port_type.
def enterTask_port_type(self, ctx:Verilog2001Parser.Task_port_typeContext):
pass
# Exit a parse tree produced by Verilog2001Parser#task_port_type.
def exitTask_port_type(self, ctx:Verilog2001Parser.Task_port_typeContext):
pass
# Enter a parse tree produced by Verilog2001Parser#block_item_declaration.
def enterBlock_item_declaration(self, ctx:Verilog2001Parser.Block_item_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#block_item_declaration.
def exitBlock_item_declaration(self, ctx:Verilog2001Parser.Block_item_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#block_reg_declaration.
def enterBlock_reg_declaration(self, ctx:Verilog2001Parser.Block_reg_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#block_reg_declaration.
def exitBlock_reg_declaration(self, ctx:Verilog2001Parser.Block_reg_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_block_variable_identifiers.
def enterList_of_block_variable_identifiers(self, ctx:Verilog2001Parser.List_of_block_variable_identifiersContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_block_variable_identifiers.
def exitList_of_block_variable_identifiers(self, ctx:Verilog2001Parser.List_of_block_variable_identifiersContext):
pass
# Enter a parse tree produced by Verilog2001Parser#block_variable_type.
def enterBlock_variable_type(self, ctx:Verilog2001Parser.Block_variable_typeContext):
pass
# Exit a parse tree produced by Verilog2001Parser#block_variable_type.
def exitBlock_variable_type(self, ctx:Verilog2001Parser.Block_variable_typeContext):
pass
# Enter a parse tree produced by Verilog2001Parser#gate_instantiation.
def enterGate_instantiation(self, ctx:Verilog2001Parser.Gate_instantiationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#gate_instantiation.
def exitGate_instantiation(self, ctx:Verilog2001Parser.Gate_instantiationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#cmos_switch_instance.
def enterCmos_switch_instance(self, ctx:Verilog2001Parser.Cmos_switch_instanceContext):
pass
# Exit a parse tree produced by Verilog2001Parser#cmos_switch_instance.
def exitCmos_switch_instance(self, ctx:Verilog2001Parser.Cmos_switch_instanceContext):
pass
# Enter a parse tree produced by Verilog2001Parser#enable_gate_instance.
def enterEnable_gate_instance(self, ctx:Verilog2001Parser.Enable_gate_instanceContext):
pass
# Exit a parse tree produced by Verilog2001Parser#enable_gate_instance.
def exitEnable_gate_instance(self, ctx:Verilog2001Parser.Enable_gate_instanceContext):
pass
# Enter a parse tree produced by Verilog2001Parser#mos_switch_instance.
def enterMos_switch_instance(self, ctx:Verilog2001Parser.Mos_switch_instanceContext):
pass
# Exit a parse tree produced by Verilog2001Parser#mos_switch_instance.
def exitMos_switch_instance(self, ctx:Verilog2001Parser.Mos_switch_instanceContext):
pass
# Enter a parse tree produced by Verilog2001Parser#n_input_gate_instance.
def enterN_input_gate_instance(self, ctx:Verilog2001Parser.N_input_gate_instanceContext):
pass
# Exit a parse tree produced by Verilog2001Parser#n_input_gate_instance.
def exitN_input_gate_instance(self, ctx:Verilog2001Parser.N_input_gate_instanceContext):
pass
# Enter a parse tree produced by Verilog2001Parser#n_output_gate_instance.
def enterN_output_gate_instance(self, ctx:Verilog2001Parser.N_output_gate_instanceContext):
pass
# Exit a parse tree produced by Verilog2001Parser#n_output_gate_instance.
def exitN_output_gate_instance(self, ctx:Verilog2001Parser.N_output_gate_instanceContext):
pass
# Enter a parse tree produced by Verilog2001Parser#pass_switch_instance.
def enterPass_switch_instance(self, ctx:Verilog2001Parser.Pass_switch_instanceContext):
pass
# Exit a parse tree produced by Verilog2001Parser#pass_switch_instance.
def exitPass_switch_instance(self, ctx:Verilog2001Parser.Pass_switch_instanceContext):
pass
# Enter a parse tree produced by Verilog2001Parser#pass_enable_switch_instance.
def enterPass_enable_switch_instance(self, ctx:Verilog2001Parser.Pass_enable_switch_instanceContext):
pass
# Exit a parse tree produced by Verilog2001Parser#pass_enable_switch_instance.
def exitPass_enable_switch_instance(self, ctx:Verilog2001Parser.Pass_enable_switch_instanceContext):
pass
# Enter a parse tree produced by Verilog2001Parser#pull_gate_instance.
def enterPull_gate_instance(self, ctx:Verilog2001Parser.Pull_gate_instanceContext):
pass
# Exit a parse tree produced by Verilog2001Parser#pull_gate_instance.
def exitPull_gate_instance(self, ctx:Verilog2001Parser.Pull_gate_instanceContext):
pass
# Enter a parse tree produced by Verilog2001Parser#name_of_gate_instance.
def enterName_of_gate_instance(self, ctx:Verilog2001Parser.Name_of_gate_instanceContext):
pass
# Exit a parse tree produced by Verilog2001Parser#name_of_gate_instance.
def exitName_of_gate_instance(self, ctx:Verilog2001Parser.Name_of_gate_instanceContext):
pass
# Enter a parse tree produced by Verilog2001Parser#pulldown_strength.
def enterPulldown_strength(self, ctx:Verilog2001Parser.Pulldown_strengthContext):
pass
# Exit a parse tree produced by Verilog2001Parser#pulldown_strength.
def exitPulldown_strength(self, ctx:Verilog2001Parser.Pulldown_strengthContext):
pass
# Enter a parse tree produced by Verilog2001Parser#pullup_strength.
def enterPullup_strength(self, ctx:Verilog2001Parser.Pullup_strengthContext):
pass
# Exit a parse tree produced by Verilog2001Parser#pullup_strength.
def exitPullup_strength(self, ctx:Verilog2001Parser.Pullup_strengthContext):
pass
# Enter a parse tree produced by Verilog2001Parser#enable_terminal.
def enterEnable_terminal(self, ctx:Verilog2001Parser.Enable_terminalContext):
pass
# Exit a parse tree produced by Verilog2001Parser#enable_terminal.
def exitEnable_terminal(self, ctx:Verilog2001Parser.Enable_terminalContext):
pass
# Enter a parse tree produced by Verilog2001Parser#ncontrol_terminal.
def enterNcontrol_terminal(self, ctx:Verilog2001Parser.Ncontrol_terminalContext):
pass
# Exit a parse tree produced by Verilog2001Parser#ncontrol_terminal.
def exitNcontrol_terminal(self, ctx:Verilog2001Parser.Ncontrol_terminalContext):
pass
# Enter a parse tree produced by Verilog2001Parser#pcontrol_terminal.
def enterPcontrol_terminal(self, ctx:Verilog2001Parser.Pcontrol_terminalContext):
pass
# Exit a parse tree produced by Verilog2001Parser#pcontrol_terminal.
def exitPcontrol_terminal(self, ctx:Verilog2001Parser.Pcontrol_terminalContext):
pass
# Enter a parse tree produced by Verilog2001Parser#input_terminal.
def enterInput_terminal(self, ctx:Verilog2001Parser.Input_terminalContext):
pass
# Exit a parse tree produced by Verilog2001Parser#input_terminal.
def exitInput_terminal(self, ctx:Verilog2001Parser.Input_terminalContext):
pass
# Enter a parse tree produced by Verilog2001Parser#inout_terminal.
def enterInout_terminal(self, ctx:Verilog2001Parser.Inout_terminalContext):
pass
# Exit a parse tree produced by Verilog2001Parser#inout_terminal.
def exitInout_terminal(self, ctx:Verilog2001Parser.Inout_terminalContext):
pass
# Enter a parse tree produced by Verilog2001Parser#output_terminal.
def enterOutput_terminal(self, ctx:Verilog2001Parser.Output_terminalContext):
pass
# Exit a parse tree produced by Verilog2001Parser#output_terminal.
def exitOutput_terminal(self, ctx:Verilog2001Parser.Output_terminalContext):
pass
# Enter a parse tree produced by Verilog2001Parser#cmos_switchtype.
def enterCmos_switchtype(self, ctx:Verilog2001Parser.Cmos_switchtypeContext):
pass
# Exit a parse tree produced by Verilog2001Parser#cmos_switchtype.
def exitCmos_switchtype(self, ctx:Verilog2001Parser.Cmos_switchtypeContext):
pass
# Enter a parse tree produced by Verilog2001Parser#enable_gatetype.
def enterEnable_gatetype(self, ctx:Verilog2001Parser.Enable_gatetypeContext):
pass
# Exit a parse tree produced by Verilog2001Parser#enable_gatetype.
def exitEnable_gatetype(self, ctx:Verilog2001Parser.Enable_gatetypeContext):
pass
# Enter a parse tree produced by Verilog2001Parser#mos_switchtype.
def enterMos_switchtype(self, ctx:Verilog2001Parser.Mos_switchtypeContext):
pass
# Exit a parse tree produced by Verilog2001Parser#mos_switchtype.
def exitMos_switchtype(self, ctx:Verilog2001Parser.Mos_switchtypeContext):
pass
# Enter a parse tree produced by Verilog2001Parser#n_input_gatetype.
def enterN_input_gatetype(self, ctx:Verilog2001Parser.N_input_gatetypeContext):
pass
# Exit a parse tree produced by Verilog2001Parser#n_input_gatetype.
def exitN_input_gatetype(self, ctx:Verilog2001Parser.N_input_gatetypeContext):
pass
# Enter a parse tree produced by Verilog2001Parser#n_output_gatetype.
def enterN_output_gatetype(self, ctx:Verilog2001Parser.N_output_gatetypeContext):
pass
# Exit a parse tree produced by Verilog2001Parser#n_output_gatetype.
def exitN_output_gatetype(self, ctx:Verilog2001Parser.N_output_gatetypeContext):
pass
# Enter a parse tree produced by Verilog2001Parser#pass_en_switchtype.
def enterPass_en_switchtype(self, ctx:Verilog2001Parser.Pass_en_switchtypeContext):
pass
# Exit a parse tree produced by Verilog2001Parser#pass_en_switchtype.
def exitPass_en_switchtype(self, ctx:Verilog2001Parser.Pass_en_switchtypeContext):
pass
# Enter a parse tree produced by Verilog2001Parser#pass_switchtype.
def enterPass_switchtype(self, ctx:Verilog2001Parser.Pass_switchtypeContext):
pass
# Exit a parse tree produced by Verilog2001Parser#pass_switchtype.
def exitPass_switchtype(self, ctx:Verilog2001Parser.Pass_switchtypeContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_instantiation.
def enterModule_instantiation(self, ctx:Verilog2001Parser.Module_instantiationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_instantiation.
def exitModule_instantiation(self, ctx:Verilog2001Parser.Module_instantiationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#parameter_value_assignment.
def enterParameter_value_assignment(self, ctx:Verilog2001Parser.Parameter_value_assignmentContext):
pass
# Exit a parse tree produced by Verilog2001Parser#parameter_value_assignment.
def exitParameter_value_assignment(self, ctx:Verilog2001Parser.Parameter_value_assignmentContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_parameter_assignments.
def enterList_of_parameter_assignments(self, ctx:Verilog2001Parser.List_of_parameter_assignmentsContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_parameter_assignments.
def exitList_of_parameter_assignments(self, ctx:Verilog2001Parser.List_of_parameter_assignmentsContext):
pass
# Enter a parse tree produced by Verilog2001Parser#ordered_parameter_assignment.
def enterOrdered_parameter_assignment(self, ctx:Verilog2001Parser.Ordered_parameter_assignmentContext):
pass
# Exit a parse tree produced by Verilog2001Parser#ordered_parameter_assignment.
def exitOrdered_parameter_assignment(self, ctx:Verilog2001Parser.Ordered_parameter_assignmentContext):
pass
# Enter a parse tree produced by Verilog2001Parser#named_parameter_assignment.
def enterNamed_parameter_assignment(self, ctx:Verilog2001Parser.Named_parameter_assignmentContext):
pass
# Exit a parse tree produced by Verilog2001Parser#named_parameter_assignment.
def exitNamed_parameter_assignment(self, ctx:Verilog2001Parser.Named_parameter_assignmentContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_instance.
def enterModule_instance(self, ctx:Verilog2001Parser.Module_instanceContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_instance.
def exitModule_instance(self, ctx:Verilog2001Parser.Module_instanceContext):
pass
# Enter a parse tree produced by Verilog2001Parser#name_of_instance.
def enterName_of_instance(self, ctx:Verilog2001Parser.Name_of_instanceContext):
pass
# Exit a parse tree produced by Verilog2001Parser#name_of_instance.
def exitName_of_instance(self, ctx:Verilog2001Parser.Name_of_instanceContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_port_connections.
def enterList_of_port_connections(self, ctx:Verilog2001Parser.List_of_port_connectionsContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_port_connections.
def exitList_of_port_connections(self, ctx:Verilog2001Parser.List_of_port_connectionsContext):
pass
# Enter a parse tree produced by Verilog2001Parser#ordered_port_connection.
def enterOrdered_port_connection(self, ctx:Verilog2001Parser.Ordered_port_connectionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#ordered_port_connection.
def exitOrdered_port_connection(self, ctx:Verilog2001Parser.Ordered_port_connectionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#named_port_connection.
def enterNamed_port_connection(self, ctx:Verilog2001Parser.Named_port_connectionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#named_port_connection.
def exitNamed_port_connection(self, ctx:Verilog2001Parser.Named_port_connectionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#generated_instantiation.
def enterGenerated_instantiation(self, ctx:Verilog2001Parser.Generated_instantiationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#generated_instantiation.
def exitGenerated_instantiation(self, ctx:Verilog2001Parser.Generated_instantiationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#generate_item_or_null.
def enterGenerate_item_or_null(self, ctx:Verilog2001Parser.Generate_item_or_nullContext):
pass
# Exit a parse tree produced by Verilog2001Parser#generate_item_or_null.
def exitGenerate_item_or_null(self, ctx:Verilog2001Parser.Generate_item_or_nullContext):
pass
# Enter a parse tree produced by Verilog2001Parser#generate_item.
def enterGenerate_item(self, ctx:Verilog2001Parser.Generate_itemContext):
pass
# Exit a parse tree produced by Verilog2001Parser#generate_item.
def exitGenerate_item(self, ctx:Verilog2001Parser.Generate_itemContext):
pass
# Enter a parse tree produced by Verilog2001Parser#generate_conditional_statement.
def enterGenerate_conditional_statement(self, ctx:Verilog2001Parser.Generate_conditional_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#generate_conditional_statement.
def exitGenerate_conditional_statement(self, ctx:Verilog2001Parser.Generate_conditional_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#generate_case_statement.
def enterGenerate_case_statement(self, ctx:Verilog2001Parser.Generate_case_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#generate_case_statement.
def exitGenerate_case_statement(self, ctx:Verilog2001Parser.Generate_case_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#genvar_case_item.
def enterGenvar_case_item(self, ctx:Verilog2001Parser.Genvar_case_itemContext):
pass
# Exit a parse tree produced by Verilog2001Parser#genvar_case_item.
def exitGenvar_case_item(self, ctx:Verilog2001Parser.Genvar_case_itemContext):
pass
# Enter a parse tree produced by Verilog2001Parser#generate_loop_statement.
def enterGenerate_loop_statement(self, ctx:Verilog2001Parser.Generate_loop_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#generate_loop_statement.
def exitGenerate_loop_statement(self, ctx:Verilog2001Parser.Generate_loop_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#genvar_assignment.
def enterGenvar_assignment(self, ctx:Verilog2001Parser.Genvar_assignmentContext):
pass
# Exit a parse tree produced by Verilog2001Parser#genvar_assignment.
def exitGenvar_assignment(self, ctx:Verilog2001Parser.Genvar_assignmentContext):
pass
# Enter a parse tree produced by Verilog2001Parser#generate_block.
def enterGenerate_block(self, ctx:Verilog2001Parser.Generate_blockContext):
pass
# Exit a parse tree produced by Verilog2001Parser#generate_block.
def exitGenerate_block(self, ctx:Verilog2001Parser.Generate_blockContext):
pass
# Enter a parse tree produced by Verilog2001Parser#continuous_assign.
def enterContinuous_assign(self, ctx:Verilog2001Parser.Continuous_assignContext):
pass
# Exit a parse tree produced by Verilog2001Parser#continuous_assign.
def exitContinuous_assign(self, ctx:Verilog2001Parser.Continuous_assignContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_net_assignments.
def enterList_of_net_assignments(self, ctx:Verilog2001Parser.List_of_net_assignmentsContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_net_assignments.
def exitList_of_net_assignments(self, ctx:Verilog2001Parser.List_of_net_assignmentsContext):
pass
# Enter a parse tree produced by Verilog2001Parser#net_assignment.
def enterNet_assignment(self, ctx:Verilog2001Parser.Net_assignmentContext):
pass
# Exit a parse tree produced by Verilog2001Parser#net_assignment.
def exitNet_assignment(self, ctx:Verilog2001Parser.Net_assignmentContext):
pass
# Enter a parse tree produced by Verilog2001Parser#initial_construct.
def enterInitial_construct(self, ctx:Verilog2001Parser.Initial_constructContext):
pass
# Exit a parse tree produced by Verilog2001Parser#initial_construct.
def exitInitial_construct(self, ctx:Verilog2001Parser.Initial_constructContext):
pass
# Enter a parse tree produced by Verilog2001Parser#always_construct.
def enterAlways_construct(self, ctx:Verilog2001Parser.Always_constructContext):
pass
# Exit a parse tree produced by Verilog2001Parser#always_construct.
def exitAlways_construct(self, ctx:Verilog2001Parser.Always_constructContext):
pass
# Enter a parse tree produced by Verilog2001Parser#blocking_assignment.
def enterBlocking_assignment(self, ctx:Verilog2001Parser.Blocking_assignmentContext):
pass
# Exit a parse tree produced by Verilog2001Parser#blocking_assignment.
def exitBlocking_assignment(self, ctx:Verilog2001Parser.Blocking_assignmentContext):
pass
# Enter a parse tree produced by Verilog2001Parser#nonblocking_assignment.
def enterNonblocking_assignment(self, ctx:Verilog2001Parser.Nonblocking_assignmentContext):
pass
# Exit a parse tree produced by Verilog2001Parser#nonblocking_assignment.
def exitNonblocking_assignment(self, ctx:Verilog2001Parser.Nonblocking_assignmentContext):
pass
# Enter a parse tree produced by Verilog2001Parser#procedural_continuous_assignments.
def enterProcedural_continuous_assignments(self, ctx:Verilog2001Parser.Procedural_continuous_assignmentsContext):
pass
# Exit a parse tree produced by Verilog2001Parser#procedural_continuous_assignments.
def exitProcedural_continuous_assignments(self, ctx:Verilog2001Parser.Procedural_continuous_assignmentsContext):
pass
# Enter a parse tree produced by Verilog2001Parser#function_blocking_assignment.
def enterFunction_blocking_assignment(self, ctx:Verilog2001Parser.Function_blocking_assignmentContext):
pass
# Exit a parse tree produced by Verilog2001Parser#function_blocking_assignment.
def exitFunction_blocking_assignment(self, ctx:Verilog2001Parser.Function_blocking_assignmentContext):
pass
# Enter a parse tree produced by Verilog2001Parser#function_statement_or_null.
def enterFunction_statement_or_null(self, ctx:Verilog2001Parser.Function_statement_or_nullContext):
pass
# Exit a parse tree produced by Verilog2001Parser#function_statement_or_null.
def exitFunction_statement_or_null(self, ctx:Verilog2001Parser.Function_statement_or_nullContext):
pass
# Enter a parse tree produced by Verilog2001Parser#function_seq_block.
def enterFunction_seq_block(self, ctx:Verilog2001Parser.Function_seq_blockContext):
pass
# Exit a parse tree produced by Verilog2001Parser#function_seq_block.
def exitFunction_seq_block(self, ctx:Verilog2001Parser.Function_seq_blockContext):
pass
# Enter a parse tree produced by Verilog2001Parser#variable_assignment.
def enterVariable_assignment(self, ctx:Verilog2001Parser.Variable_assignmentContext):
pass
# Exit a parse tree produced by Verilog2001Parser#variable_assignment.
def exitVariable_assignment(self, ctx:Verilog2001Parser.Variable_assignmentContext):
pass
# Enter a parse tree produced by Verilog2001Parser#par_block.
def enterPar_block(self, ctx:Verilog2001Parser.Par_blockContext):
pass
# Exit a parse tree produced by Verilog2001Parser#par_block.
def exitPar_block(self, ctx:Verilog2001Parser.Par_blockContext):
pass
# Enter a parse tree produced by Verilog2001Parser#seq_block.
def enterSeq_block(self, ctx:Verilog2001Parser.Seq_blockContext):
pass
# Exit a parse tree produced by Verilog2001Parser#seq_block.
def exitSeq_block(self, ctx:Verilog2001Parser.Seq_blockContext):
pass
# Enter a parse tree produced by Verilog2001Parser#statement.
def enterStatement(self, ctx:Verilog2001Parser.StatementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#statement.
def exitStatement(self, ctx:Verilog2001Parser.StatementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#statement_or_null.
def enterStatement_or_null(self, ctx:Verilog2001Parser.Statement_or_nullContext):
pass
# Exit a parse tree produced by Verilog2001Parser#statement_or_null.
def exitStatement_or_null(self, ctx:Verilog2001Parser.Statement_or_nullContext):
pass
# Enter a parse tree produced by Verilog2001Parser#function_statement.
def enterFunction_statement(self, ctx:Verilog2001Parser.Function_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#function_statement.
def exitFunction_statement(self, ctx:Verilog2001Parser.Function_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#delay_or_event_control.
def enterDelay_or_event_control(self, ctx:Verilog2001Parser.Delay_or_event_controlContext):
pass
# Exit a parse tree produced by Verilog2001Parser#delay_or_event_control.
def exitDelay_or_event_control(self, ctx:Verilog2001Parser.Delay_or_event_controlContext):
pass
# Enter a parse tree produced by Verilog2001Parser#delay_control.
def enterDelay_control(self, ctx:Verilog2001Parser.Delay_controlContext):
pass
# Exit a parse tree produced by Verilog2001Parser#delay_control.
def exitDelay_control(self, ctx:Verilog2001Parser.Delay_controlContext):
pass
# Enter a parse tree produced by Verilog2001Parser#disable_statement.
def enterDisable_statement(self, ctx:Verilog2001Parser.Disable_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#disable_statement.
def exitDisable_statement(self, ctx:Verilog2001Parser.Disable_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#event_control.
def enterEvent_control(self, ctx:Verilog2001Parser.Event_controlContext):
pass
# Exit a parse tree produced by Verilog2001Parser#event_control.
def exitEvent_control(self, ctx:Verilog2001Parser.Event_controlContext):
pass
# Enter a parse tree produced by Verilog2001Parser#event_trigger.
def enterEvent_trigger(self, ctx:Verilog2001Parser.Event_triggerContext):
pass
# Exit a parse tree produced by Verilog2001Parser#event_trigger.
def exitEvent_trigger(self, ctx:Verilog2001Parser.Event_triggerContext):
pass
# Enter a parse tree produced by Verilog2001Parser#event_expression.
def enterEvent_expression(self, ctx:Verilog2001Parser.Event_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#event_expression.
def exitEvent_expression(self, ctx:Verilog2001Parser.Event_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#event_primary.
def enterEvent_primary(self, ctx:Verilog2001Parser.Event_primaryContext):
pass
# Exit a parse tree produced by Verilog2001Parser#event_primary.
def exitEvent_primary(self, ctx:Verilog2001Parser.Event_primaryContext):
pass
# Enter a parse tree produced by Verilog2001Parser#procedural_timing_control_statement.
def enterProcedural_timing_control_statement(self, ctx:Verilog2001Parser.Procedural_timing_control_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#procedural_timing_control_statement.
def exitProcedural_timing_control_statement(self, ctx:Verilog2001Parser.Procedural_timing_control_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#wait_statement.
def enterWait_statement(self, ctx:Verilog2001Parser.Wait_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#wait_statement.
def exitWait_statement(self, ctx:Verilog2001Parser.Wait_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#conditional_statement.
def enterConditional_statement(self, ctx:Verilog2001Parser.Conditional_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#conditional_statement.
def exitConditional_statement(self, ctx:Verilog2001Parser.Conditional_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#if_else_if_statement.
def enterIf_else_if_statement(self, ctx:Verilog2001Parser.If_else_if_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#if_else_if_statement.
def exitIf_else_if_statement(self, ctx:Verilog2001Parser.If_else_if_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#function_conditional_statement.
def enterFunction_conditional_statement(self, ctx:Verilog2001Parser.Function_conditional_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#function_conditional_statement.
def exitFunction_conditional_statement(self, ctx:Verilog2001Parser.Function_conditional_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#function_if_else_if_statement.
def enterFunction_if_else_if_statement(self, ctx:Verilog2001Parser.Function_if_else_if_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#function_if_else_if_statement.
def exitFunction_if_else_if_statement(self, ctx:Verilog2001Parser.Function_if_else_if_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#case_statement.
def enterCase_statement(self, ctx:Verilog2001Parser.Case_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#case_statement.
def exitCase_statement(self, ctx:Verilog2001Parser.Case_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#case_item.
def enterCase_item(self, ctx:Verilog2001Parser.Case_itemContext):
pass
# Exit a parse tree produced by Verilog2001Parser#case_item.
def exitCase_item(self, ctx:Verilog2001Parser.Case_itemContext):
pass
# Enter a parse tree produced by Verilog2001Parser#function_case_statement.
def enterFunction_case_statement(self, ctx:Verilog2001Parser.Function_case_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#function_case_statement.
def exitFunction_case_statement(self, ctx:Verilog2001Parser.Function_case_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#function_case_item.
def enterFunction_case_item(self, ctx:Verilog2001Parser.Function_case_itemContext):
pass
# Exit a parse tree produced by Verilog2001Parser#function_case_item.
def exitFunction_case_item(self, ctx:Verilog2001Parser.Function_case_itemContext):
pass
# Enter a parse tree produced by Verilog2001Parser#function_loop_statement.
def enterFunction_loop_statement(self, ctx:Verilog2001Parser.Function_loop_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#function_loop_statement.
def exitFunction_loop_statement(self, ctx:Verilog2001Parser.Function_loop_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#loop_statement.
def enterLoop_statement(self, ctx:Verilog2001Parser.Loop_statementContext):
pass
# Exit a parse tree produced by Verilog2001Parser#loop_statement.
def exitLoop_statement(self, ctx:Verilog2001Parser.Loop_statementContext):
pass
# Enter a parse tree produced by Verilog2001Parser#system_task_enable.
def enterSystem_task_enable(self, ctx:Verilog2001Parser.System_task_enableContext):
pass
# Exit a parse tree produced by Verilog2001Parser#system_task_enable.
def exitSystem_task_enable(self, ctx:Verilog2001Parser.System_task_enableContext):
pass
# Enter a parse tree produced by Verilog2001Parser#task_enable.
def enterTask_enable(self, ctx:Verilog2001Parser.Task_enableContext):
pass
# Exit a parse tree produced by Verilog2001Parser#task_enable.
def exitTask_enable(self, ctx:Verilog2001Parser.Task_enableContext):
pass
# Enter a parse tree produced by Verilog2001Parser#specify_block.
def enterSpecify_block(self, ctx:Verilog2001Parser.Specify_blockContext):
pass
# Exit a parse tree produced by Verilog2001Parser#specify_block.
def exitSpecify_block(self, ctx:Verilog2001Parser.Specify_blockContext):
pass
# Enter a parse tree produced by Verilog2001Parser#specify_item.
def enterSpecify_item(self, ctx:Verilog2001Parser.Specify_itemContext):
pass
# Exit a parse tree produced by Verilog2001Parser#specify_item.
def exitSpecify_item(self, ctx:Verilog2001Parser.Specify_itemContext):
pass
# Enter a parse tree produced by Verilog2001Parser#pulsestyle_declaration.
def enterPulsestyle_declaration(self, ctx:Verilog2001Parser.Pulsestyle_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#pulsestyle_declaration.
def exitPulsestyle_declaration(self, ctx:Verilog2001Parser.Pulsestyle_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#showcancelled_declaration.
def enterShowcancelled_declaration(self, ctx:Verilog2001Parser.Showcancelled_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#showcancelled_declaration.
def exitShowcancelled_declaration(self, ctx:Verilog2001Parser.Showcancelled_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#path_declaration.
def enterPath_declaration(self, ctx:Verilog2001Parser.Path_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#path_declaration.
def exitPath_declaration(self, ctx:Verilog2001Parser.Path_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#simple_path_declaration.
def enterSimple_path_declaration(self, ctx:Verilog2001Parser.Simple_path_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#simple_path_declaration.
def exitSimple_path_declaration(self, ctx:Verilog2001Parser.Simple_path_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#parallel_path_description.
def enterParallel_path_description(self, ctx:Verilog2001Parser.Parallel_path_descriptionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#parallel_path_description.
def exitParallel_path_description(self, ctx:Verilog2001Parser.Parallel_path_descriptionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#full_path_description.
def enterFull_path_description(self, ctx:Verilog2001Parser.Full_path_descriptionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#full_path_description.
def exitFull_path_description(self, ctx:Verilog2001Parser.Full_path_descriptionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_path_inputs.
def enterList_of_path_inputs(self, ctx:Verilog2001Parser.List_of_path_inputsContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_path_inputs.
def exitList_of_path_inputs(self, ctx:Verilog2001Parser.List_of_path_inputsContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_path_outputs.
def enterList_of_path_outputs(self, ctx:Verilog2001Parser.List_of_path_outputsContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_path_outputs.
def exitList_of_path_outputs(self, ctx:Verilog2001Parser.List_of_path_outputsContext):
pass
# Enter a parse tree produced by Verilog2001Parser#specify_input_terminal_descriptor.
def enterSpecify_input_terminal_descriptor(self, ctx:Verilog2001Parser.Specify_input_terminal_descriptorContext):
pass
# Exit a parse tree produced by Verilog2001Parser#specify_input_terminal_descriptor.
def exitSpecify_input_terminal_descriptor(self, ctx:Verilog2001Parser.Specify_input_terminal_descriptorContext):
pass
# Enter a parse tree produced by Verilog2001Parser#specify_output_terminal_descriptor.
def enterSpecify_output_terminal_descriptor(self, ctx:Verilog2001Parser.Specify_output_terminal_descriptorContext):
pass
# Exit a parse tree produced by Verilog2001Parser#specify_output_terminal_descriptor.
def exitSpecify_output_terminal_descriptor(self, ctx:Verilog2001Parser.Specify_output_terminal_descriptorContext):
pass
# Enter a parse tree produced by Verilog2001Parser#input_identifier.
def enterInput_identifier(self, ctx:Verilog2001Parser.Input_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#input_identifier.
def exitInput_identifier(self, ctx:Verilog2001Parser.Input_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#output_identifier.
def enterOutput_identifier(self, ctx:Verilog2001Parser.Output_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#output_identifier.
def exitOutput_identifier(self, ctx:Verilog2001Parser.Output_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#path_delay_value.
def enterPath_delay_value(self, ctx:Verilog2001Parser.Path_delay_valueContext):
pass
# Exit a parse tree produced by Verilog2001Parser#path_delay_value.
def exitPath_delay_value(self, ctx:Verilog2001Parser.Path_delay_valueContext):
pass
# Enter a parse tree produced by Verilog2001Parser#list_of_path_delay_expressions.
def enterList_of_path_delay_expressions(self, ctx:Verilog2001Parser.List_of_path_delay_expressionsContext):
pass
# Exit a parse tree produced by Verilog2001Parser#list_of_path_delay_expressions.
def exitList_of_path_delay_expressions(self, ctx:Verilog2001Parser.List_of_path_delay_expressionsContext):
pass
# Enter a parse tree produced by Verilog2001Parser#t_path_delay_expression.
def enterT_path_delay_expression(self, ctx:Verilog2001Parser.T_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#t_path_delay_expression.
def exitT_path_delay_expression(self, ctx:Verilog2001Parser.T_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#trise_path_delay_expression.
def enterTrise_path_delay_expression(self, ctx:Verilog2001Parser.Trise_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#trise_path_delay_expression.
def exitTrise_path_delay_expression(self, ctx:Verilog2001Parser.Trise_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#tfall_path_delay_expression.
def enterTfall_path_delay_expression(self, ctx:Verilog2001Parser.Tfall_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#tfall_path_delay_expression.
def exitTfall_path_delay_expression(self, ctx:Verilog2001Parser.Tfall_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#tz_path_delay_expression.
def enterTz_path_delay_expression(self, ctx:Verilog2001Parser.Tz_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#tz_path_delay_expression.
def exitTz_path_delay_expression(self, ctx:Verilog2001Parser.Tz_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#t01_path_delay_expression.
def enterT01_path_delay_expression(self, ctx:Verilog2001Parser.T01_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#t01_path_delay_expression.
def exitT01_path_delay_expression(self, ctx:Verilog2001Parser.T01_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#t10_path_delay_expression.
def enterT10_path_delay_expression(self, ctx:Verilog2001Parser.T10_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#t10_path_delay_expression.
def exitT10_path_delay_expression(self, ctx:Verilog2001Parser.T10_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#t0z_path_delay_expression.
def enterT0z_path_delay_expression(self, ctx:Verilog2001Parser.T0z_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#t0z_path_delay_expression.
def exitT0z_path_delay_expression(self, ctx:Verilog2001Parser.T0z_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#tz1_path_delay_expression.
def enterTz1_path_delay_expression(self, ctx:Verilog2001Parser.Tz1_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#tz1_path_delay_expression.
def exitTz1_path_delay_expression(self, ctx:Verilog2001Parser.Tz1_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#t1z_path_delay_expression.
def enterT1z_path_delay_expression(self, ctx:Verilog2001Parser.T1z_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#t1z_path_delay_expression.
def exitT1z_path_delay_expression(self, ctx:Verilog2001Parser.T1z_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#tz0_path_delay_expression.
def enterTz0_path_delay_expression(self, ctx:Verilog2001Parser.Tz0_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#tz0_path_delay_expression.
def exitTz0_path_delay_expression(self, ctx:Verilog2001Parser.Tz0_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#t0x_path_delay_expression.
def enterT0x_path_delay_expression(self, ctx:Verilog2001Parser.T0x_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#t0x_path_delay_expression.
def exitT0x_path_delay_expression(self, ctx:Verilog2001Parser.T0x_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#tx1_path_delay_expression.
def enterTx1_path_delay_expression(self, ctx:Verilog2001Parser.Tx1_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#tx1_path_delay_expression.
def exitTx1_path_delay_expression(self, ctx:Verilog2001Parser.Tx1_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#t1x_path_delay_expression.
def enterT1x_path_delay_expression(self, ctx:Verilog2001Parser.T1x_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#t1x_path_delay_expression.
def exitT1x_path_delay_expression(self, ctx:Verilog2001Parser.T1x_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#tx0_path_delay_expression.
def enterTx0_path_delay_expression(self, ctx:Verilog2001Parser.Tx0_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#tx0_path_delay_expression.
def exitTx0_path_delay_expression(self, ctx:Verilog2001Parser.Tx0_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#txz_path_delay_expression.
def enterTxz_path_delay_expression(self, ctx:Verilog2001Parser.Txz_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#txz_path_delay_expression.
def exitTxz_path_delay_expression(self, ctx:Verilog2001Parser.Txz_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#tzx_path_delay_expression.
def enterTzx_path_delay_expression(self, ctx:Verilog2001Parser.Tzx_path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#tzx_path_delay_expression.
def exitTzx_path_delay_expression(self, ctx:Verilog2001Parser.Tzx_path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#path_delay_expression.
def enterPath_delay_expression(self, ctx:Verilog2001Parser.Path_delay_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#path_delay_expression.
def exitPath_delay_expression(self, ctx:Verilog2001Parser.Path_delay_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#edge_sensitive_path_declaration.
def enterEdge_sensitive_path_declaration(self, ctx:Verilog2001Parser.Edge_sensitive_path_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#edge_sensitive_path_declaration.
def exitEdge_sensitive_path_declaration(self, ctx:Verilog2001Parser.Edge_sensitive_path_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#parallel_edge_sensitive_path_description.
def enterParallel_edge_sensitive_path_description(self, ctx:Verilog2001Parser.Parallel_edge_sensitive_path_descriptionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#parallel_edge_sensitive_path_description.
def exitParallel_edge_sensitive_path_description(self, ctx:Verilog2001Parser.Parallel_edge_sensitive_path_descriptionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#full_edge_sensitive_path_description.
def enterFull_edge_sensitive_path_description(self, ctx:Verilog2001Parser.Full_edge_sensitive_path_descriptionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#full_edge_sensitive_path_description.
def exitFull_edge_sensitive_path_description(self, ctx:Verilog2001Parser.Full_edge_sensitive_path_descriptionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#data_source_expression.
def enterData_source_expression(self, ctx:Verilog2001Parser.Data_source_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#data_source_expression.
def exitData_source_expression(self, ctx:Verilog2001Parser.Data_source_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#edge_identifier.
def enterEdge_identifier(self, ctx:Verilog2001Parser.Edge_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#edge_identifier.
def exitEdge_identifier(self, ctx:Verilog2001Parser.Edge_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#state_dependent_path_declaration.
def enterState_dependent_path_declaration(self, ctx:Verilog2001Parser.State_dependent_path_declarationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#state_dependent_path_declaration.
def exitState_dependent_path_declaration(self, ctx:Verilog2001Parser.State_dependent_path_declarationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#polarity_operator.
def enterPolarity_operator(self, ctx:Verilog2001Parser.Polarity_operatorContext):
pass
# Exit a parse tree produced by Verilog2001Parser#polarity_operator.
def exitPolarity_operator(self, ctx:Verilog2001Parser.Polarity_operatorContext):
pass
# Enter a parse tree produced by Verilog2001Parser#checktime_condition.
def enterChecktime_condition(self, ctx:Verilog2001Parser.Checktime_conditionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#checktime_condition.
def exitChecktime_condition(self, ctx:Verilog2001Parser.Checktime_conditionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#delayed_data.
def enterDelayed_data(self, ctx:Verilog2001Parser.Delayed_dataContext):
pass
# Exit a parse tree produced by Verilog2001Parser#delayed_data.
def exitDelayed_data(self, ctx:Verilog2001Parser.Delayed_dataContext):
pass
# Enter a parse tree produced by Verilog2001Parser#delayed_reference.
def enterDelayed_reference(self, ctx:Verilog2001Parser.Delayed_referenceContext):
pass
# Exit a parse tree produced by Verilog2001Parser#delayed_reference.
def exitDelayed_reference(self, ctx:Verilog2001Parser.Delayed_referenceContext):
pass
# Enter a parse tree produced by Verilog2001Parser#end_edge_offset.
def enterEnd_edge_offset(self, ctx:Verilog2001Parser.End_edge_offsetContext):
pass
# Exit a parse tree produced by Verilog2001Parser#end_edge_offset.
def exitEnd_edge_offset(self, ctx:Verilog2001Parser.End_edge_offsetContext):
pass
# Enter a parse tree produced by Verilog2001Parser#event_based_flag.
def enterEvent_based_flag(self, ctx:Verilog2001Parser.Event_based_flagContext):
pass
# Exit a parse tree produced by Verilog2001Parser#event_based_flag.
def exitEvent_based_flag(self, ctx:Verilog2001Parser.Event_based_flagContext):
pass
# Enter a parse tree produced by Verilog2001Parser#notify_reg.
def enterNotify_reg(self, ctx:Verilog2001Parser.Notify_regContext):
pass
# Exit a parse tree produced by Verilog2001Parser#notify_reg.
def exitNotify_reg(self, ctx:Verilog2001Parser.Notify_regContext):
pass
# Enter a parse tree produced by Verilog2001Parser#remain_active_flag.
def enterRemain_active_flag(self, ctx:Verilog2001Parser.Remain_active_flagContext):
pass
# Exit a parse tree produced by Verilog2001Parser#remain_active_flag.
def exitRemain_active_flag(self, ctx:Verilog2001Parser.Remain_active_flagContext):
pass
# Enter a parse tree produced by Verilog2001Parser#stamptime_condition.
def enterStamptime_condition(self, ctx:Verilog2001Parser.Stamptime_conditionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#stamptime_condition.
def exitStamptime_condition(self, ctx:Verilog2001Parser.Stamptime_conditionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#start_edge_offset.
def enterStart_edge_offset(self, ctx:Verilog2001Parser.Start_edge_offsetContext):
pass
# Exit a parse tree produced by Verilog2001Parser#start_edge_offset.
def exitStart_edge_offset(self, ctx:Verilog2001Parser.Start_edge_offsetContext):
pass
# Enter a parse tree produced by Verilog2001Parser#threshold.
def enterThreshold(self, ctx:Verilog2001Parser.ThresholdContext):
pass
# Exit a parse tree produced by Verilog2001Parser#threshold.
def exitThreshold(self, ctx:Verilog2001Parser.ThresholdContext):
pass
# Enter a parse tree produced by Verilog2001Parser#timing_check_limit.
def enterTiming_check_limit(self, ctx:Verilog2001Parser.Timing_check_limitContext):
pass
# Exit a parse tree produced by Verilog2001Parser#timing_check_limit.
def exitTiming_check_limit(self, ctx:Verilog2001Parser.Timing_check_limitContext):
pass
# Enter a parse tree produced by Verilog2001Parser#concatenation.
def enterConcatenation(self, ctx:Verilog2001Parser.ConcatenationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#concatenation.
def exitConcatenation(self, ctx:Verilog2001Parser.ConcatenationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#constant_concatenation.
def enterConstant_concatenation(self, ctx:Verilog2001Parser.Constant_concatenationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#constant_concatenation.
def exitConstant_concatenation(self, ctx:Verilog2001Parser.Constant_concatenationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#constant_multiple_concatenation.
def enterConstant_multiple_concatenation(self, ctx:Verilog2001Parser.Constant_multiple_concatenationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#constant_multiple_concatenation.
def exitConstant_multiple_concatenation(self, ctx:Verilog2001Parser.Constant_multiple_concatenationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_path_concatenation.
def enterModule_path_concatenation(self, ctx:Verilog2001Parser.Module_path_concatenationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_path_concatenation.
def exitModule_path_concatenation(self, ctx:Verilog2001Parser.Module_path_concatenationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_path_multiple_concatenation.
def enterModule_path_multiple_concatenation(self, ctx:Verilog2001Parser.Module_path_multiple_concatenationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_path_multiple_concatenation.
def exitModule_path_multiple_concatenation(self, ctx:Verilog2001Parser.Module_path_multiple_concatenationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#multiple_concatenation.
def enterMultiple_concatenation(self, ctx:Verilog2001Parser.Multiple_concatenationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#multiple_concatenation.
def exitMultiple_concatenation(self, ctx:Verilog2001Parser.Multiple_concatenationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#net_concatenation.
def enterNet_concatenation(self, ctx:Verilog2001Parser.Net_concatenationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#net_concatenation.
def exitNet_concatenation(self, ctx:Verilog2001Parser.Net_concatenationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#net_concatenation_value.
def enterNet_concatenation_value(self, ctx:Verilog2001Parser.Net_concatenation_valueContext):
pass
# Exit a parse tree produced by Verilog2001Parser#net_concatenation_value.
def exitNet_concatenation_value(self, ctx:Verilog2001Parser.Net_concatenation_valueContext):
pass
# Enter a parse tree produced by Verilog2001Parser#variable_concatenation.
def enterVariable_concatenation(self, ctx:Verilog2001Parser.Variable_concatenationContext):
pass
# Exit a parse tree produced by Verilog2001Parser#variable_concatenation.
def exitVariable_concatenation(self, ctx:Verilog2001Parser.Variable_concatenationContext):
pass
# Enter a parse tree produced by Verilog2001Parser#variable_concatenation_value.
def enterVariable_concatenation_value(self, ctx:Verilog2001Parser.Variable_concatenation_valueContext):
pass
# Exit a parse tree produced by Verilog2001Parser#variable_concatenation_value.
def exitVariable_concatenation_value(self, ctx:Verilog2001Parser.Variable_concatenation_valueContext):
pass
# Enter a parse tree produced by Verilog2001Parser#constant_function_call.
def enterConstant_function_call(self, ctx:Verilog2001Parser.Constant_function_callContext):
pass
# Exit a parse tree produced by Verilog2001Parser#constant_function_call.
def exitConstant_function_call(self, ctx:Verilog2001Parser.Constant_function_callContext):
pass
# Enter a parse tree produced by Verilog2001Parser#function_call.
def enterFunction_call(self, ctx:Verilog2001Parser.Function_callContext):
pass
# Exit a parse tree produced by Verilog2001Parser#function_call.
def exitFunction_call(self, ctx:Verilog2001Parser.Function_callContext):
pass
# Enter a parse tree produced by Verilog2001Parser#system_function_call.
def enterSystem_function_call(self, ctx:Verilog2001Parser.System_function_callContext):
pass
# Exit a parse tree produced by Verilog2001Parser#system_function_call.
def exitSystem_function_call(self, ctx:Verilog2001Parser.System_function_callContext):
pass
# Enter a parse tree produced by Verilog2001Parser#genvar_function_call.
def enterGenvar_function_call(self, ctx:Verilog2001Parser.Genvar_function_callContext):
pass
# Exit a parse tree produced by Verilog2001Parser#genvar_function_call.
def exitGenvar_function_call(self, ctx:Verilog2001Parser.Genvar_function_callContext):
pass
# Enter a parse tree produced by Verilog2001Parser#base_expression.
def enterBase_expression(self, ctx:Verilog2001Parser.Base_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#base_expression.
def exitBase_expression(self, ctx:Verilog2001Parser.Base_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#constant_base_expression.
def enterConstant_base_expression(self, ctx:Verilog2001Parser.Constant_base_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#constant_base_expression.
def exitConstant_base_expression(self, ctx:Verilog2001Parser.Constant_base_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#constant_expression.
def enterConstant_expression(self, ctx:Verilog2001Parser.Constant_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#constant_expression.
def exitConstant_expression(self, ctx:Verilog2001Parser.Constant_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#constant_mintypmax_expression.
def enterConstant_mintypmax_expression(self, ctx:Verilog2001Parser.Constant_mintypmax_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#constant_mintypmax_expression.
def exitConstant_mintypmax_expression(self, ctx:Verilog2001Parser.Constant_mintypmax_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#constant_range_expression.
def enterConstant_range_expression(self, ctx:Verilog2001Parser.Constant_range_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#constant_range_expression.
def exitConstant_range_expression(self, ctx:Verilog2001Parser.Constant_range_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#dimension_constant_expression.
def enterDimension_constant_expression(self, ctx:Verilog2001Parser.Dimension_constant_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#dimension_constant_expression.
def exitDimension_constant_expression(self, ctx:Verilog2001Parser.Dimension_constant_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#expression.
def enterExpression(self, ctx:Verilog2001Parser.ExpressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#expression.
def exitExpression(self, ctx:Verilog2001Parser.ExpressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#term.
def enterTerm(self, ctx:Verilog2001Parser.TermContext):
pass
# Exit a parse tree produced by Verilog2001Parser#term.
def exitTerm(self, ctx:Verilog2001Parser.TermContext):
pass
# Enter a parse tree produced by Verilog2001Parser#lsb_constant_expression.
def enterLsb_constant_expression(self, ctx:Verilog2001Parser.Lsb_constant_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#lsb_constant_expression.
def exitLsb_constant_expression(self, ctx:Verilog2001Parser.Lsb_constant_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#mintypmax_expression.
def enterMintypmax_expression(self, ctx:Verilog2001Parser.Mintypmax_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#mintypmax_expression.
def exitMintypmax_expression(self, ctx:Verilog2001Parser.Mintypmax_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_path_conditional_expression.
def enterModule_path_conditional_expression(self, ctx:Verilog2001Parser.Module_path_conditional_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_path_conditional_expression.
def exitModule_path_conditional_expression(self, ctx:Verilog2001Parser.Module_path_conditional_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_path_expression.
def enterModule_path_expression(self, ctx:Verilog2001Parser.Module_path_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_path_expression.
def exitModule_path_expression(self, ctx:Verilog2001Parser.Module_path_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_path_mintypmax_expression.
def enterModule_path_mintypmax_expression(self, ctx:Verilog2001Parser.Module_path_mintypmax_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_path_mintypmax_expression.
def exitModule_path_mintypmax_expression(self, ctx:Verilog2001Parser.Module_path_mintypmax_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#msb_constant_expression.
def enterMsb_constant_expression(self, ctx:Verilog2001Parser.Msb_constant_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#msb_constant_expression.
def exitMsb_constant_expression(self, ctx:Verilog2001Parser.Msb_constant_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#range_expression.
def enterRange_expression(self, ctx:Verilog2001Parser.Range_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#range_expression.
def exitRange_expression(self, ctx:Verilog2001Parser.Range_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#width_constant_expression.
def enterWidth_constant_expression(self, ctx:Verilog2001Parser.Width_constant_expressionContext):
pass
# Exit a parse tree produced by Verilog2001Parser#width_constant_expression.
def exitWidth_constant_expression(self, ctx:Verilog2001Parser.Width_constant_expressionContext):
pass
# Enter a parse tree produced by Verilog2001Parser#constant_primary.
def enterConstant_primary(self, ctx:Verilog2001Parser.Constant_primaryContext):
pass
# Exit a parse tree produced by Verilog2001Parser#constant_primary.
def exitConstant_primary(self, ctx:Verilog2001Parser.Constant_primaryContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_path_primary.
def enterModule_path_primary(self, ctx:Verilog2001Parser.Module_path_primaryContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_path_primary.
def exitModule_path_primary(self, ctx:Verilog2001Parser.Module_path_primaryContext):
pass
# Enter a parse tree produced by Verilog2001Parser#primary.
def enterPrimary(self, ctx:Verilog2001Parser.PrimaryContext):
pass
# Exit a parse tree produced by Verilog2001Parser#primary.
def exitPrimary(self, ctx:Verilog2001Parser.PrimaryContext):
pass
# Enter a parse tree produced by Verilog2001Parser#net_lvalue.
def enterNet_lvalue(self, ctx:Verilog2001Parser.Net_lvalueContext):
pass
# Exit a parse tree produced by Verilog2001Parser#net_lvalue.
def exitNet_lvalue(self, ctx:Verilog2001Parser.Net_lvalueContext):
pass
# Enter a parse tree produced by Verilog2001Parser#variable_lvalue.
def enterVariable_lvalue(self, ctx:Verilog2001Parser.Variable_lvalueContext):
pass
# Exit a parse tree produced by Verilog2001Parser#variable_lvalue.
def exitVariable_lvalue(self, ctx:Verilog2001Parser.Variable_lvalueContext):
pass
# Enter a parse tree produced by Verilog2001Parser#unary_operator.
def enterUnary_operator(self, ctx:Verilog2001Parser.Unary_operatorContext):
pass
# Exit a parse tree produced by Verilog2001Parser#unary_operator.
def exitUnary_operator(self, ctx:Verilog2001Parser.Unary_operatorContext):
pass
# Enter a parse tree produced by Verilog2001Parser#binary_operator.
def enterBinary_operator(self, ctx:Verilog2001Parser.Binary_operatorContext):
pass
# Exit a parse tree produced by Verilog2001Parser#binary_operator.
def exitBinary_operator(self, ctx:Verilog2001Parser.Binary_operatorContext):
pass
# Enter a parse tree produced by Verilog2001Parser#unary_module_path_operator.
def enterUnary_module_path_operator(self, ctx:Verilog2001Parser.Unary_module_path_operatorContext):
pass
# Exit a parse tree produced by Verilog2001Parser#unary_module_path_operator.
def exitUnary_module_path_operator(self, ctx:Verilog2001Parser.Unary_module_path_operatorContext):
pass
# Enter a parse tree produced by Verilog2001Parser#binary_module_path_operator.
def enterBinary_module_path_operator(self, ctx:Verilog2001Parser.Binary_module_path_operatorContext):
pass
# Exit a parse tree produced by Verilog2001Parser#binary_module_path_operator.
def exitBinary_module_path_operator(self, ctx:Verilog2001Parser.Binary_module_path_operatorContext):
pass
# Enter a parse tree produced by Verilog2001Parser#number.
def enterNumber(self, ctx:Verilog2001Parser.NumberContext):
pass
# Exit a parse tree produced by Verilog2001Parser#number.
def exitNumber(self, ctx:Verilog2001Parser.NumberContext):
pass
# Enter a parse tree produced by Verilog2001Parser#timing_spec.
def enterTiming_spec(self, ctx:Verilog2001Parser.Timing_specContext):
pass
# Exit a parse tree produced by Verilog2001Parser#timing_spec.
def exitTiming_spec(self, ctx:Verilog2001Parser.Timing_specContext):
pass
# Enter a parse tree produced by Verilog2001Parser#attribute_instance.
def enterAttribute_instance(self, ctx:Verilog2001Parser.Attribute_instanceContext):
pass
# Exit a parse tree produced by Verilog2001Parser#attribute_instance.
def exitAttribute_instance(self, ctx:Verilog2001Parser.Attribute_instanceContext):
pass
# Enter a parse tree produced by Verilog2001Parser#attr_spec.
def enterAttr_spec(self, ctx:Verilog2001Parser.Attr_specContext):
pass
# Exit a parse tree produced by Verilog2001Parser#attr_spec.
def exitAttr_spec(self, ctx:Verilog2001Parser.Attr_specContext):
pass
# Enter a parse tree produced by Verilog2001Parser#attr_name.
def enterAttr_name(self, ctx:Verilog2001Parser.Attr_nameContext):
pass
# Exit a parse tree produced by Verilog2001Parser#attr_name.
def exitAttr_name(self, ctx:Verilog2001Parser.Attr_nameContext):
pass
# Enter a parse tree produced by Verilog2001Parser#arrayed_identifier.
def enterArrayed_identifier(self, ctx:Verilog2001Parser.Arrayed_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#arrayed_identifier.
def exitArrayed_identifier(self, ctx:Verilog2001Parser.Arrayed_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#block_identifier.
def enterBlock_identifier(self, ctx:Verilog2001Parser.Block_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#block_identifier.
def exitBlock_identifier(self, ctx:Verilog2001Parser.Block_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#cell_identifier.
def enterCell_identifier(self, ctx:Verilog2001Parser.Cell_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#cell_identifier.
def exitCell_identifier(self, ctx:Verilog2001Parser.Cell_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#config_identifier.
def enterConfig_identifier(self, ctx:Verilog2001Parser.Config_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#config_identifier.
def exitConfig_identifier(self, ctx:Verilog2001Parser.Config_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#escaped_arrayed_identifier.
def enterEscaped_arrayed_identifier(self, ctx:Verilog2001Parser.Escaped_arrayed_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#escaped_arrayed_identifier.
def exitEscaped_arrayed_identifier(self, ctx:Verilog2001Parser.Escaped_arrayed_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#escaped_hierarchical_identifier.
def enterEscaped_hierarchical_identifier(self, ctx:Verilog2001Parser.Escaped_hierarchical_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#escaped_hierarchical_identifier.
def exitEscaped_hierarchical_identifier(self, ctx:Verilog2001Parser.Escaped_hierarchical_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#event_identifier.
def enterEvent_identifier(self, ctx:Verilog2001Parser.Event_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#event_identifier.
def exitEvent_identifier(self, ctx:Verilog2001Parser.Event_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#function_identifier.
def enterFunction_identifier(self, ctx:Verilog2001Parser.Function_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#function_identifier.
def exitFunction_identifier(self, ctx:Verilog2001Parser.Function_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#gate_instance_identifier.
def enterGate_instance_identifier(self, ctx:Verilog2001Parser.Gate_instance_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#gate_instance_identifier.
def exitGate_instance_identifier(self, ctx:Verilog2001Parser.Gate_instance_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#generate_block_identifier.
def enterGenerate_block_identifier(self, ctx:Verilog2001Parser.Generate_block_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#generate_block_identifier.
def exitGenerate_block_identifier(self, ctx:Verilog2001Parser.Generate_block_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#genvar_function_identifier.
def enterGenvar_function_identifier(self, ctx:Verilog2001Parser.Genvar_function_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#genvar_function_identifier.
def exitGenvar_function_identifier(self, ctx:Verilog2001Parser.Genvar_function_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#genvar_identifier.
def enterGenvar_identifier(self, ctx:Verilog2001Parser.Genvar_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#genvar_identifier.
def exitGenvar_identifier(self, ctx:Verilog2001Parser.Genvar_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#hierarchical_block_identifier.
def enterHierarchical_block_identifier(self, ctx:Verilog2001Parser.Hierarchical_block_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#hierarchical_block_identifier.
def exitHierarchical_block_identifier(self, ctx:Verilog2001Parser.Hierarchical_block_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#hierarchical_event_identifier.
def enterHierarchical_event_identifier(self, ctx:Verilog2001Parser.Hierarchical_event_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#hierarchical_event_identifier.
def exitHierarchical_event_identifier(self, ctx:Verilog2001Parser.Hierarchical_event_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#hierarchical_function_identifier.
def enterHierarchical_function_identifier(self, ctx:Verilog2001Parser.Hierarchical_function_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#hierarchical_function_identifier.
def exitHierarchical_function_identifier(self, ctx:Verilog2001Parser.Hierarchical_function_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#hierarchical_identifier.
def enterHierarchical_identifier(self, ctx:Verilog2001Parser.Hierarchical_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#hierarchical_identifier.
def exitHierarchical_identifier(self, ctx:Verilog2001Parser.Hierarchical_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#hierarchical_net_identifier.
def enterHierarchical_net_identifier(self, ctx:Verilog2001Parser.Hierarchical_net_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#hierarchical_net_identifier.
def exitHierarchical_net_identifier(self, ctx:Verilog2001Parser.Hierarchical_net_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#hierarchical_variable_identifier.
def enterHierarchical_variable_identifier(self, ctx:Verilog2001Parser.Hierarchical_variable_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#hierarchical_variable_identifier.
def exitHierarchical_variable_identifier(self, ctx:Verilog2001Parser.Hierarchical_variable_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#hierarchical_task_identifier.
def enterHierarchical_task_identifier(self, ctx:Verilog2001Parser.Hierarchical_task_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#hierarchical_task_identifier.
def exitHierarchical_task_identifier(self, ctx:Verilog2001Parser.Hierarchical_task_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#identifier.
def enterIdentifier(self, ctx:Verilog2001Parser.IdentifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#identifier.
def exitIdentifier(self, ctx:Verilog2001Parser.IdentifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#inout_port_identifier.
def enterInout_port_identifier(self, ctx:Verilog2001Parser.Inout_port_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#inout_port_identifier.
def exitInout_port_identifier(self, ctx:Verilog2001Parser.Inout_port_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#input_port_identifier.
def enterInput_port_identifier(self, ctx:Verilog2001Parser.Input_port_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#input_port_identifier.
def exitInput_port_identifier(self, ctx:Verilog2001Parser.Input_port_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#instance_identifier.
def enterInstance_identifier(self, ctx:Verilog2001Parser.Instance_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#instance_identifier.
def exitInstance_identifier(self, ctx:Verilog2001Parser.Instance_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#library_identifier.
def enterLibrary_identifier(self, ctx:Verilog2001Parser.Library_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#library_identifier.
def exitLibrary_identifier(self, ctx:Verilog2001Parser.Library_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#memory_identifier.
def enterMemory_identifier(self, ctx:Verilog2001Parser.Memory_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#memory_identifier.
def exitMemory_identifier(self, ctx:Verilog2001Parser.Memory_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_identifier.
def enterModule_identifier(self, ctx:Verilog2001Parser.Module_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_identifier.
def exitModule_identifier(self, ctx:Verilog2001Parser.Module_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#module_instance_identifier.
def enterModule_instance_identifier(self, ctx:Verilog2001Parser.Module_instance_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#module_instance_identifier.
def exitModule_instance_identifier(self, ctx:Verilog2001Parser.Module_instance_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#net_identifier.
def enterNet_identifier(self, ctx:Verilog2001Parser.Net_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#net_identifier.
def exitNet_identifier(self, ctx:Verilog2001Parser.Net_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#output_port_identifier.
def enterOutput_port_identifier(self, ctx:Verilog2001Parser.Output_port_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#output_port_identifier.
def exitOutput_port_identifier(self, ctx:Verilog2001Parser.Output_port_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#parameter_identifier.
def enterParameter_identifier(self, ctx:Verilog2001Parser.Parameter_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#parameter_identifier.
def exitParameter_identifier(self, ctx:Verilog2001Parser.Parameter_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#port_identifier.
def enterPort_identifier(self, ctx:Verilog2001Parser.Port_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#port_identifier.
def exitPort_identifier(self, ctx:Verilog2001Parser.Port_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#real_identifier.
def enterReal_identifier(self, ctx:Verilog2001Parser.Real_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#real_identifier.
def exitReal_identifier(self, ctx:Verilog2001Parser.Real_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#simple_arrayed_identifier.
def enterSimple_arrayed_identifier(self, ctx:Verilog2001Parser.Simple_arrayed_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#simple_arrayed_identifier.
def exitSimple_arrayed_identifier(self, ctx:Verilog2001Parser.Simple_arrayed_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#simple_hierarchical_identifier.
def enterSimple_hierarchical_identifier(self, ctx:Verilog2001Parser.Simple_hierarchical_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#simple_hierarchical_identifier.
def exitSimple_hierarchical_identifier(self, ctx:Verilog2001Parser.Simple_hierarchical_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#specparam_identifier.
def enterSpecparam_identifier(self, ctx:Verilog2001Parser.Specparam_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#specparam_identifier.
def exitSpecparam_identifier(self, ctx:Verilog2001Parser.Specparam_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#system_function_identifier.
def enterSystem_function_identifier(self, ctx:Verilog2001Parser.System_function_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#system_function_identifier.
def exitSystem_function_identifier(self, ctx:Verilog2001Parser.System_function_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#system_task_identifier.
def enterSystem_task_identifier(self, ctx:Verilog2001Parser.System_task_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#system_task_identifier.
def exitSystem_task_identifier(self, ctx:Verilog2001Parser.System_task_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#task_identifier.
def enterTask_identifier(self, ctx:Verilog2001Parser.Task_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#task_identifier.
def exitTask_identifier(self, ctx:Verilog2001Parser.Task_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#terminal_identifier.
def enterTerminal_identifier(self, ctx:Verilog2001Parser.Terminal_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#terminal_identifier.
def exitTerminal_identifier(self, ctx:Verilog2001Parser.Terminal_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#text_macro_identifier.
def enterText_macro_identifier(self, ctx:Verilog2001Parser.Text_macro_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#text_macro_identifier.
def exitText_macro_identifier(self, ctx:Verilog2001Parser.Text_macro_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#topmodule_identifier.
def enterTopmodule_identifier(self, ctx:Verilog2001Parser.Topmodule_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#topmodule_identifier.
def exitTopmodule_identifier(self, ctx:Verilog2001Parser.Topmodule_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#udp_identifier.
def enterUdp_identifier(self, ctx:Verilog2001Parser.Udp_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#udp_identifier.
def exitUdp_identifier(self, ctx:Verilog2001Parser.Udp_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#udp_instance_identifier.
def enterUdp_instance_identifier(self, ctx:Verilog2001Parser.Udp_instance_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#udp_instance_identifier.
def exitUdp_instance_identifier(self, ctx:Verilog2001Parser.Udp_instance_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#variable_identifier.
def enterVariable_identifier(self, ctx:Verilog2001Parser.Variable_identifierContext):
pass
# Exit a parse tree produced by Verilog2001Parser#variable_identifier.
def exitVariable_identifier(self, ctx:Verilog2001Parser.Variable_identifierContext):
pass
# Enter a parse tree produced by Verilog2001Parser#simple_hierarchical_branch.
def enterSimple_hierarchical_branch(self, ctx:Verilog2001Parser.Simple_hierarchical_branchContext):
pass
# Exit a parse tree produced by Verilog2001Parser#simple_hierarchical_branch.
def exitSimple_hierarchical_branch(self, ctx:Verilog2001Parser.Simple_hierarchical_branchContext):
pass
# Enter a parse tree produced by Verilog2001Parser#escaped_hierarchical_branch.
def enterEscaped_hierarchical_branch(self, ctx:Verilog2001Parser.Escaped_hierarchical_branchContext):
pass
# Exit a parse tree produced by Verilog2001Parser#escaped_hierarchical_branch.
def exitEscaped_hierarchical_branch(self, ctx:Verilog2001Parser.Escaped_hierarchical_branchContext):
pass
del Verilog2001Parser
| 40.182599
| 131
| 0.787356
| 12,410
| 112,230
| 6.869863
| 0.045931
| 0.043563
| 0.072606
| 0.13069
| 0.924028
| 0.911219
| 0.910105
| 0.788963
| 0.7785
| 0.48932
| 0
| 0.054033
| 0.162951
| 112,230
| 2,793
| 132
| 40.182599
| 0.853495
| 0.381075
| 0
| 0.497184
| 1
| 0
| 0.000015
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.497184
| false
| 0.50362
| 0.002414
| 0
| 0.500402
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 9
|
9a910f7581befaa01d529207fa958fa1f19519ef
| 122,075
|
py
|
Python
|
pre_proc/file_fix/attribute_add.py
|
PRIMAVERA-H2020/pre-proc
|
0c47636cbe32a13a9544f3e5ce9f4c778dc55078
|
[
"BSD-3-Clause"
] | null | null | null |
pre_proc/file_fix/attribute_add.py
|
PRIMAVERA-H2020/pre-proc
|
0c47636cbe32a13a9544f3e5ce9f4c778dc55078
|
[
"BSD-3-Clause"
] | null | null | null |
pre_proc/file_fix/attribute_add.py
|
PRIMAVERA-H2020/pre-proc
|
0c47636cbe32a13a9544f3e5ce9f4c778dc55078
|
[
"BSD-3-Clause"
] | null | null | null |
"""
attribute_add.py
Workers that fix the netCDF files that are based on the AttributeAdd
abstract base classes.
"""
import os
import re
import uuid
from netCDF4 import Dataset
from .abstract import AttributeAdd, AttributeDelete
from pre_proc.common import to_int
from pre_proc.exceptions import AttributeConversionError
class AirTemperatureNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`air_temperature`. This is done in overwrite mode and so will work
irrespective of whether there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'air_temperature'
class ParentBranchTimeAdd(AttributeAdd):
"""
Add a global attribute `branch_time_in_parent` with a value of zero.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_parent'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
The new value is zero.
"""
self.new_value = 0.0
class ParentBranchTime38714Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_parent` with a value of 38714
(1955-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_parent'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 38714.0
class ParentBranchTime40175Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_parent` with a value of 40175
(1959-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_parent'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 40175.0
class ParentBranchTime41636Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_parent` with a value of 41636
(1963-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_parent'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 41636.0
class ParentBranchTime43097Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_parent` with a value of 43097
(1967-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_parent'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 43097.0
class ParentBranchTime44558Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_parent` with a value of 44558
(1971-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_parent'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 44558.0
class ParentBranchTime45655Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_parent` with a value of 45655.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_parent'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
The new value is 45655.
"""
self.new_value = 45655.0
class ParentBranchTime46019Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_parent` with a value of 46019
(1975-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_parent'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 46019.0
class ParentBranchTime47480Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_parent` with a value of 47480
(1979-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_parent'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 47480.0
class ParentBranchTime48941Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_parent` with a value of 48941
(1983-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_parent'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 48941.0
class ParentBranchTime50402Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_parent` with a value of 50402
(1987-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_parent'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 50402.0
class ParentBranchTime51863Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_parent` with a value of 51863
(1991-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_parent'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 51863.0
class ChildBranchTimeAdd(AttributeAdd):
"""
Add a global attribute `branch_time_in_child` with a value of zero.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_child'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
The new value is zero.
"""
self.new_value = 0.0
class ChildBranchTime36524Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_child` with a value of 36524 (100
years when units are days and calendar is gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_child'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 36524.0
class ChildBranchTime38714Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_child` with a value of 38714
(1955-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_child'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 38714.0
class ChildBranchTime40175Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_child` with a value of 40175
(1959-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_child'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 40175.0
class ChildBranchTime41636Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_child` with a value of 41636
(1963-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_child'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 41636.0
class ChildBranchTime43097Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_child` with a value of 43097
(1967-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_child'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 43097.0
class ChildBranchTime44558Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_child` with a value of 44558
(1971-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_child'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 44558.0
class ChildBranchTime46019Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_child` with a value of 46019
(1975-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_child'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 46019.0
class ChildBranchTime47480Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_child` with a value of 47480
(1979-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_child'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 47480.0
class ChildBranchTime48941Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_child` with a value of 48941
(1983-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_child'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 48941.0
class ChildBranchTime50402Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_child` with a value of 50402
(1987-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_child'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 50402.0
class ChildBranchTime51863Add(AttributeAdd):
"""
Add a global attribute `branch_time_in_child` with a value of 51863
(1991-12-31 in days since 1850-1-1 and gregorian).
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time_in_child'
self.attribute_visibility = 'global'
self.attribute_type = 'd'
def _calculate_new_value(self):
"""
Set the new value
"""
self.new_value = 51863.0
class BranchMethodAdd(AttributeAdd):
"""
Add a global attribute `branch_method` with a value of 'no_parent'.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_method'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'no parent'
class BranchMethodStandardAdd(AttributeAdd):
"""
Add a global attribute `branch_method` with a value of 'standard'.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_method'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'standard'
class BranchTimeDelete(AttributeDelete):
"""
Delete variable attribute `branch_time`.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'branch_time'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
We're deleting so there's nothing to do but make a dummy value for
new_value.
"""
self.new_value = 0
class DataSpecsVersionAdd(AttributeAdd):
"""
Add a global attribute `data_specs_version` with a value of '01.00.23'.
This will probably already exist but the parent abstract class uses
overwrite and so this should be fine.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'data_specs_version'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = '01.00.23'
class DataSpecsVersion27Add(AttributeAdd):
"""
Add a global attribute `data_specs_version` with a value of '01.00.27'.
This will probably already exist but the parent abstract class uses
overwrite and so this should be fine.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'data_specs_version'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = '01.00.27'
class DataSpecsVersion29Add(AttributeAdd):
"""
Add a global attribute `data_specs_version` with a value of '01.00.29'.
This will probably already exist but the parent abstract class uses
overwrite and so this should be fine.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'data_specs_version'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = '01.00.29'
class CellMeasuresAreacellaAdd(AttributeAdd):
"""
Add a variable attribute `cellmeasures` with a value of `area: areacella`
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_measures'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'area: areacella'
class CellMeasuresAreacelloAdd(AttributeAdd):
"""
Add a variable attribute `cellmeasures` with a value of `area: areacello`
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_measures'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'area: areacello'
class CellMeasuresAreacelloVolcelloAdd(AttributeAdd):
"""
Add a variable attribute `cellmeasures` with a value of
`area: areacello volume: volcello`
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_measures'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'area: areacello volume: volcello'
class CellMeasuresDelete(AttributeDelete):
"""
Delete variable attribute `cellmeasures`.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_measures'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
We're deleting so there's nothing to do but make a dummy value for
new_value.
"""
self.new_value = 0
class CellMethodsTimeMaxAdd(AttributeAdd):
"""
Add a variable attribute `cell_methods` with a value of `time: maximum`.
This is done in overwrite mode and so will work irrespective of whether
there is an existing cell_methods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'time: maximum'
class CellMethodsTimeMeanAdd(AttributeAdd):
"""
Add a variable attribute `cellmethods` with a value of `time: mean`.
This is done in overwrite mode and so will work irrespective of whether
there is an existing cellmethods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'time: mean'
class CellMethodsTimePointAdd(AttributeAdd):
"""
Add a variable attribute `cell_methods` with a value of `time: point`.
This is done in overwrite mode and so will work irrespective of whether
there is an existing cell_methods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'time: point'
class CellMethodsAreaTimeMeanAdd(AttributeAdd):
"""
Add a variable attribute `cellmethods` with a value of `area: time: mean`.
This is done in overwrite mode and so will work irrespective of whether
there is an existing cellmethods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'area: time: mean'
class CellMethodsAreaMeanTimeLandMeanAdd(AttributeAdd):
"""
Add a variable attribute `cell_methods` with a value of
`area: mean where land time: mean`. This is done in overwrite mode
and so will work irrespective of whether there is an existing
cell_methods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'area: mean where land time: mean'
class CellMethodsSeaAreaTimeMeanAdd(AttributeAdd):
"""
Add a variable attribute `cellmethods` with a value of
`area: mean where sea time: mean`. This is done in overwrite mode
and so will work irrespective of whether there is an existing
cellmethods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'area: mean where sea time: mean'
class CellMethodsAreaMeanTimePointAdd(AttributeAdd):
"""
Add a variable attribute `cellmethods` with a value of
`area: mean time: point`. This is done in overwrite mode
and so will work irrespective of whether there is an existing
cellmethods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'area: mean time: point'
class CellMethodsAreaTimeMeanAddLand(AttributeAdd):
"""
Add a variable attribute `cellmethods` with a value of
`area: time: mean (comment: over land and sea ice)`. This is done
in overwrite mode and so will work irrespective of whether there is an
existing cellmethods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = (
'area: time: mean (comment: over land and sea ice)'
)
class CellMethodsAreaMeanTimePointAddLand(AttributeAdd):
"""
Add a variable attribute `cellmethods` with a value of
`area: mean (comment: over land and sea ice) time: point`. This is done
in overwrite mode and so will work irrespective of whether there is an
existing cellmethods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = (
'area: mean (comment: over land and sea ice) time: point'
)
class CellMethodsAreaMeanLandTimeMeanAdd(AttributeAdd):
"""
Add a variable attribute `cellmethods` with a value of
`time: mean area: mean where land`. This is done
in overwrite mode and so will work irrespective of whether there is an
existing cellmethods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = (
'time: mean area: mean where land'
)
class CellMethodsAreaMeanLandTimePointAdd(AttributeAdd):
"""
Add a variable attribute `cellmethods` with a value of
`area: mean where land time: point`. This is done
in overwrite mode and so will work irrespective of whether there is an
existing cellmethods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = (
'area: mean where land time: point'
)
class CellMethodsAreaMeanTimeMinimumAdd(AttributeAdd):
"""
Add a variable attribute `cellmethods` with a value of
`area: mean time: minimum within days time: mean over days`. This is done
in overwrite mode and so will work irrespective of whether there is an
existing cellmethods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = ('area: mean time: minimum within days time: '
'mean over days')
class CellMethodsAreaMeanTimeMaximumAdd(AttributeAdd):
"""
Add a variable attribute `cellmethods` with a value of
`area: mean time: maximum within days time: mean over days`. This is done
in overwrite mode and so will work irrespective of whether there is an
existing cellmethods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = ('area: mean time: maximum within days time: '
'mean over days')
class CellMethodsAreaMeanTimeMinDailyAdd(AttributeAdd):
"""
Add a variable attribute `cellmethods` with a value of
`area: mean time: minimum`. This is done
in overwrite mode and so will work irrespective of whether there is an
existing cellmethods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'area: mean time: minimum'
class CellMethodsAreaMeanTimeMaxDailyAdd(AttributeAdd):
"""
Add a variable attribute `cellmethods` with a value of
`area: mean time: maximum`. This is done
in overwrite mode and so will work irrespective of whether there is an
existing cellmethods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'area: mean time: maximum'
class CellMethodsAreaSumSeaTimeMeanAdd(AttributeAdd):
"""
Add a variable attribute `cell_methods` with a value of
`area: sum where sea time: mean`. This is done
in overwrite mode and so will work irrespective of whether there is an
existing cell_methods attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'cell_methods'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'area: sum where sea time: mean'
class Conventions(AttributeAdd):
"""
Add a global attribute `Conventions` with a value of
`CF-1.7 CMIP-6.2`. This is done in overwrite mode and so will work
irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'Conventions'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'CF-1.7 CMIP-6.2'
class CreationDate201807(AttributeAdd):
"""
Add a global attribute `creation_date` with a value of
`2018-07-01T00:00:00Z`. This is done in overwrite mode and so will work
irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'creation_date'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = '2018-07-01T00:00:00Z'
class DcppcAmvNegExpt(AttributeAdd):
"""
Add a global attribute `experiment` with a value of
`Idealized climate impact of negative 2xAMV anomaly pattern`. This is
done in overwrite mode and so will work
irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'experiment'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = ('Idealized climate impact of negative 2xAMV '
'anomaly pattern')
class DcppcAmvNegExptId(AttributeAdd):
"""
Add a global attribute `experiment_id` with a value of
`dcppc-amv-neg`. This is done in overwrite mode and so will work
irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'experiment_id'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'dcppc-amv-neg'
class DcppcAmvPosExpt(AttributeAdd):
"""
Add a global attribute `experiment` with a value of
`Idealized climate impact of positive 2xAMV anomaly pattern`. This is
done in overwrite mode and so will work
irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'experiment'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = ('Idealized climate impact of positive 2xAMV '
'anomaly pattern')
class DcppcAmvPosExptId(AttributeAdd):
"""
Add a global attribute `experiment_id` with a value of
`dcppc-amv-pos`. This is done in overwrite mode and so will work
irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'experiment_id'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'dcppc-amv-pos'
class EcEarthInstitution(AttributeAdd):
"""
Add a global attribute `institution` with a value for EC-Earth. This
is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'institution'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = ('AEMET, Spain; BSC, Spain; CNR-ISAC, Italy; DMI, '
'Denmark; ENEA, Italy; FMI, Finland; Geomar, Germany;'
' ICHEC, Ireland; ICTP, Italy; IDL, Portugal; IMAU, '
'The Netherlands; IPMA, Portugal; KIT, Karlsruhe, '
'Germany; KNMI, The Netherlands; Lund University, '
'Sweden; Met Eireann, Ireland; NLeSC, The '
'Netherlands; NTNU, Norway; Oxford University, '
'UK; surfSARA, The Netherlands; SMHI, Sweden; '
'Stockholm University, Sweden; Unite ASTR, Belgium; '
'University College Dublin, Ireland; University of '
'Bergen, Norway; University of Copenhagen, Denmark; '
'University of Helsinki, Finland; University of '
'Santiago de Compostela, Spain; Uppsala University, '
'Sweden; Utrecht University, The Netherlands; Vrije '
'Universiteit Amsterdam, the Netherlands; Wageningen '
'University, The Netherlands. Mailing address: '
'EC-Earth consortium, Rossby Center, Swedish '
'Meteorological and Hydrological Institute/SMHI, '
'SE-601 76 Norrkoping, Sweden')
class EcmwfInstitution(AttributeAdd):
"""
Add a global attribute `institution` with a value for ECMWF. This
is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'institution'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = ('European Centre for Medium-Range Weather '
'Forecasts, Reading RG2 9AX, UK')
class EcmwfReferences(AttributeAdd):
"""
Add a global attribute `referencs` with a value for ECMWF. This
is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'references'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = ('Roberts, C. D., Senan, R., Molteni, F., Boussetta, '
'S., Mayer, M., and Keeley, S. P. E.: Climate model '
'configurations of the ECMWF Integrated Forecasting '
'System (ECMWF-IFS cycle 43r1) for HighResMIP, '
'Geosci. Model Dev., 11, 3681-3712, '
'https://doi.org/10.5194/gmd-11-3681-2018, 2018.')
class EcmwfSourceHr(AttributeAdd):
"""
Add a global attribute `source` with a value for ECMWF-IFS-HR. This
is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'source'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = (
'ECMWF-IFS-HR (2017): \naerosol: none\natmos: IFS (IFS CY43R1, '
'Tco399, cubic octahedral reduced Gaussian grid equivalent to '
'1600 x 800 longitude/latitude; 91 levels; top level 0.01 hPa)'
'\natmosChem: none\nland: HTESSEL (as implemented in IFS CY43R1)'
'\nlandIce: none\nocean: NEMO3.4 (NEMO v3.4; ORCA025 tripolar grid;'
' 1442 x 1021 longitude/latitude; 75 levels; top grid cell 0-1 m)'
'\nocnBgchem: none\nseaIce: LIM2 (LIM v2; ORCA025 tripolar grid; '
'1442 x 1021 longitude/latitude)'
)
class EcmwfSourceMr(AttributeAdd):
"""
Add a global attribute `source` with a value for ECMWF-IFS-MR. This
is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'source'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = (
'ECMWF-IFS-MR (2017): \naerosol: none\natmos: IFS (IFS CY43R1, '
'Tco199, cubic octahedral reduced Gaussian grid equivalent to 800 '
'x 400 longitude/latitude; 91 levels; top level 0.01 hPa)'
'\natmosChem: none\nland: HTESSEL (as implemented in IFS CY43R1)'
'\nlandIce: none\nocean: NEMO3.4 (NEMO v3.4; ORCA025 tripolar '
'grid; 1442 x 1021 longitude/latitude; 75 levels; top grid cell '
'0-1 m)\nocnBgchem: none\nseaIce: LIM2 (LIM v2; ORCA025 tripolar '
'grid; 1442 x 1021 longitude/latitude)'
)
class EcmwfSourceLr(AttributeAdd):
"""
Add a global attribute `source` with a value for ECMWF-IFS-LR. This
is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'source'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = (
'ECMWF-IFS-LR (2017): \naerosol: none\natmos: IFS (IFS CY43R1, '
'Tco199, cubic octahedral reduced Gaussian grid equivalent to 800 '
'x 400 longitude/latitude; 91 levels; top level 0.01 hPa)'
'\natmosChem: none\nland: HTESSEL (as implemented in IFS CY43R1)'
'\nlandIce: none\nocean: NEMO3.4 (NEMO v3.4; ORCA1 tripolar grid; '
'362 x 292 longitude/latitude; 75 levels; top grid cell 0-1 m)'
'\nocnBgchem: none\nseaIce: LIM2 (LIM v2; ORCA1 tripolar grid; '
'362 x 292 longitude/latitude)'
)
class ExternalVariablesAreacella(AttributeAdd):
"""
Add a global attribute `external_variables` with a value of `areacella`.
This is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'external_variables'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'areacella'
class ExternalVariablesAreacello(AttributeAdd):
"""
Add a global attribute `external_variables` with a value of `areacello`.
This is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'external_variables'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'areacello'
class ExternalVariablesAreacelloVolcello(AttributeAdd):
"""
Add a global attribute `external_variables` with a value of
`areacello volcello`. This is done in overwrite mode and so will work
irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'external_variables'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'areacello volcello'
class ForcingIndexFromFilename(AttributeAdd):
"""
Add a global attribute `forcing_index` with a value of
calculated from the filename. This is done in overwrite mode and
so will work irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'forcing_index'
self.attribute_visibility = 'global'
self.attribute_type = 's'
def _calculate_new_value(self):
"""
Set the new value.
"""
ripf_cmpts = re.search(r'r(\d+)i(\d+)p(\d+)f(\d+)', self.filename)
try:
self.new_value = to_int(ripf_cmpts.group(4))
except ValueError:
raise AttributeConversionError(self.filename, self.attribute_name,
'int')
class FrequencyDayAdd(AttributeAdd):
"""
Add a global attribute `frequency` with a value of
`day`. This is done in overwrite mode and so will work
irrespective of whether there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'frequency'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'day'
class FrequencyMonAdd(AttributeAdd):
"""
Add a global attribute `frequency` with a value of
`mon`. This is done in overwrite mode and so will work
irrespective of whether there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'frequency'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'mon'
class GeopotentialHeightNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`geopotential_height`. This is done in overwrite mode and so will work
irrespective of whether there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'geopotential_height'
class GridLabelGnAdd(AttributeAdd):
"""
Add a global attribute `grid_label` with a value of
`gn`. This is done in overwrite mode and so will work
irrespective of whether there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'grid_label'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'gn'
class GridLabelGrAdd(AttributeAdd):
"""
Add a global attribute `grid_label` with a value of
`gr`. This is done in overwrite mode and so will work
irrespective of whether there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'grid_label'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'gr'
class GridNativeAdd(AttributeAdd):
"""
Add a global attribute `grid` with a value of
`native atmosphere and ocean grids`. This is done in overwrite mode
and so will work irrespective of whether there is an existing
standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'grid'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'native atmosphere and ocean grids'
class HadGemMMParentSourceId(AttributeAdd):
"""
Add a global attribute `parent_source_id` with a value for HadGEM3-GC31-MM.
This is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'parent_source_id'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'HadGEM3-GC31-MM'
class HistoryClearOld(AttributeAdd):
"""
Set the global history attribute to be an empty string.
This is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'history'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = ''
class InitializationIndexFromFilename(AttributeAdd):
"""
Add a global attribute `initialization_index` with a value of
calculated from the filename. This is done in overwrite mode and
so will work irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'initialization_index'
self.attribute_visibility = 'global'
self.attribute_type = 's'
def _calculate_new_value(self):
"""
Set the new value.
"""
ripf_cmpts = re.search(r'r(\d+)i(\d+)p(\d+)f(\d+)', self.filename)
try:
self.new_value = to_int(ripf_cmpts.group(2))
except ValueError:
raise AttributeConversionError(self.filename, self.attribute_name,
'int')
class ParentActIdAdd(AttributeAdd):
"""
Add a global attribute `parent_activity_id` with a value of
'HighResMIP'. This is done in overwrite mode and
so will work irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'parent_activity_id'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'HighResMIP'
class ParentExptIdCtrlAdd(AttributeAdd):
"""
Add a global attribute `parent_experiment_id` with a value of
'control-1950'. This is done in overwrite mode and
so will work irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'parent_experiment_id'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'control-1950'
class ParentMipEraAdd(AttributeAdd):
"""
Add a global attribute `parent_mip_era` with a value of
'CMIP6'. This is done in overwrite mode and
so will work irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'parent_mip_era'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'CMIP6'
class ParentTimeUnits1850Add(AttributeAdd):
"""
Add a global attribute `parent_time_units` with a value of
'days since 1850-1-1 00:00:00'. This is done in overwrite mode and
so will work irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'parent_time_units'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'days since 1850-1-1 00:00:00'
class ParentVariantLabel(AttributeAdd):
"""
Add a global attribute `parent_variant_label` with a value of
'r1i1p1f1'. This is done in overwrite mode and
so will work irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'parent_variant_label'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'r1i1p1f1'
class PhysicsIndexFromFilename(AttributeAdd):
"""
Add a global attribute `physics_index` with a value calculated from
the filename. This is done in overwrite mode and so will work
irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'physics_index'
self.attribute_visibility = 'global'
self.attribute_type = 's'
def _calculate_new_value(self):
"""
Set the new value.
"""
ripf_cmpts = re.search(r'r(\d+)i(\d+)p(\d+)f(\d+)', self.filename)
try:
self.new_value = to_int(ripf_cmpts.group(3))
except ValueError:
raise AttributeConversionError(self.filename, self.attribute_name,
'int')
class RealizationIndexFromFilename(AttributeAdd):
"""
Add a global attribute `realization_index` with a value of
calculated from the filename. This is done in overwrite mode and
so will work irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'realization_index'
self.attribute_visibility = 'global'
self.attribute_type = 's'
def _calculate_new_value(self):
"""
Set the new value.
"""
ripf_cmpts = re.search(r'r(\d+)i(\d+)p(\d+)f(\d+)', self.filename)
try:
self.new_value = to_int(ripf_cmpts.group(1))
except ValueError:
raise AttributeConversionError(self.filename, self.attribute_name,
'int')
class ProductAdd(AttributeAdd):
"""
Add a global attribute `product` with a value of `model-output`. This is
done in overwrite mode and so will work irrespective of whether there is
an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'product'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'model-output'
class AtmosphereCloudIceContentStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`atmosphere_cloud_ice_content`. This is done in overwrite mode and so will
work irrespective of whether there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'atmosphere_cloud_ice_content'
class HfbasinpmadvStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`northward_ocean_heat_transport_due_to_parameterized_mesoscale_eddy_advection`.
This is done in overwrite mode and so will work irrespective of whether
there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = ('northward_ocean_heat_transport_due_to_'
'parameterized_mesoscale_eddy_advection')
class HfbasinpmdiffStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`northward_ocean_heat_transport_due_to_parameterized_mesoscale_eddy_diffusion`.
This is done in overwrite mode and so will work irrespective of whether
there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = ('northward_ocean_heat_transport_due_to_'
'parameterized_mesoscale_eddy_diffusion')
class LicenseAdd(AttributeAdd):
"""
Add a license global attribute appropriate to the institution_id.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'license'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Change the existing value to `PRIMAVERA`.
"""
filepath = os.path.join(self.directory, self.filename)
with Dataset(filepath) as rootgrp:
institution_id = getattr(rootgrp, 'institution_id', None)
self.new_value = (
f'CMIP6 model data produced by {institution_id} is licensed under '
f'a Creative Commons Attribution-ShareAlike 4.0 International '
f'License (https://creativecommons.org/licenses/). Consult '
f'https://pcmdi.llnl.gov/CMIP6/TermsOfUse for terms of use '
f'governing CMIP6 output, including citation requirements and '
f'proper acknowledgment. Further information about this data, '
f'including some limitations, can be found via the '
f'further_info_url (recorded as a global attribute in this file). '
f'The data producers and data providers make no warranty, either '
f'express or implied, including, but not limited to, warranties '
f'of merchantability and fitness for a particular purpose. All '
f'liabilities arising from the supply of the information '
f'(including any liability arising in negligence) are excluded to '
f'the fullest extent permitted by law.'
)
class MipEraToPrim(AttributeAdd):
"""
Change the mip_era to `PRIMAVERA`.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'mip_era'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Change the existing value to `PRIMAVERA`.
"""
self.new_value = 'PRIMAVERA'
class MpiInstitution(AttributeAdd):
"""
Add a global attribute `institution` with a value for MPI. This
is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'institution'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = ('Max Planck Institute for Meteorology, '
'Hamburg 20146, Germany')
class MPIParentSourceIdHr(AttributeAdd):
"""
Add a global attribute `parent_source_id` of MPI-ESM1-2-HR. This
is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'parent_source_id'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'MPI-ESM1-2-HR'
class MPIParentSourceIdXr(AttributeAdd):
"""
Add a global attribute `parent_source_id` of MPI-ESM1-2-XR. This
is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'parent_source_id'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'MPI-ESM1-2-XR'
class MPISourceHr(AttributeAdd):
"""
Add a global attribute `source` with a value for MPI-ESM1-2-HR. This
is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'source'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = (
'MPI-ESM1.2-HR (2017): \naerosol: none, prescribed MACv2-SP\n'
'atmos: ECHAM6.3 (spectral T127; 384 x 192 longitude/latitude; '
'95 levels; top level 0.01 hPa)\natmosChem: none\n'
'land: JSBACH3.20\nlandIce: none/prescribed\n'
'ocean: MPIOM1.63 (tripolar TP04, approximately 0.4deg; '
'802 x 404 longitude/latitude; 40 levels; top grid cell 0-12 m)\n'
'ocnBgchem: HAMOCC\nseaIce: unnamed (thermodynamic (Semtner '
'zero-layer) dynamic (Hibler 79) sea ice model)'
)
class MPISourceIdHr(AttributeAdd):
"""
Add a global attribute `source_id` of MPI-ESM1-2-HR. This
is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'source_id'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'MPI-ESM1-2-HR'
class MPISourceXr(AttributeAdd):
"""
Add a global attribute `source` with a value for MPI-ESM1-2-XR. This
is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'source'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = (
'MPI-ESM1.2-XR (2017): \naerosol: none, prescribed MACv2-SP\n'
'atmos: ECHAM6.3 (spectral T255; 768 x 384 longitude/latitude; '
'95 levels; top level 0.01 hPa)\natmosChem: none\n'
'land: JSBACH3.20\nlandIce: none/prescribed\n'
'ocean: MPIOM1.63 (tripolar TP04, approximately 0.4deg; '
'802 x 404 longitude/latitude; 40 levels; top grid cell 0-12 m)\n'
'ocnBgchem: HAMOCC6\nseaIce: unnamed (thermodynamic (Semtner '
'zero-layer) dynamic (Hibler 79) sea ice model)'
)
class MPISourceIdXr(AttributeAdd):
"""
Add a global attribute `source_id` of MPI-ESM1-2-XR. This
is done in overwrite mode and so will work irrespective of whether
there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'source_id'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'MPI-ESM1-2-XR'
class MsftmzmpaStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`ocean_meridional_overturning_mass_streamfunction_due_to_parameterized_
mesoscale_eddy_advection`. This is done in overwrite mode and so will work
irrespective of whether there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = ('ocean_meridional_overturning_mass_streamfunction_'
'due_to_parameterized_mesoscale_eddy_advection')
class NominalResolution100km(AttributeAdd):
"""
Change the nominal_resolution to `100 km`.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'nominal_resolution'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Change the existing value to `100 km`.
"""
self.new_value = '100 km'
class NominalResolution50km(AttributeAdd):
"""
Change the nominal_resolution to `50 km`.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'nominal_resolution'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Change the existing value to `50 km`.
"""
self.new_value = '50 km'
class NominalResolution25km(AttributeAdd):
"""
Change the nominal_resolution to `25 km`.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'nominal_resolution'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Change the existing value to `25 km`.
"""
self.new_value = '25 km'
class NominalResolution10km(AttributeAdd):
"""
Change the nominal_resolution to `10 km`.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'nominal_resolution'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Change the existing value to `10 km`.
"""
self.new_value = '10 km'
class RealmAtmos(AttributeAdd):
"""
Change the realm to `atmos`.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'realm'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Change the existing value to `atmos`.
"""
self.new_value = 'atmos'
class RealmOcean(AttributeAdd):
"""
Change the realm to `ocean`.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'realm'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Change the existing value to `ocean`.
"""
self.new_value = 'ocean'
class RealmSeaIce(AttributeAdd):
"""
Change the realm to `seaIce`.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'realm'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Change the existing value to `ocean`.
"""
self.new_value = 'seaIce'
class SeaWaterSalinityStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`sea_water_salinity`. This is done in overwrite mode and so will work
irrespective of whether there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'sea_water_salinity'
class SeaSurfaceTemperatureNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`sea_surface_temperature`. This is done in overwrite mode and so will work
irrespective of whether there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'sea_surface_temperature'
class ShallowConvectivePrecipitationFluxStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`shallow_convective_precipitation_flux`. This is done in overwrite mode
and so will work irrespective of whether there is an existing
standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'shallow_convective_precipitation_flux'
class SidmassdynStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`tendency_of_sea_ice_amount_due_to_sea_ice_dynamics`. This is done in
overwrite mode and so will work irrespective of whether there is an
existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'tendency_of_sea_ice_amount_due_to_sea_ice_dynamics'
class SidmassthStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`tendency_of_sea_ice_amount_due_to_sea_ice_thermodynamics`. This is done in
overwrite mode and so will work irrespective of whether there is an
existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = ('tendency_of_sea_ice_amount_due_to_sea_ice_'
'thermodynamics')
class SiflcondbotStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`sea_ice_basal_net_downward_sensible_heat_flux`. This is done in overwrite
mode and so will work irrespective of whether there is an existing
standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'sea_ice_basal_net_downward_sensible_heat_flux'
class SiflfwbotStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`water_flux_into_sea_water_from_sea_ice`. This is done in overwrite
mode and so will work irrespective of whether there is an existing
standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'water_flux_into_sea_water_from_sea_ice'
class SiflsensupbotStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`upward_sea_ice_basal_heat_flux`. This is done in overwrite
mode and so will work irrespective of whether there is an existing
standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'upward_sea_ice_basal_heat_flux'
class SihcStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`sea_ice_temperature_expressed_as_heat_content`. This is done in
overwrite mode and so will work irrespective of whether there is an
existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'sea_ice_temperature_expressed_as_heat_content'
class SisaltmassStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`sea_ice_salt_content`. This is done in overwrite
mode and so will work irrespective of whether there is an existing
standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'sea_ice_salt_content'
class SistrxubotStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`upward_x_stress_at_sea_ice_base`. This is done in overwrite
mode and so will work irrespective of whether there is an existing
standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'upward_x_stress_at_sea_ice_base'
class SistryubotStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`upward_y_stress_at_sea_ice_base`. This is done in overwrite
mode and so will work irrespective of whether there is an existing
standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'upward_y_stress_at_sea_ice_base'
class SitempbotStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`sea_ice_basal_temperature`. This is done in overwrite
mode and so will work irrespective of whether there is an existing
standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'sea_ice_basal_temperature'
class SourceTypeAogcmAdd(AttributeAdd):
"""
Add a global attribute `source_type` with a value of `AOGCM`. This is
done in overwrite mode and so will work irrespective of whether there
is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'source_type'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'AOGCM'
class SpecificHumidityStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`specific_humidity`. This is done
in overwrite mode and so will work irrespective of whether there is an
existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'specific_humidity'
class SitimefracStandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`fraction_of_time_with_sea_ice_area_fraction_above_threshold`. This is done
in overwrite mode and so will work irrespective of whether there is an
existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = ('fraction_of_time_with_sea_ice_area_fraction_'
'above_threshold')
class SubExperiment(AttributeAdd):
"""
Add a global attribute `sub_experiment` with a value of
`none`. This is done in overwrite mode and so will work irrespective of
whether there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'sub_experiment'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'none'
class SubExperimentId(AttributeAdd):
"""
Add a global attribute `sub_experiment_id` with a value of
`none`. This is done in overwrite mode and so will work irrespective of
whether there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'sub_experiment_id'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'none'
class SurfaceTemperatureNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`surface_temperature`. This is done in overwrite mode and so will work
irrespective of whether there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'surface_temperature'
class TableIdAdd(AttributeAdd):
"""
Add a global attribute `table_id` with an appropriate value determined
from the filename. This is done in overwrite mode and so will work
irrespective of whether there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'table_id'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = self.filename.split('_')[1]
class TrackingIdNew(AttributeAdd):
"""
Replace the tracking_id attribute with a new value. This may be useful
when resubmitting files that have been retracted.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'tracking_id'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = f'hdl:21.14100/{uuid.uuid4()}'
class UaStdNameAdd(AttributeAdd):
"""
Replace the variable's `standard_name` with `eastward_wind`. This is done
in overwrite mode and so will work irrespective of whether there is an
existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'eastward_wind'
class VariableIdAdd(AttributeAdd):
"""
Add a global attribute `variable_id` with an appropriate value determined
from the filename. This is done in overwrite mode and so will work
irrespective of whether there is an existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'variable_id'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = self.filename.split('_')[0]
class VariantLabelFromFilename(AttributeAdd):
"""
Add a global attribute `forcing_index` with a value of
calculated from the filename. This is done in overwrite mode and
so will work irrespective of whether there is an existing attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'variant_label'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
ripf_cmpts = re.search(r'r(\d+)i(\d+)p(\d+)f(\d+)', self.filename)
self.new_value = (f'r{ripf_cmpts.group(1)}'
f'i{ripf_cmpts.group(2)}'
f'p{ripf_cmpts.group(3)}'
f'f{ripf_cmpts.group(4)}')
class VarUnitsTo1(AttributeAdd):
"""
Replace the variable's attribute `units` to `1`. This is done in
overwrite mode and so will work irrespective of whether there is an
existing units attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'units'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = '1'
class VarUnitsToDegC(AttributeAdd):
"""
Replace the variable's attribute `units` to `degC`. This is done in
overwrite mode and so will work irrespective of whether there is an
existing units attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'units'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'degC'
class VarUnitsToKelvin(AttributeAdd):
"""
Replace the variable's attribute `units` with `K`. This is done in
overwrite mode and so will work irrespective of whether there is an
existing units attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'units'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'K'
class VarUnitsToMetre(AttributeAdd):
"""
Replace the variable's attribute `units` with `m`. This is done in
overwrite mode and so will work irrespective of whether there is an
existing units attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'units'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'm'
class VarUnitsToMetrePerSecond(AttributeAdd):
"""
Replace the variable's attribute `units` with `m s-1`. This is done in
overwrite mode and so will work irrespective of whether there is an
existing units attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'units'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'm s-1'
class VarUnitsToPascalPerSecond(AttributeAdd):
"""
Replace the variable's attribute `units` to `Pa s-1`. This is done in
overwrite mode and so will work irrespective of whether there is an
existing units attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'units'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'Pa s-1'
class VarUnitsToPercent(AttributeAdd):
"""
Replace the variable's attribute `units` to `%`. This is done in
overwrite mode and so will work irrespective of whether there is an
existing units attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'units'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = '%'
class VarUnitsToThousandths(AttributeAdd):
"""
Replace the variable's attribute `units` to `0.001`. This is done in
overwrite mode and so will work irrespective of whether there is an
existing units attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'units'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = '0.001'
class VaStdNameAdd(AttributeAdd):
"""
Replace the variable's `standard_name` with `northward_wind`. This is done
in overwrite mode and so will work irrespective of whether there is an
existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'northward_wind'
class VerticesLatStdNameDelete(AttributeDelete):
"""
Delete `standard_name` attribute from `vertices_latitude`.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = 'vertices_latitude'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
We're deleting so there's nothing to do but make a dummy value for
new_value.
"""
self.new_value = 0
class VerticesLonStdNameDelete(AttributeDelete):
"""
Delete `standard_name` attribute from `vertices_longitude`.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = 'vertices_longitude'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
We're deleting so there's nothing to do but make a dummy value for
new_value.
"""
self.new_value = 0
class WapStandardNameAdd(AttributeAdd):
"""
Replace the variable's `standard_name` with
`lagrangian_tendency_of_air_pressure`. This is done in
overwrite mode and so will work irrespective of whether there is an
existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'lagrangian_tendency_of_air_pressure'
class WtemStandardNameAdd(AttributeAdd):
"""
Replace the variable's `standard_name` with
`upward_transformed_eulerian_mean_air_velocity`. This is done in
overwrite mode and so will work irrespective of whether there is an
existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'upward_transformed_eulerian_mean_air_velocity'
class WindSpeedStandardNameAdd(AttributeAdd):
"""
Replace the variable's `standard_name` with
`wind_speed`. This is done in
overwrite mode and so will work irrespective of whether there is an
existing standard_name attribute.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'wind_speed'
class ZFurtherInfoUrl(AttributeAdd):
"""
Add a global attribute `further_info_url` with a value generated
correctly from existing other attributes in the file. This is done
in overwrite mode and so will work irrespective of whether there
is an existing attribute. The Z at the start of the name allows it
to run after other fixes so that the necessary attributes have
already been fixed.
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'further_info_url'
self.attribute_visibility = 'global'
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
filepath = os.path.join(self.directory, self.filename)
with Dataset(filepath) as rootgrp:
mip_era = getattr(rootgrp, 'mip_era', None)
institution_id = getattr(rootgrp, 'institution_id', None)
source_id = getattr(rootgrp, 'source_id', None)
experiment_id = getattr(rootgrp, 'experiment_id', None)
sub_experiment_id = getattr(rootgrp, 'sub_experiment_id', None)
variant_label = getattr(rootgrp, 'variant_label', None)
self.new_value = (f'https://furtherinfo.es-doc.org/'
f'{mip_era}.'
f'{institution_id}.'
f'{source_id}.'
f'{experiment_id}.'
f'{sub_experiment_id}.'
f'{variant_label}')
class ZZZThetapv2StandardNameAdd(AttributeAdd):
"""
Add a variable attribute `standard_name` with a value of
`theta_on_pv2_surface`. This is done in overwrite
mode and so will work irrespective of whether there is an existing
standard_name attribute. This has to be done after ZZZEcEarthLongitudeFix,
which removes this standard_name
"""
def __init__(self, filename, directory):
"""
Initialise the class
:param str filename: The basename of the file to process.
:param str directory: The directory that the file is currently in.
"""
super().__init__(filename, directory)
self.attribute_name = 'standard_name'
self.attribute_visibility = self.variable_name
self.attribute_type = 'c'
def _calculate_new_value(self):
"""
Set the new value.
"""
self.new_value = 'theta_on_pv2_surface'
| 32.588094
| 83
| 0.634438
| 14,460
| 122,075
| 5.154703
| 0.05242
| 0.076043
| 0.04379
| 0.036707
| 0.893234
| 0.884916
| 0.876142
| 0.869662
| 0.858352
| 0.856219
| 0
| 0.013493
| 0.281778
| 122,075
| 3,745
| 84
| 32.596796
| 0.836639
| 0.391612
| 0
| 0.71275
| 0
| 0.001536
| 0.153772
| 0.020975
| 0
| 0
| 0
| 0
| 0
| 1
| 0.221198
| false
| 0
| 0.005376
| 0
| 0.337174
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
9abcf5da0426b480647a9851c8f1a59cd17fafbe
| 11,868
|
py
|
Python
|
scripts/generate_modules_utility.py
|
JieX19/fortios-ansible-generator
|
b7b42542a6c8d20e93b884fe89fc112c4161c8a4
|
[
"Apache-2.0"
] | null | null | null |
scripts/generate_modules_utility.py
|
JieX19/fortios-ansible-generator
|
b7b42542a6c8d20e93b884fe89fc112c4161c8a4
|
[
"Apache-2.0"
] | null | null | null |
scripts/generate_modules_utility.py
|
JieX19/fortios-ansible-generator
|
b7b42542a6c8d20e93b884fe89fc112c4161c8a4
|
[
"Apache-2.0"
] | null | null | null |
from jinja2 import Template, Environment, FileSystemLoader
import json
import os
def generate_cofiguration_fact_rst(schema_results, version):
file_loader = FileSystemLoader('ansible_templates')
env = Environment(loader=file_loader,
lstrip_blocks=False, trim_blocks=False)
template = env.get_template('configuration_fact.rst.j2')
selectors = dict()
for schema_result in schema_results:
selector = schema_result['path'] + "_" + schema_result['name']
mkey = schema_result['schema'].get('mkey', None)
mkey_type = schema_result['schema'].get('mkey_type', None)
if mkey_type == 'integer':
mkey_type = 'int'
elif mkey_type:
mkey_type = 'str'
else:
assert(mkey_type == None)
selectors[selector] =dict()
selectors[selector]['mkey'] = mkey
selectors[selector]['mkey_type'] = mkey_type
data = template.render(selectors=selectors)
output_path = 'output/' + version + '/fortios_configuration_fact.rst'
with open(output_path, 'w') as f:
f.write(data)
f.flush()
def generate_monitor_fact(version):
monitor_schema_file = open('monitor_schema.json').read()
monitor_schema = json.loads(monitor_schema_file)
get_api_items = dict()
assert('directory' in monitor_schema)
for api_item in monitor_schema['directory']:
assert('request' in api_item)
assert('http_method' in api_item['request'])
if api_item['request']['http_method'] != 'GET':
continue
path = api_item['path']
name = api_item['name']
action = api_item['action']
key = '%s/%s' % (path, name)
if action != 'select':
key = '%s/%s' % (key, action)
assert(key not in get_api_items)
get_api_items[key] = api_item
schemas = dict()
for api_item_key in get_api_items:
api_item = get_api_items[api_item_key]
selector = api_item_key.replace('/', '_')
assert(selector not in schemas)
schemas[selector] = dict()
schemas[selector]['url'] = api_item_key
schemas[selector]['params'] = dict()
assert(api_item['request']['http_method'] == 'GET')
if 'parameters' in api_item['request']:
for param in api_item['request']['parameters']:
param_name = param['name']
param_type = param['type']
param_required = True if 'required' in param and param['required'] else False
param_desc = param['summary'] if 'summary' in param else ''
schemas[selector]['params'][param_name] = dict()
schemas[selector]['params'][param_name]['type'] = param_type
schemas[selector]['params'][param_name]['description'] = param_desc
schemas[selector]['params'][param_name]['required'] = param_required
schemas[selector]['description'] = api_item['summary'] if 'summary' in api_item else ''
file_loader = FileSystemLoader('ansible_templates')
env = Environment(loader=file_loader,
lstrip_blocks=False, trim_blocks=False)
# Render module code
template = env.get_template('monitor_fact.j2')
data = template.render(selectors=schemas)
output_path = 'output/' + version + '/fortios_monitor_fact.py'
with open(output_path, 'w') as f:
f.write(data)
f.flush()
# Render Sphinx doc
template = env.get_template('monitor_fact.rst.j2')
data = template.render(selectors=schemas)
output_path = 'output/' + version + '/fortios_monitor_fact.rst'
with open(output_path, 'w') as f:
f.write(data)
f.flush()
def generate_monitor_modules(version):
# Init template to generate a single module
file_loader = FileSystemLoader('ansible_templates')
env = Environment(loader=file_loader,
lstrip_blocks=False, trim_blocks=False)
template = env.get_template('monitor_config.j2')
monitor_schema_file = open('monitor_schema.json').read()
monitor_schema = json.loads(monitor_schema_file)
post_api_items = dict()
assert('directory' in monitor_schema)
for api_item in monitor_schema['directory']:
assert('request' in api_item)
assert('http_method' in api_item['request'])
if api_item['request']['http_method'] != 'POST':
continue
path = api_item['path']
name = api_item['name']
action = api_item['action']
key = '%s/%s/%s' % (path, name, action)
assert(key not in post_api_items)
post_api_items[key] = api_item
schemas = dict()
for api_item_key in post_api_items:
api_item = post_api_items[api_item_key]
selector = '%s.%s.%s' % (api_item['action'], api_item['path'], api_item['name'])
if api_item['action'] == 'select':
selector = '%s.%s' % (api_item['path'], api_item['name'])
assert(selector not in schemas)
schemas[selector] = dict()
schemas[selector]['url'] = api_item_key
schemas[selector]['params'] = dict()
assert(api_item['request']['http_method'] == 'POST')
if 'parameters' in api_item['request']:
for param in api_item['request']['parameters']:
param_name = param['name']
param_type = param['type']
param_required = True if 'required' in param and param['required'] else False
param_desc = param['summary'] if 'summary' in param else ''
schemas[selector]['params'][param_name] = dict()
schemas[selector]['params'][param_name]['type'] = param_type
schemas[selector]['params'][param_name]['description'] = param_desc
schemas[selector]['params'][param_name]['required'] = param_required
schemas[selector]['description'] = api_item['summary'] if 'summary' in api_item else ''
data = template.render(selectors=schemas)
output_path = 'output/' + version + '/fortios_monitor.py'
with open(output_path, 'w') as f:
f.write(data)
f.flush()
def generate_monitor_rst(version):
file_loader = FileSystemLoader('ansible_templates')
env = Environment(loader=file_loader,
lstrip_blocks=False, trim_blocks=False)
monitor_schema_file = open('monitor_schema.json').read()
monitor_schema = json.loads(monitor_schema_file)
post_api_items = dict()
assert('directory' in monitor_schema)
for api_item in monitor_schema['directory']:
assert('request' in api_item)
assert('http_method' in api_item['request'])
if api_item['request']['http_method'] != 'POST':
continue
path = api_item['path']
name = api_item['name']
action = api_item['action']
key = '%s.%s.%s' % (action, path, name)
if action == 'select':
key = '%s.%s' % (path, name)
assert(key not in post_api_items)
post_api_items[key] = api_item
schemas = dict()
for api_item_key in post_api_items:
api_item = post_api_items[api_item_key]
schemas[api_item_key] = dict()
schemas[api_item_key]['description'] = api_item['summary'] if 'summary' in api_item else ''
schemas[api_item_key]['params'] = dict()
if 'parameters' in api_item['request']:
for param in api_item['request']['parameters']:
param_name = param['name']
param_type = param['type']
param_required = True if 'required' in param and param['required'] else False
param_desc = param['summary']
schemas[api_item_key]['params'][param_name] = dict()
schemas[api_item_key]['params'][param_name]['type'] = param_type
schemas[api_item_key]['params'][param_name]['required'] = param_required
schemas[api_item_key]['params'][param_name]['description'] = param_desc
template = env.get_template('monitor.rst.j2')
data = template.render(actions=schemas)
output_path = 'output/' + version + '/fortios_monitor.rst'
with open(output_path, 'w') as f:
f.write(data)
f.flush()
def generate_log_fact(version):
log_schema_file = open('log_schema.json').read()
log_schema = json.loads(log_schema_file)
get_api_items = dict()
assert('directory' in log_schema)
for api_item in log_schema['directory']:
assert('request' in api_item)
assert('http_method' in api_item['request'])
if api_item['request']['http_method'] != 'GET':
continue
for path in ['disk', 'memory', 'fortianalyzer', 'forticloud']:
name = api_item['name']
action = api_item['action']
if name == 'virus':
names = [name]
elif name == ':type' and action in ['archive', 'archive-download']:
names = ['ips', 'app-ctrl']
elif name == ':type' and action == 'raw':
names = ['virus', 'webfilter', 'waf', 'ips', 'anomaly', 'app-ctrl', 'cifs',
'emailfilter', 'dlp', 'voip', 'gtp', 'dns', 'ssh', 'ssl', 'file-filter']
else:
names = ['event', 'traffic']
for actual_name in names:
actions = [action]
if action == '?subtype':
if actual_name == 'event':
actions = ['vpn', 'user', 'router', 'wireless',
'wad', 'endpoint', 'ha', 'compliance-check', 'system',
'connector', 'security-rating', 'fortiextender']
else:
actions = ['forward', 'local', 'multicast', 'sniffer',
'fortiview', 'threat']
for actual_action in actions:
key = '%s/%s/%s' % (path, actual_name, actual_action)
assert(key not in get_api_items)
get_api_items[key] = api_item
schemas = dict()
for api_item_key in get_api_items:
api_item = get_api_items[api_item_key]
selector = api_item_key.replace('/', '_')
assert(selector not in schemas)
schemas[selector] = dict()
schemas[selector]['url'] = api_item_key
schemas[selector]['params'] = dict()
assert(api_item['request']['http_method'] == 'GET')
if 'parameters' in api_item['request']:
for param in api_item['request']['parameters']:
param_name = param['name']
param_type = param['type']
param_desc = param['summary'] if 'summary' in param else ''
schemas[selector]['params'][param_name] = dict()
schemas[selector]['params'][param_name]['type'] = param_type
schemas[selector]['params'][param_name]['description'] = param_desc
schemas[selector]['description'] = api_item['summary'] if 'summary' in api_item else ''
file_loader = FileSystemLoader('ansible_templates')
env = Environment(loader=file_loader,
lstrip_blocks=False, trim_blocks=False)
# Render module code
template = env.get_template('log_fact.j2')
data = template.render(selectors=schemas)
output_path = 'output/' + version + '/fortios_log_fact.py'
with open(output_path, 'w') as f:
f.write(data)
f.flush()
# Render Sphinx doc
template = env.get_template('log_fact.rst.j2')
data = template.render(selectors=schemas)
output_path = 'output/' + version + '/fortios_log_fact.rst'
with open(output_path, 'w') as f:
f.write(data)
f.flush()
if __name__ == '__main__':
generate_cofiguration_fact_rst()
generate_monitor_fact('v6.0.0')
generate_monitor_modules('v6.0.0')
| 44.283582
| 103
| 0.598753
| 1,398
| 11,868
| 4.841202
| 0.107296
| 0.082742
| 0.026596
| 0.028369
| 0.818706
| 0.778073
| 0.763889
| 0.733452
| 0.720449
| 0.7138
| 0
| 0.001609
| 0.266684
| 11,868
| 267
| 104
| 44.449438
| 0.776054
| 0.00969
| 0
| 0.654321
| 1
| 0
| 0.165404
| 0.010726
| 0
| 0
| 0
| 0
| 0.09465
| 1
| 0.020576
| false
| 0
| 0.012346
| 0
| 0.032922
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b1a083b100c10f780210b20af5f57d1be6d5f578
| 5,698
|
py
|
Python
|
utils/scripts/OOOlevelGen/src/levels/level_2_1.py
|
fullscreennl/bullettime
|
8967449cdf926aaed6bb7ec217d92e0689fb0c3c
|
[
"MIT"
] | null | null | null |
utils/scripts/OOOlevelGen/src/levels/level_2_1.py
|
fullscreennl/bullettime
|
8967449cdf926aaed6bb7ec217d92e0689fb0c3c
|
[
"MIT"
] | null | null | null |
utils/scripts/OOOlevelGen/src/levels/level_2_1.py
|
fullscreennl/bullettime
|
8967449cdf926aaed6bb7ec217d92e0689fb0c3c
|
[
"MIT"
] | null | null | null |
import LevelBuilder
from sprites import *
def render(name,bg):
lb = LevelBuilder.LevelBuilder(name+".plist",background=bg)
lb.addObject(Bullet.BulletSprite(x=0, y=0,width=10,height=10,angle='0',restitution=0.5,static='false',friction=0.5,density=3,spawnEvent='onShoot'))
lb.addObject(Hero.HeroSprite(x=34, y=48,width=42,height=74))
lb.addObject(Teleporter.TeleporterSprite( level_id='leveldata/level_2_2'))
lb.addObject(ZoomTrigger.ZoomTriggerSprite(x=20,y=250,width=100,height=500,zoom_fact=1.0))
lb.addObject(ZoomTrigger.ZoomTriggerSprite(x=185,y=320-60,width=128,height=100,zoom_fact=0.1666))
lb.addObject(ZoomTrigger.ZoomTriggerSprite(x=350,y=250,width=100,height=500,zoom_fact=1.0))
lb.addObject(WatchtowerVisual.WatchtowerVisualSprite(x=185, y=92,width=128,height=235-50,angle='0',restitution=0.2,static='true',friction=0.5,density=20,firstframe='watchtower.png' ))
lb.addObject(Crate.CrateSprite(x=2343,y=53,width=32, height=32, static='false',angle=0))
lb.addObject(Crate.CrateSprite(x=2305,y=53,width=32, height=32, static='false',angle=0))
lb.addObject(Beam.BeamSprite(x=1642, y=103,width=160,height=36,angle='0' ,restitution=0.2,static='true',friction=0.5,density=20 ,classname='Destructable').setName('dBeam'))
lb.addObject(Beam.BeamSprite(x=1156, y=220,width=160,height=36,angle='0' ,restitution=0.2,static='true',friction=0.5,density=20 ,classname='Destructable').setName('dBeam'))
lb.addObject(Beam.BeamSprite(x=2180, y=220,width=160,height=36,angle='0' ,restitution=0.2,static='true',friction=0.5,density=20 ,classname='Destructable').setName('dBeam'))
lb.addObject(Pickup.PickupSprite(x=2224,y=257,width=32, height=32, static='false',angle=0))
lb.addObject(Pickup.PickupSprite(x=2140,y=257,width=32, height=32, static='false',angle=0))
lb.addObject(Pickup.PickupSprite(x=1685,y=140,width=32, height=32, static='false',angle=0))
lb.addObject(Pickup.PickupSprite(x=1607,y=140,width=32, height=32, static='false',angle=0))
lb.addObject(Pickup.PickupSprite(x=1201,y=257,width=32, height=32, static='false',angle=0))
lb.addObject(Pickup.PickupSprite(x=1117,y=257,width=32, height=32, static='false',angle=0))
lb.addObject(Enemy.EnemySprite(x=1395, y=19,width=33,height=32,angle='0',restitution=0.2,static='false',friction=0.5,density=5 , classname='BlobSprite',firstframe='monsterblob.png'))
lb.addObject(Enemy.EnemySprite(x=1353, y=19,width=33,height=32,angle='0',restitution=0.2,static='false',friction=0.5,density=5 , classname='BlobSprite',firstframe='monsterblob.png'))
lb.addObject(Enemy.EnemySprite(x=736, y=19,width=33,height=32,angle='0',restitution=0.2,static='false',friction=0.5,density=5 , classname='BlobSprite',firstframe='monsterblob.png'))
lb.addObject(Enemy.EnemySprite(x=1261, y=19,width=33,height=32,angle='0',restitution=0.2,static='false',friction=0.5,density=5 , classname='BlobSprite',firstframe='monsterblob.png'))
lb.addObject(Enemy.EnemySprite(x=1219, y=19,width=33,height=32,angle='0',restitution=0.2,static='false',friction=0.5,density=5 , classname='BlobSprite',firstframe='monsterblob.png'))
lb.addObject(Enemy.EnemySprite(x=1158, y=255,width=33,height=32,angle='0',restitution=0.2,static='false',friction=0.5,density=5 , classname='BlobSprite',firstframe='monsterblob.png'))
lb.addObject(Crate.CrateSprite(x=2343,y=15,width=32, height=32, static='false',angle=0))
lb.addObject(Crate.CrateSprite(x=2305,y=15,width=32, height=32, static='false',angle=0))
lb.addObject(Crate.CrateSprite(x=1645,y=176,width=32, height=32, static='false',angle=0))
lb.addObject(Crate.CrateSprite(x=1607,y=176,width=32, height=32, static='false',angle=0))
lb.addObject(Crate.CrateSprite(x=2343,y=89,width=32, height=32, static='false',angle=0))
lb.addObject(Crate.CrateSprite(x=2305,y=89,width=32, height=32, static='false',angle=0))
lb.addObject(Crate.CrateSprite(x=2383,y=53,width=32, height=32, static='false',angle=0))
lb.addObject(Crate.CrateSprite(x=2383,y=15,width=32, height=32, static='false',angle=0))
lb.addObject(Crate.CrateSprite(x=1685,y=176,width=32, height=32, static='false',angle=0))
lb.addObject(Crate.CrateSprite(x=2383,y=89,width=32, height=32, static='false',angle=0))
lb.addObject(Beam.BeamSprite(x=406, y=38,width=72,height=76,angle='90' ,restitution=0.2,static='true',friction=0.5,density=20 ,classname='Destructable').setName('dBeam'))
lb.addObject(Beam.BeamSprite(x=406, y=108,width=72,height=76,angle='90' ,restitution=0.2,static='true',friction=0.5,density=20 ,classname='Destructable').setName('dBeam'))
lb.addObject(Beam.BeamSprite(x=406, y=179,width=72,height=76,angle='90' ,restitution=0.2,static='true',friction=0.5,density=20 ,classname='Destructable').setName('dBeam'))
lb.addObject(Beam.BeamSprite(x=406, y=249,width=72,height=76,angle='90' ,restitution=0.2,static='true',friction=0.5,density=20 ,classname='Destructable').setName('dBeam'))
lb.addObject(Beam.BeamSprite(x=406, y=320,width=72,height=76,angle='90' ,restitution=0.2,static='true',friction=0.5,density=20 ,classname='Destructable').setName('dBeam'))
lb.addObject(Beam.BeamSprite(x=406, y=390,width=72,height=76,angle='90' ,restitution=0.2,static='true',friction=0.5,density=20 ,classname='Destructable').setName('dBeam'))
lb.addObject(Beam.BeamSprite(x=406, y=461,width=72,height=76,angle='90' ,restitution=0.2,static='true',friction=0.5,density=20 ,classname='Destructable').setName('dBeam'))
lb.addObject(Enemy.EnemySprite(x=1983, y=116,width=225,height=225,angle='0',restitution=0.2,static='false',friction=0.5,density=5 , classname='BlobSprite',firstframe='monsterblob.png'))
lb.render()
| 121.234043
| 189
| 0.740786
| 914
| 5,698
| 4.611597
| 0.137856
| 0.109609
| 0.05694
| 0.076631
| 0.870463
| 0.832028
| 0.825386
| 0.823488
| 0.810202
| 0.810202
| 0
| 0.110304
| 0.058091
| 5,698
| 47
| 190
| 121.234043
| 0.675051
| 0
| 0
| 0
| 0
| 0
| 0.103702
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.021277
| false
| 0
| 0.042553
| 0
| 0.06383
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
4915ba1ecc381050272cba0db877c1eec8ab3a46
| 43,358
|
py
|
Python
|
src/test/unit/testmover.py
|
alok1974/pychess
|
5543fee708e217e8bfc14b5499c5cc196026b0bb
|
[
"MIT"
] | 2
|
2020-09-12T18:35:13.000Z
|
2020-12-25T16:17:09.000Z
|
src/test/unit/testmover.py
|
alok1974/pychess
|
5543fee708e217e8bfc14b5499c5cc196026b0bb
|
[
"MIT"
] | null | null | null |
src/test/unit/testmover.py
|
alok1974/pychess
|
5543fee708e217e8bfc14b5499c5cc196026b0bb
|
[
"MIT"
] | null | null | null |
import unittest
import collections
from pychess.core.mover import Move
from pychess.element.squarer import Square
from pychess.element.piecer import generate_pieces
from pychess import constant as c
from pychess.element.piecer import Piece
# Move Data
MD = collections.namedtuple(
'MD',
['move', 'is_legal', 'is_orthogonal', 'is_diagonal', 'path']
)
def moves_for_testing(piece):
"""
a b c d e f g h
8 | |#| |#| |#| |#| 8
7 |#| |#| |#| |#| | 7
6 | |#| |#| |#| |#| 6
5 |#| |#| |#| |#| | 5
4 | |#| |#| |#| |#| 4
3 |#| |#| |#| |#| | 3
2 | |#| |#| |#| |#| 2
1 |#| |#| |#| |#| | 1
a b c d e f g h
"""
moves = {
(c.PieceType.pawn, c.Color.black): [
MD(
move=('f7', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f7'), Square('f5')],
),
MD(
move=('b6', 'c5'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[Square('b6'), Square('c5')],
),
MD(
move=('g3', 'g4'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('e4', 'e2'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.pawn, c.Color.black): [
MD(
move=('f7', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f7'), Square('f5')],
),
MD(
move=('b6', 'c5'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[Square('b6'), Square('c5')],
),
MD(
move=('g3', 'g4'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('e4', 'e2'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.pawn, c.Color.black): [
MD(
move=('f7', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f7'), Square('f5')],
),
MD(
move=('b6', 'c5'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[Square('b6'), Square('c5')],
),
MD(
move=('g3', 'g4'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('e4', 'e2'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.pawn, c.Color.black): [
MD(
move=('f7', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f7'), Square('f5')],
),
MD(
move=('b6', 'c5'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[Square('b6'), Square('c5')],
),
MD(
move=('g3', 'g4'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('e4', 'e2'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.pawn, c.Color.black): [
MD(
move=('f7', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f7'), Square('f5')],
),
MD(
move=('b6', 'c5'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[Square('b6'), Square('c5')],
),
MD(
move=('g3', 'g4'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('e4', 'e2'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.pawn, c.Color.black): [
MD(
move=('f7', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f7'), Square('f5')],
),
MD(
move=('b6', 'c5'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[Square('b6'), Square('c5')],
),
MD(
move=('g3', 'g4'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('e4', 'e2'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.pawn, c.Color.black): [
MD(
move=('f7', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f7'), Square('f5')],
),
MD(
move=('b6', 'c5'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[Square('b6'), Square('c5')],
),
MD(
move=('g3', 'g4'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('e4', 'e2'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.pawn, c.Color.black): [
MD(
move=('f7', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f7'), Square('f5')],
),
MD(
move=('b6', 'c5'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[Square('b6'), Square('c5')],
),
MD(
move=('g3', 'g4'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('e4', 'e2'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.knight, c.Color.black): [
MD(
move=('b8', 'a6'),
is_legal=True,
is_orthogonal=False,
is_diagonal=False,
path=[Square('b8'), Square('a6')],
),
MD(
move=('f6', 'g4'),
is_legal=True,
is_orthogonal=False,
is_diagonal=False,
path=[Square('f6'), Square('g4')],
),
MD(
move=('d5', 'd3'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('a3', 'd6'),
is_legal=False,
is_orthogonal=False,
is_diagonal=True,
path=[],
),
],
(c.PieceType.knight, c.Color.black): [
MD(
move=('b8', 'a6'),
is_legal=True,
is_orthogonal=False,
is_diagonal=False,
path=[Square('b8'), Square('a6')],
),
MD(
move=('f6', 'g4'),
is_legal=True,
is_orthogonal=False,
is_diagonal=False,
path=[Square('f6'), Square('g4')],
),
MD(
move=('d5', 'd3'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('a3', 'd6'),
is_legal=False,
is_orthogonal=False,
is_diagonal=True,
path=[],
),
],
(c.PieceType.bishop, c.Color.black): [
MD(
move=('g1', 'a7'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[
Square('g1'), Square('f2'), Square('e3'), Square('d4'),
Square('c5'), Square('b6'), Square('a7')
],
),
MD(
move=('f6', 'g5'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[Square('f6'), Square('g5')],
),
MD(
move=('e5', 'e3'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('b6', 'c3'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
],
(c.PieceType.bishop, c.Color.black): [
MD(
move=('g1', 'a7'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[
Square('g1'), Square('f2'), Square('e3'),
Square('d4'), Square('c5'), Square('b6'), Square('a7')
],
),
MD(
move=('f6', 'g5'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[Square('f6'), Square('g5')],
),
MD(
move=('e5', 'e3'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('b6', 'c3'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
],
(c.PieceType.rook, c.Color.black): [
MD(
move=('e7', 'e3'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[
Square('e7'), Square('e6'), Square('e5'),
Square('e4'), Square('e3')
],
),
MD(
move=('a3', 'g3'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[
Square('a3'), Square('b3'), Square('c3'),
Square('d3'), Square('e3'), Square('f3'), Square('g3')
],
),
MD(
move=('h4', 'f7'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
MD(
move=('c6', 'b5'),
is_legal=False,
is_orthogonal=False,
is_diagonal=True,
path=[],
),
],
(c.PieceType.rook, c.Color.black): [
MD(
move=('e7', 'e3'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[
Square('e7'), Square('e6'), Square('e5'),
Square('e4'), Square('e3')
],
),
MD(
move=('a3', 'g3'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[
Square('a3'), Square('b3'), Square('c3'),
Square('d3'), Square('e3'), Square('f3'), Square('g3')
],
),
MD(
move=('h4', 'f7'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
MD(
move=('c6', 'b5'),
is_legal=False,
is_orthogonal=False,
is_diagonal=True,
path=[],
),
],
(c.PieceType.queen, c.Color.black): [
MD(
move=('h5', 'e8'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[
Square('h5'), Square('g6'), Square('f7'),
Square('e8')
],
),
MD(
move=('b5', 'd3'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[Square('b5'), Square('c4'), Square('d3')],
),
MD(
move=('c7', 'f7'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[
Square('c7'), Square('d7'), Square('e7'),
Square('f7')
],
),
MD(
move=('g1', 'g5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[
Square('g1'), Square('g2'), Square('g3'),
Square('g4'), Square('g5')
],
),
MD(
move=('a4', 'c5'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
MD(
move=('b7', 'd4'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
],
(c.PieceType.king, c.Color.black): [
MD(
move=('e8', 'g8'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('e8'), Square('g8')],
),
MD(
move=('e8', 'c8'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('e8'), Square('c8')],
),
MD(
move=('f6', 'g5'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[Square('f6'), Square('g5')],
),
MD(
move=('b4', 'b3'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('b4'), Square('b3')],
),
MD(
move=('e7', 'd7'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('e7'), Square('d7')],
),
MD(
move=('g6', 'e5'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
MD(
move=('a6', 'c5'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
],
(c.PieceType.pawn, c.Color.white): [
MD(
move=('d2', 'd4'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('d2'), Square('d4')],
),
MD(
move=('f4', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f4'), Square('f5')],
),
MD(
move=('f7', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('f4', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.pawn, c.Color.white): [
MD(
move=('d2', 'd4'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('d2'), Square('d4')],
),
MD(
move=('f4', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f4'), Square('f5')],
),
MD(
move=('f7', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('f4', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.pawn, c.Color.white): [
MD(
move=('d2', 'd4'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('d2'), Square('d4')],
),
MD(
move=('f4', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f4'), Square('f5')],
),
MD(
move=('f7', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('f4', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.pawn, c.Color.white): [
MD(
move=('d2', 'd4'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('d2'), Square('d4')],
),
MD(
move=('f4', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f4'), Square('f5')],
),
MD(
move=('f7', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('f4', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.pawn, c.Color.white): [
MD(
move=('d2', 'd4'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('d2'), Square('d4')],
),
MD(
move=('f4', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f4'), Square('f5')],
),
MD(
move=('f7', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('f4', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.pawn, c.Color.white): [
MD(
move=('d2', 'd4'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('d2'), Square('d4')],
),
MD(
move=('f4', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f4'), Square('f5')],
),
MD(
move=('f7', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('f4', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.pawn, c.Color.white): [
MD(
move=('d2', 'd4'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('d2'), Square('d4')],
),
MD(
move=('f4', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f4'), Square('f5')],
),
MD(
move=('f7', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('f4', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.pawn, c.Color.white): [
MD(
move=('d2', 'd4'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('d2'), Square('d4')],
),
MD(
move=('f4', 'f5'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('f4'), Square('f5')],
),
MD(
move=('f7', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('f4', 'f6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
],
(c.PieceType.knight, c.Color.white): [
MD(
move=('g1', 'f3'),
is_legal=True,
is_orthogonal=False,
is_diagonal=False,
path=[Square('g1'), Square('f3')],
),
MD(
move=('c3', 'd5'),
is_legal=True,
is_orthogonal=False,
is_diagonal=False,
path=[Square('c3'), Square('d5')],
),
MD(
move=('f6', 'g5'),
is_legal=False,
is_orthogonal=False,
is_diagonal=True,
path=[],
),
MD(
move=('d4', 'b6'),
is_legal=False,
is_orthogonal=False,
is_diagonal=True,
path=[],
),
],
(c.PieceType.knight, c.Color.white): [
MD(
move=('g1', 'f3'),
is_legal=True,
is_orthogonal=False,
is_diagonal=False,
path=[Square('g1'), Square('f3')],
),
MD(
move=('c3', 'd5'),
is_legal=True,
is_orthogonal=False,
is_diagonal=False,
path=[Square('c3'), Square('d5')],
),
MD(
move=('f6', 'g5'),
is_legal=False,
is_orthogonal=False,
is_diagonal=True,
path=[],
),
MD(
move=('d4', 'b6'),
is_legal=False,
is_orthogonal=False,
is_diagonal=True,
path=[],
),
],
(c.PieceType.bishop, c.Color.white): [
MD(
move=('f1', 'a6'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[
Square('f1'), Square('e2'), Square('d3'),
Square('c4'), Square('b5'), Square('a6')
],
),
MD(
move=('c2', 'd3'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[Square('c2'), Square('d3')],
),
MD(
move=('f6', 'd6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('c4', 'e5'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
],
(c.PieceType.bishop, c.Color.white): [
MD(
move=('f1', 'a6'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[
Square('f1'), Square('e2'), Square('d3'),
Square('c4'), Square('b5'), Square('a6')
],
),
MD(
move=('c2', 'd3'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[Square('c2'), Square('d3')],
),
MD(
move=('f6', 'd6'),
is_legal=False,
is_orthogonal=True,
is_diagonal=False,
path=[],
),
MD(
move=('c4', 'e5'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
],
(c.PieceType.rook, c.Color.white): [
MD(
move=('a1', 'a8'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[
Square('a1'), Square('a2'), Square('a3'),
Square('a4'), Square('a5'), Square('a6'),
Square('a7'), Square('a8')
],
),
MD(
move=('b4', 'c4'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('b4'), Square('c4')],
),
MD(
move=('f3', 'e4'),
is_legal=False,
is_orthogonal=False,
is_diagonal=True,
path=[],
),
MD(
move=('c4', 'e5'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
],
(c.PieceType.rook, c.Color.white): [
MD(
move=('a1', 'a8'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[
Square('a1'), Square('a2'), Square('a3'),
Square('a4'), Square('a5'), Square('a6'),
Square('a7'), Square('a8')
],
),
MD(
move=('b4', 'c4'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('b4'), Square('c4')],
),
MD(
move=('f3', 'e4'),
is_legal=False,
is_orthogonal=False,
is_diagonal=True,
path=[],
),
MD(
move=('c4', 'e5'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
],
(c.PieceType.queen, c.Color.white): [
MD(
move=('b4', 'e1'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[
Square('b4'), Square('c3'), Square('d2'),
Square('e1')
],
),
MD(
move=('b2', 'g7'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[
Square('b2'), Square('c3'), Square('d4'),
Square('e5'), Square('f6'), Square('g7')
],
),
MD(
move=('d4', 'd8'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[
Square('d4'), Square('d5'), Square('d6'),
Square('d7'), Square('d8')
],
),
MD(
move=('e3', 'b3'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[
Square('e3'), Square('d3'), Square('c3'),
Square('b3')
],
),
MD(
move=('f2', 'd3'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
MD(
move=('b6', 'f7'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
],
(c.PieceType.king, c.Color.white): [
MD(
move=('e1', 'g1'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('e1'), Square('g1')],
),
MD(
move=('e1', 'c1'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('e1'), Square('c1')],
),
MD(
move=('g3', 'f4'),
is_legal=True,
is_orthogonal=False,
is_diagonal=True,
path=[Square('g3'), Square('f4')],
),
MD(
move=('c2', 'c1'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('c2'), Square('c1')],
),
MD(
move=('h2', 'g2'),
is_legal=True,
is_orthogonal=True,
is_diagonal=False,
path=[Square('h2'), Square('g2')],
),
MD(
move=('f2', 'd3'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
MD(
move=('b6', 'f7'),
is_legal=False,
is_orthogonal=False,
is_diagonal=False,
path=[],
),
],
}
return moves.get((piece.type, piece.color), [])
def generate_piece(piece_type, color, order=0):
all_pieces = generate_pieces()
required_pieces = [
p
for p in all_pieces
if p.type == piece_type and
p.color == color and
p.order == order
]
assert len(required_pieces) == 1
return required_pieces[0]
class TestMover(unittest.TestCase):
def test_is_legal(self):
for piece in generate_pieces():
for move_data in moves_for_testing(piece):
src_address, dst_address = move_data.move
src = Square(src_address)
dst = Square(dst_address)
m = Move(
piece=piece,
src=src,
dst=dst,
)
assert_to_use = (
self.assertTrue
if move_data.is_legal
else self.assertFalse
)
try:
assert_to_use(m.is_legal)
except AssertionError:
error_msg = (
f'{piece}:\n'
f'{src.address} -> {dst.address}\n'
f'move_data.is_legal: {move_data.is_legal}\n'
f'm.is_legal: {m.is_legal}\n'
f'(x, y): ({dst.x - src.x}, {dst.y - src.y})'
)
print(error_msg)
raise
def test_piece(self):
for piece in generate_pieces():
for move_data in moves_for_testing(piece):
src_address, dst_address = move_data.move
src = Square(src_address)
dst = Square(dst_address)
m = Move(
piece=piece,
src=src,
dst=dst,
)
self.assertEqual(m.piece, piece)
def test_src(self):
for piece in generate_pieces():
for move_data in moves_for_testing(piece):
src_address, dst_address = move_data.move
src = Square(src_address)
dst = Square(dst_address)
m = Move(
piece=piece,
src=src,
dst=dst,
)
self.assertEqual(m.src, src)
def test_dst(self):
for piece in generate_pieces():
for move_data in moves_for_testing(piece):
src_address, dst_address = move_data.move
src = Square(src_address)
dst = Square(dst_address)
m = Move(
piece=piece,
src=src,
dst=dst,
)
self.assertEqual(m.dst, dst)
def test_repr(self):
for piece in generate_pieces():
for move_data in moves_for_testing(piece):
src_address, dst_address = move_data.move
src = Square(src_address)
dst = Square(dst_address)
m = Move(
piece=piece,
src=src,
dst=dst,
)
expected_result = (
'<'
f'{m.__class__.__name__}'
': '
f'{piece.code}'
f'{piece.order}'
f'({piece.color_code}) '
f'{src.address}'
f' - '
f'{dst.address}'
'>'
)
self.assertEqual(repr(m), expected_result)
def test_equals(self):
mv = Move(
Piece(c.PieceType.pawn, c.Color.black),
Square('a2'),
Square('a4')
)
expected_result = Move(
Piece(c.PieceType.pawn, c.Color.black),
Square('a2'),
Square('a4')
)
self.assertFalse(mv is expected_result)
self.assertEqual(mv, expected_result)
def test_not_equals(self):
mv = Move(
Piece(c.PieceType.pawn, c.Color.black),
Square('b2'),
Square('b3')
)
expected_result = Move(
Piece(c.PieceType.pawn, c.Color.black),
Square('a2'),
Square('a4')
)
self.assertNotEqual(mv, expected_result)
def test_path(self):
for piece in generate_pieces():
for move_data in moves_for_testing(piece):
src_address, dst_address = move_data.move
src = Square(src_address)
dst = Square(dst_address)
m = Move(
piece=piece,
src=src,
dst=dst,
)
self.assertEqual(m.path, move_data.path)
def test_is_diagonal(self):
for piece in generate_pieces():
for move_data in moves_for_testing(piece):
src_address, dst_address = move_data.move
src = Square(src_address)
dst = Square(dst_address)
m = Move(
piece=piece,
src=src,
dst=dst,
)
self.assertEqual(m.is_diagonal, move_data.is_diagonal)
def test_is_orthogonal(self):
for piece in generate_pieces():
for move_data in moves_for_testing(piece):
src_address, dst_address = move_data.move
src = Square(src_address)
dst = Square(dst_address)
m = Move(
piece=piece,
src=src,
dst=dst,
)
self.assertEqual(m.is_orthogonal, move_data.is_orthogonal)
if __name__ == '__main__':
unittest.main()
| 29.495238
| 79
| 0.317612
| 3,232
| 43,358
| 4.087252
| 0.049814
| 0.070855
| 0.120363
| 0.15246
| 0.882513
| 0.871158
| 0.869341
| 0.868736
| 0.867525
| 0.867525
| 0
| 0.027423
| 0.566032
| 43,358
| 1,469
| 80
| 29.515317
| 0.674639
| 0.005097
| 0
| 0.886598
| 1
| 0.000793
| 0.030112
| 0.001022
| 0
| 0
| 0
| 0
| 0.012688
| 1
| 0.009516
| false
| 0
| 0.005551
| 0
| 0.017446
| 0.000793
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
7702d0cbb6f3928a44bcc1bb2a88c4fb433e2a28
| 11,629
|
py
|
Python
|
src/abaqus/Section/HomogeneousShellSection.py
|
Haiiliin/PyAbaqus
|
f20db6ebea19b73059fe875a53be370253381078
|
[
"MIT"
] | 7
|
2022-01-21T09:15:45.000Z
|
2022-02-15T09:31:58.000Z
|
src/abaqus/Section/HomogeneousShellSection.py
|
Haiiliin/PyAbaqus
|
f20db6ebea19b73059fe875a53be370253381078
|
[
"MIT"
] | null | null | null |
src/abaqus/Section/HomogeneousShellSection.py
|
Haiiliin/PyAbaqus
|
f20db6ebea19b73059fe875a53be370253381078
|
[
"MIT"
] | null | null | null |
from abaqusConstants import *
from .GeometryShellSection import GeometryShellSection
from .RebarLayers import RebarLayers
from .TransverseShearShell import TransverseShearShell
class HomogeneousShellSection(GeometryShellSection):
"""The HomogeneousShellSection object defines the properties of a shell section.
The HomogeneousShellSection object is derived from the GeometryShellSection object.
Attributes
----------
rebarLayers: RebarLayers
A :py:class:`~abaqus.Section.RebarLayers.RebarLayers` object specifying reinforcement properties.
transverseShear: TransverseShearShell
A :py:class:`~abaqus.Section.TransverseShearShell.TransverseShearShell` object specifying the transverse shear stiffness properties.
Notes
-----
This object can be accessed by:
.. code-block:: python
import section
mdb.models[name].parts[name].compositeLayups[i].section
mdb.models[name].sections[name]
import odbSection
session.odbs[name].sections[name]
The corresponding analysis keywords are:
- SHELL SECTION
- SHELL GENERAL SECTION
"""
# A RebarLayers object specifying reinforcement properties.
rebarLayers: RebarLayers = None
# A TransverseShearShell object specifying the transverse shear stiffness properties.
transverseShear: TransverseShearShell = None
def __init__(self, name: str, material: str, thickness: float = 0, numIntPts: int = 5,
thicknessType: SymbolicConstant = UNIFORM, preIntegrate: Boolean = OFF,
poissonDefinition: SymbolicConstant = DEFAULT, poisson: float = 0,
integrationRule: SymbolicConstant = SIMPSON, temperature: SymbolicConstant = GRADIENT,
idealization: SymbolicConstant = NO_IDEALIZATION, nTemp: int = None,
thicknessModulus: float = None, useDensity: Boolean = OFF, density: float = 0,
thicknessField: str = '', nodalThicknessField: str = ''):
"""This method creates a HomogeneousShellSection object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[name].compositeLayups[i]\
.HomogeneousShellSection
mdb.models[name].HomogeneousShellSection
session.odbs[name].HomogeneousShellSection
Parameters
----------
name
A String specifying the repository key.
material
A String specifying the name of the section material.
thickness
A Float specifying the thickness of the section. The *thickness* argument applies only
when *thicknessType*=UNIFORM. The default value is 0.0.
numIntPts
An Int specifying the number of integration points to be used through the section.
Possible values are *numIntPts* >> 0. The default value is 5.To use the default settings
of the analysis products, set *numIntPts* to 5 if *integrationRule*=SIMPSON or set
*numIntPts* to 7 if *integrationRule*=GAUSS.
thicknessType
A SymbolicConstant specifying the distribution used for defining the thickness of the
elements. Possible values are UNIFORM, ANALYTICAL_FIELD, DISCRETE_FIELD,
NODAL_ANALYTICAL_FIELD, and NODAL_DISCRETE_FIELD. The default value is UNIFORM.
preIntegrate
A Boolean specifying whether the shell section properties are specified by the user
prior to the analysis (ON) or integrated during the analysis (OFF). The default value is
OFF.
poissonDefinition
A SymbolicConstant specifying whether to use the default value for the Poisson's ratio.
Possible values are:DEFAULT, specifying that the default value for the Poisson's ratio
is 0.5 in an Abaqus/Standard analysis and is obtained from the material definition in an
Abaqus/Explicit analysis.VALUE, specifying that the Poisson's ratio used in the analysis
is the value provided in *poisson*.The default value is DEFAULT.
poisson
A Float specifying the Poisson's ratio. Possible values are −1.0 ≤≤ *poisson* ≤≤ 0.5.
This argument is valid only when *poissonDefinition*=VALUE. The default value is 0.5.
integrationRule
A SymbolicConstant specifying the shell section integration rule. Possible values are
SIMPSON and GAUSS. The default value is SIMPSON.
temperature
A SymbolicConstant specifying the mode used for temperature and field variable input
across the section thickness. Possible values are GRADIENT and POINTWISE. The default
value is GRADIENT.
idealization
A SymbolicConstant specifying the mechanical idealization used for the section
calculations. This member is only applicable when *preIntegrate* is set to ON. Possible
values are NO_IDEALIZATION, SMEAR_ALL_LAYERS, MEMBRANE, and BENDING. The default value
is NO_IDEALIZATION.
nTemp
None or an Int specifying the number of temperature points to be input. This argument is
valid only when *temperature*=POINTWISE. The default value is None.
thicknessModulus
None or a Float specifying the effective thickness modulus. This argument is relevant
only for continuum shells and must be used in conjunction with the argument *poisson*.
The default value is None.
useDensity
A Boolean specifying whether or not to use the value of *density*. The default value is
OFF.
density
A Float specifying the value of density to apply to this section. The default value is
0.0.
thicknessField
A String specifying the name of the AnalyticalField or DiscreteField object used to
define the thickness of the shell elements. The *thicknessField* argument applies only
when *thicknessType*=ANALYTICAL_FIELD or *thicknessType*=DISCRETE_FIELD. The default
value is an empty string.
nodalThicknessField
A String specifying the name of the AnalyticalField or DiscreteField object used to
define the thickness of the shell elements at each node. The *nodalThicknessField*
argument applies only when *thicknessType*=NODAL_ANALYTICAL_FIELD or
*thicknessType*=NODAL_DISCRETE_FIELD. The default value is an empty string.
Returns
-------
A HomogeneousShellSection object.
"""
super().__init__()
pass
def setValues(self, thickness: float = 0, numIntPts: int = 5, thicknessType: SymbolicConstant = UNIFORM,
preIntegrate: Boolean = OFF, poissonDefinition: SymbolicConstant = DEFAULT,
poisson: float = 0, integrationRule: SymbolicConstant = SIMPSON,
temperature: SymbolicConstant = GRADIENT,
idealization: SymbolicConstant = NO_IDEALIZATION, nTemp: int = None,
thicknessModulus: float = None, useDensity: Boolean = OFF, density: float = 0,
thicknessField: str = '', nodalThicknessField: str = ''):
"""This method modifies the HomogeneousShellSection object.
Parameters
----------
thickness
A Float specifying the thickness of the section. The *thickness* argument applies only
when *thicknessType*=UNIFORM. The default value is 0.0.
numIntPts
An Int specifying the number of integration points to be used through the section.
Possible values are *numIntPts* >> 0. The default value is 5.To use the default settings
of the analysis products, set *numIntPts* to 5 if *integrationRule*=SIMPSON or set
*numIntPts* to 7 if *integrationRule*=GAUSS.
thicknessType
A SymbolicConstant specifying the distribution used for defining the thickness of the
elements. Possible values are UNIFORM, ANALYTICAL_FIELD, DISCRETE_FIELD,
NODAL_ANALYTICAL_FIELD, and NODAL_DISCRETE_FIELD. The default value is UNIFORM.
preIntegrate
A Boolean specifying whether the shell section properties are specified by the user
prior to the analysis (ON) or integrated during the analysis (OFF). The default value is
OFF.
poissonDefinition
A SymbolicConstant specifying whether to use the default value for the Poisson's ratio.
Possible values are:DEFAULT, specifying that the default value for the Poisson's ratio
is 0.5 in an Abaqus/Standard analysis and is obtained from the material definition in an
Abaqus/Explicit analysis.VALUE, specifying that the Poisson's ratio used in the analysis
is the value provided in *poisson*.The default value is DEFAULT.
poisson
A Float specifying the Poisson's ratio. Possible values are −1.0 ≤≤ *poisson* ≤≤ 0.5.
This argument is valid only when *poissonDefinition*=VALUE. The default value is 0.5.
integrationRule
A SymbolicConstant specifying the shell section integration rule. Possible values are
SIMPSON and GAUSS. The default value is SIMPSON.
temperature
A SymbolicConstant specifying the mode used for temperature and field variable input
across the section thickness. Possible values are GRADIENT and POINTWISE. The default
value is GRADIENT.
idealization
A SymbolicConstant specifying the mechanical idealization used for the section
calculations. This member is only applicable when *preIntegrate* is set to ON. Possible
values are NO_IDEALIZATION, SMEAR_ALL_LAYERS, MEMBRANE, and BENDING. The default value
is NO_IDEALIZATION.
nTemp
None or an Int specifying the number of temperature points to be input. This argument is
valid only when *temperature*=POINTWISE. The default value is None.
thicknessModulus
None or a Float specifying the effective thickness modulus. This argument is relevant
only for continuum shells and must be used in conjunction with the argument *poisson*.
The default value is None.
useDensity
A Boolean specifying whether or not to use the value of *density*. The default value is
OFF.
density
A Float specifying the value of density to apply to this section. The default value is
0.0.
thicknessField
A String specifying the name of the AnalyticalField or DiscreteField object used to
define the thickness of the shell elements. The *thicknessField* argument applies only
when *thicknessType*=ANALYTICAL_FIELD or *thicknessType*=DISCRETE_FIELD. The default
value is an empty string.
nodalThicknessField
A String specifying the name of the AnalyticalField or DiscreteField object used to
define the thickness of the shell elements at each node. The *nodalThicknessField*
argument applies only when *thicknessType*=NODAL_ANALYTICAL_FIELD or
*thicknessType*=NODAL_DISCRETE_FIELD. The default value is an empty string.
"""
pass
| 55.37619
| 140
| 0.671683
| 1,317
| 11,629
| 5.906606
| 0.135915
| 0.046278
| 0.065561
| 0.065561
| 0.865021
| 0.846767
| 0.846767
| 0.825556
| 0.806788
| 0.806788
| 0
| 0.004792
| 0.282225
| 11,629
| 209
| 141
| 55.641148
| 0.925961
| 0.752515
| 0
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.083333
| false
| 0.083333
| 0.166667
| 0
| 0.375
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
7728a4142ddc8b1bee30463772de98ae9105b586
| 1,158
|
py
|
Python
|
tests/grooves/test_diamond.py
|
pyroll-project/pyroll-core
|
f59094d58c2f7493ddc6345b3afc4700ca259681
|
[
"BSD-3-Clause"
] | null | null | null |
tests/grooves/test_diamond.py
|
pyroll-project/pyroll-core
|
f59094d58c2f7493ddc6345b3afc4700ca259681
|
[
"BSD-3-Clause"
] | null | null | null |
tests/grooves/test_diamond.py
|
pyroll-project/pyroll-core
|
f59094d58c2f7493ddc6345b3afc4700ca259681
|
[
"BSD-3-Clause"
] | null | null | null |
import pytest
from numpy import pi, isclose
from pyroll.core import DiamondGroove
def test_diamond_usable_width_tip_depth():
g = DiamondGroove(r1=5, r2=8, usable_width=40, tip_depth=11.54700538)
assert isclose(g.alpha1, 30 / 180 * pi)
assert isclose(g.alpha2, 30 / 180 * pi)
assert isclose(g.z1, 21.33974596)
assert isclose(g.depth, 10.30940108)
def test_diamond_usable_width_tip_angle():
g = DiamondGroove(r1=5, r2=8, usable_width=40, tip_angle=120 / 180 * pi)
assert isclose(g.alpha1, 30 / 180 * pi)
assert isclose(g.alpha2, 30 / 180 * pi)
assert isclose(g.z1, 21.33974596)
assert isclose(g.depth, 10.30940108)
def test_diamond_tip_depth_tip_angle():
g = DiamondGroove(r1=5, r2=8, tip_depth=11.54700538, tip_angle=120 / 180 * pi)
assert isclose(g.usable_width, 40)
assert isclose(g.alpha1, 30 / 180 * pi)
assert isclose(g.alpha2, 30 / 180 * pi)
assert isclose(g.z1, 21.33974596)
assert isclose(g.depth, 10.30940108)
def test_diamond_all():
with pytest.raises(ValueError):
g = DiamondGroove(r1=5, r2=8, usable_width=40, tip_depth=11.54700538, tip_angle=120 / 180 * pi)
| 30.473684
| 103
| 0.699482
| 185
| 1,158
| 4.232432
| 0.216216
| 0.215837
| 0.232439
| 0.183908
| 0.841635
| 0.841635
| 0.791826
| 0.791826
| 0.711367
| 0.64751
| 0
| 0.18019
| 0.180484
| 1,158
| 37
| 104
| 31.297297
| 0.644889
| 0
| 0
| 0.48
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.52
| 1
| 0.16
| false
| 0
| 0.12
| 0
| 0.28
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
7736fba5cf812cd1ad3557a4d81b037e919e252a
| 74
|
py
|
Python
|
maskrcnn_benchmark/modeling/one_stage_head/__init__.py
|
Yuliang-Liu/bezier_curve_text_spotting
|
8986ff0eb7f9ccd5943cc46191bded2affdfe61f
|
[
"BSD-2-Clause"
] | 423
|
2020-02-25T11:59:33.000Z
|
2022-03-27T01:49:43.000Z
|
maskrcnn_benchmark/modeling/one_stage_head/__init__.py
|
sporterman/bezier_curve_text_spotting
|
f8c5b1179f58c9ad2c8280f46c8202e94b16687e
|
[
"BSD-2-Clause"
] | 23
|
2020-03-17T20:45:03.000Z
|
2021-12-15T03:26:48.000Z
|
maskrcnn_benchmark/modeling/one_stage_head/__init__.py
|
sporterman/bezier_curve_text_spotting
|
f8c5b1179f58c9ad2c8280f46c8202e94b16687e
|
[
"BSD-2-Clause"
] | 72
|
2020-02-25T14:17:26.000Z
|
2022-01-03T18:36:10.000Z
|
from .align import align
from .one_stage_head import build_one_stage_head
| 24.666667
| 48
| 0.864865
| 13
| 74
| 4.538462
| 0.538462
| 0.271186
| 0.40678
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108108
| 74
| 2
| 49
| 37
| 0.893939
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
773a5aa65266063a8d5faf39b250a0db570570c9
| 148
|
py
|
Python
|
saas/portal/models.py
|
ParthS28/MLfly
|
f87494cd55c33af096d7bcd6f778c6fe06a41174
|
[
"MIT"
] | 1
|
2021-05-23T12:07:32.000Z
|
2021-05-23T12:07:32.000Z
|
saas/portal/models.py
|
ParthS28/MLfly
|
f87494cd55c33af096d7bcd6f778c6fe06a41174
|
[
"MIT"
] | null | null | null |
saas/portal/models.py
|
ParthS28/MLfly
|
f87494cd55c33af096d7bcd6f778c6fe06a41174
|
[
"MIT"
] | null | null | null |
from django.db import models
from django.utils import timezone
from django.db.models import Count, CharField, Model
from django.urls import reverse
| 29.6
| 52
| 0.831081
| 23
| 148
| 5.347826
| 0.521739
| 0.325203
| 0.195122
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121622
| 148
| 4
| 53
| 37
| 0.946154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
627c685f6ccff9689fdd1bd7b86278cda0549925
| 5,682
|
py
|
Python
|
chapter8/todo_list/tests/test_controllers.py
|
qiujiajin/todo-list
|
9d0dcc0d1f2b87dd497fec9afa81d592c7312041
|
[
"MIT"
] | 11
|
2020-06-20T14:03:47.000Z
|
2021-05-21T07:46:06.000Z
|
chapter8/todo_list/tests/test_controllers.py
|
qiujiajin/todo-list
|
9d0dcc0d1f2b87dd497fec9afa81d592c7312041
|
[
"MIT"
] | 2
|
2020-07-11T08:34:52.000Z
|
2022-02-15T13:28:34.000Z
|
chapter8/todo_list/tests/test_controllers.py
|
qiujiajin/todo-list
|
9d0dcc0d1f2b87dd497fec9afa81d592c7312041
|
[
"MIT"
] | 10
|
2020-06-21T05:11:49.000Z
|
2022-02-14T12:18:02.000Z
|
"""
测试视图函数
"""
import os
import sys
import uuid
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from todo.controllers import routes
from todo.utils.http import Request
from todo.models.todo import Todo
from todo.models.user import User
from todo.models.session import Session
def test_register():
"""测试注册"""
# 测试 GET 请求
request_message = 'GET /register HTTP/1.1\r\nHost: 127.0.0.1:8000\r\n\r\n'
request = Request(request_message)
route, method = routes.get(request.path)
r = route(request)
assert 'Register' in r
# 测试 POST 请求
username = uuid.uuid4().hex
raw_password = 'password'
password = User.generate_password(raw_password)
request_message = f'POST /register HTTP/1.1\r\nHost: 127.0.0.1:8000\r\n\r\n' \
f'username={username}&password={password}'
request = Request(request_message)
route, method = routes.get(request.path)
r = route(request)
u = User.find_by(username=username, ensure_one=True)
u.delete()
assert b'302 FOUND' in bytes(r)
assert b'/login' in bytes(r)
def test_login():
"""测试登录"""
# 测试 GET 请求
request_message = 'GET /login HTTP/1.1\r\nHost: 127.0.0.1:8000\r\n\r\n'
request = Request(request_message)
route, method = routes.get(request.path)
r = route(request)
assert 'Login' in r
# 测试 POST 请求
username = uuid.uuid4().hex
raw_password = 'password'
password = User.generate_password(raw_password)
u = User(username=username, password=password)
u.save()
request_message = f'POST /login HTTP/1.1\r\nHost: 127.0.0.1:8000\r\n\r\n' \
f'username={username}&password={raw_password}'
request = Request(request_message)
route, method = routes.get(request.path)
r = route(request)
u.delete()
s = Session.get(r.cookies.get('session_id'))
s.delete()
assert b'302 FOUND' in bytes(r)
assert b'/index' in bytes(r)
assert b'session_id' in bytes(r)
r = route(request)
assert r.decode('utf-8') == '用户名或密码不正确'
def test_index():
"""测试首页"""
username = uuid.uuid4().hex
raw_password = 'password'
password = User.generate_password(raw_password)
u = User(username=username, password=password)
u.save()
s = Session(user_id=u.id, expire_in='2099-12-31 00:00:00')
s.save()
request_message = f'GET / HTTP/1.1\r\nHost: 127.0.0.1:8000\r\n' \
f'Cookie: session_id={s.id}\r\n\r\n'
request = Request(request_message)
route, method = routes.get(request.path)
r = route(request)
u.delete()
s.delete()
assert b'Todo List' in bytes(r, encoding='utf-8')
assert b'/new' in bytes(r, encoding='utf-8')
r = route(request)
assert b'302 FOUND' in bytes(r)
assert b'/login' in bytes(r)
def test_new():
"""测试新增 todo"""
username = uuid.uuid4().hex
raw_password = 'password'
password = User.generate_password(raw_password)
u = User(username=username, password=password)
u.save()
s = Session(user_id=u.id, expire_in='2099-12-31 00:00:00')
s.save()
content = uuid.uuid4().hex
request_message = f'POST /new HTTP/1.1\r\nHost: 127.0.0.1:8000\r\n' \
f'Cookie: session_id={s.id}\r\n\r\ncontent={content}'
request = Request(request_message)
route, method = routes.get(request.path)
r = route(request)
t = Todo.find_by(user_id=u.id, ensure_one=True)
u.delete()
s.delete()
t.delete()
assert b'302 FOUND' in bytes(r)
assert b'/index' in bytes(r)
assert t.content == content
def test_edit():
"""测试编辑 todo"""
username = uuid.uuid4().hex
raw_password = 'password'
password = User.generate_password(raw_password)
u = User(username=username, password=password)
u.save()
s = Session(user_id=u.id, expire_in='2099-12-31 00:00:00')
s.save()
content = uuid.uuid4().hex
t = Todo(user_id=u.id, content=content)
t.save()
edit_content = 'Edit: ' + content
request_message = f'POST /edit HTTP/1.1\r\nHost: 127.0.0.1:8000\r\n' \
f'Cookie: session_id={s.id}\r\n\r\nid={t.id}&content={edit_content}'
request = Request(request_message)
route, method = routes.get(request.path)
r = route(request)
t = Todo.find_by(user_id=u.id, content=edit_content, ensure_one=True)
u.delete()
s.delete()
t.delete()
assert b'302 FOUND' in bytes(r)
assert b'/index' in bytes(r)
assert t.content == edit_content
r = route(request)
assert b'302 FOUND' in bytes(r)
assert b'/login' in bytes(r)
def test_delete():
"""测试删除 todo"""
username = uuid.uuid4().hex
raw_password = 'password'
password = User.generate_password(raw_password)
u = User(username=username, password=password)
u.save()
s = Session(user_id=u.id, expire_in='2099-12-31 00:00:00')
s.save()
content = uuid.uuid4().hex
t = Todo(user_id=u.id, content=content)
t.save()
request_message = f'POST /delete HTTP/1.1\r\nHost: 127.0.0.1:8000\r\n' \
f'Cookie: session_id={s.id}\r\n\r\nid={t.id}'
request = Request(request_message)
route, method = routes.get(request.path)
r = route(request)
t = Todo.find_by(user_id=u.id, content=content, ensure_one=True)
u.delete()
s.delete()
assert b'302 FOUND' in bytes(r)
assert b'/index' in bytes(r)
assert t is None
r = route(request)
assert b'302 FOUND' in bytes(r)
assert b'/login' in bytes(r)
def main():
test_register()
test_login()
test_index()
test_new()
test_edit()
test_delete()
if __name__ == '__main__':
main()
| 29.59375
| 90
| 0.634284
| 879
| 5,682
| 3.997725
| 0.104664
| 0.037849
| 0.043256
| 0.047809
| 0.811895
| 0.787706
| 0.758964
| 0.758964
| 0.749289
| 0.749289
| 0
| 0.042424
| 0.215945
| 5,682
| 191
| 91
| 29.748691
| 0.746352
| 0.016543
| 0
| 0.653595
| 0
| 0.058824
| 0.179557
| 0.059131
| 0
| 0
| 0
| 0.005236
| 0.163399
| 1
| 0.045752
| false
| 0.124183
| 0.052288
| 0
| 0.098039
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
02bc8bb8a901e425e4f3fb422adbb07b24f700f7
| 22,878
|
py
|
Python
|
benchmark/seq2seq/myCoTK/dataloader/bert_dataloader.py
|
BorisPolonsky/KdConv
|
124616c8a074ab32065757d47e315c5a54db259c
|
[
"Apache-2.0"
] | 294
|
2020-04-08T23:54:36.000Z
|
2022-03-30T09:29:32.000Z
|
benchmark/seq2seq/myCoTK/dataloader/bert_dataloader.py
|
thu-coai/KNIVES
|
fcee15bf8d4f6b0a80ffe01a00739755a7f44e0a
|
[
"Apache-2.0"
] | 18
|
2020-04-16T03:37:07.000Z
|
2022-02-21T13:46:57.000Z
|
benchmark/seq2seq/myCoTK/dataloader/bert_dataloader.py
|
thu-coai/KNIVES
|
fcee15bf8d4f6b0a80ffe01a00739755a7f44e0a
|
[
"Apache-2.0"
] | 51
|
2020-04-09T02:50:58.000Z
|
2022-03-29T08:04:52.000Z
|
'''
A module for BERT dataloader
'''
from cotk.dataloader import BERTLanguageProcessingBase
from cotk._utils import trim_before_target
import numpy as np
import os
import multiprocessing
from multiprocessing import Pool
import tqdm
import time
from itertools import chain
from collections import Counter
import json
import random
from cotk.metric import MetricChain, SingleTurnDialogRecorder
from ..metric import BleuCorpusMetric, SingleTurnDistinct
from pytorch_pretrained_bert.tokenization import BertTokenizer
import jieba
from gensim.summarization import bm25
class MyBERTRetrieval(BERTLanguageProcessingBase):
def __init__(self, file_id, bert_vocab_name, do_lower_case, num_choices=10,
max_sent_length=192, num_turns=8,
ext_vocab=None, key_name=None, cpu_count=None):
self.ext_vocab = ext_vocab or ["[PAD]", "[UNK]", "[CLS]", "[SEP]"]
self._max_sent_length = max_sent_length
self._file_path = file_id
self.num_choices = num_choices
self.num_turns = num_turns
super().__init__(self.ext_vocab, key_name, bert_vocab_name)
self.tokenizer = BertTokenizer(vocab_file=bert_vocab_name, do_lower_case=do_lower_case)
self._build_bert_vocab()
if cpu_count is not None:
self.cpu_count = cpu_count
elif "CPU_COUNT" in os.environ and os.environ["CPU_COUNT"] is not None:
self.cpu_count = int(os.environ["CPU_COUNT"])
else:
self.cpu_count = multiprocessing.cpu_count()
def _load_data(self):
r'''Loading dataset, invoked by `BERTLanguageProcessingBase.__init__`
'''
print('begin load data...')
begin_time = time.time()
origin_data = {}
with open("../data/resources/chinese_stop_words.txt") as f:
stop_words = set([w.strip() for w in f.readlines()])
for key in self.key_name:
corpus_resp = []
corpus_post = []
origin_data[key] = {'resp': [], 'post_bert': [], 'resp_bert': []}
datas = json.load(open("%s/%s.json" % (self._file_path, key)))
for data in datas:
messages = data['messages']
i = 0
post_sent = []
corpus_post_sent = []
while i + 1 < len(messages):
if i == 0:
tmp_sent = self.convert_tokens_to_bert_ids(self.tokenize(messages[i]['message']))
post_sent = [tmp_sent]
corpus_post_sent = [
[token for token in jieba.lcut(messages[i]['message']) if token not in stop_words]]
origin_data[key]['resp'].append(messages[i + 1]['message'])
sentence = [token for token in jieba.lcut(messages[i + 1]['message']) if token not in stop_words]
nxt_sent = self.convert_tokens_to_bert_ids(self.tokenize(messages[i + 1]['message']))
origin_data[key]['post_bert'].append(post_sent)
origin_data[key]['resp_bert'].append(nxt_sent)
corpus_resp.append(sentence)
corpus_post.append(corpus_post_sent)
post_sent = (post_sent + [nxt_sent])[- self.num_turns + 1:]
corpus_post_sent = corpus_post_sent + [sentence]
i += 1
distractor_file = os.path.join(self._file_path, '%s_distractors.json' % key)
if os.path.exists(distractor_file):
with open(distractor_file) as f:
origin_data[key]['resp_distractors'] = json.load(f)
origin_data[key]['resp_distractors_bert'] = [
[self.convert_tokens_to_bert_ids(self.tokenize(sent)) for sent in distractors] for distractors in
origin_data[key]['resp_distractors']]
else:
bm25Model = bm25.BM25(corpus_resp)
origin_data[key]['resp_distractors'] = []
origin_data[key]['resp_distractors_bert'] = []
for idx in range(len(corpus_resp)):
posts = corpus_post[idx]
resp = corpus_resp[idx]
count_post_token = {}
for token in list(chain(*posts)):
if token in count_post_token:
count_post_token[token] += 1
else:
count_post_token[token] = 1
token_tfidf = {}
for token in count_post_token:
if token in bm25Model.idf:
token_tfidf[token] = count_post_token[token] * bm25Model.idf[token]
token_tfidf = sorted(list(token_tfidf.items()), key=lambda x: (-x[1], x[0]))
top5 = [each[0] for each in token_tfidf[:5]]
bm_scores = bm25Model.get_scores(list(set(resp + top5)))
bm_scores = np.array(bm_scores)
rank = np.argsort(bm_scores).tolist()
if idx in rank[-self.num_choices:]:
idxs = [each for each in rank[-self.num_choices:] if each != idx]
else:
idxs = rank[-self.num_choices + 1:]
origin_data[key]['resp_distractors'].append([origin_data[key]['resp'][k] for k in idxs])
origin_data[key]['resp_distractors_bert'].append([origin_data[key]['resp_bert'][k] for k in idxs])
with open(distractor_file, 'w') as f:
json.dump(origin_data[key]['resp_distractors'], f, ensure_ascii=False, indent=4)
print('finish tokenizing sentences...%f' % (time.time() - begin_time))
vocab_list = [each for each in self.bert_id2word]
valid_vocab_len = len(vocab_list)
print("vocab list length = %d" % len(vocab_list))
data_size = {key: len(origin_data[key]['resp']) for key in self.key_name}
return vocab_list, valid_vocab_len, origin_data, data_size
def get_batch(self, key, indexes):
if key not in self.key_name:
raise ValueError("No set named %s." % key)
res = {
'resp': [self.data[key]['resp'][i] for i in indexes], # original response
'can_resps': [],
'input_ids': None,
'input_mask': None,
'segment_ids': None,
'labels': None
}
batch_size = len(indexes)
labels = np.zeros((batch_size * self.num_choices), dtype=int)
all_input_ids = []
all_input_mask = []
all_segment_ids = []
for iidx, idx in enumerate(indexes):
post_bert = self.data[key]['post_bert'][idx] # a list of historical utterances
resp_bert = self.data[key]['resp_bert'][idx]
resp_distractors_bert = self.data[key]['resp_distractors_bert'][idx]
ori_can_resps = [self.data[key]['resp'][idx]] + self.data[key]['resp_distractors'][idx]
can_resps = []
options = [resp_bert] + resp_distractors_bert
options = list((ii, option) for ii, option in enumerate(options))
random.shuffle(options)
option_ids = [each[0] for each in options]
options = [each[1] for each in options]
resp_max_length = max([len(each) for each in options])
post_max_length = self._max_sent_length - 3 - resp_max_length
post_bert = list(chain(*post_bert))[-post_max_length:]
for tt, (option_id, option) in enumerate(zip(option_ids, options)):
can_resps.append(ori_can_resps[option_id])
input_id = [self.bert_go_id] + post_bert + [self.bert_eos_id] + option + [self.bert_eos_id]
input_mask = [1] * len(input_id)
segment_ids = [0] * (len(post_bert) + 2) + [1] * (len(option) + 1)
assert len(input_id) == len(segment_ids)
padding = [0] * (self._max_sent_length - len(input_id))
input_id = input_id + padding
input_mask = input_mask + padding
segment_ids = segment_ids + padding
all_input_ids.append(input_id)
all_input_mask.append(input_mask)
all_segment_ids.append(segment_ids)
labels[iidx * self.num_choices + tt] = 1 if option_id == 0 else 0
res['can_resps'].append(can_resps)
assert len(all_input_ids) == batch_size * self.num_choices
res['input_ids'] = all_input_ids
res['input_mask'] = all_input_mask
res['segment_ids'] = all_segment_ids
res['labels'] = labels
return res
def get_inference_metric(self, gen_key="gen"):
'''Get metrics for inference.
It contains:
* :class:`.metric.BleuCorpusMetric`
* :class:`.metric.SingleTurnDialogRecorder`
Arguments:
gen_key (str): The key of generated sentences in index form.
Refer to :class:`.metric.BleuCorpusMetric` or
:class:`.metric.SingleTurnDialogRecorder`. Default: ``gen``.
Returns:
A :class:`.metric.MetricChain` object.
'''
metric = MetricChain()
metric.add_metric(BleuCorpusMetric(self, gen_key=gen_key, \
reference_allvocabs_key="resp_allvocabs"))
metric.add_metric(SingleTurnDialogRecorder(self, gen_key=gen_key))
metric.add_metric(SingleTurnDistinct(self, gen_key=gen_key))
return metric
class MyMemBERTRetrieval(BERTLanguageProcessingBase):
def __init__(self, file_id, bert_vocab_name, do_lower_case, num_choices=10,
max_sent_length=192, max_know_length=100, num_turns=8,
ext_vocab=None, key_name=None, cpu_count=None):
self.ext_vocab = ext_vocab or ["[PAD]", "[UNK]", "[CLS]", "[SEP]"]
self._max_sent_length = max_sent_length
self._max_know_length = max_know_length
self._file_path = file_id
self.num_choices = num_choices
self.num_turns = num_turns
super().__init__(self.ext_vocab, key_name, bert_vocab_name)
self.tokenizer = BertTokenizer(vocab_file=bert_vocab_name, do_lower_case=do_lower_case)
self._build_bert_vocab()
if cpu_count is not None:
self.cpu_count = cpu_count
elif "CPU_COUNT" in os.environ and os.environ["CPU_COUNT"] is not None:
self.cpu_count = int(os.environ["CPU_COUNT"])
else:
self.cpu_count = multiprocessing.cpu_count()
def _load_data(self):
r'''Loading dataset, invoked by `BERTLanguageProcessingBase.__init__`
'''
print('begin load data...')
begin_time = time.time()
origin_data = {}
vocab = {}
def count_token(tokens):
for token in tokens:
vocab[token] = vocab[token] + 1 if token in vocab else 1
with open("../data/resources/chinese_stop_words.txt") as f:
stop_words = set([w.strip() for w in f.readlines()])
for key in self.key_name:
corpus_resp = []
corpus_post = []
origin_data[key] = {'kg_index': [], 'kg': [], 'resp': [], 'post_bert': [], 'resp_bert': []}
datas = json.load(open("%s/%s.json" % (self._file_path, key)))
for data in datas:
messages = data['messages']
kg = []
kg_index = []
kg_dict = {}
for message in messages:
kg_index.append([])
if 'attrs' in message:
for attr in message['attrs']:
h = jieba.lcut(attr['zsname'])
r = jieba.lcut(attr['zsattrname'])
t = jieba.lcut(attr['zsattrvalue'])
k = tuple((tuple(h), tuple(r), tuple(t)))
if k not in kg_dict:
kg_dict[k] = len(kg)
kg.append(k)
kg_index[-1].append(kg_dict[k])
count_token(h + r + t)
i = 0
post_sent = []
corpus_post_sent = []
while i + 1 < len(messages):
if i == 0:
tmp_sent = self.convert_tokens_to_bert_ids(self.tokenize(messages[i]['message']))
post_sent = [tmp_sent]
corpus_post_sent = [
[token for token in jieba.lcut(messages[i]['message']) if token not in stop_words]]
origin_data[key]['resp'].append(messages[i + 1]['message'])
sentence = [token for token in jieba.lcut(messages[i + 1]['message']) if token not in stop_words]
nxt_sent = self.convert_tokens_to_bert_ids(self.tokenize(messages[i + 1]['message']))
origin_data[key]['post_bert'].append(post_sent)
origin_data[key]['resp_bert'].append(nxt_sent)
corpus_resp.append(sentence)
corpus_post.append(corpus_post_sent)
post_sent = (post_sent + [nxt_sent])[- self.num_turns + 1:]
corpus_post_sent = corpus_post_sent + [sentence]
origin_data[key]['kg'].append(kg)
origin_data[key]['kg_index'].append(kg_index[i + 1])
i += 1
distractor_file = os.path.join(self._file_path, '%s_distractors.json' % key)
if os.path.exists(distractor_file):
with open(distractor_file) as f:
origin_data[key]['resp_distractors'] = json.load(f)
origin_data[key]['resp_distractors_bert'] = [
[self.convert_tokens_to_bert_ids(self.tokenize(sent)) for sent in distractors] for distractors in
origin_data[key]['resp_distractors']]
else:
bm25Model = bm25.BM25(corpus_resp)
origin_data[key]['resp_distractors'] = []
origin_data[key]['resp_distractors_bert'] = []
for idx in range(len(corpus_resp)):
posts = corpus_post[idx]
resp = corpus_resp[idx]
count_post_token = {}
for token in list(chain(*posts)):
if token in count_post_token:
count_post_token[token] += 1
else:
count_post_token[token] = 1
token_tfidf = {}
for token in count_post_token:
if token in bm25Model.idf:
token_tfidf[token] = count_post_token[token] * bm25Model.idf[token]
token_tfidf = sorted(list(token_tfidf.items()), key=lambda x: (-x[1], x[0]))
top5 = [each[0] for each in token_tfidf[:5]]
bm_scores = bm25Model.get_scores(list(set(resp + top5)))
bm_scores = np.array(bm_scores)
rank = np.argsort(bm_scores).tolist()
if idx in rank[-self.num_choices:]:
idxs = [each for each in rank[-self.num_choices:] if each != idx]
else:
idxs = rank[-self.num_choices + 1:]
origin_data[key]['resp_distractors'].append([origin_data[key]['resp'][k] for k in idxs])
origin_data[key]['resp_distractors_bert'].append([origin_data[key]['resp_bert'][k] for k in idxs])
with open(distractor_file, 'w') as f:
json.dump(origin_data[key]['resp_distractors'], f, ensure_ascii=False, indent=4)
print('finish tokenizing sentences...%f' % (time.time() - begin_time))
vocab_list = [each for each in self.bert_id2word]
valid_vocab_len = len(vocab_list)
print("bert vocab list length = %d" % len(vocab_list))
vocab = sorted(list(vocab.items()), key=lambda pair: (-pair[1], pair[0]))
self.id2know_word = list(map(lambda x: x[0], vocab))
self.know_word2id = {w: i for i, w in enumerate(self.id2know_word)}
print("knowledge vocab list length = %d" % len(self.id2know_word))
know2id = lambda line: list(map(lambda word: self.know_word2id.get(word, self.unk_id), line))
knows2id = lambda lines: list(map(know2id, lines))
for key in self.key_name:
origin_data[key]['kg'] = [list(map(knows2id, kg)) for kg in origin_data[key]['kg']]
data_size = {key: len(origin_data[key]['resp']) for key in self.key_name}
return vocab_list, valid_vocab_len, origin_data, data_size
def get_batch(self, key, indexes):
if key not in self.key_name:
raise ValueError("No set named %s." % key)
res = {
'resp': [self.data[key]['resp'][i] for i in indexes], # original response
'can_resps': [],
'input_ids': None,
'input_mask': None,
'segment_ids': None,
'resp_ids': None,
'resp_mask': None,
'labels': None
}
batch_size = len(indexes)
labels = np.zeros((batch_size * self.num_choices), dtype=int)
all_input_ids = []
all_input_mask = []
all_segment_ids = []
resp_ids = []
resp_mask = []
single_resp_max_length = min(
max([len(self.data[key]['resp_bert'][idx]) for idx in indexes] +
[max([len(distractor) for distractor in self.data[key]['resp_distractors_bert'][idx]]) for idx in indexes]) - 2,
self._max_sent_length - 2)
for iidx, idx in enumerate(indexes):
post_bert = self.data[key]['post_bert'][idx] # a list of historical utterances
resp_bert = self.data[key]['resp_bert'][idx]
resp_distractors_bert = self.data[key]['resp_distractors_bert'][idx]
ori_can_resps = [self.data[key]['resp'][idx]] + self.data[key]['resp_distractors'][idx]
can_resps = []
options = [resp_bert] + resp_distractors_bert
options = list((ii, option) for ii, option in enumerate(options))
random.shuffle(options)
option_ids = [each[0] for each in options]
options = [each[1] for each in options]
resp_max_length = max([len(each) for each in options])
post_max_length = self._max_sent_length - 3 - resp_max_length
post_bert = list(chain(*post_bert))[-post_max_length:]
for tt, (option_id, option) in enumerate(zip(option_ids, options)):
can_resps.append(ori_can_resps[option_id])
resp_id = [self.bert_go_id] + option[: single_resp_max_length] + [self.bert_eos_id]
resp_msk = [1] * len(resp_id)
padding = [0] * (single_resp_max_length + 2 - len(resp_id))
resp_ids.append(resp_id + padding)
resp_mask.append(resp_msk + padding)
input_id = [self.bert_go_id] + post_bert + [self.bert_eos_id] + option + [self.bert_eos_id]
input_mask = [1] * len(input_id)
segment_ids = [0] * (len(post_bert) + 2) + [1] * (len(option) + 1)
assert len(input_id) == len(segment_ids)
padding = [0] * (self._max_sent_length - len(input_id))
input_id = input_id + padding
input_mask = input_mask + padding
segment_ids = segment_ids + padding
all_input_ids.append(input_id)
all_input_mask.append(input_mask)
all_segment_ids.append(segment_ids)
labels[iidx * self.num_choices + tt] = 1 if option_id == 0 else 0
res['can_resps'].append(can_resps)
assert len(all_input_ids) == batch_size * self.num_choices
res['input_ids'] = all_input_ids
res['input_mask'] = all_input_mask
res['segment_ids'] = all_segment_ids
res['labels'] = labels
res['resp_ids'] = resp_ids
res['resp_mask'] = resp_mask
max_kg_num = max([len(self.data[key]['kg'][idx]) for idx in indexes])
res["kg_h_length"] = np.zeros((batch_size, max_kg_num), dtype=int)
res["kg_hr_length"] = np.zeros((batch_size, max_kg_num), dtype=int)
res['kg_hrt_length'] = np.zeros((batch_size, max_kg_num), dtype=int)
for i, idx in enumerate(indexes):
kg_h_length = [min(self._max_know_length, len(sent[0])) for sent in self.data[key]['kg'][idx]]
res["kg_h_length"][i, :len(kg_h_length)] = kg_h_length
kg_hr_length = [min(self._max_know_length, len(sent[0]) + len(sent[1])) for sent in self.data[key]['kg'][idx]]
res["kg_hr_length"][i, :len(kg_hr_length)] = kg_hr_length
kg_hrt_length = [min(self._max_know_length, len(sent[0]) + len(sent[1]) + len(sent[2])) for sent in
self.data[key]['kg'][idx]]
res["kg_hrt_length"][i, :len(kg_hrt_length)] = kg_hrt_length
res['kg'] = np.zeros((batch_size, max_kg_num, np.max(res["kg_hrt_length"])), dtype=int)
for i, idx in enumerate(indexes):
for j, tri in enumerate(self.data[key]['kg'][idx]):
sent = (tri[0] + tri[1] + tri[2])[:self._max_know_length]
res['kg'][i, j, :len(sent)] = sent
res['kg_index'] = np.zeros((batch_size, max_kg_num), dtype=float)
for i, idx in enumerate(indexes):
for kgid in self.data[key]['kg_index'][idx]:
res['kg_index'][i, kgid] = 1
for k in ['kg_h_length', 'kg_hr_length', 'kg_hrt_length', 'kg', 'kg_index']:
res[k] = res[k].repeat(self.num_choices, 0)
return res
def get_inference_metric(self, gen_key="gen"):
'''Get metrics for inference.
It contains:
* :class:`.metric.BleuCorpusMetric`
* :class:`.metric.SingleTurnDialogRecorder`
Arguments:
gen_key (str): The key of generated sentences in index form.
Refer to :class:`.metric.BleuCorpusMetric` or
:class:`.metric.SingleTurnDialogRecorder`. Default: ``gen``.
Returns:
A :class:`.metric.MetricChain` object.
'''
metric = MetricChain()
metric.add_metric(BleuCorpusMetric(self, gen_key=gen_key, \
reference_allvocabs_key="resp_allvocabs"))
metric.add_metric(SingleTurnDialogRecorder(self, gen_key=gen_key))
metric.add_metric(SingleTurnDistinct(self, gen_key=gen_key))
return metric
| 44.251451
| 128
| 0.56303
| 2,828
| 22,878
| 4.286775
| 0.090877
| 0.03118
| 0.035387
| 0.037862
| 0.849625
| 0.838571
| 0.831395
| 0.815557
| 0.808381
| 0.805576
| 0
| 0.008677
| 0.319958
| 22,878
| 516
| 129
| 44.337209
| 0.770536
| 0.04489
| 0
| 0.758974
| 0
| 0
| 0.073091
| 0.01242
| 0
| 0
| 0
| 0
| 0.010256
| 1
| 0.023077
| false
| 0
| 0.04359
| 0
| 0.087179
| 0.017949
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
02eec44801625cc56f56b1efbe04493b782d0ca8
| 9,735
|
py
|
Python
|
tests/transforms/test_transforms.py
|
amrzv/torchgeo
|
5d407b76b5ad4c8234f4317e3dca3bfc493211a8
|
[
"MIT"
] | null | null | null |
tests/transforms/test_transforms.py
|
amrzv/torchgeo
|
5d407b76b5ad4c8234f4317e3dca3bfc493211a8
|
[
"MIT"
] | null | null | null |
tests/transforms/test_transforms.py
|
amrzv/torchgeo
|
5d407b76b5ad4c8234f4317e3dca3bfc493211a8
|
[
"MIT"
] | null | null | null |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import Dict
import kornia.augmentation as K
import pytest
import torch
import torch.nn as nn
from torch import Tensor
from torchgeo.transforms import indices, transforms
@pytest.fixture
def sample() -> Dict[str, Tensor]:
return {
"image": torch.tensor( # type: ignore[attr-defined]
[[[1, 2, 3], [4, 5, 6], [7, 8, 9]]]
),
"mask": torch.tensor( # type: ignore[attr-defined]
[[0, 0, 1], [0, 1, 1], [1, 1, 1]]
),
"boxes": torch.tensor( # type: ignore[attr-defined]
[[0, 0, 2, 2], [1, 1, 3, 3]]
),
}
@pytest.fixture
def batch_gray() -> Dict[str, Tensor]:
return {
"image": torch.tensor( # type: ignore[attr-defined]
[[[[1, 2, 3], [4, 5, 6], [7, 8, 9]]]],
dtype=torch.float, # type: ignore[attr-defined]
),
"mask": torch.tensor( # type: ignore[attr-defined]
[[[[0, 0, 1], [0, 1, 1], [1, 1, 1]]]],
dtype=torch.long, # type: ignore[attr-defined]
),
"boxes": torch.tensor( # type: ignore[attr-defined]
[[0, 0, 0, 0], [1, 1, 2, 2]],
dtype=torch.float, # type: ignore[attr-defined]
),
"labels": torch.tensor([[0, 1]]), # type: ignore[attr-defined]
}
@pytest.fixture
def batch_rgb() -> Dict[str, Tensor]:
return {
"image": torch.tensor( # type: ignore[attr-defined]
[
[
[[1, 2, 3], [4, 5, 6], [7, 8, 9]],
[[1, 2, 3], [4, 5, 6], [7, 8, 9]],
[[1, 2, 3], [4, 5, 6], [7, 8, 9]],
]
],
dtype=torch.float, # type: ignore[attr-defined]
),
"mask": torch.tensor( # type: ignore[attr-defined]
[[[[0, 0, 1], [0, 1, 1], [1, 1, 1]]]],
dtype=torch.long, # type: ignore[attr-defined]
),
"boxes": torch.tensor( # type: ignore[attr-defined]
[[0, 0, 0, 0], [1, 1, 2, 2]],
dtype=torch.float, # type: ignore[attr-defined]
),
"labels": torch.tensor([[0, 1]]), # type: ignore[attr-defined]
}
@pytest.fixture
def batch_multispectral() -> Dict[str, Tensor]:
return {
"image": torch.tensor( # type: ignore[attr-defined]
[
[
[[1, 2, 3], [4, 5, 6], [7, 8, 9]],
[[1, 2, 3], [4, 5, 6], [7, 8, 9]],
[[1, 2, 3], [4, 5, 6], [7, 8, 9]],
[[1, 2, 3], [4, 5, 6], [7, 8, 9]],
[[1, 2, 3], [4, 5, 6], [7, 8, 9]],
]
],
dtype=torch.float, # type: ignore[attr-defined]
),
"mask": torch.tensor( # type: ignore[attr-defined]
[[[[0, 0, 1], [0, 1, 1], [1, 1, 1]]]],
dtype=torch.long, # type: ignore[attr-defined]
),
"boxes": torch.tensor( # type: ignore[attr-defined]
[[0, 0, 0, 0], [1, 1, 2, 2]],
dtype=torch.float, # type: ignore[attr-defined]
),
"labels": torch.tensor([[0, 1]]), # type: ignore[attr-defined]
}
def assert_matching(output: Dict[str, Tensor], expected: Dict[str, Tensor]) -> None:
for key in expected:
err = f"output[{key}] != expected[{key}]"
equal = torch.allclose(output[key], expected[key]) # type: ignore[attr-defined]
assert equal, err
def test_augmentation_sequential_gray(batch_gray: Dict[str, Tensor]) -> None:
expected = {
"image": torch.tensor( # type: ignore[attr-defined]
[[[[3, 2, 1], [6, 5, 4], [9, 8, 7]]]],
dtype=torch.float, # type: ignore[attr-defined]
),
"mask": torch.tensor( # type: ignore[attr-defined]
[[[[1, 0, 0], [1, 1, 0], [1, 1, 1]]]],
dtype=torch.long, # type: ignore[attr-defined]
),
"boxes": torch.tensor( # type: ignore[attr-defined]
[[2, 0, 2, 0], [1, 1, 0, 2]],
dtype=torch.float, # type: ignore[attr-defined]
),
"labels": torch.tensor([[0, 1]]), # type: ignore[attr-defined]
}
augs = transforms.AugmentationSequential(
K.RandomHorizontalFlip(p=1.0), data_keys=["image", "mask", "boxes"]
)
output = augs(batch_gray)
assert_matching(output, expected)
def test_augmentation_sequential_rgb(batch_rgb: Dict[str, Tensor]) -> None:
expected = {
"image": torch.tensor( # type: ignore[attr-defined]
[
[
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
]
],
dtype=torch.float, # type: ignore[attr-defined]
),
"mask": torch.tensor( # type: ignore[attr-defined]
[[[[1, 0, 0], [1, 1, 0], [1, 1, 1]]]],
dtype=torch.long, # type: ignore[attr-defined]
),
"boxes": torch.tensor( # type: ignore[attr-defined]
[[2, 0, 2, 0], [1, 1, 0, 2]],
dtype=torch.float, # type: ignore[attr-defined]
),
"labels": torch.tensor([[0, 1]]), # type: ignore[attr-defined]
}
augs = transforms.AugmentationSequential(
K.RandomHorizontalFlip(p=1.0), data_keys=["image", "mask", "boxes"]
)
output = augs(batch_rgb)
assert_matching(output, expected)
def test_augmentation_sequential_multispectral(
batch_multispectral: Dict[str, Tensor]
) -> None:
expected = {
"image": torch.tensor( # type: ignore[attr-defined]
[
[
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
]
],
dtype=torch.float, # type: ignore[attr-defined]
),
"mask": torch.tensor( # type: ignore[attr-defined]
[[[[1, 0, 0], [1, 1, 0], [1, 1, 1]]]],
dtype=torch.long, # type: ignore[attr-defined]
),
"boxes": torch.tensor( # type: ignore[attr-defined]
[[2, 0, 2, 0], [1, 1, 0, 2]],
dtype=torch.float, # type: ignore[attr-defined]
),
"labels": torch.tensor([[0, 1]]), # type: ignore[attr-defined]
}
augs = transforms.AugmentationSequential(
K.RandomHorizontalFlip(p=1.0), data_keys=["image", "mask", "boxes"]
)
output = augs(batch_multispectral)
assert_matching(output, expected)
def test_augmentation_sequential_image_only(
batch_multispectral: Dict[str, Tensor]
) -> None:
expected = {
"image": torch.tensor( # type: ignore[attr-defined]
[
[
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
]
],
dtype=torch.float, # type: ignore[attr-defined]
),
"mask": torch.tensor( # type: ignore[attr-defined]
[[[[0, 0, 1], [0, 1, 1], [1, 1, 1]]]],
dtype=torch.long, # type: ignore[attr-defined]
),
"boxes": torch.tensor( # type: ignore[attr-defined]
[[0, 0, 0, 0], [1, 1, 2, 2]],
dtype=torch.float, # type: ignore[attr-defined]
),
"labels": torch.tensor([[0, 1]]), # type: ignore[attr-defined]
}
augs = transforms.AugmentationSequential(
K.RandomHorizontalFlip(p=1.0), data_keys=["image"]
)
output = augs(batch_multispectral)
assert_matching(output, expected)
def test_sequential_transforms_augmentations(
batch_multispectral: Dict[str, Tensor]
) -> None:
expected = {
"image": torch.tensor( # type: ignore[attr-defined]
[
[
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
[[3, 2, 1], [6, 5, 4], [9, 8, 7]],
[[0, 0, 0], [0, 0, 0], [0, 0, 0]],
[[0, 0, 0], [0, 0, 0], [0, 0, 0]],
[[0, 0, 0], [0, 0, 0], [0, 0, 0]],
[[0, 0, 0], [0, 0, 0], [0, 0, 0]],
]
],
dtype=torch.float, # type: ignore[attr-defined]
),
"mask": torch.tensor( # type: ignore[attr-defined]
[[[[1, 0, 0], [1, 1, 0], [1, 1, 1]]]],
dtype=torch.long, # type: ignore[attr-defined]
),
"boxes": torch.tensor( # type: ignore[attr-defined]
[[2, 0, 2, 0], [1, 1, 0, 2]],
dtype=torch.float, # type: ignore[attr-defined]
),
"labels": torch.tensor([[0, 1]]), # type: ignore[attr-defined]
}
train_transforms = nn.Sequential( # type: ignore[attr-defined]
indices.AppendNDBI(index_swir=0, index_nir=0),
indices.AppendNDSI(index_green=0, index_swir=0),
indices.AppendNDVI(index_red=0, index_nir=0),
indices.AppendNDWI(index_green=0, index_nir=0),
transforms.AugmentationSequential(
K.RandomHorizontalFlip(p=1.0), data_keys=["image", "mask", "boxes"]
),
)
output = train_transforms(batch_multispectral)
assert_matching(output, expected)
| 36.460674
| 88
| 0.461325
| 1,194
| 9,735
| 3.71943
| 0.074539
| 0.137356
| 0.192299
| 0.288449
| 0.83855
| 0.821437
| 0.811079
| 0.811079
| 0.780455
| 0.771673
| 0
| 0.075862
| 0.344633
| 9,735
| 266
| 89
| 36.597744
| 0.620219
| 0.178326
| 0
| 0.717842
| 0
| 0
| 0.033648
| 0
| 0
| 0
| 0
| 0
| 0.029046
| 1
| 0.041494
| false
| 0
| 0.029046
| 0.016598
| 0.087137
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
b89f89666b5e4ccbcdc62b793dd94840019e17b5
| 2,008
|
py
|
Python
|
tests/Velocity/test_Velocity__plot_species_velocities.py
|
kamilazdybal/multipy
|
ebdcddb63bfb1cd647ca99bbf9002b04a9b50ed9
|
[
"MIT"
] | null | null | null |
tests/Velocity/test_Velocity__plot_species_velocities.py
|
kamilazdybal/multipy
|
ebdcddb63bfb1cd647ca99bbf9002b04a9b50ed9
|
[
"MIT"
] | null | null | null |
tests/Velocity/test_Velocity__plot_species_velocities.py
|
kamilazdybal/multipy
|
ebdcddb63bfb1cd647ca99bbf9002b04a9b50ed9
|
[
"MIT"
] | null | null | null |
import unittest
import numpy as np
import multipy
################################################################################
################################################################################
####
#### Class: Velocity
####
################################################################################
################################################################################
class Velocity(unittest.TestCase):
def test_Velocity__plot_species_velocities__allowed_calls(self):
species_velocities = np.random.rand(2,100)
try:
vel = multipy.Velocity(species_velocities)
vel.plot_species_velocities(species_names=['1', '2'], colors=['k', 'b'], figsize=(5,5))
except Exception:
self.assertTrue(False)
################################################################################
################################################################################
def test_Velocity__plot_species_velocities__not_allowed_calls(self):
species_velocities = np.random.rand(2,100)
vel = multipy.Velocity(species_velocities)
with self.assertRaises(ValueError):
vel.plot_species_velocities(species_names=1, colors=['k', 'b'], figsize=(5,5))
with self.assertRaises(ValueError):
vel.plot_species_velocities(species_names=['1', '2'], colors=1, figsize=(5,5))
with self.assertRaises(ValueError):
vel.plot_species_velocities(species_names=['1', '2'], colors=['k', 'b'], figsize=1)
with self.assertRaises(ValueError):
vel.plot_species_velocities(species_names=['1', '2', '3'], colors=['k', 'b', 'g'], figsize=(5,5))
with self.assertRaises(ValueError):
vel.plot_species_velocities(species_names=['1', '2'], colors=['k'], figsize=(5,5))
################################################################################
################################################################################
| 40.16
| 109
| 0.438745
| 165
| 2,008
| 5.10303
| 0.242424
| 0.24228
| 0.199525
| 0.171021
| 0.827791
| 0.744656
| 0.647268
| 0.647268
| 0.647268
| 0.647268
| 0
| 0.018551
| 0.140936
| 2,008
| 49
| 110
| 40.979592
| 0.469565
| 0.00747
| 0
| 0.375
| 0
| 0
| 0.015707
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.083333
| false
| 0
| 0.125
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b220bd34529b55eb106ade572e9059a072181438
| 8,565
|
py
|
Python
|
python/tests/geo/plot_test.py
|
xge-zilliz/GIS
|
1cfccdf45115f7ba9f4c43f114fa6b0b0fb709f6
|
[
"Apache-2.0"
] | 3
|
2020-01-09T02:10:21.000Z
|
2020-01-18T06:50:54.000Z
|
python/tests/geo/plot_test.py
|
xge-zilliz/GIS
|
1cfccdf45115f7ba9f4c43f114fa6b0b0fb709f6
|
[
"Apache-2.0"
] | null | null | null |
python/tests/geo/plot_test.py
|
xge-zilliz/GIS
|
1cfccdf45115f7ba9f4c43f114fa6b0b0fb709f6
|
[
"Apache-2.0"
] | 2
|
2020-01-13T02:22:30.000Z
|
2020-01-14T03:03:26.000Z
|
# Copyright (C) 2019-2020 Zilliz. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# pylint: disable=wrong-import-order
import os
import pandas
import arctern
import matplotlib.pyplot as plt
def test_plot1():
raw_data = []
raw_data.append('polygon((0 0,0 1,1 1,1 0,0 0))')
raw_data.append('linestring(0 0,0 1,1 1,1 0,0 0)')
raw_data.append('point(2 2)')
raw_data.append("GEOMETRYCOLLECTION(" \
"MULTIPOLYGON (((0 0,0 1,1 1,1 0,0 0)),((1 1,1 2,2 2,2 1,1 1)))," \
"POLYGON((3 3,3 4,4 4,4 3,3 3))," \
"LINESTRING(0 8,5 5,8 0)," \
"POINT(4 7)," \
"MULTILINESTRING ((1 1,1 2),(2 4,1 9,1 8))," \
"MULTIPOINT (6 8,5 7)" \
")")
arr_wkt = pandas.Series(raw_data)
arr_wkb = arctern.ST_GeomFromText(arr_wkt)
file_name = "/tmp/test_plot1.png"
if os.path.exists(file_name):
os.remove(file_name)
if os.path.exists(file_name):
assert False
fig, ax = plt.subplots()
arctern.plot(ax, arr_wkb)
ax.grid()
fig.savefig(file_name)
file_size = os.path.getsize(file_name)
file_size = file_size / 1024
assert 15 <= file_size <= 25
def test_plot2():
raw_data = []
raw_data.append('point(0 0)')
raw_data.append('point(1 1)')
raw_data.append('point(2 2)')
arr_wkt = pandas.Series(raw_data)
arr_wkb = arctern.ST_GeomFromText(arr_wkt)
file_name = "/tmp/test_plot2.png"
if os.path.exists(file_name):
os.remove(file_name)
if os.path.exists(file_name):
assert False
fig, ax = plt.subplots()
arctern.plot(ax, arr_wkb, color=['red', 'blue', 'black'], marker='^', markersize=100)
ax.grid()
fig.savefig(file_name)
file_size = os.path.getsize(file_name)
file_size = file_size / 1024
assert 10 <= file_size <= 15
def test_plot3():
raw_data = []
raw_data.append('linestring(0 0, 5 5, 10 10)')
raw_data.append('linestring(0 10, 5 5, 10 0)')
raw_data.append('linestring(0 1, 5 6, 10 11)')
raw_data.append('linestring(0 11, 5 6, 10 1)')
arr_wkt = pandas.Series(raw_data)
arr_wkb = arctern.ST_GeomFromText(arr_wkt)
file_name = "/tmp/test_plot3.png"
if os.path.exists(file_name):
os.remove(file_name)
if os.path.exists(file_name):
assert False
fig, ax = plt.subplots()
arctern.plot(ax, arr_wkb,
color=['green', 'red', 'black', 'orange'],
linewidth=[5, 6, 7, 8],
linestyle=['solid', 'dashed', 'dashdot', 'dotted'])
ax.grid()
fig.savefig(file_name)
file_size = os.path.getsize(file_name)
file_size = file_size / 1024
assert 30 <= file_size <= 50
def test_plot4():
raw_data = []
raw_data.append('polygon((0 0,0 1,1 1,1 0,0 0))')
raw_data.append('polygon((1 1,1 2,2 2,2 1,1 1))')
raw_data.append('polygon((2 2,2 3,3 3,3 2,2 2))')
raw_data.append('polygon((3 3,3 4,4 4,4 3,3 3))')
arr_wkt = pandas.Series(raw_data)
arr_wkb = arctern.ST_GeomFromText(arr_wkt)
file_name = "/tmp/test_plot4.png"
if os.path.exists(file_name):
os.remove(file_name)
if os.path.exists(file_name):
assert False
fig, ax = plt.subplots()
arctern.plot(ax, arr_wkb,
edgecolor=['green', 'red', 'black', 'orange'],
linewidth=[5, 6, 7, 8],
linestyle=['solid', 'dashed', 'dashdot', 'dotted'],
facecolor=['red', 'black', 'orange', 'green'])
ax.grid()
fig.savefig(file_name)
file_size = os.path.getsize(file_name)
file_size = file_size / 1024
assert 10 <= file_size <= 20
def test_plot5():
raw_data = []
raw_data.append('circularstring(-2 -2, 2 2, -2 -2)')
raw_data.append('circularstring(-1 -1, 1 1, -1 -1)')
arr_wkt = pandas.Series(raw_data)
arr_wkb = arctern.ST_CurveToLine(arctern.ST_GeomFromText(arr_wkt))
file_name = "/tmp/test_plot5.png"
if os.path.exists(file_name):
os.remove(file_name)
if os.path.exists(file_name):
assert False
fig, ax = plt.subplots()
arctern.plot(ax, arr_wkb)
ax.grid()
fig.savefig(file_name)
file_size = os.path.getsize(file_name)
file_size = file_size / 1024
assert 25 <= file_size <= 35
def test_plot6():
raw_data = []
raw_data.append('point(0 0)')
raw_data.append('linestring(0 10, 5 5, 10 0)')
raw_data.append('polygon((2 2,2 3,3 3,3 2,2 2))')
raw_data.append("GEOMETRYCOLLECTION(" \
"polygon((1 1,1 2,2 2,2 1,1 1))," \
"linestring(0 1, 5 6, 10 11)," \
"POINT(4 7))")
arr_wkt = pandas.Series(raw_data)
arr_wkb = arctern.ST_CurveToLine(arctern.ST_GeomFromText(arr_wkt))
file_name = "/tmp/test_plot6.png"
if os.path.exists(file_name):
os.remove(file_name)
if os.path.exists(file_name):
assert False
fig, ax = plt.subplots()
arctern.plot(ax, arr_wkb,
color=['orange', 'green'],
marker='^',
markersize=100,
linewidth=[None, 7, 8],
linestyle=[None, 'dashed', 'dashdot'],
edgecolor=[None, None, 'red'],
facecolor=[None, None, 'black'])
ax.grid()
fig.savefig(file_name)
file_size = os.path.getsize(file_name)
file_size = file_size / 1024
# print(file_size)
assert 20 <= file_size <= 30
def test_plot7():
raw_data = []
raw_data.append('point(0 0)')
raw_data.append('linestring(0 10, 5 5, 10 0)')
raw_data.append('polygon((2 2,2 3,3 3,3 2,2 2))')
raw_data.append("GEOMETRYCOLLECTION(" \
"polygon((1 1,1 2,2 2,2 1,1 1))," \
"linestring(0 1, 5 6, 10 11)," \
"POINT(4 7))")
arr_wkt = pandas.Series(raw_data)
arr_wkb = arctern.ST_CurveToLine(arctern.ST_GeomFromText(arr_wkt))
df = pandas.DataFrame({'wkb':arr_wkb})
file_name = "/tmp/test_plot7.png"
if os.path.exists(file_name):
os.remove(file_name)
if os.path.exists(file_name):
assert False
fig, ax = plt.subplots()
arctern.plot(ax, df,
color=['orange', 'green'],
marker='^',
markersize=[100],
linewidth=[None, 7, 8],
linestyle=[None, 'dashed', 'dashdot'],
edgecolor=[None, None, 'red'],
facecolor=[None, None, 'black'])
ax.grid()
fig.savefig(file_name)
file_size = os.path.getsize(file_name)
file_size = file_size / 1024
# print(file_size)
assert 20 <= file_size <= 30
def test_plot8():
raw_data = []
raw_data.append('point(0 0)')
raw_data.append('linestring(0 10, 5 5, 10 0)')
raw_data.append('polygon((2 2,2 3,3 3,3 2,2 2))')
raw_data.append("GEOMETRYCOLLECTION(" \
"polygon((1 1,1 2,2 2,2 1,1 1))," \
"linestring(0 1, 5 6, 10 11)," \
"POINT(4 7))")
arr_wkt = pandas.Series(raw_data)
arr_wkb = arctern.ST_CurveToLine(arctern.ST_GeomFromText(arr_wkt))
file_name = "/tmp/test_plot8.png"
if os.path.exists(file_name):
os.remove(file_name)
if os.path.exists(file_name):
assert False
fig, ax = plt.subplots()
arctern.plot(ax, arr_wkb,
color=['orange', 'green'],
marker='^',
markersize=100,
alpha=0.6,
linewidth=[None, 7, 8],
linestyle=[None, 'dashed', 'dashdot'],
edgecolor=[None, None, 'red'],
facecolor=[None, None, 'black'])
ax.grid()
fig.savefig(file_name)
file_size = os.path.getsize(file_name)
file_size = file_size / 1024
# print(file_size)
assert 20 <= file_size <= 30
| 31.259124
| 89
| 0.56941
| 1,234
| 8,565
| 3.799838
| 0.13128
| 0.081894
| 0.080401
| 0.047771
| 0.80081
| 0.786735
| 0.764555
| 0.758584
| 0.758584
| 0.758584
| 0
| 0.066099
| 0.286398
| 8,565
| 273
| 90
| 31.373626
| 0.70108
| 0.077058
| 0
| 0.753623
| 0
| 0.004831
| 0.18334
| 0
| 0
| 0
| 0
| 0
| 0.077295
| 1
| 0.038647
| false
| 0
| 0.019324
| 0
| 0.057971
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b24b140c14415fda0cef5f4c1d281da0572cf1d4
| 5,661
|
py
|
Python
|
cart_venv/Lib/site-packages/tensorflow_estimator/_api/v1/estimator/__init__.py
|
juice1000/Synchronous-vs-Asynchronous-Learning-Tensorflow-
|
654be60f7986ac9bb7ce1d080ddee377c3389f93
|
[
"MIT"
] | 4
|
2020-09-02T16:13:51.000Z
|
2021-06-05T08:45:59.000Z
|
cart_venv/Lib/site-packages/tensorflow_estimator/_api/v1/estimator/__init__.py
|
juice1000/Synchronous-vs-Asynchronous-Learning-Tensorflow-
|
654be60f7986ac9bb7ce1d080ddee377c3389f93
|
[
"MIT"
] | null | null | null |
cart_venv/Lib/site-packages/tensorflow_estimator/_api/v1/estimator/__init__.py
|
juice1000/Synchronous-vs-Asynchronous-Learning-Tensorflow-
|
654be60f7986ac9bb7ce1d080ddee377c3389f93
|
[
"MIT"
] | 1
|
2021-01-28T01:57:41.000Z
|
2021-01-28T01:57:41.000Z
|
# This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Estimator: High level tools for working with models.
"""
from __future__ import print_function as _print_function
import sys as _sys
from tensorflow_estimator._api.v1.estimator import experimental
from tensorflow_estimator._api.v1.estimator import export
from tensorflow_estimator._api.v1.estimator import inputs
from tensorflow_estimator._api.v1.estimator import tpu
from tensorflow_estimator.python.estimator.canned.baseline import BaselineClassifier
from tensorflow_estimator.python.estimator.canned.baseline import BaselineEstimator
from tensorflow_estimator.python.estimator.canned.baseline import BaselineRegressor
from tensorflow_estimator.python.estimator.canned.baseline import ModeKeys
from tensorflow_estimator.python.estimator.canned.boosted_trees import BoostedTreesClassifier
from tensorflow_estimator.python.estimator.canned.boosted_trees import BoostedTreesEstimator
from tensorflow_estimator.python.estimator.canned.boosted_trees import BoostedTreesRegressor
from tensorflow_estimator.python.estimator.canned.dnn import DNNClassifier
from tensorflow_estimator.python.estimator.canned.dnn import DNNEstimator
from tensorflow_estimator.python.estimator.canned.dnn import DNNRegressor
from tensorflow_estimator.python.estimator.canned.dnn_linear_combined import DNNLinearCombinedClassifier
from tensorflow_estimator.python.estimator.canned.dnn_linear_combined import DNNLinearCombinedEstimator
from tensorflow_estimator.python.estimator.canned.dnn_linear_combined import DNNLinearCombinedRegressor
from tensorflow_estimator.python.estimator.canned.linear import LinearClassifier
from tensorflow_estimator.python.estimator.canned.linear import LinearEstimator
from tensorflow_estimator.python.estimator.canned.linear import LinearRegressor
from tensorflow_estimator.python.estimator.canned.parsing_utils import classifier_parse_example_spec
from tensorflow_estimator.python.estimator.canned.parsing_utils import regressor_parse_example_spec
from tensorflow_estimator.python.estimator.estimator import Estimator
from tensorflow_estimator.python.estimator.estimator import VocabInfo
from tensorflow_estimator.python.estimator.estimator import WarmStartSettings
from tensorflow_estimator.python.estimator.exporter import BestExporter
from tensorflow_estimator.python.estimator.exporter import Exporter
from tensorflow_estimator.python.estimator.exporter import FinalExporter
from tensorflow_estimator.python.estimator.exporter import LatestExporter
from tensorflow_estimator.python.estimator.extenders import add_metrics
from tensorflow_estimator.python.estimator.head.base_head import Head
from tensorflow_estimator.python.estimator.head.binary_class_head import BinaryClassHead
from tensorflow_estimator.python.estimator.head.multi_class_head import MultiClassHead
from tensorflow_estimator.python.estimator.head.multi_head import MultiHead
from tensorflow_estimator.python.estimator.head.multi_label_head import MultiLabelHead
from tensorflow_estimator.python.estimator.head.regression_head import LogisticRegressionHead
from tensorflow_estimator.python.estimator.head.regression_head import PoissonRegressionHead
from tensorflow_estimator.python.estimator.head.regression_head import RegressionHead
from tensorflow_estimator.python.estimator.hooks.basic_session_run_hooks import CheckpointSaverHook
from tensorflow_estimator.python.estimator.hooks.basic_session_run_hooks import CheckpointSaverListener
from tensorflow_estimator.python.estimator.hooks.basic_session_run_hooks import FeedFnHook
from tensorflow_estimator.python.estimator.hooks.basic_session_run_hooks import FinalOpsHook
from tensorflow_estimator.python.estimator.hooks.basic_session_run_hooks import GlobalStepWaiterHook
from tensorflow_estimator.python.estimator.hooks.basic_session_run_hooks import LoggingTensorHook
from tensorflow_estimator.python.estimator.hooks.basic_session_run_hooks import NanLossDuringTrainingError
from tensorflow_estimator.python.estimator.hooks.basic_session_run_hooks import NanTensorHook
from tensorflow_estimator.python.estimator.hooks.basic_session_run_hooks import ProfilerHook
from tensorflow_estimator.python.estimator.hooks.basic_session_run_hooks import SecondOrStepTimer
from tensorflow_estimator.python.estimator.hooks.basic_session_run_hooks import StepCounterHook
from tensorflow_estimator.python.estimator.hooks.basic_session_run_hooks import StopAtStepHook
from tensorflow_estimator.python.estimator.hooks.basic_session_run_hooks import SummarySaverHook
from tensorflow_estimator.python.estimator.hooks.session_run_hook import SessionRunArgs
from tensorflow_estimator.python.estimator.hooks.session_run_hook import SessionRunContext
from tensorflow_estimator.python.estimator.hooks.session_run_hook import SessionRunHook
from tensorflow_estimator.python.estimator.hooks.session_run_hook import SessionRunValues
from tensorflow_estimator.python.estimator.model_fn import EstimatorSpec
from tensorflow_estimator.python.estimator.run_config import RunConfig
from tensorflow_estimator.python.estimator.training import EvalSpec
from tensorflow_estimator.python.estimator.training import TrainSpec
from tensorflow_estimator.python.estimator.training import train_and_evaluate
del _print_function
from tensorflow.python.util import module_wrapper as _module_wrapper
if not isinstance(_sys.modules[__name__], _module_wrapper.TFModuleWrapper):
_sys.modules[__name__] = _module_wrapper.TFModuleWrapper(
_sys.modules[__name__], "estimator", public_apis=None, deprecation=True,
has_lite=False)
| 71.658228
| 106
| 0.896661
| 683
| 5,661
| 7.168375
| 0.203514
| 0.174428
| 0.281863
| 0.331699
| 0.728962
| 0.705678
| 0.688521
| 0.525531
| 0.397059
| 0.275735
| 0
| 0.000748
| 0.055291
| 5,661
| 78
| 107
| 72.576923
| 0.914734
| 0.03162
| 0
| 0
| 1
| 0
| 0.001644
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.926471
| 0
| 0.926471
| 0.029412
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 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
| 7
|
b2923405dd66f17af5778cd939884de9a9f226c8
| 80
|
py
|
Python
|
pymcq/examples/heavymath/__init__.py
|
sglumac/pymcq
|
38da70ad76e6959fdff2de82b514da50b621223d
|
[
"MIT"
] | 1
|
2020-04-03T09:15:22.000Z
|
2020-04-03T09:15:22.000Z
|
pymcq/examples/heavymath/__init__.py
|
sglumac/pymcq
|
38da70ad76e6959fdff2de82b514da50b621223d
|
[
"MIT"
] | null | null | null |
pymcq/examples/heavymath/__init__.py
|
sglumac/pymcq
|
38da70ad76e6959fdff2de82b514da50b621223d
|
[
"MIT"
] | null | null | null |
import pymcq.examples.heavymath.test
import pymcq.examples.heavymath.testsuite1
| 26.666667
| 42
| 0.875
| 10
| 80
| 7
| 0.6
| 0.314286
| 0.542857
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013158
| 0.05
| 80
| 2
| 43
| 40
| 0.907895
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
a2ea2f72cab6d54109620ea1f76535642d970ebe
| 5,011
|
py
|
Python
|
venv/Lib/site-packages/PyQt4/examples/webkit/formextractor/formextractor_rc2.py
|
prateekfxtd/ns_Startup
|
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
|
[
"MIT"
] | null | null | null |
venv/Lib/site-packages/PyQt4/examples/webkit/formextractor/formextractor_rc2.py
|
prateekfxtd/ns_Startup
|
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
|
[
"MIT"
] | null | null | null |
venv/Lib/site-packages/PyQt4/examples/webkit/formextractor/formextractor_rc2.py
|
prateekfxtd/ns_Startup
|
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# Resource object code
#
# Created: Wed Mar 20 13:51:02 2013
# by: The Resource Compiler for PyQt (Qt v4.8.4)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x03\xfd\
\x3c\
\x68\x74\x6d\x6c\x3e\x3c\x62\x6f\x64\x79\x3e\x0a\x3c\x68\x31\x3e\
\x0a\x54\x68\x65\x20\x47\x72\x65\x65\x6e\x20\x50\x65\x6f\x70\x6c\
\x65\x20\x42\x6f\x6f\x6b\x20\x43\x6c\x75\x62\x0a\x3c\x2f\x68\x31\
\x3e\x0a\x0a\x3c\x70\x3e\x0a\x57\x65\x6c\x63\x6f\x6d\x65\x20\x74\
\x6f\x20\x54\x68\x65\x20\x47\x72\x65\x65\x6e\x20\x50\x65\x6f\x70\
\x6c\x65\x20\x42\x6f\x6f\x6b\x20\x43\x6c\x75\x62\x2e\x20\x50\x6c\
\x65\x61\x73\x65\x20\x72\x65\x67\x69\x73\x74\x65\x72\x20\x74\x6f\
\x20\x6f\x62\x74\x61\x69\x6e\x20\x61\x20\x6d\x65\x6d\x62\x65\x72\
\x73\x68\x69\x70\x20\x77\x69\x74\x68\x20\x75\x73\x2e\x0a\x3c\x2f\
\x70\x3e\x0a\x20\x20\x20\x20\x3c\x66\x6f\x72\x6d\x20\x6f\x6e\x73\
\x75\x62\x6d\x69\x74\x3d\x22\x66\x6f\x72\x6d\x45\x78\x74\x72\x61\
\x63\x74\x6f\x72\x2e\x73\x75\x62\x6d\x69\x74\x28\x29\x22\x3e\x0a\
\x20\x20\x20\x20\x3c\x74\x61\x62\x6c\x65\x3e\x0a\x20\x20\x20\x20\
\x3c\x74\x62\x6f\x64\x79\x3e\x3c\x74\x72\x3e\x0a\x20\x20\x20\x20\
\x20\x20\x20\x20\x3c\x74\x64\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\
\x20\x46\x69\x72\x73\x74\x20\x6e\x61\x6d\x65\x3a\x0a\x20\x20\x20\
\x20\x20\x20\x20\x20\x3c\x2f\x74\x64\x3e\x0a\x20\x20\x20\x20\x20\
\x20\x20\x20\x3c\x74\x64\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\
\x22\x74\x65\x78\x74\x22\x20\x69\x64\x3d\x22\x66\x69\x72\x73\x74\
\x6e\x61\x6d\x65\x22\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x3c\
\x2f\x74\x64\x3e\x0a\x20\x20\x20\x20\x3c\x2f\x74\x72\x3e\x0a\x20\
\x20\x20\x20\x3c\x74\x72\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\
\x3c\x74\x64\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x4c\x61\x73\
\x74\x20\x6e\x61\x6d\x65\x3a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\
\x3c\x2f\x74\x64\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x74\
\x64\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\
\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x22\x74\x65\x78\x74\
\x22\x20\x69\x64\x3d\x22\x6c\x61\x73\x74\x6e\x61\x6d\x65\x22\x3e\
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x2f\x74\x64\x3e\x0a\x20\
\x20\x20\x20\x3c\x2f\x74\x72\x3e\x0a\x20\x20\x20\x20\x3c\x74\x72\
\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x74\x64\x3e\x0a\x20\
\x20\x20\x20\x20\x20\x20\x20\x47\x65\x6e\x64\x65\x72\x3a\x0a\x20\
\x20\x20\x20\x20\x20\x20\x20\x3c\x2f\x74\x64\x3e\x0a\x20\x20\x20\
\x20\x20\x20\x20\x20\x3c\x74\x64\x3e\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x22\x72\
\x61\x64\x69\x6f\x22\x20\x6e\x61\x6d\x65\x3d\x22\x67\x65\x6e\x64\
\x65\x72\x22\x20\x69\x64\x3d\x22\x67\x65\x6e\x64\x65\x72\x4d\x61\
\x6c\x65\x22\x20\x76\x61\x6c\x75\x65\x3d\x22\x4d\x61\x6c\x65\x22\
\x3e\x20\x4d\x61\x6c\x65\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x3c\
\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x22\x72\x61\x64\x69\
\x6f\x22\x20\x6e\x61\x6d\x65\x3d\x22\x67\x65\x6e\x64\x65\x72\x22\
\x20\x69\x64\x3d\x22\x67\x65\x6e\x64\x65\x72\x46\x65\x6d\x61\x6c\
\x65\x22\x20\x76\x61\x6c\x75\x65\x3d\x22\x46\x65\x6d\x61\x6c\x65\
\x22\x3e\x20\x46\x65\x6d\x61\x6c\x65\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x3c\x2f\x74\x64\x3e\x0a\x20\x20\x20\x20\x3c\x2f\x74\x72\
\x3e\x0a\x20\x20\x20\x20\x3c\x74\x72\x3e\x0a\x20\x20\x20\x20\x20\
\x20\x20\x20\x3c\x74\x64\x20\x63\x6f\x6c\x73\x70\x61\x6e\x3d\x22\
\x32\x22\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x69\x6e\x70\
\x75\x74\x20\x74\x79\x70\x65\x3d\x22\x63\x68\x65\x63\x6b\x62\x6f\
\x78\x22\x20\x69\x64\x3d\x22\x75\x70\x64\x61\x74\x65\x73\x22\x20\
\x76\x61\x6c\x75\x65\x3d\x22\x72\x65\x63\x65\x69\x76\x65\x22\x3e\
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x43\x68\x65\x63\x6b\x20\x68\
\x65\x72\x65\x20\x69\x66\x20\x79\x6f\x75\x20\x77\x6f\x75\x6c\x64\
\x20\x6c\x69\x6b\x65\x20\x74\x6f\x20\x72\x65\x63\x65\x69\x76\x65\
\x20\x72\x65\x67\x75\x6c\x61\x72\x20\x75\x70\x64\x61\x74\x65\x73\
\x20\x66\x72\x6f\x6d\x20\x75\x73\x3a\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x3c\x2f\x74\x64\x3e\x0a\x20\x20\x20\x20\x3c\x2f\x74\x72\
\x3e\x0a\x20\x20\x20\x20\x3c\x2f\x74\x62\x6f\x64\x79\x3e\x3c\x2f\
\x74\x61\x62\x6c\x65\x3e\x0a\x20\x20\x20\x20\x3c\x69\x6e\x70\x75\
\x74\x20\x74\x79\x70\x65\x3d\x22\x73\x75\x62\x6d\x69\x74\x22\x20\
\x76\x61\x6c\x75\x65\x3d\x22\x53\x75\x62\x6d\x69\x74\x22\x3e\x0a\
\x20\x20\x20\x20\x3c\x2f\x66\x6f\x72\x6d\x3e\x0a\x0a\x3c\x2f\x62\
\x6f\x64\x79\x3e\x3c\x2f\x68\x74\x6d\x6c\x3e\x0a\
"
qt_resource_name = "\
\x00\x09\
\x09\x04\x21\xfc\
\x00\x66\
\x00\x6f\x00\x72\x00\x6d\x00\x2e\x00\x68\x00\x74\x00\x6d\x00\x6c\
"
qt_resource_struct = "\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
"
def qInitResources():
QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
def qCleanupResources():
QtCore.qUnregisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
qInitResources()
| 50.11
| 96
| 0.7274
| 1,153
| 5,011
| 3.145707
| 0.087598
| 0.344086
| 0.426799
| 0.449959
| 0.74359
| 0.705542
| 0.672457
| 0.617039
| 0.587262
| 0.57072
| 0
| 0.389404
| 0.03193
| 5,011
| 99
| 97
| 50.616162
| 0.358277
| 0.036121
| 0
| 0.02381
| 0
| 0.797619
| 0
| 0
| 0
| 1
| 0.001659
| 0
| 0
| 1
| 0.02381
| false
| 0
| 0.011905
| 0
| 0.035714
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 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
| 8
|
0c4b398acb1c82f0f57a37b9b64100f47fd2e31f
| 166
|
py
|
Python
|
TPS_dice_roller_bot/core/iamalive_feature.py
|
JacopoDeAngelis/TPS-dice-roller-bot
|
b296966ccde1078eb6d67e71dfb09130e1811035
|
[
"MIT"
] | null | null | null |
TPS_dice_roller_bot/core/iamalive_feature.py
|
JacopoDeAngelis/TPS-dice-roller-bot
|
b296966ccde1078eb6d67e71dfb09130e1811035
|
[
"MIT"
] | null | null | null |
TPS_dice_roller_bot/core/iamalive_feature.py
|
JacopoDeAngelis/TPS-dice-roller-bot
|
b296966ccde1078eb6d67e71dfb09130e1811035
|
[
"MIT"
] | null | null | null |
from random import choice
from .constants import ALIVE_SERVICE
### alive_service()
# returns a random sentence
def alive_service():
return choice(ALIVE_SERVICE)
| 20.75
| 36
| 0.783133
| 22
| 166
| 5.727273
| 0.545455
| 0.380952
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144578
| 166
| 8
| 37
| 20.75
| 0.887324
| 0.246988
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0.5
| 0.25
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 8
|
a74270e8c71f3ea094ccd157c672033a23ea9855
| 1,319
|
py
|
Python
|
movimentacoes/serializer.py
|
robsonleal/challenge_backend
|
15825630d7e344cc4c7554a2aff4d4ab8ecf52f4
|
[
"MIT"
] | null | null | null |
movimentacoes/serializer.py
|
robsonleal/challenge_backend
|
15825630d7e344cc4c7554a2aff4d4ab8ecf52f4
|
[
"MIT"
] | null | null | null |
movimentacoes/serializer.py
|
robsonleal/challenge_backend
|
15825630d7e344cc4c7554a2aff4d4ab8ecf52f4
|
[
"MIT"
] | null | null | null |
from rest_framework import serializers
from movimentacoes.models import Receita, Despesa
from movimentacoes.validators import *
class ReceitaSerializer(serializers.ModelSerializer):
class Meta:
model = Receita
fields = '__all__'
def validate(self, data):
if not descricao_valida(data['descricao']):
raise serializers.ValidationError({'nome','O campo da descrição não pode ficar em branco'})
if not valor_valido(data['valor']):
raise serializers.ValidationError({'valor','O campo do valor não pode ficar em branco'})
if not data_valida(data['data']):
raise serializers.ValidationError({'valor','O campo da data não pode ficar em branco'})
class DespesaSerializer(serializers.ModelSerializer):
class Meta:
model = Despesa
fields = '__all__'
def validate(self, data):
if not descricao_valida(data['descricao']):
raise serializers.ValidationError({'nome','O campo da descrição não pode ficar em branco'})
if not valor_valido(data['valor']):
raise serializers.ValidationError({'valor','O campo do valor não pode ficar em branco'})
if not data_valida(data['data']):
raise serializers.ValidationError({'valor','O campo da data não pode ficar em branco'})
| 45.482759
| 103
| 0.681577
| 157
| 1,319
| 5.630573
| 0.261147
| 0.033937
| 0.210407
| 0.095023
| 0.809955
| 0.719457
| 0.719457
| 0.719457
| 0.719457
| 0.719457
| 0
| 0
| 0.218347
| 1,319
| 29
| 104
| 45.482759
| 0.85742
| 0
| 0
| 0.72
| 0
| 0
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.08
| false
| 0
| 0.12
| 0
| 0.36
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
a743e2e957c2bd2412c1ce3373ebf1dd35d138c5
| 3,840
|
py
|
Python
|
Validation_py/compare.py
|
yester31/OpenCL_EX
|
376ea11cb3a71237d2217111e46c771f8929ca2e
|
[
"MIT"
] | null | null | null |
Validation_py/compare.py
|
yester31/OpenCL_EX
|
376ea11cb3a71237d2217111e46c771f8929ca2e
|
[
"MIT"
] | null | null | null |
Validation_py/compare.py
|
yester31/OpenCL_EX
|
376ea11cb3a71237d2217111e46c771f8929ca2e
|
[
"MIT"
] | null | null | null |
def compare_two_tensor(output, output_c, print_all = False):
if len(output) != len(output_c):
print("Tensor size is not same : output_py=%d output_c=%d" % (len(output), len(output_c)))
exit()
max_idx = -1
max_diff = 0
cnt_diff = 0
r0 = 0
r = 0
for idx in range(len(output)):
if output[idx] != output_c[idx]:
cnt_diff += 1
diff = abs(output[idx] - output_c[idx])
if diff > max_diff:
max_diff = diff
max_idx = idx
r0 = output[idx]
r = output_c[idx]
if print_all:
print("%6d output_py=%10.6f output_c=%10.6f diff=%.6f" % (idx, output[idx], output_c[idx], diff))
if max_diff > 0:
print("cnt_total=%d cnt_diff=%d max_idx=%6d output_py=%10.6f output_c=%10.6f diff=%.6f" % (
len(output), cnt_diff, max_idx, r0, r, max_diff))
else:
print("All data is same!")
def compare_two_tensor_uint8(output, output_c):
if len(output) != len(output_c):
print("Tensor size is not same : output_py=%d output_c=%d" % (len(output), len(output_c)))
exit()
max_idx = -1
max_diff = 0
cnt_diff = 0
r0 = 0
r = 0
for idx in range(len(output)):
if output[idx] != output_c[idx]:
cnt_diff += 1
diff = abs(output[idx] - output_c[idx])
if diff > max_diff:
max_diff = diff
max_idx = idx
r0 = output[idx]
r = output_c[idx]
print("%6d output_py=%d output_c=%d diff=%d" % (idx, output[idx], output_c[idx], diff))
if max_diff > 0:
print("cnt_total=%d cnt_diff=%d max_idx=%6d output_py=%d output_c=%d diff=%d" % (
len(output), cnt_diff, max_idx, r0, r, max_diff))
else:
print("All data is same!")
def compare_two_tensor_uint8_2(output, output_c):
if len(output) != len(output_c):
print("Tensor size is not same : output_py=%d output_c=%d" % (len(output), len(output_c)))
exit()
max_idx = -1
max_diff = 0
cnt_diff = 0
r0 = 0
r = 0
for idx in range(len(output)):
diff = 0
if output[idx] != output_c[idx]:
cnt_diff += 1
diff = abs(output[idx] - output_c[idx])
if diff > max_diff:
max_diff = diff
max_idx = idx
r0 = output[idx]
r = output_c[idx]
print("%6d output_py=%d output_c=%d diff=%d" % (idx, output[idx], output_c[idx], diff))
if max_diff > 0:
print("cnt_total=%d cnt_diff=%d max_idx=%6d output_py=%d output_c=%d diff=%d" % (
len(output), cnt_diff, max_idx, r0, r, max_diff))
else:
print("All data is same!")
def compare_two_tensor2(output, output_c):
if len(output) != len(output_c):
print("Tensor size is not same : output_py=%d output_c=%d" % (len(output), len(output_c)))
exit()
max_idx = -1
max_diff = 0
cnt_diff = 0
r0 = 0
r = 0
for idx in range(len(output)):
diff = 0
if output[idx] != output_c[idx]:
cnt_diff += 1
diff = abs(output[idx] - output_c[idx])
if diff > max_diff:
max_diff = diff
max_idx = idx
r0 = output[idx]
r = output_c[idx]
print("%6d output_py=%10.6f output_c=%10.6f diff=%.6f" % (idx, output[idx], output_c[idx], diff))
if max_diff > 0:
print("cnt_total=%d cnt_diff=%d max_idx=%6d output_py=%10.6f output_c=%10.6f diff=%.6f" % (
len(output), cnt_diff, max_idx, r0, r, max_diff))
else:
print("prefect match and done!")
def tofile(img, weight_path="input2"):
with open(weight_path, 'wb') as f:
img.tofile(f)
f.close()
| 33.684211
| 113
| 0.536719
| 591
| 3,840
| 3.279188
| 0.091371
| 0.144479
| 0.082559
| 0.099071
| 0.923117
| 0.923117
| 0.923117
| 0.923117
| 0.923117
| 0.923117
| 0
| 0.032059
| 0.325781
| 3,840
| 114
| 114
| 33.684211
| 0.716493
| 0
| 0
| 0.902913
| 0
| 0.019417
| 0.194271
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.048544
| false
| 0
| 0
| 0
| 0.048544
| 0.174757
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a756d2817db0c1a57fc1d041368a92ba9219d539
| 16,197
|
py
|
Python
|
ambari-agent/src/test/python/ambari_agent/TestPortAlert.py
|
zyclove/ambari
|
1032f0f54cb7b312b9a3b37570cd840f4e1e89d4
|
[
"Apache-2.0"
] | null | null | null |
ambari-agent/src/test/python/ambari_agent/TestPortAlert.py
|
zyclove/ambari
|
1032f0f54cb7b312b9a3b37570cd840f4e1e89d4
|
[
"Apache-2.0"
] | null | null | null |
ambari-agent/src/test/python/ambari_agent/TestPortAlert.py
|
zyclove/ambari
|
1032f0f54cb7b312b9a3b37570cd840f4e1e89d4
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python2
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
'''
from unittest import TestCase
from alerts.port_alert import PortAlert
from mock.mock import Mock, MagicMock, patch
from AmbariConfig import AmbariConfig
class TestPortAlert(TestCase):
def setUp(self):
self.config = AmbariConfig()
@patch("socket.socket")
@patch("time.time")
def test_collect_defaultPort(self, time, socket):
alert_meta = {
'definitionId': 1,
'name': 'alert1',
'label': 'label1',
'serviceName': 'service1',
'componentName': 'component1',
'uuid': '123',
'enabled': 'true'
}
alert_source_meta = {
'uri': 'http://192.168.0.1',
'default_port': 80
}
cluster = 'c1'
host = 'host1'
cluster_id = '0'
expected_state = 'OK'
expected_text = 'TCP OK - 0.2010 response on port 80'
time.side_effect = [123, 324, 567]
alert = PortAlert(alert_meta, alert_source_meta, self.config)
alert.set_cluster(cluster, cluster_id, host)
alert.configuration_builder = MagicMock()
def collector_side_effect(clus, data):
self.assertEquals(data['name'], alert_meta['name'])
self.assertEquals(data['state'], expected_state)
self.assertEquals(data['text'], expected_text)
self.assertEquals(data['clusterId'], cluster_id)
self.assertEquals(clus, cluster)
alert.collector = MagicMock()
alert.collector.put = Mock(side_effect=collector_side_effect)
alert.collect()
@patch("socket.socket")
@patch("time.time")
def test_collect_warning(self, time, socket):
alert_meta = {
'definitionId': 1,
'name': 'alert1',
'label': 'label1',
'serviceName': 'service1',
'componentName': 'component1',
'uuid': '123',
'enabled': 'true'
}
alert_source_meta = {
'uri': 'http://192.168.0.1:8080',
'default_port': 80
}
cluster = 'c1'
host = 'host1'
cluster_id = '0'
expected_state = 'WARNING'
expected_text = 'TCP OK - 3.1170 response on port 8080'
time.side_effect = [123, 3240, 567]
alert = PortAlert(alert_meta, alert_source_meta, self.config)
alert.set_cluster(cluster, cluster_id, host)
alert.configuration_builder = MagicMock()
def collector_side_effect(clus, data):
self.assertEquals(data['name'], alert_meta['name'])
self.assertEquals(data['state'], expected_state)
self.assertEquals(data['text'], expected_text)
self.assertEquals(data['clusterId'], cluster_id)
self.assertEquals(clus, cluster)
alert.collector = MagicMock()
alert.collector.put = Mock(side_effect=collector_side_effect)
alert.collect()
@patch("socket.socket")
@patch("time.time")
def test_collect_connectionTimeout(self, time, socket):
alert_meta = {
'definitionId': 1,
'name': 'alert1',
'label': 'label1',
'serviceName': 'service1',
'componentName': 'component1',
'uuid': '123',
'enabled': 'true'
}
alert_source_meta = {
'uri': 'http://192.168.0.1:8080',
'default_port': 80
}
cluster = 'c1'
host = 'host1'
cluster_id = '0'
expected_state = 'CRITICAL'
expected_text = 'Connection failed: Socket Timeout to 192.168.0.1:8080'
time.side_effect = [123, 5240, 567]
alert = PortAlert(alert_meta, alert_source_meta, self.config)
alert.set_cluster(cluster, cluster_id, host)
alert.configuration_builder = MagicMock()
def collector_side_effect(clus, data):
print data
self.assertEquals(data['name'], alert_meta['name'])
self.assertEquals(data['state'], expected_state)
self.assertEquals(data['text'], expected_text)
self.assertEquals(data['clusterId'], cluster_id)
self.assertEquals(clus, cluster)
alert.collector = MagicMock()
alert.collector.put = Mock(side_effect=collector_side_effect)
alert.collect()
@patch("socket.socket")
@patch("time.time")
def test_collect_noUrl(self, time, socket):
alert_meta = {
'definitionId': 1,
'name': 'alert1',
'label': 'label1',
'serviceName': 'service1',
'componentName': 'component1',
'uuid': '123',
'enabled': 'true'
}
alert_source_meta = {
'default_port': 80
}
cluster = 'c1'
host = 'host1'
cluster_id = '0'
expected_state = 'CRITICAL'
expected_text = 'Connection failed: Socket Timeout to host1:80'
time.side_effect = [123, 5240, 567]
alert = PortAlert(alert_meta, alert_source_meta, self.config)
alert.set_cluster(cluster, cluster_id, host)
alert.configuration_builder = MagicMock()
def collector_side_effect(clus, data):
self.assertEquals(data['name'], alert_meta['name'])
self.assertEquals(data['state'], expected_state)
self.assertEquals(data['text'], expected_text)
self.assertEquals(data['clusterId'], cluster_id)
self.assertEquals(clus, cluster)
alert.collector = MagicMock()
alert.collector.put = Mock(side_effect=collector_side_effect)
alert.collect()
@patch("socket.socket")
@patch("time.time")
def test_collect_exception(self, time, socket):
alert_meta = {
'definitionId': 1,
'name': 'alert1',
'label': 'label1',
'serviceName': 'service1',
'componentName': 'component1',
'uuid': '123',
'enabled': 'true'
}
alert_source_meta = {
'uri': 'http://192.168.0.1:8080',
'default_port': 80
}
cluster = 'c1'
host = 'host1'
cluster_id = '0'
expected_state = 'CRITICAL'
expected_text = 'Connection failed: exception message to 192.168.0.1:8080'
time.side_effect = [123, 345, 567]
socket.side_effect = Exception('exception message')
alert = PortAlert(alert_meta, alert_source_meta, self.config)
alert.set_cluster(cluster, cluster_id, host)
alert.configuration_builder = MagicMock()
def collector_side_effect(clus, data):
self.assertEquals(data['name'], alert_meta['name'])
self.assertEquals(data['state'], expected_state)
self.assertEquals(data['text'], expected_text)
self.assertEquals(data['clusterId'], cluster_id)
self.assertEquals(clus, cluster)
alert.collector = MagicMock()
alert.collector.put = Mock(side_effect=collector_side_effect)
alert.collect()
@patch("socket.socket")
@patch("time.time")
def test_collect_warningTimeoutChanged(self, time, socket):
alert_meta = {
'definitionId': 1,
'name': 'alert1',
'label': 'label1',
'serviceName': 'service1',
'componentName': 'component1',
'uuid': '123',
'enabled': 'true'
}
alert_source_meta = {
'uri': 'http://192.168.0.1:8080',
'default_port': 80,
'reporting': {
'warning': {
'value': 4
}
}
}
cluster = 'c1'
host = 'host1'
cluster_id = '0'
expected_state = 'OK'
expected_text = 'TCP OK - 3.1170 response on port 8080'
time.side_effect = [123, 3240, 567]
alert = PortAlert(alert_meta, alert_source_meta, self.config)
alert.set_cluster(cluster, cluster_id, host)
alert.configuration_builder = MagicMock()
def collector_side_effect(clus, data):
self.assertEquals(data['name'], alert_meta['name'])
self.assertEquals(data['state'], expected_state)
self.assertEquals(data['text'], expected_text)
self.assertEquals(data['clusterId'], cluster_id)
self.assertEquals(clus, cluster)
alert.collector = MagicMock()
alert.collector.put = Mock(side_effect=collector_side_effect)
alert.collect()
@patch("socket.socket")
@patch("time.time")
def test_collect_criticalTimeoutChanged(self, time, socket):
alert_meta = {
'definitionId': 1,
'name': 'alert1',
'label': 'label1',
'serviceName': 'service1',
'componentName': 'component1',
'uuid': '123',
'enabled': 'true'
}
alert_source_meta = {
'uri': 'http://192.168.0.1:8080',
'default_port': 80,
'reporting': {
'critical': {
'value': 3
}
}
}
cluster = 'c1'
host = 'host1'
cluster_id = '0'
expected_state = 'CRITICAL'
expected_text = 'Connection failed: Socket Timeout to 192.168.0.1:8080'
time.side_effect = [123, 3240, 567]
alert = PortAlert(alert_meta, alert_source_meta, self.config)
alert.set_cluster(cluster, cluster_id, host)
alert.configuration_builder = MagicMock()
def collector_side_effect(clus, data):
self.assertEquals(data['name'], alert_meta['name'])
self.assertEquals(data['state'], expected_state)
self.assertEquals(data['text'], expected_text)
self.assertEquals(data['clusterId'], cluster_id)
self.assertEquals(clus, cluster)
alert.collector = MagicMock()
alert.collector.put = Mock(side_effect=collector_side_effect)
alert.collect()
@patch("socket.socket")
@patch("time.time")
def test_collect_criticalTimeoutTooBig(self, time, socket):
alert_meta = {
'definitionId': 1,
'name': 'alert1',
'label': 'label1',
'serviceName': 'service1',
'componentName': 'component1',
'uuid': '123',
'enabled': 'true'
}
alert_source_meta = {
'uri': 'http://192.168.0.1:8080',
'default_port': 80,
'reporting': {
'critical': {
'value': 33
}
}
}
cluster = 'c1'
host = 'host1'
cluster_id = '0'
expected_state = 'CRITICAL'
expected_text = 'Connection failed: Socket Timeout to 192.168.0.1:8080'
time.side_effect = [120, 123, 5240, 567]
alert = PortAlert(alert_meta, alert_source_meta, self.config)
alert.set_cluster(cluster, cluster_id, host)
alert.configuration_builder = MagicMock()
def collector_side_effect(clus, data):
self.assertEquals(data['name'], alert_meta['name'])
self.assertEquals(data['state'], expected_state)
self.assertEquals(data['text'], expected_text)
self.assertEquals(data['clusterId'], cluster_id)
self.assertEquals(clus, cluster)
alert.collector = MagicMock()
alert.collector.put = Mock(side_effect=collector_side_effect)
alert.collect()
@patch("socket.socket")
@patch("time.time")
def test_collect_zookeeper(self, time, socket):
alert_meta = {
'definitionId': 1,
'name': 'zookeeper_server_process',
'label': 'label1',
'serviceName': 'service1',
'componentName': 'component1',
'uuid': '123',
'enabled': 'true'
}
alert_source_meta = {
'uri': 'http://192.168.0.1:2181',
'default_port': 80,
'parameters': [
{
'name': 'socket.command',
'display_name': 'Socket Command',
'value': 'ruok',
'description': 'test',
'type': 'STRING',
'visibility': 'HIDDEN'
},
{
'name': 'socket.command.response',
'display_name': 'Expected Response',
'value': 'imok',
'description': 'test',
'type': 'STRING',
'visibility': 'HIDDEN'
}
]
}
cluster = 'c1'
host = 'host1'
cluster_id = '0'
expected_state = 'OK'
expected_text = 'TCP OK - 0.2010 response on port 2181'
time.side_effect = [123, 324, 567]
alert = PortAlert(alert_meta, alert_source_meta, self.config)
alert.set_cluster(cluster, cluster_id, host)
alert.configuration_builder = MagicMock()
s = socket()
s.recv.return_value = "imok"
def collector_side_effect(clus, data):
self.assertEquals(data['name'], alert_meta['name'])
self.assertEquals(data['state'], expected_state)
self.assertEquals(data['text'], expected_text)
self.assertEquals(data['clusterId'], cluster_id)
self.assertEquals(clus, cluster)
alert.collector = MagicMock()
alert.collector.put = Mock(side_effect=collector_side_effect)
alert.collect()
@patch("socket.socket")
@patch("time.time")
def test_collect_zookeeper_warning(self, time, socket):
alert_meta = {
'definitionId': 1,
'name': 'zookeeper_server_process',
'label': 'label1',
'serviceName': 'service1',
'componentName': 'component1',
'uuid': '123',
'enabled': 'true',
}
alert_source_meta = {
'uri': 'http://192.168.0.1:2181',
'default_port': 2181,
'parameters': [
{
'name': 'socket.command',
'display_name': 'Socket Command',
'value': 'ruok',
'description': 'test',
'type': 'STRING',
'visibility': 'HIDDEN'
},
{
'name': 'socket.command.response',
'display_name': 'Expected Response',
'value': 'imok',
'description': 'test',
'type': 'STRING',
'visibility': 'HIDDEN'
}
]
}
cluster = 'c1'
host = 'host1'
cluster_id = '0'
expected_state = 'WARNING'
expected_text = 'TCP OK - 3.1170 response on port 2181'
time.side_effect = [123, 3240, 567]
alert = PortAlert(alert_meta, alert_source_meta, self.config)
alert.set_cluster(cluster, cluster_id, host)
alert.configuration_builder = MagicMock()
s = socket()
s.recv.return_value = "imok"
def collector_side_effect(clus, data):
self.assertEquals(data['name'], alert_meta['name'])
self.assertEquals(data['state'], expected_state)
self.assertEquals(data['text'], expected_text)
self.assertEquals(data['clusterId'], cluster_id)
self.assertEquals(clus, cluster)
alert.collector = MagicMock()
alert.collector.put = Mock(side_effect=collector_side_effect)
alert.collect()
@patch("socket.socket")
@patch("time.time")
def test_collect_zookeeper_connectionTimeout(self, time, socket):
alert_meta = {
'definitionId': 1,
'name': 'zookeeper_server_process',
'label': 'label1',
'serviceName': 'service1',
'componentName': 'component1',
'uuid': '123',
'enabled': 'true'
}
alert_source_meta = {
'uri': 'http://192.168.0.1:2181',
'default_port': 80,
'parameters': [
{
'name': 'socket.command',
'display_name': 'Socket Command',
'value': 'ruok',
'description': 'test',
'type': 'STRING',
'visibility': 'HIDDEN'
},
{
'name': 'socket.command.response',
'display_name': 'Expected Response',
'value': 'imok',
'description': 'test',
'type': 'STRING',
'visibility': 'HIDDEN'
}
]
}
cluster = 'c1'
host = 'host1'
cluster_id = '0'
expected_state = 'CRITICAL'
expected_text = 'Connection failed: Socket Timeout to 192.168.0.1:2181'
time.side_effect = [123, 5240, 567]
alert = PortAlert(alert_meta, alert_source_meta, self.config)
alert.set_cluster(cluster, cluster_id, host)
alert.configuration_builder = MagicMock()
s = socket()
s.recv.return_value = "imok"
def collector_side_effect(clus, data):
self.assertEquals(data['name'], alert_meta['name'])
self.assertEquals(data['state'], expected_state)
self.assertEquals(data['text'], expected_text)
self.assertEquals(data['clusterId'], cluster_id)
self.assertEquals(clus, cluster)
alert.collector = MagicMock()
alert.collector.put = Mock(side_effect=collector_side_effect)
alert.collect()
| 30.792776
| 78
| 0.629067
| 1,807
| 16,197
| 5.475927
| 0.10238
| 0.088934
| 0.088934
| 0.012127
| 0.899444
| 0.898636
| 0.898636
| 0.898636
| 0.897827
| 0.88853
| 0
| 0.038727
| 0.229981
| 16,197
| 525
| 79
| 30.851429
| 0.75465
| 0.00105
| 0
| 0.829322
| 0
| 0
| 0.218474
| 0.009146
| 0
| 0
| 0
| 0
| 0.12035
| 0
| null | null | 0
| 0.008753
| null | null | 0.002188
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
a78ce0cfd05bde03b331e53ccde8ce4655e0dece
| 6,658
|
py
|
Python
|
examples/woodbox.py
|
Crowbar-Sledgehammer/vmflib
|
322757fcba98e05041ee8f416c8ffe847ca1fe64
|
[
"BSD-2-Clause"
] | 20
|
2015-05-18T06:27:20.000Z
|
2022-01-04T07:10:35.000Z
|
examples/woodbox.py
|
Crowbar-Sledgehammer/vmflib
|
322757fcba98e05041ee8f416c8ffe847ca1fe64
|
[
"BSD-2-Clause"
] | null | null | null |
examples/woodbox.py
|
Crowbar-Sledgehammer/vmflib
|
322757fcba98e05041ee8f416c8ffe847ca1fe64
|
[
"BSD-2-Clause"
] | 6
|
2015-11-14T16:43:54.000Z
|
2020-02-13T02:39:58.000Z
|
#! /usr/bin/env python3
"""Example map generator: Woodbox
This script demonstrates vmflib by generating a map (consisting of a large
empty room) and writing it to "woodbox.vmf". You can open the resulting file
using the Valve Hammer Editor and compile it for use in-game.
This example is a bit convoluted, since we are manually defining every brush
and each of its sides individually. Thankfully, there is now a higher-level
abstraction (tools.Block) which can be used to more easily create 3D block
shapes like the ones shown here. See the example named "woodbox_blocks" for
a demonstration.
"""
from vmflib import *
m = vmf.ValveMap()
# Set up brushes for our walls
walls = []
for i in range(6):
walls.append(brush.Solid())
# Floor
sides = []
sides.append(brush.Side(types.Plane(
types.Vertex(-512, 512, -448),
types.Vertex(512, 512, -448),
types.Vertex(512, -512, -448))))
sides.append(brush.Side(types.Plane(
types.Vertex(-512, -512, -512),
types.Vertex(512, -512, -512),
types.Vertex(512, 512, -512))))
sides.append(brush.Side(types.Plane(
types.Vertex(-512, 512, -448),
types.Vertex(-512, -512, -448),
types.Vertex(-512, -512, -512))))
sides.append(brush.Side(types.Plane(
types.Vertex(512, 512, -512),
types.Vertex(512, -512, -512),
types.Vertex(512, -512, -448))))
sides.append(brush.Side(types.Plane(
types.Vertex(512, 512, -448),
types.Vertex(-512, 512, -448),
types.Vertex(-512, 512, -512))))
sides.append(brush.Side(types.Plane(
types.Vertex(512, -512, -512),
types.Vertex(-512, -512, -512),
types.Vertex(-512, -512, -448))))
for side in sides:
side.material = 'wood/woodwall009a'
walls[0].children.extend(sides)
# Wall 1
sides = []
sides.append(brush.Side(types.Plane(
types.Vertex(-512, -448, 512),
types.Vertex(512, -448, 512),
types.Vertex(512, -512, 512))))
sides.append(brush.Side(types.Plane(
types.Vertex(-512, -512, -512),
types.Vertex(512, -512, -512),
types.Vertex(512, -448, -512))))
sides.append(brush.Side(types.Plane(
types.Vertex(-512, -448, 512),
types.Vertex(-512, -512, 512),
types.Vertex(-512, -512, -512))))
sides.append(brush.Side(types.Plane(
types.Vertex(512, -448, -512),
types.Vertex(512, -512, -512),
types.Vertex(512, -512, 512))))
sides.append(brush.Side(types.Plane(
types.Vertex(512, -448, 512),
types.Vertex(-512, -448, 512),
types.Vertex(-512, -448, -512))))
sides.append(brush.Side(types.Plane(
types.Vertex(512, -512, -512),
types.Vertex(-512, -512, -512),
types.Vertex(-512, -512, 512))))
for side in sides:
side.material = 'wood/woodwall009a'
walls[1].children.extend(sides)
# Wall 2
sides = []
sides.append(brush.Side(types.Plane(
types.Vertex(-512, 512, 512),
types.Vertex(512, 512, 512),
types.Vertex(512, 448, 512))))
sides.append(brush.Side(types.Plane(
types.Vertex(-512, 448, -512),
types.Vertex(512, 448, -512),
types.Vertex(512, 512, -512))))
sides.append(brush.Side(types.Plane(
types.Vertex(-512, 512, 512),
types.Vertex(-512, 448, 512),
types.Vertex(-512, 448, -512))))
sides.append(brush.Side(types.Plane(
types.Vertex(512, 512, -512),
types.Vertex(512, 448, -512),
types.Vertex(512, 448, 512))))
sides.append(brush.Side(types.Plane(
types.Vertex(512, 512, 512),
types.Vertex(-512, 512, 512),
types.Vertex(-512, 512, -512))))
sides.append(brush.Side(types.Plane(
types.Vertex(512, 448, -512),
types.Vertex(-512, 448, -512),
types.Vertex(-512, 448, 512))))
for side in sides:
side.material = 'wood/woodwall009a'
walls[2].children.extend(sides)
# Wall 3
sides = []
sides.append(brush.Side(types.Plane(
types.Vertex(-512, 448, 448),
types.Vertex(-448, 448, 448),
types.Vertex(-448, -448, 448))))
sides.append(brush.Side(types.Plane(
types.Vertex(-512, -448, -448),
types.Vertex(-448, -448, -448),
types.Vertex(-448, 448, -448))))
sides.append(brush.Side(types.Plane(
types.Vertex(-512, 448, 448),
types.Vertex(-512, -448, 448),
types.Vertex(-512, -448, -448))))
sides.append(brush.Side(types.Plane(
types.Vertex(-448, 448, -448),
types.Vertex(-448, -448, -448),
types.Vertex(-448, -448, 448))))
sides.append(brush.Side(types.Plane(
types.Vertex(-448, 448, 448),
types.Vertex(-512, 448, 448),
types.Vertex(-512, 448, -448))))
sides.append(brush.Side(types.Plane(
types.Vertex(-448, -448, -448),
types.Vertex(-512, -448, -448),
types.Vertex(-512, -448, 448))))
for side in sides:
side.material = 'wood/woodwall009a'
walls[3].children.extend(sides)
# Wall 4
sides = []
sides.append(brush.Side(types.Plane(
types.Vertex(448, 448, 448),
types.Vertex(512, 448, 448),
types.Vertex(512, -448, 448))))
sides.append(brush.Side(types.Plane(
types.Vertex(448, -448, -448),
types.Vertex(512, -448, -448),
types.Vertex(512, 448, -448))))
sides.append(brush.Side(types.Plane(
types.Vertex(448, 448, 448),
types.Vertex(448, -448, 448),
types.Vertex(448, -448, -448))))
sides.append(brush.Side(types.Plane(
types.Vertex(512, 448, -448),
types.Vertex(512, -448, -448),
types.Vertex(512, -448, 448))))
sides.append(brush.Side(types.Plane(
types.Vertex(512, 448, 448),
types.Vertex(448, 448, 448),
types.Vertex(448, 448, -448))))
sides.append(brush.Side(types.Plane(
types.Vertex(512, -448, -448),
types.Vertex(448, -448, -448),
types.Vertex(448, -448, 448))))
for side in sides:
side.material = 'wood/woodwall009a'
walls[4].children.extend(sides)
# Wall 5
sides = []
sides.append(brush.Side(types.Plane(
types.Vertex(-512, 512, 512),
types.Vertex(512, 512, 512),
types.Vertex(512, -512, 512))))
sides.append(brush.Side(types.Plane(
types.Vertex(-512, -512, 448),
types.Vertex(512, -512, 448),
types.Vertex(512, 512, 448))))
sides.append(brush.Side(types.Plane(
types.Vertex(-512, 512, 512),
types.Vertex(-512, -512, 512),
types.Vertex(-512, -512, 448))))
sides.append(brush.Side(types.Plane(
types.Vertex(512, 512, 448),
types.Vertex(512, -512, 448),
types.Vertex(512, -512, 512))))
sides.append(brush.Side(types.Plane(
types.Vertex(512, 512, 512),
types.Vertex(-512, 512, 512),
types.Vertex(-512, 512, 448))))
sides.append(brush.Side(types.Plane(
types.Vertex(512, -512, 448),
types.Vertex(-512, -512, 448),
types.Vertex(-512, -512, 512))))
for side in sides:
side.material = 'wood/woodwall009a'
walls[5].children.extend(sides)
# Add walls to world geometry
m.world.children.extend(walls)
# Write the map to a file
m.write_vmf('woodbox.vmf')
| 31.704762
| 77
| 0.653049
| 994
| 6,658
| 4.372233
| 0.115694
| 0.273355
| 0.289922
| 0.211229
| 0.817303
| 0.817303
| 0.817303
| 0.817303
| 0.817303
| 0.816153
| 0
| 0.17903
| 0.157705
| 6,658
| 209
| 78
| 31.856459
| 0.595934
| 0.107089
| 0
| 0.788571
| 0
| 0
| 0.019062
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.005714
| 0
| 0.005714
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
a7a5c6540662cde347ddf22dd4e8fb5ecfece5d4
| 71,406
|
py
|
Python
|
tests/v2_validation/cattlevalidationtest/core/test_rancher_compose_inservice_upgrade.py
|
rancherio/validation-tests
|
795733982209edc801d5db624a3fb55043987ed0
|
[
"Apache-2.0"
] | 7
|
2015-11-18T17:43:08.000Z
|
2021-07-14T09:48:18.000Z
|
tests/v2_validation/cattlevalidationtest/core/test_rancher_compose_inservice_upgrade.py
|
rancher/validation-tests
|
795733982209edc801d5db624a3fb55043987ed0
|
[
"Apache-2.0"
] | 175
|
2015-07-09T18:41:24.000Z
|
2021-06-10T21:23:27.000Z
|
tests/v2_validation/cattlevalidationtest/core/test_rancher_compose_inservice_upgrade.py
|
rancher/validation-tests
|
795733982209edc801d5db624a3fb55043987ed0
|
[
"Apache-2.0"
] | 25
|
2015-08-08T04:54:24.000Z
|
2021-05-25T21:10:37.000Z
|
from common_fixtures import * # NOQA
from test_services_volumemount import validate_volume_mount
TEST_SERVICE_OPT_IMAGE = 'ibuildthecloud/helloworld'
TEST_SERVICE_OPT_IMAGE_LATEST = TEST_SERVICE_OPT_IMAGE + ':latest'
TEST_SERVICE_OPT_IMAGE_UUID = 'docker:' + TEST_SERVICE_OPT_IMAGE_LATEST
LB_IMAGE_UUID = "docker:sangeetha/testlbsd:latest"
INSERVICE_SUBDIR = os.path.join(os.path.dirname(os.path.realpath(__file__)),
'resources/inservicedc')
logger = logging.getLogger(__name__)
if_compose_data_files = pytest.mark.skipif(
not os.path.isdir(INSERVICE_SUBDIR),
reason='Docker compose files directory location not set/ does not Exist')
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_confirm(client,
rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice1_1.yml"
rc_file = "rc_inservice1_1.yml"
dc_file_upgrade = "dc_inservice1_2.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service(client, service, {"test1": "value1"}, 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
check_config_for_service(client, service, {"test1": "value1"}, 0)
check_config_for_service(client, service, {"test1": "value2"}, 1)
# Check for default settings
assert service.upgrade.inServiceStrategy.batchSize == 2
assert service.upgrade.inServiceStrategy.intervalMillis == 1000
assert service.upgrade.inServiceStrategy.startFirst is False
# Confirm upgrade
service = confirm_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service(client, service, {"test1": "value2"}, 1)
containers = get_service_container_managed_list(client, service, 0)
assert len(containers) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_rollback(client,
rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice1_1.yml"
rc_file = "rc_inservice1_1.yml"
dc_file_upgrade = "dc_inservice1_2.yml"
upgrade_option = "--batch-size 3 --interval 500"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service(client, service, {"test1": "value1"}, 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade,
upgrade_option=upgrade_option)
check_config_for_service(client, service, {"test1": "value1"}, 0)
check_config_for_service(client, service, {"test1": "value2"}, 1)
assert service.upgrade.inServiceStrategy.batchSize == 3
assert service.upgrade.inServiceStrategy.intervalMillis == 500
assert service.upgrade.inServiceStrategy.startFirst is False
# Rollback upgrade
service = rollback_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service(client, service, {"test1": "value1"}, 1)
containers = get_service_container_managed_list(client, service, 0)
assert len(containers) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_delete(client,
rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice1_1.yml"
rc_file = "rc_inservice1_1.yml"
dc_file_upgrade = "dc_inservice1_2.yml"
upgrade_option = "--batch-size 1 --interval 750"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service(client, service, {"test1": "value1"}, 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade,
upgrade_option=upgrade_option)
check_config_for_service(client, service, {"test1": "value1"}, 0)
check_config_for_service(client, service, {"test1": "value2"}, 1)
assert service.upgrade.inServiceStrategy.batchSize == 1
assert service.upgrade.inServiceStrategy.intervalMillis == 750
assert service.upgrade.inServiceStrategy.startFirst is False
# Delete stack
launch_rancher_cli_from_file(
client, INSERVICE_SUBDIR, stack_name,
"rm --type service " + stack.name + "/" + service.name, service.id)
wait_for_condition(
client, service,
lambda x: x.state == "removed",
lambda x: 'State is: ' + x.state)
service = client.reload(service)
assert service.state == "removed"
containers = get_service_container_managed_list(client, service)
assert len(containers) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_sk_only_primary(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice2_1.yml"
rc_file = "rc_inservice2_1.yml"
dc_file_upgrade = "dc_inservice2_2.yml"
upgrade_option = "--batch-size 10 --interval 2000"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
sk1_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1", 1)
sk2_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2", 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade,
upgrade_option=upgrade_option)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 0)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value2"}, 1)
check_container_state(client, sk1_containers, "running")
check_container_state(client, sk2_containers, "running")
assert service.upgrade["inServiceStrategy"]["batchSize"] == 10
assert service.upgrade["inServiceStrategy"]["intervalMillis"] == 2000
assert service.upgrade["inServiceStrategy"]["startFirst"] is False
# Confirm upgrade
service = confirm_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value2"}, 1)
check_container_state(client, sk1_containers, "running")
check_container_state(client, sk2_containers, "running")
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_sk_only_primary_rollback(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice2_1.yml"
rc_file = "rc_inservice2_1.yml"
dc_file_upgrade = "dc_inservice2_2.yml"
upgrade_option = "--batch-size 0 --interval 2000"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
sk1_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1", 1)
sk2_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2", 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(
client, stack_name, service, dc_file_upgrade,
upgrade_option=upgrade_option)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 0)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value2"}, 1)
check_container_state(client, sk1_containers, "running")
check_container_state(client, sk2_containers, "running")
assert service.upgrade["inServiceStrategy"]["batchSize"] == 1
assert service.upgrade["inServiceStrategy"]["intervalMillis"] == 2000
assert service.upgrade["inServiceStrategy"]["startFirst"] is False
# Rollback
service = rollback_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
check_container_state(client, sk1_containers, "running")
check_container_state(client, sk2_containers, "running")
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_sk_only_sidekick(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice2_1.yml"
rc_file = "rc_inservice2_1.yml"
dc_file_upgrade = "dc_inservice2_3.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
primary_containers = get_service_containers_with_name(
client, service, stack_name+FIELD_SEPARATOR+"test1", 1)
sk2_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2", 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 0)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
check_container_state(client, primary_containers, "running")
check_container_state(client, sk2_containers, "running")
# Confirm upgrade
service = confirm_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
check_container_state(client, primary_containers, "running")
check_container_state(client, sk2_containers, "running")
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_sk_only_sidekick_rollback(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice2_1.yml"
rc_file = "rc_inservice2_1.yml"
dc_file_upgrade = "dc_inservice2_3.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
primary_containers = get_service_containers_with_name(
client, service, stack_name+FIELD_SEPARATOR+"test1", 1)
sk2_containers = get_service_containers_with_name(
client,
service, stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2", 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 0)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
check_container_state(client, primary_containers, "running")
check_container_state(client, sk2_containers, "running")
# Rollback upgrade
service = rollback_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_container_state(client, primary_containers, "running")
check_container_state(client, sk2_containers, "running")
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_sk_both_sidekicks(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice2_1.yml"
rc_file = "rc_inservice2_1.yml"
dc_file_upgrade = "dc_inservice2_4.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 1, primary=False)
primary_containers = get_service_containers_with_name(
client, service, stack_name+FIELD_SEPARATOR+"test1", 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 0)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 0)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value2"}, 1, primary=False)
check_container_state(client, primary_containers, "running")
# Confirm upgrade
service = confirm_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value2"}, 1, primary=False)
check_container_state(client, primary_containers, "running")
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_sk_both_sidekicks_rollback(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice2_1.yml"
rc_file = "rc_inservice2_1.yml"
dc_file_upgrade = "dc_inservice2_4.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 1, primary=False)
primary_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1", 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 0)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 0)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value2"}, 1, primary=False)
check_container_state(client, primary_containers, "running")
# Rollback upgrade
service = rollback_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 1, primary=False)
check_container_state(client, primary_containers, "running")
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_sk_all(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice2_1.yml"
rc_file = "rc_inservice2_1.yml"
dc_file_upgrade = "dc_inservice2_5.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 1, primary=False)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value2"}, 1)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 0)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 0, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value2"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 0, primary=False)
# Confirm upgrade
service = confirm_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value2"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value2"}, 1, primary=False)
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_sk_all_rollback(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice2_1.yml"
rc_file = "rc_inservice2_1.yml"
dc_file_upgrade = "dc_inservice2_5.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 1, primary=False)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value2"}, 1)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 0)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 0, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value2"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 0, primary=False)
# Rollback upgrade
service = rollback_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 1, primary=False)
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_volume_mount_only_primary(
client, rancher_cli_container, socat_containers):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice3_1.yml"
rc_file = "rc_inservice3_1.yml"
dc_file_upgrade = "dc_inservice3_2.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
sk1_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1", 1)
sk2_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2", 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 0)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value2"}, 1)
check_container_state(client, sk1_containers, "running")
check_container_state(client, sk2_containers, "running")
# Confirm upgrade
service = confirm_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value2"}, 1)
check_container_state(client, sk1_containers, "running")
check_container_state(client, sk2_containers, "running")
validate_volume_mount(
client, service,
stack_name+FIELD_SEPARATOR+"test1",
[stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1"])
validate_volume_mount(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
[stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2"])
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_volume_mount_only_primary_rollback(
client, rancher_cli_container, socat_containers):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice3_1.yml"
rc_file = "rc_inservice3_1.yml"
dc_file_upgrade = "dc_inservice3_2.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
sk1_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1", 1)
sk2_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2", 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 0)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value2"}, 1)
check_container_state(client, sk1_containers, "running")
check_container_state(client, sk2_containers, "running")
# Rollback upgrade
service = rollback_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
check_container_state(client, sk1_containers, "running")
check_container_state(client, sk2_containers, "running")
validate_volume_mount(
client, service,
stack_name+FIELD_SEPARATOR+"test1",
[stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1"])
validate_volume_mount(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
[stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2"])
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_volume_mount_sidekick1(
client, rancher_cli_container, socat_containers):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice3_1.yml"
rc_file = "rc_inservice3_1.yml"
dc_file_upgrade = "dc_inservice3_3.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
primary_containers = get_service_containers_with_name(
client, service, stack_name+FIELD_SEPARATOR+"test1", 1)
sk2_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2", 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 0)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 0)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
check_container_state(client, primary_containers, "stopped")
check_container_state(client, sk2_containers, "running")
# Confirm upgrade
service = confirm_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
check_container_state(client, sk2_containers, "running")
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
validate_volume_mount(
client, service, stack_name+FIELD_SEPARATOR+"test1",
[stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1"])
validate_volume_mount(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
[stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2"])
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_volume_mount_sidekick1_rollback(
client, rancher_cli_container, socat_containers):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice3_1.yml"
rc_file = "rc_inservice3_1.yml"
dc_file_upgrade = "dc_inservice3_3.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
primary_containers = get_service_containers_with_name(
client, service, stack_name+FIELD_SEPARATOR+"test1", 1)
sk2_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2", 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 0)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 0)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
check_container_state(client, primary_containers, "stopped")
check_container_state(client, sk2_containers, "running")
# Rollback upgrade
service = rollback_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_container_state(client, sk2_containers, "running")
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
validate_volume_mount(
client, service,
stack_name+FIELD_SEPARATOR+"test1",
[stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1"])
validate_volume_mount(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
[stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2"])
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_volume_mount_sidekick2(
client, rancher_cli_container, socat_containers):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice3_1.yml"
rc_file = "rc_inservice3_1.yml"
dc_file_upgrade = "dc_inservice3_4.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 1, primary=False)
primary_containers = get_service_containers_with_name(
client, service, stack_name+FIELD_SEPARATOR+"test1", 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 0)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 0)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 0)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value2"}, 1, primary=False)
check_container_state(client, primary_containers, "stopped")
# Confirm upgrade
service = confirm_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value2"}, 1, primary=False)
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
validate_volume_mount(
client, service, stack_name+FIELD_SEPARATOR+"test1",
[stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1"])
validate_volume_mount(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
[stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2"])
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_volume_mount_sidekick2_rollback(
client, rancher_cli_container, socat_containers):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice3_1.yml"
rc_file = "rc_inservice3_1.yml"
dc_file_upgrade = "dc_inservice3_4.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 1, primary=False)
primary_containers = get_service_containers_with_name(
client, service, stack_name+FIELD_SEPARATOR+"test1", 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 0)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 0)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 0)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value2"}, 1, primary=False)
check_container_state(client, primary_containers, "stopped")
# Rollback upgrade
service = rollback_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 1, primary=False)
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
validate_volume_mount(
client, service,
stack_name+FIELD_SEPARATOR+"test1",
[stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1"])
validate_volume_mount(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
[stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2"])
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_confirm_retainip(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice1_retainip_1.yml"
rc_file = "rc_inservice1_retainip_1.yml"
dc_file_upgrade = "dc_inservice1_retainip_2.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
assert service.retainIp
check_config_for_service(client, service, {"test1": "value1"}, 1)
containerips_before_upgrade = {}
for i in range(1, 6):
container_name = get_container_name(stack, service, str(i))
containers = client.list_container(name=container_name,
removed_null=True).data
assert len(containers) == 1
containerips_before_upgrade[container_name+"ip"] = \
containers[0].primaryIpAddress
containerips_before_upgrade[container_name+"id"] = \
containers[0].externalId
check_config_for_service(client, service, {"test1": "value1"}, 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
assert service.retainIp
check_config_for_service(client, service, {"test1": "value1"}, 0)
check_config_for_service(client, service, {"test1": "value2"}, 1)
# Check for default settings
assert service.upgrade.inServiceStrategy.batchSize == 2
assert service.upgrade.inServiceStrategy.intervalMillis == 1000
assert service.upgrade.inServiceStrategy.startFirst is False
# Confirm upgrade
service = confirm_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
assert service.retainIp
check_config_for_service(client, service, {"test1": "value2"}, 1)
containers = get_service_container_managed_list(client, service, 0)
assert len(containers) == 0
# Confirm Ips of the new containers were retained after upgrade
for i in range(1, 6):
container_name = get_container_name(stack, service, str(i))
containers = client.list_container(name=container_name,
removed_null=True).data
assert len(containers) == 1
assert containerips_before_upgrade[container_name+"ip"] \
== containers[0].primaryIpAddress
assert containerips_before_upgrade[container_name+"id"] \
!= containers[0].externalId
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_rollback_retainip(
client, rancher_cli_container):
# Create an stack using up
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice1_retainip_1.yml"
rc_file = "rc_inservice1_retainip_1.yml"
dc_file_upgrade = "dc_inservice1_retainip_2.yml"
upgrade_option = "--batch-size 3 --interval 500"
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
assert service.retainIp
check_config_for_service(client, service, {"test1": "value1"}, 1)
containerips_before_upgrade = {}
for i in range(1, 6):
container_name = get_container_name(stack, service, str(i))
containers = client.list_container(name=container_name,
removed_null=True).data
assert len(containers) == 1
containerips_before_upgrade[container_name+"ip"] = \
containers[0].primaryIpAddress
containerips_before_upgrade[container_name+"id"] = \
containers[0].externalId
check_config_for_service(client, service, {"test1": "value1"}, 1)
containerips_before_upgrade = {}
for i in range(1, 6):
container_name = get_container_name(stack, service, str(i))
containers = client.list_container(name=container_name,
removed_null=True).data
assert len(containers) == 1
containerips_before_upgrade[container_name+"ip"] = \
containers[0].primaryIpAddress
containerips_before_upgrade[container_name+"id"] = \
containers[0].externalId
check_config_for_service(client, service, {"test1": "value1"}, 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade,
upgrade_option=upgrade_option)
assert service.retainIp
check_config_for_service(client, service, {"test1": "value1"}, 0)
check_config_for_service(client, service, {"test1": "value2"}, 1)
assert service.upgrade.inServiceStrategy.batchSize == 3
assert service.upgrade.inServiceStrategy.intervalMillis == 500
assert service.upgrade.inServiceStrategy.startFirst is False
# Rollback upgrade
service = rollback_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
assert service.retainIp
check_config_for_service(client, service, {"test1": "value1"}, 1)
containers = get_service_container_managed_list(client, service, 0)
assert len(containers) == 0
# Confirm Ips of the containers after rollback were retained after upgrade
for i in range(1, 6):
container_name = get_container_name(stack, service, str(i))
containers = client.list_container(name=container_name,
removed_null=True).data
assert len(containers) == 1
assert containerips_before_upgrade[container_name+"ip"] \
== containers[0].primaryIpAddress
assert containerips_before_upgrade[container_name+"id"] \
== containers[0].externalId
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_set_retainip_during_upgrade(
client, rancher_cli_container):
# Create an stack using up
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice1_1.yml"
rc_file = "rc_inservice1_1.yml"
dc_file_upgrade = "dc_inservice2_retainip_2.yml"
rc_file_upgrade = "rc_inservice2_retainip_2.yml"
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
assert service.retainIp is None
check_config_for_service(client, service, {"test1": "value1"}, 1)
containerips_before_upgrade = {}
for i in range(1, 3):
container_name = get_container_name(stack, service, str(i))
containers = client.list_container(name=container_name,
removed_null=True).data
assert len(containers) == 1
containerips_before_upgrade[container_name+"ip"] = \
containers[0].primaryIpAddress
containerips_before_upgrade[container_name+"id"] = \
containers[0].externalId
check_config_for_service(client, service, {"test1": "value1"}, 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service,
dc_file_upgrade, rc_file_upgrade)
assert service.retainIp
check_config_for_service(client, service, {"test1": "value1"}, 0)
check_config_for_service(client, service, {"test1": "value2"}, 1)
# Check for default settings
assert service.upgrade.inServiceStrategy.batchSize == 2
assert service.upgrade.inServiceStrategy.intervalMillis == 1000
assert service.upgrade.inServiceStrategy.startFirst is False
# Confirm upgrade
service = confirm_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
assert service.retainIp
check_config_for_service(client, service, {"test1": "value2"}, 1)
containers = get_service_container_managed_list(client, service, 0)
assert len(containers) == 0
# Confirm Ips of the new containers were retained after upgrade
for i in range(1, 3):
container_name = get_container_name(stack, service, str(i))
containers = client.list_container(name=container_name,
removed_null=True).data
assert len(containers) == 1
assert containerips_before_upgrade[container_name+"ip"] \
== containers[0].primaryIpAddress
assert containerips_before_upgrade[container_name+"id"] \
!= containers[0].externalId
delete_all(client, [stack])
@if_ontag
@if_compose_data_files
# known issue 5476
def test_rancher_compose_inservice_upgrade_retainip_during_upgrade_rollback(
client, rancher_cli_container):
# Create an stack using up
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice1_1.yml"
rc_file = "rc_inservice1_1.yml"
dc_file_upgrade = "dc_inservice2_retainip_2.yml"
rc_file_upgrade = "rc_inservice2_retainip_2.yml"
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
assert service.retainIp is None
check_config_for_service(client, service, {"test1": "value1"}, 1)
containerips_before_upgrade = {}
for i in range(1, 3):
container_name = get_container_name(stack, service, str(i))
containers = client.list_container(name=container_name,
removed_null=True).data
assert len(containers) == 1
containerips_before_upgrade[container_name+"ip"] = \
containers[0].primaryIpAddress
containerips_before_upgrade[container_name+"id"] = \
containers[0].externalId
check_config_for_service(client, service, {"test1": "value1"}, 1)
containerips_before_upgrade = {}
for i in range(1, 3):
container_name = get_container_name(stack, service, str(i))
containers = client.list_container(name=container_name,
removed_null=True).data
assert len(containers) == 1
containerips_before_upgrade[container_name+"ip"] = \
containers[0].primaryIpAddress
containerips_before_upgrade[container_name+"id"] = \
containers[0].externalId
check_config_for_service(client, service, {"test1": "value1"}, 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service,
dc_file_upgrade, rc_file_upgrade)
assert service.retainIp
check_config_for_service(client, service, {"test1": "value1"}, 0)
check_config_for_service(client, service, {"test1": "value2"}, 1)
# Rollback upgrade
service = rollback_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
assert service.retainIp is None
check_config_for_service(client, service, {"test1": "value1"}, 1)
containers = get_service_container_managed_list(client, service, 0)
assert len(containers) == 0
# Confirm Ips of the containers after rollback were retained after upgrade
for i in range(1, 3):
container_name = get_container_name(stack, service, str(i))
containers = client.list_container(name=container_name,
removed_null=True).data
assert len(containers) == 1
assert containerips_before_upgrade[container_name+"ip"] \
== containers[0].primaryIpAddress
assert containerips_before_upgrade[container_name+"id"] \
== containers[0].externalId
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_remove_sk(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice2_1.yml"
rc_file = "rc_inservice2_1.yml"
dc_file_upgrade = "dc_inservice2_rmsk.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
assert len(service.secondaryLaunchConfigs) == 2
assert check_for_sidekick_name_in_service(service, "sk1")
assert check_for_sidekick_name_in_service(service, "sk2")
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
assert len(service.secondaryLaunchConfigs) == 1
assert check_for_sidekick_name_in_service(service, "sk1")
assert not check_for_sidekick_name_in_service(service, "sk2")
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 0)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value2"}, 1)
# Confirm upgrade
service = confirm_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
assert len(service.secondaryLaunchConfigs) == 1
assert check_for_sidekick_name_in_service(service, "sk1")
assert not check_for_sidekick_name_in_service(service, "sk2")
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value2"}, 1)
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
delete_all(client, [stack])
@if_ontag
@if_compose_data_files
# Known issue #6380
def test_rancher_compose_inservice_upgrade_remove_sk_rollback(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice2_1.yml"
rc_file = "rc_inservice2_1.yml"
dc_file_upgrade = "dc_inservice2_rmsk.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
assert len(service.secondaryLaunchConfigs) == 2
assert check_for_sidekick_name_in_service(service, "sk1")
assert check_for_sidekick_name_in_service(service, "sk2")
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
sk1_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1", 1)
sk2_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2", 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
assert len(service.secondaryLaunchConfigs) == 1
assert check_for_sidekick_name_in_service(service, "sk1")
assert not check_for_sidekick_name_in_service(service, "sk2")
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 0)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value2"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 0, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
# Rollback upgrade
service = rollback_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
assert len(service.secondaryLaunchConfigs) == 2
assert check_for_sidekick_name_in_service(service, "sk1")
assert check_for_sidekick_name_in_service(service, "sk2")
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_container_state(client, sk1_containers, "running")
check_container_state(client, sk2_containers, "running")
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_add_sk(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice2_1.yml"
rc_file = "rc_inservice2_1.yml"
dc_file_upgrade = "dc_inservice2_addsk.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
assert len(service.secondaryLaunchConfigs) == 2
assert check_for_sidekick_name_in_service(service, "sk1")
assert check_for_sidekick_name_in_service(service, "sk2")
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
assert len(service.secondaryLaunchConfigs) == 3
assert check_for_sidekick_name_in_service(service, "sk1")
assert check_for_sidekick_name_in_service(service, "sk2")
assert check_for_sidekick_name_in_service(service, "sk3")
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 0)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value2"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 0, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 0, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value2"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk3",
{"testsk3": "value1"}, 1, primary=False)
# Confirm upgrade
service = confirm_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
assert len(service.secondaryLaunchConfigs) == 3
assert check_for_sidekick_name_in_service(service, "sk1")
assert check_for_sidekick_name_in_service(service, "sk2")
assert check_for_sidekick_name_in_service(service, "sk3")
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value2"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value2"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk3",
{"testsk3": "value1"}, 1, primary=False)
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_inservice_upgrade_add_sk_rollback(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inservice2_1.yml"
rc_file = "rc_inservice2_1.yml"
dc_file_upgrade = "dc_inservice2_addsk.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
assert len(service.secondaryLaunchConfigs) == 2
assert check_for_sidekick_name_in_service(service, "sk1")
assert check_for_sidekick_name_in_service(service, "sk2")
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
sk1_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1", 1)
sk2_containers = get_service_containers_with_name(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2", 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
assert len(service.secondaryLaunchConfigs) == 3
assert check_for_sidekick_name_in_service(service, "sk1")
assert check_for_sidekick_name_in_service(service, "sk2")
assert check_for_sidekick_name_in_service(service, "sk3")
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 0)
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value2"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 0, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value2"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 0, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value2"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk3",
{"testsk3": "value1"}, 1, primary=False)
# Rollback upgrade
service = rollback_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
assert len(service.secondaryLaunchConfigs) == 2
assert check_for_sidekick_name_in_service(service, "sk1")
assert check_for_sidekick_name_in_service(service, "sk2")
assert not check_for_sidekick_name_in_service(service, "sk3")
check_config_for_service_sidekick(
client, service, stack_name+FIELD_SEPARATOR+"test1",
{"test1": "value1"}, 1)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk1",
{"testsk1": "value1"}, 1, primary=False)
check_config_for_service_sidekick(
client, service,
stack_name+FIELD_SEPARATOR+"test1"+FIELD_SEPARATOR+"sk2",
{"testsk2": "value1"}, 1, primary=False)
check_container_state(client, sk1_containers, "running")
check_container_state(client, sk2_containers, "running")
container_list = get_service_container_managed_list(
client, service, managed=0)
assert len(container_list) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_upgrade_with_ports_confirm(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inserviceport.yml"
rc_file = "rc_inserviceport.yml"
dc_file_upgrade = "dc_inserviceport_upg.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service(client, service, {"test1": "value1"}, 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
check_config_for_service(client, service, {"test1": "value1"}, 0)
check_config_for_service(client, service, {"test1": "value2"}, 1)
# Confirm upgrade
service = confirm_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service(client, service, {"test1": "value2"}, 1)
containers = get_service_container_managed_list(client, service, 0)
assert len(containers) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_upgrade_with_ports_rollback(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inserviceport.yml"
rc_file = "rc_inserviceport.yml"
dc_file_upgrade = "dc_inserviceport_forrollback_upg.yml"
upgrade_option = "--batch-size 3 --interval 500"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file, rc_file)
check_config_for_service(client, service, {"test1": "value1"}, 1)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service,
dc_file_upgrade, upgrade_option=upgrade_option)
check_config_for_service(client, service, {"test1": "value1"}, 0)
check_config_for_service(client, service, {"test1": "value2"}, 1)
assert service.upgrade.inServiceStrategy.batchSize == 3
assert service.upgrade.inServiceStrategy.intervalMillis == 500
assert service.upgrade.inServiceStrategy.startFirst is False
# Rollback upgrade
service = rollback_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service(client, service, {"test1": "value1"}, 1)
containers = get_service_container_managed_list(client, service, 0)
assert len(containers) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_upgrade_global_with_ports_confirm(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inserviceport_g.yml"
dc_file_upgrade = "dc_inserviceport_g_upg.yml"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file)
check_config_for_service(client, service, {"test1": "value1"}, 1,
is_global=True)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service, dc_file_upgrade)
check_config_for_service(client, service, {"test1": "value1"}, 0,
is_global=True)
check_config_for_service(client, service, {"test1": "value2"}, 1,
is_global=True)
# Confirm upgrade
service = confirm_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service(client, service, {"test1": "value2"}, 1,
is_global=True)
containers = get_service_container_managed_list(client, service, 0)
assert len(containers) == 0
delete_all(client, [stack])
@if_compose_data_files
def test_rancher_compose_upgrade_global_with_ports_rollback(
client, rancher_cli_container):
stack_name = random_str().replace("-", "")
dc_file = "dc_inserviceport_g.yml"
dc_file_upgrade = "dc_inserviceport_g_upg.yml"
upgrade_option = "--batch-size 3 --interval 500"
# Create an stack using up
stack, service = create_stack_using_rancher_cli(
client, stack_name, "test1", INSERVICE_SUBDIR, dc_file)
check_config_for_service(client, service, {"test1": "value1"}, 1,
is_global=True)
# Upgrade stack using up --upgrade
service = upgrade_stack(client, stack_name, service,
dc_file_upgrade, upgrade_option=upgrade_option)
check_config_for_service(client, service, {"test1": "value1"}, 0,
is_global=True)
check_config_for_service(client, service, {"test1": "value2"}, 1,
is_global=True)
# Rollback upgrade
service = rollback_upgrade_stack(
client, stack_name, service, dc_file_upgrade)
check_config_for_service(client, service, {"test1": "value1"}, 1,
is_global=True)
containers = get_service_container_managed_list(client, service, 0)
assert len(containers) == 0
delete_all(client, [stack])
def check_config_for_service_sidekick(client, service, service_name,
labels, managed, primary=True):
containers = get_service_containers_with_name(
client, service, service_name, managed)
assert len(containers) == service.scale
for con in containers:
for key in labels.keys():
assert con.labels.get(key) == labels.get(key)
if managed == 1:
assert con.state == "running"
else:
assert con.state == "stopped"
print(service)
if managed:
for key in labels.keys():
if primary:
service_labels = service.launchConfig.labels
else:
sk_name = service_name.split("-")[-1]
print(sk_name)
sl_configs = service.secondaryLaunchConfigs
for sl_config in sl_configs:
if sl_config.name == sk_name:
service_labels = sl_config.labels
assert service_labels.get(key) == labels.get(key)
def check_container_state(client, containers, state):
for con in containers:
con = client.reload(con)
assert con.state == state
def check_for_sidekick_name_in_service(service, sidekick_name):
found = False
for lcs in service.secondaryLaunchConfigs:
if sidekick_name == lcs.name:
found = True
break
return found
def upgrade_stack(client, stack_name, service, docker_compose,
rancher_compose=None, upgrade_option=None):
upgrade_cmd = "up --upgrade -d "
if upgrade_option is not None:
upgrade_cmd += upgrade_option
launch_rancher_cli_from_file(
client, INSERVICE_SUBDIR, stack_name,
upgrade_cmd, "Upgrading",
docker_compose, rancher_compose)
service = client.reload(service)
assert service.state == "upgraded"
return service
def confirm_upgrade_stack(client, stack_name, service, docker_compose):
launch_rancher_cli_from_file(
client, INSERVICE_SUBDIR, stack_name,
"up --confirm-upgrade -d", "Started",
docker_compose)
service = client.reload(service)
assert service.state == "active"
return service
def rollback_upgrade_stack(client, stack_name, service, docker_compose):
launch_rancher_cli_from_file(
client, INSERVICE_SUBDIR, stack_name,
"up --rollback -d", "Started",
docker_compose)
service = client.reload(service)
assert service.state == "active"
return service
| 39.472637
| 78
| 0.69721
| 8,514
| 71,406
| 5.471106
| 0.023373
| 0.058543
| 0.0547
| 0.082051
| 0.969859
| 0.968206
| 0.966059
| 0.961959
| 0.956399
| 0.954123
| 0
| 0.023019
| 0.199381
| 71,406
| 1,808
| 79
| 39.494469
| 0.791775
| 0.035543
| 0
| 0.927002
| 0
| 0
| 0.094069
| 0.008783
| 0
| 0
| 0
| 0
| 0.094968
| 1
| 0.024805
| false
| 0
| 0.001417
| 0
| 0.029057
| 0.001417
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ac1342c469901f295ffa5f838bfb46684571e9e0
| 88,798
|
py
|
Python
|
trustlab/lab/scenarios/scale_obs_500_scenario.py
|
N0omB/aTLAS
|
2277d6bf312b6de9f0da816bdfe28f9c40110211
|
[
"MIT"
] | 1
|
2020-11-12T16:17:12.000Z
|
2020-11-12T16:17:12.000Z
|
trustlab/lab/scenarios/scale_obs_500_scenario.py
|
N0omB/aTLAS
|
2277d6bf312b6de9f0da816bdfe28f9c40110211
|
[
"MIT"
] | null | null | null |
trustlab/lab/scenarios/scale_obs_500_scenario.py
|
N0omB/aTLAS
|
2277d6bf312b6de9f0da816bdfe28f9c40110211
|
[
"MIT"
] | null | null | null |
NAME = 'Scale Obs 500'
AGENTS = ['A', 'B', 'C', 'D']
OBSERVATIONS = [{'author': 'A',
'before': [],
'message': 'Redecentralization of the Web',
'observation_id': 0,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [0],
'message': 'Redecentralization of the Web',
'observation_id': 1,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [1],
'message': 'Redecentralization of the Web',
'observation_id': 2,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [2],
'message': 'Redecentralization of the Web',
'observation_id': 3,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [3],
'message': 'Redecentralization of the Web',
'observation_id': 4,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [4],
'message': 'Redecentralization of the Web',
'observation_id': 5,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [5],
'message': 'Redecentralization of the Web',
'observation_id': 6,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [6],
'message': 'Redecentralization of the Web',
'observation_id': 7,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [7],
'message': 'Redecentralization of the Web',
'observation_id': 8,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [8],
'message': 'Redecentralization of the Web',
'observation_id': 9,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [9],
'message': 'Redecentralization of the Web',
'observation_id': 10,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [10],
'message': 'Redecentralization of the Web',
'observation_id': 11,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [11],
'message': 'Redecentralization of the Web',
'observation_id': 12,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [12],
'message': 'Redecentralization of the Web',
'observation_id': 13,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [13],
'message': 'Redecentralization of the Web',
'observation_id': 14,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [14],
'message': 'Redecentralization of the Web',
'observation_id': 15,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [15],
'message': 'Redecentralization of the Web',
'observation_id': 16,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [16],
'message': 'Redecentralization of the Web',
'observation_id': 17,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [17],
'message': 'Redecentralization of the Web',
'observation_id': 18,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [18],
'message': 'Redecentralization of the Web',
'observation_id': 19,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [19],
'message': 'Redecentralization of the Web',
'observation_id': 20,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [20],
'message': 'Redecentralization of the Web',
'observation_id': 21,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [21],
'message': 'Redecentralization of the Web',
'observation_id': 22,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [22],
'message': 'Redecentralization of the Web',
'observation_id': 23,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [23],
'message': 'Redecentralization of the Web',
'observation_id': 24,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [24],
'message': 'Redecentralization of the Web',
'observation_id': 25,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [25],
'message': 'Redecentralization of the Web',
'observation_id': 26,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [26],
'message': 'Redecentralization of the Web',
'observation_id': 27,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [27],
'message': 'Redecentralization of the Web',
'observation_id': 28,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [28],
'message': 'Redecentralization of the Web',
'observation_id': 29,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [29],
'message': 'Redecentralization of the Web',
'observation_id': 30,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [30],
'message': 'Redecentralization of the Web',
'observation_id': 31,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [31],
'message': 'Redecentralization of the Web',
'observation_id': 32,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [32],
'message': 'Redecentralization of the Web',
'observation_id': 33,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [33],
'message': 'Redecentralization of the Web',
'observation_id': 34,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [34],
'message': 'Redecentralization of the Web',
'observation_id': 35,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [35],
'message': 'Redecentralization of the Web',
'observation_id': 36,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [36],
'message': 'Redecentralization of the Web',
'observation_id': 37,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [37],
'message': 'Redecentralization of the Web',
'observation_id': 38,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [38],
'message': 'Redecentralization of the Web',
'observation_id': 39,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [39],
'message': 'Redecentralization of the Web',
'observation_id': 40,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [40],
'message': 'Redecentralization of the Web',
'observation_id': 41,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [41],
'message': 'Redecentralization of the Web',
'observation_id': 42,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [42],
'message': 'Redecentralization of the Web',
'observation_id': 43,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [43],
'message': 'Redecentralization of the Web',
'observation_id': 44,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [44],
'message': 'Redecentralization of the Web',
'observation_id': 45,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [45],
'message': 'Redecentralization of the Web',
'observation_id': 46,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [46],
'message': 'Redecentralization of the Web',
'observation_id': 47,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [47],
'message': 'Redecentralization of the Web',
'observation_id': 48,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [48],
'message': 'Redecentralization of the Web',
'observation_id': 49,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [49],
'message': 'Redecentralization of the Web',
'observation_id': 50,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [50],
'message': 'Redecentralization of the Web',
'observation_id': 51,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [51],
'message': 'Redecentralization of the Web',
'observation_id': 52,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [52],
'message': 'Redecentralization of the Web',
'observation_id': 53,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [53],
'message': 'Redecentralization of the Web',
'observation_id': 54,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [54],
'message': 'Redecentralization of the Web',
'observation_id': 55,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [55],
'message': 'Redecentralization of the Web',
'observation_id': 56,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [56],
'message': 'Redecentralization of the Web',
'observation_id': 57,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [57],
'message': 'Redecentralization of the Web',
'observation_id': 58,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [58],
'message': 'Redecentralization of the Web',
'observation_id': 59,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [59],
'message': 'Redecentralization of the Web',
'observation_id': 60,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [60],
'message': 'Redecentralization of the Web',
'observation_id': 61,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [61],
'message': 'Redecentralization of the Web',
'observation_id': 62,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [62],
'message': 'Redecentralization of the Web',
'observation_id': 63,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [63],
'message': 'Redecentralization of the Web',
'observation_id': 64,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [64],
'message': 'Redecentralization of the Web',
'observation_id': 65,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [65],
'message': 'Redecentralization of the Web',
'observation_id': 66,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [66],
'message': 'Redecentralization of the Web',
'observation_id': 67,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [67],
'message': 'Redecentralization of the Web',
'observation_id': 68,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [68],
'message': 'Redecentralization of the Web',
'observation_id': 69,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [69],
'message': 'Redecentralization of the Web',
'observation_id': 70,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [70],
'message': 'Redecentralization of the Web',
'observation_id': 71,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [71],
'message': 'Redecentralization of the Web',
'observation_id': 72,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [72],
'message': 'Redecentralization of the Web',
'observation_id': 73,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [73],
'message': 'Redecentralization of the Web',
'observation_id': 74,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [74],
'message': 'Redecentralization of the Web',
'observation_id': 75,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [75],
'message': 'Redecentralization of the Web',
'observation_id': 76,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [76],
'message': 'Redecentralization of the Web',
'observation_id': 77,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [77],
'message': 'Redecentralization of the Web',
'observation_id': 78,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [78],
'message': 'Redecentralization of the Web',
'observation_id': 79,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [79],
'message': 'Redecentralization of the Web',
'observation_id': 80,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [80],
'message': 'Redecentralization of the Web',
'observation_id': 81,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [81],
'message': 'Redecentralization of the Web',
'observation_id': 82,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [82],
'message': 'Redecentralization of the Web',
'observation_id': 83,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [83],
'message': 'Redecentralization of the Web',
'observation_id': 84,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [84],
'message': 'Redecentralization of the Web',
'observation_id': 85,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [85],
'message': 'Redecentralization of the Web',
'observation_id': 86,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [86],
'message': 'Redecentralization of the Web',
'observation_id': 87,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [87],
'message': 'Redecentralization of the Web',
'observation_id': 88,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [88],
'message': 'Redecentralization of the Web',
'observation_id': 89,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [89],
'message': 'Redecentralization of the Web',
'observation_id': 90,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [90],
'message': 'Redecentralization of the Web',
'observation_id': 91,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [91],
'message': 'Redecentralization of the Web',
'observation_id': 92,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [92],
'message': 'Redecentralization of the Web',
'observation_id': 93,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [93],
'message': 'Redecentralization of the Web',
'observation_id': 94,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [94],
'message': 'Redecentralization of the Web',
'observation_id': 95,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [95],
'message': 'Redecentralization of the Web',
'observation_id': 96,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [96],
'message': 'Redecentralization of the Web',
'observation_id': 97,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [97],
'message': 'Redecentralization of the Web',
'observation_id': 98,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [98],
'message': 'Redecentralization of the Web',
'observation_id': 99,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [99],
'message': 'Redecentralization of the Web',
'observation_id': 100,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [100],
'message': 'Redecentralization of the Web',
'observation_id': 101,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [101],
'message': 'Redecentralization of the Web',
'observation_id': 102,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [102],
'message': 'Redecentralization of the Web',
'observation_id': 103,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [103],
'message': 'Redecentralization of the Web',
'observation_id': 104,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [104],
'message': 'Redecentralization of the Web',
'observation_id': 105,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [105],
'message': 'Redecentralization of the Web',
'observation_id': 106,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [106],
'message': 'Redecentralization of the Web',
'observation_id': 107,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [107],
'message': 'Redecentralization of the Web',
'observation_id': 108,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [108],
'message': 'Redecentralization of the Web',
'observation_id': 109,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [109],
'message': 'Redecentralization of the Web',
'observation_id': 110,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [110],
'message': 'Redecentralization of the Web',
'observation_id': 111,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [111],
'message': 'Redecentralization of the Web',
'observation_id': 112,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [112],
'message': 'Redecentralization of the Web',
'observation_id': 113,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [113],
'message': 'Redecentralization of the Web',
'observation_id': 114,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [114],
'message': 'Redecentralization of the Web',
'observation_id': 115,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [115],
'message': 'Redecentralization of the Web',
'observation_id': 116,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [116],
'message': 'Redecentralization of the Web',
'observation_id': 117,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [117],
'message': 'Redecentralization of the Web',
'observation_id': 118,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [118],
'message': 'Redecentralization of the Web',
'observation_id': 119,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [119],
'message': 'Redecentralization of the Web',
'observation_id': 120,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [120],
'message': 'Redecentralization of the Web',
'observation_id': 121,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [121],
'message': 'Redecentralization of the Web',
'observation_id': 122,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [122],
'message': 'Redecentralization of the Web',
'observation_id': 123,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [123],
'message': 'Redecentralization of the Web',
'observation_id': 124,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [124],
'message': 'Redecentralization of the Web',
'observation_id': 125,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [125],
'message': 'Redecentralization of the Web',
'observation_id': 126,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [126],
'message': 'Redecentralization of the Web',
'observation_id': 127,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [127],
'message': 'Redecentralization of the Web',
'observation_id': 128,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [128],
'message': 'Redecentralization of the Web',
'observation_id': 129,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [129],
'message': 'Redecentralization of the Web',
'observation_id': 130,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [130],
'message': 'Redecentralization of the Web',
'observation_id': 131,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [131],
'message': 'Redecentralization of the Web',
'observation_id': 132,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [132],
'message': 'Redecentralization of the Web',
'observation_id': 133,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [133],
'message': 'Redecentralization of the Web',
'observation_id': 134,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [134],
'message': 'Redecentralization of the Web',
'observation_id': 135,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [135],
'message': 'Redecentralization of the Web',
'observation_id': 136,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [136],
'message': 'Redecentralization of the Web',
'observation_id': 137,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [137],
'message': 'Redecentralization of the Web',
'observation_id': 138,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [138],
'message': 'Redecentralization of the Web',
'observation_id': 139,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [139],
'message': 'Redecentralization of the Web',
'observation_id': 140,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [140],
'message': 'Redecentralization of the Web',
'observation_id': 141,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [141],
'message': 'Redecentralization of the Web',
'observation_id': 142,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [142],
'message': 'Redecentralization of the Web',
'observation_id': 143,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [143],
'message': 'Redecentralization of the Web',
'observation_id': 144,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [144],
'message': 'Redecentralization of the Web',
'observation_id': 145,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [145],
'message': 'Redecentralization of the Web',
'observation_id': 146,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [146],
'message': 'Redecentralization of the Web',
'observation_id': 147,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [147],
'message': 'Redecentralization of the Web',
'observation_id': 148,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [148],
'message': 'Redecentralization of the Web',
'observation_id': 149,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [149],
'message': 'Redecentralization of the Web',
'observation_id': 150,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [150],
'message': 'Redecentralization of the Web',
'observation_id': 151,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [151],
'message': 'Redecentralization of the Web',
'observation_id': 152,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [152],
'message': 'Redecentralization of the Web',
'observation_id': 153,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [153],
'message': 'Redecentralization of the Web',
'observation_id': 154,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [154],
'message': 'Redecentralization of the Web',
'observation_id': 155,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [155],
'message': 'Redecentralization of the Web',
'observation_id': 156,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [156],
'message': 'Redecentralization of the Web',
'observation_id': 157,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [157],
'message': 'Redecentralization of the Web',
'observation_id': 158,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [158],
'message': 'Redecentralization of the Web',
'observation_id': 159,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [159],
'message': 'Redecentralization of the Web',
'observation_id': 160,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [160],
'message': 'Redecentralization of the Web',
'observation_id': 161,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [161],
'message': 'Redecentralization of the Web',
'observation_id': 162,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [162],
'message': 'Redecentralization of the Web',
'observation_id': 163,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [163],
'message': 'Redecentralization of the Web',
'observation_id': 164,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [164],
'message': 'Redecentralization of the Web',
'observation_id': 165,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [165],
'message': 'Redecentralization of the Web',
'observation_id': 166,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [166],
'message': 'Redecentralization of the Web',
'observation_id': 167,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [167],
'message': 'Redecentralization of the Web',
'observation_id': 168,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [168],
'message': 'Redecentralization of the Web',
'observation_id': 169,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [169],
'message': 'Redecentralization of the Web',
'observation_id': 170,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [170],
'message': 'Redecentralization of the Web',
'observation_id': 171,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [171],
'message': 'Redecentralization of the Web',
'observation_id': 172,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [172],
'message': 'Redecentralization of the Web',
'observation_id': 173,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [173],
'message': 'Redecentralization of the Web',
'observation_id': 174,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [174],
'message': 'Redecentralization of the Web',
'observation_id': 175,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [175],
'message': 'Redecentralization of the Web',
'observation_id': 176,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [176],
'message': 'Redecentralization of the Web',
'observation_id': 177,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [177],
'message': 'Redecentralization of the Web',
'observation_id': 178,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [178],
'message': 'Redecentralization of the Web',
'observation_id': 179,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [179],
'message': 'Redecentralization of the Web',
'observation_id': 180,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [180],
'message': 'Redecentralization of the Web',
'observation_id': 181,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [181],
'message': 'Redecentralization of the Web',
'observation_id': 182,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [182],
'message': 'Redecentralization of the Web',
'observation_id': 183,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [183],
'message': 'Redecentralization of the Web',
'observation_id': 184,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [184],
'message': 'Redecentralization of the Web',
'observation_id': 185,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [185],
'message': 'Redecentralization of the Web',
'observation_id': 186,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [186],
'message': 'Redecentralization of the Web',
'observation_id': 187,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [187],
'message': 'Redecentralization of the Web',
'observation_id': 188,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [188],
'message': 'Redecentralization of the Web',
'observation_id': 189,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [189],
'message': 'Redecentralization of the Web',
'observation_id': 190,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [190],
'message': 'Redecentralization of the Web',
'observation_id': 191,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [191],
'message': 'Redecentralization of the Web',
'observation_id': 192,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [192],
'message': 'Redecentralization of the Web',
'observation_id': 193,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [193],
'message': 'Redecentralization of the Web',
'observation_id': 194,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [194],
'message': 'Redecentralization of the Web',
'observation_id': 195,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [195],
'message': 'Redecentralization of the Web',
'observation_id': 196,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [196],
'message': 'Redecentralization of the Web',
'observation_id': 197,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [197],
'message': 'Redecentralization of the Web',
'observation_id': 198,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [198],
'message': 'Redecentralization of the Web',
'observation_id': 199,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [199],
'message': 'Redecentralization of the Web',
'observation_id': 200,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [200],
'message': 'Redecentralization of the Web',
'observation_id': 201,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [201],
'message': 'Redecentralization of the Web',
'observation_id': 202,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [202],
'message': 'Redecentralization of the Web',
'observation_id': 203,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [203],
'message': 'Redecentralization of the Web',
'observation_id': 204,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [204],
'message': 'Redecentralization of the Web',
'observation_id': 205,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [205],
'message': 'Redecentralization of the Web',
'observation_id': 206,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [206],
'message': 'Redecentralization of the Web',
'observation_id': 207,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [207],
'message': 'Redecentralization of the Web',
'observation_id': 208,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [208],
'message': 'Redecentralization of the Web',
'observation_id': 209,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [209],
'message': 'Redecentralization of the Web',
'observation_id': 210,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [210],
'message': 'Redecentralization of the Web',
'observation_id': 211,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [211],
'message': 'Redecentralization of the Web',
'observation_id': 212,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [212],
'message': 'Redecentralization of the Web',
'observation_id': 213,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [213],
'message': 'Redecentralization of the Web',
'observation_id': 214,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [214],
'message': 'Redecentralization of the Web',
'observation_id': 215,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [215],
'message': 'Redecentralization of the Web',
'observation_id': 216,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [216],
'message': 'Redecentralization of the Web',
'observation_id': 217,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [217],
'message': 'Redecentralization of the Web',
'observation_id': 218,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [218],
'message': 'Redecentralization of the Web',
'observation_id': 219,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [219],
'message': 'Redecentralization of the Web',
'observation_id': 220,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [220],
'message': 'Redecentralization of the Web',
'observation_id': 221,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [221],
'message': 'Redecentralization of the Web',
'observation_id': 222,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [222],
'message': 'Redecentralization of the Web',
'observation_id': 223,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [223],
'message': 'Redecentralization of the Web',
'observation_id': 224,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [224],
'message': 'Redecentralization of the Web',
'observation_id': 225,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [225],
'message': 'Redecentralization of the Web',
'observation_id': 226,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [226],
'message': 'Redecentralization of the Web',
'observation_id': 227,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [227],
'message': 'Redecentralization of the Web',
'observation_id': 228,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [228],
'message': 'Redecentralization of the Web',
'observation_id': 229,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [229],
'message': 'Redecentralization of the Web',
'observation_id': 230,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [230],
'message': 'Redecentralization of the Web',
'observation_id': 231,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [231],
'message': 'Redecentralization of the Web',
'observation_id': 232,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [232],
'message': 'Redecentralization of the Web',
'observation_id': 233,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [233],
'message': 'Redecentralization of the Web',
'observation_id': 234,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [234],
'message': 'Redecentralization of the Web',
'observation_id': 235,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [235],
'message': 'Redecentralization of the Web',
'observation_id': 236,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [236],
'message': 'Redecentralization of the Web',
'observation_id': 237,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [237],
'message': 'Redecentralization of the Web',
'observation_id': 238,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [238],
'message': 'Redecentralization of the Web',
'observation_id': 239,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [239],
'message': 'Redecentralization of the Web',
'observation_id': 240,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [240],
'message': 'Redecentralization of the Web',
'observation_id': 241,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [241],
'message': 'Redecentralization of the Web',
'observation_id': 242,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [242],
'message': 'Redecentralization of the Web',
'observation_id': 243,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [243],
'message': 'Redecentralization of the Web',
'observation_id': 244,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [244],
'message': 'Redecentralization of the Web',
'observation_id': 245,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [245],
'message': 'Redecentralization of the Web',
'observation_id': 246,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [246],
'message': 'Redecentralization of the Web',
'observation_id': 247,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [247],
'message': 'Redecentralization of the Web',
'observation_id': 248,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [248],
'message': 'Redecentralization of the Web',
'observation_id': 249,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [249],
'message': 'Redecentralization of the Web',
'observation_id': 250,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [250],
'message': 'Redecentralization of the Web',
'observation_id': 251,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [251],
'message': 'Redecentralization of the Web',
'observation_id': 252,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [252],
'message': 'Redecentralization of the Web',
'observation_id': 253,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [253],
'message': 'Redecentralization of the Web',
'observation_id': 254,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [254],
'message': 'Redecentralization of the Web',
'observation_id': 255,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [255],
'message': 'Redecentralization of the Web',
'observation_id': 256,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [256],
'message': 'Redecentralization of the Web',
'observation_id': 257,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [257],
'message': 'Redecentralization of the Web',
'observation_id': 258,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [258],
'message': 'Redecentralization of the Web',
'observation_id': 259,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [259],
'message': 'Redecentralization of the Web',
'observation_id': 260,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [260],
'message': 'Redecentralization of the Web',
'observation_id': 261,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [261],
'message': 'Redecentralization of the Web',
'observation_id': 262,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [262],
'message': 'Redecentralization of the Web',
'observation_id': 263,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [263],
'message': 'Redecentralization of the Web',
'observation_id': 264,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [264],
'message': 'Redecentralization of the Web',
'observation_id': 265,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [265],
'message': 'Redecentralization of the Web',
'observation_id': 266,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [266],
'message': 'Redecentralization of the Web',
'observation_id': 267,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [267],
'message': 'Redecentralization of the Web',
'observation_id': 268,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [268],
'message': 'Redecentralization of the Web',
'observation_id': 269,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [269],
'message': 'Redecentralization of the Web',
'observation_id': 270,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [270],
'message': 'Redecentralization of the Web',
'observation_id': 271,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [271],
'message': 'Redecentralization of the Web',
'observation_id': 272,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [272],
'message': 'Redecentralization of the Web',
'observation_id': 273,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [273],
'message': 'Redecentralization of the Web',
'observation_id': 274,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [274],
'message': 'Redecentralization of the Web',
'observation_id': 275,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [275],
'message': 'Redecentralization of the Web',
'observation_id': 276,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [276],
'message': 'Redecentralization of the Web',
'observation_id': 277,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [277],
'message': 'Redecentralization of the Web',
'observation_id': 278,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [278],
'message': 'Redecentralization of the Web',
'observation_id': 279,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [279],
'message': 'Redecentralization of the Web',
'observation_id': 280,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [280],
'message': 'Redecentralization of the Web',
'observation_id': 281,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [281],
'message': 'Redecentralization of the Web',
'observation_id': 282,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [282],
'message': 'Redecentralization of the Web',
'observation_id': 283,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [283],
'message': 'Redecentralization of the Web',
'observation_id': 284,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [284],
'message': 'Redecentralization of the Web',
'observation_id': 285,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [285],
'message': 'Redecentralization of the Web',
'observation_id': 286,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [286],
'message': 'Redecentralization of the Web',
'observation_id': 287,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [287],
'message': 'Redecentralization of the Web',
'observation_id': 288,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [288],
'message': 'Redecentralization of the Web',
'observation_id': 289,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [289],
'message': 'Redecentralization of the Web',
'observation_id': 290,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [290],
'message': 'Redecentralization of the Web',
'observation_id': 291,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [291],
'message': 'Redecentralization of the Web',
'observation_id': 292,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [292],
'message': 'Redecentralization of the Web',
'observation_id': 293,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [293],
'message': 'Redecentralization of the Web',
'observation_id': 294,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [294],
'message': 'Redecentralization of the Web',
'observation_id': 295,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [295],
'message': 'Redecentralization of the Web',
'observation_id': 296,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [296],
'message': 'Redecentralization of the Web',
'observation_id': 297,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [297],
'message': 'Redecentralization of the Web',
'observation_id': 298,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [298],
'message': 'Redecentralization of the Web',
'observation_id': 299,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [299],
'message': 'Redecentralization of the Web',
'observation_id': 300,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [300],
'message': 'Redecentralization of the Web',
'observation_id': 301,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [301],
'message': 'Redecentralization of the Web',
'observation_id': 302,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [302],
'message': 'Redecentralization of the Web',
'observation_id': 303,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [303],
'message': 'Redecentralization of the Web',
'observation_id': 304,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [304],
'message': 'Redecentralization of the Web',
'observation_id': 305,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [305],
'message': 'Redecentralization of the Web',
'observation_id': 306,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [306],
'message': 'Redecentralization of the Web',
'observation_id': 307,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [307],
'message': 'Redecentralization of the Web',
'observation_id': 308,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [308],
'message': 'Redecentralization of the Web',
'observation_id': 309,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [309],
'message': 'Redecentralization of the Web',
'observation_id': 310,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [310],
'message': 'Redecentralization of the Web',
'observation_id': 311,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [311],
'message': 'Redecentralization of the Web',
'observation_id': 312,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [312],
'message': 'Redecentralization of the Web',
'observation_id': 313,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [313],
'message': 'Redecentralization of the Web',
'observation_id': 314,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [314],
'message': 'Redecentralization of the Web',
'observation_id': 315,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [315],
'message': 'Redecentralization of the Web',
'observation_id': 316,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [316],
'message': 'Redecentralization of the Web',
'observation_id': 317,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [317],
'message': 'Redecentralization of the Web',
'observation_id': 318,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [318],
'message': 'Redecentralization of the Web',
'observation_id': 319,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [319],
'message': 'Redecentralization of the Web',
'observation_id': 320,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [320],
'message': 'Redecentralization of the Web',
'observation_id': 321,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [321],
'message': 'Redecentralization of the Web',
'observation_id': 322,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [322],
'message': 'Redecentralization of the Web',
'observation_id': 323,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [323],
'message': 'Redecentralization of the Web',
'observation_id': 324,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [324],
'message': 'Redecentralization of the Web',
'observation_id': 325,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [325],
'message': 'Redecentralization of the Web',
'observation_id': 326,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [326],
'message': 'Redecentralization of the Web',
'observation_id': 327,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [327],
'message': 'Redecentralization of the Web',
'observation_id': 328,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [328],
'message': 'Redecentralization of the Web',
'observation_id': 329,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [329],
'message': 'Redecentralization of the Web',
'observation_id': 330,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [330],
'message': 'Redecentralization of the Web',
'observation_id': 331,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [331],
'message': 'Redecentralization of the Web',
'observation_id': 332,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [332],
'message': 'Redecentralization of the Web',
'observation_id': 333,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [333],
'message': 'Redecentralization of the Web',
'observation_id': 334,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [334],
'message': 'Redecentralization of the Web',
'observation_id': 335,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [335],
'message': 'Redecentralization of the Web',
'observation_id': 336,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [336],
'message': 'Redecentralization of the Web',
'observation_id': 337,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [337],
'message': 'Redecentralization of the Web',
'observation_id': 338,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [338],
'message': 'Redecentralization of the Web',
'observation_id': 339,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [339],
'message': 'Redecentralization of the Web',
'observation_id': 340,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [340],
'message': 'Redecentralization of the Web',
'observation_id': 341,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [341],
'message': 'Redecentralization of the Web',
'observation_id': 342,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [342],
'message': 'Redecentralization of the Web',
'observation_id': 343,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [343],
'message': 'Redecentralization of the Web',
'observation_id': 344,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [344],
'message': 'Redecentralization of the Web',
'observation_id': 345,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [345],
'message': 'Redecentralization of the Web',
'observation_id': 346,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [346],
'message': 'Redecentralization of the Web',
'observation_id': 347,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [347],
'message': 'Redecentralization of the Web',
'observation_id': 348,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [348],
'message': 'Redecentralization of the Web',
'observation_id': 349,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [349],
'message': 'Redecentralization of the Web',
'observation_id': 350,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [350],
'message': 'Redecentralization of the Web',
'observation_id': 351,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [351],
'message': 'Redecentralization of the Web',
'observation_id': 352,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [352],
'message': 'Redecentralization of the Web',
'observation_id': 353,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [353],
'message': 'Redecentralization of the Web',
'observation_id': 354,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [354],
'message': 'Redecentralization of the Web',
'observation_id': 355,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [355],
'message': 'Redecentralization of the Web',
'observation_id': 356,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [356],
'message': 'Redecentralization of the Web',
'observation_id': 357,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [357],
'message': 'Redecentralization of the Web',
'observation_id': 358,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [358],
'message': 'Redecentralization of the Web',
'observation_id': 359,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [359],
'message': 'Redecentralization of the Web',
'observation_id': 360,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [360],
'message': 'Redecentralization of the Web',
'observation_id': 361,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [361],
'message': 'Redecentralization of the Web',
'observation_id': 362,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [362],
'message': 'Redecentralization of the Web',
'observation_id': 363,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [363],
'message': 'Redecentralization of the Web',
'observation_id': 364,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [364],
'message': 'Redecentralization of the Web',
'observation_id': 365,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [365],
'message': 'Redecentralization of the Web',
'observation_id': 366,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [366],
'message': 'Redecentralization of the Web',
'observation_id': 367,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [367],
'message': 'Redecentralization of the Web',
'observation_id': 368,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [368],
'message': 'Redecentralization of the Web',
'observation_id': 369,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [369],
'message': 'Redecentralization of the Web',
'observation_id': 370,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [370],
'message': 'Redecentralization of the Web',
'observation_id': 371,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [371],
'message': 'Redecentralization of the Web',
'observation_id': 372,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [372],
'message': 'Redecentralization of the Web',
'observation_id': 373,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [373],
'message': 'Redecentralization of the Web',
'observation_id': 374,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [374],
'message': 'Redecentralization of the Web',
'observation_id': 375,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [375],
'message': 'Redecentralization of the Web',
'observation_id': 376,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [376],
'message': 'Redecentralization of the Web',
'observation_id': 377,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [377],
'message': 'Redecentralization of the Web',
'observation_id': 378,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [378],
'message': 'Redecentralization of the Web',
'observation_id': 379,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [379],
'message': 'Redecentralization of the Web',
'observation_id': 380,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [380],
'message': 'Redecentralization of the Web',
'observation_id': 381,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [381],
'message': 'Redecentralization of the Web',
'observation_id': 382,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [382],
'message': 'Redecentralization of the Web',
'observation_id': 383,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [383],
'message': 'Redecentralization of the Web',
'observation_id': 384,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [384],
'message': 'Redecentralization of the Web',
'observation_id': 385,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [385],
'message': 'Redecentralization of the Web',
'observation_id': 386,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [386],
'message': 'Redecentralization of the Web',
'observation_id': 387,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [387],
'message': 'Redecentralization of the Web',
'observation_id': 388,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [388],
'message': 'Redecentralization of the Web',
'observation_id': 389,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [389],
'message': 'Redecentralization of the Web',
'observation_id': 390,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [390],
'message': 'Redecentralization of the Web',
'observation_id': 391,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [391],
'message': 'Redecentralization of the Web',
'observation_id': 392,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [392],
'message': 'Redecentralization of the Web',
'observation_id': 393,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [393],
'message': 'Redecentralization of the Web',
'observation_id': 394,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [394],
'message': 'Redecentralization of the Web',
'observation_id': 395,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [395],
'message': 'Redecentralization of the Web',
'observation_id': 396,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [396],
'message': 'Redecentralization of the Web',
'observation_id': 397,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [397],
'message': 'Redecentralization of the Web',
'observation_id': 398,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [398],
'message': 'Redecentralization of the Web',
'observation_id': 399,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [399],
'message': 'Redecentralization of the Web',
'observation_id': 400,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [400],
'message': 'Redecentralization of the Web',
'observation_id': 401,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [401],
'message': 'Redecentralization of the Web',
'observation_id': 402,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [402],
'message': 'Redecentralization of the Web',
'observation_id': 403,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [403],
'message': 'Redecentralization of the Web',
'observation_id': 404,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [404],
'message': 'Redecentralization of the Web',
'observation_id': 405,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [405],
'message': 'Redecentralization of the Web',
'observation_id': 406,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [406],
'message': 'Redecentralization of the Web',
'observation_id': 407,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [407],
'message': 'Redecentralization of the Web',
'observation_id': 408,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [408],
'message': 'Redecentralization of the Web',
'observation_id': 409,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [409],
'message': 'Redecentralization of the Web',
'observation_id': 410,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [410],
'message': 'Redecentralization of the Web',
'observation_id': 411,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [411],
'message': 'Redecentralization of the Web',
'observation_id': 412,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [412],
'message': 'Redecentralization of the Web',
'observation_id': 413,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [413],
'message': 'Redecentralization of the Web',
'observation_id': 414,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [414],
'message': 'Redecentralization of the Web',
'observation_id': 415,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [415],
'message': 'Redecentralization of the Web',
'observation_id': 416,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [416],
'message': 'Redecentralization of the Web',
'observation_id': 417,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [417],
'message': 'Redecentralization of the Web',
'observation_id': 418,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [418],
'message': 'Redecentralization of the Web',
'observation_id': 419,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [419],
'message': 'Redecentralization of the Web',
'observation_id': 420,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [420],
'message': 'Redecentralization of the Web',
'observation_id': 421,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [421],
'message': 'Redecentralization of the Web',
'observation_id': 422,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [422],
'message': 'Redecentralization of the Web',
'observation_id': 423,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [423],
'message': 'Redecentralization of the Web',
'observation_id': 424,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [424],
'message': 'Redecentralization of the Web',
'observation_id': 425,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [425],
'message': 'Redecentralization of the Web',
'observation_id': 426,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [426],
'message': 'Redecentralization of the Web',
'observation_id': 427,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [427],
'message': 'Redecentralization of the Web',
'observation_id': 428,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [428],
'message': 'Redecentralization of the Web',
'observation_id': 429,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [429],
'message': 'Redecentralization of the Web',
'observation_id': 430,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [430],
'message': 'Redecentralization of the Web',
'observation_id': 431,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [431],
'message': 'Redecentralization of the Web',
'observation_id': 432,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [432],
'message': 'Redecentralization of the Web',
'observation_id': 433,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [433],
'message': 'Redecentralization of the Web',
'observation_id': 434,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [434],
'message': 'Redecentralization of the Web',
'observation_id': 435,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [435],
'message': 'Redecentralization of the Web',
'observation_id': 436,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [436],
'message': 'Redecentralization of the Web',
'observation_id': 437,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [437],
'message': 'Redecentralization of the Web',
'observation_id': 438,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [438],
'message': 'Redecentralization of the Web',
'observation_id': 439,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [439],
'message': 'Redecentralization of the Web',
'observation_id': 440,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [440],
'message': 'Redecentralization of the Web',
'observation_id': 441,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [441],
'message': 'Redecentralization of the Web',
'observation_id': 442,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [442],
'message': 'Redecentralization of the Web',
'observation_id': 443,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [443],
'message': 'Redecentralization of the Web',
'observation_id': 444,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [444],
'message': 'Redecentralization of the Web',
'observation_id': 445,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [445],
'message': 'Redecentralization of the Web',
'observation_id': 446,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [446],
'message': 'Redecentralization of the Web',
'observation_id': 447,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [447],
'message': 'Redecentralization of the Web',
'observation_id': 448,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [448],
'message': 'Redecentralization of the Web',
'observation_id': 449,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [449],
'message': 'Redecentralization of the Web',
'observation_id': 450,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [450],
'message': 'Redecentralization of the Web',
'observation_id': 451,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [451],
'message': 'Redecentralization of the Web',
'observation_id': 452,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [452],
'message': 'Redecentralization of the Web',
'observation_id': 453,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [453],
'message': 'Redecentralization of the Web',
'observation_id': 454,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [454],
'message': 'Redecentralization of the Web',
'observation_id': 455,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [455],
'message': 'Redecentralization of the Web',
'observation_id': 456,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [456],
'message': 'Redecentralization of the Web',
'observation_id': 457,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [457],
'message': 'Redecentralization of the Web',
'observation_id': 458,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [458],
'message': 'Redecentralization of the Web',
'observation_id': 459,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [459],
'message': 'Redecentralization of the Web',
'observation_id': 460,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [460],
'message': 'Redecentralization of the Web',
'observation_id': 461,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [461],
'message': 'Redecentralization of the Web',
'observation_id': 462,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [462],
'message': 'Redecentralization of the Web',
'observation_id': 463,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [463],
'message': 'Redecentralization of the Web',
'observation_id': 464,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [464],
'message': 'Redecentralization of the Web',
'observation_id': 465,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [465],
'message': 'Redecentralization of the Web',
'observation_id': 466,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [466],
'message': 'Redecentralization of the Web',
'observation_id': 467,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [467],
'message': 'Redecentralization of the Web',
'observation_id': 468,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [468],
'message': 'Redecentralization of the Web',
'observation_id': 469,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [469],
'message': 'Redecentralization of the Web',
'observation_id': 470,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [470],
'message': 'Redecentralization of the Web',
'observation_id': 471,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [471],
'message': 'Redecentralization of the Web',
'observation_id': 472,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [472],
'message': 'Redecentralization of the Web',
'observation_id': 473,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [473],
'message': 'Redecentralization of the Web',
'observation_id': 474,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [474],
'message': 'Redecentralization of the Web',
'observation_id': 475,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [475],
'message': 'Redecentralization of the Web',
'observation_id': 476,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [476],
'message': 'Redecentralization of the Web',
'observation_id': 477,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [477],
'message': 'Redecentralization of the Web',
'observation_id': 478,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [478],
'message': 'Redecentralization of the Web',
'observation_id': 479,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [479],
'message': 'Redecentralization of the Web',
'observation_id': 480,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [480],
'message': 'Redecentralization of the Web',
'observation_id': 481,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [481],
'message': 'Redecentralization of the Web',
'observation_id': 482,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [482],
'message': 'Redecentralization of the Web',
'observation_id': 483,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [483],
'message': 'Redecentralization of the Web',
'observation_id': 484,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [484],
'message': 'Redecentralization of the Web',
'observation_id': 485,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [485],
'message': 'Redecentralization of the Web',
'observation_id': 486,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [486],
'message': 'Redecentralization of the Web',
'observation_id': 487,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [487],
'message': 'Redecentralization of the Web',
'observation_id': 488,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [488],
'message': 'Redecentralization of the Web',
'observation_id': 489,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [489],
'message': 'Redecentralization of the Web',
'observation_id': 490,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [490],
'message': 'Redecentralization of the Web',
'observation_id': 491,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [491],
'message': 'Redecentralization of the Web',
'observation_id': 492,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [492],
'message': 'Redecentralization of the Web',
'observation_id': 493,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [493],
'message': 'Redecentralization of the Web',
'observation_id': 494,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [494],
'message': 'Redecentralization of the Web',
'observation_id': 495,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [495],
'message': 'Redecentralization of the Web',
'observation_id': 496,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [496],
'message': 'Redecentralization of the Web',
'observation_id': 497,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'},
{'author': 'A',
'before': [497],
'message': 'Redecentralization of the Web',
'observation_id': 498,
'receiver': 'B',
'sender': 'A',
'topic': 'Web Engineering'},
{'author': 'C',
'before': [498],
'message': 'Redecentralization of the Web',
'observation_id': 499,
'receiver': 'B',
'sender': 'C',
'topic': 'Web Engineering'}]
HISTORY = {'A': {'B': 1.0, 'C': 1.0, 'D': 1.0},
'B': {'A': 0, 'C': 0, 'D': 1.0},
'C': {'A': 1.0, 'B': 1.0, 'D': 1.0},
'D': {'A': 1.0, 'B': 1.0, 'C': 1.0}}
SCALES_PER_AGENT = {'A': {'cooperation': 0.5,
'default': 0.0,
'forgivability': -0.5,
'maximum': 1.0,
'minimum': -1.0,
'name': 'Trust Scale by Marsh and Briggs (2009)',
'package': 'marsh_briggs_scale'},
'B': {'cooperation': 0.5,
'default': 0.0,
'forgivability': -0.5,
'maximum': 1.0,
'minimum': -1.0,
'name': 'Trust Scale by Marsh and Briggs (2009)',
'package': 'marsh_briggs_scale'},
'C': {'cooperation': 0.5,
'default': 0.0,
'forgivability': -0.5,
'maximum': 1.0,
'minimum': -1.0,
'name': 'Trust Scale by Marsh and Briggs (2009)',
'package': 'marsh_briggs_scale'},
'D': {'cooperation': 0.5,
'default': 0.0,
'forgivability': -0.5,
'maximum': 1.0,
'minimum': -1.0,
'name': 'Trust Scale by Marsh and Briggs (2009)',
'package': 'marsh_briggs_scale'}}
METRICS_PER_AGENT = {'A': {'__final__': {'name': 'weighted_average', 'weights': {}},
'content_trust.direct_experience': {},
'content_trust.popularity': {},
'content_trust.recommendation': {}},
'B': {'__final__': {'name': 'weighted_average', 'weights': {}},
'content_trust.direct_experience': {},
'content_trust.popularity': {},
'content_trust.recommendation': {}},
'C': {'__final__': {'name': 'weighted_average', 'weights': {}},
'content_trust.direct_experience': {},
'content_trust.popularity': {},
'content_trust.recommendation': {}},
'D': {'__final__': {'name': 'weighted_average', 'weights': {}},
'content_trust.direct_experience': {},
'content_trust.popularity': {},
'content_trust.recommendation': {}}}
DESCRIPTION = 'Scalability Test with observation upscaling for WI 2020'
| 24.943258
| 84
| 0.578605
| 9,739
| 88,798
| 5.219324
| 0.057193
| 0.245913
| 0.265586
| 0.295096
| 0.942142
| 0.942024
| 0.94161
| 0.488442
| 0.488442
| 0.488442
| 0
| 0.039291
| 0.1797
| 88,798
| 3,559
| 85
| 24.950267
| 0.658544
| 0
| 0
| 0.713039
| 0
| 0
| 0.568945
| 0.003739
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3bb10166d41ebf8c2740106fe76786d64cce6d41
| 194
|
py
|
Python
|
colour/characterisation/datasets/cameras/dslr/__init__.py
|
OmarWagih1/colour
|
bdc880a2783ff523dafb19f1233212dd03a639bd
|
[
"BSD-3-Clause"
] | 2
|
2020-06-20T03:44:41.000Z
|
2020-06-20T14:08:41.000Z
|
colour/characterisation/datasets/cameras/dslr/__init__.py
|
OmarWagih1/colour
|
bdc880a2783ff523dafb19f1233212dd03a639bd
|
[
"BSD-3-Clause"
] | null | null | null |
colour/characterisation/datasets/cameras/dslr/__init__.py
|
OmarWagih1/colour
|
bdc880a2783ff523dafb19f1233212dd03a639bd
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from .spectral_sensitivities import DSLR_CAMERA_RGB_SPECTRAL_SENSITIVITIES
__all__ = ['DSLR_CAMERA_RGB_SPECTRAL_SENSITIVITIES']
| 24.25
| 74
| 0.824742
| 23
| 194
| 6.173913
| 0.565217
| 0.443662
| 0.183099
| 0.295775
| 0.478873
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005714
| 0.097938
| 194
| 7
| 75
| 27.714286
| 0.805714
| 0.108247
| 0
| 0
| 0
| 0
| 0.222222
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 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
| 1
| 0
| 1
| 0
|
0
| 7
|
cbfdaf00faedefec5c9f90538a67b39cc5f41376
| 8,476
|
py
|
Python
|
cv/resume/migrations/0005_alter_interpersonal_options_alter_technical_options_and_more.py
|
Trianglium/artist-cv
|
5a742a3998ba8778b2b6ddde2c3f88ff3cc85124
|
[
"MIT"
] | 2
|
2022-01-29T00:45:58.000Z
|
2022-01-30T22:05:18.000Z
|
cv/resume/migrations/0005_alter_interpersonal_options_alter_technical_options_and_more.py
|
Trianglium/artist-cv
|
5a742a3998ba8778b2b6ddde2c3f88ff3cc85124
|
[
"MIT"
] | 14
|
2022-01-30T17:58:46.000Z
|
2022-02-23T14:42:10.000Z
|
cv/resume/migrations/0005_alter_interpersonal_options_alter_technical_options_and_more.py
|
Trianglium/artist-cv
|
5a742a3998ba8778b2b6ddde2c3f88ff3cc85124
|
[
"MIT"
] | null | null | null |
# Generated by Django 4.0.1 on 2022-02-18 19:36
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('resume', '0004_alter_educational_options_and_more'),
]
operations = [
migrations.AlterModelOptions(
name='interpersonal',
options={'verbose_name': 'Interpersonal/Soft Skill', 'verbose_name_plural': 'Interpersonal/Soft Skills'},
),
migrations.AlterModelOptions(
name='technical',
options={'verbose_name': 'Technical/Hard Skill', 'verbose_name_plural': 'Technical/Hard Skills'},
),
migrations.RemoveField(
model_name='educational',
name='institution',
),
migrations.RemoveField(
model_name='professional',
name='institution',
),
migrations.RemoveField(
model_name='volunteer',
name='institution',
),
migrations.AddField(
model_name='educational',
name='institution_name',
field=models.CharField(help_text='Name of the Company, Organization, University, School, Buisness, Website, Institution, Chairty, Establishment, etc.', max_length=155, null=True),
),
migrations.AddField(
model_name='professional',
name='institution_name',
field=models.CharField(help_text='Name of the Company, Organization, University, School, Buisness, Website, Institution, Chairty, Establishment, etc.', max_length=155, null=True),
),
migrations.AddField(
model_name='volunteer',
name='institution_name',
field=models.CharField(help_text='Name of the Company, Organization, University, School, Buisness, Website, Institution, Chairty, Establishment, etc.', max_length=155, null=True),
),
migrations.AlterField(
model_name='educational',
name='end_date',
field=models.DateField(help_text='Input Month / Year of last day (Day can be set to whatever, it will be ignored'),
),
migrations.AlterField(
model_name='educational',
name='location',
field=models.CharField(blank=True, help_text='(Optional) Meant for professional fields (IE Job and etc) or Institutions where location is relavent. Typically, Location is not relavent and this field can be left blank.', max_length=200, null=True),
),
migrations.AlterField(
model_name='educational',
name='start_date',
field=models.DateField(help_text='Input Month / Year of first day (Day can be set to whatever, it will be ignored'),
),
migrations.AlterField(
model_name='interpersonal',
name='proficiency_level',
field=models.CharField(choices=[('N', 'Novice'), ('B', 'Advanced Beginner'), ('C', 'Competent'), ('P', 'Proficient'), ('E', 'Expert')], default='C', help_text='(Private Field Only) The Input from this field is used to sort your skills on your resume related pages. The names of each level-choice option will not be featured publically.\n \nNo one will know what level a skill was set at, other than the person who entered it (you).\n \nSkills will be ordered by most proficient to least proficient as to emphasize the skills that you are the most confident about.\n \nNovice is the most beginner level while Expert level represents Mastery.\n \nBe Honest with yourself on these. Think about how confident you would be recieving a blind interview that involves using the skill.', max_length=1),
),
migrations.AlterField(
model_name='interpersonal',
name='skill_name',
field=models.CharField(help_text='Label / Name of the skill. IE "Critical Thinking", "Microsoft Office", "Django", "Leadership", etc. ', max_length=155, null=True),
),
migrations.AlterField(
model_name='professional',
name='end_date',
field=models.DateField(help_text='Input Month / Year of last day (Day can be set to whatever, it will be ignored'),
),
migrations.AlterField(
model_name='professional',
name='location',
field=models.CharField(blank=True, help_text='(Optional) Meant for professional fields (IE Job and etc) or Institutions where location is relavent. Typically, Location is not relavent and this field can be left blank.', max_length=200, null=True),
),
migrations.AlterField(
model_name='professional',
name='start_date',
field=models.DateField(help_text='Input Month / Year of first day (Day can be set to whatever, it will be ignored'),
),
migrations.AlterField(
model_name='professionalprofile',
name='objective',
field=models.TextField(blank=True, help_text='(Optional) Resume Objective, generally found at the top of a resume/cv.', null=True),
),
migrations.AlterField(
model_name='professionalprofile',
name='public_email',
field=models.CharField(blank=True, help_text='(Recommended) Enter the email employers should contact you at. This will be public and can be different from the signup email if you so choose.', max_length=250, null=True),
),
migrations.AlterField(
model_name='professionalprofile',
name='resume_link',
field=models.TextField(blank=True, help_text='(Recommended) Upload your resume to Google Drive and Share the File with anyone who has the link. Copy and Paste the link into this field', null=True),
),
migrations.AlterField(
model_name='professionalprofile',
name='resume_summary',
field=models.TextField(blank=True, help_text='(Optional) Resume Summary Section', null=True),
),
migrations.AlterField(
model_name='professionalprofile',
name='user',
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='resume_profile', to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='technical',
name='proficiency_level',
field=models.CharField(choices=[('N', 'Novice'), ('B', 'Advanced Beginner'), ('C', 'Competent'), ('P', 'Proficient'), ('E', 'Expert')], default='C', help_text='(Private Field Only) The Input from this field is used to sort your skills on your resume related pages. The names of each level-choice option will not be featured publically.\n \nNo one will know what level a skill was set at, other than the person who entered it (you).\n \nSkills will be ordered by most proficient to least proficient as to emphasize the skills that you are the most confident about.\n \nNovice is the most beginner level while Expert level represents Mastery.\n \nBe Honest with yourself on these. Think about how confident you would be recieving a blind interview that involves using the skill.', max_length=1),
),
migrations.AlterField(
model_name='technical',
name='skill_name',
field=models.CharField(help_text='Label / Name of the skill. IE "Critical Thinking", "Microsoft Office", "Django", "Leadership", etc. ', max_length=155, null=True),
),
migrations.AlterField(
model_name='volunteer',
name='end_date',
field=models.DateField(help_text='Input Month / Year of last day (Day can be set to whatever, it will be ignored'),
),
migrations.AlterField(
model_name='volunteer',
name='location',
field=models.CharField(blank=True, help_text='(Optional) Meant for professional fields (IE Job and etc) or Institutions where location is relavent. Typically, Location is not relavent and this field can be left blank.', max_length=200, null=True),
),
migrations.AlterField(
model_name='volunteer',
name='start_date',
field=models.DateField(help_text='Input Month / Year of first day (Day can be set to whatever, it will be ignored'),
),
]
| 59.690141
| 833
| 0.649363
| 1,008
| 8,476
| 5.371032
| 0.217262
| 0.039897
| 0.083118
| 0.096417
| 0.823051
| 0.801071
| 0.760805
| 0.747137
| 0.713151
| 0.66993
| 0
| 0.007544
| 0.249292
| 8,476
| 141
| 834
| 60.113475
| 0.843313
| 0.005309
| 0
| 0.822222
| 1
| 0.088889
| 0.486891
| 0.004627
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.022222
| 0
| 0.044444
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
5a4085b5ec41addbad0a0f79262a8e7dd4602198
| 24,299
|
py
|
Python
|
aliyun-python-sdk-core/tests/test_request.py
|
bricklayer-Liu/aliyun-openapi-python-sdk
|
20da2554de22679fc7c5462c483663e4d79512aa
|
[
"Apache-2.0"
] | 1
|
2021-03-08T02:59:17.000Z
|
2021-03-08T02:59:17.000Z
|
aliyun-python-sdk-core/tests/test_request.py
|
bricklayer-Liu/aliyun-openapi-python-sdk
|
20da2554de22679fc7c5462c483663e4d79512aa
|
[
"Apache-2.0"
] | null | null | null |
aliyun-python-sdk-core/tests/test_request.py
|
bricklayer-Liu/aliyun-openapi-python-sdk
|
20da2554de22679fc7c5462c483663e4d79512aa
|
[
"Apache-2.0"
] | null | null | null |
# coding=utf-8
import sys
from tests import unittest
from mock import MagicMock, patch
from aliyunsdkcore.request import AcsRequest, RpcRequest, RoaRequest, \
CommonRequest, get_default_protocol_type, set_default_protocol_type
from aliyunsdkcore.acs_exception.exceptions import ClientException
from aliyunsdkcore.compat import ensure_string, ensure_bytes
class TestRequest(unittest.TestCase):
def test_default_protocol_type(self):
self.assertEqual(get_default_protocol_type(), "http")
set_default_protocol_type("https")
self.assertEqual(get_default_protocol_type(), "https")
with self.assertRaises(ClientException) as ex:
set_default_protocol_type("WSS")
self.assertEqual(ex.exception.error_code, "SDK.InvalidParams")
self.assertEqual(ex.exception.message,
"Invalid 'protocol_type', should be 'http' or 'https'")
set_default_protocol_type("http")
r = RpcRequest("product", "version", "action_name")
self.assertEqual(r.get_protocol_type(), 'http')
r = RpcRequest("product", "version", "action_name", protocol='https')
self.assertEqual(r.get_protocol_type(), 'https')
r = RpcRequest("product", "version", "action_name", protocol='http')
self.assertEqual(r.get_protocol_type(), 'http')
def test_rpc_request(self):
r = RpcRequest("product", "version", "action_name")
# accept format
self.assertIsNone(r.get_accept_format())
r.set_accept_format('json')
self.assertEqual(r.get_accept_format(), "json")
# action name
self.assertEqual(r.get_action_name(), "action_name")
r.set_action_name('new action name')
self.assertEqual(r.get_action_name(), "new action name")
# body params
self.assertDictEqual(r.get_body_params(), {})
r.set_body_params({'key': 'value'})
self.assertDictEqual(r.get_body_params(), {'key': 'value'})
r.add_body_params("key2", "value2")
self.assertDictEqual(r.get_body_params(), {
'key': 'value', 'key2': 'value2'})
# content
self.assertIsNone(r.get_content())
r.set_content("content")
self.assertEqual(r.get_content(), "content")
# headers
self.assertDictEqual(r.get_headers(), {'x-acs-action': 'new action name',
'x-acs-version': 'version',
'x-sdk-invoke-type': 'normal'})
r.set_headers({})
self.assertDictEqual(r.get_headers(), {})
r.add_header("key", "value")
self.assertDictEqual(r.get_headers(), {"key": "value"})
# location endpoint type
self.assertEqual(r.get_location_endpoint_type(), 'openAPI')
# no set_location_endpoint_type ??
# location_service_code
self.assertEqual(r.get_location_service_code(), None)
r.set_location_service_code('new service code')
self.assertEqual(r.get_location_service_code(), 'new service code')
# method
self.assertEqual(r.get_method(), 'GET')
r.set_method('POST')
self.assertEqual(r.get_method(), 'POST')
# product
self.assertEqual(r.get_product(), 'product')
r.set_product('new-product')
self.assertEqual(r.get_product(), 'new-product')
# protocol_type
self.assertEqual(r.get_protocol_type(), "http")
r.set_protocol_type('https')
self.assertEqual(r.get_protocol_type(), "https")
# query params
self.assertDictEqual(r.get_query_params(), {})
r.set_query_params({'key': 'value'})
self.assertDictEqual(r.get_query_params(), {'key': 'value'})
r.add_query_param("key2", "value2")
self.assertDictEqual(r.get_query_params(), {
'key': 'value', "key2": "value2"})
# signed_header
self.assertEqual(r.get_signed_header(), {})
r.add_header("x-acs-xxx", "value")
self.assertDictEqual(r.get_signed_header(), {"x-acs-xxx": "value"})
# style
self.assertEqual(r.get_style(), "RPC")
# uri params
self.assertEqual(r.get_uri_params(), None)
r.set_uri_params({'user': "jacksontian"})
self.assertDictEqual(r.get_uri_params(), {'user': 'jacksontian'})
# uri pattern
self.assertEqual(r.get_uri_pattern(), None)
r.set_uri_pattern('/users/:userid')
self.assertEqual(r.get_uri_pattern(), '/users/:userid')
# version
self.assertEqual(r.get_version(), "version")
r.set_version('2014-10-18')
self.assertEqual(r.get_version(), "2014-10-18")
# user-agent
self.assertEqual(r.get_headers().get('User-Agent'), None)
r.set_user_agent("user-agent")
self.assertEqual(r.get_headers().get('User-Agent'), "user-agent")
# content-type
self.assertEqual(r.get_headers().get('Content-Type'), None)
r.set_content_type("application/json")
self.assertEqual(r.get_headers().get(
'Content-Type'), "application/json")
# endpoint
self.assertEqual(r.endpoint, None)
r.set_endpoint('endpoint')
self.assertEqual(r.endpoint, "endpoint")
@patch("aliyunsdkcore.utils.parameter_helper.get_iso_8061_date")
@patch("aliyunsdkcore.utils.parameter_helper.get_uuid")
def test_rpc_request_get_url(self, mock_get_iso_8061_date, mock_get_uuid):
mock_get_iso_8061_date.return_value = "2018-12-04T04:03:12Z"
mock_get_uuid.return_value = "7e1c7d12-7551-4856-8abb-1938ccac6bcc"
# url
r = RpcRequest("product", "version", "action_name")
url = r.get_url("regionid", "accesskeyid", "secret")
mock_get_iso_8061_date.assert_called_once_with()
mock_get_uuid.assert_called_once_with()
if sys.version > '3':
# self.assertEqual(url,
# "/?Version=version&Action=action_name&Format=None&RegionId=regionid"
# "&Timestamp=7e1c7d12-7551-4856-8abb-1938ccac6bcc"
# "&SignatureMethod=HMAC-SHA1&SignatureType=&SignatureVersion=1.0"
# "&SignatureNonce=2018-12-04T04%3A03%3A12Z&AccessKeyId=accesskeyid"
# "&Signature=Ej4GsaOI7FJyN00E5OpDHHCx2vk%3D")
# with none query params
r.set_query_params(None)
url = r.get_url("regionid", "accesskeyid", "secret")
# self.assertEqual(url,
# "/?Version=version&Action=action_name&Format=None&RegionId=regionid"
# "&Timestamp=7e1c7d12-7551-4856-8abb-1938ccac6bcc"
# "&SignatureMethod=HMAC-SHA1&SignatureType=&SignatureVersion=1.0"
# "&SignatureNonce=2018-12-04T04%3A03%3A12Z&AccessKeyId=accesskeyid"
# "&Signature=Ej4GsaOI7FJyN00E5OpDHHCx2vk%3D")
# with region id key
r.set_query_params({'RegionId': 'regionid'})
url = r.get_url("regionid", "accesskeyid", "secret")
# self.assertEqual(url,
# "/?RegionId=regionid&Version=version&Action=action_name&Format=None"
# "&Timestamp=7e1c7d12-7551-4856-8abb-1938ccac6bcc"
# "&SignatureMethod=HMAC-SHA1&SignatureType=&SignatureVersion=1.0"
# "&SignatureNonce=2018-12-04T04%3A03%3A12Z&AccessKeyId=accesskeyid"
# "&Signature=Ej4GsaOI7FJyN00E5OpDHHCx2vk%3D")
else:
self.assertEqual(url,
"/?SignatureVersion=1.0&Format=None"
"&Timestamp=7e1c7d12-7551-4856-8abb-1938ccac6bcc&RegionId=regionid"
"&AccessKeyId=accesskeyid&SignatureMethod=HMAC-SHA1&Version=version"
"&Signature=Ej4GsaOI7FJyN00E5OpDHHCx2vk%3D&Action=action_name"
"&SignatureNonce=2018-12-04T04%3A03%3A12Z&SignatureType=")
# with none query params
r.set_query_params(None)
url = r.get_url("regionid", "accesskeyid", "secret")
self.assertEqual(url,
"/?SignatureVersion=1.0&Format=None"
"&Timestamp=7e1c7d12-7551-4856-8abb-1938ccac6bcc&RegionId=regionid"
"&AccessKeyId=accesskeyid&SignatureMethod=HMAC-SHA1&Version=version"
"&Signature=Ej4GsaOI7FJyN00E5OpDHHCx2vk%3D&Action=action_name"
"&SignatureNonce=2018-12-04T04%3A03%3A12Z&SignatureType=")
# with region id key
r.set_query_params({'RegionId': 'regionid'})
url = r.get_url("regionid", "accesskeyid", "secret")
self.assertEqual(url,
"/?SignatureVersion=1.0&Format=None"
"&Timestamp=7e1c7d12-7551-4856-8abb-1938ccac6bcc""&RegionId=regionid"
"&AccessKeyId=accesskeyid&SignatureMethod=HMAC-SHA1&Version=version"
"&Signature=Ej4GsaOI7FJyN00E5OpDHHCx2vk%3D&Action=action_name"
"&SignatureNonce=2018-12-04T04%3A03%3A12Z&SignatureType=")
def test_roa_request(self):
r = RoaRequest("product", "version", "action_name")
# accept format
self.assertEqual(r.get_accept_format(), "RAW")
r.set_accept_format('json')
self.assertEqual(r.get_accept_format(), "json")
# action name
self.assertEqual(r.get_action_name(), "action_name")
r.set_action_name('new action name')
self.assertEqual(r.get_action_name(), "new action name")
# body params
self.assertDictEqual(r.get_body_params(), {})
r.set_body_params({'key': 'value'})
self.assertDictEqual(r.get_body_params(), {'key': 'value'})
r.add_body_params("key2", "value2")
self.assertDictEqual(r.get_body_params(), {'key': 'value', 'key2': 'value2'})
# content
self.assertIsNone(r.get_content())
r.set_content("content")
self.assertEqual(r.get_content(), "content")
# headers
self.assertDictEqual(r.get_headers(), {'x-acs-action': 'new action name',
'x-acs-version': 'version',
'x-sdk-invoke-type': 'normal'})
r.set_headers({})
self.assertDictEqual(r.get_headers(), {})
r.add_header("key", "value")
self.assertDictEqual(r.get_headers(), {"key": "value"})
# location endpoint type
self.assertEqual(r.get_location_endpoint_type(), 'openAPI')
# no set_location_endpoint_type ??
# location_service_code
self.assertEqual(r.get_location_service_code(), None)
r.set_location_service_code('new service code')
self.assertEqual(r.get_location_service_code(), 'new service code')
# method
self.assertEqual(r.get_method(), None)
r.set_method('POST')
self.assertEqual(r.get_method(), 'POST')
# product
self.assertEqual(r.get_product(), 'product')
r.set_product('new-product')
self.assertEqual(r.get_product(), 'new-product')
# protocol_type
self.assertEqual(r.get_protocol_type(), "http")
r.set_protocol_type('https')
self.assertEqual(r.get_protocol_type(), "https")
# query params
self.assertDictEqual(r.get_query_params(), {})
r.set_query_params({'key': 'value'})
self.assertDictEqual(r.get_query_params(), {'key': 'value'})
r.add_query_param("key2", "value2")
self.assertDictEqual(r.get_query_params(), {'key': 'value', "key2": "value2"})
# signed_header
# self.assertEqual(r.get_signed_header("region_id", "access_key_id",
# "access_key_secret"), {})
# r.add_header("x-acs-xxx", "value")
# self.assertDictEqual(r.get_signed_header(), {"x-acs-xxx": "value"})
# style
self.assertEqual(r.get_style(), "ROA")
# uri params
self.assertEqual(r.get_uri_params(), None)
r.set_uri_params({'user': "jacksontian"})
self.assertDictEqual(r.get_uri_params(), {'user': 'jacksontian'})
# uri pattern
self.assertEqual(r.get_uri_pattern(), None)
r.set_uri_pattern('/users/:userid')
self.assertEqual(r.get_uri_pattern(), '/users/:userid')
# version
self.assertEqual(r.get_version(), "version")
r.set_version('2014-10-18')
self.assertEqual(r.get_version(), "2014-10-18")
# user-agent
self.assertEqual(r.get_headers().get('User-Agent'), None)
r.set_user_agent("user-agent")
self.assertEqual(r.get_headers().get('User-Agent'), "user-agent")
# content-type
self.assertEqual(r.get_headers().get('Content-Type'), None)
r.set_content_type("application/json")
self.assertEqual(r.get_headers().get('Content-Type'), "application/json")
# path_params
self.assertEqual(r.get_path_params(), None)
r.add_path_param("userid", "jacksontian")
r.add_path_param("repo", "snow")
self.assertEqual(r.get_path_params(), {"userid": "jacksontian", "repo": "snow"})
r.set_path_params({"userid": "linatian"})
self.assertEqual(r.get_path_params(), {"userid": "linatian"})
def test_roa_request_get_url(self):
r = RoaRequest("product", "version", "action_name")
r.set_uri_pattern('/users/[user]')
r.set_path_params({'user': 'jacksontian'})
url = r.get_url("regionid", "accesskeyid", "secret")
self.assertEqual(url, "/users/jacksontian")
@patch("aliyunsdkcore.utils.parameter_helper.get_rfc_2616_date")
def test_get_signed_header(self, mock_get_rfc_2616_date):
r = RoaRequest("product", "version", "action_name", headers={})
r.set_uri_pattern('/users/[user]')
r.set_path_params({'user': 'jacksontian'})
r.set_method('GET')
mock_get_rfc_2616_date.return_value = "2018-12-04T03:25:29Z"
headers = r.get_signed_header("regionid", "accesskeyid", "secret")
mock_get_rfc_2616_date.assert_called_once_with()
self.assertDictEqual(headers, {
'Accept': 'application/octet-stream',
'Authorization': 'acs accesskeyid:Lq1u0OzLW/uqLQswxwhne97Umlw=',
'Date': '2018-12-04T03:25:29Z',
'x-acs-region-id': 'regionid',
'x-acs-signature-method': 'HMAC-SHA1',
'x-acs-signature-version': '1.0',
'x-acs-version': 'version'
})
r.set_query_params(None)
headers = r.get_signed_header("regionid", "accesskeyid", "secret")
self.assertDictEqual(headers, {
'Accept': 'application/octet-stream',
'Authorization': 'acs accesskeyid:Lq1u0OzLW/uqLQswxwhne97Umlw=',
'Date': '2018-12-04T03:25:29Z',
'x-acs-region-id': 'regionid',
'x-acs-signature-method': 'HMAC-SHA1',
'x-acs-signature-version': '1.0',
'x-acs-version': 'version'
})
r.set_query_params({'RegionId': 'regionid'})
headers = r.get_signed_header("regionid", "accesskeyid", "secret")
self.assertDictEqual(headers, {
'Accept': 'application/octet-stream',
'Authorization': 'acs accesskeyid:Lq1u0OzLW/uqLQswxwhne97Umlw=',
'Date': '2018-12-04T03:25:29Z',
'x-acs-region-id': 'regionid',
'x-acs-signature-method': 'HMAC-SHA1',
'x-acs-signature-version': '1.0',
'x-acs-version': 'version'
})
r.set_content("content")
headers = r.get_signed_header("regionid", "accesskeyid", "secret")
self.assertDictEqual(headers, {
'Accept': 'application/octet-stream',
'Authorization': 'acs accesskeyid:u2RdkokGTtn2BhUmzUNJjVUh448=',
'Content-MD5': 'mgNkuembtIDdJeHwKEyFVQ==',
'Date': '2018-12-04T03:25:29Z',
'x-acs-region-id': 'regionid',
'x-acs-signature-method': 'HMAC-SHA1',
'x-acs-signature-version': '1.0',
'x-acs-version': 'version'
})
def test_common_request(self):
r = CommonRequest()
# accept format
self.assertIsNone(r.get_accept_format())
r.set_accept_format('json')
self.assertEqual(r.get_accept_format(), "json")
# action name
self.assertEqual(r.get_action_name(), None)
r.set_action_name('new action name')
self.assertEqual(r.get_action_name(), "new action name")
# body params
self.assertDictEqual(r.get_body_params(), {})
r.set_body_params({'key': 'value'})
self.assertDictEqual(r.get_body_params(), {'key': 'value'})
r.add_body_params("key2", "value2")
self.assertDictEqual(r.get_body_params(), {'key': 'value', 'key2': 'value2'})
# content
self.assertIsNone(r.get_content())
r.set_content("content")
self.assertEqual(r.get_content(), "content")
# headers
self.assertDictEqual(r.get_headers(), {
'x-acs-action': 'new action name',
'x-sdk-invoke-type': 'common'
})
r.set_headers({})
self.assertDictEqual(r.get_headers(), {})
r.add_header("key", "value")
self.assertDictEqual(r.get_headers(), {"key": "value"})
# location endpoint type
self.assertEqual(r.get_location_endpoint_type(), 'openAPI')
# no set_location_endpoint_type ??
# location_service_code
self.assertEqual(r.get_location_service_code(), None)
r.set_location_service_code('new service code')
self.assertEqual(r.get_location_service_code(), 'new service code')
# method
self.assertEqual(r.get_method(), 'GET')
r.set_method('POST')
self.assertEqual(r.get_method(), 'POST')
# product
self.assertEqual(r.get_product(), None)
r.set_product('new-product')
self.assertEqual(r.get_product(), 'new-product')
# protocol_type
self.assertEqual(r.get_protocol_type(), "http")
r.set_protocol_type('https')
self.assertEqual(r.get_protocol_type(), "https")
# query params
self.assertDictEqual(r.get_query_params(), {})
r.set_query_params({'key': 'value'})
self.assertDictEqual(r.get_query_params(), {'key': 'value'})
r.add_query_param("key2", "value2")
self.assertDictEqual(r.get_query_params(), {'key': 'value', "key2": "value2"})
# uri params
self.assertEqual(r.get_uri_params(), None)
r.set_uri_params({'user': "jacksontian"})
self.assertDictEqual(r.get_uri_params(), {'user': 'jacksontian'})
# uri pattern
self.assertEqual(r.get_uri_pattern(), None)
r.set_uri_pattern('/users/:userid')
self.assertEqual(r.get_uri_pattern(), '/users/:userid')
# url
# version
self.assertEqual(r.get_version(), None)
r.set_version('2014-10-18')
self.assertEqual(r.get_version(), "2014-10-18")
# user-agent
self.assertEqual(r.get_headers().get('User-Agent'), None)
r.set_user_agent("user-agent")
self.assertEqual(r.get_headers().get('User-Agent'), "user-agent")
# content-type
self.assertEqual(r.get_headers().get('Content-Type'), None)
r.set_content_type("application/json")
self.assertEqual(r.get_headers().get('Content-Type'), "application/json")
# domain
self.assertEqual(r.get_domain(), None)
r.set_domain("new-domain")
self.assertEqual(r.get_domain(), "new-domain")
# path_params
self.assertEqual(r.get_path_params(), None)
r.add_path_param("userid", "jacksontian")
r.add_path_param("repo", "snow")
self.assertEqual(r.get_path_params(), {"userid": "jacksontian", "repo": "snow"})
r.set_path_params({"userid": "linatian"})
self.assertEqual(r.get_path_params(), {"userid": "linatian"})
def test_trans_to_acs_request_rpc(self):
r = CommonRequest()
# signed_header
with self.assertRaises(ClientException) as ex:
r.trans_to_acs_request()
self.assertEqual(ex.exception.error_code, "SDK.InvalidParams")
self.assertEqual(ex.exception.message,
"common params [version] is required, cannot be empty")
r.set_version("version")
with self.assertRaises(ClientException) as ex:
r.trans_to_acs_request()
self.assertEqual(ex.exception.error_code, "SDK.InvalidParams")
self.assertEqual(ex.exception.message,
"At least one of [action] and [uri_pattern] has a value")
r.set_action_name('action_name')
with self.assertRaises(ClientException) as ex:
r.trans_to_acs_request()
self.assertEqual(ex.exception.error_code, "SDK.InvalidParams")
self.assertEqual(ex.exception.message,
"At least one of [domain] and [product_name] has a value")
r.set_product('product')
r.trans_to_acs_request()
self.assertEqual(r.get_style(), "RPC")
def test_trans_to_acs_request_to_roa(self):
r = CommonRequest()
# signed_header
with self.assertRaises(ClientException) as ex:
r.trans_to_acs_request()
self.assertEqual(ex.exception.error_code, "SDK.InvalidParams")
self.assertEqual(ex.exception.message,
"common params [version] is required, cannot be empty")
r.set_version("version")
with self.assertRaises(ClientException) as ex:
r.trans_to_acs_request()
self.assertEqual(ex.exception.error_code, "SDK.InvalidParams")
self.assertEqual(ex.exception.message,
"At least one of [action] and [uri_pattern] has a value")
r.set_uri_pattern("/users/:userid")
with self.assertRaises(ClientException) as ex:
r.trans_to_acs_request()
self.assertEqual(ex.exception.error_code, "SDK.InvalidParams")
self.assertEqual(ex.exception.message,
"At least one of [domain] and [product_name] has a value")
r.set_product('product')
r.trans_to_acs_request()
self.assertEqual(r.get_style(), "ROA")
def test_common_request_get_url(self):
r = CommonRequest()
r.set_version("version")
r.set_uri_pattern('/users/[userid]')
r.set_path_params({"userid": "jacksontian"})
r.set_product('product')
r.trans_to_acs_request()
self.assertEqual(r.get_style(), "ROA")
url = r.get_url("regionid", "accesskeyid", "secret")
self.assertEqual(url, "/users/jacksontian")
@patch("aliyunsdkcore.utils.parameter_helper.get_rfc_2616_date")
def test_common_request_get_signed_header(self, mock_get_rfc_2616_date):
r = CommonRequest()
r.set_version("version")
r.set_action_name('action_name')
r.set_uri_pattern('/users/[userid]')
r.set_path_params({"userid": "jacksontian"})
r.set_product('product')
r.trans_to_acs_request()
self.assertEqual(r.get_url("regionid", "accesskeyid", "secret"), "/users/jacksontian")
self.assertEqual(r.get_style(), "ROA")
mock_get_rfc_2616_date.return_value = "2018-12-04T03:25:29Z"
headers = r.get_signed_header("regionid", "accesskeyid", "secret")
mock_get_rfc_2616_date.assert_called_once_with()
self.assertDictEqual(headers, {
'Accept': 'application/octet-stream',
'Authorization': 'acs accesskeyid:j73ZHar0vd0+MGaKFlGK9JyBnEo=',
'Date': '2018-12-04T03:25:29Z',
'x-acs-action': 'action_name',
'x-acs-region-id': 'regionid',
'x-acs-signature-method': 'HMAC-SHA1',
'x-acs-signature-version': '1.0',
'x-acs-version': 'version',
'x-sdk-invoke-type': 'common'
})
| 48.116832
| 99
| 0.608091
| 2,738
| 24,299
| 5.177867
| 0.066837
| 0.038372
| 0.100444
| 0.116597
| 0.932778
| 0.912393
| 0.872258
| 0.852578
| 0.840234
| 0.833039
| 0
| 0.030763
| 0.249516
| 24,299
| 504
| 100
| 48.212302
| 0.746655
| 0.094819
| 0
| 0.829517
| 0
| 0
| 0.246119
| 0.074598
| 0
| 0
| 0
| 0
| 0.409669
| 1
| 0.02799
| false
| 0
| 0.015267
| 0
| 0.045802
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
5a835cf73036a40d967d5d3c66388f58448fa4d6
| 3,663
|
py
|
Python
|
tests/components/heos/test_services.py
|
domwillcode/home-assistant
|
f170c80bea70c939c098b5c88320a1c789858958
|
[
"Apache-2.0"
] | 30,023
|
2016-04-13T10:17:53.000Z
|
2020-03-02T12:56:31.000Z
|
tests/components/heos/test_services.py
|
jagadeeshvenkatesh/core
|
1bd982668449815fee2105478569f8e4b5670add
|
[
"Apache-2.0"
] | 31,101
|
2020-03-02T13:00:16.000Z
|
2022-03-31T23:57:36.000Z
|
tests/components/heos/test_services.py
|
jagadeeshvenkatesh/core
|
1bd982668449815fee2105478569f8e4b5670add
|
[
"Apache-2.0"
] | 11,956
|
2016-04-13T18:42:31.000Z
|
2020-03-02T09:32:12.000Z
|
"""Tests for the services module."""
from pyheos import CommandFailedError, HeosError, const
from homeassistant.components.heos.const import (
ATTR_PASSWORD,
ATTR_USERNAME,
DOMAIN,
SERVICE_SIGN_IN,
SERVICE_SIGN_OUT,
)
from homeassistant.setup import async_setup_component
async def setup_component(hass, config_entry):
"""Set up the component for testing."""
config_entry.add_to_hass(hass)
assert await async_setup_component(hass, DOMAIN, {})
await hass.async_block_till_done()
async def test_sign_in(hass, config_entry, controller):
"""Test the sign-in service."""
await setup_component(hass, config_entry)
await hass.services.async_call(
DOMAIN,
SERVICE_SIGN_IN,
{ATTR_USERNAME: "test@test.com", ATTR_PASSWORD: "password"},
blocking=True,
)
controller.sign_in.assert_called_once_with("test@test.com", "password")
async def test_sign_in_not_connected(hass, config_entry, controller, caplog):
"""Test sign-in service logs error when not connected."""
await setup_component(hass, config_entry)
controller.connection_state = const.STATE_RECONNECTING
await hass.services.async_call(
DOMAIN,
SERVICE_SIGN_IN,
{ATTR_USERNAME: "test@test.com", ATTR_PASSWORD: "password"},
blocking=True,
)
assert controller.sign_in.call_count == 0
assert "Unable to sign in because HEOS is not connected" in caplog.text
async def test_sign_in_failed(hass, config_entry, controller, caplog):
"""Test sign-in service logs error when not connected."""
await setup_component(hass, config_entry)
controller.sign_in.side_effect = CommandFailedError("", "Invalid credentials", 6)
await hass.services.async_call(
DOMAIN,
SERVICE_SIGN_IN,
{ATTR_USERNAME: "test@test.com", ATTR_PASSWORD: "password"},
blocking=True,
)
controller.sign_in.assert_called_once_with("test@test.com", "password")
assert "Sign in failed: Invalid credentials (6)" in caplog.text
async def test_sign_in_unknown_error(hass, config_entry, controller, caplog):
"""Test sign-in service logs error for failure."""
await setup_component(hass, config_entry)
controller.sign_in.side_effect = HeosError()
await hass.services.async_call(
DOMAIN,
SERVICE_SIGN_IN,
{ATTR_USERNAME: "test@test.com", ATTR_PASSWORD: "password"},
blocking=True,
)
controller.sign_in.assert_called_once_with("test@test.com", "password")
assert "Unable to sign in" in caplog.text
async def test_sign_out(hass, config_entry, controller):
"""Test the sign-out service."""
await setup_component(hass, config_entry)
await hass.services.async_call(DOMAIN, SERVICE_SIGN_OUT, {}, blocking=True)
assert controller.sign_out.call_count == 1
async def test_sign_out_not_connected(hass, config_entry, controller, caplog):
"""Test the sign-out service."""
await setup_component(hass, config_entry)
controller.connection_state = const.STATE_RECONNECTING
await hass.services.async_call(DOMAIN, SERVICE_SIGN_OUT, {}, blocking=True)
assert controller.sign_out.call_count == 0
assert "Unable to sign out because HEOS is not connected" in caplog.text
async def test_sign_out_unknown_error(hass, config_entry, controller, caplog):
"""Test the sign-out service."""
await setup_component(hass, config_entry)
controller.sign_out.side_effect = HeosError()
await hass.services.async_call(DOMAIN, SERVICE_SIGN_OUT, {}, blocking=True)
assert controller.sign_out.call_count == 1
assert "Unable to sign out" in caplog.text
| 32.705357
| 85
| 0.723724
| 487
| 3,663
| 5.195072
| 0.147844
| 0.052174
| 0.088933
| 0.118577
| 0.822925
| 0.766008
| 0.766008
| 0.72332
| 0.67668
| 0.67668
| 0
| 0.00199
| 0.176904
| 3,663
| 111
| 86
| 33
| 0.837148
| 0.00819
| 0
| 0.549296
| 0
| 0
| 0.101608
| 0
| 0
| 0
| 0
| 0
| 0.183099
| 1
| 0
| true
| 0.112676
| 0.042254
| 0
| 0.042254
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
ce5b9a13c29b0eb19e65837683b994c20c44cd1c
| 8,510
|
py
|
Python
|
tests/test_attention.py
|
hmms117/alphafold2
|
d59cb1ea536bc5d2e0eee81056d786cb1011ac57
|
[
"MIT"
] | 1,026
|
2020-12-01T06:17:25.000Z
|
2022-03-31T09:20:22.000Z
|
tests/test_attention.py
|
hmms117/alphafold2
|
d59cb1ea536bc5d2e0eee81056d786cb1011ac57
|
[
"MIT"
] | 67
|
2020-12-03T03:02:54.000Z
|
2022-02-21T00:29:40.000Z
|
tests/test_attention.py
|
hmms117/alphafold2
|
d59cb1ea536bc5d2e0eee81056d786cb1011ac57
|
[
"MIT"
] | 177
|
2020-12-01T11:00:37.000Z
|
2022-03-21T05:47:56.000Z
|
import torch
from torch import nn
from einops import repeat
from alphafold2_pytorch.alphafold2 import Alphafold2
from alphafold2_pytorch.utils import *
def test_main():
model = Alphafold2(
dim = 32,
depth = 2,
heads = 2,
dim_head = 32
)
seq = torch.randint(0, 21, (2, 128))
msa = torch.randint(0, 21, (2, 5, 128))
mask = torch.ones_like(seq).bool()
msa_mask = torch.ones_like(msa).bool()
distogram = model(
seq,
msa,
mask = mask,
msa_mask = msa_mask
)
assert True
def test_no_msa():
model = Alphafold2(
dim = 32,
depth = 2,
heads = 2,
dim_head = 32
)
seq = torch.randint(0, 21, (2, 128))
mask = torch.ones_like(seq).bool()
distogram = model(
seq,
mask = mask
)
assert True
def test_anglegrams():
model = Alphafold2(
dim = 32,
depth = 2,
heads = 2,
dim_head = 32,
predict_angles = True
)
seq = torch.randint(0, 21, (2, 128))
msa = torch.randint(0, 21, (2, 5, 128))
mask = torch.ones_like(seq).bool()
msa_mask = torch.ones_like(msa).bool()
ret = model(
seq,
msa,
mask = mask,
msa_mask = msa_mask
)
assert True
def test_templates():
model = Alphafold2(
dim = 32,
depth = 2,
heads = 2,
dim_head = 32,
templates_dim = 32,
templates_angles_feats_dim = 32
)
seq = torch.randint(0, 21, (2, 16))
mask = torch.ones_like(seq).bool()
msa = torch.randint(0, 21, (2, 5, 16))
msa_mask = torch.ones_like(msa).bool()
templates_feats = torch.randn(2, 3, 16, 16, 32)
templates_angles = torch.randn(2, 3, 16, 32)
templates_mask = torch.ones(2, 3, 16).bool()
distogram = model(
seq,
msa,
mask = mask,
msa_mask = msa_mask,
templates_feats = templates_feats,
templates_angles = templates_angles,
templates_mask = templates_mask
)
assert True
def test_extra_msa():
model = Alphafold2(
dim = 128,
depth = 2,
heads = 2,
dim_head = 32,
predict_coords = True
)
seq = torch.randint(0, 21, (2, 4))
mask = torch.ones_like(seq).bool()
msa = torch.randint(0, 21, (2, 5, 4))
msa_mask = torch.ones_like(msa).bool()
extra_msa = torch.randint(0, 21, (2, 5, 4))
extra_msa_mask = torch.ones_like(extra_msa).bool()
coords = model(
seq,
msa,
mask = mask,
msa_mask = msa_mask,
extra_msa = extra_msa,
extra_msa_mask = extra_msa_mask
)
assert True
def test_embeddings():
model = Alphafold2(
dim = 32,
depth = 2,
heads = 2,
dim_head = 32
)
seq = torch.randint(0, 21, (2, 16))
mask = torch.ones_like(seq).bool()
embedds = torch.randn(2, 1, 16, 1280)
# without mask
distogram = model(
seq,
mask = mask,
embedds = embedds,
msa_mask = None
)
# with mask
embedds_mask = torch.ones_like(embedds[..., -1]).bool()
distogram = model(
seq,
mask = mask,
embedds = embedds,
msa_mask = embedds_mask
)
assert True
def test_coords():
model = Alphafold2(
dim = 32,
depth = 2,
heads = 2,
dim_head = 32,
predict_coords = True,
structure_module_depth = 1,
structure_module_heads = 1,
structure_module_dim_head = 1,
)
seq = torch.randint(0, 21, (2, 16))
mask = torch.ones_like(seq).bool()
msa = torch.randint(0, 21, (2, 5, 16))
msa_mask = torch.ones_like(msa).bool()
coords = model(
seq,
msa,
mask = mask,
msa_mask = msa_mask
)
assert coords.shape == (2, 16, 3), 'must output coordinates'
def test_coords_backbone_with_cbeta():
model = Alphafold2(
dim = 32,
depth = 2,
heads = 2,
dim_head = 32,
predict_coords = True,
structure_module_depth = 1,
structure_module_heads = 1,
structure_module_dim_head = 1,
)
seq = torch.randint(0, 21, (2, 16))
mask = torch.ones_like(seq).bool()
msa = torch.randint(0, 21, (2, 5, 16))
msa_mask = torch.ones_like(msa).bool()
coords = model(
seq,
msa,
mask = mask,
msa_mask = msa_mask
)
assert coords.shape == (2, 16, 3), 'must output coordinates'
def test_coords_all_atoms():
model = Alphafold2(
dim = 32,
depth = 2,
heads = 2,
dim_head = 32,
predict_coords = True,
structure_module_depth = 1,
structure_module_heads = 1,
structure_module_dim_head = 1,
)
seq = torch.randint(0, 21, (2, 16))
mask = torch.ones_like(seq).bool()
msa = torch.randint(0, 21, (2, 5, 16))
msa_mask = torch.ones_like(msa).bool()
coords = model(
seq,
msa,
mask = mask,
msa_mask = msa_mask
)
assert coords.shape == (2, 16, 3), 'must output coordinates'
def test_mds():
model = Alphafold2(
dim = 32,
depth = 2,
heads = 2,
dim_head = 32,
predict_coords = True,
structure_module_depth = 1,
structure_module_heads = 1,
structure_module_dim_head = 1,
)
seq = torch.randint(0, 21, (2, 16))
mask = torch.ones_like(seq).bool()
msa = torch.randint(0, 21, (2, 5, 16))
msa_mask = torch.ones_like(msa).bool()
coords = model(
seq,
msa,
mask = mask,
msa_mask = msa_mask
)
assert coords.shape == (2, 16, 3), 'must output coordinates'
def test_edges_to_equivariant_network():
model = Alphafold2(
dim = 32,
depth = 1,
heads = 2,
dim_head = 32,
predict_coords = True,
predict_angles = True
)
seq = torch.randint(0, 21, (2, 32))
mask = torch.ones_like(seq).bool()
msa = torch.randint(0, 21, (2, 5, 32))
msa_mask = torch.ones_like(msa).bool()
coords, confidences = model(
seq,
msa,
mask = mask,
msa_mask = msa_mask,
return_confidence = True
)
assert True, 'should run without errors'
def test_coords_backwards():
model = Alphafold2(
dim = 256,
depth = 2,
heads = 2,
dim_head = 32,
predict_coords = True,
structure_module_depth = 1,
structure_module_heads = 1,
structure_module_dim_head = 1,
)
seq = torch.randint(0, 21, (2, 16))
mask = torch.ones_like(seq).bool()
msa = torch.randint(0, 21, (2, 5, 16))
msa_mask = torch.ones_like(msa).bool()
coords = model(
seq,
msa,
mask = mask,
msa_mask = msa_mask
)
coords.sum().backward()
assert True, 'must be able to go backwards through MDS and center distogram'
def test_confidence():
model = Alphafold2(
dim = 256,
depth = 1,
heads = 2,
dim_head = 32,
predict_coords = True
)
seq = torch.randint(0, 21, (2, 16))
mask = torch.ones_like(seq).bool()
msa = torch.randint(0, 21, (2, 5, 16))
msa_mask = torch.ones_like(msa).bool()
coords, confidences = model(
seq,
msa,
mask = mask,
msa_mask = msa_mask,
return_confidence = True
)
assert coords.shape[:-1] == confidences.shape[:-1]
def test_recycling():
model = Alphafold2(
dim = 128,
depth = 2,
heads = 2,
dim_head = 32,
predict_coords = True,
)
seq = torch.randint(0, 21, (2, 4))
mask = torch.ones_like(seq).bool()
msa = torch.randint(0, 21, (2, 5, 4))
msa_mask = torch.ones_like(msa).bool()
extra_msa = torch.randint(0, 21, (2, 5, 4))
extra_msa_mask = torch.ones_like(extra_msa).bool()
coords, ret = model(
seq,
msa,
mask = mask,
msa_mask = msa_mask,
extra_msa = extra_msa,
extra_msa_mask = extra_msa_mask,
return_aux_logits = True,
return_recyclables = True
)
coords, ret = model(
seq,
msa,
mask = mask,
msa_mask = msa_mask,
extra_msa = extra_msa,
extra_msa_mask = extra_msa_mask,
recyclables = ret.recyclables,
return_aux_logits = True,
return_recyclables = True
)
assert True
| 22.046632
| 80
| 0.544301
| 1,080
| 8,510
| 4.099074
| 0.081481
| 0.096454
| 0.088096
| 0.111362
| 0.834425
| 0.800768
| 0.790377
| 0.766885
| 0.766885
| 0.735713
| 0
| 0.0625
| 0.340071
| 8,510
| 385
| 81
| 22.103896
| 0.725783
| 0.002585
| 0
| 0.776025
| 0
| 0
| 0.020978
| 0
| 0
| 0
| 0
| 0
| 0.044164
| 1
| 0.044164
| false
| 0
| 0.015773
| 0
| 0.059937
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ce9c2ac93d65c2190c3f1a149461bab4415c3c02
| 157
|
py
|
Python
|
tabular_to_image/src/autogluon/tabular_to_image/prediction/__init__.py
|
engsarah2050/autogluon
|
a77d462924dac8f8763635518eadcc523a23e18f
|
[
"Apache-2.0"
] | null | null | null |
tabular_to_image/src/autogluon/tabular_to_image/prediction/__init__.py
|
engsarah2050/autogluon
|
a77d462924dac8f8763635518eadcc523a23e18f
|
[
"Apache-2.0"
] | null | null | null |
tabular_to_image/src/autogluon/tabular_to_image/prediction/__init__.py
|
engsarah2050/autogluon
|
a77d462924dac8f8763635518eadcc523a23e18f
|
[
"Apache-2.0"
] | null | null | null |
from autogluon.tabular_to_image.prediction.predictions import ImagePredictions
#from autogluon.tabular_to_image.prediction.prediction import ImagePredictions
| 78.5
| 78
| 0.910828
| 18
| 157
| 7.722222
| 0.5
| 0.18705
| 0.28777
| 0.316547
| 0.532374
| 0.532374
| 0
| 0
| 0
| 0
| 0
| 0
| 0.044586
| 157
| 2
| 79
| 78.5
| 0.926667
| 0.490446
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
0c771b05650e9efadefc98b1ca851c4d9c04e0e0
| 41,262
|
py
|
Python
|
text_messages/migrations/0002_add_existing_messages.py
|
SmartElect/SmartElect
|
d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8
|
[
"Apache-2.0"
] | 23
|
2015-10-28T14:08:23.000Z
|
2021-09-11T21:38:41.000Z
|
text_messages/migrations/0002_add_existing_messages.py
|
SmartElect/SmartElect
|
d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8
|
[
"Apache-2.0"
] | 4
|
2019-12-05T20:36:10.000Z
|
2020-06-05T18:41:54.000Z
|
text_messages/migrations/0002_add_existing_messages.py
|
SmartElect/SmartElect
|
d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8
|
[
"Apache-2.0"
] | 11
|
2015-10-28T15:49:56.000Z
|
2021-09-14T14:18:36.000Z
|
# -*- coding: utf-8 -*-
from django.db import migrations
from libya_elections.constants import *
from text_messages.utils import maybe_add_message_to_database
def no_op(apps, schema_editor):
pass
def add_existing_messages(apps, schema_editor):
MessageText = apps.get_model("text_messages", "MessageText")
for code in OLD_MESSAGES:
maybe_add_message_to_database(
MessageText,
code,
**OLD_MESSAGES[code]
)
class Migration(migrations.Migration):
dependencies = [
('text_messages', '0001_initial'),
]
operations = [
migrations.RunPython(
add_existing_messages,
no_op,
)
]
# Note: These messages and their current translations were extracted using
# a temporary script that doesn't seem worth keeping around, since we'll
# never do it again. By including the translations here, we can stop
# including these messages in Transifex from here on, which would be
# confusing.
OLD_MESSAGES = {
MESSAGE_1: { 'enhanced_ar': '{person}\u060c \u062a\u0645 \u062a\u0633\u062c\u064a\u0644\u0643 \u0641\u0649 \u0645\u0631\u0643\u0632 {centre}. \u0631\u0642\u0645 \u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u0639 {code}. \u0625\u0630\u0627 \u0643\u0627\u0646 \u0627\u0644\u0645\u0631\u0643\u0632 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d \u0623\u0648 \u062a\u0631\u064a\u062f \u0623\u0646 \u062a\u063a\u064a\u0631\xa0\u0645\u0631\u0643\u0632\u0643\u060c \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629\xa0\u0627\u0644\u062a\u0633\u062c\u064a\u0644 \u0645\u0633\u062a\u062e\u062f\u0645\u0627 \u0646\u0641\u0633 \u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062a\u0641. \u0644\u0644\u062a\u0623\u0643\u062f \u0645\u0646 \u062a\u0633\u062c\u064a\u0644\u0643\u060c \u064a\u0631\u062c\u064a \u0627\u0631\u0633\u0627\u0644 \u0631\u0642\u0645\u0643 \u0627\u0644\u0648\u0637\u0646\u064a \u0625\u0644\u0649 \u0627\u0644\u0631\u0642\u0645 10010. \u0644\u0644\u0645\u0633\u0627\u0639\u062f\u0629 \u0627\u062a\u0635\u0644 \u0628\u0627\u0644\u0631\u0642\u0645 1441. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 1)',
'enhanced_en': '{person}, we have registered you at {centre}. The Election Center Number is {code}. If this is incorrect or you wish to change your registration, please resubmit using this phone number. If you need help, call 1441. (message number 1)',
'label': 'MESSAGE_1',
'msg_ar': '{person}\u060c \u062a\u0645 \u062a\u0633\u062c\u064a\u0644\u0643 \u0641\u0649 \u0645\u0631\u0643\u0632 {centre}. \u0631\u0642\u0645 \u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u0639 {code}. \u0625\u0630\u0627 \u0643\u0627\u0646 \u0627\u0644\u0645\u0631\u0643\u0632 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d \u0623\u0648 \u062a\u0631\u064a\u062f \u0623\u0646 \u062a\u063a\u064a\u0631\xa0\u0645\u0631\u0643\u0632\u0643\u060c \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629\xa0\u0627\u0644\u062a\u0633\u062c\u064a\u0644 \u0645\u0633\u062a\u062e\u062f\u0645\u0627 \u0646\u0641\u0633 \u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062a\u0641. \u0644\u0644\u062a\u0623\u0643\u062f \u0645\u0646 \u062a\u0633\u062c\u064a\u0644\u0643\u060c \u064a\u0631\u062c\u064a \u0627\u0631\u0633\u0627\u0644 \u0631\u0642\u0645\u0643 \u0627\u0644\u0648\u0637\u0646\u064a \u0625\u0644\u0649 \u0627\u0644\u0631\u0642\u0645 10010. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 1)',
'msg_en': '{person}, we have registered you at {centre}. The Election Center Number is {code}. If this is incorrect or you wish to change your registration, please resubmit using this phone number. (message number 1)'},
MESSAGE_2: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'MESSAGE_2',
'msg_ar': '\u0639\u0641\u0648\u0627\u064b\u060c \u0647\u0630\u0627 \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a \u0645\u0633\u062c\u0644 \u0641\u064a \u0645\u0631\u0643\u0632 {centre}\u060c \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0631\u0642\u0645 \u0647\u0627\u062a\u0641 \u064a\u0646\u062a\u0647\u064a \u0628\u0640 {number}. \u0644\u062a\u062d\u062f\u064a\u062b \u062a\u0633\u062c\u064a\u0644\u0643 \u064a\u062c\u0628 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0646\u0641\u0633 \u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062a\u0641. \u0625\u0646 \u0643\u0646\u062a \u0644\u0627 \u062a\u0645\u0644\u0643 \u0647\u0630\u0627 \u0627\u0644\u0631\u0642\u0645 \u0623\u0648 \u062a\u062d\u062a\u0627\u062c \u0644\u0645\u0633\u0627\u0639\u062f\u0629 \u0627\u062a\u0635\u0644 \u0628\u0627\u0644\u0631\u0642\u0645 1441. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 3)',
'msg_en': 'Sorry, this NID is already registered at {centre} with a phone ending in {number}. You must use this phone to re-register. If you do not have access to this phone or need help, call 1441. (message number 3)'},
MESSAGE_4: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'MESSAGE_4',
'msg_ar': '{person}\u060c \u0642\u062f \u0642\u0645\u062a \u0628\u062a\u063a\u064a\u064a\u0631 \u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u0639 \u0625\u0644\u0649 \u0645\u0631\u0643\u0632 {centre}. \u062a\u0628\u0642\u064a \u0644\u062f\u064a\u0643 \u0641\u0631\u0635\u0629 \u0648\u0627\u062d\u062f\u0629\xa0\u0641\u0642\u0637\xa0\u0644\u062a\u063a\u064a\u064a\u0631 \u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u0639 \u0639\u0646 \u0637\u0631\u064a\u0642 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0627\u0644\u0646\u0635\u064a\u0629. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 4)',
'msg_en': '{person}, you have changed your polling center to {centre}. You may change your polling center only one more time by SMS. (message number 4)'},
MESSAGE_5: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'MESSAGE_5',
'msg_ar': '{person}\u060c \u0642\u062f \u0642\u0645\u062a \u0628\u062a\u063a\u064a\u064a\u0631 \u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u0639 \u0625\u0644\u0649 \u0645\u0631\u0643\u0632 {centre}. \u0644\u0644\u0645\u0633\u0627\u0639\u062f\u0629 \u0627\u062a\u0635\u0644 \u0628\u0627\u0644\u0631\u0642\u0645 1441. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 5)',
'msg_en': '{person}, you have changed your Election Center to {centre}. If you want to change your Election Center again, you must go to the Election Center you wish to vote at in person during the Addition and Amendments Period. (message number 5)'},
MESSAGE_6: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'MESSAGE_6',
'msg_ar': '{person}\u060c \u062a\u0645 \u062a\u0633\u062c\u064a\u0644\u0643 \u0641\u0649 \u0645\u0631\u0643\u0632 {centre}. \u0631\u0642\u0645 \u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u0639 {code}. \u0625\u0630\u0627 \u0643\u0627\u0646 \u0627\u0644\u0645\u0631\u0643\u0632 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d \u0623\u0648 \u062a\u0631\u064a\u062f \u0623\u0646 \u062a\u063a\u064a\u0631 \u0645\u0631\u0643\u0632\u0643\u060c \u064a\u0631\u062c\u064a \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0627\u0644\u0631\u0642\u0645 1441. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 6)',
'msg_en': '{person}, we have registered you at {centre} with Election Center Number {code}. If this is incorrect or you need to change your Election Center, you must go to the Election Center you wish to vote at in person during the Addition and Amendments Period. (message number 6)'},
RESPONSE_CENTER_ID_INVALID: { 'enhanced_ar': '\u0631\u0642\u0645 \u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u0639 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d. \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629. \u0644\u0644\u0645\u0633\u0627\u0639\u062f\u0629 \u0627\u062a\u0635\u0644 \u0628\u0627\u0644\u0631\u0642\u0645 1441. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 8)',
'enhanced_en': 'ECN code is incorrect. Please try again with correct polling center number. If you need help, call 1441. (message number 8)',
'label': 'RESPONSE_CENTER_ID_INVALID',
'msg_ar': '\u0631\u0642\u0645 \u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u0639 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d. \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629',
'msg_en': 'EC Number is incorrect. Please try again with correct polling center number.'},
RESPONSE_NID_INVALID: { 'enhanced_ar': '\u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a \u0627\u0644\u0645\u0631\u0633\u0644 \u0644\u0627 \u064a\u0633\u0645\u062d \u0644\u0643 \u0628\u0627\u0644\u062a\u0633\u062c\u064a\u0644. \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629. \u0644\u0644\u0645\u0633\u0627\u0639\u062f\u0629 \u0627\u062a\u0635\u0644 \u0628\u0627\u0644\u0631\u0642\u0645 1441. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 9)',
'enhanced_en': 'The NID is not able to be registered. Please retry. If you need help, call 1441. (message number 9)',
'label': 'RESPONSE_NID_INVALID',
'msg_ar': '\u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a \u0627\u0644\u0645\u0631\u0633\u0644 \u0644\u0627 \u064a\u0633\u0645\u062d \u0644\u0643 \u0628\u0627\u0644\u062a\u0633\u062c\u064a\u0644. \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629',
'msg_en': 'The NID is not able to be registered. Please retry.'},
RESPONSE_NID_WRONG_LENGTH: { 'enhanced_ar': '\u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a\xa012\xa0\u062e\u0627\u0646\u0629 \u0641\u0642\u0637. \u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0646 \u062c\u062f\u064a\u062f.\xa0\u064a\u062c\u0628 \u0623\u0646 \u064a\u0643\u0648\u0646 \u0634\u0643\u0644 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0627\u0644\u0646\u0635\u064a\u0629: \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a#\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u0643\u0632. \u0644\u0644\u062a\u0623\u0643\u062f \u0645\u0646 \u0627\u0644\u062a\u0633\u062c\u064a\u0644\u060c \u0627\u0631\u0633\u0644 \u0631\u0642\u0645\u0643 \u0627\u0644\u0648\u0637\u0646\u064a \u0641\u0642\u0637. \u0644\u0644\u0645\u0633\u0627\u0639\u062f\u0629 \u0627\u062a\u0635\u0644 \u0628\u0627\u0644\u0631\u0642\u0645 1441. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 10)',
'enhanced_en': 'NID is 12 digits. Please try again. Message should look like (NID)#(ECN). If you need help, call 1441. (message number 10)',
'label': 'RESPONSE_NID_WRONG_LENGTH',
'msg_ar': '\u0644\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a\xa012\xa0\u062e\u0627\u0646\u0629 \u0641\u0642\u0637. \u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0646 \u062c\u062f\u064a\u062f.\xa0\u064a\u062c\u0628 \u0623\u0646 \u064a\u0643\u0648\u0646 \u0634\u0643\u0644 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0627\u0644\u0646\u0635\u064a\u0629: \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a#\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u0643\u0632. \u0644\u0644\u062a\u0623\u0643\u062f \u0645\u0646 \u0627\u0644\u062a\u0633\u062c\u064a\u0644\u060c \u0627\u0631\u0633\u0644 \u0631\u0642\u0645\u0643 \u0627\u0644\u0648\u0637\u0646\u064a \u0641\u0642\u0637.',
'msg_en': 'NID is 12 digits. Please try again. Message should look like (NID)#(ECN).'},
RESPONSE_CENTER_ID_WRONG_LENGTH: { 'enhanced_ar': '\u0644\u0631\u0642\u0645 \u0645\u0631\u0643\u0632\xa0\u0627\u0644\u0627\u0642\u062a\u0631\u0627\u0639 5\xa0\u062e\u0627\u0646\u0627\u062a \u0641\u0642\u0637. \u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0646 \u062c\u062f\u064a\u062f. \u064a\u062c\u0628 \u0623\u0646 \u064a\u0643\u0648\u0646\xa0\u0634\u0643\u0644 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0627\u0644\u0646\u0635\u064a\u0629: \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a#\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u0643\u0632. \u0644\u0644\u0645\u0633\u0627\u0639\u062f\u0629 \u0627\u062a\u0635\u0644 \u0628\u0627\u0644\u0631\u0642\u0645 1441. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 11)',
'enhanced_en': 'ECN is 5 digits. Please try again. Message should look like (NID)#(ECN). If you need help, call 1441. (message number 11)',
'label': 'RESPONSE_CENTER_ID_WRONG_LENGTH',
'msg_ar': '\u0644\u0631\u0642\u0645 \u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u0639 \xa05\xa0\u062e\u0627\u0646\u0627\u062a \u0641\u0642\u0637. \u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0646 \u062c\u062f\u064a\u062f.\xa0\xa0\u064a\u062c\u0628 \u0623\u0646 \u064a\u0643\u0648\u0646 \u0634\u0643\u0644 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0627\u0644\u0646\u0635\u064a\u0629: \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a#\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u0643\u0632',
'msg_en': 'ECN is 5 digits. Please try again. Message should look like (NID)#(ECN).'},
RESPONSE_ONE_NUMBER: { 'enhanced_ar': '\u0644\u0644\u062a\u0633\u062c\u064a\u0644\xa0\u064a\u062c\u0628 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a \u0648\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u0643\u0632. \u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0646 \u062c\u062f\u064a\u062f. \u064a\u062c\u0628 \u0623\u0646 \u064a\u0643\u0648\u0646 \u0634\u0643\u0644 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0627\u0644\u0646\u0635\u064a\u0629: \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a#\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u0643\u0632. \u0644\u0644\u0645\u0633\u0627\u0639\u062f\u0629 \u0627\u062a\u0635\u0644 \u0628\u0627\u0644\u0631\u0642\u0645 1441. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 12)',
'enhanced_en': 'NID and ECN are required. Please try again. Message should look like (NID)#(ECN). If you need help, call 1441. (message number 12)',
'label': 'RESPONSE_ONE_NUMBER',
'msg_ar': '\u0644\u0644\u062a\u0633\u062c\u064a\u0644\xa0\u064a\u062c\u0628 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a \u0648\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u0643\u0632. \u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0646 \u062c\u062f\u064a\u062f. \u064a\u062c\u0628 \u0623\u0646 \u064a\u0643\u0648\u0646 \u0634\u0643\u0644 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0627\u0644\u0646\u0635\u064a\u0629: \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a#\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u0643\u0632. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 12)',
'msg_en': 'NID and ECN are required. Please try again. Message should look like (NID)#(ECN). (message number 12)'},
RESPONSE_SERVER_ERROR: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'RESPONSE_SERVER_ERROR',
'msg_ar': '\u0646\u0623\u0633\u0641\u060c \u0627\u0644\u0645\u0646\u0638\u0648\u0645\u0629 \u0645\u0634\u063a\u0648\u0644\u0629 \u062d\u0627\u0644\u064a\u0627\u060c \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u0627. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 13)',
'msg_en': 'The Network is busy, please try again. (message number 13)'},
MESSAGE_INCORRECT: { 'enhanced_ar': '\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d\u0629. \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0646 \u062c\u062f\u064a\u062f\u060c \u0644\u0644\u062a\u0633\u062c\u064a\u0644 \u0627\u0631\u0633\u0644 (\u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a#\u0631\u0642\u0645 \u0645\u0631\u0643\u0632). \u0644\u0644\u062a\u0623\u0643\u062f \u0645\u0646 \u0627\u0644\u062a\u0633\u062c\u064a\u0644\u060c \u0627\u0631\u0633\u0644 \u0631\u0642\u0645\u0643 \u0627\u0644\u0648\u0637\u0646\u064a \u0641\u0642\u0637. \u0644\u0644\u0645\u0633\u0627\u0639\u062f\u0629 \u0627\u062a\u0635\u0644 \u0628\u0627\u0644\u0631\u0642\u0645 1441. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 14)',
'enhanced_en': 'Message incorrect, please try again. Message should look like (NID)#(ECN). If you need help, call 1441. (message number 14)',
'label': 'MESSAGE_INCORRECT',
'msg_ar': '\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d\u0629. \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0646 \u062c\u062f\u064a\u062f\u060c \u0644\u0644\u062a\u0633\u062c\u064a\u0644\u060c \u0627\u0631\u0633\u0644 (\u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a#\u0631\u0642\u0645 \u0645\u0631\u0643\u0632). \u0644\u0644\u062a\u0623\u0643\u062f \u0645\u0646 \u0627\u0644\u062a\u0633\u062c\u064a\u0644 \u0627\u0631\u0633\u0644 \u0631\u0642\u0645\u0643 \u0627\u0644\u0648\u0637\u0646\u064a \u0641\u0642\u0637. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 14)',
'msg_en': 'Message incorrect, please try again. Message should look like (NID)#(ECN). (message number 14)'},
REGISTRATION_NOT_OPEN: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'REGISTRATION_NOT_OPEN',
'msg_ar': '\u0646\u0622\u0633\u0641\u060c \u0645\u0631\u062d\u0644\u0629 \u0627\u0644\u062a\u0633\u062c\u064a\u0644 \u0639\u0646 \u0637\u0631\u064a\u0642 \u0627\u0644\u0631\u0633\u0627\u0626\u0644 \u0627\u0644\u0646\u0635\u064a\u0629 \u0644\u064a\u0633\u062a \u0645\u062a\u0627\u062d\u0629. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 31)',
'msg_en': 'Sorry, registration via SMS is not currently open. (message number 31)'},
VOTER_QUERY_INVALID_FORMAT: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'VOTER_QUERY_INVALID_FORMAT',
'msg_ar': '\u0646\u0623\u0633\u0641\u060c \u0645\u0631\u062d\u0644\u0629 \u0627\u0644\u062a\u0633\u062c\u064a\u0644 \u0639\u0628\u0631 \u0627\u0644\u0631\u0633\u0627\u0626\u0644 \u0627\u0644\u0646\u0635\u064a\u0629 \u0627\u0644\u0642\u0635\u064a\u0631\u0629 \u0642\u062f \u0625\u0646\u062a\u0647\u062a. \u0644\u0644\u062a\u0622\u0643\u062f \u0645\u0646 \u062a\u0633\u062c\u064a\u0644\u0643\u060c \u0623\u0631\u0633\u0644 \u0631\u0642\u0645\u0643 \u0627\u0644\u0648\u0637\u0646\u064a \u0641\u0642\u0637. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 40)',
'msg_en': 'sms registration is over. to check your registration send your national id to this number. (message number 40)'},
VOTER_QUERY_NOT_FOUND: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'VOTER_QUERY_NOT_FOUND',
'msg_ar': '\u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a \u0627\u0644\u0645\u0631\u0633\u0644 \u0644\u0627 \u064a\u0633\u0645\u062d \u0644\u0643 \u0628\u0627\u0644\u062a\u0633\u062c\u064a\u0644. \u0627\u0644\u0631\u062c\u0627\u0621\xa0 \u0627\u0644\u062a\u0623\u0643\u062f \u0645\u0646 \u0631\u0642\u0645\u0643 \u0627\u0644\u0648\u0637\u0646\u0649 \u0648\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 41)',
'msg_en': 'National id was not found. (message number 41)'},
VOTER_QUERY_NOT_REGISTERED: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'VOTER_QUERY_NOT_REGISTERED',
'msg_ar': '{person}, \u0623\u0646\u062a \u063a\u064a\u0631 \u0645\u0633\u062c\u0644. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 42)',
'msg_en': '{person}, you are not registered to vote. (message number 42)'},
VOTER_QUERY_PROBLEM_ENCOUNTERED: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'VOTER_QUERY_PROBLEM_ENCOUNTERED',
'msg_ar': '\u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u0627. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 43)',
'msg_en': 'There is problem with your registration, please visit the registration center in which you would like to register. (message number 43)'},
VOTER_QUERY_REGISTERED_AT: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'VOTER_QUERY_REGISTERED_AT',
'msg_ar': '{person}, \u062a\u0645 \u062a\u0633\u062c\u064a\u0644\u0643 \u0641\u064a \u0645\u0631\u0643\u0632 {centre}. \u0631\u0642\u0645 \u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u0639 {code}. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 44)',
'msg_en': '{person}, we have registered you at {centre}. The Election Center Number is {code}. (message number 44)'},
VOTER_QUERY_NID_WRONG_LENGTH: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'VOTER_QUERY_NID_WRONG_LENGTH',
'msg_ar': '\u0644\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a 12 \u062e\u0627\u0646\u0629 \u0641\u0642\u0637. \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0646 \u062c\u062f\u064a\u062f \u064a\u062c\u0628 \u0623\u0646 \u064a\u0643\u0648\u0646 \u0634\u0643\u0644 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0627\u0644\u0646\u0635\u064a\u0629: \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 45)',
'msg_en': 'NID is 12 digits. Please try again. Message should look like (NID). (message number 45)'},
FBRN_MISMATCH: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'FBRN_MISMATCH',
'msg_ar': '\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u0649 \u0648\u0631\u0642\u0645 \u0642\u064a\u062f \u0627\u0644\u0639\u0627\u0626\u0644\u0629 \u063a\u064a\u0631 \u0645\u062a\u0637\u0627\u0628\u0642\u0629. \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0635\u062d\u064a\u062d \u0644\u0643\u0644\u0627\u064b \u0645\u0646 \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u0649 \u0648\u0631\u0642\u0645 \u0642\u064a\u062f \u0627\u0644\u0639\u0627\u0626\u0644\u0629. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 49)',
'msg_en': 'National ID and Family Book Record Number do not match. Please resubmit with a valid National ID and Family Book Record Number. (message number 49)'},
BLACKLISTED_NUMBER: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'BLACKLISTED_NUMBER',
'msg_ar': '\u0647\u0630\u0627 \u0627\u0644\u0631\u0642\u0645 \u0641\u0649 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0645\u0645\u0646\u0648\u0639\u0629\u060c \u0644\u0627 \u064a\u0645\u0643\u0646\u0643 \u0627\u0644\u062f\u062e\u0648\u0644 \u0644\u0647\u0630\u0647 \u0627\u0644\u062e\u062f\u0645\u0629. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 50)',
'msg_en': 'This number is blacklisted. (message number 50)'},
NOT_WHITELISTED_NUMBER: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'NOT_WHITELISTED_NUMBER',
'msg_ar': '\u0647\u0630\u0627 \u0627\u0644\u0631\u0642\u0645 \u0644\u0627 \u064a\u0648\u062c\u062f \u0636\u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0645\u0633\u0645\u0645\u0648\u062d \u0628\u0647\u0627 \u0644\u0644\u062f\u062e\u0648\u0644 \u0644\u0647\u0630\u0647 \u0627\u0644\u062e\u062f\u0645\u0629. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 51)',
'msg_en': 'This number is not on the whitelist. (message number 51)'},
CENTER_NOT_ACCEPTING_REGISTRATIONS: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'CENTER_NOT_ACCEPTING_REGISTRATIONS',
'msg_ar': '\u0631\u0642\u0645 \u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0646\u062a\u062e\u0627\u0628 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d. \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629. \u0627\u0644\u062a\u0633\u062c\u064a\u0644 \u0645\u0633\u0645\u0648\u062d \u0641\u0642\u0637 \u0644\u0645\u0642\u0627\u0639\u062f \u0627\u0644\u0623\u0645\u0627\u0632\u064a\u063a. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 52)',
'msg_en': 'ECN is incorrect. Please try again with correct polling center number. This registration is only for amazigh seats. (message number 52)'},
REMINDER_CHECKIN: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'REMINDER_CHECKIN',
'msg_ar': '\u0644\u0645 \u064a\u062a\u0645 \u0625\u0633\u062a\u0644\u0627\u0645 \u062a\u0642\u0631\u064a\u0631 \u0627\u0644\u0627\u0641\u062a\u062a\u0627\u062d \u0627\u0644\u062e\u0627\u0635 \u0628\u0647\u0630\u0627 \u0627\u0644\u0645\u0631\u0643\u0632. \u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0631\u0633\u0627\u0644 \u0627\u0644\u062a\u0642\u0631\u064a\u0631 \u0631\u0642\u0645 {message_number} \u0625\u0644\u0649 \u0627\u0644\u0631\u0642\u0645 10030 \u0641\u0648\u0631\u0627\u064b\u064b. \u0627\u0644\u062a\u0630\u0643\u064a\u0631 \u0631\u0642\u0645 {reminder_number}. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 54)',
'msg_en': 'Your centre has yet to check in, please submit message {message_number} immediately. This is reminder {reminder_number}. (message number 54)'},
REMINDER_REPORT: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'REMINDER_REPORT',
'msg_ar': '\u0644\u0645 \u064a\u062a\u0645 \u0625\u0633\u062a\u0644\u0627\u0645 \u0627\u0644\u062a\u0642\u0631\u064a\u0631 \u0627\u0644\u062e\u0627\u0635 \u0628\u0639\u062f\u062f \u0627\u0644\u0645\u0642\u062a\u0631\u0639\u064a\u0646 \u062d\u062a\u0649 \u062d\u064a\u0646\u0647. \u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0631\u0633\u0627\u0644 \u0627\u0644\u062a\u0642\u0631\u064a\u0631 \u0631\u0642\u0645 {message_number} \u0625\u0644\u0649 \u0627\u0644\u0631\u0642\u0645 10050 \u0641\u0648\u0631\u0627\u064b\u064b. \u0627\u0644\u062a\u0630\u0643\u064a\u0631 \u0631\u0642\u0645 {reminder_number}. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 55)',
'msg_en': 'Your centre has yet to report the number of persons who have voted so far. Please submit message {message_number} immediately. This is reminder {reminder_number}. (message number 55)'},
REMINDER_LAST_REPORT: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'REMINDER_LAST_REPORT',
'msg_ar': '\u0644\u0645 \u064a\u062a\u0645 \u0625\u0633\u062a\u0644\u0627\u0645 \u0627\u0644\u062a\u0642\u0631\u064a\u0631 \u0627\u0644\u062e\u0627\u0635 \u0628\u0639\u062f\u062f \u0627\u0644\u0645\u0642\u062a\u0631\u0639\u064a\u0646 \u062d\u062a\u0649 \u062d\u064a\u0646\u0647. \u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0631\u0633\u0627\u0644 \u0627\u0644\u062a\u0642\u0631\u064a\u0631 \u0631\u0642\u0645 {message_number} \u0625\u0644\u0649 \u0627\u0644\u0631\u0642\u0645 10050 \u0641\u0648\u0631\u0627\u064b\u064b. \u0627\u0644\u062a\u0630\u0643\u064a\u0631 \u0631\u0642\u0645 {reminder_number}. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 56)',
'msg_en': 'Your centre has yet to report the number of persons who voted. Please submit message {message_number} immediately. This is reminder {reminder_number}. (message number 56)'},
REMINDER_CLOSE: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'REMINDER_CLOSE',
'msg_ar': '\u0644\u0645 \u064a\u062a\u0645 \u0625\u0633\u062a\u0644\u0627\u0645 \u0627\u0644\u062a\u0642\u0631\u064a\u0631 \u0627\u0644\u062e\u0627\u0635 \u0628\u0627\u0646\u062a\u0647\u0627\u0621 \u0627\u0644\u0639\u062f \u0648\u0627\u0644\u0627\u063a\u0644\u0627\u0642 \u062d\u062a\u0649 \u062d\u064a\u0646\u0647. \u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0631\u0633\u0627\u0644 \u0627\u0644\u062a\u0642\u0631\u064a\u0631 \u0631\u0642\u0645 {message_number} \u0625\u0644\u0649 \u0627\u0644\u0631\u0642\u0645 10050 \u0641\u0648\u0631\u0627\u064b\u064b. \u0627\u0644\u062a\u0630\u0643\u064a\u0631 \u0631\u0642\u0645 {reminder_number}. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 57)',
'msg_en': 'Your centre has yet to report that it has closed and the final number of persons who voted. Please submit message {message_number} immediately. This is reminder {reminder_number}. (message number 57)'},
TOO_MANY_REGISTRATIONS_ON_PHONE: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'TOO_MANY_REGISTRATIONS_ON_PHONE',
'msg_ar': 'No more registrations can be made from this phone number. The maximum is {maximum}. Please register from another phone. (Message number 71)',
'msg_en': 'No more registrations can be made from this phone number. The maximum is {maximum}. Please register from another phone. (Message number 71)'},
AT_MAXIMUM_REGISTRATIONS_ON_PHONE: { 'enhanced_ar': '{person}, we have registered you at {centre}. The Election Center Number is {code}. If this is incorrect or you wish to change your registration, please resubmit using this phone number. No more registrations can be made from this phone number. If you need help, call 1441. (message number 72)',
'enhanced_en': '{person}, we have registered you at {centre}. The Election Center Number is {code}. If this is incorrect or you wish to change your registration, please resubmit using this phone number. No more registrations can be made from this phone number. If you need help, call 1441. (message number 72)',
'label': 'AT_MAXIMUM_REGISTRATIONS_ON_PHONE',
'msg_ar': '{person}, we have registered you at {centre}. The Election Center Number is {code}. If this is incorrect or you wish to change your registration, please resubmit using this phone number. No more registrations can be made from this phone number. (message number 72)',
'msg_en': '{person}, we have registered you at {centre}. The Election Center Number is {code}. If this is incorrect or you wish to change your registration, please resubmit using this phone number. No more registrations can be made from this phone number. (message number 72)'},
ONE_MORE_REGISTRATION_ON_PHONE: { 'enhanced_ar': '{person}, we have registered you at {centre}. The Election Center Number is {code}. If this is incorrect or you wish to change your registration, please resubmit using this phone number. Only one more registration can be made from this phone. If you need help, call 1441. (message number 73)',
'enhanced_en': '{person}, we have registered you at {centre}. The Election Center Number is {code}. If this is incorrect or you wish to change your registration, please resubmit using this phone number. Only one more registration can be made from this phone. If you need help, call 1441. (message number 73)',
'label': 'ONE_MORE_REGISTRATION_ON_PHONE',
'msg_ar': '{person}, we have registered you at {centre}. The Election Center Number is {code}. If this is incorrect or you wish to change your registration, please resubmit using this phone number. Only one more registration can be made from this phone. (message number 73)',
'msg_en': '{person}, we have registered you at {centre}. The Election Center Number is {code}. If this is incorrect or you wish to change your registration, please resubmit using this phone number. Only one more registration can be made from this phone. (message number 73)'},
POLLING_NOT_OPEN: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'POLLING_NOT_OPEN',
'msg_ar': 'Polling period is not open. (message number 74)',
'msg_en': 'Polling period is not open. (message number 74)'},
POLLING_REPORT_INVALID: { 'enhanced_ar': 'Message incorrect, please try again. Message should look like (CenterNum#PeriodNum#NumVoters). If you need help, please call your district office. (message number 75)',
'enhanced_en': 'Message incorrect, please try again. Message should look like (CenterNum#PeriodNum#NumVoters). If you need help, please call your district office. (message number 75)',
'label': 'POLLING_REPORT_INVALID',
'msg_ar': 'Message incorrect, please try again. Message should look like (CenterNum#PeriodNum#NumVoters). (message number 75)',
'msg_en': 'Message incorrect, please try again. Message should look like (CenterNum#PeriodNum#NumVoters). (message number 75)'},
PHONE_NOT_ACTIVATED: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'PHONE_NOT_ACTIVATED',
'msg_ar': '\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d\u0629. \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0646 \u062c\u062f\u064a\u062f\u060c \u0644\u0644\u062a\u0633\u062c\u064a\u0644\u060c \u0627\u0631\u0633\u0644 (\u0631\u0642\u0645 \u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u0639#\u0631\u0642\u0645 \u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u0639) \u0625\u0644\u0649 \u0627\u0644\u0631\u0642\u0645 10030. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 76)',
'msg_en': 'This phone is not currently registered to an election center. Please register this phone by sending an SMS to 10030 with ECN#ECN. (message number 76)'},
PHONE_ACTIVATED: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'PHONE_ACTIVATED',
'msg_ar': '\u0634\u0643\u0631\u0627\u064b \u0644\u062a\u0633\u062c\u064a\u0644\u0643 \u0627\u0644\u0647\u0627\u062a\u0641 {number} \u0628\u0647\u0630\u0627 \u0627\u0644\u0645\u0631\u0643\u0632 {code} \u060c \u0625\u0630\u0627 \u0643\u0646\u062a \u062a\u0631\u064a\u062f \u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u0645\u0631\u0643\u0632 \u0644\u0647\u0630\u0627 \u0627\u0644\u0647\u0627\u062a\u0641\u060c \u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0645\u0643\u062a\u0628 \u0627\u0644\u0644\u062c\u0646\u0629 \u0627\u0644\u0627\u0646\u062a\u062e\u0627\u0628\u064a\u0629 \u0627\u0644\u062a\u0627\u0628\u0639 \u0644\u0647\u0627. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 77)',
'msg_en': 'Thank you for registering your phone {number} to center {code}. If you want to change the center of this phone, please call your District Office. (message number 77)'},
INVALID_CENTER_ID: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'INVALID_CENTER_ID',
'msg_ar': '\u0631\u0642\u0645\xa0\u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0646\u062a\u062e\u0627\u0628\xa0\u063a\u064a\u0631 \u0635\u0627\u0644\u062d. \u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0646 \u062c\u062f\u064a\u062f. \u0644\u0631\u0642\u0645\xa0\u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0646\u062a\u062e\u0627\u0628\xa05 \u062e\u0627\u0646\u0627\u062a \u0641\u0642\u0637. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 78)',
'msg_en': 'ECN is not recognized. Please try again. ECN is 5 digits. (message number 78)'},
POLLING_REPORT_PHONE_UNAUTHORIZED: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'POLLING_REPORT_PHONE_UNAUTHORIZED',
'msg_ar': '\u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u0646\u062a\u062e\u0627\u0628 {code} \u0647\u0630\u0627 \u063a\u064a\u0631 \u0645\u062f\u0631\u062c \u0641\u064a \u0647\u0630\u0627 \u0627\u0644\u0647\u0627\u062a\u0641. \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0633\u062c\u064a\u0644 \u0645\u0633\u062a\u062e\u062f\u0645\u0627\u064b \u0631\u0642\u0645 \u0645\u0631\u0643\u0632 \u0627\u0646\u062a\u062e\u0627\u0628 \u0635\u062d\u064a\u062d \u0623\u0648\xa0\u0642\u064f\u0645 \u0628\u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u0647\u0627\u062a\u0641 \u0639\u0646 \u0637\u0631\u064a\u0642 \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0645\u0643\u062a\u0628 \u0627\u0644\u0644\u062c\u0646\u0629 \u0627\u0644\u0627\u0646\u062a\u062e\u0627\u0628\u064a\u0629 \u0627\u0644\u062a\u0627\u0628\u0639 \u0644\u0647\u0627. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 79)',
'msg_en': 'This center {code} is not registered to this phone. Please resubmit using the correct ECN or change the center registered to this phone by calling your district office. (message number 79)'},
POLLING_REPORT_RECEIVED: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'POLLING_REPORT_RECEIVED',
'msg_ar': 'Centre {code} reports {n_voters} voters so far ({turnout:.0%} turnout). If this is incorrect, resubmit. (message number 81)',
'msg_en': 'Centre {code} reports {n_voters} voters so far ({turnout:.0%} turnout). If this is incorrect, resubmit. (message number 81)'},
POLLING_REPORT_CENTER_MISMATCH: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'POLLING_REPORT_CENTER_MISMATCH',
'msg_ar': '\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d\u0629. \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0646 \u062c\u062f\u064a\u062f \u064a\u062c\u0628 \u0623\u0646 \u064a\u0643\u0648\u0646 \u0634\u0643\u0644 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0627\u0644\u0646\u0635\u064a\u0629: \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a#\u0631\u0642\u0645 \u0645\u0631\u0643\u0632. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 82)',
'msg_en': 'Message incorrect. Message must include the same ECN twice. Message should look like ECN#ECN. (message number 82)'},
SERVER_ERROR: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'SERVER_ERROR',
'msg_ar': '\u0646\u0623\u0633\u0641\u060c \u0627\u0644\u0645\u0646\u0638\u0648\u0645\u0629 \u0645\u0634\u063a\u0648\u0644\u0629 \u062d\u0627\u0644\u064a\u0627\u060c \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u0627. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 83)',
'msg_en': 'The Network is busy, please try again. (message number 83)'},
NID_INVALID: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'NID_INVALID',
'msg_ar': '\u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0648\u0637\u0646\u064a \u0627\u0644\u0645\u0631\u0633\u0644 \u0644\u0627 \u064a\u0633\u0645\u062d \u0644\u0643 \u0628\u0627\u0644\u062a\u0633\u062c\u064a\u0644. \u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629. (\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0631\u0642\u0645 84)',
'msg_en': 'The NID is not valid, either because it is not a valid National ID Number or because this person is not eligible to vote. (message number 84)'},
CENTER_OPENING_NOT_AUTHORIZED: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'CENTER_OPENING_NOT_AUTHORIZED',
'msg_ar': 'This phone {number} is registered to center {registered_centre}. It cannot open center {centre}. If you want to change the center of this phone, please call your District Office. (message number 85)',
'msg_en': 'This phone {number} is registered to center {registered_centre}. It cannot open center {centre}. If you want to change the center of this phone, please call your District Office. (message number 85)'},
CENTER_OPENED: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'CENTER_OPENED',
'msg_ar': 'Center {centre} has been marked opened. (message number 86)',
'msg_en': 'Center {centre} has been marked opened. (message number 86)'},
PRELIMINARY_VOTES_REPORT: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'PRELIMINARY_VOTES_REPORT',
'msg_ar': 'Centre {centre} reported {num_votes} votes for option {option}. If this is incorrect, please resubmit. Final results are based on paper results forms. (message number 87)',
'msg_en': 'Centre {centre} reported {num_votes} votes for option {option}. If this is incorrect, please resubmit. Final results are based on paper results forms. (message number 87)'},
POLLING_REPORT_RECEIVED_VERY_HIGH_TURNOUT: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'POLLING_REPORT_RECEIVED_VERY_HIGH_TURNOUT',
'msg_ar': 'Centre {code} reports {n_voters} voters so far ({turnout:.0%} turnout). That seems unexpectedly high. If this is incorrect, resubmit. (message number 88)',
'msg_en': 'Centre {code} reports {n_voters} voters so far ({turnout:.0%} turnout). That seems unexpectedly high. If this is incorrect, resubmit. (message number 88)'},
POLLING_REPORT_RECEIVED_NO_REGISTRANTS: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'POLLING_REPORT_RECEIVED_NO_REGISTRANTS',
'msg_ar': 'Centre {code} reports {n_voters} voters so far, but that center has no registrants. If this is incorrect, resubmit. (message number 89)',
'msg_en': 'Centre {code} reports {n_voters} voters so far, but that center has no registrants. If this is incorrect, resubmit. (message number 89)'},
PUNT: { 'enhanced_ar': '',
'enhanced_en': '',
'label': 'unrecognized',
'msg_ar': '',
'msg_en': 'Sorry, your message was not understood. (message number %d)' % PUNT}
}
| 151.698529
| 1,165
| 0.761815
| 6,329
| 41,262
| 4.897614
| 0.054985
| 0.113882
| 0.061458
| 0.038068
| 0.848727
| 0.829048
| 0.804626
| 0.773301
| 0.751653
| 0.738007
| 0
| 0.388122
| 0.086714
| 41,262
| 271
| 1,166
| 152.258303
| 0.434428
| 0.007537
| 0
| 0.141176
| 0
| 0.368627
| 0.898178
| 0.489327
| 0
| 0
| 0
| 0
| 0
| 1
| 0.007843
| false
| 0.003922
| 0.011765
| 0
| 0.031373
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 13
|
0cb94c7a1a1b2bb477ab8854d0e312f6646f2c47
| 6,033
|
py
|
Python
|
solentware_base/core/tests/test_segmentsize.py
|
RogerMarsh/solentware-base
|
bc9a113c2c597e9f23e36e5cc6ba74eed41612d8
|
[
"BSD-3-Clause"
] | null | null | null |
solentware_base/core/tests/test_segmentsize.py
|
RogerMarsh/solentware-base
|
bc9a113c2c597e9f23e36e5cc6ba74eed41612d8
|
[
"BSD-3-Clause"
] | null | null | null |
solentware_base/core/tests/test_segmentsize.py
|
RogerMarsh/solentware-base
|
bc9a113c2c597e9f23e36e5cc6ba74eed41612d8
|
[
"BSD-3-Clause"
] | null | null | null |
# test_segmentsize.py
# Copyright 2018 Roger Marsh
# Licence: See LICENCE (BSD licence)
"""segmentsize tests"""
import unittest
from .. import segmentsize
class SegmentSize(unittest.TestCase):
def setUp(self):
self.s = segmentsize.SegmentSize
def tearDown(self):
pass
def test_SegmentSize_01(self):
self.assertIs(
self.s.db_segment_size_bytes, self.s._db_segment_size_bytes
)
self.assertIs(self.s.segment_sort_scale, self.s._segment_sort_scale)
self.assertIs(self.s.db_segment_size, self.s._db_segment_size)
self.assertIs(
self.s.db_top_record_number_in_segment,
self.s._db_top_record_number_in_segment,
)
self.assertIs(
self.s.db_upper_conversion_limit, self.s._db_upper_conversion_limit
)
self.assertIs(
self.s.db_lower_conversion_limit, self.s._db_lower_conversion_limit
)
self.assertIs(
self.s.empty_bitarray_bytes, self.s._empty_bitarray_bytes
)
self.assertIs(self.s.empty_bitarray, self.s._empty_bitarray)
self.assertEqual(self.s.db_segment_size_bytes, 4096)
self.assertEqual(self.s.segment_sort_scale, 30000)
self.assertEqual(self.s.db_segment_size, 32768)
self.assertEqual(self.s.db_top_record_number_in_segment, 32767)
self.assertEqual(self.s.db_upper_conversion_limit, 2000)
self.assertEqual(self.s.db_lower_conversion_limit, 1950)
self.assertEqual(self.s.empty_bitarray_bytes, b"\x00" * 4096)
for i in range(4096):
self.assertEqual(self.s.empty_bitarray[i], False)
def test_SegmentSize_02(self):
self.s.db_segment_size_bytes = 1
self.assertIs(
self.s.db_segment_size_bytes, self.s._db_segment_size_bytes
)
self.assertIs(self.s.segment_sort_scale, self.s._segment_sort_scale)
self.assertIs(self.s.db_segment_size, self.s._db_segment_size)
self.assertIs(
self.s.db_top_record_number_in_segment,
self.s._db_top_record_number_in_segment,
)
self.assertIs(
self.s.db_upper_conversion_limit, self.s._db_upper_conversion_limit
)
self.assertIs(
self.s.db_lower_conversion_limit, self.s._db_lower_conversion_limit
)
self.assertIs(
self.s.empty_bitarray_bytes, self.s._empty_bitarray_bytes
)
self.assertIs(self.s.empty_bitarray, self.s._empty_bitarray)
self.assertEqual(self.s.db_segment_size_bytes, 500)
self.assertEqual(self.s.segment_sort_scale, 30000)
self.assertEqual(self.s.db_segment_size, 4000)
self.assertEqual(self.s.db_top_record_number_in_segment, 3999)
self.assertEqual(self.s.db_upper_conversion_limit, 202)
self.assertEqual(self.s.db_lower_conversion_limit, 152)
self.assertEqual(self.s.empty_bitarray_bytes, b"\x00" * 500)
for i in range(4000):
self.assertEqual(self.s.empty_bitarray[i], False)
def test_SegmentSize_03(self):
self.s.db_segment_size_bytes = None
self.assertIs(
self.s.db_segment_size_bytes, self.s._db_segment_size_bytes
)
self.assertIs(self.s.segment_sort_scale, self.s._segment_sort_scale)
self.assertIs(self.s.db_segment_size, self.s._db_segment_size)
self.assertIs(
self.s.db_top_record_number_in_segment,
self.s._db_top_record_number_in_segment,
)
self.assertIs(
self.s.db_upper_conversion_limit, self.s._db_upper_conversion_limit
)
self.assertIs(
self.s.db_lower_conversion_limit, self.s._db_lower_conversion_limit
)
self.assertIs(
self.s.empty_bitarray_bytes, self.s._empty_bitarray_bytes
)
self.assertIs(self.s.empty_bitarray, self.s._empty_bitarray)
self.assertEqual(self.s.db_segment_size_bytes, 16)
self.assertEqual(self.s.segment_sort_scale, 30000)
self.assertEqual(self.s.db_segment_size, 128)
self.assertEqual(self.s.db_top_record_number_in_segment, 127)
self.assertEqual(self.s.db_upper_conversion_limit, 7)
self.assertEqual(self.s.db_lower_conversion_limit, 4)
self.assertEqual(self.s.empty_bitarray_bytes, b"\x00" * 16)
for i in range(128):
self.assertEqual(self.s.empty_bitarray[i], False)
def test_SegmentSize_04(self):
self.s.db_segment_size_bytes = 10000
self.assertIs(
self.s.db_segment_size_bytes, self.s._db_segment_size_bytes
)
self.assertIs(self.s.segment_sort_scale, self.s._segment_sort_scale)
self.assertIs(self.s.db_segment_size, self.s._db_segment_size)
self.assertIs(
self.s.db_top_record_number_in_segment,
self.s._db_top_record_number_in_segment,
)
self.assertIs(
self.s.db_upper_conversion_limit, self.s._db_upper_conversion_limit
)
self.assertIs(
self.s.db_lower_conversion_limit, self.s._db_lower_conversion_limit
)
self.assertIs(
self.s.empty_bitarray_bytes, self.s._empty_bitarray_bytes
)
self.assertIs(self.s.empty_bitarray, self.s._empty_bitarray)
self.assertEqual(self.s.db_segment_size_bytes, 8192)
self.assertEqual(self.s.segment_sort_scale, 30000)
self.assertEqual(self.s.db_segment_size, 65536)
self.assertEqual(self.s.db_top_record_number_in_segment, 65535)
self.assertEqual(self.s.db_upper_conversion_limit, 4000)
self.assertEqual(self.s.db_lower_conversion_limit, 3900)
self.assertEqual(self.s.empty_bitarray_bytes, b"\x00" * 8192)
for i in range(8192):
self.assertEqual(self.s.empty_bitarray[i], False)
if __name__ == "__main__":
runner = unittest.TextTestRunner
loader = unittest.defaultTestLoader.loadTestsFromTestCase
runner().run(loader(SegmentSize))
| 41.040816
| 79
| 0.6849
| 821
| 6,033
| 4.655298
| 0.099878
| 0.130822
| 0.115385
| 0.142334
| 0.876243
| 0.86944
| 0.867347
| 0.846154
| 0.748038
| 0.704082
| 0
| 0.030943
| 0.223272
| 6,033
| 146
| 80
| 41.321918
| 0.784678
| 0.016576
| 0
| 0.492308
| 0
| 0
| 0.004051
| 0
| 0
| 0
| 0
| 0
| 0.492308
| 1
| 0.046154
| false
| 0.007692
| 0.015385
| 0
| 0.069231
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0ced10eb5a7764947ea24e130647860d37ed453d
| 126
|
py
|
Python
|
Framework/selenium/__init__.py
|
jonreding2010/MAQS.Python
|
43f73784fa9f0ab46545b0275fa8de38d86c76ed
|
[
"MIT"
] | null | null | null |
Framework/selenium/__init__.py
|
jonreding2010/MAQS.Python
|
43f73784fa9f0ab46545b0275fa8de38d86c76ed
|
[
"MIT"
] | null | null | null |
Framework/selenium/__init__.py
|
jonreding2010/MAQS.Python
|
43f73784fa9f0ab46545b0275fa8de38d86c76ed
|
[
"MIT"
] | null | null | null |
from Framework.selenium.SeleniumConfig import SeleniumConfig
from Framework.selenium.WebDriverFactory import WebDriverFactory
| 63
| 64
| 0.904762
| 12
| 126
| 9.5
| 0.5
| 0.22807
| 0.368421
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.063492
| 126
| 2
| 64
| 63
| 0.966102
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
0cf3ad6385fa35d0fe66b456327ae710e5a947d2
| 12,030
|
py
|
Python
|
test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations_async/_enum_operations_async.py
|
fearthecowboy/autorest.python
|
a251e361218598b55b0621db2275aafcb7158a5c
|
[
"MIT"
] | null | null | null |
test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations_async/_enum_operations_async.py
|
fearthecowboy/autorest.python
|
a251e361218598b55b0621db2275aafcb7158a5c
|
[
"MIT"
] | null | null | null |
test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations_async/_enum_operations_async.py
|
fearthecowboy/autorest.python
|
a251e361218598b55b0621db2275aafcb7158a5c
|
[
"MIT"
] | null | null | null |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.pipeline import ClientRawResponse
from ... import models
class EnumOperations:
"""EnumOperations async operations.
You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
"""
models = models
def __init__(self, client, config, serializer, deserializer) -> None:
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.config = config
async def get_not_expandable(
self, *, custom_headers=None, raw=False, **operation_config):
"""Get enum value 'red color' from enumeration of 'red color',
'green-color', 'blue_color'.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: Colors or ClientRawResponse if raw=true
:rtype: ~bodystring.models.Colors or
~msrest.pipeline.ClientRawResponse
:raises: :class:`ErrorException<bodystring.models.ErrorException>`
"""
# Construct URL
url = self.get_not_expandable.metadata['url']
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
if custom_headers:
header_parameters.update(custom_headers)
# Construct and send request
request = self._client.get(url, query_parameters, header_parameters)
response = await self._client.async_send(request, stream=False, **operation_config)
if response.status_code not in [200]:
raise models.ErrorException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('Colors', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
get_not_expandable.metadata = {'url': '/string/enum/notExpandable'}
async def put_not_expandable(
self, string_body, *, custom_headers=None, raw=False, **operation_config):
"""Sends value 'red color' from enumeration of 'red color', 'green-color',
'blue_color'.
:param string_body: Possible values include: 'red color',
'green-color', 'blue_color'
:type string_body: str or ~bodystring.models.Colors
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
:raises: :class:`ErrorException<bodystring.models.ErrorException>`
"""
# Construct URL
url = self.put_not_expandable.metadata['url']
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(string_body, 'Colors')
# Construct and send request
request = self._client.put(url, query_parameters, header_parameters, body_content)
response = await self._client.async_send(request, stream=False, **operation_config)
if response.status_code not in [200]:
raise models.ErrorException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
put_not_expandable.metadata = {'url': '/string/enum/notExpandable'}
async def get_referenced(
self, *, custom_headers=None, raw=False, **operation_config):
"""Get enum value 'red color' from enumeration of 'red color',
'green-color', 'blue_color'.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: Colors or ClientRawResponse if raw=true
:rtype: ~bodystring.models.Colors or
~msrest.pipeline.ClientRawResponse
:raises: :class:`ErrorException<bodystring.models.ErrorException>`
"""
# Construct URL
url = self.get_referenced.metadata['url']
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
if custom_headers:
header_parameters.update(custom_headers)
# Construct and send request
request = self._client.get(url, query_parameters, header_parameters)
response = await self._client.async_send(request, stream=False, **operation_config)
if response.status_code not in [200]:
raise models.ErrorException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('Colors', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
get_referenced.metadata = {'url': '/string/enum/Referenced'}
async def put_referenced(
self, enum_string_body, *, custom_headers=None, raw=False, **operation_config):
"""Sends value 'red color' from enumeration of 'red color', 'green-color',
'blue_color'.
:param enum_string_body: Possible values include: 'red color',
'green-color', 'blue_color'
:type enum_string_body: str or ~bodystring.models.Colors
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
:raises: :class:`ErrorException<bodystring.models.ErrorException>`
"""
# Construct URL
url = self.put_referenced.metadata['url']
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(enum_string_body, 'Colors')
# Construct and send request
request = self._client.put(url, query_parameters, header_parameters, body_content)
response = await self._client.async_send(request, stream=False, **operation_config)
if response.status_code not in [200]:
raise models.ErrorException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
put_referenced.metadata = {'url': '/string/enum/Referenced'}
async def get_referenced_constant(
self, *, custom_headers=None, raw=False, **operation_config):
"""Get value 'green-color' from the constant.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: RefColorConstant or ClientRawResponse if raw=true
:rtype: ~bodystring.models.RefColorConstant or
~msrest.pipeline.ClientRawResponse
:raises: :class:`ErrorException<bodystring.models.ErrorException>`
"""
# Construct URL
url = self.get_referenced_constant.metadata['url']
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
if custom_headers:
header_parameters.update(custom_headers)
# Construct and send request
request = self._client.get(url, query_parameters, header_parameters)
response = await self._client.async_send(request, stream=False, **operation_config)
if response.status_code not in [200]:
raise models.ErrorException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('RefColorConstant', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
get_referenced_constant.metadata = {'url': '/string/enum/ReferencedConstant'}
async def put_referenced_constant(
self, field1=None, *, custom_headers=None, raw=False, **operation_config):
"""Sends value 'green-color' from a constant.
:param field1: Sample string.
:type field1: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
:raises: :class:`ErrorException<bodystring.models.ErrorException>`
"""
enum_string_body = models.RefColorConstant(field1=field1)
# Construct URL
url = self.put_referenced_constant.metadata['url']
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
body_content = self._serialize.body(enum_string_body, 'RefColorConstant')
# Construct and send request
request = self._client.put(url, query_parameters, header_parameters, body_content)
response = await self._client.async_send(request, stream=False, **operation_config)
if response.status_code not in [200]:
raise models.ErrorException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
put_referenced_constant.metadata = {'url': '/string/enum/ReferencedConstant'}
| 39.70297
| 136
| 0.664672
| 1,258
| 12,030
| 6.192369
| 0.120827
| 0.040051
| 0.030809
| 0.023107
| 0.857895
| 0.857895
| 0.855071
| 0.843004
| 0.826701
| 0.800128
| 0
| 0.003941
| 0.240732
| 12,030
| 302
| 137
| 39.834437
| 0.848916
| 0.111056
| 0
| 0.710744
| 0
| 0
| 0.066866
| 0.023934
| 0
| 0
| 0
| 0
| 0
| 1
| 0.008264
| false
| 0
| 0.016529
| 0
| 0.115702
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f01f6dacbebcb73a70e94a3d5e6af3014d1e7042
| 33,858
|
py
|
Python
|
sdk/python/pulumi_azure/iot/io_t_hub.py
|
pulumi-bot/pulumi-azure
|
64d5c30a77b3f4de117068add359ef85293cef8e
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_azure/iot/io_t_hub.py
|
pulumi-bot/pulumi-azure
|
64d5c30a77b3f4de117068add359ef85293cef8e
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_azure/iot/io_t_hub.py
|
pulumi-bot/pulumi-azure
|
64d5c30a77b3f4de117068add359ef85293cef8e
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from .. import utilities, tables
class IoTHub(pulumi.CustomResource):
endpoints: pulumi.Output[list]
"""
An `endpoint` block as defined below.
* `batch_frequency_in_seconds` (`float`) - Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds. This attribute is mandatory for endpoint type `AzureIotHub.StorageContainer`.
* `connection_string` (`str`) - The connection string for the endpoint.
* `container_name` (`str`) - The name of storage container in the storage account. This attribute is mandatory for endpoint type `AzureIotHub.StorageContainer`.
* `encoding` (`str`) - Encoding that is used to serialize messages to blobs. Supported values are 'avro' and 'avrodeflate'. Default value is 'avro'. This attribute is mandatory for endpoint type `AzureIotHub.StorageContainer`.
* `file_name_format` (`str`) - File name format for the blob. Default format is ``{iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}``. All parameters are mandatory but can be reordered. This attribute is mandatory for endpoint type `AzureIotHub.StorageContainer`.
* `max_chunk_size_in_bytes` (`float`) - Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB). This attribute is mandatory for endpoint type `AzureIotHub.StorageContainer`.
* `name` (`str`) - The name of the endpoint. The name must be unique across endpoint types. The following names are reserved: `events`, `operationsMonitoringEvents`, `fileNotifications` and `$default`.
* `type` (`str`) - The type of the endpoint. Possible values are `AzureIotHub.StorageContainer`, `AzureIotHub.ServiceBusQueue`, `AzureIotHub.ServiceBusTopic` or `AzureIotHub.EventHub`.
"""
event_hub_events_endpoint: pulumi.Output[str]
"""
The EventHub compatible endpoint for events data
"""
event_hub_events_path: pulumi.Output[str]
"""
The EventHub compatible path for events data
"""
event_hub_operations_endpoint: pulumi.Output[str]
"""
The EventHub compatible endpoint for operational data
"""
event_hub_operations_path: pulumi.Output[str]
"""
The EventHub compatible path for operational data
"""
event_hub_partition_count: pulumi.Output[float]
"""
The number of device-to-cloud partitions used by backing event hubs. Must be between `2` and `128`.
"""
event_hub_retention_in_days: pulumi.Output[float]
"""
The event hub retention to use in days. Must be between `1` and `7`.
"""
fallback_route: pulumi.Output[dict]
"""
A `fallback_route` block as defined below. If the fallback route is enabled, messages that don't match any of the supplied routes are automatically sent to this route. Defaults to messages/events.
* `condition` (`str`) - The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.
* `enabled` (`bool`) - Used to specify whether the fallback route is enabled.
* `endpoint_names` (`list`) - The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
* `source` (`str`) - The source that the routing rule is to be applied to, such as `DeviceMessages`. Possible values include: `RoutingSourceInvalid`, `RoutingSourceDeviceMessages`, `RoutingSourceTwinChangeEvents`, `RoutingSourceDeviceLifecycleEvents`, `RoutingSourceDeviceJobLifecycleEvents`.
"""
file_upload: pulumi.Output[dict]
"""
A `file_upload` block as defined below.
* `connection_string` (`str`) - The connection string for the Azure Storage account to which files are uploaded.
* `container_name` (`str`) - The name of the root container where you upload files. The container need not exist but should be creatable using the connection_string specified.
* `default_ttl` (`str`) - The period of time for which a file upload notification message is available to consume before it is expired by the IoT hub, specified as an [ISO 8601 timespan duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). This value must be between 1 minute and 48 hours, and evaluates to 'PT1H' by default.
* `lock_duration` (`str`) - The lock duration for the file upload notifications queue, specified as an [ISO 8601 timespan duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). This value must be between 5 and 300 seconds, and evaluates to 'PT1M' by default.
* `max_delivery_count` (`float`) - The number of times the IoT hub attempts to deliver a file upload notification message. It evaluates to 10 by default.
* `notifications` (`bool`) - Used to specify whether file notifications are sent to IoT Hub on upload. It evaluates to false by default.
* `sasTtl` (`str`) - The period of time for which the SAS URI generated by IoT Hub for file upload is valid, specified as an [ISO 8601 timespan duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). This value must be between 1 minute and 24 hours, and evaluates to 'PT1H' by default.
"""
hostname: pulumi.Output[str]
"""
The hostname of the IotHub Resource.
"""
ip_filter_rules: pulumi.Output[list]
"""
One or more `ip_filter_rule` blocks as defined below.
* `action` (`str`) - The desired action for requests captured by this rule. Possible values are `Accept`, `Reject`
* `ipMask` (`str`) - The IP address range in CIDR notation for the rule.
* `name` (`str`) - The name of the filter.
"""
location: pulumi.Output[str]
"""
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
"""
name: pulumi.Output[str]
"""
Specifies the name of the IotHub resource. Changing this forces a new resource to be created.
"""
resource_group_name: pulumi.Output[str]
"""
The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.
"""
routes: pulumi.Output[list]
"""
A `route` block as defined below.
* `condition` (`str`) - The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.
* `enabled` (`bool`) - Used to specify whether a route is enabled.
* `endpoint_names` (`list`) - The list of endpoints to which messages that satisfy the condition are routed.
* `name` (`str`) - The name of the route.
* `source` (`str`) - The source that the routing rule is to be applied to, such as `DeviceMessages`. Possible values include: `RoutingSourceInvalid`, `RoutingSourceDeviceMessages`, `RoutingSourceTwinChangeEvents`, `RoutingSourceDeviceLifecycleEvents`, `RoutingSourceDeviceJobLifecycleEvents`.
"""
shared_access_policies: pulumi.Output[list]
"""
One or more `shared_access_policy` blocks as defined below.
* `key_name` (`str`) - The name of the shared access policy.
* `permissions` (`str`) - The permissions assigned to the shared access policy.
* `primary_key` (`str`) - The primary key.
* `secondary_key` (`str`) - The secondary key.
"""
sku: pulumi.Output[dict]
"""
A `sku` block as defined below.
* `capacity` (`float`) - The number of provisioned IoT Hub units.
* `name` (`str`) - The name of the sku. Possible values are `B1`, `B2`, `B3`, `F1`, `S1`, `S2`, and `S3`.
"""
tags: pulumi.Output[dict]
"""
A mapping of tags to assign to the resource.
"""
type: pulumi.Output[str]
"""
The type of the endpoint. Possible values are `AzureIotHub.StorageContainer`, `AzureIotHub.ServiceBusQueue`, `AzureIotHub.ServiceBusTopic` or `AzureIotHub.EventHub`.
"""
def __init__(__self__, resource_name, opts=None, endpoints=None, event_hub_partition_count=None, event_hub_retention_in_days=None, fallback_route=None, file_upload=None, ip_filter_rules=None, location=None, name=None, resource_group_name=None, routes=None, sku=None, tags=None, __props__=None, __name__=None, __opts__=None):
"""
Manages an IotHub
> **NOTE:** Endpoints can be defined either directly on the `iot.IoTHub` resource, or using the `azurerm_iothub_endpoint_*` resources - but the two ways of defining the endpoints cannot be used together. If both are used against the same IoTHub, spurious changes will occur. Also, defining a `azurerm_iothub_endpoint_*` resource and another endpoint of a different type directly on the `iot.IoTHub` resource is not supported.
> **NOTE:** Routes can be defined either directly on the `iot.IoTHub` resource, or using the `iot.Route` resource - but the two cannot be used together. If both are used against the same IoTHub, spurious changes will occur.
> **NOTE:** Fallback route can be defined either directly on the `iot.IoTHub` resource, or using the `iot.FallbackRoute` resource - but the two cannot be used together. If both are used against the same IoTHub, spurious changes will occur.
## Example Usage
```python
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="Canada Central")
example_account = azure.storage.Account("exampleAccount",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
account_tier="Standard",
account_replication_type="LRS")
example_container = azure.storage.Container("exampleContainer",
storage_account_name=example_account.name,
container_access_type="private")
example_event_hub_namespace = azure.eventhub.EventHubNamespace("exampleEventHubNamespace",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
sku="Basic")
example_event_hub = azure.eventhub.EventHub("exampleEventHub",
resource_group_name=example_resource_group.name,
namespace_name=example_event_hub_namespace.name,
partition_count=2,
message_retention=1)
example_authorization_rule = azure.eventhub.AuthorizationRule("exampleAuthorizationRule",
resource_group_name=example_resource_group.name,
namespace_name=example_event_hub_namespace.name,
eventhub_name=example_event_hub.name,
send=True)
example_io_t_hub = azure.iot.IoTHub("exampleIoTHub",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
sku={
"name": "S1",
"capacity": "1",
},
endpoint=[
{
"type": "AzureIotHub.StorageContainer",
"connection_string": example_account.primary_blob_connection_string,
"name": "export",
"batch_frequency_in_seconds": 60,
"max_chunk_size_in_bytes": 10485760,
"container_name": example_container.name,
"encoding": "Avro",
"file_name_format": "{iothub}/{partition}_{YYYY}_{MM}_{DD}_{HH}_{mm}",
},
{
"type": "AzureIotHub.EventHub",
"connection_string": example_authorization_rule.primary_connection_string,
"name": "export2",
},
],
route=[
{
"name": "export",
"source": "DeviceMessages",
"condition": "true",
"endpoint_names": ["export"],
"enabled": True,
},
{
"name": "export2",
"source": "DeviceMessages",
"condition": "true",
"endpoint_names": ["export2"],
"enabled": True,
},
],
tags={
"purpose": "testing",
})
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[list] endpoints: An `endpoint` block as defined below.
:param pulumi.Input[float] event_hub_partition_count: The number of device-to-cloud partitions used by backing event hubs. Must be between `2` and `128`.
:param pulumi.Input[float] event_hub_retention_in_days: The event hub retention to use in days. Must be between `1` and `7`.
:param pulumi.Input[dict] fallback_route: A `fallback_route` block as defined below. If the fallback route is enabled, messages that don't match any of the supplied routes are automatically sent to this route. Defaults to messages/events.
:param pulumi.Input[dict] file_upload: A `file_upload` block as defined below.
:param pulumi.Input[list] ip_filter_rules: One or more `ip_filter_rule` blocks as defined below.
:param pulumi.Input[str] location: Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
:param pulumi.Input[str] name: Specifies the name of the IotHub resource. Changing this forces a new resource to be created.
:param pulumi.Input[str] resource_group_name: The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.
:param pulumi.Input[list] routes: A `route` block as defined below.
:param pulumi.Input[dict] sku: A `sku` block as defined below.
:param pulumi.Input[dict] tags: A mapping of tags to assign to the resource.
The **endpoints** object supports the following:
* `batch_frequency_in_seconds` (`pulumi.Input[float]`) - Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds. This attribute is mandatory for endpoint type `AzureIotHub.StorageContainer`.
* `connection_string` (`pulumi.Input[str]`) - The connection string for the endpoint.
* `container_name` (`pulumi.Input[str]`) - The name of storage container in the storage account. This attribute is mandatory for endpoint type `AzureIotHub.StorageContainer`.
* `encoding` (`pulumi.Input[str]`) - Encoding that is used to serialize messages to blobs. Supported values are 'avro' and 'avrodeflate'. Default value is 'avro'. This attribute is mandatory for endpoint type `AzureIotHub.StorageContainer`.
* `file_name_format` (`pulumi.Input[str]`) - File name format for the blob. Default format is ``{iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}``. All parameters are mandatory but can be reordered. This attribute is mandatory for endpoint type `AzureIotHub.StorageContainer`.
* `max_chunk_size_in_bytes` (`pulumi.Input[float]`) - Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB). This attribute is mandatory for endpoint type `AzureIotHub.StorageContainer`.
* `name` (`pulumi.Input[str]`) - The name of the endpoint. The name must be unique across endpoint types. The following names are reserved: `events`, `operationsMonitoringEvents`, `fileNotifications` and `$default`.
* `type` (`pulumi.Input[str]`) - The type of the endpoint. Possible values are `AzureIotHub.StorageContainer`, `AzureIotHub.ServiceBusQueue`, `AzureIotHub.ServiceBusTopic` or `AzureIotHub.EventHub`.
The **fallback_route** object supports the following:
* `condition` (`pulumi.Input[str]`) - The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.
* `enabled` (`pulumi.Input[bool]`) - Used to specify whether the fallback route is enabled.
* `endpoint_names` (`pulumi.Input[list]`) - The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
* `source` (`pulumi.Input[str]`) - The source that the routing rule is to be applied to, such as `DeviceMessages`. Possible values include: `RoutingSourceInvalid`, `RoutingSourceDeviceMessages`, `RoutingSourceTwinChangeEvents`, `RoutingSourceDeviceLifecycleEvents`, `RoutingSourceDeviceJobLifecycleEvents`.
The **file_upload** object supports the following:
* `connection_string` (`pulumi.Input[str]`) - The connection string for the Azure Storage account to which files are uploaded.
* `container_name` (`pulumi.Input[str]`) - The name of the root container where you upload files. The container need not exist but should be creatable using the connection_string specified.
* `default_ttl` (`pulumi.Input[str]`) - The period of time for which a file upload notification message is available to consume before it is expired by the IoT hub, specified as an [ISO 8601 timespan duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). This value must be between 1 minute and 48 hours, and evaluates to 'PT1H' by default.
* `lock_duration` (`pulumi.Input[str]`) - The lock duration for the file upload notifications queue, specified as an [ISO 8601 timespan duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). This value must be between 5 and 300 seconds, and evaluates to 'PT1M' by default.
* `max_delivery_count` (`pulumi.Input[float]`) - The number of times the IoT hub attempts to deliver a file upload notification message. It evaluates to 10 by default.
* `notifications` (`pulumi.Input[bool]`) - Used to specify whether file notifications are sent to IoT Hub on upload. It evaluates to false by default.
* `sasTtl` (`pulumi.Input[str]`) - The period of time for which the SAS URI generated by IoT Hub for file upload is valid, specified as an [ISO 8601 timespan duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). This value must be between 1 minute and 24 hours, and evaluates to 'PT1H' by default.
The **ip_filter_rules** object supports the following:
* `action` (`pulumi.Input[str]`) - The desired action for requests captured by this rule. Possible values are `Accept`, `Reject`
* `ipMask` (`pulumi.Input[str]`) - The IP address range in CIDR notation for the rule.
* `name` (`pulumi.Input[str]`) - The name of the filter.
The **routes** object supports the following:
* `condition` (`pulumi.Input[str]`) - The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.
* `enabled` (`pulumi.Input[bool]`) - Used to specify whether a route is enabled.
* `endpoint_names` (`pulumi.Input[list]`) - The list of endpoints to which messages that satisfy the condition are routed.
* `name` (`pulumi.Input[str]`) - The name of the route.
* `source` (`pulumi.Input[str]`) - The source that the routing rule is to be applied to, such as `DeviceMessages`. Possible values include: `RoutingSourceInvalid`, `RoutingSourceDeviceMessages`, `RoutingSourceTwinChangeEvents`, `RoutingSourceDeviceLifecycleEvents`, `RoutingSourceDeviceJobLifecycleEvents`.
The **sku** object supports the following:
* `capacity` (`pulumi.Input[float]`) - The number of provisioned IoT Hub units.
* `name` (`pulumi.Input[str]`) - The name of the sku. Possible values are `B1`, `B2`, `B3`, `F1`, `S1`, `S2`, and `S3`.
"""
if __name__ is not None:
warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning)
resource_name = __name__
if __opts__ is not None:
warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning)
opts = __opts__
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = dict()
__props__['endpoints'] = endpoints
__props__['event_hub_partition_count'] = event_hub_partition_count
__props__['event_hub_retention_in_days'] = event_hub_retention_in_days
__props__['fallback_route'] = fallback_route
__props__['file_upload'] = file_upload
__props__['ip_filter_rules'] = ip_filter_rules
__props__['location'] = location
__props__['name'] = name
if resource_group_name is None:
raise TypeError("Missing required property 'resource_group_name'")
__props__['resource_group_name'] = resource_group_name
__props__['routes'] = routes
if sku is None:
raise TypeError("Missing required property 'sku'")
__props__['sku'] = sku
__props__['tags'] = tags
__props__['event_hub_events_endpoint'] = None
__props__['event_hub_events_path'] = None
__props__['event_hub_operations_endpoint'] = None
__props__['event_hub_operations_path'] = None
__props__['hostname'] = None
__props__['shared_access_policies'] = None
__props__['type'] = None
super(IoTHub, __self__).__init__(
'azure:iot/ioTHub:IoTHub',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name, id, opts=None, endpoints=None, event_hub_events_endpoint=None, event_hub_events_path=None, event_hub_operations_endpoint=None, event_hub_operations_path=None, event_hub_partition_count=None, event_hub_retention_in_days=None, fallback_route=None, file_upload=None, hostname=None, ip_filter_rules=None, location=None, name=None, resource_group_name=None, routes=None, shared_access_policies=None, sku=None, tags=None, type=None):
"""
Get an existing IoTHub resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param str id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[list] endpoints: An `endpoint` block as defined below.
:param pulumi.Input[str] event_hub_events_endpoint: The EventHub compatible endpoint for events data
:param pulumi.Input[str] event_hub_events_path: The EventHub compatible path for events data
:param pulumi.Input[str] event_hub_operations_endpoint: The EventHub compatible endpoint for operational data
:param pulumi.Input[str] event_hub_operations_path: The EventHub compatible path for operational data
:param pulumi.Input[float] event_hub_partition_count: The number of device-to-cloud partitions used by backing event hubs. Must be between `2` and `128`.
:param pulumi.Input[float] event_hub_retention_in_days: The event hub retention to use in days. Must be between `1` and `7`.
:param pulumi.Input[dict] fallback_route: A `fallback_route` block as defined below. If the fallback route is enabled, messages that don't match any of the supplied routes are automatically sent to this route. Defaults to messages/events.
:param pulumi.Input[dict] file_upload: A `file_upload` block as defined below.
:param pulumi.Input[str] hostname: The hostname of the IotHub Resource.
:param pulumi.Input[list] ip_filter_rules: One or more `ip_filter_rule` blocks as defined below.
:param pulumi.Input[str] location: Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
:param pulumi.Input[str] name: Specifies the name of the IotHub resource. Changing this forces a new resource to be created.
:param pulumi.Input[str] resource_group_name: The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.
:param pulumi.Input[list] routes: A `route` block as defined below.
:param pulumi.Input[list] shared_access_policies: One or more `shared_access_policy` blocks as defined below.
:param pulumi.Input[dict] sku: A `sku` block as defined below.
:param pulumi.Input[dict] tags: A mapping of tags to assign to the resource.
:param pulumi.Input[str] type: The type of the endpoint. Possible values are `AzureIotHub.StorageContainer`, `AzureIotHub.ServiceBusQueue`, `AzureIotHub.ServiceBusTopic` or `AzureIotHub.EventHub`.
The **endpoints** object supports the following:
* `batch_frequency_in_seconds` (`pulumi.Input[float]`) - Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds. This attribute is mandatory for endpoint type `AzureIotHub.StorageContainer`.
* `connection_string` (`pulumi.Input[str]`) - The connection string for the endpoint.
* `container_name` (`pulumi.Input[str]`) - The name of storage container in the storage account. This attribute is mandatory for endpoint type `AzureIotHub.StorageContainer`.
* `encoding` (`pulumi.Input[str]`) - Encoding that is used to serialize messages to blobs. Supported values are 'avro' and 'avrodeflate'. Default value is 'avro'. This attribute is mandatory for endpoint type `AzureIotHub.StorageContainer`.
* `file_name_format` (`pulumi.Input[str]`) - File name format for the blob. Default format is ``{iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}``. All parameters are mandatory but can be reordered. This attribute is mandatory for endpoint type `AzureIotHub.StorageContainer`.
* `max_chunk_size_in_bytes` (`pulumi.Input[float]`) - Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB). This attribute is mandatory for endpoint type `AzureIotHub.StorageContainer`.
* `name` (`pulumi.Input[str]`) - The name of the endpoint. The name must be unique across endpoint types. The following names are reserved: `events`, `operationsMonitoringEvents`, `fileNotifications` and `$default`.
* `type` (`pulumi.Input[str]`) - The type of the endpoint. Possible values are `AzureIotHub.StorageContainer`, `AzureIotHub.ServiceBusQueue`, `AzureIotHub.ServiceBusTopic` or `AzureIotHub.EventHub`.
The **fallback_route** object supports the following:
* `condition` (`pulumi.Input[str]`) - The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.
* `enabled` (`pulumi.Input[bool]`) - Used to specify whether the fallback route is enabled.
* `endpoint_names` (`pulumi.Input[list]`) - The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
* `source` (`pulumi.Input[str]`) - The source that the routing rule is to be applied to, such as `DeviceMessages`. Possible values include: `RoutingSourceInvalid`, `RoutingSourceDeviceMessages`, `RoutingSourceTwinChangeEvents`, `RoutingSourceDeviceLifecycleEvents`, `RoutingSourceDeviceJobLifecycleEvents`.
The **file_upload** object supports the following:
* `connection_string` (`pulumi.Input[str]`) - The connection string for the Azure Storage account to which files are uploaded.
* `container_name` (`pulumi.Input[str]`) - The name of the root container where you upload files. The container need not exist but should be creatable using the connection_string specified.
* `default_ttl` (`pulumi.Input[str]`) - The period of time for which a file upload notification message is available to consume before it is expired by the IoT hub, specified as an [ISO 8601 timespan duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). This value must be between 1 minute and 48 hours, and evaluates to 'PT1H' by default.
* `lock_duration` (`pulumi.Input[str]`) - The lock duration for the file upload notifications queue, specified as an [ISO 8601 timespan duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). This value must be between 5 and 300 seconds, and evaluates to 'PT1M' by default.
* `max_delivery_count` (`pulumi.Input[float]`) - The number of times the IoT hub attempts to deliver a file upload notification message. It evaluates to 10 by default.
* `notifications` (`pulumi.Input[bool]`) - Used to specify whether file notifications are sent to IoT Hub on upload. It evaluates to false by default.
* `sasTtl` (`pulumi.Input[str]`) - The period of time for which the SAS URI generated by IoT Hub for file upload is valid, specified as an [ISO 8601 timespan duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). This value must be between 1 minute and 24 hours, and evaluates to 'PT1H' by default.
The **ip_filter_rules** object supports the following:
* `action` (`pulumi.Input[str]`) - The desired action for requests captured by this rule. Possible values are `Accept`, `Reject`
* `ipMask` (`pulumi.Input[str]`) - The IP address range in CIDR notation for the rule.
* `name` (`pulumi.Input[str]`) - The name of the filter.
The **routes** object supports the following:
* `condition` (`pulumi.Input[str]`) - The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language.
* `enabled` (`pulumi.Input[bool]`) - Used to specify whether a route is enabled.
* `endpoint_names` (`pulumi.Input[list]`) - The list of endpoints to which messages that satisfy the condition are routed.
* `name` (`pulumi.Input[str]`) - The name of the route.
* `source` (`pulumi.Input[str]`) - The source that the routing rule is to be applied to, such as `DeviceMessages`. Possible values include: `RoutingSourceInvalid`, `RoutingSourceDeviceMessages`, `RoutingSourceTwinChangeEvents`, `RoutingSourceDeviceLifecycleEvents`, `RoutingSourceDeviceJobLifecycleEvents`.
The **shared_access_policies** object supports the following:
* `key_name` (`pulumi.Input[str]`) - The name of the shared access policy.
* `permissions` (`pulumi.Input[str]`) - The permissions assigned to the shared access policy.
* `primary_key` (`pulumi.Input[str]`) - The primary key.
* `secondary_key` (`pulumi.Input[str]`) - The secondary key.
The **sku** object supports the following:
* `capacity` (`pulumi.Input[float]`) - The number of provisioned IoT Hub units.
* `name` (`pulumi.Input[str]`) - The name of the sku. Possible values are `B1`, `B2`, `B3`, `F1`, `S1`, `S2`, and `S3`.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = dict()
__props__["endpoints"] = endpoints
__props__["event_hub_events_endpoint"] = event_hub_events_endpoint
__props__["event_hub_events_path"] = event_hub_events_path
__props__["event_hub_operations_endpoint"] = event_hub_operations_endpoint
__props__["event_hub_operations_path"] = event_hub_operations_path
__props__["event_hub_partition_count"] = event_hub_partition_count
__props__["event_hub_retention_in_days"] = event_hub_retention_in_days
__props__["fallback_route"] = fallback_route
__props__["file_upload"] = file_upload
__props__["hostname"] = hostname
__props__["ip_filter_rules"] = ip_filter_rules
__props__["location"] = location
__props__["name"] = name
__props__["resource_group_name"] = resource_group_name
__props__["routes"] = routes
__props__["shared_access_policies"] = shared_access_policies
__props__["sku"] = sku
__props__["tags"] = tags
__props__["type"] = type
return IoTHub(resource_name, opts=opts, __props__=__props__)
def translate_output_property(self, prop):
return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
def translate_input_property(self, prop):
return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop
| 77.478261
| 454
| 0.69886
| 4,351
| 33,858
| 5.28752
| 0.094691
| 0.044467
| 0.034078
| 0.029558
| 0.860993
| 0.835521
| 0.810962
| 0.792228
| 0.781926
| 0.76028
| 0
| 0.01129
| 0.207337
| 33,858
| 436
| 455
| 77.655963
| 0.845927
| 0.580542
| 0
| 0.020202
| 1
| 0
| 0.165217
| 0.071014
| 0
| 0
| 0
| 0
| 0
| 1
| 0.040404
| false
| 0.010101
| 0.060606
| 0.020202
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f026ea9d35bda1f831779c67dcfa723ac5c79011
| 138
|
py
|
Python
|
flask/tests/db_test.py
|
JohannesJolkkonen/science-article-aggregation
|
8ca76d8036e093517d66ced9e12bdbe584978c5b
|
[
"MIT"
] | null | null | null |
flask/tests/db_test.py
|
JohannesJolkkonen/science-article-aggregation
|
8ca76d8036e093517d66ced9e12bdbe584978c5b
|
[
"MIT"
] | null | null | null |
flask/tests/db_test.py
|
JohannesJolkkonen/science-article-aggregation
|
8ca76d8036e093517d66ced9e12bdbe584978c5b
|
[
"MIT"
] | null | null | null |
from db.mysql_handler import DBConnection
def test_db_conn():
pass
def test_db_dict_write():
pass
def test_db_query():
pass
| 13.8
| 41
| 0.731884
| 22
| 138
| 4.227273
| 0.590909
| 0.225806
| 0.290323
| 0.27957
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.195652
| 138
| 10
| 42
| 13.8
| 0.837838
| 0
| 0
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.428571
| true
| 0.428571
| 0.142857
| 0
| 0.571429
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 8
|
f0798709aa3bdd843fc7711a79bca03d5d5af1a3
| 167
|
py
|
Python
|
rebuild_tool/pkg_source_plugins/pkg_source_loader.py
|
mcyprian/deps_visualization
|
064b36d49ce0b19b244d8853550bca1533ac8bea
|
[
"MIT"
] | 2
|
2016-01-22T11:08:06.000Z
|
2016-06-02T13:11:41.000Z
|
rebuild_tool/pkg_source_plugins/pkg_source_loader.py
|
mcyprian/sclbuilder
|
064b36d49ce0b19b244d8853550bca1533ac8bea
|
[
"MIT"
] | null | null | null |
rebuild_tool/pkg_source_plugins/pkg_source_loader.py
|
mcyprian/sclbuilder
|
064b36d49ce0b19b244d8853550bca1533ac8bea
|
[
"MIT"
] | null | null | null |
import importlib
available_pkg_source_plugins = ['dnf', 'koji']
def load_plugin(name):
return importlib.import_module('rebuild_tool.pkg_source_plugins.' + name)
| 23.857143
| 77
| 0.778443
| 22
| 167
| 5.545455
| 0.727273
| 0.147541
| 0.262295
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107784
| 167
| 6
| 78
| 27.833333
| 0.818792
| 0
| 0
| 0
| 0
| 0
| 0.233533
| 0.191617
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.5
| 0.25
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
b2c806a9151f8d1ad3ca3861388de88c87ccd958
| 29,594
|
py
|
Python
|
PiCN/Layers/ICNLayer/test/test_BasicICNLayer.py
|
tairun/PiCN
|
be73b23caef8bac726e340668e34ed194efe8485
|
[
"BSD-3-Clause"
] | null | null | null |
PiCN/Layers/ICNLayer/test/test_BasicICNLayer.py
|
tairun/PiCN
|
be73b23caef8bac726e340668e34ed194efe8485
|
[
"BSD-3-Clause"
] | 5
|
2020-07-15T09:01:42.000Z
|
2020-09-28T08:45:21.000Z
|
PiCN/Layers/ICNLayer/test/test_BasicICNLayer.py
|
tairun/PiCN
|
be73b23caef8bac726e340668e34ed194efe8485
|
[
"BSD-3-Clause"
] | null | null | null |
"""Test the Basic ICN Layer implementation"""
import multiprocessing
import time
import unittest
from PiCN.Layers.ICNLayer import BasicICNLayer
from PiCN.Layers.ICNLayer.ContentStore import ContentStoreMemoryExact
from PiCN.Layers.ICNLayer.ForwardingInformationBase import ForwardingInformationBaseMemoryPrefix
from PiCN.Layers.ICNLayer.PendingInterestTable import PendingInterestTableMemoryExact
from PiCN.Packets import Name, Interest, Content, Nack, NackReason
from PiCN.Processes import PiCNSyncDataStructFactory
class test_BasicICNLayer(unittest.TestCase):
"""Test the Basic ICN Layer implementation"""
def setUp(self):
#setup icn_layer
self.icn_layer = BasicICNLayer(log_level=255)
synced_data_struct_factory = PiCNSyncDataStructFactory()
synced_data_struct_factory.register("cs", ContentStoreMemoryExact)
synced_data_struct_factory.register("fib", ForwardingInformationBaseMemoryPrefix)
synced_data_struct_factory.register("pit", PendingInterestTableMemoryExact)
synced_data_struct_factory.create_manager()
cs = synced_data_struct_factory.manager.cs()
fib = synced_data_struct_factory.manager.fib()
pit = synced_data_struct_factory.manager.pit()
cs.set_cs_timeout(2)
pit.set_pit_timeout(2)
pit.set_pit_retransmits(2)
self.icn_layer.cs = cs
self.icn_layer.fib = fib
self.icn_layer.pit = pit
#setup queues icn_routing layer
self.queue1_icn_routing_up = multiprocessing.Queue()
self.queue1_icn_routing_down = multiprocessing.Queue()
#add queues to ICN layer
self.icn_layer.queue_from_lower = self.queue1_icn_routing_up
self.icn_layer.queue_to_lower = self.queue1_icn_routing_down
def tearDown(self):
self.icn_layer.stop_process()
def test_ICNLayer_interest_forward_basic(self):
"""Test ICN layer with no CS and PIT entry"""
self.icn_layer.start_process()
to_faceid = 1
from_faceid = 2
#Add entry to the fib
name = Name("/test/data")
interest = Interest("/test/data")
self.icn_layer.fib.add_fib_entry(name, [to_faceid], static=True)
#forward entry
self.queue1_icn_routing_up.put([from_faceid, interest])
try:
faceid, data = self.queue1_icn_routing_down.get(timeout=2.0)
except:
self.fail()
#check output
self.assertEqual(faceid, to_faceid)
self.assertEqual(data, interest)
#check data structures
self.assertEqual(self.icn_layer.cs.get_container_size(), 0)
self.assertEqual(self.icn_layer.fib.get_container_size(), 1)
self.assertEqual(self.icn_layer.pit.get_container_size(), 1)
self.assertEqual(self.icn_layer.fib.find_fib_entry(name).faceid, [to_faceid])
self.assertEqual(self.icn_layer.fib.find_fib_entry(name).name, name)
self.assertEqual(self.icn_layer.pit.find_pit_entry(name).faceids[0], from_faceid)
self.assertEqual(self.icn_layer.pit.find_pit_entry(name).name, name)
def test_ICNLayer_interest_forward_longest_match(self):
"""Test ICN layer with no CS and no PIT entry and longest match"""
self.icn_layer.start_process()
to_face_id = 1
from_face_id = 2
#Add entry to the fib
name = Name("/test")
interest = Interest("/test/data")
self.icn_layer.fib.add_fib_entry(name, [to_face_id], static=True)
#forward entry
self.queue1_icn_routing_up.put([from_face_id, interest])
try:
face_id, data = self.queue1_icn_routing_down.get(timeout=2.0)
except:
self.fail()
#check output
self.assertEqual(face_id, to_face_id)
self.assertEqual(data, interest)
#check data structures
self.assertEqual(self.icn_layer.cs.get_container_size(), 0)
self.assertEqual(self.icn_layer.fib.get_container_size(), 1)
self.assertEqual(self.icn_layer.pit.get_container_size(), 1)
self.assertEqual(self.icn_layer.fib.find_fib_entry(name).faceid, [to_face_id])
self.assertEqual(self.icn_layer.fib.find_fib_entry(name).name, name)
self.assertEqual(self.icn_layer.pit.find_pit_entry(interest.name).faceids[0], from_face_id)
self.assertEqual(self.icn_layer.pit.find_pit_entry(interest.name).name, interest.name)
def test_ICNLayer_interest_forward_deduplication(self):
"""Test ICN layer with no CS and no PIT entry and deduplication"""
self.icn_layer.start_process()
to_face_id = 1
from_face_id_1 = 2
from_face_id_2 = 3
# Add entry to the fib
name = Name("/test")
interest1 = Interest("/test/data")
interest2 = Interest("/test/data")
self.icn_layer.fib.add_fib_entry(name, [to_face_id])
# forward entry
self.queue1_icn_routing_up.put([from_face_id_1, interest1])
try:
face_id, data = self.queue1_icn_routing_down.get(timeout=2.0)
except:
self.fail()
self.queue1_icn_routing_up.put([from_face_id_2, interest2], block=True)
self.assertTrue(self.queue1_icn_routing_down.empty())
time.sleep(3)
# check output
self.assertEqual(face_id, to_face_id)
self.assertEqual(data, interest1)
time.sleep(0.3) # sleep required, since there is no blocking get before the checks
# check data structures
self.assertEqual(self.icn_layer.cs.get_container_size(), 0)
self.assertEqual(self.icn_layer.fib.get_container_size(), 1)
self.assertEqual(self.icn_layer.pit.get_container_size(), 1)
self.assertEqual(self.icn_layer.fib.find_fib_entry(name).faceid, [to_face_id])
self.assertEqual(self.icn_layer.fib.find_fib_entry(name).name, name)
self.assertEqual(len(self.icn_layer.pit.find_pit_entry(interest1.name).faceids), 2)
self.assertEqual(self.icn_layer.pit.find_pit_entry(interest1.name).faceids, [from_face_id_1, from_face_id_2])
self.assertEqual(self.icn_layer.pit.find_pit_entry(interest1.name).name, interest1.name)
def test_ICNLayer_interest_forward_content_match(self):
"""Test ICN layer with CS entry matching"""
self.icn_layer.start_process()
from_face_id = 2
interest = Interest("/test/data")
#add content
content = Content("/test/data")
self.icn_layer.cs.add_content_object(content)
#request content
self.queue1_icn_routing_up.put([from_face_id, interest])
#get content
try:
face_id, data = self.queue1_icn_routing_down.get(timeout=2.0)
except:
self.fail()
self.assertEqual(data, content)
self.assertEqual(face_id, from_face_id)
def test_ICNLayer_interest_forward_content_no_match(self):
"""Test ICN layer with CS entry no match"""
self.icn_layer.start_process()
to_face_id = 1
from_face_id = 2
interest = Interest("/test/data/bla")
name = Name("/test/data")
self.icn_layer.fib.add_fib_entry(name, [to_face_id], static=True)
#add content
content = Content("/test/data")
self.icn_layer.cs.add_content_object(content)
#request content
self.queue1_icn_routing_up.put([from_face_id, interest])
#get data from fib
try:
face_id, data = self.queue1_icn_routing_down.get(timeout=2.0)
except:
self.fail()
self.assertTrue(data, interest)
self.assertTrue(face_id, to_face_id)
self.assertTrue(self.queue1_icn_routing_up.empty())
self.assertEqual(self.icn_layer.pit.get_container_size(), 1)
self.assertEqual(self.icn_layer.pit.find_pit_entry(interest.name).name, interest.name)
def test_ICNLayer_content_no_pit(self):
"""Test receiving a content object with no PIT entry"""
self.icn_layer.start_process()
from_face_id = 2
content = Content("/test/data")
self.queue1_icn_routing_up.put([from_face_id, content])
self.assertTrue(self.queue1_icn_routing_down.empty())
def test_ICNLayer_content_pit(self):
"""Test receiving a content object with PIT entry"""
self.icn_layer.start_process()
content_in_face_id = 1
from_face_id = 2
name = Name("/test/data")
content = Content("/test/data")
self.icn_layer.pit.add_pit_entry(name, from_face_id, None, None)
self.queue1_icn_routing_up.put([content_in_face_id, content])
try:
face_id, data = self.queue1_icn_routing_down.get(timeout=2.0)
except:
self.fail()
self.assertEqual(face_id, from_face_id)
self.assertEqual(data, content)
def test_ICNLayer_content_two_pit_entries(self):
"""Test receiving a content object with two PIT entries"""
self.icn_layer.start_process()
content_in_face_id = 1
from_face_id_1 = 2
from_face_id_2 = 3
name = Name("/test/data")
content = Content("/test/data")
self.icn_layer.pit.add_pit_entry(name, from_face_id_1, None, False)
self.icn_layer.pit.add_pit_entry(name, from_face_id_2, None, False)
self.queue1_icn_routing_up.put([content_in_face_id, content])
try:
face_id_1, data1 = self.queue1_icn_routing_down.get(timeout=2.0)
except:
self.fail()
self.assertEqual(face_id_1, from_face_id_1)
self.assertEqual(data1, content)
face_id_2, data2 = self.queue1_icn_routing_down.get()
self.assertEqual(face_id_2, from_face_id_2)
self.assertEqual(data2, content)
def test_ICNLayer_ageing_pit(self):
"""Test PIT ageing"""
self.icn_layer.start_process()
from_face_id_1 = 1
to_face_id = 2
name = Name("/test/data")
interest = Interest(name)
self.icn_layer.fib.add_fib_entry(name, [to_face_id])
self.icn_layer.pit.add_pit_entry(name, from_face_id_1, interest, False)
self.assertEqual(self.icn_layer.pit.get_container_size(), 1)
self.assertEqual(self.icn_layer.pit.find_pit_entry(name).name, name)
#test retransmit 1
self.icn_layer.ageing()
time.sleep(0.1)
self.assertFalse(self.icn_layer.queue_to_lower.empty())
try:
rface_id, rinterest = self.icn_layer.queue_to_lower.get(timeout=2.0)
except:
self.fail()
self.assertEqual(self.icn_layer.pit.get_container_size(), 1)
self.assertEqual(rface_id, to_face_id)
self.assertEqual(rinterest, interest)
# test retransmit 2
self.icn_layer.ageing()
time.sleep(0.1)
self.assertFalse(self.icn_layer.queue_to_lower.empty())
try:
rface_id, rinterest = self.icn_layer.queue_to_lower.get(timeout=2.0)
except:
self.fail()
self.assertEqual(self.icn_layer.pit.get_container_size(), 1)
self.assertEqual(rface_id, to_face_id)
self.assertEqual(rinterest, interest)
#Wait for timeout
time.sleep(2)
# test retransmit 3 to get number of retransmit
self.icn_layer.ageing()
time.sleep(0.1)
self.assertFalse(self.icn_layer.queue_to_lower.empty())
try:
rface_id, rinterest = self.icn_layer.queue_to_lower.get(timeout=2.0)
except:
self.fail()
self.assertEqual(self.icn_layer.pit.get_container_size(), 1)
self.assertEqual(rface_id, to_face_id)
self.assertEqual(rinterest, interest)
# test remove pit entry
self.icn_layer.ageing()
#nack = self.icn_layer.queue_to_lower.get(timeout=8.0) # invalid, no PIT Timeout Nack anymore
#self.assertEqual(nack, [1, Nack(rinterest.name, NackReason.PIT_TIMEOUT, rinterest)])
self.assertTrue(self.icn_layer.queue_to_lower.empty())
self.assertEqual(self.icn_layer.pit.get_container_size(), 0)
def test_ICNLayer_ageing_cs(self):
"""Test CS ageing and static entries"""
self.icn_layer.start_process()
name1 = Name("/test/data")
content1 = Content(name1, "HelloWorld")
name2 = Name("/data/test")
content2 = Content(name2, "Goodbye")
self.icn_layer.cs.add_content_object(content1)
self.icn_layer.cs.add_content_object(content2, static=True)
self.assertEqual(self.icn_layer.cs.get_container_size(), 2)
self.assertEqual(self.icn_layer.cs.find_content_object(name1).content, content1)
self.assertEqual(self.icn_layer.cs.find_content_object(name2).content, content2)
#Test aging 1
self.icn_layer.ageing()
self.assertEqual(self.icn_layer.cs.get_container_size(), 2)
self.assertEqual(self.icn_layer.cs.find_content_object(name1).content, content1)
self.assertEqual(self.icn_layer.cs.find_content_object(name2).content, content2)
time.sleep(2)
# Test aging 2
self.icn_layer.ageing()
self.assertEqual(self.icn_layer.cs.get_container_size(), 1)
self.assertEqual(self.icn_layer.cs.find_content_object(name2).content, content2)
def test_ICNLayer_content_from_app_layer_no_pit(self):
"""get content from app layer when there is no pit entry available"""
queue_to_higher = multiprocessing.Queue()
queue_from_higher = multiprocessing.Queue()
self.icn_layer.queue_to_higher = queue_to_higher
self.icn_layer.queue_from_higher = queue_from_higher
self.icn_layer.start_process()
n = Name("/test/data")
c = Content(n, "HelloWorld")
self.icn_layer.queue_from_higher.put([0, c])
time.sleep(1)
self.assertTrue(self.queue1_icn_routing_down.empty())
def test_ICNLayer_content_from_app_layer(self):
"""get content from app layer when there is a pit entry available"""
queue_to_higher = multiprocessing.Queue()
queue_from_higher = multiprocessing.Queue()
self.icn_layer.queue_to_higher = queue_to_higher
self.icn_layer.queue_from_higher = queue_from_higher
self.icn_layer.start_process()
face_id = 1
n = Name("/test/data")
self.icn_layer.pit.add_pit_entry(n, face_id)
self.assertEqual(self.icn_layer.pit.get_container_size(), 1)
c = Content(n, "HelloWorld")
self.icn_layer.queue_from_higher.put([0, c])
try:
data = self.icn_layer.queue_to_lower.get(timeout=2.0)
except:
self.fail()
self.assertEqual(data, [face_id, c])
def test_ICNLayer_content_to_app_layer_no_pit(self):
"""get content to app layer no pit"""
queue_to_higher = multiprocessing.Queue()
queue_from_higher = multiprocessing.Queue()
self.icn_layer.queue_to_higher = queue_to_higher
self.icn_layer.queue_from_higher = queue_from_higher
self.icn_layer.start_process()
from_face_id = 1
n = Name("/test/data")
c = Content(n, "HelloWorld")
self.icn_layer.queue_from_lower.put([from_face_id, c])
time.sleep(1)
self.assertTrue(self.icn_layer.queue_to_higher.empty())
def test_ICNLayer_content_to_app_layer(self):
"""get content to app layer"""
queue_to_higher = multiprocessing.Queue()
queue_from_higher = multiprocessing.Queue()
self.icn_layer.queue_to_higher = queue_to_higher
self.icn_layer.queue_from_higher = queue_from_higher
self.icn_layer.start_process()
face_id = -1
from_face_id = 1
n = Name("/test/data")
self.icn_layer.pit.add_pit_entry(n, face_id, interest=None, local_app=True)
self.assertEqual(self.icn_layer.pit.get_container_size(), 1)
c = Content(n, "HelloWorld")
self.icn_layer.queue_from_lower.put([from_face_id, c])
try:
data = self.icn_layer.queue_to_higher.get(timeout=2.0)
except:
self.fail()
self.assertEqual(data, [1, c])
def test_ICNLayer_interest_from_app_layer_no_pit(self):
"""Test sending and interest message from APP with no PIT entry"""
queue_to_higher = multiprocessing.Queue()
queue_from_higher = multiprocessing.Queue()
self.icn_layer.queue_to_higher = queue_to_higher
self.icn_layer.queue_from_higher = queue_from_higher
self.icn_layer._interest_to_app=True
self.icn_layer.start_process()
face_id = 1
n = Name("/test/data")
i = Interest(n)
self.icn_layer.fib.add_fib_entry(n, [face_id], True)
self.icn_layer.queue_from_higher.put([0, i])
try:
to_faceid, data = self.icn_layer.queue_to_lower.get(timeout=2.0)
except:
self.fail()
self.assertEqual(to_faceid, face_id)
self.assertEqual(i, data)
self.assertEqual(self.icn_layer.pit.find_pit_entry(n).interest, i)
self.assertTrue(self.icn_layer.pit.find_pit_entry(n).local_app[0])
def test_ICNLayer_interest_from_app_layer_pit(self):
"""Test sending and interest message from APP with a PIT entry --> interest not for higher layer"""
queue_to_higher = multiprocessing.Queue()
queue_from_higher = multiprocessing.Queue()
self.icn_layer.queue_to_higher = queue_to_higher
self.icn_layer.queue_from_higher = queue_from_higher
self.icn_layer._interest_to_app=True
self.icn_layer.start_process()
face_id = 1
from_face_id = 2
n = Name("/test/data")
i = Interest(n)
self.icn_layer.fib.add_fib_entry(n, [face_id], True)
self.icn_layer.pit.add_pit_entry(n, from_face_id, i, local_app=False)
self.assertFalse(self.icn_layer.pit.find_pit_entry(n).local_app[0])
self.icn_layer.queue_from_higher.put([0, i])
try:
to_face_id, data = self.icn_layer.queue_to_lower.get(timeout=2.0)
except:
self.fail()
self.assertEqual(to_face_id, face_id)
self.assertEqual(i, data)
self.assertEqual(self.icn_layer.pit.find_pit_entry(n).interest, i)
self.assertFalse(self.icn_layer.pit.find_pit_entry(n).local_app[0]) #Just forward, not from local app
def test_ICNLayer_interest_to_app_layer_no_pit(self):
"""Test sending and interest message from APP with no PIT entry"""
queue_to_higher = multiprocessing.Queue()
queue_from_higher = multiprocessing.Queue()
self.icn_layer.queue_to_higher = queue_to_higher
self.icn_layer.queue_from_higher = queue_from_higher
self.icn_layer._interest_to_app = True
self.icn_layer.start_process()
face_id = 1
from_face_id = 2
n = Name("/test/data")
i = Interest(n)
self.icn_layer.fib.add_fib_entry(n, [face_id], True)
self.icn_layer.queue_from_lower.put([from_face_id, i])
try:
data = self.icn_layer.queue_to_higher.get(timeout=2.0)
except:
self.fail()
self.assertEqual(data[1], i)
self.assertEqual(self.icn_layer.pit.find_pit_entry(n).interest, i)
def test_ICNLayer_interest_to_app_layer_pit(self):
"""Test sending and interest message from APP with a PIT entry"""
queue_to_higher = multiprocessing.Queue()
queue_from_higher = multiprocessing.Queue()
self.icn_layer.queue_to_higher = queue_to_higher
self.icn_layer.queue_from_higher = queue_from_higher
self.icn_layer._interest_to_app = True
self.icn_layer.start_process()
face_id = [1]
from_face_id = 2
n = Name("/test/data")
i = Interest(n)
self.icn_layer.fib.add_fib_entry(n, face_id, True)
self.icn_layer.pit.add_pit_entry(n, from_face_id, i, local_app=False)
self.icn_layer.queue_from_lower.put([from_face_id, i])
time.sleep(1)
self.assertTrue(self.icn_layer.queue_to_higher.empty()) #--> deduplication by pit entry
def test_ICNLayer_interest_to_app_layer_cs(self):
"""Test sending and interest message from APP with a CS entry"""
queue_to_higher = multiprocessing.Queue()
queue_from_higher = multiprocessing.Queue()
self.icn_layer.queue_to_higher = queue_to_higher
self.icn_layer.queue_from_higher = queue_from_higher
self.icn_layer._interest_to_app = True
self.icn_layer.start_process()
face_id = 1
from_face_id = 2
n = Name("/test/data")
i = Interest(n)
c = Content(n, "Hello World")
self.icn_layer.fib.add_fib_entry(n, [face_id], True)
self.icn_layer.cs.add_content_object(c)
self.icn_layer.queue_from_lower.put([from_face_id, i])
try:
to_face_id, data = self.icn_layer.queue_to_lower.get(timeout=2.0)
except:
self.fail()
self.assertEqual(to_face_id, from_face_id)
self.assertEqual(data, c)
self.assertTrue(self.icn_layer.queue_to_higher.empty()) # --> was answered by using Content from cache
def test_ICNLayer_issue_nack_no_content_no_fib_from_lower(self):
"""Test if ICN Layer issues Nack if no content and no fib entry is available from lower"""
self.icn_layer.start_process()
interest = Interest("/test/data")
nack = Nack(interest.name, NackReason.NO_ROUTE, interest=interest)
self.icn_layer.queue_from_lower.put([1, interest])
try:
data = self.icn_layer.queue_to_lower.get(timeout=2.0)
except:
self.fail()
fid = data[0]
packet = data[1]
self.assertEqual(fid, 1)
self.assertEqual(packet, nack)
def test_ICNLayer_issue_nack_no_content_no_fib_from_higher(self):
"""Test if ICN Layer issues Nack if no content and no fib entry is available from higher"""
queue_to_higher = multiprocessing.Queue()
queue_from_higher = multiprocessing.Queue()
self.icn_layer.queue_to_higher = queue_to_higher
self.icn_layer.queue_from_higher = queue_from_higher
self.icn_layer.start_process()
interest = Interest("/test/data")
nack = Nack(interest.name, NackReason.NO_ROUTE, interest=interest)
self.icn_layer.queue_from_higher.put([1, interest])
try:
data = self.icn_layer.queue_to_higher.get(timeout=2.0)
except:
self.fail()
fid = data[0]
packet = data[1]
self.assertEqual(fid, 1)
self.assertEqual(packet, nack)
def test_ICNLayer_handling_nack_no_fib(self):
"""Test if ICN Layer handles a Nack correctly if no fib entry is available"""
self.icn_layer.start_process()
n1 = Name("/test/data")
i1 = Interest(n1)
fid_1 = 1
nack_1 = Nack(n1, NackReason.NO_ROUTE, interest=i1)
self.icn_layer.pit.add_pit_entry(n1, fid_1, i1, False)
self.icn_layer.queue_from_lower.put([2, nack_1])
try:
data = self.icn_layer.queue_to_lower.get(timeout=2.0)
except:
self.fail()
self.assertEqual(data[0], fid_1)
self.assertEqual(data[1], nack_1)
def test_ICNLayer_handling_nack_next_fib(self):
"""Test if ICN Layer handles a Nack correctly if further fib entry is available"""
self.icn_layer.start_process()
n1 = Name("/test/data/d1")
i1 = Interest(n1)
from_fid = 1
to_fib1 = 2
to_fib2 = 3
to_fib3 = 4
nack_1 = Nack(n1, NackReason.NO_ROUTE, interest=i1)
self.icn_layer.pit.add_pit_entry(n1, from_fid, i1, None)
self.icn_layer.fib.add_fib_entry(Name("/test"), [to_fib2])
self.icn_layer.fib.add_fib_entry(Name("/test/data"), [to_fib3])
self.icn_layer.fib.add_fib_entry(Name("/test/data/d1"), [to_fib1]) #assuning this entry was used first and is active when nack arrives
self.icn_layer.queue_from_lower.put([to_fib1, nack_1])
try:
data = self.icn_layer.queue_to_lower.get(timeout=2.0)
except:
self.fail()
self.assertEqual(data[0], to_fib3)
self.assertEqual(data[1], i1)
#check testing second path
self.icn_layer.queue_from_lower.put([to_fib3, nack_1])
try:
data = self.icn_layer.queue_to_lower.get(timeout=2.0)
except:
self.fail()
self.assertEqual(data[0], to_fib2)
self.assertEqual(data[1], i1)
#check no path left
self.icn_layer.queue_from_lower.put([to_fib2, nack_1])
try:
data = self.icn_layer.queue_to_lower.get(timeout=2.0)
except:
self.fail()
self.assertEqual(data[0], from_fid)
self.assertEqual(data[1], nack_1)
def test_multicast_and_nack_handling(self):
"""Test if a multicast works, and if the nack counter for the multicast works"""
i1 = Interest("/test/data")
n1 = Nack(i1.name, NackReason.NO_CONTENT, i1)
self.icn_layer.start_process()
self.icn_layer.fib.add_fib_entry(i1.name, [2,3])
self.icn_layer.queue_from_lower.put([1, i1])
d1 = self.icn_layer.queue_to_lower.get(timeout=2.0)
d2 = self.icn_layer.queue_to_lower.get(timeout=2.0)
self.assertEqual([2, i1], d1)
self.assertEqual([3, i1], d2)
self.icn_layer.queue_from_lower.put([3, n1])
self.assertTrue(self.icn_layer.queue_to_lower.empty())
self.icn_layer.queue_from_lower.put([2, n1])
d3 = self.icn_layer.queue_to_lower.get(timeout=2.0)
self.assertEqual([1, n1], d3)
def test_multicast_and_nack_handling_with_retransmit(self):
"""Test if a multicast works, and if the nack counter for the multicast works"""
i1 = Interest("/test/data")
n1 = Nack(i1.name, NackReason.NO_CONTENT, i1)
self.icn_layer.start_process()
self.icn_layer.fib.add_fib_entry(i1.name, [2,3])
self.icn_layer.queue_from_lower.put([1, i1])
d1 = self.icn_layer.queue_to_lower.get(timeout=2.0)
d2 = self.icn_layer.queue_to_lower.get(timeout=2.0)
self.assertEqual([2, i1], d1)
self.assertEqual([3, i1], d2)
self.icn_layer.queue_from_lower.put([3, n1])
self.assertTrue(self.icn_layer.queue_to_lower.empty())
self.icn_layer.ageing()
d3 = self.icn_layer.queue_to_lower.get(timeout=2.0)
self.assertEqual([2, i1], d3)
self.icn_layer.queue_from_lower.put([2, n1])
d4 = self.icn_layer.queue_to_lower.get(timeout=2.0)
self.assertEqual([1, n1], d4)
# def test_nack_after_pit_timeout(self): #test invalid because not sending nacks after pit timeout anymore
# i1 = Interest("/test/data")
# n1 = Nack(i1.name, NackReason.PIT_TIMEOUT, i1)
#
# self.icn_layer.fib.add_fib_entry(Name("/test"), [3,7])
#
# self.icn_layer.start_process()
# self.icn_layer.ageing()
#
# self.icn_layer.queue_from_lower.put([1, i1])
#
# r1 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r1, [3, i1])
# r2 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r2, [7, i1])
# r1 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r1, [3, i1])
# r2 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r2, [7, i1])
# r1 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r1, [3, i1])
# r2 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r2, [7, i1])
# r1 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r1, [3, i1])
# r2 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r2, [7, i1])
#
# nack = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(nack, [1, n1])
# def test_nack_after_pit_timeout_local_app(self): #test invalid because not sending nacks after pit timeout anymore
# i1 = Interest("/test/data")
# n1 = Nack(i1.name, NackReason.PIT_TIMEOUT, i1)
#
# self.icn_layer.fib.add_fib_entry(Name("/test"), [3,7])
# self.icn_layer.queue_from_higher = multiprocessing.Queue()
# self.icn_layer.queue_to_higher = multiprocessing.Queue()
#
# self.icn_layer.start_process()
# self.icn_layer.ageing()
#
# self.icn_layer.queue_from_higher.put([1, i1])
#
# r1 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r1, [3, i1])
# r2 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r2, [7, i1])
# r1 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r1, [3, i1])
# r2 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r2, [7, i1])
# r1 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r1, [3, i1])
# r2 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r2, [7, i1])
# r1 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r1, [3, i1])
# r2 = self.icn_layer._queue_to_lower.get(timeout=8)
# self.assertEqual(r2, [7, i1])
#
# nack = self.icn_layer._queue_to_higher.get(timeout=8)
# self.assertEqual(nack, [1, n1])
| 40.046008
| 142
| 0.658748
| 4,160
| 29,594
| 4.396394
| 0.047837
| 0.102357
| 0.145005
| 0.090163
| 0.874023
| 0.847777
| 0.812456
| 0.783695
| 0.750615
| 0.726065
| 0
| 0.01941
| 0.232277
| 29,594
| 738
| 143
| 40.100271
| 0.785563
| 0.166216
| 0
| 0.716832
| 0
| 0
| 0.018455
| 0
| 0
| 0
| 0
| 0
| 0.215842
| 1
| 0.053465
| false
| 0
| 0.017822
| 0
| 0.073267
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b2eb05c0baec67e2a615226a1c76dcc8cbc58803
| 16
|
py
|
Python
|
.history/py/main_20201230141430.py
|
minefarmer/Comprehensive-Python
|
f97b9b83ec328fc4e4815607e6a65de90bb8de66
|
[
"Unlicense"
] | null | null | null |
.history/py/main_20201230141430.py
|
minefarmer/Comprehensive-Python
|
f97b9b83ec328fc4e4815607e6a65de90bb8de66
|
[
"Unlicense"
] | null | null | null |
.history/py/main_20201230141430.py
|
minefarmer/Comprehensive-Python
|
f97b9b83ec328fc4e4815607e6a65de90bb8de66
|
[
"Unlicense"
] | null | null | null |
print(40 // 5)
| 5.333333
| 14
| 0.5
| 3
| 16
| 2.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 0.25
| 16
| 2
| 15
| 8
| 0.416667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
330ba2456c84c4baac59fd850983773489245a30
| 78,624
|
py
|
Python
|
jdcloud_cli/controllers/services/iam.py
|
Tanc009/jdcloud-cli
|
4e11de77c68501f44e7026c0ad1c24e5d043197e
|
[
"Apache-2.0"
] | 95
|
2018-06-05T10:49:32.000Z
|
2019-12-31T11:07:36.000Z
|
jdcloud_cli/controllers/services/iam.py
|
Tanc009/jdcloud-cli
|
4e11de77c68501f44e7026c0ad1c24e5d043197e
|
[
"Apache-2.0"
] | 22
|
2018-06-05T10:58:59.000Z
|
2020-07-31T12:13:19.000Z
|
jdcloud_cli/controllers/services/iam.py
|
Tanc009/jdcloud-cli
|
4e11de77c68501f44e7026c0ad1c24e5d043197e
|
[
"Apache-2.0"
] | 21
|
2018-06-04T12:50:27.000Z
|
2020-11-05T10:55:28.000Z
|
# coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.
from argparse import RawTextHelpFormatter
from jdcloud_cli.cement.ext.ext_argparse import expose
from jdcloud_cli.controllers.base_controller import BaseController
from jdcloud_cli.client_factory import ClientFactory
from jdcloud_cli.parameter_builder import collect_user_args, collect_user_headers
from jdcloud_cli.printer import Printer
from jdcloud_cli.skeleton import Skeleton
class IamController(BaseController):
class Meta:
label = 'iam'
help = 'IAM API'
description = '''
iam cli 子命令,IAM相关接口。
OpenAPI文档地址为:https://docs.jdcloud.com/cn/iam/api/overview
'''
stacked_on = 'base'
stacked_type = 'nested'
@expose(
arguments=[
(['--sub-user'], dict(help="""(string) 子用户名称 """, dest='subUser', required=True)),
(['--access-key'], dict(help="""(string) accessKey """, dest='accessKey', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 启用子用户AccessKey ''',
description='''
启用子用户AccessKey。
示例: jdc iam enable-sub-user-access-key --sub-user xxx --access-key xxx
''',
)
def enable_sub_user_access_key(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.EnableSubUserAccessKeyRequest import EnableSubUserAccessKeyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = EnableSubUserAccessKeyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--sub-user'], dict(help="""(string) 子用户名称 """, dest='subUser', required=True)),
(['--access-key'], dict(help="""(string) accessKey """, dest='accessKey', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 禁用子用户的AccessKey ''',
description='''
禁用子用户的AccessKey。
示例: jdc iam disable-sub-user-access-key --sub-user xxx --access-key xxx
''',
)
def disable_sub_user_access_key(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DisableSubUserAccessKeyRequest import DisableSubUserAccessKeyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DisableSubUserAccessKeyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--sub-user'], dict(help="""(string) 子用户名称 """, dest='subUser', required=True)),
(['--access-key'], dict(help="""(string) accessKey """, dest='accessKey', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 删除子用户的AccessKey ''',
description='''
删除子用户的AccessKey。
示例: jdc iam delete-sub-user-access-key --sub-user xxx --access-key xxx
''',
)
def delete_sub_user_access_key(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DeleteSubUserAccessKeyRequest import DeleteSubUserAccessKeyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DeleteSubUserAccessKeyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--create-group-info'], dict(help="""(createGroupInfo) NA """, dest='createGroupInfo', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 创建用户组 ''',
description='''
创建用户组。
示例: jdc iam create-group --create-group-info '{"":""}'
''',
)
def create_group(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.CreateGroupRequest import CreateGroupRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = CreateGroupRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--group-name'], dict(help="""(string) 用户组名称 """, dest='groupName', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询用户组详情 ''',
description='''
查询用户组详情。
示例: jdc iam describe-group --group-name xxx
''',
)
def describe_group(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribeGroupRequest import DescribeGroupRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribeGroupRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--group-name'], dict(help="""(string) 用户组名称 """, dest='groupName', required=True)),
(['--update-group-info'], dict(help="""(updateGroupInfo) NA """, dest='updateGroupInfo', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 修改用户组 ''',
description='''
修改用户组。
示例: jdc iam update-group --group-name xxx --update-group-info '{"":""}'
''',
)
def update_group(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.UpdateGroupRequest import UpdateGroupRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = UpdateGroupRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--group-name'], dict(help="""(string) 用户组名称 """, dest='groupName', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 删除用户组 ''',
description='''
删除用户组。
示例: jdc iam delete-group --group-name xxx
''',
)
def delete_group(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DeleteGroupRequest import DeleteGroupRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DeleteGroupRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--group-name'], dict(help="""(string) 用户组名称 """, dest='groupName', required=True)),
(['--page-number'], dict(help="""(int) 页码,默认1 """, dest='pageNumber', type=int, required=False)),
(['--page-size'], dict(help="""(int) 分页大小,默认50,取值范围[10, 100] """, dest='pageSize', type=int, required=False)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询用户组内的子用户列表 ''',
description='''
查询用户组内的子用户列表 。
示例: jdc iam describe-group-sub-users --group-name xxx
''',
)
def describe_group_sub_users(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribeGroupSubUsersRequest import DescribeGroupSubUsersRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribeGroupSubUsersRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--page-number'], dict(help="""(int) 页码,默认1 """, dest='pageNumber', type=int, required=False)),
(['--page-size'], dict(help="""(int) 分页大小,默认50,取值范围[10, 100] """, dest='pageSize', type=int, required=False)),
(['--keyword'], dict(help="""(string) 关键字 """, dest='keyword', required=False)),
(['--sort'], dict(help="""(int) 排序规则:0-创建时间顺序排序,1-创建时间倒序排序 """, dest='sort', type=int, required=False)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询用户组列表 ''',
description='''
查询用户组列表。
示例: jdc iam describe-groups
''',
)
def describe_groups(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribeGroupsRequest import DescribeGroupsRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribeGroupsRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--group-name'], dict(help="""(string) 用户组名称 """, dest='groupName', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 列举用户组的策略 ''',
description='''
列举用户组的策略。
示例: jdc iam describe-attached-group-policies --group-name xxx
''',
)
def describe_attached_group_policies(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribeAttachedGroupPoliciesRequest import DescribeAttachedGroupPoliciesRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribeAttachedGroupPoliciesRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--group-name'], dict(help="""(string) 用户组名称 """, dest='groupName', required=True)),
(['--policy-name'], dict(help="""(string) 策略名称 """, dest='policyName', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 为用户组解绑策略 ''',
description='''
为用户组解绑策略。
示例: jdc iam detach-group-policy --group-name xxx --policy-name xxx
''',
)
def detach_group_policy(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DetachGroupPolicyRequest import DetachGroupPolicyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DetachGroupPolicyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--group-name'], dict(help="""(string) 用户组名称 """, dest='groupName', required=True)),
(['--policy-name'], dict(help="""(string) 策略名称 """, dest='policyName', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 为用户组绑定策略 ''',
description='''
为用户组绑定策略。
示例: jdc iam attach-group-policy --group-name xxx --policy-name xxx
''',
)
def attach_group_policy(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.AttachGroupPolicyRequest import AttachGroupPolicyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = AttachGroupPolicyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--group-name'], dict(help="""(string) 用户组名称 """, dest='groupName', required=True)),
(['--sub-user'], dict(help="""(string) 子用户名 """, dest='subUser', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 将子用户从组中删除 ''',
description='''
将子用户从组中删除。
示例: jdc iam remove-sub-user-from-group --group-name xxx --sub-user xxx
''',
)
def remove_sub_user_from_group(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.RemoveSubUserFromGroupRequest import RemoveSubUserFromGroupRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = RemoveSubUserFromGroupRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--group-name'], dict(help="""(string) 用户组名称 """, dest='groupName', required=True)),
(['--sub-user'], dict(help="""(string) 子用户名 """, dest='subUser', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 添加子用户到用户组中 ''',
description='''
添加子用户到用户组中。
示例: jdc iam add-sub-user-to-group --group-name xxx --sub-user xxx
''',
)
def add_sub_user_to_group(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.AddSubUserToGroupRequest import AddSubUserToGroupRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = AddSubUserToGroupRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)),
(['--create-permission-info'], dict(help="""(createPermissionInfo) 权限信息 """, dest='createPermissionInfo', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 创建策略 ''',
description='''
创建策略。
示例: jdc iam create-permission --create-permission-info '{"":""}'
''',
)
def create_permission(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.CreatePermissionRequest import CreatePermissionRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = CreatePermissionRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)),
(['--permission-id'], dict(help="""(int) 权限id """, dest='permissionId', type=int, required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询策略详情 ''',
description='''
查询策略详情。
示例: jdc iam describe-permission-detail --permission-id 5
''',
)
def describe_permission_detail(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribePermissionDetailRequest import DescribePermissionDetailRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribePermissionDetailRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)),
(['--permission-id'], dict(help="""(int) 权限id """, dest='permissionId', type=int, required=True)),
(['--update-permission-info'], dict(help="""(updatePermissionInfo) 权限信息 """, dest='updatePermissionInfo', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 修改策略 ''',
description='''
修改策略。
示例: jdc iam update-permission --permission-id 5 --update-permission-info '{"":""}'
''',
)
def update_permission(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.UpdatePermissionRequest import UpdatePermissionRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = UpdatePermissionRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)),
(['--page-number'], dict(help="""(int) 页码 """, dest='pageNumber', type=int, required=True)),
(['--page-size'], dict(help="""(int) 每页显示数目 """, dest='pageSize', type=int, required=True)),
(['--keyword'], dict(help="""(string) 关键字 """, dest='keyword', required=False)),
(['--query-type'], dict(help="""(int) 权限类型,0-全部,1-系统权限,2-自定义权限 """, dest='queryType', type=int, required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询策略列表 ''',
description='''
查询策略列表。
示例: jdc iam describe-permissions --page-number 0 --page-size 0 --query-type 0
''',
)
def describe_permissions(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribePermissionsRequest import DescribePermissionsRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribePermissionsRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)),
(['--sub-user'], dict(help="""(string) 子用户用户名 """, dest='subUser', required=True)),
(['--page-number'], dict(help="""(int) 页码 """, dest='pageNumber', type=int, required=True)),
(['--page-size'], dict(help="""(int) 每页显示数目 """, dest='pageSize', type=int, required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询子用户策略列表 ''',
description='''
查询子用户策略列表。
示例: jdc iam describe-sub-user-permissions --sub-user xxx --page-number 0 --page-size 0
''',
)
def describe_sub_user_permissions(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribeSubUserPermissionsRequest import DescribeSubUserPermissionsRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribeSubUserPermissionsRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)),
(['--sub-user'], dict(help="""(string) 子用户用户名 """, dest='subUser', required=True)),
(['--add-permissions-info'], dict(help="""(addPermissionsInfo) 权限信息 """, dest='addPermissionsInfo', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 为子用户绑定策略 ''',
description='''
为子用户绑定策略。
示例: jdc iam add-permissions-to-sub-user --sub-user xxx --add-permissions-info '{"":""}'
''',
)
def add_permissions_to_sub_user(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.AddPermissionsToSubUserRequest import AddPermissionsToSubUserRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = AddPermissionsToSubUserRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)),
(['--permission-id'], dict(help="""(int) 权限id """, dest='permissionId', type=int, required=True)),
(['--sub-user'], dict(help="""(string) 子用户用户名 """, dest='subUser', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 为子用户解绑策略 ''',
description='''
为子用户解绑策略。
示例: jdc iam remove-permission-of-sub-user --permission-id 5 --sub-user xxx
''',
)
def remove_permission_of_sub_user(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.RemovePermissionOfSubUserRequest import RemovePermissionOfSubUserRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = RemovePermissionOfSubUserRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--create-policy-info'], dict(help="""(createPolicyInfo) 策略信息 """, dest='createPolicyInfo', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 创建策略 ''',
description='''
创建策略。
示例: jdc iam create-policy --create-policy-info '{"":""}'
''',
)
def create_policy(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.CreatePolicyRequest import CreatePolicyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = CreatePolicyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--policy-name'], dict(help="""(string) 策略名称 """, dest='policyName', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询策略详情 ''',
description='''
查询策略详情。
示例: jdc iam describe-policy --policy-name xxx
''',
)
def describe_policy(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribePolicyRequest import DescribePolicyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribePolicyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--policy-name'], dict(help="""(string) 策略名称 """, dest='policyName', required=True)),
(['--update-policy-info'], dict(help="""(updatePolicyInfo) 策略文档信息 """, dest='updatePolicyInfo', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 修改策略文档 ''',
description='''
修改策略文档。
示例: jdc iam update-policy --policy-name xxx --update-policy-info '{"":""}'
''',
)
def update_policy(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.UpdatePolicyRequest import UpdatePolicyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = UpdatePolicyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--policy-name'], dict(help="""(string) 策略名称 """, dest='policyName', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 删除策略 ''',
description='''
删除策略。
示例: jdc iam delete-policy --policy-name xxx
''',
)
def delete_policy(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DeletePolicyRequest import DeletePolicyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DeletePolicyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--policy-name'], dict(help="""(string) 策略名称 """, dest='policyName', required=True)),
(['--update-policy-description-info'], dict(help="""(updatePolicyDescriptionInfo) 策略描述信息 """, dest='updatePolicyDescriptionInfo', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 修改策略描述 ''',
description='''
修改策略描述。
示例: jdc iam update-policy-description --policy-name xxx --update-policy-description-info '{"":""}'
''',
)
def update_policy_description(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.UpdatePolicyDescriptionRequest import UpdatePolicyDescriptionRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = UpdatePolicyDescriptionRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--page-number'], dict(help="""(int) 页码,默认1 """, dest='pageNumber', type=int, required=False)),
(['--page-size'], dict(help="""(int) 分页大小,默认50,取值范围[10, 100] """, dest='pageSize', type=int, required=False)),
(['--keyword'], dict(help="""(string) 关键字 """, dest='keyword', required=False)),
(['--query-type'], dict(help="""(int) 策略类型:0-全部(默认),1-系统策略,2-自定义策略 """, dest='queryType', type=int, required=False)),
(['--sort'], dict(help="""(int) 排序规则:0-创建时间顺序排序,1-创建时间倒序排序 """, dest='sort', type=int, required=False)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询策略列表 ''',
description='''
查询策略列表。
示例: jdc iam describe-policies
''',
)
def describe_policies(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribePoliciesRequest import DescribePoliciesRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribePoliciesRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--create-role-info'], dict(help="""(createRoleInfo) 角色信息 """, dest='createRoleInfo', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 创建角色 ''',
description='''
创建角色。
示例: jdc iam create-role --create-role-info '{"":""}'
''',
)
def create_role(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.CreateRoleRequest import CreateRoleRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = CreateRoleRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--role-name'], dict(help="""(string) 角色名称 """, dest='roleName', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询角色详情 ''',
description='''
查询角色详情。
示例: jdc iam describe-role --role-name xxx
''',
)
def describe_role(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribeRoleRequest import DescribeRoleRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribeRoleRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--role-name'], dict(help="""(string) 角色名称 """, dest='roleName', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 删除角色 ''',
description='''
删除角色。
示例: jdc iam delete-role --role-name xxx
''',
)
def delete_role(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DeleteRoleRequest import DeleteRoleRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DeleteRoleRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--role-name'], dict(help="""(string) 角色名称 """, dest='roleName', required=True)),
(['--update-assume-role-policy-info'], dict(help="""(updateAssumeRolePolicyInfo) 角色权限信息 """, dest='updateAssumeRolePolicyInfo', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 修改角色内置policy ''',
description='''
修改角色内置policy。
示例: jdc iam update-assume-role-policy --role-name xxx --update-assume-role-policy-info '{"":""}'
''',
)
def update_assume_role_policy(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.UpdateAssumeRolePolicyRequest import UpdateAssumeRolePolicyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = UpdateAssumeRolePolicyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--page-number'], dict(help="""(int) 页码,默认1 """, dest='pageNumber', type=int, required=False)),
(['--page-size'], dict(help="""(int) 分页大小,默认50,取值范围[10, 100] """, dest='pageSize', type=int, required=False)),
(['--role-name'], dict(help="""(string) 角色名称关键词 """, dest='roleName', required=False)),
(['--type'], dict(help="""(int) 角色类型,默认查找所有类型,2-服务相关角色,3-服务角色,4-用户角色 """, dest='type', type=int, required=False)),
(['--sort'], dict(help="""(int) 排序策略,0-按创建时间顺序排序,1-按创建时间倒序排序 """, dest='sort', type=int, required=False)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询角色列表 ''',
description='''
查询角色列表。
示例: jdc iam describe-roles
''',
)
def describe_roles(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribeRolesRequest import DescribeRolesRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribeRolesRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--role-name'], dict(help="""(string) 角色名称 """, dest='roleName', required=True)),
(['--policy-name'], dict(help="""(string) 策略名称 """, dest='policyName', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 为角色绑定策略 ''',
description='''
为角色绑定策略。
示例: jdc iam attach-role-policy --role-name xxx --policy-name xxx
''',
)
def attach_role_policy(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.AttachRolePolicyRequest import AttachRolePolicyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = AttachRolePolicyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--role-name'], dict(help="""(string) 角色名称 """, dest='roleName', required=True)),
(['--policy-name'], dict(help="""(string) 策略名称 """, dest='policyName', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 为角色绑定策略 ''',
description='''
为角色绑定策略。
示例: jdc iam detach-role-policy --role-name xxx --policy-name xxx
''',
)
def detach_role_policy(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DetachRolePolicyRequest import DetachRolePolicyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DetachRolePolicyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--role-name'], dict(help="""(string) 角色名称 """, dest='roleName', required=True)),
(['--page-number'], dict(help="""(int) 页码 """, dest='pageNumber', type=int, required=False)),
(['--page-size'], dict(help="""(int) 每页显示数目[10~100] 默认50条 """, dest='pageSize', type=int, required=False)),
(['--keyword'], dict(help="""(string) 关键字 """, dest='keyword', required=False)),
(['--sort'], dict(help="""(int) 排序策略,0-按创建时间顺序排序 1-按创建时间倒序 """, dest='sort', type=int, required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询角色授权策略列表 ''',
description='''
查询角色授权策略列表。
示例: jdc iam describe-role-policies --role-name xxx --sort 0
''',
)
def describe_role_policies(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribeRolePoliciesRequest import DescribeRolePoliciesRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribeRolePoliciesRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--create-sub-user-info'], dict(help="""(createSubUserInfo) 子用户信息 """, dest='createSubUserInfo', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 创建子用户 ''',
description='''
创建子用户。
示例: jdc iam create-sub-user --create-sub-user-info '{"":""}'
''',
)
def create_sub_user(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.CreateSubUserRequest import CreateSubUserRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = CreateSubUserRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--sub-user'], dict(help="""(string) 子用户名 """, dest='subUser', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询子用户信息 ''',
description='''
查询子用户信息。
示例: jdc iam describe-sub-user --sub-user xxx
''',
)
def describe_sub_user(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribeSubUserRequest import DescribeSubUserRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribeSubUserRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--sub-user'], dict(help="""(string) 子用户名 """, dest='subUser', required=True)),
(['--update-sub-user-info'], dict(help="""(updateSubUserInfo) 子用户信息 """, dest='updateSubUserInfo', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 修改子用户信息 ''',
description='''
修改子用户信息。
示例: jdc iam update-sub-user --sub-user xxx --update-sub-user-info '{"":""}'
''',
)
def update_sub_user(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.UpdateSubUserRequest import UpdateSubUserRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = UpdateSubUserRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--sub-user'], dict(help="""(string) 子用户名 """, dest='subUser', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 删除子用户信息 ''',
description='''
删除子用户信息。
示例: jdc iam delete-sub-user --sub-user xxx
''',
)
def delete_sub_user(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DeleteSubUserRequest import DeleteSubUserRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DeleteSubUserRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--page-number'], dict(help="""(int) 页码,默认1 """, dest='pageNumber', type=int, required=False)),
(['--page-size'], dict(help="""(int) 分页大小,默认50,取值范围[10, 100] """, dest='pageSize', type=int, required=False)),
(['--keyword'], dict(help="""(string) 关键字 """, dest='keyword', required=False)),
(['--sort'], dict(help="""(int) 排序规则:0-创建时间顺序排序,1-创建时间倒序排序 """, dest='sort', type=int, required=False)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询子用户列表 ''',
description='''
查询子用户列表。
示例: jdc iam describe-sub-users
''',
)
def describe_sub_users(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribeSubUsersRequest import DescribeSubUsersRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribeSubUsersRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--sub-user'], dict(help="""(string) 子用户名 """, dest='subUser', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询子用户所属的所有组 ''',
description='''
查询子用户所属的所有组。
示例: jdc iam describe-sub-user-groups --sub-user xxx
''',
)
def describe_sub_user_groups(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribeSubUserGroupsRequest import DescribeSubUserGroupsRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribeSubUserGroupsRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--sub-user'], dict(help="""(string) 子用户名 """, dest='subUser', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询子用户绑定的策略列表 ''',
description='''
查询子用户绑定的策略列表。
示例: jdc iam describe-attached-sub-user-policies --sub-user xxx
''',
)
def describe_attached_sub_user_policies(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribeAttachedSubUserPoliciesRequest import DescribeAttachedSubUserPoliciesRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribeAttachedSubUserPoliciesRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--sub-user'], dict(help="""(string) 子用户名 """, dest='subUser', required=True)),
(['--policy-name'], dict(help="""(string) 策略名称 """, dest='policyName', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 为子用户解绑策略 ''',
description='''
为子用户解绑策略。
示例: jdc iam detach-sub-user-policy --sub-user xxx --policy-name xxx
''',
)
def detach_sub_user_policy(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DetachSubUserPolicyRequest import DetachSubUserPolicyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DetachSubUserPolicyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--sub-user'], dict(help="""(string) 子用户名 """, dest='subUser', required=True)),
(['--policy-name'], dict(help="""(string) 策略名称 """, dest='policyName', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 为子用户绑定策略 ''',
description='''
为子用户绑定策略。
示例: jdc iam attach-sub-user-policy --sub-user xxx --policy-name xxx
''',
)
def attach_sub_user_policy(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.AttachSubUserPolicyRequest import AttachSubUserPolicyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = AttachSubUserPolicyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 查询主账号AccessKey列表 ''',
description='''
查询主账号AccessKey列表。
示例: jdc iam describe-user-access-keys
''',
)
def describe_user_access_keys(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DescribeUserAccessKeysRequest import DescribeUserAccessKeysRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DescribeUserAccessKeysRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 创建主账号AccessKey ''',
description='''
创建主账号AccessKey。
示例: jdc iam create-user-access-key
''',
)
def create_user_access_key(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.CreateUserAccessKeyRequest import CreateUserAccessKeyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = CreateUserAccessKeyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)),
(['--access-key'], dict(help="""(string) accessKey """, dest='accessKey', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 启用主账号AccessKey ''',
description='''
启用主账号AccessKey。
示例: jdc iam enabled-user-access-key --access-key xxx
''',
)
def enabled_user_access_key(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.EnabledUserAccessKeyRequest import EnabledUserAccessKeyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = EnabledUserAccessKeyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)),
(['--access-key'], dict(help="""(string) accessKey """, dest='accessKey', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 禁用主账号AccessKey ''',
description='''
禁用主账号AccessKey。
示例: jdc iam disabled-user-access-key --access-key xxx
''',
)
def disabled_user_access_key(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DisabledUserAccessKeyRequest import DisabledUserAccessKeyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DisabledUserAccessKeyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--region-id'], dict(help="""(string) Region ID """, dest='regionId', required=False)),
(['--access-key'], dict(help="""(string) accessKey """, dest='accessKey', required=True)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
help=''' 删除AccessKey ''',
description='''
删除AccessKey。
示例: jdc iam delete-user-access-key --access-key xxx
''',
)
def delete_user_access_key(self):
client_factory = ClientFactory('iam')
client = client_factory.get(self.app)
if client is None:
return
try:
from jdcloud_sdk.services.iam.apis.DeleteUserAccessKeyRequest import DeleteUserAccessKeyRequest
params_dict = collect_user_args(self.app)
headers = collect_user_headers(self.app)
req = DeleteUserAccessKeyRequest(params_dict, headers)
resp = client.send(req)
Printer.print_result(resp)
except ImportError:
print('{"error":"This api is not supported, please use the newer version"}')
except Exception as e:
print(e)
@expose(
arguments=[
(['--api'], dict(help="""(string) api name """, choices=['enable-sub-user-access-key','disable-sub-user-access-key','delete-sub-user-access-key','create-group','describe-group','update-group','delete-group','describe-group-sub-users','describe-groups','describe-attached-group-policies','detach-group-policy','attach-group-policy','remove-sub-user-from-group','add-sub-user-to-group','create-permission','describe-permission-detail','update-permission','describe-permissions','describe-sub-user-permissions','add-permissions-to-sub-user','remove-permission-of-sub-user','create-policy','describe-policy','update-policy','delete-policy','update-policy-description','describe-policies','create-role','describe-role','delete-role','update-assume-role-policy','describe-roles','attach-role-policy','detach-role-policy','describe-role-policies','create-sub-user','describe-sub-user','update-sub-user','delete-sub-user','describe-sub-users','describe-sub-user-groups','describe-attached-sub-user-policies','detach-sub-user-policy','attach-sub-user-policy','describe-user-access-keys','create-user-access-key','enabled-user-access-key','disabled-user-access-key','delete-user-access-key',], required=True)),
],
formatter_class=RawTextHelpFormatter,
help=''' 生成单个API接口的json骨架空字符串 ''',
description='''
生成单个API接口的json骨架空字符串。
示例: jdc nc generate-skeleton --api describeContainer ''',
)
def generate_skeleton(self):
skeleton = Skeleton('iam', self.app.pargs.api)
skeleton.show()
| 46.939701
| 1,212
| 0.592567
| 8,149
| 78,624
| 5.629525
| 0.045527
| 0.035226
| 0.025635
| 0.041417
| 0.805515
| 0.784044
| 0.779117
| 0.775695
| 0.774082
| 0.770768
| 0
| 0.003897
| 0.246057
| 78,624
| 1,674
| 1,213
| 46.967742
| 0.769999
| 0.008064
| 0
| 0.758804
| 0
| 0.04186
| 0.320367
| 0.107229
| 0
| 0
| 0
| 0
| 0
| 1
| 0.033223
| false
| 0
| 0.069767
| 0
| 0.136877
| 0.098339
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
334073b6e8fa42266906336fa648cc0857b4cad1
| 4,427
|
py
|
Python
|
web/pipeline/migrations/0053_auto_20200813_0521.py
|
stevenstuber/CIT
|
8c485e72084c06da6db45da1cb402bac26411ec2
|
[
"Apache-2.0"
] | 10
|
2020-11-12T15:13:40.000Z
|
2022-03-05T22:33:08.000Z
|
web/pipeline/migrations/0053_auto_20200813_0521.py
|
stevenstuber/CIT
|
8c485e72084c06da6db45da1cb402bac26411ec2
|
[
"Apache-2.0"
] | 28
|
2020-07-17T16:33:55.000Z
|
2022-03-21T16:24:25.000Z
|
web/pipeline/migrations/0053_auto_20200813_0521.py
|
stevenstuber/CIT
|
8c485e72084c06da6db45da1cb402bac26411ec2
|
[
"Apache-2.0"
] | 5
|
2020-11-02T23:39:53.000Z
|
2022-03-01T19:09:45.000Z
|
# Generated by Django 2.2.13 on 2020-08-13 05:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pipeline', '0052_auto_20200813_0239'),
]
operations = [
migrations.AddField(
model_name='censussubdivision',
name='avg_household_size',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='household_size_1',
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='household_size_2',
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='household_size_3',
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='household_size_4',
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='household_size_5_more',
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='households_owner_avg_dwelling_value',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='households_owner_avg_monthly_shelter_costs',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='households_owner_median_dwelling_value',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='households_owner_median_monthly_shelter_costs',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='households_owner_pct_mortgage',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='households_owner_spending_30_pct_income',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='households_tenant_avg_shelter_cost',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='households_tenant_median_shelter_cost',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='households_tenant_pct_subsidized_housing',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='households_tenant_spending_30_pct_income',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='housing_band_housing',
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='housing_cond_major_repairs',
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='housing_cond_regular_maintenance',
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='housing_cost_30_pct_more_income',
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='housing_cost_less_30_pct_income',
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='housing_owner',
field=models.IntegerField(null=True),
),
migrations.AddField(
model_name='censussubdivision',
name='housing_renter',
field=models.IntegerField(null=True),
),
]
| 34.317829
| 65
| 0.592275
| 381
| 4,427
| 6.614173
| 0.173228
| 0.164286
| 0.209921
| 0.246429
| 0.888095
| 0.87381
| 0.854762
| 0.854762
| 0.854762
| 0.851984
| 0
| 0.014696
| 0.308335
| 4,427
| 128
| 66
| 34.585938
| 0.808295
| 0.010391
| 0
| 0.754098
| 1
| 0
| 0.244576
| 0.124001
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.008197
| 0
| 0.032787
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
3354ac5ebb237a6b077be513437dc8260faceb87
| 8,755
|
py
|
Python
|
yarll/agents/__init__.py
|
hknozturk/yarll
|
c5293e6455e3debe6e4d4d21f713937a24a654f3
|
[
"MIT"
] | null | null | null |
yarll/agents/__init__.py
|
hknozturk/yarll
|
c5293e6455e3debe6e4d4d21f713937a24a654f3
|
[
"MIT"
] | null | null | null |
yarll/agents/__init__.py
|
hknozturk/yarll
|
c5293e6455e3debe6e4d4d21f713937a24a654f3
|
[
"MIT"
] | null | null | null |
from yarll.agents.registration import register_agent, make_agent
register_agent(name="A2C",
entry_point="yarll.agents.tf2.actorcritic.a2c:A2CDiscrete",
state_dimensions="continuous",
action_space="discrete"
)
register_agent(name="A2C",
entry_point="yarll.agents.tf2.actorcritic.a2c:A2CDiscreteCNN",
state_dimensions="multi",
action_space="discrete"
)
register_agent(name="A2C",
entry_point="yarll.agents.tf2.actorcritic.a2c:A2CDiscreteCNNRNN",
state_dimensions="multi",
action_space="discrete",
rnn=True
)
register_agent(name="A2C",
entry_point="yarll.agents.tf2.actorcritic.a2c:A2CContinuous",
state_dimensions="continuous",
action_space="continuous"
)
register_agent(name="A3C",
entry_point="yarll.agents.tf1.actorcritic.a3c:A3CDiscrete",
state_dimensions="continuous",
action_space="discrete"
)
register_agent(name="A3C",
entry_point="yarll.agents.tf1.actorcritic.a3c:A3CDiscreteCNN",
state_dimensions="multi",
action_space="discrete"
)
register_agent(name="A3C",
entry_point="yarll.agents.tf1.actorcritic.a3c:A3CDiscreteCNNRNN",
state_dimensions="multi",
action_space="discrete",
rnn=True
)
register_agent(name="A3C",
entry_point="yarll.agents.tf1.actorcritic.a3c:A3CContinuous",
state_dimensions="continuous",
action_space="continuous"
)
register_agent(name="AsyncKnowledgeTransfer",
entry_point="yarll.agents.tf1.knowledgetransfer.async_knowledge_transfer:AsyncKnowledgeTransfer",
state_dimensions="continuous",
action_space="discrete"
)
register_agent(name="PPO",
entry_point="yarll.agents.tf2.ppo.ppo:PPODiscrete",
state_dimensions="continuous",
action_space="discrete"
)
register_agent(name="PPO",
entry_point="yarll.agents.tf2.ppo.ppo:PPOBernoulli",
state_dimensions="continuous",
action_space="multibinary"
)
register_agent(name="PPO",
entry_point="yarll.agents.tf2.ppo.ppo:PPODiscreteCNN",
state_dimensions="multi",
action_space="discrete"
)
register_agent(name="PPO",
entry_point="yarll.agents.tf2.ppo.ppo:PPOContinuous",
state_dimensions="continuous",
action_space="continuous"
)
register_agent(name="PPO",
entry_point="yarll.agents.tf2.ppo.ppo:PPOMultiDiscrete",
state_dimensions="continuous",
action_space="multidiscrete"
)
register_agent(name="DPPO",
entry_point="yarll.agents.tf2.ppo.dppo:DPPODiscrete",
state_dimensions="continuous",
action_space="discrete"
)
register_agent(name="DPPO",
entry_point="yarll.agents.tf2.ppo.dppo:DPPODiscreteCNN",
state_dimensions="multi",
action_space="discrete"
)
register_agent(name="DPPO",
entry_point="yarll.agents.tf2.ppo.dppo:DPPOContinuous",
state_dimensions="continuous",
action_space="continuous"
)
register_agent(name="TRPO",
entry_point="yarll.agents.tf2.trpo.trpo:TRPODiscrete",
state_dimensions="continuous",
action_space="discrete"
)
register_agent(name="TRPO",
entry_point="yarll.agents.tf2.trpo.trpo:TRPODiscreteCNN",
state_dimensions="multi",
action_space="discrete"
)
register_agent(name="TRPO",
entry_point="yarll.agents.tf2.trpo.trpo:TRPOContinuous",
state_dimensions="continuous",
action_space="continuous"
)
register_agent(name="DTRPO",
entry_point="yarll.agents.tf2.trpo.dtrpo:DTRPODiscrete",
state_dimensions="continuous",
action_space="discrete"
)
register_agent(name="DTRPO",
entry_point="yarll.agents.tf2.trpo.dtrpo:DTRPODiscreteCNN",
state_dimensions="multi",
action_space="discrete"
)
register_agent(name="DTRPO",
entry_point="yarll.agents.tf2.trpo.dtrpo:DTRPOContinuous",
state_dimensions="continuous",
action_space="continuous"
)
register_agent(name="DDPG",
entry_point="yarll.agents.tf2.ddpg:DDPG",
state_dimensions="continuous",
action_space="continuous"
)
register_agent(name="CEM",
entry_point="yarll.agents.basic.cem:CEM",
state_dimensions="continuous",
action_space="discrete"
)
register_agent(name="CEM",
entry_point="yarll.agents.basic.cem:CEM",
state_dimensions="continuous",
action_space="multibinary"
)
register_agent(name="CEM",
entry_point="yarll.agents.basic.cem:CEM",
state_dimensions="continuous",
action_space="continuous"
)
register_agent(name="KnowledgeTransfer",
entry_point="yarll.agents.tf1.knowledge_transfer:KnowledgeTransfer",
state_dimensions="continuous",
action_space="discrete"
)
register_agent(name="REINFORCE",
entry_point="yarll.agents.tf2.reinforce:REINFORCEDiscrete",
state_dimensions="continuous",
action_space="discrete"
)
register_agent(name="REINFORCE",
entry_point="yarll.agents.tf2.reinforce:REINFORCEDiscreteRNN",
state_dimensions="continuous",
action_space="discrete",
rnn=True
)
register_agent(name="REINFORCE",
entry_point="yarll.agents.tf2.reinforce:REINFORCEBernoulli",
state_dimensions="continuous",
action_space="multibinary"
)
register_agent(name="REINFORCE",
entry_point="yarll.agents.tf2.reinforce:REINFORCEDiscreteCNN",
state_dimensions="multi",
action_space="discrete"
)
register_agent(name="REINFORCE",
entry_point="yarll.agents.tf2.reinforce:REINFORCEDiscreteCNNRNN",
state_dimensions="multi",
action_space="discrete",
rnn=True
)
register_agent(name="REINFORCE",
entry_point="yarll.agents.tf2.reinforce:REINFORCEContinuous",
state_dimensions="continuous",
action_space="continuous"
)
register_agent(name="REINFORCE",
entry_point="yarll.agents.tf2.reinforce:REINFORCEContinuous",
state_dimensions="continuous",
action_space="continuous",
rnn=True
)
register_agent(name="REINFORCE",
entry_point="yarll.agents.pytorch:REINFORCEContinuous",
state_dimensions="continuous",
action_space="continuous",
backend="pytorch",
)
register_agent(name="SarsaFA",
entry_point="yarll.agents.basic.sarsa.sarsa_fa:SarsaFA",
state_dimensions="continuous",
action_space="discrete"
)
register_agent(name="SAC",
entry_point="yarll.agents.tf2.sac:SAC",
state_dimensions="continuous",
action_space="continuous"
)
register_agent(name="SAC",
entry_point="yarll.agents.pytorch:SAC",
state_dimensions="continuous",
action_space="continuous",
backend="pytorch",
)
register_agent(name="QLearning",
entry_point="yarll.agents.basic.q_learning:QLearning",
state_dimensions="discrete",
action_space="discrete")
register_agent(name="FittedQIteration",
entry_point="yarll.agents.tf2.fitted_q:FittedQIteration",
state_dimensions="continuous",
action_space="discrete"
)
register_agent(name="DQN",
entry_point="yarll.agents.tf2.dqn:DQN",
state_dimensions="continuous",
action_space="discrete")
| 40.16055
| 112
| 0.576014
| 765
| 8,755
| 6.362092
| 0.104575
| 0.097185
| 0.146702
| 0.18122
| 0.84775
| 0.80152
| 0.779947
| 0.77481
| 0.764948
| 0.570577
| 0
| 0.009883
| 0.318104
| 8,755
| 217
| 113
| 40.345622
| 0.80536
| 0
| 0
| 0.597222
| 0
| 0
| 0.312164
| 0.200343
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.00463
| 0
| 0.00463
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 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
| 0
| 0
| 0
| 0
|
0
| 7
|
3362228747366e1a8074dc6d1b22f19bdb92b54c
| 73,642
|
py
|
Python
|
provision/tests.py
|
NOAA-GSD/qrba_os
|
83d079e43a7fa026c5ced79d7bc65f62cd74b90b
|
[
"CC0-1.0"
] | 1
|
2019-11-14T03:43:32.000Z
|
2019-11-14T03:43:32.000Z
|
provision/tests.py
|
NOAA-GSD/qrba_os
|
83d079e43a7fa026c5ced79d7bc65f62cd74b90b
|
[
"CC0-1.0"
] | null | null | null |
provision/tests.py
|
NOAA-GSD/qrba_os
|
83d079e43a7fa026c5ced79d7bc65f62cd74b90b
|
[
"CC0-1.0"
] | null | null | null |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
import sys
from django.test import TestCase
from .models import OrganizationExcludes, Quota, Cluster, Clusterpath, IPzone, Organization, Host, WinDC, DNSdomain, \
Report, Sysadmin, Restriction
# Qumulo REST libraries
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
import qumulo.lib.auth
import qumulo.lib.request as request
import qumulo.rest
from qrba import settings
class Testparams():
goodclustername = settings.QUMULO_devcluster['name']
goodclusteradminpassword = settings.QUMULO_devcluster['adminpassword']
goodclusterip = settings.QUMULO_devcluster['ipaddr']
# These must be gleaned from from the domain controller -- but this provides the pattern
goodipzone = "domain.org.tld/ANORG/UNIX/Zones/A_GROUP_NAME"
goodipzone = "domain.org.tld/ANOTHER_ORG/UNIX/Zones/B_GROUP_NAME"
badipzone = "BADZONE"
good_hostname = "qumulo-int.org.tld"
goodip = "a.b.c.d"
badname = "badname.org"
badip = "1.2.3.4"
testqsize = 123
testdirid = 4567
testdirid2 = 45672
testdirid3 = 45673
gooddnsdomain = 'domain.org.tld'
revdnsdomain = 'tld.org.domain'
badrevdnsdomain = 'tld.org.dmaino'
goodexportpath = "/a/good/export/path"
badexportpath = "/verylittlechancethispathexists"
badorganization = "badorg"
goodorganization = "unknown"
goodorganization2 = "unknown2"
gooddc = "centrify.org.tld"
baddc = "testdc"
testcp = "/test/cluster/path/one/two"
testcp2 = "/test/cluster/path2"
testcp3 = "/test/cluster/path3"
testqid = 98765
testlimit = 123456789
oneip = ['a.b.c.d']
twoips = ['a.b.c.d', 'a.b.c.e']
threeips = ['a.b.c.d', 'a.b.c.e', 'f.g.h.i']
def qlogin(host, user, passwd, port):
'''Obtain credentials from the REST server'''
conninfo = None
creds = None
try:
# Create a connection to the REST server
conninfo = qumulo.lib.request.Connection(host, int(port))
# Provide username and password to retreive authentication tokens
# used by the credentials object
login_results, _ = qumulo.rest.auth.login(
conninfo, None, user, passwd)
# Create the credentials object which will be used for
# authenticating rest calls
creds = qumulo.lib.auth.Credentials.from_login_response(login_results)
except Exception, excpt:
print "Error connecting to the REST server: %s" % excpt
# print __doc__
# sys.exit(1)
return (conninfo, creds)
###############################################################################################################
# ____ _ _ ____ _ _ __ __ _ _ _____ _ #
# | _ \| \ | / ___| __| | ___ _ __ ___ __ _(_)_ __ | \/ | ___ __| | ___ | |_ _|__ ___| |_ ___ #
# | | | | \| \___ \ / _` |/ _ \| '_ ` _ \ / _` | | '_ \| |\/| |/ _ \ / _` |/ _ \| | | |/ _ \/ __| __/ __| #
# | |_| | |\ |___) | (_| | (_) | | | | | | (_| | | | | | | | | (_) | (_| | __/| | | | __/\__ \ |_\__ \ #
# |____/|_| \_|____/ \__,_|\___/|_| |_| |_|\__,_|_|_| |_|_| |_|\___/ \__,_|\___||_| |_|\___||___/\__|___/ #
# #
###############################################################################################################
class DNSDomainModelTests(TestCase):
def test_get_windcs_zero(self):
dnsd = DNSdomain(name=Testparams.badrevdnsdomain)
dcs = dnsd.get_dcs_from_msdcs()
self.assertIs(len(dcs) == 1, True)
def test_get_windcs(self):
dnsd = DNSdomain(name=Testparams.gooddnsdomain)
dcs = dnsd.get_dcs_from_msdcs()
self.assertIs(len(dcs) > 1, True)
def test_check_dcs_bad(self):
dnsd = DNSdomain(name=Testparams.badrevdnsdomain)
dcs = dnsd.get_dcs_from_msdcs()
self.assertIs(len(dcs) == 1, True)
def test_check_dcs(self):
dnsd = DNSdomain(name=Testparams.gooddnsdomain)
dcs = dnsd.get_dcs_from_msdcs()
self.assertIs(len(dcs) > 1, True)
def test_get_dcs_from_msdcs_bad(self):
dnsd = DNSdomain(name=Testparams.badrevdnsdomain)
dcs = dnsd.get_dcs_from_msdcs()
self.assertIs(len(dcs) == 1, True)
def test_get_dcs_from_msdcs(self):
dnsd = DNSdomain(name=Testparams.gooddnsdomain)
dcs = dnsd.get_dcs_from_msdcs()
self.assertIs(len(dcs) > 1, True)
#########################################################################################################################################################
# ___ _ _ _ _____ _ _ __ __ _ _ _____ _ #
# / _ \ _ __ __ _ __ _ _ __ (_)______ _| |_(_) ___ _ __ | ____|_ _____| | _ _ __| | ___ ___| \/ | ___ __| | ___| |_ _|__ ___| |_ ___ #
# | | | | '__/ _` |/ _` | '_ \| |_ / _` | __| |/ _ \| '_ \| _| \ \/ / __| || | | |/ _` |/ _ \/ __| |\/| |/ _ \ / _` |/ _ \ | | |/ _ \/ __| __/ __| #
# | |_| | | | (_| | (_| | | | | |/ / (_| | |_| | (_) | | | | |___ > < (__| || |_| | (_| | __/\__ \ | | | (_) | (_| | __/ | | | __/\__ \ |_\__ \ #
# \___/|_| \__, |\__,_|_| |_|_/___\__,_|\__|_|\___/|_| |_|_____/_/\_\___|_| \__,_|\__,_|\___||___/_| |_|\___/ \__,_|\___|_| |_|\___||___/\__|___/ #
# |___/ #
#########################################################################################################################################################
class OrganizationExcludesModelTests(TestCase):
def test_get_excludes(self):
"""
get_excludes returns list of 'organizations' to exclude. 'UNIX' is at the end of the list.
"""
testoe = OrganizationExcludes()
self.assertIn('UNIX', testoe.get_excludes())
def testset_excludes(self):
'''
sets the list of excluded organizations
:param exlist: space delimited list of organizations
:return: no return value
'''
exlist = ['test string ']
testoe = OrganizationExcludes()
testoe.set_excludes(exlist)
self.assertIn('UNIX', testoe.get_excludes())
def add_excludes(self):
'''
adds list of excluded organizations
:param addlist: space delimited list of organizations to be appended to existing list
:return: no return value
'''
addlist = ['test string ']
testoe = OrganizationExcludes()
testoe.add_excludes(addlist)
self.assertIn('UNIX', testoe.get_excludes())
def delete_excludes(self):
'''
removes a list of organizations from the existing list
:param dellist:
:return:
'''
dellist = ['test string ']
testoe = OrganizationExcludes()
testoe.delete_excludes(dellist)
self.assertIn('UNIX', testoe.get_excludes())
########################################################################################
# ____ _ _ __ __ _ _ _____ _ #
# / ___| |_ _ ___| |_ ___ _ __| \/ | ___ __| | ___| |_ _|__ ___| |_ ___ #
# | | | | | | / __| __/ _ \ '__| |\/| |/ _ \ / _` |/ _ \ | | |/ _ \/ __| __|/ __| #
# | |___| | |_| \__ \ || __/ | | | | | (_) | (_| | __/ | | | __/\__ \ |_ \__ \ #
# \____|_|\__,_|___/\__\___|_| |_| |_|\___/ \__,_|\___|_| |_|\___||___/\__||___/ #
# #
########################################################################################
class ClusterModelTests(TestCase):
def test_alive_badip(self):
## expected to return false
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.badip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
self.assertIs(testc.alive(), False)
def test_alive_socket_error(self):
## expected to return false
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.badip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
self.assertIs(testc.alive(), False)
def test_alive_goodcluster(self):
## expected to return true
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
self.assertIs(testc.alive(), True)
def test_create_directory_on_cluster(self):
## expected to return a non-zero 'path id' which references the directory created
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
(conninfo, creds) = qlogin(testc.ipaddr, testc.adminname, testc.adminpassword, testc.port)
did = testc.create_directory_on_cluster(conninfo, creds, Testparams.testcp)
ok = False
if did > 0:
ok = True
self.assertIs(ok, True)
def test_delete_directory_on_cluster(self):
## return message includes 'deleted directory' if the deletion was successful
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
(conninfo, creds) = qlogin(testc.ipaddr, testc.adminname, testc.adminpassword, testc.port)
msg = testc.delete_directory_on_cluster(conninfo, creds, Testparams.testcp)
ok = False
if 'deleted directory' in msg:
ok = True
self.assertIs(ok, True)
def test_create_quota_on_cluster(self):
## expected to return 'created quota' in msg
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
(conninfo, creds) = qlogin(testc.ipaddr, testc.adminname, testc.adminpassword, testc.port)
did = testc.create_directory_on_cluster(conninfo, creds, Testparams.testcp)
msg = testc.create_quota_on_cluster(conninfo, creds, did, Testparams.testcp, Testparams.testlimit)
ok = False
if 'created quota_' in msg:
ok = True
self.assertIs(ok, True)
def test_delete_quota_on_cluster(self):
## expected to return deleted_quota is msg
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
(conninfo, creds) = qlogin(testc.ipaddr, testc.adminname, testc.adminpassword, testc.port)
did = testc.create_directory_on_cluster(conninfo, creds, Testparams.testcp)
msg = testc.create_quota_on_cluster(conninfo, creds, did, Testparams.testcp, Testparams.testlimit)
# print(msg)
msg = testc.delete_quota_on_cluster(conninfo, creds, did, Testparams.testcp)
#print(msg)
ok = False
if 'deleted quota_' in msg:
ok = True
self.assertIs(ok, True)
def test_fetch_clusterpaths_goodcluster(self):
## expect one or more items in returned list of quotas
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
(conninfo, creds) = qlogin(testc.ipaddr, testc.adminname, testc.adminpassword, testc.port)
did = testc.create_directory_on_cluster(conninfo, creds, Testparams.testcp)
msg = testc.create_quota_on_cluster(conninfo, creds, did, Testparams.testcp, Testparams.testlimit)
quotas = testc.fetch_qumulo_shares(testc)
#msg = testc.delete_quota_on_cluster(conninfo, creds, did, Testparams.testcp)
self.assertIs(len(quotas) > 0, True)
def test_sync_clusterpaths_from_cluster_goodcluster(self):
# length of activity['out_of_sync'] should be 0
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
activity = testc.sync_clusterpaths_from_cluster(testc)
self.assertIs(len(activity['out_of_sync']) == 0, True)
def test_sync_clusterpaths_to_cluster_goodcluster(self):
# length of activity['out_of_sync'] should be 0
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
activity = testc.sync_clusterpaths_to_cluster(testc)
self.assertIs(len(activity['out_of_sync']) == 0, True)
def test_fetch_nfs_shares_goodcluster(self):
# expect one or more items in returned list of shares
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
shares = testc.fetch_nfs_shares(testc)
self.assertIs(len(shares) > 0, True)
def test_sync_nfs_exports_from_cluster_goodcluster(self):
# length of activity['out_of_sync'] should be 0
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
activity = testc.sync_nfs_exports_from_cluster(testc)
self.assertIs(len(activity['out_of_sync']) == 0, True)
def test_host_restrictions_to_ipaddrlist_blanklist(self):
## state expected to be True
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
restrictions = ""
ipaddrlist = testc.host_restrictions_to_ipaddrlist(restrictions)
self.assertIs(len(ipaddrlist) == 0, True)
def test_host_restrictions_to_ipaddrlist_comma_delimited_list(self):
## state expected to be True
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
restrictions = [
"137.75.200.204",
"137.75.200.203"]
ipaddrlist = testc.host_restrictions_to_ipaddrlist(restrictions)
self.assertIs(len(ipaddrlist) == 2, True)
# https://en.wikipedia.org/wiki/Subnetwork
def test_host_restrictions_to_ipaddrlist_slash25(self):
## state expected to be True
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
restrictions = ["192.168.0.0/25"]
ipaddrlist = testc.host_restrictions_to_ipaddrlist(restrictions)
self.assertIs(len(ipaddrlist) == 126, True)
def test_host_restrictions_to_ipaddrlist_slash255255255000(self):
## expect 256 hosts
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
restrictions = ["192.168.0.0/255.255.255.0"]
ipaddrlist = testc.host_restrictions_to_ipaddrlist(restrictions)
self.assertIs(len(ipaddrlist) == 254, True)
def test_host_restrictions_to_ipaddrlist_dash10(self):
## expect ? hosts
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword)
testc.save()
restrictions = ["192.168.1.1-10"]
ipaddrlist = testc.host_restrictions_to_ipaddrlist(restrictions)
self.assertIs(len(ipaddrlist) == 10, True)
###################################################################################
# ___ _ __ __ _ _ _____ _ #
# / _ \ _ _ ___ | |_ __ _| \/ | ___ __| | ___| |_ _|__ ___| |_ ___ #
# | | | | | | |/ _ \| __/ _` | |\/| |/ _ \ / _` |/ _ \ | | |/ _ \/ __| __/ __| #
# | |_| | |_| | (_) | || (_| | | | | (_) | (_| | __/ | | | __/\__ \ |_\__ \ #
# \__\_\\__,_|\___/ \__\__,_|_| |_|\___/ \__,_|\___|_| |_|\___||___/\__|___/ #
# #
###################################################################################
class QuotaModelTests(TestCase):
def test_get_size(self):
"""
get_size should return the quota's size
"""
testq = Quota(qid=1, name="test", size=Testparams.testqsize)
testq.save()
self.assertEqual(testq.get_size(), Testparams.testqsize)
##############################################################################################################
# ____ _ _ _ _ __ __ _ _ _____ _ #
# / ___| |_ _ ___| |_ ___ _ __ _ __ __ _| |_| |__ | \/ | ___ __| | ___ | |_ _|__ ___| |_ ___ #
# | | | | | | / __| __/ _ \ '__| '_ \ / _` | __| '_ \| |\/| |/ _ \ / _` |/ _ \| | | |/ _ \/ __| __/ __| #
# | |___| | |_| \__ \ || __/ | | |_) | (_| | |_| | | | | | | (_) | (_| | __/| | | | __/\__ \ |_\__ \ #
# \____|_|\__,_|___/\__\___|_| | .__/ \__,_|\__|_| |_|_| |_|\___/ \__,_|\___||_| |_|\___||___/\__|___/ #
# |_| #
##############################################################################################################
# class ClusterpathModelTests(TestCase):
# def test_get_dirid(self):
# """
# get_dirid should return the cluster path's directory id
# """
# testc = Cluster(dirpath=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
# adminpassword=Testparams.goodclusteradminpassword, )
# testc.save()
# testq = Quota(dirpath="testq", size=Testparams.testqsize)
# testq.save()
# testcp = Clusterpath(dirpath='testcp', cluster=testc, quota=testq, exportid=Testparams.testdirid)
# testcp.save()
# self.assertIs(testcp.get_dirid() == Testparams.testdirid, True)
############################################################################
# _ _ _ __ __ _ _ _____ _ #
# | | | | ___ ___| |_| \/ | ___ __| | ___| |_ _|__ ___| |_ ___ #
# | |_| |/ _ \/ __| __| |\/| |/ _ \ / _` |/ _ \ | | |/ _ \/ __| __/ __| #
# | _ | (_) \__ \ |_| | | | (_) | (_| | __/ | | | __/\__ \ |_\__ \ #
# |_| |_|\___/|___/\__|_| |_|\___/ \__,_|\___|_| |_|\___||___/\__|___/ #
# #
############################################################################
class HostModelTests(TestCase):
def test_check_hostname_allok(self):
"""
check_hostname returns false if the dirpath was not updated
"""
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save
testhost = Host(name=Testparams.good_hostname, ipaddr=Testparams.goodip, ipzone=testipz)
testhost.save
self.assertIs(testhost.check_hostname(), False)
def test_check_hostip_allok(self):
"""
check_hostip returns false if the ipaddress was not updated
"""
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
testhost = Host(name=Testparams, ipaddr=Testparams.goodip, ipzone=testipz)
testhost.save()
self.assertIs(testhost.check_hostip(), True)
def test_check_hostname_badipaddr(self):
"""
check_hostname returns true if the host was upddated
"""
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
testhost = Host(name=Testparams.good_hostname, ipaddr=Testparams.badip, ipzone=testipz)
testhost.save()
self.assertIs(testhost.check_hostname(), True)
def test_check_hostip_badhostname(self):
"""
check_hostip returns true if the ipaddress was updated
"""
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
testhost = Host(name=Testparams.badname, ipaddr=Testparams.goodip, ipzone=testipz)
testhost.save()
print("testhost is " + str(testhost))
print(" ipaddr is: " + str(testhost.ipaddr))
checkresult = testhost.check_hostip()
print("checkresult: " + str(checkresult))
self.assertIs(checkresult, True)
##################################################################################################################
# ___ _ _ _ __ __ _ _ _____ _ #
# / _ \ _ __ __ _ __ _ _ __ (_)______ _| |_(_) ___ _ __ | \/ | ___ __| | ___| |_ _|__ ___| |_ ___ #
# | | | | '__/ _` |/ _` | '_ \| |_ / _` | __| |/ _ \| '_ \| |\/| |/ _ \ / _` | / _ \ | | |/ _ \/ __| __/ __| #
# | |_| | | | (_| | (_| | | | | |/ / (_| | |_| | (_) | | | | | | | (_) | (_| || __/ | | | __/\__ \ |_\__ \ #
# \___/|_| \__, |\__,_|_| |_|_/___\__,_|\__|_|\___/|_| |_|_| |_|\___/ \__,_| \___|_| |_|\___||___/\__|___/ #
# |___/ #
##################################################################################################################
class OrganizationModelTests(TestCase):
# dirpath = models.CharField(max_length=50, null=True, default='')
# ipzone = []
# hosts = []
# clusterpaths = models.ForeignKey(Clusterpath, on_delete=models.CASCADE)
# updated = models.DateTimeField(auto_now_add=True)
def test_get_ipzones_from_windc(self):
"""
get_ipzones_from_windc returns a non-zero length length of zones
"""
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
testorg.set_ipzones([testipz])
testcp.set_organization(testorg)
testdns = DNSdomain(name=Testparams.gooddnsdomain)
testdns.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=testdns)
wdc.save()
wdc.set_ipzones([testipz])
ipzones = testorg.get_ipzones_from_windc()
self.assertIs(len(ipzones) > 0, True)
def test_get_hosts_from_windc(self):
"""
get_hosts_from_windc returns a non-zero length length of hosts
"""
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testorg.set_hosts([Testparams.goodip])
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
testorg.set_ipzones([testipz])
testcp.set_organization(testorg)
testdns = DNSdomain(name=Testparams.gooddnsdomain)
testdns.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=testdns)
wdc.save()
wdc.set_ipzones([testipz])
state = wdc.load_newhosts()
activity = wdc.sync_ips_in_all_WinDCs()
hosts = testorg.get_hosts_from_windc()
self.assertIs(len(hosts) > 0, True)
def test_check_ipzones(self):
"""
load_newipzones returns true if new zones were added
"""
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
testorg.set_ipzones([testipz])
testdns = DNSdomain(name=Testparams.gooddnsdomain)
testdns.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=testdns)
wdc.save()
wdc.set_ipzones([testipz])
activity = testorg.check_ipzones()
self.assertIs(len(activity['newzones']) > 0, True)
def test_check_hosts(self):
"""
load_newhosts returns true if new hosts were added
"""
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
testorg.set_ipzones([testipz])
testdns = DNSdomain(name=Testparams.gooddnsdomain)
testdns.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=testdns)
wdc.save()
wdc.set_ipzones([testipz])
activity = testorg.check_hosts()
self.assertIs(len(activity['newhosts']) > 0, True)
def test_get_ipzones(self):
"""
get_ipzone returns a non-zero length length of zones
"""
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
testorg.set_ipzones([testipz])
testcp.set_organization(testorg)
testdns = DNSdomain(name=Testparams.gooddnsdomain)
testdns.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=testdns)
wdc.save()
wdc.set_ipzones([testipz])
testorg.check_ipzones()
ipzones = testorg.get_ipzones()
self.assertIs(len(ipzones) > 0, True)
def test_get_hosts(self):
"""
get_hosts returns a non-zero length length of hosts
"""
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testorg.set_hosts([Testparams.goodip])
testcp.set_organization(testorg)
hosts = testorg.get_hosts()
self.assertIs(len(hosts) > 0, True)
def test_get_adminhosts(self):
"""
get_hosts returns a non-zero length length of hosts
"""
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testorg.set_adminhosts([Testparams.goodip])
testcp.set_organization(testorg)
hosts = testorg.get_adminhosts()
self.assertIs(len(hosts) > 0, True)
def test_set_clusterpaths_one(self):
"""
test for one clusterpath
"""
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
qr = Organization.objects.filter(name=Testparams.goodorganization)
cpcount = qr[0].clusterpaths.count()
self.assertIs(cpcount == 1, True)
def test_set_clusterpaths_three(self):
"""
test for three clusterpaths
"""
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testcp2 = Clusterpath(dirpath=Testparams.testcp2, cluster=testc, quota=testq, dirid=Testparams.testdirid2)
testcp2.save()
testcp3 = Clusterpath(dirpath=Testparams.testcp3, cluster=testc, quota=testq, dirid=Testparams.testdirid3)
testcp3.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp, testcp2, testcp3])
testcp.set_organization(testorg)
qr = Organization.objects.filter(name=Testparams.goodorganization)
cpcount = qr[0].clusterpaths.count()
self.assertIs(cpcount == 3, True)
######################################################################################
# ___ ____ __ __ _ _ _____ _ #
# |_ _| _ \ _______ _ __ ___| \/ | ___ __| | ___| |_ _|__ ___| |_ ___ #
# | || |_) |_ / _ \| '_ \ / _ \ |\/| |/ _ \ / _` |/ _ \ | | |/ _ \/ __| __/ __| #
# | || __/ / / (_) | | | | __/ | | | (_) | (_| | __/ | | | __/\__ \ |_\__ \ #
# |___|_| /___\___/|_| |_|\___|_| |_|\___/ \__,_|\___|_| |_|\___||___/\__|___/ #
# #
######################################################################################
class ADzoneModelTests(TestCase):
# dirpath = models.CharField('ADZone', max_length=250)
# ipaddrs = []
# quota = models.ForeignKey(Quota, on_delete=models.CASCADE)
# organization = models.CharField('Organization', max_length=250, default='unknown')
# updated = models.DateTimeField(auto_now_add=True)
def test_get_ipddrs_empty(self):
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
self.assertIs(len(testipz.get_ipaddrs()) > 0, False)
def test_get_ipddrs(self):
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirid=Testparams.testdirid, dirpath=Testparams.testcp, cluster=testc, quota=testq, )
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
iplist = []
iplist.append(Testparams.goodclusterip)
iplist.append(Testparams.badip)
iplist.append(Testparams.goodip)
testipz.set_ipaddrs(iplist)
testipz.save()
ipadddirs = testipz.get_ipaddrs()
self.assertIs(len(ipadddirs) == 3, True)
#########################################################################################################
# _ _ __ _____ _ __ __ _ _ _____ _ #
# | \ | |/ _|___| ____|_ ___ __ ___ _ __| |_| \/ | ___ __| | ___| |_ _| ___ ___| |_ ___ #
# | \| | |_/ __| _| \ \/ / '_ \ / _ \| '__| __| |\/| |/ _ \ / _` |/ _ \ | | | / _ \/ __| __/ __| #
# | |\ | _\__ \ |___ > <| |_) | (_) | | | |_| | | | (_) | (_| | __/ | | | | __/\__ \ |_\__ \ #
# |_| \_|_| |___/_____/_/\_\ .__/ \___/|_| \__|_| |_|\___/ \__,_|\___|_| |_| \___||___/\__|___/ #
# |_| #
#########################################################################################################
class NfsExportModelTests(TestCase):
def test_set_restrictions(self):
# self.restrictions.all().delete()
# for r in rlist:
# self.restrictions.add(r)
# self.save()
rlist = []
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirid=Testparams.testdirid, dirpath=Testparams.testcp, cluster=testc, quota=testq, )
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
testr1 = Restriction(name="test restriction 1", readonly=True, usermapping='None', usermapid=1)
testr1.save()
rlist.append(testr1)
testr = Restriction(name="test restriction 2", readonly=True, usermapping='None', usermapid=2)
testr.save()
rlist.append(testr)
self.assertEqual(len(rlist) == 2, True)
#delete_nfsexport_on_cluster
########################################################################################
# __ ___ ____ ____ __ __ _ _ _____ _ #
# \ \ / (_)_ __ | _ \ / ___| \/ | ___ __| | ___| |_ _|__ ___| |_ ___ #
# \ \ /\ / /| | '_ \| | | | | | |\/| |/ _ \ / _` |/ _ \ | | |/ _ \/ __| __|/ __| #
# \ V V / | | | | | |_| | |___| | | | (_) | (_| | __/ | | | __/\__ \ |_ \__ \ #
# \_/\_/ |_|_| |_|____/ \____|_| |_|\___/ \__,_|\___|_| |_|\___||___/\__||___/ #
# #
########################################################################################
class WinDCModelTests(TestCase):
def test_get_org_by_zone_badipz(self):
# return org
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirid=Testparams.testdirid, dirpath=Testparams.testcp, cluster=testc, quota=testq)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.badipzone, organization=testorg)
testipz.save()
dnsd = DNSdomain(name=Testparams.badrevdnsdomain)
dnsd.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=dnsd)
wdc.save()
wdc.set_ipzones([testipz])
org = wdc.get_orgname_by_zone(testipz)
self.assertIs(len(org) == 0, True)
def test_get_org_by_zone_goodipz(self):
# return org
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirid=Testparams.testdirid, dirpath=Testparams.testcp, cluster=testc, quota=testq)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
dnsd = DNSdomain(name=Testparams.gooddnsdomain)
dnsd.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=dnsd)
wdc.save()
wdc.set_ipzones([testipz])
org = wdc.get_orgname_by_zone(testipz)
self.assertIs(len(org) > 0, True)
def test_load_neworgs_badipz(self):
# return state
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirid=Testparams.testdirid, dirpath=Testparams.testcp, cluster=testc, quota=testq)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.badipzone, organization=testorg)
testipz.save()
dnsd = DNSdomain(name=Testparams.badrevdnsdomain)
dnsd.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=dnsd)
wdc.save()
wdc.set_ipzones([testipz])
self.assertIs(wdc.load_neworgs(testc), False)
def test_load_neworgs_goodipz(self):
# return state
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirid=Testparams.testdirid, dirpath=Testparams.testcp, cluster=testc, quota=testq)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
dnsd = DNSdomain(name=Testparams.gooddnsdomain)
dnsd.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=dnsd)
wdc.save()
wdc.set_ipzones([testipz])
self.assertIs(wdc.load_neworgs(testc), True)
def test_load_newipzones_badipz(self):
# return state
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirid=Testparams.testdirid, dirpath=Testparams.testcp, cluster=testc, quota=testq)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.badipzone, organization=testorg)
testipz.save()
dnsd = DNSdomain(name=Testparams.badrevdnsdomain)
dnsd.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=dnsd)
wdc.save()
wdc.set_ipzones([testipz])
self.assertIs(wdc.load_newipzones(), False)
def test_load_newipzones_goodipz(self):
# return state
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirid=Testparams.testdirid, dirpath=Testparams.testcp, cluster=testc, quota=testq)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
dnsd = DNSdomain(name=Testparams.gooddnsdomain)
dnsd.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=dnsd)
wdc.save()
wdc.set_ipzones([testipz])
self.assertIs(wdc.load_newipzones(), True)
def test_load_newhosts_baddomain(self):
# return state
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirid=Testparams.testdirid, dirpath=Testparams.testcp, cluster=testc, quota=testq)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
dnsd = DNSdomain(name=Testparams.badrevdnsdomain)
dnsd.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=dnsd)
wdc.save()
wdc.set_ipzones([testipz])
self.assertIs(wdc.load_newhosts(), False)
def test_load_newhosts_gooddomain(self):
# return state
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirid=Testparams.testdirid, dirpath=Testparams.testcp, cluster=testc, quota=testq)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
dnsd = DNSdomain(name=Testparams.gooddnsdomain)
dnsd.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=dnsd)
wdc.save()
wdc.set_ipzones([testipz])
self.assertIs(wdc.load_newhosts(), True)
def test_get_orgs_from_ldap_baddomain(self):
# return org
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
dnsd = DNSdomain(name=Testparams.badrevdnsdomain)
dnsd.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=dnsd)
wdc.save()
wdc.set_ipzones([testipz])
orgs = wdc.get_orgs_from_ldap()
self.assertIs(len(orgs) == 0, True)
def test_get_orgs_from_ldap_gooddomain(self):
# return org
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
dnsd = DNSdomain(name=Testparams.gooddnsdomain)
dnsd.save()
print("gooddc is: " + str(Testparams.gooddc))
wdc = WinDC(name=Testparams.gooddc, dnsdomain=dnsd)
wdc.save()
wdc.set_ipzones([testipz])
orgs = wdc.get_orgs_from_ldap()
print("orgs: " + str(orgs))
self.assertIs(len(orgs) > 0, True)
def test_get_ipzones_from_ldap_baddomain(self):
# return org
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
dnsd = DNSdomain(name=Testparams.badrevdnsdomain)
dnsd.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=dnsd)
wdc.save()
wdc.set_ipzones([testipz])
ipzones = wdc.get_ipzones_by_org_from_ldap()
self.assertIs(len(ipzones) == 0, True)
def test_get_ipzones_from_ldap_gooddomain(self):
# return org
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
dnsd = DNSdomain(name=Testparams.gooddnsdomain)
dnsd.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=dnsd)
wdc.save()
wdc.set_ipzones([testipz])
ipzones = wdc.get_ipzones_by_org_from_ldap()
print("ipzones: " + str(ipzones))
self.assertIs(len(ipzones) > 0, True)
def test_get_hosts_by_ipzone_from_ldap_baddomain(self):
# return org
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
dnsd = DNSdomain(name=Testparams.badrevdnsdomain)
dnsd.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=dnsd)
wdc.save()
wdc.set_ipzones([testipz])
hosts = wdc.get_hosts_by_ipzone_from_ldap()
self.assertIs(len(hosts) == 0, True)
def test_get_hosts_by_ipzone_from_ldap_gooddomain(self):
# return org
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
dnsd = DNSdomain(name=Testparams.gooddnsdomain)
dnsd.save()
wdc = WinDC(name=Testparams.gooddc, dnsdomain=dnsd)
wdc.save()
wdc.set_ipzones([testipz])
hosts = wdc.get_hosts_by_ipzone_from_ldap()
self.assertIs(len(hosts) > 0, True)
########################################################################################
# ____ _ __ __ _ _ _____ _ #
# | _ \ ___ _ __ ___ _ __| |_| \/ | ___ __| | ___| |_ _|__ ___| |_ ___ #
# | |_) / _ \ '_ \ / _ \| '__| __| |\/| |/ _ \ / _` |/ _ \ | | |/ _ \/ __| __|/ __| #
# | _ < __/ |_) | (_) | | | |_| | | | (_) | (_| | __/ | | | __/\__ \ |_ \__ \ #
# |_| \_\___| .__/ \___/|_| \__|_| |_|\___/ \__,_|\___|_| |_|\___||___/\__||___/ #
# |_| #
########################################################################################
class ReportModelTests(TestCase):
def test_get_cadence(self):
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
rpt = Report(name='testreport', organization=testorg, type="testtype1", cadence=Testparams.testdirid)
self.assertEqual(rpt.get_cadence() == Testparams.testdirid, True)
##########################################################################################################
# ____ _ _ _ _ __ __ _ _ _____ _ #
# | _ \ ___ ___| |_ _ __(_) ___| |_(_) ___ _ __ | \/ | ___ __| | ___| ||_ _|__ ___| |_ ___ #
# | |_) / _ \/ __| __| '__| |/ __| __| |/ _ \| '_ \| |\/| |/ _ \ / _` |/ _ \ | | |/ _ \/ __| __/ __| #
# | _ < __/\__ \ |_| | | | (__| |_| | (_) | | | | | | | (_) | (_| | __/ | | | __/\__ \ |_\__ \ #
# |_| \_\___||___/\__|_| |_|\___|\__|_|\___/|_| |_|_| |_|\___/ \__,_|\___|_| |_|\___||___/\__|___/ #
# #
##########################################################################################################
class RestrictionModelTests(TestCase):
def test_get_ipzones(self):
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
lh = Host(name="None", ipaddr='0.0.0.0', ipzone_id=testipz.id)
lh.save()
testr = Restriction(name="test restriction", readonly=True, usermapping='None', usermapid=1)
testr.save()
testr.ipzones.add(testipz)
testr.save()
ipzones = str(testr.get_ipzones())
self.assertIs(len(ipzones) > 0, True)
def test_get_all_ipzone_ipaddrs_onezone_twoips(self):
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
testipz.set_ipaddrs(Testparams.twoips)
testr = Restriction(name="test restriction", readonly=True, usermapping='None', usermapid=1)
testr.save()
testr.ipzones.add(testipz)
testr.save()
ipaddrs = testr.get_all_ipzone_ipaddrs()
self.assertIs(len(ipaddrs) == 2, True)
def test_get_all_ipzone_ipaddrs_twozones_z1oneip_z2threeips(self):
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
testipz.set_ipaddrs(Testparams.twoips)
testipz2 = IPzone(name=Testparams.goodipzone2, organization=testorg)
testipz2.save()
testipz2.set_ipaddrs(Testparams.threeips)
testr = Restriction(name="test restriction", readonly=True, usermapping='None', usermapid=1)
testr.save()
testr.ipzones.add(testipz)
testr.ipzones.add(testipz2)
testr.save()
ipaddrs = testr.get_all_ipzone_ipaddrs()
self.assertIs(len(ipaddrs) == 5, True)
def test_set_ipzone_ipaddrs_onezone_twoips(self):
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
testipz.set_ipaddrs(Testparams.twoips)
testr = Restriction(name="test restriction", readonly=True, usermapping='None', usermapid=1)
testr.save()
testr.ipzones.add(testipz)
testr.save()
testr.set_ipzone_ipaddrs(str(testipz), Testparams.twoips)
ipaddrs = testr.get_all_ipzone_ipaddrs()
self.assertIs(len(ipaddrs) == 2, True)
def test_set_ipzone_ipaddrs_twozones_twoips(self):
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
testipz.set_ipaddrs(Testparams.twoips)
testipz2 = IPzone(name=Testparams.goodipzone2, organization=testorg)
testipz2.save()
testipz2.set_ipaddrs(Testparams.threeips)
testr = Restriction(name="test restriction", readonly=True, usermapping='None', usermapid=1)
testr.save()
# add two
testr.ipzones.add(testipz)
# add three others
testr.ipzones.add(testipz2)
testr.save()
# replace first two the three others
testr.set_ipzone_ipaddrs(str(testipz), Testparams.threeips)
ipaddrs = testr.get_all_ipzone_ipaddrs()
print(" ipaddrs: " + str(ipaddrs))
# should get only three
self.assertIs(len(ipaddrs) == 3, True)
def test_get_all_individual_ipaddrs(self):
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testcp.set_organization(testorg)
testipz = IPzone(name=Testparams.goodipzone, organization=testorg)
testipz.save()
testipz.set_ipaddrs(Testparams.twoips)
testr = Restriction(name="test restriction", readonly=True, usermapping='None', usermapid=1)
testr.save()
testhost = Host(name=Testparams.good_hostname, ipaddr=Testparams.goodip, ipzone=testipz)
testhost.save()
testr.individual_hosts.add(testhost)
ipaddrs = testr.get_all_individual_ipaddrs()
print(" ipaddrs: " + str(ipaddrs))
# should get one
self.assertIs(len(ipaddrs) == 1, True)
#########################################################################################################
# ____ _ _ __ __ _ _ _____ _ #
# / ___| _ _ ___ __ _ __| |_ __ ___ (_)_ __ | \/ | ___ __| | ___| |_ _| ___ ___| |_ ___ #
# \___ \| | | / __|/ _` |/ _` | '_ ` _ \| | '_ \| |\/| |/ _ \ / _` |/ _ \ | | | / _ \/ __| __/ __| #
# ___) | |_| \__ \ (_| | (_| | | | | | | | | | | | | | (_) | (_| | __/ | | | | __/\__ \ |_\__ \ #
# |____/ \__, |___/\__,_|\__,_|_| |_| |_|_|_| |_|_| |_|\___/ \__,_|\___|_| |_| \___||___/\__|___/ #
# |___/ #
#########################################################################################################
class SysadminModelTests(TestCase):
def test_get_organizations(self):
testc = Cluster(name=Testparams.goodclustername, ipaddr=Testparams.goodclusterip,
adminpassword=Testparams.goodclusteradminpassword, )
testc.save()
testq = Quota(qid=1, name="testq", size=Testparams.testqsize)
testq.save()
testcp = Clusterpath(dirpath=Testparams.testcp, cluster=testc, quota=testq, dirid=Testparams.testdirid)
testcp.save()
testorg = Organization(name=Testparams.goodorganization)
testorg.save()
testorg.set_clusterpaths([testcp])
testorg2 = Organization(name=Testparams.goodorganization2)
testorg2.save()
testorg2.set_clusterpaths([testcp])
testorgs = []
testorgs.append(testorg)
testorgs.append(testorg2)
testcp.set_organization(testorg)
sadm = Sysadmin(name='dilbert')
sadm.save()
sadm.organizations.add(testorg)
sadm.organizations.add(testorg2)
retorgs = []
orgs = sadm.get_organizations()
for o in orgs:
retorgs.append(o)
self.assertEqual(retorgs, testorgs)
#############################################################################################
# _ _ _ _ _ __ __ _ _ _____ _ #
# / \ ___| |_(_)_ _(_) |_ _ _| \/ | ___ __| | ___| |_ _|__ ___ | |_ ___ #
# / _ \ / __| __| \ \ / / | __| | | | |\/| |/ _ \ / _` |/ _ \ | | |/ _ \/ __|| __/ __| #
# / ___ \ (__| |_| |\ V /| | |_| |_| | | | | (_) | (_| | __/ | | | __/\__ \| |_\__ \ #
# /_/ \_\___|\__|_| \_/ |_|\__|\__, |_| |_|\___/ \__,_|\___|_| |_|\___||___/ \__|___/ #
# |___/ #
#############################################################################################
##############################################################################################################
# ___ _ _____ _ __ __ _ _ _____ _ #
# / _ \ _ _ ___ | |_ __ _| ____|_ _____ _ __ | |_| \/ | ___ __| | ___ | |_ _|__ ___| |_ ___ #
# | | | | | | |/ _ \| __/ _` | _| \ \ / / _ \ '_ \| __| |\/| |/ _ \ / _` |/ _ \| | | |/ _ \/ __| __/ __| #
# | |_| | |_| | (_) | || (_| | |___ \ V / __/ | | | |_| | | | (_) | (_| | __/| | | | __/\__ \ |_\__ \ #
# \__\_\\__,_|\___/ \__\__,_|_____| \_/ \___|_| |_|\__|_| |_|\___/ \__,_|\___||_| |_|\___||___/\__|___/ #
# #
##############################################################################################################
##########################################################################################################
# ____ _ _ ____ _ _ __ __ _ _ _____ _ #
# / ___| |_ _ ___| |_ ___ _ __/ ___|| | ___ | |_| \/ | ___ __| | ___| ||_ _|__ ___| |_ ___ #
# | | | | | | / __| __/ _ \ '__\___ \| |/ _ \| __| |\/| |/ _ \ / _` |/ _ \ | | |/ _ \/ __| __/ __| #
# | |___| | |_| \__ \ || __/ | ___) | | (_) | |_| | | | (_) | (_| | __/ | | | __/\__ \ |_\__ \ #
# \____|_|\__,_|___/\__\___|_| |____/|_|\___/ \__|_| |_|\___/ \__,_|\___|_| |_|\___||___/\__|___/ #
# #
##########################################################################################################
################################################################################################################
# _ _ _ _ _ ____ _ _ __ __ _ _ _____ _ #
# / \ ___| |_(_)_ _(_) |_ _ _/ ___|| |_ __ _| |_| \/ | ___ __| | ___| |_ _|__ ___| |_ ___ #
# / _ \ / __| __| \ \ / / | __| | | \___ \| __/ _` | __| |\/| |/ _ \ / _` | / _ \ | | |/ _ \/ __| __/ __| #
# / ___ \ (__| |_| |\ V /| | |_| |_| |___) | || (_| | |_| | | | (_) | (_| || __/ | | | __/\__ \ |_\__ \ #
# /_/ \_\___|\__|_| \_/ |_|\__|\__, |____/ \__\__,_|\__|_| |_|\___/ \__,_| \___|_| |_|\___||___/\__|___/ #
# |___/ #
################################################################################################################
######################################################################################################################################################
# _ _ _ _ _ ____ _ ____ _ _ __ __ _ _ _____ _ #
# / \ ___| |_(_)_ _(_) |_ _ _| _ \ _ _ _ __ _ __ (_)_ __ __ _ / ___|| |_ __ _| |_| \/ | ___ __| | ___| |_ _|__ ___| |_ ___ #
# / _ \ / __| __| \ \ / / | __| | | | |_) | | | | '_ \| '_ \| | '_ \ / _` |\___ \| __/ _` | __| |\/| |/ _ \ / _` |/ _ \ | | |/ _ \/ __| __/ __| #
# / ___ \ (__| |_| |\ V /| | |_| |_| | _ <| |_| | | | | | | | | | | | (_| | ___) | || (_| | |_| | | | (_) | (_| | __/ | | | __/\__ \ |_\__ \ #
# /_/ \_\___|\__|_| \_/ |_|\__|\__, |_| \_\\__,_|_| |_|_| |_|_|_| |_|\__, ||____/ \__\__,_|\__|_| |_|\___/ \__,_|\___|_| |_|\___||___/\__|___/ #
# |___/ |___/ #
######################################################################################################################################################
####################################################################################################################
# _ _ _ _ _ _____ _ _ __ __ _ _ _____ _ #
# / \ ___| |_(_)_ _(_) |_ _ _| ___|__| |_ ___| |__ | \/ | ___ __| | ___| |_ _|__ ___| |_ ___ #
# / _ \ / __| __| \ \ / / | __| | | | |_ / _ \ __/ __| '_ \| |\/| |/ _ \ / _` | / _ \ | | |/ _ \/ __| __/ __| #
# / ___ \ (__| |_| |\ V /| | |_| |_| | _| __/ || (__| | | | | | | (_) | (_| || __/ | | | __/\__ \ |_\__ \ #
# /_/ \_\___|\__|_| \_/ |_|\__|\__, |_| \___|\__\___|_| |_|_| |_|\___/ \__,_| \___|_| |_|\___||___/\__|___/ #
# |___/ #
####################################################################################################################
##################################################################################################################
# _ _ _ _ _ _____ __ __ _ _ _____ _ #
# / \ ___| |_(_)_ _(_) |_ _ |_ _| _ _ __ ___| \/ | ___ __| | ___| |_ _|__ ___| |_ ___ #
# / _ \ / __| __| \ \ / / | __| | | || || | | | '_ \ / _ \ |\/| |/ _ \ / _` | / _ \ | | |/ _ \/ __| __/ __| #
# / ___ \ (__| |_| |\ V /| | |_| |_| || || |_| | |_) | __/ | | | (_) | (_| || __/ | | | __/\__ \ |_\__ \ #
# /_/ \_\___|\__|_| \_/ |_|\__|\__, ||_| \__, | .__/ \___|_| |_|\___/ \__,_| \___|_| |_|\___||___/\__|___/ #
# |___/ |___/|_| #
##################################################################################################################
###########################################################################################################################
# ____ ___ ____ _ _ __ __ _ _ _____ _ #
# | _ \ __ _ _ _ ___|_ _|_ __ | _ \ __ _| |_ __ _ ___ ___| |_| \/ | ___ __| | ___| |_ _|__ ___| |_ ___ #
# | | | |/ _` | | | / __|| || '_ \| | | |/ _` | __/ _` / __|/ _ \ __| |\/| | / _ \ / _` |/ _ \ | | |/ _ \/ __| __/ __| #
# | |_| | (_| | |_| \__ \| || | | | |_| | (_| | || (_| \__ \ __/ |_| | | || (_) | (_| | __/ | | | __/\__ \ |_\__ \ #
# |____/ \__,_|\__, |___/___|_| |_|____/ \__,_|\__\__,_|___/\___|\__|_| |_| \___/ \__,_|\___|_| |_|\___||___/\__|___/ #
# |___/ #
###########################################################################################################################
| 50.682725
| 153
| 0.545748
| 5,650
| 73,642
| 6.446726
| 0.069735
| 0.068801
| 0.042115
| 0.063035
| 0.827394
| 0.810757
| 0.799226
| 0.785224
| 0.780776
| 0.768367
| 0
| 0.005022
| 0.269995
| 73,642
| 1,452
| 154
| 50.717631
| 0.67252
| 0.213723
| 0
| 0.750245
| 0
| 0
| 0.022579
| 0.003429
| 0
| 0
| 0
| 0
| 0.064643
| 0
| null | null | 0.061704
| 0.008815
| null | null | 0.008815
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
336b6c6cb33cebe295d0afd60ff0604253a43518
| 10,889
|
py
|
Python
|
modules_python_du_projet/affichage_de_la_meteo.py
|
Vicken-Ghoubiguian/smart_connected_alarm_clock
|
32e683a15b4bc1afcc8263de54c0145289364b55
|
[
"MIT"
] | null | null | null |
modules_python_du_projet/affichage_de_la_meteo.py
|
Vicken-Ghoubiguian/smart_connected_alarm_clock
|
32e683a15b4bc1afcc8263de54c0145289364b55
|
[
"MIT"
] | null | null | null |
modules_python_du_projet/affichage_de_la_meteo.py
|
Vicken-Ghoubiguian/smart_connected_alarm_clock
|
32e683a15b4bc1afcc8263de54c0145289364b55
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*
#
try:
#
from Tkinter import *
#
from urllib2 import urlopen
#
except ImportError:
#
from tkinter import *
#
from urllib.request import urlopen
import situation_de_la_meteo
import horloge_monde
import datetime
import pytz
from PIL import ImageTk, Image
import requests
import io
import base64
#Cette classe permet de définir une interface graphique pour afficher la météo d'une ville enregistrée dans la base de données
class Affichage_de_la_Meteo(Frame):
#Définition du constructeur de la classe Affichage_de_la_Meteo
def __init__(self, fenetre, width_fenetre_de_conf, height_fenetre_de_conf, id_de_la_ville_courante, cle_de_l_API, unite_de_mesure_de_la_temperature_en_chiffre, language):
#Appel au constructeur de la classe parente
Frame.__init__(self, fenetre, width = width_fenetre_de_conf, height = height_fenetre_de_conf)
#
code_du_pays_ou_de_la_zone_correspondant = horloge_monde.renvoi_du_code_du_pays_ou_de_la_zone_correspondant(id_de_la_ville_courante)
#
nom_de_la_ville_courante = horloge_monde.renvoi_du_nom_de_la_ville_courante_pour_la_meteo_a_partir_de_son_id(id_de_la_ville_courante)
#
nom_de_la_ville_courante_dans_la_langue_courante = horloge_monde.renvoi_du_nom_de_la_ville_courante_dans_le_language_passe_en_parametre(id_de_la_ville_courante, language)
#
nom_du_pays_correspondant_a_la_ville_courante = horloge_monde.renvoi_du_nom_du_pays_correspondant_a_l_id_de_la_ville_passe_en_parametre(id_de_la_ville_courante, language)
#
timezone_correspondant_a_la_ville_courante = horloge_monde.renvoi_du_timezone_correspondant_a_l_id_de_la_ville_passe_en_parametre(id_de_la_ville_courante)
#
if unite_de_mesure_de_la_temperature_en_chiffre == 0:
#
unite_de_mesure_de_la_temperature_en_lettres = "Celsius"
#
else:
#
unite_de_mesure_de_la_temperature_en_lettres = "Fahrenheit"
#
self.situation_de_la_meteo_dans_la_ville_donnee = situation_de_la_meteo.Situation_de_la_Meteo(nom_de_la_ville_courante, code_du_pays_ou_de_la_zone_correspondant, cle_de_l_API, unite_de_mesure_de_la_temperature_en_chiffre, language)
#
if language == 0:
#
texte_du_label_d_affichage_des_donnees_generales = "Temperature: " + str(self.situation_de_la_meteo_dans_la_ville_donnee.temperature_dans_la_ville_donnee) + " degrees " + unite_de_mesure_de_la_temperature_en_lettres + ".\nHighest temperature expected: " + str(self.situation_de_la_meteo_dans_la_ville_donnee.prevision_de_la_temperature_la_plus_haute_pour_la_ville_donnee) + " degrees " + unite_de_mesure_de_la_temperature_en_lettres + ".\nLowest temperature expected: " + str(self.situation_de_la_meteo_dans_la_ville_donnee.prevision_de_la_temperature_la_plus_basse_pour_la_ville_donnee) + " degrees " + unite_de_mesure_de_la_temperature_en_lettres+ ".\nHumidity: " + str(self.situation_de_la_meteo_dans_la_ville_donnee.humidite_dans_la_ville_donnee) + "%.\nAtmospheric pressure: " + str(self.situation_de_la_meteo_dans_la_ville_donnee.pression_atmospherique_dans_la_ville_donnee) + " hpa"
#
texte_du_label_d_affichage_de_l_indice_UV_de_la_ville_courante = "UV index: "
#
texte_du_label_d_affichage_du_risque_evalue_que_represente_les_UV = "Risk of exposure: "
#
texte_du_label_d_affichage_de_presentation_de_l_heure_du_lever_de_soleil = "Sunrise time: "
#
texte_du_label_d_affichage_de_presentation_de_l_heure_du_coucher_de_soleil = "Sunset time: "
#
else:
#
texte_du_label_d_affichage_des_donnees_generales = "Température: " + str(self.situation_de_la_meteo_dans_la_ville_donnee.temperature_dans_la_ville_donnee) + " degrés " + unite_de_mesure_de_la_temperature_en_lettres + ".\nTempérature la plus haute attendue: " + str(self.situation_de_la_meteo_dans_la_ville_donnee.prevision_de_la_temperature_la_plus_haute_pour_la_ville_donnee) + " degrés " + unite_de_mesure_de_la_temperature_en_lettres + ".\nTempérature la plus basse attendue: " + str(self.situation_de_la_meteo_dans_la_ville_donnee.prevision_de_la_temperature_la_plus_basse_pour_la_ville_donnee) + " degrés " + unite_de_mesure_de_la_temperature_en_lettres+ ".\nHumidité: " + str(self.situation_de_la_meteo_dans_la_ville_donnee.humidite_dans_la_ville_donnee) + "%.\nPression atmosphérique: " + str(self.situation_de_la_meteo_dans_la_ville_donnee.pression_atmospherique_dans_la_ville_donnee) + " hpa"
#
texte_du_label_d_affichage_de_l_indice_UV_de_la_ville_courante = "Indice UV: "
#
texte_du_label_d_affichage_du_risque_evalue_que_represente_les_UV = "Risque d'exposition: "
#
texte_du_label_d_affichage_de_presentation_de_l_heure_du_lever_de_soleil = "Heure du lever de soleil: "
#
texte_du_label_d_affichage_de_presentation_de_l_heure_du_coucher_de_soleil = "Heure du coucher de soleil: "
#
self.label_d_affichage_du_nom_de_la_ville_concernee = Label(fenetre, text = nom_de_la_ville_courante_dans_la_langue_courante+ " ( " + nom_du_pays_correspondant_a_la_ville_courante + " ): ")
#
self.label_d_affichage_du_nom_de_la_ville_concernee.pack()
#
image_byt = urlopen(self.situation_de_la_meteo_dans_la_ville_donnee.url_de_l_icone_de_la_meteo_de_la_ville_courante).read()
#
image_b64 = base64.encodestring(image_byt)
#
image_prete_a_l_affichage = PhotoImage(data = image_b64)
#
self.canvas_d_affichage_de_l_image_de_presentation_de_la_situation_meteorologique = Label(fenetre, image = image_prete_a_l_affichage)
#
self.canvas_d_affichage_de_l_image_de_presentation_de_la_situation_meteorologique.pack()
#
self.label_d_affichage_des_donnees_generales = Label(fenetre, text = texte_du_label_d_affichage_des_donnees_generales)
#
self.label_d_affichage_des_donnees_generales.pack()
#
self.label_d_affichage_des_donnees_UV = Label(fenetre, text = texte_du_label_d_affichage_de_l_indice_UV_de_la_ville_courante + str(self.situation_de_la_meteo_dans_la_ville_donnee.valeur_de_l_intensite_des_UV_dans_la_ville_donnee) + ".\n" + texte_du_label_d_affichage_du_risque_evalue_que_represente_les_UV + self.situation_de_la_meteo_dans_la_ville_donnee.appreciation_du_risque_d_exposition_aux_UV_dans_la_ville_donnee)
#
self.label_d_affichage_des_donnees_UV.pack()
#
affichage_de_la_date_et_de_l_heure_du_leve_de_soleil = datetime.datetime.fromtimestamp(self.situation_de_la_meteo_dans_la_ville_donnee.heure_du_leve_de_soleil_pour_la_date_courante_sous_forme_de_timestamp, tz = pytz.timezone(timezone_correspondant_a_la_ville_courante))
#
affichage_de_la_date_et_de_l_heure_du_couche_de_soleil = datetime.datetime.fromtimestamp(self.situation_de_la_meteo_dans_la_ville_donnee.heure_du_couche_de_soleil_pour_la_date_courante_sous_forme_de_timestamp, tz = pytz.timezone(timezone_correspondant_a_la_ville_courante))
#
if affichage_de_la_date_et_de_l_heure_du_leve_de_soleil.hour < 10:
#
heure_correspondant_a_l_heure_du_leve_de_soleil = "0" + str(affichage_de_la_date_et_de_l_heure_du_leve_de_soleil.hour)
#
else:
#
heure_correspondant_a_l_heure_du_leve_de_soleil = str(affichage_de_la_date_et_de_l_heure_du_leve_de_soleil.hour)
#
if affichage_de_la_date_et_de_l_heure_du_leve_de_soleil.minute < 10:
#
minute_correspondant_a_l_heure_du_leve_de_soleil = "0" + str(affichage_de_la_date_et_de_l_heure_du_leve_de_soleil.minute)
#
else:
#
minute_correspondant_a_l_heure_du_leve_de_soleil = str(affichage_de_la_date_et_de_l_heure_du_leve_de_soleil.minute)
#
if affichage_de_la_date_et_de_l_heure_du_leve_de_soleil.second < 10:
#
seconde_correspondant_a_l_heure_du_leve_de_soleil = "0" + str(affichage_de_la_date_et_de_l_heure_du_leve_de_soleil.second)
#
else:
#
seconde_correspondant_a_l_heure_du_leve_de_soleil = str(affichage_de_la_date_et_de_l_heure_du_leve_de_soleil.second)
#
if affichage_de_la_date_et_de_l_heure_du_couche_de_soleil.hour < 10:
#
heure_correspondant_a_l_heure_du_couche_de_soleil = "0" + str(affichage_de_la_date_et_de_l_heure_du_couche_de_soleil.hour)
#
else:
#
if affichage_de_la_date_et_de_l_heure_du_couche_de_soleil.hour > 12:
#
if language == 0:
#
if affichage_de_la_date_et_de_l_heure_du_couche_de_soleil.hour % 12 < 10:
#
heure_correspondant_a_l_heure_du_couche_de_soleil = "0" + str(affichage_de_la_date_et_de_l_heure_du_couche_de_soleil.hour % 12)
#
else:
#
heure_correspondant_a_l_heure_du_couche_de_soleil = str(affichage_de_la_date_et_de_l_heure_du_couche_de_soleil.hour % 12)
#
else:
#
heure_correspondant_a_l_heure_du_couche_de_soleil = str(affichage_de_la_date_et_de_l_heure_du_couche_de_soleil.hour)
#
else:
#
heure_correspondant_a_l_heure_du_couche_de_soleil = str(affichage_de_la_date_et_de_l_heure_du_couche_de_soleil.hour)
#
if affichage_de_la_date_et_de_l_heure_du_couche_de_soleil.minute < 10:
#
minute_correspondant_a_l_heure_du_couche_de_soleil = "0" + str(affichage_de_la_date_et_de_l_heure_du_couche_de_soleil.minute)
#
else:
#
minute_correspondant_a_l_heure_du_couche_de_soleil = str(affichage_de_la_date_et_de_l_heure_du_couche_de_soleil.minute)
#
if affichage_de_la_date_et_de_l_heure_du_couche_de_soleil.second < 10:
#
seconde_correspondant_a_l_heure_du_couche_de_soleil = "0" + str(affichage_de_la_date_et_de_l_heure_du_couche_de_soleil.second)
#
else:
#
seconde_correspondant_a_l_heure_du_couche_de_soleil = str(affichage_de_la_date_et_de_l_heure_du_couche_de_soleil.second)
#
if language == 0:
#
indication_avant_midi = " AM"
#
indication_apres_midi = " PM"
#
else:
#
indication_avant_midi = ""
#
indication_apres_midi = ""
#
self.label_d_affichage_des_donnees_astronomiques = Label(fenetre, text = texte_du_label_d_affichage_de_presentation_de_l_heure_du_lever_de_soleil + heure_correspondant_a_l_heure_du_leve_de_soleil + ":" + minute_correspondant_a_l_heure_du_leve_de_soleil + ":" + seconde_correspondant_a_l_heure_du_leve_de_soleil + indication_avant_midi + ".\n" + texte_du_label_d_affichage_de_presentation_de_l_heure_du_coucher_de_soleil + heure_correspondant_a_l_heure_du_couche_de_soleil + ":" + minute_correspondant_a_l_heure_du_couche_de_soleil + ":" + seconde_correspondant_a_l_heure_du_couche_de_soleil + indication_apres_midi + ".")
#
self.label_d_affichage_des_donnees_astronomiques.pack()
| 40.93609
| 926
| 0.793094
| 1,678
| 10,889
| 4.425507
| 0.107867
| 0.04794
| 0.056019
| 0.041745
| 0.84258
| 0.813628
| 0.811743
| 0.792082
| 0.738352
| 0.65944
| 0
| 0.004645
| 0.149876
| 10,889
| 265
| 927
| 41.090566
| 0.797559
| 0.022775
| 0
| 0.182796
| 0
| 0
| 0.047091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.032258
| 0.139785
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
684a024c32c898d162bdb3d91dba5fab6bee27d8
| 5,723
|
py
|
Python
|
selftests/test_testselector.py
|
srveniga/lisa
|
0b5bcf028ed4211d79ff90b9f915981c426baab4
|
[
"MIT"
] | 65
|
2020-12-15T13:42:29.000Z
|
2022-03-03T13:14:16.000Z
|
selftests/test_testselector.py
|
srveniga/lisa
|
0b5bcf028ed4211d79ff90b9f915981c426baab4
|
[
"MIT"
] | 1,261
|
2018-05-17T04:32:22.000Z
|
2020-11-23T17:29:13.000Z
|
selftests/test_testselector.py
|
srveniga/lisa
|
0b5bcf028ed4211d79ff90b9f915981c426baab4
|
[
"MIT"
] | 133
|
2018-05-15T23:12:14.000Z
|
2020-11-13T10:37:49.000Z
|
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from unittest import TestCase
from lisa import LisaException, constants
from selftests.test_testsuite import cleanup_cases_metadata, select_and_check
class SelectorTestCase(TestCase):
def setUp(self) -> None:
cleanup_cases_metadata()
def test_no_case_selected(self) -> None:
runbook = [{constants.TESTCASE_CRITERIA: {"area": "demo"}}]
select_and_check(self, runbook, [])
def test_select_by_priority(self) -> None:
runbook = [{constants.TESTCASE_CRITERIA: {"priority": 0}}]
select_and_check(self, runbook, ["ut1"])
def test_select_by_tag(self) -> None:
runbook = [{constants.TESTCASE_CRITERIA: {"tags": "t1"}}]
select_and_check(self, runbook, ["ut1", "ut2"])
def test_select_by_one_of_tag(self) -> None:
runbook = [{constants.TESTCASE_CRITERIA: {"tags": ["t1", "t3"]}}]
select_and_check(self, runbook, ["ut1", "ut2", "ut3"])
def test_select_by_two_rules(self) -> None:
runbook = [{constants.TESTCASE_CRITERIA: {"tags": ["t1", "t3"], "area": "a1"}}]
select_and_check(self, runbook, ["ut1", "ut2"])
def test_select_by_two_criteria(self) -> None:
runbook = [
{constants.TESTCASE_CRITERIA: {"name": "mock_ut1"}},
{constants.TESTCASE_CRITERIA: {"name": "mock_ut2"}},
]
select_and_check(self, runbook, ["ut1", "ut2"])
def test_select_then_drop(self) -> None:
runbook = [
{constants.TESTCASE_CRITERIA: {"tags": "t1"}},
{
constants.TESTCASE_CRITERIA: {"name": "mock_ut2"},
constants.TESTCASE_SELECT_ACTION: "exclude",
},
]
select_and_check(self, runbook, ["ut1"])
def test_select_drop_select(self) -> None:
runbook = [
{constants.TESTCASE_CRITERIA: {"tags": "t1"}},
{
constants.TESTCASE_CRITERIA: {"name": "mock_ut2"},
constants.TESTCASE_SELECT_ACTION: "exclude",
},
{constants.TESTCASE_CRITERIA: {"tags": "t1"}},
]
select_and_check(self, runbook, ["ut1", "ut2"])
def test_select_force_include(self) -> None:
runbook = [
{
constants.TESTCASE_CRITERIA: {"tags": "t1"},
constants.TESTCASE_SELECT_ACTION: "forceInclude",
},
{
constants.TESTCASE_CRITERIA: {"name": "mock_ut2"},
constants.TESTCASE_SELECT_ACTION: "exclude",
},
]
select_and_check(self, runbook, ["ut1", "ut2"])
def test_select_force_conflict(self) -> None:
runbook = [
{
constants.TESTCASE_CRITERIA: {"tags": "t1"},
constants.TESTCASE_SELECT_ACTION: "forceInclude",
},
{
constants.TESTCASE_CRITERIA: {"name": "mock_ut2"},
constants.TESTCASE_SELECT_ACTION: "forceExclude",
},
]
with self.assertRaises(LisaException) as cm:
select_and_check(self, runbook, ["ut1", "ut2"])
self.assertIsInstance(cm.exception, LisaException)
self.assertIn("force", str(cm.exception))
def test_select_force_conflict_exclude(self) -> None:
runbook = [
{
constants.TESTCASE_CRITERIA: {"tags": "t1"},
constants.TESTCASE_SELECT_ACTION: "include",
},
{
constants.TESTCASE_CRITERIA: {"name": "mock_ut2"},
constants.TESTCASE_SELECT_ACTION: "forceExclude",
},
{
constants.TESTCASE_CRITERIA: {"tags": "t1"},
constants.TESTCASE_SELECT_ACTION: "forceInclude",
},
]
with self.assertRaises(LisaException) as cm:
select_and_check(self, runbook, [])
self.assertIsInstance(cm.exception, LisaException)
self.assertIn("force", str(cm.exception))
def test_select_with_setting(self) -> None:
runbook = [
{constants.TESTCASE_CRITERIA: {"tags": "t1"}, "retry": 2},
]
selected = select_and_check(self, runbook, ["ut1", "ut2"])
self.assertListEqual([2, 2], [case.retry for case in selected])
def test_select_with_times(self) -> None:
runbook = [
{constants.TESTCASE_CRITERIA: {"tags": "t1"}},
{
constants.TESTCASE_CRITERIA: {"name": "mock_ut2"},
"times": 2,
constants.TESTCASE_SELECT_ACTION: "none",
},
]
selected = select_and_check(self, runbook, ["ut1", "ut2", "ut2"])
self.assertListEqual([1, 2, 2], [case.times for case in selected])
self.assertListEqual([0, 0, 0], [case.retry for case in selected])
def test_select_with_setting_none(self) -> None:
runbook = [
{constants.TESTCASE_CRITERIA: {"tags": "t1"}},
{
constants.TESTCASE_CRITERIA: {"name": "mock_ut2"},
"retry": 2,
constants.TESTCASE_SELECT_ACTION: "none",
},
]
selected = select_and_check(self, runbook, ["ut1", "ut2"])
self.assertListEqual([0, 2], [case.retry for case in selected])
def test_select_with_diff_setting(self) -> None:
runbook = [
{constants.TESTCASE_CRITERIA: {"tags": "t1"}, "retry": 2},
{constants.TESTCASE_CRITERIA: {"name": "mock_ut2"}, "retry": 3},
]
selected = select_and_check(self, runbook, ["ut1", "ut2"])
self.assertListEqual([2, 3], [case.retry for case in selected])
| 37.405229
| 87
| 0.56736
| 566
| 5,723
| 5.477032
| 0.144876
| 0.202903
| 0.209677
| 0.116129
| 0.846774
| 0.819032
| 0.760323
| 0.735484
| 0.733548
| 0.678387
| 0
| 0.017574
| 0.294077
| 5,723
| 152
| 88
| 37.651316
| 0.749752
| 0.011882
| 0
| 0.445313
| 0
| 0
| 0.077672
| 0
| 0
| 0
| 0
| 0
| 0.085938
| 1
| 0.125
| false
| 0
| 0.023438
| 0
| 0.15625
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
d7d74de464b0768210b3f4ee64c1d78c5c4e4963
| 18,502
|
py
|
Python
|
z3c/dependencychecker/tests/test_report.py
|
reinout/z3c.dependencychecker
|
2db50d41cb1c3a0701db115112e752b57b377302
|
[
"BSD-3-Clause"
] | 3
|
2015-09-10T12:40:20.000Z
|
2021-06-21T23:38:38.000Z
|
z3c/dependencychecker/tests/test_report.py
|
reinout/z3c.dependencychecker
|
2db50d41cb1c3a0701db115112e752b57b377302
|
[
"BSD-3-Clause"
] | 74
|
2015-01-16T09:22:50.000Z
|
2018-08-08T08:06:55.000Z
|
z3c/dependencychecker/tests/test_report.py
|
reinout/z3c.dependencychecker
|
2db50d41cb1c3a0701db115112e752b57b377302
|
[
"BSD-3-Clause"
] | 3
|
2016-04-06T13:13:30.000Z
|
2018-02-16T13:03:07.000Z
|
# -*- coding: utf-8 -*-
from z3c.dependencychecker.package import Package
from z3c.dependencychecker.report import Report
from z3c.dependencychecker.tests.utils import write_source_file_at
import mock
def test_print_header_nothing(capsys):
fake_package = mock.MagicMock()
report = Report(fake_package)
report._print_header(None)
out, err = capsys.readouterr()
assert out == ''
def test_print_header_text(capsys):
fake_project = mock.MagicMock()
report = Report(fake_project)
report._print_header('hi')
out, err = capsys.readouterr()
assert 'hi' in out
assert '==' in out
assert '===' not in out
def test_print_report(capsys, minimal_structure):
path, package_name = minimal_structure
package = Package(path)
report = Report(package)
report.print_report()
out, err = capsys.readouterr()
assert '======' not in out # there are no errors on the dependencies
assert '' == err
def test_missing_requirements_nothing(capsys):
fake_project = mock.MagicMock()
report = Report(fake_project)
report.missing_requirements()
out, err = capsys.readouterr()
assert out == ''
def test_missing_requirements(capsys, minimal_structure):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name),
'__init__.py',
'import this.package'
)
package = Package(path)
package.inspect()
report = Report(package)
report.missing_requirements()
out, err = capsys.readouterr()
assert 'Missing requirements\n' \
'====================' in out
assert 'this.package' in out
def test_missing_requirements_with_user_mapping(capsys, minimal_structure):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name),
'__init__.py',
'import Products.Five.browser.views.BrowserView'
)
write_source_file_at(
(path, '{0}.egg-info'.format(package_name)),
'requires.txt',
'Zope2',
)
write_source_file_at(
(path, ),
'pyproject.toml',
'\n'.join([
'[tool.dependencychecker]',
'Zope2 = ["Four", "Products.Five", "Three" ]',
]),
)
package = Package(path)
package.inspect()
report = Report(package)
report.missing_requirements()
out, err = capsys.readouterr()
assert 'Missing requirements\n' \
'====================' not in out
assert 'Products.Five' not in out
assert 'Zope2' not in out
def test_missing_requirements_with_ignored_packages(capsys, minimal_structure):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name),
'__init__.py',
'import Products.Five.browser.views.BrowserView'
)
write_source_file_at(
(path, ),
'pyproject.toml',
'\n'.join([
'[tool.dependencychecker]',
'ignore-packages = ["Four", "Products.Five", "Three" ]',
]),
)
package = Package(path)
package.inspect()
report = Report(package)
report.missing_requirements()
out, err = capsys.readouterr()
assert 'Missing requirements\n' \
'====================' not in out
assert 'Products.Five' not in out
assert 'Four' not in out
assert 'Three' not in out
def test_missing_test_requirements(capsys, minimal_structure):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name),
'__init__.py',
'',
)
write_source_file_at(
(path, package_name, 'tests'),
'__init__.py',
'import this.package',
)
package = Package(path)
package.inspect()
report = Report(package)
report.missing_test_requirements()
out, err = capsys.readouterr()
assert 'Missing test requirements\n' \
'=========================' in out
assert 'this.package' in out
def test_missing_test_requirements_with_user_mapping(
capsys,
minimal_structure
):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name),
'__init__.py',
'',
)
write_source_file_at(
(path, package_name, 'tests'),
'__init__.py',
'import Products.Five.browser.views.BrowserView'
)
write_source_file_at(
(path, '{0}.egg-info'.format(package_name)),
'requires.txt',
'Zope2',
)
write_source_file_at(
(path, ),
'pyproject.toml',
'\n'.join([
'[tool.dependencychecker]',
'Zope2 = ["Products.Five" ]',
]),
)
package = Package(path)
package.inspect()
report = Report(package)
report.missing_test_requirements()
out, err = capsys.readouterr()
assert '' == out
assert 'Missing requirements\n' \
'====================' not in out
assert 'Products.Five' not in out
assert 'Zope2' not in out
def test_missing_test_requirements_with_user_mapping_on_test_extra(
capsys,
minimal_structure
):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name),
'__init__.py',
'',
)
write_source_file_at(
(path, package_name, 'tests'),
'__init__.py',
'import Products.Five.browser.views.BrowserView'
)
write_source_file_at(
(path, '{0}.egg-info'.format(package_name)),
'requires.txt',
'\n'.join([
'[test]',
'Zope2',
]),
)
write_source_file_at(
(path, ),
'pyproject.toml',
'\n'.join([
'[tool.dependencychecker]',
'Zope2 = ["Products.Five" ]',
]),
)
package = Package(path)
package.inspect()
report = Report(package)
report.missing_test_requirements()
out, err = capsys.readouterr()
assert '' == out
assert 'Missing requirements\n' \
'====================' not in out
assert 'Products.Five' not in out
assert 'Zope2' not in out
def test_missing_test_requirements_with_ignored_packages(
capsys,
minimal_structure
):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name),
'__init__.py',
'',
)
write_source_file_at(
(path, package_name, 'tests'),
'__init__.py',
'import Products.Five.browser.views.BrowserView'
)
write_source_file_at(
(path, ),
'pyproject.toml',
'\n'.join([
'[tool.dependencychecker]',
'ignore-packages = ["Products.Five" ]',
]),
)
package = Package(path)
package.inspect()
report = Report(package)
report.missing_test_requirements()
out, err = capsys.readouterr()
assert '' == out
assert 'Missing requirements\n' \
'====================' not in out
assert 'Products.Five' not in out
def test_unneeded_requirements(capsys, minimal_structure):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name),
'__init__.py',
'import this.package',
)
package = Package(path)
package.inspect()
report = Report(package)
report.unneeded_requirements()
out, err = capsys.readouterr()
assert 'Unneeded requirements\n' \
'=====================' in out
assert 'one' in out
assert 'two' in out
def test_unneeded_requirements_with_ignored_packages(
capsys,
minimal_structure):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name),
'__init__.py',
'import this.package',
)
write_source_file_at(
(path, ),
'pyproject.toml',
'\n'.join([
'[tool.dependencychecker]',
'ignore-packages = ["one" ]',
]),
)
package = Package(path)
package.inspect()
report = Report(package)
report.unneeded_requirements()
out, err = capsys.readouterr()
assert 'Unneeded requirements\n' \
'=====================' in out
assert 'one' not in out
assert 'two' in out
def test_unneeded_requirements_with_user_mapping(
capsys,
minimal_structure):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name),
'__init__.py',
'from BTrees import Tree',
)
write_source_file_at(
(path, ),
'pyproject.toml',
'\n'.join([
'[tool.dependencychecker]',
'"ZODB3" = ["BTrees" ]',
]),
)
write_source_file_at(
(path, '{0}.egg-info'.format(package_name), ),
'requires.txt',
'\n'.join([
'ZODB3',
'setuptools',
'one',
]),
)
package = Package(path)
package.inspect()
report = Report(package)
report.unneeded_requirements()
out, err = capsys.readouterr()
assert 'Unneeded requirements\n' \
'=====================' in out
assert 'ZODB3' not in out
assert 'one' in out
def test_unneeded_requirements_with_user_mapping2(
capsys,
minimal_structure):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name),
'__init__.py',
'from Plone import Tree',
)
write_source_file_at(
(path, ),
'pyproject.toml',
'\n'.join([
'[tool.dependencychecker]',
'"ZODB3" = ["BTrees" ]',
]),
)
write_source_file_at(
(path, '{0}.egg-info'.format(package_name), ),
'requires.txt',
'\n'.join([
'ZODB3',
'setuptools',
'one',
]),
)
package = Package(path)
package.inspect()
report = Report(package)
report.unneeded_requirements()
out, err = capsys.readouterr()
assert 'Unneeded requirements\n' \
'=====================' in out
assert 'ZODB3' in out
assert 'one' in out
def test_unneeded_test_requirements(capsys, minimal_structure):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name + '.egg-info'),
'requires.txt',
'\n'.join([
'[test]',
'pytest',
'mock',
]),
)
package = Package(path)
package.inspect()
report = Report(package)
report.unneeded_test_requirements()
out, err = capsys.readouterr()
assert 'Unneeded test requirements\n' \
'==========================' in out
assert 'pytest' in out
assert 'mock' in out
def test_unneeded_test_requirements_with_ignore_packages(
capsys,
minimal_structure
):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name + '.egg-info'),
'requires.txt',
'\n'.join([
'[test]',
'pytest',
'mock',
]),
)
write_source_file_at(
(path, ),
'pyproject.toml',
'\n'.join([
'[tool.dependencychecker]',
'ignore-packages = ["mock" ]',
]),
)
package = Package(path)
package.inspect()
report = Report(package)
report.unneeded_test_requirements()
out, err = capsys.readouterr()
assert 'Unneeded test requirements\n' \
'==========================' in out
assert 'pytest' in out
assert 'mock' not in out
def test_unneeded_test_requirements_with_user_mappings(
capsys,
minimal_structure
):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name + '.egg-info'),
'requires.txt',
'\n'.join([
'[test]',
'pytest',
'ZODB3',
]),
)
write_source_file_at(
(path, ),
'pyproject.toml',
'\n'.join([
'[tool.dependencychecker]',
'"ZODB3" = ["BTrees" ]',
]),
)
write_source_file_at(
(path, package_name, ),
'__init__.py',
'',
)
write_source_file_at(
(path, package_name, 'tests', ),
'__init__.py',
'from BTrees import Tree',
)
package = Package(path)
package.inspect()
report = Report(package)
report.unneeded_test_requirements()
out, err = capsys.readouterr()
assert 'Unneeded test requirements\n' \
'==========================' in out
assert 'pytest' in out
assert 'ZODB3' not in out
assert 'BTrees' not in out
def test_unneeded_test_requirements_no_tests_requirements(
capsys,
minimal_structure,
):
path, package_name = minimal_structure
package = Package(path)
package.inspect()
report = Report(package)
report.unneeded_test_requirements()
out, err = capsys.readouterr()
assert '' == out
def test_requirements_that_should_be_test_requirements(
capsys,
minimal_structure,
):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name),
'__init__.py',
'import one',
)
write_source_file_at(
(path, package_name, 'tests'),
'__init__.py',
'import two',
)
write_source_file_at(
(path, package_name + '.egg-info'),
'requires.txt',
'\n'.join([
'one',
'two',
'[test]',
'pytest',
'mock',
]),
)
package = Package(path)
package.inspect()
report = Report(package)
report.requirements_that_should_be_test_requirements()
out, err = capsys.readouterr()
assert 'Requirements that should be test requirements\n' \
'=============================================' in out
assert 'two' in out
def test_requirements_that_should_be_test_requirements_with_ignored_packages(
capsys,
minimal_structure,
):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name),
'__init__.py',
'import one',
)
write_source_file_at(
(path, package_name, 'tests'),
'__init__.py',
'\n'.join([
'import two',
'import three',
])
)
write_source_file_at(
(path, package_name + '.egg-info'),
'requires.txt',
'\n'.join([
'one',
'two',
'three',
'[test]',
'pytest',
'mock',
]),
)
write_source_file_at(
(path, ),
'pyproject.toml',
'\n'.join([
'[tool.dependencychecker]',
'ignore-packages = ["two" ]',
]),
)
package = Package(path)
package.inspect()
report = Report(package)
report.requirements_that_should_be_test_requirements()
out, err = capsys.readouterr()
assert 'Requirements that should be test requirements\n' \
'=============================================' in out
assert 'three' in out
assert 'two' not in out
def test_requirements_that_should_be_test_requirements_with_user_mappings(
capsys,
minimal_structure,
):
path, package_name = minimal_structure
write_source_file_at(
(path, package_name),
'__init__.py',
'import one',
)
write_source_file_at(
(path, package_name, 'tests'),
'__init__.py',
'\n'.join([
'import two',
'import BTrees',
])
)
write_source_file_at(
(path, package_name + '.egg-info'),
'requires.txt',
'\n'.join([
'one',
'two',
'ZODB3',
'[test]',
'pytest',
'mock',
]),
)
write_source_file_at(
(path, ),
'pyproject.toml',
'\n'.join([
'[tool.dependencychecker]',
'"ZODB3" = ["BTrees" ]',
]),
)
package = Package(path)
package.inspect()
report = Report(package)
report.requirements_that_should_be_test_requirements()
out, err = capsys.readouterr()
assert 'Requirements that should be test requirements\n' \
'=============================================' in out
assert 'ZODB3' in out
assert 'two' in out
assert 'one' not in out
def test_requirements_that_should_be_test_requirements_with_user_mapping2(
capsys,
minimal_structure,
):
"""Test that user mappings used in both regular and test imports are
not downgraded to test imports only.
"""
path, package_name = minimal_structure
write_source_file_at(
(path, package_name),
'__init__.py',
'\n'.join([
'import one',
'import two',
'import part.of.meta',
]),
)
write_source_file_at(
(path, package_name, 'tests'),
'__init__.py',
'\n'.join([
'import three',
'import four',
'import part.of.meta',
])
)
write_source_file_at(
(path, package_name + '.egg-info'),
'requires.txt',
'\n'.join([
'one',
'two',
'three',
'meta-package',
'[test]',
'four',
]),
)
write_source_file_at(
(path, ),
'pyproject.toml',
'\n'.join([
'[tool.dependencychecker]',
'meta-package = ["part.of.meta" ]',
]),
)
package = Package(path)
package.inspect()
report = Report(package)
report.requirements_that_should_be_test_requirements()
out, err = capsys.readouterr()
assert 'Requirements that should be test requirements\n' \
'=============================================' in out
assert 'three' in out
assert 'one' not in out
assert 'two' not in out
assert 'part.of.meta' not in out
assert 'meta-package' not in out
def test_print_notice(capsys, minimal_structure):
path, package_name = minimal_structure
package = Package(path)
report = Report(package)
report.print_notice()
out, err = capsys.readouterr()
assert 'Note: ' in out
assert '' == err
def test_exit_status_set(minimal_structure):
path, package_name = minimal_structure
package = Package(path)
package.inspect()
report = Report(package)
assert report.exit_status == 0
report.print_report()
assert report.exit_status == 1
| 24.93531
| 79
| 0.564425
| 1,876
| 18,502
| 5.279851
| 0.057569
| 0.082181
| 0.081777
| 0.087532
| 0.922867
| 0.909238
| 0.900353
| 0.893286
| 0.871075
| 0.850581
| 0
| 0.002598
| 0.292671
| 18,502
| 741
| 80
| 24.968961
| 0.75426
| 0.008918
| 0
| 0.820988
| 0
| 0
| 0.192948
| 0.047705
| 0
| 0
| 0
| 0
| 0.109568
| 1
| 0.03858
| false
| 0
| 0.046296
| 0
| 0.084877
| 0.013889
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
cc33721d0286a91283e6364e8f003e469fef037f
| 15,311
|
py
|
Python
|
tests/test_middleware.py
|
edouardruiz/strawberry-django-jwt
|
9c22a2727f4962b1df3d45b5ce0626f7fafa3572
|
[
"MIT"
] | null | null | null |
tests/test_middleware.py
|
edouardruiz/strawberry-django-jwt
|
9c22a2727f4962b1df3d45b5ce0626f7fafa3572
|
[
"MIT"
] | null | null | null |
tests/test_middleware.py
|
edouardruiz/strawberry-django-jwt
|
9c22a2727f4962b1df3d45b5ce0626f7fafa3572
|
[
"MIT"
] | null | null | null |
from unittest import mock
import django
from asgiref.sync import sync_to_async
from django.contrib.auth.models import AnonymousUser
from strawberry_django_jwt.exceptions import JSONWebTokenError
from strawberry_django_jwt.middleware import JSONWebTokenMiddleware, allow_any
from strawberry_django_jwt.settings import jwt_settings
from .decorators import OverrideJwtSettings
from .testcases import TestCase
class AuthenticateByHeaderTests(TestCase):
def setUp(self):
super().setUp()
self.middleware = JSONWebTokenMiddleware
@OverrideJwtSettings(JWT_ALLOW_ANY_HANDLER=lambda *args: False)
def test_authenticate(self):
headers = {
jwt_settings.JWT_AUTH_HEADER_NAME: f"{jwt_settings.JWT_AUTH_HEADER_PREFIX} {self.token}",
}
next_mock = mock.Mock()
info_mock = self.info(AnonymousUser(), **headers)
middleware = self.middleware(execution_context=info_mock.context)
middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
self.assertEqual(info_mock.context.user, self.user)
@OverrideJwtSettings(JWT_ALLOW_ANY_HANDLER=lambda *args: False)
@mock.patch("strawberry_django_jwt.middleware.authenticate", return_value=None)
def test_not_authenticate(self, authenticate_mock):
headers = {
jwt_settings.JWT_AUTH_HEADER_NAME: f"{jwt_settings.JWT_AUTH_HEADER_PREFIX} {self.token}",
}
next_mock = mock.Mock()
info_mock = self.info(AnonymousUser(), **headers)
middleware = self.middleware(execution_context=info_mock.context)
middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
authenticate_mock.assert_called_once_with(request=info_mock.context)
self.assertIsInstance(info_mock.context.user, AnonymousUser)
@OverrideJwtSettings(JWT_ALLOW_ANY_HANDLER=lambda *args: False)
def test_invalid_token(self):
headers = {
jwt_settings.JWT_AUTH_HEADER_NAME: f"{jwt_settings.JWT_AUTH_HEADER_PREFIX} invalid",
}
next_mock = mock.Mock()
info_mock = self.info(AnonymousUser(), **headers)
middleware = self.middleware(execution_context=info_mock.context)
with self.assertRaises(JSONWebTokenError):
middleware.resolve(next_mock, None, info_mock)
next_mock.assert_not_called()
@mock.patch("strawberry_django_jwt.middleware.authenticate")
def test_already_authenticated(self, authenticate_mock):
headers = {
jwt_settings.JWT_AUTH_HEADER_NAME: f"{jwt_settings.JWT_AUTH_HEADER_PREFIX} {self.token}",
}
next_mock = mock.Mock()
info_mock = self.info(self.user, **headers)
middleware = self.middleware(execution_context=info_mock.context)
middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
authenticate_mock.assert_not_called()
@OverrideJwtSettings(JWT_ALLOW_ANY_HANDLER=lambda *args: True)
def test_allow_any(self):
headers = {
jwt_settings.JWT_AUTH_HEADER_NAME: f"{jwt_settings.JWT_AUTH_HEADER_PREFIX} {self.token}",
}
next_mock = mock.Mock()
info_mock = self.info(AnonymousUser(), **headers)
middleware = self.middleware(execution_context=info_mock.context)
middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
self.assertIsInstance(info_mock.context.user, AnonymousUser)
def test_authenticate_context(self):
info_mock = self.info()
middleware = self.middleware(execution_context=info_mock.context)
middleware.cached_allow_any.add("test")
authenticate_context = middleware.authenticate_context(info_mock)
self.assertFalse(authenticate_context)
class AuthenticateByArgumentTests(TestCase):
@OverrideJwtSettings(JWT_ALLOW_ARGUMENT=True)
def setUp(self):
super().setUp()
self.middleware = JSONWebTokenMiddleware
@OverrideJwtSettings(
JWT_ALLOW_ARGUMENT=True, JWT_ALLOW_ANY_HANDLER=lambda *args, **kwargs: False
)
def test_authenticate(self):
kwargs = {
jwt_settings.JWT_ARGUMENT_NAME: self.token,
}
next_mock = mock.Mock()
info_mock = self.info(AnonymousUser())
middleware = self.middleware(execution_context=info_mock.context)
middleware.resolve(next_mock, None, info_mock, **kwargs)
next_mock.assert_called_once_with(None, info_mock, **kwargs)
self.assertEqual(info_mock.context.user, self.user)
user = middleware.cached_authentication[tuple(info_mock.path)]
self.assertEqual(user, self.user)
@OverrideJwtSettings(JWT_ALLOW_ARGUMENT=True)
def test_authenticate_parent(self):
next_mock = mock.Mock()
info_mock = self.info(AnonymousUser())
info_mock.path = ["0", "1"]
middleware = self.middleware(execution_context=info_mock.context)
middleware.cached_authentication.insert(["0"], self.user)
middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
self.assertEqual(info_mock.context.user, self.user)
@OverrideJwtSettings(JWT_ALLOW_ARGUMENT=True)
def test_clear_authentication(self):
next_mock = mock.Mock()
info_mock = self.info(self.user)
middleware = self.middleware(execution_context=info_mock.context)
middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
self.assertIsInstance(info_mock.context.user, AnonymousUser)
@OverrideJwtSettings(JWT_ALLOW_ARGUMENT=True)
def test_clear_session_authentication(self):
next_mock = mock.Mock()
info_mock = self.info(self.user)
info_mock.context.session = self.client.session
middleware = self.middleware(execution_context=info_mock.context)
middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
self.assertIsInstance(info_mock.context.user, AnonymousUser)
@OverrideJwtSettings(JWT_ALLOW_ARGUMENT=True)
def test_context_has_not_attr_user(self):
next_mock = mock.Mock()
info_mock = self.info()
middleware = self.middleware(execution_context=info_mock.context)
middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
self.assertFalse(hasattr(info_mock.context, "user"))
class AllowAnyTests(TestCase):
def info(self, user, **headers):
info_mock = super().info(user, **headers)
info_mock.field_name = "test"
info_mock.operation.operation.name = "query"
return info_mock
def info_with_field_mock(self, user, field=None):
info_mock = self.info(user)
info_mock.schema.query_type = mock.Mock(
fields={
"test": field,
}
)
return info_mock
def info_with_type_mock(self, user, type=None):
type_mock = mock.Mock(type=mock.Mock(graphene_type=type))
return self.info_with_field_mock(user, type_mock)
# TODO: Does not work currently, see Known Issues in README.md
# @OverrideJwtSettings(JWT_ALLOW_ANY_CLASSES=['tests.testcases.TestCase'])
# def test_allow_any(self):
# info_mock = self.info_with_type_mock(self.user, TestCase)
# allowed = allow_any(info_mock)
#
# self.assertTrue(allowed)
def test_not_allow_any(self):
info_mock = self.info_with_type_mock(self.user, TestCase)
allowed = allow_any(info_mock)
self.assertFalse(allowed)
def test_unknown_field(self):
info_mock = self.info_with_field_mock(self.user)
allowed = allow_any(info_mock)
self.assertFalse(allowed)
def test_unknown_type(self):
info_mock = self.info_with_type_mock(self.user)
allowed = allow_any(info_mock)
self.assertFalse(allowed)
if django.VERSION[:2] >= (3, 1):
from .testcases import AsyncTestCase
from strawberry_django_jwt.middleware import AsyncJSONWebTokenMiddleware
class AuthenticateByHeaderTestsAsync(AsyncTestCase):
def setUp(self):
super().setUp()
self.middleware = AsyncJSONWebTokenMiddleware
@OverrideJwtSettings(JWT_ALLOW_ANY_HANDLER=lambda *args: False)
async def test_authenticate_async(self):
headers = {
jwt_settings.JWT_AUTH_HEADER_NAME.replace(
"HTTP_", ""
): f"{jwt_settings.JWT_AUTH_HEADER_PREFIX} {self.token}",
}
next_mock = mock.Mock()
info_mock = self.info(AnonymousUser(), **headers)
middleware = self.middleware(execution_context=info_mock.context)
await middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
self.assertEqual(info_mock.context.user, self.user)
@OverrideJwtSettings(JWT_ALLOW_ANY_HANDLER=lambda *args: False)
async def test_not_authenticate_async(self):
async def auth(*args, **kwargs):
return None
headers = {
jwt_settings.JWT_AUTH_HEADER_NAME.replace(
"HTTP_", ""
): f"{jwt_settings.JWT_AUTH_HEADER_PREFIX} {self.token}",
}
next_mock = mock.Mock()
info_mock = self.info(AnonymousUser(), **headers)
middleware = self.middleware(execution_context=info_mock.context)
with mock.patch(
"strawberry_django_jwt.middleware.authenticate_async", side_effect=auth
) as authenticate_mock:
await middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
authenticate_mock.assert_called_once_with(request=info_mock.context)
self.assertIsInstance(info_mock.context.user, AnonymousUser)
@OverrideJwtSettings(JWT_ALLOW_ANY_HANDLER=lambda *args: False)
async def test_invalid_token_async(self):
headers = {
jwt_settings.JWT_AUTH_HEADER_NAME.replace(
"HTTP_", ""
): f"{jwt_settings.JWT_AUTH_HEADER_PREFIX} invalid",
}
next_mock = mock.Mock()
info_mock = self.info(AnonymousUser(), **headers)
middleware = self.middleware(execution_context=info_mock.context)
with self.assertRaises(JSONWebTokenError):
await middleware.resolve(next_mock, None, info_mock)
next_mock.assert_not_called()
async def test_already_authenticated_async(self):
headers = {
jwt_settings.JWT_AUTH_HEADER_NAME: f"{jwt_settings.JWT_AUTH_HEADER_PREFIX} {self.token}",
}
next_mock = mock.Mock()
info_mock = self.info(self.user, **headers)
middleware = self.middleware(execution_context=info_mock.context)
with mock.patch(
"strawberry_django_jwt.middleware.authenticate_async"
) as authenticate_mock:
await middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
authenticate_mock.assert_not_called()
@OverrideJwtSettings(JWT_ALLOW_ANY_HANDLER=lambda *args: True)
async def test_allow_any_async(self):
headers = {
jwt_settings.JWT_AUTH_HEADER_NAME: f"{jwt_settings.JWT_AUTH_HEADER_PREFIX} {self.token}",
}
next_mock = mock.Mock()
info_mock = self.info(AnonymousUser(), **headers)
middleware = self.middleware(execution_context=info_mock.context)
await middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
self.assertIsInstance(info_mock.context.user, AnonymousUser)
class AuthenticateByArgumentTestsAsync(AsyncTestCase):
@OverrideJwtSettings(JWT_ALLOW_ARGUMENT=True)
def setUp(self):
super().setUp()
self.middleware = AsyncJSONWebTokenMiddleware
@OverrideJwtSettings(
JWT_ALLOW_ARGUMENT=True, JWT_ALLOW_ANY_HANDLER=lambda *args, **kwargs: False
)
async def test_authenticate_async(self):
kwargs = {
jwt_settings.JWT_ARGUMENT_NAME: self.token,
}
next_mock = mock.Mock()
info_mock = self.info(AnonymousUser())
middleware = self.middleware(execution_context=info_mock.context)
await middleware.resolve(next_mock, None, info_mock, **kwargs)
next_mock.assert_called_once_with(None, info_mock, **kwargs)
self.assertEqual(info_mock.context.user, self.user)
user = middleware.cached_authentication[tuple(info_mock.path)]
self.assertEqual(user, self.user)
@OverrideJwtSettings(JWT_ALLOW_ARGUMENT=True)
async def test_authenticate_parent_async(self):
next_mock = mock.Mock()
info_mock = self.info(AnonymousUser())
info_mock.path = ["0", "1"]
middleware = self.middleware(execution_context=info_mock.context)
middleware.cached_authentication.insert(["0"], self.user)
await middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
self.assertEqual(info_mock.context.user, self.user)
@OverrideJwtSettings(JWT_ALLOW_ARGUMENT=True)
async def test_clear_authentication_async(self):
next_mock = mock.Mock()
info_mock = self.info(self.user)
middleware = self.middleware(execution_context=info_mock.context)
await middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
self.assertIsInstance(info_mock.context.user, AnonymousUser)
@OverrideJwtSettings(JWT_ALLOW_ARGUMENT=True)
async def test_clear_session_authentication_async(self):
next_mock = mock.Mock()
info_mock = self.info(self.user)
info_mock.context.session = await sync_to_async(
self.client.__getattribute__
)("session")
middleware = self.middleware(execution_context=info_mock.context)
await middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
self.assertIsInstance(info_mock.context.user, AnonymousUser)
@OverrideJwtSettings(JWT_ALLOW_ARGUMENT=True)
async def test_context_has_not_attr_user_async(self):
next_mock = mock.Mock()
info_mock = self.info()
middleware = self.middleware(execution_context=info_mock.context)
await middleware.resolve(next_mock, None, info_mock)
next_mock.assert_called_once_with(None, info_mock)
self.assertFalse(hasattr(info_mock.context, "user"))
| 38.2775
| 105
| 0.67716
| 1,744
| 15,311
| 5.625573
| 0.071101
| 0.097849
| 0.052594
| 0.042401
| 0.856284
| 0.846907
| 0.827541
| 0.808888
| 0.807869
| 0.805422
| 0
| 0.000766
| 0.23297
| 15,311
| 399
| 106
| 38.373434
| 0.834639
| 0.018614
| 0
| 0.709898
| 0
| 0
| 0.048941
| 0.037422
| 0
| 0
| 0
| 0.002506
| 0.163823
| 1
| 0.071672
| false
| 0
| 0.037543
| 0
| 0.139932
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0bed341938e20369dc4ca5a93631e2215690ec96
| 181
|
py
|
Python
|
discum/__init__.py
|
firewood-b/Discord-S.C.U.M
|
1beb8c25ab245a1389431a5206eafb9b4a95df0f
|
[
"MIT"
] | null | null | null |
discum/__init__.py
|
firewood-b/Discord-S.C.U.M
|
1beb8c25ab245a1389431a5206eafb9b4a95df0f
|
[
"MIT"
] | null | null | null |
discum/__init__.py
|
firewood-b/Discord-S.C.U.M
|
1beb8c25ab245a1389431a5206eafb9b4a95df0f
|
[
"MIT"
] | null | null | null |
from .__version__ import __version__
from .discum import *
from .gateway.gateway import *
from .RESTapiwrap import *
from .start.login import *
from .start.superproperties import *
| 25.857143
| 36
| 0.790055
| 22
| 181
| 6.136364
| 0.409091
| 0.296296
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132597
| 181
| 6
| 37
| 30.166667
| 0.859873
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
f094edf2d3d5b1a7060686aa807c98328740c7a9
| 15,742
|
py
|
Python
|
src/guesswhat/models/guesser/guesser_baseline.py
|
zipengxu-c/ADVSE-GuessWhat
|
44ca8b1e2368b4afd90a74a8c22a6553e8fc351e
|
[
"Apache-2.0"
] | 6
|
2020-10-14T15:53:59.000Z
|
2021-11-01T07:32:48.000Z
|
src/guesswhat/models/guesser/guesser_baseline.py
|
zipengxu-c/ADVSE-GuessWhat
|
44ca8b1e2368b4afd90a74a8c22a6553e8fc351e
|
[
"Apache-2.0"
] | 1
|
2020-12-28T00:39:19.000Z
|
2020-12-31T06:03:23.000Z
|
src/guesswhat/models/guesser/guesser_baseline.py
|
zipengxu-c/ADVSE-GuessWhat
|
44ca8b1e2368b4afd90a74a8c22a6553e8fc351e
|
[
"Apache-2.0"
] | 1
|
2020-12-22T02:53:31.000Z
|
2020-12-22T02:53:31.000Z
|
import tensorflow as tf
import tensorflow.contrib.layers as tfc_layers
from neural_toolbox import rnn
from generic.tf_factory.image_factory import get_image_features
from generic.tf_factory.attention_factory import get_attention
from generic.tf_factory.fusion_factory import get_fusion_mechanism
from generic.tf_utils.abstract_network import AbstractNetwork
class GuesserNetwork(AbstractNetwork):
def __init__(self, config, num_words, device='', reuse=False):
AbstractNetwork.__init__(self, "guesser", device=device)
batch_size = None
with tf.variable_scope(self.scope_name, reuse=reuse):
self._is_training = tf.placeholder(tf.bool, name="is_training")
dropout_keep_scalar = float(config["dropout_keep_prob"])
dropout_keep = tf.cond(self._is_training,
lambda: tf.constant(dropout_keep_scalar),
lambda: tf.constant(1.0))
#####################
# DIALOGUE
#####################
self._dialogue = tf.placeholder(tf.int32, [batch_size, None], name='dialogue')
self._seq_length = tf.placeholder(tf.int32, [batch_size], name='seq_length_dialogue')
word_emb = tfc_layers.embed_sequence(ids=self._dialogue,
vocab_size=num_words,
embed_dim=config["question"]["word_embedding_dim"],
scope="word_embedding",
reuse=reuse)
if config["question"]['glove']:
self._glove = tf.placeholder(tf.float32, [None, None, 300], name="glove")
word_emb = tf.concat([word_emb, self._glove], axis=2)
_, self.dialogue_embedding = rnn.rnn_factory(inputs=word_emb,
seq_length=self._seq_length,
cell=config['question']["cell"],
num_hidden=config['question']["rnn_units"],
bidirectional=config["question"]["bidirectional"],
max_pool=config["question"]["max_pool"],
layer_norm=config["question"]["layer_norm"],
reuse=reuse)
#####################
# IMAGE
#####################
self.img_embedding = None
if config['inputs']['image']:
self._image = tf.placeholder(tf.float32, [batch_size] + config['image']["dim"], name='image')
# get image
self.img_embedding = get_image_features(image=self._image,
is_training=self._is_training,
config=config['image'])
# pool image feature if needed
if len(self.img_embedding.get_shape()) > 2:
with tf.variable_scope("image_pooling"):
self.img_embedding = get_attention(self.img_embedding, self.dialogue_embedding,
is_training=self._is_training,
config=config["pooling"],
dropout_keep=dropout_keep,
reuse=reuse)
# fuse vision/language
self.visdiag_embedding = get_fusion_mechanism(input1=self.dialogue_embedding,
input2=self.img_embedding,
config=config.get["fusion"],
dropout_keep=dropout_keep)
else:
self.visdiag_embedding = self.dialogue_embedding
visdiag_dim = int(self.visdiag_embedding.get_shape()[-1])
#####################
# OBJECTS
#####################
self._num_object = tf.placeholder(tf.int32, [batch_size], name='obj_seq_length')
self._obj_cats = tf.placeholder(tf.int32, [batch_size, None], name='obj_cat')
self._obj_spats = tf.placeholder(tf.float32, [batch_size, None, 8], name='obj_spat')
cats_emb = tfc_layers.embed_sequence(ids=self._obj_cats,
vocab_size=config['category']["n_categories"] + 1, # we add the unknown category
embed_dim=config['category']["embedding_dim"],
scope="cat_embedding",
reuse=reuse)
spatial_emb = tfc_layers.fully_connected(self._obj_spats,
num_outputs=config["spatial"]["no_mlp_units"],
activation_fn=tf.nn.relu,
reuse=reuse,
scope="spatial_upsampling")
# spatial_emb = self._obj_spats
self.objects_input = tf.concat([cats_emb, spatial_emb], axis=2)
self.objects_input = tf.nn.dropout(self.objects_input, dropout_keep)
with tf.variable_scope('obj_mlp'):
h1 = tfc_layers.fully_connected(self.objects_input,
num_outputs=config["object"]['no_mlp_units'],
activation_fn=tf.nn.relu,
scope='l1')
h1 = tf.nn.dropout(h1, dropout_keep)
obj_embeddings = tfc_layers.fully_connected(h1,
num_outputs=visdiag_dim,
activation_fn=tf.nn.relu,
scope='l2')
#####################
# SCORES
#####################
self.scores = obj_embeddings * tf.expand_dims(self.visdiag_embedding, axis=1)
self.scores = tf.reduce_sum(self.scores, axis=2)
# remove max for stability (trick)
self.scores -= tf.reduce_max(self.scores, axis=1, keepdims=True)
with tf.variable_scope('object_mask', reuse=reuse):
object_mask = tf.sequence_mask(self._num_object)
score_mask_values = float("-inf") * tf.ones_like(self.scores)
self.score_masked = tf.where(object_mask, self.scores, score_mask_values)
#####################
# LOSS
#####################
# Targets
self._targets = tf.placeholder(tf.int32, [batch_size], name="target_index")
self.loss = tf.nn.sparse_softmax_cross_entropy_with_logits(labels=self._targets, logits=self.score_masked)
self.loss = tf.reduce_mean(self.loss)
self.selected_object = tf.argmax(self.score_masked, axis=1)
self.softmax = tf.nn.softmax(self.score_masked)
with tf.variable_scope('accuracy'):
self.accuracy = tf.equal(self.selected_object, tf.cast(self._targets, tf.int64))
self.accuracy = tf.reduce_mean(tf.cast(self.accuracy, tf.float32))
def get_loss(self):
return self.loss
def get_accuracy(self):
return self.accuracy
class GuesserNetwork2(AbstractNetwork):
def __init__(self, config, num_words, device='', reuse=False):
AbstractNetwork.__init__(self, "guesser", device=device)
batch_size = None
with tf.variable_scope(self.scope_name, reuse=reuse):
self._is_training = tf.placeholder(tf.bool, name="is_training")
dropout_keep_scalar = float(config["dropout_keep_prob"])
dropout_keep = tf.cond(self._is_training,
lambda: tf.constant(dropout_keep_scalar),
lambda: tf.constant(1.0))
#####################
# DIALOGUE
#####################
self._dialogue = tf.placeholder(tf.int32, [batch_size, None], name='dialogue')
self._seq_length = tf.placeholder(tf.int32, [batch_size], name='seq_length_dialogue')
word_emb = tfc_layers.embed_sequence(ids=self._dialogue,
vocab_size=num_words,
embed_dim=config["question"]["word_embedding_dim"],
scope="word_embedding",
reuse=reuse)
if config["question"]['glove']:
self._glove = tf.placeholder(tf.float32, [None, None, 300], name="glove")
word_emb = tf.concat([word_emb, self._glove], axis=2)
_, self.dialogue_embedding = rnn.rnn_factory(inputs=word_emb,
seq_length=self._seq_length,
cell=config['question']["cell"],
num_hidden=config['question']["rnn_units"],
bidirectional=config["question"]["bidirectional"],
max_pool=config["question"]["max_pool"],
layer_norm=config["question"]["layer_norm"],
reuse=reuse)
#####################
# IMAGE
#####################
self.img_embedding = None
if config['inputs']['image']:
self._image = tf.placeholder(tf.float32, [batch_size] + config['image']["dim"], name='image')
# get image
self.img_embedding = get_image_features(image=self._image,
is_training=self._is_training,
config=config['image'])
# pool image feature if needed
if len(self.img_embedding.get_shape()) > 2:
with tf.variable_scope("image_pooling"):
self.img_embedding = get_attention(self.img_embedding, self.dialogue_embedding,
is_training=self._is_training,
config=config["pooling"],
dropout_keep=dropout_keep,
reuse=reuse)
# fuse vision/language
self.visdiag_embedding = get_fusion_mechanism(input1=self.dialogue_embedding,
input2=self.img_embedding,
config=config.get["fusion"],
dropout_keep=dropout_keep)
else:
self.visdiag_embedding = self.dialogue_embedding
visdiag_dim = int(self.visdiag_embedding.get_shape()[-1])
#####################
# OBJECTS
#####################
self._num_object = tf.placeholder(tf.int32, [batch_size], name='obj_seq_length')
self._obj_cats = tf.placeholder(tf.int32, [batch_size, None], name='obj_cat')
self._obj_spats = tf.placeholder(tf.float32, [batch_size, None, 8], name='obj_spat')
cats_emb = tfc_layers.embed_sequence(ids=self._obj_cats,
vocab_size=config['category']["n_categories"] + 1, # we add the unknown category
embed_dim=config['category']["embedding_dim"],
scope="cat_embedding",
reuse=reuse)
'''
spatial_emb = tfc_layers.fully_connected(self._obj_spats,
num_outputs=config["spatial"]["no_mlp_units"],
activation_fn=tf.nn.relu,
reuse=reuse,
scope="spatial_upsampling")
'''
spatial_emb = self._obj_spats
self.objects_input = tf.concat([cats_emb, spatial_emb], axis=2)
# self.objects_input = tf.nn.dropout(self.objects_input, dropout_keep)
with tf.variable_scope('obj_mlp'):
h1 = tfc_layers.fully_connected(self.objects_input,
num_outputs=config["object"]['no_mlp_units'],
activation_fn=tf.nn.relu,
scope='l1')
# h1 = tf.nn.dropout(h1, dropout_keep)
obj_embeddings = tfc_layers.fully_connected(h1,
num_outputs=visdiag_dim,
activation_fn=tf.nn.relu,
scope='l2')
#####################
# SCORES
#####################
self.scores = obj_embeddings * tf.expand_dims(self.visdiag_embedding, axis=1)
self.scores = tf.reduce_sum(self.scores, axis=2)
# remove max for stability (trick)
self.scores -= tf.reduce_max(self.scores, axis=1, keep_dims=True)
with tf.variable_scope('object_mask', reuse=reuse):
object_mask = tf.sequence_mask(self._num_object)
score_mask_values = float("-inf") * tf.ones_like(self.scores)
self.score_masked = tf.where(object_mask, self.scores, score_mask_values)
#####################
# LOSS
#####################
# Targets
self._targets = tf.placeholder(tf.int32, [batch_size], name="target_index")
self.loss = tf.nn.sparse_softmax_cross_entropy_with_logits(labels=self._targets, logits=self.score_masked)
self.loss = tf.reduce_mean(self.loss)
self.selected_object = tf.argmax(self.score_masked, axis=1)
self.softmax = tf.nn.softmax(self.score_masked)
with tf.variable_scope('accuracy'):
self.accuracy = tf.equal(self.selected_object, tf.cast(self._targets, tf.int64))
self.accuracy = tf.reduce_mean(tf.cast(self.accuracy, tf.float32))
def get_loss(self):
return self.loss
def get_accuracy(self):
return self.accuracy
if __name__ == "__main__":
import json
with open("../../../../config/guesser/config.config.baseline.json", 'rb') as f_config:
config = json.loads(f_config.read().decode('utf-8'))
network = GuesserNetwork(config["model"], num_words=352)
print("Ok!!")
| 48.58642
| 130
| 0.467857
| 1,415
| 15,742
| 4.918728
| 0.128622
| 0.031609
| 0.038793
| 0.027299
| 0.925
| 0.925
| 0.925
| 0.925
| 0.925
| 0.925
| 0
| 0.009932
| 0.41799
| 15,742
| 323
| 131
| 48.736842
| 0.749727
| 0.030555
| 0
| 0.874346
| 0
| 0
| 0.064384
| 0.003751
| 0
| 0
| 0
| 0
| 0
| 1
| 0.031414
| false
| 0
| 0.041885
| 0.020942
| 0.104712
| 0.005236
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f0db1c8380761497a21356f0c7a6f970ac50fd9a
| 76
|
py
|
Python
|
sbankensheets/categorize/__init__.py
|
anbergem/sbanken-sheets
|
e40c86bc991e742d07cea1c85cb5c82ec438d5d2
|
[
"MIT"
] | 4
|
2019-02-19T20:54:56.000Z
|
2019-03-19T22:25:58.000Z
|
sbankensheets/categorize/__init__.py
|
anbergem/sbanken-sheets
|
e40c86bc991e742d07cea1c85cb5c82ec438d5d2
|
[
"MIT"
] | 12
|
2018-08-22T14:21:50.000Z
|
2021-04-30T20:36:37.000Z
|
sbankensheets/categorize/__init__.py
|
anbergem/sbanken-sheets
|
e40c86bc991e742d07cea1c85cb5c82ec438d5d2
|
[
"MIT"
] | null | null | null |
from ._categorize import *
from ._categorize import _categorize_uncertainty
| 25.333333
| 48
| 0.855263
| 8
| 76
| 7.625
| 0.5
| 0.459016
| 0.655738
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 76
| 2
| 49
| 38
| 0.897059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
0b0bfbf6f9bcc42ea6d9360fc4134e8508f53d0f
| 21,749
|
py
|
Python
|
contrib/libs/onnx/onnx/test/version_converter_test.py
|
HeyLey/catboost
|
f472aed90604ebe727537d9d4a37147985e10ec2
|
[
"Apache-2.0"
] | 6,989
|
2017-07-18T06:23:18.000Z
|
2022-03-31T15:58:36.000Z
|
contrib/libs/onnx/onnx/test/version_converter_test.py
|
HeyLey/catboost
|
f472aed90604ebe727537d9d4a37147985e10ec2
|
[
"Apache-2.0"
] | 1,978
|
2017-07-18T09:17:58.000Z
|
2022-03-31T14:28:43.000Z
|
contrib/libs/onnx/onnx/test/version_converter_test.py
|
HeyLey/catboost
|
f472aed90604ebe727537d9d4a37147985e10ec2
|
[
"Apache-2.0"
] | 1,228
|
2017-07-18T09:03:13.000Z
|
2022-03-29T05:57:40.000Z
|
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from onnx import checker, helper, ModelProto, TensorProto, GraphProto, NodeProto, OperatorSetIdProto
from typing import Sequence, Text, Tuple, List, Callable
from onnx import numpy_helper
import numpy as np # type: ignore
import onnx.version_converter
import unittest
class TestVersionConverter(unittest.TestCase):
def _converted(
self,
graph, # type: GraphProto
initial_version, # type: OperatorSetIdProto
target_version # type: int
): # type: (...) -> ModelProto
orig_model = helper.make_model(graph, producer_name='onnx-test', opset_imports=[initial_version])
# print(type(orig_model))
converted_model = onnx.version_converter.convert_version(orig_model,
target_version)
checker.check_model(converted_model)
return converted_model
# Test 1: Backwards Incompatible Conversion: Reshape: 8 -> 2
def test_backwards_incompatible(self): # type: () -> None
def test(): # type: () -> None
nodes = [helper.make_node('Add', ["W", "Z"], ["shape"]),
helper.make_node('Reshape', ["X", "shape"], ["A"]),
helper.make_node('Add', ["A", "W"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("W", TensorProto.FLOAT, (1,)),
helper.make_tensor_value_info("Z", TensorProto.FLOAT, (1,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
self._converted(graph, helper.make_operatorsetid("", 8), 2)
self.assertRaises(RuntimeError, test)
# Test 2: Backwards Compatible Conversion (No Adaptations): Add: 3 -> 2
def test_backwards_compatible(self): # type: () -> None
nodes = [helper.make_node('Add', ["X1", "X2"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X1", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("X2", TensorProto.FLOAT, (5,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 3), 2)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Add"
assert converted_model.opset_import[0].version == 2
# Test 3: Non-Existent Op Conversion: Cos: 8 -> 6
def test_non_existent_op(self): # type: () -> None
def test(): # type: () -> None
nodes = [helper.make_node('Cos', ["X"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X", TensorProto.FLOAT, (5,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
self._converted(graph, helper.make_operatorsetid("", 8), 6)
self.assertRaises(RuntimeError, test)
# Test Add Adapter: 8 -> 5
def test_add_8_5(self): # type: () -> None
nodes = [helper.make_node('Add', ["X1", "X2"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X1", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("X2", TensorProto.FLOAT, (1,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 8), 5)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Add"
assert converted_model.opset_import[0].version == 5
# Test Add Adapter: 5 -> 8
def test_add_5_8(self): # type: () -> None
nodes = [helper.make_node('Add', ["X1", "X2"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X1", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("X2", TensorProto.FLOAT, (1,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 5), 8)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Add"
assert converted_model.opset_import[0].version == 8
# Test Add Adapter: 5 -> 8, requiring insertion of an Unsqueeze node
def test_add_5_8_with_unsqueeze(self): # type: () -> None
nodes = [helper.make_node('Add', ["X1", "X2"], ["Y"], axis=0, broadcast=1)]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X1", TensorProto.FLOAT, (5, 2)),
helper.make_tensor_value_info("X2", TensorProto.FLOAT, (5,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 5), 8)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Unsqueeze"
assert converted_model.graph.node[1].op_type == "Add"
assert converted_model.opset_import[0].version == 8
# Test Mul Adapter: 8 -> 5
def test_mul_8_5(self): # type: () -> None
nodes = [helper.make_node('Mul', ["X1", "X2"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X1", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("X2", TensorProto.FLOAT, (1,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 8), 5)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Mul"
assert converted_model.opset_import[0].version == 5
# Test Mul Adapter: 5 -> 8
def test_mul_5_8(self): # type: () -> None
nodes = [helper.make_node('Mul', ["X1", "X2"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X1", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("X2", TensorProto.FLOAT, (1,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 5), 8)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Mul"
assert converted_model.opset_import[0].version == 8
# Test Gemm Adapter: 1 -> 8
def test_gemm_up(self): # type: () -> None
nodes = [helper.make_node('Gemm', ["A", "B", "C"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("A", TensorProto.FLOAT, (5, 5,)),
helper.make_tensor_value_info("B", TensorProto.FLOAT, (5, 5,)),
helper.make_tensor_value_info("C", TensorProto.FLOAT, (5, 5,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5, 5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 1), 8)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Gemm"
assert converted_model.opset_import[0].version == 8
# Test Gemm Adapter: 8 -> 1
def test_gemm_down(self): # type: () -> None
nodes = [helper.make_node('Gemm', ["A", "B", "C"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("A", TensorProto.FLOAT, (5, 5,)),
helper.make_tensor_value_info("B", TensorProto.FLOAT, (5, 5,)),
helper.make_tensor_value_info("C", TensorProto.FLOAT, (5, 5,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5, 5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 8), 1)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Gemm"
assert converted_model.opset_import[0].version == 1
# Test Relu Adapter: 5 -> 7
def test_relu_5_7(self): # type: () -> None
nodes = [helper.make_node('Relu', ["X"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X", TensorProto.FLOAT, (5,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 5), 7)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Relu"
assert converted_model.opset_import[0].version == 7
# Test Relu Adapter: 7 -> 5
def test_relu_7_5(self): # type: () -> None
nodes = [helper.make_node('Relu', ["X"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X", TensorProto.FLOAT, (5,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 7), 5)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Relu"
assert converted_model.opset_import[0].version == 5
# Test BatchNormalization Adapter: 8 -> 5
def test_batch_normalization_8_5(self): # type: () -> None
nodes = [helper.make_node('BatchNormalization', ["X", "scale", "B",
"mean", "var"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("scale", TensorProto.FLOAT, (1,)),
helper.make_tensor_value_info("B", TensorProto.FLOAT, (1,)),
helper.make_tensor_value_info("mean", TensorProto.FLOAT, (1,)),
helper.make_tensor_value_info("var", TensorProto.FLOAT, (1,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 8), 5)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "BatchNormalization"
assert converted_model.opset_import[0].version == 5
# Test BatchNormalization Adapter: 5 -> 8
def test_batch_normalization_5_8(self): # type: () -> None
nodes = [helper.make_node('BatchNormalization', ["X", "scale", "B",
"mean", "var"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("scale", TensorProto.FLOAT, (1,)),
helper.make_tensor_value_info("B", TensorProto.FLOAT, (1,)),
helper.make_tensor_value_info("mean", TensorProto.FLOAT, (1,)),
helper.make_tensor_value_info("var", TensorProto.FLOAT, (1,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 5), 8)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "BatchNormalization"
assert converted_model.opset_import[0].version == 8
# Test Concat Adapter: 3 -> 5
def test_concat_3_5(self): # type: () -> None
nodes = [helper.make_node('Concat', ["X1", "X2", "X3",
"X4", "X5"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X1", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("X2", TensorProto.FLOAT, (1,)),
helper.make_tensor_value_info("X3", TensorProto.FLOAT, (1,)),
helper.make_tensor_value_info("X4", TensorProto.FLOAT, (1,)),
helper.make_tensor_value_info("X5", TensorProto.FLOAT, (1,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 3), 5)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Concat"
assert converted_model.opset_import[0].version == 5
# Test Concat Adapter: 5 -> 3
def test_concat_5_3(self): # type: () -> None
nodes = [helper.make_node('Concat', ["X1", "X2", "X3",
"X4", "X5"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X1", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("X2", TensorProto.FLOAT, (1,)),
helper.make_tensor_value_info("X3", TensorProto.FLOAT, (1,)),
helper.make_tensor_value_info("X4", TensorProto.FLOAT, (1,)),
helper.make_tensor_value_info("X5", TensorProto.FLOAT, (1,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 5), 3)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Concat"
assert converted_model.opset_import[0].version == 3
# Test Reshape Adapter: 6 -> 4
def test_reshape_6_4(self): # type: () -> None
nodes = [helper.make_node('Constant', [], ["shape"],
value=helper.make_tensor("", TensorProto.INT64, [1],
[5])),
helper.make_node('Reshape', ["X", "shape"], ["Y"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X", TensorProto.FLOAT, (5,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 6), 4)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Reshape"
assert converted_model.opset_import[0].version == 4
# Test Reshape Adapter: 4 -> 6
def test_reshape_4_6(self): # type: () -> None
nodes = [helper.make_node('Reshape', ["X"], ["Y"], shape=[5])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X", TensorProto.FLOAT, (5,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 4), 6)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Reshape"
assert converted_model.opset_import[0].version == 6
# Test Sum Adapter: 5 -> 8
def test_sum_5_8(self): # type: () -> None
nodes = [helper.make_node('Sum', ["data_0", "data_1", "data_2",
"data_3", "data_4"], ["sum"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("data_0", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("data_1", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("data_2", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("data_3", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("data_4", TensorProto.FLOAT, (5,))],
[helper.make_tensor_value_info("sum", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 5), 7)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Sum"
assert converted_model.opset_import[0].version == 7
# Test Sum Adapter: 8 -> 5
def test_sum_8_5(self): # type: () -> None
nodes = [helper.make_node('Sum', ["data_0", "data_1", "data_2",
"data_3", "data_4"], ["sum"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("data_0", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("data_1", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("data_2", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("data_3", TensorProto.FLOAT, (5,)),
helper.make_tensor_value_info("data_4", TensorProto.FLOAT, (5,))],
[helper.make_tensor_value_info("sum", TensorProto.FLOAT, (5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 8), 5)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Sum"
assert converted_model.opset_import[0].version == 5
# Test AveragePool Adapter: 1 -> 8
def test_averagepool_up(self): # type: () -> None
nodes = [helper.make_node('AveragePool', ["X"], ["Y"], kernel_shape=[1, 1])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X", TensorProto.FLOAT, (5, 5,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5, 5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 1), 8)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "AveragePool"
assert converted_model.opset_import[0].version == 8
# Test AveragePool Adapter: 8 -> 1
def test_averagepool_down(self): # type: () -> None
nodes = [helper.make_node('AveragePool', ["X"], ["Y"], kernel_shape=[1, 1])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X", TensorProto.FLOAT, (5, 5,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5, 5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 8), 1)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "AveragePool"
assert converted_model.opset_import[0].version == 1
# Test Dropout Adapter: 1 -> 8
def test_dropout_up(self): # type: () -> None
nodes = [helper.make_node('Dropout', ["data"], ["output"], is_test=1)]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("data", TensorProto.FLOAT, (5, 5,))],
[helper.make_tensor_value_info("output", TensorProto.FLOAT, (5, 5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 1), 8)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Dropout"
assert converted_model.opset_import[0].version == 8
# Test Dropout Adapter: 8 -> 1
def test_dropout_down(self): # type: () -> None
nodes = [helper.make_node('Dropout', ["data"], ["output"])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("data", TensorProto.FLOAT, (5, 5,))],
[helper.make_tensor_value_info("output", TensorProto.FLOAT, (5, 5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 8), 1)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "Dropout"
assert converted_model.opset_import[0].version == 1
# Test MaxPool Adapter: 1 -> 8
def test_maxpool_up(self): # type: () -> None
nodes = [helper.make_node('MaxPool', ["X"], ["Y"], kernel_shape=[1, 1])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X", TensorProto.FLOAT, (5, 5,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5, 5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 1), 8)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "MaxPool"
assert converted_model.opset_import[0].version == 8
# Test MaxPool Adapter: 8 -> 1
def test_maxpool_down(self): # type: () -> None
nodes = [helper.make_node('MaxPool', ["X"], ["Y"], kernel_shape=[1, 1])]
graph = helper.make_graph(
nodes,
"test",
[helper.make_tensor_value_info("X", TensorProto.FLOAT, (5, 5,))],
[helper.make_tensor_value_info("Y", TensorProto.FLOAT, (5, 5,))])
converted_model = self._converted(graph, helper.make_operatorsetid(
"", 8), 1)
# Assert equality of graph and converted_model
assert converted_model.graph.node[0].op_type == "MaxPool"
assert converted_model.opset_import[0].version == 1
if __name__ == '__main__':
unittest.main()
| 49.205882
| 105
| 0.59474
| 2,582
| 21,749
| 4.753679
| 0.051123
| 0.139319
| 0.116018
| 0.150562
| 0.881131
| 0.85123
| 0.846831
| 0.841535
| 0.835913
| 0.829314
| 0
| 0.024752
| 0.258817
| 21,749
| 441
| 106
| 49.31746
| 0.736663
| 0.116971
| 0
| 0.77809
| 0
| 0
| 0.045868
| 0
| 0
| 0
| 0
| 0
| 0.143258
| 1
| 0.081461
| false
| 0
| 0.098315
| 0
| 0.185393
| 0.002809
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0b0ffd124d0e8319b2cfc610e467d375c080c34c
| 1,395
|
py
|
Python
|
dicify/dice/dice_arrays.py
|
JGRainbow/Dicify
|
75f897e592be7417fa8f0fd3d7563870fbf9e53d
|
[
"MIT"
] | 1
|
2021-02-10T22:02:04.000Z
|
2021-02-10T22:02:04.000Z
|
dicify/dice/dice_arrays.py
|
JGRainbow/Dicify
|
75f897e592be7417fa8f0fd3d7563870fbf9e53d
|
[
"MIT"
] | null | null | null |
dicify/dice/dice_arrays.py
|
JGRainbow/Dicify
|
75f897e592be7417fa8f0fd3d7563870fbf9e53d
|
[
"MIT"
] | null | null | null |
import numpy as np
d_base = np.zeros((7, 7), dtype=int)
d_one = np.array([
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 1, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0]
])
d_two = np.array([
[0, 0, 0, 0, 0, 0, 0],
[0, 1, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 0]
])
d_three = np.array([
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 1, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 1, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0]
])
d_four = np.array([
[0, 0, 0, 0, 0, 0, 0],
[0, 1, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 1, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 0]
])
d_five = np.array([
[0, 0, 0, 0, 0, 0, 0],
[0, 1, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 1, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 1, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 0]
])
d_six = np.array([
[0, 0, 0, 0, 0, 0, 0],
[0, 1, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 1, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 1, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 0]
])
dice_units = [d_base, d_one, d_two, d_three, d_four, d_five, d_six]
| 21.461538
| 67
| 0.328315
| 346
| 1,395
| 1.280347
| 0.060694
| 1.110609
| 1.48307
| 1.733634
| 0.769752
| 0.769752
| 0.769752
| 0.769752
| 0.769752
| 0.769752
| 0
| 0.334842
| 0.366308
| 1,395
| 65
| 67
| 21.461538
| 0.16629
| 0
| 0
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.017544
| 0
| 0.017544
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
9bd4e156e6963240c4b096c9f5697c45acf6096a
| 41
|
py
|
Python
|
twitter_scraper/__init__.py
|
sagaragarwal94/TwitterScraper
|
1df4a27d02f97ba89a5f970401483721f145e55b
|
[
"MIT"
] | 15
|
2017-04-08T18:29:14.000Z
|
2020-08-16T14:19:41.000Z
|
twitter_scraper/__init__.py
|
shivammathur/TwitterScraper
|
40eaf654d9cfb9c3c18b77a64c96652430a89225
|
[
"MIT"
] | null | null | null |
twitter_scraper/__init__.py
|
shivammathur/TwitterScraper
|
40eaf654d9cfb9c3c18b77a64c96652430a89225
|
[
"MIT"
] | 7
|
2017-05-01T05:55:59.000Z
|
2020-01-11T03:49:16.000Z
|
from . import tweet
from . import scraper
| 20.5
| 21
| 0.780488
| 6
| 41
| 5.333333
| 0.666667
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.170732
| 41
| 2
| 21
| 20.5
| 0.941176
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
9bec7f7efbd0177aef7f15e5f200c25f0faea3c0
| 166,944
|
py
|
Python
|
sdk/python/pulumi_azure/eventgrid/_inputs.py
|
ScriptBox99/pulumi-azure
|
1b8c6d5479ccabc39094741eac25a8ca44c8833a
|
[
"ECL-2.0",
"Apache-2.0"
] | 109
|
2018-06-18T00:19:44.000Z
|
2022-02-20T05:32:57.000Z
|
sdk/python/pulumi_azure/eventgrid/_inputs.py
|
ScriptBox99/pulumi-azure
|
1b8c6d5479ccabc39094741eac25a8ca44c8833a
|
[
"ECL-2.0",
"Apache-2.0"
] | 663
|
2018-06-18T21:08:46.000Z
|
2022-03-31T20:10:11.000Z
|
sdk/python/pulumi_azure/eventgrid/_inputs.py
|
ScriptBox99/pulumi-azure
|
1b8c6d5479ccabc39094741eac25a8ca44c8833a
|
[
"ECL-2.0",
"Apache-2.0"
] | 41
|
2018-07-19T22:37:38.000Z
|
2022-03-14T10:56:26.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'DomainIdentityArgs',
'DomainInboundIpRuleArgs',
'DomainInputMappingDefaultValuesArgs',
'DomainInputMappingFieldsArgs',
'EventSubscriptionAdvancedFilterArgs',
'EventSubscriptionAdvancedFilterBoolEqualArgs',
'EventSubscriptionAdvancedFilterIsNotNullArgs',
'EventSubscriptionAdvancedFilterIsNullOrUndefinedArgs',
'EventSubscriptionAdvancedFilterNumberGreaterThanArgs',
'EventSubscriptionAdvancedFilterNumberGreaterThanOrEqualArgs',
'EventSubscriptionAdvancedFilterNumberInArgs',
'EventSubscriptionAdvancedFilterNumberInRangeArgs',
'EventSubscriptionAdvancedFilterNumberLessThanArgs',
'EventSubscriptionAdvancedFilterNumberLessThanOrEqualArgs',
'EventSubscriptionAdvancedFilterNumberNotInArgs',
'EventSubscriptionAdvancedFilterNumberNotInRangeArgs',
'EventSubscriptionAdvancedFilterStringBeginsWithArgs',
'EventSubscriptionAdvancedFilterStringContainArgs',
'EventSubscriptionAdvancedFilterStringEndsWithArgs',
'EventSubscriptionAdvancedFilterStringInArgs',
'EventSubscriptionAdvancedFilterStringNotBeginsWithArgs',
'EventSubscriptionAdvancedFilterStringNotContainArgs',
'EventSubscriptionAdvancedFilterStringNotEndsWithArgs',
'EventSubscriptionAdvancedFilterStringNotInArgs',
'EventSubscriptionAzureFunctionEndpointArgs',
'EventSubscriptionDeadLetterIdentityArgs',
'EventSubscriptionDeliveryIdentityArgs',
'EventSubscriptionDeliveryPropertyArgs',
'EventSubscriptionEventhubEndpointArgs',
'EventSubscriptionHybridConnectionEndpointArgs',
'EventSubscriptionRetryPolicyArgs',
'EventSubscriptionStorageBlobDeadLetterDestinationArgs',
'EventSubscriptionStorageQueueEndpointArgs',
'EventSubscriptionSubjectFilterArgs',
'EventSubscriptionWebhookEndpointArgs',
'SystemTopicEventSubscriptionAdvancedFilterArgs',
'SystemTopicEventSubscriptionAdvancedFilterBoolEqualArgs',
'SystemTopicEventSubscriptionAdvancedFilterIsNotNullArgs',
'SystemTopicEventSubscriptionAdvancedFilterIsNullOrUndefinedArgs',
'SystemTopicEventSubscriptionAdvancedFilterNumberGreaterThanArgs',
'SystemTopicEventSubscriptionAdvancedFilterNumberGreaterThanOrEqualArgs',
'SystemTopicEventSubscriptionAdvancedFilterNumberInArgs',
'SystemTopicEventSubscriptionAdvancedFilterNumberInRangeArgs',
'SystemTopicEventSubscriptionAdvancedFilterNumberLessThanArgs',
'SystemTopicEventSubscriptionAdvancedFilterNumberLessThanOrEqualArgs',
'SystemTopicEventSubscriptionAdvancedFilterNumberNotInArgs',
'SystemTopicEventSubscriptionAdvancedFilterNumberNotInRangeArgs',
'SystemTopicEventSubscriptionAdvancedFilterStringBeginsWithArgs',
'SystemTopicEventSubscriptionAdvancedFilterStringContainArgs',
'SystemTopicEventSubscriptionAdvancedFilterStringEndsWithArgs',
'SystemTopicEventSubscriptionAdvancedFilterStringInArgs',
'SystemTopicEventSubscriptionAdvancedFilterStringNotBeginsWithArgs',
'SystemTopicEventSubscriptionAdvancedFilterStringNotContainArgs',
'SystemTopicEventSubscriptionAdvancedFilterStringNotEndsWithArgs',
'SystemTopicEventSubscriptionAdvancedFilterStringNotInArgs',
'SystemTopicEventSubscriptionAzureFunctionEndpointArgs',
'SystemTopicEventSubscriptionDeadLetterIdentityArgs',
'SystemTopicEventSubscriptionDeliveryIdentityArgs',
'SystemTopicEventSubscriptionRetryPolicyArgs',
'SystemTopicEventSubscriptionStorageBlobDeadLetterDestinationArgs',
'SystemTopicEventSubscriptionStorageQueueEndpointArgs',
'SystemTopicEventSubscriptionSubjectFilterArgs',
'SystemTopicEventSubscriptionWebhookEndpointArgs',
'SystemTopicIdentityArgs',
'TopicIdentityArgs',
'TopicInboundIpRuleArgs',
'TopicInputMappingDefaultValuesArgs',
'TopicInputMappingFieldsArgs',
'GetDomainInboundIpRuleArgs',
'GetSystemTopicIdentityArgs',
]
@pulumi.input_type
class DomainIdentityArgs:
def __init__(__self__, *,
type: pulumi.Input[str],
identity_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
principal_id: Optional[pulumi.Input[str]] = None,
tenant_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] type: Specifies the identity type of Event Grid Domain. Possible values are `SystemAssigned` (where Azure will generate a Principal for you) or `UserAssigned` where you can specify the User Assigned Managed Identity IDs in the `identity_ids` field.
:param pulumi.Input[Sequence[pulumi.Input[str]]] identity_ids: Specifies a list of user managed identity ids to be assigned. Required if `type` is `UserAssigned`.
:param pulumi.Input[str] principal_id: Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid Domain.
:param pulumi.Input[str] tenant_id: Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid Domain.
"""
pulumi.set(__self__, "type", type)
if identity_ids is not None:
pulumi.set(__self__, "identity_ids", identity_ids)
if principal_id is not None:
pulumi.set(__self__, "principal_id", principal_id)
if tenant_id is not None:
pulumi.set(__self__, "tenant_id", tenant_id)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
Specifies the identity type of Event Grid Domain. Possible values are `SystemAssigned` (where Azure will generate a Principal for you) or `UserAssigned` where you can specify the User Assigned Managed Identity IDs in the `identity_ids` field.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter(name="identityIds")
def identity_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Specifies a list of user managed identity ids to be assigned. Required if `type` is `UserAssigned`.
"""
return pulumi.get(self, "identity_ids")
@identity_ids.setter
def identity_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "identity_ids", value)
@property
@pulumi.getter(name="principalId")
def principal_id(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid Domain.
"""
return pulumi.get(self, "principal_id")
@principal_id.setter
def principal_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "principal_id", value)
@property
@pulumi.getter(name="tenantId")
def tenant_id(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid Domain.
"""
return pulumi.get(self, "tenant_id")
@tenant_id.setter
def tenant_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "tenant_id", value)
@pulumi.input_type
class DomainInboundIpRuleArgs:
def __init__(__self__, *,
ip_mask: pulumi.Input[str],
action: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] ip_mask: The ip mask (CIDR) to match on.
:param pulumi.Input[str] action: The action to take when the rule is matched. Possible values are `Allow`.
"""
pulumi.set(__self__, "ip_mask", ip_mask)
if action is not None:
pulumi.set(__self__, "action", action)
@property
@pulumi.getter(name="ipMask")
def ip_mask(self) -> pulumi.Input[str]:
"""
The ip mask (CIDR) to match on.
"""
return pulumi.get(self, "ip_mask")
@ip_mask.setter
def ip_mask(self, value: pulumi.Input[str]):
pulumi.set(self, "ip_mask", value)
@property
@pulumi.getter
def action(self) -> Optional[pulumi.Input[str]]:
"""
The action to take when the rule is matched. Possible values are `Allow`.
"""
return pulumi.get(self, "action")
@action.setter
def action(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "action", value)
@pulumi.input_type
class DomainInputMappingDefaultValuesArgs:
def __init__(__self__, *,
data_version: Optional[pulumi.Input[str]] = None,
event_type: Optional[pulumi.Input[str]] = None,
subject: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] data_version: Specifies the default data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
:param pulumi.Input[str] event_type: Specifies the default event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
:param pulumi.Input[str] subject: Specifies the default subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
if data_version is not None:
pulumi.set(__self__, "data_version", data_version)
if event_type is not None:
pulumi.set(__self__, "event_type", event_type)
if subject is not None:
pulumi.set(__self__, "subject", subject)
@property
@pulumi.getter(name="dataVersion")
def data_version(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the default data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "data_version")
@data_version.setter
def data_version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "data_version", value)
@property
@pulumi.getter(name="eventType")
def event_type(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the default event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "event_type")
@event_type.setter
def event_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "event_type", value)
@property
@pulumi.getter
def subject(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the default subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "subject")
@subject.setter
def subject(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subject", value)
@pulumi.input_type
class DomainInputMappingFieldsArgs:
def __init__(__self__, *,
data_version: Optional[pulumi.Input[str]] = None,
event_time: Optional[pulumi.Input[str]] = None,
event_type: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
subject: Optional[pulumi.Input[str]] = None,
topic: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] data_version: Specifies the data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
:param pulumi.Input[str] event_time: Specifies the event time of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
:param pulumi.Input[str] event_type: Specifies the event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
:param pulumi.Input[str] id: Specifies the id of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
:param pulumi.Input[str] subject: Specifies the subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
:param pulumi.Input[str] topic: Specifies the topic of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
if data_version is not None:
pulumi.set(__self__, "data_version", data_version)
if event_time is not None:
pulumi.set(__self__, "event_time", event_time)
if event_type is not None:
pulumi.set(__self__, "event_type", event_type)
if id is not None:
pulumi.set(__self__, "id", id)
if subject is not None:
pulumi.set(__self__, "subject", subject)
if topic is not None:
pulumi.set(__self__, "topic", topic)
@property
@pulumi.getter(name="dataVersion")
def data_version(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "data_version")
@data_version.setter
def data_version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "data_version", value)
@property
@pulumi.getter(name="eventTime")
def event_time(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the event time of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "event_time")
@event_time.setter
def event_time(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "event_time", value)
@property
@pulumi.getter(name="eventType")
def event_type(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "event_type")
@event_type.setter
def event_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "event_type", value)
@property
@pulumi.getter
def id(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the id of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "id")
@id.setter
def id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "id", value)
@property
@pulumi.getter
def subject(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "subject")
@subject.setter
def subject(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subject", value)
@property
@pulumi.getter
def topic(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the topic of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "topic")
@topic.setter
def topic(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "topic", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterArgs:
def __init__(__self__, *,
bool_equals: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterBoolEqualArgs']]]] = None,
is_not_nulls: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterIsNotNullArgs']]]] = None,
is_null_or_undefineds: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterIsNullOrUndefinedArgs']]]] = None,
number_greater_than_or_equals: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberGreaterThanOrEqualArgs']]]] = None,
number_greater_thans: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberGreaterThanArgs']]]] = None,
number_in_ranges: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberInRangeArgs']]]] = None,
number_ins: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberInArgs']]]] = None,
number_less_than_or_equals: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberLessThanOrEqualArgs']]]] = None,
number_less_thans: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberLessThanArgs']]]] = None,
number_not_in_ranges: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberNotInRangeArgs']]]] = None,
number_not_ins: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberNotInArgs']]]] = None,
string_begins_withs: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringBeginsWithArgs']]]] = None,
string_contains: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringContainArgs']]]] = None,
string_ends_withs: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringEndsWithArgs']]]] = None,
string_ins: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringInArgs']]]] = None,
string_not_begins_withs: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotBeginsWithArgs']]]] = None,
string_not_contains: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotContainArgs']]]] = None,
string_not_ends_withs: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotEndsWithArgs']]]] = None,
string_not_ins: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotInArgs']]]] = None):
"""
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterBoolEqualArgs']]] bool_equals: Compares a value of an event using a single boolean value.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterIsNotNullArgs']]] is_not_nulls: Evaluates if a value of an event isn't NULL or undefined.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterIsNullOrUndefinedArgs']]] is_null_or_undefineds: Evaluates if a value of an event is NULL or undefined.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberGreaterThanOrEqualArgs']]] number_greater_than_or_equals: Compares a value of an event using a single floating point number.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberGreaterThanArgs']]] number_greater_thans: Compares a value of an event using a single floating point number.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberInRangeArgs']]] number_in_ranges: Compares a value of an event using multiple floating point number ranges.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberInArgs']]] number_ins: Compares a value of an event using multiple floating point numbers.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberLessThanOrEqualArgs']]] number_less_than_or_equals: Compares a value of an event using a single floating point number.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberLessThanArgs']]] number_less_thans: Compares a value of an event using a single floating point number.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberNotInRangeArgs']]] number_not_in_ranges: Compares a value of an event using multiple floating point number ranges.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberNotInArgs']]] number_not_ins: Compares a value of an event using multiple floating point numbers.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringBeginsWithArgs']]] string_begins_withs: Compares a value of an event using multiple string values.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringContainArgs']]] string_contains: Compares a value of an event using multiple string values.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringEndsWithArgs']]] string_ends_withs: Compares a value of an event using multiple string values.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringInArgs']]] string_ins: Compares a value of an event using multiple string values.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotBeginsWithArgs']]] string_not_begins_withs: Compares a value of an event using multiple string values.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotContainArgs']]] string_not_contains: Compares a value of an event using multiple string values.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotEndsWithArgs']]] string_not_ends_withs: Compares a value of an event using multiple string values.
:param pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotInArgs']]] string_not_ins: Compares a value of an event using multiple string values.
"""
if bool_equals is not None:
pulumi.set(__self__, "bool_equals", bool_equals)
if is_not_nulls is not None:
pulumi.set(__self__, "is_not_nulls", is_not_nulls)
if is_null_or_undefineds is not None:
pulumi.set(__self__, "is_null_or_undefineds", is_null_or_undefineds)
if number_greater_than_or_equals is not None:
pulumi.set(__self__, "number_greater_than_or_equals", number_greater_than_or_equals)
if number_greater_thans is not None:
pulumi.set(__self__, "number_greater_thans", number_greater_thans)
if number_in_ranges is not None:
pulumi.set(__self__, "number_in_ranges", number_in_ranges)
if number_ins is not None:
pulumi.set(__self__, "number_ins", number_ins)
if number_less_than_or_equals is not None:
pulumi.set(__self__, "number_less_than_or_equals", number_less_than_or_equals)
if number_less_thans is not None:
pulumi.set(__self__, "number_less_thans", number_less_thans)
if number_not_in_ranges is not None:
pulumi.set(__self__, "number_not_in_ranges", number_not_in_ranges)
if number_not_ins is not None:
pulumi.set(__self__, "number_not_ins", number_not_ins)
if string_begins_withs is not None:
pulumi.set(__self__, "string_begins_withs", string_begins_withs)
if string_contains is not None:
pulumi.set(__self__, "string_contains", string_contains)
if string_ends_withs is not None:
pulumi.set(__self__, "string_ends_withs", string_ends_withs)
if string_ins is not None:
pulumi.set(__self__, "string_ins", string_ins)
if string_not_begins_withs is not None:
pulumi.set(__self__, "string_not_begins_withs", string_not_begins_withs)
if string_not_contains is not None:
pulumi.set(__self__, "string_not_contains", string_not_contains)
if string_not_ends_withs is not None:
pulumi.set(__self__, "string_not_ends_withs", string_not_ends_withs)
if string_not_ins is not None:
pulumi.set(__self__, "string_not_ins", string_not_ins)
@property
@pulumi.getter(name="boolEquals")
def bool_equals(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterBoolEqualArgs']]]]:
"""
Compares a value of an event using a single boolean value.
"""
return pulumi.get(self, "bool_equals")
@bool_equals.setter
def bool_equals(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterBoolEqualArgs']]]]):
pulumi.set(self, "bool_equals", value)
@property
@pulumi.getter(name="isNotNulls")
def is_not_nulls(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterIsNotNullArgs']]]]:
"""
Evaluates if a value of an event isn't NULL or undefined.
"""
return pulumi.get(self, "is_not_nulls")
@is_not_nulls.setter
def is_not_nulls(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterIsNotNullArgs']]]]):
pulumi.set(self, "is_not_nulls", value)
@property
@pulumi.getter(name="isNullOrUndefineds")
def is_null_or_undefineds(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterIsNullOrUndefinedArgs']]]]:
"""
Evaluates if a value of an event is NULL or undefined.
"""
return pulumi.get(self, "is_null_or_undefineds")
@is_null_or_undefineds.setter
def is_null_or_undefineds(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterIsNullOrUndefinedArgs']]]]):
pulumi.set(self, "is_null_or_undefineds", value)
@property
@pulumi.getter(name="numberGreaterThanOrEquals")
def number_greater_than_or_equals(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberGreaterThanOrEqualArgs']]]]:
"""
Compares a value of an event using a single floating point number.
"""
return pulumi.get(self, "number_greater_than_or_equals")
@number_greater_than_or_equals.setter
def number_greater_than_or_equals(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberGreaterThanOrEqualArgs']]]]):
pulumi.set(self, "number_greater_than_or_equals", value)
@property
@pulumi.getter(name="numberGreaterThans")
def number_greater_thans(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberGreaterThanArgs']]]]:
"""
Compares a value of an event using a single floating point number.
"""
return pulumi.get(self, "number_greater_thans")
@number_greater_thans.setter
def number_greater_thans(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberGreaterThanArgs']]]]):
pulumi.set(self, "number_greater_thans", value)
@property
@pulumi.getter(name="numberInRanges")
def number_in_ranges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberInRangeArgs']]]]:
"""
Compares a value of an event using multiple floating point number ranges.
"""
return pulumi.get(self, "number_in_ranges")
@number_in_ranges.setter
def number_in_ranges(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberInRangeArgs']]]]):
pulumi.set(self, "number_in_ranges", value)
@property
@pulumi.getter(name="numberIns")
def number_ins(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberInArgs']]]]:
"""
Compares a value of an event using multiple floating point numbers.
"""
return pulumi.get(self, "number_ins")
@number_ins.setter
def number_ins(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberInArgs']]]]):
pulumi.set(self, "number_ins", value)
@property
@pulumi.getter(name="numberLessThanOrEquals")
def number_less_than_or_equals(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberLessThanOrEqualArgs']]]]:
"""
Compares a value of an event using a single floating point number.
"""
return pulumi.get(self, "number_less_than_or_equals")
@number_less_than_or_equals.setter
def number_less_than_or_equals(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberLessThanOrEqualArgs']]]]):
pulumi.set(self, "number_less_than_or_equals", value)
@property
@pulumi.getter(name="numberLessThans")
def number_less_thans(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberLessThanArgs']]]]:
"""
Compares a value of an event using a single floating point number.
"""
return pulumi.get(self, "number_less_thans")
@number_less_thans.setter
def number_less_thans(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberLessThanArgs']]]]):
pulumi.set(self, "number_less_thans", value)
@property
@pulumi.getter(name="numberNotInRanges")
def number_not_in_ranges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberNotInRangeArgs']]]]:
"""
Compares a value of an event using multiple floating point number ranges.
"""
return pulumi.get(self, "number_not_in_ranges")
@number_not_in_ranges.setter
def number_not_in_ranges(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberNotInRangeArgs']]]]):
pulumi.set(self, "number_not_in_ranges", value)
@property
@pulumi.getter(name="numberNotIns")
def number_not_ins(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberNotInArgs']]]]:
"""
Compares a value of an event using multiple floating point numbers.
"""
return pulumi.get(self, "number_not_ins")
@number_not_ins.setter
def number_not_ins(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterNumberNotInArgs']]]]):
pulumi.set(self, "number_not_ins", value)
@property
@pulumi.getter(name="stringBeginsWiths")
def string_begins_withs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringBeginsWithArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_begins_withs")
@string_begins_withs.setter
def string_begins_withs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringBeginsWithArgs']]]]):
pulumi.set(self, "string_begins_withs", value)
@property
@pulumi.getter(name="stringContains")
def string_contains(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringContainArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_contains")
@string_contains.setter
def string_contains(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringContainArgs']]]]):
pulumi.set(self, "string_contains", value)
@property
@pulumi.getter(name="stringEndsWiths")
def string_ends_withs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringEndsWithArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_ends_withs")
@string_ends_withs.setter
def string_ends_withs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringEndsWithArgs']]]]):
pulumi.set(self, "string_ends_withs", value)
@property
@pulumi.getter(name="stringIns")
def string_ins(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringInArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_ins")
@string_ins.setter
def string_ins(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringInArgs']]]]):
pulumi.set(self, "string_ins", value)
@property
@pulumi.getter(name="stringNotBeginsWiths")
def string_not_begins_withs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotBeginsWithArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_not_begins_withs")
@string_not_begins_withs.setter
def string_not_begins_withs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotBeginsWithArgs']]]]):
pulumi.set(self, "string_not_begins_withs", value)
@property
@pulumi.getter(name="stringNotContains")
def string_not_contains(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotContainArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_not_contains")
@string_not_contains.setter
def string_not_contains(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotContainArgs']]]]):
pulumi.set(self, "string_not_contains", value)
@property
@pulumi.getter(name="stringNotEndsWiths")
def string_not_ends_withs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotEndsWithArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_not_ends_withs")
@string_not_ends_withs.setter
def string_not_ends_withs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotEndsWithArgs']]]]):
pulumi.set(self, "string_not_ends_withs", value)
@property
@pulumi.getter(name="stringNotIns")
def string_not_ins(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotInArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_not_ins")
@string_not_ins.setter
def string_not_ins(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EventSubscriptionAdvancedFilterStringNotInArgs']]]]):
pulumi.set(self, "string_not_ins", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterBoolEqualArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
value: pulumi.Input[bool]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[bool] value: Specifies a single value to compare to when using a single value operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "value", value)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def value(self) -> pulumi.Input[bool]:
"""
Specifies a single value to compare to when using a single value operator.
"""
return pulumi.get(self, "value")
@value.setter
def value(self, value: pulumi.Input[bool]):
pulumi.set(self, "value", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterIsNotNullArgs:
def __init__(__self__, *,
key: pulumi.Input[str]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
pulumi.set(__self__, "key", key)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterIsNullOrUndefinedArgs:
def __init__(__self__, *,
key: pulumi.Input[str]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
pulumi.set(__self__, "key", key)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterNumberGreaterThanArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
value: pulumi.Input[float]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[float] value: Specifies a single value to compare to when using a single value operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "value", value)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def value(self) -> pulumi.Input[float]:
"""
Specifies a single value to compare to when using a single value operator.
"""
return pulumi.get(self, "value")
@value.setter
def value(self, value: pulumi.Input[float]):
pulumi.set(self, "value", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterNumberGreaterThanOrEqualArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
value: pulumi.Input[float]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[float] value: Specifies a single value to compare to when using a single value operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "value", value)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def value(self) -> pulumi.Input[float]:
"""
Specifies a single value to compare to when using a single value operator.
"""
return pulumi.get(self, "value")
@value.setter
def value(self, value: pulumi.Input[float]):
pulumi.set(self, "value", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterNumberInArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[float]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[float]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[float]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[float]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterNumberInRangeArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterNumberLessThanArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
value: pulumi.Input[float]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[float] value: Specifies a single value to compare to when using a single value operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "value", value)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def value(self) -> pulumi.Input[float]:
"""
Specifies a single value to compare to when using a single value operator.
"""
return pulumi.get(self, "value")
@value.setter
def value(self, value: pulumi.Input[float]):
pulumi.set(self, "value", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterNumberLessThanOrEqualArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
value: pulumi.Input[float]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[float] value: Specifies a single value to compare to when using a single value operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "value", value)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def value(self) -> pulumi.Input[float]:
"""
Specifies a single value to compare to when using a single value operator.
"""
return pulumi.get(self, "value")
@value.setter
def value(self, value: pulumi.Input[float]):
pulumi.set(self, "value", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterNumberNotInArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[float]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[float]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[float]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[float]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterNumberNotInRangeArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterStringBeginsWithArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterStringContainArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterStringEndsWithArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterStringInArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterStringNotBeginsWithArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterStringNotContainArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterStringNotEndsWithArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class EventSubscriptionAdvancedFilterStringNotInArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class EventSubscriptionAzureFunctionEndpointArgs:
def __init__(__self__, *,
function_id: pulumi.Input[str],
max_events_per_batch: Optional[pulumi.Input[int]] = None,
preferred_batch_size_in_kilobytes: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] function_id: Specifies the ID of the Function where the Event Subscription will receive events. This must be the functions ID in format {function_app.id}/functions/{name}.
:param pulumi.Input[int] max_events_per_batch: Maximum number of events per batch.
:param pulumi.Input[int] preferred_batch_size_in_kilobytes: Preferred batch size in Kilobytes.
"""
pulumi.set(__self__, "function_id", function_id)
if max_events_per_batch is not None:
pulumi.set(__self__, "max_events_per_batch", max_events_per_batch)
if preferred_batch_size_in_kilobytes is not None:
pulumi.set(__self__, "preferred_batch_size_in_kilobytes", preferred_batch_size_in_kilobytes)
@property
@pulumi.getter(name="functionId")
def function_id(self) -> pulumi.Input[str]:
"""
Specifies the ID of the Function where the Event Subscription will receive events. This must be the functions ID in format {function_app.id}/functions/{name}.
"""
return pulumi.get(self, "function_id")
@function_id.setter
def function_id(self, value: pulumi.Input[str]):
pulumi.set(self, "function_id", value)
@property
@pulumi.getter(name="maxEventsPerBatch")
def max_events_per_batch(self) -> Optional[pulumi.Input[int]]:
"""
Maximum number of events per batch.
"""
return pulumi.get(self, "max_events_per_batch")
@max_events_per_batch.setter
def max_events_per_batch(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_events_per_batch", value)
@property
@pulumi.getter(name="preferredBatchSizeInKilobytes")
def preferred_batch_size_in_kilobytes(self) -> Optional[pulumi.Input[int]]:
"""
Preferred batch size in Kilobytes.
"""
return pulumi.get(self, "preferred_batch_size_in_kilobytes")
@preferred_batch_size_in_kilobytes.setter
def preferred_batch_size_in_kilobytes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "preferred_batch_size_in_kilobytes", value)
@pulumi.input_type
class EventSubscriptionDeadLetterIdentityArgs:
def __init__(__self__, *,
type: pulumi.Input[str],
user_assigned_identity: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] type: Specifies the type of Managed Service Identity that is used for dead lettering. Allowed value is `SystemAssigned`, `UserAssigned`.
:param pulumi.Input[str] user_assigned_identity: The user identity associated with the resource.
"""
pulumi.set(__self__, "type", type)
if user_assigned_identity is not None:
pulumi.set(__self__, "user_assigned_identity", user_assigned_identity)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
Specifies the type of Managed Service Identity that is used for dead lettering. Allowed value is `SystemAssigned`, `UserAssigned`.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter(name="userAssignedIdentity")
def user_assigned_identity(self) -> Optional[pulumi.Input[str]]:
"""
The user identity associated with the resource.
"""
return pulumi.get(self, "user_assigned_identity")
@user_assigned_identity.setter
def user_assigned_identity(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_assigned_identity", value)
@pulumi.input_type
class EventSubscriptionDeliveryIdentityArgs:
def __init__(__self__, *,
type: pulumi.Input[str],
user_assigned_identity: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] type: Specifies the type of Managed Service Identity that is used for event delivery. Allowed value is `SystemAssigned`, `UserAssigned`.
:param pulumi.Input[str] user_assigned_identity: The user identity associated with the resource.
"""
pulumi.set(__self__, "type", type)
if user_assigned_identity is not None:
pulumi.set(__self__, "user_assigned_identity", user_assigned_identity)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
Specifies the type of Managed Service Identity that is used for event delivery. Allowed value is `SystemAssigned`, `UserAssigned`.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter(name="userAssignedIdentity")
def user_assigned_identity(self) -> Optional[pulumi.Input[str]]:
"""
The user identity associated with the resource.
"""
return pulumi.get(self, "user_assigned_identity")
@user_assigned_identity.setter
def user_assigned_identity(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_assigned_identity", value)
@pulumi.input_type
class EventSubscriptionDeliveryPropertyArgs:
def __init__(__self__, *,
header_name: pulumi.Input[str],
type: pulumi.Input[str],
secret: Optional[pulumi.Input[bool]] = None,
source_field: Optional[pulumi.Input[str]] = None,
value: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] header_name: The name of the header to send on to the destination
:param pulumi.Input[str] type: Either `Static` or `Dynamic`
:param pulumi.Input[bool] secret: True if the `value` is a secret and should be protected, otherwise false. If True, then this value won't be returned from Azure API calls
:param pulumi.Input[str] source_field: If the `type` is `Dynamic`, then provide the payload field to be used as the value. Valid source fields differ by subscription type.
:param pulumi.Input[str] value: If the `type` is `Static`, then provide the value to use
"""
pulumi.set(__self__, "header_name", header_name)
pulumi.set(__self__, "type", type)
if secret is not None:
pulumi.set(__self__, "secret", secret)
if source_field is not None:
pulumi.set(__self__, "source_field", source_field)
if value is not None:
pulumi.set(__self__, "value", value)
@property
@pulumi.getter(name="headerName")
def header_name(self) -> pulumi.Input[str]:
"""
The name of the header to send on to the destination
"""
return pulumi.get(self, "header_name")
@header_name.setter
def header_name(self, value: pulumi.Input[str]):
pulumi.set(self, "header_name", value)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
Either `Static` or `Dynamic`
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter
def secret(self) -> Optional[pulumi.Input[bool]]:
"""
True if the `value` is a secret and should be protected, otherwise false. If True, then this value won't be returned from Azure API calls
"""
return pulumi.get(self, "secret")
@secret.setter
def secret(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "secret", value)
@property
@pulumi.getter(name="sourceField")
def source_field(self) -> Optional[pulumi.Input[str]]:
"""
If the `type` is `Dynamic`, then provide the payload field to be used as the value. Valid source fields differ by subscription type.
"""
return pulumi.get(self, "source_field")
@source_field.setter
def source_field(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "source_field", value)
@property
@pulumi.getter
def value(self) -> Optional[pulumi.Input[str]]:
"""
If the `type` is `Static`, then provide the value to use
"""
return pulumi.get(self, "value")
@value.setter
def value(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "value", value)
@pulumi.input_type
class EventSubscriptionEventhubEndpointArgs:
def __init__(__self__, *,
eventhub_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] eventhub_id: Specifies the id of the eventhub where the Event Subscription will receive events.
"""
if eventhub_id is not None:
pulumi.set(__self__, "eventhub_id", eventhub_id)
@property
@pulumi.getter(name="eventhubId")
def eventhub_id(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the id of the eventhub where the Event Subscription will receive events.
"""
return pulumi.get(self, "eventhub_id")
@eventhub_id.setter
def eventhub_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "eventhub_id", value)
@pulumi.input_type
class EventSubscriptionHybridConnectionEndpointArgs:
def __init__(__self__, *,
hybrid_connection_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] hybrid_connection_id: Specifies the id of the hybrid connection where the Event Subscription will receive events.
"""
if hybrid_connection_id is not None:
pulumi.set(__self__, "hybrid_connection_id", hybrid_connection_id)
@property
@pulumi.getter(name="hybridConnectionId")
def hybrid_connection_id(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the id of the hybrid connection where the Event Subscription will receive events.
"""
return pulumi.get(self, "hybrid_connection_id")
@hybrid_connection_id.setter
def hybrid_connection_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "hybrid_connection_id", value)
@pulumi.input_type
class EventSubscriptionRetryPolicyArgs:
def __init__(__self__, *,
event_time_to_live: pulumi.Input[int],
max_delivery_attempts: pulumi.Input[int]):
"""
:param pulumi.Input[int] event_time_to_live: Specifies the time to live (in minutes) for events. Supported range is `1` to `1440`. Defaults to `1440`. See [official documentation](https://docs.microsoft.com/en-us/azure/event-grid/manage-event-delivery#set-retry-policy) for more details.
:param pulumi.Input[int] max_delivery_attempts: Specifies the maximum number of delivery retry attempts for events.
"""
pulumi.set(__self__, "event_time_to_live", event_time_to_live)
pulumi.set(__self__, "max_delivery_attempts", max_delivery_attempts)
@property
@pulumi.getter(name="eventTimeToLive")
def event_time_to_live(self) -> pulumi.Input[int]:
"""
Specifies the time to live (in minutes) for events. Supported range is `1` to `1440`. Defaults to `1440`. See [official documentation](https://docs.microsoft.com/en-us/azure/event-grid/manage-event-delivery#set-retry-policy) for more details.
"""
return pulumi.get(self, "event_time_to_live")
@event_time_to_live.setter
def event_time_to_live(self, value: pulumi.Input[int]):
pulumi.set(self, "event_time_to_live", value)
@property
@pulumi.getter(name="maxDeliveryAttempts")
def max_delivery_attempts(self) -> pulumi.Input[int]:
"""
Specifies the maximum number of delivery retry attempts for events.
"""
return pulumi.get(self, "max_delivery_attempts")
@max_delivery_attempts.setter
def max_delivery_attempts(self, value: pulumi.Input[int]):
pulumi.set(self, "max_delivery_attempts", value)
@pulumi.input_type
class EventSubscriptionStorageBlobDeadLetterDestinationArgs:
def __init__(__self__, *,
storage_account_id: pulumi.Input[str],
storage_blob_container_name: pulumi.Input[str]):
"""
:param pulumi.Input[str] storage_account_id: Specifies the id of the storage account id where the storage blob is located.
:param pulumi.Input[str] storage_blob_container_name: Specifies the name of the Storage blob container that is the destination of the deadletter events.
"""
pulumi.set(__self__, "storage_account_id", storage_account_id)
pulumi.set(__self__, "storage_blob_container_name", storage_blob_container_name)
@property
@pulumi.getter(name="storageAccountId")
def storage_account_id(self) -> pulumi.Input[str]:
"""
Specifies the id of the storage account id where the storage blob is located.
"""
return pulumi.get(self, "storage_account_id")
@storage_account_id.setter
def storage_account_id(self, value: pulumi.Input[str]):
pulumi.set(self, "storage_account_id", value)
@property
@pulumi.getter(name="storageBlobContainerName")
def storage_blob_container_name(self) -> pulumi.Input[str]:
"""
Specifies the name of the Storage blob container that is the destination of the deadletter events.
"""
return pulumi.get(self, "storage_blob_container_name")
@storage_blob_container_name.setter
def storage_blob_container_name(self, value: pulumi.Input[str]):
pulumi.set(self, "storage_blob_container_name", value)
@pulumi.input_type
class EventSubscriptionStorageQueueEndpointArgs:
def __init__(__self__, *,
queue_name: pulumi.Input[str],
storage_account_id: pulumi.Input[str],
queue_message_time_to_live_in_seconds: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] queue_name: Specifies the name of the storage queue where the Event Subscription will receive events.
:param pulumi.Input[str] storage_account_id: Specifies the id of the storage account id where the storage queue is located.
:param pulumi.Input[int] queue_message_time_to_live_in_seconds: Storage queue message time to live in seconds.
"""
pulumi.set(__self__, "queue_name", queue_name)
pulumi.set(__self__, "storage_account_id", storage_account_id)
if queue_message_time_to_live_in_seconds is not None:
pulumi.set(__self__, "queue_message_time_to_live_in_seconds", queue_message_time_to_live_in_seconds)
@property
@pulumi.getter(name="queueName")
def queue_name(self) -> pulumi.Input[str]:
"""
Specifies the name of the storage queue where the Event Subscription will receive events.
"""
return pulumi.get(self, "queue_name")
@queue_name.setter
def queue_name(self, value: pulumi.Input[str]):
pulumi.set(self, "queue_name", value)
@property
@pulumi.getter(name="storageAccountId")
def storage_account_id(self) -> pulumi.Input[str]:
"""
Specifies the id of the storage account id where the storage queue is located.
"""
return pulumi.get(self, "storage_account_id")
@storage_account_id.setter
def storage_account_id(self, value: pulumi.Input[str]):
pulumi.set(self, "storage_account_id", value)
@property
@pulumi.getter(name="queueMessageTimeToLiveInSeconds")
def queue_message_time_to_live_in_seconds(self) -> Optional[pulumi.Input[int]]:
"""
Storage queue message time to live in seconds.
"""
return pulumi.get(self, "queue_message_time_to_live_in_seconds")
@queue_message_time_to_live_in_seconds.setter
def queue_message_time_to_live_in_seconds(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "queue_message_time_to_live_in_seconds", value)
@pulumi.input_type
class EventSubscriptionSubjectFilterArgs:
def __init__(__self__, *,
case_sensitive: Optional[pulumi.Input[bool]] = None,
subject_begins_with: Optional[pulumi.Input[str]] = None,
subject_ends_with: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[bool] case_sensitive: Specifies if `subject_begins_with` and `subject_ends_with` case sensitive. This value defaults to `false`.
:param pulumi.Input[str] subject_begins_with: A string to filter events for an event subscription based on a resource path prefix.
:param pulumi.Input[str] subject_ends_with: A string to filter events for an event subscription based on a resource path suffix.
"""
if case_sensitive is not None:
pulumi.set(__self__, "case_sensitive", case_sensitive)
if subject_begins_with is not None:
pulumi.set(__self__, "subject_begins_with", subject_begins_with)
if subject_ends_with is not None:
pulumi.set(__self__, "subject_ends_with", subject_ends_with)
@property
@pulumi.getter(name="caseSensitive")
def case_sensitive(self) -> Optional[pulumi.Input[bool]]:
"""
Specifies if `subject_begins_with` and `subject_ends_with` case sensitive. This value defaults to `false`.
"""
return pulumi.get(self, "case_sensitive")
@case_sensitive.setter
def case_sensitive(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "case_sensitive", value)
@property
@pulumi.getter(name="subjectBeginsWith")
def subject_begins_with(self) -> Optional[pulumi.Input[str]]:
"""
A string to filter events for an event subscription based on a resource path prefix.
"""
return pulumi.get(self, "subject_begins_with")
@subject_begins_with.setter
def subject_begins_with(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subject_begins_with", value)
@property
@pulumi.getter(name="subjectEndsWith")
def subject_ends_with(self) -> Optional[pulumi.Input[str]]:
"""
A string to filter events for an event subscription based on a resource path suffix.
"""
return pulumi.get(self, "subject_ends_with")
@subject_ends_with.setter
def subject_ends_with(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subject_ends_with", value)
@pulumi.input_type
class EventSubscriptionWebhookEndpointArgs:
def __init__(__self__, *,
url: pulumi.Input[str],
active_directory_app_id_or_uri: Optional[pulumi.Input[str]] = None,
active_directory_tenant_id: Optional[pulumi.Input[str]] = None,
base_url: Optional[pulumi.Input[str]] = None,
max_events_per_batch: Optional[pulumi.Input[int]] = None,
preferred_batch_size_in_kilobytes: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] url: Specifies the url of the webhook where the Event Subscription will receive events.
:param pulumi.Input[str] active_directory_app_id_or_uri: The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer token in delivery requests.
:param pulumi.Input[str] active_directory_tenant_id: The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in delivery requests.
:param pulumi.Input[str] base_url: The base url of the webhook where the Event Subscription will receive events.
:param pulumi.Input[int] max_events_per_batch: Maximum number of events per batch.
:param pulumi.Input[int] preferred_batch_size_in_kilobytes: Preferred batch size in Kilobytes.
"""
pulumi.set(__self__, "url", url)
if active_directory_app_id_or_uri is not None:
pulumi.set(__self__, "active_directory_app_id_or_uri", active_directory_app_id_or_uri)
if active_directory_tenant_id is not None:
pulumi.set(__self__, "active_directory_tenant_id", active_directory_tenant_id)
if base_url is not None:
pulumi.set(__self__, "base_url", base_url)
if max_events_per_batch is not None:
pulumi.set(__self__, "max_events_per_batch", max_events_per_batch)
if preferred_batch_size_in_kilobytes is not None:
pulumi.set(__self__, "preferred_batch_size_in_kilobytes", preferred_batch_size_in_kilobytes)
@property
@pulumi.getter
def url(self) -> pulumi.Input[str]:
"""
Specifies the url of the webhook where the Event Subscription will receive events.
"""
return pulumi.get(self, "url")
@url.setter
def url(self, value: pulumi.Input[str]):
pulumi.set(self, "url", value)
@property
@pulumi.getter(name="activeDirectoryAppIdOrUri")
def active_directory_app_id_or_uri(self) -> Optional[pulumi.Input[str]]:
"""
The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer token in delivery requests.
"""
return pulumi.get(self, "active_directory_app_id_or_uri")
@active_directory_app_id_or_uri.setter
def active_directory_app_id_or_uri(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "active_directory_app_id_or_uri", value)
@property
@pulumi.getter(name="activeDirectoryTenantId")
def active_directory_tenant_id(self) -> Optional[pulumi.Input[str]]:
"""
The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in delivery requests.
"""
return pulumi.get(self, "active_directory_tenant_id")
@active_directory_tenant_id.setter
def active_directory_tenant_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "active_directory_tenant_id", value)
@property
@pulumi.getter(name="baseUrl")
def base_url(self) -> Optional[pulumi.Input[str]]:
"""
The base url of the webhook where the Event Subscription will receive events.
"""
return pulumi.get(self, "base_url")
@base_url.setter
def base_url(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "base_url", value)
@property
@pulumi.getter(name="maxEventsPerBatch")
def max_events_per_batch(self) -> Optional[pulumi.Input[int]]:
"""
Maximum number of events per batch.
"""
return pulumi.get(self, "max_events_per_batch")
@max_events_per_batch.setter
def max_events_per_batch(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_events_per_batch", value)
@property
@pulumi.getter(name="preferredBatchSizeInKilobytes")
def preferred_batch_size_in_kilobytes(self) -> Optional[pulumi.Input[int]]:
"""
Preferred batch size in Kilobytes.
"""
return pulumi.get(self, "preferred_batch_size_in_kilobytes")
@preferred_batch_size_in_kilobytes.setter
def preferred_batch_size_in_kilobytes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "preferred_batch_size_in_kilobytes", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterArgs:
def __init__(__self__, *,
bool_equals: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterBoolEqualArgs']]]] = None,
is_not_nulls: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterIsNotNullArgs']]]] = None,
is_null_or_undefineds: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterIsNullOrUndefinedArgs']]]] = None,
number_greater_than_or_equals: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberGreaterThanOrEqualArgs']]]] = None,
number_greater_thans: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberGreaterThanArgs']]]] = None,
number_in_ranges: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberInRangeArgs']]]] = None,
number_ins: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberInArgs']]]] = None,
number_less_than_or_equals: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberLessThanOrEqualArgs']]]] = None,
number_less_thans: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberLessThanArgs']]]] = None,
number_not_in_ranges: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberNotInRangeArgs']]]] = None,
number_not_ins: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberNotInArgs']]]] = None,
string_begins_withs: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringBeginsWithArgs']]]] = None,
string_contains: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringContainArgs']]]] = None,
string_ends_withs: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringEndsWithArgs']]]] = None,
string_ins: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringInArgs']]]] = None,
string_not_begins_withs: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotBeginsWithArgs']]]] = None,
string_not_contains: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotContainArgs']]]] = None,
string_not_ends_withs: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotEndsWithArgs']]]] = None,
string_not_ins: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotInArgs']]]] = None):
"""
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterBoolEqualArgs']]] bool_equals: Compares a value of an event using a single boolean value.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterIsNotNullArgs']]] is_not_nulls: Evaluates if a value of an event isn't NULL or undefined.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterIsNullOrUndefinedArgs']]] is_null_or_undefineds: Evaluates if a value of an event is NULL or undefined.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberGreaterThanOrEqualArgs']]] number_greater_than_or_equals: Compares a value of an event using a single floating point number.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberGreaterThanArgs']]] number_greater_thans: Compares a value of an event using a single floating point number.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberInRangeArgs']]] number_in_ranges: Compares a value of an event using multiple floating point number ranges.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberInArgs']]] number_ins: Compares a value of an event using multiple floating point numbers.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberLessThanOrEqualArgs']]] number_less_than_or_equals: Compares a value of an event using a single floating point number.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberLessThanArgs']]] number_less_thans: Compares a value of an event using a single floating point number.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberNotInRangeArgs']]] number_not_in_ranges: Compares a value of an event using multiple floating point number ranges.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberNotInArgs']]] number_not_ins: Compares a value of an event using multiple floating point numbers.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringBeginsWithArgs']]] string_begins_withs: Compares a value of an event using multiple string values.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringContainArgs']]] string_contains: Compares a value of an event using multiple string values.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringEndsWithArgs']]] string_ends_withs: Compares a value of an event using multiple string values.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringInArgs']]] string_ins: Compares a value of an event using multiple string values.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotBeginsWithArgs']]] string_not_begins_withs: Compares a value of an event using multiple string values.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotContainArgs']]] string_not_contains: Compares a value of an event using multiple string values.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotEndsWithArgs']]] string_not_ends_withs: Compares a value of an event using multiple string values.
:param pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotInArgs']]] string_not_ins: Compares a value of an event using multiple string values.
"""
if bool_equals is not None:
pulumi.set(__self__, "bool_equals", bool_equals)
if is_not_nulls is not None:
pulumi.set(__self__, "is_not_nulls", is_not_nulls)
if is_null_or_undefineds is not None:
pulumi.set(__self__, "is_null_or_undefineds", is_null_or_undefineds)
if number_greater_than_or_equals is not None:
pulumi.set(__self__, "number_greater_than_or_equals", number_greater_than_or_equals)
if number_greater_thans is not None:
pulumi.set(__self__, "number_greater_thans", number_greater_thans)
if number_in_ranges is not None:
pulumi.set(__self__, "number_in_ranges", number_in_ranges)
if number_ins is not None:
pulumi.set(__self__, "number_ins", number_ins)
if number_less_than_or_equals is not None:
pulumi.set(__self__, "number_less_than_or_equals", number_less_than_or_equals)
if number_less_thans is not None:
pulumi.set(__self__, "number_less_thans", number_less_thans)
if number_not_in_ranges is not None:
pulumi.set(__self__, "number_not_in_ranges", number_not_in_ranges)
if number_not_ins is not None:
pulumi.set(__self__, "number_not_ins", number_not_ins)
if string_begins_withs is not None:
pulumi.set(__self__, "string_begins_withs", string_begins_withs)
if string_contains is not None:
pulumi.set(__self__, "string_contains", string_contains)
if string_ends_withs is not None:
pulumi.set(__self__, "string_ends_withs", string_ends_withs)
if string_ins is not None:
pulumi.set(__self__, "string_ins", string_ins)
if string_not_begins_withs is not None:
pulumi.set(__self__, "string_not_begins_withs", string_not_begins_withs)
if string_not_contains is not None:
pulumi.set(__self__, "string_not_contains", string_not_contains)
if string_not_ends_withs is not None:
pulumi.set(__self__, "string_not_ends_withs", string_not_ends_withs)
if string_not_ins is not None:
pulumi.set(__self__, "string_not_ins", string_not_ins)
@property
@pulumi.getter(name="boolEquals")
def bool_equals(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterBoolEqualArgs']]]]:
"""
Compares a value of an event using a single boolean value.
"""
return pulumi.get(self, "bool_equals")
@bool_equals.setter
def bool_equals(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterBoolEqualArgs']]]]):
pulumi.set(self, "bool_equals", value)
@property
@pulumi.getter(name="isNotNulls")
def is_not_nulls(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterIsNotNullArgs']]]]:
"""
Evaluates if a value of an event isn't NULL or undefined.
"""
return pulumi.get(self, "is_not_nulls")
@is_not_nulls.setter
def is_not_nulls(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterIsNotNullArgs']]]]):
pulumi.set(self, "is_not_nulls", value)
@property
@pulumi.getter(name="isNullOrUndefineds")
def is_null_or_undefineds(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterIsNullOrUndefinedArgs']]]]:
"""
Evaluates if a value of an event is NULL or undefined.
"""
return pulumi.get(self, "is_null_or_undefineds")
@is_null_or_undefineds.setter
def is_null_or_undefineds(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterIsNullOrUndefinedArgs']]]]):
pulumi.set(self, "is_null_or_undefineds", value)
@property
@pulumi.getter(name="numberGreaterThanOrEquals")
def number_greater_than_or_equals(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberGreaterThanOrEqualArgs']]]]:
"""
Compares a value of an event using a single floating point number.
"""
return pulumi.get(self, "number_greater_than_or_equals")
@number_greater_than_or_equals.setter
def number_greater_than_or_equals(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberGreaterThanOrEqualArgs']]]]):
pulumi.set(self, "number_greater_than_or_equals", value)
@property
@pulumi.getter(name="numberGreaterThans")
def number_greater_thans(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberGreaterThanArgs']]]]:
"""
Compares a value of an event using a single floating point number.
"""
return pulumi.get(self, "number_greater_thans")
@number_greater_thans.setter
def number_greater_thans(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberGreaterThanArgs']]]]):
pulumi.set(self, "number_greater_thans", value)
@property
@pulumi.getter(name="numberInRanges")
def number_in_ranges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberInRangeArgs']]]]:
"""
Compares a value of an event using multiple floating point number ranges.
"""
return pulumi.get(self, "number_in_ranges")
@number_in_ranges.setter
def number_in_ranges(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberInRangeArgs']]]]):
pulumi.set(self, "number_in_ranges", value)
@property
@pulumi.getter(name="numberIns")
def number_ins(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberInArgs']]]]:
"""
Compares a value of an event using multiple floating point numbers.
"""
return pulumi.get(self, "number_ins")
@number_ins.setter
def number_ins(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberInArgs']]]]):
pulumi.set(self, "number_ins", value)
@property
@pulumi.getter(name="numberLessThanOrEquals")
def number_less_than_or_equals(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberLessThanOrEqualArgs']]]]:
"""
Compares a value of an event using a single floating point number.
"""
return pulumi.get(self, "number_less_than_or_equals")
@number_less_than_or_equals.setter
def number_less_than_or_equals(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberLessThanOrEqualArgs']]]]):
pulumi.set(self, "number_less_than_or_equals", value)
@property
@pulumi.getter(name="numberLessThans")
def number_less_thans(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberLessThanArgs']]]]:
"""
Compares a value of an event using a single floating point number.
"""
return pulumi.get(self, "number_less_thans")
@number_less_thans.setter
def number_less_thans(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberLessThanArgs']]]]):
pulumi.set(self, "number_less_thans", value)
@property
@pulumi.getter(name="numberNotInRanges")
def number_not_in_ranges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberNotInRangeArgs']]]]:
"""
Compares a value of an event using multiple floating point number ranges.
"""
return pulumi.get(self, "number_not_in_ranges")
@number_not_in_ranges.setter
def number_not_in_ranges(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberNotInRangeArgs']]]]):
pulumi.set(self, "number_not_in_ranges", value)
@property
@pulumi.getter(name="numberNotIns")
def number_not_ins(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberNotInArgs']]]]:
"""
Compares a value of an event using multiple floating point numbers.
"""
return pulumi.get(self, "number_not_ins")
@number_not_ins.setter
def number_not_ins(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterNumberNotInArgs']]]]):
pulumi.set(self, "number_not_ins", value)
@property
@pulumi.getter(name="stringBeginsWiths")
def string_begins_withs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringBeginsWithArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_begins_withs")
@string_begins_withs.setter
def string_begins_withs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringBeginsWithArgs']]]]):
pulumi.set(self, "string_begins_withs", value)
@property
@pulumi.getter(name="stringContains")
def string_contains(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringContainArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_contains")
@string_contains.setter
def string_contains(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringContainArgs']]]]):
pulumi.set(self, "string_contains", value)
@property
@pulumi.getter(name="stringEndsWiths")
def string_ends_withs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringEndsWithArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_ends_withs")
@string_ends_withs.setter
def string_ends_withs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringEndsWithArgs']]]]):
pulumi.set(self, "string_ends_withs", value)
@property
@pulumi.getter(name="stringIns")
def string_ins(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringInArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_ins")
@string_ins.setter
def string_ins(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringInArgs']]]]):
pulumi.set(self, "string_ins", value)
@property
@pulumi.getter(name="stringNotBeginsWiths")
def string_not_begins_withs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotBeginsWithArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_not_begins_withs")
@string_not_begins_withs.setter
def string_not_begins_withs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotBeginsWithArgs']]]]):
pulumi.set(self, "string_not_begins_withs", value)
@property
@pulumi.getter(name="stringNotContains")
def string_not_contains(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotContainArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_not_contains")
@string_not_contains.setter
def string_not_contains(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotContainArgs']]]]):
pulumi.set(self, "string_not_contains", value)
@property
@pulumi.getter(name="stringNotEndsWiths")
def string_not_ends_withs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotEndsWithArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_not_ends_withs")
@string_not_ends_withs.setter
def string_not_ends_withs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotEndsWithArgs']]]]):
pulumi.set(self, "string_not_ends_withs", value)
@property
@pulumi.getter(name="stringNotIns")
def string_not_ins(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotInArgs']]]]:
"""
Compares a value of an event using multiple string values.
"""
return pulumi.get(self, "string_not_ins")
@string_not_ins.setter
def string_not_ins(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SystemTopicEventSubscriptionAdvancedFilterStringNotInArgs']]]]):
pulumi.set(self, "string_not_ins", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterBoolEqualArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
value: pulumi.Input[bool]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[bool] value: Specifies a single value to compare to when using a single value operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "value", value)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def value(self) -> pulumi.Input[bool]:
"""
Specifies a single value to compare to when using a single value operator.
"""
return pulumi.get(self, "value")
@value.setter
def value(self, value: pulumi.Input[bool]):
pulumi.set(self, "value", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterIsNotNullArgs:
def __init__(__self__, *,
key: pulumi.Input[str]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
pulumi.set(__self__, "key", key)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterIsNullOrUndefinedArgs:
def __init__(__self__, *,
key: pulumi.Input[str]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
pulumi.set(__self__, "key", key)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterNumberGreaterThanArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
value: pulumi.Input[float]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[float] value: Specifies a single value to compare to when using a single value operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "value", value)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def value(self) -> pulumi.Input[float]:
"""
Specifies a single value to compare to when using a single value operator.
"""
return pulumi.get(self, "value")
@value.setter
def value(self, value: pulumi.Input[float]):
pulumi.set(self, "value", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterNumberGreaterThanOrEqualArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
value: pulumi.Input[float]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[float] value: Specifies a single value to compare to when using a single value operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "value", value)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def value(self) -> pulumi.Input[float]:
"""
Specifies a single value to compare to when using a single value operator.
"""
return pulumi.get(self, "value")
@value.setter
def value(self, value: pulumi.Input[float]):
pulumi.set(self, "value", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterNumberInArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[float]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[float]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[float]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[float]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterNumberInRangeArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterNumberLessThanArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
value: pulumi.Input[float]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[float] value: Specifies a single value to compare to when using a single value operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "value", value)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def value(self) -> pulumi.Input[float]:
"""
Specifies a single value to compare to when using a single value operator.
"""
return pulumi.get(self, "value")
@value.setter
def value(self, value: pulumi.Input[float]):
pulumi.set(self, "value", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterNumberLessThanOrEqualArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
value: pulumi.Input[float]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[float] value: Specifies a single value to compare to when using a single value operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "value", value)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def value(self) -> pulumi.Input[float]:
"""
Specifies a single value to compare to when using a single value operator.
"""
return pulumi.get(self, "value")
@value.setter
def value(self, value: pulumi.Input[float]):
pulumi.set(self, "value", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterNumberNotInArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[float]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[float]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[float]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[float]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterNumberNotInRangeArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[Sequence[pulumi.Input[float]]]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterStringBeginsWithArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterStringContainArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterStringEndsWithArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterStringInArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterStringNotBeginsWithArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterStringNotContainArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterStringNotEndsWithArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAdvancedFilterStringNotInArgs:
def __init__(__self__, *,
key: pulumi.Input[str],
values: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[str] key: Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: Specifies an array of values to compare to when using a multiple values operator.
"""
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "values", values)
@property
@pulumi.getter
def key(self) -> pulumi.Input[str]:
"""
Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
"""
return pulumi.get(self, "key")
@key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def values(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Specifies an array of values to compare to when using a multiple values operator.
"""
return pulumi.get(self, "values")
@values.setter
def values(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "values", value)
@pulumi.input_type
class SystemTopicEventSubscriptionAzureFunctionEndpointArgs:
def __init__(__self__, *,
function_id: pulumi.Input[str],
max_events_per_batch: Optional[pulumi.Input[int]] = None,
preferred_batch_size_in_kilobytes: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] function_id: Specifies the ID of the Function where the Event Subscription will receive events. This must be the functions ID in format {function_app.id}/functions/{name}.
:param pulumi.Input[int] max_events_per_batch: Maximum number of events per batch.
:param pulumi.Input[int] preferred_batch_size_in_kilobytes: Preferred batch size in Kilobytes.
"""
pulumi.set(__self__, "function_id", function_id)
if max_events_per_batch is not None:
pulumi.set(__self__, "max_events_per_batch", max_events_per_batch)
if preferred_batch_size_in_kilobytes is not None:
pulumi.set(__self__, "preferred_batch_size_in_kilobytes", preferred_batch_size_in_kilobytes)
@property
@pulumi.getter(name="functionId")
def function_id(self) -> pulumi.Input[str]:
"""
Specifies the ID of the Function where the Event Subscription will receive events. This must be the functions ID in format {function_app.id}/functions/{name}.
"""
return pulumi.get(self, "function_id")
@function_id.setter
def function_id(self, value: pulumi.Input[str]):
pulumi.set(self, "function_id", value)
@property
@pulumi.getter(name="maxEventsPerBatch")
def max_events_per_batch(self) -> Optional[pulumi.Input[int]]:
"""
Maximum number of events per batch.
"""
return pulumi.get(self, "max_events_per_batch")
@max_events_per_batch.setter
def max_events_per_batch(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_events_per_batch", value)
@property
@pulumi.getter(name="preferredBatchSizeInKilobytes")
def preferred_batch_size_in_kilobytes(self) -> Optional[pulumi.Input[int]]:
"""
Preferred batch size in Kilobytes.
"""
return pulumi.get(self, "preferred_batch_size_in_kilobytes")
@preferred_batch_size_in_kilobytes.setter
def preferred_batch_size_in_kilobytes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "preferred_batch_size_in_kilobytes", value)
@pulumi.input_type
class SystemTopicEventSubscriptionDeadLetterIdentityArgs:
def __init__(__self__, *,
type: pulumi.Input[str],
user_assigned_identity: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] type: Specifies the type of Managed Service Identity that is used for dead lettering. Allowed value is `SystemAssigned`, `UserAssigned`.
"""
pulumi.set(__self__, "type", type)
if user_assigned_identity is not None:
pulumi.set(__self__, "user_assigned_identity", user_assigned_identity)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
Specifies the type of Managed Service Identity that is used for dead lettering. Allowed value is `SystemAssigned`, `UserAssigned`.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter(name="userAssignedIdentity")
def user_assigned_identity(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "user_assigned_identity")
@user_assigned_identity.setter
def user_assigned_identity(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_assigned_identity", value)
@pulumi.input_type
class SystemTopicEventSubscriptionDeliveryIdentityArgs:
def __init__(__self__, *,
type: pulumi.Input[str],
user_assigned_identity: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] type: Specifies the type of Managed Service Identity that is used for event delivery. Allowed value is `SystemAssigned`, `UserAssigned`.
"""
pulumi.set(__self__, "type", type)
if user_assigned_identity is not None:
pulumi.set(__self__, "user_assigned_identity", user_assigned_identity)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
Specifies the type of Managed Service Identity that is used for event delivery. Allowed value is `SystemAssigned`, `UserAssigned`.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter(name="userAssignedIdentity")
def user_assigned_identity(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "user_assigned_identity")
@user_assigned_identity.setter
def user_assigned_identity(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_assigned_identity", value)
@pulumi.input_type
class SystemTopicEventSubscriptionRetryPolicyArgs:
def __init__(__self__, *,
event_time_to_live: pulumi.Input[int],
max_delivery_attempts: pulumi.Input[int]):
"""
:param pulumi.Input[int] event_time_to_live: Specifies the time to live (in minutes) for events. Supported range is `1` to `1440`. Defaults to `1440`. See [official documentation](https://docs.microsoft.com/en-us/azure/event-grid/manage-event-delivery#set-retry-policy) for more details.
:param pulumi.Input[int] max_delivery_attempts: Specifies the maximum number of delivery retry attempts for events.
"""
pulumi.set(__self__, "event_time_to_live", event_time_to_live)
pulumi.set(__self__, "max_delivery_attempts", max_delivery_attempts)
@property
@pulumi.getter(name="eventTimeToLive")
def event_time_to_live(self) -> pulumi.Input[int]:
"""
Specifies the time to live (in minutes) for events. Supported range is `1` to `1440`. Defaults to `1440`. See [official documentation](https://docs.microsoft.com/en-us/azure/event-grid/manage-event-delivery#set-retry-policy) for more details.
"""
return pulumi.get(self, "event_time_to_live")
@event_time_to_live.setter
def event_time_to_live(self, value: pulumi.Input[int]):
pulumi.set(self, "event_time_to_live", value)
@property
@pulumi.getter(name="maxDeliveryAttempts")
def max_delivery_attempts(self) -> pulumi.Input[int]:
"""
Specifies the maximum number of delivery retry attempts for events.
"""
return pulumi.get(self, "max_delivery_attempts")
@max_delivery_attempts.setter
def max_delivery_attempts(self, value: pulumi.Input[int]):
pulumi.set(self, "max_delivery_attempts", value)
@pulumi.input_type
class SystemTopicEventSubscriptionStorageBlobDeadLetterDestinationArgs:
def __init__(__self__, *,
storage_account_id: pulumi.Input[str],
storage_blob_container_name: pulumi.Input[str]):
"""
:param pulumi.Input[str] storage_account_id: Specifies the id of the storage account id where the storage blob is located.
:param pulumi.Input[str] storage_blob_container_name: Specifies the name of the Storage blob container that is the destination of the deadletter events.
"""
pulumi.set(__self__, "storage_account_id", storage_account_id)
pulumi.set(__self__, "storage_blob_container_name", storage_blob_container_name)
@property
@pulumi.getter(name="storageAccountId")
def storage_account_id(self) -> pulumi.Input[str]:
"""
Specifies the id of the storage account id where the storage blob is located.
"""
return pulumi.get(self, "storage_account_id")
@storage_account_id.setter
def storage_account_id(self, value: pulumi.Input[str]):
pulumi.set(self, "storage_account_id", value)
@property
@pulumi.getter(name="storageBlobContainerName")
def storage_blob_container_name(self) -> pulumi.Input[str]:
"""
Specifies the name of the Storage blob container that is the destination of the deadletter events.
"""
return pulumi.get(self, "storage_blob_container_name")
@storage_blob_container_name.setter
def storage_blob_container_name(self, value: pulumi.Input[str]):
pulumi.set(self, "storage_blob_container_name", value)
@pulumi.input_type
class SystemTopicEventSubscriptionStorageQueueEndpointArgs:
def __init__(__self__, *,
queue_name: pulumi.Input[str],
storage_account_id: pulumi.Input[str],
queue_message_time_to_live_in_seconds: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] queue_name: Specifies the name of the storage queue where the Event Subscription will receive events.
:param pulumi.Input[str] storage_account_id: Specifies the id of the storage account id where the storage queue is located.
:param pulumi.Input[int] queue_message_time_to_live_in_seconds: Storage queue message time to live in seconds.
"""
pulumi.set(__self__, "queue_name", queue_name)
pulumi.set(__self__, "storage_account_id", storage_account_id)
if queue_message_time_to_live_in_seconds is not None:
pulumi.set(__self__, "queue_message_time_to_live_in_seconds", queue_message_time_to_live_in_seconds)
@property
@pulumi.getter(name="queueName")
def queue_name(self) -> pulumi.Input[str]:
"""
Specifies the name of the storage queue where the Event Subscription will receive events.
"""
return pulumi.get(self, "queue_name")
@queue_name.setter
def queue_name(self, value: pulumi.Input[str]):
pulumi.set(self, "queue_name", value)
@property
@pulumi.getter(name="storageAccountId")
def storage_account_id(self) -> pulumi.Input[str]:
"""
Specifies the id of the storage account id where the storage queue is located.
"""
return pulumi.get(self, "storage_account_id")
@storage_account_id.setter
def storage_account_id(self, value: pulumi.Input[str]):
pulumi.set(self, "storage_account_id", value)
@property
@pulumi.getter(name="queueMessageTimeToLiveInSeconds")
def queue_message_time_to_live_in_seconds(self) -> Optional[pulumi.Input[int]]:
"""
Storage queue message time to live in seconds.
"""
return pulumi.get(self, "queue_message_time_to_live_in_seconds")
@queue_message_time_to_live_in_seconds.setter
def queue_message_time_to_live_in_seconds(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "queue_message_time_to_live_in_seconds", value)
@pulumi.input_type
class SystemTopicEventSubscriptionSubjectFilterArgs:
def __init__(__self__, *,
case_sensitive: Optional[pulumi.Input[bool]] = None,
subject_begins_with: Optional[pulumi.Input[str]] = None,
subject_ends_with: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[bool] case_sensitive: Specifies if `subject_begins_with` and `subject_ends_with` case sensitive. This value defaults to `false`.
:param pulumi.Input[str] subject_begins_with: A string to filter events for an event subscription based on a resource path prefix.
:param pulumi.Input[str] subject_ends_with: A string to filter events for an event subscription based on a resource path suffix.
"""
if case_sensitive is not None:
pulumi.set(__self__, "case_sensitive", case_sensitive)
if subject_begins_with is not None:
pulumi.set(__self__, "subject_begins_with", subject_begins_with)
if subject_ends_with is not None:
pulumi.set(__self__, "subject_ends_with", subject_ends_with)
@property
@pulumi.getter(name="caseSensitive")
def case_sensitive(self) -> Optional[pulumi.Input[bool]]:
"""
Specifies if `subject_begins_with` and `subject_ends_with` case sensitive. This value defaults to `false`.
"""
return pulumi.get(self, "case_sensitive")
@case_sensitive.setter
def case_sensitive(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "case_sensitive", value)
@property
@pulumi.getter(name="subjectBeginsWith")
def subject_begins_with(self) -> Optional[pulumi.Input[str]]:
"""
A string to filter events for an event subscription based on a resource path prefix.
"""
return pulumi.get(self, "subject_begins_with")
@subject_begins_with.setter
def subject_begins_with(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subject_begins_with", value)
@property
@pulumi.getter(name="subjectEndsWith")
def subject_ends_with(self) -> Optional[pulumi.Input[str]]:
"""
A string to filter events for an event subscription based on a resource path suffix.
"""
return pulumi.get(self, "subject_ends_with")
@subject_ends_with.setter
def subject_ends_with(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subject_ends_with", value)
@pulumi.input_type
class SystemTopicEventSubscriptionWebhookEndpointArgs:
def __init__(__self__, *,
url: pulumi.Input[str],
active_directory_app_id_or_uri: Optional[pulumi.Input[str]] = None,
active_directory_tenant_id: Optional[pulumi.Input[str]] = None,
base_url: Optional[pulumi.Input[str]] = None,
max_events_per_batch: Optional[pulumi.Input[int]] = None,
preferred_batch_size_in_kilobytes: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[str] url: Specifies the url of the webhook where the Event Subscription will receive events.
:param pulumi.Input[str] active_directory_app_id_or_uri: The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer token in delivery requests.
:param pulumi.Input[str] active_directory_tenant_id: The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in delivery requests.
:param pulumi.Input[str] base_url: The base url of the webhook where the Event Subscription will receive events.
:param pulumi.Input[int] max_events_per_batch: Maximum number of events per batch.
:param pulumi.Input[int] preferred_batch_size_in_kilobytes: Preferred batch size in Kilobytes.
"""
pulumi.set(__self__, "url", url)
if active_directory_app_id_or_uri is not None:
pulumi.set(__self__, "active_directory_app_id_or_uri", active_directory_app_id_or_uri)
if active_directory_tenant_id is not None:
pulumi.set(__self__, "active_directory_tenant_id", active_directory_tenant_id)
if base_url is not None:
pulumi.set(__self__, "base_url", base_url)
if max_events_per_batch is not None:
pulumi.set(__self__, "max_events_per_batch", max_events_per_batch)
if preferred_batch_size_in_kilobytes is not None:
pulumi.set(__self__, "preferred_batch_size_in_kilobytes", preferred_batch_size_in_kilobytes)
@property
@pulumi.getter
def url(self) -> pulumi.Input[str]:
"""
Specifies the url of the webhook where the Event Subscription will receive events.
"""
return pulumi.get(self, "url")
@url.setter
def url(self, value: pulumi.Input[str]):
pulumi.set(self, "url", value)
@property
@pulumi.getter(name="activeDirectoryAppIdOrUri")
def active_directory_app_id_or_uri(self) -> Optional[pulumi.Input[str]]:
"""
The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer token in delivery requests.
"""
return pulumi.get(self, "active_directory_app_id_or_uri")
@active_directory_app_id_or_uri.setter
def active_directory_app_id_or_uri(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "active_directory_app_id_or_uri", value)
@property
@pulumi.getter(name="activeDirectoryTenantId")
def active_directory_tenant_id(self) -> Optional[pulumi.Input[str]]:
"""
The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in delivery requests.
"""
return pulumi.get(self, "active_directory_tenant_id")
@active_directory_tenant_id.setter
def active_directory_tenant_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "active_directory_tenant_id", value)
@property
@pulumi.getter(name="baseUrl")
def base_url(self) -> Optional[pulumi.Input[str]]:
"""
The base url of the webhook where the Event Subscription will receive events.
"""
return pulumi.get(self, "base_url")
@base_url.setter
def base_url(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "base_url", value)
@property
@pulumi.getter(name="maxEventsPerBatch")
def max_events_per_batch(self) -> Optional[pulumi.Input[int]]:
"""
Maximum number of events per batch.
"""
return pulumi.get(self, "max_events_per_batch")
@max_events_per_batch.setter
def max_events_per_batch(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_events_per_batch", value)
@property
@pulumi.getter(name="preferredBatchSizeInKilobytes")
def preferred_batch_size_in_kilobytes(self) -> Optional[pulumi.Input[int]]:
"""
Preferred batch size in Kilobytes.
"""
return pulumi.get(self, "preferred_batch_size_in_kilobytes")
@preferred_batch_size_in_kilobytes.setter
def preferred_batch_size_in_kilobytes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "preferred_batch_size_in_kilobytes", value)
@pulumi.input_type
class SystemTopicIdentityArgs:
def __init__(__self__, *,
type: pulumi.Input[str],
identity_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
principal_id: Optional[pulumi.Input[str]] = None,
tenant_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] type: Specifies the identity type of Event Grid System Topic. Possible values are `SystemAssigned` (where Azure will generate a Principal for you) or `UserAssigned` where you can specify the User Assigned Managed Identity IDs in the `identity_ids` field.
:param pulumi.Input[Sequence[pulumi.Input[str]]] identity_ids: Specifies a list of user managed identity ids to be assigned. Required if `type` is `UserAssigned`.
:param pulumi.Input[str] principal_id: Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
:param pulumi.Input[str] tenant_id: Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
"""
pulumi.set(__self__, "type", type)
if identity_ids is not None:
pulumi.set(__self__, "identity_ids", identity_ids)
if principal_id is not None:
pulumi.set(__self__, "principal_id", principal_id)
if tenant_id is not None:
pulumi.set(__self__, "tenant_id", tenant_id)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
Specifies the identity type of Event Grid System Topic. Possible values are `SystemAssigned` (where Azure will generate a Principal for you) or `UserAssigned` where you can specify the User Assigned Managed Identity IDs in the `identity_ids` field.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter(name="identityIds")
def identity_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Specifies a list of user managed identity ids to be assigned. Required if `type` is `UserAssigned`.
"""
return pulumi.get(self, "identity_ids")
@identity_ids.setter
def identity_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "identity_ids", value)
@property
@pulumi.getter(name="principalId")
def principal_id(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
"""
return pulumi.get(self, "principal_id")
@principal_id.setter
def principal_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "principal_id", value)
@property
@pulumi.getter(name="tenantId")
def tenant_id(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
"""
return pulumi.get(self, "tenant_id")
@tenant_id.setter
def tenant_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "tenant_id", value)
@pulumi.input_type
class TopicIdentityArgs:
def __init__(__self__, *,
type: pulumi.Input[str],
identity_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
principal_id: Optional[pulumi.Input[str]] = None,
tenant_id: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] type: Specifies the identity type of Event Grid Topic. Possible values are `SystemAssigned` (where Azure will generate a Principal for you) or `UserAssigned` where you can specify the User Assigned Managed Identity IDs in the `identity_ids` field.
:param pulumi.Input[Sequence[pulumi.Input[str]]] identity_ids: Specifies a list of user managed identity ids to be assigned. Required if `type` is `UserAssigned`.
:param pulumi.Input[str] principal_id: Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
:param pulumi.Input[str] tenant_id: Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
"""
pulumi.set(__self__, "type", type)
if identity_ids is not None:
pulumi.set(__self__, "identity_ids", identity_ids)
if principal_id is not None:
pulumi.set(__self__, "principal_id", principal_id)
if tenant_id is not None:
pulumi.set(__self__, "tenant_id", tenant_id)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
Specifies the identity type of Event Grid Topic. Possible values are `SystemAssigned` (where Azure will generate a Principal for you) or `UserAssigned` where you can specify the User Assigned Managed Identity IDs in the `identity_ids` field.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter(name="identityIds")
def identity_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Specifies a list of user managed identity ids to be assigned. Required if `type` is `UserAssigned`.
"""
return pulumi.get(self, "identity_ids")
@identity_ids.setter
def identity_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "identity_ids", value)
@property
@pulumi.getter(name="principalId")
def principal_id(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
"""
return pulumi.get(self, "principal_id")
@principal_id.setter
def principal_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "principal_id", value)
@property
@pulumi.getter(name="tenantId")
def tenant_id(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
"""
return pulumi.get(self, "tenant_id")
@tenant_id.setter
def tenant_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "tenant_id", value)
@pulumi.input_type
class TopicInboundIpRuleArgs:
def __init__(__self__, *,
ip_mask: pulumi.Input[str],
action: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] ip_mask: The ip mask (CIDR) to match on.
:param pulumi.Input[str] action: The action to take when the rule is matched. Possible values are `Allow`.
"""
pulumi.set(__self__, "ip_mask", ip_mask)
if action is not None:
pulumi.set(__self__, "action", action)
@property
@pulumi.getter(name="ipMask")
def ip_mask(self) -> pulumi.Input[str]:
"""
The ip mask (CIDR) to match on.
"""
return pulumi.get(self, "ip_mask")
@ip_mask.setter
def ip_mask(self, value: pulumi.Input[str]):
pulumi.set(self, "ip_mask", value)
@property
@pulumi.getter
def action(self) -> Optional[pulumi.Input[str]]:
"""
The action to take when the rule is matched. Possible values are `Allow`.
"""
return pulumi.get(self, "action")
@action.setter
def action(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "action", value)
@pulumi.input_type
class TopicInputMappingDefaultValuesArgs:
def __init__(__self__, *,
data_version: Optional[pulumi.Input[str]] = None,
event_type: Optional[pulumi.Input[str]] = None,
subject: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] data_version: Specifies the default data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
:param pulumi.Input[str] event_type: Specifies the default event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
:param pulumi.Input[str] subject: Specifies the default subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
if data_version is not None:
pulumi.set(__self__, "data_version", data_version)
if event_type is not None:
pulumi.set(__self__, "event_type", event_type)
if subject is not None:
pulumi.set(__self__, "subject", subject)
@property
@pulumi.getter(name="dataVersion")
def data_version(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the default data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "data_version")
@data_version.setter
def data_version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "data_version", value)
@property
@pulumi.getter(name="eventType")
def event_type(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the default event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "event_type")
@event_type.setter
def event_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "event_type", value)
@property
@pulumi.getter
def subject(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the default subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "subject")
@subject.setter
def subject(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subject", value)
@pulumi.input_type
class TopicInputMappingFieldsArgs:
def __init__(__self__, *,
data_version: Optional[pulumi.Input[str]] = None,
event_time: Optional[pulumi.Input[str]] = None,
event_type: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
subject: Optional[pulumi.Input[str]] = None,
topic: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] data_version: Specifies the data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
:param pulumi.Input[str] event_time: Specifies the event time of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
:param pulumi.Input[str] event_type: Specifies the event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
:param pulumi.Input[str] id: Specifies the id of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
:param pulumi.Input[str] subject: Specifies the subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
:param pulumi.Input[str] topic: Specifies the topic of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
if data_version is not None:
pulumi.set(__self__, "data_version", data_version)
if event_time is not None:
pulumi.set(__self__, "event_time", event_time)
if event_type is not None:
pulumi.set(__self__, "event_type", event_type)
if id is not None:
pulumi.set(__self__, "id", id)
if subject is not None:
pulumi.set(__self__, "subject", subject)
if topic is not None:
pulumi.set(__self__, "topic", topic)
@property
@pulumi.getter(name="dataVersion")
def data_version(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "data_version")
@data_version.setter
def data_version(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "data_version", value)
@property
@pulumi.getter(name="eventTime")
def event_time(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the event time of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "event_time")
@event_time.setter
def event_time(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "event_time", value)
@property
@pulumi.getter(name="eventType")
def event_type(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "event_type")
@event_type.setter
def event_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "event_type", value)
@property
@pulumi.getter
def id(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the id of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "id")
@id.setter
def id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "id", value)
@property
@pulumi.getter
def subject(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "subject")
@subject.setter
def subject(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subject", value)
@property
@pulumi.getter
def topic(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the topic of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "topic")
@topic.setter
def topic(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "topic", value)
@pulumi.input_type
class GetDomainInboundIpRuleArgs:
def __init__(__self__, *,
ip_mask: str,
action: Optional[str] = None):
"""
:param str ip_mask: The ip mask (CIDR) to match on.
:param str action: The action to take when the rule is matched. Possible values are `Allow`.
"""
pulumi.set(__self__, "ip_mask", ip_mask)
if action is not None:
pulumi.set(__self__, "action", action)
@property
@pulumi.getter(name="ipMask")
def ip_mask(self) -> str:
"""
The ip mask (CIDR) to match on.
"""
return pulumi.get(self, "ip_mask")
@ip_mask.setter
def ip_mask(self, value: str):
pulumi.set(self, "ip_mask", value)
@property
@pulumi.getter
def action(self) -> Optional[str]:
"""
The action to take when the rule is matched. Possible values are `Allow`.
"""
return pulumi.get(self, "action")
@action.setter
def action(self, value: Optional[str]):
pulumi.set(self, "action", value)
@pulumi.input_type
class GetSystemTopicIdentityArgs:
def __init__(__self__, *,
principal_id: str,
tenant_id: str,
type: str,
identity_ids: Optional[Sequence[str]] = None):
"""
:param str principal_id: Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
:param str tenant_id: Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
:param str type: Specifies the type of Managed Service Identity that is configured on this Event Grid System Topic.
:param Sequence[str] identity_ids: A list of IDs for User Assigned Managed Identity resources to be assigned.
"""
pulumi.set(__self__, "principal_id", principal_id)
pulumi.set(__self__, "tenant_id", tenant_id)
pulumi.set(__self__, "type", type)
if identity_ids is not None:
pulumi.set(__self__, "identity_ids", identity_ids)
@property
@pulumi.getter(name="principalId")
def principal_id(self) -> str:
"""
Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
"""
return pulumi.get(self, "principal_id")
@principal_id.setter
def principal_id(self, value: str):
pulumi.set(self, "principal_id", value)
@property
@pulumi.getter(name="tenantId")
def tenant_id(self) -> str:
"""
Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
"""
return pulumi.get(self, "tenant_id")
@tenant_id.setter
def tenant_id(self, value: str):
pulumi.set(self, "tenant_id", value)
@property
@pulumi.getter
def type(self) -> str:
"""
Specifies the type of Managed Service Identity that is configured on this Event Grid System Topic.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: str):
pulumi.set(self, "type", value)
@property
@pulumi.getter(name="identityIds")
def identity_ids(self) -> Optional[Sequence[str]]:
"""
A list of IDs for User Assigned Managed Identity resources to be assigned.
"""
return pulumi.get(self, "identity_ids")
@identity_ids.setter
def identity_ids(self, value: Optional[Sequence[str]]):
pulumi.set(self, "identity_ids", value)
| 44.986257
| 295
| 0.685296
| 19,998
| 166,944
| 5.540104
| 0.018802
| 0.112392
| 0.062424
| 0.062279
| 0.931908
| 0.927936
| 0.907736
| 0.84774
| 0.847316
| 0.840953
| 0
| 0.000282
| 0.214204
| 166,944
| 3,710
| 296
| 44.998383
| 0.844265
| 0.303844
| 0
| 0.852755
| 1
| 0
| 0.164358
| 0.111463
| 0
| 0
| 0
| 0
| 0
| 1
| 0.214995
| false
| 0
| 0.002258
| 0.000903
| 0.34056
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
501d0c60f652b6b0e6c030cfe81bfd3418462bcd
| 331
|
py
|
Python
|
scripts/mongo/connect-mongo-proxy.py
|
theone4ever/cloudify-kubernetes-plugin-blueprint
|
cb5b49336110ad9bf18c8282e044d454c1ee6715
|
[
"Apache-2.0"
] | null | null | null |
scripts/mongo/connect-mongo-proxy.py
|
theone4ever/cloudify-kubernetes-plugin-blueprint
|
cb5b49336110ad9bf18c8282e044d454c1ee6715
|
[
"Apache-2.0"
] | null | null | null |
scripts/mongo/connect-mongo-proxy.py
|
theone4ever/cloudify-kubernetes-plugin-blueprint
|
cb5b49336110ad9bf18c8282e044d454c1ee6715
|
[
"Apache-2.0"
] | null | null | null |
from cloudify.exceptions import RecoverableError
from cloudify import ctx
from cloudify import exceptions
ctx.source.instance.runtime_properties['mongo_ip']=ctx.target.instance.runtime_properties['mongo_info']['ip']
ctx.source.instance.runtime_properties['mongo_port']=ctx.target.instance.runtime_properties['mongo_info']['port']
| 47.285714
| 113
| 0.836858
| 43
| 331
| 6.255814
| 0.348837
| 0.223048
| 0.371747
| 0.446097
| 0.609665
| 0.609665
| 0.319703
| 0
| 0
| 0
| 0
| 0
| 0.045317
| 331
| 6
| 114
| 55.166667
| 0.851266
| 0
| 0
| 0
| 0
| 0
| 0.132931
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.6
| 0
| 0.6
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
506365bc36fa0d30f63990cb3285ca69ae10a476
| 72
|
py
|
Python
|
pylode/__main__.py
|
tehaef/pyLODE
|
c47374beb8dd648f2f03bdddd96e3ee81a05495d
|
[
"BSD-3-Clause"
] | null | null | null |
pylode/__main__.py
|
tehaef/pyLODE
|
c47374beb8dd648f2f03bdddd96e3ee81a05495d
|
[
"BSD-3-Clause"
] | null | null | null |
pylode/__main__.py
|
tehaef/pyLODE
|
c47374beb8dd648f2f03bdddd96e3ee81a05495d
|
[
"BSD-3-Clause"
] | null | null | null |
try:
from .cli import main
except:
from cli import main
main()
| 10.285714
| 25
| 0.652778
| 11
| 72
| 4.272727
| 0.545455
| 0.297872
| 0.553191
| 0.723404
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.277778
| 72
| 6
| 26
| 12
| 0.903846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
ac97484e77cd10a1bb91d4fc6e1c83523c804edd
| 17,410
|
py
|
Python
|
tableau_rest_api/methods/site.py
|
Kamran-ov/tableau_tools
|
a373943fc8ea233ce00a2c2deaaf3f8d05716326
|
[
"MIT"
] | null | null | null |
tableau_rest_api/methods/site.py
|
Kamran-ov/tableau_tools
|
a373943fc8ea233ce00a2c2deaaf3f8d05716326
|
[
"MIT"
] | null | null | null |
tableau_rest_api/methods/site.py
|
Kamran-ov/tableau_tools
|
a373943fc8ea233ce00a2c2deaaf3f8d05716326
|
[
"MIT"
] | null | null | null |
from .rest_api_base import *
class SiteMethods():
def __init__(self, rest_api_base: TableauRestApiBase):
self.rest_api_base = rest_api_base
def __getattr__(self, attr):
return getattr(self.rest_api_base, attr)
#
# Internal REST API Helpers (mostly XML definitions that are reused between methods)
#
@staticmethod
def build_site_request_xml(site_name: Optional[str] = None, content_url: Optional[str] = None,
admin_mode: Optional[str] = None, user_quota: Optional[int] = None,
storage_quota: Optional[str] = None, disable_subscriptions: Optional[bool] = None,
state: Optional[str] = None,
revision_history_enabled: Optional[bool] = None, revision_limit: Optional[str] = None):
tsr = ET.Element("tsRequest")
s = ET.Element('site')
if site_name is not None:
s.set('name', site_name)
if content_url is not None:
s.set('contentUrl', content_url)
if admin_mode is not None:
s.set('adminMode', admin_mode)
if user_quota is not None:
s.set('userQuota', str(user_quota))
if state is not None:
s.set('state', state)
if storage_quota is not None:
s.set('storageQuota', str(storage_quota))
if disable_subscriptions is not None:
s.set('disableSubscriptions', str(disable_subscriptions).lower())
if revision_history_enabled is not None:
s.set('revisionHistoryEnabled', str(revision_history_enabled).lower())
if revision_limit is not None:
s.set('revisionLimit', str(revision_limit))
tsr.append(s)
return tsr
#
# Start Site Querying Methods
#
# Site queries don't have the site portion of the URL, so login option gets correct format
def query_sites(self) -> ET.Element:
self.start_log_block()
sites = self.query_resource("sites", server_level=True)
self.end_log_block()
return sites
def query_sites_json(self, page_number: Optional[int] = None) -> Dict:
self.start_log_block()
sites = self.query_resource_json("sites", server_level=True, page_number=page_number)
self.end_log_block()
return sites
# Methods for getting info about the sites, since you can only query a site when you are signed into it
# Return list of all site contentUrls
def query_all_site_content_urls(self) -> List[str]:
self.start_log_block()
sites = self.query_sites()
site_content_urls = []
for site in sites:
site_content_urls.append(site.get("contentUrl"))
self.end_log_block()
return site_content_urls
# You can only query a site you have logged into this way. Better to use methods that run through query_sites
def query_current_site(self) -> ET.Element:
self.start_log_block()
site = self.query_resource("sites/{}".format(self.site_luid), server_level=True)
self.end_log_block()
return site
# Both SiteName and ContentUrl must be unique to add a site
def create_site(self, new_site_name: str, new_content_url: str, admin_mode: Optional[str] = None,
user_quota: Optional[int] = None, storage_quota: Optional[str] = None,
disable_subscriptions: Optional[bool] = None, revision_history_enabled: Optional[bool] = None,
revision_limit: Optional[str] = None,
direct_xml_request: Optional[ET.Element] = None) -> str:
if direct_xml_request is not None:
add_request = direct_xml_request
else:
add_request = self.build_site_request_xml(site_name=new_site_name, content_url=new_content_url,
admin_mode=admin_mode,
user_quota=user_quota, storage_quota=storage_quota,
disable_subscriptions=disable_subscriptions,
revision_history_enabled=revision_history_enabled,
revision_limit=revision_limit)
url = self.build_api_url("sites/",
server_level=True) # Site actions drop back out of the site ID hierarchy like login
try:
new_site = self.send_add_request(url, add_request)
return new_site.findall('.//t:site', self.ns_map)[0].get("id")
except RecoverableHTTPException as e:
if e.http_code == 409:
self.log("Site with content_url {} already exists".format(new_content_url))
self.end_log_block()
raise AlreadyExistsException("Site with content_url {} already exists".format(new_content_url),
new_content_url)
# Can only update the site you are signed into, so take site_luid from the object
def update_site(self, site_name: Optional[str] = None, content_url: Optional[str] = None,
admin_mode: Optional[str] = None, user_quota: Optional[int] = None,
storage_quota: Optional[str] = None, disable_subscriptions: Optional[bool] = None,
state: Optional[str] = None, revision_history_enabled: Optional[bool] = None,
revision_limit: Optional[str] = None,
direct_xml_request: Optional[ET.Element] = None) -> ET.Element:
self.start_log_block()
if direct_xml_request is not None:
tsr = direct_xml_request
else:
tsr = self.build_site_request_xml(site_name=site_name, content_url=content_url,
admin_mode=admin_mode,
user_quota=user_quota, storage_quota=storage_quota,
disable_subscriptions=disable_subscriptions,
revision_history_enabled=revision_history_enabled,
revision_limit=revision_limit)
url = self.build_api_url("")
response = self.send_update_request(url, tsr)
self.end_log_block()
return response
# Can only delete a site that you have signed into
def delete_current_site(self):
self.start_log_block()
url = self.build_api_url("sites/{}".format(self.site_luid), server_level=True)
self.send_delete_request(url)
self.end_log_block()
class SiteMethods27(SiteMethods):
def __init__(self, rest_api_base: TableauRestApiBase27):
self.rest_api_base = rest_api_base
class SiteMethods28(SiteMethods27):
def __init__(self, rest_api_base: TableauRestApiBase28):
self.rest_api_base = rest_api_base
class SiteMethods30(SiteMethods28):
def __init__(self, rest_api_base: TableauRestApiBase30):
self.rest_api_base = rest_api_base
class SiteMethods31(SiteMethods30):
def __init__(self, rest_api_base: TableauRestApiBase31):
self.rest_api_base = rest_api_base
class SiteMethods32(SiteMethods31):
def __init__(self, rest_api_base: TableauRestApiBase32):
self.rest_api_base = rest_api_base
class SiteMethods33(SiteMethods32):
def __init__(self, rest_api_base: TableauRestApiBase33):
self.rest_api_base = rest_api_base
class SiteMethods34(SiteMethods33):
def __init__(self, rest_api_base: TableauRestApiBase34):
self.rest_api_base = rest_api_base
class SiteMethods35(SiteMethods34):
def __init__(self, rest_api_base: TableauRestApiBase35):
self.rest_api_base = rest_api_base
@staticmethod
def build_site_request_xml(site_name: Optional[str] = None, content_url: Optional[str] = None,
admin_mode: Optional[str] = None, user_quota: Optional[int] = None,
storage_quota: Optional[str] = None,
disable_subscriptions: Optional[bool] = None,
flows_enabled: Optional[bool] = None,
allow_subscription_attachments: Optional[bool] = None,
guest_access_enabled: Optional[bool] = None,
cache_warmup_enabled: Optional[bool] = None,
commenting_enabled: Optional[bool] = None,
revision_history_enabled: Optional[bool] = None,
revision_limit: Optional[str] = None,
subscribe_others_enabled: Optional[bool] = None,
extract_encryption_mode: Optional[str] = None,
request_access_enabled: Optional[bool] = None,
state: Optional[str] = None) -> ET.Element:
tsr = ET.Element("tsRequest")
s = ET.Element('site')
if site_name is not None:
s.set('name', site_name)
if content_url is not None:
s.set('contentUrl', content_url)
if admin_mode is not None:
s.set('adminMode', admin_mode)
if user_quota is not None:
s.set('userQuota', str(user_quota))
if state is not None:
s.set('state', state)
if storage_quota is not None:
s.set('storageQuota', str(storage_quota))
if disable_subscriptions is not None:
s.set('disableSubscriptions', str(disable_subscriptions).lower())
if flows_enabled is not None:
s.set('flowsEnabled', str(flows_enabled).lower())
if allow_subscription_attachments is not None:
s.set('allowSubscriptionAttachments', str(allow_subscription_attachments).lower())
if guest_access_enabled is not None:
s.set('guestAccessEnabled', str(guest_access_enabled).lower())
if cache_warmup_enabled is not None:
s.set('cacheWarmupEnabled', str(cache_warmup_enabled).lower())
if commenting_enabled is not None:
s.set('commentingEnabled', str(commenting_enabled).lower())
if revision_history_enabled is not None:
s.set('revisionHistoryEnabled', str(revision_history_enabled).lower())
if revision_limit is not None:
s.set('revisionLimit', str(revision_limit))
if subscribe_others_enabled is not None:
s.set('extractEncryptionMode', extract_encryption_mode)
if extract_encryption_mode is not None:
s.set('subscribeOthersEnabled', str(subscribe_others_enabled).lower())
if request_access_enabled is not None:
s.set('requestAccessEnabled', str(request_access_enabled).lower())
tsr.append(s)
return tsr
# Both SiteName and ContentUrl must be unique to add a site
def create_site(self, new_site_name: str, new_content_url: str, admin_mode: Optional[str] = None,
user_quota: Optional[int] = None,
storage_quota: Optional[str] = None,
disable_subscriptions: Optional[bool] = None,
flows_enabled: Optional[bool] = None,
allow_subscription_attachments: Optional[bool] = None,
guest_access_enabled: Optional[bool] = None,
cache_warmup_enabled: Optional[bool] = None,
commenting_enabled: Optional[bool] = None,
revision_history_enabled: Optional[bool] = None,
revision_limit: Optional[str] = None,
subscribe_others_enabled: Optional[bool] = None,
extract_encryption_mode: Optional[str] = None,
request_access_enabled: Optional[bool] = None,
direct_xml_request: Optional[ET.Element] = None) -> str:
self.start_log_block()
if extract_encryption_mode is not None:
if extract_encryption_mode not in ['enforced', 'enabled', 'disabled']:
raise InvalidOptionException('extract_encryption_mode must be one of: enforced, enabled, disabled')
if direct_xml_request is None:
add_request = self.build_site_request_xml(site_name=new_site_name, content_url=new_content_url, admin_mode=admin_mode,
user_quota=user_quota, storage_quota=storage_quota,
disable_subscriptions=disable_subscriptions,
flows_enabled=flows_enabled,
allow_subscription_attachments=allow_subscription_attachments,
guest_access_enabled=guest_access_enabled,
cache_warmup_enabled=cache_warmup_enabled,
commenting_enabled=commenting_enabled,
revision_history_enabled=revision_history_enabled,
revision_limit=revision_limit,
subscribe_others_enabled=subscribe_others_enabled,
extract_encryption_mode=extract_encryption_mode,
request_access_enabled=request_access_enabled)
else:
add_request = direct_xml_request
url = self.build_api_url("sites/",
server_level=True) # Site actions drop back out of the site ID hierarchy like login
try:
new_site = self.send_add_request(url, add_request)
return new_site.findall('.//t:site', self.ns_map)[0].get("id")
except RecoverableHTTPException as e:
if e.http_code == 409:
self.log("Site with content_url {} already exists".format(new_content_url))
self.end_log_block()
raise AlreadyExistsException("Site with content_url {} already exists".format(new_content_url),
new_content_url)
# Can only update the site you are signed into, so take site_luid from the object
def update_site(self, site_name: Optional[str] = None, content_url: Optional[str] = None,
admin_mode: Optional[str] = None,
user_quota: Optional[int] = None,
storage_quota: Optional[str] = None,
disable_subscriptions: Optional[bool] = None,
flows_enabled: Optional[bool] = None,
allow_subscription_attachments: Optional[bool] = None,
guest_access_enabled: Optional[bool] = None,
cache_warmup_enabled: Optional[bool] = None,
commenting_enabled: Optional[bool] = None,
revision_history_enabled: Optional[bool] = None,
revision_limit: Optional[str] = None,
subscribe_others_enabled: Optional[bool] = None,
extract_encryption_mode: Optional[str] = None,
request_access_enabled: Optional[bool] = None,
state: Optional[str] = None,
direct_xml_request: Optional[ET.Element] = None) -> ET.Element:
self.start_log_block()
if extract_encryption_mode is not None:
if extract_encryption_mode not in ['enforced', 'enabled', 'disabled']:
raise InvalidOptionException('extract_encryption_mode must be one of: enforced, enabled, disabled')
if direct_xml_request is None:
tsr = self.build_site_request_xml(site_name=site_name, content_url=content_url, admin_mode=admin_mode,
user_quota=user_quota, storage_quota=storage_quota,
disable_subscriptions=disable_subscriptions, state=state,
flows_enabled=flows_enabled,
allow_subscription_attachments=allow_subscription_attachments,
guest_access_enabled=guest_access_enabled,
cache_warmup_enabled=cache_warmup_enabled,
commenting_enabled=commenting_enabled,
revision_history_enabled=revision_history_enabled,
revision_limit=revision_limit,
subscribe_others_enabled=subscribe_others_enabled,
extract_encryption_mode=extract_encryption_mode,
request_access_enabled=request_access_enabled)
else:
tsr = direct_xml_request
url = self.build_api_url("")
response = self.send_update_request(url, tsr)
self.end_log_block()
return response
class SiteMethods36(SiteMethods35):
def __init__(self, rest_api_base: TableauRestApiBase36):
self.rest_api_base = rest_api_base
| 53.734568
| 130
| 0.593337
| 1,872
| 17,410
| 5.207265
| 0.110577
| 0.023697
| 0.05078
| 0.026672
| 0.825913
| 0.814834
| 0.776057
| 0.739741
| 0.700759
| 0.687731
| 0
| 0.005166
| 0.332855
| 17,410
| 324
| 131
| 53.734568
| 0.834094
| 0.051465
| 0
| 0.763636
| 0
| 0
| 0.048251
| 0.009759
| 0
| 0
| 0
| 0
| 0
| 1
| 0.08
| false
| 0
| 0.003636
| 0.003636
| 0.16
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
acedfd2a0f673b37811e65dbef1f0bf710a33d62
| 14,695
|
py
|
Python
|
cyclopeps/tests/ctf_test/test_cal_energy.py
|
philliphelms/cyclopeps
|
f024d827a7412f4d9df10d6b9453c2692b1a74c3
|
[
"MIT"
] | null | null | null |
cyclopeps/tests/ctf_test/test_cal_energy.py
|
philliphelms/cyclopeps
|
f024d827a7412f4d9df10d6b9453c2692b1a74c3
|
[
"MIT"
] | null | null | null |
cyclopeps/tests/ctf_test/test_cal_energy.py
|
philliphelms/cyclopeps
|
f024d827a7412f4d9df10d6b9453c2692b1a74c3
|
[
"MIT"
] | null | null | null |
import unittest
from cyclopeps.tools.utils import *
import copy
from cyclopeps.tools.gen_ten import ones,einsum
class test_cal_energy(unittest.TestCase):
def test_energy_contraction_ones_z2(self):
mpiprint(0,'\n'+'='*50+'\nPeps Energy (Ham=Identity, peps=ones, Z2 symmetry) calculation\n'+'-'*50)
# Create a PEPS
from cyclopeps.tools.peps_tools import PEPS
Nx = 2
Ny = 2
d = 2
D = 3
Zn = 2
backend='ctf'
peps = PEPS(Nx=Nx,
Ny=Ny,
d=d,
D=D,
chi=1000,
Zn=2,
backend=backend,
normalize=False)
# Set all tensor values to 1
for xind in range(Nx):
for yind in range(Ny):
peps[xind][yind].fill_all(1.)
# Get the Hamiltonian
from cyclopeps.ops.identity import return_op
ham = return_op(Nx,Ny,sym='Z2',backend=backend)
# Calculate initial norm
norm0 = peps.calc_norm()*4.
mpiprint(0,'Norm (routine) = {}'.format(norm0))
# Perform the Exact energy calculation:
bra = einsum('LDWCM,lMXcu->LDluWXCc',peps[0][0],peps[0][1]).remove_empty_ind(0).remove_empty_ind(0).remove_empty_ind(0).remove_empty_ind(0)
bra = einsum('WXCc,CdYRm->dRWXYcm',bra,peps[1][0]).remove_empty_ind(0).remove_empty_ind(0)
bra = einsum('WXYcm,cmZru->ruWXYZ',bra,peps[1][1]).remove_empty_ind(0).remove_empty_ind(0)
norm1 = einsum('WXYZ,WXYZ->',bra,bra.conj())
norm1 = norm1*4.
mpiprint(0,'Norm (explicit) = {}'.format(norm1))
tmp = einsum('WXYZ,wxYZ->WXwx',bra,bra.conj())
E1 = einsum('WXwx,WXwx->',tmp,ham[0][0][0])
tmp = einsum('WXYZ,wXyZ->WYwy',bra,bra.conj())
E1 += einsum('WYwy,WYwy->',tmp,ham[1][0][0])
tmp = einsum('WXYZ,WXyz->YZyz',bra,bra.conj())
E1 += einsum('YZyz,YZyz->',tmp,ham[0][1][0])
tmp = einsum('WXYZ,WxYz->XZxz',bra,bra.conj())
E1 += einsum('XZxz,XZxz->',tmp,ham[1][1][0])
mpiprint(0,'Explicitly computed energy (not normalized) = {}'.format(E1))
# Contract Energy again
E2 = peps.calc_op(ham,normalize=False)
mpiprint(0,'Energy via peps Method (not normalized) = {}'.format(E2))
self.assertTrue(abs((norm0-norm1)/norm0) < 1e-10)
print('Check here {}, {}, {}, {}'.format(norm0,norm1,E1,E2))
self.assertTrue(abs((norm0-E1)/norm0) < 1e-10)
self.assertTrue(abs((norm0-E2)/norm0) < 1e-10)
mpiprint(0,'Passed\n'+'='*50)
def test_energy_contraction_ones(self):
mpiprint(0,'\n'+'='*50+'\nPeps Energy (Ham=Identity, peps=ones, no symmetry) calculation\n'+'-'*50)
# Create a PEPS
from cyclopeps.tools.peps_tools import PEPS
Nx = 2
Ny = 2
d = 2
D = 3
backend='ctf'
peps = PEPS(Nx=Nx,
Ny=Ny,
d=d,
D=D,
chi=1000,
Zn=None,
backend=backend,
normalize=False)
# Set all tensor values to 1
for xind in range(Nx):
for yind in range(Ny):
peps[xind][yind].fill_all(1.)
# Get the Hamiltonian
from cyclopeps.ops.identity import return_op
ham = return_op(Nx,Ny,backend=backend)
# Calculate initial norm
norm0 = peps.calc_norm()*4.
mpiprint(0,'Norm = {}'.format(norm0))
# Perform the Exact energy calculation:
bra = einsum('LDWCM,lMXcu->WXCc',peps[0][0],peps[0][1])
bra = einsum('WXCc,CdYRm->WXYcm',bra,peps[1][0])
bra = einsum('WXYcm,cmZru->WXYZ',bra,peps[1][1])
norm1 = einsum('WXYZ,WXYZ->',bra,bra.conj())*4.
tmp = einsum('WXYZ,wxYZ->WXwx',bra,bra.conj())
E1 = einsum('WXwx,WXwx->',tmp,ham[0][0][0])
tmp = einsum('WXYZ,wXyZ->WYwy',bra,bra.conj())
E1 += einsum('WYwy,WYwy->',tmp,ham[1][0][0])
tmp = einsum('WXYZ,WXyz->YZyz',bra,bra.conj())
E1 += einsum('YZyz,YZyz->',tmp,ham[0][1][0])
tmp = einsum('WXYZ,WxYz->XZxz',bra,bra.conj())
E1 += einsum('XZxz,XZxz->',tmp,ham[1][1][0])
mpiprint(0,'Explicitly computed energy (not normalized) = {}'.format(E1))
# Contract Energy again
E2 = peps.calc_op(ham,normalize=False)
mpiprint(0,'Energy via peps Method (not normalized) = {}'.format(E2))
self.assertTrue(abs((norm0-norm1)/norm0) < 1e-10)
self.assertTrue(abs((norm0-E1)/norm0) < 1e-10)
self.assertTrue(abs((norm0-E2)/norm0) < 1e-10)
mpiprint(0,'Passed\n'+'='*50)
def test_energy_contraction_heis_z2(self):
mpiprint(0,'\n'+'='*50+'\nPeps Energy (Ham=Heisenberg, peps=random, Z2 symmetry) calculation\n'+'-'*50)
# Create a PEPS
from cyclopeps.tools.peps_tools import PEPS
Nx = 2
Ny = 2
d = 2
D = 3
Zn = 2
backend='ctf'
peps = PEPS(Nx=Nx,
Ny=Ny,
d=d,
D=D,
chi=1000,
Zn=2,
backend=backend,
normalize=False)
# Get the Hamiltonian
from cyclopeps.ops.heis import return_op
ham = return_op(Nx,Ny,sym='Z2',backend=backend)
# Calculate initial norm
norm0 = peps.calc_norm()
mpiprint(0,'Norm (routine) = {}'.format(norm0))
# Perform the Exact energy calculation:
bra = einsum('LDWCM,lMXcu->LDluWXCc',peps[0][0],peps[0][1]).remove_empty_ind(0).remove_empty_ind(0).remove_empty_ind(0).remove_empty_ind(0)
bra = einsum('WXCc,CdYRm->dRWXYcm',bra,peps[1][0]).remove_empty_ind(0).remove_empty_ind(0)
bra = einsum('WXYcm,cmZru->ruWXYZ',bra,peps[1][1]).remove_empty_ind(0).remove_empty_ind(0)
norm1 = einsum('WXYZ,WXYZ->',bra,bra.conj())
norm1 = norm1
mpiprint(0,'Norm (explicit) = {}'.format(norm1))
#print(ham[0][0][0])
tmp = einsum('WXYZ,wxYZ->WXwx',bra,bra.conj())
E1 = einsum('WXwx,WXwx->',tmp,ham[0][0][0])
tmp = einsum('WXYZ,wXyZ->WYwy',bra,bra.conj())
E1 += einsum('WYwy,WYwy->',tmp,ham[1][0][0])
tmp = einsum('WXYZ,WXyz->YZyz',bra,bra.conj())
E1 += einsum('YZyz,YZyz->',tmp,ham[0][1][0])
tmp = einsum('WXYZ,WxYz->XZxz',bra,bra.conj())
E1 += einsum('XZxz,XZxz->',tmp,ham[1][1][0])
E1 = E1
mpiprint(0,'Explicitly computed energy (not normalized) = {}'.format(E1))
# Contract Energy again
E2 = peps.calc_op(ham,normalize=False)
mpiprint(0,'Energy via peps Method (not normalized) = {}'.format(E2))
self.assertTrue(abs((norm0-norm1)/norm0) < 1e-10)
self.assertTrue(abs((E2-E1)/E1) < 1e-10)
mpiprint(0,'Passed\n'+'='*50)
def test_energy_contraction_z2(self):
mpiprint(0,'\n'+'='*50+'\nPeps Energy (Ham=Identity, peps=random, Z2 symmetry) calculation\n'+'-'*50)
# Create a PEPS
from cyclopeps.tools.peps_tools import PEPS
Nx = 2
Ny = 2
d = 2
D = 3
Zn = 2
backend='ctf'
peps = PEPS(Nx=Nx,
Ny=Ny,
d=d,
D=D,
chi=1000,
Zn=2,
backend=backend,
normalize=False)
# Get the Hamiltonian
from cyclopeps.ops.identity import return_op
ham = return_op(Nx,Ny,sym='Z2',backend=backend)
# Calculate initial norm
norm0 = peps.calc_norm()*4.
mpiprint(0,'Norm (routine) = {}'.format(norm0))
# Perform the Exact energy calculation:
bra = einsum('LDWCM,lMXcu->LDluWXCc',peps[0][0],peps[0][1]).remove_empty_ind(0).remove_empty_ind(0).remove_empty_ind(0).remove_empty_ind(0)
bra = einsum('WXCc,CdYRm->dRWXYcm',bra,peps[1][0]).remove_empty_ind(0).remove_empty_ind(0)
bra = einsum('WXYcm,cmZru->ruWXYZ',bra,peps[1][1]).remove_empty_ind(0).remove_empty_ind(0)
norm1 = einsum('WXYZ,WXYZ->',bra,bra.conj())
norm1 = norm1*4
mpiprint(0,'Norm (explicit) = {}'.format(norm1))
tmp = einsum('WXYZ,wxYZ->WXwx',bra,bra.conj())
E1 = einsum('WXwx,WXwx->',tmp,ham[0][0][0])
tmp = einsum('WXYZ,wXyZ->WYwy',bra,bra.conj())
E1 += einsum('WYwy,WYwy->',tmp,ham[1][0][0])
tmp = einsum('WXYZ,WXyz->YZyz',bra,bra.conj())
E1 += einsum('YZyz,YZyz->',tmp,ham[0][1][0])
tmp = einsum('WXYZ,WxYz->XZxz',bra,bra.conj())
E1 += einsum('XZxz,XZxz->',tmp,ham[1][1][0])
mpiprint(0,'Explicitly computed energy (not normalized) = {}'.format(E1))
# Contract Energy again
E2 = peps.calc_op(ham,normalize=False)
mpiprint(0,'Energy via peps Method (not normalized) = {}'.format(E2))
self.assertTrue(abs((norm0-norm1)/norm0) < 1e-10)
self.assertTrue(abs((E2-E1)/E2) < 1e-10)
mpiprint(0,'Passed\n'+'='*50)
def test_energy_itf_contraction_ones(self):
mpiprint(0,'\n'+'='*50+'\nPeps Energy (Ham=ITF, peps=ones, no symmetry) calculation\n'+'-'*50)
# Create a PEPS
from cyclopeps.tools.peps_tools import PEPS
Nx = 2
Ny = 2
d = 2
D = 3
backend='ctf'
peps = PEPS(Nx=Nx,Ny=Ny,d=d,D=D,chi=1000,normalize=False,backend=backend)
# Set all tensor values to 1
for xind in range(Nx):
for yind in range(Ny):
peps[xind][yind].fill_all(1.)
# Get the Hamiltonian
from cyclopeps.ops.itf import return_op
ham = return_op(Nx,Ny,(1.,2.),backend=backend)
# Calculate initial norm
norm0 = peps.calc_norm()
mpiprint(0,'Norm = {}'.format(norm0))
# Perform the Exact energy calculation:
bra = einsum('LDWCM,lMXcu->WXCc',peps[0][0],peps[0][1])
bra = einsum('WXCc,CdYRm->WXYcm',bra,peps[1][0])
bra = einsum('WXYcm,cmZru->WXYZ',bra,peps[1][1])
norm1 = einsum('WXYZ,WXYZ->',bra,bra.conj())
mpiprint(0,'Explicitly computed norm = {}'.format(norm1))
tmp = einsum('WXYZ,wxYZ->WXwx',bra,bra.conj())
E1 = einsum('WXwx,WXwx->',tmp,ham[0][0][0])
tmp = einsum('WXYZ,wXyZ->WYwy',bra,bra.conj())
E1 += einsum('WYwy,WYwy->',tmp,ham[1][0][0])
tmp = einsum('WXYZ,WXyz->YZyz',bra,bra.conj())
E1 += einsum('YZyz,YZyz->',tmp,ham[0][1][0])
tmp = einsum('WXYZ,WxYz->XZxz',bra,bra.conj())
E1 += einsum('XZxz,XZxz->',tmp,ham[1][1][0])
mpiprint(0,'Explicitly computed energy (not normalized) = {}'.format(E1))
# Contract Energy again
E2 = peps.calc_op(ham,normalize=False)
mpiprint(0,'Energy (routine) = {}'.format(E2))
self.assertTrue(abs((E2-E1)/E1) < 1e-10)
mpiprint(0,'Passed\n'+'='*50)
def test_energy_contraction(self):
mpiprint(0,'\n'+'='*50+'\nPeps Energy (Ham=Identity, peps=random, no symmetry) calculation\n'+'-'*50)
# Create a PEPS
from cyclopeps.tools.peps_tools import PEPS
Nx = 2
Ny = 2
d = 2
D = 3
backend='ctf'
peps = PEPS(Nx=Nx,Ny=Ny,d=d,D=D,chi=1000,backend=backend)
# Get the Hamiltonian
from cyclopeps.ops.identity import return_op
ham = return_op(Nx,Ny,backend=backend)
# Calculate initial norm
norm0 = peps.calc_norm()*4.
# Perform the Exact energy calculation:
bra = einsum('LDWCM,lMXcu->WXCc',peps[0][0],peps[0][1])
bra = einsum('WXCc,CdYRm->WXYcm',bra,peps[1][0])
bra = einsum('WXYcm,cmZru->WXYZ',bra,peps[1][1])
norm1 = einsum('WXYZ,WXYZ->',bra,bra.conj())*4.
tmp = einsum('WXYZ,wxYZ->WXwx',bra,bra.conj())
E1 = einsum('WXwx,WXwx->',tmp,ham[0][0][0])
tmp = einsum('WXYZ,wXyZ->WYwy',bra,bra.conj())
E1 += einsum('WYwy,WYwy->',tmp,ham[1][0][0])
tmp = einsum('WXYZ,WXyz->YZyz',bra,bra.conj())
E1 += einsum('YZyz,YZyz->',tmp,ham[0][1][0])
tmp = einsum('WXYZ,WxYz->XZxz',bra,bra.conj())
E1 += einsum('XZxz,XZxz->',tmp,ham[1][1][0])
# Contract Energy again
E2 = peps.calc_op(ham,normalize=False)
self.assertTrue(abs((norm0-norm1)/norm0) < 1e-10)
mpiprint(0,'Passed Norm1')
self.assertTrue(abs((norm0-E1)/norm0) < 1e-10)
mpiprint(0,'Passed E1')
mpiprint(0,'Norm from calc_norm = {}'.format(norm0))
mpiprint(0,'Norm from exact contraction {}'.format(norm1))
mpiprint(0,'Norm from Energy calc op = {}'.format(E2))
mpiprint(0,'Norm from Energy exact contraction {}'.format(E1))
#mpiprint(0,norm1,E1,norm0,E2,abs((norm0-E2)/norm0))
self.assertTrue(abs((norm0-E2)/norm0) < 1e-10)
mpiprint(0,'Passed\n'+'='*50)
def test_energy_itf_contraction(self):
mpiprint(0,'\n'+'='*50+'\nPeps Energy (Ham=ITF, peps=random, no symmetry) calculation\n'+'-'*50)
# Create a PEPS
from cyclopeps.tools.peps_tools import PEPS
Nx = 2
Ny = 2
d = 2
D = 3
backend='ctf'
peps = PEPS(Nx=Nx,Ny=Ny,d=d,D=D,chi=1000,backend=backend)
peps2= PEPS(Nx=Nx,Ny=Ny,d=d,D=D,chi=1000,backend=backend)
# Get the Hamiltonian
from cyclopeps.ops.itf import return_op
ham = return_op(Nx,Ny,(1.,2.),backend=backend)
# Perform the Exact energy calculation:
bra = einsum('LDWCM,lMXcu->WXCc',peps[0][0],peps[0][1])
bra = einsum('WXCc,CdYRm->WXYcm',bra,peps[1][0])
bra = einsum('WXYcm,cmZru->WXYZ',bra,peps[1][1])
ket = einsum('LDWCM,lMXcu->WXCc',peps2[0][0],peps2[0][1])
ket = einsum('WXCc,CdYRm->WXYcm',ket,peps2[1][0])
ket = einsum('WXYcm,cmZru->WXYZ',ket,peps2[1][1])
norm1 = einsum('WXYZ,WXYZ->',bra,ket)
tmp = einsum('WXYZ,wxYZ->WXwx',bra,ket)
E1 = einsum('WXwx,WXwx->',tmp,ham[0][0][0])
tmp = einsum('WXYZ,wXyZ->WYwy',bra,ket)
E2 = einsum('WYwy,WYwy->',tmp,ham[1][0][0])
tmp = einsum('WXYZ,WXyz->YZyz',bra,ket)
E3 = einsum('YZyz,YZyz->',tmp,ham[0][1][0])
tmp = einsum('WXYZ,WxYz->XZxz',bra,ket)
E4 = einsum('XZxz,XZxz->',tmp,ham[1][1][0])
E1 = E1+E2+E3+E4
# Contract Energy again
E2 = peps.calc_op(ham,normalize=False,chi=1e100,ket=peps2)
mpiprint(0,'Energy (exact) = {}'.format(E1))
mpiprint(0,'Energy (routine) = {}'.format(E2))
self.assertTrue(abs((E2-E1)/E1) < 1e-10)
mpiprint(0,'Passed\n'+'='*50)
if __name__ == "__main__":
unittest.main()
| 44.665653
| 147
| 0.55638
| 2,044
| 14,695
| 3.941292
| 0.062133
| 0.046922
| 0.060824
| 0.059086
| 0.924404
| 0.91497
| 0.904295
| 0.901316
| 0.892006
| 0.888034
| 0
| 0.050971
| 0.264376
| 14,695
| 328
| 148
| 44.801829
| 0.694265
| 0.064376
| 0
| 0.814286
| 0
| 0
| 0.192137
| 0.004596
| 0.025
| 0
| 0
| 0
| 0.053571
| 1
| 0.025
| false
| 0.032143
| 0.064286
| 0
| 0.092857
| 0.15
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
acfd1a83830a42d9f4c1c0999469d309d0a0f5a7
| 19,903
|
py
|
Python
|
copct-master/baxter_corpus/demo_replace_red_with_green_2.py
|
jhomble/electron435
|
2a94a901679a1ebbdeea01bb9e888d365d536bec
|
[
"MIT"
] | 4
|
2016-10-26T13:58:44.000Z
|
2018-11-13T13:03:52.000Z
|
copct-master/baxter_corpus/demo_replace_red_with_green_2.py
|
jhomble/electron435
|
2a94a901679a1ebbdeea01bb9e888d365d536bec
|
[
"MIT"
] | 4
|
2020-03-31T01:10:26.000Z
|
2020-03-31T03:06:28.000Z
|
copct-master/baxter_corpus/demo_replace_red_with_green_2.py
|
jhomble/electron435
|
2a94a901679a1ebbdeea01bb9e888d365d536bec
|
[
"MIT"
] | 1
|
2020-03-03T06:22:08.000Z
|
2020-03-03T06:22:08.000Z
|
demo = (
(
(
("workspace", "Workspace"),
("table", "Block"),
("dock-case", "DockCase"),
("dock-case_1", "Block"),
("dock-body", "DockDrawer"),
("dock-body_2", "DockFrontPanel"),
("dock-body_2_1", "Prism"),
("dock-body_2_2", "Block"),
("dock-body_2_3", "Block"),
("dock-body_4", "DockHandle"),
("dock-body_4_1", "Prism"),
("dock-body_4_2", "Prism"),
("dock-body_5", "DockModule"),
("dock-body_5_1", "DockSlot"),
("c1", "Cartridge"),
("dock-body_5_2", "DockSwitch"),
("dock-body_5_3", "DockLED"),
("dock-body_6", "DockModule"),
("dock-body_6_1", "DockSlot"),
("c2", "Cartridge"),
("dock-body_6_2", "DockSwitch"),
("dock-body_6_3", "DockLED"),
("dock-body_7", "DockModule"),
("dock-body_7_1", "DockSlot"),
("c3", "Cartridge"),
("dock-body_7_2", "DockSwitch"),
("dock-body_7_3", "DockLED"),
("dock-body_8", "DockModule"),
("dock-body_8_1", "DockSlot"),
("c4", "Cartridge"),
("dock-body_8_2", "DockSwitch"),
("dock-body_8_3", "DockLED"),
("dock-case_2", "Block"),
("dock-case_3", "Block"),
("dock-case_4", "Block"),
("dock-case_5", "Prism"),
("dock-case_6", "Block"),
("c5", "Cartridge"),
("discard-bin", "Block"),
("gripping", ("nothing","nothing")),
),
"move arm and grasp",
(
2.000000,
"dock-body",
)
),
(
(
("workspace", "Workspace"),
("table", "Block"),
("dock-case", "DockCase"),
("dock-case_1", "Block"),
("dock-body", "DockDrawer"),
("dock-body_2", "DockFrontPanel"),
("dock-body_2_1", "Prism"),
("dock-body_2_2", "Block"),
("dock-body_2_3", "Block"),
("dock-body_4", "DockHandle"),
("dock-body_4_1", "Prism"),
("dock-body_4_2", "Prism"),
("dock-body_5", "DockModule"),
("dock-body_5_1", "DockSlot"),
("c1", "Cartridge"),
("dock-body_5_2", "DockSwitch"),
("dock-body_5_3", "DockLED"),
("dock-body_6", "DockModule"),
("dock-body_6_1", "DockSlot"),
("c2", "Cartridge"),
("dock-body_6_2", "DockSwitch"),
("dock-body_6_3", "DockLED"),
("dock-body_7", "DockModule"),
("dock-body_7_1", "DockSlot"),
("c3", "Cartridge"),
("dock-body_7_2", "DockSwitch"),
("dock-body_7_3", "DockLED"),
("dock-body_8", "DockModule"),
("dock-body_8_1", "DockSlot"),
("c4", "Cartridge"),
("dock-body_8_2", "DockSwitch"),
("dock-body_8_3", "DockLED"),
("dock-case_2", "Block"),
("dock-case_3", "Block"),
("dock-case_4", "Block"),
("dock-case_5", "Prism"),
("dock-case_6", "Block"),
("c5", "Cartridge"),
("discard-bin", "Block"),
("gripping", ("nothing","dock-body")),
),
"move grasped object",
(
2.000000,
"dock-case",
(
(1.000000, 0.000622, 0.000107, ),
(-0.000622, 1.000000, 0.000198, ),
(-0.000107, -0.000198, 1.000000, ),
),
(
(3.851632, ),
(-0.000641, ),
(0.173459, ),
),
)
),
(
(
("workspace", "Workspace"),
("table", "Block"),
("dock-case", "DockCase"),
("dock-case_1", "Block"),
("dock-body", "DockDrawer"),
("dock-body_2", "DockFrontPanel"),
("dock-body_2_1", "Prism"),
("dock-body_2_2", "Block"),
("dock-body_2_3", "Block"),
("dock-body_4", "DockHandle"),
("dock-body_4_1", "Prism"),
("dock-body_4_2", "Prism"),
("dock-body_5", "DockModule"),
("dock-body_5_1", "DockSlot"),
("c1", "Cartridge"),
("dock-body_5_2", "DockSwitch"),
("dock-body_5_3", "DockLED"),
("dock-body_6", "DockModule"),
("dock-body_6_1", "DockSlot"),
("c2", "Cartridge"),
("dock-body_6_2", "DockSwitch"),
("dock-body_6_3", "DockLED"),
("dock-body_7", "DockModule"),
("dock-body_7_1", "DockSlot"),
("c3", "Cartridge"),
("dock-body_7_2", "DockSwitch"),
("dock-body_7_3", "DockLED"),
("dock-body_8", "DockModule"),
("dock-body_8_1", "DockSlot"),
("c4", "Cartridge"),
("dock-body_8_2", "DockSwitch"),
("dock-body_8_3", "DockLED"),
("dock-case_2", "Block"),
("dock-case_3", "Block"),
("dock-case_4", "Block"),
("dock-case_5", "Prism"),
("dock-case_6", "Block"),
("c5", "Cartridge"),
("discard-bin", "Block"),
("gripping", ("nothing","dock-body")),
),
"release",
(
2.000000,
)
),
(
(
("workspace", "Workspace"),
("table", "Block"),
("dock-case", "DockCase"),
("dock-case_1", "Block"),
("dock-body", "DockDrawer"),
("dock-body_2", "DockFrontPanel"),
("dock-body_2_1", "Prism"),
("dock-body_2_2", "Block"),
("dock-body_2_3", "Block"),
("dock-body_4", "DockHandle"),
("dock-body_4_1", "Prism"),
("dock-body_4_2", "Prism"),
("dock-body_5", "DockModule"),
("dock-body_5_1", "DockSlot"),
("c1", "Cartridge"),
("dock-body_5_2", "DockSwitch"),
("dock-body_5_3", "DockLED"),
("dock-body_6", "DockModule"),
("dock-body_6_1", "DockSlot"),
("c2", "Cartridge"),
("dock-body_6_2", "DockSwitch"),
("dock-body_6_3", "DockLED"),
("dock-body_7", "DockModule"),
("dock-body_7_1", "DockSlot"),
("c3", "Cartridge"),
("dock-body_7_2", "DockSwitch"),
("dock-body_7_3", "DockLED"),
("dock-body_8", "DockModule"),
("dock-body_8_1", "DockSlot"),
("c4", "Cartridge"),
("dock-body_8_2", "DockSwitch"),
("dock-body_8_3", "DockLED"),
("dock-case_2", "Block"),
("dock-case_3", "Block"),
("dock-case_4", "Block"),
("dock-case_5", "Prism"),
("dock-case_6", "Block"),
("c5", "Cartridge"),
("discard-bin", "Block"),
("gripping", ("nothing","nothing")),
),
"press dock toggle",
(
2.000000,
"dock-body_7_2",
2.000000,
)
),
(
(
("workspace", "Workspace"),
("table", "Block"),
("dock-case", "DockCase"),
("dock-case_1", "Block"),
("dock-body", "DockDrawer"),
("dock-body_2", "DockFrontPanel"),
("dock-body_2_1", "Prism"),
("dock-body_2_2", "Block"),
("dock-body_2_3", "Block"),
("dock-body_4", "DockHandle"),
("dock-body_4_1", "Prism"),
("dock-body_4_2", "Prism"),
("dock-body_5", "DockModule"),
("dock-body_5_1", "DockSlot"),
("c1", "Cartridge"),
("dock-body_5_2", "DockSwitch"),
("dock-body_5_3", "DockLED"),
("dock-body_6", "DockModule"),
("dock-body_6_1", "DockSlot"),
("c2", "Cartridge"),
("dock-body_6_2", "DockSwitch"),
("dock-body_6_3", "DockLED"),
("dock-body_7", "DockModule"),
("dock-body_7_1", "DockSlot"),
("c3", "Cartridge"),
("dock-body_7_2", "DockSwitch"),
("dock-body_7_3", "DockLED"),
("dock-body_8", "DockModule"),
("dock-body_8_1", "DockSlot"),
("c4", "Cartridge"),
("dock-body_8_2", "DockSwitch"),
("dock-body_8_3", "DockLED"),
("dock-case_2", "Block"),
("dock-case_3", "Block"),
("dock-case_4", "Block"),
("dock-case_5", "Prism"),
("dock-case_6", "Block"),
("c5", "Cartridge"),
("discard-bin", "Block"),
("gripping", ("nothing","nothing")),
),
"move arm and grasp",
(
2.000000,
"c3",
)
),
(
(
("workspace", "Workspace"),
("table", "Block"),
("dock-case", "DockCase"),
("dock-case_1", "Block"),
("dock-body", "DockDrawer"),
("dock-body_2", "DockFrontPanel"),
("dock-body_2_1", "Prism"),
("dock-body_2_2", "Block"),
("dock-body_2_3", "Block"),
("dock-body_4", "DockHandle"),
("dock-body_4_1", "Prism"),
("dock-body_4_2", "Prism"),
("dock-body_5", "DockModule"),
("dock-body_5_1", "DockSlot"),
("c1", "Cartridge"),
("dock-body_5_2", "DockSwitch"),
("dock-body_5_3", "DockLED"),
("dock-body_6", "DockModule"),
("dock-body_6_1", "DockSlot"),
("c2", "Cartridge"),
("dock-body_6_2", "DockSwitch"),
("dock-body_6_3", "DockLED"),
("dock-body_7", "DockModule"),
("dock-body_7_1", "DockSlot"),
("c3", "Cartridge"),
("dock-body_7_2", "DockSwitch"),
("dock-body_7_3", "DockLED"),
("dock-body_8", "DockModule"),
("dock-body_8_1", "DockSlot"),
("c4", "Cartridge"),
("dock-body_8_2", "DockSwitch"),
("dock-body_8_3", "DockLED"),
("dock-case_2", "Block"),
("dock-case_3", "Block"),
("dock-case_4", "Block"),
("dock-case_5", "Prism"),
("dock-case_6", "Block"),
("c5", "Cartridge"),
("discard-bin", "Block"),
("gripping", ("nothing","c3")),
),
"move grasped object",
(
2.000000,
"discard-bin",
(
(0.999989, 0.000909, -0.004614, ),
(-0.000904, 0.999999, 0.001247, ),
(0.004615, -0.001243, 0.999989, ),
),
(
(-0.322622, ),
(1.211868, ),
(5.854191, ),
),
)
),
(
(
("workspace", "Workspace"),
("table", "Block"),
("dock-case", "DockCase"),
("dock-case_1", "Block"),
("dock-body", "DockDrawer"),
("dock-body_2", "DockFrontPanel"),
("dock-body_2_1", "Prism"),
("dock-body_2_2", "Block"),
("dock-body_2_3", "Block"),
("dock-body_4", "DockHandle"),
("dock-body_4_1", "Prism"),
("dock-body_4_2", "Prism"),
("dock-body_5", "DockModule"),
("dock-body_5_1", "DockSlot"),
("c1", "Cartridge"),
("dock-body_5_2", "DockSwitch"),
("dock-body_5_3", "DockLED"),
("dock-body_6", "DockModule"),
("dock-body_6_1", "DockSlot"),
("c2", "Cartridge"),
("dock-body_6_2", "DockSwitch"),
("dock-body_6_3", "DockLED"),
("dock-body_7", "DockModule"),
("dock-body_7_1", "DockSlot"),
("c3", "Cartridge"),
("dock-body_7_2", "DockSwitch"),
("dock-body_7_3", "DockLED"),
("dock-body_8", "DockModule"),
("dock-body_8_1", "DockSlot"),
("c4", "Cartridge"),
("dock-body_8_2", "DockSwitch"),
("dock-body_8_3", "DockLED"),
("dock-case_2", "Block"),
("dock-case_3", "Block"),
("dock-case_4", "Block"),
("dock-case_5", "Prism"),
("dock-case_6", "Block"),
("c5", "Cartridge"),
("discard-bin", "Block"),
("gripping", ("nothing","c3")),
),
"release",
(
2.000000,
)
),
(
(
("workspace", "Workspace"),
("table", "Block"),
("dock-case", "DockCase"),
("dock-case_1", "Block"),
("dock-body", "DockDrawer"),
("dock-body_2", "DockFrontPanel"),
("dock-body_2_1", "Prism"),
("dock-body_2_2", "Block"),
("dock-body_2_3", "Block"),
("dock-body_4", "DockHandle"),
("dock-body_4_1", "Prism"),
("dock-body_4_2", "Prism"),
("dock-body_5", "DockModule"),
("dock-body_5_1", "DockSlot"),
("c1", "Cartridge"),
("dock-body_5_2", "DockSwitch"),
("dock-body_5_3", "DockLED"),
("dock-body_6", "DockModule"),
("dock-body_6_1", "DockSlot"),
("c2", "Cartridge"),
("dock-body_6_2", "DockSwitch"),
("dock-body_6_3", "DockLED"),
("dock-body_7", "DockModule"),
("dock-body_7_1", "DockSlot"),
("c3", "Cartridge"),
("dock-body_7_2", "DockSwitch"),
("dock-body_7_3", "DockLED"),
("dock-body_8", "DockModule"),
("dock-body_8_1", "DockSlot"),
("c4", "Cartridge"),
("dock-body_8_2", "DockSwitch"),
("dock-body_8_3", "DockLED"),
("dock-case_2", "Block"),
("dock-case_3", "Block"),
("dock-case_4", "Block"),
("dock-case_5", "Prism"),
("dock-case_6", "Block"),
("c5", "Cartridge"),
("discard-bin", "Block"),
("gripping", ("nothing","nothing")),
),
"press dock toggle",
(
2.000000,
"dock-body_5_2",
2.000000,
)
),
(
(
("workspace", "Workspace"),
("table", "Block"),
("dock-case", "DockCase"),
("dock-case_1", "Block"),
("dock-body", "DockDrawer"),
("dock-body_2", "DockFrontPanel"),
("dock-body_2_1", "Prism"),
("dock-body_2_2", "Block"),
("dock-body_2_3", "Block"),
("dock-body_4", "DockHandle"),
("dock-body_4_1", "Prism"),
("dock-body_4_2", "Prism"),
("dock-body_5", "DockModule"),
("dock-body_5_1", "DockSlot"),
("c1", "Cartridge"),
("dock-body_5_2", "DockSwitch"),
("dock-body_5_3", "DockLED"),
("dock-body_6", "DockModule"),
("dock-body_6_1", "DockSlot"),
("c2", "Cartridge"),
("dock-body_6_2", "DockSwitch"),
("dock-body_6_3", "DockLED"),
("dock-body_7", "DockModule"),
("dock-body_7_1", "DockSlot"),
("c3", "Cartridge"),
("dock-body_7_2", "DockSwitch"),
("dock-body_7_3", "DockLED"),
("dock-body_8", "DockModule"),
("dock-body_8_1", "DockSlot"),
("c4", "Cartridge"),
("dock-body_8_2", "DockSwitch"),
("dock-body_8_3", "DockLED"),
("dock-case_2", "Block"),
("dock-case_3", "Block"),
("dock-case_4", "Block"),
("dock-case_5", "Prism"),
("dock-case_6", "Block"),
("c5", "Cartridge"),
("discard-bin", "Block"),
("gripping", ("nothing","nothing")),
),
"move arm and grasp",
(
2.000000,
"c1",
)
),
(
(
("workspace", "Workspace"),
("table", "Block"),
("dock-case", "DockCase"),
("dock-case_1", "Block"),
("dock-body", "DockDrawer"),
("dock-body_2", "DockFrontPanel"),
("dock-body_2_1", "Prism"),
("dock-body_2_2", "Block"),
("dock-body_2_3", "Block"),
("dock-body_4", "DockHandle"),
("dock-body_4_1", "Prism"),
("dock-body_4_2", "Prism"),
("dock-body_5", "DockModule"),
("dock-body_5_1", "DockSlot"),
("c1", "Cartridge"),
("dock-body_5_2", "DockSwitch"),
("dock-body_5_3", "DockLED"),
("dock-body_6", "DockModule"),
("dock-body_6_1", "DockSlot"),
("c2", "Cartridge"),
("dock-body_6_2", "DockSwitch"),
("dock-body_6_3", "DockLED"),
("dock-body_7", "DockModule"),
("dock-body_7_1", "DockSlot"),
("c3", "Cartridge"),
("dock-body_7_2", "DockSwitch"),
("dock-body_7_3", "DockLED"),
("dock-body_8", "DockModule"),
("dock-body_8_1", "DockSlot"),
("c4", "Cartridge"),
("dock-body_8_2", "DockSwitch"),
("dock-body_8_3", "DockLED"),
("dock-case_2", "Block"),
("dock-case_3", "Block"),
("dock-case_4", "Block"),
("dock-case_5", "Prism"),
("dock-case_6", "Block"),
("c5", "Cartridge"),
("discard-bin", "Block"),
("gripping", ("nothing","c1")),
),
"move grasped object",
(
2.000000,
"dock-body_7_1",
(
(0.999817, 0.019017, 0.002105, ),
(-0.019004, 0.999802, -0.005852, ),
(-0.002216, 0.005811, 0.999981, ),
),
(
(-0.421438, ),
(-0.003108, ),
(0.338827, ),
),
)
),
(
(
("workspace", "Workspace"),
("table", "Block"),
("dock-case", "DockCase"),
("dock-case_1", "Block"),
("dock-body", "DockDrawer"),
("dock-body_2", "DockFrontPanel"),
("dock-body_2_1", "Prism"),
("dock-body_2_2", "Block"),
("dock-body_2_3", "Block"),
("dock-body_4", "DockHandle"),
("dock-body_4_1", "Prism"),
("dock-body_4_2", "Prism"),
("dock-body_5", "DockModule"),
("dock-body_5_1", "DockSlot"),
("c1", "Cartridge"),
("dock-body_5_2", "DockSwitch"),
("dock-body_5_3", "DockLED"),
("dock-body_6", "DockModule"),
("dock-body_6_1", "DockSlot"),
("c2", "Cartridge"),
("dock-body_6_2", "DockSwitch"),
("dock-body_6_3", "DockLED"),
("dock-body_7", "DockModule"),
("dock-body_7_1", "DockSlot"),
("c3", "Cartridge"),
("dock-body_7_2", "DockSwitch"),
("dock-body_7_3", "DockLED"),
("dock-body_8", "DockModule"),
("dock-body_8_1", "DockSlot"),
("c4", "Cartridge"),
("dock-body_8_2", "DockSwitch"),
("dock-body_8_3", "DockLED"),
("dock-case_2", "Block"),
("dock-case_3", "Block"),
("dock-case_4", "Block"),
("dock-case_5", "Prism"),
("dock-case_6", "Block"),
("c5", "Cartridge"),
("discard-bin", "Block"),
("gripping", ("nothing","c1")),
),
"release",
(
2.000000,
)
),
(
(
("workspace", "Workspace"),
("table", "Block"),
("dock-case", "DockCase"),
("dock-case_1", "Block"),
("dock-body", "DockDrawer"),
("dock-body_2", "DockFrontPanel"),
("dock-body_2_1", "Prism"),
("dock-body_2_2", "Block"),
("dock-body_2_3", "Block"),
("dock-body_4", "DockHandle"),
("dock-body_4_1", "Prism"),
("dock-body_4_2", "Prism"),
("dock-body_5", "DockModule"),
("dock-body_5_1", "DockSlot"),
("c1", "Cartridge"),
("dock-body_5_2", "DockSwitch"),
("dock-body_5_3", "DockLED"),
("dock-body_6", "DockModule"),
("dock-body_6_1", "DockSlot"),
("c2", "Cartridge"),
("dock-body_6_2", "DockSwitch"),
("dock-body_6_3", "DockLED"),
("dock-body_7", "DockModule"),
("dock-body_7_1", "DockSlot"),
("c3", "Cartridge"),
("dock-body_7_2", "DockSwitch"),
("dock-body_7_3", "DockLED"),
("dock-body_8", "DockModule"),
("dock-body_8_1", "DockSlot"),
("c4", "Cartridge"),
("dock-body_8_2", "DockSwitch"),
("dock-body_8_3", "DockLED"),
("dock-case_2", "Block"),
("dock-case_3", "Block"),
("dock-case_4", "Block"),
("dock-case_5", "Prism"),
("dock-case_6", "Block"),
("c5", "Cartridge"),
("discard-bin", "Block"),
("gripping", ("nothing","nothing")),
),
"press dock toggle",
(
2.000000,
"dock-body_7_2",
1.000000,
)
),
(
(
("workspace", "Workspace"),
("table", "Block"),
("dock-case", "DockCase"),
("dock-case_1", "Block"),
("dock-body", "DockDrawer"),
("dock-body_2", "DockFrontPanel"),
("dock-body_2_1", "Prism"),
("dock-body_2_2", "Block"),
("dock-body_2_3", "Block"),
("dock-body_4", "DockHandle"),
("dock-body_4_1", "Prism"),
("dock-body_4_2", "Prism"),
("dock-body_5", "DockModule"),
("dock-body_5_1", "DockSlot"),
("c1", "Cartridge"),
("dock-body_5_2", "DockSwitch"),
("dock-body_5_3", "DockLED"),
("dock-body_6", "DockModule"),
("dock-body_6_1", "DockSlot"),
("c2", "Cartridge"),
("dock-body_6_2", "DockSwitch"),
("dock-body_6_3", "DockLED"),
("dock-body_7", "DockModule"),
("dock-body_7_1", "DockSlot"),
("c3", "Cartridge"),
("dock-body_7_2", "DockSwitch"),
("dock-body_7_3", "DockLED"),
("dock-body_8", "DockModule"),
("dock-body_8_1", "DockSlot"),
("c4", "Cartridge"),
("dock-body_8_2", "DockSwitch"),
("dock-body_8_3", "DockLED"),
("dock-case_2", "Block"),
("dock-case_3", "Block"),
("dock-case_4", "Block"),
("dock-case_5", "Prism"),
("dock-case_6", "Block"),
("c5", "Cartridge"),
("discard-bin", "Block"),
("gripping", ("nothing","nothing")),
),
"move arm and grasp",
(
2.000000,
"dock-body",
)
),
(
(
("workspace", "Workspace"),
("table", "Block"),
("dock-case", "DockCase"),
("dock-case_1", "Block"),
("dock-body", "DockDrawer"),
("dock-body_2", "DockFrontPanel"),
("dock-body_2_1", "Prism"),
("dock-body_2_2", "Block"),
("dock-body_2_3", "Block"),
("dock-body_4", "DockHandle"),
("dock-body_4_1", "Prism"),
("dock-body_4_2", "Prism"),
("dock-body_5", "DockModule"),
("dock-body_5_1", "DockSlot"),
("c1", "Cartridge"),
("dock-body_5_2", "DockSwitch"),
("dock-body_5_3", "DockLED"),
("dock-body_6", "DockModule"),
("dock-body_6_1", "DockSlot"),
("c2", "Cartridge"),
("dock-body_6_2", "DockSwitch"),
("dock-body_6_3", "DockLED"),
("dock-body_7", "DockModule"),
("dock-body_7_1", "DockSlot"),
("c3", "Cartridge"),
("dock-body_7_2", "DockSwitch"),
("dock-body_7_3", "DockLED"),
("dock-body_8", "DockModule"),
("dock-body_8_1", "DockSlot"),
("c4", "Cartridge"),
("dock-body_8_2", "DockSwitch"),
("dock-body_8_3", "DockLED"),
("dock-case_2", "Block"),
("dock-case_3", "Block"),
("dock-case_4", "Block"),
("dock-case_5", "Prism"),
("dock-case_6", "Block"),
("c5", "Cartridge"),
("discard-bin", "Block"),
("gripping", ("nothing","dock-body")),
),
"move grasped object",
(
2.000000,
"dock-case",
(
(1.000000, 0.000580, 0.000014, ),
(-0.000580, 1.000000, -0.000069, ),
(-0.000014, 0.000069, 1.000000, ),
),
(
(0.014394, ),
(-0.008064, ),
(0.001375, ),
),
)
),
(
(
("workspace", "Workspace"),
("table", "Block"),
("dock-case", "DockCase"),
("dock-case_1", "Block"),
("dock-body", "DockDrawer"),
("dock-body_2", "DockFrontPanel"),
("dock-body_2_1", "Prism"),
("dock-body_2_2", "Block"),
("dock-body_2_3", "Block"),
("dock-body_4", "DockHandle"),
("dock-body_4_1", "Prism"),
("dock-body_4_2", "Prism"),
("dock-body_5", "DockModule"),
("dock-body_5_1", "DockSlot"),
("c1", "Cartridge"),
("dock-body_5_2", "DockSwitch"),
("dock-body_5_3", "DockLED"),
("dock-body_6", "DockModule"),
("dock-body_6_1", "DockSlot"),
("c2", "Cartridge"),
("dock-body_6_2", "DockSwitch"),
("dock-body_6_3", "DockLED"),
("dock-body_7", "DockModule"),
("dock-body_7_1", "DockSlot"),
("c3", "Cartridge"),
("dock-body_7_2", "DockSwitch"),
("dock-body_7_3", "DockLED"),
("dock-body_8", "DockModule"),
("dock-body_8_1", "DockSlot"),
("c4", "Cartridge"),
("dock-body_8_2", "DockSwitch"),
("dock-body_8_3", "DockLED"),
("dock-case_2", "Block"),
("dock-case_3", "Block"),
("dock-case_4", "Block"),
("dock-case_5", "Prism"),
("dock-case_6", "Block"),
("c5", "Cartridge"),
("discard-bin", "Block"),
("gripping", ("nothing","dock-body")),
),
"release",
(
2.000000,
)
),
)
| 25.615187
| 40
| 0.562729
| 2,591
| 19,903
| 4.053261
| 0.030876
| 0.281851
| 0.05399
| 0.108551
| 0.96753
| 0.964769
| 0.962102
| 0.962102
| 0.962102
| 0.962102
| 0
| 0.07294
| 0.145154
| 19,903
| 776
| 41
| 25.648196
| 0.544316
| 0
| 0
| 0.871134
| 0
| 0
| 0.565392
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
c584fd3442195c76f216ac1b8e888acca166e3d3
| 359
|
py
|
Python
|
services/Autocorrect/utils/util.py
|
fusion-jena/JenTab
|
0f7baf5293bb8881e39f05dafacd48089833ee3e
|
[
"Apache-2.0"
] | 9
|
2021-03-23T11:32:40.000Z
|
2022-03-31T13:58:41.000Z
|
services/Autocorrect/utils/util.py
|
fusion-jena/JenTab
|
0f7baf5293bb8881e39f05dafacd48089833ee3e
|
[
"Apache-2.0"
] | null | null | null |
services/Autocorrect/utils/util.py
|
fusion-jena/JenTab
|
0f7baf5293bb8881e39f05dafacd48089833ee3e
|
[
"Apache-2.0"
] | 1
|
2021-04-29T21:27:08.000Z
|
2021-04-29T21:27:08.000Z
|
def chunks(l, n):
# For item i in a range that is a length of l,
for i in range(0, len(l), n):
# Create an index range for l of n items:
yield l[i:i + n]
def get_batch(l, n):
# For item i in a range that is a length of l,
for i in range(0, len(l), n):
# Create an index range for l of n items:
yield l[i:i + n]
| 32.636364
| 50
| 0.559889
| 77
| 359
| 2.597403
| 0.298701
| 0.04
| 0.05
| 0.09
| 0.9
| 0.9
| 0.9
| 0.9
| 0.9
| 0.9
| 0
| 0.008368
| 0.334262
| 359
| 11
| 51
| 32.636364
| 0.828452
| 0.470752
| 0
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c596b530f33a32198458e913229f52093c4ec7b6
| 163
|
py
|
Python
|
challenges/multi_bracket_validation/test_multi_bracket_validation.py
|
brandonhaynes100/data_structures_and_algorithms
|
87676aa89c7d8f879e922c6e9a55f072d2b875bf
|
[
"MIT"
] | null | null | null |
challenges/multi_bracket_validation/test_multi_bracket_validation.py
|
brandonhaynes100/data_structures_and_algorithms
|
87676aa89c7d8f879e922c6e9a55f072d2b875bf
|
[
"MIT"
] | null | null | null |
challenges/multi_bracket_validation/test_multi_bracket_validation.py
|
brandonhaynes100/data_structures_and_algorithms
|
87676aa89c7d8f879e922c6e9a55f072d2b875bf
|
[
"MIT"
] | null | null | null |
from .multi_bracket_validation import multi_bracket_validation
import pytest
# __init__
def test_basic_true():
assert multi_bracket_validation('()') is True
| 20.375
| 62
| 0.809816
| 21
| 163
| 5.714286
| 0.619048
| 0.3
| 0.55
| 0.466667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122699
| 163
| 7
| 63
| 23.285714
| 0.839161
| 0.04908
| 0
| 0
| 0
| 0
| 0.013072
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.25
| true
| 0
| 0.5
| 0
| 0.75
| 0
| 1
| 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
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 9
|
c5c1abd8f7bf95954643efa8d52db2985e9c1ad1
| 96
|
py
|
Python
|
netrino/ui/views/__init__.py
|
HieronymusCrouse/netrino
|
dcecbfa8a4e5f79c6f74fb1a711698e384feee7e
|
[
"BSD-3-Clause"
] | 2
|
2018-05-17T15:50:54.000Z
|
2019-05-16T16:57:30.000Z
|
netrino/ui/views/__init__.py
|
HieronymusCrouse/netrino
|
dcecbfa8a4e5f79c6f74fb1a711698e384feee7e
|
[
"BSD-3-Clause"
] | 46
|
2018-04-18T08:37:50.000Z
|
2019-06-06T13:15:13.000Z
|
netrino/ui/views/__init__.py
|
HieronymusCrouse/netrino
|
dcecbfa8a4e5f79c6f74fb1a711698e384feee7e
|
[
"BSD-3-Clause"
] | 8
|
2018-02-26T08:16:24.000Z
|
2019-12-27T12:11:05.000Z
|
import netrino.ui.views.process
import netrino.ui.views.products
import netrino.ui.views.orders
| 24
| 32
| 0.84375
| 15
| 96
| 5.4
| 0.466667
| 0.481481
| 0.555556
| 0.740741
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 96
| 3
| 33
| 32
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
c5d9da6f2575e113bec6d4e2201bb16240e40b29
| 112,776
|
py
|
Python
|
test/integration/component/test_vpc_network.py
|
schubergphilis/cloudstack
|
c4a69c27b127d503ae91a64aab45d7f954d3ca89
|
[
"Apache-2.0"
] | 2
|
2015-02-10T07:21:58.000Z
|
2021-05-07T08:52:17.000Z
|
test/integration/component/test_vpc_network.py
|
schubergphilis/cloudstack
|
c4a69c27b127d503ae91a64aab45d7f954d3ca89
|
[
"Apache-2.0"
] | 2
|
2015-06-11T02:17:06.000Z
|
2015-06-22T20:46:42.000Z
|
test/integration/component/test_vpc_network.py
|
schubergphilis/cloudstack
|
c4a69c27b127d503ae91a64aab45d7f954d3ca89
|
[
"Apache-2.0"
] | 4
|
2015-05-25T15:53:52.000Z
|
2018-05-23T14:08:07.000Z
|
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
""" Component tests for VPC network functionality - with and without Netscaler (Netscaler tests will be skipped if Netscaler configuration fails)
"""
#Import Local Modules
from nose.plugins.attrib import attr
from marvin.cloudstackTestCase import cloudstackTestCase, unittest
from marvin.cloudstackAPI import startVirtualMachine, stopVirtualMachine
from marvin.lib.utils import cleanup_resources, validateList
from marvin.lib.base import (VirtualMachine,
ServiceOffering,
Account,
NATRule,
NetworkOffering,
Network,
VPC,
VpcOffering,
LoadBalancerRule,
Router,
StaticNATRule,
NetworkACL,
PublicIPAddress)
from marvin.lib.common import (get_zone,
get_domain,
get_template,
wait_for_cleanup,
add_netscaler,
list_networks)
# For more info on ddt refer to http://ddt.readthedocs.org/en/latest/api.html#module-ddt
from ddt import ddt, data
import time
from marvin.codes import PASS
class Services:
"""Test VPC network services
"""
def __init__(self):
self.services = {
"account": {
"email": "test@test.com",
"firstname": "Test",
"lastname": "User",
"username": "test",
# Random characters are appended for unique
# username
"password": "password",
},
"service_offering": {
"name": "Tiny Instance",
"displaytext": "Tiny Instance",
"cpunumber": 1,
"cpuspeed": 100,
"memory": 128,
},
"network_offering": {
"name": 'VPC Network offering',
"displaytext": 'VPC Network off',
"guestiptype": 'Isolated',
"supportedservices": 'Vpn,Dhcp,Dns,SourceNat,PortForwarding,Lb,UserData,StaticNat,NetworkACL',
"traffictype": 'GUEST',
"availability": 'Optional',
"useVpc": 'on',
"serviceProviderList": {
"Vpn": 'VpcVirtualRouter',
"Dhcp": 'VpcVirtualRouter',
"Dns": 'VpcVirtualRouter',
"SourceNat": 'VpcVirtualRouter',
"PortForwarding": 'VpcVirtualRouter',
"Lb": 'VpcVirtualRouter',
"UserData": 'VpcVirtualRouter',
"StaticNat": 'VpcVirtualRouter',
"NetworkACL": 'VpcVirtualRouter'
},
"serviceCapabilityList": {
"SourceNat": {"SupportedSourceNatTypes": "peraccount"},
},
},
# Offering that uses Netscaler as provider for LB inside VPC, dedicated = false
"network_off_netscaler": {
"name": 'Network offering-netscaler',
"displaytext": 'Network offering-netscaler',
"guestiptype": 'Isolated',
"supportedservices": 'Dhcp,Dns,SourceNat,PortForwarding,Vpn,Lb,UserData,StaticNat',
"traffictype": 'GUEST',
"availability": 'Optional',
"useVpc": 'on',
"serviceProviderList": {
"Dhcp": 'VpcVirtualRouter',
"Dns": 'VpcVirtualRouter',
"SourceNat": 'VpcVirtualRouter',
"PortForwarding": 'VpcVirtualRouter',
"Vpn": 'VpcVirtualRouter',
"Lb": 'Netscaler',
"UserData": 'VpcVirtualRouter',
"StaticNat": 'VpcVirtualRouter',
},
"serviceCapabilityList": {
"SourceNat": {"SupportedSourceNatTypes": "peraccount"},
},
},
# Offering that uses Netscaler as provider for LB in VPC, dedicated = True
# This offering is required for the tests that use Netscaler as external LB provider in VPC
"network_offering_vpcns": {
"name": 'VPC Network offering',
"displaytext": 'VPC Network off',
"guestiptype": 'Isolated',
"supportedservices": 'Vpn,Dhcp,Dns,SourceNat,PortForwarding,Lb,UserData,StaticNat,NetworkACL',
"traffictype": 'GUEST',
"availability": 'Optional',
"useVpc": 'on',
"serviceProviderList": {
"Vpn": 'VpcVirtualRouter',
"Dhcp": 'VpcVirtualRouter',
"Dns": 'VpcVirtualRouter',
"SourceNat": 'VpcVirtualRouter',
"PortForwarding": 'VpcVirtualRouter',
"Lb": 'Netscaler',
"UserData": 'VpcVirtualRouter',
"StaticNat": 'VpcVirtualRouter',
"NetworkACL": 'VpcVirtualRouter'
},
"serviceCapabilityList": {
"SourceNat": {
"SupportedSourceNatTypes": "peraccount"
},
"lb": {
"SupportedLbIsolation": "dedicated"
},
},
},
"network_off_shared": {
"name": 'Shared Network offering',
"displaytext": 'Shared Network offering',
"guestiptype": 'Shared',
"traffictype": 'GUEST',
"availability": 'Optional',
"useVpc": 'on',
"specifyIpRanges": True,
"specifyVlan": True
},
"vpc_offering": {
"name": 'VPC off',
"displaytext": 'VPC off',
"supportedservices": 'Dhcp,Dns,SourceNat,PortForwarding,Vpn,Lb,UserData,StaticNat',
},
"vpc": {
"name": "TestVPC",
"displaytext": "TestVPC",
"cidr": '10.0.0.1/24'
},
# Netscaler should be added as a dedicated device for it to work as external LB provider in VPC
"netscaler": {
"ipaddress": '10.102.192.50',
"username": 'nsroot',
"password": 'nsroot',
"networkdevicetype": 'NetscalerVPXLoadBalancer',
"publicinterface": '1/3',
"privateinterface": '1/4',
"numretries": 2,
"lbdevicededicated": True,
"lbdevicecapacity": 50,
"port": 22,
},
"network": {
"name": "Test Network",
"displaytext": "Test Network",
"netmask": '255.255.255.0'
},
"lbrule": {
"name": "SSH",
"alg": "leastconn",
# Algorithm used for load balancing
"privateport": 22,
"publicport": 2222,
"openfirewall": False,
"startport": 22,
"endport": 2222,
"protocol": "TCP",
"cidrlist": '0.0.0.0/0',
},
"natrule": {
"privateport": 22,
"publicport": 22,
"startport": 22,
"endport": 22,
"protocol": "TCP",
"cidrlist": '0.0.0.0/0',
},
"fw_rule": {
"startport": 1,
"endport": 6000,
"cidr": '0.0.0.0/0',
# Any network (For creating FW rule)
"protocol": "TCP"
},
"icmp_rule": {
"icmptype": -1,
"icmpcode": -1,
"cidrlist": '0.0.0.0/0',
"protocol": "ICMP"
},
"virtual_machine": {
"displayname": "Test VM",
"username": "root",
"password": "password",
"ssh_port": 22,
"hypervisor": 'XenServer',
# Hypervisor type should be same as
# hypervisor type of cluster
"privateport": 22,
"publicport": 22,
"protocol": 'TCP',
},
"ostype": 'CentOS 5.3 (64-bit)',
# Cent OS 5.3 (64 bit)
"sleep": 60,
"timeout": 10,
}
@ddt
class TestVPCNetwork(cloudstackTestCase):
@classmethod
def setUpClass(cls):
cls.testClient = super(TestVPCNetwork, cls).getClsTestClient()
cls.api_client = cls.testClient.getApiClient()
cls.services = Services().services
# Added an attribute to track if Netscaler addition was successful.
# Value is checked in tests and if not configured, Netscaler tests will be skipped
cls.ns_configured = False
# Get Zone, Domain and templates
cls.domain = get_domain(cls.api_client)
cls.zone = get_zone(cls.api_client, cls.testClient.getZoneForTests())
cls.template = get_template(
cls.api_client,
cls.zone.id,
cls.services["ostype"]
)
cls.services["virtual_machine"]["zoneid"] = cls.zone.id
cls.services["virtual_machine"]["template"] = cls.template.id
cls._cleanup = []
cls.service_offering = ServiceOffering.create(
cls.api_client,
cls.services["service_offering"]
)
cls._cleanup.append(cls.service_offering)
# Configure Netscaler device
# If configuration succeeds, set ns_configured to True so that Netscaler tests are executed
try:
cls.netscaler = add_netscaler(cls.api_client, cls.zone.id, cls.services["netscaler"])
cls._cleanup.append(cls.netscaler)
cls.debug("Netscaler configured")
cls.ns_configured = True
except Exception as e:
cls.debug("Warning: Couldn't configure Netscaler: %s" % e)
return
@classmethod
def tearDownClass(cls):
try:
#Cleanup resources used
cleanup_resources(cls.api_client, cls._cleanup)
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
return
def setUp(self):
self.services = Services().services
self.apiclient = self.testClient.getApiClient()
self.dbclient = self.testClient.getDbConnection()
self.account = Account.create(
self.apiclient,
self.services["account"],
admin=True,
domainid=self.domain.id
)
self.cleanup = [self.account, ]
return
def tearDown(self):
try:
cleanup_resources(self.apiclient, self.cleanup)
except Exception as e:
self.debug("Warning: Exception during cleanup : %s" % e)
#raise Exception("Warning: Exception during cleanup : %s" % e)
return
def validate_vpc_offering(self, vpc_offering):
"""Validates the VPC offering"""
self.debug("Check if the VPC offering is created successfully?")
vpc_offs = VpcOffering.list(
self.apiclient,
id=vpc_offering.id
)
self.assertEqual(
isinstance(vpc_offs, list),
True,
"List VPC offerings should return a valid list"
)
self.assertEqual(
vpc_offering.name,
vpc_offs[0].name,
"Name of the VPC offering should match with listVPCOff data"
)
self.debug(
"VPC offering is created successfully - %s" %
vpc_offering.name)
return
def validate_vpc_network(self, network, state=None):
"""Validates the VPC network"""
self.debug("Check if the VPC network is created successfully?")
vpc_networks = VPC.list(
self.apiclient,
id=network.id
)
self.assertEqual(
isinstance(vpc_networks, list),
True,
"List VPC network should return a valid list"
)
self.assertEqual(
network.name,
vpc_networks[0].name,
"Name of the VPC network should match with listVPC data"
)
if state:
self.assertEqual(
vpc_networks[0].state,
state,
"VPC state should be '%s'" % state
)
self.debug("VPC network validated - %s" % network.name)
return
@data("network_offering", "network_offering_vpcns")
@attr(tags=["advanced", "intervlan"])
def test_01_create_network(self, value):
""" Test create network in VPC
"""
# Validate the following
# 1. Create a VPC using Default Offering
# 2. Create a network offering with guest type=Isolated" that has
# all of supported Services(Vpn,dhcpdns,UserData, SourceNat,Static
# NAT,LB and PF,LB,NetworkAcl ) provided by VPCVR and conserve
# mode is ON
# 3. Create a network tier using the network offering created in step2 as
# part of this VPC.
# 4. Validate Network is created
# 5. Repeat test for offering which has Netscaler as external LB provider
if (value == "network_offering_vpcns" and self.ns_configured == False):
self.skipTest('Netscaler not configured: skipping test')
if (value == "network_offering"):
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering',
listall=True
)
else:
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering with Netscaler',
listall=True
)
vpc_off=vpc_off_list[0]
self.debug("Creating a VPC with offering: %s" % vpc_off.id)
self.services["vpc"]["cidr"] = '10.1.1.1/16'
vpc = VPC.create(
self.apiclient,
self.services["vpc"],
vpcofferingid=vpc_off.id,
zoneid=self.zone.id,
account=self.account.name,
domainid=self.account.domainid
)
self.validate_vpc_network(vpc)
self.network_offering = NetworkOffering.create(
self.apiclient,
self.services[value],
conservemode=False
)
# Enable Network offering
self.network_offering.update(self.apiclient, state='Enabled')
self.cleanup.append(self.network_offering)
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" %
self.network_offering.id)
network = Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id,
gateway='10.1.1.1',
vpcid=vpc.id
)
self.debug("Created network with ID: %s" % network.id)
self.debug(
"Verifying list network response to check if network created?")
networks = Network.list(
self.apiclient,
id=network.id,
listall=True
)
self.assertEqual(
isinstance(networks, list),
True,
"List networks should return a valid response"
)
nw = networks[0]
self.assertEqual(
nw.networkofferingid,
self.network_offering.id,
"Network should be created from network offering - %s" %
self.network_offering.id
)
self.assertEqual(
nw.vpcid,
vpc.id,
"Network should be created in VPC: %s" % vpc.name
)
return
@data("network_offering", "network_offering_vpcns")
@attr(tags=["advanced", "intervlan"])
def test_02_create_network_fail(self, value):
""" Test create network in VPC mismatched services (Should fail)
"""
# Validate the following
# 1. Create a VPC using Default VPC Offering
# 2. Create a network offering with guest type=Isolated" that has
# one of supported Services(Vpn,dhcpdns,UserData, Static
# NAT,LB and PF,LB,NetworkAcl ) provided by VPCVR, SourceNat by VR
# and conserve mode is ON
# 3. Create a network using the network offering created in step2 as
# part of this VPC.
# 4. Network creation should fail since SourceNat offered by VR instead of VPCVR
# 5. Repeat test for offering which has Netscaler as external LB provider
if (value == "network_offering_vpcns" and self.ns_configured == False):
self.skipTest('Netscaler not configured: skipping test')
if (value == "network_offering"):
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering',
listall=True
)
else:
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering with Netscaler',
listall=True
)
vpc_off=vpc_off_list[0]
self.debug("Creating a VPC with offering: %s" % vpc_off.id)
self.services["vpc"]["cidr"] = '10.1.1.1/16'
vpc = VPC.create(
self.apiclient,
self.services["vpc"],
vpcofferingid=vpc_off.id,
zoneid=self.zone.id,
account=self.account.name,
domainid=self.account.domainid
)
self.validate_vpc_network(vpc)
self.services[value]["serviceProviderList"] = {
"SourceNat": 'VirtualRouter', }
self.network_offering = NetworkOffering.create(
self.apiclient,
self.services[value],
conservemode=False
)
# Enable Network offering
self.network_offering.update(self.apiclient, state='Enabled')
self.cleanup.append(self.network_offering)
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" %
self.network_offering.id)
with self.assertRaises(Exception):
Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id,
gateway='10.1.1.1',
vpcid=vpc.id
)
return
@data("network_offering", "network_offering_vpcns")
@attr(tags=["advanced", "intervlan"])
def test_04_create_multiple_networks_with_lb(self, value):
""" Test create multiple networks with LB service (Should fail)
"""
# Validate the following
# 1. Create a VPC using Default Offering
# 2. Create a network offering with guest type=Isolated that has LB
# services Enabled and conserve mode is "ON".
# 3. Create a network using the network offering created in step2 as
# part of this VPC.
# 4. Create another network using the network offering created in
# step3 as part of this VPC
# 5. Create Network should fail
# 6. Repeat test for offering which has Netscaler as external LB provider
if (value == "network_offering_vpcns" and self.ns_configured == False):
self.skipTest('Netscaler not configured: skipping test')
if (value == "network_offering"):
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering',
listall=True
)
else:
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering with Netscaler',
listall=True
)
vpc_off=vpc_off_list[0]
self.debug("Creating a VPC with offering: %s" % vpc_off.id)
self.services["vpc"]["cidr"] = '10.1.1.1/16'
vpc = VPC.create(
self.apiclient,
self.services["vpc"],
vpcofferingid=vpc_off.id,
zoneid=self.zone.id,
account=self.account.name,
domainid=self.account.domainid
)
self.validate_vpc_network(vpc)
self.network_offering = NetworkOffering.create(
self.apiclient,
self.services[value],
conservemode=False
)
# Enable Network offering
self.network_offering.update(self.apiclient, state='Enabled')
self.cleanup.append(self.network_offering)
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" %
self.network_offering.id)
network = Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id,
gateway='10.1.1.1',
vpcid=vpc.id
)
self.debug("Created network with ID: %s" % network.id)
self.debug(
"Verifying list network response to check if network created?")
networks = Network.list(
self.apiclient,
id=network.id,
listall=True
)
self.assertEqual(
isinstance(networks, list),
True,
"List networks should return a valid response"
)
nw = networks[0]
self.assertEqual(
nw.networkofferingid,
self.network_offering.id,
"Network should be created from network offering - %s" %
self.network_offering.id
)
self.assertEqual(
nw.vpcid,
vpc.id,
"Network should be created in VPC: %s" % vpc.name
)
self.debug("Creating another network in VPC: %s" % vpc.name)
with self.assertRaises(Exception):
Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id,
gateway='10.1.2.1',
vpcid=vpc.id
)
self.debug(
"Network creation failed as network with LB service already exists")
return
@attr(tags=["intervlan"])
def test_05_create_network_ext_LB(self):
""" Test create network with external LB devices
"""
# Validate the following
# 1.Create a VPC using Default Offering (Without Netscaler)
# 2. Create a network offering with guest type=Isolated that has LB
# service provided by netscaler and conserve mode is "ON".
# 3. Create a network using this network offering as part of this VPC.
# 4. Create Network should fail since it doesn't match the VPC offering
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering',
listall=True
)
vpc_off=vpc_off_list[0]
self.debug("Creating a VPC with offering: %s" % vpc_off.id)
self.services["vpc"]["cidr"] = '10.1.1.1/16'
vpc = VPC.create(
self.apiclient,
self.services["vpc"],
vpcofferingid=vpc_off.id,
zoneid=self.zone.id,
account=self.account.name,
domainid=self.account.domainid
)
self.validate_vpc_network(vpc)
self.network_offering = NetworkOffering.create(
self.apiclient,
self.services["network_offering_vpcns"],
conservemode=False
)
# Enable Network offering
self.network_offering.update(self.apiclient, state='Enabled')
self.cleanup.append(self.network_offering)
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" %
self.network_offering.id)
with self.assertRaises(Exception):
Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id,
gateway='10.1.1.1',
vpcid=vpc.id
)
self.debug("Network creation failed")
return
@unittest.skip("skipped - RvR didn't support VPC currently ")
@attr(tags=["advanced", "intervlan", "NA"])
def test_06_create_network_with_rvr(self):
""" Test create network with redundant router capability
"""
# Validate the following
# 1. Create VPC Offering by specifying all supported Services
# (Vpn,dhcpdns,UserData, SourceNat,Static NAT and PF,LB,NetworkAcl)
# 2. Create a VPC using the above VPC offering
# 3. Create a network offering with guest type=Isolated that has all
# services provided by VPC VR,conserver mode ""OFF"" and Redundant
# Router capability enabled.
# 4. Create a VPC using the above VPC offering.
# 5. Create a network using the network offering created in step2 as
# part of this VPC
self.debug("Creating a VPC offering..")
vpc_off = VpcOffering.create(
self.apiclient,
self.services["vpc_offering"]
)
self.cleanup.append(vpc_off)
self.validate_vpc_offering(vpc_off)
self.debug("Enabling the VPC offering created")
vpc_off.update(self.apiclient, state='Enabled')
self.debug("creating a VPC network in the account: %s" %
self.account.name)
self.services["vpc"]["cidr"] = '10.1.1.1/16'
vpc = VPC.create(
self.apiclient,
self.services["vpc"],
vpcofferingid=vpc_off.id,
zoneid=self.zone.id,
account=self.account.name,
domainid=self.account.domainid
)
self.validate_vpc_network(vpc)
# Enable redundant router capability for the network offering
self.services["network"]["serviceCapabilityList"] = {
"SourceNat": {
"RedundantRouter": "true",
},
}
self.network_offering = NetworkOffering.create(
self.apiclient,
self.services["network_offering"],
conservemode=False
)
# Enable Network offering
self.network_offering.update(self.apiclient, state='Enabled')
self.cleanup.append(self.network_offering)
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" %
self.network_offering.id)
with self.assertRaises(Exception):
Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id,
gateway='10.1.2.1',
vpcid=vpc.id
)
self.debug("Network creation failed")
return
@attr(tags=["advanced", "intervlan", "selfservice"])
def test_07_create_network_unsupported_services(self):
""" Test create network services not supported by VPC (Should fail)
"""
# Validate the following
# 1. Create VPC Offering without LB service
# 2. Create a VPC using the above VPC offering
# 3. Create a network offering with guest type=Isolated that has all
# supported Services(Vpn,dhcpdns,UserData, SourceNat,Static NAT,LB
# and PF,LB,NetworkAcl ) provided by VPCVR and conserve mode is OFF
# 4. Create Network with the above offering
# 5. Create network fails since VPC offering doesn't support LB
self.debug("Creating a VPC offering without LB service")
self.services["vpc_offering"]["supportedservices"] = 'Dhcp,Dns,SourceNat,PortForwarding,Vpn,UserData,StaticNat'
vpc_off = VpcOffering.create(
self.apiclient,
self.services["vpc_offering"]
)
self.cleanup.append(vpc_off)
self.validate_vpc_offering(vpc_off)
self.debug("Enabling the VPC offering created")
vpc_off.update(self.apiclient, state='Enabled')
self.debug("creating a VPC network in the account: %s" %
self.account.name)
self.services["vpc"]["cidr"] = '10.1.1.1/16'
vpc = VPC.create(
self.apiclient,
self.services["vpc"],
vpcofferingid=vpc_off.id,
zoneid=self.zone.id,
account=self.account.name,
domainid=self.account.domainid
)
self.validate_vpc_network(vpc)
self.network_offering = NetworkOffering.create(
self.apiclient,
self.services["network_offering"],
conservemode=False
)
# Enable Network offering
self.network_offering.update(self.apiclient, state='Enabled')
self.cleanup.append(self.network_offering)
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" %
self.network_offering.id)
with self.assertRaises(Exception):
Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id,
gateway='10.1.2.1',
vpcid=vpc.id
)
self.debug("Network creation failed as VPC doesn't have LB service")
return
@attr(tags=["advanced", "intervlan", "selfservice"])
def test_08_create_network_without_sourceNAT(self):
""" Test create network without sourceNAT service in VPC (should fail)
"""
# Validate the following
# 1. Create VPC Offering by specifying supported Services-
# Vpn,dhcpdns,UserData, SourceNat,Static NAT and PF,LB,NetworkAcl)
# with out including LB services.
# 2. Create a VPC using the above VPC offering
# 3. Create a network offering with guest type=Isolated that does not
# have SourceNAT services enabled
# 4. Create a VPC using the above VPC offering
# 5. Create a network using the network offering created in step2 as
# part of this VPC
self.debug("Creating a VPC offering without LB service")
self.services["vpc_offering"]["supportedservices"] = 'Dhcp,Dns,SourceNat,PortForwarding,UserData,StaticNat'
vpc_off = VpcOffering.create(
self.apiclient,
self.services["vpc_offering"]
)
self.cleanup.append(vpc_off)
self.validate_vpc_offering(vpc_off)
self.debug("Enabling the VPC offering created")
vpc_off.update(self.apiclient, state='Enabled')
self.debug("creating a VPC network in the account: %s" %
self.account.name)
self.services["vpc"]["cidr"] = '10.1.1.1/16'
vpc = VPC.create(
self.apiclient,
self.services["vpc"],
vpcofferingid=vpc_off.id,
zoneid=self.zone.id,
account=self.account.name,
domainid=self.account.domainid
)
self.validate_vpc_network(vpc)
self.debug("Creating network offering without SourceNAT service")
self.services["network_offering"]["supportedservices"] = 'Dhcp,Dns,PortForwarding,Lb,UserData,StaticNat,NetworkACL'
self.services["network_offering"]["serviceProviderList"] = {
"Dhcp": 'VpcVirtualRouter',
"Dns": 'VpcVirtualRouter',
"PortForwarding": 'VpcVirtualRouter',
"Lb": 'VpcVirtualRouter',
"UserData": 'VpcVirtualRouter',
"StaticNat": 'VpcVirtualRouter',
"NetworkACL": 'VpcVirtualRouter'
}
self.debug("Creating network offering without SourceNAT")
with self.assertRaises(Exception):
NetworkOffering.create(
self.apiclient,
self.services["network_offering"],
conservemode=False
)
self.debug("Network creation failed as VPC doesn't have LB service")
return
@data("network_off_shared", "network_offering_vpcns")
@attr(tags=["advanced", "intervlan"])
def test_09_create_network_shared_nwoff(self, value):
""" Test create network with shared network offering
"""
# Validate the following
# 1. Create VPC Offering using Default Offering
# 2. Create a VPC using the above VPC offering
# 3. Create a network offering with guest type=shared
# 4. Create a network using the network offering created in step3 as part of this VPC
# 5. Create network fails since it using shared offering
# 6. Repeat test for offering which has Netscaler as external LB provider
if (value == "network_offering_vpcns" and self.ns_configured == False):
self.skipTest('Netscaler not configured: skipping test')
if (value == "network_off_shared"):
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering',
listall=True
)
else:
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering with Netscaler',
listall=True
)
vpc_off=vpc_off_list[0]
self.debug("Creating a VPC with offering: %s" % vpc_off.id)
self.services["vpc"]["cidr"] = '10.1.1.1/16'
vpc = VPC.create(
self.apiclient,
self.services["vpc"],
vpcofferingid=vpc_off.id,
zoneid=self.zone.id,
account=self.account.name,
domainid=self.account.domainid
)
self.validate_vpc_network(vpc)
self.debug("Creating network offering with guesttype=shared")
self.network_offering = NetworkOffering.create(
self.apiclient,
self.services["network_off_shared"],
conservemode=False
)
# Enable Network offering
self.network_offering.update(self.apiclient, state='Enabled')
self.cleanup.append(self.network_offering)
# Creating network using the network offering created
self.debug(
"Creating network with network offering without SourceNAT: %s" %
self.network_offering.id)
with self.assertRaises(Exception):
Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id,
gateway='10.1.1.1',
vpcid=vpc.id
)
self.debug("Network creation failed")
return
@data("network_offering", "network_offering_vpcns")
@attr(tags=["advanced", "intervlan"])
def test_10_create_network_with_conserve_mode(self, value):
""" Test create network with conserve mode ON
"""
# Validate the following
# 1. Create a network offering with guest type=Isolated that has all
# supported Services(Vpn,dhcpdns,UserData, SourceNat,Static NAT,LB
# and PF,LB,NetworkAcl ) provided by VPCVR and conserve mode is ON
# 2. Create offering fails since Conserve mode ON isn't allowed within VPC
# 3. Repeat test for offering which has Netscaler as external LB provider
self.debug("Creating network offering with conserve mode = ON")
with self.assertRaises(Exception):
NetworkOffering.create(
self.apiclient,
self.services[value],
conservemode=True
)
self.debug(
"Network creation failed as VPC support nw with conserve mode OFF")
return
@ddt
class TestVPCNetworkRanges(cloudstackTestCase):
@classmethod
def setUpClass(cls):
cls.testClient = super(TestVPCNetworkRanges, cls).getClsTestClient()
cls.api_client = cls.testClient.getApiClient()
cls.services = Services().services
# Added an attribute to track if Netscaler addition was successful.
# Value is checked in tests and if not configured, Netscaler tests will be skipped
cls.ns_configured = False
# Get Zone, Domain and templates
cls.domain = get_domain(cls.api_client)
cls.zone = get_zone(cls.api_client, cls.testClient.getZoneForTests())
cls.template = get_template(
cls.api_client,
cls.zone.id,
cls.services["ostype"]
)
cls.services["virtual_machine"]["zoneid"] = cls.zone.id
cls.services["virtual_machine"]["template"] = cls.template.id
cls._cleanup = []
cls.service_offering = ServiceOffering.create(
cls.api_client,
cls.services["service_offering"]
)
cls._cleanup.append(cls.service_offering)
# Configure Netscaler device
# If configuration succeeds, set ns_configured to True so that Netscaler tests are executed
try:
cls.netscaler = add_netscaler(cls.api_client, cls.zone.id, cls.services["netscaler"])
cls._cleanup.append(cls.netscaler)
cls.ns_configured = True
except Exception as e:
cls.debug("Warning: Couldn't configure Netscaler: %s" % e)
return
@classmethod
def tearDownClass(cls):
try:
#Cleanup resources used
cleanup_resources(cls.api_client, cls._cleanup)
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
return
def setUp(self):
self.apiclient = self.testClient.getApiClient()
self.dbclient = self.testClient.getDbConnection()
self.account = Account.create(
self.apiclient,
self.services["account"],
admin=True,
domainid=self.domain.id
)
self.cleanup = [self.account, ]
return
def tearDown(self):
try:
cleanup_resources(self.apiclient, self.cleanup)
except Exception as e:
self.debug("Warning: Exception during cleanup : %s" % e)
return
def validate_vpc_offering(self, vpc_offering):
"""Validates the VPC offering"""
self.debug("Check if the VPC offering is created successfully?")
vpc_offs = VpcOffering.list(
self.apiclient,
id=vpc_offering.id
)
self.assertEqual(
isinstance(vpc_offs, list),
True,
"List VPC offerings should return a valid list"
)
self.assertEqual(
vpc_offering.name,
vpc_offs[0].name,
"Name of the VPC offering should match with listVPCOff data"
)
self.debug(
"VPC offering is created successfully - %s" %
vpc_offering.name)
return
def validate_vpc_network(self, network, state=None):
"""Validates the VPC network"""
self.debug("Check if the VPC network is created successfully?")
vpc_networks = VPC.list(
self.apiclient,
id=network.id
)
self.assertEqual(
isinstance(vpc_networks, list),
True,
"List VPC network should return a valid list"
)
self.assertEqual(
network.name,
vpc_networks[0].name,
"Name of the VPC network should match with listVPC data"
)
if state:
self.assertEqual(
vpc_networks[0].state,
state,
"VPC state should be '%s'" % state
)
self.debug("VPC network validated - %s" % network.name)
return
@data("network_offering", "network_offering_vpcns")
@attr(tags=["advanced", "intervlan"])
def test_01_create_network_outside_range(self, value):
""" Test create network outside cidr range of VPC
"""
# Validate the following
# 1. Create a VPC with cidr - 10.1.1.1/16
# 2. Add network1 with cidr - 10.2.1.1/24 to this VPC
# 3. Network creation should fail.
# 4. Repeat test for offering which has Netscaler as external LB provider
if (value == "network_offering_vpcns" and self.ns_configured == False):
self.skipTest('Netscaler not configured: skipping test')
if (value == "network_offering"):
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering',
listall=True
)
else:
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering with Netscaler',
listall=True
)
vpc_off=vpc_off_list[0]
self.debug("Creating a VPC with offering: %s" % vpc_off.id)
self.services["vpc"]["cidr"] = '10.1.1.1/16'
vpc = VPC.create(
self.apiclient,
self.services["vpc"],
vpcofferingid=vpc_off.id,
zoneid=self.zone.id,
account=self.account.name,
domainid=self.account.domainid
)
self.validate_vpc_network(vpc)
self.debug("Creating network offering")
self.network_offering = NetworkOffering.create(
self.apiclient,
self.services[value],
conservemode=False
)
# Enable Network offering
self.network_offering.update(self.apiclient, state='Enabled')
self.cleanup.append(self.network_offering)
# Creating network using the network offering created
self.debug("Creating network outside of the VPC's network")
with self.assertRaises(Exception):
Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id,
gateway='10.2.1.1',
vpcid=vpc.id
)
self.debug(
"Network creation failed as network cidr range is outside of vpc")
return
@attr(tags=["advanced", "intervlan", "selfservice"])
def test_02_create_network_outside_range(self):
""" Test create network outside cidr range of VPC
"""
# Validate the following
# 1. Create a VPC with cidr - 10.1.1.1/16
# 2. Add network1 with cidr - 10.2.1.1/24 to this VPC
# 3. Network creation should fail.
# 4. Repeat test for offering which has Netscaler as external LB provider
self.debug("Creating a VPC offering")
vpc_off = VpcOffering.create(
self.apiclient,
self.services["vpc_offering"]
)
self.cleanup.append(vpc_off)
self.validate_vpc_offering(vpc_off)
self.debug("Enabling the VPC offering created")
vpc_off.update(self.apiclient, state='Enabled')
self.debug("creating a VPC network with cidr: 10.1.1.1/16")
self.services["vpc"]["cidr"] = '10.1.1.1/16'
vpc = VPC.create(
self.apiclient,
self.services["vpc"],
vpcofferingid=vpc_off.id,
zoneid=self.zone.id,
account=self.account.name,
domainid=self.account.domainid
)
self.validate_vpc_network(vpc)
self.debug("Creating network offering")
self.network_offering = NetworkOffering.create(
self.apiclient,
self.services["network_offering"],
conservemode=False
)
# Enable Network offering
self.network_offering.update(self.apiclient, state='Enabled')
self.cleanup.append(self.network_offering)
# Creating network using the network offering created
self.debug("Creating network outside of the VPC's network")
with self.assertRaises(Exception):
Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id,
gateway='10.2.1.1',
vpcid=vpc.id
)
self.debug(
"Network creation failed as network cidr range is outside of vpc")
return
@data("network_offering", "network_offering_vpcns")
@attr(tags=["advanced", "intervlan"])
def test_03_create_network_inside_range(self, value):
""" Test create network inside cidr range of VPC
"""
# Validate the following
# 1. Create a VPC with cidr - 10.1.1.1/16
# 2. Add network1 with cidr - 10.1.1.1/8 to this VPC
# 3. Network creation should fail.
# 4. Repeat test for offering which has Netscaler as external LB provider
if (value == "network_offering_vpcns" and self.ns_configured == False):
self.skipTest('Netscaler not configured: skipping test')
if (value == "network_offering"):
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering',
listall=True
)
else:
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering with Netscaler',
listall=True
)
vpc_off=vpc_off_list[0]
self.debug("Creating a VPC with offering: %s" % vpc_off.id)
self.debug("creating a VPC network with cidr: 10.1.1.1/16")
self.services["vpc"]["cidr"] = '10.1.1.1/16'
vpc = VPC.create(
self.apiclient,
self.services["vpc"],
vpcofferingid=vpc_off.id,
zoneid=self.zone.id,
account=self.account.name,
domainid=self.account.domainid
)
self.validate_vpc_network(vpc)
self.debug("Creating network offering")
self.network_offering = NetworkOffering.create(
self.apiclient,
self.services[value],
conservemode=False
)
# Enable Network offering
self.network_offering.update(self.apiclient, state='Enabled')
self.cleanup.append(self.network_offering)
# Creating network using the network offering created
self.debug("Creating network inside of the VPC's network")
with self.assertRaises(Exception):
# cidr = 10.1.1.1/8 -> netmask = 255.0.0.0, gateway = 10.1.1.1
self.services["network"]["netmask"] = '255.0.0.0'
Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id,
gateway='10.1.1.1',
vpcid=vpc.id
)
self.debug(
"Network creation failed as network cidr range is inside of vpc")
return
@data("network_offering", "network_offering_vpcns")
@attr(tags=["advanced", "intervlan"])
def test_04_create_network_overlapping_range(self, value):
""" Test create network overlapping cidr range of VPC
"""
# Validate the following
# 1. Create a VPC with cidr - 10.1.1.1/16
# 2. Add network1 with cidr - 10.1.1.1/24 to this VPC
# 3. Add network2 with cidr - 10.1.1.1/24 to this VPC
# 4. Add network3 with cidr - 10.1.1.1/26 to this VPC
# 5. Network creation in step 3 & 4 should fail.
# 6. Repeat test for offering which has Netscaler as external LB provider
self.services = Services().services
if (value == "network_offering_vpcns" and self.ns_configured == False):
self.skipTest('Netscaler not configured: skipping test')
if (value == "network_offering"):
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering',
listall=True
)
else:
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering with Netscaler',
listall=True
)
vpc_off=vpc_off_list[0]
self.debug("Creating a VPC with offering: %s" % vpc_off.id)
self.debug("creating a VPC network with cidr: 10.1.1.1/16")
self.services["vpc"]["cidr"] = '10.1.1.1/16'
vpc = VPC.create(
self.apiclient,
self.services["vpc"],
vpcofferingid=vpc_off.id,
zoneid=self.zone.id,
account=self.account.name,
domainid=self.account.domainid
)
self.validate_vpc_network(vpc)
self.debug("Creating network offering")
self.network_offering = NetworkOffering.create(
self.apiclient,
self.services[value],
conservemode=False
)
# Enable Network offering
self.network_offering.update(self.apiclient, state='Enabled')
self.cleanup.append(self.network_offering)
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" %
self.network_offering.id)
network = Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id,
gateway='10.1.1.1',
vpcid=vpc.id
)
self.debug("Created network with ID: %s" % network.id)
self.debug(
"Verifying list network response to check if network created?")
networks = Network.list(
self.apiclient,
id=network.id,
listall=True
)
self.assertEqual(
isinstance(networks, list),
True,
"List networks should return a valid response"
)
nw = networks[0]
self.assertEqual(
nw.networkofferingid,
self.network_offering.id,
"Network should be created from network offering - %s" %
self.network_offering.id
)
self.assertEqual(
nw.vpcid,
vpc.id,
"Network should be created in VPC: %s" % vpc.name
)
# Creating network using the network offering created
self.debug(
"Creating network with same network range as of previous network")
with self.assertRaises(Exception):
Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id,
gateway='10.1.1.1',
vpcid=vpc.id
)
self.debug("Network creation as network range 10.1.1.1/24 is same" + \
"as that of existing network")
self.debug("Creating network having overlapping network ranges")
with self.assertRaises(Exception):
# cidr = 10.1.1.1/8 -> netmask=255.255.255.192, gateway=10.1.1.1
self.services["network"]["netmask"] = '255.255.255.192'
Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id,
gateway='10.1.1.1',
vpcid=vpc.id
)
self.debug(
"Network creation failed as network range overlaps each other")
return
@data("network_offering", "network_offering_vpcns")
@attr(tags=["advanced", "intervlan"])
def test_05_create_network_diff_account(self, value):
""" Test create network from different account in VPC
"""
# Validate the following
# 1. Create a VPC with cidr - 10.1.1.1/16
# 2. Add network1 with cidr - 10.1.1.1/24 to this VPC
# 3. Create another account
# 4. Create network using this account - Network creation should fail
# 5. Repeat test for offering which has Netscaler as external LB provider
if (value == "network_offering_vpcns" and self.ns_configured == False):
self.skipTest('Netscaler not configured: skipping test')
if (value == "network_offering"):
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering',
listall=True
)
else:
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering with Netscaler',
listall=True
)
vpc_off=vpc_off_list[0]
self.debug("Creating a VPC with offering: %s" % vpc_off.id)
self.debug("creating a VPC network with cidr: 10.1.1.1/16")
self.services["vpc"]["cidr"] = '10.1.1.1/16'
vpc = VPC.create(
self.apiclient,
self.services["vpc"],
vpcofferingid=vpc_off.id,
zoneid=self.zone.id,
account=self.account.name,
domainid=self.account.domainid
)
self.validate_vpc_network(vpc)
self.debug("Creating network offering")
self.network_offering = NetworkOffering.create(
self.apiclient,
self.services[value],
conservemode=False
)
# Enable Network offering
self.network_offering.update(self.apiclient, state='Enabled')
self.cleanup.append(self.network_offering)
self.debug(
"Creating the new account to create new network in VPC: %s" %
vpc.name)
account = Account.create(
self.apiclient,
self.services["account"],
admin=True,
domainid=self.domain.id
)
self.cleanup.append(account)
# Creating network using the network offering created
self.debug("Creating network from diff account than VPC")
with self.assertRaises(Exception):
# cidr = 10.1.1.1/8 -> netmask = 255.0.0.0, gateway = 10.1.1.1
self.services["network"]["netmask"] = '255.0.0.0'
Network.create(
self.apiclient,
self.services["network"],
accountid=account.name,
domainid=account.domainid,
networkofferingid=self.network_offering.id,
zoneid=self.zone.id,
gateway='10.1.1.1',
vpcid=vpc.id
)
self.debug(
"Network creation failed as VPC belongs to different account")
return
class TestVPCNetworkUpgrade(cloudstackTestCase):
@classmethod
def setUpClass(cls):
cls.testClient = super(TestVPCNetworkUpgrade, cls).getClsTestClient()
cls.api_client = cls.testClient.getApiClient()
cls.services = Services().services
# Get Zone, Domain and templates
cls.domain = get_domain(cls.api_client)
cls.zone = get_zone(cls.api_client, cls.testClient.getZoneForTests())
cls.template = get_template(
cls.api_client,
cls.zone.id,
cls.services["ostype"]
)
cls.services["virtual_machine"]["zoneid"] = cls.zone.id
cls.services["virtual_machine"]["template"] = cls.template.id
cls._cleanup = []
cls.service_offering = ServiceOffering.create(
cls.api_client,
cls.services["service_offering"]
)
cls._cleanup.append(cls.service_offering)
return
@classmethod
def tearDownClass(cls):
try:
#Cleanup resources used
cleanup_resources(cls.api_client, cls._cleanup)
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
return
def setUp(self):
self.apiclient = self.testClient.getApiClient()
self.dbclient = self.testClient.getDbConnection()
self.account = Account.create(
self.apiclient,
self.services["account"],
admin=True,
domainid=self.domain.id
)
self.cleanup = [self.account, ]
return
def tearDown(self):
try:
cleanup_resources(self.apiclient, self.cleanup)
except Exception as e:
self.debug("Warning: Exception during cleanup : %s" % e)
return
def validate_vpc_offering(self, vpc_offering):
"""Validates the VPC offering"""
self.debug("Check if the VPC offering is created successfully?")
vpc_offs = VpcOffering.list(
self.apiclient,
id=vpc_offering.id
)
self.assertEqual(
isinstance(vpc_offs, list),
True,
"List VPC offerings should return a valid list"
)
self.assertEqual(
vpc_offering.name,
vpc_offs[0].name,
"Name of the VPC offering should match with listVPCOff data"
)
self.debug(
"VPC offering is created successfully - %s" %
vpc_offering.name)
return
def validate_vpc_network(self, network, state=None):
"""Validates the VPC network"""
self.debug("Check if the VPC network is created successfully?")
vpc_networks = VPC.list(
self.apiclient,
id=network.id
)
self.assertEqual(
isinstance(vpc_networks, list),
True,
"List VPC network should return a valid list"
)
self.assertEqual(
network.name,
vpc_networks[0].name,
"Name of the VPC network should match with listVPC data"
)
if state:
self.assertEqual(
vpc_networks[0].state,
state,
"VPC state should be '%s'" % state
)
self.debug("VPC network validated - %s" % network.name)
return
@attr(tags=["advanced", "intervlan", "provisioning"])
def test_01_network_services_upgrade(self):
""" Test update Network that is part of a VPC to a network offering that has more services
"""
# Validate the following
# 1. Create a VPC with cidr - 10.1.1.1/16
# 2. Create a Network offering - NO1 with all supported services
# except PF services provided by VRVPC provider, conserve mode=OFF
# 3.Create a Network offering - NO2 with all supported services
# including Pf services provided by VRVPC provider,conserve mode=OFF
# 4. Add network1(10.1.1.1/24) using N01 to this VPC.
# 5. Deploy vm1 and vm2 in network1.
# 6. Create a Static Nat and LB rules for vms in network1.
# 7. Make sure you are not allowed to create a PF rule for any Vm in
# network1 and the Static Nat and LB rules for vms work as expected
# 8. Update network1 to NO2.
self.debug("Creating a VPC offering..")
vpc_off_list=VpcOffering.list(
self.apiclient,
name='Default VPC offering',
listall=True
)
vpc_off=vpc_off_list[0]
self.debug("Creating a VPC with offering: %s" % vpc_off.id)
self.services["vpc"]["cidr"] = '10.1.1.1/16'
vpc = VPC.create(
self.apiclient,
self.services["vpc"],
vpcofferingid=vpc_off.id,
zoneid=self.zone.id,
account=self.account.name,
domainid=self.account.domainid
)
self.validate_vpc_network(vpc)
nw_off = NetworkOffering.create(
self.apiclient,
self.services["network_offering"],
conservemode=False
)
# Enable Network offering
nw_off.update(self.apiclient, state='Enabled')
self.cleanup.append(nw_off)
self.services["network_offering"]["supportedservices"] = 'Vpn,Dhcp,Dns,SourceNat,UserData,Lb,StaticNat,NetworkACL'
self.services["network_offering"]["serviceProviderList"] = {
"Vpn": 'VpcVirtualRouter',
"Dhcp": 'VpcVirtualRouter',
"Dns": 'VpcVirtualRouter',
"SourceNat": 'VpcVirtualRouter',
"Lb": 'VpcVirtualRouter',
"UserData": 'VpcVirtualRouter',
"StaticNat": 'VpcVirtualRouter',
"NetworkACL": 'VpcVirtualRouter'
}
nw_off_no_pf = NetworkOffering.create(
self.apiclient,
self.services["network_offering"],
conservemode=False
)
# Enable Network offering
nw_off_no_pf.update(self.apiclient, state='Enabled')
self.cleanup.append(nw_off_no_pf)
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" %
nw_off_no_pf.id)
network_1 = Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=nw_off_no_pf.id,
zoneid=self.zone.id,
gateway='10.1.1.1',
vpcid=vpc.id
)
self.debug("Created network with ID: %s" % network_1.id)
self.debug("deploying VMs in network: %s" % network_1.name)
# Spawn an instance in that network
vm_1 = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
accountid=self.account.name,
domainid=self.account.domainid,
serviceofferingid=self.service_offering.id,
networkids=[str(network_1.id)]
)
self.debug("Deployed VM in network: %s" % network_1.id)
vm_2 = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
accountid=self.account.name,
domainid=self.account.domainid,
serviceofferingid=self.service_offering.id,
networkids=[str(network_1.id)]
)
self.debug("Deployed another VM in network: %s" % network_1.id)
self.debug("Associating public IP for network: %s" % network_1.name)
public_ip_1 = PublicIPAddress.create(
self.apiclient,
accountid=self.account.name,
zoneid=self.zone.id,
domainid=self.account.domainid,
networkid=network_1.id,
vpcid=vpc.id
)
self.debug("Associated %s with network %s" % (
public_ip_1.ipaddress.ipaddress,
network_1.id
))
self.debug("Creating LB rule for IP address: %s" %
public_ip_1.ipaddress.ipaddress)
lb_rule = LoadBalancerRule.create(
self.apiclient,
self.services["lbrule"],
ipaddressid=public_ip_1.ipaddress.id,
accountid=self.account.name,
networkid=network_1.id,
vpcid=vpc.id,
domainid=self.account.domainid
)
self.debug("Adding virtual machines %s to LB rule" % vm_1.name)
lb_rule.assign(self.apiclient, [vm_1])
self.debug("Associating public IP for network: %s" % network_1.name)
public_ip_2 = PublicIPAddress.create(
self.apiclient,
accountid=self.account.name,
zoneid=self.zone.id,
domainid=self.account.domainid,
networkid=network_1.id,
vpcid=vpc.id
)
self.debug("Associated %s with network %s" % (
public_ip_2.ipaddress.ipaddress,
network_1.id
))
self.debug("Enabling static NAT for IP: %s" %
public_ip_2.ipaddress.ipaddress)
try:
StaticNATRule.enable(
self.apiclient,
ipaddressid=public_ip_2.ipaddress.id,
virtualmachineid=vm_2.id,
networkid=network_1.id
)
self.debug("Static NAT enabled for IP: %s" %
public_ip_2.ipaddress.ipaddress)
except Exception as e:
self.fail("Failed to enable static NAT on IP: %s - %s" % (
public_ip_2.ipaddress.ipaddress, e))
public_ips = PublicIPAddress.list(
self.apiclient,
networkid=network_1.id,
listall=True,
isstaticnat=True,
account=self.account.name,
domainid=self.account.domainid
)
self.assertEqual(
isinstance(public_ips, list),
True,
"List public Ip for network should list the Ip addr"
)
self.assertEqual(
public_ips[0].ipaddress,
public_ip_2.ipaddress.ipaddress,
"List public Ip for network should list the Ip addr"
)
self.debug("Adding NetwrokACl rules to make PF and LB accessible")
NetworkACL.create(
self.apiclient,
networkid=network_1.id,
services=self.services["lbrule"],
traffictype='Ingress'
)
self.debug(
"Adding Egress rules to network %s to access internet" %
(network_1.name))
NetworkACL.create(
self.apiclient,
networkid=network_1.id,
services=self.services["icmp_rule"],
traffictype='Egress'
)
self.debug("Checking if we can SSH into VM_1? - IP: %s" %
public_ip_1.ipaddress.ipaddress)
try:
ssh_1 = vm_1.get_ssh_client(
ipaddress=public_ip_1.ipaddress.ipaddress,
reconnect=True,
port=self.services["lbrule"]["publicport"]
)
self.debug("SSH into VM is successfully")
self.debug("Verifying if we can ping to outside world from VM?")
# Ping to outsite world
res = ssh_1.execute("ping -c 1 www.google.com")
# res = 64 bytes from maa03s17-in-f20.1e100.net (74.125.236.212):
# icmp_req=1 ttl=57 time=25.9 ms
# --- www.l.google.com ping statistics ---
# 1 packets transmitted, 1 received, 0% packet loss, time 0ms
# rtt min/avg/max/mdev = 25.970/25.970/25.970/0.000 ms
except Exception as e:
self.fail("Failed to SSH into VM - %s, %s" %
(public_ip_1.ipaddress.ipaddress, e))
result = str(res)
self.debug("Result: %s" % result)
self.assertEqual(
result.count("1 received"),
1,
"Ping to outside world from VM should be successful"
)
self.debug("Checking if we can SSH into VM_2?")
try:
ssh_2 = vm_2.get_ssh_client(
ipaddress=public_ip_2.ipaddress.ipaddress,
reconnect=True,
port=self.services["natrule"]["publicport"]
)
self.debug("SSH into VM is successfully")
self.debug("Verifying if we can ping to outside world from VM?")
res = ssh_2.execute("ping -c 1 www.google.com")
except Exception as e:
self.fail("Failed to SSH into VM - %s, %s" %
(public_ip_2.ipaddress.ipaddress, e))
result = str(res)
self.debug("Result: %s" % result)
self.assertEqual(
result.count("1 received"),
1,
"Ping to outside world from VM should be successful"
)
self.debug("Associating public IP for network: %s" % vpc.name)
public_ip_3 = PublicIPAddress.create(
self.apiclient,
accountid=self.account.name,
zoneid=self.zone.id,
domainid=self.account.domainid,
networkid=network_1.id,
vpcid=vpc.id
)
self.debug("Associated %s with network %s" % (
public_ip_3.ipaddress.ipaddress,
network_1.id
))
self.debug("Creatinng NAT rule in network shall through exception?")
with self.assertRaises(Exception):
NATRule.create(
self.apiclient,
vm_1,
self.services["natrule"],
ipaddressid=public_ip_3.ipaddress.id,
openfirewall=False,
networkid=network_1.id,
vpcid=vpc.id
)
self.debug("Create NAT rule failed!")
self.debug(
"Stopping all the virtual machines in network before upgrade")
try:
vm_1.stop(self.apiclient)
vm_2.stop(self.apiclient)
except Exception as e:
self.fail("Failed to stop VMs, %s" % e)
# When all Vms ain network are stopped, network state changes from Implemented --> Shutdown --> Allocated
# We can't update the network when it is in Shutodown state, hence we should wait for the state to change to
# Allocated and then update the network
retriesCount = 10
while True:
networks = list_networks(self.apiclient, id=network_1.id)
self.assertEqual(validateList(networks)[0], PASS, "networks list validation failed, list id %s" % networks)
self.debug("network state is %s" % networks[0].state)
if networks[0].state == "Allocated":
break
if retriesCount == 0:
self.fail("Network state should change to Allocated, it is %s" % networks[0].state)
retriesCount -= 1
time.sleep(6)
self.debug("Upgrading network offering to support PF services")
try:
network_1.update(
self.apiclient,
networkofferingid=nw_off.id
)
except Exception as e:
self.fail("failed to upgrade the network offering- %s" % e)
self.debug(
"Starting all the virtual machines in network after upgrade")
try:
vm_1.start(self.apiclient)
vm_2.start(self.apiclient)
except Exception as e:
self.fail("Failed to start VMs, %s" % e)
NATRule.create(
self.apiclient,
vm_1,
self.services["natrule"],
ipaddressid=public_ip_3.ipaddress.id,
openfirewall=False,
networkid=network_1.id,
vpcid=vpc.id
)
self.debug("Adding NetwrokACl rules to make NAT rule accessible")
NetworkACL.create(
self.apiclient,
networkid=network_1.id,
services=self.services["natrule"],
traffictype='Ingress'
)
self.debug("Checking if we can SSH into VM using NAT rule?")
try:
ssh_3 = vm_1.get_ssh_client(
ipaddress=public_ip_3.ipaddress.ipaddress,
reconnect=True,
port=self.services["natrule"]["publicport"]
)
self.debug("SSH into VM is successfully")
self.debug("Verifying if we can ping to outside world from VM?")
res = ssh_3.execute("ping -c 1 www.google.com")
except Exception as e:
self.fail("Failed to SSH into VM - %s, %s" %
(public_ip_3.ipaddress.ipaddress, e))
result = str(res)
self.assertEqual(
result.count("1 received"),
1,
"Ping to outside world from VM should be successful"
)
return
@attr(tags=["advanced", "intervlan", "provisioning"])
def test_02_network_vpcvr2vr_upgrade(self):
""" Test update Network that is NOT part of a VPC to a nw offering that has services that are provided by VPCVR and vice versa
"""
# Validate the following
# 1. Create a Network offering - NO1 with all supported services
# except PF services provided by VRVPC provider, conserve mode=OFF
# 2.Create a Network offering - NO2 with all supported services
# including Pf services provided by VR provider, conserve mode=OFF
# 3. Deploy a Vm using a network, network1 created from NO2
# 4. Update network1 to NO1.
self.debug("Creating a VPC offering..")
vpc_off = VpcOffering.create(
self.apiclient,
self.services["vpc_offering"]
)
self.cleanup.append(vpc_off)
self.validate_vpc_offering(vpc_off)
self.debug("Enabling the VPC offering created")
vpc_off.update(self.apiclient, state='Enabled')
self.debug("creating a VPC network in the account: %s" %
self.account.name)
self.services["vpc"]["cidr"] = '10.1.1.1/16'
vpc = VPC.create(
self.apiclient,
self.services["vpc"],
vpcofferingid=vpc_off.id,
zoneid=self.zone.id,
account=self.account.name,
domainid=self.account.domainid
)
self.validate_vpc_network(vpc)
nw_off = NetworkOffering.create(
self.apiclient,
self.services["network_offering"],
conservemode=False
)
# Enable Network offering
nw_off.update(self.apiclient, state='Enabled')
self.cleanup.append(nw_off)
self.services["network_offering"]["supportedservices"] = 'Vpn,Dhcp,Dns,SourceNat,PortForwarding,UserData,Lb,StaticNat'
self.services["network_offering"]["serviceProviderList"] = {
"Vpn": 'VirtualRouter',
"Dhcp": 'VirtualRouter',
"Dns": 'VirtualRouter',
"SourceNat": 'VirtualRouter',
"PortForwarding": 'VirtualRouter',
"Lb": 'VirtualRouter',
"UserData": 'VirtualRouter',
"StaticNat": 'VirtualRouter',
}
nw_off_vr = NetworkOffering.create(
self.apiclient,
self.services["network_offering"],
conservemode=False
)
# Enable Network offering
nw_off_vr.update(self.apiclient, state='Enabled')
self.cleanup.append(nw_off_vr)
# Creating network using the network offering created
self.debug("Creating network with network offering: %s" % nw_off.id)
network_1 = Network.create(
self.apiclient,
self.services["network"],
accountid=self.account.name,
domainid=self.account.domainid,
networkofferingid=nw_off.id,
zoneid=self.zone.id,
gateway='10.1.1.1',
vpcid=vpc.id
)
self.debug("Created network with ID: %s" % network_1.id)
self.debug("deploying VMs in network: %s" % network_1.name)
# Spawn an instance in that network
vm_1 = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
accountid=self.account.name,
domainid=self.account.domainid,
serviceofferingid=self.service_offering.id,
networkids=[str(network_1.id)]
)
self.debug("Deployed VM in network: %s" % network_1.id)
self.debug(
"Stopping all the virtual machines in network before upgrade")
try:
vm_1.stop(self.apiclient)
except Exception as e:
self.fail("Failed to stop VMs, %s" % e)
self.debug("Upgrading network offering to support PF services")
with self.assertRaises(Exception):
network_1.update(
self.apiclient,
networkofferingid=nw_off_vr.id,
changecidr=True
)
return
class TestVPCNetworkGc(cloudstackTestCase):
@classmethod
def setUpClass(cls):
cls.testClient = super(TestVPCNetworkGc, cls).getClsTestClient()
cls.api_client = cls.testClient.getApiClient()
cls.services = Services().services
# Get Zone, Domain and templates
cls.domain = get_domain(cls.api_client)
cls.zone = get_zone(cls.api_client, cls.testClient.getZoneForTests())
cls.template = get_template(
cls.api_client,
cls.zone.id,
cls.services["ostype"]
)
cls.services["virtual_machine"]["zoneid"] = cls.zone.id
cls.services["virtual_machine"]["template"] = cls.template.id
cls._cleanup = []
cls.service_offering = ServiceOffering.create(
cls.api_client,
cls.services["service_offering"]
)
cls.vpc_off = VpcOffering.create(
cls.api_client,
cls.services["vpc_offering"]
)
cls.vpc_off.update(cls.api_client, state='Enabled')
cls.account = Account.create(
cls.api_client,
cls.services["account"],
admin=True,
domainid=cls.domain.id
)
cls._cleanup.append(cls.account)
cls.services["vpc"]["cidr"] = '10.1.1.1/16'
cls.vpc = VPC.create(
cls.api_client,
cls.services["vpc"],
vpcofferingid=cls.vpc_off.id,
zoneid=cls.zone.id,
account=cls.account.name,
domainid=cls.account.domainid
)
cls.nw_off = NetworkOffering.create(
cls.api_client,
cls.services["network_offering"],
conservemode=False
)
# Enable Network offering
cls.nw_off.update(cls.api_client, state='Enabled')
cls.network_1 = Network.create(
cls.api_client,
cls.services["network"],
accountid=cls.account.name,
domainid=cls.account.domainid,
networkofferingid=cls.nw_off.id,
zoneid=cls.zone.id,
gateway='10.1.1.1',
vpcid=cls.vpc.id
)
# Spawn an instance in that network
cls.vm_1 = VirtualMachine.create(
cls.api_client,
cls.services["virtual_machine"],
accountid=cls.account.name,
domainid=cls.account.domainid,
serviceofferingid=cls.service_offering.id,
networkids=[str(cls.network_1.id)]
)
cls.vm_2 = VirtualMachine.create(
cls.api_client,
cls.services["virtual_machine"],
accountid=cls.account.name,
domainid=cls.account.domainid,
serviceofferingid=cls.service_offering.id,
networkids=[str(cls.network_1.id)]
)
cls.public_ip_1 = PublicIPAddress.create(
cls.api_client,
accountid=cls.account.name,
zoneid=cls.zone.id,
domainid=cls.account.domainid,
networkid=cls.network_1.id,
vpcid=cls.vpc.id
)
cls.lb_rule = LoadBalancerRule.create(
cls.api_client,
cls.services["lbrule"],
ipaddressid=cls.public_ip_1.ipaddress.id,
accountid=cls.account.name,
networkid=cls.network_1.id,
vpcid=cls.vpc.id,
domainid=cls.account.domainid
)
cls.lb_rule.assign(cls.api_client, [cls.vm_1, cls.vm_2])
cls.public_ip_2 = PublicIPAddress.create(
cls.api_client,
accountid=cls.account.name,
zoneid=cls.zone.id,
domainid=cls.account.domainid,
networkid=cls.network_1.id,
vpcid=cls.vpc.id
)
StaticNATRule.enable(
cls.api_client,
ipaddressid=cls.public_ip_2.ipaddress.id,
virtualmachineid=cls.vm_1.id,
networkid=cls.network_1.id
)
cls.nwacl_lb = NetworkACL.create(
cls.api_client,
networkid=cls.network_1.id,
services=cls.services["lbrule"],
traffictype='Ingress'
)
cls.nwacl_internet_1 = NetworkACL.create(
cls.api_client,
networkid=cls.network_1.id,
services=cls.services["icmp_rule"],
traffictype='Egress'
)
return
@classmethod
def tearDownClass(cls):
try:
#Cleanup resources used
cleanup_resources(cls.api_client, cls._cleanup)
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
return
def setUp(self):
self.apiclient = self.testClient.getApiClient()
self.dbclient = self.testClient.getDbConnection()
# Stop all the VMs as part of test
vms = VirtualMachine.list(
self.apiclient,
account=self.account.name,
domainid=self.account.domainid,
listall=True
)
for vm in vms:
if vm.state == "Running":
cmd = stopVirtualMachine.stopVirtualMachineCmd()
cmd.id = vm.id
self.apiclient.stopVirtualMachine(cmd)
return
def tearDown(self):
# Start all the VMs after test execution
vms = VirtualMachine.list(
self.apiclient,
account=self.account.name,
domainid=self.account.domainid,
listall=True
)
for vm in vms:
if vm.state == "Stopped":
cmd = startVirtualMachine.startVirtualMachineCmd()
cmd.id = vm.id
self.apiclient.startVirtualMachine(cmd)
return
def validate_vpc_offering(self, vpc_offering):
"""Validates the VPC offering"""
self.debug("Check if the VPC offering is created successfully?")
vpc_offs = VpcOffering.list(
self.apiclient,
id=vpc_offering.id
)
self.assertEqual(
isinstance(vpc_offs, list),
True,
"List VPC offerings should return a valid list"
)
self.assertEqual(
vpc_offering.name,
vpc_offs[0].name,
"Name of the VPC offering should match with listVPCOff data"
)
self.debug(
"VPC offering is created successfully - %s" %
vpc_offering.name)
return
def validate_vpc_network(self, network, state=None):
"""Validates the VPC network"""
self.debug("Check if the VPC network is created successfully?")
vpc_networks = VPC.list(
self.apiclient,
id=network.id
)
self.assertEqual(
isinstance(vpc_networks, list),
True,
"List VPC network should return a valid list"
)
self.assertEqual(
network.name,
vpc_networks[0].name,
"Name of the VPC network should match with listVPC data"
)
if state:
self.assertEqual(
vpc_networks[0].state,
state,
"VPC state should be '%s'" % state
)
self.debug("VPC network validated - %s" % network.name)
return
@attr(tags=["advanced", "intervlan", "provisioning"])
def test_01_wait_network_gc(self):
""" Test network gc after shutdown of vms in the network
"""
# Validate the following
# 1. Stop vm1 and vm2
# 2. Wait for network GC
# 3. When the network GC thread is run, NIC relating to this guest
# network will get hot unplugged.
# 4. All the PF/Static NAT/LB rules for this network should be cleaned
# from VPCVR.
# 5. All network Acl should be cleaned from VPCVR.
# 6. All the network rules pertaining to the network in "Implemented"
# state should continue to work.
self.debug("Waiting for network garbage collection thread to run")
# Wait for the network garbage collection thread to run
wait_for_cleanup(self.apiclient,
["network.gc.interval", "network.gc.wait"])
lbrules = LoadBalancerRule.list(self.apiclient, networkid=self.network_1.id)
self.debug("List of LB Rules %s" % lbrules)
self.assertEqual(lbrules, None, "LBrules were not cleared after network GC thread is run")
return
@attr(tags=["advanced", "intervlan", "provisioning"])
def test_02_start_vm_network_gc(self):
""" Test network rules after starting a VpcVr that was shutdown after network.gc
"""
# Validate the following
# 1. Stop vm1 and vm2
# 2. Wait for network GC. Start 1st VM
# 3. All the network rules created shall continue to work.
self.debug("Waiting for network garbage collection thread to run")
# Wait for the network garbage collection thread to run
wait_for_cleanup(self.apiclient,
["network.gc.interval", "network.gc.wait"])
self.debug("Starting one of the virtual machine")
try:
self.vm_1.start(self.apiclient)
except Exception as e:
self.fail("Failed to start virtual machine: %s, %s" %
(self.vm_1.name, e))
try:
ssh_1 = self.vm_1.get_ssh_client(
ipaddress=self.public_ip_1.ipaddress.ipaddress,
reconnect=True,
port=self.services["lbrule"]["publicport"]
)
self.debug("SSH into VM is successfully")
self.debug("Verifying if we can ping to outside world from VM?")
# Ping to outsite world
res = ssh_1.execute("ping -c 1 www.google.com")
# res = 64 bytes from maa03s17-in-f20.1e100.net (74.125.236.212):
# icmp_req=1 ttl=57 time=25.9 ms
# --- www.l.google.com ping statistics ---
# 1 packets transmitted, 1 received, 0% packet loss, time 0ms
# rtt min/avg/max/mdev = 25.970/25.970/25.970/0.000 ms
except Exception as e:
self.fail("Failed to SSH into VM - %s, %s" %
(self.public_ip_1.ipaddress.ipaddress, e))
result = str(res)
self.debug("Result: %s" % result)
self.assertEqual(
result.count("1 received"),
1,
"Ping to outside world from VM should be successful"
)
self.debug("Checking if we can SSH into VM_2?")
try:
ssh_2 = self.vm_1.get_ssh_client(
ipaddress=self.public_ip_2.ipaddress.ipaddress,
reconnect=True,
port=self.services["natrule"]["publicport"]
)
self.debug("SSH into VM is successfully")
self.debug("Verifying if we can ping to outside world from VM?")
res = ssh_2.execute("ping -c 1 www.google.com")
except Exception as e:
self.fail("Failed to SSH into VM - %s, %s" %
(self.public_ip_2.ipaddress.ipaddress, e))
result = str(res)
self.debug("Result: %s" % result)
self.assertEqual(
result.count("1 received"),
1,
"Ping to outside world from VM should be successful"
)
return
@attr(tags=["advanced", "intervlan", "provisioning"])
def test_03_restart_vpcvr(self):
""" Test Stop all the Vms that are part of the a Network
(Wait for network GC).Restart VPCVR.
"""
# Validate the following
# 1. Stop vm3 and vm4
# 2. Wait for network GC. Restart VPC VR
# 3. All the network rules created shall continue to work.
self.debug("Starting instances 1 and 2")
try:
self.vm_1.start(self.apiclient)
self.vm_2.start(self.apiclient)
except Exception as e:
self.fail("Failed to start Virtual machines")
self.debug("Waiting for network garbage collection thread to run")
# Wait for the network garbage collection thread to run
wait_for_cleanup(self.apiclient,
["network.gc.interval", "network.gc.wait"])
self.debug("Finding the VPC virtual router for account: %s" %
self.account.name)
routers = Router.list(
self.apiclient,
account=self.account.name,
domainid=self.account.domainid,
listall=True
)
self.assertEqual(
isinstance(routers, list),
True,
"List routers shall return a valid list"
)
vpcvr = routers[0]
self.debug("restarting the VPC virtual router")
try:
Router.reboot(
self.apiclient,
id=vpcvr.id
)
except Exception as e:
self.fail("Failed to reboot the virtual router: %s, %s" %
(vpcvr.id, e))
try:
ssh_1 = self.vm_1.get_ssh_client(
ipaddress=self.public_ip_1.ipaddress.ipaddress,
reconnect=True,
port=self.services["lbrule"]["publicport"]
)
self.debug("SSH into VM is successfully")
self.debug("Verifying if we can ping to outside world from VM?")
# Ping to outsite world
res = ssh_1.execute("ping -c 1 www.google.com")
# res = 64 bytes from maa03s17-in-f20.1e100.net (74.125.236.212):
# icmp_req=1 ttl=57 time=25.9 ms
# --- www.l.google.com ping statistics ---
# 1 packets transmitted, 1 received, 0% packet loss, time 0ms
# rtt min/avg/max/mdev = 25.970/25.970/25.970/0.000 ms
except Exception as e:
self.fail("Failed to SSH into VM - %s, %s" %
(self.public_ip_1.ipaddress.ipaddress, e))
result = str(res)
self.debug("Result: %s" % result)
self.assertEqual(
result.count("1 received"),
1,
"Ping to outside world from VM should be successful"
)
self.debug("Checking if we can SSH into VM_2?")
try:
ssh_2 = self.vm_1.get_ssh_client(
ipaddress=self.public_ip_2.ipaddress.ipaddress,
reconnect=True,
port=self.services["natrule"]["publicport"]
)
self.debug("SSH into VM is successfully")
self.debug("Verifying if we can ping to outside world from VM?")
res = ssh_2.execute("ping -c 1 www.google.com")
except Exception as e:
self.fail("Failed to SSH into VM - %s, %s" %
(self.public_ip_2.ipaddress.ipaddress, e))
result = str(res)
self.debug("Result: %s" % result)
self.assertEqual(
result.count("1 received"),
1,
"Ping to outside world from VM should be successful"
)
return
| 44.470032
| 145
| 0.468734
| 10,054
| 112,776
| 5.176149
| 0.059578
| 0.058223
| 0.023193
| 0.027843
| 0.84641
| 0.825138
| 0.806114
| 0.786668
| 0.764743
| 0.746892
| 0
| 0.016802
| 0.452729
| 112,776
| 2,535
| 146
| 44.487574
| 0.826391
| 0.120522
| 0
| 0.737399
| 0
| 0
| 0.166847
| 0.011667
| 0
| 0
| 0
| 0.000394
| 0.02873
| 1
| 0.022177
| false
| 0.00252
| 0.004536
| 0
| 0.050907
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
68093459e022916c6a1cc0e9797abfd1b656b19c
| 34
|
py
|
Python
|
menos.py
|
Helper1010/Teste2
|
329d29f31e7ee3288577cca876ce5f2d07ac7ac1
|
[
"Apache-2.0"
] | null | null | null |
menos.py
|
Helper1010/Teste2
|
329d29f31e7ee3288577cca876ce5f2d07ac7ac1
|
[
"Apache-2.0"
] | null | null | null |
menos.py
|
Helper1010/Teste2
|
329d29f31e7ee3288577cca876ce5f2d07ac7ac1
|
[
"Apache-2.0"
] | null | null | null |
def mi (x,y,z):
return (x-z-y)
| 17
| 18
| 0.5
| 9
| 34
| 1.888889
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.235294
| 34
| 2
| 18
| 17
| 0.653846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
680d8508cae54b08be4f772f464814999e375a45
| 379,011
|
pyt
|
Python
|
eran/NNet/nnet/ACASXU_run2a_3_6_batch_2000_16bit.pyt
|
pauls658/ReluDiff-ICSE2020-Artifact
|
212854fe04f482183c239e5dfec70106a9a83df8
|
[
"Apache-2.0"
] | 7
|
2020-01-27T21:25:49.000Z
|
2022-01-07T04:37:37.000Z
|
eran/NNet/nnet/ACASXU_run2a_3_6_batch_2000_16bit.pyt
|
yqtianust/ReluDiff-ICSE2020-Artifact
|
149f6efe4799602db749faa576980c36921a07c7
|
[
"Apache-2.0"
] | 1
|
2022-01-25T17:41:54.000Z
|
2022-01-26T02:27:51.000Z
|
eran/NNet/nnet/ACASXU_run2a_3_6_batch_2000_16bit.pyt
|
yqtianust/ReluDiff-ICSE2020-Artifact
|
149f6efe4799602db749faa576980c36921a07c7
|
[
"Apache-2.0"
] | 3
|
2020-03-14T17:12:17.000Z
|
2022-03-16T09:50:46.000Z
|
ReLU
[[0.140207, -0.385229, -0.316845, 0.169229, 0.0745343], [-0.037912, -0.749023, -0.470807, 0.285368, -0.106546], [0.00435244, -0.453834, -0.11046, -0.318205, 0.190098], [-0.0204062, 1.435, -1.53779, 0.0913725, -0.278532], [-0.0218966, 0.738137, 0.127915, 0.808877, -0.700648], [-0.0093352, -0.473797, 0.361188, 0.266707, -0.549589], [0.0045278, -1.39097, 1.37838, 0.0141745, 0.257625], [2.5524, 0.0277086, -0.000263894, -0.0254454, 0.00891507], [0.22654, -0.495589, 0.55638, -0.103275, -0.0503934], [0.0373206, -1.08217, -0.274423, 1.15488, -1.43009], [-0.0168022, 0.000654163, 0.904823, 0.0765373, -0.0292264], [-0.0415141, -0.0772365, 0.0513954, -0.677107, -0.921774], [-0.0298151, -0.2906, 0.113042, -0.644719, 0.536459], [-0.469387, 0.366295, 0.109853, 0.307608, 0.0552237], [0.0721234, -0.482816, -0.0455717, 0.045253, 0.150744], [0.0462181, -0.738632, -0.133451, 0.29679, -0.5381], [0.0761431, -0.821547, 1.45986, 0.197464, -0.283503], [-0.0397871, -0.33897, -0.436032, 0.299139, -0.123732], [0.0326499, 0.856401, -1.03778, 0.174008, -0.354346], [-0.0166679, 0.00319843, 0.00692898, -0.0207083, -0.000533006], [0.0503386, -1.67646, 1.59931, 0.126881, 0.178284], [0.0127267, 0.517218, 0.160853, -0.746348, 0.0959449], [-0.210444, -0.0241386, -0.00742766, -0.148013, 0.0314403], [0.0224775, -0.462377, 0.453982, 0.917097, -1.54627], [-0.765935, 0.0522579, -0.684923, 0.0543382, 0.110509], [0.0264965, 0.392522, 0.542433, 0.0387044, -0.0461155], [0.384177, -0.0255294, -0.02546, 0.506913, -0.583891], [-0.062559, 1.45293, 0.146283, 1.17536, -1.66742], [0.748386, -0.00760808, -0.0242939, -0.0274818, 0.0282502], [-0.108128, 0.0147783, 0.0106323, -0.0420884, -1.77081], [0.00678782, 0.00414215, -0.0287392, 0.00694334, -0.000636107], [-0.00532232, 0.23355, -0.27664, -0.175135, -0.471746], [-0.0193616, 1.01709, -1.24733, -0.0472067, 0.383709], [-0.0190472, -0.231412, -0.682291, 0.190444, -0.178618], [0.267719, 0.0662094, -0.0395269, 0.156779, 0.0138538], [-1.3792, 0.161755, -0.122909, 0.00676816, -0.0964034], [0.0440855, -0.694901, -0.634338, -0.223792, 0.124004], [0.0326579, 0.989463, 0.834163, 0.565665, -0.367782], [-0.0638879, 1.24162, 0.0292144, -0.277796, 0.579851], [-0.00579483, 0.000844604, -0.000917693, 0.0206467, 0.000116682], [-0.0208318, 0.0656352, -0.00862192, -0.528943, -1.26223], [-0.00843177, 0.0334001, -0.045986, -0.393704, -0.509118], [0.00579119, 0.0609709, 0.00403692, -0.11539, 0.240058], [0.209797, 0.364639, -0.0456864, -0.247823, -1.20288], [-0.0142371, -1.53979, 1.10422, -0.00134073, -0.56396], [-0.0138316, 0.914442, -0.971446, -0.0101723, 0.151881], [0.10148, 0.934323, 0.32265, 0.171922, -0.0692922], [0.0376227, 0.912279, -0.852762, 0.416147, -0.820371], [0.0783986, 1.43183, -1.4054, 0.385647, -0.299436], [-0.0385435, 0.14888, -0.102264, -0.175573, 0.215404], [0.1403, -0.3853, -0.317, 0.1692, 0.0745], [-0.0379, -0.749, -0.4707, 0.2854, -0.10657], [0.004353, -0.4539, -0.1105, -0.318, 0.1901], [-0.0204, 1.435, -1.538, 0.0914, -0.2786], [-0.0219, 0.7383, 0.1279, 0.809, -0.7007], [-0.00934, -0.4739, 0.361, 0.2666, -0.55], [0.004528, -1.391, 1.378, 0.014175, 0.2576], [2.553, 0.02771, -0.000264, -0.02545, 0.00892], [0.2266, -0.4956, 0.556, -0.1033, -0.05038], [0.03732, -1.082, -0.2744, 1.155, -1.43], [-0.0168, 0.000654, 0.905, 0.07654, -0.02922], [-0.0415, -0.0772, 0.0514, -0.6772, -0.922], [-0.02982, -0.2905, 0.11304, -0.6445, 0.5366], [-0.4695, 0.3662, 0.10986, 0.3076, 0.05524], [0.07214, -0.483, -0.04556, 0.04526, 0.1508], [0.0462, -0.739, -0.1334, 0.2969, -0.538], [0.0762, -0.822, 1.46, 0.1975, -0.2834], [-0.0398, -0.3389, -0.436, 0.299, -0.1237], [0.03265, 0.8564, -1.038, 0.174, -0.3542], [-0.01666, 0.003199, 0.006927, -0.0207, -0.000533], [0.05032, -1.677, 1.6, 0.1268, 0.1783], [0.012726, 0.517, 0.1609, -0.7466, 0.09595], [-0.2104, -0.02414, -0.007427, -0.1481, 0.03143], [0.02248, -0.4624, 0.454, 0.917, -1.546], [-0.766, 0.05225, -0.685, 0.05435, 0.11053], [0.02649, 0.3926, 0.5425, 0.0387, -0.0461], [0.3843, -0.02553, -0.02547, 0.507, -0.584], [-0.06256, 1.453, 0.1462, 1.176, -1.667], [0.7485, -0.007607, -0.02429, -0.02748, 0.02824], [-0.10815, 0.01478, 0.010635, -0.04208, -1.7705], [0.006786, 0.004143, -0.02873, 0.006943, -0.000636], [-0.00532, 0.2335, -0.2766, -0.1752, -0.4717], [-0.01936, 1.018, -1.247, -0.0472, 0.3838], [-0.01904, -0.2314, -0.682, 0.1904, -0.1786], [0.2678, 0.0662, -0.03952, 0.1567, 0.013855], [-1.379, 0.1617, -0.1229, 0.006767, -0.0964], [0.0441, -0.695, -0.6343, -0.2238, 0.124], [0.03265, 0.9893, 0.834, 0.5654, -0.3677], [-0.0639, 1.241, 0.02922, -0.2778, 0.58], [-0.005795, 0.0008445, -0.000918, 0.02065, 0.0001167], [-0.02083, 0.0656, -0.00862, -0.529, -1.263], [-0.00843, 0.0334, -0.046, -0.3938, -0.5093], [0.00579, 0.06097, 0.004036, -0.1154, 0.2401], [0.2098, 0.3647, -0.0457, -0.2478, -1.203], [-0.01424, -1.54, 1.1045, -0.001341, -0.564], [-0.01383, 0.9146, -0.9717, -0.01017, 0.1519], [0.1015, 0.934, 0.3228, 0.1719, -0.0693], [0.03763, 0.912, -0.8525, 0.4163, -0.8203], [0.07837, 1.432, -1.405, 0.3857, -0.2993], [-0.03854, 0.1489, -0.10223, -0.1755, 0.2155]]
[-0.0447828, -0.100665, -0.166229, -0.114006, 0.210415, -0.181885, -0.502651, 0.702183, -0.270769, -0.0943819, 0.06036, -0.302562, -0.0503696, 0.0106708, 0.108355, 0.0376072, 0.191656, -0.021497, 0.0884792, -0.0217168, -0.421667, -0.300678, -0.0286992, 0.216254, -0.215151, 0.0309653, 0.115013, -0.209135, 0.00963673, -0.672377, -0.0248869, 0.135928, -0.38001, -0.0255957, 0.00773791, -0.265739, 0.117899, -0.222183, 0.13613, -0.0134143, -0.172525, 0.0511158, -0.0088401, -0.569296, -0.227852, -0.407178, 0.107573, -0.282991, -0.368997, 0.0385472, -0.04477, -0.10065, -0.1663, -0.114, 0.2104, -0.1819, -0.5024, 0.702, -0.2708, -0.09436, 0.06036, -0.3025, -0.05038, 0.01067, 0.10834, 0.0376, 0.1917, -0.0215, 0.0885, -0.02171, -0.4216, -0.3008, -0.0287, 0.2163, -0.2152, 0.03096, 0.115, -0.2091, 0.009636, -0.6724, -0.02489, 0.136, -0.3801, -0.02559, 0.007736, -0.2656, 0.1179, -0.2222, 0.1361, -0.01341, -0.1725, 0.05112, -0.00884, -0.5693, -0.2279, -0.4072, 0.10754, -0.283, -0.369, 0.03854]
ReLU
[[-2.39528, 0.293956, 0.0619025, -0.106357, 0.363723, 1.38196, -0.438323, 0.348173, 0.036361, -0.350549, -0.691871, 0.53093, 0.328049, 0.688566, -0.858151, 0.657069, -0.0352528, 0.144936, -0.0818826, -0.0272374, 0.618325, 0.463924, 1.72567, -0.73376, 0.313911, -0.240066, -1.25747, 0.165188, -0.641725, 0.336835, -0.134979, -0.0641518, 0.0360078, 0.455766, -0.0925955, 0.868902, 0.193114, -0.661422, 0.20421, -0.0460653, 0.24337, -0.0620018, 0.95039, 0.511507, 0.216734, -0.0708785, -0.363058, 0.552677, -0.259355, 0.426578, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.089442, -0.998823, -0.797326, -0.53906, -0.812414, 1.56656, 0.564436, 0.0168276, -0.333931, 0.404921, 1.40997, -0.193473, -0.241238, 0.0272487, 0.0411229, 0.479981, -0.54323, -0.565854, -0.775106, 0.0395785, -0.567888, 0.346081, 0.357159, -0.317893, -0.904497, 0.573021, 0.334856, -0.496148, -0.295695, -0.997333, 0.0058928, 0.22917, -0.899507, -0.337416, -0.0883809, -0.338307, 0.452139, 0.168785, 0.750528, -0.00161556, 0.54712, -0.124263, -0.289012, 0.370645, -0.303512, -3.44891, 0.410077, -0.605339, -0.73146, -0.0894983, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.158322, 0.342874, 2.04131, -0.168152, 0.285692, -1.67517, -3.44227, 0.17735, -0.534061, -0.882988, 0.905125, -0.13812, 1.80045, 0.190506, -0.197168, -0.421998, -0.368426, -0.874641, -1.43602, -0.00830609, -2.14215, -0.239627, 0.626933, -1.02417, 0.497184, 2.25234, -0.403417, 1.0984, -0.380026, -1.77998, 0.00430701, -0.0214942, 0.129643, 0.378881, 0.205181, 0.569013, 1.05146, 1.74247, -0.199633, -0.0527722, 0.608691, 0.387142, 0.0260669, -0.461357, -1.46792, 0.51464, 1.55569, 1.7587, -0.0322605, -0.467183, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0020447, -0.00274954, 0.034512, 0.0135046, 0.0106712, -0.0308821, -0.050134, 0.00389227, 0.0131522, -0.03333, -0.000495644, 0.0278711, -0.0253707, 0.0022874, -0.026683, -0.00245019, 0.00663456, -0.0317235, -0.0593867, 0.0272619, -0.0390449, -0.0248309, 0.029188, 0.00284746, 0.0358877, -0.0483045, 0.0208014, -0.0576627, 0.0242052, 0.0199409, 0.00975355, -0.0107093, -0.0490335, 0.00963029, -0.031109, -0.0441229, -0.00372475, -0.0472838, -0.0353642, 0.013335, -0.00981858, -0.0454787, -0.0495552, -0.0152391, 0.00365592, -0.00836527, 0.0122211, 0.0027217, 0.00104744, -0.0289748, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.879005, 0.455168, 1.09196, 0.0831917, -2.51549, -1.5635, 0.461897, -0.098441, 1.42054, -0.129611, 0.32833, 0.0430559, 0.638114, -1.28013, 0.821917, -0.326698, -0.0941303, 0.339071, 0.494766, 0.0412294, 0.544636, 0.828299, 0.00982216, 0.185514, -0.0489646, 0.178175, -0.830903, -0.0483274, 0.205856, -0.139326, -0.0770778, 0.523758, 0.226422, 1.84132, -0.297827, 0.432937, -0.412116, -2.47409, 0.336515, 0.00814962, -0.306744, 0.322422, -0.959074, -3.10348, 0.744107, -0.549351, 0.534967, -1.02328, -0.351021, 0.165693, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.20728, -1.308, -0.683638, 1.49326, 1.11346, 0.55262, 1.98578, -0.248829, 0.677533, -0.24291, 1.69194, -2.16854, 1.33836, -0.614967, -0.212939, 0.283889, 0.451996, -2.86611, 1.34906, 0.0326174, 1.71518, 0.996831, -1.5735, 0.166377, 0.616167, -0.288902, 0.359779, 0.35145, 0.285188, 1.14331, 0.0262201, -0.724984, 1.60045, -1.02618, -0.098415, -1.55225, -0.370441, -0.952522, -0.64051, -0.00986229, 1.78716, -0.113733, 1.16012, -3.64802, 0.709005, -0.533112, -1.64192, 1.75549, 1.04567, 0.70747, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.901072, 1.58202, -0.501251, 0.0877503, 0.521028, 0.950693, -0.35064, -0.0537924, -0.818576, -0.345676, 0.487989, 1.01515, 0.474312, 0.175628, 0.369977, 0.621791, -0.605946, 0.415526, -0.53251, -0.0358424, -0.558609, -0.777571, -1.86318, -0.943726, -1.84862, 1.22831, 0.172903, -0.103123, 0.305959, -0.774786, 0.0782254, -0.339605, -0.481759, -1.23795, 0.266274, -1.01137, -0.269937, 1.52844, -0.770653, 0.0415302, 0.171747, 0.156089, 0.509421, 1.23918, -0.733163, -0.158604, 0.696273, 0.421443, -1.15028, -0.508634, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0458322, 0.347237, -0.185988, -0.897391, 0.65997, -2.03142, -0.243948, 0.155153, 0.0597327, 0.106732, -0.517225, -0.957117, 1.21489, 0.30161, -1.20051, 0.138764, -0.412111, -0.913525, -0.294443, 0.0113288, -0.187065, -0.826643, -1.17069, -0.258118, 0.0341082, 0.281448, -0.984085, -0.0850269, -0.035594, -1.8777, 0.0623158, 0.729615, -0.986808, -0.945557, 0.178853, 0.329665, 0.594023, -0.27783, 0.272487, 0.0162082, 0.837093, -0.681783, -0.693598, 1.48949, 0.0252754, -1.31835, 1.16155, 1.26311, 0.239023, -1.37899, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.00141298, 0.0288762, 0.006114, -0.0376909, -0.0367145, -0.0393848, 0.00272724, 0.0100993, -0.0673815, 0.0328957, 0.0281952, 0.0249588, 0.0370396, 0.0284932, -0.0236465, -0.054758, 0.00703594, -0.0142603, 0.0191092, 0.00371309, -0.0397404, 0.0236166, 0.00286266, -0.0386851, -0.0186361, 0.0171042, 0.0116801, -0.0465795, 0.00400354, -0.040739, -0.00372371, -0.0367524, -0.00516665, 0.0129637, -1.30616e-05, -0.0683852, -0.059, 0.0275241, -0.0503693, -0.00506678, -0.00184207, 0.0157744, -0.036813, -0.0026223, -0.0447697, 0.0433547, -0.0409927, -0.0278231, 0.0293271, 0.0353551, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0497738, -0.0285085, -0.028138, -0.00540806, 0.0105053, -0.0460592, -0.0378042, -0.00215289, 0.0108343, -0.0498222, -0.0381778, -0.00675529, 0.0224997, 0.0164604, -0.00682682, -0.0401438, -0.0668894, -0.00119648, -0.036506, -0.0272053, -0.0344427, 0.0239555, 0.0288252, -0.00638854, -0.0290845, 0.000428327, -0.00681113, -0.0126341, 0.0210904, 0.027286, -0.0360327, -0.0287551, 0.00136393, -0.0389131, 0.0119627, 0.0194979, -0.0566392, 0.021768, 0.0208797, 0.0204934, 0.0227681, 0.00528822, 0.0114888, 0.0222716, -0.0126632, 0.0327548, -0.0667321, -0.0428675, 0.019927, -0.000455618, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.260763, 0.477422, -0.0670085, 0.114366, -0.16013, 0.092, -0.0188421, 0.179701, 0.365097, 0.255127, -0.0163144, 0.644019, 0.234283, 0.467486, 0.0276044, 0.446511, -0.0812584, 0.559828, -0.0883801, 0.0242609, 0.33182, -0.264422, -0.557177, 0.0858761, 0.417209, -0.174947, -0.0119483, 0.0881147, -0.519372, -0.611634, -0.0472772, -0.165161, 0.0882988, -0.136503, -0.254578, -0.118073, -0.466419, -0.250583, -0.128501, 0.0148737, -0.122836, 0.407086, 1.09875, -0.636739, 0.216343, 0.351358, -0.320122, -0.382138, 0.589269, 0.607698, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0651784, 1.1215, 0.875237, -3.01154, -1.7608, 0.139329, -0.132079, 0.0516041, 1.26198, -0.687856, -0.405307, 0.0609705, 1.01847, 0.332187, -0.618724, 0.0847426, -0.333522, 1.54164, -1.65843, 0.00196886, -0.0452931, -4.62415, 0.871554, 0.547692, 0.935902, -1.28891, -0.891534, -0.0342965, -0.0779366, 0.347044, -0.0290147, -0.201617, -7.76125, 0.0330874, -0.577186, 0.371253, -0.144012, -0.0163674, -0.166689, -0.0591598, -0.404768, 1.50212, 1.48881, 3.29476, 0.63446, -0.0473403, -1.60607, -0.0395937, 0.0259661, 1.63851, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.119052, -0.0628107, 0.788433, -1.285, 0.268193, 0.0340899, -0.0466573, -0.601176, 0.0688387, -0.0404417, 0.405503, 0.267816, 0.403759, -0.16116, 0.161782, 0.0897183, 0.328194, -0.0333896, 0.065715, -0.00713751, -0.363218, -0.850455, -0.121119, -0.118466, -0.577026, 0.150141, 0.548048, -0.234472, 0.668547, -0.880616, 0.0737511, 0.0422207, -0.832743, 0.0394725, 0.362016, 0.561308, 0.117393, -0.055911, -0.00698461, 0.00620346, 0.137066, -0.260401, 0.015368, 0.0189687, -0.105028, 0.00305076, -0.209812, -0.990519, 0.335024, 0.038889, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.37196, 1.91389, 0.0366198, 0.569838, -0.769257, 1.47319, 0.22573, -0.273399, 1.9092, -0.20241, 0.98353, -1.05463, -0.645521, -0.0805119, 0.599182, 0.213106, 0.896529, 0.00192277, 0.694016, 0.0122405, 0.523544, 0.732811, -0.100468, 0.366419, -1.37505, 0.0826807, 0.611525, -0.257749, -0.322566, -1.44374, -0.202111, 0.588626, -0.291535, 0.0416651, 0.691339, 2.26986, 1.3508, 0.458189, 1.66848, -0.0352245, 0.519, 0.284751, 0.885081, 0.00107862, 0.302743, -1.69132, -0.128079, -0.159287, -0.171613, 0.791363, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0353126, -0.0432018, -0.0278448, -0.0216853, 0.0234446, -0.0382142, 0.0367307, -0.0247676, -0.0378216, 0.0188508, -0.0138859, -0.0574878, 0.0359911, 0.00397191, 0.0279084, -0.0221488, 0.00207801, -0.0616269, -0.0221263, 0.0247753, -0.0358229, -0.0273076, -0.00170727, -0.00874654, -0.0315603, 0.00522282, 0.0278224, -0.0408854, 0.0204794, 0.0317049, 0.0270143, -0.0486031, -0.00680521, -0.00162201, -0.0245134, 0.0321375, -0.0405229, -0.00244063, -0.0303537, -0.0256383, -0.0593928, -0.0221899, -0.0542778, 0.0389832, -0.0380862, -0.0477809, 0.0350935, 0.0342906, -0.0166569, 0.00679173, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.627075, 0.336341, 0.00425491, -0.343631, -0.266438, 0.350038, 1.27553, 0.295649, 0.12715, -0.466302, 0.411875, 0.601803, -0.422126, -0.484868, -0.996663, 0.819105, -0.0784152, -0.0135323, 0.233696, -0.0028086, -0.427045, 0.204156, 0.266473, 0.00335655, 0.240711, 0.133525, -1.77742, -0.211891, -1.02954, 0.488308, -1.08753, -1.11906, -0.484537, 0.184111, -0.0853241, 2.89546, 0.119572, 0.278261, 0.288936, 0.015236, 0.122181, 0.0502121, -2.56367, 1.28193, -0.0848022, 1.4452, -0.421588, -0.319186, -0.299749, -0.549064, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.577841, 0.936795, 0.272808, -0.516662, -0.89069, 1.01271, 0.49795, 0.0900721, 0.055729, 1.13571, -0.129852, -0.199034, -0.545062, -0.455639, 0.983406, 0.630498, -0.179515, 0.909927, -0.555383, 0.0422649, -0.472451, 0.40868, 0.915089, 0.111863, 0.249609, -0.296512, 0.472918, -1.32419, -0.444564, 0.542819, -0.0231099, 0.279187, -1.45701, 1.17865, 0.258392, -0.310407, 0.635821, 0.127792, 1.08376, 0.0317422, -0.284605, 0.239836, -0.356022, -2.01744, 0.929531, -2.51573, -1.06677, -0.574638, -1.05995, -0.138374, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.00684113, -0.0428041, 0.00482231, 0.0129507, -0.0496038, -0.026585, 0.0020306, -0.0168381, -0.0501525, 0.0267715, -0.0341498, 0.0152601, 0.0390349, -0.00108468, -0.0355939, -0.00100954, -0.00622716, -0.0271578, 0.0284068, -0.0397553, -0.0396936, 0.00596394, 0.00681222, 0.0172054, 0.0441414, -0.0179912, -0.0471837, -0.0019525, 0.0334058, -0.0338528, -0.0436902, -0.0352239, -0.0467078, -0.0473462, -0.0226636, -0.0518216, -0.0341966, -0.040126, -0.00926768, 0.0423787, -0.0216484, 0.00437032, -0.0129882, -0.033414, -0.0512718, -0.0520786, -0.0254642, 0.0210744, 0.0045452, 0.00943204, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0491113, 0.0388419, 0.0143536, -0.0377201, -0.00233467, -0.0391208, 0.00566415, 0.00300762, 0.0297668, 0.00589297, 0.0160725, 0.0281989, -0.0457205, -0.0447064, 0.0265705, 0.0126893, -0.0527146, -0.025294, -0.018312, -0.0237183, -0.0346123, 0.00374281, -0.0390643, -0.0157235, -0.0293446, -0.0210862, -0.00330115, 0.0328687, 0.0191349, 0.0273651, -0.0377676, 0.0288186, -0.00611497, -0.0405222, -0.0541127, -0.0173719, -0.0048675, -0.0325989, 0.00430765, 0.0161438, -0.028318, -0.0337474, -0.0277035, 0.036502, -0.0382868, -0.00919086, 0.0103811, -0.000304852, 0.00303021, 0.00174891, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.16375, 0.658623, -1.42908, -1.81391, -0.643326, -0.98637, -1.67519, 0.165279, 0.0561984, 0.98706, -5.20824, 0.420346, -0.268267, -0.0663543, 0.949904, 0.559842, -3.11476, 1.84424, -0.779248, -0.0198038, -1.29034, 1.55079, -0.452842, -0.150296, -1.35928, -1.32123, 0.294639, -1.19561, -0.561094, -4.70866, -0.0147356, -0.00840394, -1.43676, -0.114637, 0.133771, -1.43738, 1.46096, -1.26086, -0.408801, 0.00376566, -0.96783, 0.170847, 0.38675, -0.616651, -0.04116, -1.2188, -0.42124, -0.527415, -1.55114, 0.30895, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.339544, -0.202174, 0.470671, 0.120935, 0.564976, 0.465313, -0.188836, 0.00176849, 0.407464, -0.107455, 0.0613878, -0.0925235, 0.280415, 0.068064, 0.542189, -0.0864524, 0.124366, -0.324352, 0.792119, 0.00988488, -0.345776, 0.638604, -0.705587, -0.102271, 0.0358343, -0.233388, 0.0235792, -0.484139, 0.0448285, 0.713725, 0.0716869, -0.49596, 0.25116, -0.396733, -0.12533, 0.281025, 0.207543, 0.0297336, -0.178991, -0.0320478, -0.14356, 0.325736, 0.512483, -0.534243, 0.171308, -1.30032, -0.285254, 0.111163, -0.358236, 0.0828957, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.908012, -0.0688643, -5.02625, 0.395648, -1.14612, 1.15142, -1.20701, 0.0786759, 0.257976, 0.885846, -0.252073, -0.281683, 1.02011, -0.0205014, -1.63559, 0.705048, -0.108012, 0.384787, -0.0544246, 0.0318869, -0.121391, 1.13049, -0.596369, 0.505005, -0.78246, -0.153132, 0.226433, -0.913201, -0.400331, 0.139925, 0.178564, 0.496675, 0.0197464, -0.45581, -0.0117854, 0.546868, 0.0159586, -0.243072, -0.440734, 0.0306844, -0.090076, 0.395636, 0.36496, -0.680864, 0.362213, 0.501811, 0.0565179, -1.14973, 0.253366, 0.628424, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.209175, -0.116216, -0.170213, -0.0810667, 0.0653527, 0.0727152, 0.14185, 2.30426, -0.147896, 0.200354, 0.143623, 0.0698683, -0.190655, -0.13583, -0.362227, 0.0458135, -0.155202, 0.0543333, 0.0467489, -0.0173762, -0.12367, -0.0303784, -0.0111875, -0.18883, -0.0314242, -0.161076, -0.0301467, 0.151556, -5.82695, 0.35214, 0.369681, 0.247229, 0.337867, 0.0521247, 0.312204, -1.97448, 0.0344831, -0.153939, -0.222192, -0.0504733, -0.23858, -0.0380521, 0.193484, 0.633081, 0.0741025, -0.281924, 0.232733, -0.177843, 0.0432187, 0.336291, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.865724, -1.92236, 0.640855, 1.25179, 0.789188, 0.0939664, -1.07199, 0.124119, 0.0685205, -1.03872, -0.00646539, -0.788161, 0.23293, -0.518451, -1.59622, -0.507424, 0.0803352, -1.67154, 0.501073, -0.0387926, 1.19576, -0.938697, -0.669378, 0.354392, -1.16007, -1.06364, 0.0407645, 0.106534, -0.344421, 1.99072, 0.0168245, -0.165295, 2.03663, -0.514329, 0.0685292, -0.817219, -1.90906, 0.261335, -1.13808, -0.0278718, 0.731329, -0.5924, -0.328876, 0.819068, -1.20374, 3.56255, 0.00292382, -0.455093, 1.33532, -0.246045, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0830814, -0.750154, 1.84827, -0.383519, -0.682036, -0.218614, 0.399071, -4.68896, 0.0200948, -0.197254, 1.03243, 0.49046, 0.347684, 0.100088, -0.836665, 0.233136, -2.25263, -0.18713, -1.84836, 0.0279991, -2.31288, 0.414212, -0.230976, -0.229609, -0.720218, 1.72028, -4.11677, 0.890868, 0.0864495, -0.713811, -0.915512, -0.412428, 0.115741, -1.26235, -2.27866, 0.271206, -0.138794, 0.412066, -0.879357, 0.0162539, -0.306563, 0.103742, -1.04142, 0.813568, -0.752051, 4.84557, -0.845314, -2.17991, -0.427462, -0.410397, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.288768, -0.228874, -0.353773, -0.0882244, -0.152194, 1.06515, 0.0810078, -0.777553, 1.20668, 0.135107, 0.124401, 0.381738, -0.0359854, 0.323663, 0.549645, -0.470737, 0.15708, 0.343091, 0.744427, -0.018173, -0.252626, 0.195584, -0.966315, -0.441888, 0.457621, -0.339176, 0.288797, 0.240528, -1.16332, -1.15997, -0.15378, -0.291076, -0.320083, 0.0667357, 1.01286, -0.926017, 0.193224, 0.191418, 0.328819, -0.0268583, 0.100148, 0.358918, 0.708537, 0.0633308, 0.703876, -0.788922, 0.0214487, 0.294159, -0.467543, 0.490244, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.471217, -0.0731766, 0.804705, 0.00176914, 0.762678, 0.703941, 0.519787, -0.0762222, -0.037579, -0.402687, 0.240669, 0.95435, -0.579479, -0.567174, 0.668437, 0.182474, 0.187352, -0.437606, 0.16349, -0.028245, -0.162315, 0.0850307, 0.371982, -0.0958742, -0.154325, 0.346366, 0.123901, -0.443591, -0.370038, 0.375832, 0.0886094, 0.396028, 0.783273, -0.343324, -0.311013, -0.7736, -0.11636, 0.229947, -0.215644, -0.0311036, -0.134274, 0.156353, 0.915419, -0.467275, -0.639832, 0.136853, -0.599386, 0.529999, -0.200135, -0.309781, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.744256, 0.139375, -2.03817, -0.380152, -0.482587, 0.139767, -0.00699259, -0.0169772, 0.0857229, 0.264084, 0.443096, -1.61837, -1.61243, -0.253874, 0.133959, 0.0805583, 0.130371, 0.71091, 0.536791, 0.0443789, -0.446472, -0.790021, 0.632299, 0.185454, -0.620017, 0.273673, -0.595087, -0.0686702, 0.0937276, -0.44943, -0.0361489, -0.497175, 0.163353, 0.282664, -0.0166541, 0.136104, -0.956785, 0.0505899, -0.38388, 0.0316492, 1.71565, -1.59414, 1.30587, -2.13517, -0.0511639, 0.719754, 0.382495, -0.110146, 0.130254, -1.63871, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.27137, -0.107507, -0.367569, -0.306806, 0.206122, 1.32664, 0.489192, -0.00204198, 0.196801, 0.136267, -0.286156, -0.723928, -0.886394, 0.150467, -0.756029, -0.209037, -0.0823028, 0.123565, 0.0156757, -0.0171308, 0.147586, -0.945172, 0.118572, 0.16902, 0.36461, -0.303542, 0.263686, 0.0658978, -0.129497, -0.373689, -0.0766817, -0.146923, 0.492069, 0.811702, -0.0523504, 0.162317, -0.160221, -0.0768905, 0.0217518, -0.0197486, 0.485352, 0.0303638, -0.807518, -0.617308, -0.0675429, -1.1519, -0.3309, 0.24721, 0.590245, -1.53799, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.023395, -2.15847, -0.897653, -0.018194, 0.0589075, 0.261199, 0.0179872, -0.0330328, 0.0120204, 0.65686, -0.122533, -0.0789207, -0.164221, 0.310128, -0.878708, -0.618868, -0.754412, -0.452217, -0.106435, -0.00521293, -0.0366877, -0.0235015, 0.744616, -0.294768, 0.26703, 0.0528286, -0.70259, 0.478614, 0.18873, 0.516536, -0.0428454, -0.0165508, 0.028641, 0.366803, 0.189404, 0.314756, -0.255432, 0.0356311, -0.0361043, 0.0286328, 0.194097, 0.135535, 0.119472, 0.503657, 0.253107, 0.0200613, -0.0554763, 0.416153, 0.0336806, 0.0744822, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.44101, 1.10668, -1.75739, -1.04811, -0.656663, -1.53215, 1.12017, 0.186985, 0.776034, -0.10849, -0.628664, 2.4272, 0.431387, -0.496607, 0.161683, 0.172092, -1.25465, 0.890309, -0.111488, 0.0436417, 0.94643, 1.13715, -1.06337, 0.928212, -1.12091, 0.911847, -0.577869, -0.24801, -0.277798, -1.30103, 0.0652527, 0.00933192, -1.40259, 0.696546, -0.425424, -2.18083, 0.550587, 0.470106, 0.0130904, 0.0175939, -1.40047, 0.577889, 0.195097, -1.71713, -0.0206793, -2.86407, -0.670849, -0.0821356, -1.74291, 0.265399, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.461963, -0.0612696, -0.24222, -0.029967, -0.44305, -0.647095, 0.172291, -0.262243, -0.624227, 0.136828, 0.0846499, -0.295606, -0.2634, -0.0699565, 0.55348, -0.28442, 0.10863, -0.653998, 0.106748, -0.00118194, 0.450362, -0.127278, 1.0434, -0.192897, 0.18184, -0.317093, -0.0112702, 0.13619, 0.514737, -0.94879, -0.269029, 0.178594, 0.737712, 0.280826, 0.0535651, 0.128695, -0.206162, -0.0644964, 0.298674, -0.00423549, 0.0342475, -0.164182, -0.157395, 0.303336, 0.229609, 0.162871, -0.0818264, 0.0666278, -0.155345, -0.151711, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.00576221, -0.0807609, -0.0375024, 0.106876, 0.000481567, -0.693205, -0.109373, -0.0456868, -0.0583272, -0.155813, 0.169833, -0.0614282, -0.0262125, 0.159782, 0.171478, 0.223271, -0.0420764, -0.122805, -0.209623, 0.0115923, -0.352439, -0.122875, 0.494063, 0.110511, 0.124123, 0.319255, -0.199751, 0.0948614, 0.169672, -0.962535, -0.0528916, 0.043734, 0.231925, -0.615873, -0.0263584, -0.0151062, 0.0109094, -0.174881, -0.0640339, 0.0398825, -0.0659452, -0.175876, -0.830068, 0.328529, -0.0264999, -0.0848864, 0.0106008, 0.400099, -0.333194, -0.876819, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0514171, -0.0404057, 0.0403321, 0.00208684, -0.00487987, -0.0362919, 0.0100224, 0.00839555, -0.0332534, -0.0468089, 0.0245959, 0.0141968, 0.0181489, -0.00423379, -0.0470792, -0.0243562, -0.0338338, -0.0028723, 0.0259819, 0.00403993, 0.0168077, -0.0341489, 0.00152831, -0.054216, -0.0367262, 0.00428683, 0.0195652, 0.0257057, -0.0376485, 0.0119099, 0.0205938, -0.0275264, -0.0381874, -0.0569896, -0.0328097, -0.0264956, -0.0484697, 0.0212729, -0.00915449, 0.0135105, 0.0041706, -0.00505519, -0.0175199, 0.0149976, 0.00306414, -0.0544493, -0.0339016, -0.00867499, -0.0440651, -0.0135244, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.498752, 0.38527, 0.138472, -0.103171, 0.0918618, -0.649569, -0.820589, -0.272596, 0.0471904, -0.118332, 1.06673, 0.289954, 0.534082, -0.122145, 0.474139, 0.570328, 0.416728, -0.0435198, 0.376458, -0.0303016, -0.121874, 0.378085, 0.1559, 0.0785918, -0.766229, 0.0452492, -0.59676, -0.0800385, 0.934856, 0.892658, 0.0660831, -0.197555, 1.08248, -0.407838, -0.438836, 0.183646, -0.229275, 0.363016, -0.957543, 0.00714262, -0.513598, 0.627282, 0.431, -0.479505, -0.635185, 0.350934, -0.552063, 0.624507, 0.0412473, 0.0711984, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.218252, 0.0395166, -0.175396, 0.330803, 0.158355, 0.0742913, -0.120726, 0.282438, -0.26936, -0.248072, -0.219098, 0.130243, 0.178274, 0.143431, 0.0391369, -0.296134, 0.0947059, -0.180558, -0.182551, 0.0164703, -0.0641192, -0.27619, -0.676311, 0.210828, -0.350157, -0.380727, 0.112376, -0.094336, -1.79516, 0.0730984, 0.118036, -0.0558932, -0.226139, -0.19287, 0.10538, -0.632815, -0.0407728, 0.2248, 0.0942252, -0.014286, 0.0766889, -0.0531777, 0.460211, -0.749292, 0.00415967, 0.086353, -0.13511, 0.405401, -0.265372, 0.354022, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0632442, -0.247266, -0.399925, -0.0860092, 0.360869, -0.631934, 0.0666865, 0.0102521, 0.400549, -0.0100767, 0.0507751, -0.375885, -0.967039, -0.0807166, -0.880219, 0.0415861, -0.271906, 0.358665, 0.282929, -0.035991, -0.118729, 0.226024, 0.0834152, -0.156715, -0.312134, 0.117746, -0.346728, -0.0235417, 0.207837, 0.293269, 0.108163, 0.475512, -0.664215, 0.270558, -0.0965042, -0.162677, -0.0574125, -0.0667946, -0.562924, 0.0172023, -0.279212, 0.353047, -2.01722, -0.684467, 0.477667, -0.272748, -0.0587421, -0.868433, -0.290502, -0.0467947, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.726494, -0.463521, 0.554485, -0.329217, 0.370469, -0.884232, -0.378355, 0.131543, 0.622418, 0.293974, 0.5693, 0.187863, -0.0521085, -0.368564, -0.0617645, 0.185497, 0.0704607, 0.0426769, 0.620076, -0.0426496, -0.535552, 0.670462, 0.445895, -0.767576, 0.216045, 0.0772875, -0.589569, 0.833906, -0.338045, -0.74424, -0.0410381, -0.293663, -0.556277, 0.181275, 0.0769373, 0.602251, 0.18752, 0.363468, -0.470109, 0.0227052, 0.485876, -0.255155, 0.461101, -1.09506, 0.138046, 0.42109, -0.831499, -1.56002, 0.232921, 0.378494, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.44052, -0.736812, -2.19265, 0.579438, 0.873717, -0.350255, 1.02612, 0.0497781, -1.04238, 0.982545, -0.591504, 0.334977, -1.66385, 0.0248692, -0.69449, 0.327596, 0.280166, -0.244187, 1.0881, -0.0326065, 2.37563, -1.14113, -2.32568, -0.112382, 0.018789, -0.948317, 0.866418, -0.260122, -0.835608, 1.9098, -0.0563344, -0.110667, 1.04466, -2.06826, -0.0691097, -1.05951, -0.543733, -1.91986, -0.802963, 0.00931283, -0.134784, 0.0746719, -2.27661, 0.931183, -0.0265723, 2.02364, -0.0896261, -1.07009, 2.0495, -2.02849, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0380341, -0.0496049, 0.0415129, 0.0309187, 0.0257682, -0.023392, 0.0272391, 0.00373764, -0.0471337, 0.0116316, 0.0306324, 0.0296885, -0.0206982, 0.0189776, -0.0126472, 0.0360657, -0.0444554, 0.0226038, -0.0129562, 0.0209534, -0.00762521, 0.00145389, -0.0384276, -0.0400145, -0.0221333, -0.0316988, 0.0251685, -0.054406, -0.0300981, -0.00051779, 0.0332033, 0.0139264, 0.0223308, 0.00855729, -0.0331031, 0.00677719, -0.0343559, 0.0302283, -0.0270094, -0.0284379, -0.0223989, -0.0301351, -0.00729571, -0.0316327, 0.0305062, -0.000769122, -0.0530801, -0.0529652, -0.0206607, -0.0405449, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0733739, 0.498475, 1.45375, 0.180097, 0.471889, 1.28745, 0.354048, -0.194802, -0.507288, -0.457367, -0.00678466, -0.238201, 0.514749, 0.0750485, -1.17942, 0.134138, 0.371483, 0.0761705, 0.140508, 0.00704641, 0.0944094, 0.50271, -0.23018, -0.453578, 0.19707, -0.46115, 0.309113, 0.428795, 0.153239, -0.547618, -0.113928, -0.118266, -1.04971, 0.418361, -0.00727061, 0.467784, 0.404652, 0.603109, 0.0726693, -0.00637014, -0.0739469, 0.35092, 0.824496, 2.29352, -0.642347, -0.402911, 0.000420799, 0.468072, -0.35975, 0.28546, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.00142505, -0.18273, 0.726071, -0.075248, -1.01114, -1.10119, -0.8232, 0.0140579, 0.0765449, -0.0329127, 0.230576, 0.0399179, -0.80182, 0.756408, 1.03279, -0.544513, 0.0280987, 0.0818757, -0.400283, -0.0480177, 0.725868, 1.63237, 0.0796, 0.657016, -0.0609509, -0.671467, -0.333526, 0.0577477, -0.109468, -1.819, -0.0600455, -0.0797411, -0.239786, -1.894, 0.151056, 0.218321, 0.147104, 1.0982, 0.20169, 0.000795101, 0.127281, 0.7653, 1.65391, 0.109584, -0.23429, 0.484015, 0.00560938, 0.327676, 1.23751, -0.911862, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.629551, -1.56714, -0.551276, 0.723287, -0.771912, 0.931754, 3.35787, 0.174438, -0.018125, 0.00483295, 0.622562, -0.814982, -0.494054, -0.198518, -0.258461, 1.10079, 0.526429, -2.25191, 0.686906, -0.00716086, 2.33534, 0.373822, -0.879903, 1.59131, -0.213438, -1.43839, 0.274446, -0.797051, -0.719954, 1.81668, 0.00695866, 0.499655, -3.23797, -0.232715, -0.279133, 0.940036, -0.933366, -0.597175, -1.37905, 0.0214671, -0.596414, -0.473957, -0.846842, 1.58027, 0.437987, -17.6173, -1.39359, 0.753898, 0.481113, -1.40456, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.398748, -1.4148, -2.36233, 0.59864, -0.367302, 0.399959, 1.09477, 0.0808604, 0.0924869, 0.0842948, -0.407393, 0.538098, -0.555101, 0.0614871, -0.164843, 1.01016, -0.282355, -0.276347, 0.717741, -0.0325649, 2.05585, 0.700506, 0.467493, 0.71774, 0.286834, -0.800021, -0.208074, -0.414182, -0.362252, -3.31266, -0.0254303, -0.0348291, 0.346921, -1.09932, -0.00587682, -0.573694, -0.644146, -1.11297, -0.592868, 0.00442604, -0.752515, 0.00284139, 0.0884453, -7.19741, 0.251315, 1.96235, -0.316372, -1.49934, 0.890642, 0.235167, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.29326, -0.442923, 5.11706, 0.842106, -0.0335087, -1.51187, -2.16509, 0.168139, -0.985197, -0.355834, 1.79373, -0.569605, 0.740192, 0.254404, -1.40253, -2.22494, 1.00284, -0.285039, -0.159888, 0.00715698, -2.25386, -3.33994, -1.04861, -0.462445, -1.2917, 0.0322172, 0.316472, 0.55174, -0.242397, -1.33321, 0.00511858, -0.182065, 2.09911, -0.883731, 0.0174907, -0.641942, -2.60714, 0.185564, -1.3433, -0.00206006, 0.62802, -0.358574, -1.40139, -0.160194, -3.02432, 1.40443, 0.56299, 1.86353, 1.08806, -1.17598, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.172199, 0.12017, -2.42615, -0.126231, -1.30124, 0.886968, -0.920166, 0.0476831, -0.063713, 0.245508, -0.958209, -0.489454, -2.24624, 0.0746292, 1.26551, 0.197687, -0.394109, -0.0414123, -0.389446, 0.0351641, 1.21548, -1.90294, -0.828467, 1.34823, 0.0999848, 0.97653, -0.373967, 0.462097, -0.602295, -0.680568, -0.123143, -0.0145362, 0.0544083, -0.543625, -0.0476504, 0.723704, -0.537775, -0.032647, 0.362419, 0.00654721, -1.02436, 0.998855, 0.215668, 1.20128, 0.125404, 0.800983, 1.16976, 0.74559, 1.24461, -1.42531, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.343473, 0.0243787, 0.0183341, 0.125576, -0.0251213, -0.921181, 0.239424, -0.610515, 1.30931, 0.114051, 0.581546, -0.0554348, -0.140892, 0.00559214, -0.305879, -0.143116, 0.04933, 0.0414723, 0.175384, 0.0101604, 0.233691, -0.0264805, -0.471371, 0.201216, 0.358492, -0.453935, 0.194974, 0.0508139, 1.72432, 0.551528, 0.33893, 0.237261, 0.321757, 0.440366, -0.386291, -0.165439, -0.185331, -0.0481414, 0.0699679, -0.0110961, -0.0319155, -0.0599292, 0.63469, 0.695816, 0.137993, -0.405549, -0.360494, -0.166063, -0.306252, 0.185894, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.20072, 1.50347, -0.445706, -1.75109, -0.467395, 0.541608, -2.93749, 0.100966, 0.54739, 1.09832, -0.238784, 0.180106, -0.054019, 0.271427, -0.291444, 0.296687, -0.758795, 1.3375, -1.79533, 0.00898414, -2.30633, -0.613311, -1.12265, -0.461169, -0.957806, 1.13084, -0.18998, -0.0139129, -0.11825, 2.12632, -0.0489223, -0.16229, -1.98942, 0.224374, -0.395473, 0.722972, 1.09527, 1.99281, 0.367879, 0.0177326, 0.265639, 0.967803, 0.974726, 1.64675, -1.5575, -3.19345, -0.144719, -0.29592, -0.363318, 0.48059, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.185617, -0.288201, 0.202038, 0.0902912, -0.0162923, -1.33303, -0.140907, -0.051246, 0.773346, 0.244073, 0.302354, -0.0310884, -0.247442, -0.77, 0.526759, -0.0842262, 0.0267494, -0.842571, 0.485309, 0.0389384, 0.149393, 0.0347057, -0.34581, -0.0641449, -0.312244, 0.161585, 0.421548, -0.157413, -0.329599, 0.130826, 0.114382, 0.543832, 0.495737, 0.0199698, -0.252016, -0.321881, 0.336921, 0.0460081, 0.0986777, -0.0264368, 0.585777, 0.104433, -0.377257, 1.69815, 0.0592095, -1.49489, 0.228745, -0.435068, -0.255326, 0.0736565, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.28048, -0.997659, 0.0399157, -0.140064, 0.672772, -0.0972037, -0.391518, -0.0202737, -0.749151, -0.104832, 0.204074, 0.286694, -1.87662, 0.147526, 0.825602, -1.74666, 0.105197, -1.23251, -0.278441, 0.0187952, -0.00421119, 0.480306, -0.636311, -0.194825, -0.138821, 0.0164651, 0.0720892, -0.0123201, -0.00706156, 0.151026, -0.0593552, -0.366883, 1.69926, 0.62151, 0.113392, -0.615069, -0.800129, -0.0262099, -0.474539, 0.0399671, -1.06561, 1.32658, -0.100981, -0.433289, -0.0636883, 2.03805, 0.108126, -0.798786, -0.74777, -0.193103, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -2.395, 0.294, 0.0619, -0.1064, 0.3638, 1.382, -0.4382, 0.3481, 0.03635, -0.3506, -0.692, 0.531, 0.3281, 0.6885, -0.858, 0.657, -0.03525, 0.1449, -0.0819, -0.02724, 0.618, 0.4639, 1.726, -0.734, 0.314, -0.2401, -1.258, 0.1652, -0.6416, 0.337, -0.135, -0.06415, 0.036, 0.4558, -0.0926, 0.869, 0.1931, -0.6616, 0.2042, -0.04605, 0.2434, -0.062, 0.95, 0.5117, 0.2167, -0.07086, -0.363, 0.5527, -0.2593, 0.4265], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0894, -0.999, -0.7974, -0.539, -0.8125, 1.566, 0.5645, 0.01683, -0.334, 0.405, 1.41, -0.1935, -0.2412, 0.02725, 0.04114, 0.48, -0.5435, -0.566, -0.775, 0.03958, -0.568, 0.3462, 0.3572, -0.3179, -0.9043, 0.573, 0.335, -0.496, -0.2957, -0.9976, 0.005894, 0.2291, -0.8994, -0.3374, -0.0884, -0.3384, 0.4521, 0.1688, 0.7505, -0.001616, 0.5474, -0.12427, -0.289, 0.3706, -0.3035, -3.45, 0.4102, -0.6055, -0.7314, -0.0895], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1583, 0.3428, 2.041, -0.1682, 0.2856, -1.675, -3.441, 0.1774, -0.534, -0.883, 0.9053, -0.1381, 1.801, 0.1906, -0.1971, -0.422, -0.3684, -0.8745, -1.436, -0.00831, -2.143, -0.2396, 0.627, -1.024, 0.497, 2.252, -0.4033, 1.099, -0.3801, -1.78, 0.004307, -0.0215, 0.1296, 0.379, 0.2052, 0.569, 1.052, 1.742, -0.1996, -0.05276, 0.609, 0.3872, 0.02606, -0.4614, -1.468, 0.5146, 1.556, 1.759, -0.03226, -0.4673], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.002045, -0.00275, 0.03452, 0.013504, 0.01067, -0.03088, -0.05014, 0.003893, 0.01315, -0.03333, -0.0004954, 0.02788, -0.02538, 0.002287, -0.02669, -0.00245, 0.006634, -0.03174, -0.0594, 0.02727, -0.03903, -0.02483, 0.02919, 0.002848, 0.0359, -0.0483, 0.0208, -0.05765, 0.0242, 0.01994, 0.00975, -0.01071, -0.04904, 0.00963, -0.03111, -0.04413, -0.003725, -0.04727, -0.03537, 0.013336, -0.00982, -0.04547, -0.04956, -0.015236, 0.003656, -0.00836, 0.01222, 0.002722, 0.001047, -0.02898], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.879, 0.455, 1.092, 0.0832, -2.516, -1.563, 0.462, -0.09845, 1.421, -0.1296, 0.3284, 0.04306, 0.638, -1.28, 0.822, -0.3267, -0.0941, 0.339, 0.4949, 0.04123, 0.5444, 0.828, 0.00982, 0.1855, -0.04895, 0.1782, -0.831, -0.04834, 0.2058, -0.1393, -0.0771, 0.524, 0.2264, 1.842, -0.2979, 0.4329, -0.412, -2.475, 0.3364, 0.00815, -0.3066, 0.3225, -0.959, -3.104, 0.744, -0.5493, 0.535, -1.023, -0.351, 0.1656], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.207, -1.308, -0.6836, 1.493, 1.113, 0.5527, 1.985, -0.2488, 0.6777, -0.2429, 1.692, -2.168, 1.338, -0.6147, -0.2129, 0.284, 0.452, -2.865, 1.349, 0.03262, 1.715, 0.997, -1.573, 0.1664, 0.616, -0.2888, 0.3599, 0.3516, 0.2852, 1.144, 0.02621, -0.725, 1.601, -1.026, -0.0984, -1.553, -0.3704, -0.9526, -0.6406, -0.009865, 1.787, -0.1137, 1.16, -3.648, 0.709, -0.533, -1.642, 1.756, 1.046, 0.7075], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.901, 1.582, -0.5015, 0.08777, 0.521, 0.9507, -0.3506, -0.0538, -0.8184, -0.3457, 0.488, 1.016, 0.4744, 0.1757, 0.3699, 0.6216, -0.606, 0.4155, -0.5327, -0.03583, -0.5586, -0.7773, -1.863, -0.944, -1.849, 1.229, 0.1729, -0.10315, 0.306, -0.775, 0.07825, -0.3396, -0.4817, -1.238, 0.2664, -1.012, -0.27, 1.528, -0.7705, 0.04153, 0.1718, 0.1561, 0.5093, 1.239, -0.7334, -0.1586, 0.6963, 0.4214, -1.15, -0.509], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.04584, 0.3472, -0.186, -0.8975, 0.66, -2.031, -0.2439, 0.1552, 0.05972, 0.10675, -0.517, -0.957, 1.215, 0.3015, -1.2, 0.1388, -0.412, -0.9136, -0.2944, 0.01133, -0.187, -0.8267, -1.171, -0.258, 0.03412, 0.2815, -0.984, -0.085, -0.03558, -1.878, 0.06232, 0.7295, -0.987, -0.946, 0.1788, 0.3296, 0.594, -0.2778, 0.2725, 0.0162, 0.837, -0.6816, -0.6934, 1.489, 0.02527, -1.318, 1.161, 1.263, 0.239, -1.379], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.001413, 0.02887, 0.006115, -0.0377, -0.0367, -0.0394, 0.002728, 0.0101, -0.0674, 0.0329, 0.0282, 0.02496, 0.03705, 0.02849, -0.02365, -0.05475, 0.007034, -0.01426, 0.0191, 0.003714, -0.03973, 0.02362, 0.002863, -0.0387, -0.01863, 0.0171, 0.01168, -0.04657, 0.004005, -0.04074, -0.003723, -0.03674, -0.005165, 0.01296, -1.305e-05, -0.06836, -0.059, 0.02753, -0.05038, -0.005066, -0.0018425, 0.01578, -0.0368, -0.002623, -0.04477, 0.04337, -0.041, -0.02782, 0.02933, 0.03537], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.04977, -0.0285, -0.02814, -0.00541, 0.010506, -0.04605, -0.0378, -0.002153, 0.01083, -0.04984, -0.03818, -0.006756, 0.0225, 0.01646, -0.00683, -0.04013, -0.0669, -0.001197, -0.0365, -0.0272, -0.03445, 0.02396, 0.02882, -0.00639, -0.02908, 0.0004284, -0.00681, -0.012634, 0.02109, 0.02728, -0.03604, -0.02875, 0.001364, -0.0389, 0.01196, 0.0195, -0.05664, 0.02177, 0.02087, 0.0205, 0.02277, 0.005287, 0.01149, 0.02228, -0.012665, 0.03275, -0.0667, -0.04288, 0.01993, -0.0004556], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2607, 0.4775, -0.067, 0.1144, -0.1602, 0.092, -0.01884, 0.1797, 0.365, 0.2551, -0.01631, 0.644, 0.2343, 0.4675, 0.0276, 0.4465, -0.08124, 0.56, -0.0884, 0.02426, 0.3318, -0.2644, -0.557, 0.0859, 0.4172, -0.1749, -0.01195, 0.08813, -0.5195, -0.612, -0.04727, -0.1652, 0.0883, -0.1365, -0.2546, -0.1181, -0.4663, -0.2505, -0.1285, 0.01488, -0.12286, 0.407, 1.099, -0.6367, 0.2163, 0.3513, -0.32, -0.382, 0.5894, 0.608], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0652, 1.121, 0.875, -3.012, -1.761, 0.1393, -0.1321, 0.0516, 1.262, -0.688, -0.4053, 0.06097, 1.019, 0.3323, -0.6187, 0.0847, -0.3335, 1.542, -1.658, 0.001968, -0.0453, -4.625, 0.8716, 0.548, 0.936, -1.289, -0.8916, -0.0343, -0.07794, 0.347, -0.02902, -0.2017, -7.76, 0.03308, -0.577, 0.3713, -0.144, -0.01637, -0.1667, -0.05917, -0.4048, 1.502, 1.489, 3.295, 0.6343, -0.04733, -1.606, -0.03958, 0.02597, 1.639], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1191, -0.0628, 0.7886, -1.285, 0.2683, 0.0341, -0.04666, -0.601, 0.06885, -0.04044, 0.4055, 0.2678, 0.4038, -0.1611, 0.1617, 0.0897, 0.3281, -0.0334, 0.06573, -0.007137, -0.3633, -0.8506, -0.1211, -0.11847, -0.577, 0.1501, 0.548, -0.2345, 0.6685, -0.881, 0.0737, 0.0422, -0.8325, 0.03946, 0.362, 0.5615, 0.1174, -0.0559, -0.006985, 0.006203, 0.1371, -0.2605, 0.015366, 0.01897, -0.10504, 0.00305, -0.2098, -0.9907, 0.335, 0.03888], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.372, 1.914, 0.03662, 0.57, -0.769, 1.474, 0.2257, -0.2734, 1.909, -0.2024, 0.9834, -1.055, -0.6455, -0.0805, 0.599, 0.2131, 0.8965, 0.001923, 0.694, 0.01224, 0.5234, 0.733, -0.10046, 0.3665, -1.375, 0.0827, 0.6113, -0.2578, -0.3225, -1.443, -0.2021, 0.589, -0.2915, 0.04166, 0.6914, 2.27, 1.351, 0.4583, 1.669, -0.03522, 0.519, 0.2847, 0.8853, 0.001079, 0.3027, -1.691, -0.128, -0.1593, -0.1716, 0.7915], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0353, -0.0432, -0.02785, -0.02168, 0.02344, -0.0382, 0.03674, -0.02477, -0.0378, 0.01884, -0.013885, -0.0575, 0.03598, 0.00397, 0.02791, -0.02216, 0.002077, -0.0616, -0.02213, 0.02478, -0.03583, -0.02731, -0.001707, -0.00874, -0.03156, 0.005222, 0.02782, -0.0409, 0.02048, 0.0317, 0.02701, -0.0486, -0.006805, -0.001622, -0.02452, 0.03214, -0.04053, -0.002441, -0.03035, -0.02563, -0.0594, -0.02219, -0.0543, 0.03897, -0.0381, -0.0478, 0.0351, 0.0343, -0.01666, 0.00679], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.627, 0.3364, 0.004253, -0.3438, -0.2664, 0.35, 1.275, 0.2957, 0.1272, -0.4663, 0.4119, 0.6016, -0.422, -0.4849, -0.9966, 0.8193, -0.0784, -0.013535, 0.2336, -0.00281, -0.427, 0.2041, 0.2664, 0.003357, 0.2407, 0.1335, -1.777, -0.2119, -1.029, 0.4883, -1.088, -1.119, -0.4846, 0.1841, -0.0853, 2.895, 0.11957, 0.2783, 0.2888, 0.015236, 0.1222, 0.0502, -2.564, 1.282, -0.0848, 1.445, -0.4216, -0.319, -0.2998, -0.549], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5776, 0.937, 0.2727, -0.5166, -0.8906, 1.013, 0.498, 0.0901, 0.05573, 1.136, -0.1299, -0.199, -0.545, -0.4556, 0.9834, 0.6304, -0.1796, 0.91, -0.555, 0.04227, -0.4724, 0.4087, 0.915, 0.1119, 0.2496, -0.2966, 0.473, -1.324, -0.4446, 0.543, -0.02312, 0.2793, -1.457, 1.179, 0.2583, -0.3103, 0.6357, 0.1278, 1.084, 0.03174, -0.2847, 0.2399, -0.356, -2.018, 0.9297, -2.516, -1.066, -0.5747, -1.06, -0.1384], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.00684, -0.04282, 0.00482, 0.01295, -0.0496, -0.02658, 0.002031, -0.01685, -0.05014, 0.02676, -0.03415, 0.01526, 0.03903, -0.001084, -0.03558, -0.00101, -0.006226, -0.02716, 0.02841, -0.03976, -0.0397, 0.005962, 0.006813, 0.01721, 0.04413, -0.01799, -0.04718, -0.001952, 0.03342, -0.03384, -0.0437, -0.03522, -0.04672, -0.04733, -0.02266, -0.05182, -0.0342, -0.04013, -0.00927, 0.0424, -0.02165, 0.00437, -0.012985, -0.03342, -0.05127, -0.0521, -0.02547, 0.02107, 0.004543, 0.00943], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0491, 0.03885, 0.01435, -0.03772, -0.002335, -0.03912, 0.005665, 0.003008, 0.02977, 0.005894, 0.01607, 0.0282, -0.04572, -0.0447, 0.02657, 0.01269, -0.0527, -0.0253, -0.01831, -0.02371, -0.0346, 0.003742, -0.03906, -0.01572, -0.02934, -0.02109, -0.003302, 0.03287, 0.01913, 0.02736, -0.03778, 0.02882, -0.006115, -0.04053, -0.0541, -0.01736, -0.004868, -0.0326, 0.004307, 0.01614, -0.02832, -0.03375, -0.02771, 0.0365, -0.0383, -0.00919, 0.01038, -0.000305, 0.00303, 0.001749], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1637, 0.6587, -1.429, -1.813, -0.6436, -0.9863, -1.675, 0.1653, 0.0562, 0.987, -5.207, 0.4204, -0.2683, -0.06635, 0.9497, 0.56, -3.115, 1.845, -0.7793, -0.0198, -1.29, 1.551, -0.453, -0.1503, -1.359, -1.321, 0.2947, -1.195, -0.561, -4.707, -0.01473, -0.00841, -1.437, -0.1146, 0.1338, -1.4375, 1.461, -1.261, -0.4087, 0.003765, -0.968, 0.1709, 0.3867, -0.6167, -0.04117, -1.219, -0.4211, -0.5273, -1.551, 0.3088], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.3396, -0.2021, 0.4707, 0.1209, 0.565, 0.4653, -0.1888, 0.001768, 0.4075, -0.1075, 0.0614, -0.0925, 0.2805, 0.06805, 0.542, -0.0864, 0.1244, -0.3245, 0.792, 0.00989, -0.3457, 0.6387, -0.7056, -0.1023, 0.03583, -0.2334, 0.02357, -0.4841, 0.04483, 0.714, 0.0717, -0.4958, 0.2512, -0.3967, -0.1254, 0.281, 0.2075, 0.02974, -0.179, -0.03204, -0.1436, 0.3257, 0.5127, -0.534, 0.1713, -1.301, -0.2852, 0.11115, -0.3582, 0.0829], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.908, -0.06885, -5.027, 0.3958, -1.146, 1.151, -1.207, 0.0787, 0.258, 0.8857, -0.252, -0.2817, 1.0205, -0.02051, -1.636, 0.705, -0.10803, 0.3848, -0.0544, 0.0319, -0.1214, 1.131, -0.596, 0.505, -0.782, -0.1531, 0.2264, -0.913, -0.4004, 0.1399, 0.1786, 0.4966, 0.01974, -0.4558, -0.01179, 0.547, 0.01596, -0.243, -0.4407, 0.03069, -0.0901, 0.3958, 0.365, -0.6807, 0.3623, 0.502, 0.05652, -1.149, 0.2534, 0.6284], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2092, -0.1162, -0.1702, -0.08105, 0.06537, 0.0727, 0.1418, 2.305, -0.148, 0.2003, 0.1437, 0.0699, -0.1907, -0.1359, -0.3623, 0.0458, -0.1552, 0.05432, 0.04675, -0.01738, -0.12366, -0.03038, -0.011185, -0.1888, -0.03143, -0.1611, -0.03015, 0.1516, -5.83, 0.352, 0.3696, 0.2472, 0.338, 0.05212, 0.3123, -1.975, 0.0345, -0.1539, -0.2222, -0.05048, -0.2385, -0.03806, 0.1935, 0.6333, 0.0741, -0.282, 0.2328, -0.1779, 0.0432, 0.3362], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.8657, -1.922, 0.6406, 1.252, 0.789, 0.094, -1.072, 0.12415, 0.06854, -1.039, -0.006466, -0.788, 0.2329, -0.5186, -1.597, -0.5073, 0.0803, -1.672, 0.501, -0.0388, 1.195, -0.9385, -0.6694, 0.3545, -1.16, -1.063, 0.04077, 0.1065, -0.3445, 1.99, 0.01683, -0.1653, 2.037, -0.514, 0.06854, -0.8174, -1.909, 0.2612, -1.138, -0.02788, 0.7314, -0.5923, -0.3289, 0.819, -1.204, 3.562, 0.002924, -0.455, 1.335, -0.2461], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.08307, -0.75, 1.849, -0.3835, -0.682, -0.2186, 0.3992, -4.688, 0.0201, -0.1973, 1.032, 0.4905, 0.3477, 0.1001, -0.8364, 0.2332, -2.252, -0.1871, -1.849, 0.028, -2.312, 0.4143, -0.231, -0.2296, -0.72, 1.721, -4.117, 0.8906, 0.0864, -0.714, -0.9155, -0.4124, 0.1157, -1.263, -2.28, 0.2712, -0.1388, 0.412, -0.8794, 0.01625, -0.3066, 0.10376, -1.041, 0.8135, -0.752, 4.844, -0.845, -2.18, -0.4275, -0.4104], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2888, -0.2289, -0.3538, -0.0882, -0.1522, 1.065, 0.081, -0.7773, 1.207, 0.1351, 0.1244, 0.3818, -0.03598, 0.3237, 0.55, -0.4707, 0.1571, 0.343, 0.7446, -0.01817, -0.2527, 0.1956, -0.9663, -0.442, 0.4575, -0.339, 0.2888, 0.2405, -1.163, -1.16, -0.1538, -0.291, -0.32, 0.0667, 1.013, -0.926, 0.1932, 0.1914, 0.3289, -0.02686, 0.10016, 0.359, 0.7085, 0.06335, 0.704, -0.789, 0.02145, 0.2942, -0.4675, 0.4902], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4712, -0.0732, 0.8047, 0.001769, 0.7627, 0.704, 0.52, -0.07623, -0.03757, -0.4026, 0.2407, 0.9546, -0.5796, -0.5674, 0.6685, 0.1825, 0.1874, -0.4375, 0.1635, -0.02824, -0.1624, 0.085, 0.372, -0.0959, -0.1543, 0.3464, 0.1239, -0.4436, -0.37, 0.3757, 0.0886, 0.396, 0.783, -0.3433, -0.311, -0.7734, -0.11633, 0.23, -0.2157, -0.0311, -0.1343, 0.1564, 0.9155, -0.4673, -0.6396, 0.1368, -0.5996, 0.53, -0.2002, -0.3098], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.744, 0.1394, -2.04, -0.3801, -0.4827, 0.1398, -0.006992, -0.01698, 0.0857, 0.2642, 0.443, -1.618, -1.612, -0.254, 0.1339, 0.08057, 0.1304, 0.711, 0.5366, 0.04437, -0.4465, -0.79, 0.6323, 0.1854, -0.62, 0.2737, -0.595, -0.06866, 0.09375, -0.4495, -0.03616, -0.497, 0.1633, 0.2827, -0.01665, 0.1361, -0.9565, 0.0506, -0.3838, 0.03165, 1.716, -1.594, 1.306, -2.135, -0.05118, 0.7197, 0.3826, -0.11017, 0.1302, -1.639], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2715, -0.1075, -0.3677, -0.307, 0.2062, 1.326, 0.4893, -0.002043, 0.1968, 0.1362, -0.2861, -0.724, -0.886, 0.1505, -0.756, -0.209, -0.0823, 0.12354, 0.01567, -0.01714, 0.1476, -0.9453, 0.1186, 0.1691, 0.3645, -0.3035, 0.2637, 0.0659, -0.1295, -0.3738, -0.07666, -0.147, 0.4922, 0.8115, -0.05234, 0.1624, -0.1603, -0.0769, 0.02176, -0.01974, 0.4854, 0.03036, -0.8076, -0.617, -0.06757, -1.152, -0.3308, 0.2472, 0.5903, -1.538], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02339, -2.158, -0.8975, -0.01819, 0.0589, 0.2612, 0.01799, -0.03302, 0.012024, 0.6567, -0.12256, -0.0789, -0.1642, 0.31, -0.879, -0.6187, -0.7544, -0.4521, -0.10645, -0.005215, -0.03668, -0.0235, 0.7446, -0.2947, 0.267, 0.05283, -0.7026, 0.4785, 0.1887, 0.5166, -0.04285, -0.01656, 0.02864, 0.3667, 0.1895, 0.3147, -0.2554, 0.03564, -0.0361, 0.02863, 0.1941, 0.1355, 0.11945, 0.5034, 0.2532, 0.02007, -0.05548, 0.4163, 0.0337, 0.07446], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.441, 1.106, -1.758, -1.048, -0.6567, -1.532, 1.12, 0.187, 0.776, -0.1085, -0.629, 2.428, 0.4314, -0.4966, 0.1617, 0.1721, -1.255, 0.89, -0.1115, 0.04364, 0.9463, 1.137, -1.063, 0.928, -1.121, 0.9116, -0.5776, -0.248, -0.2778, -1.301, 0.06525, 0.00933, -1.402, 0.697, -0.4255, -2.182, 0.551, 0.4702, 0.01309, 0.0176, -1.4, 0.578, 0.1951, -1.717, -0.02068, -2.863, -0.671, -0.08215, -1.743, 0.2654], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.462, -0.06128, -0.2422, -0.02997, -0.443, -0.647, 0.1722, -0.2622, -0.624, 0.1368, 0.08466, -0.2957, -0.2634, -0.06995, 0.5537, -0.2844, 0.10864, -0.654, 0.10675, -0.001182, 0.4504, -0.1273, 1.043, -0.1929, 0.1819, -0.3171, -0.01127, 0.1362, 0.5146, -0.9487, -0.269, 0.1786, 0.738, 0.2808, 0.05356, 0.1287, -0.2062, -0.0645, 0.2986, -0.004234, 0.03424, -0.1642, -0.1573, 0.3032, 0.2296, 0.1628, -0.08185, 0.06665, -0.1554, -0.1517], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.005764, -0.08075, -0.0375, 0.1069, 0.0004816, -0.6934, -0.1094, -0.0457, -0.05832, -0.1558, 0.1698, -0.06143, -0.02621, 0.1598, 0.1715, 0.2233, -0.04208, -0.1228, -0.2096, 0.01159, -0.3525, -0.12286, 0.4941, 0.11053, 0.12415, 0.3193, -0.1997, 0.09485, 0.1697, -0.9624, -0.0529, 0.04373, 0.2319, -0.6157, -0.02635, -0.01511, 0.01091, -0.1749, -0.064, 0.0399, -0.0659, -0.1759, -0.83, 0.3286, -0.0265, -0.0849, 0.0106, 0.4001, -0.3333, -0.877], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.05142, -0.0404, 0.04034, 0.002087, -0.00488, -0.0363, 0.010025, 0.00839, -0.03326, -0.0468, 0.0246, 0.0142, 0.01814, -0.004234, -0.0471, -0.02435, -0.03384, -0.002872, 0.02599, 0.00404, 0.01682, -0.03415, 0.001529, -0.05423, -0.0367, 0.004288, 0.01956, 0.02571, -0.03766, 0.01191, 0.0206, -0.02753, -0.03818, -0.05698, -0.0328, -0.02649, -0.04846, 0.02127, -0.009155, 0.01351, 0.00417, -0.005054, -0.01752, 0.015, 0.003063, -0.05444, -0.0339, -0.008675, -0.04407, -0.01353], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4988, 0.3853, 0.1384, -0.10315, 0.09186, -0.6494, -0.821, -0.2727, 0.04718, -0.11835, 1.066, 0.29, 0.534, -0.12213, 0.474, 0.5703, 0.4167, -0.04352, 0.3765, -0.0303, -0.1219, 0.3782, 0.1559, 0.0786, -0.766, 0.04526, -0.5967, -0.08, 0.935, 0.8926, 0.0661, -0.1975, 1.082, -0.408, -0.4387, 0.1836, -0.2292, 0.363, -0.9575, 0.00714, -0.5137, 0.6274, 0.431, -0.4795, -0.6353, 0.3508, -0.5522, 0.6245, 0.04126, 0.0712], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2183, 0.03952, -0.1754, 0.3308, 0.1583, 0.0743, -0.1207, 0.2825, -0.2693, -0.248, -0.2191, 0.1302, 0.1782, 0.1434, 0.03912, -0.2961, 0.0947, -0.1805, -0.1825, 0.01646, -0.06415, -0.2761, -0.6763, 0.2108, -0.35, -0.3806, 0.11237, -0.09436, -1.795, 0.0731, 0.11804, -0.0559, -0.2262, -0.1929, 0.1054, -0.633, -0.04077, 0.2249, 0.09424, -0.01428, 0.07666, -0.0532, 0.4602, -0.7495, 0.004158, 0.08636, -0.1351, 0.4055, -0.2654, 0.354], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.06323, -0.2473, -0.4, -0.086, 0.3608, -0.632, 0.0667, 0.010254, 0.4006, -0.01008, 0.05078, -0.376, -0.967, -0.0807, -0.8804, 0.0416, -0.272, 0.3586, 0.283, -0.03598, -0.1187, 0.2261, 0.08344, -0.1567, -0.3123, 0.11774, -0.3467, -0.02354, 0.2079, 0.2932, 0.10815, 0.4756, -0.664, 0.2705, -0.0965, -0.1627, -0.0574, -0.0668, -0.563, 0.0172, -0.2793, 0.353, -2.018, -0.6846, 0.4778, -0.2727, -0.05875, -0.8687, -0.2905, -0.04678], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.7266, -0.4636, 0.5547, -0.329, 0.3704, -0.8843, -0.3784, 0.1316, 0.6226, 0.294, 0.5693, 0.1879, -0.0521, -0.3687, -0.06177, 0.1855, 0.07043, 0.04266, 0.62, -0.04266, -0.5356, 0.6704, 0.4458, -0.7676, 0.2161, 0.0773, -0.5894, 0.834, -0.3381, -0.744, -0.04105, -0.2937, -0.556, 0.1813, 0.07697, 0.602, 0.1875, 0.3635, -0.4702, 0.0227, 0.4858, -0.2551, 0.4612, -1.095, 0.1381, 0.4211, -0.8315, -1.56, 0.2329, 0.3784], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.44, -0.737, -2.193, 0.5796, 0.8735, -0.3503, 1.026, 0.04977, -1.042, 0.9824, -0.5913, 0.335, -1.664, 0.02487, -0.6943, 0.3276, 0.2803, -0.2441, 1.088, -0.0326, 2.375, -1.142, -2.326, -0.11237, 0.01878, -0.948, 0.866, -0.26, -0.8354, 1.91, -0.05634, -0.11066, 1.045, -2.068, -0.0691, -1.06, -0.544, -1.92, -0.8027, 0.009315, -0.1348, 0.07465, -2.277, 0.931, -0.02657, 2.023, -0.0896, -1.07, 2.049, -2.03], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.03802, -0.0496, 0.0415, 0.03091, 0.02577, -0.02339, 0.02724, 0.003738, -0.04712, 0.011635, 0.03064, 0.0297, -0.02069, 0.01898, -0.01265, 0.03607, -0.04446, 0.0226, -0.012955, 0.02095, -0.007626, 0.001454, -0.03842, -0.04, -0.02214, -0.0317, 0.02516, -0.0544, -0.0301, -0.000518, 0.0332, 0.01392, 0.02232, 0.00856, -0.0331, 0.00678, -0.03436, 0.03023, -0.02701, -0.02844, -0.0224, -0.03014, -0.007298, -0.03165, 0.0305, -0.000769, -0.05307, -0.05298, -0.02066, -0.04056], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.07336, 0.4985, 1.454, 0.18, 0.472, 1.287, 0.354, -0.1948, -0.5073, -0.4573, -0.006786, -0.2382, 0.5146, 0.0751, -1.18, 0.1342, 0.3716, 0.0762, 0.1405, 0.007046, 0.0944, 0.503, -0.2302, -0.4536, 0.197, -0.4612, 0.309, 0.4287, 0.1532, -0.548, -0.11395, -0.1183, -1.05, 0.4185, -0.00727, 0.4678, 0.4045, 0.603, 0.0727, -0.00637, -0.074, 0.3508, 0.8247, 2.293, -0.6426, -0.4028, 0.0004208, 0.468, -0.3599, 0.2854], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.001425, -0.1827, 0.726, -0.07526, -1.011, -1.102, -0.823, 0.01406, 0.07654, -0.0329, 0.2306, 0.03992, -0.802, 0.7563, 1.033, -0.5444, 0.02809, 0.08185, -0.4004, -0.048, 0.726, 1.633, 0.0796, 0.657, -0.06094, -0.6714, -0.3335, 0.05774, -0.1095, -1.819, -0.06006, -0.0797, -0.2397, -1.894, 0.151, 0.2183, 0.1471, 1.099, 0.2017, 0.000795, 0.1273, 0.765, 1.654, 0.10956, -0.2343, 0.4841, 0.005608, 0.3276, 1.237, -0.9116], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.6294, -1.567, -0.5513, 0.723, -0.772, 0.9316, 3.357, 0.1744, -0.01813, 0.004833, 0.6226, -0.815, -0.4941, -0.1985, -0.2585, 1.101, 0.5264, -2.252, 0.687, -0.00716, 2.336, 0.3738, -0.88, 1.592, -0.2134, -1.438, 0.2744, -0.797, -0.7197, 1.816, 0.006958, 0.4998, -3.238, -0.2327, -0.279, 0.94, -0.9336, -0.597, -1.379, 0.02147, -0.596, -0.4739, -0.8467, 1.58, 0.438, -17.62, -1.394, 0.754, 0.4812, -1.404], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.3987, -1.415, -2.363, 0.5986, -0.3672, 0.4, 1.095, 0.0809, 0.09247, 0.0843, -0.4075, 0.538, -0.555, 0.0615, -0.1648, 1.01, -0.2825, -0.2764, 0.718, -0.03256, 2.057, 0.7007, 0.4675, 0.718, 0.2869, -0.8, -0.2081, -0.414, -0.3623, -3.312, -0.02544, -0.03482, 0.347, -1.1, -0.00588, -0.5737, -0.644, -1.113, -0.593, 0.004425, -0.7524, 0.002842, 0.08844, -7.2, 0.2512, 1.962, -0.3164, -1.499, 0.8906, 0.2351], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.293, -0.4429, 5.117, 0.8423, -0.0335, -1.512, -2.166, 0.1681, -0.9854, -0.3557, 1.794, -0.57, 0.74, 0.2544, -1.402, -2.225, 1.003, -0.2852, -0.1599, 0.007156, -2.254, -3.34, -1.049, -0.4624, -1.292, 0.03223, 0.3164, 0.552, -0.2424, -1.333, 0.00512, -0.182, 2.1, -0.884, 0.01749, -0.642, -2.607, 0.1855, -1.344, -0.00206, 0.628, -0.3586, -1.401, -0.1602, -3.023, 1.404, 0.563, 1.863, 1.088, -1.176], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1722, 0.1202, -2.426, -0.1262, -1.301, 0.887, -0.92, 0.04767, -0.0637, 0.2455, -0.958, -0.4895, -2.246, 0.07465, 1.266, 0.1976, -0.394, -0.0414, -0.3894, 0.03516, 1.216, -1.903, -0.8286, 1.349, 0.1, 0.9766, -0.374, 0.4622, -0.6025, -0.6807, -0.12317, -0.014534, 0.0544, -0.5435, -0.04764, 0.7236, -0.5376, -0.03265, 0.3623, 0.006546, -1.024, 0.999, 0.2157, 1.201, 0.1254, 0.801, 1.17, 0.7456, 1.244, -1.426], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.3435, 0.02438, 0.01834, 0.1256, -0.02512, -0.9214, 0.2394, -0.6104, 1.31, 0.1141, 0.5815, -0.05542, -0.1409, 0.005592, -0.306, -0.1431, 0.04932, 0.04147, 0.1754, 0.01016, 0.2336, -0.02647, -0.4714, 0.2012, 0.3584, -0.4539, 0.195, 0.0508, 1.725, 0.552, 0.3389, 0.2373, 0.3218, 0.4404, -0.3862, -0.1654, -0.1853, -0.04813, 0.06995, -0.01109, -0.03192, -0.05994, 0.635, 0.696, 0.138, -0.4055, -0.3606, -0.166, -0.3062, 0.1859], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.201, 1.504, -0.4458, -1.751, -0.4673, 0.5415, -2.938, 0.10095, 0.5474, 1.099, -0.2388, 0.18, -0.05402, 0.2715, -0.2915, 0.2966, -0.759, 1.338, -1.795, 0.00899, -2.307, -0.6133, -1.123, -0.4612, -0.958, 1.131, -0.19, -0.013916, -0.1182, 2.127, -0.04892, -0.1622, -1.989, 0.2244, -0.3955, 0.723, 1.096, 1.993, 0.368, 0.01773, 0.2656, 0.968, 0.9746, 1.646, -1.558, -3.193, -0.1448, -0.296, -0.3633, 0.4805], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1857, -0.288, 0.202, 0.0903, -0.0163, -1.333, -0.1409, -0.05124, 0.7734, 0.244, 0.3022, -0.03108, -0.2474, -0.77, 0.527, -0.0842, 0.02675, -0.843, 0.4854, 0.03894, 0.1494, 0.0347, -0.3457, -0.06415, -0.3123, 0.1616, 0.4216, -0.1575, -0.3296, 0.1309, 0.1144, 0.544, 0.4958, 0.01997, -0.252, -0.3218, 0.337, 0.04602, 0.0987, -0.02644, 0.586, 0.10443, -0.3772, 1.698, 0.0592, -1.495, 0.2288, -0.435, -0.2554, 0.07367], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2805, -0.9976, 0.03992, -0.14, 0.673, -0.0972, -0.3916, -0.02028, -0.749, -0.10486, 0.2041, 0.2866, -1.877, 0.1476, 0.8257, -1.747, 0.1052, -1.232, -0.2783, 0.0188, -0.00421, 0.4802, -0.636, -0.1948, -0.1388, 0.01646, 0.0721, -0.01232, -0.00706, 0.151, -0.05936, -0.367, 1.699, 0.6216, 0.1134, -0.615, -0.8003, -0.02621, -0.4746, 0.03998, -1.065, 1.326, -0.10095, -0.4333, -0.06366, 2.037, 0.10815, -0.799, -0.7476, -0.1931]]
[-0.715595, 0.226433, 0.467734, -0.0230731, -0.995858, -0.532162, 0.697824, 0.315493, -0.0302211, -0.0299516, -0.313104, -0.881033, -0.187649, -2.01017, -0.0203855, -0.260167, 0.302376, -0.00878497, -0.0117192, 1.30382, -0.100437, -0.486457, 0.245822, -0.248282, 1.10846, -0.116883, -0.12694, -0.0395637, 0.310024, -0.000807629, 0.623122, 0.0463892, 0.212052, -0.0149936, -0.0992224, 0.0916485, 0.373079, -0.0385546, 0.161921, -0.0123291, -0.0598496, -0.296687, -1.0887, -0.0885509, 0.36397, 0.235757, -0.0212448, 1.63113, -0.164618, 0.0197746, -0.716, 0.2264, 0.4678, -0.02307, -0.996, -0.532, 0.6978, 0.3154, -0.03023, -0.02995, -0.313, -0.881, -0.1876, -2.01, -0.02039, -0.2603, 0.3025, -0.00878, -0.01172, 1.304, -0.10046, -0.4866, 0.2458, -0.2483, 1.108, -0.1169, -0.127, -0.03955, 0.31, -0.000808, 0.623, 0.0464, 0.212, -0.01499, -0.09924, 0.0917, 0.373, -0.03854, 0.1619, -0.01233, -0.05984, -0.2966, -1.089, -0.08856, 0.364, 0.2357, -0.02124, 1.631, -0.1647, 0.01978]
ReLU
[[-0.45466, 1.40479, 0.644908, -0.017077, -2.67027, -0.788643, 1.29955, -0.327453, -0.0274893, -0.0594493, 1.72871, -3.464, -2.06025, -1.55888, 0.0200933, -2.67142, -0.1939, -0.0251027, 0.0256559, -1.92606, -0.772802, 0.296323, -0.174902, -2.99711, 3.36616, 0.0891682, 0.517473, -2.13159, 0.444084, -0.114561, 0.365805, -2.32134, 0.854509, 0.035708, 0.289662, 0.45556, 0.287825, -2.25632, -1.02162, -0.0163022, -1.3961, -0.963851, 0.768136, -1.70478, 0.760369, 0.738648, -0.510167, -0.502028, 0.625326, -0.750996, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.09402, 0.788462, -1.0323, 0.0224848, 1.2116, -0.0151045, 0.176742, 0.458038, -0.0147578, 0.0440171, -0.467275, 2.52723, 1.66718, -0.0534584, 0.0302735, 0.43875, 0.478376, -0.0381626, 0.0102422, -0.688607, -0.120952, 1.34389, 0.354639, 0.41092, 0.555756, 0.280256, 0.0860098, 0.590797, 0.831531, -0.807522, 0.245761, 2.13987, -0.114212, -0.0463806, 0.644769, 0.871488, 2.31005, 1.3267, -1.02483, 0.00255367, 0.106069, -0.346271, -0.246859, 0.542833, -1.81693, -0.0240284, -0.202876, -0.249249, -0.117565, 1.37012, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.06812, 0.567592, -0.427476, 0.0185365, 0.59365, 0.174527, -0.949062, 0.490207, -0.0260247, 0.00661345, 2.15362, 0.886846, -1.4457, 0.0868129, 0.0202125, -0.106286, 0.275044, -0.005442, -0.0287587, 0.381765, 0.845698, 0.561587, 0.0542684, -0.457632, -0.160728, 0.738449, 1.02282, -3.22103, -2.19941, 0.347098, -0.285813, -3.0045, -0.0217799, -0.00561529, 0.381613, 0.239281, 0.533037, 0.311815, -0.407758, -0.0062241, -0.354617, 0.0482056, -0.478745, 0.13621, -0.563706, 0.190693, -0.858405, -0.114753, 0.774424, -4.3227, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.00670458, -0.255499, -0.318168, -0.0452725, -0.0134059, -0.295924, 0.448246, 0.492201, -0.0201982, -0.0245963, -0.604832, -0.961606, 0.0798176, -0.367478, 0.0569598, 0.875115, -0.102829, 0.0169111, 0.0132213, 0.444016, 0.0223804, 0.797525, 0.370886, 0.412519, 0.893482, 0.477992, 0.645595, 0.79301, 0.353674, 0.215007, -0.191216, 1.13515, 3.93184, -0.0513075, -0.0602066, -0.643137, -2.31558, 0.539648, 0.0878056, 0.0233905, -0.292015, -1.91774, 0.0850893, -0.163176, 0.536222, -0.21867, -0.529888, -0.305111, 0.646441, -2.12504, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.412459, -0.759884, 0.368889, -0.0181378, 0.0952169, -0.913375, 0.666974, -0.670551, -0.0454729, 0.0208179, 1.81526, -0.293545, 0.0978247, 0.26467, -0.0284972, 0.789789, -0.330943, 0.0291019, 0.0050419, -0.491436, -2.03977, -0.342756, -0.506921, 0.177711, 0.495599, 0.596191, 0.141033, -2.66996, -3.11488, 0.6943, 0.399957, -0.254048, 0.133194, 0.0257484, -1.97264, 0.639355, -0.550428, -0.7702, -0.123688, -0.0214649, 1.01546, 2.022, 0.555624, 0.372417, -0.872202, 0.165489, -1.8611, 0.660766, -0.0887727, 0.147287, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [3.61865, 0.353894, 2.2132, 0.0194365, 1.92899, 0.0874968, 0.869715, 2.26249, 0.00382285, 0.0272445, 2.26173, 1.16821, 0.518473, 1.41213, -0.0203464, -0.760759, 1.61839, -0.00378437, 0.0113609, 2.65019, 2.29807, 3.115, 2.58905, 3.15421, 2.74, 1.43319, 3.32111, 1.43363, -0.211279, 0.381614, 1.96546, 2.12438, 0.783289, 0.0153547, 0.110359, 0.110779, 1.90694, 2.90879, 1.2246, -0.00255705, -0.239661, 0.900457, 0.721895, 1.58372, 1.43791, 0.682358, -1.11336, 1.66875, 2.37089, 1.94893, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.684353, -0.445891, -0.710053, 0.0137668, -0.282958, 0.0864659, 0.248379, 0.212506, 0.0108248, -0.012961, -0.00894084, -1.24101, 1.15974, 0.867322, -0.00249349, -0.35299, -0.64672, -0.000366522, 0.0208897, 0.0906768, 1.2548, 0.399372, 0.530206, 0.0389182, 0.518912, 1.87944, 0.930635, 2.25639, 0.404332, -0.369333, -0.448413, -0.00527809, 2.09182, 0.0183647, 0.740522, 0.202389, 0.627019, 1.01471, -0.180668, -0.0299762, 0.765394, 0.362924, -0.456379, 0.439469, -0.58966, 0.367964, -0.55365, 0.29776, -0.337239, 1.17733, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0290907, -0.182399, 0.142946, 0.0217783, 0.549801, 0.336762, 0.164268, 0.859427, -0.0210484, -0.0217252, 0.338801, -1.38729, -0.773211, 0.421356, -0.025966, 3.37022, 0.765494, -0.0230327, -0.0247916, -0.251727, -1.69861, 0.255928, 0.0650124, -0.0102029, 1.51184, -0.786477, -0.625254, 1.87302, 0.102969, -0.127875, -0.53003, 0.546073, 0.130264, -0.0249688, -0.224791, -0.785891, -0.655095, -0.481459, -0.0686322, -0.0185993, 0.309345, 1.08503, 0.105249, 0.107106, 0.0974193, -0.251819, -0.57943, 0.306143, 0.280914, -0.382264, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.870316, 0.956649, 0.0198132, 0.0329767, 0.473722, -0.31144, 0.249002, 0.321763, 0.0249204, 0.00617209, -0.981157, 0.55821, -1.28251, 0.142458, -0.0301179, -1.89805, 0.37551, -0.0309933, -0.00705231, 0.231736, -0.331111, -1.12315, 0.209686, 0.324792, 0.478845, 0.0989706, 0.253205, 0.319763, 1.0326, -0.00969621, -0.18378, 0.71973, 0.974164, -0.00699583, 0.331771, -0.357969, -5.12757, 0.598819, -0.224809, 0.0177967, 0.332761, 1.49289, 0.104955, -0.0211746, -0.238307, -0.322313, 1.3602, -0.0959941, 0.0181607, 0.420643, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.336929, 0.351946, 0.167334, -0.0282169, 1.92369, -0.227535, 0.170516, 0.881819, -0.0492455, -0.029249, 0.886187, -0.177739, 0.209937, -1.7011, 0.0421555, 0.322453, -0.796008, 0.0405117, -0.0477788, 1.04379, -0.159774, 2.18147, 0.0226507, 0.141661, -0.792751, -1.26967, 1.26205, 0.45355, 1.31767, 0.0207385, 0.222133, 0.857081, 0.702904, -0.00848599, 0.313176, -0.262124, 1.84576, 0.297974, 0.0237198, 0.00310801, 0.123297, -1.16214, 0.191885, 1.00417, -0.344622, 0.280776, 0.877695, 0.29469, 1.01566, -2.94114, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.987218, 0.260063, -0.0694794, -0.0473086, -0.606561, -0.112618, -0.115241, 0.832218, -0.0471714, -0.0110333, -0.35098, -0.572267, 0.365862, 1.14839, 0.0114487, -0.605816, 0.61665, 0.0226882, 0.0412796, 0.172592, 0.540239, 1.05584, -0.00940764, 0.54072, 1.9917, 0.542718, -0.306106, 2.95064, 0.218981, 0.326658, -0.029502, 0.917083, -0.0516565, -0.0465642, 0.262633, 0.231924, 1.62957, 1.35654, -0.504456, -0.0299234, 0.166252, -0.0107514, -0.210576, 0.228458, 0.345263, -0.986674, -0.116256, -0.447366, 0.575677, -2.46574, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.32979, 0.547779, -0.0703713, 0.00261391, 0.132117, 0.182668, 0.490788, -0.0365548, -0.00841561, -0.00406623, 0.491649, 2.33984, 0.73071, -0.701162, -0.0174311, 0.448644, -0.151402, 0.0335752, -0.0112857, 0.406486, -0.475016, 0.758764, -0.162543, -0.46551, 0.325719, -0.549594, 0.703277, -0.220058, 0.0585992, -0.153068, -0.198356, 0.448204, 0.145892, 0.00109664, 0.232839, -0.703217, 1.18387, 0.238796, -0.409776, 0.0188812, 0.334538, 0.815488, 0.125995, 0.669493, 0.508385, -0.275502, 1.34549, -0.362061, -1.6406, 0.662092, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.598753, -2.13009, -0.0617134, 0.0161475, 0.393027, 0.439023, 0.0686083, -0.102971, -0.022515, 0.00370848, -0.639989, -1.65344, -0.150133, -0.126236, -0.0130209, -0.441757, 0.399361, -0.0308838, 0.0559353, -0.437499, 0.402189, 0.459563, -0.177892, 0.137076, 0.423526, 0.159502, 0.492907, 1.52666, 0.46574, -0.154696, -0.323534, -0.136022, -0.418179, -0.0419167, -0.406123, 0.761855, -0.242279, -1.28537, 0.645565, -0.00368628, -0.178267, 0.16813, -0.29405, 0.181757, 0.594601, 0.0756553, -0.716933, 0.288125, -0.22477, -1.33618, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.700255, -1.97496, -3.74714, -0.0249745, 2.53129, 1.00344, -1.88208, -3.65443, -0.0365625, 0.0191249, 1.78273, 0.302633, -4.61466, -0.0938994, -0.0196037, 0.363382, 0.626972, 0.0269812, 0.045651, -7.69667, -2.25312, -0.267211, 0.0592925, -15.6339, 0.295984, -0.924838, -0.648021, -2.01121, -1.61116, -1.70645, -1.66523, -4.49397, -9.70075, -0.017102, 1.34499, -0.475091, -1.88484, -3.91955, 0.115081, 0.0138446, 0.987384, -2.26211, -0.402841, -0.579788, 1.13736, -2.0936, -0.81803, -0.12913, 1.6665, 0.0227647, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.51862, -0.344875, -0.0107376, -0.036847, -0.0618436, -0.232061, 0.306736, 1.13121, 0.0419632, -0.0207706, 1.02577, -4.76974, -1.12364, 0.710944, -0.020002, -0.0431996, -0.842034, 0.0375296, 0.0283248, 0.686125, 1.69989, 1.24276, 0.0782134, -0.149857, 1.19396, 1.8099, 1.09, 0.0819487, 0.78797, 0.0505586, -0.0589358, -0.574902, 1.2144, -0.010949, 1.46463, 0.709509, 2.14671, 0.639221, -0.0436765, -0.0158539, -0.369547, -1.27079, 0.190345, 0.586292, 0.169682, -0.120443, 0.15205, -0.0228371, -0.046451, 0.545233, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0641244, -0.157439, 0.0257114, -0.0376775, -0.144308, 0.114813, 0.0416686, 0.306197, 0.0124352, 0.0209041, 0.746144, -0.306478, 0.987749, 0.364776, -0.0175685, -0.48805, 0.225128, 0.0195334, 0.00332755, -0.41009, 0.363432, 0.485451, 0.207296, -0.0708026, -0.379858, -0.513245, -0.0718857, -1.72608, -0.258982, -0.139205, -0.0934463, 0.980973, 1.56234, -0.0294008, 0.315197, -0.669232, 0.655121, -1.19928, 0.0957539, 0.010307, -0.157505, 0.0457994, -0.0249846, -0.152891, -0.916738, -0.0518597, -0.398786, -0.142231, 0.470248, -0.0971031, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.68239, 0.919555, 0.18681, -0.00589529, 0.799336, -0.149553, 0.134432, -1.06142, 0.0588539, 0.00265335, -0.245199, 0.164699, 2.90253, 0.135268, -0.000721483, 3.52815, -0.10458, 0.0379131, -0.0337027, 1.27591, 1.66031, 0.571935, -2.9073, 0.684129, -0.670645, 1.85278, 0.626918, 1.6125, 0.973501, 0.379553, 0.0169896, 0.924975, 0.0323034, -0.0258017, 1.94387, -1.16112, 0.650724, 0.130893, 0.25372, 0.0287734, -0.959888, 0.689111, -0.0850096, 0.783573, 0.861853, 0.186886, -0.0940368, 0.235843, -0.257372, 0.404611, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-4.36525, 0.235717, -0.0351473, 0.0347886, 0.124347, -0.126188, 0.161396, -0.204211, 0.0329963, -0.00451923, 0.314158, 1.05124, 0.760053, 0.646967, -0.00492556, -1.05435, 0.258024, -0.0284979, -0.033373, 0.355231, 1.18548, -1.85415, -0.0937877, 0.865587, -0.517706, -1.2779, -0.830892, -8.16178, 0.66509, 0.161062, 0.193086, -0.242669, 1.73753, 0.0206246, 0.856525, 1.4773, -0.692446, 1.78204, 0.0655531, 0.0403711, 0.293449, 0.431222, -0.408096, 1.38245, -0.81455, -0.416983, 0.667013, -0.354333, 1.09906, -0.522631, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.87071, -1.52405, -1.32974, 0.0380386, 0.51266, 0.228986, 0.418568, -2.57982, 0.0312975, -0.0192472, -0.191657, 0.138308, -1.48868, -0.435656, 0.0381712, 5.10517, -0.770974, -0.0289758, -0.00905692, -6.05357, 0.74681, -2.33193, -0.0361074, 0.610162, -0.088461, -2.28741, -0.60508, -2.68026, -1.44762, -0.472115, 0.300891, 0.282471, -16.7813, 0.0151581, -3.37893, 0.845691, -2.4188, -6.77421, 0.28717, 0.0449296, -0.727339, 0.775572, 0.290378, -0.144964, -0.0902099, -0.774903, -0.569497, -0.919164, -3.51232, -2.84128, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0554621, -0.411935, 0.454784, 0.00550119, 1.02022, -0.226944, 0.0907575, -0.12389, 0.0466529, 0.0150333, 1.20681, -1.01557, 0.857473, -1.19154, 0.0306823, 0.156825, 0.479992, 0.0178017, -0.00921929, 0.221743, 0.416457, -0.820368, -0.0841493, 0.1796, 0.181163, 0.592059, 2.08859, 1.95514, 0.597154, 0.162884, 0.514989, 1.11267, 1.37708, 0.0263635, 0.77927, -0.853491, 0.0617792, 1.16823, -0.166696, 0.00841058, 0.331104, 0.337779, 0.0964971, 0.588736, -0.45285, 0.26763, 0.0254127, -0.375015, 0.634213, 0.224777, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.10639, 0.415533, 0.396163, -0.0394845, -0.255533, 0.0227026, -0.58419, -0.0064036, 0.0299037, 0.0456037, -0.117937, 0.113649, 0.0673014, -0.244014, -0.0048983, -0.558348, 0.287794, -0.0187571, -0.0509745, 0.353913, 0.713168, 1.08915, 0.162621, -0.973629, -1.82274, 0.538289, 0.203306, -5.79873, 0.544373, 0.239845, 0.0797973, 0.717837, -0.491882, -0.00974499, 0.920651, 0.198608, -0.0804455, 0.318429, -0.206387, -0.0445706, 0.200029, 0.152236, -0.69458, 0.475794, 0.412928, -0.710518, 0.115819, -0.463087, 0.491962, -0.20407, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.137363, -0.140609, -0.00474846, -0.0332903, -0.142662, -0.115937, 0.11909, 1.00155, 0.00406347, -0.0211173, 0.917909, -1.77132, 0.375438, 1.19874, 0.00802124, -2.05703, -1.0982, -0.00425604, -0.0140411, -0.237231, 1.10721, 0.639251, 0.236685, -0.897784, 1.61695, 0.275164, 0.276569, 0.925761, 0.637761, 0.702517, 0.531071, 0.641053, 0.928886, 0.0146954, 1.02922, 0.622989, -0.704963, -0.0555446, -0.107556, 0.0186912, -0.81232, 0.261774, 0.0828981, -0.387668, -1.66746, 0.0429945, -0.0878193, -0.0243167, 0.688026, 0.865626, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.140767, -0.344202, -0.0254991, -0.0256127, 0.0875774, -0.0495712, 0.448339, 0.904323, -0.0390122, 0.00946212, 0.449682, 0.0321059, 0.974826, 0.325473, -0.0327039, 0.226744, 0.458174, 0.0315323, -0.0128007, 0.141793, -0.340609, 0.215153, 0.0201107, 0.916961, 0.319033, 0.288714, -0.343259, -0.898465, -4.54124, 0.069172, 0.0860962, 0.134833, 0.510929, 0.0220828, 1.03887, 0.0720591, -0.763299, 0.138997, -0.813183, 0.0483216, -0.139926, 0.691797, -0.406904, -1.16746, 0.361124, 0.077197, 0.498626, -0.317066, 0.723113, -0.696823, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.34942, -0.779818, 0.601653, 0.0248447, 0.276813, -0.250479, 0.329599, -0.301625, -0.0405152, -0.019661, -0.435613, -0.309948, -1.217, -0.657943, -0.0285394, 2.67766, -0.0286048, -0.00281655, -0.0486969, 0.109151, 0.247358, 0.468957, 0.24758, 0.150294, 0.33782, -0.532173, 0.994556, -2.89216, -0.254827, 0.615089, 0.75651, -0.618049, -3.6697, -0.0515068, 1.27597, -1.16621, -0.248405, -0.857553, 0.34873, 0.0381466, -0.299475, 0.0526118, 0.105877, 0.460015, 0.0675607, 0.221324, 0.151351, -0.298339, 1.29034, -1.47201, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0371527, -0.0378378, -0.0290433, 0.0363791, -0.0272703, 0.024069, -0.0205879, -0.0068361, -0.000459294, 0.0455081, -0.0298873, 0.0325693, 0.00703641, 0.00446757, 0.0471468, 0.0208233, -0.046412, -0.0400889, -0.00414542, 0.022663, -0.0384307, -0.0177672, -0.00398236, -0.0330361, -0.000349324, 0.0133378, -0.0524267, 0.0465216, -0.00492087, -0.0398624, 0.023578, -0.0085323, 0.0105419, -0.0319098, -0.00227135, 0.0211112, 0.0285553, -0.0418928, -0.0140135, 0.0424441, -0.0506365, -0.000230948, -0.0301245, -0.0241608, -0.0515564, 0.00556868, -0.0494508, -0.0264522, -0.0471721, -0.0119821, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.9034, 0.204424, 0.493663, -0.044582, 1.11368, -0.505914, 0.0457732, 1.91762, 0.0535454, 0.0650193, 0.340667, 1.33781, 3.07321, -0.0343504, -0.0255585, -1.56972, 0.376286, -0.00787988, 0.00615043, 0.961685, 1.49148, -0.317942, -2.99617, 1.07009, 0.873493, 1.65167, 1.48684, 1.54179, 1.20773, 0.371531, 0.130121, -0.069336, 0.525131, -0.0458025, 1.04024, -0.334884, 1.36366, 1.5847, -0.290651, -0.0411032, -0.15453, 0.51731, 0.723654, 0.549611, 0.272294, 0.237652, 0.17385, -0.563447, 0.46311, 0.318577, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.254865, 0.124395, -0.361216, 0.0142462, 0.0256132, -0.602924, -0.325639, 0.387835, 0.0212793, 0.042225, -0.0908142, 0.516654, -0.341483, 0.0901556, -0.0270188, 0.230068, -0.185649, 0.0465765, -0.0249605, 0.644811, 0.622236, 0.511189, -0.021862, -2.67267, 0.111945, 0.678096, -0.703076, -1.12623, 1.17263, -0.381542, 0.297239, 0.222551, -0.841058, 0.017409, 0.226886, 0.263455, 0.0744142, 0.472829, 0.332274, -0.0401065, 0.484589, -0.38021, -0.514471, -1.68297, -0.890455, -0.915015, 0.180393, -0.0550191, 0.0377239, 1.54564, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.493714, -0.223221, 1.38702, -0.0432791, -3.74083, 0.731724, -0.492084, -0.190089, -0.00101119, 0.00220642, -1.19412, -2.42647, -0.44499, -0.221304, -0.0277876, -1.15938, 0.108681, -0.0346886, 0.0257451, -3.56657, -0.076797, 0.164995, -0.00366934, 0.267525, 0.0193495, -0.484006, -0.258578, -1.4217, -0.554955, 0.0971262, 0.526394, -2.19528, 1.08104, -0.0488282, -1.54379, -1.10234, -0.281492, 0.445435, 0.802247, -0.0011818, -0.650874, -0.983374, -0.0197459, -1.21719, 0.280865, -0.0167563, -0.429705, 0.779238, -0.210049, 0.989448, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.36766, 0.368872, 0.560522, -0.0440807, 0.754582, -0.135037, -0.0364704, 1.00599, -0.0294819, 0.0230146, -0.556005, -1.77881, 1.6918, 0.842357, -0.0024523, 2.65582, 0.577989, -0.0305576, -0.0328097, 0.755501, 1.60019, 3.06953, -15.7269, 0.888251, 0.432655, -0.621276, -0.231784, 1.5883, 1.0677, 0.105547, 0.557957, 2.26488, -0.153121, -0.000209877, -0.806997, 0.226068, 1.37467, 1.57297, -0.186862, 0.0335302, -0.354622, 0.0178116, 0.711244, 0.878073, 1.41489, -0.815252, 0.226437, 0.377303, 0.963379, -0.232768, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0184056, -0.605916, 0.0946784, 0.0398942, -1.56412, -0.0818911, 0.155672, -0.231839, 0.0501473, -0.00677024, 0.656537, -1.79362, -2.5187, -0.0390916, -0.0122108, 2.27621, -0.00863601, -0.047776, -0.0178919, 0.568998, 1.06943, 0.587474, -0.108547, 0.836538, -0.274989, -0.883817, -1.58425, -3.64159, -0.743794, -0.0509162, -0.0732294, -1.00481, -0.515521, 0.017322, 0.533058, -0.405514, -0.203801, -0.0467175, 0.145247, 0.0375893, 0.124858, -0.992678, 0.553948, 0.231045, -0.279403, -0.356805, -2.90678, 0.132069, 0.0850526, -1.26594, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.47101, 0.871486, -0.983736, -0.00359231, 1.63313, 0.143316, 0.0134435, 0.352386, 0.0259567, 0.0134415, 0.117794, 0.0911737, -1.27032, 1.01957, 0.0170832, -1.23043, -0.911882, -0.00813139, -0.0265401, -0.105495, 1.25063, 1.25596, 0.178131, -1.25196, 0.435815, 0.582362, -0.0512801, 2.73907, -0.0795017, -0.378755, 0.045873, 2.07098, 2.98668, 0.000757368, 2.16045, 0.712733, 1.63979, 2.14025, 0.393415, 0.0327223, 0.570537, -0.134836, -0.620681, -0.54672, -2.24734, -0.36899, 0.642072, 0.0935047, 1.07512, 0.656464, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.20531, 0.105133, 0.00856842, -0.0456054, 0.557002, -0.0120172, 0.498326, 0.431324, -0.0276741, -0.0404053, 0.15775, 0.640259, 0.748249, 0.467291, -0.00057022, 2.13276, -0.0207132, -0.0490121, 0.0493627, 0.179743, 1.18232, 0.153737, 0.484565, -1.14405, -12.2136, -2.32569, -0.669783, 0.735031, 0.516388, 0.232762, -0.0152009, 1.22237, 2.15372, -0.0228601, 0.58577, -0.353309, -0.0629329, -0.0750415, -0.135253, -0.00478736, -0.274357, -0.382476, -0.0171467, 0.350774, 0.171013, -0.0769002, 0.477774, -0.0385755, 0.119567, -0.197109, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.234975, 0.234307, -0.351763, 0.0300593, -0.35827, -0.358461, -0.205254, -0.26388, 0.0220075, -0.00141512, 0.293045, 1.32353, 0.138385, -0.240313, 0.0340375, 0.53808, -0.15492, -0.0467523, -0.0545377, -0.0959989, 0.743683, -0.522709, 0.0868982, 0.237001, 1.19563, 0.66126, -1.34435, 1.30432, -1.40112, 0.417842, -0.153974, 0.890644, 1.03065, 0.00474043, 1.01115, 0.390349, -2.29709, 0.148833, -0.42507, -0.0113271, 0.281318, -0.342114, 0.333077, 0.242825, 0.242895, 0.523407, 0.575508, -0.0320464, -0.1916, 0.375464, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.486098, 0.919881, 0.31297, 0.0307167, -2.01153, -0.331621, -0.428609, 0.685577, -0.0482692, 0.0255565, -2.02703, -0.0651598, -3.1677, -0.605424, -0.0107914, -0.953721, -0.0431789, -0.00473383, -0.0298687, -0.439655, -0.604633, -0.241402, -0.213526, -0.151128, -0.980995, -0.570242, -0.742054, -4.2305, -1.95625, -0.0771925, 0.0897222, -3.06529, -2.27598, 0.0343361, -0.151782, -0.180417, -0.738609, 1.03039, -0.101857, 0.0431923, 0.413803, -0.882168, 0.694318, 0.68711, 0.142747, 0.680435, -3.32177, 0.103849, 0.193804, -0.859332, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-4.32055, 0.262241, 0.7001, -0.0172398, -3.63957, -0.572417, -0.0667998, -0.322772, -0.0372046, -0.0295459, 0.140831, -1.09407, -1.72095, -1.4464, 0.0391452, -2.29807, 0.441163, 0.0434851, -0.0258865, -0.431629, -2.11418, -0.827427, -0.0828668, -0.110145, 1.32859, -1.54472, -1.44686, -7.48555, 0.857201, 0.34636, 0.229618, -3.78274, 1.15753, 0.0278744, -1.96326, -0.958493, 1.0847, 1.17872, -0.271082, -0.0337629, -0.998067, -0.348853, -0.743729, -0.00663525, -0.474111, -0.117646, -3.75633, 0.392112, -0.498725, -0.764399, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.59446, 0.606788, -1.64871, 0.0217817, -0.227652, 0.279848, 0.123042, -0.329482, 0.0166913, 0.0139331, -0.0663686, 0.0464767, 0.565062, 0.0571984, -0.0311224, -0.778147, 0.101153, -0.012456, -0.0358474, 0.0323522, -0.362109, 0.149654, -0.0165722, -1.3964, 2.06553, 0.144118, 0.770711, 1.29937, 0.357468, -0.834678, 0.0381735, -0.679673, 1.68363, 0.0149434, -0.70636, 0.292201, 0.152905, 1.92595, 0.208583, 0.0241029, -0.430094, 0.277403, -0.100385, -0.24478, -0.779282, -0.224694, 0.202264, 0.309216, 0.384876, 0.49282, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.35186, 0.115145, 0.829748, -0.0290217, -0.252064, -0.0134262, 0.712509, 0.961031, -0.0121389, 0.0155427, 1.35343, 0.926862, 1.18456, 0.150449, 0.0524024, -0.331798, 0.66471, 0.00687246, -0.0291239, 2.07312, 2.04523, -0.142551, 0.848991, 1.3958, -2.44882, 1.03414, -0.243154, 2.13492, 0.677173, 0.0666315, 0.551927, -0.638779, -3.3829, -0.0381285, -2.73051, -1.36482, -1.87766, -0.799315, 0.457665, 0.00237179, 0.239973, -0.0165113, 0.313326, 0.279759, -0.0181586, 1.17017, -0.751987, 0.364828, -1.63667, -1.28661, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.9073, -0.013715, -0.00897416, 0.0365533, -0.708102, 0.00312668, 0.711096, -0.564393, 0.00779241, 0.0356696, -0.307411, 0.440308, -0.754531, 0.881913, -0.0290858, -0.889576, -0.0899049, -0.00414575, 0.0538247, 0.132043, -0.878084, -0.294951, 0.120814, 0.320152, 0.175133, -0.0659123, -1.00158, -0.206223, -0.624841, 0.246547, -0.191419, 1.73184, -2.85982, 0.0117906, 0.354379, 0.215118, 0.854102, 2.06333, -0.0393692, 0.0322192, 0.948999, -1.47229, -0.410567, -0.554948, -0.519691, -0.164915, 1.48507, 0.249471, -0.492508, -0.136644, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-2.61647, -1.75838, 1.31428, -0.0253635, -0.306674, 0.210085, -1.38796, -0.528082, 0.047997, 0.0187051, -0.94294, -3.05766, -1.73061, 1.02602, 0.0257934, 0.668273, 1.24968, -0.0167383, 0.0302027, 0.327797, -4.48159, -2.7592, 0.162548, -0.0219152, 0.0807511, -2.16249, -4.73284, -0.152422, -0.0933869, -0.162942, 0.222343, -0.546714, -1.61449, 0.0290223, 2.44456, 0.732918, -2.62108, -4.32962, 0.719002, -0.00219165, -2.03874, -6.0107, -0.106572, -1.46254, -0.665001, -0.09642, -1.00363, 0.0968329, -1.8286, -0.0277455, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.82271, 0.428614, -0.261327, 0.0327504, 0.0408293, -0.0176158, -0.407437, 0.164839, -0.0204171, 0.022213, -0.549486, 0.969964, -2.41448, -0.886822, -0.00203092, -0.316405, 0.240504, 0.000160751, 0.0389157, 0.429458, -0.62394, -0.126798, 0.271888, 0.0950788, -0.923105, 0.576961, -0.283147, -1.20064, 0.0556631, 0.110322, -0.492056, 0.683001, 1.12681, 0.0498992, -1.01246, -0.00197137, 0.844177, 0.257218, -0.337723, 0.0131768, 0.354537, 0.483064, 0.297706, 0.429211, 0.168642, 0.176682, -0.580138, -0.0234552, 0.510166, -0.69377, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0651313, 1.46161, 0.838339, -0.0253469, 0.545516, -0.536007, -0.127932, 0.865313, 0.0629429, -0.0291412, 1.89817, 0.465743, 1.01436, -0.531409, -0.0189736, -2.30374, 1.00117, 0.0414207, 0.0151322, 3.60434, 1.79996, 2.51, 0.277933, 1.8445, 0.120438, 1.69497, -0.611323, 0.528826, 0.59107, 0.271518, 0.632852, 2.7354, -1.08968, -0.0247364, 0.550098, -1.03738, 0.0139504, 2.56352, -0.477004, -0.0218325, 0.230525, 0.812913, 0.802837, 2.06367, 1.7872, 0.67814, 0.528352, 0.0645065, -0.50297, 2.59266, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [2.58531, 1.61523, 0.876311, 0.0326698, 0.285126, 0.0935423, 0.453106, 0.210177, 0.0438457, 0.0112991, 0.770053, 2.18642, -0.776896, -0.673218, -0.0177503, 2.26154, 0.516185, -0.0197723, 0.00765466, 0.561002, 1.00808, -0.79487, -1.80957, 0.743695, -3.40166, -0.148525, -2.1811, 1.53932, -0.0382059, 0.377727, 1.31563, 1.01041, 0.470674, -0.052362, 0.668774, -0.537865, -1.51003, 0.763751, 0.0853316, 0.0496584, -0.596168, -0.325496, 0.309846, 0.934573, 0.598676, 0.526739, -0.114478, -0.552597, 0.207294, 1.64332, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.173007, 0.554969, 0.165144, 0.00235504, -1.65679, -0.250075, 0.954685, 0.951993, -0.00315774, -0.0102054, 1.42349, -2.46732, -0.767579, 1.08945, -0.0383469, -2.02179, 0.00853468, -0.00307776, 0.0324763, 0.500717, 1.05611, -1.13068, 0.254968, 0.0094489, -0.107911, -0.126081, 0.377921, 1.01348, -0.0464163, 0.391275, 0.315904, 0.682998, 0.220117, -0.0374524, 0.790754, 0.545437, 0.339351, -0.115652, 0.337781, 0.0302305, -1.13196, -0.418179, 0.308781, -0.642188, 0.260035, -0.436832, -0.166667, 0.328777, 0.308706, 1.43636, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.861344, 0.733639, 0.789772, 0.03275, 0.526827, -0.316489, -0.399023, 0.178964, 0.015322, -0.00201891, 0.762867, -1.03012, 1.12246, 0.786589, -0.0415338, -0.351231, 0.979987, 0.00670641, 0.011824, 2.45422, 2.27129, 2.18976, -5.23605, 1.2742, 0.0163713, 0.776433, -2.73515, -0.20471, 0.274782, 0.0341467, -0.697469, 3.14522, -1.95953, -0.0232205, 1.47697, -1.65034, 1.45381, 1.35092, 0.158794, -0.0317388, 0.147729, 0.543889, 0.875728, 1.42484, 1.79492, 0.688779, 1.01114, 0.811743, -0.589995, 3.72651, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.344311, 1.09509, -0.0628521, -0.048793, 1.80558, -0.165419, -0.680852, 0.295788, -0.0137294, 0.0238986, 0.418905, -0.703786, 1.57129, -0.227829, -0.0100823, 0.473482, -0.118297, -0.000492871, -0.00116276, 0.913486, 2.34184, 0.795832, 0.296102, 0.449, -5.11865, 0.939819, -0.00241021, -2.26388, 0.882004, -0.205439, -1.60191, -0.901024, 2.3407, 0.0257182, 0.595173, 0.5013, 0.568287, 2.33238, 0.19293, -0.0102358, 0.24855, 0.200398, 0.124032, 0.378504, 0.569215, -0.37169, 0.0135059, -0.239985, -0.246057, -1.53736, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.32597, 1.4726, 0.0930969, 0.0154648, 0.378322, 0.399375, 0.732439, -0.892949, 0.0454318, -0.0409717, -2.53601, 1.18983, 0.825799, -1.24101, -0.0535625, 4.05581, 0.503591, -0.0212789, -0.049866, -0.815103, 0.650477, 0.91051, 0.115083, 0.15751, 0.586805, -0.825823, -1.69048, 1.59739, 1.27994, -0.178232, 0.160895, -2.79996, -2.87586, -0.0242098, -1.11861, 0.36223, 0.563393, 0.849532, -0.705943, 0.0365386, 0.182774, -0.347416, -1.39203, -2.08017, 0.863872, 1.06402, -0.175593, -1.23772, 0.965985, 1.05595, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.250313, -1.2214, 0.367486, 0.0374194, 0.980699, -0.22098, -0.0109085, 0.430474, 0.00103902, -0.0201099, -0.183046, 1.00294, 0.763903, 0.6825, 0.0366237, 1.32727, -1.04737, 0.00128525, 0.0387802, 0.0393053, 0.0790959, 0.712918, 0.0511508, -0.364559, 1.34163, 0.396761, 0.416753, -2.06175, -0.334271, 0.351082, -0.611516, 1.39295, -1.45809, -0.0458717, 1.51031, 0.383563, 0.662328, 1.00189, 0.344517, 0.030459, -0.161915, 0.435109, -0.792702, 0.658191, 0.116783, -0.0602529, 1.0724, -0.249728, 0.13345, 1.14734, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.09011, -2.78417, -5.4906, 0.000799537, 3.72304, 1.29659, -3.78925, -1.40839, 0.0409288, 0.0391949, 1.22629, 3.73283, -1.46132, -0.896439, -0.0152315, 0.668053, -1.02725, -0.0150195, 0.0175834, -2.9681, -1.03469, 0.79543, 0.610356, -0.0117204, -0.0860722, -3.48579, -3.18848, -2.31399, -2.95231, 0.0297404, 0.364842, -1.97007, 0.841858, -0.0330119, -1.39043, 0.0363444, -10.7121, -5.03042, -1.46077, 0.0390433, -0.323513, -1.67184, 2.25573, -0.268904, -4.06992, -0.79192, -2.26248, -4.34075, -1.24064, -1.4107, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.448554, 0.40403, 0.491724, -0.02639, -0.0445652, -0.126574, -0.407154, -0.236283, 0.00184927, -0.0654459, -1.12231, -0.974749, -0.687781, -0.109547, -0.00308847, -0.570976, 0.437566, -0.045056, -0.0404143, -0.305271, -0.105814, -0.0814566, -0.00625342, 0.300378, -0.448715, 0.134998, -0.357044, -3.07737, -0.584242, -0.990556, 0.412212, -0.0644715, -0.236278, -0.025997, 1.25809, 0.40652, 1.2856, -0.0199756, 0.274901, -0.00803384, -1.26002, -0.427714, 0.167491, 0.129733, -0.802322, 0.313704, -1.10423, -0.0175706, -1.00502, 0.906516, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.399098, -0.389766, -0.0784029, -0.0563297, -0.226647, -0.0674729, -0.0789971, 0.143747, 0.0141515, 0.0180102, 0.208269, -0.000362401, -0.947333, -0.0335427, -0.0232765, -2.65307, -0.0991092, 0.0423287, -0.0469275, 0.308627, -0.158156, -0.547398, 0.0273038, 0.0831579, 1.49721, -0.0653286, 0.283466, 0.410312, -0.264307, 0.213666, 0.305641, 0.0164392, -0.0135058, 0.0031242, -0.715174, 0.0444553, -0.0689111, -0.859413, -0.680069, -0.0283857, -0.0840949, 0.251119, -0.0755763, -0.388122, -0.148006, 0.241741, -0.710995, 0.297598, 0.0293369, 0.117818, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4546, 1.405, 0.645, -0.01707, -2.67, -0.7886, 1.3, -0.3274, -0.0275, -0.05945, 1.729, -3.465, -2.06, -1.559, 0.0201, -2.672, -0.1938, -0.0251, 0.02565, -1.926, -0.773, 0.2964, -0.1749, -2.998, 3.365, 0.0892, 0.5176, -2.13, 0.444, -0.11456, 0.3657, -2.322, 0.8545, 0.0357, 0.2896, 0.4556, 0.2878, -2.256, -1.021, -0.0163, -1.396, -0.964, 0.768, -1.705, 0.7603, 0.739, -0.5103, -0.502, 0.6255, -0.751], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.094, 0.7886, -1.032, 0.02249, 1.212, -0.01511, 0.1768, 0.458, -0.014755, 0.044, -0.4673, 2.527, 1.667, -0.05347, 0.03027, 0.4387, 0.4783, -0.03818, 0.01024, -0.6885, -0.121, 1.344, 0.3547, 0.411, 0.5557, 0.2803, 0.086, 0.591, 0.8315, -0.8076, 0.2457, 2.14, -0.1142, -0.0464, 0.6445, 0.8716, 2.31, 1.327, -1.024, 0.002554, 0.1061, -0.3462, -0.2468, 0.543, -1.817, -0.02403, -0.2029, -0.2493, -0.11755, 1.37], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.068, 0.5674, -0.4275, 0.01854, 0.5938, 0.1746, -0.949, 0.4902, -0.02603, 0.006615, 2.154, 0.8867, -1.445, 0.0868, 0.02022, -0.10626, 0.2751, -0.005444, -0.02876, 0.3818, 0.8457, 0.5615, 0.05426, -0.4575, -0.1608, 0.7383, 1.022, -3.22, -2.2, 0.3472, -0.286, -3.004, -0.02177, -0.005615, 0.3816, 0.2393, 0.533, 0.3118, -0.4077, -0.006226, -0.3547, 0.04822, -0.4788, 0.1362, -0.5635, 0.1907, -0.8584, -0.11475, 0.7744, -4.324], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.006706, -0.2556, -0.318, -0.04526, -0.013405, -0.296, 0.4482, 0.4922, -0.0202, -0.0246, -0.605, -0.9614, 0.07983, -0.3674, 0.05695, 0.875, -0.10284, 0.0169, 0.01322, 0.444, 0.02238, 0.7974, 0.3708, 0.4126, 0.8936, 0.478, 0.6455, 0.793, 0.3538, 0.215, -0.1912, 1.135, 3.932, -0.0513, -0.0602, -0.643, -2.316, 0.5396, 0.0878, 0.02339, -0.292, -1.918, 0.0851, -0.1632, 0.536, -0.2186, -0.53, -0.3052, 0.6465, -2.125], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4124, -0.76, 0.369, -0.01814, 0.0952, -0.9136, 0.667, -0.6704, -0.04547, 0.02081, 1.815, -0.2935, 0.09784, 0.2646, -0.0285, 0.7896, -0.331, 0.0291, 0.005043, -0.4915, -2.04, -0.3428, -0.507, 0.1777, 0.4956, 0.596, 0.141, -2.67, -3.115, 0.6943, 0.4, -0.2542, 0.1332, 0.02574, -1.973, 0.639, -0.5503, -0.77, -0.1237, -0.02147, 1.016, 2.021, 0.5557, 0.3723, -0.872, 0.1655, -1.861, 0.6606, -0.08875, 0.1473], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.62, 0.354, 2.213, 0.01944, 1.929, 0.0875, 0.8696, 2.262, 0.003822, 0.02724, 2.262, 1.168, 0.5186, 1.412, -0.02034, -0.7607, 1.618, -0.003784, 0.01136, 2.65, 2.299, 3.115, 2.59, 3.154, 2.74, 1.434, 3.32, 1.434, -0.2113, 0.3816, 1.966, 2.125, 0.783, 0.01536, 0.11035, 0.1108, 1.907, 2.908, 1.225, -0.002558, -0.2396, 0.9004, 0.7217, 1.584, 1.4375, 0.682, -1.113, 1.669, 2.371, 1.949], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.6846, -0.4458, -0.71, 0.01376, -0.283, 0.0865, 0.2484, 0.2125, 0.010826, -0.01296, -0.00894, -1.241, 1.16, 0.867, -0.002493, -0.353, -0.6465, -0.0003664, 0.02089, 0.0907, 1.255, 0.3994, 0.5303, 0.0389, 0.519, 1.88, 0.9307, 2.256, 0.4043, -0.3694, -0.4485, -0.00528, 2.092, 0.01837, 0.7407, 0.2024, 0.627, 1.015, -0.1807, -0.02998, 0.7656, 0.363, -0.4563, 0.4395, -0.59, 0.368, -0.5537, 0.2979, -0.3372, 1.178], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.02908, -0.1824, 0.143, 0.02177, 0.55, 0.3367, 0.1643, 0.8594, -0.02104, -0.02173, 0.3389, -1.388, -0.7734, 0.4214, -0.02597, 3.371, 0.7656, -0.02303, -0.0248, -0.2517, -1.698, 0.2559, 0.065, -0.0102, 1.512, -0.7866, -0.6255, 1.873, 0.10297, -0.1279, -0.5303, 0.546, 0.1302, -0.02496, -0.2247, -0.786, -0.6553, -0.4814, -0.0686, -0.0186, 0.3093, 1.085, 0.1052, 0.1071, 0.0974, -0.2517, -0.5796, 0.3062, 0.281, -0.3823], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.87, 0.9565, 0.0198, 0.033, 0.4736, -0.3115, 0.249, 0.3218, 0.02492, 0.006172, -0.981, 0.558, -1.282, 0.1425, -0.03012, -1.898, 0.3755, -0.03099, -0.007053, 0.2317, -0.331, -1.123, 0.2097, 0.3247, 0.4788, 0.099, 0.2532, 0.3198, 1.032, -0.0097, -0.1838, 0.7197, 0.974, -0.006996, 0.3318, -0.358, -5.13, 0.5986, -0.2249, 0.01779, 0.3328, 1.493, 0.105, -0.02118, -0.2383, -0.3223, 1.36, -0.096, 0.01816, 0.4207], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.337, 0.352, 0.1674, -0.02821, 1.924, -0.2275, 0.1705, 0.882, -0.04926, -0.02925, 0.886, -0.1777, 0.21, -1.701, 0.04214, 0.3225, -0.796, 0.0405, -0.0478, 1.044, -0.1598, 2.182, 0.02264, 0.1416, -0.793, -1.27, 1.262, 0.4536, 1.317, 0.02074, 0.2222, 0.857, 0.703, -0.008484, 0.3132, -0.2622, 1.846, 0.298, 0.02373, 0.003107, 0.1233, -1.162, 0.1919, 1.004, -0.3447, 0.2808, 0.878, 0.2947, 1.016, -2.941], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.9873, 0.26, -0.06946, -0.0473, -0.6064, -0.1126, -0.11523, 0.832, -0.04718, -0.01103, -0.351, -0.5723, 0.366, 1.148, 0.01145, -0.606, 0.6167, 0.02269, 0.0413, 0.1726, 0.54, 1.056, -0.00941, 0.5405, 1.992, 0.5425, -0.3062, 2.951, 0.219, 0.3267, -0.0295, 0.917, -0.05167, -0.04657, 0.2627, 0.2319, 1.63, 1.356, -0.5044, -0.02992, 0.1663, -0.01075, -0.2106, 0.2285, 0.3452, -0.987, -0.1163, -0.4473, 0.5757, -2.465], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3298, 0.548, -0.0704, 0.002613, 0.1321, 0.1826, 0.4907, -0.03656, -0.008415, -0.004066, 0.4917, 2.34, 0.7305, -0.701, -0.01743, 0.4487, -0.1514, 0.03357, -0.011284, 0.4065, -0.475, 0.759, -0.1626, -0.4656, 0.3257, -0.55, 0.703, -0.2201, 0.0586, -0.1531, -0.1984, 0.4482, 0.1459, 0.001097, 0.2328, -0.703, 1.184, 0.2388, -0.4097, 0.01888, 0.3345, 0.8154, 0.126, 0.6694, 0.5083, -0.2754, 1.346, -0.362, -1.641, 0.662], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5986, -2.13, -0.0617, 0.01614, 0.393, 0.439, 0.0686, -0.10297, -0.02252, 0.003708, -0.64, -1.653, -0.1501, -0.1262, -0.01302, -0.4417, 0.3994, -0.03088, 0.05594, -0.4375, 0.402, 0.4595, -0.1779, 0.1371, 0.4236, 0.1595, 0.493, 1.526, 0.4658, -0.1547, -0.3235, -0.136, -0.4182, -0.04193, -0.406, 0.7617, -0.2423, -1.285, 0.6455, -0.003687, -0.1782, 0.1681, -0.294, 0.1818, 0.5947, 0.0757, -0.717, 0.288, -0.2247, -1.336], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.7, -1.975, -3.748, -0.02498, 2.531, 1.004, -1.882, -3.654, -0.03656, 0.01912, 1.783, 0.3027, -4.613, -0.0939, -0.0196, 0.3633, 0.627, 0.02698, 0.04565, -7.695, -2.254, -0.267, 0.0593, -15.63, 0.296, -0.925, -0.648, -2.012, -1.611, -1.706, -1.665, -4.492, -9.7, -0.0171, 1.345, -0.475, -1.885, -3.92, 0.11505, 0.01385, 0.9873, -2.262, -0.4028, -0.5796, 1.138, -2.094, -0.818, -0.1292, 1.666, 0.02277], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.519, -0.345, -0.010735, -0.03683, -0.06183, -0.232, 0.3066, 1.131, 0.04196, -0.02077, 1.025, -4.77, -1.124, 0.711, -0.02, -0.0432, -0.842, 0.03754, 0.02832, 0.686, 1.7, 1.243, 0.0782, -0.1499, 1.194, 1.81, 1.09, 0.082, 0.788, 0.05057, -0.05893, -0.5747, 1.215, -0.01095, 1.465, 0.7095, 2.146, 0.639, -0.04367, -0.01585, -0.3696, -1.2705, 0.1903, 0.5864, 0.1697, -0.1204, 0.1521, -0.02284, -0.04645, 0.5454], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.06415, -0.1575, 0.02571, -0.0377, -0.1443, 0.1148, 0.04166, 0.3062, 0.012436, 0.0209, 0.746, -0.3064, 0.988, 0.3647, -0.01756, -0.488, 0.2251, 0.01953, 0.003328, -0.4102, 0.3635, 0.4854, 0.2073, -0.0708, -0.38, -0.513, -0.0719, -1.727, -0.259, -0.1392, -0.09344, 0.981, 1.5625, -0.0294, 0.3152, -0.6694, 0.6553, -1.199, 0.09576, 0.01031, -0.1575, 0.0458, -0.02498, -0.1528, -0.9165, -0.05185, -0.3987, -0.1422, 0.4702, -0.0971], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.683, 0.9194, 0.1868, -0.005894, 0.7993, -0.1495, 0.1344, -1.062, 0.05887, 0.002653, -0.2452, 0.1647, 2.902, 0.1353, -0.0007215, 3.527, -0.10455, 0.0379, -0.0337, 1.276, 1.66, 0.572, -2.908, 0.684, -0.6704, 1.853, 0.627, 1.612, 0.9736, 0.3796, 0.01698, 0.925, 0.03232, -0.0258, 1.944, -1.161, 0.651, 0.1309, 0.2537, 0.02878, -0.96, 0.689, -0.085, 0.7837, 0.862, 0.1869, -0.09406, 0.2358, -0.2573, 0.4045], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -4.367, 0.2357, -0.03516, 0.0348, 0.1243, -0.1262, 0.1614, -0.2042, 0.033, -0.00452, 0.3142, 1.051, 0.7603, 0.647, -0.004925, -1.055, 0.258, -0.0285, -0.0334, 0.3552, 1.186, -1.8545, -0.0938, 0.8657, -0.5176, -1.278, -0.831, -8.164, 0.665, 0.161, 0.1931, -0.2427, 1.737, 0.02063, 0.8564, 1.478, -0.6924, 1.782, 0.06555, 0.04037, 0.2935, 0.4312, -0.4082, 1.383, -0.8145, -0.417, 0.667, -0.3542, 1.099, -0.5225], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.871, -1.524, -1.33, 0.03802, 0.5127, 0.229, 0.4185, -2.58, 0.0313, -0.01924, -0.1917, 0.1383, -1.488, -0.4355, 0.03818, 5.105, -0.771, -0.02898, -0.009056, -6.055, 0.7466, -2.332, -0.0361, 0.6104, -0.08844, -2.287, -0.605, -2.68, -1.447, -0.4722, 0.3008, 0.2825, -16.78, 0.01516, -3.379, 0.8457, -2.418, -6.773, 0.287, 0.04492, -0.7275, 0.7754, 0.2903, -0.145, -0.0902, -0.775, -0.5693, -0.919, -3.512, -2.842], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.05545, -0.4119, 0.4548, 0.0055, 1.0205, -0.2269, 0.09076, -0.1239, 0.04666, 0.01503, 1.207, -1.016, 0.8574, -1.191, 0.03069, 0.1569, 0.48, 0.0178, -0.00922, 0.2218, 0.4165, -0.8203, -0.08417, 0.1796, 0.1812, 0.5923, 2.088, 1.955, 0.597, 0.1628, 0.515, 1.112, 1.377, 0.02637, 0.7793, -0.8535, 0.06177, 1.168, -0.1667, 0.00841, 0.331, 0.338, 0.0965, 0.589, -0.453, 0.2676, 0.0254, -0.375, 0.6343, 0.2247], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1064, 0.4155, 0.3962, -0.0395, -0.2556, 0.0227, -0.584, -0.006405, 0.0299, 0.0456, -0.1179, 0.11365, 0.0673, -0.244, -0.004898, -0.558, 0.2878, -0.01875, -0.05096, 0.354, 0.7134, 1.089, 0.1626, -0.9736, -1.822, 0.538, 0.2032, -5.797, 0.5444, 0.2399, 0.0798, 0.718, -0.492, -0.00974, 0.9204, 0.1986, -0.08044, 0.3184, -0.2064, -0.04456, 0.2001, 0.1522, -0.6943, 0.4758, 0.4128, -0.7104, 0.11584, -0.4631, 0.492, -0.2041], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1373, -0.1406, -0.00475, -0.0333, -0.1427, -0.11597, 0.1191, 1.002, 0.004063, -0.02112, 0.918, -1.771, 0.3755, 1.199, 0.00802, -2.057, -1.099, -0.004257, -0.01404, -0.2372, 1.107, 0.639, 0.2367, -0.898, 1.617, 0.2751, 0.2766, 0.926, 0.6377, 0.7026, 0.5312, 0.641, 0.9287, 0.014694, 1.029, 0.623, -0.705, -0.05554, -0.10754, 0.01869, -0.8125, 0.2617, 0.0829, -0.3877, -1.667, 0.043, -0.0878, -0.02432, 0.688, 0.8657], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1407, -0.3442, -0.0255, -0.02562, 0.0876, -0.04956, 0.4482, 0.9043, -0.039, 0.00946, 0.4497, 0.0321, 0.9746, 0.3254, -0.0327, 0.2267, 0.4583, 0.03152, -0.0128, 0.1418, -0.3406, 0.2152, 0.02011, 0.917, 0.319, 0.2888, -0.3433, -0.8984, -4.543, 0.06915, 0.0861, 0.1349, 0.5107, 0.02208, 1.039, 0.0721, -0.763, 0.139, -0.813, 0.0483, -0.1399, 0.692, -0.407, -1.167, 0.361, 0.0772, 0.4985, -0.3171, 0.723, -0.697], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.35, -0.78, 0.6016, 0.02484, 0.2769, -0.2505, 0.3296, -0.3015, -0.04053, -0.01967, -0.4355, -0.31, -1.217, -0.6577, -0.02853, 2.678, -0.02861, -0.002817, -0.0487, 0.10913, 0.2473, 0.469, 0.2476, 0.1503, 0.338, -0.532, 0.9946, -2.893, -0.255, 0.615, 0.7563, -0.618, -3.67, -0.0515, 1.276, -1.166, -0.2484, -0.8574, 0.3486, 0.03815, -0.2996, 0.0526, 0.1059, 0.46, 0.06757, 0.2213, 0.1514, -0.2983, 1.29, -1.472], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.03714, -0.03784, -0.02904, 0.03638, -0.02727, 0.02406, -0.02058, -0.006836, -0.0004592, 0.0455, -0.02989, 0.03256, 0.00704, 0.004467, 0.04715, 0.02083, -0.04642, -0.0401, -0.004147, 0.02266, -0.03842, -0.01776, -0.003983, -0.03305, -0.0003493, 0.013336, -0.05243, 0.0465, -0.00492, -0.03986, 0.02357, -0.00853, 0.010544, -0.03192, -0.002272, 0.02112, 0.02855, -0.0419, -0.014015, 0.04245, -0.05063, -0.0002309, -0.03012, -0.02415, -0.05154, 0.00557, -0.04944, -0.02646, -0.04718, -0.011986], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.9033, 0.2045, 0.4937, -0.0446, 1.113, -0.506, 0.04578, 1.918, 0.05356, 0.065, 0.3406, 1.338, 3.072, -0.03436, -0.02556, -1.569, 0.3762, -0.00788, 0.00615, 0.962, 1.491, -0.3179, -2.996, 1.07, 0.8735, 1.651, 1.487, 1.542, 1.208, 0.3716, 0.1301, -0.06934, 0.525, -0.0458, 1.04, -0.335, 1.363, 1.585, -0.2908, -0.0411, -0.1545, 0.517, 0.7236, 0.55, 0.2722, 0.2377, 0.1738, -0.5635, 0.4631, 0.3186], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.255, 0.1244, -0.3613, 0.014244, 0.02562, -0.603, -0.3257, 0.388, 0.02129, 0.04224, -0.0908, 0.5166, -0.3416, 0.09015, -0.02702, 0.2301, -0.1857, 0.04657, -0.02496, 0.645, 0.622, 0.511, -0.02187, -2.672, 0.11194, 0.678, -0.703, -1.126, 1.173, -0.3816, 0.297, 0.2225, -0.841, 0.01741, 0.2269, 0.2634, 0.0744, 0.473, 0.3323, -0.0401, 0.4846, -0.3801, -0.5146, -1.683, -0.8906, -0.915, 0.1804, -0.05502, 0.03772, 1.546], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4937, -0.2233, 1.387, -0.04327, -3.74, 0.732, -0.4922, -0.1901, -0.001011, 0.002207, -1.194, -2.426, -0.445, -0.2213, -0.02779, -1.159, 0.1087, -0.0347, 0.02574, -3.566, -0.0768, 0.165, -0.00367, 0.2676, 0.01935, -0.484, -0.2585, -1.422, -0.555, 0.0971, 0.5264, -2.195, 1.081, -0.04883, -1.544, -1.103, -0.2815, 0.4456, 0.8022, -0.001182, -0.651, -0.9834, -0.01974, -1.217, 0.2808, -0.01675, -0.4297, 0.7793, -0.2101, 0.9893], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.367, 0.369, 0.5605, -0.04407, 0.7544, -0.135, -0.03647, 1.006, -0.02948, 0.02301, -0.556, -1.779, 1.691, 0.8423, -0.002453, 2.656, 0.578, -0.03056, -0.0328, 0.7554, 1.601, 3.07, -15.73, 0.888, 0.4326, -0.621, -0.2318, 1.588, 1.067, 0.1055, 0.558, 2.266, -0.1531, -0.0002099, -0.807, 0.2261, 1.375, 1.573, -0.1869, 0.03354, -0.3547, 0.0178, 0.7114, 0.878, 1.415, -0.8154, 0.2264, 0.3772, 0.9634, -0.2328], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0184, -0.606, 0.09467, 0.0399, -1.564, -0.0819, 0.1556, -0.2318, 0.05014, -0.00677, 0.6567, -1.794, -2.52, -0.0391, -0.01221, 2.275, -0.00864, -0.0478, -0.0179, 0.569, 1.069, 0.5874, -0.1085, 0.8364, -0.275, -0.884, -1.584, -3.64, -0.7437, -0.0509, -0.07324, -1.005, -0.5156, 0.01732, 0.533, -0.4055, -0.2039, -0.04672, 0.1453, 0.0376, 0.1249, -0.9927, 0.5537, 0.2311, -0.2793, -0.3567, -2.906, 0.1321, 0.0851, -1.266], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.471, 0.8716, -0.984, -0.003592, 1.633, 0.1433, 0.01344, 0.3523, 0.02596, 0.01344, 0.1178, 0.0912, -1.2705, 1.02, 0.01709, -1.23, -0.912, -0.00813, -0.02654, -0.10547, 1.251, 1.256, 0.1781, -1.252, 0.4358, 0.5825, -0.05127, 2.738, -0.0795, -0.3787, 0.04587, 2.07, 2.986, 0.000757, 2.16, 0.713, 1.64, 2.14, 0.3933, 0.0327, 0.5703, -0.1349, -0.6206, -0.547, -2.248, -0.369, 0.642, 0.0935, 1.075, 0.6562], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2053, 0.1051, 0.00857, -0.0456, 0.557, -0.01202, 0.4983, 0.4314, -0.02768, -0.0404, 0.1577, 0.64, 0.748, 0.4673, -0.0005703, 2.133, -0.0207, -0.049, 0.04938, 0.1797, 1.183, 0.1537, 0.4846, -1.145, -12.21, -2.326, -0.67, 0.735, 0.5166, 0.2328, -0.0152, 1.223, 2.154, -0.02286, 0.586, -0.3533, -0.0629, -0.075, -0.1353, -0.004787, -0.2744, -0.3826, -0.01715, 0.3508, 0.171, -0.0769, 0.4778, -0.03857, 0.11957, -0.1971], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.235, 0.2343, -0.3518, 0.03006, -0.3582, -0.3584, -0.2052, -0.264, 0.022, -0.001415, 0.293, 1.323, 0.1384, -0.2404, 0.03403, 0.538, -0.1549, -0.04675, -0.05453, -0.096, 0.7437, -0.523, 0.0869, 0.237, 1.195, 0.661, -1.345, 1.305, -1.401, 0.4177, -0.1539, 0.8906, 1.03, 0.00474, 1.011, 0.3904, -2.297, 0.1488, -0.425, -0.01133, 0.2812, -0.342, 0.333, 0.2428, 0.2429, 0.5234, 0.5757, -0.03204, -0.1917, 0.3755], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.486, 0.92, 0.313, 0.03072, -2.012, -0.3315, -0.4287, 0.6855, -0.04828, 0.02556, -2.027, -0.0652, -3.168, -0.6055, -0.01079, -0.9536, -0.04318, -0.004734, -0.02986, -0.4397, -0.6045, -0.2415, -0.2135, -0.1511, -0.981, -0.5703, -0.742, -4.23, -1.956, -0.0772, 0.0897, -3.064, -2.275, 0.03433, -0.1517, -0.1804, -0.739, 1.03, -0.10187, 0.04318, 0.4138, -0.8823, 0.6943, 0.687, 0.1427, 0.6807, -3.322, 0.1038, 0.1938, -0.8594], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -4.32, 0.2622, 0.7, -0.01724, -3.639, -0.5723, -0.0668, -0.3228, -0.0372, -0.02954, 0.1409, -1.094, -1.721, -1.446, 0.03915, -2.299, 0.4412, 0.0435, -0.02588, -0.4316, -2.113, -0.8276, -0.0829, -0.11017, 1.328, -1.545, -1.447, -7.484, 0.8574, 0.3464, 0.2296, -3.783, 1.157, 0.02788, -1.963, -0.9585, 1.085, 1.179, -0.271, -0.03375, -0.998, -0.3489, -0.7437, -0.006634, -0.474, -0.1177, -3.756, 0.392, -0.4988, -0.764], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.595, 0.607, -1.648, 0.02177, -0.2277, 0.2798, 0.12305, -0.3296, 0.0167, 0.01393, -0.06635, 0.04648, 0.565, 0.0572, -0.03113, -0.7783, 0.10114, -0.01246, -0.03586, 0.03235, -0.362, 0.1497, -0.01657, -1.396, 2.066, 0.1442, 0.7705, 1.3, 0.3574, -0.8345, 0.03818, -0.6797, 1.684, 0.014946, -0.7065, 0.2922, 0.153, 1.926, 0.2086, 0.02411, -0.4302, 0.2773, -0.1004, -0.2448, -0.7793, -0.2247, 0.2023, 0.3093, 0.3848, 0.493], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.352, 0.1152, 0.8296, -0.02902, -0.252, -0.01343, 0.7124, 0.961, -0.01214, 0.01554, 1.354, 0.927, 1.185, 0.1504, 0.0524, -0.3318, 0.6646, 0.006874, -0.02913, 2.072, 2.045, -0.1426, 0.849, 1.3955, -2.45, 1.034, -0.2432, 2.135, 0.6772, 0.06665, 0.552, -0.6387, -3.383, -0.03812, -2.73, -1.365, -1.878, -0.7993, 0.4578, 0.002373, 0.24, -0.01651, 0.3132, 0.2798, -0.01816, 1.17, -0.752, 0.3647, -1.637, -1.286], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.907, -0.01372, -0.00897, 0.03656, -0.708, 0.003126, 0.711, -0.5645, 0.007793, 0.03568, -0.3074, 0.4404, -0.7544, 0.882, -0.02908, -0.8896, -0.0899, -0.004147, 0.05383, 0.1321, -0.878, -0.295, 0.1208, 0.32, 0.1752, -0.0659, -1.002, -0.2062, -0.625, 0.2466, -0.1914, 1.731, -2.86, 0.01179, 0.3545, 0.2151, 0.854, 2.062, -0.03937, 0.03223, 0.949, -1.473, -0.4106, -0.555, -0.5195, -0.1649, 1.485, 0.2495, -0.4924, -0.1366], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -2.617, -1.759, 1.314, -0.02536, -0.3066, 0.2101, -1.388, -0.5283, 0.048, 0.0187, -0.943, -3.059, -1.73, 1.026, 0.02579, 0.6685, 1.25, -0.01674, 0.0302, 0.328, -4.48, -2.76, 0.1626, -0.02191, 0.08075, -2.162, -4.734, -0.1525, -0.0934, -0.163, 0.2223, -0.547, -1.614, 0.02902, 2.445, 0.733, -2.621, -4.33, 0.719, -0.002192, -2.04, -6.01, -0.10657, -1.463, -0.665, -0.09644, -1.004, 0.09686, -1.828, -0.02774], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.8228, 0.4287, -0.2612, 0.03275, 0.04083, -0.01761, -0.4075, 0.1648, -0.02042, 0.02222, -0.5493, 0.9697, -2.414, -0.8867, -0.002031, -0.3164, 0.2405, 0.0001607, 0.0389, 0.4294, -0.624, -0.1268, 0.272, 0.0951, -0.9233, 0.577, -0.2832, -1.2, 0.05566, 0.11035, -0.492, 0.683, 1.127, 0.0499, -1.013, -0.001972, 0.844, 0.2573, -0.3376, 0.013176, 0.3545, 0.4832, 0.2976, 0.4292, 0.1687, 0.1766, -0.58, -0.02345, 0.5103, -0.694], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0651, 1.462, 0.8384, -0.02534, 0.5454, -0.536, -0.1279, 0.865, 0.0629, -0.02914, 1.898, 0.4658, 1.015, -0.5312, -0.01897, -2.305, 1.001, 0.0414, 0.01513, 3.604, 1.8, 2.51, 0.2778, 1.845, 0.1204, 1.695, -0.6113, 0.529, 0.5913, 0.2715, 0.633, 2.736, -1.09, -0.02473, 0.5503, -1.037, 0.013954, 2.564, -0.477, -0.02184, 0.2305, 0.813, 0.8027, 2.064, 1.787, 0.678, 0.5283, 0.0645, -0.503, 2.592], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.586, 1.615, 0.8765, 0.03268, 0.2852, 0.09357, 0.4531, 0.2102, 0.04385, 0.0113, 0.77, 2.186, -0.777, -0.6733, -0.01775, 2.262, 0.516, -0.01978, 0.007656, 0.561, 1.008, -0.795, -1.81, 0.7437, -3.402, -0.1486, -2.182, 1.539, -0.0382, 0.3777, 1.315, 1.011, 0.4707, -0.05237, 0.669, -0.538, -1.51, 0.7637, 0.0853, 0.04965, -0.596, -0.3254, 0.3098, 0.9346, 0.5986, 0.527, -0.1145, -0.5527, 0.2073, 1.644], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.173, 0.555, 0.1652, 0.002356, -1.657, -0.25, 0.9546, 0.952, -0.003159, -0.01021, 1.424, -2.467, -0.7676, 1.09, -0.03836, -2.021, 0.00854, -0.003078, 0.03247, 0.5005, 1.056, -1.131, 0.255, 0.009445, -0.1079, -0.1261, 0.378, 1.014, -0.04642, 0.3914, 0.316, 0.683, 0.2201, -0.03745, 0.7905, 0.5454, 0.3394, -0.11566, 0.338, 0.03023, -1.132, -0.4182, 0.3088, -0.642, 0.26, -0.4368, -0.1666, 0.3289, 0.3086, 1.437], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8613, 0.7334, 0.7896, 0.03275, 0.527, -0.3164, -0.399, 0.179, 0.01532, -0.002018, 0.7627, -1.03, 1.122, 0.7866, -0.04153, -0.3513, 0.98, 0.006706, 0.011826, 2.455, 2.271, 2.19, -5.234, 1.274, 0.01637, 0.7764, -2.734, -0.2047, 0.275, 0.03415, -0.6973, 3.145, -1.96, -0.02322, 1.477, -1.65, 1.454, 1.351, 0.1588, -0.03174, 0.1477, 0.544, 0.8755, 1.425, 1.795, 0.689, 1.011, 0.8115, -0.59, 3.727], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3442, 1.095, -0.06287, -0.0488, 1.806, -0.1654, -0.6807, 0.296, -0.01373, 0.0239, 0.419, -0.7036, 1.571, -0.2278, -0.010086, 0.4734, -0.1183, -0.000493, -0.001163, 0.9136, 2.342, 0.796, 0.2961, 0.449, -5.117, 0.94, -0.00241, -2.264, 0.882, -0.2054, -1.602, -0.901, 2.34, 0.02571, 0.595, 0.5015, 0.5684, 2.332, 0.1929, -0.01024, 0.2485, 0.2004, 0.124, 0.3784, 0.5693, -0.3716, 0.013504, -0.24, -0.2461, -1.537], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.326, 1.473, 0.0931, 0.015465, 0.3784, 0.3994, 0.7324, -0.893, 0.04544, -0.041, -2.535, 1.189, 0.8257, -1.241, -0.05356, 4.055, 0.5034, -0.02129, -0.04987, -0.815, 0.6504, 0.9106, 0.1151, 0.1575, 0.587, -0.8257, -1.69, 1.598, 1.28, -0.1782, 0.1609, -2.8, -2.875, -0.02422, -1.118, 0.3623, 0.5635, 0.8496, -0.706, 0.03653, 0.1827, -0.3474, -1.392, -2.08, 0.864, 1.064, -0.1755, -1.237, 0.966, 1.056], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2502, -1.222, 0.3674, 0.0374, 0.9805, -0.221, -0.01091, 0.4304, 0.001039, -0.02011, -0.1831, 1.003, 0.7637, 0.6826, 0.03662, 1.327, -1.048, 0.001286, 0.0388, 0.0393, 0.0791, 0.713, 0.05115, -0.3645, 1.342, 0.3967, 0.4167, -2.062, -0.3342, 0.351, -0.6113, 1.393, -1.458, -0.04587, 1.511, 0.3835, 0.662, 1.002, 0.3445, 0.03046, -0.1619, 0.435, -0.7925, 0.658, 0.11676, -0.06024, 1.072, -0.2498, 0.1334, 1.147], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.09, -2.783, -5.492, 0.0007997, 3.723, 1.297, -3.79, -1.408, 0.04092, 0.03918, 1.227, 3.732, -1.461, -0.8965, -0.01523, 0.668, -1.027, -0.01502, 0.01758, -2.969, -1.035, 0.7954, 0.6104, -0.01172, -0.08606, -3.486, -3.19, -2.314, -2.953, 0.02974, 0.3647, -1.97, 0.842, -0.03302, -1.391, 0.03635, -10.71, -5.03, -1.461, 0.03903, -0.3235, -1.672, 2.256, -0.2688, -4.07, -0.792, -2.262, -4.34, -1.24, -1.411], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4485, 0.404, 0.4917, -0.02638, -0.04456, -0.1266, -0.4072, -0.2363, 0.001849, -0.0654, -1.122, -0.9746, -0.688, -0.10956, -0.003088, -0.571, 0.4375, -0.04504, -0.0404, -0.3052, -0.10583, -0.0815, -0.006252, 0.3003, -0.4487, 0.135, -0.357, -3.078, -0.5845, -0.9907, 0.412, -0.06445, -0.2363, -0.026, 1.258, 0.4065, 1.285, -0.01997, 0.275, -0.00803, -1.26, -0.4277, 0.1675, 0.1298, -0.8022, 0.3137, -1.1045, -0.01758, -1.005, 0.9067], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3992, -0.3896, -0.0784, -0.05634, -0.2267, -0.06744, -0.079, 0.1438, 0.01415, 0.018, 0.2083, -0.0003624, -0.9473, -0.03354, -0.02327, -2.652, -0.0991, 0.04233, -0.04694, 0.3086, -0.1582, -0.5474, 0.0273, 0.0831, 1.497, -0.0653, 0.2834, 0.4104, -0.2644, 0.2136, 0.3057, 0.01643, -0.013504, 0.003124, -0.7153, 0.04446, -0.0689, -0.8594, -0.68, -0.02838, -0.0841, 0.2512, -0.07556, -0.3882, -0.148, 0.2417, -0.711, 0.2976, 0.02934, 0.1178]]
[0.68642, -1.25436, 0.897708, 0.027084, -0.595917, 0.883909, -0.721045, -0.528086, -0.652063, -2.50092, -0.969229, 0.213511, -0.0353389, 1.50128, -1.44563, -0.772409, 1.20725, -1.03866, 1.27718, -1.58734, -0.621609, -0.589377, -0.167498, 0.119582, -0.0120475, -1.04309, 0.342284, -0.191598, -1.8246, 0.512985, -0.496135, -1.40752, 0.101884, 0.850675, 0.434133, -0.121264, -0.508577, 0.0125409, 0.196443, -0.205151, -0.0589998, -2.22147, -0.536544, -0.605963, -1.09747, -0.849638, -0.158649, -0.248356, -0.0877636, 0.260829, 0.6865, -1.254, 0.898, 0.02708, -0.5957, 0.884, -0.721, -0.5283, -0.652, -2.5, -0.969, 0.2135, -0.03534, 1.501, -1.445, -0.7725, 1.207, -1.039, 1.277, -1.587, -0.6216, -0.5894, -0.1675, 0.11957, -0.01205, -1.043, 0.3423, -0.1917, -1.824, 0.513, -0.496, -1.407, 0.10187, 0.8506, 0.434, -0.1213, -0.509, 0.01254, 0.1964, -0.2052, -0.059, -2.22, -0.5366, -0.606, -1.098, -0.8496, -0.1587, -0.2484, -0.08777, 0.2607]
ReLU
[[0.279662, 0.558039, 0.338403, -0.657227, 0.875367, -0.320588, 0.757402, -0.255338, 0.487487, 0.0609514, 1.77811, 2.07045, 0.476772, -0.273045, 2.62251, -2.31553, -0.698261, -2.4793, 0.858013, -0.161671, 3.03177, 0.355238, 2.77588, -0.0450316, -0.0443976, 0.398253, 1.56516, 0.0952732, 1.52354, 0.0201281, 0.775203, 1.28659, 0.980118, -0.863643, 0.727887, 2.45906, 0.399588, -0.644037, -0.432465, 0.0778093, -0.221848, 0.12602, -0.937951, -1.04561, -0.559832, 0.201487, 0.735997, -0.063247, 1.11518, 2.46482, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.296757, 1.10083, -0.666608, 0.986851, 2.02127, 0.0603083, 0.999114, -0.606908, -1.67568, 0.934698, -2.09993, 0.393033, -0.987033, 0.168393, -0.816881, -0.567385, -0.530317, -0.20775, -1.79359, -2.6695, -0.526487, 1.01515, -0.927428, -0.264413, 0.0288076, 1.09974, -0.129292, 1.25837, 0.721096, -0.608558, 0.754232, -2.39412, 3.15899, -0.28403, -0.676714, -1.07942, 0.121117, 0.42943, 0.0421128, 1.34296, -0.205419, -0.0745915, -0.502885, -0.801123, 0.820419, -0.308981, -0.890924, 0.797091, -1.96237, -0.121793, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.80779, 2.41751, 1.25091, 2.43419, 0.576515, -1.00352, 0.382442, -1.72337, 3.74674, -1.99416, -0.173719, -0.919904, 2.05676, 0.539631, 2.8135, 1.92595, 0.268206, 2.04093, 2.97427, -1.00746, 1.22508, 1.01604, 1.1855, 0.10227, 0.00138234, 0.0953337, 1.82407, -0.24386, 0.236498, 1.42891, -0.183952, 2.16728, 1.59418, 1.75705, 0.557046, -1.65601, 0.0724912, 1.64266, 2.0771, 1.96372, -0.264211, -0.192838, -0.546179, 0.177854, -0.971834, 0.363615, 2.7064, 1.07608, -4.02949, 2.6627, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0351422, -0.52791, 1.63717, 0.691914, 0.653849, 1.09794, -0.101012, -0.117962, -1.75761, -2.01443, -0.835212, -0.902063, -0.715043, -0.133368, 0.0226049, 2.45288, -1.02335, -0.978643, -1.41843, -1.57522, -1.59038, -0.161675, -0.287657, 0.387484, 0.0333928, -0.309235, -0.699677, -0.92746, -1.67687, 2.1083, 0.0178881, 1.43937, -1.18347, 1.30295, 1.51107, -0.0499977, 0.023943, -0.774256, 0.424997, -0.127485, 0.0483623, 0.73914, -0.151613, -0.43895, 0.327249, 1.01155, -1.4781, 0.0587683, -0.19057, -0.444368, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.988991, 1.38903, 1.26099, 1.11371, 1.5381, -0.602707, 0.421908, -0.949298, -0.0955056, 2.27564, 0.560149, 0.204134, 0.165322, 0.576567, 0.900904, 1.92649, -0.059923, 0.662242, 2.58461, -0.0373307, 3.77547, 0.539505, 2.06042, 0.219222, 0.0271855, 1.21661, -1.39077, -0.0357585, -0.00979834, 0.984031, 0.240715, -0.500195, 1.00394, -2.71455, 1.08915, 1.58142, 0.491552, 0.687043, -0.41864, 0.72704, -0.234998, 0.229613, 0.582861, -0.133693, -1.05223, 1.04837, 0.201919, -1.10992, 0.928704, 1.14302, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.28383, 1.90907, -0.612112, 0.769654, -0.385019, -0.337342, 0.0460028, -0.296489, 1.66586, -1.12011, 1.0103, 0.553378, 1.04021, -0.153056, 0.822984, 2.50668, 0.0308915, 0.389355, -0.810326, -0.355704, 2.02926, 0.771653, 0.406984, -0.15833, -0.0328292, -0.22052, 0.549736, -0.864993, -0.185545, 0.123195, 0.384687, -1.19647, -0.32267, 0.716597, 0.00672175, 1.16701, 0.126528, 0.172909, -0.534844, -2.47775, 0.102551, 0.902421, -0.103456, -0.269269, 1.05887, 0.385881, 0.423062, -0.0576983, 0.939088, 0.979376, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.79322, -1.95799, -0.246903, 2.29403, -0.495487, -0.472879, 0.813069, -0.771425, -2.33931, 0.647266, -3.75166, 0.0834993, 2.2443, -1.14553, 1.23224, 1.29383, 0.0707896, 2.17934, -5.66594, -1.8169, 3.78639, 1.1904, 1.06321, -0.631407, -0.0210555, -0.0584787, 4.159, -1.35376, 0.544572, 0.332388, -0.45022, 1.71551, 3.55772, 1.84648, 0.571153, 2.28714, -0.0121225, -1.41072, 0.967409, 1.70052, -1.15982, 1.99369, 0.276337, 0.139655, 0.271346, 0.777018, 1.96274, 0.187756, 2.02214, 0.608648, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.726701, 1.23981, 0.342264, 0.0748351, -1.75732, -0.688206, 0.515573, -0.714898, 0.977805, 0.882246, 0.67636, 1.60677, 0.366875, -0.738492, 0.491374, 0.915747, 0.850698, 0.394187, 0.683733, -0.991922, 3.71983, 0.260914, 1.12376, -0.495717, -0.0395735, 0.540185, 2.84683, 1.06577, 0.899233, 1.13088, -0.46061, -0.538501, 1.05129, 0.121141, -0.349922, 0.250726, 0.217066, 0.834206, 0.225234, -0.112905, -0.999742, -0.831912, -0.596807, 0.506894, 0.597681, 0.598551, 1.17853, 0.622893, 0.789756, 0.357261, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.33827, 1.75017, 2.33781, 0.0999365, -1.8566, -0.951531, 1.17155, 2.07786, 2.13584, 1.54818, 0.656807, 0.825517, 1.71432, 0.454336, 1.70122, 3.78474, 0.253067, 1.16057, 1.81453, 2.58675, 1.62107, -0.909797, 1.99482, -1.2412, 0.00425843, -0.691763, 4.88704, 2.40319, -0.411381, 0.299275, -2.18675, 4.32238, 4.85712, 1.10183, -0.350001, 0.391398, -0.362048, 1.01867, 1.01113, 0.420472, -0.545443, 0.432503, -0.00471307, -0.595094, 0.828051, -0.709425, 4.14638, -0.179816, 3.42738, 3.33269, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.41384, 0.579444, 1.35485, -1.54527, -1.90637, 0.419139, 0.535315, -0.0423884, -3.02137, 0.906693, 1.83598, 0.0896486, -1.62895, -0.0576297, 0.515658, 1.35571, 0.147382, -0.512028, -3.96479, -0.298693, 0.644424, -0.475876, -1.33939, -0.653314, 0.027915, -1.3968, -0.00755803, -0.976222, -1.68619, 0.306209, -0.717821, 0.779323, 0.213294, -1.6446, -2.45577, -0.881042, -0.986467, -0.0616648, 1.02151, 1.31278, -1.443, 0.855441, -0.798272, 0.893555, 0.865376, 0.277503, -0.978024, 0.644886, -3.76011, 1.00152, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.92978, 0.691398, -0.0967634, 1.03869, 3.61919, -1.01481, 1.5515, 1.39798, -0.0978109, 4.07878, 1.53074, 0.487618, -0.170819, -0.890392, -0.946671, 1.84049, -0.458224, -3.81113, 4.327, 3.3406, 7.37128, 1.2234, 3.58208, 0.860928, 0.0284195, -1.45426, 3.84218, 0.907188, 0.49637, 1.54816, 0.76052, 1.47583, 0.387208, 1.29639, 3.14045, 4.591, 0.0899972, 2.16729, 1.12119, 1.64674, -0.0888985, 0.797392, -0.380158, -0.598514, 0.49344, 2.07801, 1.99082, 1.0365, 2.50201, -1.93334, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.49481, 1.8039, 1.44665, -1.39036, -0.145303, -0.48173, -0.837624, 0.478718, -0.0824925, 2.3502, 1.89422, 1.23115, 1.45309, 0.447879, 3.15747, 5.45837, 0.374204, 1.10986, 1.62947, 0.28866, 0.274175, 0.021761, 1.30195, -0.0853342, -0.0444871, 0.593703, 2.62505, -0.210037, -0.0207155, 0.685664, -0.119439, 0.435573, 0.184967, -0.781703, 0.683244, 2.07564, -0.903109, 2.22772, -0.926221, 2.87989, -0.747607, 0.845133, 0.038036, -0.288293, 0.115708, 2.12148, 0.551488, -0.152146, 2.28542, 1.5461, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.445253, -0.281329, -0.163456, -0.262936, -0.123615, 0.491081, -1.00869, 0.297456, -0.340598, -0.677378, -1.17495, 0.120433, -0.428927, -0.0874, -0.229167, 1.94057, -0.521053, -0.73961, -0.838993, -0.807724, -1.76573, 0.274015, -0.947683, -0.278165, 0.0363179, -0.1872, -0.430966, -0.362201, -0.273559, 0.00442468, -0.702509, 0.410996, -2.3829, 0.565301, -0.0177295, 0.217238, -0.152599, 0.247175, 0.192697, -0.852083, 0.241254, 0.881686, -0.663234, -0.0293039, -0.373798, 0.375048, 0.219479, -0.236519, -1.12915, -0.0787465, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.502705, -0.628883, 1.80512, -2.30195, 0.321059, -0.569726, -0.0456938, -0.313101, 0.138583, 1.04203, 0.016269, 0.667595, 0.876463, 0.261076, 0.096996, -1.03961, -0.179948, -1.25485, -0.863849, 1.92876, 1.40864, 1.58235, -1.02607, -0.0555299, 0.038765, 0.0865686, 1.31062, 1.23095, 0.240423, -0.675594, 0.0715115, -3.54513, -0.932332, -0.016189, -0.166542, 2.03236, -0.625158, 0.968514, 1.40964, 0.0947016, -0.138848, 1.25888, -0.138398, 0.56719, -0.475385, -0.170262, 0.583768, -0.12429, -0.871668, 0.845764, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.403662, 0.167845, 0.36697, -0.230598, 0.101602, 0.115686, -0.626092, 0.733323, -0.319976, 0.180695, -0.705199, -1.06466, 0.686051, -0.0531103, -1.02952, -0.439534, -0.387105, 0.729254, 1.04054, -0.618326, -0.120557, -0.182268, -1.08184, 0.63951, -0.0182218, 0.304101, -0.618781, -0.478275, -1.52825, 0.163896, 0.0336827, -0.886762, 0.000616137, 0.273497, 0.531597, -1.42245, 0.155234, -0.109738, -0.0929776, -1.04073, 0.647283, -0.0307597, 0.409636, -0.322203, -1.10882, 0.101608, -0.464696, 0.332249, 0.216833, -1.19045, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.661348, 0.847354, 1.06385, 0.253742, -0.0361603, -0.289745, -0.229841, 0.138084, -1.11003, -0.0543722, 2.05696, -0.677281, 1.21097, -0.254556, 1.5282, -0.909006, -0.135674, 2.85132, -1.5707, 2.53625, 0.453663, -0.375316, -1.16694, 0.169929, 0.00883506, 0.0296605, -1.17992, -0.309347, -0.649501, 0.890869, 0.1913, 0.802302, -0.489074, 1.01484, 0.636738, -0.17997, 0.159631, 0.783917, 0.895592, 0.417978, -1.02698, -0.270048, 1.2478, 0.502099, 0.0860513, 0.62276, 1.29827, 0.222179, 0.0820658, 1.38237, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.471108, 1.53902, 1.20665, -0.696817, 2.6326, -0.820558, 0.193655, 0.687178, 1.02695, -2.98117, 0.0631887, -3.98829, 1.86551, 0.627385, -4.20665, 2.84429, 0.554318, 1.51197, 3.21319, 1.47427, 1.04718, 1.79208, 0.900971, 1.73162, 0.0166149, 1.27456, -0.791237, -2.37596, 0.0452008, 0.896765, 0.50621, 2.04182, 1.3684, -1.46106, 1.3802, -0.694901, 0.271161, 2.74706, 1.47752, -0.0818248, -0.0329667, 0.164612, 0.665544, -0.216548, -8.17871, 2.3533, -2.57857, 0.478935, 1.52185, 2.17291, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.548133, 1.272, 0.801172, -0.157006, 0.116638, -0.149256, -0.566095, -0.972189, 0.0694466, -0.876129, -1.6777, -1.5345, -2.05732, 0.41497, 0.480948, 0.305356, 0.0259911, -1.37705, 0.253587, -1.24127, 0.517465, -0.445983, -0.455956, 0.450859, 0.0300152, -1.05097, 1.2007, -0.459341, 0.591099, -0.763613, 0.249271, -0.572149, -9.04779, 0.805903, 0.545102, -0.364913, 0.582979, -0.943316, 0.426106, -0.181265, 0.186109, -0.297079, 0.139769, -0.314969, 0.143897, 0.228896, -0.470309, -0.924672, -2.60819, 0.692208, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0485299, 0.735045, -0.44494, -1.64329, 0.495219, -0.150641, 0.378323, -0.356963, 0.0847135, 0.539034, 1.52003, -0.187642, 0.849291, 0.2291, -0.457759, -1.38783, 0.186591, 0.272045, 0.799138, 0.732243, 1.06761, 0.304484, 0.338628, 0.0519692, 0.00234569, 0.0399507, 0.665724, -0.408516, 0.687141, -0.448156, -0.313409, 1.84331, 1.21201, -0.711388, 0.630665, 0.46299, -0.319003, 0.155196, -0.529166, 0.134345, -0.455535, 0.565484, 0.615825, -0.0714482, 0.920107, -0.376657, -1.40121, -0.116729, 0.510681, 0.0643381, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0894236, 0.437244, 0.172952, 0.192217, 0.65725, 0.1074, -1.15167, -0.0320718, 0.23421, 0.44968, 0.952121, 1.30851, 0.622055, 0.284771, 0.71284, 0.19591, -0.21578, 0.643808, 1.1527, -0.073651, -0.050503, -0.587622, -0.819339, -0.206821, 0.0468571, -0.0815679, 0.15092, 0.0382476, -0.702737, 0.438796, 0.263622, 0.483847, 1.70821, 0.129704, 0.624675, 0.0663548, 0.00819968, -0.396639, -1.07217, 1.91207, -0.499177, -1.71173, 0.0168868, 0.16755, 1.07244, 0.947435, -2.39447, 0.34892, 0.083142, 0.12632, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.74956, 0.038059, 0.508285, 1.20454, 0.944591, 1.25192, -2.0982, 2.43231, 1.10828, 0.0552348, 2.98268, 1.25968, 1.3073, 1.75935, 2.21832, 1.41234, -1.9811, 3.0078, 6.54126, 2.41228, -0.833869, -1.38509, -0.251281, 1.32515, 0.0134493, -0.991123, 0.559532, 1.1813, -1.6888, 1.66655, -0.442282, -1.23318, 3.50953, 1.92244, 2.67937, -0.762828, -0.223578, 2.98295, 0.862624, 0.616479, 2.70607, 0.0823615, 0.631299, -1.02594, -0.225609, 1.08119, -1.62844, 2.59856, 1.35309, 1.76898, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.02967, 1.01451, 1.22649, -0.388506, 1.72964, -0.722712, 0.329365, -0.192369, -0.359551, -1.94945, 0.556717, 0.550404, 2.1795, -0.0616911, -0.990377, -7.42166, 0.186211, 2.25077, -1.36366, -0.212158, 2.67656, 1.34183, 2.00962, 1.25872, 0.0413717, -0.203839, 1.91683, -0.173491, 0.787119, -1.43863, -1.65266, 0.814325, -0.848777, 0.941585, 0.291961, -1.10102, 0.440609, 2.24467, -0.143853, 1.70941, -0.00953966, 0.254679, -0.0676593, -0.429355, 1.07385, -0.906413, -0.101355, 0.710742, 0.184987, 1.50872, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.578841, 0.293586, -0.170336, 0.4155, 0.742458, -0.0901331, 0.832843, 0.0810598, -0.269632, 0.958816, -2.18352, -0.925454, -0.492962, 0.465313, 1.18383, -0.0224406, -0.0327258, -1.48589, 1.04672, -0.139475, 0.129314, -0.0710255, 0.853438, -0.0492566, -0.0144724, 0.542672, -0.0342108, -0.303004, -0.470046, -0.151507, -0.0589647, 0.477849, -2.11667, -0.247227, 0.727348, -0.101459, -0.351201, 0.50575, -1.84576, 0.761134, 0.0268747, 0.463287, 0.562735, -0.382661, -1.67299, 1.05895, -0.00530665, -0.853345, -0.500871, -0.772249, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.639162, 1.71113, 0.708012, 1.44401, 1.28882, -0.573353, 1.11743, 1.63202, -0.547106, 1.09204, -0.328787, 0.26833, -1.02551, -0.0586021, 0.178964, 1.85838, -0.178894, 1.70671, 0.694771, 0.874599, 0.803786, 0.0341188, 0.267807, 0.342132, 0.0455373, -0.329131, -2.5881, 0.949473, -1.1778, 1.12066, 0.0712643, -1.47008, -1.11532, -0.11018, 0.269213, 0.954959, 0.246279, -0.342318, 0.986846, -0.322685, 1.03135, -0.152833, -0.0922478, -0.567694, -0.0963716, 1.97788, 0.688068, -0.456502, 0.218752, 0.0238978, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.00354999, -0.0316958, -0.0332074, 0.0162486, 0.0231638, 0.00367087, -0.0513384, -0.00252683, -0.0319064, -0.000575613, 0.0377753, -0.0351048, -0.0350308, -0.0459258, 0.0076602, -0.00833958, -0.0151381, 0.0296265, -0.0201387, 0.0335131, -0.0418886, 0.0292869, -0.040146, 0.00716661, -0.0250989, 0.00920332, -0.0431839, -0.0588204, -0.0385256, -0.000624567, 0.0340604, 0.00277913, 0.0144003, 0.0228447, -0.0420974, -0.0176942, -0.0185797, -0.0119072, 0.00112745, -0.0020747, -0.0576618, 0.00427611, -0.0166768, -0.0276892, -0.0358286, 0.0245279, 0.0130414, -0.00268223, -0.0558258, -0.039128, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.206541, -1.09126, 0.989643, 0.113338, -0.471074, 0.0467644, 0.142037, -0.605154, 0.660453, 1.61555, 0.69976, -0.326456, 0.767277, -0.0764581, 0.31941, -1.97486, -0.141738, 0.437083, 0.784374, 0.331023, 0.16616, -0.386184, -0.666384, -0.78875, 0.028282, 0.631846, 0.369471, 0.217894, -0.078473, 0.490766, -0.725288, -0.402281, -0.644361, 0.209718, -1.36987, 0.0863305, -0.440553, 0.853866, -0.67852, -2.12176, -0.100396, 0.326921, -0.716328, 0.00997099, -0.925891, 0.911311, -0.540589, 0.463419, 0.620881, -0.753277, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.423713, -1.19721, 0.857192, -0.0781345, -0.883223, 0.122497, 0.487271, -0.583376, 0.43263, -0.94074, -1.2343, -2.00122, -0.670345, -0.338769, -1.47716, -0.617558, 0.0591552, -1.2012, -0.64484, -0.759911, -0.317613, 0.377365, -0.56616, -0.545109, 0.00430552, -1.87649, -1.01725, -0.188992, -1.15715, 0.300186, -0.369737, -0.568057, -2.83263, -1.95533, 0.50905, -0.390529, -0.326196, 0.340304, -0.518595, 0.279057, 0.283143, 1.29757, 0.796063, -0.143087, 0.531166, -6.04503, -2.15174, -4.47196, -0.383414, 2.82269, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.116126, 0.0927605, -0.507835, 0.778323, -0.233826, -0.0503241, -0.307435, 0.153753, -0.131279, -1.32069, 0.967736, 0.870762, 0.0997757, 0.11454, 0.603064, 1.01506, 0.211673, 1.35565, 1.40257, 0.0604355, 1.27388, -0.669772, -0.102959, -0.0671873, -0.0407548, 0.231246, 0.844209, -0.0676675, -1.33745, 0.120084, -0.105593, -1.27845, -0.355904, 0.430889, 0.456421, -1.14481, 0.2633, 0.335608, -0.273863, 1.41979, -0.352765, 0.077496, 0.454776, 0.158562, -0.690823, 0.486284, -0.3357, 0.483014, 0.593527, -0.600066, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0434705, 1.42852, -0.99904, 0.20328, 1.45198, -0.280373, 1.07888, -0.456252, 0.202607, 1.32371, 0.3547, -0.379706, 0.473813, -0.307656, -0.0313501, 1.03552, 0.958198, -0.0305203, -0.143221, 1.48903, 2.42166, 1.27833, 0.287636, -0.0346451, 0.0379888, 0.447579, -0.0581437, -0.287794, 0.145204, -1.23319, 0.656987, 0.976138, 1.03107, 0.674541, 0.312608, 0.197172, -0.423019, 0.00344069, 0.0870334, -0.106339, -0.297218, 0.639671, -0.140348, 0.0108429, 0.985374, 0.0389149, 0.532465, -0.859145, -0.483043, -0.93543, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.305064, -0.285723, 0.901492, 0.677931, -0.730442, -0.343897, 0.297829, -0.717789, 0.560857, 0.400223, 0.38772, 0.509411, -0.210501, -0.913208, 1.16769, 0.0899339, -0.133404, 0.984768, 0.44239, 1.64052, 1.32876, 0.182166, 0.949502, -0.159972, -0.00112698, 0.352297, 0.861491, 0.473501, 0.698176, 0.49918, 0.12719, 0.478882, 3.43234, -0.325109, 0.184076, -1.39708, 0.211312, 1.33897, 0.319201, -0.160484, -0.539596, 0.148313, 0.220544, 0.0709011, 1.30586, -0.368256, -0.189633, -0.391675, -1.14523, 1.87933, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.163684, 2.14526, 1.98687, 1.52341, 0.389442, -0.9953, 1.28828, 1.66278, 0.268362, 2.66933, 2.65093, 1.45309, 1.88312, -0.860885, 0.488296, 3.871, -0.248874, 1.25779, -0.76325, 2.50429, 4.67035, 2.60814, -1.75486, 0.806284, 0.0174759, 0.700452, 4.36354, 1.88822, -2.23073, 1.48299, 0.393936, 2.4483, 2.94952, 2.2433, -0.0917305, 1.11757, -1.08634, 0.783816, 0.330029, 3.98804, -0.688415, 0.403506, -0.415488, -0.216632, 2.36039, 0.576727, 2.31665, 0.115369, 4.05935, -0.165879, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.000438272, -0.039656, 0.0116382, 0.0323799, -0.0184358, -0.0501596, -0.0360295, -0.023889, -0.0193689, -0.0523149, -0.00899483, -0.0028972, 0.0072535, 0.000255998, 0.026459, 0.0284896, -0.000638598, 0.000439437, 0.0343795, -0.00427702, 0.020518, 0.0297199, 0.0350191, -0.0193367, -0.010464, -0.0141741, -0.00228899, 0.0294435, 0.0202286, 0.0140512, -0.0293489, -0.0205885, -0.0441322, -0.0249286, 0.00151408, -0.0116685, 0.000424004, -5.66146e-05, -0.0563678, 0.00680471, -0.0360276, -0.0426092, -0.0474172, -0.0404409, 0.0449435, -0.0485704, -0.02724, -0.0197469, 0.0308161, 0.0100157, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.427986, 0.27859, -0.348498, -0.0396697, -0.289665, 0.0156018, -0.434776, -0.621586, -0.395009, 0.0579195, 0.0855845, -0.955417, -0.658488, 0.00658605, 0.992938, -0.0599245, -0.0496779, 0.319061, -0.496515, 0.414098, 0.855814, 0.0095796, 1.15029, -0.0799409, -0.0241352, 0.103652, -0.303154, -0.268516, 0.155431, -0.193925, 0.321478, -0.31814, -0.00398898, -0.241314, -0.620932, 0.66981, 0.212581, -0.647066, 0.12373, -0.125262, -0.454907, 0.223804, 0.0508107, 0.016328, -0.433483, -0.311505, 0.692627, -0.595766, -0.104442, 1.22539, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.26599, 1.56087, 2.00701, 0.935056, 2.21574, -0.542816, 1.88352, 0.901954, -1.26739, 3.33907, 4.34667, 1.05331, -0.1407, 0.897663, 3.15557, 3.10456, 0.43626, 1.57312, 4.0958, 1.29723, -0.616554, 0.992765, 3.2871, -0.493071, -0.0316433, -0.0135457, 3.32129, 1.47269, -4.95038, -0.0609925, 0.619629, 4.64655, 5.09684, 2.27792, 0.822686, 1.27885, -0.511193, 3.41568, 1.00585, 3.27761, -2.00917, 1.27214, -0.612972, -0.650908, 3.16283, 1.04744, 1.35528, 1.07052, 3.46608, 1.48524, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.273143, -0.46251, 1.83236, -0.436215, 0.691105, -0.05581, -0.426316, 0.444886, -0.316173, -0.0676629, -0.395212, -0.402287, -0.824712, 0.564151, 0.940184, -1.79438, 0.511786, 0.688026, 0.465539, -0.394957, 1.48543, -0.74803, 0.476151, 0.692028, -0.0407345, 0.301609, 0.664697, 0.598864, 0.150234, 0.301572, -0.22836, 1.90748, -0.108706, 0.450591, 1.13747, 0.307105, -0.0699847, -0.920677, 1.2098, -0.481577, -0.373697, 0.0523677, -0.687905, -0.426648, 0.649458, 0.762903, 1.56984, 0.376984, -0.549836, -0.157217, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.53619, 0.747151, 1.59285, 4.10698, -2.92604, -1.08968, 2.54644, -0.0344942, 2.57509, -1.91901, 2.60255, -0.32604, -1.73829, 0.407623, 1.6969, 2.48277, 0.299488, 3.10238, -2.87736, 4.10825, 4.759, 1.64899, 3.11969, -0.986896, 0.00601917, -0.221154, 2.28174, 0.706485, 1.39073, 2.26774, 0.765765, 2.08071, 4.94312, 0.82213, 1.15667, -0.0614986, 0.107496, -0.661593, 1.99401, -2.66085, -1.16897, 1.19709, 1.10425, -0.00225754, 3.03376, 1.39184, 1.40375, -0.324348, 3.08673, 2.78018, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0271861, -1.38609, 0.663957, -0.669625, -1.12429, -0.413759, 0.177683, -0.72629, 0.28503, -0.18314, -1.13378, -1.17313, 0.859655, 0.0145232, 0.159437, -0.0947364, -0.579993, 0.453472, -3.84014, 1.21454, -0.0344742, 0.93463, 0.92853, 0.707699, -0.0245581, 1.04209, 0.934836, 0.0229209, -0.17612, 1.4548, 0.182387, 1.26529, 1.1387, 0.614781, -0.260355, 1.15057, -0.120749, 1.05967, 0.164467, 1.38987, -0.0349373, -0.240252, 0.994796, 0.498611, 0.659437, -0.319964, -0.668741, 0.582179, -2.0451, 1.41032, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.367642, -1.59968, -0.271014, -1.8167, -1.01672, 0.527008, -0.922781, 2.23667, -1.45242, -1.42015, -3.2853, -0.220642, 0.0970395, 0.509371, -1.24963, -5.57406, -0.394555, -0.832933, 0.466113, -1.58849, 0.258536, 0.407136, -1.92207, 0.403841, -0.046053, -0.112467, 0.168225, 0.704898, -5.50871, 4.63839e-05, -0.864096, 0.0354012, -3.35709, -0.370754, 0.693396, -0.653809, -0.490202, 0.584839, -0.163382, 0.119241, 0.849715, -1.11784, 0.217276, -0.120934, 0.251571, -0.398231, -2.96861, -0.3523, -0.670765, -2.37745, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.592726, 2.7147, -0.909278, -0.442867, -2.88752, -0.434509, 1.30078, 0.247043, 2.13531, 0.54069, 0.794823, -1.00823, 1.16684, 0.0680989, 1.06921, 2.02844, -0.201909, -0.846819, 1.94063, 1.08927, 0.313794, 0.0548738, 1.69222, -0.185339, -0.0282538, 0.141469, 1.49854, 0.543559, -0.37402, 0.568731, -0.984637, 0.909226, 4.72219, 1.18906, 0.316004, 0.333471, 0.112633, 0.210921, 0.192788, -0.801328, -0.0850871, 0.278147, 0.334246, -0.0667672, -0.222717, 0.131969, 1.64195, -4.57259, -0.791513, 0.195001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.61649, -2.11465, -0.988926, -1.61132, -1.73736, -0.0728671, -2.7296, 1.0763, 0.31128, -0.271059, 1.2733, 1.03306, -0.0622392, -0.349472, -1.54806, -1.39548, -0.395451, 0.0764539, -0.924844, -1.21461, 0.33901, -0.338434, 2.00199, -0.0283068, -0.00790731, -1.03949, 3.20849, -0.159722, 0.681616, -0.6219, -0.780455, -1.79369, -1.18354, -0.742891, 0.189199, -1.01584, 0.0600727, 0.482749, -0.0526127, -0.507421, 0.861502, -0.952817, 0.263657, 0.793965, -1.33084, -0.938954, -2.08071, 1.43801, -0.505648, -0.959283, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.893641, 1.01922, 0.386046, 1.89692, 0.835731, -0.346502, 1.75407, -1.82067, 0.123386, 1.93439, -2.21553, 0.495319, -0.888058, 0.120187, 1.33093, -1.89873, -0.685302, 0.0708528, 1.00181, 1.60406, 1.34278, -0.349745, 2.18921, 0.0969895, -0.0251762, -0.550708, -1.00948, 0.259206, 0.697941, 0.176625, -0.530448, 2.08419, -1.80232, 0.0942954, 1.34724, 2.01396, 0.455995, 1.27643, -0.518417, 1.01485, -1.06228, 1.71031, 0.756056, 0.155065, -0.278582, 0.570157, 4.48386, 0.527024, 2.38087, 1.38151, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.73508, 0.572951, 0.458147, -0.00687349, 1.40218, 0.416566, -0.0603386, -0.964524, -0.652998, -1.18472, -0.804716, -0.537959, -0.229594, 0.911992, -1.97744, -0.183477, -0.31507, -0.318876, -1.10117, 0.129819, -1.69118, -0.112404, -0.874068, -0.55592, 0.0435663, -0.271059, -5.3584, 0.0345838, 0.36465, 0.18091, 0.604556, -0.598422, -2.8236, -0.577757, -0.253682, -4.4149, -0.0214209, -1.10947, -1.1428, -0.752567, -0.321422, -0.601453, 0.404585, 0.32667, 1.3987, -0.489595, 0.344397, -0.50039, 1.31221, -2.62725, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.73492, 2.99876, 3.35155, 2.70679, 0.542235, -0.945245, 0.955229, -0.202825, 0.291119, 2.05109, 2.5626, 2.85622, 0.606502, 0.0985702, 0.514808, 0.821267, -1.50442, 3.10055, 3.3109, 0.652476, 4.27419, 1.63166, 2.251, 0.379789, 0.038868, 1.52302, 4.33759, 1.965, -1.87761, 1.39732, 0.890576, -0.206855, 2.13727, -0.828413, -0.203148, 1.05766, 0.0256589, 2.81531, 0.204844, 2.5221, -0.987333, -0.338188, -0.801636, 0.344028, 2.19233, 1.37367, 1.28372, -0.423956, 3.18899, 0.540181, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.370339, 1.27831, 0.301582, 0.408772, 0.13088, -0.260763, 0.790151, 0.364629, -0.684421, -0.794978, -2.4195, -2.2378, -0.426324, -1.16594, -1.08902, 0.630052, -0.264205, -1.18306, -0.374801, 0.751697, 1.73119, -0.970355, 2.02608, -0.279036, 0.0142797, -0.603847, -4.5629, -0.697623, 2.47533, 1.31235, 0.724192, -0.492973, 0.133453, 1.24297, 1.05652, 0.268732, 0.39418, 0.487381, 0.609391, -0.108273, -0.403621, 0.289775, 0.446643, 0.441386, 0.00378064, 1.59856, 1.99857, 0.383241, -0.664769, 3.16288, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.638509, -0.412441, -0.13043, 0.00908416, -0.0468181, 0.0106396, -0.430268, -0.633207, 0.272976, -1.1075, 0.231022, 0.480099, 0.174017, -0.0768717, 0.176396, -0.530261, -0.0172399, 0.88252, -0.535466, -0.242991, 0.126519, -0.0412057, 0.334942, 0.0593301, -0.0357013, -0.0755942, -0.0882582, -0.336549, -0.100896, 1.34016, -0.238447, -0.253637, -0.518866, 0.436595, 0.46565, 0.888083, 0.12293, -0.600611, 0.340697, 0.625654, -0.104686, -0.49055, -0.0435381, -0.0213158, -0.859847, 0.168741, 0.982836, 0.252064, 0.685732, -0.360576, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-3.41396, -2.20822, 6.18793, -0.296188, -0.7997, 0.542675, -2.39835, 3.37651, 0.606014, -0.660212, 0.613668, -0.656745, -1.2037, -1.01318, -3.74558, -3.76515, 0.719002, 1.62286, -0.400058, -1.89064, 2.26411, 0.311716, 0.288379, -0.0140239, -0.00988341, 2.46941, 4.43743, -1.56217, -1.85729, 5.74432, 1.0134, -3.12202, 1.5314, 2.24631, -0.912765, 1.49699, -0.674509, 0.300647, 1.9769, 2.61601, 1.77311, 0.390599, -2.14207, -1.46193, -1.40238, -1.23455, -2.54335, 2.56682, -0.199068, 5.39781, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.02705, 0.208315, 0.779072, 1.75483, -1.27604, -0.170824, 0.399297, 0.574032, 0.885807, 0.802462, 0.909064, -1.90299, -0.378779, 0.227154, -0.234438, 0.989766, 0.354099, 0.685698, 1.62453, 0.732614, -0.260698, -0.0691492, 1.13675, -0.0084463, -0.0421657, 0.413319, -0.546096, -0.876536, -0.120774, 1.63286, 0.00676935, -1.92619, 0.831121, -0.154659, -0.26689, 0.0729422, -0.123688, -0.961728, 0.469576, 0.557104, -0.101891, 0.845552, -0.329291, -0.11128, 0.441676, -0.0827016, 0.393901, 0.699345, 0.597617, -3.33533, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.200383, -1.51317, -2.10367, 0.57795, 0.244643, -0.320242, -0.779805, -0.618412, 0.962724, 0.450469, 0.120226, -0.384624, 0.37393, -1.26868, 2.85196, -1.21654, -0.962703, 0.918122, 1.92054, 1.16713, 1.01246, -0.597766, -0.643279, 1.34554, 0.0486412, 0.401113, 3.32985, 1.49066, 0.854994, -0.268623, -1.5036, 0.376967, -0.0812573, 0.395701, 1.17306, -0.307996, 0.0195085, -0.900864, -0.467143, 0.411741, 0.0108894, 0.568853, -0.545384, 0.0401059, -1.2897, -1.93102, 2.20016, -0.169601, -2.21116, -1.4822, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.671189, 0.229531, 0.748729, -0.175583, -0.980956, -0.346207, -0.168616, -0.230805, 1.57932, -0.349177, 0.352939, 0.70753, -0.395165, -0.773037, 1.65516, -0.847291, -0.226189, 0.541618, 0.0188442, -0.327539, 1.05815, 0.136439, 1.7609, 0.0706399, 0.0227551, -1.08022, -2.26985, 0.206683, 0.245298, -0.578737, 0.263908, 0.410472, 1.66074, 1.44892, -0.39584, 0.771962, 0.245832, 1.20029, -0.385624, 1.08226, -0.170082, 0.422254, 0.351781, 0.311259, 1.33752, 0.325028, 0.301131, 0.669573, 0.526781, 0.874793, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.295579, 0.788214, -0.306568, 0.21868, 0.408624, 0.128368, -0.232797, 1.17211, -1.37635, -1.09864, 1.10918, -0.074972, -0.530334, -0.203196, 0.496744, 1.34688, -0.0641917, -1.21424, -0.8373, 1.08705, -1.40181, -0.521283, -0.734695, 0.30689, 0.0448432, -0.16632, -0.154921, -0.316233, -1.03325, 0.888907, -0.0771384, -1.90046, -0.490191, 0.24935, 0.252077, 0.0148693, 0.191587, 0.504645, -0.0994521, -0.335922, 0.116537, -1.05607, -0.149214, -0.0462342, 0.0299117, 0.296826, -0.409587, 0.144108, 0.902381, -0.478483, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2795, 0.558, 0.3384, -0.657, 0.8755, -0.3206, 0.7573, -0.2554, 0.4875, 0.06094, 1.778, 2.07, 0.4768, -0.273, 2.623, -2.316, -0.698, -2.479, 0.858, -0.1616, 3.031, 0.3552, 2.775, -0.04504, -0.0444, 0.3982, 1.565, 0.0953, 1.523, 0.02013, 0.7754, 1.286, 0.98, -0.864, 0.728, 2.459, 0.3997, -0.644, -0.4324, 0.0778, -0.2218, 0.126, -0.938, -1.046, -0.56, 0.2015, 0.736, -0.06323, 1.115, 2.465], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2969, 1.101, -0.6665, 0.987, 2.021, 0.0603, 0.999, -0.607, -1.676, 0.9346, -2.1, 0.393, -0.987, 0.1683, -0.817, -0.5674, -0.5303, -0.2078, -1.794, -2.67, -0.5264, 1.016, -0.9272, -0.2644, 0.02881, 1.1, -0.1293, 1.259, 0.721, -0.6084, 0.7544, -2.395, 3.158, -0.284, -0.677, -1.079, 0.1211, 0.4294, 0.0421, 1.343, -0.2054, -0.0746, -0.503, -0.8013, 0.8203, -0.309, -0.891, 0.797, -1.962, -0.12177], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8076, 2.418, 1.251, 2.434, 0.5767, -1.004, 0.3823, -1.724, 3.746, -1.994, -0.1737, -0.92, 2.057, 0.5396, 2.814, 1.926, 0.2683, 2.041, 2.975, -1.008, 1.225, 1.016, 1.186, 0.1023, 0.001382, 0.09534, 1.824, -0.2439, 0.2365, 1.429, -0.184, 2.168, 1.594, 1.757, 0.557, -1.656, 0.0725, 1.643, 2.076, 1.964, -0.2642, -0.1929, -0.5464, 0.1779, -0.9717, 0.3635, 2.707, 1.076, -4.03, 2.662], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.03516, -0.528, 1.637, 0.692, 0.654, 1.098, -0.101, -0.118, -1.758, -2.014, -0.8354, -0.902, -0.715, -0.1334, 0.0226, 2.453, -1.023, -0.9785, -1.418, -1.575, -1.591, -0.1616, -0.2876, 0.3875, 0.0334, -0.3093, -0.6997, -0.9272, -1.677, 2.107, 0.01788, 1.439, -1.184, 1.303, 1.511, -0.05, 0.02394, -0.7744, 0.425, -0.1274, 0.04837, 0.7393, -0.1516, -0.439, 0.3271, 1.012, -1.479, 0.05878, -0.1906, -0.4443], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.989, 1.389, 1.261, 1.113, 1.538, -0.6025, 0.4219, -0.949, -0.0955, 2.275, 0.56, 0.2041, 0.1653, 0.5767, 0.901, 1.927, -0.05994, 0.662, 2.584, -0.03732, 3.775, 0.5396, 2.06, 0.2192, 0.02719, 1.217, -1.391, -0.03577, -0.009796, 0.984, 0.2407, -0.5, 1.004, -2.715, 1.089, 1.581, 0.4915, 0.687, -0.4187, 0.727, -0.235, 0.2296, 0.583, -0.1337, -1.052, 1.049, 0.2019, -1.11, 0.9287, 1.143], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.284, 1.909, -0.6123, 0.7695, -0.385, -0.3374, 0.046, -0.2964, 1.666, -1.12, 1.011, 0.553, 1.04, -0.1531, 0.8228, 2.506, 0.0309, 0.3894, -0.8105, -0.3557, 2.03, 0.7715, 0.407, -0.1583, -0.03284, -0.2205, 0.55, -0.865, -0.1855, 0.12317, 0.3848, -1.196, -0.3228, 0.717, 0.00672, 1.167, 0.1266, 0.1729, -0.5347, -2.479, 0.10254, 0.9023, -0.10345, -0.2693, 1.059, 0.386, 0.423, -0.0577, 0.939, 0.9795], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.793, -1.958, -0.247, 2.295, -0.4956, -0.473, 0.813, -0.7715, -2.34, 0.6475, -3.752, 0.0835, 2.244, -1.1455, 1.232, 1.294, 0.0708, 2.18, -5.664, -1.817, 3.787, 1.19, 1.063, -0.6313, -0.02106, -0.05847, 4.16, -1.354, 0.5444, 0.3323, -0.4502, 1.716, 3.559, 1.847, 0.5713, 2.287, -0.01212, -1.411, 0.9673, 1.7, -1.16, 1.994, 0.2764, 0.1396, 0.2712, 0.777, 1.963, 0.1877, 2.021, 0.609], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.7266, 1.24, 0.3423, 0.0748, -1.757, -0.688, 0.5156, -0.715, 0.978, 0.8823, 0.6763, 1.606, 0.367, -0.7383, 0.4915, 0.9155, 0.8506, 0.3943, 0.6836, -0.9917, 3.72, 0.261, 1.124, -0.4956, -0.03958, 0.54, 2.848, 1.065, 0.8994, 1.131, -0.4607, -0.5386, 1.052, 0.12115, -0.3499, 0.2507, 0.217, 0.834, 0.2252, -0.1129, -0.9995, -0.832, -0.5967, 0.507, 0.5977, 0.5986, 1.179, 0.623, 0.7896, 0.3572], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3384, 1.75, 2.338, 0.0999, -1.856, -0.9517, 1.172, 2.078, 2.137, 1.548, 0.6567, 0.8257, 1.714, 0.4543, 1.701, 3.785, 0.2532, 1.16, 1.814, 2.586, 1.621, -0.9097, 1.995, -1.241, 0.004257, -0.692, 4.887, 2.402, -0.4114, 0.2993, -2.188, 4.324, 4.855, 1.102, -0.35, 0.3914, -0.362, 1.019, 1.011, 0.4204, -0.5454, 0.4326, -0.004715, -0.595, 0.828, -0.7095, 4.145, -0.1798, 3.428, 3.332], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.414, 0.5796, 1.3545, -1.545, -1.906, 0.4192, 0.535, -0.0424, -3.021, 0.9067, 1.836, 0.08966, -1.629, -0.05762, 0.5156, 1.355, 0.1473, -0.512, -3.965, -0.2986, 0.6445, -0.4758, -1.34, -0.6533, 0.02791, -1.396, -0.007557, -0.976, -1.687, 0.3062, -0.718, 0.7793, 0.2133, -1.645, -2.455, -0.881, -0.9863, -0.06168, 1.021, 1.3125, -1.443, 0.8555, -0.7983, 0.8936, 0.865, 0.2776, -0.978, 0.645, -3.76, 1.002], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.9297, 0.6914, -0.09674, 1.039, 3.62, -1.015, 1.552, 1.398, -0.09784, 4.08, 1.53, 0.4875, -0.1708, -0.8906, -0.947, 1.841, -0.4583, -3.81, 4.33, 3.34, 7.37, 1.224, 3.582, 0.861, 0.02843, -1.454, 3.842, 0.907, 0.4963, 1.548, 0.7607, 1.476, 0.3872, 1.297, 3.14, 4.59, 0.09, 2.168, 1.121, 1.646, -0.0889, 0.7974, -0.3801, -0.5986, 0.4934, 2.078, 1.991, 1.036, 2.502, -1.934], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.495, 1.804, 1.446, -1.391, -0.1453, -0.4817, -0.8374, 0.4788, -0.0825, 2.35, 1.895, 1.231, 1.453, 0.448, 3.158, 5.457, 0.3743, 1.109, 1.63, 0.2886, 0.2742, 0.02176, 1.302, -0.0853, -0.0445, 0.5938, 2.625, -0.2101, -0.02072, 0.6855, -0.11945, 0.4355, 0.1849, -0.7817, 0.683, 2.076, -0.9033, 2.229, -0.9263, 2.88, -0.7476, 0.845, 0.03802, -0.2883, 0.1157, 2.121, 0.5513, -0.1521, 2.285, 1.546], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4453, -0.2812, -0.1635, -0.263, -0.1236, 0.491, -1.009, 0.2974, -0.3406, -0.6772, -1.175, 0.1204, -0.429, -0.0874, -0.2291, 1.94, -0.521, -0.7397, -0.839, -0.8076, -1.766, 0.274, -0.9478, -0.278, 0.03632, -0.1873, -0.431, -0.3623, -0.2734, 0.004425, -0.7026, 0.411, -2.383, 0.5654, -0.01773, 0.2173, -0.1526, 0.2472, 0.1927, -0.852, 0.2412, 0.882, -0.663, -0.0293, -0.3738, 0.375, 0.2195, -0.2366, -1.129, -0.07874], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.503, -0.629, 1.805, -2.303, 0.321, -0.57, -0.0457, -0.313, 0.1385, 1.042, 0.01627, 0.6675, 0.8765, 0.261, 0.097, -1.04, -0.1799, -1.255, -0.864, 1.929, 1.408, 1.582, -1.026, -0.05554, 0.03876, 0.08655, 1.311, 1.23, 0.2405, -0.676, 0.07153, -3.545, -0.932, -0.01619, -0.1665, 2.033, -0.625, 0.9688, 1.409, 0.0947, -0.1388, 1.259, -0.1384, 0.5674, -0.4753, -0.1703, 0.584, -0.12427, -0.8716, 0.8457], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4036, 0.1678, 0.367, -0.2306, 0.1016, 0.11566, -0.626, 0.7334, -0.32, 0.1807, -0.705, -1.064, 0.686, -0.0531, -1.029, -0.4395, -0.3872, 0.7295, 1.041, -0.618, -0.12054, -0.1823, -1.082, 0.6396, -0.01822, 0.3042, -0.6187, -0.4783, -1.528, 0.164, 0.0337, -0.8867, 0.000616, 0.2734, 0.5317, -1.423, 0.1553, -0.10974, -0.09296, -1.041, 0.6475, -0.03076, 0.4097, -0.3223, -1.108, 0.1016, -0.4646, 0.3323, 0.2168, -1.19], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.661, 0.847, 1.063, 0.2537, -0.03616, -0.2898, -0.2299, 0.1381, -1.11, -0.05438, 2.057, -0.6772, 1.211, -0.2546, 1.528, -0.909, -0.1356, 2.852, -1.57, 2.537, 0.4536, -0.3752, -1.167, 0.1699, 0.008835, 0.02966, -1.18, -0.3093, -0.6494, 0.8906, 0.1913, 0.8022, -0.489, 1.015, 0.6367, -0.1799, 0.1597, 0.7837, 0.8955, 0.418, -1.027, -0.27, 1.248, 0.502, 0.08606, 0.6226, 1.298, 0.2222, 0.0821, 1.383], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4712, 1.539, 1.207, -0.697, 2.633, -0.821, 0.1936, 0.687, 1.027, -2.98, 0.0632, -3.988, 1.865, 0.6274, -4.207, 2.844, 0.554, 1.512, 3.213, 1.475, 1.047, 1.792, 0.901, 1.731, 0.01662, 1.274, -0.791, -2.375, 0.0452, 0.897, 0.5063, 2.041, 1.368, -1.461, 1.38, -0.695, 0.2712, 2.746, 1.478, -0.08185, -0.03296, 0.1647, 0.6655, -0.2166, -8.18, 2.354, -2.578, 0.479, 1.521, 2.174], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5483, 1.272, 0.8013, -0.157, 0.11664, -0.1493, -0.566, -0.972, 0.06946, -0.876, -1.678, -1.534, -2.057, 0.415, 0.481, 0.3054, 0.02599, -1.377, 0.2537, -1.241, 0.5176, -0.446, -0.456, 0.451, 0.03001, -1.051, 1.201, -0.4592, 0.5913, -0.7637, 0.2493, -0.5723, -9.05, 0.8057, 0.545, -0.365, 0.583, -0.9434, 0.426, -0.1813, 0.1862, -0.297, 0.1398, -0.315, 0.1439, 0.2289, -0.4702, -0.925, -2.607, 0.6924], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.04852, 0.735, -0.4448, -1.644, 0.495, -0.1506, 0.3784, -0.357, 0.0847, 0.539, 1.5205, -0.1876, 0.849, 0.2291, -0.4578, -1.388, 0.1866, 0.272, 0.7993, 0.7324, 1.067, 0.3044, 0.3386, 0.05197, 0.002346, 0.03995, 0.6655, -0.4084, 0.687, -0.4482, -0.3135, 1.844, 1.212, -0.7114, 0.631, 0.463, -0.319, 0.1552, -0.5293, 0.1344, -0.4556, 0.5654, 0.6157, -0.0715, 0.92, -0.3767, -1.401, -0.1167, 0.5107, 0.06433], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0894, 0.4373, 0.173, 0.1923, 0.657, 0.1074, -1.151, -0.03207, 0.2343, 0.4497, 0.952, 1.309, 0.622, 0.2847, 0.713, 0.1959, -0.2158, 0.644, 1.152, -0.07367, -0.0505, -0.5874, -0.8193, -0.2068, 0.04684, -0.08154, 0.1509, 0.03824, -0.7026, 0.4387, 0.2637, 0.484, 1.708, 0.1298, 0.6245, 0.06635, 0.0082, -0.3967, -1.072, 1.912, -0.4993, -1.712, 0.01689, 0.1676, 1.072, 0.9473, -2.395, 0.3489, 0.0831, 0.1263], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.75, 0.03806, 0.5083, 1.204, 0.945, 1.252, -2.098, 2.432, 1.108, 0.05524, 2.982, 1.26, 1.308, 1.76, 2.219, 1.412, -1.981, 3.008, 6.543, 2.412, -0.834, -1.385, -0.2512, 1.325, 0.01345, -0.991, 0.5596, 1.182, -1.688, 1.667, -0.4424, -1.233, 3.51, 1.923, 2.68, -0.7627, -0.2236, 2.982, 0.863, 0.6167, 2.707, 0.08234, 0.6313, -1.026, -0.2256, 1.081, -1.629, 2.598, 1.354, 1.769], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.029, 1.015, 1.227, -0.3884, 1.7295, -0.7227, 0.3293, -0.1924, -0.3596, -1.949, 0.5566, 0.5503, 2.18, -0.06168, -0.99, -7.42, 0.1862, 2.25, -1.363, -0.2122, 2.676, 1.342, 2.01, 1.259, 0.04138, -0.2039, 1.917, -0.1735, 0.787, -1.438, -1.652, 0.8145, -0.8486, 0.9414, 0.292, -1.101, 0.4407, 2.244, -0.1438, 1.709, -0.00954, 0.2546, -0.0677, -0.4294, 1.074, -0.9062, -0.1014, 0.711, 0.1849, 1.509], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5786, 0.2937, -0.1703, 0.4155, 0.7427, -0.09015, 0.833, 0.08105, -0.2695, 0.959, -2.184, -0.9253, -0.493, 0.4653, 1.184, -0.02245, -0.0327, -1.486, 1.047, -0.1395, 0.1293, -0.07104, 0.8535, -0.04926, -0.01447, 0.5425, -0.0342, -0.303, -0.47, -0.1515, -0.05896, 0.4778, -2.117, -0.2472, 0.7275, -0.10144, -0.3513, 0.506, -1.846, 0.761, 0.02687, 0.4634, 0.5625, -0.3826, -1.673, 1.059, -0.005306, -0.8535, -0.501, -0.7725], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.639, 1.711, 0.708, 1.444, 1.289, -0.573, 1.117, 1.632, -0.547, 1.092, -0.3289, 0.2683, -1.025, -0.0586, 0.179, 1.858, -0.1788, 1.707, 0.695, 0.8745, 0.8037, 0.03412, 0.2678, 0.342, 0.04553, -0.329, -2.588, 0.9497, -1.178, 1.121, 0.0713, -1.47, -1.115, -0.11017, 0.2693, 0.955, 0.2463, -0.3423, 0.987, -0.3228, 1.031, -0.1528, -0.0922, -0.568, -0.0964, 1.978, 0.688, -0.4565, 0.2188, 0.0239], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.00355, -0.0317, -0.0332, 0.01625, 0.02316, 0.003672, -0.05133, -0.002527, -0.03192, -0.0005755, 0.03778, -0.0351, -0.03503, -0.04593, 0.00766, -0.00834, -0.01514, 0.02963, -0.02014, 0.0335, -0.0419, 0.02928, -0.04016, 0.007168, -0.0251, 0.0092, -0.04318, -0.0588, -0.0385, -0.0006247, 0.03406, 0.002779, 0.0144, 0.02284, -0.04208, -0.0177, -0.01859, -0.01191, 0.001127, -0.002075, -0.05765, 0.004276, -0.01668, -0.0277, -0.03583, 0.02452, 0.01304, -0.002682, -0.05582, -0.03912], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2065, -1.091, 0.9897, 0.11334, -0.4712, 0.04675, 0.1421, -0.605, 0.6606, 1.615, 0.6997, -0.3264, 0.767, -0.0765, 0.3193, -1.975, -0.1417, 0.437, 0.784, 0.331, 0.1661, -0.3862, -0.6665, -0.7886, 0.02827, 0.632, 0.3694, 0.2179, -0.0785, 0.4907, -0.725, -0.4023, -0.6445, 0.2097, -1.37, 0.0863, -0.4407, 0.854, -0.6787, -2.121, -0.1004, 0.327, -0.7163, 0.00997, -0.926, 0.911, -0.5405, 0.4634, 0.621, -0.7534], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4238, -1.197, 0.8574, -0.0781, -0.8833, 0.1225, 0.4873, -0.5835, 0.4326, -0.941, -1.234, -2.002, -0.6704, -0.3389, -1.478, -0.6177, 0.05914, -1.201, -0.645, -0.76, -0.3176, 0.3774, -0.566, -0.545, 0.004307, -1.877, -1.018, -0.189, -1.157, 0.3003, -0.3696, -0.568, -2.832, -1.955, 0.5093, -0.3906, -0.3262, 0.3403, -0.5186, 0.279, 0.2832, 1.298, 0.796, -0.1431, 0.5312, -6.047, -2.152, -4.473, -0.3833, 2.822], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.11615, 0.0928, -0.508, 0.7783, -0.2339, -0.05032, -0.3074, 0.1538, -0.1312, -1.32, 0.968, 0.8706, 0.0998, 0.11456, 0.603, 1.015, 0.2117, 1.355, 1.402, 0.06042, 1.273, -0.67, -0.10297, -0.0672, -0.04074, 0.2312, 0.844, -0.0677, -1.338, 0.12006, -0.1056, -1.278, -0.356, 0.431, 0.4565, -1.145, 0.2632, 0.3357, -0.274, 1.42, -0.3528, 0.0775, 0.4548, 0.1586, -0.691, 0.4863, -0.3357, 0.483, 0.5938, -0.6], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.04346, 1.429, -0.999, 0.2032, 1.452, -0.2803, 1.079, -0.4563, 0.2026, 1.323, 0.3547, -0.3796, 0.4739, -0.3076, -0.03134, 1.035, 0.958, -0.03052, -0.1432, 1.489, 2.422, 1.278, 0.2876, -0.03464, 0.038, 0.4475, -0.05814, -0.2878, 0.1453, -1.233, 0.657, 0.976, 1.031, 0.6743, 0.3125, 0.1971, -0.423, 0.00344, 0.08704, -0.1063, -0.297, 0.6396, -0.1404, 0.01084, 0.9854, 0.0389, 0.532, -0.8594, -0.4832, -0.9355], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.3052, -0.2856, 0.9014, 0.6777, -0.7305, -0.344, 0.2979, -0.718, 0.561, 0.4001, 0.3877, 0.5093, -0.2104, -0.913, 1.168, 0.0899, -0.1334, 0.985, 0.4424, 1.641, 1.329, 0.1821, 0.9497, -0.1599, -0.001127, 0.3523, 0.8613, 0.4734, 0.698, 0.4993, 0.1272, 0.479, 3.432, -0.3252, 0.1841, -1.397, 0.2113, 1.339, 0.319, -0.1605, -0.5396, 0.1483, 0.2206, 0.0709, 1.306, -0.3682, -0.1896, -0.3916, -1.1455, 1.879], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1637, 2.145, 1.987, 1.523, 0.3894, -0.995, 1.288, 1.663, 0.2683, 2.67, 2.65, 1.453, 1.883, -0.861, 0.4883, 3.871, -0.2489, 1.258, -0.763, 2.504, 4.67, 2.607, -1.755, 0.806, 0.01747, 0.7007, 4.363, 1.889, -2.23, 1.483, 0.394, 2.45, 2.95, 2.244, -0.09174, 1.117, -1.086, 0.7837, 0.33, 3.988, -0.6885, 0.4036, -0.4155, -0.2167, 2.361, 0.5767, 2.316, 0.11536, 4.06, -0.1659], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0004382, -0.03964, 0.011635, 0.03238, -0.01843, -0.05017, -0.03604, -0.0239, -0.01936, -0.0523, -0.008995, -0.002897, 0.00725, 0.000256, 0.02646, 0.02849, -0.0006385, 0.0004394, 0.0344, -0.004276, 0.02052, 0.02972, 0.03503, -0.01933, -0.01047, -0.014175, -0.002289, 0.02945, 0.02023, 0.01405, -0.02934, -0.02058, -0.04413, -0.02493, 0.001514, -0.011665, 0.000424, -5.66e-05, -0.05637, 0.006805, -0.03604, -0.0426, -0.04742, -0.04044, 0.04495, -0.04858, -0.02724, -0.01974, 0.03082, 0.01002], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.428, 0.2786, -0.3484, -0.03967, -0.2896, 0.0156, -0.4348, -0.6216, -0.395, 0.05792, 0.0856, -0.9556, -0.6587, 0.006584, 0.993, -0.05994, -0.04968, 0.319, -0.4966, 0.414, 0.856, 0.00958, 1.15, -0.07996, -0.02414, 0.10364, -0.3032, -0.2686, 0.1554, -0.194, 0.3215, -0.318, -0.00399, -0.2413, -0.621, 0.67, 0.2125, -0.647, 0.1237, -0.1252, -0.4548, 0.2238, 0.0508, 0.01633, -0.4336, -0.3115, 0.693, -0.5957, -0.10443, 1.226], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.266, 1.561, 2.008, 0.935, 2.215, -0.543, 1.884, 0.902, -1.268, 3.34, 4.348, 1.054, -0.1407, 0.8975, 3.156, 3.105, 0.4363, 1.573, 4.098, 1.297, -0.6167, 0.9927, 3.287, -0.4932, -0.03165, -0.01354, 3.322, 1.473, -4.95, -0.061, 0.6196, 4.65, 5.098, 2.277, 0.8228, 1.279, -0.511, 3.416, 1.006, 3.277, -2.01, 1.272, -0.613, -0.651, 3.162, 1.048, 1.355, 1.07, 3.467, 1.485], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2732, -0.4624, 1.832, -0.4363, 0.691, -0.05582, -0.4263, 0.4448, -0.3162, -0.0677, -0.3953, -0.4023, -0.8247, 0.564, 0.94, -1.794, 0.5117, 0.688, 0.4656, -0.395, 1.485, -0.748, 0.476, 0.692, -0.04074, 0.3015, 0.6646, 0.5986, 0.1503, 0.3015, -0.2284, 1.907, -0.1087, 0.4507, 1.138, 0.3071, -0.07, -0.921, 1.21, -0.4817, -0.3738, 0.05237, -0.688, -0.4268, 0.6494, 0.7627, 1.57, 0.377, -0.55, -0.1572], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.536, 0.747, 1.593, 4.105, -2.926, -1.09, 2.547, -0.0345, 2.574, -1.919, 2.604, -0.326, -1.738, 0.4077, 1.697, 2.482, 0.2996, 3.102, -2.877, 4.11, 4.758, 1.649, 3.12, -0.987, 0.00602, -0.2212, 2.281, 0.7065, 1.391, 2.268, 0.7656, 2.08, 4.94, 0.8223, 1.156, -0.0615, 0.1075, -0.6616, 1.994, -2.66, -1.169, 1.197, 1.1045, -0.002258, 3.033, 1.392, 1.403, -0.3245, 3.086, 2.78], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.02719, -1.386, 0.664, -0.6694, -1.124, -0.4138, 0.1777, -0.726, 0.285, -0.1831, -1.134, -1.173, 0.86, 0.01453, 0.1594, -0.0947, -0.58, 0.4534, -3.84, 1.215, -0.0345, 0.9346, 0.9287, 0.7075, -0.02455, 1.042, 0.935, 0.02292, -0.1761, 1.455, 0.1824, 1.266, 1.139, 0.6147, -0.2603, 1.15, -0.1207, 1.06, 0.1644, 1.39, -0.03494, -0.2402, 0.9946, 0.4985, 0.6597, -0.32, -0.669, 0.582, -2.045, 1.41], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3677, -1.6, -0.271, -1.816, -1.017, 0.527, -0.923, 2.236, -1.452, -1.42, -3.285, -0.2206, 0.09705, 0.5093, -1.25, -5.574, -0.3945, -0.833, 0.466, -1.589, 0.2585, 0.4072, -1.922, 0.4038, -0.04605, -0.1125, 0.1682, 0.705, -5.508, 4.64e-05, -0.8643, 0.0354, -3.357, -0.3708, 0.6934, -0.654, -0.4902, 0.585, -0.1633, 0.11926, 0.8496, -1.118, 0.2173, -0.1209, 0.2515, -0.3982, -2.969, -0.3523, -0.671, -2.377], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.593, 2.715, -0.909, -0.4429, -2.887, -0.4346, 1.301, 0.2471, 2.135, 0.5405, 0.795, -1.008, 1.167, 0.0681, 1.069, 2.03, -0.2019, -0.8467, 1.94, 1.089, 0.3137, 0.05487, 1.692, -0.1853, -0.02826, 0.1415, 1.499, 0.5435, -0.374, 0.569, -0.985, 0.909, 4.723, 1.189, 0.316, 0.3335, 0.1126, 0.2109, 0.1927, -0.8013, -0.0851, 0.278, 0.3342, -0.0668, -0.2227, 0.132, 1.642, -4.574, -0.7915, 0.195], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.616, -2.115, -0.989, -1.611, -1.737, -0.0729, -2.73, 1.076, 0.3113, -0.271, 1.273, 1.033, -0.06223, -0.3494, -1.548, -1.3955, -0.3955, 0.0765, -0.925, -1.215, 0.339, -0.3384, 2.002, -0.0283, -0.007904, -1.039, 3.209, -0.1597, 0.6816, -0.622, -0.7803, -1.794, -1.184, -0.7427, 0.1892, -1.016, 0.06006, 0.4827, -0.0526, -0.5073, 0.8613, -0.9526, 0.2637, 0.794, -1.331, -0.939, -2.08, 1.438, -0.506, -0.9595], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8936, 1.02, 0.386, 1.896, 0.836, -0.3464, 1.754, -1.82, 0.1234, 1.935, -2.215, 0.4954, -0.888, 0.1202, 1.331, -1.898, -0.685, 0.07086, 1.002, 1.6045, 1.343, -0.3499, 2.19, 0.097, -0.02518, -0.551, -1.01, 0.2593, 0.6978, 0.1766, -0.5303, 2.084, -1.803, 0.0943, 1.348, 2.014, 0.456, 1.276, -0.5186, 1.015, -1.0625, 1.71, 0.756, 0.155, -0.2786, 0.5703, 4.484, 0.527, 2.38, 1.382], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.735, 0.5728, 0.4583, -0.006874, 1.402, 0.4165, -0.06033, -0.9644, -0.653, -1.185, -0.8047, -0.538, -0.2296, 0.912, -1.978, -0.1835, -0.3152, -0.3188, -1.102, 0.1298, -1.691, -0.1124, -0.874, -0.556, 0.04358, -0.271, -5.36, 0.03458, 0.3647, 0.1809, 0.6045, -0.5986, -2.824, -0.5776, -0.2537, -4.414, -0.02142, -1.109, -1.143, -0.7524, -0.3215, -0.6016, 0.4045, 0.3267, 1.398, -0.4895, 0.3445, -0.5005, 1.3125, -2.627], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.735, 2.998, 3.352, 2.707, 0.542, -0.9453, 0.955, -0.2029, 0.291, 2.05, 2.562, 2.855, 0.6064, 0.0986, 0.5146, 0.8213, -1.505, 3.1, 3.31, 0.6523, 4.273, 1.632, 2.252, 0.38, 0.03888, 1.523, 4.336, 1.965, -1.878, 1.397, 0.8906, -0.2069, 2.137, -0.8286, -0.2031, 1.058, 0.02567, 2.814, 0.2048, 2.521, -0.9873, -0.3381, -0.802, 0.344, 2.191, 1.374, 1.284, -0.424, 3.19, 0.54], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3704, 1.278, 0.3015, 0.4087, 0.1309, -0.2607, 0.79, 0.3647, -0.6846, -0.795, -2.42, -2.238, -0.4263, -1.166, -1.089, 0.63, -0.2642, -1.183, -0.3748, 0.7515, 1.731, -0.97, 2.025, -0.279, 0.01428, -0.604, -4.562, -0.6978, 2.475, 1.3125, 0.724, -0.493, 0.1334, 1.243, 1.057, 0.2688, 0.3943, 0.4873, 0.6094, -0.1083, -0.4036, 0.2898, 0.4465, 0.4414, 0.00378, 1.599, 1.999, 0.3833, -0.6646, 3.162], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.6387, -0.4124, -0.1304, 0.00909, -0.0468, 0.01064, -0.4302, -0.6333, 0.273, -1.107, 0.2311, 0.48, 0.1741, -0.07684, 0.1764, -0.5303, -0.01724, 0.8823, -0.5356, -0.243, 0.1265, -0.0412, 0.335, 0.05933, -0.0357, -0.0756, -0.08826, -0.3367, -0.1009, 1.34, -0.2384, -0.2537, -0.519, 0.4365, 0.4656, 0.888, 0.1229, -0.6006, 0.3406, 0.6255, -0.1047, -0.4905, -0.04355, -0.02132, -0.86, 0.1687, 0.983, 0.252, 0.6855, -0.3606], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -3.414, -2.209, 6.188, -0.2961, -0.8, 0.5425, -2.398, 3.377, 0.606, -0.66, 0.614, -0.6567, -1.204, -1.013, -3.746, -3.766, 0.719, 1.623, -0.4001, -1.891, 2.264, 0.3118, 0.2883, -0.01402, -0.00988, 2.469, 4.438, -1.5625, -1.857, 5.746, 1.014, -3.121, 1.531, 2.246, -0.9126, 1.497, -0.6743, 0.3005, 1.977, 2.615, 1.773, 0.3906, -2.143, -1.462, -1.402, -1.234, -2.543, 2.566, -0.1991, 5.4], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.027, 0.2084, 0.7793, 1.755, -1.276, -0.1708, 0.3994, 0.574, 0.8857, 0.8022, 0.909, -1.903, -0.3787, 0.2272, -0.2345, 0.9897, 0.354, 0.6855, 1.625, 0.7324, -0.2607, -0.06915, 1.137, -0.008446, -0.04218, 0.4133, -0.546, -0.8765, -0.1208, 1.633, 0.00677, -1.926, 0.831, -0.1547, -0.2668, 0.07294, -0.1237, -0.962, 0.4695, 0.557, -0.10187, 0.8457, -0.3293, -0.11127, 0.4417, -0.0827, 0.3938, 0.699, 0.5977, -3.336], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2004, -1.513, -2.104, 0.578, 0.2446, -0.3203, -0.78, -0.6187, 0.963, 0.4504, 0.12024, -0.3845, 0.374, -1.269, 2.852, -1.217, -0.963, 0.918, 1.921, 1.167, 1.013, -0.5977, -0.643, 1.346, 0.04865, 0.4011, 3.33, 1.49, 0.855, -0.2686, -1.504, 0.377, -0.08124, 0.3958, 1.173, -0.308, 0.01952, -0.901, -0.467, 0.4116, 0.01089, 0.569, -0.5454, 0.0401, -1.29, -1.931, 2.2, -0.1696, -2.21, -1.482], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.6714, 0.2295, 0.7485, -0.1755, -0.981, -0.3462, -0.1686, -0.2308, 1.579, -0.349, 0.353, 0.7075, -0.3953, -0.773, 1.655, -0.847, -0.2262, 0.5415, 0.01884, -0.3276, 1.059, 0.1365, 1.761, 0.0706, 0.02275, -1.08, -2.27, 0.2067, 0.2452, -0.5786, 0.264, 0.4104, 1.661, 1.449, -0.3958, 0.772, 0.2458, 1.2, -0.3857, 1.082, -0.17, 0.4224, 0.3518, 0.3113, 1.338, 0.325, 0.301, 0.6694, 0.527, 0.875], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2957, 0.788, -0.3066, 0.2186, 0.4087, 0.1284, -0.2328, 1.172, -1.376, -1.099, 1.109, -0.07495, -0.5303, -0.2032, 0.4968, 1.347, -0.0642, -1.214, -0.8374, 1.087, -1.401, -0.5215, -0.735, 0.307, 0.04483, -0.1663, -0.1549, -0.3162, -1.033, 0.8887, -0.07715, -1.9, -0.4902, 0.2494, 0.2522, 0.01487, 0.1915, 0.505, -0.0994, -0.336, 0.1165, -1.056, -0.1492, -0.04623, 0.0299, 0.2969, -0.4097, 0.1442, 0.9023, -0.4785]]
[1.55203, -0.709602, 2.93577, -3.54572, 0.211342, 1.09395, -0.0838793, 3.48038, 0.726881, 0.979451, -1.19351, 0.87589, -2.68915, 1.21245, -1.98268, 2.15728, -0.671174, 0.368535, 2.66919, -0.22017, -4.82789, 1.25118, 0.406003, -1.48742, -0.0244275, 3.12757, -1.27172, 0.584025, 4.71076, 1.58302, -0.787437, -0.0159808, 2.29061, -0.885269, -0.640315, 0.362294, 0.232203, -3.77565, -0.771177, -1.8668, 0.482496, -0.97539, 0.827352, -1.59311, -0.0834759, -0.183725, 0.665595, 1.42743, 2.28728, -1.37327, 1.552, -0.7095, 2.936, -3.545, 0.2113, 1.094, -0.08386, 3.48, 0.727, 0.9795, -1.193, 0.876, -2.69, 1.213, -1.982, 2.158, -0.6714, 0.3687, 2.67, -0.2202, -4.83, 1.251, 0.406, -1.487, -0.02443, 3.127, -1.271, 0.584, 4.71, 1.583, -0.7876, -0.01598, 2.291, -0.8853, -0.64, 0.3623, 0.2322, -3.775, -0.771, -1.867, 0.4824, -0.9756, 0.827, -1.593, -0.0835, -0.1837, 0.6655, 1.428, 2.287, -1.373]
ReLU
[[0.352511, -0.692742, 0.0905969, 0.00267473, -0.0625318, -0.278895, 0.47356, -0.701678, 0.545373, 1.09701, -0.0723359, 0.308423, -0.0919188, 0.375014, -0.263011, -0.445379, 0.582751, -0.918191, -0.0261254, 0.529215, -0.11398, -0.312906, -0.782912, -0.148893, -0.00220583, 0.161534, 0.751834, 0.311234, 0.0120264, 0.317852, -0.0960379, -0.00322877, 0.322662, -0.231826, -0.146628, 0.274922, -0.233195, 0.376102, 0.435688, -0.310022, 0.0949111, -0.972798, -0.219093, 0.413959, 0.355116, 0.133827, -1.46737, 0.299975, -0.391275, 0.037804, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.16888, 2.34565, 0.238577, 0.112414, 2.21871, 0.847507, 0.789259, -4.23601, -1.45164, -1.05558, -3.11725, 1.47977, -0.101165, 1.15448, 0.5462, -0.356052, -0.150021, 0.545642, 1.50867, -1.57986, -0.0447538, -0.0614801, -0.0105755, -0.613152, 0.0087889, -0.0577562, 2.7898, 2.78781, -0.871714, 1.7556, 1.58316, -0.0374025, -0.817691, 1.72566, 0.68224, 0.0207498, 1.59768, 0.645151, 3.61008, -0.977939, -1.4356, 1.84555, 0.051358, 1.98361, -1.24382, -0.284323, 1.0718, -0.161239, -0.716177, 0.531044, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0121051, -1.41758, 0.433499, 0.0393857, -0.72932, -0.694291, -4.7981, -0.838278, 0.0737764, 0.499205, -0.533612, 0.268274, -1.02228, 0.110301, 0.117651, -0.268784, -1.32569, -0.0417803, 0.405634, 0.0158873, -0.146518, 0.135411, -1.40079, -2.58495, -0.0377461, 0.264541, -0.832798, -0.293406, 0.292749, 1.22629, 0.361283, -0.0310496, 0.15297, -0.396284, 0.313067, -3.76206, 1.00302, 0.68801, -1.67064, -4.45615, -0.164734, 0.170089, -0.116538, -0.710944, 0.644982, -0.0367016, -0.69944, 0.620608, 0.236929, -1.33692, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.325314, 0.894273, -1.2082, 0.180646, -2.12099, -1.43211, 0.330064, 1.14256, -0.873215, 0.754627, -0.751202, 0.0622829, -1.32962, 0.941181, -0.142904, 0.0180381, -0.850752, 0.127694, -1.92909, 0.133678, 0.0926928, 0.425147, -0.102726, -1.90643, -0.00759065, -0.416378, -0.16448, -0.756496, -0.686662, -4.19111, -0.387359, 0.0458267, -1.11507, -0.128064, 0.29073, 0.71872, 1.37582, 0.498043, -2.59881, -0.159141, -0.170945, -0.700138, 0.167983, 0.126727, 0.0209668, -0.170031, 0.798534, 0.205521, 0.83089, -1.69214, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.175346, -2.03389, 0.576398, 0.507477, -0.181203, 0.123177, -1.59043, -1.9731, 1.35309, -0.505059, -0.445715, 1.08656, -1.91815, 0.295793, 0.0263524, 0.321022, 1.6713, -1.03109, -0.62041, 1.1767, -0.348019, -0.604499, -1.42562, 0.0920965, 0.00291906, -0.458738, -1.39902, 0.208873, 0.424182, -0.697448, 0.710579, 0.0433136, 2.15534, -0.812932, 0.475934, 0.475969, -1.57436, -1.4437, 1.19726, -2.49956, 0.442659, -1.53574, 0.573156, 1.81977, -0.968795, -0.0175136, -0.640171, -0.211279, 0.605995, -0.9343, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.1164, -6.82666, -5.75805, 0.329744, -6.95024, -0.433076, -0.379979, -1.41249, -1.11961, -2.12236, 1.38792, 0.123616, 0.731532, -0.528244, -2.09527, -2.27012, -5.1255, -3.5887, -1.4661, 1.09396, 0.228696, -2.06472, -7.35631, -2.85823, 0.0475392, -1.39836, -2.89036, -0.546628, -1.30074, -6.13713, -8.77907, 0.0414201, 0.175852, -3.90014, 0.802636, -2.88312, -3.26836, 0.0441504, 2.39251, -1.72462, -2.20369, -2.6327, -2.56551, -2.00163, -1.54703, 0.687191, -3.42269, -0.123441, -3.89069, 0.343236, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.523061, -0.390535, 0.549856, 0.284235, 0.89206, 0.547357, 0.213893, -1.01147, 0.528608, -0.130719, -0.314924, 0.38232, -0.882764, 0.876072, 0.902568, -0.959897, 0.952687, 0.409624, -0.535911, 0.566925, -0.156766, -1.18245, -0.58835, 0.791145, 0.00617181, -1.0406, 0.43639, 0.100151, 0.256272, -0.254067, 1.09848, 0.0454102, 1.47587, -0.58494, 0.132942, 0.484583, -0.129913, 0.304028, 1.12472, -3.9892, 0.726107, -0.769355, -0.0322697, 2.35583, 0.210431, -0.235006, -0.849256, -0.534045, 0.512438, -0.0342823, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.246237, 0.482191, -0.232917, 0.199155, -0.230935, -0.712558, -0.761993, -0.426953, -0.461369, 0.873853, 0.815036, 0.515765, -0.65048, -0.16589, 0.294573, 0.640067, -0.428881, 0.519631, 1.27951, -0.975276, -0.0885225, 0.645167, -2.11616, -0.812528, -0.0206818, 0.636575, 0.15969, -0.0979932, -0.928915, 0.154972, 0.298004, -0.0407155, 0.472102, -0.481284, 0.534346, -0.162637, -1.40984, 0.236054, 0.780583, -0.405919, -0.640054, -0.201467, -0.151511, -0.253188, 0.872454, -0.108967, 0.691099, -2.1665, -0.425226, 0.514526, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.120548, 1.12535, -0.294893, 0.110082, 0.68494, 0.310594, -0.306118, -1.09782, 0.682316, -0.613536, 0.114356, -0.0332315, -0.68515, 0.746834, 1.04887, 0.0484827, 0.0847752, -0.369122, -0.293705, 0.723303, -0.264451, -0.0225535, 0.424692, -1.00734, -0.0309683, 0.548362, 0.632309, -0.853305, 0.0652024, 1.2068, 0.271173, 0.0217571, 0.929318, -0.612372, 0.460709, 0.0448186, -1.58603, 0.200253, -0.130737, 0.373869, 0.470593, -0.047107, 0.16796, 0.597498, 1.32633, -0.27888, 0.57847, 0.0220166, 0.874534, 0.992292, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.893953, 1.76468, -0.239945, 0.565081, -0.0284955, 0.197796, -0.256147, -2.91348, -1.15496, 1.19984, 0.377751, 0.427455, 0.255352, 0.343236, -0.266384, 0.493509, 0.412134, 0.366189, 0.260767, 0.97338, -0.540871, 1.70266, 0.135154, 0.753538, 0.0360478, -1.723, 0.827599, 0.945074, 0.20897, 1.37773, 0.0160494, 0.0495065, 2.03324, -0.27159, 0.381837, -0.321962, 2.39873, -0.41619, 1.51051, -0.785768, 0.298268, -0.921708, 0.357636, -0.5193, -0.727333, -0.376744, 0.376105, -0.836904, 0.161819, -5.42442, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.617882, -0.483791, -0.0181303, -0.142761, 0.599885, -0.866141, -2.49466, 0.48381, -0.263541, -1.77201, 0.267885, -0.854715, -0.277593, -0.674448, -1.327, 0.00884969, -0.880643, -1.37662, -0.726038, -1.24077, 0.309733, -0.830076, 0.234982, -0.510534, -0.0338828, -0.514719, 0.10668, -1.26026, -0.622963, -0.161032, -0.101796, 0.0128223, -0.260166, 0.555384, 1.49008, -2.31016, -1.85858, 0.0333675, 1.15341, -0.0585034, 0.13015, -0.842174, 0.970504, 0.913269, -1.60183, -0.0866393, 1.20687, -0.605053, -1.44152, -0.0294602, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0582155, 0.238435, -0.210809, 0.149419, -0.406474, 0.398936, -0.408885, -1.76696, 0.054214, 0.12017, 0.264685, -0.125268, 0.231626, -0.115701, -0.234442, 0.0973646, 0.0845193, -0.0600574, -0.127345, -0.350226, 0.00404205, -0.127699, 0.501013, -0.227765, -0.00595287, -0.178417, -0.136974, 0.345912, -0.283518, -0.795221, -0.420819, -0.036158, 0.039326, 0.14077, -0.271389, 0.0753805, -0.209207, -0.195555, -0.312091, -0.137771, -0.147412, -0.164122, 0.0293051, -0.161527, -0.31298, 0.0279332, -0.100975, 0.269286, 0.11595, 0.367393, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.180057, -0.224606, 0.167411, 0.129971, 0.634556, -0.388526, 0.265022, -0.954615, 0.85099, 2.16238, 0.134414, 0.0236672, -1.10324, -0.423651, 0.0483965, 0.0124266, 1.3609, 0.461235, -0.126029, 0.334927, -0.218403, 0.135966, 0.386225, 0.332987, -0.0228742, -0.157156, -0.715308, 0.641464, 0.468846, 1.44858, 0.213299, -0.0177345, -0.441003, -0.0759622, -1.15217, 0.408111, 0.32993, 0.337156, 0.217735, -0.159147, 0.540186, 0.427051, 0.0191131, -0.394079, 0.809766, 0.0467287, 0.0289973, 0.583401, -0.207181, -0.173356, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.364262, 2.14667, -0.482576, -0.334727, 2.27368, -1.25066, 0.302247, -11.3868, -4.72212, 0.374282, 2.46861, -5.54008, 3.2116, -2.6476, 0.515718, 0.738108, -4.76432, 1.34839, -1.47082, 0.443737, -0.576317, -0.345, 0.862893, -0.854343, -0.0475438, -1.28077, -0.280563, 1.2204, -0.804172, 2.62732, 1.08476, -0.0342655, 2.75319, -0.295949, -0.506143, 1.34828, 2.14418, 1.26379, 4.02322, -4.28013, 1.30216, 1.82906, 0.197403, -0.728454, 1.9698, -0.359965, 3.29585, -3.22597, 1.99891, -1.08717, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.591385, -1.26854, 1.26869, -0.836748, 1.86865, 0.710776, 2.73364, -0.329089, -0.3217, 1.9642, -0.135423, 0.399182, -2.20352, -1.00783, -1.17032, -0.156293, 0.602437, 0.073581, 2.85473, -0.349558, -0.68903, 0.480403, -1.19095, -1.8993, 0.00886312, 2.42421, 1.3228, 0.646764, 1.96936, 1.53349, 1.10541, 0.0460646, 3.82648, 0.10993, -0.316691, 1.98771, 1.84741, -0.254287, 1.46691, 0.643797, 0.981856, 1.38075, 0.243762, -1.21288, 0.671448, 0.110085, 0.529724, 0.386743, 0.758934, 0.456059, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.06612, -1.43259, 1.86153, 0.0766259, 0.942914, 0.438998, 1.43365, -2.57911, 0.47737, 0.0831776, 0.182447, 0.441036, -0.512763, 0.428796, 0.849309, 1.10397, 1.11399, -0.419998, 0.741598, 1.03488, -0.834012, -0.705129, 1.89448, 1.34408, 0.0445659, 1.64273, 1.38364, 0.240021, 0.875964, 0.435996, -0.389688, 0.033829, 1.83628, 0.310171, -1.42055, 0.431113, -1.18392, -0.810866, 1.86743, -0.865391, 0.789097, -0.812219, -0.930492, 0.981674, 0.144652, 0.379532, -1.86694, 1.33739, 0.392284, 2.11561, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.1929, 2.05934, 1.28475, 0.444345, -1.96583, 1.66513, -5.61829, -4.09488, 1.54198, 2.73375, -0.0559917, 2.19292, 0.82481, 0.760305, 0.541028, 0.511682, -0.263862, -0.0885792, 0.211557, -0.500554, -0.612327, 1.96075, -1.52332, 3.13219, 0.0215193, 1.6686, 2.86169, 0.514615, -1.51108, 3.69582, 2.08235, -0.02314, -0.593396, 0.0989323, -0.323074, 0.87165, 3.81648, 0.453319, 2.25284, 1.79733, 0.881299, -1.61431, -1.26188, 0.0135858, 1.09101, -0.402243, 1.93044, 0.638013, 0.255955, 0.795286, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0651374, -0.588205, -1.72302, 0.0249103, 0.252775, -0.661433, -0.579331, -8.12152, -3.15769, 2.87646, -1.32628, 0.401867, -0.852399, -0.0945305, -0.0536171, 0.00742016, -0.395064, -1.88237, 0.064333, -0.539071, 0.263064, 0.46458, 0.347176, 0.357742, -0.0278943, 0.392552, -1.81563, 0.857348, -0.510804, 0.324736, -0.944144, -0.048465, -0.937699, 0.334538, 0.0115248, -0.556697, 0.395826, -1.87305, -1.02121, -1.25608, -0.566495, 0.762953, -1.09998, -0.149169, -0.496927, -0.301895, -1.52769, 0.400929, -0.275791, 0.81885, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.00655586, 2.10142, 1.22463, 0.1824, -1.22859, -1.6136, -1.65058, -1.99668, 0.268559, 0.532507, 0.288717, -0.426716, -0.680644, -0.931617, 0.221874, -0.821401, 2.36273, -2.99435, 1.11689, -1.2172, -0.522892, 0.202962, -13.609, 1.8254, 0.0213312, 1.16427, -0.329531, -0.161676, 1.28092, 2.71053, 0.864338, -0.0211915, 0.674013, -1.36301, 1.41392, 0.823137, -3.31587, -0.113675, 0.274813, 0.20944, -3.5468, -0.495034, 0.717068, 0.986688, 2.27506, -0.220931, 0.0531047, 1.2763, -0.272937, 2.65048, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.344939, -0.1528, 0.206767, 0.377243, -0.344997, -0.685038, -1.28925, 0.813999, 0.288382, -0.426654, -0.291181, 0.235095, -3.22669, -0.550637, -0.593093, 0.558053, -0.129395, -0.904791, 0.60085, -0.444889, -0.281143, 0.337777, -0.540641, -0.925038, -0.00431575, -0.10158, -0.0230701, -0.421557, 1.28994, -0.703787, -0.0977721, -0.0420024, -1.31197, -0.285794, -1.85112, 0.0929492, -0.177626, -1.04957, -1.88594, 0.434041, 0.583018, -0.964974, 0.230922, -1.58025, -2.66216, -0.0197983, 0.148293, 0.000841898, -0.43302, -2.06291, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.122862, -4.40424, -0.117312, -0.636347, -0.833013, 1.39492, -0.0181082, 0.484587, -1.09151, -0.44928, -0.112551, 0.227963, -3.59054, 0.308354, -0.496053, 0.624761, -0.00710684, -5.37332, -2.03937, -5.38453, -0.0948776, -1.80907, -0.625593, -4.34461, 0.04837, -1.00667, 1.30166, -2.15144, -0.437143, -1.16428, 2.30911, 0.00744109, 1.26834, -1.03926, -0.559014, -1.67043, -2.95814, -1.78404, 0.439205, -0.70646, 1.52281, -0.818969, 0.0499746, -0.771707, -2.56491, 0.475135, 0.20274, -0.749127, 0.891596, -2.81716, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.32014, -1.17726, 0.172209, -0.351873, -0.0747025, -1.71422, 0.971648, -2.45406, 0.183469, -0.743828, 0.39294, 0.254543, -0.0330619, -1.56358, -0.596774, 0.355893, 1.50057, 0.875416, 0.0781441, 1.5499, -0.107571, -0.722388, 1.43676, 1.25462, 0.0164705, -0.235831, 0.183009, -0.73965, 0.186467, 1.36556, 2.95986e-05, -0.0172508, 2.62068, -0.335508, 0.285037, 0.356716, -0.153276, 0.799919, 1.11512, -1.45088, -0.211988, 0.407737, 0.998732, 0.555367, 1.28693, -0.066987, 0.229622, -0.555376, 0.453706, 0.71156, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.318951, -0.593832, 0.52138, -0.284033, 0.562963, 0.000433744, 0.78939, 0.0399058, 0.0802231, 0.298512, -0.0153295, 0.316233, -0.553225, -0.0318534, -0.350051, 0.0891573, 0.139419, -0.047124, 0.726975, -0.0270065, -0.363986, 0.408277, -0.434834, -0.533302, -0.0213809, 0.754638, 0.319683, -0.148818, 0.759156, 0.401696, 0.395685, 0.0327287, 1.1132, -0.0479922, -0.234511, 0.760836, 0.804407, -0.257163, 0.3352, 0.417695, 0.310937, 0.326292, 0.0985325, -0.604562, 0.0129931, -0.00900513, 0.0544943, -0.00482537, 0.349403, 0.0903904, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.998112, 2.15154, -2.95464, -0.131853, 0.84057, 3.69597, 0.906674, -6.27623, 3.65374, 1.82811, -2.32967, 1.01467, 2.47587, 0.355609, 1.56662, -0.0866094, 1.26773, 1.95453, 2.26575, 2.03129, -0.970988, 3.97514, 4.96849, 0.810895, -0.0104948, -0.819771, 2.23811, 2.2538, -2.85782, 3.08262, -1.902, -0.0116938, 2.67734, -3.73607, 0.765032, 0.71112, 1.15347, 0.547054, -1.21374, 1.65888, 1.86337, -2.04528, 0.530337, 0.629608, 2.15391, -0.587535, -1.60064, -1.75361, 0.984361, 3.32995, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.591404, -1.24474, 0.769358, 0.204357, -2.25829, -0.00917369, -0.282722, -2.07631, 0.166368, 1.27044, 0.279851, 0.76602, -0.448737, 1.49143, 1.12171, 0.192721, -1.32342, -1.43498, -1.80657, -0.83166, -0.401866, -0.491106, 0.358124, -0.168934, -0.0468452, 1.26613, -2.64682, 1.27664, 0.243465, -0.490867, -2.01596, -0.0495257, 0.33122, -0.00755356, -0.105536, -0.0643113, -0.731415, 0.223297, 1.40981, 0.150962, -0.482451, 0.788618, -1.93899, -2.45845, 1.32058, -0.0463425, 0.187372, 0.544341, 1.45126, 0.535042, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0992001, -0.473244, -0.276326, -0.458007, -0.222044, 0.668979, 0.0994042, -0.840941, -0.357865, 0.188824, -0.103568, -0.11067, 0.586563, -0.377152, 0.539017, -0.313296, -0.0356572, 0.536403, -0.36889, -0.0138267, -0.104446, -0.00129425, -1.64279, 1.10774, 0.0343924, 0.520081, 0.191558, 0.804087, 0.312944, 0.840058, -0.131029, -0.0360929, -0.483898, 0.065255, -0.485276, 0.151351, -0.418399, 0.713591, 0.0339704, -0.0755737, 0.256351, 0.150381, -0.0625354, 0.282363, 0.698432, 0.186268, 0.337896, 0.0845136, 0.569403, -0.275082, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0650149, 0.0258582, 0.0846436, -0.117336, -0.0301116, -0.119026, 0.0865709, 0.152638, -0.229845, 0.0115438, -0.0403356, -0.153237, 0.0156781, 0.0352455, 0.171512, -0.102361, -0.143791, 0.124081, -0.237601, -0.0677609, 0.0187423, 0.0555818, 0.136622, -0.0401426, -0.0382893, -0.0447722, -0.156513, -0.0433867, 0.0255587, -0.0317567, -0.0172872, -0.00466083, -0.126726, 0.0550429, -0.0544265, 0.0309654, 0.234649, 0.004912, -0.153159, 0.064863, -0.139832, -0.0159587, 0.0147521, -0.0818821, 0.261868, -0.0306813, -0.0205758, -0.132915, -0.00405749, -0.0224393, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.150537, 0.118621, -0.862154, 0.16552, -4.69515, -1.18818, -0.848226, -1.37669, -0.0675129, 0.269586, 0.149241, -4.23266, -2.94878, 0.586424, -1.14007, 0.643383, -1.74519, 1.48709, 1.25402, -1.46221, -0.0887142, 1.28974, 0.136232, 0.257602, -0.0137431, -0.0579689, 0.530623, -0.295797, 0.17099, -1.92471, -0.881411, -0.00257815, -1.06355, -0.540904, -1.22238, -1.15022, 0.65815, -0.15388, -1.05541, -1.30004, 0.0655982, 0.25289, -0.663677, 0.0864242, 0.41132, 0.137813, -2.41824, 0.690771, 0.215652, -1.43097, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.588283, -0.427864, -0.042695, 0.00223547, 0.253124, 0.0404388, 0.0183991, -0.490296, -0.0118897, 0.203479, 0.22671, 0.110534, -0.872573, 0.807177, -0.0514801, 0.187927, -0.285196, 0.0350947, 0.991461, -0.144169, -0.390495, 0.631103, -0.241888, -0.391542, 0.0217533, 0.86191, -0.799547, 1.42277, 0.293352, 1.13145, -0.0310428, 0.0452733, 1.34404, -0.100378, -0.192886, 1.16504, 0.374849, -0.117129, -0.624111, 0.329796, 0.249188, -0.182884, -0.0312088, -0.544095, 0.399533, 0.0818164, -0.0780306, 0.28998, -0.278315, 0.344763, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.38723, 1.271, 1.92291, 0.0253456, 0.502128, -2.91841, 2.64526, -1.62144, 0.678246, -1.33362, 0.424792, 1.39246, 2.54918, -0.755818, 1.0099, -0.374837, -5.9047, 1.12375, -3.57448, 2.26066, -0.885292, 1.65435, -2.61572, 2.0932, 0.0419542, 2.55687, 2.76596, 0.186732, -0.482596, -4.25907, 0.0150822, 0.0209851, 1.29019, -0.359635, 0.190642, -0.603027, -3.26072, -3.23847, 2.46591, 1.4672, 0.910967, 1.54768, -0.0402864, 0.134826, 2.65738, -0.0517223, -0.26113, 1.85742, 1.17421, 2.23716, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.655493, 0.445458, -0.422988, -0.292105, 2.30638, 1.2371, -2.39858, -0.419855, -2.71318, -0.633429, 1.27458, -0.940965, 1.18905, 1.29357, 0.445559, -0.199072, -0.177899, 2.5204, 0.56221, 1.53188, -0.613866, 1.49923, -0.200653, -1.34876, 0.00456059, 0.56372, -2.9412, -0.113656, -1.91067, 0.308905, 1.36548, -0.0328735, 0.283108, -4.01529, 1.18506, -2.49504, -5.21276, 1.11756, -4.4514, 0.883798, 1.56775, 2.14648, 0.110521, -0.417266, 3.1586, -0.129312, 3.27561, -2.10067, 0.367118, 0.426644, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-2.23724, 0.543162, 0.843637, -0.032575, 1.83887, 0.779218, 1.51903, -7.9273, 0.131821, 2.08961, -0.516238, 1.88273, 2.54339, -5.11533, 0.482263, -0.303142, 0.295609, -0.517995, -0.433847, 0.21154, -0.430724, 0.447972, -2.23769, 0.235361, -0.0217487, 0.284818, 0.168234, 1.52796, -1.32005, -2.77118, 1.16745, -0.0186772, 1.51506, -0.188002, 0.54587, -0.658473, 3.28567, -0.736715, 2.47724, -1.18034, 1.58093, 1.70755, 0.439402, 0.717422, 1.37858, -0.0808867, 0.0771412, -0.887606, 0.240315, -0.893711, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.267368, 0.28947, -0.258173, -0.797376, -0.259122, 0.14114, -0.121514, -0.000318498, 0.812034, -0.588448, -0.29466, 0.610965, 0.38496, -0.170285, -0.676263, 0.762128, 0.353777, 2.22369, -0.0322409, -0.226944, -0.229079, 0.783476, -0.0101583, -0.0185199, 0.0446102, 1.19068, -0.634973, -1.30879, 0.581259, 1.20563, -0.593305, 0.0239024, -1.8201, -0.642349, 0.273978, 0.942369, 0.547146, -0.411495, -1.13757, 0.419701, 0.944284, 0.490533, 0.475562, -0.555508, 0.181664, 0.0237662, 0.0687305, 0.124081, 0.553933, -0.288699, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0329496, 0.809265, 0.827246, -0.0671301, -0.0449885, -1.22518, 0.800064, -0.534359, 0.0381551, 0.97149, -0.203911, 0.365962, -0.0152773, 0.185984, -1.1222, 0.260958, 0.554939, 0.173455, 0.0779371, 0.38904, -0.0636949, 0.748504, -0.452006, 0.29522, 0.0445373, -0.0549651, -0.726263, -1.20538, 0.63028, 0.38107, 1.70161, 0.00174231, -0.894227, -0.370148, -0.0153594, 1.09949, 0.682222, 0.0923765, -0.342861, 0.185118, -0.292773, -0.112155, -0.217331, 0.255069, 0.0464553, -0.0644303, 0.506021, 0.198346, 0.100539, 0.336682, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.359026, 3.03077, -0.64848, -0.347829, 1.00429, 1.00305, 4.20383, 1.71743, -0.0696421, 1.07948, -0.858879, -0.300301, 1.83461, -0.55951, 1.55535, -0.934432, 2.17054, 2.19507, 2.18292, -0.466195, -0.854623, 1.64689, 1.96349, -0.891828, -0.0189875, 0.952012, 1.82763, 1.37374, -2.29463, 2.09625, -0.245162, 0.02067, 0.0266762, -1.71333, 0.425429, -0.180101, 2.17504, 1.3539, 2.83813, 0.507815, 1.99348, -0.168877, 1.18176, 1.68701, 1.37252, 0.101581, 1.45455, 2.45428, -0.0293481, -1.29376, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0774915, -0.22202, 0.373057, -0.0939577, 0.934903, -1.60024, -0.982471, 1.25885, -2.54481, -2.31817, 0.503114, -1.3114, 0.383581, -0.242537, 1.25266, 0.69171, -0.366223, -4.87193, 1.32558, 0.913772, 0.0771755, 0.198908, 0.464663, -3.46038, 0.0105432, -2.53343, 0.555874, 0.337992, 0.437599, -1.60213, 0.366469, -0.0498378, -0.440707, -0.0301094, -3.04651, -0.539424, -0.13915, -0.391468, -1.74479, -0.0820637, 0.0607172, -1.95756, -3.47016, -0.679213, -2.39672, -0.0314589, 0.135008, 0.208549, -1.04612, -1.44208, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-2.14675, -0.541549, -2.26338, 0.00436031, -3.22617, -2.22906, -7.12171, -2.8638, -0.285633, -0.247961, -2.78724, -6.34958, -4.54753, 1.44562, -1.87657, 0.141814, 0.731814, 0.294772, -3.55037, -0.51731, -0.0252016, -0.636969, 2.51739, -3.19349, 0.0396646, 0.163008, 1.06865, -0.984728, -0.747239, -4.29113, 0.125755, -0.0379626, 0.237032, -1.4165, -1.86696, -3.47835, -0.214742, 0.60225, -0.38448, -1.95945, 0.588261, -0.249998, 1.01758, 0.88593, -0.372092, 0.358901, 1.55862, -1.40185, 0.535137, -4.03109, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.160913, 1.27849, -0.0280269, 0.358101, -0.420971, 0.412101, -0.225524, -4.98567, -2.16403, -0.288775, 0.359511, 0.0759107, 0.651153, -0.2879, -0.222233, 0.530727, -0.554931, -0.0855162, 0.794144, 0.319906, -0.233815, 0.161241, 0.630754, -0.692676, -0.0294001, -1.08736, -0.0729056, 0.667163, -0.520744, 2.62491, 0.221136, 0.0146834, 0.459401, 0.114304, 0.506339, -0.111691, -0.64358, 0.298391, 2.6628, 0.247046, -0.142672, 0.263339, 0.148011, 0.073669, 0.770249, -0.171646, 1.13432, -0.402344, -0.150023, 0.015171, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.02518, 0.759199, -2.08316, -0.225742, -0.750502, 1.12668, -0.568938, -2.40774, 0.737416, -1.61092, -0.0597883, 0.0324486, -1.16206, -1.08033, 0.332197, 1.42211, 0.535032, 0.470574, -3.1722, 0.611371, 0.37061, 1.17148, 0.865793, -1.04859, -0.00593086, 1.36005, -1.09827, -0.840534, -1.11402, -2.27315, -1.27591, -0.00748577, -2.77128, -0.179796, 0.244028, -0.613463, 0.85335, -0.506345, -0.720013, -0.665418, 0.364218, 0.562498, -1.26057, 1.72711, -1.92768, 0.220393, -4.65765, 0.275112, -2.2873, 0.144849, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.176457, -0.878777, 0.0233963, 0.105074, 0.707566, 0.577454, -1.09516, -1.92286, 0.941759, -0.367011, -0.327305, 1.04361, 0.932083, -1.06601, -0.392456, -0.12814, 0.515061, 0.638424, -0.509552, -0.767583, -0.526475, 0.75137, 1.11228, 0.355257, -0.0305641, 1.24344, 1.86615, 0.381398, 0.473934, -0.240795, 0.116926, 0.0316261, -0.170235, -0.244388, 0.70425, -0.631783, -1.38271, 1.18656, -4.15814, -0.172747, 0.739976, 1.49729, 0.289159, 1.46502, 0.163957, 0.0673175, 1.50737, 0.0966916, 0.446826, 1.26616, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.135712, 3.52799, 0.448625, 1.78334, -0.0404309, -0.0944533, 3.73192, -1.41727, -0.179352, 0.447433, -0.711904, -1.5972, 0.271541, 0.801802, -0.77875, 0.264514, 1.96573, 1.7354, 2.03585, 3.25593, 3.48136, 0.278139, 2.85077, -0.998484, -0.0230738, -0.350192, 5.17138, 5.1956, -0.161241, 1.99444, 2.88541, -0.0406819, -3.13399, 1.29775, -4.4673, 1.68403, 3.68867, 3.19475, 2.51926, -0.731467, 0.201081, 1.95548, -2.48943, 3.17752, 5.56195, 0.0123266, 0.0826602, 1.57116, -2.43844, 0.171756, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0366867, 0.866858, 0.165377, 0.490849, -3.61188, -3.11261, 1.96568, -3.51106, -0.190127, 0.270693, 1.11378, 0.998672, -0.462769, 1.32043, 1.48564, -1.77742, -2.65385, -1.44098, 1.25778, 0.559579, -0.504375, 0.787266, 2.33781, -0.254839, -0.000505954, 0.411626, 1.27358, 2.31242, -0.681445, -3.32603, -2.28753, -0.00772615, 0.901009, -1.75115, 0.490145, 0.319684, -0.740953, 0.0249482, 1.7499, -5.53615, -0.952861, -0.0655655, 0.126702, -2.15327, 0.541483, -0.157136, 1.05441, 1.58983, 1.40619, 1.61679, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0370274, 0.0405823, 0.00151713, -0.049475, 0.00219693, 0.0053119, 0.0108099, -0.0498799, -0.0303679, -0.04599, 0.0372073, -0.00714463, -0.027867, -0.0033702, -0.0160213, -0.0107288, -0.00499879, 7.97636e-05, 0.00172752, 0.022729, -0.0251615, -0.0202521, 0.0379569, 0.0361558, 0.0367792, 0.0272449, 0.00402947, -0.0407093, -0.0510536, -0.0164527, 0.0310427, -0.0260749, -0.0492867, -0.0475647, 0.0294934, 0.00598336, -0.0399247, 0.0160117, 0.0355587, 0.00911987, -0.0096135, -0.0202596, 0.0321792, -0.00853592, -0.0300904, 0.00830905, -0.0401718, 0.0153694, -0.00101667, -0.0200949, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.314288, -0.340882, 0.261046, 0.271567, 0.25157, -0.411326, -0.205035, 0.798447, 0.757395, 0.181987, -0.0330307, 0.164815, -0.856791, 0.100749, -0.400685, -0.148407, 0.576838, -0.432148, 0.399234, 0.0201545, -0.235527, 0.459355, -0.0206116, -1.68694, -0.0070629, -0.139323, 0.342603, 0.461285, 0.807854, -0.242546, 0.188774, -0.0240165, -0.705079, -0.0916896, -1.50826, 0.164766, 0.625752, -0.414358, -0.139743, 0.470481, 0.435147, 0.160929, 0.258426, -0.561552, -0.43474, -0.0624924, -0.00865574, 0.0268366, -0.25303, -0.913345, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.55163, -6.32332, -4.09404, 1.21614, -5.94657, -1.70375, -5.30306, 0.290256, -3.75999, -9.35361, -3.06217, 0.424641, -0.824905, 1.29515, -5.08397, -0.0632907, -5.57037, -4.16377, -1.33433, -0.0567597, -0.437689, -3.42287, -0.572581, -2.58287, 0.0339693, -3.05675, -7.45695, -2.06033, -2.41566, -5.1438, -1.35155, 0.0113311, 1.95005, -3.18149, -4.33219, -5.12408, -4.22392, -3.55495, -2.42193, -2.85489, -3.37557, -7.55232, -4.26327, -7.33181, 0.563596, 1.31413, -6.96921, -7.42251, -5.05554, -7.13951, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.135604, -0.78906, -0.111045, 0.0227213, -0.175817, -0.444357, 0.0927926, -2.09199, -0.350047, -0.545062, 0.141682, -0.46485, -0.0385187, -0.393804, 0.285535, -0.219848, -0.144149, -0.392854, -0.298598, 0.265624, -0.00537352, 0.294292, -0.476799, -0.286725, -0.0232795, -0.419428, -0.0612943, -0.0678347, -0.544715, -0.326474, -0.236479, -0.0331689, -0.226754, 0.25173, 0.100086, -0.303366, -0.232649, 0.0213419, 0.544897, -0.418856, -0.0212616, -0.0480578, -0.204459, 0.0259782, 0.235916, 0.167868, -0.485105, 0.247009, -0.362805, -0.218963, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.737869, 0.537887, -0.352377, -0.129434, -0.00206808, 0.192632, -0.64722, -2.25467, 1.09839, -2.60001, 0.482525, -0.269279, 0.449888, -1.65101, 0.739112, 1.60016, 0.871859, 0.963076, 0.583931, 0.0939537, -0.156602, 0.169778, 1.76431, 0.184393, 0.0279623, 0.703003, -2.30136, 0.207671, -0.0440244, -1.22452, 0.669415, -0.0061195, 2.00101, -0.0448729, 0.38862, 0.412842, -1.86471, 0.18863, 1.80512, -1.71046, 0.431751, -0.0611827, 0.0473634, 0.318159, -2.37783, -0.26817, 1.29262, -0.174617, 1.22691, 1.01008, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.265063, -2.48032, -2.2283, -0.22963, -1.27714, -2.86419, -2.96993, -4.04264, -4.89932, -1.76758, -0.347298, 0.127142, -0.151864, 1.46501, -0.509529, -1.57959, -4.91978, 0.360854, 0.421176, -4.5504, 0.223311, 0.387193, -0.187962, 0.906363, -0.00901486, -0.949046, 0.723522, 2.01179, -1.62491, -1.63991, -5.72337, -0.00929142, 0.0686562, -6.64752, -2.61241, -4.13194, -1.32063, 0.878814, -1.87594, -1.58339, 0.469909, 1.28121, 0.341512, -4.70984, 2.57877, 0.209902, 1.31451, -0.148121, 0.293938, -1.18281, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.12858, 0.343644, -1.24073, 0.210842, -0.666943, 0.625382, -0.181555, -2.02497, 2.34424, -0.252739, -0.174964, 0.0818677, 1.89922, 0.403387, 0.774454, 1.11729, -3.89916, -0.840464, -1.19304, 1.29705, -0.323142, -3.28753, 0.262988, -3.55215, 0.00781857, 0.234475, 2.06238, 0.817649, 0.416317, -1.60454, -0.0143984, -0.0371448, 1.75756, 0.281113, 0.0372973, 0.71958, 0.438467, 0.667214, -1.16571, -2.43061, -0.304208, -1.30397, -0.493484, -3.39982, 0.303891, -0.204774, -1.46281, -0.410056, -2.4826, 1.5161, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.83009, 0.00966768, -0.495735, -0.074056, 1.67668, 1.47196, 3.355, -4.15314, 3.08369, -1.56714, -1.2866, -0.513246, 1.20975, -0.0356202, 0.330274, 1.64826, 0.15629, 3.68044, -0.00118929, 0.45456, -0.477109, -0.96744, -0.0784234, -1.01742, -0.0223647, 0.153522, 0.223055, 1.68709, -1.43834, 4.43383, -0.122397, -0.0328465, 0.998884, -0.285283, 1.18855, -0.268392, 4.67163, 1.65793, 2.35967, -3.53542, 0.843837, 1.63519, 0.785084, 1.99176, -1.72636, -0.555896, 1.43158, 1.01254, -0.236077, 1.64454, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3525, -0.693, 0.0906, 0.002674, -0.06256, -0.2788, 0.4736, -0.7017, 0.5454, 1.097, -0.0723, 0.3083, -0.0919, 0.375, -0.263, -0.4453, 0.5825, -0.918, -0.02612, 0.5293, -0.11395, -0.313, -0.7827, -0.1489, -0.002205, 0.1615, 0.752, 0.3113, 0.012024, 0.3179, -0.096, -0.00323, 0.3228, -0.2318, -0.1466, 0.275, -0.2332, 0.3762, 0.4358, -0.31, 0.0949, -0.9727, -0.2191, 0.414, 0.3552, 0.1338, -1.468, 0.3, -0.3914, 0.0378], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.169, 2.346, 0.2385, 0.1124, 2.219, 0.8477, 0.789, -4.234, -1.451, -1.056, -3.117, 1.4795, -0.10114, 1.154, 0.5464, -0.356, -0.15, 0.5454, 1.509, -1.58, -0.04474, -0.0615, -0.010574, -0.6133, 0.00879, -0.05777, 2.79, 2.787, -0.8716, 1.756, 1.583, -0.0374, -0.818, 1.726, 0.682, 0.02075, 1.598, 0.645, 3.61, -0.978, -1.436, 1.846, 0.05136, 1.983, -1.244, -0.2844, 1.072, -0.1613, -0.7163, 0.5312], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.01211, -1.418, 0.4336, 0.0394, -0.7295, -0.6943, -4.797, -0.8384, 0.0738, 0.4993, -0.5337, 0.2683, -1.022, 0.1103, 0.1177, -0.2688, -1.326, -0.04178, 0.4055, 0.01588, -0.1465, 0.1354, -1.4, -2.584, -0.03775, 0.2646, -0.833, -0.2935, 0.2927, 1.227, 0.3613, -0.03105, 0.153, -0.3962, 0.313, -3.762, 1.003, 0.688, -1.671, -4.457, -0.1648, 0.17, -0.1165, -0.711, 0.645, -0.0367, -0.699, 0.6206, 0.2369, -1.337], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3252, 0.894, -1.208, 0.1807, -2.121, -1.432, 0.33, 1.143, -0.873, 0.7544, -0.751, 0.0623, -1.33, 0.9414, -0.143, 0.01804, -0.8506, 0.1277, -1.929, 0.1337, 0.0927, 0.425, -0.1027, -1.906, -0.00759, -0.4163, -0.1644, -0.7563, -0.6865, -4.19, -0.3875, 0.04584, -1.115, -0.128, 0.2908, 0.7188, 1.376, 0.498, -2.6, -0.1592, -0.1709, -0.7, 0.168, 0.1267, 0.02097, -0.17, 0.7983, 0.2056, 0.831, -1.692], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1753, -2.033, 0.576, 0.5073, -0.1812, 0.12317, -1.591, -1.973, 1.354, -0.505, -0.4458, 1.087, -1.918, 0.296, 0.02635, 0.321, 1.671, -1.031, -0.6206, 1.177, -0.348, -0.6045, -1.426, 0.0921, 0.002918, -0.4587, -1.399, 0.2089, 0.424, -0.6973, 0.7104, 0.0433, 2.156, -0.813, 0.4758, 0.476, -1.574, -1.443, 1.197, -2.5, 0.4426, -1.536, 0.573, 1.819, -0.9688, -0.01752, -0.64, -0.2113, 0.606, -0.934], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.116, -6.83, -5.758, 0.3298, -6.95, -0.433, -0.38, -1.412, -1.119, -2.123, 1.388, 0.1236, 0.7314, -0.5283, -2.096, -2.27, -5.125, -3.588, -1.466, 1.094, 0.2286, -2.064, -7.355, -2.857, 0.04755, -1.398, -2.89, -0.5464, -1.301, -6.137, -8.78, 0.0414, 0.1759, -3.9, 0.8027, -2.883, -3.268, 0.04416, 2.393, -1.725, -2.203, -2.633, -2.566, -2.002, -1.547, 0.687, -3.422, -0.1234, -3.89, 0.3433], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.523, -0.3906, 0.55, 0.2842, 0.892, 0.5474, 0.2139, -1.012, 0.529, -0.1307, -0.315, 0.3823, -0.883, 0.876, 0.9023, -0.96, 0.9526, 0.4097, -0.536, 0.567, -0.1567, -1.183, -0.5884, 0.791, 0.006172, -1.041, 0.4363, 0.10016, 0.2563, -0.2542, 1.099, 0.0454, 1.476, -0.585, 0.1329, 0.4846, -0.1299, 0.304, 1.125, -3.988, 0.726, -0.7695, -0.03226, 2.355, 0.2104, -0.235, -0.849, -0.534, 0.512, -0.03427], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2462, 0.4822, -0.2329, 0.1991, -0.231, -0.7124, -0.762, -0.427, -0.4614, 0.874, 0.815, 0.5156, -0.6504, -0.1659, 0.2947, 0.64, -0.429, 0.5195, 1.279, -0.975, -0.0885, 0.645, -2.115, -0.8125, -0.02068, 0.6367, 0.1597, -0.098, -0.9287, 0.155, 0.298, -0.0407, 0.4722, -0.4812, 0.534, -0.1626, -1.41, 0.2361, 0.781, -0.406, -0.64, -0.2014, -0.1515, -0.2532, 0.8726, -0.10895, 0.691, -2.166, -0.4253, 0.5146], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.12054, 1.125, -0.295, 0.1101, 0.685, 0.3105, -0.3062, -1.098, 0.682, -0.614, 0.1144, -0.03323, -0.685, 0.747, 1.049, 0.0485, 0.0848, -0.3691, -0.2937, 0.723, -0.2644, -0.02255, 0.4248, -1.008, -0.03098, 0.5483, 0.6323, -0.8535, 0.0652, 1.207, 0.2712, 0.02176, 0.929, -0.6123, 0.4607, 0.04483, -1.586, 0.2002, -0.1307, 0.3738, 0.4707, -0.04712, 0.168, 0.5977, 1.326, -0.2788, 0.5786, 0.02202, 0.8745, 0.992], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.894, 1.765, -0.24, 0.565, -0.02849, 0.1978, -0.256, -2.914, -1.155, 1.2, 0.3777, 0.4275, 0.2554, 0.3433, -0.2664, 0.4934, 0.412, 0.3662, 0.2607, 0.973, -0.541, 1.703, 0.1351, 0.7534, 0.03604, -1.723, 0.8276, 0.9453, 0.209, 1.378, 0.01605, 0.0495, 2.033, -0.2715, 0.3818, -0.322, 2.398, -0.4163, 1.511, -0.7856, 0.2983, -0.922, 0.3577, -0.5195, -0.7275, -0.3767, 0.3762, -0.837, 0.1619, -5.426], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.6177, -0.484, -0.01813, -0.1427, 0.6, -0.866, -2.494, 0.484, -0.2634, -1.772, 0.2678, -0.8545, -0.2776, -0.6743, -1.327, 0.00885, -0.881, -1.377, -0.726, -1.241, 0.3098, -0.83, 0.235, -0.5107, -0.03387, -0.5146, 0.1067, -1.261, -0.623, -0.161, -0.1018, 0.012825, -0.2603, 0.555, 1.49, -2.31, -1.858, 0.03336, 1.153, -0.0585, 0.1301, -0.8423, 0.9707, 0.913, -1.602, -0.0866, 1.207, -0.605, -1.441, -0.02946], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.05823, 0.2384, -0.2108, 0.1494, -0.4065, 0.399, -0.409, -1.767, 0.0542, 0.1202, 0.2646, -0.1252, 0.2316, -0.1157, -0.2345, 0.09735, 0.08453, -0.06006, -0.1273, -0.3503, 0.004044, -0.1277, 0.501, -0.2278, -0.005955, -0.1785, -0.137, 0.346, -0.2834, -0.7954, -0.421, -0.03616, 0.03934, 0.1407, -0.2715, 0.0754, -0.2092, -0.1956, -0.312, -0.1378, -0.1475, -0.1641, 0.02931, -0.1615, -0.313, 0.02794, -0.10095, 0.2693, 0.11597, 0.3674], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.18, -0.2246, 0.1674, 0.13, 0.635, -0.3884, 0.2651, -0.9546, 0.851, 2.162, 0.1344, 0.02367, -1.104, -0.4236, 0.0484, 0.01243, 1.361, 0.4612, -0.126, 0.335, -0.2184, 0.136, 0.3862, 0.333, -0.02287, -0.1571, -0.7153, 0.6416, 0.4688, 1.448, 0.2133, -0.01773, -0.441, -0.076, -1.152, 0.4082, 0.3298, 0.3372, 0.2178, -0.1592, 0.54, 0.427, 0.01912, -0.394, 0.8096, 0.04672, 0.02899, 0.5835, -0.2072, -0.1733], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.3643, 2.146, -0.4827, -0.3347, 2.273, -1.251, 0.3022, -11.39, -4.723, 0.3743, 2.469, -5.54, 3.21, -2.648, 0.5156, 0.7383, -4.766, 1.349, -1.471, 0.4438, -0.576, -0.345, 0.863, -0.8545, -0.04755, -1.281, -0.2805, 1.221, -0.804, 2.627, 1.085, -0.03427, 2.754, -0.296, -0.5063, 1.349, 2.145, 1.264, 4.023, -4.28, 1.302, 1.829, 0.1974, -0.7285, 1.97, -0.3599, 3.295, -3.227, 1.999, -1.087], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5913, -1.269, 1.269, -0.837, 1.868, 0.711, 2.734, -0.329, -0.3218, 1.964, -0.1354, 0.3992, -2.203, -1.008, -1.17, -0.1562, 0.6025, 0.0736, 2.855, -0.3496, -0.689, 0.4805, -1.191, -1.899, 0.008865, 2.424, 1.323, 0.647, 1.97, 1.533, 1.105, 0.04605, 3.826, 0.1099, -0.3167, 1.987, 1.848, -0.2544, 1.467, 0.6436, 0.982, 1.381, 0.2438, -1.213, 0.6714, 0.1101, 0.53, 0.3867, 0.759, 0.456], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.066, -1.433, 1.861, 0.0766, 0.943, 0.439, 1.434, -2.58, 0.4773, 0.0832, 0.1825, 0.441, -0.5127, 0.4287, 0.849, 1.104, 1.114, -0.42, 0.7417, 1.035, -0.834, -0.705, 1.895, 1.344, 0.04456, 1.643, 1.384, 0.24, 0.876, 0.436, -0.3896, 0.03384, 1.836, 0.31, -1.421, 0.4312, -1.184, -0.811, 1.867, -0.865, 0.789, -0.812, -0.9307, 0.9814, 0.1447, 0.3796, -1.867, 1.337, 0.3923, 2.115], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.193, 2.059, 1.285, 0.4443, -1.966, 1.665, -5.617, -4.094, 1.542, 2.734, -0.056, 2.193, 0.8247, 0.7603, 0.541, 0.5117, -0.264, -0.08856, 0.2115, -0.5005, -0.6123, 1.961, -1.523, 3.133, 0.02151, 1.669, 2.861, 0.5146, -1.511, 3.695, 2.082, -0.02315, -0.5933, 0.09894, -0.323, 0.8716, 3.816, 0.4534, 2.252, 1.797, 0.8813, -1.614, -1.262, 0.01359, 1.091, -0.4023, 1.931, 0.638, 0.2559, 0.7954], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0651, -0.5884, -1.723, 0.02492, 0.2527, -0.6616, -0.579, -8.125, -3.158, 2.877, -1.326, 0.4019, -0.8525, -0.09454, -0.05362, 0.00742, -0.395, -1.883, 0.06433, -0.539, 0.2632, 0.4646, 0.3472, 0.3577, -0.0279, 0.3926, -1.815, 0.8574, -0.5107, 0.3247, -0.9443, -0.04846, -0.9375, 0.3345, 0.01153, -0.5566, 0.3958, -1.873, -1.021, -1.256, -0.5664, 0.763, -1.1, -0.1492, -0.4968, -0.302, -1.527, 0.401, -0.276, 0.819], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.006557, 2.102, 1.225, 0.1824, -1.229, -1.613, -1.65, -1.997, 0.2686, 0.5327, 0.2888, -0.4268, -0.6807, -0.9316, 0.2219, -0.8213, 2.363, -2.994, 1.117, -1.217, -0.523, 0.203, -13.61, 1.825, 0.02133, 1.164, -0.3296, -0.1616, 1.281, 2.71, 0.8643, -0.0212, 0.674, -1.363, 1.414, 0.823, -3.316, -0.11365, 0.275, 0.2095, -3.547, -0.495, 0.7173, 0.987, 2.275, -0.221, 0.0531, 1.276, -0.273, 2.65], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.345, -0.1528, 0.2068, 0.3772, -0.345, -0.685, -1.289, 0.814, 0.2883, -0.4268, -0.2913, 0.2351, -3.227, -0.551, -0.5933, 0.558, -0.1294, -0.905, 0.601, -0.4448, -0.2812, 0.338, -0.5405, -0.925, -0.004314, -0.10156, -0.02307, -0.4216, 1.29, -0.7036, -0.0978, -0.042, -1.312, -0.286, -1.852, 0.09296, -0.1776, -1.05, -1.886, 0.434, 0.583, -0.965, 0.231, -1.58, -2.662, -0.0198, 0.1483, 0.000842, -0.433, -2.062], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.12286, -4.402, -0.1173, -0.636, -0.833, 1.395, -0.01811, 0.4846, -1.092, -0.4492, -0.11255, 0.2279, -3.59, 0.3083, -0.496, 0.625, -0.007107, -5.375, -2.04, -5.383, -0.09485, -1.809, -0.6255, -4.344, 0.04837, -1.007, 1.302, -2.152, -0.4373, -1.164, 2.309, 0.007442, 1.269, -1.039, -0.559, -1.671, -2.959, -1.784, 0.4392, -0.7065, 1.522, -0.819, 0.05, -0.7715, -2.564, 0.475, 0.2028, -0.749, 0.8916, -2.816], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.32, -1.178, 0.1722, -0.3518, -0.0747, -1.714, 0.9717, -2.453, 0.1835, -0.7437, 0.3928, 0.2546, -0.03305, -1.563, -0.5967, 0.356, 1.501, 0.8755, 0.0781, 1.55, -0.10754, -0.722, 1.437, 1.255, 0.01646, -0.2358, 0.183, -0.7397, 0.1865, 1.365, 2.96e-05, -0.01726, 2.621, -0.3354, 0.2852, 0.3567, -0.1533, 0.8, 1.115, -1.451, -0.212, 0.4077, 0.9985, 0.555, 1.287, -0.067, 0.2296, -0.555, 0.4536, 0.7114], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3188, -0.5938, 0.5215, -0.284, 0.563, 0.0004337, 0.7896, 0.03992, 0.0802, 0.2986, -0.01533, 0.3162, -0.553, -0.03186, -0.35, 0.0892, 0.1394, -0.04712, 0.727, -0.02701, -0.364, 0.4082, -0.4348, -0.533, -0.02138, 0.7544, 0.3196, -0.1488, 0.7593, 0.4016, 0.3958, 0.0327, 1.113, -0.048, -0.2345, 0.7607, 0.804, -0.257, 0.3352, 0.4177, 0.311, 0.3262, 0.0985, -0.6045, 0.01299, -0.009, 0.0545, -0.004826, 0.3494, 0.0904], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.998, 2.152, -2.955, -0.1318, 0.8403, 3.695, 0.9067, -6.277, 3.654, 1.828, -2.33, 1.015, 2.477, 0.3557, 1.566, -0.0866, 1.268, 1.954, 2.266, 2.031, -0.971, 3.975, 4.97, 0.811, -0.0105, -0.82, 2.238, 2.254, -2.857, 3.082, -1.902, -0.011696, 2.678, -3.736, 0.765, 0.711, 1.153, 0.547, -1.214, 1.659, 1.863, -2.045, 0.5303, 0.6294, 2.154, -0.5874, -1.601, -1.754, 0.9844, 3.33], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5913, -1.245, 0.7695, 0.2043, -2.258, -0.00917, -0.2827, -2.076, 0.1664, 1.2705, 0.2798, 0.766, -0.4487, 1.491, 1.122, 0.1927, -1.323, -1.435, -1.807, -0.8315, -0.4019, -0.4912, 0.3582, -0.169, -0.04684, 1.267, -2.646, 1.276, 0.2434, -0.491, -2.016, -0.04953, 0.3313, -0.007553, -0.1055, -0.06433, -0.7314, 0.2233, 1.41, 0.151, -0.4824, 0.7886, -1.939, -2.459, 1.32, -0.04636, 0.1874, 0.5444, 1.451, 0.535], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0992, -0.4731, -0.2764, -0.458, -0.222, 0.669, 0.0994, -0.841, -0.358, 0.1888, -0.1036, -0.11066, 0.5864, -0.3772, 0.539, -0.3132, -0.03564, 0.5366, -0.369, -0.013824, -0.10443, -0.001294, -1.643, 1.107, 0.0344, 0.52, 0.1915, 0.804, 0.313, 0.84, -0.131, -0.0361, -0.484, 0.06525, -0.4854, 0.1514, -0.4185, 0.7134, 0.03397, -0.07556, 0.2563, 0.1504, -0.06256, 0.2825, 0.698, 0.1863, 0.338, 0.08453, 0.5693, -0.2751], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.065, 0.02586, 0.08466, -0.1173, -0.0301, -0.119, 0.08655, 0.1526, -0.2299, 0.01154, -0.04034, -0.1532, 0.01567, 0.03525, 0.1715, -0.10236, -0.1438, 0.1241, -0.2375, -0.06775, 0.01874, 0.05557, 0.1366, -0.04013, -0.0383, -0.04477, -0.1565, -0.0434, 0.02556, -0.03177, -0.01729, -0.00466, -0.1267, 0.05505, -0.0544, 0.03096, 0.2346, 0.004913, -0.1532, 0.0649, -0.1399, -0.01596, 0.014755, -0.0819, 0.262, -0.03069, -0.02057, -0.1329, -0.00406, -0.02245], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1505, 0.1186, -0.8623, 0.1655, -4.695, -1.188, -0.848, -1.377, -0.0675, 0.2695, 0.1493, -4.234, -2.95, 0.5864, -1.14, 0.6436, -1.745, 1.487, 1.254, -1.462, -0.0887, 1.29, 0.1362, 0.2576, -0.01374, -0.05798, 0.531, -0.296, 0.171, -1.925, -0.8813, -0.002579, -1.063, -0.541, -1.223, -1.15, 0.658, -0.1539, -1.056, -1.3, 0.0656, 0.253, -0.6636, 0.0864, 0.4114, 0.1378, -2.418, 0.691, 0.2157, -1.431], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5884, -0.428, -0.0427, 0.002235, 0.2532, 0.04044, 0.0184, -0.4902, -0.01189, 0.2035, 0.2267, 0.11053, -0.8726, 0.807, -0.05148, 0.1879, -0.2852, 0.0351, 0.9917, -0.1442, -0.3904, 0.631, -0.242, -0.3916, 0.02176, 0.862, -0.7993, 1.423, 0.2935, 1.132, -0.03104, 0.0453, 1.344, -0.1004, -0.1929, 1.165, 0.3748, -0.1171, -0.624, 0.3298, 0.2491, -0.1829, -0.0312, -0.544, 0.3994, 0.0818, -0.078, 0.29, -0.2783, 0.3447], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.388, 1.271, 1.923, 0.02534, 0.502, -2.918, 2.645, -1.621, 0.678, -1.334, 0.4248, 1.393, 2.549, -0.756, 1.01, -0.3748, -5.906, 1.124, -3.574, 2.26, -0.8853, 1.654, -2.615, 2.094, 0.04196, 2.557, 2.766, 0.1868, -0.4827, -4.258, 0.01508, 0.02098, 1.29, -0.3596, 0.1907, -0.603, -3.26, -3.238, 2.467, 1.467, 0.911, 1.548, -0.04028, 0.1348, 2.658, -0.05173, -0.2612, 1.857, 1.174, 2.236], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.6553, 0.4456, -0.423, -0.292, 2.307, 1.237, -2.398, -0.42, -2.713, -0.6333, 1.274, -0.941, 1.189, 1.294, 0.4456, -0.1991, -0.1779, 2.52, 0.562, 1.532, -0.614, 1.499, -0.2007, -1.349, 0.004562, 0.5635, -2.941, -0.11365, -1.911, 0.3088, 1.365, -0.03287, 0.2832, -4.016, 1.186, -2.494, -5.21, 1.117, -4.453, 0.884, 1.567, 2.146, 0.11053, -0.4172, 3.158, -0.1293, 3.275, -2.102, 0.3672, 0.4268], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -2.236, 0.543, 0.8438, -0.03256, 1.839, 0.7793, 1.519, -7.926, 0.1318, 2.09, -0.516, 1.883, 2.543, -5.117, 0.4822, -0.3032, 0.2957, -0.518, -0.4338, 0.2115, -0.4307, 0.448, -2.238, 0.2354, -0.02174, 0.285, 0.1682, 1.528, -1.32, -2.771, 1.167, -0.01868, 1.515, -0.188, 0.546, -0.6587, 3.285, -0.737, 2.477, -1.181, 1.581, 1.708, 0.4395, 0.7173, 1.379, -0.0809, 0.07715, -0.8877, 0.2404, -0.8936], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2673, 0.2896, -0.258, -0.7974, -0.259, 0.1411, -0.1215, -0.0003185, 0.812, -0.5884, -0.2947, 0.611, 0.385, -0.1703, -0.6763, 0.762, 0.3538, 2.225, -0.03223, -0.2269, -0.2291, 0.7837, -0.010155, -0.01852, 0.04462, 1.19, -0.635, -1.309, 0.581, 1.206, -0.5933, 0.0239, -1.82, -0.6426, 0.274, 0.9424, 0.5474, -0.4114, -1.138, 0.4197, 0.9443, 0.4905, 0.4756, -0.5557, 0.1816, 0.02377, 0.0687, 0.1241, 0.5537, -0.2888], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.03296, 0.809, 0.827, -0.06714, -0.04498, -1.226, 0.8003, -0.534, 0.03815, 0.9717, -0.2039, 0.366, -0.015274, 0.186, -1.122, 0.261, 0.555, 0.1735, 0.07794, 0.3892, -0.0637, 0.7485, -0.452, 0.2952, 0.04453, -0.05496, -0.726, -1.205, 0.6304, 0.381, 1.701, 0.001742, -0.894, -0.37, -0.01536, 1.1, 0.682, 0.09235, -0.3428, 0.185, -0.2927, -0.1122, -0.2173, 0.2551, 0.04645, -0.06445, 0.506, 0.1984, 0.1005, 0.3367], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.3591, 3.031, -0.6484, -0.348, 1.004, 1.003, 4.203, 1.718, -0.06964, 1.079, -0.859, -0.3003, 1.835, -0.5596, 1.556, -0.9346, 2.17, 2.195, 2.184, -0.4663, -0.8545, 1.646, 1.964, -0.8916, -0.01898, 0.952, 1.827, 1.374, -2.295, 2.096, -0.2451, 0.02068, 0.02667, -1.713, 0.4255, -0.18, 2.176, 1.354, 2.838, 0.508, 1.993, -0.1688, 1.182, 1.687, 1.372, 0.10156, 1.454, 2.455, -0.02934, -1.294], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0775, -0.222, 0.373, -0.09393, 0.935, -1.601, -0.9824, 1.259, -2.545, -2.318, 0.503, -1.312, 0.3835, -0.2426, 1.253, 0.692, -0.3662, -4.87, 1.325, 0.9136, 0.07715, 0.1989, 0.4646, -3.46, 0.010544, -2.533, 0.5557, 0.338, 0.4375, -1.603, 0.3665, -0.04984, -0.4407, -0.0301, -3.047, -0.5396, -0.1392, -0.3914, -1.745, -0.0821, 0.06073, -1.958, -3.47, -0.679, -2.396, -0.03146, 0.135, 0.2085, -1.046, -1.442], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -2.146, -0.5415, -2.264, 0.00436, -3.227, -2.229, -7.12, -2.863, -0.2856, -0.2479, -2.787, -6.348, -4.547, 1.445, -1.877, 0.1418, 0.732, 0.2947, -3.55, -0.517, -0.0252, -0.637, 2.518, -3.193, 0.03967, 0.163, 1.068, -0.985, -0.747, -4.293, 0.1257, -0.03796, 0.237, -1.416, -1.867, -3.479, -0.2147, 0.602, -0.3845, -1.959, 0.5884, -0.25, 1.018, 0.8857, -0.372, 0.359, 1.559, -1.401, 0.535, -4.03], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1609, 1.278, -0.02803, 0.3582, -0.421, 0.412, -0.2255, -4.984, -2.164, -0.2888, 0.3596, 0.0759, 0.6514, -0.2878, -0.2223, 0.531, -0.5547, -0.0855, 0.794, 0.3198, -0.2338, 0.1613, 0.631, -0.693, -0.0294, -1.087, -0.0729, 0.667, -0.5205, 2.625, 0.2212, 0.01469, 0.4595, 0.1143, 0.5063, -0.1117, -0.6436, 0.2983, 2.662, 0.2471, -0.1427, 0.2634, 0.1481, 0.07367, 0.77, -0.1716, 1.135, -0.4023, -0.15, 0.01517], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.025, 0.7593, -2.084, -0.2257, -0.7505, 1.127, -0.569, -2.408, 0.7373, -1.611, -0.05978, 0.03244, -1.162, -1.08, 0.3323, 1.422, 0.535, 0.4705, -3.172, 0.6113, 0.3706, 1.172, 0.8657, -1.049, -0.00593, 1.36, -1.099, -0.8403, -1.114, -2.273, -1.276, -0.007484, -2.771, -0.1798, 0.244, -0.6133, 0.8535, -0.5063, -0.72, -0.6655, 0.3643, 0.5625, -1.261, 1.728, -1.928, 0.2203, -4.656, 0.2751, -2.287, 0.1449], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1765, -0.879, 0.02339, 0.1051, 0.7075, 0.5776, -1.095, -1.923, 0.942, -0.367, -0.3274, 1.044, 0.932, -1.066, -0.3923, -0.1282, 0.515, 0.638, -0.51, -0.7676, -0.5264, 0.7515, 1.112, 0.3552, -0.03056, 1.243, 1.866, 0.3813, 0.4739, -0.2408, 0.11694, 0.03162, -0.1703, -0.2444, 0.704, -0.632, -1.383, 1.187, -4.156, -0.1727, 0.7397, 1.497, 0.289, 1.465, 0.164, 0.0673, 1.508, 0.0967, 0.4468, 1.267], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1357, 3.527, 0.4487, 1.783, -0.04044, -0.0945, 3.732, -1.417, -0.1793, 0.4475, -0.712, -1.598, 0.2715, 0.802, -0.779, 0.2644, 1.966, 1.735, 2.035, 3.256, 3.48, 0.278, 2.852, -0.9985, -0.02307, -0.35, 5.17, 5.195, -0.1613, 1.994, 2.885, -0.04068, -3.135, 1.298, -4.47, 1.684, 3.69, 3.195, 2.52, -0.7314, 0.201, 1.955, -2.49, 3.178, 5.562, 0.01233, 0.08264, 1.571, -2.438, 0.1718], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.03668, 0.8667, 0.1654, 0.491, -3.611, -3.113, 1.966, -3.512, -0.1902, 0.2708, 1.114, 0.9985, -0.463, 1.32, 1.485, -1.777, -2.654, -1.441, 1.258, 0.5596, -0.5044, 0.787, 2.338, -0.255, -0.000506, 0.4116, 1.273, 2.312, -0.6816, -3.326, -2.287, -0.007725, 0.901, -1.751, 0.4902, 0.3196, -0.7407, 0.02495, 1.75, -5.535, -0.9526, -0.06555, 0.1267, -2.152, 0.5415, -0.1571, 1.055, 1.59, 1.406, 1.617], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.03702, 0.0406, 0.001517, -0.04947, 0.002197, 0.00531, 0.01081, -0.04987, -0.03036, -0.046, 0.0372, -0.007145, -0.02786, -0.00337, -0.01602, -0.01073, -0.004997, 7.975e-05, 0.001727, 0.02274, -0.02516, -0.02025, 0.03796, 0.03616, 0.03677, 0.02725, 0.00403, -0.0407, -0.05106, -0.01645, 0.03104, -0.02608, -0.0493, -0.04758, 0.0295, 0.005985, -0.03992, 0.016, 0.03555, 0.00912, -0.00961, -0.02026, 0.03217, -0.00854, -0.03009, 0.00831, -0.04016, 0.015366, -0.001017, -0.0201], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3142, -0.3408, 0.261, 0.2715, 0.2515, -0.4114, -0.2051, 0.7983, 0.7573, 0.182, -0.03302, 0.1648, -0.857, 0.10077, -0.4006, -0.1484, 0.5767, -0.4321, 0.3992, 0.02016, -0.2355, 0.4595, -0.02061, -1.687, -0.00706, -0.1393, 0.3425, 0.4612, 0.8076, -0.2426, 0.1887, -0.02402, -0.705, -0.0917, -1.508, 0.1648, 0.626, -0.4143, -0.1398, 0.4705, 0.435, 0.1609, 0.2585, -0.5615, -0.4348, -0.0625, -0.00866, 0.02684, -0.253, -0.9136], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.552, -6.324, -4.094, 1.216, -5.945, -1.704, -5.305, 0.2903, -3.76, -9.35, -3.062, 0.4246, -0.8247, 1.295, -5.082, -0.0633, -5.57, -4.164, -1.334, -0.05676, -0.4377, -3.424, -0.5728, -2.582, 0.03397, -3.057, -7.457, -2.06, -2.416, -5.145, -1.352, 0.01133, 1.95, -3.182, -4.332, -5.125, -4.223, -3.555, -2.422, -2.855, -3.375, -7.55, -4.26, -7.332, 0.5635, 1.314, -6.97, -7.42, -5.055, -7.14], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1356, -0.789, -0.111, 0.02272, -0.1758, -0.4443, 0.0928, -2.092, -0.35, -0.545, 0.1417, -0.4648, -0.0385, -0.3938, 0.2856, -0.2198, -0.1442, -0.3928, -0.2986, 0.2656, -0.005375, 0.2942, -0.4768, -0.2866, -0.02328, -0.4194, -0.06128, -0.0678, -0.545, -0.3264, -0.2365, -0.03317, -0.2268, 0.2517, 0.1001, -0.3035, -0.2327, 0.02135, 0.545, -0.419, -0.02126, -0.04807, -0.2045, 0.02599, 0.236, 0.1678, -0.485, 0.247, -0.3628, -0.219], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.738, 0.538, -0.3523, -0.1294, -0.002068, 0.1926, -0.6475, -2.254, 1.099, -2.6, 0.4824, -0.2693, 0.45, -1.651, 0.7393, 1.601, 0.872, 0.963, 0.584, 0.09393, -0.1566, 0.1698, 1.765, 0.1844, 0.02797, 0.703, -2.3, 0.2076, -0.04404, -1.225, 0.6694, -0.00612, 2.002, -0.04486, 0.3887, 0.4128, -1.864, 0.1886, 1.805, -1.711, 0.4316, -0.0612, 0.04736, 0.318, -2.377, -0.268, 1.293, -0.1746, 1.227, 1.01], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2651, -2.48, -2.229, -0.2296, -1.277, -2.863, -2.97, -4.043, -4.9, -1.768, -0.3474, 0.1272, -0.1519, 1.465, -0.51, -1.58, -4.918, 0.3608, 0.4211, -4.55, 0.2233, 0.3872, -0.188, 0.9062, -0.00902, -0.949, 0.7236, 2.012, -1.625, -1.64, -5.723, -0.00929, 0.06866, -6.65, -2.613, -4.133, -1.32, 0.879, -1.876, -1.583, 0.47, 1.281, 0.3416, -4.71, 2.578, 0.21, 1.314, -0.1481, 0.294, -1.183], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.129, 0.3438, -1.241, 0.2108, -0.667, 0.6255, -0.1815, -2.025, 2.344, -0.2527, -0.1749, 0.08185, 1.899, 0.4033, 0.7744, 1.117, -3.898, -0.8403, -1.193, 1.297, -0.3232, -3.287, 0.263, -3.553, 0.00782, 0.2345, 2.062, 0.818, 0.4163, -1.6045, -0.0144, -0.03714, 1.758, 0.281, 0.0373, 0.7197, 0.4385, 0.667, -1.166, -2.43, -0.3042, -1.304, -0.4934, -3.4, 0.304, -0.2048, -1.463, -0.4102, -2.482, 1.516], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.83, 0.00967, -0.4958, -0.07404, 1.677, 1.472, 3.355, -4.152, 3.084, -1.567, -1.286, -0.513, 1.21, -0.0356, 0.3303, 1.648, 0.1562, 3.68, -0.001189, 0.4546, -0.477, -0.9673, -0.0784, -1.018, -0.02237, 0.1536, 0.223, 1.6875, -1.438, 4.434, -0.1224, -0.03284, 0.999, -0.2854, 1.188, -0.2683, 4.67, 1.658, 2.36, -3.535, 0.8438, 1.635, 0.785, 1.992, -1.727, -0.5557, 1.432, 1.013, -0.2361, 1.645]]
[1.56286, 0.453656, -1.8719, -0.653236, 2.4536, -1.11464, 1.89553, -0.366652, -0.0771248, 1.63704, -2.17891, 0.326001, 0.632754, 0.237528, 3.05794, 3.81093, -0.223132, -0.453899, 0.735275, 4.12156, 0.878412, -0.274475, 3.16481, -1.42294, 0.278301, 0.115524, 1.46452, 0.248533, 2.81845, -0.0235788, -0.945319, -0.881345, 3.18538, 1.60383, -0.0496437, 1.32756, 0.736424, 0.194456, -2.62945, -2.53943, 1.39613, 0.067194, -0.0466822, 6.34015, 1.75339, 0.670112, 3.29307, -0.530576, -0.394107, 0.0525053, 1.5625, 0.4536, -1.872, -0.6533, 2.453, -1.114, 1.8955, -0.3667, -0.07715, 1.637, -2.18, 0.326, 0.633, 0.2375, 3.059, 3.81, -0.2231, -0.4539, 0.7354, 4.12, 0.8784, -0.2744, 3.164, -1.423, 0.2783, 0.11554, 1.465, 0.2485, 2.818, -0.02357, -0.9453, -0.8813, 3.186, 1.604, -0.04965, 1.327, 0.7363, 0.1945, -2.629, -2.54, 1.396, 0.0672, -0.0467, 6.34, 1.753, 0.67, 3.293, -0.531, -0.394, 0.0525]
ReLU
[[0.164601, 0.0471483, -0.0396794, -0.170876, 0.00539959, 0.0164269, -0.0785648, -0.0586394, 0.0896649, -0.0140407, 0.0276549, -0.0525102, -0.0450957, -0.00785636, -0.0146786, -0.0175248, 0.0523102, 0.00421966, 0.0524769, -0.0758554, 0.00535716, 0.0174001, -0.110439, 0.0016707, -0.100488, -0.236836, -0.982802, 0.0619518, 0.159425, 0.0184684, 0.030256, 0.0335688, 0.0363162, -0.054322, -0.015603, -0.689999, 0.0250027, 0.0369209, -0.0844365, 0.0332644, -0.0107162, -0.0782045, 0.029065, -0.0996466, -0.0731404, 0.0203649, -0.0866343, -0.0667991, -0.0661525, -0.0143776, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.144424, 0.00926271, 0.0749902, -0.0242392, 0.0052664, -0.00550328, -0.0474639, 0.0150293, 0.00650393, -0.0112564, -0.0740546, -0.127712, 0.0235222, 0.00382982, 0.00496781, 0.0105591, -0.00403526, 0.0543518, -0.00241404, 0.00919775, 0.0035433, -0.00967721, -0.0171829, 0.00251773, -0.0203809, -0.0276693, -0.232821, -0.00671105, 0.00652329, -0.0319526, -0.01797, -0.00388562, -0.0296986, 0.0259014, -0.00444589, -0.0341316, -0.02227, -0.0932641, -0.0324133, 0.0343274, -0.00426551, -0.0046341, -0.00999258, -0.0247557, -0.0879228, 0.0389238, 0.0601149, -0.01272, 0.0115755, -0.0113711, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-2.76265, -3.35125, 1.81952, -0.376002, -0.629292, -0.906359, 0.370359, 0.351609, -3.11664, -0.514438, -0.995807, 0.387653, -3.33663, -0.315026, -0.193352, -3.59198, -2.12749, -0.355469, -0.1134, -0.120889, -1.70991, -3.60045, 0.360567, -1.43709, -3.70287, -0.516412, -3.6398, 0.725383, 0.189317, -1.19481, 0.355599, 1.68037, 0.241892, -2.74803, -1.95083, -0.573749, 0.0318652, 0.35589, -2.31802, -0.604379, 0.00623166, -0.135681, 0.0248927, -1.88967, -0.38221, -1.60364, -0.778913, -0.385162, -0.655084, 0.384823, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [2.03183, 1.35148, -0.60292, -1.26594, -0.944311, 0.507628, 3.16533, -0.788732, 3.66061, -1.51364, -0.864311, 3.69488, 2.23776, -4.91189, -2.17418, -0.615176, 1.05694, 1.57818, 4.37936, -14.3022, 2.16517, -1.03086, -29.4251, 1.66661, 3.78864, -2.28824, 1.05813, 3.51647, 1.39301, 2.5808, -4.63113, 2.94274, -3.29873, -0.626507, 1.79874, 0.349553, -0.56588, 3.14584, -2.59514, 1.30134, -0.320859, -2.15467, 0.0215163, 1.65184, -1.69424, 2.90481, -4.037, 0.219829, -2.38317, 0.862509, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-5.33181, -2.63732, 0.281218, 2.12882, -3.5696, 0.371029, 0.444036, 3.21673, -2.11834, -1.35894, -1.14795, 3.05082, -1.14323, 0.0648785, -2.19021, 0.764162, -2.17629, 0.365736, 2.1109, -1.09522, -0.187523, 1.66054, -1.21906, 0.614022, -3.71837, 2.0473, -0.142544, -2.841, -7.04394, -3.54183, 2.3625, -0.97477, -1.90849, -2.96628, 1.15648, -1.45445, -2.94343, 3.38288, 0.444818, -5.31552, -0.332168, -3.56736, 0.0108468, -0.460638, -0.113968, 2.8609, 1.0548, 0.439491, 1.19143, 1.80469, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0815624, 0.0044669, 0.24758, -0.377014, 0.029371, 0.0295421, -0.10549, 0.0687926, -0.053195, -0.0061651, -0.0102049, -0.208271, -0.0285281, 0.0659309, 0.0173228, 0.0381323, 0.00717191, 0.0812206, -0.0837096, -0.0101819, 0.0534187, 0.0873475, -0.157429, -0.00736805, -0.0123643, -0.657568, 0.272249, 0.0289815, 0.196221, 0.0331595, -0.0666142, -0.0207736, -0.0134696, 0.0559953, -0.0359529, 0.158129, 0.0740786, -0.0326257, -0.0344887, 0.0682271, -0.00863646, -0.0553743, -0.0157823, -0.168925, 0.0260136, 0.0379837, -0.0240528, -0.0369865, 0.00521039, -0.00436587, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.00801434, -0.0526296, 0.651105, 0.256459, -0.13836, -0.0591532, 0.328917, -0.000898787, -0.390689, 0.161245, -0.301376, -0.230829, -0.407324, 0.326926, 0.305645, 0.0809156, 0.146825, -0.0540543, -0.0208167, -0.394852, -0.0330298, 0.137727, -1.29783, 0.279649, 0.0785617, -0.0480831, 0.0513325, 0.0717983, 0.130012, -0.101078, 0.160506, 0.114549, 0.24223, 0.237716, -0.0438772, 0.105618, -0.301944, 0.179421, -0.15557, 0.183088, -0.0453523, -0.0630639, -0.0455283, 0.522581, 0.00392439, -0.600311, 0.0516378, -0.0304585, 0.0869146, 0.0751327, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.328654, -1.29666, -2.20996, -1.43096, -2.60529, -0.824917, -3.29121, 0.0272305, -1.74112, -2.36191, -4.83165, -3.94843, -1.21476, -0.912695, -1.27048, -1.85872, -4.34859, -3.03043, -4.0366, -4.64079, -0.560653, -0.00305008, -5.52137, -1.95866, -2.83975, -3.96522, -5.0016, -5.64188, 0.335037, -0.649973, -1.21708, -1.37269, -2.9169, 0.259073, -2.16451, -1.42096, -3.41688, 2.09012, -4.61281, -4.31612, 0.0666289, -2.28862, 0.0280355, -0.528137, -1.05826, -4.47754, -1.16493, -3.83009, -0.0440237, -1.44318, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [2.48447, 0.159987, -2.26126, 1.56146, -1.62776, 1.02677, 2.39054, 1.29404, -2.50441, -0.241794, 2.40035, 2.40609, 3.24861, -0.88141, 0.677413, -1.40105, -3.31727, 2.10892, -3.88851, -3.46756, -2.67303, 2.48675, -16.897, -1.61205, -0.737735, 5.01112, 5.16369, 0.905065, 1.72395, -0.76936, -0.47166, -4.07624, -12.4175, 2.18068, -1.13218, 4.33055, 2.88643, 2.88086, 0.0189057, -1.02496, -0.594349, -6.7209, 0.0414645, 0.705135, 0.878046, 0.450381, 2.77184, 0.618997, 1.40319, -1.37971, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0420142, 0.0947999, -0.25903, 0.145284, 0.0471199, 0.0268236, 0.109319, 0.0882569, 0.290204, 0.0039126, -0.0595328, -0.451917, 0.282027, 0.140311, -0.0251476, -0.168802, 0.0085774, 0.0230569, 0.0949637, -1.22808, -0.107936, -0.114621, -0.0787855, 0.0763639, -0.0122546, -0.559253, -1.4576, 0.0660825, 0.225374, 0.0479039, -0.0987559, 0.104386, -0.0505217, 0.020773, -0.159717, -1.20008, 0.201121, -0.325405, -0.282102, 0.0293596, -0.0271161, 0.0124172, 0.0174016, -0.023384, -0.488851, 0.258991, -0.136647, 0.0834306, 0.0929929, -0.148472, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0451718, -5.39941, -0.0343879, -1.65776, -2.27608, -3.08089, 0.0801141, -2.40612, -3.63259, -4.93765, -5.50372, -0.997627, -1.10989, -1.52312, -1.97423, -3.47821, -5.13592, -3.41664, -3.47183, -0.523312, -1.8937, -4.90739, -0.00867564, -3.35734, -2.73062, -7.20086, -3.48543, -1.40238, -0.772606, -0.227901, -0.162462, -4.66428, -0.262837, -1.34223, -1.84678, -2.64612, -3.58773, 2.61147, -3.70677, -0.0357866, 0.0457534, -2.63775, 0.0152161, -0.98475, -0.0377247, -5.50048, 0.272946, -2.91118, -0.147117, -4.05214, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.406878, -0.026646, 0.125786, -0.655128, -0.203671, -0.0781331, -0.856028, 0.0230294, -2.06932, -0.47642, 0.176935, 0.355215, -1.78901, -0.216802, -1.2267, -0.101319, -0.856094, -0.0850828, 0.0952258, 0.32701, -0.153631, -0.58454, -0.0754804, 0.013831, 0.0277997, -0.0035485, -1.01308, 0.245524, -0.340104, 0.0670579, 0.0874442, -1.55013, 0.16323, 0.183826, -0.032614, 0.135321, -0.42589, -0.338995, -0.010569, -0.187532, -0.04104, -0.40317, -0.0353067, -0.369958, 0.0435488, -0.0419509, -0.226339, 0.106162, -1.4284, -0.904791, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.71062, -0.527733, -2.1975, 2.12742, -0.598773, -1.09709, 3.08292, -0.0873433, 2.46823, -3.01624, 1.65506, 1.84784, 1.6662, -1.43322, -0.822574, -0.0408576, 1.91253, 1.67838, -2.51924, 0.135484, 2.56577, 1.14524, -24.9969, -1.82155, -9.65389, 1.17007, 0.251147, 0.441371, -0.274229, -5.02254, -0.907206, -11.3064, -7.09139, 0.496335, -8.17792, 2.72551, -1.07084, 1.34506, 0.618568, -0.0188578, -0.313865, 3.35383, -0.0347709, 1.21437, 0.904731, 3.21647, -1.00526, 0.0858336, 1.79492, 1.48781, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.586303, -0.398372, 1.412, -2.03061, -5.01162, -0.953385, -0.0750144, -1.57217, -3.182, -0.811265, -0.468333, -0.77695, -0.823969, -1.77868, 0.56259, 0.346976, -0.356296, -1.63362, -1.08615, -1.92225, -4.03745, -1.48151, -4.35433, -2.0906, -0.280737, -0.414952, -1.77047, 1.7163, -2.59549, -0.218109, -0.0248832, -3.99197, -2.08963, -1.43896, -1.9465, -0.560751, -2.21172, -0.648298, -0.590953, -1.79882, 0.00709451, 0.258871, -0.0420925, -0.352942, -0.27827, -0.754521, -0.539928, 0.00406403, 0.381917, -1.15862, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.51581, -0.278352, -2.69286, -0.377735, -2.35156, 0.930313, -0.190465, 1.46198, -3.1871, -4.54834, -2.22201, 0.960483, 3.06356, -1.01869, -3.49988, 1.43095, 0.38468, 1.06692, -9.84599, -2.40578, -9.73619, 3.10351, -10.364, -0.806759, 1.56665, 2.15333, 2.20435, 2.65627, 2.04322, -2.00701, -0.000790365, 0.379049, 0.84065, 2.65432, 2.48155, -1.693, -0.657096, 1.12382, -0.929123, 1.9512, -0.48474, -1.88488, 0.0522139, 0.691306, -4.79859, 0.564452, -1.52154, 1.84589, -2.84079, -5.34482, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.040743, -0.0201294, 1.93127, -0.129553, -0.98588, 0.619738, -0.0923374, 1.85375, -3.08866, -3.50111, -1.42252, -2.44941, 2.07349, -1.21664, -1.42147, 1.16243, -2.12364, -2.089, -4.0421, 0.416154, 2.12545, 0.466237, -19.9355, -2.13551, 0.0464743, 1.76236, -0.499251, 1.65812, 1.23544, -2.97905, -1.51063, -3.15403, -7.83718, 2.48163, 0.34056, -0.189996, -0.465019, 1.90587, 1.02105, 1.55496, -0.357358, 2.61222, 0.040097, -0.489921, 0.64868, -0.741778, -1.98413, 1.92821, 1.75785, -3.31668, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0665884, -0.0136229, 1.28543, -0.516552, -0.0832163, -0.072313, 0.293323, -0.242918, -0.454205, -0.242464, -0.503869, 0.399018, -0.232356, -0.0368945, 0.0379642, 0.140225, 0.126381, -0.303828, -0.0758275, -0.275738, -0.315404, 0.0892683, -8.23802, 0.129201, -0.133926, -0.0732125, 0.220761, -0.739349, 0.310272, 0.236213, 0.249961, 0.174408, -0.276719, 0.216575, 0.0158781, -0.269417, -0.373881, 0.231464, -0.217781, 0.0805582, -0.0431285, -0.192545, -0.0314858, 0.343117, -0.178367, 0.259947, 0.156252, -0.172946, -0.174875, 0.129474, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.607515, -5.77578, -3.46054, 4.51416, -3.22942, -0.221791, 1.92415, 2.70683, -6.69046, -5.77055, -2.55814, 2.61263, -1.74744, -0.293746, 1.02802, -0.601603, 0.0938422, -2.95099, 2.00981, -12.1402, -1.09298, -5.69367, -32.2225, -2.01439, 1.55842, 2.62351, 1.5856, -5.7188, 2.55206, -0.497037, -2.16182, -0.381744, -1.27421, 3.28027, -1.64852, -0.526778, 1.74924, 1.81407, 1.55083, -5.88528, -0.413393, -2.37118, -0.0448104, 0.924178, -1.64709, 1.707, 0.272007, 0.778597, 2.86408, -1.18176, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-3.32818, 1.74962, -2.88802, 3.36122, -2.14717, -0.917401, 3.77615, 2.97558, 0.972416, -4.03835, 3.08095, 1.75769, 1.94002, -8.34459, -4.92641, -0.292988, -4.24488, -0.989319, -2.55329, -0.0317648, -4.74642, 0.60891, -18.8838, -0.164085, 2.34103, 1.28032, 2.52827, 4.5031, 3.14577, -0.467038, -0.9154, 3.22358, 0.00105681, -5.66457, 0.185815, 2.70868, -0.035242, 3.06571, 0.28123, -1.12622, -0.592143, 1.77371, 0.0409385, 3.24998, 1.48361, 0.486906, 1.49844, 2.59438, 1.46378, -0.481208, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.473549, 0.0297846, 1.05975, -0.441791, -0.119249, -0.0437151, 0.124955, 0.0858539, 0.487804, -0.170351, -0.405562, 0.427687, -0.332257, -0.0133594, -0.0265627, -0.111103, -0.126746, -1.01253, -0.105407, -2.77223, 0.0912184, 0.158714, -0.0374177, -0.0820608, -0.0888612, 0.159756, -0.658778, -0.0647228, 0.194464, -0.131397, 0.0318875, 0.0611106, -0.355028, 0.0573199, -0.76578, -1.50035, 0.228239, 0.315802, -0.514193, 0.181142, -0.0319635, -0.390129, 0.00714002, -0.172319, -1.00703, 0.808615, 0.0790645, -0.42099, -1.21013, -0.226903, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0986184, -0.788658, 1.37315, 0.22021, -0.11162, -0.464852, 0.289088, -0.219062, -0.00600564, 0.065358, -0.0568414, -0.694498, 0.265141, -1.0776, 0.047091, -0.313269, -0.601194, -1.15446, -0.113578, -2.00816, 0.228221, -0.133159, -3.52498e-05, -0.748512, -0.253282, -1.03005, -1.97097, -0.941346, -0.228073, 0.246156, 0.229161, 0.406762, 0.167035, 0.117754, 0.154622, -2.9078, -0.795628, 0.995029, -3.40361, -0.222603, -0.0513592, 0.341892, 0.00103529, -0.565188, -0.213021, 0.670961, 0.0468138, 0.255924, 0.175194, -1.86671, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.202617, -0.0393225, -0.356697, 0.0438255, 0.0136671, -0.0346777, 0.000784318, 0.156954, 0.0102736, -0.123539, 0.0994129, -0.214975, -0.174377, -0.00888698, -0.0260733, 0.0447557, -1.29894, 0.0159666, 0.0783298, -0.526042, -0.061796, 0.068942, -0.189798, 0.0136914, -0.0412279, -0.14958, -0.891325, -0.0695341, -0.00538847, -0.00497675, 0.0306007, -0.0431705, -0.0541368, 0.0119956, 0.0585428, -0.554272, -0.0804173, 0.00961942, -0.0392637, 0.0739253, -0.0166813, 0.0812321, -0.0414293, 0.00963975, 0.0245097, 0.198375, -0.0432872, 0.0413039, -0.035663, -0.00273069, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.164414, 8.57588e-05, 2.17798, -1.01533, -0.156994, -0.113164, 0.512003, -0.41833, -0.748075, -0.466532, -0.9554, 0.844117, -0.246677, -0.179877, -0.123391, 0.205143, 0.188053, -0.587552, -0.168648, -0.494405, -0.622044, 0.169488, -13.7667, 0.230992, -0.295433, -0.0454375, 0.524802, -1.46656, 0.498454, 0.50719, 0.430639, 0.199183, -0.713362, 0.337482, 0.0589419, -0.482321, -0.55628, 0.351534, -0.2926, 0.174027, -0.0619241, -0.295206, -0.0117658, 0.43269, -0.290616, 0.484896, 0.274882, -0.248706, -0.311164, 0.192937, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.152932, 0.442851, -1.93788, 1.1646, -0.0169029, 0.553618, -0.407543, 0.964354, -0.40939, 0.172873, 0.379222, 0.281132, 0.259319, 0.846396, 0.506341, 0.524694, 0.224164, -0.343693, -0.635369, 0.374554, 0.53508, -0.220426, -4.81395, -0.887151, 0.510578, 1.26973, 0.77966, 0.655133, 0.676147, -0.998954, -1.91971, -0.0191755, -0.582173, -0.0771024, 0.263622, -0.310375, 1.2921, 0.82137, 0.400295, -0.905277, -0.228958, -0.2973, -0.0158769, 0.331776, 0.309187, -0.485103, 0.424917, 0.384218, 0.497743, 0.207192, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.896318, -1.48657, 0.0184957, -2.41268, -1.77467, -2.09437, -1.70317, -5.06516, -1.07253, 1.21909, -0.434279, -1.3312, -2.63096, -0.0530756, 0.293271, 0.690164, -0.167622, -1.13348, -1.56699, -4.94107, 0.333141, -1.91392, -3.6415, -1.64768, -2.16144, -2.96365, -1.10405, -3.52568, -4.98541, -1.57482, 0.920798, 1.36121, -2.4461, -0.596544, -2.7155, -5.01287, -2.43006, -0.563786, -0.883368, -3.24376, -0.00972454, -0.35547, 0.0309823, 0.810689, -1.61508, -1.36843, -2.80411, -2.15697, -3.6353, 0.36299, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.204324, -0.500817, -8.41402, 2.83061, -2.8535, -0.750146, 2.86945, 1.16514, -0.29945, -1.28188, 2.92802, 1.3689, 0.753172, -1.48051, 1.07645, 1.98611, -0.782345, 2.30246, 0.914685, -11.7384, -1.98111, -1.78617, -13.1008, -6.63357, -1.56565, 2.07378, 1.12483, 3.89071, 1.62502, -3.21632, -0.889164, -1.23736, -1.09488, -0.620645, -0.995717, 3.454, 2.43835, 3.95871, 0.347228, -3.79048, -0.439651, 0.661408, -0.00990875, -0.769587, -1.25113, -0.300635, 0.902212, 0.592158, 2.40855, -4.23292, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0931168, 0.0302731, -0.310975, -0.235241, -0.0221186, -0.0534784, 0.0501073, -0.0308722, 0.0454653, -0.0366421, 0.0620346, -0.0688467, 0.00135829, -0.0141818, 0.068652, 0.004326, -0.0266095, -0.0345095, -0.00751541, 0.0911751, -0.0284933, 0.00618968, -0.296993, 0.0206812, -0.00879582, -0.013742, -0.496313, 0.027562, 0.0589644, 0.00578925, 0.0327826, 0.178372, -0.0952935, 0.0726525, 0.0405253, 0.102365, -0.021451, -0.104987, 0.0152899, -0.0148127, -0.0264379, -0.0207532, 0.0163914, -0.0921579, 0.0480094, 0.118337, -0.00658305, -0.02846, -0.0412681, 0.0566848, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-2.32314, -0.345997, 4.16455, -0.393048, -0.170691, -0.8, -0.637223, -0.215727, 1.07918, -0.220634, -0.117228, -0.925574, -0.323321, 0.0147911, -0.576915, 0.181217, -0.12558, -0.657782, -0.0738507, -0.461818, -2.1584, -0.095669, 0.19247, 0.488508, 0.221122, -0.537564, -0.199681, -0.304497, -0.76352, 0.668299, 0.277512, 0.307074, -2.67105, 0.354324, -0.0734323, -0.161953, 0.144144, 0.244033, -0.309473, -1.13298, -0.0541804, 0.00174797, -0.0131639, 1.20653, 0.630562, -0.346268, -0.427801, 0.255784, 0.0190423, 0.301935, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.257966, 0.214668, -0.379517, 0.622773, -0.393487, 0.0385565, 1.19277, 0.70361, -0.847647, -0.0835894, 0.326574, 0.0176032, 0.483632, 0.185579, 0.167507, -1.05872, -0.612141, 0.573231, -0.687064, 5.02843e-05, 0.317127, 0.206553, -2.09371, 0.0807184, -0.63739, 0.664332, -0.254689, 0.465805, -0.148721, -1.62303, -0.350058, 0.956729, 0.695351, 0.080424, -0.0632946, 0.546076, 0.363519, 0.377971, 0.338881, -0.250712, -0.129477, 0.940682, 0.0208589, 0.478891, -0.0374095, 0.110785, -0.0717861, 0.325217, 0.544569, -0.0906436, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.472215, -0.0104472, 0.591366, -0.125351, -0.0586372, -2.34437, -0.127585, -0.184951, -0.133653, 0.0705779, -0.201293, -0.0630505, -0.12022, -0.0293223, 0.0362849, -0.000698147, 0.0128477, 0.0587211, -0.0637238, -0.00262842, 0.119936, 0.0518272, -0.119508, -0.0108635, -0.0690864, -0.228607, -0.514289, -0.242675, 0.0579792, -0.0764872, 0.0155141, 0.029766, -0.00225717, 0.016187, -0.0193036, -0.0391596, -0.0425173, -0.0834689, -0.0665481, 0.154058, -0.0118791, -0.121914, 0.019414, -0.106328, -1.28289, 0.0881372, 0.14907, -0.00920302, -0.0835538, -0.0281716, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0558612, -0.03958, 0.055926, -0.152044, -0.0185235, -0.112336, 0.0579263, 0.198362, 0.26599, -0.0845899, -0.476008, 0.178631, 0.0310456, -0.140311, -0.0213069, -0.0251717, -0.0705469, -0.245583, 0.0515781, -0.744332, 0.0231764, 0.166955, -0.164949, -0.0185541, 0.0909337, -0.124692, 0.158712, -0.199469, 0.168302, 0.101348, 0.0851413, 0.0293443, -0.0702102, -0.15188, -0.0661987, -2.64851, 0.0535079, 0.160661, -1.6443, 0.110813, -0.0166346, 0.0305741, 0.00787705, 0.0458612, -0.699524, 0.4876, -0.116828, -0.165298, -0.300206, -0.105417, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0156241, -0.00724452, 0.0522702, -0.000792478, 0.0380705, -0.0162152, -0.0234857, 0.0695722, -0.0127036, -0.00369464, 0.0118451, 0.0152202, 0.00398618, 0.0195249, 0.00220075, -0.00198587, -0.00341113, -0.0372591, -0.00569572, -0.024361, 0.0244552, 0.0317461, 0.00612439, 0.00016422, 0.00404679, -0.0463867, -0.257828, -0.0256945, 0.0392466, 0.0159969, 0.028022, -0.0301731, -0.00283993, 0.00838842, -0.00763561, 0.0157131, 0.00380543, -0.0541598, -0.0111952, 0.0325428, -0.00607677, 0.0195384, 0.0305939, -0.0593446, 0.000632889, 0.0665576, -0.0391466, -0.00938669, -0.00824666, 0.0233485, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.451945, 0.0242887, 0.989303, 0.285573, -0.0888884, -0.0371446, -0.0962405, -0.276427, -0.106661, 0.0678428, -0.302088, 0.103945, -0.119355, 0.00631948, 0.0311252, 0.0220024, 0.00310431, -0.0489268, -0.125667, -0.034965, 0.100392, 0.0870914, -0.231227, 0.00984745, -0.0576859, 0.0999078, -0.17851, 0.0185654, 0.0437382, -0.0436676, 0.0109275, 0.0782881, -0.0274369, 0.0564561, 0.0138593, -0.116987, 0.0347686, -0.000418326, -0.0604308, 0.122029, -0.0264574, -0.0591931, 0.0415135, 0.0226309, 0.0958339, 0.306799, 0.179194, 0.0830829, -0.014614, -0.0161304, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.115314, 0.0072267, 0.0978926, 0.179572, 0.000350264, 0.0119202, 0.000451477, 0.14006, 0.0570031, 0.0742107, 0.00871085, -0.421084, 0.0641868, -0.100336, -0.0707784, -0.0493123, -0.0497023, -0.0138148, -0.0542224, 0.0226363, -0.0615023, 0.0905213, 0.192728, 0.0382433, 0.0638653, 0.0811412, -0.589253, 0.0289756, -0.114356, 0.00910526, -0.00190315, -0.0173746, -0.0604396, 0.0342897, -0.0389976, -1.15033, 0.0715098, -0.2656, 0.00865814, -0.00210626, -0.0121472, 0.0719117, 0.0315719, -0.160211, -1.80471, 0.290916, -0.0524756, -0.0046521, -0.0438015, -0.00652132, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0219893, 0.00147796, 0.0956626, 0.00902702, -0.3459, 0.00115008, -0.0239629, 0.0554108, 0.00877069, -0.0770727, -0.0031683, -0.00650077, 0.0366695, -0.00219983, -0.960781, -0.0283855, 0.000235109, -0.00521308, -0.000508589, 0.155675, 0.111277, 0.0100365, -8.00842, -0.00235611, -0.00967488, -0.00287938, 0.0153838, 0.0742855, -0.0842078, 0.00127213, -0.000810529, -0.157353, -0.0635319, -0.171536, -0.00435295, -0.0013306, 0.0221038, -0.00426189, -0.00122433, -0.00870342, 0.00051587, 0.00666708, -0.033281, -0.0747044, 0.0720899, -0.00346376, 0.00281362, 0.000639617, -0.0032539, -0.00728713, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.00163212, -0.076648, 0.79433, 0.523153, -0.239859, -0.08158, 0.475239, 0.128385, -0.470456, 0.291508, -0.252689, -0.602188, -0.488459, 0.57366, 0.333335, 0.047989, 0.144404, 0.0507538, 0.0150706, -0.588297, 0.0348987, 0.228405, -1.43266, 0.487932, 0.21647, 0.0349487, 0.0974917, 0.414683, 0.0342585, -0.182791, 0.050012, 0.0684361, 0.281948, 0.296496, -0.0543813, 0.347148, -0.316874, 0.105211, -0.123272, 0.283671, -0.0571745, -0.0525572, 0.00529408, 0.723812, 0.190028, -1.60716, 0.0149486, 0.0584537, 0.264409, 0.0440391, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.116218, -0.02256, 0.183285, -0.0464606, -0.0420178, -0.00678719, -0.0544642, 0.10134, 0.0113403, -0.0298765, -0.156402, -0.127387, 0.0479021, 0.0749983, -0.038742, 0.00369582, -0.0344858, -0.000230788, -0.0199354, 0.00251907, 0.0517871, -0.00986361, 0.112982, -0.0364602, -0.0248866, -0.225455, -0.144812, -0.045879, -0.0438336, -0.143641, 0.0104809, -0.0612474, -0.0417805, -0.0343965, 0.000847023, -0.0253175, -0.213429, -0.074562, -0.0953985, 0.0341872, -0.00760382, -0.00267389, -0.000247028, -0.054011, 0.00390454, -0.0680092, -0.0456045, 0.00900297, -0.00899537, 0.0218373, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0598438, -0.0542876, 0.04965, -0.0197003, -0.0253526, -0.0758062, -0.0903859, 0.174775, -0.0651284, 0.0123115, -0.0679504, -0.0942375, -0.076962, 0.0914117, 0.0655252, 0.0112054, 0.00893877, -0.180513, -0.0404454, -0.0253066, -1.69774, 0.0693994, -0.310255, 0.0207033, -0.0754384, -0.0306942, 0.126972, -0.0535468, 0.0386594, 0.0197672, 0.00971363, -2.83676, 0.0368959, 0.0306157, -0.0097294, -0.0492001, -0.0310528, -0.0341559, -0.0432694, -2.10261, -0.01143, 0.0781084, -0.0310159, 0.0487213, -0.0246211, 0.0770195, -0.0990176, -0.236785, 0.00555158, 0.0706908, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.954343, 0.471618, 0.129826, -1.64423, 0.374031, 0.382362, -1.35172, -0.674315, 1.17461, -0.0501179, -2.3065, -1.17696, -0.501021, 1.25031, -0.727811, 0.0253498, 0.278005, -2.16771, -0.619189, -0.148415, -0.9515, 0.750087, -1.56726, 0.356345, -0.405681, -0.0524037, -1.55183, -0.823998, 0.15638, -0.372562, -0.27181, 0.776918, -0.69104, -1.04225, -0.358084, -1.27468, 0.830324, -1.14668, -4.51946, -1.59736, -0.106088, 0.0278602, -0.00746727, -0.69198, -1.53402, -0.907923, -0.441854, -0.245559, -0.938579, -0.260396, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0847451, -0.0073284, -0.876906, -0.0619115, -0.126384, -0.0204403, 0.108512, -0.0536906, -0.0757079, 0.0249318, 0.0413393, 0.00785895, -0.0748368, -0.00591559, -0.053052, 0.0487702, -0.0848264, 0.0107022, 0.0221283, -0.13596, -0.200173, -0.0328379, 0.110981, 0.0329541, -0.0459097, -0.0126109, -0.432189, 0.0523783, -0.0982453, 0.0111976, 0.0217329, -0.0281512, -0.0425507, 0.0981274, 0.0119526, 0.0766948, -0.114178, 0.102478, 0.013116, 0.0589974, -0.0124708, -0.000993176, 0.0432058, -0.0287181, 0.0280167, 0.0659979, -0.0245501, -0.0109583, -0.0144787, 0.0365115, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.5839, -0.683065, -0.0425082, -0.517397, -0.399682, -0.409045, -1.73582, -0.867187, -1.6696, -0.227884, -1.0782, -1.72107, -0.566653, -0.133779, -1.85627, -1.1172, -1.5802, -0.748959, -0.0802788, -0.00597579, 0.0336696, 0.112464, -0.144032, 0.122845, -0.309385, -0.106483, -3.59212, -1.24279, 0.288021, -1.43265, -0.747834, -2.00313, -0.118263, -0.627157, 0.187194, -0.367249, -0.78576, -1.47954, -0.983724, -0.255846, -0.036134, 0.188732, 0.0185156, -0.759287, 0.122024, -0.255867, 0.0929043, -1.38336, -0.337228, -0.750491, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.802327, -0.0212823, -0.859034, -0.345229, 0.186331, -0.0588793, -0.893812, 0.460673, 1.03027, 0.103407, -0.574095, -1.31408, 0.640792, 0.176907, 0.0140122, -0.343969, 0.0147206, -0.388262, 0.224567, 0.30313, 0.0463041, -0.464625, 0.369469, -0.809246, -0.362082, -1.24288, -2.27222, -0.15484, -0.26244, 0.405422, -0.105571, -1.39798, 0.00912272, -1.06524, -0.0717619, 0.198239, -1.15352, -1.09277, -0.231128, -0.172122, -0.00451691, 0.289531, -0.0270329, -0.451578, 0.149709, -0.205783, -0.563157, 0.0821914, -0.109827, 0.348796, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [2.39904, 1.22814, -3.05524, -0.843946, -3.14059, -1.95921, -0.252324, 0.502831, -4.31618, 0.320813, -2.61825, 1.52088, 3.67454, -0.131008, -1.78947, 0.852244, -0.181777, 0.333733, -0.508978, -10.6417, 2.52604, 1.56702, -21.7159, -2.55056, 2.12966, -0.0630981, 3.79467, -0.773835, 1.83096, 1.61135, 1.03657, 3.16397, -6.14299, -6.84498, -4.24801, 1.48262, 1.21605, 1.98669, 0.277666, -6.94467, -0.506788, 1.06775, -0.00496487, 1.76586, 2.44352, 2.37849, 0.87586, 2.09859, -3.60657, -4.65667, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0234672, -0.0326991, 0.421562, 0.028084, -0.00451049, -0.0628407, 0.118234, -0.0869908, -0.256414, 0.0415051, -0.302336, 0.0884344, -0.271797, 0.0977903, 0.24393, 0.0928842, 0.126657, -0.138897, -0.0448426, -0.19315, -0.0559378, 0.052136, -1.00788, 0.0712333, -0.0329303, -0.128249, -0.00179239, -0.212213, 0.191125, -0.0146209, 0.199899, 0.0770355, 0.175154, 0.154093, -0.0272583, -0.0868875, -0.222168, 0.200533, -0.162702, 0.0780826, -0.0309374, -0.0571631, 0.0259373, 0.271881, -0.149018, 0.214273, 0.0589775, -0.15824, -0.0661224, 0.0826421, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.165838, 0.796365, -0.102552, 0.881209, 0.535497, -0.793055, 0.633925, 2.58473, -0.881517, -1.39464, -1.53436, 0.487603, 0.40924, -2.91776, -3.0877, 0.17435, -3.64001, -1.88166, 0.0654849, -0.590753, -4.45328, 0.473249, -5.87998, -0.894546, 0.505128, -4.81984, -3.91191, -0.155792, 0.690086, -3.61091, 0.789425, 2.9023, -5.00113, -0.887141, -0.744893, -1.38319, 1.55369, 0.225637, 0.0118419, 0.589154, -0.341971, 0.279008, -0.03677, 0.837819, 0.871834, 1.5724, 0.897171, 1.70138, -0.1694, -5.56275, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.170459, -0.0291989, 0.0892392, -0.102171, 0.0637405, 0.0509913, 0.0139575, 0.131707, 0.0139317, 0.0354989, -0.0834405, -1.84887, -0.0319344, -0.0949587, -0.0154077, -0.0688087, -0.0474047, -0.0436259, 0.0048132, -0.0867461, 0.0423556, -0.12707, 0.0814794, -0.0300944, 0.000213331, -0.0357014, -0.840872, 0.059948, 0.0581515, 0.0178364, -0.0965697, 0.0493866, -0.0475222, -0.0451264, -0.130708, -0.232649, 0.221661, -0.0385675, 0.0256688, 0.0929017, -0.00334254, -0.0263858, -0.0255397, -0.0427289, -0.441991, -0.196701, -0.00868955, -0.485905, -0.0333713, -0.0657506, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.55101, -3.52469, -2.83284, -0.535219, -2.13439, -0.105596, -1.29966, -1.0868, -3.74054, -2.93705, -0.699221, -4.89902, 0.0857212, -1.53773, -3.6, 0.109474, -2.59211, -5.05814, -3.10915, -0.5534, -2.72478, -4.00007, -4.72814, -0.478724, 0.385659, -1.44153, -4.11671, -1.9339, -1.71096, 0.59504, -0.0356295, -1.77417, -3.42751, -3.61757, -2.63062, 1.1932, -2.04625, -2.15381, -0.523228, -2.30191, -0.00781356, -3.39662, 0.0364067, 1.19161, -2.28632, -5.46906, 0.181199, -1.99626, -0.36277, -2.23567, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [2.65674, -1.08048, -1.37857, 4.64949, -3.32146, -0.156626, 4.08177, 0.113671, -4.45721, -1.51348, 2.62715, 1.62985, 0.699175, -1.339, -5.59652, 1.30624, -1.11211, -1.53322, -4.25401, -5.93268, -1.02279, 1.71525, -16.1655, -0.47163, -4.08042, 2.48747, 1.92312, -0.53128, 0.374994, -5.58141, -3.06382, -3.32633, 1.00854, 3.20237, 0.304743, 2.65236, 1.07252, 3.77119, 0.989538, -3.5023, -0.551684, 2.78046, -0.0195014, -0.813125, 0.30084, 0.267684, 1.68444, 2.26304, 2.95863, -2.52055, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-5.99797, -3.99429, 0.0393191, -3.55737, -0.131721, 0.445393, 2.44062, -3.49619, -5.82974, -2.17958, -3.72037, -2.84132, -6.23755, -2.51581, 0.36715, -2.86234, 0.373353, -9.28609, 0.215388, -0.795107, -4.36565, -5.40397, -1.7278, -4.10104, -5.75718, -3.27228, -3.29056, -2.33645, -4.52112, 1.41889, -0.183028, -3.68134, -1.51225, -1.31497, 1.0099, -4.06036, -3.89425, -1.80904, 0.0533711, 1.51944, -0.0937206, -0.527749, -0.0065036, -0.78886, 0.0218038, -3.27064, 1.36165, -3.98321, -2.05648, -2.70115, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.16275, -0.0596168, 0.0345249, -0.496532, -0.0193175, 0.0112441, -0.00786111, -0.0878648, 0.0892614, -0.0437941, 0.0150766, -0.00559913, 0.0209878, -0.00619522, 0.0399862, -0.0212594, -0.00687551, -0.0390165, -0.0126663, -0.0176598, 0.0512693, 0.0301582, -0.0734899, 0.0714248, 0.0585814, -0.14382, 0.204521, 0.051439, 0.0313985, 0.0443582, -0.0151633, -0.0209634, -0.0363186, -0.0082343, -0.0132987, 0.0219897, 0.027229, -0.0177169, -0.130848, -0.000150624, -0.00482314, -0.0631818, 0.0416137, -0.019507, 0.0204833, 0.0446041, -0.0234289, -0.0099805, -0.116565, -0.0090883, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1646, 0.04715, -0.03967, -0.1709, 0.005398, 0.01643, -0.07855, -0.05862, 0.08966, -0.01404, 0.02765, -0.05252, -0.0451, -0.00786, -0.01468, -0.01753, 0.0523, 0.00422, 0.0525, -0.07587, 0.005356, 0.0174, -0.1104, 0.001671, -0.10046, -0.2368, -0.983, 0.06195, 0.1594, 0.01846, 0.03026, 0.03357, 0.03632, -0.05432, -0.0156, -0.69, 0.02501, 0.03693, -0.0844, 0.03326, -0.01072, -0.0782, 0.02907, -0.0997, -0.0731, 0.02037, -0.0866, -0.0668, -0.06616, -0.01438], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1444, 0.00926, 0.075, -0.02425, 0.00527, -0.005505, -0.04745, 0.01503, 0.006504, -0.01125, -0.07404, -0.1277, 0.02353, 0.00383, 0.004967, 0.01056, -0.004036, 0.05435, -0.002415, 0.0092, 0.003544, -0.009674, -0.01718, 0.002518, -0.02039, -0.02766, -0.2328, -0.00671, 0.006523, -0.03195, -0.01797, -0.003885, -0.0297, 0.0259, -0.004444, -0.03412, -0.02226, -0.09326, -0.0324, 0.03433, -0.004265, -0.004635, -0.009995, -0.02475, -0.08795, 0.0389, 0.06012, -0.01272, 0.01157, -0.01137], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -2.762, -3.352, 1.819, -0.376, -0.6294, -0.9062, 0.3704, 0.3516, -3.117, -0.5146, -0.9956, 0.3877, -3.336, -0.315, -0.1934, -3.592, -2.127, -0.3555, -0.1134, -0.1209, -1.71, -3.6, 0.3606, -1.4375, -3.703, -0.5166, -3.64, 0.7256, 0.1893, -1.194, 0.3557, 1.681, 0.242, -2.748, -1.951, -0.5737, 0.03186, 0.356, -2.318, -0.6045, 0.006233, -0.1356, 0.02489, -1.89, -0.3823, -1.604, -0.779, -0.3853, -0.6553, 0.3848], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.031, 1.352, -0.603, -1.266, -0.9443, 0.508, 3.166, -0.7886, 3.66, -1.514, -0.8643, 3.695, 2.238, -4.91, -2.174, -0.615, 1.057, 1.578, 4.38, -14.305, 2.166, -1.031, -29.42, 1.667, 3.79, -2.29, 1.059, 3.516, 1.393, 2.58, -4.633, 2.943, -3.299, -0.6265, 1.799, 0.3496, -0.566, 3.146, -2.596, 1.302, -0.3208, -2.154, 0.02151, 1.651, -1.694, 2.904, -4.035, 0.2198, -2.383, 0.8623], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -5.332, -2.637, 0.2812, 2.129, -3.57, 0.371, 0.444, 3.217, -2.12, -1.359, -1.148, 3.05, -1.144, 0.0649, -2.19, 0.764, -2.176, 0.3657, 2.111, -1.096, -0.1875, 1.66, -1.219, 0.6143, -3.719, 2.047, -0.1426, -2.842, -7.043, -3.541, 2.363, -0.9746, -1.908, -2.967, 1.156, -1.454, -2.943, 3.383, 0.4448, -5.316, -0.3323, -3.566, 0.01085, -0.4607, -0.11395, 2.861, 1.055, 0.4395, 1.191, 1.805], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.08154, 0.004467, 0.2476, -0.377, 0.02937, 0.02954, -0.10547, 0.0688, -0.0532, -0.006165, -0.01021, -0.2083, -0.02853, 0.0659, 0.01732, 0.03815, 0.00717, 0.08124, -0.0837, -0.010185, 0.0534, 0.08734, -0.1575, -0.007366, -0.01237, -0.6577, 0.2722, 0.02898, 0.1962, 0.03317, -0.0666, -0.02077, -0.013466, 0.056, -0.03595, 0.1581, 0.0741, -0.03262, -0.0345, 0.06824, -0.00864, -0.0554, -0.01578, -0.169, 0.02602, 0.038, -0.02405, -0.037, 0.00521, -0.004364], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.00801, -0.05264, 0.651, 0.2563, -0.1383, -0.05914, 0.3289, -0.000899, -0.3906, 0.1613, -0.3013, -0.2308, -0.4072, 0.327, 0.3057, 0.08093, 0.1469, -0.05405, -0.02081, -0.3948, -0.03302, 0.1377, -1.298, 0.2795, 0.07855, -0.0481, 0.05133, 0.0718, 0.13, -0.1011, 0.1605, 0.11456, 0.2422, 0.2377, -0.04388, 0.1056, -0.302, 0.1794, -0.1555, 0.1831, -0.04535, -0.06305, -0.04553, 0.5225, 0.003925, -0.6, 0.05164, -0.03046, 0.0869, 0.07513], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3286, -1.297, -2.209, -1.431, -2.605, -0.8247, -3.291, 0.02724, -1.741, -2.361, -4.832, -3.95, -1.215, -0.9126, -1.2705, -1.858, -4.348, -3.031, -4.035, -4.64, -0.5605, -0.00305, -5.52, -1.959, -2.84, -3.965, -5.0, -5.64, 0.335, -0.65, -1.217, -1.373, -2.916, 0.259, -2.164, -1.421, -3.416, 2.09, -4.613, -4.316, 0.06665, -2.29, 0.02803, -0.5283, -1.059, -4.477, -1.165, -3.83, -0.04404, -1.443], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.484, 0.16, -2.262, 1.562, -1.628, 1.026, 2.39, 1.294, -2.504, -0.2418, 2.4, 2.406, 3.248, -0.8813, 0.6772, -1.401, -3.316, 2.11, -3.889, -3.467, -2.674, 2.486, -16.89, -1.612, -0.738, 5.01, 5.164, 0.9053, 1.724, -0.7695, -0.4717, -4.08, -12.414, 2.182, -1.132, 4.332, 2.887, 2.88, 0.0189, -1.025, -0.594, -6.723, 0.04147, 0.705, 0.878, 0.4504, 2.771, 0.619, 1.403, -1.38], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.04202, 0.0948, -0.259, 0.1453, 0.04712, 0.02682, 0.1093, 0.08826, 0.2903, 0.003914, -0.05954, -0.452, 0.282, 0.1403, -0.02515, -0.1688, 0.008575, 0.02306, 0.095, -1.229, -0.1079, -0.1146, -0.0788, 0.07635, -0.01225, -0.559, -1.458, 0.0661, 0.2253, 0.0479, -0.09875, 0.1044, -0.0505, 0.02077, -0.1597, -1.2, 0.2012, -0.3254, -0.282, 0.02936, -0.02711, 0.01242, 0.0174, -0.02338, -0.4888, 0.259, -0.1366, 0.08344, 0.093, -0.1484], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.04517, -5.4, -0.0344, -1.658, -2.275, -3.08, 0.08014, -2.406, -3.633, -4.938, -5.504, -0.9976, -1.11, -1.523, -1.975, -3.479, -5.137, -3.416, -3.473, -0.5234, -1.894, -4.906, -0.008675, -3.357, -2.73, -7.2, -3.486, -1.402, -0.7725, -0.2279, -0.1625, -4.664, -0.263, -1.342, -1.847, -2.646, -3.588, 2.611, -3.707, -0.0358, 0.04575, -2.639, 0.01521, -0.985, -0.03772, -5.5, 0.273, -2.912, -0.1471, -4.05], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.407, -0.02664, 0.1257, -0.6553, -0.2036, -0.0781, -0.856, 0.02303, -2.068, -0.4763, 0.1769, 0.3552, -1.789, -0.2168, -1.227, -0.1013, -0.856, -0.0851, 0.0952, 0.327, -0.1537, -0.5845, -0.0755, 0.01383, 0.0278, -0.003548, -1.013, 0.2455, -0.34, 0.0671, 0.08746, -1.55, 0.1632, 0.1838, -0.03262, 0.1354, -0.4258, -0.339, -0.01057, -0.1875, -0.04105, -0.403, -0.0353, -0.3699, 0.04355, -0.04196, -0.2263, 0.10614, -1.429, -0.905], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.711, -0.528, -2.197, 2.127, -0.5986, -1.097, 3.082, -0.08734, 2.469, -3.016, 1.655, 1.848, 1.666, -1.434, -0.8228, -0.04086, 1.912, 1.679, -2.52, 0.1355, 2.566, 1.1455, -25.0, -1.821, -9.66, 1.17, 0.2512, 0.4414, -0.2742, -5.023, -0.907, -11.305, -7.09, 0.4963, -8.18, 2.725, -1.071, 1.345, 0.6187, -0.01886, -0.314, 3.354, -0.03476, 1.215, 0.905, 3.217, -1.005, 0.0858, 1.795, 1.488], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5864, -0.3984, 1.412, -2.031, -5.01, -0.9536, -0.075, -1.572, -3.182, -0.811, -0.4683, -0.777, -0.8237, -1.778, 0.5625, 0.347, -0.3562, -1.634, -1.086, -1.922, -4.04, -1.481, -4.355, -2.09, -0.2808, -0.415, -1.7705, 1.716, -2.596, -0.2181, -0.02489, -3.992, -2.09, -1.438, -1.946, -0.5605, -2.21, -0.6484, -0.591, -1.799, 0.007095, 0.2588, -0.04208, -0.353, -0.2783, -0.7544, -0.54, 0.004063, 0.3818, -1.158], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.516, -0.2783, -2.693, -0.3777, -2.352, 0.93, -0.1904, 1.462, -3.188, -4.547, -2.223, 0.9604, 3.064, -1.019, -3.5, 1.431, 0.3848, 1.067, -9.84, -2.406, -9.734, 3.104, -10.37, -0.8066, 1.566, 2.154, 2.205, 2.656, 2.043, -2.008, -0.0007906, 0.3792, 0.841, 2.654, 2.482, -1.693, -0.657, 1.124, -0.929, 1.951, -0.4846, -1.885, 0.05222, 0.6914, -4.797, 0.5645, -1.521, 1.846, -2.84, -5.344], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.04074, -0.02013, 1.932, -0.1295, -0.986, 0.6196, -0.09235, 1.854, -3.088, -3.502, -1.423, -2.45, 2.074, -1.217, -1.422, 1.162, -2.123, -2.09, -4.043, 0.4163, 2.125, 0.4663, -19.94, -2.135, 0.04648, 1.763, -0.4993, 1.658, 1.235, -2.979, -1.511, -3.154, -7.836, 2.482, 0.3406, -0.19, -0.465, 1.906, 1.021, 1.555, -0.3574, 2.611, 0.0401, -0.49, 0.6484, -0.7417, -1.984, 1.928, 1.758, -3.316], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0666, -0.013626, 1.285, -0.5166, -0.0832, -0.0723, 0.2932, -0.2429, -0.454, -0.2424, -0.504, 0.399, -0.2323, -0.0369, 0.03796, 0.1403, 0.1263, -0.3037, -0.0758, -0.2756, -0.3154, 0.0893, -8.234, 0.1292, -0.1339, -0.07324, 0.2207, -0.7393, 0.3103, 0.2362, 0.25, 0.1744, -0.2766, 0.2166, 0.01588, -0.2695, -0.3738, 0.2314, -0.2178, 0.08057, -0.04312, -0.1925, -0.0315, 0.343, -0.1783, 0.26, 0.1562, -0.173, -0.1749, 0.1295], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.6074, -5.777, -3.46, 4.516, -3.229, -0.2218, 1.924, 2.707, -6.69, -5.77, -2.559, 2.613, -1.747, -0.2937, 1.028, -0.6016, 0.0939, -2.951, 2.01, -12.14, -1.093, -5.695, -32.22, -2.014, 1.559, 2.623, 1.586, -5.72, 2.553, -0.497, -2.162, -0.3818, -1.274, 3.28, -1.648, -0.527, 1.749, 1.814, 1.551, -5.887, -0.4133, -2.371, -0.0448, 0.9243, -1.647, 1.707, 0.272, 0.779, 2.863, -1.182], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -3.328, 1.75, -2.889, 3.361, -2.146, -0.9175, 3.775, 2.975, 0.9727, -4.04, 3.08, 1.758, 1.94, -8.34, -4.926, -0.293, -4.246, -0.9893, -2.553, -0.03177, -4.746, 0.609, -18.89, -0.1641, 2.342, 1.28, 2.527, 4.504, 3.146, -0.467, -0.9155, 3.223, 0.001057, -5.664, 0.1858, 2.709, -0.03525, 3.066, 0.2812, -1.126, -0.5923, 1.773, 0.04092, 3.25, 1.483, 0.4868, 1.498, 2.594, 1.464, -0.4812], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4736, 0.02979, 1.06, -0.442, -0.11926, -0.0437, 0.12494, 0.0859, 0.4878, -0.1704, -0.4055, 0.4277, -0.3323, -0.01336, -0.02657, -0.1111, -0.1267, -1.013, -0.1054, -2.771, 0.09125, 0.1587, -0.0374, -0.08203, -0.08887, 0.1598, -0.6587, -0.0647, 0.1945, -0.1313, 0.0319, 0.0611, -0.355, 0.0573, -0.7656, -1.5, 0.2283, 0.316, -0.514, 0.1812, -0.03195, -0.3901, 0.00714, -0.1724, -1.007, 0.8086, 0.07904, -0.421, -1.21, -0.2269], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.09863, -0.7886, 1.373, 0.2202, -0.11163, -0.4648, 0.289, -0.2191, -0.006004, 0.06537, -0.05685, -0.6943, 0.2651, -1.077, 0.0471, -0.3132, -0.601, -1.154, -0.1136, -2.008, 0.2283, -0.1332, -3.52e-05, -0.7485, -0.2532, -1.03, -1.971, -0.9414, -0.228, 0.2462, 0.2291, 0.4067, 0.167, 0.11774, 0.1547, -2.908, -0.7954, 0.995, -3.404, -0.2227, -0.05136, 0.3418, 0.001036, -0.5654, -0.213, 0.671, 0.0468, 0.2559, 0.1752, -1.867], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2026, -0.03934, -0.3567, 0.04382, 0.013664, -0.03467, 0.0007844, 0.157, 0.01028, -0.12354, 0.0994, -0.215, -0.1743, -0.00889, -0.02608, 0.04477, -1.299, 0.01596, 0.0783, -0.526, -0.0618, 0.069, -0.1898, 0.013695, -0.04123, -0.1495, -0.891, -0.0695, -0.00539, -0.00498, 0.0306, -0.04318, -0.05414, 0.01199, 0.05853, -0.554, -0.08044, 0.00962, -0.03928, 0.0739, -0.01668, 0.08124, -0.04144, 0.00964, 0.0245, 0.1984, -0.04327, 0.0413, -0.03568, -0.002731], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1644, 8.58e-05, 2.178, -1.016, -0.157, -0.11316, 0.512, -0.4182, -0.748, -0.4666, -0.9556, 0.844, -0.2467, -0.1799, -0.1234, 0.2052, 0.1881, -0.5874, -0.1687, -0.4944, -0.622, 0.1694, -13.766, 0.231, -0.2954, -0.04544, 0.525, -1.467, 0.4985, 0.5073, 0.4307, 0.1992, -0.7134, 0.3374, 0.05893, -0.4824, -0.556, 0.3516, -0.2925, 0.1741, -0.06192, -0.2952, -0.011765, 0.4326, -0.2905, 0.4849, 0.275, -0.2487, -0.3113, 0.193], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.153, 0.4429, -1.9375, 1.165, -0.0169, 0.5537, -0.4075, 0.9644, -0.4094, 0.1729, 0.3792, 0.2812, 0.2593, 0.846, 0.5063, 0.525, 0.2241, -0.3438, -0.6353, 0.3745, 0.535, -0.2205, -4.812, -0.887, 0.5107, 1.27, 0.78, 0.6553, 0.6763, -0.999, -1.92, -0.01918, -0.582, -0.0771, 0.2637, -0.3103, 1.292, 0.8213, 0.4004, -0.9053, -0.229, -0.2974, -0.01588, 0.3318, 0.309, -0.485, 0.4248, 0.3843, 0.4978, 0.2072], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8965, -1.486, 0.0185, -2.412, -1.774, -2.094, -1.703, -5.066, -1.072, 1.219, -0.4343, -1.331, -2.63, -0.05307, 0.2932, 0.69, -0.1676, -1.134, -1.567, -4.94, 0.3333, -1.914, -3.64, -1.647, -2.162, -2.963, -1.1045, -3.525, -4.984, -1.575, 0.921, 1.361, -2.445, -0.5967, -2.715, -5.01, -2.43, -0.564, -0.8833, -3.244, -0.00973, -0.3555, 0.03098, 0.8105, -1.615, -1.368, -2.805, -2.156, -3.635, 0.363], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2043, -0.501, -8.414, 2.83, -2.854, -0.75, 2.87, 1.165, -0.2996, -1.282, 2.928, 1.369, 0.753, -1.48, 1.076, 1.986, -0.782, 2.303, 0.9146, -11.74, -1.981, -1.786, -13.1, -6.633, -1.565, 2.074, 1.125, 3.89, 1.625, -3.217, -0.889, -1.237, -1.095, -0.6206, -0.9956, 3.453, 2.438, 3.959, 0.3472, -3.791, -0.4397, 0.6616, -0.00991, -0.7695, -1.251, -0.3005, 0.9023, 0.5923, 2.408, -4.234], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.09314, 0.03027, -0.311, -0.2352, -0.02213, -0.05347, 0.0501, -0.03087, 0.04547, -0.03665, 0.06204, -0.06885, 0.001358, -0.01418, 0.06866, 0.004326, -0.02661, -0.03452, -0.007515, 0.0912, -0.02849, 0.00619, -0.2969, 0.02068, -0.0088, -0.01374, -0.4963, 0.02756, 0.05896, 0.00579, 0.03278, 0.1783, -0.0953, 0.07263, 0.04053, 0.10236, -0.02145, -0.105, 0.01529, -0.01482, -0.02644, -0.02075, 0.01639, -0.09216, 0.048, 0.11835, -0.006584, -0.02846, -0.04126, 0.05667], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -2.322, -0.346, 4.164, -0.393, -0.1707, -0.8, -0.637, -0.2157, 1.079, -0.2206, -0.11725, -0.926, -0.3232, 0.01479, -0.577, 0.1813, -0.1256, -0.6577, -0.07385, -0.462, -2.158, -0.09564, 0.1925, 0.4885, 0.2211, -0.5376, -0.1997, -0.3044, -0.7637, 0.6685, 0.2776, 0.3071, -2.672, 0.3542, -0.0734, -0.162, 0.1442, 0.244, -0.3096, -1.133, -0.05417, 0.001748, -0.01316, 1.206, 0.6304, -0.3462, -0.4277, 0.2559, 0.01904, 0.302], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.258, 0.2147, -0.3796, 0.6226, -0.3936, 0.03854, 1.192, 0.7036, -0.8477, -0.0836, 0.3267, 0.01761, 0.4836, 0.1855, 0.1675, -1.059, -0.6123, 0.573, -0.687, 5.03e-05, 0.3171, 0.2065, -2.094, 0.0807, -0.637, 0.6646, -0.2546, 0.4658, -0.1487, -1.623, -0.35, 0.9565, 0.6953, 0.08044, -0.0633, 0.546, 0.3635, 0.378, 0.3389, -0.2507, -0.1295, 0.941, 0.02086, 0.479, -0.0374, 0.1108, -0.0718, 0.3252, 0.5444, -0.09064], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4722, -0.010445, 0.5913, -0.1254, -0.05862, -2.344, -0.1276, -0.1849, -0.1337, 0.07056, -0.2013, -0.06305, -0.12024, -0.02933, 0.0363, -0.000698, 0.01285, 0.05872, -0.0637, -0.002628, 0.11993, 0.05182, -0.1195, -0.010864, -0.0691, -0.2286, -0.514, -0.2427, 0.05798, -0.0765, 0.01551, 0.02977, -0.002256, 0.01619, -0.0193, -0.03915, -0.0425, -0.0835, -0.0665, 0.154, -0.01188, -0.1219, 0.01941, -0.1063, -1.283, 0.08813, 0.149, -0.0092, -0.08356, -0.02817], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.05585, -0.03958, 0.05594, -0.1521, -0.01852, -0.11237, 0.05792, 0.1984, 0.2659, -0.0846, -0.476, 0.1786, 0.03105, -0.1403, -0.0213, -0.02518, -0.07056, -0.2456, 0.05157, -0.744, 0.02318, 0.167, -0.1649, -0.01855, 0.09094, -0.1247, 0.1587, -0.1995, 0.1683, 0.1013, 0.08514, 0.02934, -0.0702, -0.1519, -0.0662, -2.648, 0.0535, 0.1606, -1.645, 0.11084, -0.01663, 0.03058, 0.00787, 0.04587, -0.6997, 0.4875, -0.1168, -0.1653, -0.3003, -0.1054], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.01563, -0.007244, 0.05228, -0.0007925, 0.03806, -0.01622, -0.02348, 0.0696, -0.0127, -0.003695, 0.01185, 0.01522, 0.003986, 0.01953, 0.002201, -0.001986, -0.00341, -0.03726, -0.005695, -0.02437, 0.02446, 0.03174, 0.006123, 0.0001643, 0.004047, -0.0464, -0.2578, -0.0257, 0.03925, 0.01599, 0.02802, -0.03017, -0.00284, 0.008385, -0.007637, 0.01572, 0.003805, -0.05417, -0.01119, 0.03253, -0.006077, 0.01953, 0.0306, -0.05936, 0.000633, 0.0665, -0.03915, -0.009384, -0.00825, 0.02335], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.452, 0.02429, 0.9893, 0.2856, -0.08887, -0.03714, -0.09625, -0.2764, -0.1067, 0.0679, -0.302, 0.10394, -0.1194, 0.00632, 0.03113, 0.022, 0.003105, -0.04892, -0.1256, -0.03497, 0.1004, 0.0871, -0.2312, 0.00985, -0.05768, 0.0999, -0.1785, 0.01857, 0.04373, -0.04367, 0.010925, 0.0783, -0.02744, 0.05646, 0.01386, -0.117, 0.03476, -0.0004184, -0.06042, 0.122, -0.02646, -0.0592, 0.0415, 0.02263, 0.0958, 0.307, 0.1792, 0.08307, -0.01461, -0.01613], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1153, 0.007225, 0.0979, 0.1796, 0.0003502, 0.01192, 0.0004516, 0.14, 0.057, 0.0742, 0.00871, -0.4211, 0.0642, -0.10034, -0.0708, -0.04932, -0.0497, -0.01382, -0.05423, 0.02263, -0.0615, 0.0905, 0.1927, 0.03824, 0.06384, 0.0811, -0.5894, 0.02898, -0.1144, 0.0091, -0.001904, -0.01738, -0.06042, 0.0343, -0.039, -1.15, 0.07153, -0.2656, 0.00866, -0.002106, -0.012146, 0.0719, 0.0316, -0.1602, -1.805, 0.291, -0.0525, -0.004654, -0.0438, -0.006523], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02199, 0.001478, 0.09564, 0.009026, -0.346, 0.00115, -0.02396, 0.05542, 0.00877, -0.0771, -0.003168, -0.0065, 0.03668, -0.0022, -0.961, -0.02838, 0.0002351, -0.005215, -0.000509, 0.1556, 0.11127, 0.01004, -8.01, -0.002356, -0.009674, -0.00288, 0.01538, 0.0743, -0.0842, 0.001272, -0.0008106, -0.1573, -0.06354, -0.1715, -0.004353, -0.00133, 0.02211, -0.00426, -0.0012245, -0.008705, 0.000516, 0.006668, -0.0333, -0.0747, 0.0721, -0.003464, 0.002813, 0.0006394, -0.003254, -0.007286], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.001632, -0.07666, 0.7944, 0.523, -0.2399, -0.0816, 0.4753, 0.1284, -0.4705, 0.2915, -0.2527, -0.602, -0.4885, 0.5737, 0.3333, 0.048, 0.1444, 0.05075, 0.01507, -0.5884, 0.0349, 0.2284, -1.433, 0.488, 0.2164, 0.03494, 0.0975, 0.4148, 0.03427, -0.1827, 0.05002, 0.0684, 0.282, 0.2964, -0.05438, 0.3472, -0.317, 0.1052, -0.1233, 0.2837, -0.05716, -0.05255, 0.005295, 0.7236, 0.1901, -1.607, 0.014946, 0.05844, 0.2644, 0.04404], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1162, -0.02255, 0.1832, -0.04645, -0.04202, -0.006786, -0.05447, 0.1013, 0.01134, -0.02988, -0.1564, -0.1274, 0.0479, 0.075, -0.03873, 0.003696, -0.0345, -0.0002308, -0.01993, 0.00252, 0.0518, -0.009865, 0.113, -0.03647, -0.02489, -0.2255, -0.1448, -0.04587, -0.04382, -0.1437, 0.01048, -0.06125, -0.04178, -0.0344, 0.000847, -0.02531, -0.2134, -0.0746, -0.0954, 0.03418, -0.007603, -0.002674, -0.000247, -0.05402, 0.003904, -0.068, -0.0456, 0.009, -0.008995, 0.02184], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.05984, -0.0543, 0.04965, -0.0197, -0.02536, -0.0758, -0.0904, 0.1748, -0.0651, 0.012314, -0.06793, -0.09424, -0.07697, 0.09143, 0.06555, 0.01121, 0.00894, -0.1805, -0.04044, -0.0253, -1.697, 0.0694, -0.3103, 0.0207, -0.07544, -0.0307, 0.127, -0.05356, 0.03867, 0.01976, 0.00971, -2.836, 0.0369, 0.03061, -0.00973, -0.0492, -0.03105, -0.03415, -0.04327, -2.104, -0.01143, 0.0781, -0.03102, 0.0487, -0.02463, 0.077, -0.099, -0.2368, 0.00555, 0.0707], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.954, 0.4717, 0.1299, -1.645, 0.374, 0.3823, -1.352, -0.6743, 1.175, -0.0501, -2.307, -1.177, -0.501, 1.25, -0.728, 0.02534, 0.278, -2.168, -0.619, -0.1484, -0.9517, 0.75, -1.567, 0.3564, -0.4058, -0.0524, -1.552, -0.824, 0.1564, -0.3726, -0.2717, 0.777, -0.691, -1.042, -0.3582, -1.274, 0.8306, -1.146, -4.52, -1.598, -0.1061, 0.02786, -0.00747, -0.692, -1.534, -0.9077, -0.442, -0.2456, -0.9385, -0.2605], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0847, -0.007328, -0.877, -0.06192, -0.1263, -0.02045, 0.1085, -0.05368, -0.0757, 0.02493, 0.04135, 0.00786, -0.0748, -0.005917, -0.05304, 0.04877, -0.08484, 0.010704, 0.02213, -0.136, -0.2002, -0.03284, 0.11096, 0.03296, -0.0459, -0.01261, -0.4321, 0.05237, -0.09827, 0.0112, 0.02173, -0.02815, -0.04254, 0.09814, 0.011955, 0.0767, -0.1142, 0.1025, 0.013115, 0.059, -0.012474, -0.000993, 0.0432, -0.02872, 0.02802, 0.066, -0.02455, -0.010956, -0.01448, 0.0365], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.584, -0.683, -0.0425, -0.5176, -0.3997, -0.409, -1.735, -0.867, -1.67, -0.2279, -1.078, -1.721, -0.567, -0.1338, -1.856, -1.117, -1.58, -0.749, -0.08026, -0.005978, 0.03366, 0.1125, -0.144, 0.12286, -0.3093, -0.1065, -3.592, -1.243, 0.288, -1.433, -0.748, -2.004, -0.1183, -0.627, 0.1871, -0.3672, -0.7856, -1.4795, -0.984, -0.2559, -0.03613, 0.1887, 0.01851, -0.7593, 0.122, -0.2559, 0.0929, -1.384, -0.3372, -0.7505], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8022, -0.02129, -0.859, -0.3452, 0.1863, -0.05887, -0.894, 0.4607, 1.03, 0.1034, -0.574, -1.314, 0.6406, 0.1769, 0.014015, -0.344, 0.01472, -0.3882, 0.2246, 0.3032, 0.0463, -0.4646, 0.3694, -0.809, -0.362, -1.243, -2.271, -0.1548, -0.2625, 0.4055, -0.1056, -1.398, 0.009125, -1.065, -0.0718, 0.1982, -1.153, -1.093, -0.2311, -0.1721, -0.004517, 0.2896, -0.02704, -0.4517, 0.1497, -0.2058, -0.563, 0.0822, -0.1098, 0.3489], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.398, 1.229, -3.055, -0.8438, -3.14, -1.959, -0.2524, 0.503, -4.316, 0.3208, -2.62, 1.5205, 3.674, -0.131, -1.789, 0.852, -0.1818, 0.3337, -0.509, -10.64, 2.525, 1.567, -21.72, -2.55, 2.129, -0.0631, 3.795, -0.774, 1.831, 1.611, 1.036, 3.164, -6.145, -6.844, -4.246, 1.482, 1.216, 1.986, 0.2776, -6.945, -0.507, 1.067, -0.004967, 1.766, 2.443, 2.379, 0.876, 2.098, -3.607, -4.656], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.02347, -0.03268, 0.4216, 0.02809, -0.00451, -0.06287, 0.1182, -0.087, -0.2563, 0.0415, -0.3022, 0.08844, -0.2717, 0.0978, 0.2439, 0.0929, 0.1267, -0.1389, -0.04483, -0.1931, -0.05594, 0.05212, -1.008, 0.0712, -0.03293, -0.1283, -0.001792, -0.2122, 0.1912, -0.01462, 0.2, 0.077, 0.1752, 0.154, -0.02725, -0.0869, -0.2222, 0.2006, -0.1627, 0.07806, -0.03094, -0.05716, 0.02594, 0.272, -0.149, 0.2142, 0.059, -0.1582, -0.0661, 0.08264], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1659, 0.7964, -0.10254, 0.8813, 0.5356, -0.793, 0.634, 2.584, -0.8813, -1.395, -1.534, 0.4875, 0.4092, -2.918, -3.088, 0.1743, -3.64, -1.882, 0.0655, -0.591, -4.453, 0.4731, -5.88, -0.8945, 0.5054, -4.82, -3.912, -0.1558, 0.69, -3.611, 0.7896, 2.902, -5.0, -0.887, -0.745, -1.383, 1.554, 0.2256, 0.01184, 0.5894, -0.342, 0.279, -0.03677, 0.838, 0.872, 1.572, 0.897, 1.701, -0.1694, -5.562], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1704, -0.0292, 0.08923, -0.1022, 0.0637, 0.051, 0.013954, 0.1317, 0.01393, 0.0355, -0.08344, -1.849, -0.03192, -0.095, -0.01541, -0.0688, -0.0474, -0.04364, 0.004814, -0.08673, 0.04236, -0.1271, 0.0815, -0.03009, 0.0002134, -0.0357, -0.841, 0.05994, 0.05817, 0.01784, -0.09656, 0.04938, -0.04752, -0.04514, -0.1307, -0.2327, 0.2217, -0.03857, 0.02567, 0.0929, -0.003342, -0.02638, -0.02554, -0.04272, -0.442, -0.1967, -0.00869, -0.4858, -0.0334, -0.06573], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.551, -3.525, -2.832, -0.535, -2.135, -0.1056, -1.3, -1.087, -3.74, -2.938, -0.699, -4.9, 0.0857, -1.538, -3.6, 0.1095, -2.592, -5.06, -3.11, -0.553, -2.725, -4.0, -4.727, -0.4788, 0.3857, -1.441, -4.117, -1.934, -1.711, 0.595, -0.03564, -1.774, -3.428, -3.617, -2.63, 1.193, -2.047, -2.154, -0.5234, -2.303, -0.007812, -3.396, 0.0364, 1.191, -2.287, -5.47, 0.1812, -1.996, -0.3628, -2.236], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.656, -1.08, -1.379, 4.65, -3.322, -0.1566, 4.082, 0.11365, -4.457, -1.514, 2.627, 1.63, 0.699, -1.339, -5.598, 1.307, -1.112, -1.533, -4.254, -5.934, -1.022, 1.715, -16.17, -0.4717, -4.082, 2.488, 1.923, -0.5312, 0.375, -5.582, -3.064, -3.326, 1.009, 3.203, 0.3047, 2.652, 1.072, 3.771, 0.9897, -3.502, -0.552, 2.781, -0.0195, -0.813, 0.3008, 0.2676, 1.685, 2.264, 2.959, -2.521], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -5.996, -3.994, 0.0393, -3.557, -0.1317, 0.4453, 2.441, -3.496, -5.83, -2.18, -3.72, -2.842, -6.24, -2.516, 0.3672, -2.863, 0.3733, -9.29, 0.2153, -0.795, -4.367, -5.402, -1.728, -4.1, -5.758, -3.271, -3.291, -2.336, -4.52, 1.419, -0.183, -3.682, -1.513, -1.315, 1.01, -4.06, -3.895, -1.809, 0.05338, 1.52, -0.09375, -0.528, -0.006504, -0.789, 0.0218, -3.271, 1.361, -3.982, -2.057, -2.701], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1627, -0.05963, 0.03452, -0.4966, -0.01932, 0.011246, -0.00786, -0.0879, 0.08923, -0.0438, 0.015076, -0.0056, 0.02098, -0.006195, 0.03998, -0.02126, -0.006874, -0.039, -0.012665, -0.01765, 0.05127, 0.03015, -0.0735, 0.0714, 0.0586, -0.1438, 0.2045, 0.05145, 0.0314, 0.04437, -0.01516, -0.02097, -0.03632, -0.00823, -0.0133, 0.02199, 0.02722, -0.01772, -0.1309, -0.0001507, -0.00482, -0.0632, 0.04163, -0.0195, 0.02048, 0.04462, -0.02342, -0.00998, -0.1166, -0.00909]]
[0.39295, 0.997738, 0.756394, 0.256375, -1.30637, -0.538754, 1.38399, 1.44316, -2.61516, 0.659353, 0.501276, 3.20963, -3.07077, -0.112738, -0.71589, -2.71677, 1.94251, -1.08052, -1.48388, 0.450103, 1.52378, 1.76112, 3.96625, 0.505118, 1.78699, -4.1065, 2.33801, 0.928816, 1.31198, 0.637049, -0.129157, 1.22952, 0.0353268, 1.06002, 0.306898, 2.60403, 1.09507, 0.348924, 0.65814, 1.79741, 1.29256, -0.906714, -0.479971, 2.79724, -0.643215, 0.296624, 1.09116, -2.92566, -0.943549, 0.0506574, 0.393, 0.9976, 0.7563, 0.2563, -1.307, -0.5386, 1.384, 1.443, -2.615, 0.659, 0.5015, 3.209, -3.07, -0.11273, -0.716, -2.717, 1.942, -1.08, -1.483, 0.4502, 1.523, 1.761, 3.967, 0.505, 1.787, -4.105, 2.338, 0.9287, 1.312, 0.637, -0.1292, 1.2295, 0.03534, 1.06, 0.307, 2.604, 1.095, 0.3489, 0.658, 1.798, 1.293, -0.9067, -0.48, 2.797, -0.643, 0.2966, 1.091, -2.926, -0.9434, 0.05066]
Affine
[[-0.00155985, 0.00128131, -0.00769201, 0.00451885, 0.00595751, 0.00277981, -0.0267094, -0.0102375, 0.00418965, 0.00245056, -0.00424739, -0.00542148, 0.00358403, -0.00595095, 0.00344086, 0.00530907, -0.0301346, 0.00676648, 0.00427268, 0.00746904, 0.00341472, 0.00715299, 0.0149037, 0.00560669, -0.00977693, 0.0021625, 0.00863977, -0.0116407, 0.000927126, -0.000651562, 0.000291936, 0.00283613, -0.00717102, -0.00189348, -0.00232205, 0.0130589, -0.00108153, -0.00294337, -0.0145215, 0.00246308, -0.0859876, -0.00642287, 0.00236564, 0.0185526, 0.00475507, 0.0168826, -0.00704391, 0.00304498, -0.003237, -0.00164481, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.00472962, 0.0130764, 0.000385725, -9.76579e-05, 0.000348741, 0.000298611, 8.6113e-05, 0.000309384, 0.00081905, -0.00594446, 0.000922396, 0.00164132, -1.51506e-05, -0.000538399, -8.09337e-05, 0.00104843, 0.000326256, -6.32534e-05, 0.000328201, 0.00551099, 0.00377765, 0.00775338, 0.000496795, -0.000200413, 0.000423559, -6.97769e-06, 0.00558596, 0.000146429, 0.00141166, 0.0156264, -0.000466925, 0.00697811, -0.0115806, 0.00683788, -0.000853254, -0.000259047, -0.00332087, -0.0041863, 0.000919542, 0.00416124, -0.0177645, 0.00518867, 0.000683, 0.000797528, 0.000483301, 0.014602, 0.000367253, 3.35491e-05, -0.000478478, -0.0022988, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.00938346, -0.000448526, 0.000479636, 0.000128095, -0.000250958, 0.0146898, -5.90929e-05, 0.00148195, -0.00117431, 0.0130619, 0.000241145, 0.00478612, -0.000708758, -0.000331655, -0.000291108, 0.000713889, 0.00111405, -0.000277316, -0.000206248, 0.00205985, 0.000284139, 0.00920675, -0.00144232, -0.00107623, 9.37641e-05, -0.000174898, 0.00149245, 0.000324019, 0.000492915, -0.0003603, 0.00345686, 0.00735419, -0.000876897, 0.00883444, 0.000694406, -0.000130638, 0.0109197, -7.32652e-05, -0.00290589, -0.00188332, 0.0349108, -0.00104251, -0.000743149, -0.000417363, -0.00108572, 0.0128879, -7.81387e-05, -0.000905251, 0.00017762, 0.0011043, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.00114564, 0.0129408, -5.27731e-05, 2.11665e-05, 7.21309e-05, -0.00248519, 0.00014919, 0.000468927, 0.000369674, -0.00776651, 0.00128702, 0.00223123, -0.000159824, -0.000493929, -0.000293499, 0.00251592, -0.000539151, -3.05033e-05, 0.00143068, 0.00887454, 0.00745036, 0.00837764, 0.00123957, 0.000143732, 0.000920793, -0.000302962, 0.00527426, 0.000385745, 0.000832626, 0.0163979, -0.00651481, 0.00520888, -0.013733, 0.00887872, -0.00197643, 0.000225694, -0.00228913, -0.00385856, 0.000523892, 0.00334055, -0.0181401, 0.00165452, 0.000588709, 0.00123491, 0.00084172, 0.00968923, -0.000242375, 0.000335452, 0.000379803, -0.00186115, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.011747, 0.00105425, -0.00077582, -0.000199884, -6.60312e-05, -0.00511343, -0.00112731, 0.00025654, 0.000383669, 0.0137945, 0.00115088, 0.00142459, -3.80058e-06, 0.000392277, 0.000198395, 0.000767721, -0.00174117, 0.000228906, 0.000156255, 0.00118347, 0.00532779, 0.00606406, 0.00143667, -2.25062e-06, 0.000577626, -5.89258e-05, 0.00253088, -0.00130827, 0.00153724, -0.00232212, 0.0151652, 0.0132102, -0.000689773, 0.00551526, -0.00215743, 0.000140307, 0.0123565, -0.00182586, 0.00117617, 0.00365097, -0.0200274, -0.00237904, 0.000392339, 0.00128922, -6.63669e-05, 0.00816028, -0.000279414, 0.00109692, -0.000681497, 0.0123331, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.00156, 0.001282, -0.00769, 0.00452, 0.00596, 0.002779, -0.0267, -0.01024, 0.00419, 0.00245, -0.004246, -0.00542, 0.003584, -0.00595, 0.00344, 0.00531, -0.03014, 0.006767, 0.004272, 0.00747, 0.003414, 0.007153, 0.0149, 0.005608, -0.00977, 0.002163, 0.00864, -0.01164, 0.000927, -0.0006514, 0.0002918, 0.002836, -0.00717, -0.001893, -0.002321, 0.01306, -0.001081, -0.002943, -0.01452, 0.002462, -0.086, -0.006424, 0.002365, 0.01855, 0.004757, 0.01688, -0.007046, 0.003044, -0.003237, -0.001645], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.00473, 0.01308, 0.0003858, -9.763e-05, 0.0003488, 0.0002985, 8.61e-05, 0.0003095, 0.000819, -0.005943, 0.000922, 0.001641, -1.514e-05, -0.0005383, -8.094e-05, 0.001048, 0.0003262, -6.324e-05, 0.0003283, 0.005512, 0.003778, 0.007755, 0.000497, -0.0002004, 0.0004237, -7e-06, 0.005585, 0.0001464, 0.001411, 0.01563, -0.0004668, 0.006977, -0.01158, 0.00684, -0.000853, -0.0002592, -0.00332, -0.004185, 0.0009193, 0.00416, -0.01776, 0.005188, 0.000683, 0.0007977, 0.0004833, 0.0146, 0.0003672, 3.356e-05, -0.0004785, -0.002298], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.009384, -0.0004485, 0.0004797, 0.0001281, -0.000251, 0.01469, -5.907e-05, 0.001482, -0.001174, 0.01306, 0.0002412, 0.004787, -0.0007086, -0.0003316, -0.000291, 0.000714, 0.001114, -0.0002773, -0.0002062, 0.00206, 0.0002842, 0.00921, -0.001442, -0.001077, 9.376e-05, -0.0001749, 0.0014925, 0.000324, 0.000493, -0.0003603, 0.003456, 0.007355, -0.000877, 0.008835, 0.0006943, -0.0001307, 0.01092, -7.325e-05, -0.002907, -0.0018835, 0.0349, -0.001042, -0.000743, -0.0004175, -0.001085, 0.012886, -7.814e-05, -0.000905, 0.0001776, 0.001104], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.001145, 0.01294, -5.275e-05, 2.116e-05, 7.21e-05, -0.002485, 0.0001491, 0.000469, 0.0003698, -0.007767, 0.001287, 0.002232, -0.0001599, -0.000494, -0.0002935, 0.002516, -0.0005393, -3.05e-05, 0.0014305, 0.00887, 0.00745, 0.00838, 0.00124, 0.0001438, 0.000921, -0.000303, 0.005276, 0.0003858, 0.0008326, 0.0164, -0.006516, 0.005207, -0.01373, 0.00888, -0.001976, 0.0002257, -0.002289, -0.003859, 0.000524, 0.00334, -0.01814, 0.001655, 0.000589, 0.001235, 0.0008416, 0.00969, -0.0002424, 0.0003355, 0.0003798, -0.001862], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.01175, 0.001054, -0.000776, -0.0001999, -6.604e-05, -0.00511, -0.001127, 0.0002565, 0.0003836, 0.013794, 0.001151, 0.001425, -3.8e-06, 0.0003922, 0.0001984, 0.0007677, -0.001741, 0.0002289, 0.0001563, 0.0011835, 0.00533, 0.006065, 0.001436, -2.26e-06, 0.0005774, -5.895e-05, 0.002531, -0.001308, 0.001537, -0.002321, 0.01517, 0.01321, -0.00069, 0.005516, -0.002157, 0.0001403, 0.01236, -0.001826, 0.001176, 0.00365, -0.02003, -0.002378, 0.0003924, 0.001289, -6.634e-05, 0.00816, -0.0002794, 0.001097, -0.0006814, 0.01234]]
[-0.0195876, 0.0187768, -0.0201717, 0.0195976, -0.0178242, -0.01959, 0.01878, -0.02017, 0.01959, -0.01782]
| 17,227.772727
| 73,194
| 0.549322
| 104,282
| 379,011
| 1.9965
| 0.177509
| 0.488802
| 0.725926
| 0.958218
| 0.248152
| 0.247945
| 0.247945
| 0.247945
| 0.247945
| 0.247945
| 0
| 0.636638
| 0.137508
| 379,011
| 21
| 73,195
| 18,048.142857
| 0.000263
| 0
| 0
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
a890537862fda9e8995123ae5e3a91d6337582a3
| 12,844
|
py
|
Python
|
python-django-piscine/rush00/game/views.py
|
maxdesalle/libft
|
8845656e1f5cc1fec052cf97fc8f5839b2b590a8
|
[
"Unlicense"
] | 3
|
2021-01-06T13:50:12.000Z
|
2022-02-28T09:16:15.000Z
|
python-django-piscine/rush00/game/views.py
|
maxdesalle/libft
|
8845656e1f5cc1fec052cf97fc8f5839b2b590a8
|
[
"Unlicense"
] | null | null | null |
python-django-piscine/rush00/game/views.py
|
maxdesalle/libft
|
8845656e1f5cc1fec052cf97fc8f5839b2b590a8
|
[
"Unlicense"
] | 1
|
2020-11-23T12:58:18.000Z
|
2020-11-23T12:58:18.000Z
|
from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.forms import ChoiceField
from django import forms
from game.models import gameGestion
from shutil import copyfile
import random
import pickle
def titlescreen(request):
return render(request, "titlescreen.html")
def worldmap(request):
with open('filename.pickle', 'rb') as handle:
position = pickle.load(handle)
history = position
position = position['a']
a = 0
for key, value in position.items():
if (a < key):
a = key
database = {'position': position[key]}
dbworld = {'position': position[a], 'movieballs': history['e']['movieballs'], 'moviemonid': history['f']['moviemonid'], 'movieballcatch': history['g']['movieballcatch'], 'moviemoncatch': history['h']['moviemoncatch']}
return render(request, "worldmap.html", dbworld)
def right_move(request):
with open('filename.pickle', 'rb') as handle:
position = pickle.load(handle)
history = position
history['g']['movieballcatch'] = False
history['h']['moviemoncatch'] = False
a = 0
for key, value in history['a'].items():
if (a < key):
a = key
location = value
if history['a'][a] % 10 == 0:
pass
else:
a += 1
location += 1
history['a'].update({a: location})
x = 0
for key, value in history['c'].items():
if (history['a'][a] == value):
history['e']['movieballs'] += 1
history['g']['movieballcatch'] = True
x = 1
break
if (x == 1):
del history['c'][key]
for key, value in history['b'].items():
if (history['a'][a] == value):
history['f']['moviemonid'] = key
history['h']['moviemoncatch'] = True
break
with open('filename.pickle', 'wb') as handle:
pickle.dump(history, handle, protocol=pickle.HIGHEST_PROTOCOL)
return redirect('http://127.0.0.1:8000/worldmap')
def left_move(request):
with open('filename.pickle', 'rb') as handle:
position = pickle.load(handle)
history = position
history['g']['movieballcatch'] = False
history['h']['moviemoncatch'] = False
a = 0
for key, value in history['a'].items():
if (a < key):
a = key
location = value
if history['a'][a] % 10 == 1:
pass
else:
a += 1
location -= 1
history['a'].update({a: location})
x = 0
for key, value in history['c'].items():
if (history['a'][a] == value):
history['e']['movieballs'] += 1
history['g']['movieballcatch'] = True
x = 1
break
if (x == 1):
del history['c'][key]
for key, value in history['b'].items():
if (history['a'][a] == value):
history['f']['moviemonid'] = key
history['h']['moviemoncatch'] = True
break
with open('filename.pickle', 'wb') as handle:
pickle.dump(position, handle, protocol=pickle.HIGHEST_PROTOCOL)
return redirect('http://127.0.0.1:8000/worldmap')
def up_move(request):
with open('filename.pickle', 'rb') as handle:
position = pickle.load(handle)
history = position
history['g']['movieballcatch'] = False
history['h']['moviemoncatch'] = False
a = 0
for key, value in history['a'].items():
if (a < key):
a = key
location = value
if history['a'][a] in range(1,11):
pass
else:
a += 1
location -= 10
history['a'].update({a: location})
x = 0
for key, value in history['c'].items():
if (history['a'][a] == value):
history['e']['movieballs'] += 1
history['g']['movieballcatch'] = True
x = 1
break
if (x == 1):
del history['c'][key]
for key, value in history['b'].items():
if (history['a'][a] == value):
history['f']['moviemonid'] = key
history['h']['moviemoncatch'] = True
break
with open('filename.pickle', 'wb') as handle:
pickle.dump(position, handle, protocol=pickle.HIGHEST_PROTOCOL)
return redirect('http://127.0.0.1:8000/worldmap')
def down_move(request):
with open('filename.pickle', 'rb') as handle:
position = pickle.load(handle)
history = position
history['g']['movieballcatch'] = False
history['h']['moviemoncatch'] = False
a = 0
for key, value in history['a'].items():
if (a < key):
a = key
location = value
if history['a'][a] in range(91,101):
pass
else:
a += 1
location += 10
history['a'].update({a: location})
x = 0
for key, value in history['c'].items():
if (history['a'][a] == value):
history['e']['movieballs'] += 1
history['g']['movieballcatch'] = True
x = 1
break
if (x == 1):
del history['c'][key]
for key, value in history['b'].items():
if (history['a'][a] == value):
history['f']['moviemonid'] = key
history['h']['moviemoncatch'] = True
break
with open('filename.pickle', 'wb') as handle:
pickle.dump(position, handle, protocol=pickle.HIGHEST_PROTOCOL)
return redirect('http://127.0.0.1:8000/worldmap')
def title_redirect(request):
return redirect('http://127.0.0.1:8000/')
def world_redirect(request):
return redirect('http://127.0.0.1:8000/worldmap')
def battle_render(request):
with open('filename.pickle', 'rb') as handle:
history = pickle.load(handle)
movie = gameGestion()
value = history['f']['moviemonid']
movie_dict = movie.get_movie(value)
history['f']['imdbrating'] = movie_dict['imdbRating']
dbworld = {'movieballs': history['e']['movieballs'], 'moviemonid': history['f']['moviemonid'], 'movieballcatch': history['g']['movieballcatch'], 'moviemoncatch': history['h']['moviemoncatch'], 'capturerate': movie_dict['CaptureRate'], 'imdbrating': movie_dict['imdbRating'], 'poster': movie_dict['Poster'], 'titlemon': movie_dict['Title'], 'moviemoncaught': history['i']['moviemoncaught']}
with open('filename.pickle', 'wb') as handle:
pickle.dump(history, handle, protocol=pickle.HIGHEST_PROTOCOL)
return render(request, "getmovie.html", dbworld)
def battle(request):
# return render(request, "battle.html", {})
return HttpResponse("<h1>It works!</h1>")
def battle_attack(request):
with open('filename.pickle', 'rb') as handle:
db = pickle.load(handle)
db['e']['movieballs'] -= 1
valueOfMovie = float(db['f']['imdbrating'])
C = float(50 - (valueOfMovie * 10) + (db['d']['player_strength'] * 5))
if C in range (1, 90):
pass
elif C <= 1:
C = 1
elif C >= 90:
C = 90
a = random.randint(1, 100)
counter = 0
if (a in range(0, int(C) + 1)):
db['i']['moviemoncaught'] = True
db['j'].append(db['f']['moviemonid'])
else:
db['i']['moviemoncaught'] = False
history = db
with open('filename.pickle', 'wb') as handle:
pickle.dump(history, handle, protocol=pickle.HIGHEST_PROTOCOL)
return redirect('http://127.0.0.1:8000/battle/{}'.format(db['f']['moviemonid']))
def worldmap_return(request):
with open('filename.pickle', 'rb') as handle:
history = pickle.load(handle)
movieid = history['f']['moviemonid']
history['f']['moviemonid'] = None
history['f']['imdbrating'] = None
history['h']['moviemoncatch'] = False
history['i']['moviemoncaught'] = False
del history['b'][movieid]
with open('filename.pickle', 'wb') as handle:
pickle.dump(history, handle, protocol=pickle.HIGHEST_PROTOCOL)
return redirect('http://127.0.0.1:8000/worldmap')
def moviedex(request):
# return render(request, "moviedex.html", {})
return HttpResponse("<h1>It works!</h1>")
def option(request):
# return render(request, "option.html", {})
return render(request, "options.html")
def a_select(request):
# return render(request, "option.html", {})
return render(request, "options.html")
def save_a(request):
with open('filename.pickle', 'rb') as handle:
history = pickle.load(handle)
counter = 0
if (history['k']['selected'] == 1):
copyfile('filename.pickle', 'saved_game/slot_a.pickle')
for i in history['j']:
counter += 1
history['k']['captured_a'] = counter
history['k']['slot_a'] = True
if (history['k']['selected'] == 2):
copyfile('filename.pickle', 'saved_game/slot_b.pickle')
for i in history['j']:
counter += 1
history['k']['captured_b'] = counter
history['k']['slot_b'] = True
if (history['k']['selected'] == 3):
copyfile('filename.pickle', 'saved_game/slot_c.pickle')
for i in history['j']:
counter += 1
history['k']['captured_c'] = counter
history['k']['slot_c'] = True
with open('filename.pickle', 'wb') as handle:
pickle.dump(history, handle, protocol=pickle.HIGHEST_PROTOCOL)
return redirect('http://127.0.0.1:8000/options/save_game')
def save_bottom(request):
with open('filename.pickle', 'rb') as handle:
history = pickle.load(handle)
if (history['k']['selected'] < 3):
history['k']['selected'] += 1
with open('filename.pickle', 'wb') as handle:
pickle.dump(history, handle, protocol=pickle.HIGHEST_PROTOCOL)
return redirect('http://127.0.0.1:8000/options/save_game')
def save_top(request):
with open('filename.pickle', 'rb') as handle:
history = pickle.load(handle)
if (history['k']['selected'] > 1):
history['k']['selected'] -= 1
with open('filename.pickle', 'wb') as handle:
pickle.dump(history, handle, protocol=pickle.HIGHEST_PROTOCOL)
return redirect('http://127.0.0.1:8000/options/save_game')
def save(request):
with open('filename.pickle', 'rb') as handle:
history = pickle.load(handle)
d = history['k']
return render(request, "options_save_game.html", d)
def load(request):
with open('filename.pickle', 'rb') as handle:
history = pickle.load(handle)
d = history['k']
return render(request, "options_load_game.html", d)
def load_a(request):
with open('filename.pickle', 'rb') as handle:
history = pickle.load(handle)
counter = 0
if (history['k']['selected'] == 1):
copyfile('saved_game/slot_a.pickle', 'filename.pickle')
for i in history['j']:
counter += 1
history['k']['captured_a'] = counter
history['k']['loaded_b'] = False
history['k']['loaded_c'] = False
history['k']['loaded_a'] = True
history['k']['slot_a'] = True
if (history['k']['selected'] == 2):
copyfile('saved_game/slot_b.pickle', 'filename.pickle')
for i in history['j']:
counter += 1
history['k']['captured_b'] = counter
history['k']['loaded_a'] = False
history['k']['loaded_c'] = False
history['k']['loaded_b'] = True
history['k']['slot_b'] = True
if (history['k']['selected'] == 3):
copyfile('saved_game/slot_c.pickle', 'filename.pickle')
for i in history['j']:
counter += 1
history['k']['loaded_a'] = False
history['k']['loaded_b'] = False
history['k']['captured_c'] = counter
history['k']['loaded_c'] = True
history['k']['slot_c'] = True
with open('filename.pickle', 'wb') as handle:
pickle.dump(history, handle, protocol=pickle.HIGHEST_PROTOCOL)
return redirect('http://127.0.0.1:8000/options/load_game')
def load_top(request):
with open('filename.pickle', 'rb') as handle:
history = pickle.load(handle)
if (history['k']['selected'] > 1):
history['k']['selected'] -= 1
with open('filename.pickle', 'wb') as handle:
pickle.dump(history, handle, protocol=pickle.HIGHEST_PROTOCOL)
return redirect('http://127.0.0.1:8000/options/load_game')
def load_bottom(request):
with open('filename.pickle', 'rb') as handle:
history = pickle.load(handle)
if (history['k']['selected'] < 3):
history['k']['selected'] += 1
with open('filename.pickle', 'wb') as handle:
pickle.dump(history, handle, protocol=pickle.HIGHEST_PROTOCOL)
return redirect('http://127.0.0.1:8000/options/load_game')
def moviedex_render(request):
with open('filename.pickle', 'rb') as handle:
history = pickle.load(handle)
return render(request, "moviedex_render.html", history)
| 26.983193
| 393
| 0.578558
| 1,575
| 12,844
| 4.666032
| 0.081905
| 0.040278
| 0.065315
| 0.089808
| 0.81739
| 0.806776
| 0.791672
| 0.78446
| 0.764866
| 0.754252
| 0
| 0.02411
| 0.247586
| 12,844
| 475
| 394
| 27.04
| 0.736341
| 0.013158
| 0
| 0.732087
| 0
| 0
| 0.201026
| 0.014838
| 0
| 0
| 0
| 0
| 0
| 1
| 0.074766
| false
| 0.015576
| 0.024922
| 0.021807
| 0.174455
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a89587e695fb3f44d4ff4d3d41b4e32357c5669e
| 595
|
py
|
Python
|
Exe20_fatorial_melhorado.py
|
lucaslk122/Exercicios-python-estrutura-de-repeticao
|
1f203918e9bb8415128bb69f515240057b118a14
|
[
"MIT"
] | null | null | null |
Exe20_fatorial_melhorado.py
|
lucaslk122/Exercicios-python-estrutura-de-repeticao
|
1f203918e9bb8415128bb69f515240057b118a14
|
[
"MIT"
] | null | null | null |
Exe20_fatorial_melhorado.py
|
lucaslk122/Exercicios-python-estrutura-de-repeticao
|
1f203918e9bb8415128bb69f515240057b118a14
|
[
"MIT"
] | null | null | null |
import math
num = int(input("Digite um numero menor que 16: "))
while num > 16:
print("Numero invalido")
num = int(input("Digite um numero menor que 16: "))
print(f"o fatorial de {num} é {math.factorial(num)}")
resposta = input("Deseja calcular novamente? s/n: ").lower()
while resposta == "s":
num = int(input("Digite um numero menor que 16: "))
while num > 16:
print("Numero invalido")
num = int(input("Digite um numero menor que 16: "))
print(f"o fatorial de {num} é {math.factorial(num)}")
resposta = input("Deseja calcular novamente? s/n: ").lower()
| 39.666667
| 64
| 0.642017
| 89
| 595
| 4.292135
| 0.303371
| 0.062827
| 0.115183
| 0.17801
| 0.937173
| 0.937173
| 0.937173
| 0.937173
| 0.937173
| 0.937173
| 0
| 0.025263
| 0.201681
| 595
| 14
| 65
| 42.5
| 0.778947
| 0
| 0
| 0.857143
| 0
| 0
| 0.512605
| 0.070588
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.071429
| 0
| 0.071429
| 0.285714
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
a8aff4dc4b3a94c98f9397d0117ab58e9a9e7b65
| 11,200
|
py
|
Python
|
tests/Maps/test_init.py
|
aperezlebel/meta_analysis
|
10f983a4f3a94d385b9cd69a13c36ac610b1be93
|
[
"MIT"
] | null | null | null |
tests/Maps/test_init.py
|
aperezlebel/meta_analysis
|
10f983a4f3a94d385b9cd69a13c36ac610b1be93
|
[
"MIT"
] | null | null | null |
tests/Maps/test_init.py
|
aperezlebel/meta_analysis
|
10f983a4f3a94d385b9cd69a13c36ac610b1be93
|
[
"MIT"
] | null | null | null |
import unittest
from hypothesis import given, settings
import hypothesis.strategies as strats
import numpy as np
import scipy
from meta_analysis import Maps
from globals_test import gray_mask, template, atlas, df_ex, Ni, Nj, Nk, \
groupby_col, affine, array2D, array3D, array4D_1, array4D_2, \
example_maps, array2D_missmatch, array3D_missmatch, array4D_1_missmatch, \
array4D_2_missmatch, gray_mask_missmatch, fmri_img, gray_mask_2, atlas_2
class DataFrameInitTestCase(unittest.TestCase):
def test_allowed_template(self):
maps = Maps(df_ex, template=template, groupby_col=groupby_col)
self.assertEqual(maps.n_maps, 2)
self.assertFalse(maps._has_mask())
self.assertFalse(maps._has_atlas())
def test_allowed_template_mask(self):
maps = Maps(df_ex, template=template, groupby_col=groupby_col, mask=gray_mask)
self.assertTrue(maps._has_mask())
def test_allowed_template_atlas(self):
maps = Maps(df_ex, template=template, groupby_col=groupby_col, atlas=atlas)
self.assertTrue(maps._has_atlas())
def test_allowed_template_mask_atlas(self):
maps = Maps(df_ex, template=template, groupby_col=groupby_col, mask=gray_mask, atlas=atlas)
self.assertTrue(maps._has_mask())
self.assertTrue(maps._has_atlas())
def test_allowed_manual(self):
maps = Maps(df_ex, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine, groupby_col=groupby_col)
self.assertEqual(maps.n_maps, 2)
self.assertFalse(maps._has_mask())
self.assertFalse(maps._has_atlas())
def test_allowed_manual_mask(self):
maps = Maps(df_ex, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine, groupby_col=groupby_col, mask=gray_mask)
self.assertTrue(maps._has_mask())
def test_allowed_manual_atlas(self):
maps = Maps(df_ex, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine, groupby_col=groupby_col, atlas=atlas)
self.assertTrue(maps._has_atlas())
def test_allowed_manual_mask_atlas(self):
maps = Maps(df_ex, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine, groupby_col=groupby_col, mask=gray_mask, atlas=atlas)
self.assertTrue(maps._has_mask())
self.assertTrue(maps._has_atlas())
def test_forbidden(self):
with self.assertRaises(TypeError):
maps = Maps(df_ex)
with self.assertRaises(TypeError):
maps = Maps(df_ex, groupby_col=groupby_col)
with self.assertRaises(TypeError):
maps = Maps(df_ex, Ni=Ni, Nj=Nj, affine=affine, groupby_col=groupby_col)
with self.assertRaises(TypeError):
maps = Maps(df_ex, Ni=Ni, Nj=Nj, Nk=Nk, groupby_col=groupby_col)
with self.assertRaises(TypeError):
maps = Maps(df_ex, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine)
with self.assertRaises(TypeError):
maps = Maps(df_ex, Ni=Ni, Nj=Nj, Nk=Nk)
with self.assertRaises(TypeError):
maps = Maps(df_ex, template=template)
def test_mask_missmatch_manual(self):
with self.assertRaises(ValueError):
maps = Maps(df_ex, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine, groupby_col=groupby_col, mask=gray_mask_missmatch)
maps = Maps(df_ex, Ni=Ni-1, Nj=Nj, Nk=Nk, affine=affine, groupby_col=groupby_col, mask=gray_mask)
def test_atlas_missmatch_manual(self):
with self.assertRaises(ValueError):
maps = Maps(df_ex, template, groupby_col=groupby_col, mask=gray_mask_missmatch)
class ArrayInitTestCase(unittest.TestCase):
def test_allowed_2D_template(self):
maps = Maps(array2D, template=template)
def test_allowed_3D_template(self):
maps = Maps(array3D, template=template)
def test_allowed_4D_1_template(self):
maps = Maps(array4D_1, template=template)
def test_allowed_4D_2_template(self):
maps = Maps(array4D_2, template=template)
def test_allowed_2D_manual(self):
maps = Maps(array2D, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine)
def test_allowed_3D_manual(self):
maps = Maps(array3D, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine)
def test_allowed_4D_1_manual(self):
maps = Maps(array4D_1, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine)
def test_allowed_4D_2_manual(self):
maps = Maps(array4D_2, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine)
def test_allowed_2D_manual_no_affine(self):
maps = Maps(array2D, Ni=Ni, Nj=Nj, Nk=Nk)
def test_allowed_3D_manual_no_affine(self):
maps = Maps(array3D, Ni=Ni, Nj=Nj, Nk=Nk)
def test_allowed_4D_1_manual_no_affine(self):
maps = Maps(array4D_1, Ni=Ni, Nj=Nj, Nk=Nk)
def test_allowed_4D_2_manual_no_affine(self):
maps = Maps(array4D_2, Ni=Ni, Nj=Nj, Nk=Nk)
def test_allowed_3D_manual_no_data(self):
maps = Maps(array3D)
self.assertEqual(array3D.shape, (maps._Ni, maps._Nj, maps._Nk))
def test_allowed_4D_1_manual_no_data(self):
maps = Maps(array4D_1)
self.assertEqual(array4D_1.shape[:-1], (maps._Ni, maps._Nj, maps._Nk))
def test_allowed_4D_2_manual_no_data(self):
maps = Maps(array4D_2)
self.assertEqual(array4D_2.shape[:-1], (maps._Ni, maps._Nj, maps._Nk))
def test_forbidden(self):
with self.assertRaises(TypeError):
maps = Maps(array2D)
def test_forbidden_manual(self):
with self.assertRaises(TypeError):
maps = Maps(array2D, Ni=Ni, Nj=Nj, affine=affine)
with self.assertRaises(TypeError):
maps = Maps(array2D, Ni=Ni, Nj=Nj)
@given(di=strats.integers(min_value=-Ni+1, max_value=Ni-1),
dj=strats.integers(min_value=-Ni+1, max_value=Ni-1),
dk=strats.integers(min_value=-Ni+1, max_value=Ni-1))
@settings(max_examples=2)
def test_box_missmatch_manual(self, di, dj, dk):
if (di, dj, dk) == (0, 0, 0):
return
with self.assertRaises(ValueError):
maps = Maps(array2D, Ni=Ni+di, Nj=Nj+dj, Nk=Nk+dk, affine=affine)
# with self.assertRaises(TypeError):
# maps = Maps(array3D, Ni=Ni+di, Nj=Nj+dj, Nk=Nk+dk, affine=affine)
# with self.assertRaises(TypeError):
# maps = Maps(array4D_1, Ni=Ni+di, Nj=Nj+dj, Nk=Nk+dk, affine=affine)
# with self.assertRaises(TypeError):
# maps = Maps(array4D_2, Ni=Ni+di, Nj=Nj+dj, Nk=Nk+dk, affine=affine)
def test_box_missmatch_template(self):
with self.assertRaises(ValueError):
maps = Maps(array2D_missmatch, template=template)
with self.assertRaises(ValueError):
maps = Maps(array3D_missmatch, template=template)
with self.assertRaises(ValueError):
maps = Maps(array4D_1_missmatch, template=template)
with self.assertRaises(ValueError):
maps = Maps(array4D_2_missmatch, template=template)
def test_mask_missmatch_manual(self):
with self.assertRaises(ValueError):
maps = Maps(array2D, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine, mask=gray_mask_missmatch)
with self.assertRaises(ValueError):
maps = Maps(array3D, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine, mask=gray_mask_missmatch)
with self.assertRaises(ValueError):
maps = Maps(array4D_1, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine, mask=gray_mask_missmatch)
with self.assertRaises(ValueError):
maps = Maps(array4D_2, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine, mask=gray_mask_missmatch)
def test_mask_missmatch_template(self):
with self.assertRaises(ValueError):
maps = Maps(array2D, template=template, mask=gray_mask_missmatch)
with self.assertRaises(ValueError):
maps = Maps(array3D, template=template, mask=gray_mask_missmatch)
with self.assertRaises(ValueError):
maps = Maps(array4D_1, template=template, mask=gray_mask_missmatch)
with self.assertRaises(ValueError):
maps = Maps(array4D_2, template=template, mask=gray_mask_missmatch)
class ShapeInitTestCase(unittest.TestCase):
def setUp(self):
self.shape1D = Ni*Nj*Nk
self.shape2D = (Ni*Nj*Nk, 2)
self.shape1D_missmatch = Ni*Nj*Nk+1
self.shape2D_missmatch = (Ni*Nj*Nk+1, 2)
def test_allowed_1D_template(self):
maps = Maps(self.shape1D, template=template)
def test_allowed_2D_template(self):
maps = Maps(self.shape2D, template=template)
def test_allowed_1D_manual(self):
maps = Maps(self.shape1D, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine)
def test_allowed_2D_manual(self):
maps = Maps(self.shape2D, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine)
def test_allowed_1D_manual_no_affine(self):
maps = Maps(self.shape1D, Ni=Ni, Nj=Nj, Nk=Nk)
def test_allowed_2D_manual_no_affine(self):
maps = Maps(self.shape2D, Ni=Ni, Nj=Nj, Nk=Nk)
def test_forbidden(self):
with self.assertRaises(TypeError):
maps = Maps(self.shape1D)
with self.assertRaises(TypeError):
maps = Maps(self.shape2D)
def test_forbidden_manual(self):
with self.assertRaises(TypeError):
maps = Maps(self.shape1D, Ni=Ni, Nj=Nj, affine=affine)
with self.assertRaises(TypeError):
maps = Maps(self.shape2D, Ni=Ni, Nj=Nj, affine=affine)
def test_box_missmatch_manual(self):
with self.assertRaises(ValueError):
maps = Maps(self.shape1D_missmatch, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine)
with self.assertRaises(ValueError):
maps = Maps(self.shape2D_missmatch, Ni=Ni, Nj=Nj, Nk=Nk, affine=affine)
def test_box_missmatch_template(self):
with self.assertRaises(ValueError):
maps = Maps(self.shape1D_missmatch, template=template)
with self.assertRaises(ValueError):
maps = Maps(self.shape2D_missmatch, template=template)
class NoneInitTestCase(unittest.TestCase):
def test_allowed_template(self):
maps = Maps(template=template)
def test_allowed_manual(self):
maps = Maps(Ni=Ni, Nj=Nj, Nk=Nk, affine=affine, mask=gray_mask)
def test_allowed_template_mask(self):
maps = Maps(template=template)
def test_allowed_manual_mask(self):
maps = Maps(Ni=Ni, Nj=Nj, Nk=Nk, affine=affine, mask=gray_mask)
def test_allowed_template_atlas(self):
maps = Maps(template=template, atlas=atlas)
def test_allowed_manual_atlas(self):
maps = Maps(Ni=Ni, Nj=Nj, Nk=Nk, affine=affine, atlas=atlas)
def test_allowed_manual_no_affine(self):
maps = Maps(Ni=Ni, Nj=Nj, Nk=Nk)
def test_forbidden(self):
with self.assertRaises(TypeError):
maps = Maps()
with self.assertRaises(TypeError):
maps = Maps(Ni=Ni, Nj=Nj, affine=affine)
class ImgInitTestCase(unittest.TestCase):
def test_allowed(self):
maps = Maps(fmri_img)
def test_allowed_atlas(self):
maps = Maps(fmri_img, atlas=atlas_2)
def test_allowed_mask(self):
maps = Maps(fmri_img, mask=gray_mask_2)
def test_atlas_missmatch(self):
with self.assertRaises(ValueError):
maps = Maps(fmri_img, atlas=atlas)
def test_mask_missmatch(self):
with self.assertRaises(ValueError):
maps = Maps(fmri_img, mask=gray_mask)
| 41.481481
| 117
| 0.673839
| 1,561
| 11,200
| 4.613069
| 0.05189
| 0.088877
| 0.111096
| 0.039994
| 0.888627
| 0.844883
| 0.78628
| 0.769893
| 0.710596
| 0.643244
| 0
| 0.01554
| 0.212857
| 11,200
| 269
| 118
| 41.635688
| 0.80127
| 0.028393
| 0
| 0.391509
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.254717
| 1
| 0.264151
| false
| 0
| 0.033019
| 0
| 0.325472
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7659d32c82d24260a601317cf2824f191667782b
| 4,396
|
py
|
Python
|
tests/test_split_release_packages.py
|
open-contracting/ocdskit-web
|
affa0df1ff7aa08b1fa1a1969f015d670794b0d7
|
[
"BSD-3-Clause"
] | 3
|
2020-01-22T13:11:57.000Z
|
2020-12-25T10:48:12.000Z
|
tests/test_split_release_packages.py
|
open-contracting/toucan
|
affa0df1ff7aa08b1fa1a1969f015d670794b0d7
|
[
"BSD-3-Clause"
] | 88
|
2019-08-06T18:29:31.000Z
|
2021-04-28T19:43:23.000Z
|
tests/test_split_release_packages.py
|
open-contracting/toucan
|
affa0df1ff7aa08b1fa1a1969f015d670794b0d7
|
[
"BSD-3-Clause"
] | 5
|
2019-11-01T17:39:59.000Z
|
2021-05-05T13:39:36.000Z
|
from tests import ViewTestCase, ViewTests
class SplitReleasePackageTestCase(ViewTestCase, ViewTests):
url = '/split-packages/'
files = [
'1.1/release-packages/0001-award.json',
'1.1/release-packages/0001-tender.json',
'1.1/release-packages/0002-tender.json',
'1.1/release-packages/0003-array-packages.json'
]
def test_go_with_files(self):
self.assertResults(
{'type': 'package package-array'},
{'packageType': 'release', 'splitSize': '1'},
{
'result1.json': 'results/split-package/release/1/result1.json',
'result2.json': 'results/split-package/release/1/result2.json',
'result3.json': 'results/split-package/release/1/result3.json',
'result4.json': 'results/split-package/release/1/result4.json',
'result5.json': 'results/split-package/release/1/result5.json'
},
)
def test_go_with_invalid_split_size(self):
self.assertResults(
{'type': 'package package-array'},
{'packageType': 'release', 'splitSize': '-1'},
{
'result1.json': 'results/split-package/release/1/result1.json',
'result2.json': 'results/split-package/release/1/result2.json',
'result3.json': 'results/split-package/release/1/result3.json',
'result4.json': 'results/split-package/release/1/result4.json',
'result5.json': 'results/split-package/release/1/result5.json'
}, has_warnings=True,
warnings=[
'An invalid split size was submitted, and therefore ignored. Default value is used, split size: 1'
]
)
def test_go_with_valid_published_date_and_valid_split_size(self):
self.assertResults(
{'type': 'package package-array'},
{'packageType': 'release', 'splitSize': '1', 'changePublishedDate': 'true',
'publishedDate': '2001-02-03T00:00:00Z'},
{
'result1.json': 'results/split-package/release/2/result1.json',
'result2.json': 'results/split-package/release/2/result2.json',
'result3.json': 'results/split-package/release/2/result3.json',
'result4.json': 'results/split-package/release/2/result4.json',
'result5.json': 'results/split-package/release/2/result5.json'
},
)
def test_go_with_valid_published_date_and_invalid_split_size(self):
self.assertResults(
{'type': 'package package-array'},
{'packageType': 'release', 'splitSize': '-1', 'changePublishedDate': 'true',
'publishedDate': '2001-02-03T00:00:00Z'},
{
'result1.json': 'results/split-package/release/2/result1.json',
'result2.json': 'results/split-package/release/2/result2.json',
'result3.json': 'results/split-package/release/2/result3.json',
'result4.json': 'results/split-package/release/2/result4.json',
'result5.json': 'results/split-package/release/2/result5.json'
}, has_warnings=True,
warnings=[
'An invalid split size was submitted, and therefore ignored. Default value is used, split size: 1'
]
)
def test_go_with_invalid_published_date_and_invalid_split_size(self):
self.assertResults(
{'type': 'package package-array'},
{'packageType': 'release', 'splitSize': '-1', 'changePublishedDate': 'true',
'publishedDate': '2000-00-00T00:00:00Z'},
{
'result1.json': 'results/split-package/release/1/result1.json',
'result2.json': 'results/split-package/release/1/result2.json',
'result3.json': 'results/split-package/release/1/result3.json',
'result4.json': 'results/split-package/release/1/result4.json',
'result5.json': 'results/split-package/release/1/result5.json'
}, has_warnings=True,
warnings=[
'An invalid published date was submitted, and therefore ignored: 2000-00-00T00:00:00Z',
'An invalid split size was submitted, and therefore ignored. Default value is used, split size: 1'
]
)
| 48.844444
| 114
| 0.588035
| 465
| 4,396
| 5.477419
| 0.137634
| 0.10797
| 0.157048
| 0.225756
| 0.937574
| 0.887318
| 0.861013
| 0.861013
| 0.843738
| 0.843738
| 0
| 0.05081
| 0.270246
| 4,396
| 89
| 115
| 49.393258
| 0.743142
| 0
| 0
| 0.585366
| 0
| 0
| 0.541174
| 0.285487
| 0
| 0
| 0
| 0
| 0.060976
| 1
| 0.060976
| false
| 0
| 0.012195
| 0
| 0.109756
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
76676a60435b39b1ff107681835782b41b2ec057
| 1,835
|
py
|
Python
|
tools/fileinfo/loader/bugs/elf-overlapping-segments/test.py
|
xbabka01/retdec-regression-tests
|
1ac40cca5165740364e6f7fb72b20820eac9bc7c
|
[
"MIT"
] | 8
|
2017-12-14T14:25:17.000Z
|
2019-03-09T03:29:12.000Z
|
tools/fileinfo/loader/bugs/elf-overlapping-segments/test.py
|
xbabka01/retdec-regression-tests
|
1ac40cca5165740364e6f7fb72b20820eac9bc7c
|
[
"MIT"
] | 10
|
2019-06-14T09:12:55.000Z
|
2021-10-01T12:15:43.000Z
|
tools/fileinfo/loader/bugs/elf-overlapping-segments/test.py
|
xbabka01/retdec-regression-tests
|
1ac40cca5165740364e6f7fb72b20820eac9bc7c
|
[
"MIT"
] | 8
|
2019-05-10T14:59:48.000Z
|
2022-03-07T16:34:23.000Z
|
from regression_tests import *
class Test1(Test):
settings = TestSettings(
tool='fileinfo',
args='--json --verbose',
input='arm-elf-1070f99f869534eb74b2aa4c916fc20f'
)
def test_overlapped_segments(self):
assert self.fileinfo.succeeded
self.assertEqual(self.fileinfo.output['loaderInfo']['numberOfSegments'], '2')
self.assertEqual(self.fileinfo.output['loaderInfo']['segments'][0]['name'], 'seg0000')
self.assertEqual(self.fileinfo.output['loaderInfo']['segments'][0]['address'], '0')
self.assertEqual(self.fileinfo.output['loaderInfo']['segments'][0]['size'], '0x286b')
self.assertEqual(self.fileinfo.output['loaderInfo']['segments'][1]['name'], 'seg0001')
self.assertEqual(self.fileinfo.output['loaderInfo']['segments'][1]['address'], '0x3e7c')
self.assertEqual(self.fileinfo.output['loaderInfo']['segments'][1]['size'], '0x29ac')
class Test2(Test):
settings = TestSettings(
tool='fileinfo',
args='--json --verbose',
input='b5a7da78bd82584c75c479bc46902791'
)
def test_overlapped_segments(self):
assert self.fileinfo.succeeded
self.assertEqual(self.fileinfo.output['loaderInfo']['numberOfSegments'], '2')
self.assertEqual(self.fileinfo.output['loaderInfo']['segments'][0]['name'], 'seg0000')
self.assertEqual(self.fileinfo.output['loaderInfo']['segments'][0]['address'], '0')
self.assertEqual(self.fileinfo.output['loaderInfo']['segments'][0]['size'], '0xb3f3f')
self.assertEqual(self.fileinfo.output['loaderInfo']['segments'][1]['name'], 'seg0001')
self.assertEqual(self.fileinfo.output['loaderInfo']['segments'][1]['address'], '0xb3f3f')
self.assertEqual(self.fileinfo.output['loaderInfo']['segments'][1]['size'], '0xdf7d')
| 45.875
| 97
| 0.66267
| 184
| 1,835
| 6.581522
| 0.233696
| 0.158547
| 0.219653
| 0.312139
| 0.885219
| 0.885219
| 0.885219
| 0.885219
| 0.885219
| 0.688687
| 0
| 0.060625
| 0.146049
| 1,835
| 39
| 98
| 47.051282
| 0.712189
| 0
| 0
| 0.580645
| 0
| 0
| 0.282289
| 0.039237
| 0
| 0
| 0.020708
| 0
| 0.516129
| 1
| 0.064516
| false
| 0
| 0.032258
| 0
| 0.225806
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
768cbdc2da1e4360ea1cf989f49acac4783965c9
| 183
|
py
|
Python
|
lineageot/__init__.py
|
rbonhamcarter/LineageOT
|
f05ed5d73e953bd15baee22804b306918b417552
|
[
"MIT"
] | 9
|
2021-07-08T12:51:02.000Z
|
2022-02-10T17:39:38.000Z
|
lineageot/__init__.py
|
rbonhamcarter/LineageOT
|
f05ed5d73e953bd15baee22804b306918b417552
|
[
"MIT"
] | 2
|
2021-07-16T18:42:26.000Z
|
2022-02-11T18:52:39.000Z
|
lineageot/__init__.py
|
rbonhamcarter/LineageOT
|
f05ed5d73e953bd15baee22804b306918b417552
|
[
"MIT"
] | 2
|
2021-09-17T17:37:49.000Z
|
2022-03-20T18:48:10.000Z
|
from . import evaluation
from . import inference
from . import simulation
from .core import fit_tree
from .core import fit_lineage_coupling
from .core import save_coupling_as_tmap
| 18.3
| 39
| 0.819672
| 27
| 183
| 5.333333
| 0.481481
| 0.208333
| 0.291667
| 0.236111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147541
| 183
| 9
| 40
| 20.333333
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
96cbdfabf78f9f88250d1f9414e3c1971c38ec48
| 14,561
|
py
|
Python
|
sdk/python/pulumi_aws/rds/cluster_role_association.py
|
chivandikwa/pulumi-aws
|
19c08bf9dcb90544450ffa4eec7bf6751058fde2
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2021-11-10T16:33:40.000Z
|
2021-11-10T16:33:40.000Z
|
sdk/python/pulumi_aws/rds/cluster_role_association.py
|
chivandikwa/pulumi-aws
|
19c08bf9dcb90544450ffa4eec7bf6751058fde2
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_aws/rds/cluster_role_association.py
|
chivandikwa/pulumi-aws
|
19c08bf9dcb90544450ffa4eec7bf6751058fde2
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['ClusterRoleAssociationArgs', 'ClusterRoleAssociation']
@pulumi.input_type
class ClusterRoleAssociationArgs:
def __init__(__self__, *,
db_cluster_identifier: pulumi.Input[str],
feature_name: pulumi.Input[str],
role_arn: pulumi.Input[str]):
"""
The set of arguments for constructing a ClusterRoleAssociation resource.
:param pulumi.Input[str] db_cluster_identifier: DB Cluster Identifier to associate with the IAM Role.
:param pulumi.Input[str] feature_name: Name of the feature for association. This can be found in the AWS documentation relevant to the integration or a full list is available in the `SupportedFeatureNames` list returned by [AWS CLI rds describe-db-engine-versions](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-engine-versions.html).
:param pulumi.Input[str] role_arn: Amazon Resource Name (ARN) of the IAM Role to associate with the DB Cluster.
"""
pulumi.set(__self__, "db_cluster_identifier", db_cluster_identifier)
pulumi.set(__self__, "feature_name", feature_name)
pulumi.set(__self__, "role_arn", role_arn)
@property
@pulumi.getter(name="dbClusterIdentifier")
def db_cluster_identifier(self) -> pulumi.Input[str]:
"""
DB Cluster Identifier to associate with the IAM Role.
"""
return pulumi.get(self, "db_cluster_identifier")
@db_cluster_identifier.setter
def db_cluster_identifier(self, value: pulumi.Input[str]):
pulumi.set(self, "db_cluster_identifier", value)
@property
@pulumi.getter(name="featureName")
def feature_name(self) -> pulumi.Input[str]:
"""
Name of the feature for association. This can be found in the AWS documentation relevant to the integration or a full list is available in the `SupportedFeatureNames` list returned by [AWS CLI rds describe-db-engine-versions](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-engine-versions.html).
"""
return pulumi.get(self, "feature_name")
@feature_name.setter
def feature_name(self, value: pulumi.Input[str]):
pulumi.set(self, "feature_name", value)
@property
@pulumi.getter(name="roleArn")
def role_arn(self) -> pulumi.Input[str]:
"""
Amazon Resource Name (ARN) of the IAM Role to associate with the DB Cluster.
"""
return pulumi.get(self, "role_arn")
@role_arn.setter
def role_arn(self, value: pulumi.Input[str]):
pulumi.set(self, "role_arn", value)
@pulumi.input_type
class _ClusterRoleAssociationState:
def __init__(__self__, *,
db_cluster_identifier: Optional[pulumi.Input[str]] = None,
feature_name: Optional[pulumi.Input[str]] = None,
role_arn: Optional[pulumi.Input[str]] = None):
"""
Input properties used for looking up and filtering ClusterRoleAssociation resources.
:param pulumi.Input[str] db_cluster_identifier: DB Cluster Identifier to associate with the IAM Role.
:param pulumi.Input[str] feature_name: Name of the feature for association. This can be found in the AWS documentation relevant to the integration or a full list is available in the `SupportedFeatureNames` list returned by [AWS CLI rds describe-db-engine-versions](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-engine-versions.html).
:param pulumi.Input[str] role_arn: Amazon Resource Name (ARN) of the IAM Role to associate with the DB Cluster.
"""
if db_cluster_identifier is not None:
pulumi.set(__self__, "db_cluster_identifier", db_cluster_identifier)
if feature_name is not None:
pulumi.set(__self__, "feature_name", feature_name)
if role_arn is not None:
pulumi.set(__self__, "role_arn", role_arn)
@property
@pulumi.getter(name="dbClusterIdentifier")
def db_cluster_identifier(self) -> Optional[pulumi.Input[str]]:
"""
DB Cluster Identifier to associate with the IAM Role.
"""
return pulumi.get(self, "db_cluster_identifier")
@db_cluster_identifier.setter
def db_cluster_identifier(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "db_cluster_identifier", value)
@property
@pulumi.getter(name="featureName")
def feature_name(self) -> Optional[pulumi.Input[str]]:
"""
Name of the feature for association. This can be found in the AWS documentation relevant to the integration or a full list is available in the `SupportedFeatureNames` list returned by [AWS CLI rds describe-db-engine-versions](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-engine-versions.html).
"""
return pulumi.get(self, "feature_name")
@feature_name.setter
def feature_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "feature_name", value)
@property
@pulumi.getter(name="roleArn")
def role_arn(self) -> Optional[pulumi.Input[str]]:
"""
Amazon Resource Name (ARN) of the IAM Role to associate with the DB Cluster.
"""
return pulumi.get(self, "role_arn")
@role_arn.setter
def role_arn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "role_arn", value)
class ClusterRoleAssociation(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
db_cluster_identifier: Optional[pulumi.Input[str]] = None,
feature_name: Optional[pulumi.Input[str]] = None,
role_arn: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
Manages a RDS DB Cluster association with an IAM Role. Example use cases:
* [Creating an IAM Role to Allow Amazon Aurora to Access AWS Services](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Integrating.Authorizing.IAM.CreateRole.html)
* [Importing Amazon S3 Data into an RDS PostgreSQL DB Cluster](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PostgreSQL.S3Import.html)
## Example Usage
```python
import pulumi
import pulumi_aws as aws
example = aws.rds.ClusterRoleAssociation("example",
db_cluster_identifier=aws_rds_cluster["example"]["id"],
feature_name="S3_INTEGRATION",
role_arn=aws_iam_role["example"]["id"])
```
## Import
`aws_rds_cluster_role_association` can be imported using the DB Cluster Identifier and IAM Role ARN separated by a comma (`,`), e.g.,
```sh
$ pulumi import aws:rds/clusterRoleAssociation:ClusterRoleAssociation example my-db-cluster,arn:aws:iam::123456789012:role/my-role
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] db_cluster_identifier: DB Cluster Identifier to associate with the IAM Role.
:param pulumi.Input[str] feature_name: Name of the feature for association. This can be found in the AWS documentation relevant to the integration or a full list is available in the `SupportedFeatureNames` list returned by [AWS CLI rds describe-db-engine-versions](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-engine-versions.html).
:param pulumi.Input[str] role_arn: Amazon Resource Name (ARN) of the IAM Role to associate with the DB Cluster.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: ClusterRoleAssociationArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Manages a RDS DB Cluster association with an IAM Role. Example use cases:
* [Creating an IAM Role to Allow Amazon Aurora to Access AWS Services](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Integrating.Authorizing.IAM.CreateRole.html)
* [Importing Amazon S3 Data into an RDS PostgreSQL DB Cluster](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PostgreSQL.S3Import.html)
## Example Usage
```python
import pulumi
import pulumi_aws as aws
example = aws.rds.ClusterRoleAssociation("example",
db_cluster_identifier=aws_rds_cluster["example"]["id"],
feature_name="S3_INTEGRATION",
role_arn=aws_iam_role["example"]["id"])
```
## Import
`aws_rds_cluster_role_association` can be imported using the DB Cluster Identifier and IAM Role ARN separated by a comma (`,`), e.g.,
```sh
$ pulumi import aws:rds/clusterRoleAssociation:ClusterRoleAssociation example my-db-cluster,arn:aws:iam::123456789012:role/my-role
```
:param str resource_name: The name of the resource.
:param ClusterRoleAssociationArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(ClusterRoleAssociationArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
db_cluster_identifier: Optional[pulumi.Input[str]] = None,
feature_name: Optional[pulumi.Input[str]] = None,
role_arn: Optional[pulumi.Input[str]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = ClusterRoleAssociationArgs.__new__(ClusterRoleAssociationArgs)
if db_cluster_identifier is None and not opts.urn:
raise TypeError("Missing required property 'db_cluster_identifier'")
__props__.__dict__["db_cluster_identifier"] = db_cluster_identifier
if feature_name is None and not opts.urn:
raise TypeError("Missing required property 'feature_name'")
__props__.__dict__["feature_name"] = feature_name
if role_arn is None and not opts.urn:
raise TypeError("Missing required property 'role_arn'")
__props__.__dict__["role_arn"] = role_arn
super(ClusterRoleAssociation, __self__).__init__(
'aws:rds/clusterRoleAssociation:ClusterRoleAssociation',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
db_cluster_identifier: Optional[pulumi.Input[str]] = None,
feature_name: Optional[pulumi.Input[str]] = None,
role_arn: Optional[pulumi.Input[str]] = None) -> 'ClusterRoleAssociation':
"""
Get an existing ClusterRoleAssociation resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] db_cluster_identifier: DB Cluster Identifier to associate with the IAM Role.
:param pulumi.Input[str] feature_name: Name of the feature for association. This can be found in the AWS documentation relevant to the integration or a full list is available in the `SupportedFeatureNames` list returned by [AWS CLI rds describe-db-engine-versions](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-engine-versions.html).
:param pulumi.Input[str] role_arn: Amazon Resource Name (ARN) of the IAM Role to associate with the DB Cluster.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _ClusterRoleAssociationState.__new__(_ClusterRoleAssociationState)
__props__.__dict__["db_cluster_identifier"] = db_cluster_identifier
__props__.__dict__["feature_name"] = feature_name
__props__.__dict__["role_arn"] = role_arn
return ClusterRoleAssociation(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="dbClusterIdentifier")
def db_cluster_identifier(self) -> pulumi.Output[str]:
"""
DB Cluster Identifier to associate with the IAM Role.
"""
return pulumi.get(self, "db_cluster_identifier")
@property
@pulumi.getter(name="featureName")
def feature_name(self) -> pulumi.Output[str]:
"""
Name of the feature for association. This can be found in the AWS documentation relevant to the integration or a full list is available in the `SupportedFeatureNames` list returned by [AWS CLI rds describe-db-engine-versions](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-engine-versions.html).
"""
return pulumi.get(self, "feature_name")
@property
@pulumi.getter(name="roleArn")
def role_arn(self) -> pulumi.Output[str]:
"""
Amazon Resource Name (ARN) of the IAM Role to associate with the DB Cluster.
"""
return pulumi.get(self, "role_arn")
| 50.037801
| 360
| 0.681272
| 1,803
| 14,561
| 5.293955
| 0.106489
| 0.052803
| 0.085595
| 0.041488
| 0.811001
| 0.782713
| 0.766998
| 0.753693
| 0.735778
| 0.718387
| 0
| 0.002745
| 0.224366
| 14,561
| 290
| 361
| 50.210345
| 0.842394
| 0.449969
| 0
| 0.537415
| 1
| 0
| 0.121918
| 0.04615
| 0
| 0
| 0
| 0
| 0
| 1
| 0.14966
| false
| 0.006803
| 0.034014
| 0
| 0.272109
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
8c279e86f6c01c3879b0b22fa25438148016f23e
| 9,904
|
py
|
Python
|
strings/stringRotation.py
|
georgeRenard/CrackingTheCodingInterview
|
ba9866e8e7a8c9942464d76b13af08ea6b15f3f9
|
[
"MIT"
] | null | null | null |
strings/stringRotation.py
|
georgeRenard/CrackingTheCodingInterview
|
ba9866e8e7a8c9942464d76b13af08ea6b15f3f9
|
[
"MIT"
] | null | null | null |
strings/stringRotation.py
|
georgeRenard/CrackingTheCodingInterview
|
ba9866e8e7a8c9942464d76b13af08ea6b15f3f9
|
[
"MIT"
] | null | null | null |
import sys
from time import time
def problem():
"""
String Rotation:Assumeyou have a method isSubstringwhich checks if oneword is a substring
of another. Given two strings, sl and s2, write code to check if s2 is a rotation of sl using only one
call to isSubstring (e.g., "waterbottle" is a rotation of"erbottlewat").
"""
pass
# Example
# waterbottle -> left_circular_shift("waterbottle", 3) -> erbottlewat
# watteerrbbottle -> errbbottlewatte
# bottle -> lebott
# This function runs in O(h) where h is the length of the haystack (the supposed superstring)
def is_substring(needle, haystack):
needle_len = len(needle)
i = 0
for c in haystack:
sub_c = needle[i]
if c != sub_c:
i = 0
if i + 1 < needle_len and needle[i+1] == c:
i += 1
continue
i += 1
if i >= needle_len:
return True
return False
def is_substring_optimized(haystack, needle, start, end):
if start > end:
return False
i = 0
j = 0
for c in haystack:
j += 1
sub_c = needle[start + i]
if c != sub_c:
i = 0
if start + i + 1 < end and needle[start + i + 1] == c and not needle[start + i + 1] == haystack[j]:
i += 1
continue
i += 1
if i + start >= end:
return True
return False
# This function runs in O(n) and requires O(n) memory
# The reason why I do it this way is because I am required to use the is_substring function atleast once
# Even then we could do some index manipulations in order to allow this function to require constant memory
def is_rotation(str1, str2):
length = len(str1)
if length != len(str2):
return False
j = 0
x = []
for i in range(length):
c1 = str1[j]
c2 = str2[i]
equal = c1 == c2
if not equal:
x.append(c2)
else:
j += 1
return is_substring(''.join(x), str1)
# I decided to implement the optimized version where we work with buffers instead of strings and we achieve O(1) memory
# while preserving the original O(n) runtime
def is_rotation_optimized(str1, str2):
length = len(str1)
if length != len(str2):
return False
j = 0
start = -1
end = -1
for i in range(length):
c1 = str1[j]
c2 = str2[i]
equal = c1 == c2
if not equal:
start = start if start != -1 else i
else:
j += 1
end = end if end != -1 else i
return is_substring_optimized(str1, str2, start, end)
# This solution is not mine
# Apparently, there is a way better solution that runs in O(1) and requires O(1) memory
def correct_solution(str1, str2):
if len(str1) == len(str2):
return is_substring(str1 * 2, str2)
return False
def performance_test():
long_str = """What is Lorem Ipsum?
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Why do we use it?
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
Where does it come from?
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.
Where can I get some?
There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.
5paragraphs
words
bytes
lists
Start with 'Lorem
ipsum dolor sit amet...'"""
rotated_str = """xt ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Why do we use it?
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
Where does it come from?
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.
Where can I get some?
There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.
5paragraphs
words
bytes
lists
Start with 'Lorem
ipsum dolor sit amet...'""What is Lorem Ipsum?
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy te"""
start = time()
my_res = is_rotation_optimized(long_str, rotated_str)
end = time()
delta = end - start
print("My solution finished in: {0}ms".format(delta))
start = time()
correct_solution_res = correct_solution(long_str, rotated_str)
end = time()
delta = end - start
print("The correct solution finished in: {0}ms".format(delta))
if __name__ == '__main__':
args = sys.argv[1:]
performance_test()
| 50.789744
| 763
| 0.716579
| 1,571
| 9,904
| 4.490134
| 0.243157
| 0.056705
| 0.017012
| 0.011341
| 0.785654
| 0.776014
| 0.776014
| 0.762688
| 0.759286
| 0.759286
| 0
| 0.022205
| 0.231523
| 9,904
| 194
| 764
| 51.051546
| 0.904612
| 0.10309
| 0
| 0.643478
| 0
| 0.095652
| 0.727735
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.06087
| false
| 0.06087
| 0.017391
| 0
| 0.173913
| 0.043478
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
4fe9115f5252d2709247df803cefb1f96eaed3ec
| 8,071
|
py
|
Python
|
mmtbx/refinement/real_space/tst_fit_residues_3.py
|
rimmartin/cctbx_project
|
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
|
[
"BSD-3-Clause-LBNL"
] | null | null | null |
mmtbx/refinement/real_space/tst_fit_residues_3.py
|
rimmartin/cctbx_project
|
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
|
[
"BSD-3-Clause-LBNL"
] | null | null | null |
mmtbx/refinement/real_space/tst_fit_residues_3.py
|
rimmartin/cctbx_project
|
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
|
[
"BSD-3-Clause-LBNL"
] | null | null | null |
from __future__ import division
import time
import mmtbx.refinement.real_space.fit_residues
import mmtbx.refinement.real_space
pdb_answer = """\
CRYST1 16.402 13.234 20.833 90.00 90.00 90.00 P 1
ATOM 1 N PHE A 364 3.630 3.286 4.228 1.00 9.46 N
ATOM 2 CA PHE A 364 4.866 4.027 4.477 1.00 10.15 C
ATOM 3 C PHE A 364 6.107 3.219 4.071 1.00 11.38 C
ATOM 4 O PHE A 364 6.958 3.695 3.331 1.00 11.71 O
ATOM 5 CB PHE A 364 4.987 4.446 5.947 1.00 9.57 C
ATOM 6 CG PHE A 364 6.322 5.060 6.261 1.00 10.71 C
ATOM 7 CD1 PHE A 364 6.708 6.251 5.660 1.00 11.42 C
ATOM 8 CD2 PHE A 364 7.223 4.410 7.089 1.00 9.88 C
ATOM 9 CE1 PHE A 364 7.965 6.803 5.906 1.00 12.47 C
ATOM 10 CE2 PHE A 364 8.485 4.967 7.348 1.00 12.45 C
ATOM 11 CZ PHE A 364 8.844 6.165 6.756 1.00 12.01 C
ATOM 12 CA THR A 401 5.525 3.293 16.950 1.00 7.97 C
ATOM 13 C THR A 401 6.000 3.929 15.643 1.00 9.81 C
ATOM 14 O THR A 401 6.802 3.348 14.900 1.00 9.23 O
ATOM 15 N ALA A 402 5.502 5.133 15.362 1.00 8.84 N
ATOM 16 CA ALA A 402 5.936 5.844 14.166 1.00 8.49 C
ATOM 17 C ALA A 402 7.443 6.099 14.165 1.00 8.21 C
ATOM 18 O ALA A 402 8.116 5.862 13.150 1.00 8.01 O
ATOM 19 CB ALA A 402 5.174 7.167 14.035 1.00 7.75 C
ATOM 20 N PHE A 403 7.977 6.586 15.283 1.00 9.12 N
ATOM 21 CA PHE A 403 9.405 6.873 15.345 1.00 8.30 C
ATOM 22 C PHE A 403 10.246 5.627 15.062 1.00 9.33 C
ATOM 23 O PHE A 403 11.192 5.667 14.279 1.00 11.43 O
ATOM 24 CB PHE A 403 9.775 7.458 16.711 1.00 9.28 C
ATOM 25 CG PHE A 403 11.202 7.901 16.805 1.00 12.22 C
ATOM 26 CD1 PHE A 403 11.566 9.176 16.412 1.00 12.95 C
ATOM 27 CD2 PHE A 403 12.176 7.050 17.291 1.00 14.12 C
ATOM 28 CE1 PHE A 403 12.887 9.593 16.493 1.00 14.50 C
ATOM 29 N PHE A 407 9.045 6.777 10.558 1.00 10.36 N
ATOM 30 CA PHE A 407 7.962 7.610 10.037 1.00 10.78 C
ATOM 31 C PHE A 407 7.986 8.907 10.843 1.00 8.79 C
ATOM 32 O PHE A 407 7.084 9.187 11.629 1.00 10.53 O
ATOM 33 CB PHE A 407 6.620 6.885 10.202 1.00 7.96 C
ATOM 34 CG PHE A 407 5.960 6.454 8.919 1.00 9.05 C
ATOM 35 CD1 PHE A 407 6.506 5.396 8.202 1.00 8.53 C
ATOM 36 CD2 PHE A 407 4.826 7.076 8.421 1.00 9.48 C
ATOM 37 CE1 PHE A 407 5.954 4.976 7.010 1.00 10.10 C
ATOM 38 CE2 PHE A 407 4.261 6.653 7.220 1.00 9.34 C
ATOM 39 CZ PHE A 407 4.841 5.602 6.515 1.00 9.45 C
TER
"""
pdb_poor = pdb_answer
pdb_for_map_1 = pdb_answer
pdb_for_map_2 = """\
CRYST1 16.402 13.234 20.833 90.00 90.00 90.00 P 1
ATOM 1 N PHE A 364 3.630 3.286 4.228 1.00 9.46 N
ATOM 2 CA PHE A 364 4.866 4.027 4.477 1.00 10.15 C
ATOM 3 C PHE A 364 6.107 3.219 4.071 1.00 11.38 C
ATOM 4 O PHE A 364 6.958 3.695 3.331 1.00 11.71 O
ATOM 5 CB PHE A 364 4.987 4.446 5.947 1.00 9.57 C
ATOM 6 CG PHE A 364 6.322 5.060 6.261 1.00 10.71 C
ATOM 7 CD1 PHE A 364 6.708 6.251 5.660 1.00 11.42 C
ATOM 8 CD2 PHE A 364 7.223 4.410 7.089 1.00 9.88 C
ATOM 9 CE1 PHE A 364 7.965 6.803 5.906 1.00 12.47 C
ATOM 10 CE2 PHE A 364 8.485 4.967 7.348 1.00 12.45 C
ATOM 11 CZ PHE A 364 8.844 6.165 6.756 1.00 12.01 C
ATOM 12 CA THR A 401 5.525 3.293 16.950 1.00 7.97 C
ATOM 13 C THR A 401 6.000 3.929 15.643 1.00 9.81 C
ATOM 14 O THR A 401 6.802 3.348 14.900 1.00 9.23 O
ATOM 15 N ALA A 402 5.502 5.133 15.362 1.00 8.84 N
ATOM 16 CA ALA A 402 5.936 5.844 14.166 1.00 8.49 C
ATOM 17 C ALA A 402 7.443 6.099 14.165 1.00 8.21 C
ATOM 18 O ALA A 402 8.116 5.862 13.150 1.00 8.01 O
ATOM 19 CB ALA A 402 5.174 7.167 14.035 1.00 7.75 C
ATOM 20 N PHE A 403 7.977 6.586 15.283 1.00 9.12 N
ATOM 21 CA PHE A 403 9.405 6.873 15.345 1.00 8.30 C
ATOM 22 C PHE A 403 10.246 5.627 15.062 1.00 9.33 C
ATOM 23 O PHE A 403 11.192 5.667 14.279 1.00 11.43 O
ATOM 24 CB PHE A 403 9.775 7.458 16.711 1.00 9.28 C
ATOM 25 CG PHE A 403 11.202 7.901 16.805 1.00 12.22 C
ATOM 26 CD1 PHE A 403 11.566 9.176 16.412 1.00 12.95 C
ATOM 27 CD2 PHE A 403 12.176 7.050 17.291 1.00 14.12 C
ATOM 28 CE1 PHE A 403 12.887 9.593 16.493 1.00 14.50 C
ATOM 29 N PHE A 407 9.045 6.777 10.558 1.00 10.36 N
ATOM 30 CA PHE A 407 7.962 7.610 10.037 1.00 10.78 C
ATOM 31 C PHE A 407 7.986 8.907 10.843 1.00 8.79 C
ATOM 32 O PHE A 407 7.084 9.187 11.629 1.00 10.53 O
ATOM 33 CB PHE A 407 6.620 6.885 10.202 1.00 7.96 C
ATOM 34 CG PHE A 407 5.960 6.454 8.919 1.00 9.05 C
ATOM 35 CD1 PHE A 407 6.506 5.396 8.202 1.00 8.53 C
ATOM 36 CD2 PHE A 407 4.826 7.076 8.421 1.00 9.48 C
ATOM 37 CE1 PHE A 407 5.954 4.976 7.010 1.00 10.10 C
ATOM 38 CE2 PHE A 407 4.261 6.653 7.220 1.00 9.34 C
ATOM 39 CZ PHE A 407 4.841 5.602 6.515 1.00 9.45 C
TER
"""
def exercise(i_pdb, pdb_for_map, d_min = 1.5, resolution_factor = 0.1):
"""
Best fitting residue is a rotamer outlier (PHE 407), two scenarious:
- outlier fits density perfectly
- outlier fits not so good.
No better options to fit other than keep the outlier unchanged.
"""
t = mmtbx.refinement.real_space.setup_test(
pdb_answer = pdb_answer,
pdb_poor = pdb_poor,
i_pdb = i_pdb,
d_min = d_min,
resolution_factor = resolution_factor,
pdb_for_map = pdb_for_map)
#
ph = t.ph_poor
for i in [1,2,3]:
result = mmtbx.refinement.real_space.fit_residues.run(
pdb_hierarchy = ph,
vdw_radii = t.vdw,
crystal_symmetry = t.crystal_symmetry,
map_data = t.target_map,
do_all = True,
massage_map = False,
backbone_sample = False,
rotamer_manager = t.rotamer_manager,
sin_cos_table = t.sin_cos_table,
mon_lib_srv = t.mon_lib_srv)
ph = result.pdb_hierarchy
result.pdb_hierarchy.write_pdb_file(file_name = "refined_%s.pdb"%str(i_pdb),
crystal_symmetry = t.crystal_symmetry)
#
mmtbx.refinement.real_space.check_sites_match(
ph_answer = t.ph_answer,
ph_refined = result.pdb_hierarchy,
tol = 0.16)
if(__name__ == "__main__"):
t0 = time.time()
for i_pdb, pdb_for_map in enumerate([pdb_for_map_1, pdb_for_map_2]):
exercise(
i_pdb = i_pdb,
pdb_for_map = pdb_for_map)
print "Time: %6.4f"%(time.time()-t0)
| 56.048611
| 78
| 0.489902
| 1,617
| 8,071
| 2.384045
| 0.179344
| 0.0607
| 0.024903
| 0.016602
| 0.798444
| 0.75227
| 0.724773
| 0.724773
| 0.724773
| 0.724773
| 0
| 0.4346
| 0.439227
| 8,071
| 143
| 79
| 56.440559
| 0.417145
| 0
| 0
| 0.692913
| 0
| 0.629921
| 0.805322
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.031496
| null | null | 0.007874
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
8b45f0d5e184b19baaaa336e5f4199752d839077
| 20,083
|
py
|
Python
|
geomdl/NURBS.py
|
Maik93/NURBS-Python
|
44d87a972c694371462378672429f2acc24249b2
|
[
"MIT"
] | 382
|
2016-09-22T16:21:47.000Z
|
2022-03-27T18:23:16.000Z
|
geomdl/NURBS.py
|
Maik93/NURBS-Python
|
44d87a972c694371462378672429f2acc24249b2
|
[
"MIT"
] | 143
|
2017-02-10T03:45:09.000Z
|
2022-03-31T05:24:05.000Z
|
geomdl/NURBS.py
|
Maik93/NURBS-Python
|
44d87a972c694371462378672429f2acc24249b2
|
[
"MIT"
] | 123
|
2016-06-10T14:11:37.000Z
|
2022-03-28T11:39:00.000Z
|
"""
.. module:: NURBS
:platform: Unix, Windows
:synopsis: Provides data storage and evaluation functionality for rational spline geometries
.. moduleauthor:: Onur Rauf Bingol <orbingol@gmail.com>
"""
from . import BSpline, compatibility, evaluators
from ._utilities import export
@export
class Curve(BSpline.Curve):
""" Data storage and evaluation class for n-variate NURBS (rational) curves.
The rational shapes have some minor differences between the non-rational ones. This class is designed to operate
with weighted control points (Pw) as described in *The NURBS Book* by Piegl and Tiller. Therefore, it provides
a different set of properties (i.e. getters and setters):
* ``ctrlptsw``: 1-dimensional array of weighted control points
* ``ctrlpts``: 1-dimensional array of control points
* ``weights``: 1-dimensional array of weights
You may also use ``set_ctrlpts()`` function which is designed to work with all types of control points.
This class provides the following properties:
* :py:attr:`order`
* :py:attr:`degree`
* :py:attr:`knotvector`
* :py:attr:`ctrlptsw`
* :py:attr:`ctrlpts`
* :py:attr:`weights`
* :py:attr:`delta`
* :py:attr:`sample_size`
* :py:attr:`bbox`
* :py:attr:`vis`
* :py:attr:`name`
* :py:attr:`dimension`
* :py:attr:`evaluator`
* :py:attr:`rational`
The following code segment illustrates the usage of Curve class:
.. code-block:: python
from geomdl import NURBS
# Create a 3-dimensional B-spline Curve
curve = NURBS.Curve()
# Set degree
curve.degree = 3
# Set control points (weights vector will be 1 by default)
# Use curve.ctrlptsw is if you are using homogeneous points as Pw
curve.ctrlpts = [[10, 5, 10], [10, 20, -30], [40, 10, 25], [-10, 5, 0]]
# Set knot vector
curve.knotvector = [0, 0, 0, 0, 1, 1, 1, 1]
# Set evaluation delta (controls the number of curve points)
curve.delta = 0.05
# Get curve points (the curve will be automatically evaluated)
curve_points = curve.evalpts
**Keyword Arguments:**
* ``precision``: number of decimal places to round to. *Default: 18*
* ``normalize_kv``: activates knot vector normalization. *Default: True*
* ``find_span_func``: sets knot span search implementation. *Default:* :func:`.helpers.find_span_linear`
* ``insert_knot_func``: sets knot insertion implementation. *Default:* :func:`.operations.insert_knot`
* ``remove_knot_func``: sets knot removal implementation. *Default:* :func:`.operations.remove_knot`
Please refer to the :py:class:`.abstract.Curve()` documentation for more details.
"""
def __init__(self, **kwargs):
super(Curve, self).__init__(**kwargs)
self._rational = True
self._evaluator = evaluators.CurveEvaluatorRational(find_span_func=self._span_func)
# Variables for caching
self.init_cache()
def __deepcopy__(self, memo):
# Call parent method
result = super(Curve, self).__deepcopy__(memo)
result.init_cache()
return result
def init_cache(self):
self._cache['ctrlpts'] = self._init_array()
self._cache['weights'] = self._init_array()
@property
def ctrlptsw(self):
""" Weighted control points (Pw).
Weighted control points are in (x*w, y*w, z*w, w) format; where x,y,z are the coordinates and w is the weight.
Please refer to the `wiki <https://github.com/orbingol/NURBS-Python/wiki/Using-Python-Properties>`_ for details
on using this class member.
:getter: Gets the weighted control points
:setter: Sets the weighted control points
"""
return self._control_points
@ctrlptsw.setter
def ctrlptsw(self, value):
self.set_ctrlpts(value)
@property
def ctrlpts(self):
""" Control points (P).
Please refer to the `wiki <https://github.com/orbingol/NURBS-Python/wiki/Using-Python-Properties>`_ for details
on using this class member.
:getter: Gets unweighted control points. Use :py:attr:`~weights` to get weights vector.
:setter: Sets unweighted control points
:type: list
"""
# Populate the cache, if necessary
if not self._cache['ctrlpts']:
c, w = compatibility.separate_ctrlpts_weights(self._control_points)
self._cache['ctrlpts'] = [crd for crd in c]
self._cache['weights'] = w
return self._cache['ctrlpts']
@ctrlpts.setter
def ctrlpts(self, value):
# Check if we can retrieve the existing weights. If not, generate a weights vector of 1.0s.
if not self.weights:
weights = [1.0 for _ in range(len(value))]
else:
weights = self.weights
# Generate weighted control points using the new control points
ctrlptsw = compatibility.combine_ctrlpts_weights(value, weights)
# Set new weighted control points
self.set_ctrlpts(ctrlptsw)
@property
def weights(self):
""" Weights vector.
Please refer to the `wiki <https://github.com/orbingol/NURBS-Python/wiki/Using-Python-Properties>`_ for details
on using this class member.
:getter: Gets the weights vector
:setter: Sets the weights vector
:type: list
"""
# Populate the cache, if necessary
if not self._cache['weights']:
c, w = compatibility.separate_ctrlpts_weights(self._control_points)
self._cache['ctrlpts'] = [crd for crd in c]
self._cache['weights'] = w
return self._cache['weights']
@weights.setter
def weights(self, value):
if not self.ctrlpts:
raise ValueError("Set control points first")
# Generate weighted control points using the new weights
ctrlptsw = compatibility.combine_ctrlpts_weights(self.ctrlpts, value)
# Set new weighted control points
self.set_ctrlpts(ctrlptsw)
def reset(self, **kwargs):
""" Resets control points and/or evaluated points.
Keyword Arguments:
* ``evalpts``: if True, then resets evaluated points
* ``ctrlpts`` if True, then resets control points
"""
reset_ctrlpts = kwargs.get('ctrlpts', False)
reset_evalpts = kwargs.get('evalpts', False)
# Call parent function
super(Curve, self).reset(ctrlpts=reset_ctrlpts, evalpts=reset_evalpts)
if reset_ctrlpts:
# Delete the caches
self._cache['ctrlpts'] = self._init_array()
self._cache['weights'][:] = self._init_array()
@export
class Surface(BSpline.Surface):
""" Data storage and evaluation class for NURBS (rational) surfaces.
The rational shapes have some minor differences between the non-rational ones. This class is designed to operate
with weighted control points (Pw) as described in *The NURBS Book* by Piegl and Tiller. Therefore, it provides
a different set of properties (i.e. getters and setters):
* ``ctrlptsw``: 1-dimensional array of weighted control points
* ``ctrlpts2d``: 2-dimensional array of weighted control points
* ``ctrlpts``: 1-dimensional array of control points
* ``weights``: 1-dimensional array of weights
You may also use ``set_ctrlpts()`` function which is designed to work with all types of control points.
This class provides the following properties:
* :py:attr:`order_u`
* :py:attr:`order_v`
* :py:attr:`degree_u`
* :py:attr:`degree_v`
* :py:attr:`knotvector_u`
* :py:attr:`knotvector_v`
* :py:attr:`ctrlptsw`
* :py:attr:`ctrlpts`
* :py:attr:`weights`
* :py:attr:`ctrlpts_size_u`
* :py:attr:`ctrlpts_size_v`
* :py:attr:`ctrlpts2d`
* :py:attr:`delta`
* :py:attr:`delta_u`
* :py:attr:`delta_v`
* :py:attr:`sample_size`
* :py:attr:`sample_size_u`
* :py:attr:`sample_size_v`
* :py:attr:`bbox`
* :py:attr:`name`
* :py:attr:`dimension`
* :py:attr:`vis`
* :py:attr:`evaluator`
* :py:attr:`tessellator`
* :py:attr:`rational`
* :py:attr:`trims`
The following code segment illustrates the usage of Surface class:
.. code-block:: python
:linenos:
from geomdl import NURBS
# Create a NURBS surface instance
surf = NURBS.Surface()
# Set degrees
surf.degree_u = 3
surf.degree_v = 2
# Set control points (weights vector will be 1 by default)
# Use curve.ctrlptsw is if you are using homogeneous points as Pw
control_points = [[0, 0, 0], [0, 4, 0], [0, 8, -3],
[2, 0, 6], [2, 4, 0], [2, 8, 0],
[4, 0, 0], [4, 4, 0], [4, 8, 3],
[6, 0, 0], [6, 4, -3], [6, 8, 0]]
surf.set_ctrlpts(control_points, 4, 3)
# Set knot vectors
surf.knotvector_u = [0, 0, 0, 0, 1, 1, 1, 1]
surf.knotvector_v = [0, 0, 0, 1, 1, 1]
# Set evaluation delta (control the number of surface points)
surf.delta = 0.05
# Get surface points (the surface will be automatically evaluated)
surface_points = surf.evalpts
**Keyword Arguments:**
* ``precision``: number of decimal places to round to. *Default: 18*
* ``normalize_kv``: activates knot vector normalization. *Default: True*
* ``find_span_func``: sets knot span search implementation. *Default:* :func:`.helpers.find_span_linear`
* ``insert_knot_func``: sets knot insertion implementation. *Default:* :func:`.operations.insert_knot`
* ``remove_knot_func``: sets knot removal implementation. *Default:* :func:`.operations.remove_knot`
Please refer to the :py:class:`.abstract.Surface()` documentation for more details.
"""
def __init__(self, **kwargs):
super(Surface, self).__init__(**kwargs)
self._rational = True
self._evaluator = evaluators.SurfaceEvaluatorRational(find_span_func=self._span_func)
# Variables for caching
self.init_cache()
def __deepcopy__(self, memo):
# Call parent method
result = super(Surface, self).__deepcopy__(memo)
result.init_cache()
return result
def init_cache(self):
self._cache['ctrlpts'] = self._init_array()
self._cache['weights'] = self._init_array()
@property
def ctrlptsw(self):
""" 1-dimensional array of weighted control points (Pw).
Weighted control points are in (x*w, y*w, z*w, w) format; where x,y,z are the coordinates and w is the weight.
This property sets and gets the control points in 1-D.
:getter: Gets weighted control points
:setter: Sets weighted control points
"""
return self._control_points
@ctrlptsw.setter
def ctrlptsw(self, value):
if self.ctrlpts_size_u <= 0 or self.ctrlpts_size_v <= 0:
raise ValueError("Please set the number of control points on the u- and v-directions")
self.set_ctrlpts(value, self.ctrlpts_size_u, self.ctrlpts_size_v)
@property
def ctrlpts(self):
""" 1-dimensional array of control points (P).
This property sets and gets the control points in 1-D.
:getter: Gets unweighted control points. Use :py:attr:`~weights` to get weights vector.
:setter: Sets unweighted control points.
:type: list
"""
if not self._cache['ctrlpts']:
c, w = compatibility.separate_ctrlpts_weights(self._control_points)
self._cache['ctrlpts'] = [crd for crd in c]
self._cache['weights'] = w
return self._cache['ctrlpts']
@ctrlpts.setter
def ctrlpts(self, value):
if self.ctrlpts_size_u <= 0 or self.ctrlpts_size_v <= 0:
raise ValueError("Please set the number of control points on the u- and v-directions")
# Check if we can retrieve the existing weights. If not, generate a weights vector of 1.0s.
if not self.weights:
weights = [1.0 for _ in range(len(value))]
else:
weights = self.weights
# Generate weighted control points using the new control points
ctrlptsw = compatibility.combine_ctrlpts_weights(value, weights)
# Set weighted control points
self.set_ctrlpts(ctrlptsw, self.ctrlpts_size_u, self.ctrlpts_size_v)
@property
def weights(self):
""" Weights vector.
:getter: Gets the weights vector
:setter: Sets the weights vector
:type: list
"""
if not self._cache['weights']:
c, w = compatibility.separate_ctrlpts_weights(self._control_points)
self._cache['ctrlpts'] = [crd for crd in c]
self._cache['weights'] = w
return self._cache['weights']
@weights.setter
def weights(self, value):
if not self.ctrlpts:
raise ValueError("Set control points first")
# Generate weighted control points using the new weights
ctrlptsw = compatibility.combine_ctrlpts_weights(self.ctrlpts, value)
# Set weighted control points
self.set_ctrlpts(ctrlptsw, self.ctrlpts_size_u, self.ctrlpts_size_v)
def reset(self, **kwargs):
""" Resets control points and/or evaluated points.
Keyword Arguments:
* ``evalpts``: if True, then resets evaluated points
* ``ctrlpts`` if True, then resets control points
"""
reset_ctrlpts = kwargs.get('ctrlpts', False)
reset_evalpts = kwargs.get('evalpts', False)
# Call parent function
super(Surface, self).reset(ctrlpts=reset_ctrlpts, evalpts=reset_evalpts)
if reset_ctrlpts:
# Re-initialize the caches
self.init_cache()
@export
class Volume(BSpline.Volume):
""" Data storage and evaluation class for NURBS (rational) volumes.
The rational shapes have some minor differences between the non-rational ones. This class is designed to operate
with weighted control points (Pw) as described in *The NURBS Book* by Piegl and Tiller. Therefore, it provides
a different set of properties (i.e. getters and setters):
* ``ctrlptsw``: 1-dimensional array of weighted control points
* ``ctrlpts``: 1-dimensional array of control points
* ``weights``: 1-dimensional array of weights
This class provides the following properties:
* :py:attr:`order_u`
* :py:attr:`order_v`
* :py:attr:`order_w`
* :py:attr:`degree_u`
* :py:attr:`degree_v`
* :py:attr:`degree_w`
* :py:attr:`knotvector_u`
* :py:attr:`knotvector_v`
* :py:attr:`knotvector_w`
* :py:attr:`ctrlptsw`
* :py:attr:`ctrlpts`
* :py:attr:`weights`
* :py:attr:`ctrlpts_size_u`
* :py:attr:`ctrlpts_size_v`
* :py:attr:`ctrlpts_size_w`
* :py:attr:`delta`
* :py:attr:`delta_u`
* :py:attr:`delta_v`
* :py:attr:`delta_w`
* :py:attr:`sample_size`
* :py:attr:`sample_size_u`
* :py:attr:`sample_size_v`
* :py:attr:`sample_size_w`
* :py:attr:`bbox`
* :py:attr:`name`
* :py:attr:`dimension`
* :py:attr:`vis`
* :py:attr:`evaluator`
* :py:attr:`rational`
**Keyword Arguments:**
* ``precision``: number of decimal places to round to. *Default: 18*
* ``normalize_kv``: activates knot vector normalization. *Default: True*
* ``find_span_func``: sets knot span search implementation. *Default:* :func:`.helpers.find_span_linear`
* ``insert_knot_func``: sets knot insertion implementation. *Default:* :func:`.operations.insert_knot`
* ``remove_knot_func``: sets knot removal implementation. *Default:* :func:`.operations.remove_knot`
Please refer to the :py:class:`.abstract.Volume()` documentation for more details.
"""
def __init__(self, **kwargs):
super(Volume, self).__init__(**kwargs)
self._rational = True
self._evaluator = evaluators.VolumeEvaluatorRational(find_span_func=self._span_func)
# Variables for caching
self.init_cache()
def __deepcopy__(self, memo):
# Call parent method
result = super(Volume, self).__deepcopy__(memo)
result.init_cache()
return result
def init_cache(self):
self._cache['ctrlpts'] = self._init_array()
self._cache['weights'] = self._init_array()
def reset(self, **kwargs):
""" Resets control points and/or evaluated points.
Keyword Arguments:
* ``evalpts``: if True, then resets the evaluated points
* ``ctrlpts`` if True, then resets the control points
"""
reset_ctrlpts = kwargs.get('ctrlpts', False)
reset_evalpts = kwargs.get('evalpts', False)
# Call parent function
super(Volume, self).reset(ctrlpts=reset_ctrlpts, evalpts=reset_evalpts)
if reset_ctrlpts:
# Re-initialize the caches
self.init_cache()
@property
def ctrlptsw(self):
""" 1-dimensional array of weighted control points (Pw).
Weighted control points are in (x*w, y*w, z*w, w) format; where x,y,z are the coordinates and w is the weight.
This property sets and gets the control points in 1-D.
:getter: Gets weighted control points
:setter: Sets weighted control points
"""
return self._control_points
@ctrlptsw.setter
def ctrlptsw(self, value):
if self.ctrlpts_size_u <= 0 or self.ctrlpts_size_v <= 0 or self.ctrlpts_size_w <= 0:
raise ValueError("Please set the number of control points for all u-, v- and w-directions")
self.set_ctrlpts(value, self.ctrlpts_size_u, self.ctrlpts_size_v, self.ctrlpts_size_w)
@property
def ctrlpts(self):
""" 1-dimensional array of control points (P).
This property sets and gets the control points in 1-D.
:getter: Gets unweighted control points. Use :py:attr:`~weights` to get weights vector.
:setter: Sets unweighted control points.
:type: list
"""
if not self._cache['ctrlpts']:
c, w = compatibility.separate_ctrlpts_weights(self._control_points)
self._cache['ctrlpts'] = [crd for crd in c]
self._cache['weights'] = w
return self._cache['ctrlpts']
@ctrlpts.setter
def ctrlpts(self, value):
if self.ctrlpts_size_u <= 0 or self.ctrlpts_size_v <= 0 or self.ctrlpts_size_w <= 0:
raise ValueError("Please set the number of control points for all u-, v- and w-directions")
# Check if we can retrieve the existing weights. If not, generate a weights vector of 1.0s.
if not self.weights:
weights = [1.0 for _ in range(len(value))]
else:
weights = self.weights
# Generate weighted control points using the new control points
ctrlptsw = compatibility.combine_ctrlpts_weights(value, weights)
# Set weighted control points
self.set_ctrlpts(ctrlptsw, self.ctrlpts_size_u, self.ctrlpts_size_v, self.ctrlpts_size_w)
@property
def weights(self):
""" Weights vector.
:getter: Gets the weights vector
:setter: Sets the weights vector
:type: list
"""
if not self._cache['weights']:
c, w = compatibility.separate_ctrlpts_weights(self._control_points)
self._cache['ctrlpts'] = [crd for crd in c]
self._cache['weights'] = w
return self._cache['weights']
@weights.setter
def weights(self, value):
if not self.ctrlpts:
raise ValueError("Set control points first")
# Generate weighted control points using the new weights
ctrlptsw = compatibility.combine_ctrlpts_weights(self.ctrlpts, value)
# Set weighted control points
self.set_ctrlpts(ctrlptsw, self.ctrlpts_size_u, self.ctrlpts_size_v, self.ctrlpts_size_w)
| 35.482332
| 119
| 0.635214
| 2,557
| 20,083
| 4.858037
| 0.099726
| 0.081629
| 0.052407
| 0.019884
| 0.896635
| 0.891402
| 0.873853
| 0.870794
| 0.852681
| 0.820641
| 0
| 0.00943
| 0.25544
| 20,083
| 565
| 120
| 35.545133
| 0.821307
| 0.544391
| 0
| 0.878613
| 0
| 0
| 0.077302
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.17341
| false
| 0
| 0.011561
| 0
| 0.271676
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.